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="lib/iconv.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_subdirs_all="$ac_subdirs_all libcharset"
467ac_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 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 CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os RELOCATABLE LIBOBJS SET_RELOCATABLE RELOCATABLE_VIA_LD_TRUE RELOCATABLE_VIA_LD_FALSE USE_EXTRA_ENCODINGS RANLIB ac_ct_RANLIB CP LN LN_S ECHO AR ac_ct_AR 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 LIBICONV LTLIBICONV MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTLLIBS LIBINTL LTLIBINTL POSUB HAVE_LONG_64BIT HAVE_LONG_LONG_64BIT STDINT_H ICONV_CONST EILSEQ ALLOCA ALLOCA_H STDBOOL_H HAVE__BOOL OS GCC PLUGLIB subdirs LTLIBOBJS'
468ac_subst_files=''
469
470# Initialize some variables set by options.
471ac_init_help=
472ac_init_version=false
473# The variables have the same names as the options, with
474# dashes changed to underlines.
475cache_file=/dev/null
476exec_prefix=NONE
477no_create=
478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
486verbose=
487x_includes=NONE
488x_libraries=NONE
489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
508ac_prev=
509for ac_option
510do
511  # If the previous option needs an argument, assign it.
512  if test -n "$ac_prev"; then
513    eval "$ac_prev=\$ac_option"
514    ac_prev=
515    continue
516  fi
517
518  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520  # Accept the important Cygnus configure options, so we can diagnose typos.
521
522  case $ac_option in
523
524  -bindir | --bindir | --bindi | --bind | --bin | --bi)
525    ac_prev=bindir ;;
526  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527    bindir=$ac_optarg ;;
528
529  -build | --build | --buil | --bui | --bu)
530    ac_prev=build_alias ;;
531  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532    build_alias=$ac_optarg ;;
533
534  -cache-file | --cache-file | --cache-fil | --cache-fi \
535  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536    ac_prev=cache_file ;;
537  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539    cache_file=$ac_optarg ;;
540
541  --config-cache | -C)
542    cache_file=config.cache ;;
543
544  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545    ac_prev=datadir ;;
546  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547  | --da=*)
548    datadir=$ac_optarg ;;
549
550  -disable-* | --disable-*)
551    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552    # Reject names that are not valid shell variable names.
553    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555   { (exit 1); exit 1; }; }
556    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557    eval "enable_$ac_feature=no" ;;
558
559  -enable-* | --enable-*)
560    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561    # Reject names that are not valid shell variable names.
562    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564   { (exit 1); exit 1; }; }
565    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566    case $ac_option in
567      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568      *) ac_optarg=yes ;;
569    esac
570    eval "enable_$ac_feature='$ac_optarg'" ;;
571
572  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574  | --exec | --exe | --ex)
575    ac_prev=exec_prefix ;;
576  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578  | --exec=* | --exe=* | --ex=*)
579    exec_prefix=$ac_optarg ;;
580
581  -gas | --gas | --ga | --g)
582    # Obsolete; use --with-gas.
583    with_gas=yes ;;
584
585  -help | --help | --hel | --he | -h)
586    ac_init_help=long ;;
587  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588    ac_init_help=recursive ;;
589  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590    ac_init_help=short ;;
591
592  -host | --host | --hos | --ho)
593    ac_prev=host_alias ;;
594  -host=* | --host=* | --hos=* | --ho=*)
595    host_alias=$ac_optarg ;;
596
597  -includedir | --includedir | --includedi | --included | --include \
598  | --includ | --inclu | --incl | --inc)
599    ac_prev=includedir ;;
600  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601  | --includ=* | --inclu=* | --incl=* | --inc=*)
602    includedir=$ac_optarg ;;
603
604  -infodir | --infodir | --infodi | --infod | --info | --inf)
605    ac_prev=infodir ;;
606  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607    infodir=$ac_optarg ;;
608
609  -libdir | --libdir | --libdi | --libd)
610    ac_prev=libdir ;;
611  -libdir=* | --libdir=* | --libdi=* | --libd=*)
612    libdir=$ac_optarg ;;
613
614  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615  | --libexe | --libex | --libe)
616    ac_prev=libexecdir ;;
617  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618  | --libexe=* | --libex=* | --libe=*)
619    libexecdir=$ac_optarg ;;
620
621  -localstatedir | --localstatedir | --localstatedi | --localstated \
622  | --localstate | --localstat | --localsta | --localst \
623  | --locals | --local | --loca | --loc | --lo)
624    ac_prev=localstatedir ;;
625  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628    localstatedir=$ac_optarg ;;
629
630  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631    ac_prev=mandir ;;
632  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633    mandir=$ac_optarg ;;
634
635  -nfp | --nfp | --nf)
636    # Obsolete; use --without-fp.
637    with_fp=no ;;
638
639  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640  | --no-cr | --no-c | -n)
641    no_create=yes ;;
642
643  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645    no_recursion=yes ;;
646
647  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649  | --oldin | --oldi | --old | --ol | --o)
650    ac_prev=oldincludedir ;;
651  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654    oldincludedir=$ac_optarg ;;
655
656  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657    ac_prev=prefix ;;
658  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659    prefix=$ac_optarg ;;
660
661  -program-prefix | --program-prefix | --program-prefi | --program-pref \
662  | --program-pre | --program-pr | --program-p)
663    ac_prev=program_prefix ;;
664  -program-prefix=* | --program-prefix=* | --program-prefi=* \
665  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666    program_prefix=$ac_optarg ;;
667
668  -program-suffix | --program-suffix | --program-suffi | --program-suff \
669  | --program-suf | --program-su | --program-s)
670    ac_prev=program_suffix ;;
671  -program-suffix=* | --program-suffix=* | --program-suffi=* \
672  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673    program_suffix=$ac_optarg ;;
674
675  -program-transform-name | --program-transform-name \
676  | --program-transform-nam | --program-transform-na \
677  | --program-transform-n | --program-transform- \
678  | --program-transform | --program-transfor \
679  | --program-transfo | --program-transf \
680  | --program-trans | --program-tran \
681  | --progr-tra | --program-tr | --program-t)
682    ac_prev=program_transform_name ;;
683  -program-transform-name=* | --program-transform-name=* \
684  | --program-transform-nam=* | --program-transform-na=* \
685  | --program-transform-n=* | --program-transform-=* \
686  | --program-transform=* | --program-transfor=* \
687  | --program-transfo=* | --program-transf=* \
688  | --program-trans=* | --program-tran=* \
689  | --progr-tra=* | --program-tr=* | --program-t=*)
690    program_transform_name=$ac_optarg ;;
691
692  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693  | -silent | --silent | --silen | --sile | --sil)
694    silent=yes ;;
695
696  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697    ac_prev=sbindir ;;
698  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699  | --sbi=* | --sb=*)
700    sbindir=$ac_optarg ;;
701
702  -sharedstatedir | --sharedstatedir | --sharedstatedi \
703  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704  | --sharedst | --shareds | --shared | --share | --shar \
705  | --sha | --sh)
706    ac_prev=sharedstatedir ;;
707  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710  | --sha=* | --sh=*)
711    sharedstatedir=$ac_optarg ;;
712
713  -site | --site | --sit)
714    ac_prev=site ;;
715  -site=* | --site=* | --sit=*)
716    site=$ac_optarg ;;
717
718  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719    ac_prev=srcdir ;;
720  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721    srcdir=$ac_optarg ;;
722
723  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724  | --syscon | --sysco | --sysc | --sys | --sy)
725    ac_prev=sysconfdir ;;
726  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728    sysconfdir=$ac_optarg ;;
729
730  -target | --target | --targe | --targ | --tar | --ta | --t)
731    ac_prev=target_alias ;;
732  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733    target_alias=$ac_optarg ;;
734
735  -v | -verbose | --verbose | --verbos | --verbo | --verb)
736    verbose=yes ;;
737
738  -version | --version | --versio | --versi | --vers | -V)
739    ac_init_version=: ;;
740
741  -with-* | --with-*)
742    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743    # Reject names that are not valid shell variable names.
744    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745      { echo "$as_me: error: invalid package name: $ac_package" >&2
746   { (exit 1); exit 1; }; }
747    ac_package=`echo $ac_package| sed 's/-/_/g'`
748    case $ac_option in
749      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750      *) ac_optarg=yes ;;
751    esac
752    eval "with_$ac_package='$ac_optarg'" ;;
753
754  -without-* | --without-*)
755    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756    # Reject names that are not valid shell variable names.
757    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758      { echo "$as_me: error: invalid package name: $ac_package" >&2
759   { (exit 1); exit 1; }; }
760    ac_package=`echo $ac_package | sed 's/-/_/g'`
761    eval "with_$ac_package=no" ;;
762
763  --x)
764    # Obsolete; use --with-x.
765    with_x=yes ;;
766
767  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768  | --x-incl | --x-inc | --x-in | --x-i)
769    ac_prev=x_includes ;;
770  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772    x_includes=$ac_optarg ;;
773
774  -x-libraries | --x-libraries | --x-librarie | --x-librari \
775  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776    ac_prev=x_libraries ;;
777  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779    x_libraries=$ac_optarg ;;
780
781  -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783   { (exit 1); exit 1; }; }
784    ;;
785
786  *=*)
787    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788    # Reject names that are not valid shell variable names.
789    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791   { (exit 1); exit 1; }; }
792    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793    eval "$ac_envvar='$ac_optarg'"
794    export $ac_envvar ;;
795
796  *)
797    # FIXME: should be removed in autoconf 3.0.
798    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802    ;;
803
804  esac
805done
806
807if test -n "$ac_prev"; then
808  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809  { echo "$as_me: error: missing argument to $ac_option" >&2
810   { (exit 1); exit 1; }; }
811fi
812
813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816  eval ac_val=$`echo $ac_var`
817  case $ac_val in
818    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820   { (exit 1); exit 1; }; };;
821  esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826	      localstatedir libdir includedir oldincludedir infodir mandir
827do
828  eval ac_val=$`echo $ac_var`
829  case $ac_val in
830    [\\/$]* | ?:[\\/]* ) ;;
831    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832   { (exit 1); exit 1; }; };;
833  esac
834done
835
836# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845  if test "x$build_alias" = x; then
846    cross_compiling=maybe
847    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848    If a cross compiler is detected then cross compile mode will be used." >&2
849  elif test "x$build_alias" != "x$host_alias"; then
850    cross_compiling=yes
851  fi
852fi
853
854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
858
859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862  ac_srcdir_defaulted=yes
863  # Try the directory containing this script, then its parent.
864  ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866	 X"$0" : 'X\(//\)[^/]' \| \
867	 X"$0" : 'X\(//\)$' \| \
868	 X"$0" : 'X\(/\)' \| \
869	 .     : '\(.\)' 2>/dev/null ||
870echo X"$0" |
871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873  	  /^X\(\/\/\)$/{ s//\1/; q; }
874  	  /^X\(\/\).*/{ s//\1/; q; }
875  	  s/.*/./; q'`
876  srcdir=$ac_confdir
877  if test ! -r $srcdir/$ac_unique_file; then
878    srcdir=..
879  fi
880else
881  ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884  if test "$ac_srcdir_defaulted" = yes; then
885    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886   { (exit 1); exit 1; }; }
887  else
888    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889   { (exit 1); exit 1; }; }
890  fi
891fi
892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894   { (exit 1); exit 1; }; }
895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CC_set=${CC+set}
909ac_env_CC_value=$CC
910ac_cv_env_CC_set=${CC+set}
911ac_cv_env_CC_value=$CC
912ac_env_CFLAGS_set=${CFLAGS+set}
913ac_env_CFLAGS_value=$CFLAGS
914ac_cv_env_CFLAGS_set=${CFLAGS+set}
915ac_cv_env_CFLAGS_value=$CFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924ac_env_CPP_set=${CPP+set}
925ac_env_CPP_value=$CPP
926ac_cv_env_CPP_set=${CPP+set}
927ac_cv_env_CPP_value=$CPP
928ac_env_CXX_set=${CXX+set}
929ac_env_CXX_value=$CXX
930ac_cv_env_CXX_set=${CXX+set}
931ac_cv_env_CXX_value=$CXX
932ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933ac_env_CXXFLAGS_value=$CXXFLAGS
934ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936ac_env_CXXCPP_set=${CXXCPP+set}
937ac_env_CXXCPP_value=$CXXCPP
938ac_cv_env_CXXCPP_set=${CXXCPP+set}
939ac_cv_env_CXXCPP_value=$CXXCPP
940ac_env_F77_set=${F77+set}
941ac_env_F77_value=$F77
942ac_cv_env_F77_set=${F77+set}
943ac_cv_env_F77_value=$F77
944ac_env_FFLAGS_set=${FFLAGS+set}
945ac_env_FFLAGS_value=$FFLAGS
946ac_cv_env_FFLAGS_set=${FFLAGS+set}
947ac_cv_env_FFLAGS_value=$FFLAGS
948
949#
950# Report the --help message.
951#
952if test "$ac_init_help" = "long"; then
953  # Omit some internal or obsolete options to make the list less imposing.
954  # This message is too long to be a string in the A/UX 3.1 sh.
955  cat <<_ACEOF
956\`configure' configures this package to adapt to many kinds of systems.
957
958Usage: $0 [OPTION]... [VAR=VALUE]...
959
960To assign environment variables (e.g., CC, CFLAGS...), specify them as
961VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963Defaults for the options are specified in brackets.
964
965Configuration:
966  -h, --help              display this help and exit
967      --help=short        display options specific to this package
968      --help=recursive    display the short help of all the included packages
969  -V, --version           display version information and exit
970  -q, --quiet, --silent   do not print \`checking...' messages
971      --cache-file=FILE   cache test results in FILE [disabled]
972  -C, --config-cache      alias for \`--cache-file=config.cache'
973  -n, --no-create         do not create output files
974      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976_ACEOF
977
978  cat <<_ACEOF
979Installation directories:
980  --prefix=PREFIX         install architecture-independent files in PREFIX
981			  [$ac_default_prefix]
982  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983			  [PREFIX]
984
985By default, \`make install' will install all the files in
986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988for instance \`--prefix=\$HOME'.
989
990For better control, use the options below.
991
992Fine tuning of the installation directories:
993  --bindir=DIR           user executables [EPREFIX/bin]
994  --sbindir=DIR          system admin executables [EPREFIX/sbin]
995  --libexecdir=DIR       program executables [EPREFIX/libexec]
996  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000  --libdir=DIR           object code libraries [EPREFIX/lib]
1001  --includedir=DIR       C header files [PREFIX/include]
1002  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003  --infodir=DIR          info documentation [PREFIX/info]
1004  --mandir=DIR           man documentation [PREFIX/man]
1005_ACEOF
1006
1007  cat <<\_ACEOF
1008
1009Program names:
1010  --program-prefix=PREFIX            prepend PREFIX to installed program names
1011  --program-suffix=SUFFIX            append SUFFIX to installed program names
1012  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1013
1014System types:
1015  --build=BUILD     configure for building on BUILD [guessed]
1016  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1017_ACEOF
1018fi
1019
1020if test -n "$ac_init_help"; then
1021
1022  cat <<\_ACEOF
1023
1024Optional Features:
1025  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027  --disable-dependency-tracking  speeds up one-time build
1028  --enable-dependency-tracking   do not reject slow dependency extractors
1029  --enable-relocatable    install a package that can be moved in the filesystem
1030  --enable-extra-encodings
1031                          add support for a few rarely used encodings
1032  --enable-static[=PKGS]
1033                          build static libraries [default=no]
1034  --enable-shared[=PKGS]
1035                          build shared libraries [default=yes]
1036  --enable-fast-install[=PKGS]
1037                          optimize for fast installation [default=yes]
1038  --disable-libtool-lock  avoid locking (might break parallel builds)
1039  --disable-rpath         do not hardcode runtime library paths
1040  --disable-nls           do not use Native Language Support
1041
1042Optional Packages:
1043  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1046  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1047  --with-pic              try to use only PIC/non-PIC objects [default=use
1048                          both]
1049  --with-tags[=TAGS]
1050                          include additional configurations [automatic]
1051  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1052  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1053  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1054  --without-libintl-prefix     don't search for libintl in includedir and libdir
1055
1056Some influential environment variables:
1057  CC          C compiler command
1058  CFLAGS      C compiler flags
1059  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1060              nonstandard directory <lib dir>
1061  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062              headers in a nonstandard directory <include dir>
1063  CPP         C preprocessor
1064  CXX         C++ compiler command
1065  CXXFLAGS    C++ compiler flags
1066  CXXCPP      C++ preprocessor
1067  F77         Fortran 77 compiler command
1068  FFLAGS      Fortran 77 compiler flags
1069
1070Use these variables to override the choices made by `configure' or to help
1071it to find libraries and programs with nonstandard names/locations.
1072
1073_ACEOF
1074fi
1075
1076if test "$ac_init_help" = "recursive"; then
1077  # If there are subdirs, report their specific --help.
1078  ac_popdir=`pwd`
1079  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080    test -d $ac_dir || continue
1081    ac_builddir=.
1082
1083if test "$ac_dir" != .; then
1084  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085  # A "../" for each directory in $ac_dir_suffix.
1086  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087else
1088  ac_dir_suffix= ac_top_builddir=
1089fi
1090
1091case $srcdir in
1092  .)  # No --srcdir option.  We are building in place.
1093    ac_srcdir=.
1094    if test -z "$ac_top_builddir"; then
1095       ac_top_srcdir=.
1096    else
1097       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098    fi ;;
1099  [\\/]* | ?:[\\/]* )  # Absolute path.
1100    ac_srcdir=$srcdir$ac_dir_suffix;
1101    ac_top_srcdir=$srcdir ;;
1102  *) # Relative path.
1103    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105esac
1106
1107# Do not use `cd foo && pwd` to compute absolute paths, because
1108# the directories may not exist.
1109case `pwd` in
1110.) ac_abs_builddir="$ac_dir";;
1111*)
1112  case "$ac_dir" in
1113  .) ac_abs_builddir=`pwd`;;
1114  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116  esac;;
1117esac
1118case $ac_abs_builddir in
1119.) ac_abs_top_builddir=${ac_top_builddir}.;;
1120*)
1121  case ${ac_top_builddir}. in
1122  .) ac_abs_top_builddir=$ac_abs_builddir;;
1123  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125  esac;;
1126esac
1127case $ac_abs_builddir in
1128.) ac_abs_srcdir=$ac_srcdir;;
1129*)
1130  case $ac_srcdir in
1131  .) ac_abs_srcdir=$ac_abs_builddir;;
1132  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134  esac;;
1135esac
1136case $ac_abs_builddir in
1137.) ac_abs_top_srcdir=$ac_top_srcdir;;
1138*)
1139  case $ac_top_srcdir in
1140  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143  esac;;
1144esac
1145
1146    cd $ac_dir
1147    # Check for guested configure; otherwise get Cygnus style configure.
1148    if test -f $ac_srcdir/configure.gnu; then
1149      echo
1150      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1151    elif test -f $ac_srcdir/configure; then
1152      echo
1153      $SHELL $ac_srcdir/configure  --help=recursive
1154    elif test -f $ac_srcdir/configure.ac ||
1155	   test -f $ac_srcdir/configure.in; then
1156      echo
1157      $ac_configure --help
1158    else
1159      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160    fi
1161    cd $ac_popdir
1162  done
1163fi
1164
1165test -n "$ac_init_help" && exit 0
1166if $ac_init_version; then
1167  cat <<\_ACEOF
1168
1169Copyright (C) 2003 Free Software Foundation, Inc.
1170This configure script is free software; the Free Software Foundation
1171gives unlimited permission to copy, distribute and modify it.
1172_ACEOF
1173  exit 0
1174fi
1175exec 5>config.log
1176cat >&5 <<_ACEOF
1177This file contains any messages produced by compilers while
1178running configure, to aid debugging if configure makes a mistake.
1179
1180It was created by $as_me, which was
1181generated by GNU Autoconf 2.59.  Invocation command line was
1182
1183  $ $0 $@
1184
1185_ACEOF
1186{
1187cat <<_ASUNAME
1188## --------- ##
1189## Platform. ##
1190## --------- ##
1191
1192hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197
1198/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1200
1201/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1202/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1203/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1205/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1206/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1207/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1208
1209_ASUNAME
1210
1211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1212for as_dir in $PATH
1213do
1214  IFS=$as_save_IFS
1215  test -z "$as_dir" && as_dir=.
1216  echo "PATH: $as_dir"
1217done
1218
1219} >&5
1220
1221cat >&5 <<_ACEOF
1222
1223
1224## ----------- ##
1225## Core tests. ##
1226## ----------- ##
1227
1228_ACEOF
1229
1230
1231# Keep a trace of the command line.
1232# Strip out --no-create and --no-recursion so they do not pile up.
1233# Strip out --silent because we don't want to record it for future runs.
1234# Also quote any args containing shell meta-characters.
1235# Make two passes to allow for proper duplicate-argument suppression.
1236ac_configure_args=
1237ac_configure_args0=
1238ac_configure_args1=
1239ac_sep=
1240ac_must_keep_next=false
1241for ac_pass in 1 2
1242do
1243  for ac_arg
1244  do
1245    case $ac_arg in
1246    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248    | -silent | --silent | --silen | --sile | --sil)
1249      continue ;;
1250    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1252    esac
1253    case $ac_pass in
1254    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255    2)
1256      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257      if test $ac_must_keep_next = true; then
1258	ac_must_keep_next=false # Got value, back to normal.
1259      else
1260	case $ac_arg in
1261	  *=* | --config-cache | -C | -disable-* | --disable-* \
1262	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264	  | -with-* | --with-* | -without-* | --without-* | --x)
1265	    case "$ac_configure_args0 " in
1266	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1267	    esac
1268	    ;;
1269	  -* ) ac_must_keep_next=true ;;
1270	esac
1271      fi
1272      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273      # Get rid of the leading space.
1274      ac_sep=" "
1275      ;;
1276    esac
1277  done
1278done
1279$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1281
1282# When interrupted or exit'd, cleanup temporary files, and complete
1283# config.log.  We remove comments because anyway the quotes in there
1284# would cause problems or look ugly.
1285# WARNING: Be sure not to use single quotes in there, as some shells,
1286# such as our DU 5.0 friend, will then `close' the trap.
1287trap 'exit_status=$?
1288  # Save into config.log some information that might help in debugging.
1289  {
1290    echo
1291
1292    cat <<\_ASBOX
1293## ---------------- ##
1294## Cache variables. ##
1295## ---------------- ##
1296_ASBOX
1297    echo
1298    # The following way of writing the cache mishandles newlines in values,
1299{
1300  (set) 2>&1 |
1301    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302    *ac_space=\ *)
1303      sed -n \
1304	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1306      ;;
1307    *)
1308      sed -n \
1309	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1310      ;;
1311    esac;
1312}
1313    echo
1314
1315    cat <<\_ASBOX
1316## ----------------- ##
1317## Output variables. ##
1318## ----------------- ##
1319_ASBOX
1320    echo
1321    for ac_var in $ac_subst_vars
1322    do
1323      eval ac_val=$`echo $ac_var`
1324      echo "$ac_var='"'"'$ac_val'"'"'"
1325    done | sort
1326    echo
1327
1328    if test -n "$ac_subst_files"; then
1329      cat <<\_ASBOX
1330## ------------- ##
1331## Output files. ##
1332## ------------- ##
1333_ASBOX
1334      echo
1335      for ac_var in $ac_subst_files
1336      do
1337	eval ac_val=$`echo $ac_var`
1338	echo "$ac_var='"'"'$ac_val'"'"'"
1339      done | sort
1340      echo
1341    fi
1342
1343    if test -s confdefs.h; then
1344      cat <<\_ASBOX
1345## ----------- ##
1346## confdefs.h. ##
1347## ----------- ##
1348_ASBOX
1349      echo
1350      sed "/^$/d" confdefs.h | sort
1351      echo
1352    fi
1353    test "$ac_signal" != 0 &&
1354      echo "$as_me: caught signal $ac_signal"
1355    echo "$as_me: exit $exit_status"
1356  } >&5
1357  rm -f core *.core &&
1358  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1359    exit $exit_status
1360     ' 0
1361for ac_signal in 1 2 13 15; do
1362  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1363done
1364ac_signal=0
1365
1366# confdefs.h avoids OS command line length limits that DEFS can exceed.
1367rm -rf conftest* confdefs.h
1368# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369echo >confdefs.h
1370
1371# Predefined preprocessor variables.
1372
1373cat >>confdefs.h <<_ACEOF
1374#define PACKAGE_NAME "$PACKAGE_NAME"
1375_ACEOF
1376
1377
1378cat >>confdefs.h <<_ACEOF
1379#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1380_ACEOF
1381
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_VERSION "$PACKAGE_VERSION"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_STRING "$PACKAGE_STRING"
1390_ACEOF
1391
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1395_ACEOF
1396
1397
1398# Let the site file select an alternate cache file if it wants to.
1399# Prefer explicitly selected file to automatically selected ones.
1400if test -z "$CONFIG_SITE"; then
1401  if test "x$prefix" != xNONE; then
1402    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1403  else
1404    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405  fi
1406fi
1407for ac_site_file in $CONFIG_SITE; do
1408  if test -r "$ac_site_file"; then
1409    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410echo "$as_me: loading site script $ac_site_file" >&6;}
1411    sed 's/^/| /' "$ac_site_file" >&5
1412    . "$ac_site_file"
1413  fi
1414done
1415
1416if test -r "$cache_file"; then
1417  # Some versions of bash will fail to source /dev/null (special
1418  # files actually), so we avoid doing that.
1419  if test -f "$cache_file"; then
1420    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421echo "$as_me: loading cache $cache_file" >&6;}
1422    case $cache_file in
1423      [\\/]* | ?:[\\/]* ) . $cache_file;;
1424      *)                      . ./$cache_file;;
1425    esac
1426  fi
1427else
1428  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429echo "$as_me: creating cache $cache_file" >&6;}
1430  >$cache_file
1431fi
1432
1433# Check that the precious variables saved in the cache have kept the same
1434# value.
1435ac_cache_corrupted=false
1436for ac_var in `(set) 2>&1 |
1437	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1438  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439  eval ac_new_set=\$ac_env_${ac_var}_set
1440  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441  eval ac_new_val="\$ac_env_${ac_var}_value"
1442  case $ac_old_set,$ac_new_set in
1443    set,)
1444      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446      ac_cache_corrupted=: ;;
1447    ,set)
1448      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450      ac_cache_corrupted=: ;;
1451    ,);;
1452    *)
1453      if test "x$ac_old_val" != "x$ac_new_val"; then
1454	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1455echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1456	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1457echo "$as_me:   former value:  $ac_old_val" >&2;}
1458	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1459echo "$as_me:   current value: $ac_new_val" >&2;}
1460	ac_cache_corrupted=:
1461      fi;;
1462  esac
1463  # Pass precious variables to config.status.
1464  if test "$ac_new_set" = set; then
1465    case $ac_new_val in
1466    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468    *) ac_arg=$ac_var=$ac_new_val ;;
1469    esac
1470    case " $ac_configure_args " in
1471      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1472      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1473    esac
1474  fi
1475done
1476if $ac_cache_corrupted; then
1477  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1478echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1479  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1480echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1481   { (exit 1); exit 1; }; }
1482fi
1483
1484ac_ext=c
1485ac_cpp='$CPP $CPPFLAGS'
1486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488ac_compiler_gnu=$ac_cv_c_compiler_gnu
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509ac_aux_dir=
1510for ac_dir in build-aux $srcdir/build-aux; do
1511  if test -f $ac_dir/install-sh; then
1512    ac_aux_dir=$ac_dir
1513    ac_install_sh="$ac_aux_dir/install-sh -c"
1514    break
1515  elif test -f $ac_dir/install.sh; then
1516    ac_aux_dir=$ac_dir
1517    ac_install_sh="$ac_aux_dir/install.sh -c"
1518    break
1519  elif test -f $ac_dir/shtool; then
1520    ac_aux_dir=$ac_dir
1521    ac_install_sh="$ac_aux_dir/shtool install -c"
1522    break
1523  fi
1524done
1525if test -z "$ac_aux_dir"; then
1526  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux $srcdir/build-aux" >&5
1527echo "$as_me: error: cannot find install-sh or install.sh in build-aux $srcdir/build-aux" >&2;}
1528   { (exit 1); exit 1; }; }
1529fi
1530ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1531ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1532ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1533
1534am__api_version="1.9"
1535# Find a good install program.  We prefer a C program (faster),
1536# so one script is as good as another.  But avoid the broken or
1537# incompatible versions:
1538# SysV /etc/install, /usr/sbin/install
1539# SunOS /usr/etc/install
1540# IRIX /sbin/install
1541# AIX /bin/install
1542# AmigaOS /C/install, which installs bootblocks on floppy discs
1543# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1544# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1545# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1546# OS/2's system install, which has a completely different semantic
1547# ./install, which can be erroneously created by make from ./install.sh.
1548echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1549echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1550if test -z "$INSTALL"; then
1551if test "${ac_cv_path_install+set}" = set; then
1552  echo $ECHO_N "(cached) $ECHO_C" >&6
1553else
1554  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555for as_dir in $PATH
1556do
1557  IFS=$as_save_IFS
1558  test -z "$as_dir" && as_dir=.
1559  # Account for people who put trailing slashes in PATH elements.
1560case $as_dir/ in
1561  ./ | .// | /cC/* | \
1562  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1563  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1564  /usr/ucb/* ) ;;
1565  *)
1566    # OSF1 and SCO ODT 3.0 have their own names for install.
1567    # Don't use installbsd from OSF since it installs stuff as root
1568    # by default.
1569    for ac_prog in ginstall scoinst install; do
1570      for ac_exec_ext in '' $ac_executable_extensions; do
1571	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1572	  if test $ac_prog = install &&
1573	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1574	    # AIX install.  It has an incompatible calling convention.
1575	    :
1576	  elif test $ac_prog = install &&
1577	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1578	    # program-specific install script used by HP pwplus--don't use.
1579	    :
1580	  else
1581	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1582	    break 3
1583	  fi
1584	fi
1585      done
1586    done
1587    ;;
1588esac
1589done
1590
1591
1592fi
1593  if test "${ac_cv_path_install+set}" = set; then
1594    INSTALL=$ac_cv_path_install
1595  else
1596    # As a last resort, use the slow shell script.  We don't cache a
1597    # path for INSTALL within a source directory, because that will
1598    # break other packages using the cache if that directory is
1599    # removed, or if the path is relative.
1600    INSTALL=$ac_install_sh
1601  fi
1602fi
1603echo "$as_me:$LINENO: result: $INSTALL" >&5
1604echo "${ECHO_T}$INSTALL" >&6
1605
1606# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1607# It thinks the first close brace ends the variable substitution.
1608test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1609
1610test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1611
1612test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1613
1614echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1615echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1616# Just in case
1617sleep 1
1618echo timestamp > conftest.file
1619# Do `set' in a subshell so we don't clobber the current shell's
1620# arguments.  Must try -L first in case configure is actually a
1621# symlink; some systems play weird games with the mod time of symlinks
1622# (eg FreeBSD returns the mod time of the symlink's containing
1623# directory).
1624if (
1625   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1626   if test "$*" = "X"; then
1627      # -L didn't work.
1628      set X `ls -t $srcdir/configure conftest.file`
1629   fi
1630   rm -f conftest.file
1631   if test "$*" != "X $srcdir/configure conftest.file" \
1632      && test "$*" != "X conftest.file $srcdir/configure"; then
1633
1634      # If neither matched, then we have a broken ls.  This can happen
1635      # if, for instance, CONFIG_SHELL is bash and it inherits a
1636      # broken ls alias from the environment.  This has actually
1637      # happened.  Such a system could not be considered "sane".
1638      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1639alias in your environment" >&5
1640echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1641alias in your environment" >&2;}
1642   { (exit 1); exit 1; }; }
1643   fi
1644
1645   test "$2" = conftest.file
1646   )
1647then
1648   # Ok.
1649   :
1650else
1651   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1652Check your system clock" >&5
1653echo "$as_me: error: newly created file is older than distributed files!
1654Check your system clock" >&2;}
1655   { (exit 1); exit 1; }; }
1656fi
1657echo "$as_me:$LINENO: result: yes" >&5
1658echo "${ECHO_T}yes" >&6
1659test "$program_prefix" != NONE &&
1660  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1661# Use a double $ so make ignores it.
1662test "$program_suffix" != NONE &&
1663  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1664# Double any \ or $.  echo might interpret backslashes.
1665# By default was `s,x,x', remove it if useless.
1666cat <<\_ACEOF >conftest.sed
1667s/[\\$]/&&/g;s/;s,x,x,$//
1668_ACEOF
1669program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1670rm conftest.sed
1671
1672# expand $ac_aux_dir to an absolute path
1673am_aux_dir=`cd $ac_aux_dir && pwd`
1674
1675test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1676# Use eval to expand $SHELL
1677if eval "$MISSING --run true"; then
1678  am_missing_run="$MISSING --run "
1679else
1680  am_missing_run=
1681  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1682echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1683fi
1684
1685if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1686  # We used to keeping the `.' as first argument, in order to
1687  # allow $(mkdir_p) to be used without argument.  As in
1688  #   $(mkdir_p) $(somedir)
1689  # where $(somedir) is conditionally defined.  However this is wrong
1690  # for two reasons:
1691  #  1. if the package is installed by a user who cannot write `.'
1692  #     make install will fail,
1693  #  2. the above comment should most certainly read
1694  #     $(mkdir_p) $(DESTDIR)$(somedir)
1695  #     so it does not work when $(somedir) is undefined and
1696  #     $(DESTDIR) is not.
1697  #  To support the latter case, we have to write
1698  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1699  #  so the `.' trick is pointless.
1700  mkdir_p='mkdir -p --'
1701else
1702  # On NextStep and OpenStep, the `mkdir' command does not
1703  # recognize any option.  It will interpret all options as
1704  # directories to create, and then abort because `.' already
1705  # exists.
1706  for d in ./-p ./--version;
1707  do
1708    test -d $d && rmdir $d
1709  done
1710  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1711  if test -f "$ac_aux_dir/mkinstalldirs"; then
1712    mkdir_p='$(mkinstalldirs)'
1713  else
1714    mkdir_p='$(install_sh) -d'
1715  fi
1716fi
1717
1718for ac_prog in gawk mawk nawk awk
1719do
1720  # Extract the first word of "$ac_prog", so it can be a program name with args.
1721set dummy $ac_prog; ac_word=$2
1722echo "$as_me:$LINENO: checking for $ac_word" >&5
1723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724if test "${ac_cv_prog_AWK+set}" = set; then
1725  echo $ECHO_N "(cached) $ECHO_C" >&6
1726else
1727  if test -n "$AWK"; then
1728  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1729else
1730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731for as_dir in $PATH
1732do
1733  IFS=$as_save_IFS
1734  test -z "$as_dir" && as_dir=.
1735  for ac_exec_ext in '' $ac_executable_extensions; do
1736  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737    ac_cv_prog_AWK="$ac_prog"
1738    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739    break 2
1740  fi
1741done
1742done
1743
1744fi
1745fi
1746AWK=$ac_cv_prog_AWK
1747if test -n "$AWK"; then
1748  echo "$as_me:$LINENO: result: $AWK" >&5
1749echo "${ECHO_T}$AWK" >&6
1750else
1751  echo "$as_me:$LINENO: result: no" >&5
1752echo "${ECHO_T}no" >&6
1753fi
1754
1755  test -n "$AWK" && break
1756done
1757
1758echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1759echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1760set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1761if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1762  echo $ECHO_N "(cached) $ECHO_C" >&6
1763else
1764  cat >conftest.make <<\_ACEOF
1765all:
1766	@echo 'ac_maketemp="$(MAKE)"'
1767_ACEOF
1768# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1769eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1770if test -n "$ac_maketemp"; then
1771  eval ac_cv_prog_make_${ac_make}_set=yes
1772else
1773  eval ac_cv_prog_make_${ac_make}_set=no
1774fi
1775rm -f conftest.make
1776fi
1777if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1778  echo "$as_me:$LINENO: result: yes" >&5
1779echo "${ECHO_T}yes" >&6
1780  SET_MAKE=
1781else
1782  echo "$as_me:$LINENO: result: no" >&5
1783echo "${ECHO_T}no" >&6
1784  SET_MAKE="MAKE=${MAKE-make}"
1785fi
1786
1787rm -rf .tst 2>/dev/null
1788mkdir .tst 2>/dev/null
1789if test -d .tst; then
1790  am__leading_dot=.
1791else
1792  am__leading_dot=_
1793fi
1794rmdir .tst 2>/dev/null
1795
1796# test to see if srcdir already configured
1797if test "`cd $srcdir && pwd`" != "`pwd`" &&
1798   test -f $srcdir/config.status; then
1799  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1800echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1801   { (exit 1); exit 1; }; }
1802fi
1803
1804# test whether we have cygpath
1805if test -z "$CYGPATH_W"; then
1806  if (cygpath --version) >/dev/null 2>/dev/null; then
1807    CYGPATH_W='cygpath -w'
1808  else
1809    CYGPATH_W=echo
1810  fi
1811fi
1812
1813
1814# Define the identity of the package.
1815 PACKAGE=libiconv
1816 VERSION=1.10
1817
1818
1819cat >>confdefs.h <<_ACEOF
1820#define PACKAGE "$PACKAGE"
1821_ACEOF
1822
1823
1824cat >>confdefs.h <<_ACEOF
1825#define VERSION "$VERSION"
1826_ACEOF
1827
1828# Some tools Automake needs.
1829
1830ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1831
1832
1833AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1834
1835
1836AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1837
1838
1839AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1840
1841
1842MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1843
1844install_sh=${install_sh-"$am_aux_dir/install-sh"}
1845
1846# Installed binaries are usually stripped using `strip' when the user
1847# run `make install-strip'.  However `strip' might not be the right
1848# tool to use in cross-compilation environments, therefore Automake
1849# will honor the `STRIP' environment variable to overrule this program.
1850if test "$cross_compiling" != no; then
1851  if test -n "$ac_tool_prefix"; then
1852  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1853set dummy ${ac_tool_prefix}strip; ac_word=$2
1854echo "$as_me:$LINENO: checking for $ac_word" >&5
1855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856if test "${ac_cv_prog_STRIP+set}" = set; then
1857  echo $ECHO_N "(cached) $ECHO_C" >&6
1858else
1859  if test -n "$STRIP"; then
1860  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1861else
1862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863for as_dir in $PATH
1864do
1865  IFS=$as_save_IFS
1866  test -z "$as_dir" && as_dir=.
1867  for ac_exec_ext in '' $ac_executable_extensions; do
1868  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1870    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871    break 2
1872  fi
1873done
1874done
1875
1876fi
1877fi
1878STRIP=$ac_cv_prog_STRIP
1879if test -n "$STRIP"; then
1880  echo "$as_me:$LINENO: result: $STRIP" >&5
1881echo "${ECHO_T}$STRIP" >&6
1882else
1883  echo "$as_me:$LINENO: result: no" >&5
1884echo "${ECHO_T}no" >&6
1885fi
1886
1887fi
1888if test -z "$ac_cv_prog_STRIP"; then
1889  ac_ct_STRIP=$STRIP
1890  # Extract the first word of "strip", so it can be a program name with args.
1891set dummy strip; ac_word=$2
1892echo "$as_me:$LINENO: checking for $ac_word" >&5
1893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1895  echo $ECHO_N "(cached) $ECHO_C" >&6
1896else
1897  if test -n "$ac_ct_STRIP"; then
1898  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1899else
1900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901for as_dir in $PATH
1902do
1903  IFS=$as_save_IFS
1904  test -z "$as_dir" && as_dir=.
1905  for ac_exec_ext in '' $ac_executable_extensions; do
1906  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907    ac_cv_prog_ac_ct_STRIP="strip"
1908    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909    break 2
1910  fi
1911done
1912done
1913
1914  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1915fi
1916fi
1917ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1918if test -n "$ac_ct_STRIP"; then
1919  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1920echo "${ECHO_T}$ac_ct_STRIP" >&6
1921else
1922  echo "$as_me:$LINENO: result: no" >&5
1923echo "${ECHO_T}no" >&6
1924fi
1925
1926  STRIP=$ac_ct_STRIP
1927else
1928  STRIP="$ac_cv_prog_STRIP"
1929fi
1930
1931fi
1932INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1933
1934# We need awk for the "check" target.  The system "awk" is bad on
1935# some platforms.
1936# Always define AMTAR for backward compatibility.
1937
1938AMTAR=${AMTAR-"${am_missing_run}tar"}
1939
1940am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1941
1942
1943
1944
1945
1946                    ac_config_headers="$ac_config_headers config.h lib/config.h"
1947
1948echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1949echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1950set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1951if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1952  echo $ECHO_N "(cached) $ECHO_C" >&6
1953else
1954  cat >conftest.make <<\_ACEOF
1955all:
1956	@echo 'ac_maketemp="$(MAKE)"'
1957_ACEOF
1958# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1959eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1960if test -n "$ac_maketemp"; then
1961  eval ac_cv_prog_make_${ac_make}_set=yes
1962else
1963  eval ac_cv_prog_make_${ac_make}_set=no
1964fi
1965rm -f conftest.make
1966fi
1967if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1968  echo "$as_me:$LINENO: result: yes" >&5
1969echo "${ECHO_T}yes" >&6
1970  SET_MAKE=
1971else
1972  echo "$as_me:$LINENO: result: no" >&5
1973echo "${ECHO_T}no" >&6
1974  SET_MAKE="MAKE=${MAKE-make}"
1975fi
1976
1977
1978
1979test "$mandir" != '${prefix}/man' || mandir='${datadir}/man'
1980
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
3086ac_ext=c
3087ac_cpp='$CPP $CPPFLAGS'
3088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3090ac_compiler_gnu=$ac_cv_c_compiler_gnu
3091echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3092echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3093# On Suns, sometimes $CPP names a directory.
3094if test -n "$CPP" && test -d "$CPP"; then
3095  CPP=
3096fi
3097if test -z "$CPP"; then
3098  if test "${ac_cv_prog_CPP+set}" = set; then
3099  echo $ECHO_N "(cached) $ECHO_C" >&6
3100else
3101      # Double quotes because CPP needs to be expanded
3102    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3103    do
3104      ac_preproc_ok=false
3105for ac_c_preproc_warn_flag in '' yes
3106do
3107  # Use a header file that comes with gcc, so configuring glibc
3108  # with a fresh cross-compiler works.
3109  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3110  # <limits.h> exists even on freestanding compilers.
3111  # On the NeXT, cc -E runs the code through the compiler's parser,
3112  # not just through cpp. "Syntax error" is here to catch this case.
3113  cat >conftest.$ac_ext <<_ACEOF
3114/* confdefs.h.  */
3115_ACEOF
3116cat confdefs.h >>conftest.$ac_ext
3117cat >>conftest.$ac_ext <<_ACEOF
3118/* end confdefs.h.  */
3119#ifdef __STDC__
3120# include <limits.h>
3121#else
3122# include <assert.h>
3123#endif
3124		     Syntax error
3125_ACEOF
3126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3127  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3128  ac_status=$?
3129  grep -v '^ *+' conftest.er1 >conftest.err
3130  rm -f conftest.er1
3131  cat conftest.err >&5
3132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133  (exit $ac_status); } >/dev/null; then
3134  if test -s conftest.err; then
3135    ac_cpp_err=$ac_c_preproc_warn_flag
3136    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3137  else
3138    ac_cpp_err=
3139  fi
3140else
3141  ac_cpp_err=yes
3142fi
3143if test -z "$ac_cpp_err"; then
3144  :
3145else
3146  echo "$as_me: failed program was:" >&5
3147sed 's/^/| /' conftest.$ac_ext >&5
3148
3149  # Broken: fails on valid input.
3150continue
3151fi
3152rm -f conftest.err conftest.$ac_ext
3153
3154  # OK, works on sane cases.  Now check whether non-existent headers
3155  # can be detected and how.
3156  cat >conftest.$ac_ext <<_ACEOF
3157/* confdefs.h.  */
3158_ACEOF
3159cat confdefs.h >>conftest.$ac_ext
3160cat >>conftest.$ac_ext <<_ACEOF
3161/* end confdefs.h.  */
3162#include <ac_nonexistent.h>
3163_ACEOF
3164if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3165  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3166  ac_status=$?
3167  grep -v '^ *+' conftest.er1 >conftest.err
3168  rm -f conftest.er1
3169  cat conftest.err >&5
3170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171  (exit $ac_status); } >/dev/null; then
3172  if test -s conftest.err; then
3173    ac_cpp_err=$ac_c_preproc_warn_flag
3174    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3175  else
3176    ac_cpp_err=
3177  fi
3178else
3179  ac_cpp_err=yes
3180fi
3181if test -z "$ac_cpp_err"; then
3182  # Broken: success on invalid input.
3183continue
3184else
3185  echo "$as_me: failed program was:" >&5
3186sed 's/^/| /' conftest.$ac_ext >&5
3187
3188  # Passes both tests.
3189ac_preproc_ok=:
3190break
3191fi
3192rm -f conftest.err conftest.$ac_ext
3193
3194done
3195# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3196rm -f conftest.err conftest.$ac_ext
3197if $ac_preproc_ok; then
3198  break
3199fi
3200
3201    done
3202    ac_cv_prog_CPP=$CPP
3203
3204fi
3205  CPP=$ac_cv_prog_CPP
3206else
3207  ac_cv_prog_CPP=$CPP
3208fi
3209echo "$as_me:$LINENO: result: $CPP" >&5
3210echo "${ECHO_T}$CPP" >&6
3211ac_preproc_ok=false
3212for ac_c_preproc_warn_flag in '' yes
3213do
3214  # Use a header file that comes with gcc, so configuring glibc
3215  # with a fresh cross-compiler works.
3216  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3217  # <limits.h> exists even on freestanding compilers.
3218  # On the NeXT, cc -E runs the code through the compiler's parser,
3219  # not just through cpp. "Syntax error" is here to catch this case.
3220  cat >conftest.$ac_ext <<_ACEOF
3221/* confdefs.h.  */
3222_ACEOF
3223cat confdefs.h >>conftest.$ac_ext
3224cat >>conftest.$ac_ext <<_ACEOF
3225/* end confdefs.h.  */
3226#ifdef __STDC__
3227# include <limits.h>
3228#else
3229# include <assert.h>
3230#endif
3231		     Syntax error
3232_ACEOF
3233if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3234  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3235  ac_status=$?
3236  grep -v '^ *+' conftest.er1 >conftest.err
3237  rm -f conftest.er1
3238  cat conftest.err >&5
3239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240  (exit $ac_status); } >/dev/null; then
3241  if test -s conftest.err; then
3242    ac_cpp_err=$ac_c_preproc_warn_flag
3243    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3244  else
3245    ac_cpp_err=
3246  fi
3247else
3248  ac_cpp_err=yes
3249fi
3250if test -z "$ac_cpp_err"; then
3251  :
3252else
3253  echo "$as_me: failed program was:" >&5
3254sed 's/^/| /' conftest.$ac_ext >&5
3255
3256  # Broken: fails on valid input.
3257continue
3258fi
3259rm -f conftest.err conftest.$ac_ext
3260
3261  # OK, works on sane cases.  Now check whether non-existent headers
3262  # can be detected and how.
3263  cat >conftest.$ac_ext <<_ACEOF
3264/* confdefs.h.  */
3265_ACEOF
3266cat confdefs.h >>conftest.$ac_ext
3267cat >>conftest.$ac_ext <<_ACEOF
3268/* end confdefs.h.  */
3269#include <ac_nonexistent.h>
3270_ACEOF
3271if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3272  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3273  ac_status=$?
3274  grep -v '^ *+' conftest.er1 >conftest.err
3275  rm -f conftest.er1
3276  cat conftest.err >&5
3277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278  (exit $ac_status); } >/dev/null; then
3279  if test -s conftest.err; then
3280    ac_cpp_err=$ac_c_preproc_warn_flag
3281    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3282  else
3283    ac_cpp_err=
3284  fi
3285else
3286  ac_cpp_err=yes
3287fi
3288if test -z "$ac_cpp_err"; then
3289  # Broken: success on invalid input.
3290continue
3291else
3292  echo "$as_me: failed program was:" >&5
3293sed 's/^/| /' conftest.$ac_ext >&5
3294
3295  # Passes both tests.
3296ac_preproc_ok=:
3297break
3298fi
3299rm -f conftest.err conftest.$ac_ext
3300
3301done
3302# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3303rm -f conftest.err conftest.$ac_ext
3304if $ac_preproc_ok; then
3305  :
3306else
3307  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3308See \`config.log' for more details." >&5
3309echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3310See \`config.log' for more details." >&2;}
3311   { (exit 1); exit 1; }; }
3312fi
3313
3314ac_ext=c
3315ac_cpp='$CPP $CPPFLAGS'
3316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319
3320
3321
3322echo "$as_me:$LINENO: checking for egrep" >&5
3323echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3324if test "${ac_cv_prog_egrep+set}" = set; then
3325  echo $ECHO_N "(cached) $ECHO_C" >&6
3326else
3327  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3328    then ac_cv_prog_egrep='grep -E'
3329    else ac_cv_prog_egrep='egrep'
3330    fi
3331fi
3332echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3333echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3334 EGREP=$ac_cv_prog_egrep
3335
3336
3337if test $ac_cv_c_compiler_gnu = yes; then
3338    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3339echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3340if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3341  echo $ECHO_N "(cached) $ECHO_C" >&6
3342else
3343    ac_pattern="Autoconf.*'x'"
3344  cat >conftest.$ac_ext <<_ACEOF
3345/* confdefs.h.  */
3346_ACEOF
3347cat confdefs.h >>conftest.$ac_ext
3348cat >>conftest.$ac_ext <<_ACEOF
3349/* end confdefs.h.  */
3350#include <sgtty.h>
3351Autoconf TIOCGETP
3352_ACEOF
3353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3354  $EGREP "$ac_pattern" >/dev/null 2>&1; then
3355  ac_cv_prog_gcc_traditional=yes
3356else
3357  ac_cv_prog_gcc_traditional=no
3358fi
3359rm -f conftest*
3360
3361
3362  if test $ac_cv_prog_gcc_traditional = no; then
3363    cat >conftest.$ac_ext <<_ACEOF
3364/* confdefs.h.  */
3365_ACEOF
3366cat confdefs.h >>conftest.$ac_ext
3367cat >>conftest.$ac_ext <<_ACEOF
3368/* end confdefs.h.  */
3369#include <termio.h>
3370Autoconf TCGETA
3371_ACEOF
3372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3373  $EGREP "$ac_pattern" >/dev/null 2>&1; then
3374  ac_cv_prog_gcc_traditional=yes
3375fi
3376rm -f conftest*
3377
3378  fi
3379fi
3380echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3381echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3382  if test $ac_cv_prog_gcc_traditional = yes; then
3383    CC="$CC -traditional"
3384  fi
3385fi
3386
3387# Find a good install program.  We prefer a C program (faster),
3388# so one script is as good as another.  But avoid the broken or
3389# incompatible versions:
3390# SysV /etc/install, /usr/sbin/install
3391# SunOS /usr/etc/install
3392# IRIX /sbin/install
3393# AIX /bin/install
3394# AmigaOS /C/install, which installs bootblocks on floppy discs
3395# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3396# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3397# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3398# OS/2's system install, which has a completely different semantic
3399# ./install, which can be erroneously created by make from ./install.sh.
3400echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3401echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3402if test -z "$INSTALL"; then
3403if test "${ac_cv_path_install+set}" = set; then
3404  echo $ECHO_N "(cached) $ECHO_C" >&6
3405else
3406  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407for as_dir in $PATH
3408do
3409  IFS=$as_save_IFS
3410  test -z "$as_dir" && as_dir=.
3411  # Account for people who put trailing slashes in PATH elements.
3412case $as_dir/ in
3413  ./ | .// | /cC/* | \
3414  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3415  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3416  /usr/ucb/* ) ;;
3417  *)
3418    # OSF1 and SCO ODT 3.0 have their own names for install.
3419    # Don't use installbsd from OSF since it installs stuff as root
3420    # by default.
3421    for ac_prog in ginstall scoinst install; do
3422      for ac_exec_ext in '' $ac_executable_extensions; do
3423	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3424	  if test $ac_prog = install &&
3425	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3426	    # AIX install.  It has an incompatible calling convention.
3427	    :
3428	  elif test $ac_prog = install &&
3429	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3430	    # program-specific install script used by HP pwplus--don't use.
3431	    :
3432	  else
3433	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3434	    break 3
3435	  fi
3436	fi
3437      done
3438    done
3439    ;;
3440esac
3441done
3442
3443
3444fi
3445  if test "${ac_cv_path_install+set}" = set; then
3446    INSTALL=$ac_cv_path_install
3447  else
3448    # As a last resort, use the slow shell script.  We don't cache a
3449    # path for INSTALL within a source directory, because that will
3450    # break other packages using the cache if that directory is
3451    # removed, or if the path is relative.
3452    INSTALL=$ac_install_sh
3453  fi
3454fi
3455echo "$as_me:$LINENO: result: $INSTALL" >&5
3456echo "${ECHO_T}$INSTALL" >&6
3457
3458# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3459# It thinks the first close brace ends the variable substitution.
3460test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3461
3462test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3463
3464test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3465
3466
3467
3468# Make sure we can run config.sub.
3469$ac_config_sub sun4 >/dev/null 2>&1 ||
3470  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3471echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3472   { (exit 1); exit 1; }; }
3473
3474echo "$as_me:$LINENO: checking build system type" >&5
3475echo $ECHO_N "checking build system type... $ECHO_C" >&6
3476if test "${ac_cv_build+set}" = set; then
3477  echo $ECHO_N "(cached) $ECHO_C" >&6
3478else
3479  ac_cv_build_alias=$build_alias
3480test -z "$ac_cv_build_alias" &&
3481  ac_cv_build_alias=`$ac_config_guess`
3482test -z "$ac_cv_build_alias" &&
3483  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3484echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3485   { (exit 1); exit 1; }; }
3486ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3487  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3488echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3489   { (exit 1); exit 1; }; }
3490
3491fi
3492echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3493echo "${ECHO_T}$ac_cv_build" >&6
3494build=$ac_cv_build
3495build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3496build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3497build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3498
3499
3500echo "$as_me:$LINENO: checking host system type" >&5
3501echo $ECHO_N "checking host system type... $ECHO_C" >&6
3502if test "${ac_cv_host+set}" = set; then
3503  echo $ECHO_N "(cached) $ECHO_C" >&6
3504else
3505  ac_cv_host_alias=$host_alias
3506test -z "$ac_cv_host_alias" &&
3507  ac_cv_host_alias=$ac_cv_build_alias
3508ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3509  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3510echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3511   { (exit 1); exit 1; }; }
3512
3513fi
3514echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3515echo "${ECHO_T}$ac_cv_host" >&6
3516host=$ac_cv_host
3517host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3518host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3519host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3520
3521
3522
3523
3524
3525# Check whether --with-gnu-ld or --without-gnu-ld was given.
3526if test "${with_gnu_ld+set}" = set; then
3527  withval="$with_gnu_ld"
3528  test "$withval" = no || with_gnu_ld=yes
3529else
3530  with_gnu_ld=no
3531fi;
3532# Prepare PATH_SEPARATOR.
3533# The user is always right.
3534if test "${PATH_SEPARATOR+set}" != set; then
3535  echo "#! /bin/sh" >conf$$.sh
3536  echo  "exit 0"   >>conf$$.sh
3537  chmod +x conf$$.sh
3538  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3539    PATH_SEPARATOR=';'
3540  else
3541    PATH_SEPARATOR=:
3542  fi
3543  rm -f conf$$.sh
3544fi
3545ac_prog=ld
3546if test "$GCC" = yes; then
3547  # Check if gcc -print-prog-name=ld gives a path.
3548  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3549echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3550  case $host in
3551  *-*-mingw*)
3552    # gcc leaves a trailing carriage return which upsets mingw
3553    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3554  *)
3555    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3556  esac
3557  case $ac_prog in
3558    # Accept absolute paths.
3559    [\\/]* | [A-Za-z]:[\\/]*)
3560      re_direlt='/[^/][^/]*/\.\./'
3561      # Canonicalize the path of ld
3562      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3563      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3564	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3565      done
3566      test -z "$LD" && LD="$ac_prog"
3567      ;;
3568  "")
3569    # If it fails, then pretend we aren't using GCC.
3570    ac_prog=ld
3571    ;;
3572  *)
3573    # If it is relative, then search for the first ld in PATH.
3574    with_gnu_ld=unknown
3575    ;;
3576  esac
3577elif test "$with_gnu_ld" = yes; then
3578  echo "$as_me:$LINENO: checking for GNU ld" >&5
3579echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3580else
3581  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3582echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3583fi
3584if test "${acl_cv_path_LD+set}" = set; then
3585  echo $ECHO_N "(cached) $ECHO_C" >&6
3586else
3587  if test -z "$LD"; then
3588  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3589  for ac_dir in $PATH; do
3590    test -z "$ac_dir" && ac_dir=.
3591    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3592      acl_cv_path_LD="$ac_dir/$ac_prog"
3593      # Check to see if the program is GNU ld.  I'd rather use --version,
3594      # but apparently some GNU ld's only accept -v.
3595      # Break only if it was the GNU/non-GNU ld that we prefer.
3596      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
3597      *GNU* | *'with BFD'*)
3598	test "$with_gnu_ld" != no && break ;;
3599      *)
3600	test "$with_gnu_ld" != yes && break ;;
3601      esac
3602    fi
3603  done
3604  IFS="$ac_save_ifs"
3605else
3606  acl_cv_path_LD="$LD" # Let the user override the test with a path.
3607fi
3608fi
3609
3610LD="$acl_cv_path_LD"
3611if test -n "$LD"; then
3612  echo "$as_me:$LINENO: result: $LD" >&5
3613echo "${ECHO_T}$LD" >&6
3614else
3615  echo "$as_me:$LINENO: result: no" >&5
3616echo "${ECHO_T}no" >&6
3617fi
3618test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3619echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3620   { (exit 1); exit 1; }; }
3621echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3622echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3623if test "${acl_cv_prog_gnu_ld+set}" = set; then
3624  echo $ECHO_N "(cached) $ECHO_C" >&6
3625else
3626  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3627case `$LD -v 2>&1 </dev/null` in
3628*GNU* | *'with BFD'*)
3629  acl_cv_prog_gnu_ld=yes ;;
3630*)
3631  acl_cv_prog_gnu_ld=no ;;
3632esac
3633fi
3634echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
3635echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
3636with_gnu_ld=$acl_cv_prog_gnu_ld
3637
3638
3639
3640                              echo "$as_me:$LINENO: checking for shared library path variable" >&5
3641echo $ECHO_N "checking for shared library path variable... $ECHO_C" >&6
3642if test "${acl_cv_libpath+set}" = set; then
3643  echo $ECHO_N "(cached) $ECHO_C" >&6
3644else
3645
3646    LD="$LD" \
3647    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
3648    . ./conftest.sh
3649    rm -f ./conftest.sh
3650    acl_cv_libpath=${acl_cv_shlibpath_var:-none}
3651
3652fi
3653echo "$as_me:$LINENO: result: $acl_cv_libpath" >&5
3654echo "${ECHO_T}$acl_cv_libpath" >&6
3655  shlibpath_var="$acl_cv_shlibpath_var"
3656
3657
3658  echo "$as_me:$LINENO: checking whether to activate relocatable installation" >&5
3659echo $ECHO_N "checking whether to activate relocatable installation... $ECHO_C" >&6
3660  # Check whether --enable-relocatable or --disable-relocatable was given.
3661if test "${enable_relocatable+set}" = set; then
3662  enableval="$enable_relocatable"
3663  if test "$enableval" != no; then
3664       RELOCATABLE=yes
3665     else
3666       RELOCATABLE=no
3667     fi
3668
3669else
3670  RELOCATABLE=no
3671fi;
3672
3673  echo "$as_me:$LINENO: result: $RELOCATABLE" >&5
3674echo "${ECHO_T}$RELOCATABLE" >&6
3675
3676
3677
3678    if test "X$prefix" = "XNONE"; then
3679    reloc_final_prefix="$ac_default_prefix"
3680  else
3681    reloc_final_prefix="$prefix"
3682  fi
3683
3684cat >>confdefs.h <<_ACEOF
3685#define INSTALLPREFIX "${reloc_final_prefix}"
3686_ACEOF
3687
3688
3689
3690
3691
3692
3693
3694  is_noop=no
3695  use_elf_origin_trick=no
3696  if test $RELOCATABLE = yes; then
3697    # --enable-relocatable implies --disable-rpath
3698    enable_rpath=no
3699    case $LIBOBJS in
3700    "relocatable.$ac_objext"   | \
3701  *" relocatable.$ac_objext"   | \
3702    "relocatable.$ac_objext "* | \
3703  *" relocatable.$ac_objext "* ) ;;
3704  *) LIBOBJS="$LIBOBJS relocatable.$ac_objext" ;;
3705esac
3706
3707
3708cat >>confdefs.h <<\_ACEOF
3709#define ENABLE_RELOCATABLE 1
3710_ACEOF
3711
3712    case "$host_os" in
3713      mingw*) is_noop=yes ;;
3714      linux*) use_elf_origin_trick=yes ;;
3715    esac
3716    if test $is_noop = yes; then
3717      SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
3718    else
3719      if test $use_elf_origin_trick = yes; then
3720                case "$ac_aux_dir" in
3721          /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
3722          *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
3723        esac
3724        SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
3725      else
3726                                        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\""
3727        case "$ac_aux_dir" in
3728          /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
3729          *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
3730        esac
3731      fi
3732    fi
3733  else
3734    SET_RELOCATABLE=
3735  fi
3736
3737
3738
3739if test $is_noop = yes || test $use_elf_origin_trick = yes; then
3740  RELOCATABLE_VIA_LD_TRUE=
3741  RELOCATABLE_VIA_LD_FALSE='#'
3742else
3743  RELOCATABLE_VIA_LD_TRUE='#'
3744  RELOCATABLE_VIA_LD_FALSE=
3745fi
3746
3747
3748
3749# Check whether --enable-extra-encodings or --disable-extra-encodings was given.
3750if test "${enable_extra_encodings+set}" = set; then
3751  enableval="$enable_extra_encodings"
3752
3753cat >>confdefs.h <<\_ACEOF
3754#define ENABLE_EXTRA 1
3755_ACEOF
3756
3757   USE_EXTRA_ENCODINGS=yes
3758else
3759  USE_EXTRA_ENCODINGS=no
3760fi;
3761
3762
3763
3764if test -n "$ac_tool_prefix"; then
3765  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3766set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3767echo "$as_me:$LINENO: checking for $ac_word" >&5
3768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3769if test "${ac_cv_prog_RANLIB+set}" = set; then
3770  echo $ECHO_N "(cached) $ECHO_C" >&6
3771else
3772  if test -n "$RANLIB"; then
3773  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3774else
3775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776for as_dir in $PATH
3777do
3778  IFS=$as_save_IFS
3779  test -z "$as_dir" && as_dir=.
3780  for ac_exec_ext in '' $ac_executable_extensions; do
3781  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3782    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3783    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3784    break 2
3785  fi
3786done
3787done
3788
3789fi
3790fi
3791RANLIB=$ac_cv_prog_RANLIB
3792if test -n "$RANLIB"; then
3793  echo "$as_me:$LINENO: result: $RANLIB" >&5
3794echo "${ECHO_T}$RANLIB" >&6
3795else
3796  echo "$as_me:$LINENO: result: no" >&5
3797echo "${ECHO_T}no" >&6
3798fi
3799
3800fi
3801if test -z "$ac_cv_prog_RANLIB"; then
3802  ac_ct_RANLIB=$RANLIB
3803  # Extract the first word of "ranlib", so it can be a program name with args.
3804set dummy ranlib; ac_word=$2
3805echo "$as_me:$LINENO: checking for $ac_word" >&5
3806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3807if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3808  echo $ECHO_N "(cached) $ECHO_C" >&6
3809else
3810  if test -n "$ac_ct_RANLIB"; then
3811  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3812else
3813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814for as_dir in $PATH
3815do
3816  IFS=$as_save_IFS
3817  test -z "$as_dir" && as_dir=.
3818  for ac_exec_ext in '' $ac_executable_extensions; do
3819  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820    ac_cv_prog_ac_ct_RANLIB="ranlib"
3821    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3822    break 2
3823  fi
3824done
3825done
3826
3827  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3828fi
3829fi
3830ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3831if test -n "$ac_ct_RANLIB"; then
3832  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3833echo "${ECHO_T}$ac_ct_RANLIB" >&6
3834else
3835  echo "$as_me:$LINENO: result: no" >&5
3836echo "${ECHO_T}no" >&6
3837fi
3838
3839  RANLIB=$ac_ct_RANLIB
3840else
3841  RANLIB="$ac_cv_prog_RANLIB"
3842fi
3843
3844echo "$as_me:$LINENO: checking how to copy files" >&5
3845echo $ECHO_N "checking how to copy files... $ECHO_C" >&6
3846if test "${cl_cv_prog_cp+set}" = set; then
3847  echo $ECHO_N "(cached) $ECHO_C" >&6
3848else
3849
3850echo "blabla" > conftest.x
3851err=`/bin/sh -c "cp -p conftest.x conftest.y 2>&1"`
3852if test -z "$err"; then
3853  cl_cv_prog_cp='cp -p'
3854else
3855  cl_cv_prog_cp='cp'
3856fi
3857rm -f conftest*
3858
3859fi
3860echo "$as_me:$LINENO: result: $cl_cv_prog_cp" >&5
3861echo "${ECHO_T}$cl_cv_prog_cp" >&6
3862CP="$cl_cv_prog_cp"
3863
3864echo "$as_me:$LINENO: checking how to make hard links" >&5
3865echo $ECHO_N "checking how to make hard links... $ECHO_C" >&6
3866if test "${cl_cv_prog_LN+set}" = set; then
3867  echo $ECHO_N "(cached) $ECHO_C" >&6
3868else
3869
3870rm -f conftestdata conftestfile
3871echo data > conftestfile
3872if ln conftestfile conftestdata 2>/dev/null; then
3873  cl_cv_prog_LN=ln
3874else
3875  cl_cv_prog_LN="$cl_cv_prog_cp"
3876fi
3877rm -f conftestdata conftestfile
3878
3879fi
3880echo "$as_me:$LINENO: result: $cl_cv_prog_LN" >&5
3881echo "${ECHO_T}$cl_cv_prog_LN" >&6
3882LN="$cl_cv_prog_LN"
3883
3884echo "$as_me:$LINENO: checking whether ln -s works" >&5
3885echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3886LN_S=$as_ln_s
3887if test "$LN_S" = "ln -s"; then
3888  echo "$as_me:$LINENO: result: yes" >&5
3889echo "${ECHO_T}yes" >&6
3890else
3891  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3892echo "${ECHO_T}no, using $LN_S" >&6
3893fi
3894
3895
3896
3897
3898cat >>confdefs.h <<\_ACEOF
3899#define _GNU_SOURCE 1
3900_ACEOF
3901
3902
3903
3904
3905
3906
3907      cat >>confdefs.h <<\_ACEOF
3908#define __EXTENSIONS__ 1
3909_ACEOF
3910
3911
3912
3913echo "$as_me:$LINENO: checking for AIX" >&5
3914echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3915cat >conftest.$ac_ext <<_ACEOF
3916/* confdefs.h.  */
3917_ACEOF
3918cat confdefs.h >>conftest.$ac_ext
3919cat >>conftest.$ac_ext <<_ACEOF
3920/* end confdefs.h.  */
3921#ifdef _AIX
3922  yes
3923#endif
3924
3925_ACEOF
3926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3927  $EGREP "yes" >/dev/null 2>&1; then
3928  echo "$as_me:$LINENO: result: yes" >&5
3929echo "${ECHO_T}yes" >&6
3930cat >>confdefs.h <<\_ACEOF
3931#define _ALL_SOURCE 1
3932_ACEOF
3933
3934else
3935  echo "$as_me:$LINENO: result: no" >&5
3936echo "${ECHO_T}no" >&6
3937fi
3938rm -f conftest*
3939
3940
3941echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3942echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3943if test "${ac_cv_header_stdc+set}" = set; then
3944  echo $ECHO_N "(cached) $ECHO_C" >&6
3945else
3946  cat >conftest.$ac_ext <<_ACEOF
3947/* confdefs.h.  */
3948_ACEOF
3949cat confdefs.h >>conftest.$ac_ext
3950cat >>conftest.$ac_ext <<_ACEOF
3951/* end confdefs.h.  */
3952#include <stdlib.h>
3953#include <stdarg.h>
3954#include <string.h>
3955#include <float.h>
3956
3957int
3958main ()
3959{
3960
3961  ;
3962  return 0;
3963}
3964_ACEOF
3965rm -f conftest.$ac_objext
3966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3967  (eval $ac_compile) 2>conftest.er1
3968  ac_status=$?
3969  grep -v '^ *+' conftest.er1 >conftest.err
3970  rm -f conftest.er1
3971  cat conftest.err >&5
3972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973  (exit $ac_status); } &&
3974	 { ac_try='test -z "$ac_c_werror_flag"
3975			 || test ! -s conftest.err'
3976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977  (eval $ac_try) 2>&5
3978  ac_status=$?
3979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980  (exit $ac_status); }; } &&
3981	 { ac_try='test -s conftest.$ac_objext'
3982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983  (eval $ac_try) 2>&5
3984  ac_status=$?
3985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986  (exit $ac_status); }; }; then
3987  ac_cv_header_stdc=yes
3988else
3989  echo "$as_me: failed program was:" >&5
3990sed 's/^/| /' conftest.$ac_ext >&5
3991
3992ac_cv_header_stdc=no
3993fi
3994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3995
3996if test $ac_cv_header_stdc = yes; then
3997  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3998  cat >conftest.$ac_ext <<_ACEOF
3999/* confdefs.h.  */
4000_ACEOF
4001cat confdefs.h >>conftest.$ac_ext
4002cat >>conftest.$ac_ext <<_ACEOF
4003/* end confdefs.h.  */
4004#include <string.h>
4005
4006_ACEOF
4007if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4008  $EGREP "memchr" >/dev/null 2>&1; then
4009  :
4010else
4011  ac_cv_header_stdc=no
4012fi
4013rm -f conftest*
4014
4015fi
4016
4017if test $ac_cv_header_stdc = yes; then
4018  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4019  cat >conftest.$ac_ext <<_ACEOF
4020/* confdefs.h.  */
4021_ACEOF
4022cat confdefs.h >>conftest.$ac_ext
4023cat >>conftest.$ac_ext <<_ACEOF
4024/* end confdefs.h.  */
4025#include <stdlib.h>
4026
4027_ACEOF
4028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4029  $EGREP "free" >/dev/null 2>&1; then
4030  :
4031else
4032  ac_cv_header_stdc=no
4033fi
4034rm -f conftest*
4035
4036fi
4037
4038if test $ac_cv_header_stdc = yes; then
4039  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4040  if test "$cross_compiling" = yes; then
4041  :
4042else
4043  cat >conftest.$ac_ext <<_ACEOF
4044/* confdefs.h.  */
4045_ACEOF
4046cat confdefs.h >>conftest.$ac_ext
4047cat >>conftest.$ac_ext <<_ACEOF
4048/* end confdefs.h.  */
4049#include <ctype.h>
4050#if ((' ' & 0x0FF) == 0x020)
4051# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4052# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4053#else
4054# define ISLOWER(c) \
4055		   (('a' <= (c) && (c) <= 'i') \
4056		     || ('j' <= (c) && (c) <= 'r') \
4057		     || ('s' <= (c) && (c) <= 'z'))
4058# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4059#endif
4060
4061#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4062int
4063main ()
4064{
4065  int i;
4066  for (i = 0; i < 256; i++)
4067    if (XOR (islower (i), ISLOWER (i))
4068	|| toupper (i) != TOUPPER (i))
4069      exit(2);
4070  exit (0);
4071}
4072_ACEOF
4073rm -f conftest$ac_exeext
4074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4075  (eval $ac_link) 2>&5
4076  ac_status=$?
4077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080  (eval $ac_try) 2>&5
4081  ac_status=$?
4082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083  (exit $ac_status); }; }; then
4084  :
4085else
4086  echo "$as_me: program exited with status $ac_status" >&5
4087echo "$as_me: failed program was:" >&5
4088sed 's/^/| /' conftest.$ac_ext >&5
4089
4090( exit $ac_status )
4091ac_cv_header_stdc=no
4092fi
4093rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4094fi
4095fi
4096fi
4097echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4098echo "${ECHO_T}$ac_cv_header_stdc" >&6
4099if test $ac_cv_header_stdc = yes; then
4100
4101cat >>confdefs.h <<\_ACEOF
4102#define STDC_HEADERS 1
4103_ACEOF
4104
4105fi
4106
4107# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4118		  inttypes.h stdint.h unistd.h
4119do
4120as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4121echo "$as_me:$LINENO: checking for $ac_header" >&5
4122echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4123if eval "test \"\${$as_ac_Header+set}\" = set"; then
4124  echo $ECHO_N "(cached) $ECHO_C" >&6
4125else
4126  cat >conftest.$ac_ext <<_ACEOF
4127/* confdefs.h.  */
4128_ACEOF
4129cat confdefs.h >>conftest.$ac_ext
4130cat >>conftest.$ac_ext <<_ACEOF
4131/* end confdefs.h.  */
4132$ac_includes_default
4133
4134#include <$ac_header>
4135_ACEOF
4136rm -f conftest.$ac_objext
4137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4138  (eval $ac_compile) 2>conftest.er1
4139  ac_status=$?
4140  grep -v '^ *+' conftest.er1 >conftest.err
4141  rm -f conftest.er1
4142  cat conftest.err >&5
4143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144  (exit $ac_status); } &&
4145	 { ac_try='test -z "$ac_c_werror_flag"
4146			 || test ! -s conftest.err'
4147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148  (eval $ac_try) 2>&5
4149  ac_status=$?
4150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151  (exit $ac_status); }; } &&
4152	 { ac_try='test -s conftest.$ac_objext'
4153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154  (eval $ac_try) 2>&5
4155  ac_status=$?
4156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157  (exit $ac_status); }; }; then
4158  eval "$as_ac_Header=yes"
4159else
4160  echo "$as_me: failed program was:" >&5
4161sed 's/^/| /' conftest.$ac_ext >&5
4162
4163eval "$as_ac_Header=no"
4164fi
4165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4166fi
4167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4168echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4169if test `eval echo '${'$as_ac_Header'}'` = yes; then
4170  cat >>confdefs.h <<_ACEOF
4171#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4172_ACEOF
4173
4174fi
4175
4176done
4177
4178
4179if test "${ac_cv_header_minix_config_h+set}" = set; then
4180  echo "$as_me:$LINENO: checking for minix/config.h" >&5
4181echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4182if test "${ac_cv_header_minix_config_h+set}" = set; then
4183  echo $ECHO_N "(cached) $ECHO_C" >&6
4184fi
4185echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4186echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4187else
4188  # Is the header compilable?
4189echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4190echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4191cat >conftest.$ac_ext <<_ACEOF
4192/* confdefs.h.  */
4193_ACEOF
4194cat confdefs.h >>conftest.$ac_ext
4195cat >>conftest.$ac_ext <<_ACEOF
4196/* end confdefs.h.  */
4197$ac_includes_default
4198#include <minix/config.h>
4199_ACEOF
4200rm -f conftest.$ac_objext
4201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4202  (eval $ac_compile) 2>conftest.er1
4203  ac_status=$?
4204  grep -v '^ *+' conftest.er1 >conftest.err
4205  rm -f conftest.er1
4206  cat conftest.err >&5
4207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208  (exit $ac_status); } &&
4209	 { ac_try='test -z "$ac_c_werror_flag"
4210			 || test ! -s conftest.err'
4211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212  (eval $ac_try) 2>&5
4213  ac_status=$?
4214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215  (exit $ac_status); }; } &&
4216	 { ac_try='test -s conftest.$ac_objext'
4217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218  (eval $ac_try) 2>&5
4219  ac_status=$?
4220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221  (exit $ac_status); }; }; then
4222  ac_header_compiler=yes
4223else
4224  echo "$as_me: failed program was:" >&5
4225sed 's/^/| /' conftest.$ac_ext >&5
4226
4227ac_header_compiler=no
4228fi
4229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4230echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4231echo "${ECHO_T}$ac_header_compiler" >&6
4232
4233# Is the header present?
4234echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4235echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4236cat >conftest.$ac_ext <<_ACEOF
4237/* confdefs.h.  */
4238_ACEOF
4239cat confdefs.h >>conftest.$ac_ext
4240cat >>conftest.$ac_ext <<_ACEOF
4241/* end confdefs.h.  */
4242#include <minix/config.h>
4243_ACEOF
4244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4245  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4246  ac_status=$?
4247  grep -v '^ *+' conftest.er1 >conftest.err
4248  rm -f conftest.er1
4249  cat conftest.err >&5
4250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251  (exit $ac_status); } >/dev/null; then
4252  if test -s conftest.err; then
4253    ac_cpp_err=$ac_c_preproc_warn_flag
4254    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4255  else
4256    ac_cpp_err=
4257  fi
4258else
4259  ac_cpp_err=yes
4260fi
4261if test -z "$ac_cpp_err"; then
4262  ac_header_preproc=yes
4263else
4264  echo "$as_me: failed program was:" >&5
4265sed 's/^/| /' conftest.$ac_ext >&5
4266
4267  ac_header_preproc=no
4268fi
4269rm -f conftest.err conftest.$ac_ext
4270echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4271echo "${ECHO_T}$ac_header_preproc" >&6
4272
4273# So?  What about this header?
4274case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4275  yes:no: )
4276    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4277echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4278    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4279echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4280    ac_header_preproc=yes
4281    ;;
4282  no:yes:* )
4283    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4284echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4285    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4286echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4287    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4288echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4289    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4290echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4291    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4292echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4293    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4294echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4295    (
4296      cat <<\_ASBOX
4297## ------------------------------------------ ##
4298## Report this to the AC_PACKAGE_NAME lists.  ##
4299## ------------------------------------------ ##
4300_ASBOX
4301    ) |
4302      sed "s/^/$as_me: WARNING:     /" >&2
4303    ;;
4304esac
4305echo "$as_me:$LINENO: checking for minix/config.h" >&5
4306echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4307if test "${ac_cv_header_minix_config_h+set}" = set; then
4308  echo $ECHO_N "(cached) $ECHO_C" >&6
4309else
4310  ac_cv_header_minix_config_h=$ac_header_preproc
4311fi
4312echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4313echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4314
4315fi
4316if test $ac_cv_header_minix_config_h = yes; then
4317  MINIX=yes
4318else
4319  MINIX=
4320fi
4321
4322
4323if test "$MINIX" = yes; then
4324
4325cat >>confdefs.h <<\_ACEOF
4326#define _POSIX_SOURCE 1
4327_ACEOF
4328
4329
4330cat >>confdefs.h <<\_ACEOF
4331#define _POSIX_1_SOURCE 2
4332_ACEOF
4333
4334
4335cat >>confdefs.h <<\_ACEOF
4336#define _MINIX 1
4337_ACEOF
4338
4339fi
4340
4341echo "$as_me:$LINENO: checking for library containing strerror" >&5
4342echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
4343if test "${ac_cv_search_strerror+set}" = set; then
4344  echo $ECHO_N "(cached) $ECHO_C" >&6
4345else
4346  ac_func_search_save_LIBS=$LIBS
4347ac_cv_search_strerror=no
4348cat >conftest.$ac_ext <<_ACEOF
4349/* confdefs.h.  */
4350_ACEOF
4351cat confdefs.h >>conftest.$ac_ext
4352cat >>conftest.$ac_ext <<_ACEOF
4353/* end confdefs.h.  */
4354
4355/* Override any gcc2 internal prototype to avoid an error.  */
4356#ifdef __cplusplus
4357extern "C"
4358#endif
4359/* We use char because int might match the return type of a gcc2
4360   builtin and then its argument prototype would still apply.  */
4361char strerror ();
4362int
4363main ()
4364{
4365strerror ();
4366  ;
4367  return 0;
4368}
4369_ACEOF
4370rm -f conftest.$ac_objext conftest$ac_exeext
4371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4372  (eval $ac_link) 2>conftest.er1
4373  ac_status=$?
4374  grep -v '^ *+' conftest.er1 >conftest.err
4375  rm -f conftest.er1
4376  cat conftest.err >&5
4377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378  (exit $ac_status); } &&
4379	 { ac_try='test -z "$ac_c_werror_flag"
4380			 || test ! -s conftest.err'
4381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382  (eval $ac_try) 2>&5
4383  ac_status=$?
4384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385  (exit $ac_status); }; } &&
4386	 { ac_try='test -s conftest$ac_exeext'
4387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388  (eval $ac_try) 2>&5
4389  ac_status=$?
4390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391  (exit $ac_status); }; }; then
4392  ac_cv_search_strerror="none required"
4393else
4394  echo "$as_me: failed program was:" >&5
4395sed 's/^/| /' conftest.$ac_ext >&5
4396
4397fi
4398rm -f conftest.err conftest.$ac_objext \
4399      conftest$ac_exeext conftest.$ac_ext
4400if test "$ac_cv_search_strerror" = no; then
4401  for ac_lib in cposix; do
4402    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4403    cat >conftest.$ac_ext <<_ACEOF
4404/* confdefs.h.  */
4405_ACEOF
4406cat confdefs.h >>conftest.$ac_ext
4407cat >>conftest.$ac_ext <<_ACEOF
4408/* end confdefs.h.  */
4409
4410/* Override any gcc2 internal prototype to avoid an error.  */
4411#ifdef __cplusplus
4412extern "C"
4413#endif
4414/* We use char because int might match the return type of a gcc2
4415   builtin and then its argument prototype would still apply.  */
4416char strerror ();
4417int
4418main ()
4419{
4420strerror ();
4421  ;
4422  return 0;
4423}
4424_ACEOF
4425rm -f conftest.$ac_objext conftest$ac_exeext
4426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4427  (eval $ac_link) 2>conftest.er1
4428  ac_status=$?
4429  grep -v '^ *+' conftest.er1 >conftest.err
4430  rm -f conftest.er1
4431  cat conftest.err >&5
4432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433  (exit $ac_status); } &&
4434	 { ac_try='test -z "$ac_c_werror_flag"
4435			 || test ! -s conftest.err'
4436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437  (eval $ac_try) 2>&5
4438  ac_status=$?
4439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440  (exit $ac_status); }; } &&
4441	 { ac_try='test -s conftest$ac_exeext'
4442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443  (eval $ac_try) 2>&5
4444  ac_status=$?
4445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446  (exit $ac_status); }; }; then
4447  ac_cv_search_strerror="-l$ac_lib"
4448break
4449else
4450  echo "$as_me: failed program was:" >&5
4451sed 's/^/| /' conftest.$ac_ext >&5
4452
4453fi
4454rm -f conftest.err conftest.$ac_objext \
4455      conftest$ac_exeext conftest.$ac_ext
4456  done
4457fi
4458LIBS=$ac_func_search_save_LIBS
4459fi
4460echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4461echo "${ECHO_T}$ac_cv_search_strerror" >&6
4462if test "$ac_cv_search_strerror" != no; then
4463  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
4464
4465fi
4466
4467
4468
4469
4470
4471
4472
4473# Check whether --enable-static or --disable-static was given.
4474if test "${enable_static+set}" = set; then
4475  enableval="$enable_static"
4476  p=${PACKAGE-default}
4477    case $enableval in
4478    yes) enable_static=yes ;;
4479    no) enable_static=no ;;
4480    *)
4481     enable_static=no
4482      # Look at the argument we got.  We use all the common list separators.
4483      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4484      for pkg in $enableval; do
4485	IFS="$lt_save_ifs"
4486	if test "X$pkg" = "X$p"; then
4487	  enable_static=yes
4488	fi
4489      done
4490      IFS="$lt_save_ifs"
4491      ;;
4492    esac
4493else
4494  enable_static=no
4495fi;
4496
4497
4498
4499
4500# Check whether --enable-shared or --disable-shared was given.
4501if test "${enable_shared+set}" = set; then
4502  enableval="$enable_shared"
4503  p=${PACKAGE-default}
4504    case $enableval in
4505    yes) enable_shared=yes ;;
4506    no) enable_shared=no ;;
4507    *)
4508      enable_shared=no
4509      # Look at the argument we got.  We use all the common list separators.
4510      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4511      for pkg in $enableval; do
4512	IFS="$lt_save_ifs"
4513	if test "X$pkg" = "X$p"; then
4514	  enable_shared=yes
4515	fi
4516      done
4517      IFS="$lt_save_ifs"
4518      ;;
4519    esac
4520else
4521  enable_shared=yes
4522fi;
4523
4524# Check whether --enable-fast-install or --disable-fast-install was given.
4525if test "${enable_fast_install+set}" = set; then
4526  enableval="$enable_fast_install"
4527  p=${PACKAGE-default}
4528    case $enableval in
4529    yes) enable_fast_install=yes ;;
4530    no) enable_fast_install=no ;;
4531    *)
4532      enable_fast_install=no
4533      # Look at the argument we got.  We use all the common list separators.
4534      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4535      for pkg in $enableval; do
4536	IFS="$lt_save_ifs"
4537	if test "X$pkg" = "X$p"; then
4538	  enable_fast_install=yes
4539	fi
4540      done
4541      IFS="$lt_save_ifs"
4542      ;;
4543    esac
4544else
4545  enable_fast_install=yes
4546fi;
4547
4548echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4549echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4550if test "${lt_cv_path_SED+set}" = set; then
4551  echo $ECHO_N "(cached) $ECHO_C" >&6
4552else
4553  # Loop through the user's path and test for sed and gsed.
4554# Then use that list of sed's as ones to test for truncation.
4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH
4557do
4558  IFS=$as_save_IFS
4559  test -z "$as_dir" && as_dir=.
4560  for lt_ac_prog in sed gsed; do
4561    for ac_exec_ext in '' $ac_executable_extensions; do
4562      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4563        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4564      fi
4565    done
4566  done
4567done
4568lt_ac_max=0
4569lt_ac_count=0
4570# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4571# along with /bin/sed that truncates output.
4572for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4573  test ! -f $lt_ac_sed && break
4574  cat /dev/null > conftest.in
4575  lt_ac_count=0
4576  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4577  # Check for GNU sed and select it if it is found.
4578  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4579    lt_cv_path_SED=$lt_ac_sed
4580    break
4581  fi
4582  while true; do
4583    cat conftest.in conftest.in >conftest.tmp
4584    mv conftest.tmp conftest.in
4585    cp conftest.in conftest.nl
4586    echo >>conftest.nl
4587    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4588    cmp -s conftest.out conftest.nl || break
4589    # 10000 chars as input seems more than enough
4590    test $lt_ac_count -gt 10 && break
4591    lt_ac_count=`expr $lt_ac_count + 1`
4592    if test $lt_ac_count -gt $lt_ac_max; then
4593      lt_ac_max=$lt_ac_count
4594      lt_cv_path_SED=$lt_ac_sed
4595    fi
4596  done
4597done
4598
4599fi
4600
4601SED=$lt_cv_path_SED
4602echo "$as_me:$LINENO: result: $SED" >&5
4603echo "${ECHO_T}$SED" >&6
4604
4605
4606# Check whether --with-gnu-ld or --without-gnu-ld was given.
4607if test "${with_gnu_ld+set}" = set; then
4608  withval="$with_gnu_ld"
4609  test "$withval" = no || with_gnu_ld=yes
4610else
4611  with_gnu_ld=no
4612fi;
4613ac_prog=ld
4614if test "$GCC" = yes; then
4615  # Check if gcc -print-prog-name=ld gives a path.
4616  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4617echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4618  case $host in
4619  *-*-mingw*)
4620    # gcc leaves a trailing carriage return which upsets mingw
4621    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4622  *)
4623    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4624  esac
4625  case $ac_prog in
4626    # Accept absolute paths.
4627    [\\/]* | ?:[\\/]*)
4628      re_direlt='/[^/][^/]*/\.\./'
4629      # Canonicalize the pathname of ld
4630      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4631      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4632	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4633      done
4634      test -z "$LD" && LD="$ac_prog"
4635      ;;
4636  "")
4637    # If it fails, then pretend we aren't using GCC.
4638    ac_prog=ld
4639    ;;
4640  *)
4641    # If it is relative, then search for the first ld in PATH.
4642    with_gnu_ld=unknown
4643    ;;
4644  esac
4645elif test "$with_gnu_ld" = yes; then
4646  echo "$as_me:$LINENO: checking for GNU ld" >&5
4647echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4648else
4649  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4650echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4651fi
4652if test "${lt_cv_path_LD+set}" = set; then
4653  echo $ECHO_N "(cached) $ECHO_C" >&6
4654else
4655  if test -z "$LD"; then
4656  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4657  for ac_dir in $PATH; do
4658    IFS="$lt_save_ifs"
4659    test -z "$ac_dir" && ac_dir=.
4660    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4661      lt_cv_path_LD="$ac_dir/$ac_prog"
4662      # Check to see if the program is GNU ld.  I'd rather use --version,
4663      # but apparently some GNU ld's only accept -v.
4664      # Break only if it was the GNU/non-GNU ld that we prefer.
4665      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4666      *GNU* | *'with BFD'*)
4667	test "$with_gnu_ld" != no && break
4668	;;
4669      *)
4670	test "$with_gnu_ld" != yes && break
4671	;;
4672      esac
4673    fi
4674  done
4675  IFS="$lt_save_ifs"
4676else
4677  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4678fi
4679fi
4680
4681LD="$lt_cv_path_LD"
4682if test -n "$LD"; then
4683  echo "$as_me:$LINENO: result: $LD" >&5
4684echo "${ECHO_T}$LD" >&6
4685else
4686  echo "$as_me:$LINENO: result: no" >&5
4687echo "${ECHO_T}no" >&6
4688fi
4689test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4690echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4691   { (exit 1); exit 1; }; }
4692echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4693echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4694if test "${lt_cv_prog_gnu_ld+set}" = set; then
4695  echo $ECHO_N "(cached) $ECHO_C" >&6
4696else
4697  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4698case `$LD -v 2>&1 </dev/null` in
4699*GNU* | *'with BFD'*)
4700  lt_cv_prog_gnu_ld=yes
4701  ;;
4702*)
4703  lt_cv_prog_gnu_ld=no
4704  ;;
4705esac
4706fi
4707echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4708echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4709with_gnu_ld=$lt_cv_prog_gnu_ld
4710
4711
4712echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4713echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4714if test "${lt_cv_ld_reload_flag+set}" = set; then
4715  echo $ECHO_N "(cached) $ECHO_C" >&6
4716else
4717  lt_cv_ld_reload_flag='-r'
4718fi
4719echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4720echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4721reload_flag=$lt_cv_ld_reload_flag
4722case $reload_flag in
4723"" | " "*) ;;
4724*) reload_flag=" $reload_flag" ;;
4725esac
4726reload_cmds='$LD$reload_flag -o $output$reload_objs'
4727case $host_os in
4728  darwin*)
4729    if test "$GCC" = yes; then
4730      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4731    else
4732      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4733    fi
4734    ;;
4735esac
4736
4737echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4738echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4739if test "${lt_cv_path_NM+set}" = set; then
4740  echo $ECHO_N "(cached) $ECHO_C" >&6
4741else
4742  if test -n "$NM"; then
4743  # Let the user override the test.
4744  lt_cv_path_NM="$NM"
4745else
4746  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4747  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4748    IFS="$lt_save_ifs"
4749    test -z "$ac_dir" && ac_dir=.
4750    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4751    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4752      # Check to see if the nm accepts a BSD-compat flag.
4753      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4754      #   nm: unknown option "B" ignored
4755      # Tru64's nm complains that /dev/null is an invalid object file
4756      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4757      */dev/null* | *'Invalid file or object type'*)
4758	lt_cv_path_NM="$tmp_nm -B"
4759	break
4760        ;;
4761      *)
4762	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4763	*/dev/null*)
4764	  lt_cv_path_NM="$tmp_nm -p"
4765	  break
4766	  ;;
4767	*)
4768	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4769	  continue # so that we can try to find one that supports BSD flags
4770	  ;;
4771	esac
4772      esac
4773    fi
4774  done
4775  IFS="$lt_save_ifs"
4776  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4777fi
4778fi
4779echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4780echo "${ECHO_T}$lt_cv_path_NM" >&6
4781NM="$lt_cv_path_NM"
4782
4783echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4784echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4785if test "${lt_cv_deplibs_check_method+set}" = set; then
4786  echo $ECHO_N "(cached) $ECHO_C" >&6
4787else
4788  lt_cv_file_magic_cmd='$MAGIC_CMD'
4789lt_cv_file_magic_test_file=
4790lt_cv_deplibs_check_method='unknown'
4791# Need to set the preceding variable on all platforms that support
4792# interlibrary dependencies.
4793# 'none' -- dependencies not supported.
4794# `unknown' -- same as none, but documents that we really don't know.
4795# 'pass_all' -- all dependencies passed with no checks.
4796# 'test_compile' -- check by making test program.
4797# 'file_magic [[regex]]' -- check by looking for files in library path
4798# which responds to the $file_magic_cmd with a given extended regex.
4799# If you have `file' or equivalent on your system and you're not sure
4800# whether `pass_all' will *always* work, you probably want this one.
4801
4802case $host_os in
4803aix4* | aix5*)
4804  lt_cv_deplibs_check_method=pass_all
4805  ;;
4806
4807beos*)
4808  lt_cv_deplibs_check_method=pass_all
4809  ;;
4810
4811bsdi[45]*)
4812  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4813  lt_cv_file_magic_cmd='/usr/bin/file -L'
4814  lt_cv_file_magic_test_file=/shlib/libc.so
4815  ;;
4816
4817cygwin*)
4818  # func_win32_libid is a shell function defined in ltmain.sh
4819  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4820  lt_cv_file_magic_cmd='func_win32_libid'
4821  ;;
4822
4823mingw* | pw32*)
4824  # Base MSYS/MinGW do not provide the 'file' command needed by
4825  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4826  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4827  lt_cv_file_magic_cmd='$OBJDUMP -f'
4828  ;;
4829
4830darwin* | rhapsody*)
4831  lt_cv_deplibs_check_method=pass_all
4832  ;;
4833
4834freebsd* | kfreebsd*-gnu)
4835  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4836    case $host_cpu in
4837    i*86 )
4838      # Not sure whether the presence of OpenBSD here was a mistake.
4839      # Let's accept both of them until this is cleared up.
4840      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4841      lt_cv_file_magic_cmd=/usr/bin/file
4842      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4843      ;;
4844    esac
4845  else
4846    lt_cv_deplibs_check_method=pass_all
4847  fi
4848  ;;
4849
4850gnu*)
4851  lt_cv_deplibs_check_method=pass_all
4852  ;;
4853
4854hpux10.20* | hpux11*)
4855  lt_cv_file_magic_cmd=/usr/bin/file
4856  case "$host_cpu" in
4857  ia64*)
4858    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4859    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4860    ;;
4861  hppa*64*)
4862    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]'
4863    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4864    ;;
4865  *)
4866    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4867    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4868    ;;
4869  esac
4870  ;;
4871
4872irix5* | irix6* | nonstopux*)
4873  case $LD in
4874  *-32|*"-32 ") libmagic=32-bit;;
4875  *-n32|*"-n32 ") libmagic=N32;;
4876  *-64|*"-64 ") libmagic=64-bit;;
4877  *) libmagic=never-match;;
4878  esac
4879  lt_cv_deplibs_check_method=pass_all
4880  ;;
4881
4882# This must be Linux ELF.
4883linux*)
4884  lt_cv_deplibs_check_method=pass_all
4885  ;;
4886
4887netbsd*)
4888  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4889    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4890  else
4891    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4892  fi
4893  ;;
4894
4895newos6*)
4896  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4897  lt_cv_file_magic_cmd=/usr/bin/file
4898  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4899  ;;
4900
4901nto-qnx*)
4902  lt_cv_deplibs_check_method=unknown
4903  ;;
4904
4905openbsd*)
4906  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4907    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4908  else
4909    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4910  fi
4911  ;;
4912
4913osf3* | osf4* | osf5*)
4914  lt_cv_deplibs_check_method=pass_all
4915  ;;
4916
4917sco3.2v5*)
4918  lt_cv_deplibs_check_method=pass_all
4919  ;;
4920
4921solaris*)
4922  lt_cv_deplibs_check_method=pass_all
4923  ;;
4924
4925sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4926  case $host_vendor in
4927  motorola)
4928    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]'
4929    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4930    ;;
4931  ncr)
4932    lt_cv_deplibs_check_method=pass_all
4933    ;;
4934  sequent)
4935    lt_cv_file_magic_cmd='/bin/file'
4936    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4937    ;;
4938  sni)
4939    lt_cv_file_magic_cmd='/bin/file'
4940    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4941    lt_cv_file_magic_test_file=/lib/libc.so
4942    ;;
4943  siemens)
4944    lt_cv_deplibs_check_method=pass_all
4945    ;;
4946  esac
4947  ;;
4948
4949sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4950  lt_cv_deplibs_check_method=pass_all
4951  ;;
4952esac
4953
4954fi
4955echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4956echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4957file_magic_cmd=$lt_cv_file_magic_cmd
4958deplibs_check_method=$lt_cv_deplibs_check_method
4959test -z "$deplibs_check_method" && deplibs_check_method=unknown
4960
4961
4962# If no C compiler was specified, use CC.
4963LTCC=${LTCC-"$CC"}
4964
4965# Allow CC to be a program name with arguments.
4966compiler=$CC
4967
4968# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4969if test "${enable_libtool_lock+set}" = set; then
4970  enableval="$enable_libtool_lock"
4971
4972fi;
4973test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4974
4975# Some flags need to be propagated to the compiler or linker for good
4976# libtool support.
4977case $host in
4978ia64-*-hpux*)
4979  # Find out which ABI we are using.
4980  echo 'int i;' > conftest.$ac_ext
4981  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982  (eval $ac_compile) 2>&5
4983  ac_status=$?
4984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985  (exit $ac_status); }; then
4986    case `/usr/bin/file conftest.$ac_objext` in
4987    *ELF-32*)
4988      HPUX_IA64_MODE="32"
4989      ;;
4990    *ELF-64*)
4991      HPUX_IA64_MODE="64"
4992      ;;
4993    esac
4994  fi
4995  rm -rf conftest*
4996  ;;
4997*-*-irix6*)
4998  # Find out which ABI we are using.
4999  echo '#line 4999 "configure"' > conftest.$ac_ext
5000  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5001  (eval $ac_compile) 2>&5
5002  ac_status=$?
5003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004  (exit $ac_status); }; then
5005   if test "$lt_cv_prog_gnu_ld" = yes; then
5006    case `/usr/bin/file conftest.$ac_objext` in
5007    *32-bit*)
5008      LD="${LD-ld} -melf32bsmip"
5009      ;;
5010    *N32*)
5011      LD="${LD-ld} -melf32bmipn32"
5012      ;;
5013    *64-bit*)
5014      LD="${LD-ld} -melf64bmip"
5015      ;;
5016    esac
5017   else
5018    case `/usr/bin/file conftest.$ac_objext` in
5019    *32-bit*)
5020      LD="${LD-ld} -32"
5021      ;;
5022    *N32*)
5023      LD="${LD-ld} -n32"
5024      ;;
5025    *64-bit*)
5026      LD="${LD-ld} -64"
5027      ;;
5028    esac
5029   fi
5030  fi
5031  rm -rf conftest*
5032  ;;
5033
5034x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5035  # Find out which ABI we are using.
5036  echo 'int i;' > conftest.$ac_ext
5037  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038  (eval $ac_compile) 2>&5
5039  ac_status=$?
5040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041  (exit $ac_status); }; then
5042    case "`/usr/bin/file conftest.o`" in
5043    *32-bit*)
5044      case $host in
5045        x86_64-*linux*)
5046          LD="${LD-ld} -m elf_i386"
5047          ;;
5048        ppc64-*linux*|powerpc64-*linux*)
5049          LD="${LD-ld} -m elf32ppclinux"
5050          ;;
5051        s390x-*linux*)
5052          LD="${LD-ld} -m elf_s390"
5053          ;;
5054        sparc64-*linux*)
5055          LD="${LD-ld} -m elf32_sparc"
5056          ;;
5057      esac
5058      ;;
5059    *64-bit*)
5060      case $host in
5061        x86_64-*linux*)
5062          LD="${LD-ld} -m elf_x86_64"
5063          ;;
5064        ppc*-*linux*|powerpc*-*linux*)
5065          LD="${LD-ld} -m elf64ppc"
5066          ;;
5067        s390*-*linux*)
5068          LD="${LD-ld} -m elf64_s390"
5069          ;;
5070        sparc*-*linux*)
5071          LD="${LD-ld} -m elf64_sparc"
5072          ;;
5073      esac
5074      ;;
5075    esac
5076  fi
5077  rm -rf conftest*
5078  ;;
5079
5080*-*-sco3.2v5*)
5081  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5082  SAVE_CFLAGS="$CFLAGS"
5083  CFLAGS="$CFLAGS -belf"
5084  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5085echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5086if test "${lt_cv_cc_needs_belf+set}" = set; then
5087  echo $ECHO_N "(cached) $ECHO_C" >&6
5088else
5089  ac_ext=c
5090ac_cpp='$CPP $CPPFLAGS'
5091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5093ac_compiler_gnu=$ac_cv_c_compiler_gnu
5094
5095     cat >conftest.$ac_ext <<_ACEOF
5096/* confdefs.h.  */
5097_ACEOF
5098cat confdefs.h >>conftest.$ac_ext
5099cat >>conftest.$ac_ext <<_ACEOF
5100/* end confdefs.h.  */
5101
5102int
5103main ()
5104{
5105
5106  ;
5107  return 0;
5108}
5109_ACEOF
5110rm -f conftest.$ac_objext conftest$ac_exeext
5111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5112  (eval $ac_link) 2>conftest.er1
5113  ac_status=$?
5114  grep -v '^ *+' conftest.er1 >conftest.err
5115  rm -f conftest.er1
5116  cat conftest.err >&5
5117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118  (exit $ac_status); } &&
5119	 { ac_try='test -z "$ac_c_werror_flag"
5120			 || test ! -s conftest.err'
5121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122  (eval $ac_try) 2>&5
5123  ac_status=$?
5124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125  (exit $ac_status); }; } &&
5126	 { ac_try='test -s conftest$ac_exeext'
5127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128  (eval $ac_try) 2>&5
5129  ac_status=$?
5130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131  (exit $ac_status); }; }; then
5132  lt_cv_cc_needs_belf=yes
5133else
5134  echo "$as_me: failed program was:" >&5
5135sed 's/^/| /' conftest.$ac_ext >&5
5136
5137lt_cv_cc_needs_belf=no
5138fi
5139rm -f conftest.err conftest.$ac_objext \
5140      conftest$ac_exeext conftest.$ac_ext
5141     ac_ext=c
5142ac_cpp='$CPP $CPPFLAGS'
5143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146
5147fi
5148echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5149echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5150  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5151    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5152    CFLAGS="$SAVE_CFLAGS"
5153  fi
5154  ;;
5155*-*-cygwin* | *-*-mingw* | *-*-pw32*)
5156  if test -n "$ac_tool_prefix"; then
5157  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5158set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5159echo "$as_me:$LINENO: checking for $ac_word" >&5
5160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5161if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5162  echo $ECHO_N "(cached) $ECHO_C" >&6
5163else
5164  if test -n "$DLLTOOL"; then
5165  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5166else
5167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168for as_dir in $PATH
5169do
5170  IFS=$as_save_IFS
5171  test -z "$as_dir" && as_dir=.
5172  for ac_exec_ext in '' $ac_executable_extensions; do
5173  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5175    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176    break 2
5177  fi
5178done
5179done
5180
5181fi
5182fi
5183DLLTOOL=$ac_cv_prog_DLLTOOL
5184if test -n "$DLLTOOL"; then
5185  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5186echo "${ECHO_T}$DLLTOOL" >&6
5187else
5188  echo "$as_me:$LINENO: result: no" >&5
5189echo "${ECHO_T}no" >&6
5190fi
5191
5192fi
5193if test -z "$ac_cv_prog_DLLTOOL"; then
5194  ac_ct_DLLTOOL=$DLLTOOL
5195  # Extract the first word of "dlltool", so it can be a program name with args.
5196set dummy dlltool; ac_word=$2
5197echo "$as_me:$LINENO: checking for $ac_word" >&5
5198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5199if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5200  echo $ECHO_N "(cached) $ECHO_C" >&6
5201else
5202  if test -n "$ac_ct_DLLTOOL"; then
5203  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5204else
5205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206for as_dir in $PATH
5207do
5208  IFS=$as_save_IFS
5209  test -z "$as_dir" && as_dir=.
5210  for ac_exec_ext in '' $ac_executable_extensions; do
5211  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5213    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214    break 2
5215  fi
5216done
5217done
5218
5219  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5220fi
5221fi
5222ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5223if test -n "$ac_ct_DLLTOOL"; then
5224  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5225echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5226else
5227  echo "$as_me:$LINENO: result: no" >&5
5228echo "${ECHO_T}no" >&6
5229fi
5230
5231  DLLTOOL=$ac_ct_DLLTOOL
5232else
5233  DLLTOOL="$ac_cv_prog_DLLTOOL"
5234fi
5235
5236  if test -n "$ac_tool_prefix"; then
5237  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5238set dummy ${ac_tool_prefix}as; ac_word=$2
5239echo "$as_me:$LINENO: checking for $ac_word" >&5
5240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5241if test "${ac_cv_prog_AS+set}" = set; then
5242  echo $ECHO_N "(cached) $ECHO_C" >&6
5243else
5244  if test -n "$AS"; then
5245  ac_cv_prog_AS="$AS" # Let the user override the test.
5246else
5247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248for as_dir in $PATH
5249do
5250  IFS=$as_save_IFS
5251  test -z "$as_dir" && as_dir=.
5252  for ac_exec_ext in '' $ac_executable_extensions; do
5253  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254    ac_cv_prog_AS="${ac_tool_prefix}as"
5255    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256    break 2
5257  fi
5258done
5259done
5260
5261fi
5262fi
5263AS=$ac_cv_prog_AS
5264if test -n "$AS"; then
5265  echo "$as_me:$LINENO: result: $AS" >&5
5266echo "${ECHO_T}$AS" >&6
5267else
5268  echo "$as_me:$LINENO: result: no" >&5
5269echo "${ECHO_T}no" >&6
5270fi
5271
5272fi
5273if test -z "$ac_cv_prog_AS"; then
5274  ac_ct_AS=$AS
5275  # Extract the first word of "as", so it can be a program name with args.
5276set dummy as; ac_word=$2
5277echo "$as_me:$LINENO: checking for $ac_word" >&5
5278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5279if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5280  echo $ECHO_N "(cached) $ECHO_C" >&6
5281else
5282  if test -n "$ac_ct_AS"; then
5283  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5284else
5285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286for as_dir in $PATH
5287do
5288  IFS=$as_save_IFS
5289  test -z "$as_dir" && as_dir=.
5290  for ac_exec_ext in '' $ac_executable_extensions; do
5291  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5292    ac_cv_prog_ac_ct_AS="as"
5293    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5294    break 2
5295  fi
5296done
5297done
5298
5299  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5300fi
5301fi
5302ac_ct_AS=$ac_cv_prog_ac_ct_AS
5303if test -n "$ac_ct_AS"; then
5304  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5305echo "${ECHO_T}$ac_ct_AS" >&6
5306else
5307  echo "$as_me:$LINENO: result: no" >&5
5308echo "${ECHO_T}no" >&6
5309fi
5310
5311  AS=$ac_ct_AS
5312else
5313  AS="$ac_cv_prog_AS"
5314fi
5315
5316  if test -n "$ac_tool_prefix"; then
5317  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5318set dummy ${ac_tool_prefix}objdump; ac_word=$2
5319echo "$as_me:$LINENO: checking for $ac_word" >&5
5320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5321if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5322  echo $ECHO_N "(cached) $ECHO_C" >&6
5323else
5324  if test -n "$OBJDUMP"; then
5325  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5326else
5327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328for as_dir in $PATH
5329do
5330  IFS=$as_save_IFS
5331  test -z "$as_dir" && as_dir=.
5332  for ac_exec_ext in '' $ac_executable_extensions; do
5333  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5334    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5335    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336    break 2
5337  fi
5338done
5339done
5340
5341fi
5342fi
5343OBJDUMP=$ac_cv_prog_OBJDUMP
5344if test -n "$OBJDUMP"; then
5345  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5346echo "${ECHO_T}$OBJDUMP" >&6
5347else
5348  echo "$as_me:$LINENO: result: no" >&5
5349echo "${ECHO_T}no" >&6
5350fi
5351
5352fi
5353if test -z "$ac_cv_prog_OBJDUMP"; then
5354  ac_ct_OBJDUMP=$OBJDUMP
5355  # Extract the first word of "objdump", so it can be a program name with args.
5356set dummy objdump; ac_word=$2
5357echo "$as_me:$LINENO: checking for $ac_word" >&5
5358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5359if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5360  echo $ECHO_N "(cached) $ECHO_C" >&6
5361else
5362  if test -n "$ac_ct_OBJDUMP"; then
5363  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5364else
5365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH
5367do
5368  IFS=$as_save_IFS
5369  test -z "$as_dir" && as_dir=.
5370  for ac_exec_ext in '' $ac_executable_extensions; do
5371  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5373    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5374    break 2
5375  fi
5376done
5377done
5378
5379  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5380fi
5381fi
5382ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5383if test -n "$ac_ct_OBJDUMP"; then
5384  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5385echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5386else
5387  echo "$as_me:$LINENO: result: no" >&5
5388echo "${ECHO_T}no" >&6
5389fi
5390
5391  OBJDUMP=$ac_ct_OBJDUMP
5392else
5393  OBJDUMP="$ac_cv_prog_OBJDUMP"
5394fi
5395
5396  ;;
5397
5398esac
5399
5400need_locks="$enable_libtool_lock"
5401
5402
5403
5404for ac_header in dlfcn.h
5405do
5406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5407if eval "test \"\${$as_ac_Header+set}\" = set"; then
5408  echo "$as_me:$LINENO: checking for $ac_header" >&5
5409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5410if eval "test \"\${$as_ac_Header+set}\" = set"; then
5411  echo $ECHO_N "(cached) $ECHO_C" >&6
5412fi
5413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5414echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5415else
5416  # Is the header compilable?
5417echo "$as_me:$LINENO: checking $ac_header usability" >&5
5418echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5419cat >conftest.$ac_ext <<_ACEOF
5420/* confdefs.h.  */
5421_ACEOF
5422cat confdefs.h >>conftest.$ac_ext
5423cat >>conftest.$ac_ext <<_ACEOF
5424/* end confdefs.h.  */
5425$ac_includes_default
5426#include <$ac_header>
5427_ACEOF
5428rm -f conftest.$ac_objext
5429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5430  (eval $ac_compile) 2>conftest.er1
5431  ac_status=$?
5432  grep -v '^ *+' conftest.er1 >conftest.err
5433  rm -f conftest.er1
5434  cat conftest.err >&5
5435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436  (exit $ac_status); } &&
5437	 { ac_try='test -z "$ac_c_werror_flag"
5438			 || test ! -s conftest.err'
5439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440  (eval $ac_try) 2>&5
5441  ac_status=$?
5442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443  (exit $ac_status); }; } &&
5444	 { ac_try='test -s conftest.$ac_objext'
5445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446  (eval $ac_try) 2>&5
5447  ac_status=$?
5448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449  (exit $ac_status); }; }; then
5450  ac_header_compiler=yes
5451else
5452  echo "$as_me: failed program was:" >&5
5453sed 's/^/| /' conftest.$ac_ext >&5
5454
5455ac_header_compiler=no
5456fi
5457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5458echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5459echo "${ECHO_T}$ac_header_compiler" >&6
5460
5461# Is the header present?
5462echo "$as_me:$LINENO: checking $ac_header presence" >&5
5463echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5464cat >conftest.$ac_ext <<_ACEOF
5465/* confdefs.h.  */
5466_ACEOF
5467cat confdefs.h >>conftest.$ac_ext
5468cat >>conftest.$ac_ext <<_ACEOF
5469/* end confdefs.h.  */
5470#include <$ac_header>
5471_ACEOF
5472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5473  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5474  ac_status=$?
5475  grep -v '^ *+' conftest.er1 >conftest.err
5476  rm -f conftest.er1
5477  cat conftest.err >&5
5478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479  (exit $ac_status); } >/dev/null; then
5480  if test -s conftest.err; then
5481    ac_cpp_err=$ac_c_preproc_warn_flag
5482    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5483  else
5484    ac_cpp_err=
5485  fi
5486else
5487  ac_cpp_err=yes
5488fi
5489if test -z "$ac_cpp_err"; then
5490  ac_header_preproc=yes
5491else
5492  echo "$as_me: failed program was:" >&5
5493sed 's/^/| /' conftest.$ac_ext >&5
5494
5495  ac_header_preproc=no
5496fi
5497rm -f conftest.err conftest.$ac_ext
5498echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5499echo "${ECHO_T}$ac_header_preproc" >&6
5500
5501# So?  What about this header?
5502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5503  yes:no: )
5504    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5505echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5506    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5507echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5508    ac_header_preproc=yes
5509    ;;
5510  no:yes:* )
5511    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5512echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5513    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5514echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5515    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5516echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5517    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5518echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5519    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5520echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5521    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5522echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5523    (
5524      cat <<\_ASBOX
5525## ------------------------------------------ ##
5526## Report this to the AC_PACKAGE_NAME lists.  ##
5527## ------------------------------------------ ##
5528_ASBOX
5529    ) |
5530      sed "s/^/$as_me: WARNING:     /" >&2
5531    ;;
5532esac
5533echo "$as_me:$LINENO: checking for $ac_header" >&5
5534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5535if eval "test \"\${$as_ac_Header+set}\" = set"; then
5536  echo $ECHO_N "(cached) $ECHO_C" >&6
5537else
5538  eval "$as_ac_Header=\$ac_header_preproc"
5539fi
5540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5541echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5542
5543fi
5544if test `eval echo '${'$as_ac_Header'}'` = yes; then
5545  cat >>confdefs.h <<_ACEOF
5546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5547_ACEOF
5548
5549fi
5550
5551done
5552
5553ac_ext=cc
5554ac_cpp='$CXXCPP $CPPFLAGS'
5555ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5556ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5557ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5558if test -n "$ac_tool_prefix"; then
5559  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5560  do
5561    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5562set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5563echo "$as_me:$LINENO: checking for $ac_word" >&5
5564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5565if test "${ac_cv_prog_CXX+set}" = set; then
5566  echo $ECHO_N "(cached) $ECHO_C" >&6
5567else
5568  if test -n "$CXX"; then
5569  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5570else
5571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572for as_dir in $PATH
5573do
5574  IFS=$as_save_IFS
5575  test -z "$as_dir" && as_dir=.
5576  for ac_exec_ext in '' $ac_executable_extensions; do
5577  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5578    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5579    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5580    break 2
5581  fi
5582done
5583done
5584
5585fi
5586fi
5587CXX=$ac_cv_prog_CXX
5588if test -n "$CXX"; then
5589  echo "$as_me:$LINENO: result: $CXX" >&5
5590echo "${ECHO_T}$CXX" >&6
5591else
5592  echo "$as_me:$LINENO: result: no" >&5
5593echo "${ECHO_T}no" >&6
5594fi
5595
5596    test -n "$CXX" && break
5597  done
5598fi
5599if test -z "$CXX"; then
5600  ac_ct_CXX=$CXX
5601  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5602do
5603  # Extract the first word of "$ac_prog", so it can be a program name with args.
5604set dummy $ac_prog; ac_word=$2
5605echo "$as_me:$LINENO: checking for $ac_word" >&5
5606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5607if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5608  echo $ECHO_N "(cached) $ECHO_C" >&6
5609else
5610  if test -n "$ac_ct_CXX"; then
5611  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5612else
5613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614for as_dir in $PATH
5615do
5616  IFS=$as_save_IFS
5617  test -z "$as_dir" && as_dir=.
5618  for ac_exec_ext in '' $ac_executable_extensions; do
5619  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5620    ac_cv_prog_ac_ct_CXX="$ac_prog"
5621    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5622    break 2
5623  fi
5624done
5625done
5626
5627fi
5628fi
5629ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5630if test -n "$ac_ct_CXX"; then
5631  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5632echo "${ECHO_T}$ac_ct_CXX" >&6
5633else
5634  echo "$as_me:$LINENO: result: no" >&5
5635echo "${ECHO_T}no" >&6
5636fi
5637
5638  test -n "$ac_ct_CXX" && break
5639done
5640test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5641
5642  CXX=$ac_ct_CXX
5643fi
5644
5645
5646# Provide some information about the compiler.
5647echo "$as_me:$LINENO:" \
5648     "checking for C++ compiler version" >&5
5649ac_compiler=`set X $ac_compile; echo $2`
5650{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5651  (eval $ac_compiler --version </dev/null >&5) 2>&5
5652  ac_status=$?
5653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654  (exit $ac_status); }
5655{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5656  (eval $ac_compiler -v </dev/null >&5) 2>&5
5657  ac_status=$?
5658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659  (exit $ac_status); }
5660{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5661  (eval $ac_compiler -V </dev/null >&5) 2>&5
5662  ac_status=$?
5663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664  (exit $ac_status); }
5665
5666echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5667echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5668if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5669  echo $ECHO_N "(cached) $ECHO_C" >&6
5670else
5671  cat >conftest.$ac_ext <<_ACEOF
5672/* confdefs.h.  */
5673_ACEOF
5674cat confdefs.h >>conftest.$ac_ext
5675cat >>conftest.$ac_ext <<_ACEOF
5676/* end confdefs.h.  */
5677
5678int
5679main ()
5680{
5681#ifndef __GNUC__
5682       choke me
5683#endif
5684
5685  ;
5686  return 0;
5687}
5688_ACEOF
5689rm -f conftest.$ac_objext
5690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5691  (eval $ac_compile) 2>conftest.er1
5692  ac_status=$?
5693  grep -v '^ *+' conftest.er1 >conftest.err
5694  rm -f conftest.er1
5695  cat conftest.err >&5
5696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697  (exit $ac_status); } &&
5698	 { ac_try='test -z "$ac_cxx_werror_flag"
5699			 || test ! -s conftest.err'
5700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701  (eval $ac_try) 2>&5
5702  ac_status=$?
5703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704  (exit $ac_status); }; } &&
5705	 { ac_try='test -s conftest.$ac_objext'
5706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707  (eval $ac_try) 2>&5
5708  ac_status=$?
5709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710  (exit $ac_status); }; }; then
5711  ac_compiler_gnu=yes
5712else
5713  echo "$as_me: failed program was:" >&5
5714sed 's/^/| /' conftest.$ac_ext >&5
5715
5716ac_compiler_gnu=no
5717fi
5718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5719ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5720
5721fi
5722echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5723echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5724GXX=`test $ac_compiler_gnu = yes && echo yes`
5725ac_test_CXXFLAGS=${CXXFLAGS+set}
5726ac_save_CXXFLAGS=$CXXFLAGS
5727CXXFLAGS="-g"
5728echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5729echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5730if test "${ac_cv_prog_cxx_g+set}" = set; then
5731  echo $ECHO_N "(cached) $ECHO_C" >&6
5732else
5733  cat >conftest.$ac_ext <<_ACEOF
5734/* confdefs.h.  */
5735_ACEOF
5736cat confdefs.h >>conftest.$ac_ext
5737cat >>conftest.$ac_ext <<_ACEOF
5738/* end confdefs.h.  */
5739
5740int
5741main ()
5742{
5743
5744  ;
5745  return 0;
5746}
5747_ACEOF
5748rm -f conftest.$ac_objext
5749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5750  (eval $ac_compile) 2>conftest.er1
5751  ac_status=$?
5752  grep -v '^ *+' conftest.er1 >conftest.err
5753  rm -f conftest.er1
5754  cat conftest.err >&5
5755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756  (exit $ac_status); } &&
5757	 { ac_try='test -z "$ac_cxx_werror_flag"
5758			 || test ! -s conftest.err'
5759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760  (eval $ac_try) 2>&5
5761  ac_status=$?
5762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763  (exit $ac_status); }; } &&
5764	 { ac_try='test -s conftest.$ac_objext'
5765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766  (eval $ac_try) 2>&5
5767  ac_status=$?
5768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769  (exit $ac_status); }; }; then
5770  ac_cv_prog_cxx_g=yes
5771else
5772  echo "$as_me: failed program was:" >&5
5773sed 's/^/| /' conftest.$ac_ext >&5
5774
5775ac_cv_prog_cxx_g=no
5776fi
5777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5778fi
5779echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5780echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5781if test "$ac_test_CXXFLAGS" = set; then
5782  CXXFLAGS=$ac_save_CXXFLAGS
5783elif test $ac_cv_prog_cxx_g = yes; then
5784  if test "$GXX" = yes; then
5785    CXXFLAGS="-g -O2"
5786  else
5787    CXXFLAGS="-g"
5788  fi
5789else
5790  if test "$GXX" = yes; then
5791    CXXFLAGS="-O2"
5792  else
5793    CXXFLAGS=
5794  fi
5795fi
5796for ac_declaration in \
5797   '' \
5798   'extern "C" void std::exit (int) throw (); using std::exit;' \
5799   'extern "C" void std::exit (int); using std::exit;' \
5800   'extern "C" void exit (int) throw ();' \
5801   'extern "C" void exit (int);' \
5802   'void exit (int);'
5803do
5804  cat >conftest.$ac_ext <<_ACEOF
5805/* confdefs.h.  */
5806_ACEOF
5807cat confdefs.h >>conftest.$ac_ext
5808cat >>conftest.$ac_ext <<_ACEOF
5809/* end confdefs.h.  */
5810$ac_declaration
5811#include <stdlib.h>
5812int
5813main ()
5814{
5815exit (42);
5816  ;
5817  return 0;
5818}
5819_ACEOF
5820rm -f conftest.$ac_objext
5821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822  (eval $ac_compile) 2>conftest.er1
5823  ac_status=$?
5824  grep -v '^ *+' conftest.er1 >conftest.err
5825  rm -f conftest.er1
5826  cat conftest.err >&5
5827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828  (exit $ac_status); } &&
5829	 { ac_try='test -z "$ac_cxx_werror_flag"
5830			 || test ! -s conftest.err'
5831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832  (eval $ac_try) 2>&5
5833  ac_status=$?
5834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835  (exit $ac_status); }; } &&
5836	 { ac_try='test -s conftest.$ac_objext'
5837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838  (eval $ac_try) 2>&5
5839  ac_status=$?
5840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841  (exit $ac_status); }; }; then
5842  :
5843else
5844  echo "$as_me: failed program was:" >&5
5845sed 's/^/| /' conftest.$ac_ext >&5
5846
5847continue
5848fi
5849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5850  cat >conftest.$ac_ext <<_ACEOF
5851/* confdefs.h.  */
5852_ACEOF
5853cat confdefs.h >>conftest.$ac_ext
5854cat >>conftest.$ac_ext <<_ACEOF
5855/* end confdefs.h.  */
5856$ac_declaration
5857int
5858main ()
5859{
5860exit (42);
5861  ;
5862  return 0;
5863}
5864_ACEOF
5865rm -f conftest.$ac_objext
5866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867  (eval $ac_compile) 2>conftest.er1
5868  ac_status=$?
5869  grep -v '^ *+' conftest.er1 >conftest.err
5870  rm -f conftest.er1
5871  cat conftest.err >&5
5872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873  (exit $ac_status); } &&
5874	 { ac_try='test -z "$ac_cxx_werror_flag"
5875			 || test ! -s conftest.err'
5876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877  (eval $ac_try) 2>&5
5878  ac_status=$?
5879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880  (exit $ac_status); }; } &&
5881	 { ac_try='test -s conftest.$ac_objext'
5882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883  (eval $ac_try) 2>&5
5884  ac_status=$?
5885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886  (exit $ac_status); }; }; then
5887  break
5888else
5889  echo "$as_me: failed program was:" >&5
5890sed 's/^/| /' conftest.$ac_ext >&5
5891
5892fi
5893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5894done
5895rm -f conftest*
5896if test -n "$ac_declaration"; then
5897  echo '#ifdef __cplusplus' >>confdefs.h
5898  echo $ac_declaration      >>confdefs.h
5899  echo '#endif'             >>confdefs.h
5900fi
5901
5902ac_ext=cc
5903ac_cpp='$CXXCPP $CPPFLAGS'
5904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5907
5908depcc="$CXX"  am_compiler_list=
5909
5910echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5911echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5912if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5913  echo $ECHO_N "(cached) $ECHO_C" >&6
5914else
5915  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5916  # We make a subdir and do the tests there.  Otherwise we can end up
5917  # making bogus files that we don't know about and never remove.  For
5918  # instance it was reported that on HP-UX the gcc test will end up
5919  # making a dummy file named `D' -- because `-MD' means `put the output
5920  # in D'.
5921  mkdir conftest.dir
5922  # Copy depcomp to subdir because otherwise we won't find it if we're
5923  # using a relative directory.
5924  cp "$am_depcomp" conftest.dir
5925  cd conftest.dir
5926  # We will build objects and dependencies in a subdirectory because
5927  # it helps to detect inapplicable dependency modes.  For instance
5928  # both Tru64's cc and ICC support -MD to output dependencies as a
5929  # side effect of compilation, but ICC will put the dependencies in
5930  # the current directory while Tru64 will put them in the object
5931  # directory.
5932  mkdir sub
5933
5934  am_cv_CXX_dependencies_compiler_type=none
5935  if test "$am_compiler_list" = ""; then
5936     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5937  fi
5938  for depmode in $am_compiler_list; do
5939    # Setup a source with many dependencies, because some compilers
5940    # like to wrap large dependency lists on column 80 (with \), and
5941    # we should not choose a depcomp mode which is confused by this.
5942    #
5943    # We need to recreate these files for each test, as the compiler may
5944    # overwrite some of them when testing with obscure command lines.
5945    # This happens at least with the AIX C compiler.
5946    : > sub/conftest.c
5947    for i in 1 2 3 4 5 6; do
5948      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5949      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5950      # Solaris 8's {/usr,}/bin/sh.
5951      touch sub/conftst$i.h
5952    done
5953    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5954
5955    case $depmode in
5956    nosideeffect)
5957      # after this tag, mechanisms are not by side-effect, so they'll
5958      # only be used when explicitly requested
5959      if test "x$enable_dependency_tracking" = xyes; then
5960	continue
5961      else
5962	break
5963      fi
5964      ;;
5965    none) break ;;
5966    esac
5967    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5968    # mode.  It turns out that the SunPro C++ compiler does not properly
5969    # handle `-M -o', and we need to detect this.
5970    if depmode=$depmode \
5971       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5972       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5973       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5974         >/dev/null 2>conftest.err &&
5975       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5976       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5977       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5978      # icc doesn't choke on unknown options, it will just issue warnings
5979      # or remarks (even with -Werror).  So we grep stderr for any message
5980      # that says an option was ignored or not supported.
5981      # When given -MP, icc 7.0 and 7.1 complain thusly:
5982      #   icc: Command line warning: ignoring option '-M'; no argument required
5983      # The diagnosis changed in icc 8.0:
5984      #   icc: Command line remark: option '-MP' not supported
5985      if (grep 'ignoring option' conftest.err ||
5986          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5987        am_cv_CXX_dependencies_compiler_type=$depmode
5988        break
5989      fi
5990    fi
5991  done
5992
5993  cd ..
5994  rm -rf conftest.dir
5995else
5996  am_cv_CXX_dependencies_compiler_type=none
5997fi
5998
5999fi
6000echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6001echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6002CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6003
6004
6005
6006if
6007  test "x$enable_dependency_tracking" != xno \
6008  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6009  am__fastdepCXX_TRUE=
6010  am__fastdepCXX_FALSE='#'
6011else
6012  am__fastdepCXX_TRUE='#'
6013  am__fastdepCXX_FALSE=
6014fi
6015
6016
6017
6018
6019if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6020    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6021    (test "X$CXX" != "Xg++"))) ; then
6022  ac_ext=cc
6023ac_cpp='$CXXCPP $CPPFLAGS'
6024ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6025ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6026ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6027echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6028echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6029if test -z "$CXXCPP"; then
6030  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6031  echo $ECHO_N "(cached) $ECHO_C" >&6
6032else
6033      # Double quotes because CXXCPP needs to be expanded
6034    for CXXCPP in "$CXX -E" "/lib/cpp"
6035    do
6036      ac_preproc_ok=false
6037for ac_cxx_preproc_warn_flag in '' yes
6038do
6039  # Use a header file that comes with gcc, so configuring glibc
6040  # with a fresh cross-compiler works.
6041  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6042  # <limits.h> exists even on freestanding compilers.
6043  # On the NeXT, cc -E runs the code through the compiler's parser,
6044  # not just through cpp. "Syntax error" is here to catch this case.
6045  cat >conftest.$ac_ext <<_ACEOF
6046/* confdefs.h.  */
6047_ACEOF
6048cat confdefs.h >>conftest.$ac_ext
6049cat >>conftest.$ac_ext <<_ACEOF
6050/* end confdefs.h.  */
6051#ifdef __STDC__
6052# include <limits.h>
6053#else
6054# include <assert.h>
6055#endif
6056		     Syntax error
6057_ACEOF
6058if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6059  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6060  ac_status=$?
6061  grep -v '^ *+' conftest.er1 >conftest.err
6062  rm -f conftest.er1
6063  cat conftest.err >&5
6064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065  (exit $ac_status); } >/dev/null; then
6066  if test -s conftest.err; then
6067    ac_cpp_err=$ac_cxx_preproc_warn_flag
6068    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6069  else
6070    ac_cpp_err=
6071  fi
6072else
6073  ac_cpp_err=yes
6074fi
6075if test -z "$ac_cpp_err"; then
6076  :
6077else
6078  echo "$as_me: failed program was:" >&5
6079sed 's/^/| /' conftest.$ac_ext >&5
6080
6081  # Broken: fails on valid input.
6082continue
6083fi
6084rm -f conftest.err conftest.$ac_ext
6085
6086  # OK, works on sane cases.  Now check whether non-existent headers
6087  # can be detected and how.
6088  cat >conftest.$ac_ext <<_ACEOF
6089/* confdefs.h.  */
6090_ACEOF
6091cat confdefs.h >>conftest.$ac_ext
6092cat >>conftest.$ac_ext <<_ACEOF
6093/* end confdefs.h.  */
6094#include <ac_nonexistent.h>
6095_ACEOF
6096if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6097  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6098  ac_status=$?
6099  grep -v '^ *+' conftest.er1 >conftest.err
6100  rm -f conftest.er1
6101  cat conftest.err >&5
6102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103  (exit $ac_status); } >/dev/null; then
6104  if test -s conftest.err; then
6105    ac_cpp_err=$ac_cxx_preproc_warn_flag
6106    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6107  else
6108    ac_cpp_err=
6109  fi
6110else
6111  ac_cpp_err=yes
6112fi
6113if test -z "$ac_cpp_err"; then
6114  # Broken: success on invalid input.
6115continue
6116else
6117  echo "$as_me: failed program was:" >&5
6118sed 's/^/| /' conftest.$ac_ext >&5
6119
6120  # Passes both tests.
6121ac_preproc_ok=:
6122break
6123fi
6124rm -f conftest.err conftest.$ac_ext
6125
6126done
6127# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6128rm -f conftest.err conftest.$ac_ext
6129if $ac_preproc_ok; then
6130  break
6131fi
6132
6133    done
6134    ac_cv_prog_CXXCPP=$CXXCPP
6135
6136fi
6137  CXXCPP=$ac_cv_prog_CXXCPP
6138else
6139  ac_cv_prog_CXXCPP=$CXXCPP
6140fi
6141echo "$as_me:$LINENO: result: $CXXCPP" >&5
6142echo "${ECHO_T}$CXXCPP" >&6
6143ac_preproc_ok=false
6144for ac_cxx_preproc_warn_flag in '' yes
6145do
6146  # Use a header file that comes with gcc, so configuring glibc
6147  # with a fresh cross-compiler works.
6148  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6149  # <limits.h> exists even on freestanding compilers.
6150  # On the NeXT, cc -E runs the code through the compiler's parser,
6151  # not just through cpp. "Syntax error" is here to catch this case.
6152  cat >conftest.$ac_ext <<_ACEOF
6153/* confdefs.h.  */
6154_ACEOF
6155cat confdefs.h >>conftest.$ac_ext
6156cat >>conftest.$ac_ext <<_ACEOF
6157/* end confdefs.h.  */
6158#ifdef __STDC__
6159# include <limits.h>
6160#else
6161# include <assert.h>
6162#endif
6163		     Syntax error
6164_ACEOF
6165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6166  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6167  ac_status=$?
6168  grep -v '^ *+' conftest.er1 >conftest.err
6169  rm -f conftest.er1
6170  cat conftest.err >&5
6171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172  (exit $ac_status); } >/dev/null; then
6173  if test -s conftest.err; then
6174    ac_cpp_err=$ac_cxx_preproc_warn_flag
6175    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6176  else
6177    ac_cpp_err=
6178  fi
6179else
6180  ac_cpp_err=yes
6181fi
6182if test -z "$ac_cpp_err"; then
6183  :
6184else
6185  echo "$as_me: failed program was:" >&5
6186sed 's/^/| /' conftest.$ac_ext >&5
6187
6188  # Broken: fails on valid input.
6189continue
6190fi
6191rm -f conftest.err conftest.$ac_ext
6192
6193  # OK, works on sane cases.  Now check whether non-existent headers
6194  # can be detected and how.
6195  cat >conftest.$ac_ext <<_ACEOF
6196/* confdefs.h.  */
6197_ACEOF
6198cat confdefs.h >>conftest.$ac_ext
6199cat >>conftest.$ac_ext <<_ACEOF
6200/* end confdefs.h.  */
6201#include <ac_nonexistent.h>
6202_ACEOF
6203if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6204  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6205  ac_status=$?
6206  grep -v '^ *+' conftest.er1 >conftest.err
6207  rm -f conftest.er1
6208  cat conftest.err >&5
6209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210  (exit $ac_status); } >/dev/null; then
6211  if test -s conftest.err; then
6212    ac_cpp_err=$ac_cxx_preproc_warn_flag
6213    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6214  else
6215    ac_cpp_err=
6216  fi
6217else
6218  ac_cpp_err=yes
6219fi
6220if test -z "$ac_cpp_err"; then
6221  # Broken: success on invalid input.
6222continue
6223else
6224  echo "$as_me: failed program was:" >&5
6225sed 's/^/| /' conftest.$ac_ext >&5
6226
6227  # Passes both tests.
6228ac_preproc_ok=:
6229break
6230fi
6231rm -f conftest.err conftest.$ac_ext
6232
6233done
6234# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6235rm -f conftest.err conftest.$ac_ext
6236if $ac_preproc_ok; then
6237  :
6238else
6239  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6240See \`config.log' for more details." >&5
6241echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6242See \`config.log' for more details." >&2;}
6243   { (exit 1); exit 1; }; }
6244fi
6245
6246ac_ext=cc
6247ac_cpp='$CXXCPP $CPPFLAGS'
6248ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6249ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6250ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6251
6252fi
6253
6254
6255ac_ext=f
6256ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6257ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6258ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6259if test -n "$ac_tool_prefix"; then
6260  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6261  do
6262    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6263set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6264echo "$as_me:$LINENO: checking for $ac_word" >&5
6265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6266if test "${ac_cv_prog_F77+set}" = set; then
6267  echo $ECHO_N "(cached) $ECHO_C" >&6
6268else
6269  if test -n "$F77"; then
6270  ac_cv_prog_F77="$F77" # Let the user override the test.
6271else
6272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273for as_dir in $PATH
6274do
6275  IFS=$as_save_IFS
6276  test -z "$as_dir" && as_dir=.
6277  for ac_exec_ext in '' $ac_executable_extensions; do
6278  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6279    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6280    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6281    break 2
6282  fi
6283done
6284done
6285
6286fi
6287fi
6288F77=$ac_cv_prog_F77
6289if test -n "$F77"; then
6290  echo "$as_me:$LINENO: result: $F77" >&5
6291echo "${ECHO_T}$F77" >&6
6292else
6293  echo "$as_me:$LINENO: result: no" >&5
6294echo "${ECHO_T}no" >&6
6295fi
6296
6297    test -n "$F77" && break
6298  done
6299fi
6300if test -z "$F77"; then
6301  ac_ct_F77=$F77
6302  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6303do
6304  # Extract the first word of "$ac_prog", so it can be a program name with args.
6305set dummy $ac_prog; ac_word=$2
6306echo "$as_me:$LINENO: checking for $ac_word" >&5
6307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6308if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6309  echo $ECHO_N "(cached) $ECHO_C" >&6
6310else
6311  if test -n "$ac_ct_F77"; then
6312  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6313else
6314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315for as_dir in $PATH
6316do
6317  IFS=$as_save_IFS
6318  test -z "$as_dir" && as_dir=.
6319  for ac_exec_ext in '' $ac_executable_extensions; do
6320  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6321    ac_cv_prog_ac_ct_F77="$ac_prog"
6322    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6323    break 2
6324  fi
6325done
6326done
6327
6328fi
6329fi
6330ac_ct_F77=$ac_cv_prog_ac_ct_F77
6331if test -n "$ac_ct_F77"; then
6332  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6333echo "${ECHO_T}$ac_ct_F77" >&6
6334else
6335  echo "$as_me:$LINENO: result: no" >&5
6336echo "${ECHO_T}no" >&6
6337fi
6338
6339  test -n "$ac_ct_F77" && break
6340done
6341
6342  F77=$ac_ct_F77
6343fi
6344
6345
6346# Provide some information about the compiler.
6347echo "$as_me:6347:" \
6348     "checking for Fortran 77 compiler version" >&5
6349ac_compiler=`set X $ac_compile; echo $2`
6350{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6351  (eval $ac_compiler --version </dev/null >&5) 2>&5
6352  ac_status=$?
6353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354  (exit $ac_status); }
6355{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6356  (eval $ac_compiler -v </dev/null >&5) 2>&5
6357  ac_status=$?
6358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359  (exit $ac_status); }
6360{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6361  (eval $ac_compiler -V </dev/null >&5) 2>&5
6362  ac_status=$?
6363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364  (exit $ac_status); }
6365rm -f a.out
6366
6367# If we don't use `.F' as extension, the preprocessor is not run on the
6368# input file.  (Note that this only needs to work for GNU compilers.)
6369ac_save_ext=$ac_ext
6370ac_ext=F
6371echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6372echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6373if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6374  echo $ECHO_N "(cached) $ECHO_C" >&6
6375else
6376  cat >conftest.$ac_ext <<_ACEOF
6377      program main
6378#ifndef __GNUC__
6379       choke me
6380#endif
6381
6382      end
6383_ACEOF
6384rm -f conftest.$ac_objext
6385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6386  (eval $ac_compile) 2>conftest.er1
6387  ac_status=$?
6388  grep -v '^ *+' conftest.er1 >conftest.err
6389  rm -f conftest.er1
6390  cat conftest.err >&5
6391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392  (exit $ac_status); } &&
6393	 { ac_try='test -z "$ac_f77_werror_flag"
6394			 || test ! -s conftest.err'
6395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396  (eval $ac_try) 2>&5
6397  ac_status=$?
6398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399  (exit $ac_status); }; } &&
6400	 { ac_try='test -s conftest.$ac_objext'
6401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402  (eval $ac_try) 2>&5
6403  ac_status=$?
6404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405  (exit $ac_status); }; }; then
6406  ac_compiler_gnu=yes
6407else
6408  echo "$as_me: failed program was:" >&5
6409sed 's/^/| /' conftest.$ac_ext >&5
6410
6411ac_compiler_gnu=no
6412fi
6413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6414ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6415
6416fi
6417echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6418echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6419ac_ext=$ac_save_ext
6420ac_test_FFLAGS=${FFLAGS+set}
6421ac_save_FFLAGS=$FFLAGS
6422FFLAGS=
6423echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6424echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6425if test "${ac_cv_prog_f77_g+set}" = set; then
6426  echo $ECHO_N "(cached) $ECHO_C" >&6
6427else
6428  FFLAGS=-g
6429cat >conftest.$ac_ext <<_ACEOF
6430      program main
6431
6432      end
6433_ACEOF
6434rm -f conftest.$ac_objext
6435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6436  (eval $ac_compile) 2>conftest.er1
6437  ac_status=$?
6438  grep -v '^ *+' conftest.er1 >conftest.err
6439  rm -f conftest.er1
6440  cat conftest.err >&5
6441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442  (exit $ac_status); } &&
6443	 { ac_try='test -z "$ac_f77_werror_flag"
6444			 || test ! -s conftest.err'
6445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446  (eval $ac_try) 2>&5
6447  ac_status=$?
6448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449  (exit $ac_status); }; } &&
6450	 { ac_try='test -s conftest.$ac_objext'
6451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452  (eval $ac_try) 2>&5
6453  ac_status=$?
6454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455  (exit $ac_status); }; }; then
6456  ac_cv_prog_f77_g=yes
6457else
6458  echo "$as_me: failed program was:" >&5
6459sed 's/^/| /' conftest.$ac_ext >&5
6460
6461ac_cv_prog_f77_g=no
6462fi
6463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6464
6465fi
6466echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6467echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6468if test "$ac_test_FFLAGS" = set; then
6469  FFLAGS=$ac_save_FFLAGS
6470elif test $ac_cv_prog_f77_g = yes; then
6471  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6472    FFLAGS="-g -O2"
6473  else
6474    FFLAGS="-g"
6475  fi
6476else
6477  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6478    FFLAGS="-O2"
6479  else
6480    FFLAGS=
6481  fi
6482fi
6483
6484G77=`test $ac_compiler_gnu = yes && echo yes`
6485ac_ext=c
6486ac_cpp='$CPP $CPPFLAGS'
6487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6489ac_compiler_gnu=$ac_cv_c_compiler_gnu
6490
6491
6492
6493# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6494
6495# find the maximum length of command line arguments
6496echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6497echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6498if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6499  echo $ECHO_N "(cached) $ECHO_C" >&6
6500else
6501    i=0
6502  teststring="ABCD"
6503
6504  case $build_os in
6505  msdosdjgpp*)
6506    # On DJGPP, this test can blow up pretty badly due to problems in libc
6507    # (any single argument exceeding 2000 bytes causes a buffer overrun
6508    # during glob expansion).  Even if it were fixed, the result of this
6509    # check would be larger than it should be.
6510    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6511    ;;
6512
6513  gnu*)
6514    # Under GNU Hurd, this test is not required because there is
6515    # no limit to the length of command line arguments.
6516    # Libtool will interpret -1 as no limit whatsoever
6517    lt_cv_sys_max_cmd_len=-1;
6518    ;;
6519
6520  cygwin* | mingw*)
6521    # On Win9x/ME, this test blows up -- it succeeds, but takes
6522    # about 5 minutes as the teststring grows exponentially.
6523    # Worse, since 9x/ME are not pre-emptively multitasking,
6524    # you end up with a "frozen" computer, even though with patience
6525    # the test eventually succeeds (with a max line length of 256k).
6526    # Instead, let's just punt: use the minimum linelength reported by
6527    # all of the supported platforms: 8192 (on NT/2K/XP).
6528    lt_cv_sys_max_cmd_len=8192;
6529    ;;
6530
6531  amigaos*)
6532    # On AmigaOS with pdksh, this test takes hours, literally.
6533    # So we just punt and use a minimum line length of 8192.
6534    lt_cv_sys_max_cmd_len=8192;
6535    ;;
6536
6537  netbsd* | freebsd* | openbsd* | darwin* )
6538    # This has been around since 386BSD, at least.  Likely further.
6539    if test -x /sbin/sysctl; then
6540      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6541    elif test -x /usr/sbin/sysctl; then
6542      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6543    else
6544      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6545    fi
6546    # And add a safety zone
6547    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6548    ;;
6549
6550 *)
6551    # If test is not a shell built-in, we'll probably end up computing a
6552    # maximum length that is only half of the actual maximum length, but
6553    # we can't tell.
6554    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6555    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6556	       = "XX$teststring") >/dev/null 2>&1 &&
6557	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6558	    lt_cv_sys_max_cmd_len=$new_result &&
6559	    test $i != 17 # 1/2 MB should be enough
6560    do
6561      i=`expr $i + 1`
6562      teststring=$teststring$teststring
6563    done
6564    teststring=
6565    # Add a significant safety factor because C++ compilers can tack on massive
6566    # amounts of additional arguments before passing them to the linker.
6567    # It appears as though 1/2 is a usable value.
6568    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6569    ;;
6570  esac
6571
6572fi
6573
6574if test -n $lt_cv_sys_max_cmd_len ; then
6575  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6576echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6577else
6578  echo "$as_me:$LINENO: result: none" >&5
6579echo "${ECHO_T}none" >&6
6580fi
6581
6582
6583
6584
6585# Check for command to grab the raw symbol name followed by C symbol from nm.
6586echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6587echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6588if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6589  echo $ECHO_N "(cached) $ECHO_C" >&6
6590else
6591
6592# These are sane defaults that work on at least a few old systems.
6593# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6594
6595# Character class describing NM global symbol codes.
6596symcode='[BCDEGRST]'
6597
6598# Regexp to match symbols that can be accessed directly from C.
6599sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6600
6601# Transform the above into a raw symbol and a C symbol.
6602symxfrm='\1 \2\3 \3'
6603
6604# Transform an extracted symbol line into a proper C declaration
6605lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6606
6607# Transform an extracted symbol line into symbol name and symbol address
6608lt_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'"
6609
6610# Define system-specific variables.
6611case $host_os in
6612aix*)
6613  symcode='[BCDT]'
6614  ;;
6615cygwin* | mingw* | pw32*)
6616  symcode='[ABCDGISTW]'
6617  ;;
6618hpux*) # Its linker distinguishes data from code symbols
6619  if test "$host_cpu" = ia64; then
6620    symcode='[ABCDEGRST]'
6621  fi
6622  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6623  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'"
6624  ;;
6625linux*)
6626  if test "$host_cpu" = ia64; then
6627    symcode='[ABCDGIRSTW]'
6628    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6629    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'"
6630  fi
6631  ;;
6632irix* | nonstopux*)
6633  symcode='[BCDEGRST]'
6634  ;;
6635osf*)
6636  symcode='[BCDEGQRST]'
6637  ;;
6638solaris* | sysv5*)
6639  symcode='[BDRT]'
6640  ;;
6641sysv4)
6642  symcode='[DFNSTU]'
6643  ;;
6644esac
6645
6646# Handle CRLF in mingw tool chain
6647opt_cr=
6648case $build_os in
6649mingw*)
6650  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6651  ;;
6652esac
6653
6654# If we're using GNU nm, then use its standard symbol codes.
6655case `$NM -V 2>&1` in
6656*GNU* | *'with BFD'*)
6657  symcode='[ABCDGIRSTW]' ;;
6658esac
6659
6660# Try without a prefix undercore, then with it.
6661for ac_symprfx in "" "_"; do
6662
6663  # Write the raw and C identifiers.
6664  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6665
6666  # Check to see that the pipe works correctly.
6667  pipe_works=no
6668
6669  rm -f conftest*
6670  cat > conftest.$ac_ext <<EOF
6671#ifdef __cplusplus
6672extern "C" {
6673#endif
6674char nm_test_var;
6675void nm_test_func(){}
6676#ifdef __cplusplus
6677}
6678#endif
6679int main(){nm_test_var='a';nm_test_func();return(0);}
6680EOF
6681
6682  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6683  (eval $ac_compile) 2>&5
6684  ac_status=$?
6685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686  (exit $ac_status); }; then
6687    # Now try to grab the symbols.
6688    nlist=conftest.nm
6689    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6690  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6691  ac_status=$?
6692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693  (exit $ac_status); } && test -s "$nlist"; then
6694      # Try sorting and uniquifying the output.
6695      if sort "$nlist" | uniq > "$nlist"T; then
6696	mv -f "$nlist"T "$nlist"
6697      else
6698	rm -f "$nlist"T
6699      fi
6700
6701      # Make sure that we snagged all the symbols we need.
6702      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6703	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6704	  cat <<EOF > conftest.$ac_ext
6705#ifdef __cplusplus
6706extern "C" {
6707#endif
6708
6709EOF
6710	  # Now generate the symbol file.
6711	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6712
6713	  cat <<EOF >> conftest.$ac_ext
6714#if defined (__STDC__) && __STDC__
6715# define lt_ptr_t void *
6716#else
6717# define lt_ptr_t char *
6718# define const
6719#endif
6720
6721/* The mapping between symbol names and symbols. */
6722const struct {
6723  const char *name;
6724  lt_ptr_t address;
6725}
6726lt_preloaded_symbols[] =
6727{
6728EOF
6729	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6730	  cat <<\EOF >> conftest.$ac_ext
6731  {0, (lt_ptr_t) 0}
6732};
6733
6734#ifdef __cplusplus
6735}
6736#endif
6737EOF
6738	  # Now try linking the two files.
6739	  mv conftest.$ac_objext conftstm.$ac_objext
6740	  lt_save_LIBS="$LIBS"
6741	  lt_save_CFLAGS="$CFLAGS"
6742	  LIBS="conftstm.$ac_objext"
6743	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6744	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6745  (eval $ac_link) 2>&5
6746  ac_status=$?
6747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6749	    pipe_works=yes
6750	  fi
6751	  LIBS="$lt_save_LIBS"
6752	  CFLAGS="$lt_save_CFLAGS"
6753	else
6754	  echo "cannot find nm_test_func in $nlist" >&5
6755	fi
6756      else
6757	echo "cannot find nm_test_var in $nlist" >&5
6758      fi
6759    else
6760      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6761    fi
6762  else
6763    echo "$progname: failed program was:" >&5
6764    cat conftest.$ac_ext >&5
6765  fi
6766  rm -f conftest* conftst*
6767
6768  # Do not use the global_symbol_pipe unless it works.
6769  if test "$pipe_works" = yes; then
6770    break
6771  else
6772    lt_cv_sys_global_symbol_pipe=
6773  fi
6774done
6775
6776fi
6777
6778if test -z "$lt_cv_sys_global_symbol_pipe"; then
6779  lt_cv_sys_global_symbol_to_cdecl=
6780fi
6781if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6782  echo "$as_me:$LINENO: result: failed" >&5
6783echo "${ECHO_T}failed" >&6
6784else
6785  echo "$as_me:$LINENO: result: ok" >&5
6786echo "${ECHO_T}ok" >&6
6787fi
6788
6789echo "$as_me:$LINENO: checking for objdir" >&5
6790echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6791if test "${lt_cv_objdir+set}" = set; then
6792  echo $ECHO_N "(cached) $ECHO_C" >&6
6793else
6794  rm -f .libs 2>/dev/null
6795mkdir .libs 2>/dev/null
6796if test -d .libs; then
6797  lt_cv_objdir=.libs
6798else
6799  # MS-DOS does not allow filenames that begin with a dot.
6800  lt_cv_objdir=_libs
6801fi
6802rmdir .libs 2>/dev/null
6803fi
6804echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6805echo "${ECHO_T}$lt_cv_objdir" >&6
6806objdir=$lt_cv_objdir
6807
6808
6809
6810
6811
6812case $host_os in
6813aix3*)
6814  # AIX sometimes has problems with the GCC collect2 program.  For some
6815  # reason, if we set the COLLECT_NAMES environment variable, the problems
6816  # vanish in a puff of smoke.
6817  if test "X${COLLECT_NAMES+set}" != Xset; then
6818    COLLECT_NAMES=
6819    export COLLECT_NAMES
6820  fi
6821  ;;
6822esac
6823
6824# Sed substitution that helps us do robust quoting.  It backslashifies
6825# metacharacters that are still active within double-quoted strings.
6826Xsed='sed -e s/^X//'
6827sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6828
6829# Same as above, but do not quote variable references.
6830double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6831
6832# Sed substitution to delay expansion of an escaped shell variable in a
6833# double_quote_subst'ed string.
6834delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6835
6836# Sed substitution to avoid accidental globbing in evaled expressions
6837no_glob_subst='s/\*/\\\*/g'
6838
6839# Constants:
6840rm="rm -f"
6841
6842# Global variables:
6843default_ofile=libtool
6844can_build_shared=yes
6845
6846# All known linkers require a `.a' archive for static linking (except M$VC,
6847# which needs '.lib').
6848libext=a
6849ltmain="$ac_aux_dir/ltmain.sh"
6850ofile="$default_ofile"
6851with_gnu_ld="$lt_cv_prog_gnu_ld"
6852
6853if test -n "$ac_tool_prefix"; then
6854  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6855set dummy ${ac_tool_prefix}ar; ac_word=$2
6856echo "$as_me:$LINENO: checking for $ac_word" >&5
6857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6858if test "${ac_cv_prog_AR+set}" = set; then
6859  echo $ECHO_N "(cached) $ECHO_C" >&6
6860else
6861  if test -n "$AR"; then
6862  ac_cv_prog_AR="$AR" # Let the user override the test.
6863else
6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865for as_dir in $PATH
6866do
6867  IFS=$as_save_IFS
6868  test -z "$as_dir" && as_dir=.
6869  for ac_exec_ext in '' $ac_executable_extensions; do
6870  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6871    ac_cv_prog_AR="${ac_tool_prefix}ar"
6872    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873    break 2
6874  fi
6875done
6876done
6877
6878fi
6879fi
6880AR=$ac_cv_prog_AR
6881if test -n "$AR"; then
6882  echo "$as_me:$LINENO: result: $AR" >&5
6883echo "${ECHO_T}$AR" >&6
6884else
6885  echo "$as_me:$LINENO: result: no" >&5
6886echo "${ECHO_T}no" >&6
6887fi
6888
6889fi
6890if test -z "$ac_cv_prog_AR"; then
6891  ac_ct_AR=$AR
6892  # Extract the first word of "ar", so it can be a program name with args.
6893set dummy ar; ac_word=$2
6894echo "$as_me:$LINENO: checking for $ac_word" >&5
6895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6896if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6897  echo $ECHO_N "(cached) $ECHO_C" >&6
6898else
6899  if test -n "$ac_ct_AR"; then
6900  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6901else
6902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903for as_dir in $PATH
6904do
6905  IFS=$as_save_IFS
6906  test -z "$as_dir" && as_dir=.
6907  for ac_exec_ext in '' $ac_executable_extensions; do
6908  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909    ac_cv_prog_ac_ct_AR="ar"
6910    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6911    break 2
6912  fi
6913done
6914done
6915
6916  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6917fi
6918fi
6919ac_ct_AR=$ac_cv_prog_ac_ct_AR
6920if test -n "$ac_ct_AR"; then
6921  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6922echo "${ECHO_T}$ac_ct_AR" >&6
6923else
6924  echo "$as_me:$LINENO: result: no" >&5
6925echo "${ECHO_T}no" >&6
6926fi
6927
6928  AR=$ac_ct_AR
6929else
6930  AR="$ac_cv_prog_AR"
6931fi
6932
6933if test -n "$ac_tool_prefix"; then
6934  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6935set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6936echo "$as_me:$LINENO: checking for $ac_word" >&5
6937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6938if test "${ac_cv_prog_RANLIB+set}" = set; then
6939  echo $ECHO_N "(cached) $ECHO_C" >&6
6940else
6941  if test -n "$RANLIB"; then
6942  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6943else
6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945for as_dir in $PATH
6946do
6947  IFS=$as_save_IFS
6948  test -z "$as_dir" && as_dir=.
6949  for ac_exec_ext in '' $ac_executable_extensions; do
6950  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6951    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6952    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6953    break 2
6954  fi
6955done
6956done
6957
6958fi
6959fi
6960RANLIB=$ac_cv_prog_RANLIB
6961if test -n "$RANLIB"; then
6962  echo "$as_me:$LINENO: result: $RANLIB" >&5
6963echo "${ECHO_T}$RANLIB" >&6
6964else
6965  echo "$as_me:$LINENO: result: no" >&5
6966echo "${ECHO_T}no" >&6
6967fi
6968
6969fi
6970if test -z "$ac_cv_prog_RANLIB"; then
6971  ac_ct_RANLIB=$RANLIB
6972  # Extract the first word of "ranlib", so it can be a program name with args.
6973set dummy ranlib; ac_word=$2
6974echo "$as_me:$LINENO: checking for $ac_word" >&5
6975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6976if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6977  echo $ECHO_N "(cached) $ECHO_C" >&6
6978else
6979  if test -n "$ac_ct_RANLIB"; then
6980  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6981else
6982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983for as_dir in $PATH
6984do
6985  IFS=$as_save_IFS
6986  test -z "$as_dir" && as_dir=.
6987  for ac_exec_ext in '' $ac_executable_extensions; do
6988  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6989    ac_cv_prog_ac_ct_RANLIB="ranlib"
6990    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991    break 2
6992  fi
6993done
6994done
6995
6996  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6997fi
6998fi
6999ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7000if test -n "$ac_ct_RANLIB"; then
7001  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7002echo "${ECHO_T}$ac_ct_RANLIB" >&6
7003else
7004  echo "$as_me:$LINENO: result: no" >&5
7005echo "${ECHO_T}no" >&6
7006fi
7007
7008  RANLIB=$ac_ct_RANLIB
7009else
7010  RANLIB="$ac_cv_prog_RANLIB"
7011fi
7012
7013if test -n "$ac_tool_prefix"; then
7014  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7015set dummy ${ac_tool_prefix}strip; ac_word=$2
7016echo "$as_me:$LINENO: checking for $ac_word" >&5
7017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7018if test "${ac_cv_prog_STRIP+set}" = set; then
7019  echo $ECHO_N "(cached) $ECHO_C" >&6
7020else
7021  if test -n "$STRIP"; then
7022  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7023else
7024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025for as_dir in $PATH
7026do
7027  IFS=$as_save_IFS
7028  test -z "$as_dir" && as_dir=.
7029  for ac_exec_ext in '' $ac_executable_extensions; do
7030  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7031    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7032    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7033    break 2
7034  fi
7035done
7036done
7037
7038fi
7039fi
7040STRIP=$ac_cv_prog_STRIP
7041if test -n "$STRIP"; then
7042  echo "$as_me:$LINENO: result: $STRIP" >&5
7043echo "${ECHO_T}$STRIP" >&6
7044else
7045  echo "$as_me:$LINENO: result: no" >&5
7046echo "${ECHO_T}no" >&6
7047fi
7048
7049fi
7050if test -z "$ac_cv_prog_STRIP"; then
7051  ac_ct_STRIP=$STRIP
7052  # Extract the first word of "strip", so it can be a program name with args.
7053set dummy strip; ac_word=$2
7054echo "$as_me:$LINENO: checking for $ac_word" >&5
7055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7056if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7057  echo $ECHO_N "(cached) $ECHO_C" >&6
7058else
7059  if test -n "$ac_ct_STRIP"; then
7060  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7061else
7062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063for as_dir in $PATH
7064do
7065  IFS=$as_save_IFS
7066  test -z "$as_dir" && as_dir=.
7067  for ac_exec_ext in '' $ac_executable_extensions; do
7068  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7069    ac_cv_prog_ac_ct_STRIP="strip"
7070    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7071    break 2
7072  fi
7073done
7074done
7075
7076  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7077fi
7078fi
7079ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7080if test -n "$ac_ct_STRIP"; then
7081  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7082echo "${ECHO_T}$ac_ct_STRIP" >&6
7083else
7084  echo "$as_me:$LINENO: result: no" >&5
7085echo "${ECHO_T}no" >&6
7086fi
7087
7088  STRIP=$ac_ct_STRIP
7089else
7090  STRIP="$ac_cv_prog_STRIP"
7091fi
7092
7093
7094old_CC="$CC"
7095old_CFLAGS="$CFLAGS"
7096
7097# Set sane defaults for various variables
7098test -z "$AR" && AR=ar
7099test -z "$AR_FLAGS" && AR_FLAGS=cru
7100test -z "$AS" && AS=as
7101test -z "$CC" && CC=cc
7102test -z "$LTCC" && LTCC=$CC
7103test -z "$DLLTOOL" && DLLTOOL=dlltool
7104test -z "$LD" && LD=ld
7105test -z "$LN_S" && LN_S="ln -s"
7106test -z "$MAGIC_CMD" && MAGIC_CMD=file
7107test -z "$NM" && NM=nm
7108test -z "$SED" && SED=sed
7109test -z "$OBJDUMP" && OBJDUMP=objdump
7110test -z "$RANLIB" && RANLIB=:
7111test -z "$STRIP" && STRIP=:
7112test -z "$ac_objext" && ac_objext=o
7113
7114# Determine commands to create old-style static archives.
7115old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7116old_postinstall_cmds='chmod 644 $oldlib'
7117old_postuninstall_cmds=
7118
7119if test -n "$RANLIB"; then
7120  case $host_os in
7121  openbsd*)
7122    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7123    ;;
7124  *)
7125    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7126    ;;
7127  esac
7128  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7129fi
7130
7131cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
7132
7133# Only perform the check for file, if the check method requires it
7134case $deplibs_check_method in
7135file_magic*)
7136  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7137    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7138echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7139if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7140  echo $ECHO_N "(cached) $ECHO_C" >&6
7141else
7142  case $MAGIC_CMD in
7143[\\/*] |  ?:[\\/]*)
7144  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7145  ;;
7146*)
7147  lt_save_MAGIC_CMD="$MAGIC_CMD"
7148  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7149  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7150  for ac_dir in $ac_dummy; do
7151    IFS="$lt_save_ifs"
7152    test -z "$ac_dir" && ac_dir=.
7153    if test -f $ac_dir/${ac_tool_prefix}file; then
7154      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7155      if test -n "$file_magic_test_file"; then
7156	case $deplibs_check_method in
7157	"file_magic "*)
7158	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7159	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7160	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7161	    $EGREP "$file_magic_regex" > /dev/null; then
7162	    :
7163	  else
7164	    cat <<EOF 1>&2
7165
7166*** Warning: the command libtool uses to detect shared libraries,
7167*** $file_magic_cmd, produces output that libtool cannot recognize.
7168*** The result is that libtool may fail to recognize shared libraries
7169*** as such.  This will affect the creation of libtool libraries that
7170*** depend on shared libraries, but programs linked with such libtool
7171*** libraries will work regardless of this problem.  Nevertheless, you
7172*** may want to report the problem to your system manager and/or to
7173*** bug-libtool@gnu.org
7174
7175EOF
7176	  fi ;;
7177	esac
7178      fi
7179      break
7180    fi
7181  done
7182  IFS="$lt_save_ifs"
7183  MAGIC_CMD="$lt_save_MAGIC_CMD"
7184  ;;
7185esac
7186fi
7187
7188MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7189if test -n "$MAGIC_CMD"; then
7190  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7191echo "${ECHO_T}$MAGIC_CMD" >&6
7192else
7193  echo "$as_me:$LINENO: result: no" >&5
7194echo "${ECHO_T}no" >&6
7195fi
7196
7197if test -z "$lt_cv_path_MAGIC_CMD"; then
7198  if test -n "$ac_tool_prefix"; then
7199    echo "$as_me:$LINENO: checking for file" >&5
7200echo $ECHO_N "checking for file... $ECHO_C" >&6
7201if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7202  echo $ECHO_N "(cached) $ECHO_C" >&6
7203else
7204  case $MAGIC_CMD in
7205[\\/*] |  ?:[\\/]*)
7206  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7207  ;;
7208*)
7209  lt_save_MAGIC_CMD="$MAGIC_CMD"
7210  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7211  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7212  for ac_dir in $ac_dummy; do
7213    IFS="$lt_save_ifs"
7214    test -z "$ac_dir" && ac_dir=.
7215    if test -f $ac_dir/file; then
7216      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7217      if test -n "$file_magic_test_file"; then
7218	case $deplibs_check_method in
7219	"file_magic "*)
7220	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7221	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7222	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7223	    $EGREP "$file_magic_regex" > /dev/null; then
7224	    :
7225	  else
7226	    cat <<EOF 1>&2
7227
7228*** Warning: the command libtool uses to detect shared libraries,
7229*** $file_magic_cmd, produces output that libtool cannot recognize.
7230*** The result is that libtool may fail to recognize shared libraries
7231*** as such.  This will affect the creation of libtool libraries that
7232*** depend on shared libraries, but programs linked with such libtool
7233*** libraries will work regardless of this problem.  Nevertheless, you
7234*** may want to report the problem to your system manager and/or to
7235*** bug-libtool@gnu.org
7236
7237EOF
7238	  fi ;;
7239	esac
7240      fi
7241      break
7242    fi
7243  done
7244  IFS="$lt_save_ifs"
7245  MAGIC_CMD="$lt_save_MAGIC_CMD"
7246  ;;
7247esac
7248fi
7249
7250MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7251if test -n "$MAGIC_CMD"; then
7252  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7253echo "${ECHO_T}$MAGIC_CMD" >&6
7254else
7255  echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6
7257fi
7258
7259  else
7260    MAGIC_CMD=:
7261  fi
7262fi
7263
7264  fi
7265  ;;
7266esac
7267
7268enable_dlopen=no
7269enable_win32_dll=yes
7270
7271# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7272if test "${enable_libtool_lock+set}" = set; then
7273  enableval="$enable_libtool_lock"
7274
7275fi;
7276test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7277
7278
7279# Check whether --with-pic or --without-pic was given.
7280if test "${with_pic+set}" = set; then
7281  withval="$with_pic"
7282  pic_mode="$withval"
7283else
7284  pic_mode=default
7285fi;
7286test -z "$pic_mode" && pic_mode=default
7287
7288# Use C for the default configuration in the libtool script
7289tagname=
7290lt_save_CC="$CC"
7291ac_ext=c
7292ac_cpp='$CPP $CPPFLAGS'
7293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7295ac_compiler_gnu=$ac_cv_c_compiler_gnu
7296
7297
7298# Source file extension for C test sources.
7299ac_ext=c
7300
7301# Object file extension for compiled C test sources.
7302objext=o
7303objext=$objext
7304
7305# Code to be used in simple compile tests
7306lt_simple_compile_test_code="int some_variable = 0;\n"
7307
7308# Code to be used in simple link tests
7309lt_simple_link_test_code='int main(){return(0);}\n'
7310
7311
7312# If no C compiler was specified, use CC.
7313LTCC=${LTCC-"$CC"}
7314
7315# Allow CC to be a program name with arguments.
7316compiler=$CC
7317
7318
7319#
7320# Check for any special shared library compilation flags.
7321#
7322lt_prog_cc_shlib=
7323if test "$GCC" = no; then
7324  case $host_os in
7325  sco3.2v5*)
7326    lt_prog_cc_shlib='-belf'
7327    ;;
7328  esac
7329fi
7330if test -n "$lt_prog_cc_shlib"; then
7331  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7332echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7333  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
7334  else
7335    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7336echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7337    lt_cv_prog_cc_can_build_shared=no
7338  fi
7339fi
7340
7341
7342#
7343# Check to make sure the static flag actually works.
7344#
7345echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7346echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7347if test "${lt_prog_compiler_static_works+set}" = set; then
7348  echo $ECHO_N "(cached) $ECHO_C" >&6
7349else
7350  lt_prog_compiler_static_works=no
7351   save_LDFLAGS="$LDFLAGS"
7352   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7353   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7354   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7355     # The compiler can only warn and ignore the option if not recognized
7356     # So say no if there are warnings
7357     if test -s conftest.err; then
7358       # Append any errors to the config.log.
7359       cat conftest.err 1>&5
7360     else
7361       lt_prog_compiler_static_works=yes
7362     fi
7363   fi
7364   $rm conftest*
7365   LDFLAGS="$save_LDFLAGS"
7366
7367fi
7368echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7369echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7370
7371if test x"$lt_prog_compiler_static_works" = xyes; then
7372    :
7373else
7374    lt_prog_compiler_static=
7375fi
7376
7377
7378
7379## CAVEAT EMPTOR:
7380## There is no encapsulation within the following macros, do not change
7381## the running order or otherwise move them around unless you know exactly
7382## what you are doing...
7383
7384lt_prog_compiler_no_builtin_flag=
7385
7386if test "$GCC" = yes; then
7387  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7388
7389
7390echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7391echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7392if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7393  echo $ECHO_N "(cached) $ECHO_C" >&6
7394else
7395  lt_cv_prog_compiler_rtti_exceptions=no
7396  ac_outfile=conftest.$ac_objext
7397   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7398   lt_compiler_flag="-fno-rtti -fno-exceptions"
7399   # Insert the option either (1) after the last *FLAGS variable, or
7400   # (2) before a word containing "conftest.", or (3) at the end.
7401   # Note that $ac_compile itself does not contain backslashes and begins
7402   # with a dollar sign (not a hyphen), so the echo should work correctly.
7403   # The option is referenced via a variable to avoid confusing sed.
7404   lt_compile=`echo "$ac_compile" | $SED \
7405   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7406   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7407   -e 's:$: $lt_compiler_flag:'`
7408   (eval echo "\"\$as_me:7408: $lt_compile\"" >&5)
7409   (eval "$lt_compile" 2>conftest.err)
7410   ac_status=$?
7411   cat conftest.err >&5
7412   echo "$as_me:7412: \$? = $ac_status" >&5
7413   if (exit $ac_status) && test -s "$ac_outfile"; then
7414     # The compiler can only warn and ignore the option if not recognized
7415     # So say no if there are warnings
7416     if test ! -s conftest.err; then
7417       lt_cv_prog_compiler_rtti_exceptions=yes
7418     fi
7419   fi
7420   $rm conftest*
7421
7422fi
7423echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7424echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7425
7426if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7427    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7428else
7429    :
7430fi
7431
7432fi
7433
7434lt_prog_compiler_wl=
7435lt_prog_compiler_pic=
7436lt_prog_compiler_static=
7437
7438echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7439echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7440
7441  if test "$GCC" = yes; then
7442    lt_prog_compiler_wl='-Wl,'
7443    lt_prog_compiler_static='-static'
7444
7445    case $host_os in
7446      aix*)
7447      # All AIX code is PIC.
7448      if test "$host_cpu" = ia64; then
7449	# AIX 5 now supports IA64 processor
7450	lt_prog_compiler_static='-Bstatic'
7451      fi
7452      ;;
7453
7454    amigaos*)
7455      # FIXME: we need at least 68020 code to build shared libraries, but
7456      # adding the `-m68020' flag to GCC prevents building anything better,
7457      # like `-m68040'.
7458      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7459      ;;
7460
7461    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7462      # PIC is the default for these OSes.
7463      ;;
7464
7465    mingw* | pw32* | os2*)
7466      # This hack is so that the source file can tell whether it is being
7467      # built for inclusion in a dll (and should export symbols for example).
7468      lt_prog_compiler_pic='-DDLL_EXPORT'
7469      ;;
7470
7471    darwin* | rhapsody*)
7472      # PIC is the default on this platform
7473      # Common symbols not allowed in MH_DYLIB files
7474      lt_prog_compiler_pic='-fno-common'
7475      ;;
7476
7477    msdosdjgpp*)
7478      # Just because we use GCC doesn't mean we suddenly get shared libraries
7479      # on systems that don't support them.
7480      lt_prog_compiler_can_build_shared=no
7481      enable_shared=no
7482      ;;
7483
7484    sysv4*MP*)
7485      if test -d /usr/nec; then
7486	lt_prog_compiler_pic=-Kconform_pic
7487      fi
7488      ;;
7489
7490    hpux*)
7491      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7492      # not for PA HP-UX.
7493      case "$host_cpu" in
7494      hppa*64*|ia64*)
7495	# +Z the default
7496	;;
7497      *)
7498	lt_prog_compiler_pic='-fPIC'
7499	;;
7500      esac
7501      ;;
7502
7503    *)
7504      lt_prog_compiler_pic='-fPIC'
7505      ;;
7506    esac
7507  else
7508    # PORTME Check for flag to pass linker flags through the system compiler.
7509    case $host_os in
7510    aix*)
7511      lt_prog_compiler_wl='-Wl,'
7512      if test "$host_cpu" = ia64; then
7513	# AIX 5 now supports IA64 processor
7514	lt_prog_compiler_static='-Bstatic'
7515      else
7516	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7517      fi
7518      ;;
7519      darwin*)
7520        # PIC is the default on this platform
7521        # Common symbols not allowed in MH_DYLIB files
7522       case "$cc_basename" in
7523         xlc*)
7524         lt_prog_compiler_pic='-qnocommon'
7525         lt_prog_compiler_wl='-Wl,'
7526         ;;
7527       esac
7528       ;;
7529
7530    mingw* | pw32* | os2*)
7531      # This hack is so that the source file can tell whether it is being
7532      # built for inclusion in a dll (and should export symbols for example).
7533      lt_prog_compiler_pic='-DDLL_EXPORT'
7534      ;;
7535
7536    hpux9* | hpux10* | hpux11*)
7537      lt_prog_compiler_wl='-Wl,'
7538      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7539      # not for PA HP-UX.
7540      case "$host_cpu" in
7541      hppa*64*|ia64*)
7542	# +Z the default
7543	;;
7544      *)
7545	lt_prog_compiler_pic='+Z'
7546	;;
7547      esac
7548      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7549      lt_prog_compiler_static='${wl}-a ${wl}archive'
7550      ;;
7551
7552    irix5* | irix6* | nonstopux*)
7553      lt_prog_compiler_wl='-Wl,'
7554      # PIC (with -KPIC) is the default.
7555      lt_prog_compiler_static='-non_shared'
7556      ;;
7557
7558    newsos6)
7559      lt_prog_compiler_pic='-KPIC'
7560      lt_prog_compiler_static='-Bstatic'
7561      ;;
7562
7563    linux*)
7564      case $CC in
7565      icc* | ecc*)
7566	lt_prog_compiler_wl='-Wl,'
7567	lt_prog_compiler_pic='-KPIC'
7568	lt_prog_compiler_static='-static'
7569        ;;
7570      ccc*)
7571        lt_prog_compiler_wl='-Wl,'
7572        # All Alpha code is PIC.
7573        lt_prog_compiler_static='-non_shared'
7574        ;;
7575      como)
7576        lt_prog_compiler_wl='-lopt='
7577        ;;
7578      esac
7579      ;;
7580
7581    osf3* | osf4* | osf5*)
7582      lt_prog_compiler_wl='-Wl,'
7583      # All OSF/1 code is PIC.
7584      lt_prog_compiler_static='-non_shared'
7585      ;;
7586
7587    sco3.2v5*)
7588      lt_prog_compiler_pic='-Kpic'
7589      lt_prog_compiler_static='-dn'
7590      ;;
7591
7592    solaris*)
7593      lt_prog_compiler_wl='-Wl,'
7594      lt_prog_compiler_pic='-KPIC'
7595      lt_prog_compiler_static='-Bstatic'
7596      ;;
7597
7598    sunos4*)
7599      lt_prog_compiler_wl='-Qoption ld '
7600      lt_prog_compiler_pic='-PIC'
7601      lt_prog_compiler_static='-Bstatic'
7602      ;;
7603
7604    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7605      lt_prog_compiler_wl='-Wl,'
7606      lt_prog_compiler_pic='-KPIC'
7607      lt_prog_compiler_static='-Bstatic'
7608      ;;
7609
7610    sysv4*MP*)
7611      if test -d /usr/nec ;then
7612	lt_prog_compiler_pic='-Kconform_pic'
7613	lt_prog_compiler_static='-Bstatic'
7614      fi
7615      ;;
7616
7617    uts4*)
7618      lt_prog_compiler_pic='-pic'
7619      lt_prog_compiler_static='-Bstatic'
7620      ;;
7621
7622    *)
7623      lt_prog_compiler_can_build_shared=no
7624      ;;
7625    esac
7626  fi
7627
7628echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7629echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7630
7631#
7632# Check to make sure the PIC flag actually works.
7633#
7634if test -n "$lt_prog_compiler_pic"; then
7635
7636echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7637echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7638if test "${lt_prog_compiler_pic_works+set}" = set; then
7639  echo $ECHO_N "(cached) $ECHO_C" >&6
7640else
7641  lt_prog_compiler_pic_works=no
7642  ac_outfile=conftest.$ac_objext
7643   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7644   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7645   # Insert the option either (1) after the last *FLAGS variable, or
7646   # (2) before a word containing "conftest.", or (3) at the end.
7647   # Note that $ac_compile itself does not contain backslashes and begins
7648   # with a dollar sign (not a hyphen), so the echo should work correctly.
7649   # The option is referenced via a variable to avoid confusing sed.
7650   lt_compile=`echo "$ac_compile" | $SED \
7651   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7652   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7653   -e 's:$: $lt_compiler_flag:'`
7654   (eval echo "\"\$as_me:7654: $lt_compile\"" >&5)
7655   (eval "$lt_compile" 2>conftest.err)
7656   ac_status=$?
7657   cat conftest.err >&5
7658   echo "$as_me:7658: \$? = $ac_status" >&5
7659   if (exit $ac_status) && test -s "$ac_outfile"; then
7660     # The compiler can only warn and ignore the option if not recognized
7661     # So say no if there are warnings
7662     if test ! -s conftest.err; then
7663       lt_prog_compiler_pic_works=yes
7664     fi
7665   fi
7666   $rm conftest*
7667
7668fi
7669echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7670echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7671
7672if test x"$lt_prog_compiler_pic_works" = xyes; then
7673    case $lt_prog_compiler_pic in
7674     "" | " "*) ;;
7675     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7676     esac
7677else
7678    lt_prog_compiler_pic=
7679     lt_prog_compiler_can_build_shared=no
7680fi
7681
7682fi
7683case "$host_os" in
7684  # For platforms which do not support PIC, -DPIC is meaningless:
7685  *djgpp*)
7686    lt_prog_compiler_pic=
7687    ;;
7688  *)
7689    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7690    ;;
7691esac
7692
7693echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7694echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7695if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7696  echo $ECHO_N "(cached) $ECHO_C" >&6
7697else
7698  lt_cv_prog_compiler_c_o=no
7699   $rm -r conftest 2>/dev/null
7700   mkdir conftest
7701   cd conftest
7702   mkdir out
7703   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7704
7705   lt_compiler_flag="-o out/conftest2.$ac_objext"
7706   # Insert the option either (1) after the last *FLAGS variable, or
7707   # (2) before a word containing "conftest.", or (3) at the end.
7708   # Note that $ac_compile itself does not contain backslashes and begins
7709   # with a dollar sign (not a hyphen), so the echo should work correctly.
7710   lt_compile=`echo "$ac_compile" | $SED \
7711   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7712   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7713   -e 's:$: $lt_compiler_flag:'`
7714   (eval echo "\"\$as_me:7714: $lt_compile\"" >&5)
7715   (eval "$lt_compile" 2>out/conftest.err)
7716   ac_status=$?
7717   cat out/conftest.err >&5
7718   echo "$as_me:7718: \$? = $ac_status" >&5
7719   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7720   then
7721     # The compiler can only warn and ignore the option if not recognized
7722     # So say no if there are warnings
7723     if test ! -s out/conftest.err; then
7724       lt_cv_prog_compiler_c_o=yes
7725     fi
7726   fi
7727   chmod u+w .
7728   $rm conftest*
7729   # SGI C++ compiler will create directory out/ii_files/ for
7730   # template instantiation
7731   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7732   $rm out/* && rmdir out
7733   cd ..
7734   rmdir conftest
7735   $rm conftest*
7736
7737fi
7738echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7739echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7740
7741
7742hard_links="nottested"
7743if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7744  # do not overwrite the value of need_locks provided by the user
7745  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7746echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7747  hard_links=yes
7748  $rm conftest*
7749  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7750  touch conftest.a
7751  ln conftest.a conftest.b 2>&5 || hard_links=no
7752  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7753  echo "$as_me:$LINENO: result: $hard_links" >&5
7754echo "${ECHO_T}$hard_links" >&6
7755  if test "$hard_links" = no; then
7756    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7757echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7758    need_locks=warn
7759  fi
7760else
7761  need_locks=no
7762fi
7763
7764echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7765echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7766
7767  runpath_var=
7768  allow_undefined_flag=
7769  enable_shared_with_static_runtimes=no
7770  archive_cmds=
7771  archive_expsym_cmds=
7772  old_archive_From_new_cmds=
7773  old_archive_from_expsyms_cmds=
7774  export_dynamic_flag_spec=
7775  whole_archive_flag_spec=
7776  thread_safe_flag_spec=
7777  hardcode_libdir_flag_spec=
7778  hardcode_libdir_flag_spec_ld=
7779  hardcode_libdir_separator=
7780  hardcode_direct=no
7781  hardcode_minus_L=no
7782  hardcode_shlibpath_var=unsupported
7783  link_all_deplibs=unknown
7784  hardcode_automatic=no
7785  module_cmds=
7786  module_expsym_cmds=
7787  always_export_symbols=no
7788  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7789  # include_expsyms should be a list of space-separated symbols to be *always*
7790  # included in the symbol list
7791  include_expsyms=
7792  # exclude_expsyms can be an extended regexp of symbols to exclude
7793  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7794  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7795  # as well as any symbol that contains `d'.
7796  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7797  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7798  # platforms (ab)use it in PIC code, but their linkers get confused if
7799  # the symbol is explicitly referenced.  Since portable code cannot
7800  # rely on this symbol name, it's probably fine to never include it in
7801  # preloaded symbol tables.
7802  extract_expsyms_cmds=
7803
7804  case $host_os in
7805  cygwin* | mingw* | pw32*)
7806    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7807    # When not using gcc, we currently assume that we are using
7808    # Microsoft Visual C++.
7809    if test "$GCC" != yes; then
7810      with_gnu_ld=no
7811    fi
7812    ;;
7813  openbsd*)
7814    with_gnu_ld=no
7815    ;;
7816  esac
7817
7818  ld_shlibs=yes
7819  if test "$with_gnu_ld" = yes; then
7820    # If archive_cmds runs LD, not CC, wlarc should be empty
7821    wlarc='${wl}'
7822
7823    # See if GNU ld supports shared libraries.
7824    case $host_os in
7825    aix3* | aix4* | aix5*)
7826      # On AIX/PPC, the GNU linker is very broken
7827      if test "$host_cpu" != ia64; then
7828	ld_shlibs=no
7829	cat <<EOF 1>&2
7830
7831*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7832*** to be unable to reliably create shared libraries on AIX.
7833*** Therefore, libtool is disabling shared libraries support.  If you
7834*** really care for shared libraries, you may want to modify your PATH
7835*** so that a non-GNU linker is found, and then restart.
7836
7837EOF
7838      fi
7839      ;;
7840
7841    amigaos*)
7842      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)'
7843      hardcode_libdir_flag_spec='-L$libdir'
7844      hardcode_minus_L=yes
7845
7846      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7847      # that the semantics of dynamic libraries on AmigaOS, at least up
7848      # to version 4, is to share data among multiple programs linked
7849      # with the same dynamic library.  Since this doesn't match the
7850      # behavior of shared libraries on other platforms, we can't use
7851      # them.
7852      ld_shlibs=no
7853      ;;
7854
7855    beos*)
7856      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7857	allow_undefined_flag=unsupported
7858	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7859	# support --undefined.  This deserves some investigation.  FIXME
7860	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7861      else
7862	ld_shlibs=no
7863      fi
7864      ;;
7865
7866    cygwin* | mingw* | pw32*)
7867      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7868      # as there is no search path for DLLs.
7869      hardcode_libdir_flag_spec='-L$libdir'
7870      allow_undefined_flag=unsupported
7871      always_export_symbols=no
7872      enable_shared_with_static_runtimes=yes
7873      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7874
7875      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7876        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7877	# If the export-symbols file already is a .def file (1st line
7878	# is EXPORTS), use it as is; otherwise, prepend...
7879	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7880	  cp $export_symbols $output_objdir/$soname.def;
7881	else
7882	  echo EXPORTS > $output_objdir/$soname.def;
7883	  cat $export_symbols >> $output_objdir/$soname.def;
7884	fi~
7885	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7886      else
7887	ld_shlibs=no
7888      fi
7889      ;;
7890
7891    netbsd*)
7892      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7893	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7894	wlarc=
7895      else
7896	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7897	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7898      fi
7899      ;;
7900
7901    solaris* | sysv5*)
7902      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7903	ld_shlibs=no
7904	cat <<EOF 1>&2
7905
7906*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7907*** create shared libraries on Solaris systems.  Therefore, libtool
7908*** is disabling shared libraries support.  We urge you to upgrade GNU
7909*** binutils to release 2.9.1 or newer.  Another option is to modify
7910*** your PATH or compiler configuration so that the native linker is
7911*** used, and then restart.
7912
7913EOF
7914      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7915	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7916	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7917      else
7918	ld_shlibs=no
7919      fi
7920      ;;
7921
7922    sunos4*)
7923      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7924      wlarc=
7925      hardcode_direct=yes
7926      hardcode_shlibpath_var=no
7927      ;;
7928
7929  linux*)
7930    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7931        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7932	archive_cmds="$tmp_archive_cmds"
7933      supports_anon_versioning=no
7934      case `$LD -v 2>/dev/null` in
7935        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7936        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7937        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7938        *\ 2.11.*) ;; # other 2.11 versions
7939        *) supports_anon_versioning=yes ;;
7940      esac
7941      if test $supports_anon_versioning = yes; then
7942        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7943cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7944$echo "local: *; };" >> $output_objdir/$libname.ver~
7945        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7946      else
7947        archive_expsym_cmds="$tmp_archive_cmds"
7948      fi
7949    else
7950      ld_shlibs=no
7951    fi
7952    ;;
7953
7954    *)
7955      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7956	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7957	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7958      else
7959	ld_shlibs=no
7960      fi
7961      ;;
7962    esac
7963
7964    if test "$ld_shlibs" = yes; then
7965      runpath_var=LD_RUN_PATH
7966      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7967      export_dynamic_flag_spec='${wl}--export-dynamic'
7968      # ancient GNU ld didn't support --whole-archive et. al.
7969      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7970 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7971      else
7972  	whole_archive_flag_spec=
7973      fi
7974    fi
7975  else
7976    # PORTME fill in a description of your system's linker (not GNU ld)
7977    case $host_os in
7978    aix3*)
7979      allow_undefined_flag=unsupported
7980      always_export_symbols=yes
7981      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'
7982      # Note: this linker hardcodes the directories in LIBPATH if there
7983      # are no directories specified by -L.
7984      hardcode_minus_L=yes
7985      if test "$GCC" = yes && test -z "$link_static_flag"; then
7986	# Neither direct hardcoding nor static linking is supported with a
7987	# broken collect2.
7988	hardcode_direct=unsupported
7989      fi
7990      ;;
7991
7992    aix4* | aix5*)
7993      if test "$host_cpu" = ia64; then
7994	# On IA64, the linker does run time linking by default, so we don't
7995	# have to do anything special.
7996	aix_use_runtimelinking=no
7997	exp_sym_flag='-Bexport'
7998	no_entry_flag=""
7999      else
8000	# If we're using GNU nm, then we don't want the "-C" option.
8001	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8002	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8003	  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'
8004	else
8005	  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'
8006	fi
8007	aix_use_runtimelinking=no
8008
8009	# Test if we are trying to use run time linking or normal
8010	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8011	# need to do runtime linking.
8012	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8013	  for ld_flag in $LDFLAGS; do
8014  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8015  	    aix_use_runtimelinking=yes
8016  	    break
8017  	  fi
8018	  done
8019	esac
8020
8021	exp_sym_flag='-bexport'
8022	no_entry_flag='-bnoentry'
8023      fi
8024
8025      # When large executables or shared objects are built, AIX ld can
8026      # have problems creating the table of contents.  If linking a library
8027      # or program results in "error TOC overflow" add -mminimal-toc to
8028      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8029      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8030
8031      archive_cmds=''
8032      hardcode_direct=yes
8033      hardcode_libdir_separator=':'
8034      link_all_deplibs=yes
8035
8036      if test "$GCC" = yes; then
8037	case $host_os in aix4.012|aix4.012.*)
8038	# We only want to do this on AIX 4.2 and lower, the check
8039	# below for broken collect2 doesn't work under 4.3+
8040	  collect2name=`${CC} -print-prog-name=collect2`
8041	  if test -f "$collect2name" && \
8042  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8043	  then
8044  	  # We have reworked collect2
8045  	  hardcode_direct=yes
8046	  else
8047  	  # We have old collect2
8048  	  hardcode_direct=unsupported
8049  	  # It fails to find uninstalled libraries when the uninstalled
8050  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8051  	  # to unsupported forces relinking
8052  	  hardcode_minus_L=yes
8053  	  hardcode_libdir_flag_spec='-L$libdir'
8054  	  hardcode_libdir_separator=
8055	  fi
8056	esac
8057	shared_flag='-shared'
8058      else
8059	# not using gcc
8060	if test "$host_cpu" = ia64; then
8061  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8062  	# chokes on -Wl,-G. The following line is correct:
8063	  shared_flag='-G'
8064	else
8065  	if test "$aix_use_runtimelinking" = yes; then
8066	    shared_flag='${wl}-G'
8067	  else
8068	    shared_flag='${wl}-bM:SRE'
8069  	fi
8070	fi
8071      fi
8072
8073      # It seems that -bexpall does not export symbols beginning with
8074      # underscore (_), so it is better to generate a list of symbols to export.
8075      always_export_symbols=yes
8076      if test "$aix_use_runtimelinking" = yes; then
8077	# Warning - without using the other runtime loading flags (-brtl),
8078	# -berok will link without error, but may produce a broken library.
8079	allow_undefined_flag='-berok'
8080       # Determine the default libpath from the value encoded in an empty executable.
8081       cat >conftest.$ac_ext <<_ACEOF
8082/* confdefs.h.  */
8083_ACEOF
8084cat confdefs.h >>conftest.$ac_ext
8085cat >>conftest.$ac_ext <<_ACEOF
8086/* end confdefs.h.  */
8087
8088int
8089main ()
8090{
8091
8092  ;
8093  return 0;
8094}
8095_ACEOF
8096rm -f conftest.$ac_objext conftest$ac_exeext
8097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8098  (eval $ac_link) 2>conftest.er1
8099  ac_status=$?
8100  grep -v '^ *+' conftest.er1 >conftest.err
8101  rm -f conftest.er1
8102  cat conftest.err >&5
8103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104  (exit $ac_status); } &&
8105	 { ac_try='test -z "$ac_c_werror_flag"
8106			 || test ! -s conftest.err'
8107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108  (eval $ac_try) 2>&5
8109  ac_status=$?
8110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111  (exit $ac_status); }; } &&
8112	 { ac_try='test -s conftest$ac_exeext'
8113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114  (eval $ac_try) 2>&5
8115  ac_status=$?
8116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117  (exit $ac_status); }; }; then
8118
8119aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8120}'`
8121# Check for a 64-bit object if we didn't find anything.
8122if 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; }
8123}'`; fi
8124else
8125  echo "$as_me: failed program was:" >&5
8126sed 's/^/| /' conftest.$ac_ext >&5
8127
8128fi
8129rm -f conftest.err conftest.$ac_objext \
8130      conftest$ac_exeext conftest.$ac_ext
8131if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8132
8133       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8134	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $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"
8135       else
8136	if test "$host_cpu" = ia64; then
8137	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8138	  allow_undefined_flag="-z nodefs"
8139	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8140	else
8141	 # Determine the default libpath from the value encoded in an empty executable.
8142	 cat >conftest.$ac_ext <<_ACEOF
8143/* confdefs.h.  */
8144_ACEOF
8145cat confdefs.h >>conftest.$ac_ext
8146cat >>conftest.$ac_ext <<_ACEOF
8147/* end confdefs.h.  */
8148
8149int
8150main ()
8151{
8152
8153  ;
8154  return 0;
8155}
8156_ACEOF
8157rm -f conftest.$ac_objext conftest$ac_exeext
8158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8159  (eval $ac_link) 2>conftest.er1
8160  ac_status=$?
8161  grep -v '^ *+' conftest.er1 >conftest.err
8162  rm -f conftest.er1
8163  cat conftest.err >&5
8164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165  (exit $ac_status); } &&
8166	 { ac_try='test -z "$ac_c_werror_flag"
8167			 || test ! -s conftest.err'
8168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169  (eval $ac_try) 2>&5
8170  ac_status=$?
8171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172  (exit $ac_status); }; } &&
8173	 { ac_try='test -s conftest$ac_exeext'
8174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175  (eval $ac_try) 2>&5
8176  ac_status=$?
8177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178  (exit $ac_status); }; }; then
8179
8180aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8181}'`
8182# Check for a 64-bit object if we didn't find anything.
8183if 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; }
8184}'`; fi
8185else
8186  echo "$as_me: failed program was:" >&5
8187sed 's/^/| /' conftest.$ac_ext >&5
8188
8189fi
8190rm -f conftest.err conftest.$ac_objext \
8191      conftest$ac_exeext conftest.$ac_ext
8192if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8193
8194	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8195	  # Warning - without using the other run time loading flags,
8196	  # -berok will link without error, but may produce a broken library.
8197	  no_undefined_flag=' ${wl}-bernotok'
8198	  allow_undefined_flag=' ${wl}-berok'
8199	  # -bexpall does not export symbols beginning with underscore (_)
8200	  always_export_symbols=yes
8201	  # Exported symbols can be pulled into shared objects from archives
8202	  whole_archive_flag_spec=' '
8203	  archive_cmds_need_lc=yes
8204	  # This is similar to how AIX traditionally builds it's shared libraries.
8205	  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'
8206	fi
8207      fi
8208      ;;
8209
8210    amigaos*)
8211      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)'
8212      hardcode_libdir_flag_spec='-L$libdir'
8213      hardcode_minus_L=yes
8214      # see comment about different semantics on the GNU ld section
8215      ld_shlibs=no
8216      ;;
8217
8218    bsdi[45]*)
8219      export_dynamic_flag_spec=-rdynamic
8220      ;;
8221
8222    cygwin* | mingw* | pw32*)
8223      # When not using gcc, we currently assume that we are using
8224      # Microsoft Visual C++.
8225      # hardcode_libdir_flag_spec is actually meaningless, as there is
8226      # no search path for DLLs.
8227      hardcode_libdir_flag_spec=' '
8228      allow_undefined_flag=unsupported
8229      # Tell ltmain to make .lib files, not .a files.
8230      libext=lib
8231      # Tell ltmain to make .dll files, not .so files.
8232      shrext_cmds=".dll"
8233      # FIXME: Setting linknames here is a bad hack.
8234      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8235      # The linker will automatically build a .lib file if we build a DLL.
8236      old_archive_From_new_cmds='true'
8237      # FIXME: Should let the user specify the lib program.
8238      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8239      fix_srcfile_path='`cygpath -w "$srcfile"`'
8240      enable_shared_with_static_runtimes=yes
8241      ;;
8242
8243    darwin* | rhapsody*)
8244      case "$host_os" in
8245        rhapsody* | darwin1.[012])
8246         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8247         ;;
8248       *) # Darwin 1.3 on
8249         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8250           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8251         else
8252           case ${MACOSX_DEPLOYMENT_TARGET} in
8253             10.[012])
8254               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8255               ;;
8256             10.*)
8257               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8258               ;;
8259           esac
8260         fi
8261         ;;
8262      esac
8263      archive_cmds_need_lc=no
8264      hardcode_direct=no
8265      hardcode_automatic=yes
8266      hardcode_shlibpath_var=unsupported
8267      whole_archive_flag_spec=''
8268      link_all_deplibs=yes
8269    if test "$GCC" = yes ; then
8270    	output_verbose_link_cmd='echo'
8271        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8272      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8273      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8274      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}'
8275      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}'
8276    else
8277      case "$cc_basename" in
8278        xlc*)
8279         output_verbose_link_cmd='echo'
8280         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8281         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8282          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8283         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}'
8284          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}'
8285          ;;
8286       *)
8287         ld_shlibs=no
8288          ;;
8289      esac
8290    fi
8291      ;;
8292
8293    dgux*)
8294      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8295      hardcode_libdir_flag_spec='-L$libdir'
8296      hardcode_shlibpath_var=no
8297      ;;
8298
8299    freebsd1*)
8300      ld_shlibs=no
8301      ;;
8302
8303    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8304    # support.  Future versions do this automatically, but an explicit c++rt0.o
8305    # does not break anything, and helps significantly (at the cost of a little
8306    # extra space).
8307    freebsd2.2*)
8308      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8309      hardcode_libdir_flag_spec='-R$libdir'
8310      hardcode_direct=yes
8311      hardcode_shlibpath_var=no
8312      ;;
8313
8314    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8315    freebsd2*)
8316      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8317      hardcode_direct=yes
8318      hardcode_minus_L=yes
8319      hardcode_shlibpath_var=no
8320      ;;
8321
8322    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8323    freebsd* | kfreebsd*-gnu)
8324      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8325      hardcode_libdir_flag_spec='-R$libdir'
8326      hardcode_direct=yes
8327      hardcode_shlibpath_var=no
8328      ;;
8329
8330    hpux9*)
8331      if test "$GCC" = yes; then
8332	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'
8333      else
8334	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'
8335      fi
8336      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8337      hardcode_libdir_separator=:
8338      hardcode_direct=yes
8339
8340      # hardcode_minus_L: Not really in the search PATH,
8341      # but as the default location of the library.
8342      hardcode_minus_L=yes
8343      export_dynamic_flag_spec='${wl}-E'
8344      ;;
8345
8346    hpux10* | hpux11*)
8347      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8348	case "$host_cpu" in
8349	hppa*64*|ia64*)
8350	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8351	  ;;
8352	*)
8353	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8354	  ;;
8355	esac
8356      else
8357	case "$host_cpu" in
8358	hppa*64*|ia64*)
8359	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8360	  ;;
8361	*)
8362	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8363	  ;;
8364	esac
8365      fi
8366      if test "$with_gnu_ld" = no; then
8367	case "$host_cpu" in
8368	hppa*64*)
8369	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8370	  hardcode_libdir_flag_spec_ld='+b $libdir'
8371	  hardcode_libdir_separator=:
8372	  hardcode_direct=no
8373	  hardcode_shlibpath_var=no
8374	  ;;
8375	ia64*)
8376	  hardcode_libdir_flag_spec='-L$libdir'
8377	  hardcode_direct=no
8378	  hardcode_shlibpath_var=no
8379
8380	  # hardcode_minus_L: Not really in the search PATH,
8381	  # but as the default location of the library.
8382	  hardcode_minus_L=yes
8383	  ;;
8384	*)
8385	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8386	  hardcode_libdir_separator=:
8387	  hardcode_direct=yes
8388	  export_dynamic_flag_spec='${wl}-E'
8389
8390	  # hardcode_minus_L: Not really in the search PATH,
8391	  # but as the default location of the library.
8392	  hardcode_minus_L=yes
8393	  ;;
8394	esac
8395      fi
8396      ;;
8397
8398    irix5* | irix6* | nonstopux*)
8399      if test "$GCC" = yes; then
8400	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'
8401      else
8402	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'
8403	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8404      fi
8405      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8406      hardcode_libdir_separator=:
8407      link_all_deplibs=yes
8408      ;;
8409
8410    netbsd*)
8411      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8412	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8413      else
8414	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8415      fi
8416      hardcode_libdir_flag_spec='-R$libdir'
8417      hardcode_direct=yes
8418      hardcode_shlibpath_var=no
8419      ;;
8420
8421    newsos6)
8422      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8423      hardcode_direct=yes
8424      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8425      hardcode_libdir_separator=:
8426      hardcode_shlibpath_var=no
8427      ;;
8428
8429    openbsd*)
8430      hardcode_direct=yes
8431      hardcode_shlibpath_var=no
8432      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8433	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8434	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8435	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8436	export_dynamic_flag_spec='${wl}-E'
8437      else
8438       case $host_os in
8439	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8440	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8441	   hardcode_libdir_flag_spec='-R$libdir'
8442	   ;;
8443	 *)
8444	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8445	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8446	   ;;
8447       esac
8448      fi
8449      ;;
8450
8451    os2*)
8452      hardcode_libdir_flag_spec='-L$libdir'
8453      hardcode_minus_L=yes
8454      allow_undefined_flag=unsupported
8455      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'
8456      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8457      ;;
8458
8459    osf3*)
8460      if test "$GCC" = yes; then
8461	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8462	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'
8463      else
8464	allow_undefined_flag=' -expect_unresolved \*'
8465	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'
8466      fi
8467      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8468      hardcode_libdir_separator=:
8469      ;;
8470
8471    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8472      if test "$GCC" = yes; then
8473	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8474	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'
8475	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8476      else
8477	allow_undefined_flag=' -expect_unresolved \*'
8478	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'
8479	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8480	$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'
8481
8482	# Both c and cxx compiler support -rpath directly
8483	hardcode_libdir_flag_spec='-rpath $libdir'
8484      fi
8485      hardcode_libdir_separator=:
8486      ;;
8487
8488    sco3.2v5*)
8489      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8490      hardcode_shlibpath_var=no
8491      export_dynamic_flag_spec='${wl}-Bexport'
8492      runpath_var=LD_RUN_PATH
8493      hardcode_runpath_var=yes
8494      ;;
8495
8496    solaris*)
8497      no_undefined_flag=' -z text'
8498      if test "$GCC" = yes; then
8499	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8500	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8501	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8502      else
8503	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8504	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8505  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8506      fi
8507      hardcode_libdir_flag_spec='-R$libdir'
8508      hardcode_shlibpath_var=no
8509      case $host_os in
8510      solaris2.[0-5] | solaris2.[0-5].*) ;;
8511      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8512	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8513      esac
8514      link_all_deplibs=yes
8515      ;;
8516
8517    sunos4*)
8518      if test "x$host_vendor" = xsequent; then
8519	# Use $CC to link under sequent, because it throws in some extra .o
8520	# files that make .init and .fini sections work.
8521	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8522      else
8523	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8524      fi
8525      hardcode_libdir_flag_spec='-L$libdir'
8526      hardcode_direct=yes
8527      hardcode_minus_L=yes
8528      hardcode_shlibpath_var=no
8529      ;;
8530
8531    sysv4)
8532      case $host_vendor in
8533	sni)
8534	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8535	  hardcode_direct=yes # is this really true???
8536	;;
8537	siemens)
8538	  ## LD is ld it makes a PLAMLIB
8539	  ## CC just makes a GrossModule.
8540	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8541	  reload_cmds='$CC -r -o $output$reload_objs'
8542	  hardcode_direct=no
8543        ;;
8544	motorola)
8545	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8546	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8547	;;
8548      esac
8549      runpath_var='LD_RUN_PATH'
8550      hardcode_shlibpath_var=no
8551      ;;
8552
8553    sysv4.3*)
8554      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8555      hardcode_shlibpath_var=no
8556      export_dynamic_flag_spec='-Bexport'
8557      ;;
8558
8559    sysv4*MP*)
8560      if test -d /usr/nec; then
8561	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8562	hardcode_shlibpath_var=no
8563	runpath_var=LD_RUN_PATH
8564	hardcode_runpath_var=yes
8565	ld_shlibs=yes
8566      fi
8567      ;;
8568
8569    sysv4.2uw2*)
8570      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8571      hardcode_direct=yes
8572      hardcode_minus_L=no
8573      hardcode_shlibpath_var=no
8574      hardcode_runpath_var=yes
8575      runpath_var=LD_RUN_PATH
8576      ;;
8577
8578   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8579      no_undefined_flag='${wl}-z ${wl}text'
8580      if test "$GCC" = yes; then
8581	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8582      else
8583	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8584      fi
8585      runpath_var='LD_RUN_PATH'
8586      hardcode_shlibpath_var=no
8587      ;;
8588
8589    sysv5*)
8590      no_undefined_flag=' -z text'
8591      # $CC -shared without GNU ld will not create a library from C++
8592      # object files and a static libstdc++, better avoid it by now
8593      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8594      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8595  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8596      hardcode_libdir_flag_spec=
8597      hardcode_shlibpath_var=no
8598      runpath_var='LD_RUN_PATH'
8599      ;;
8600
8601    uts4*)
8602      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8603      hardcode_libdir_flag_spec='-L$libdir'
8604      hardcode_shlibpath_var=no
8605      ;;
8606
8607    *)
8608      ld_shlibs=no
8609      ;;
8610    esac
8611  fi
8612
8613echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8614echo "${ECHO_T}$ld_shlibs" >&6
8615test "$ld_shlibs" = no && can_build_shared=no
8616
8617variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8618if test "$GCC" = yes; then
8619  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8620fi
8621
8622#
8623# Do we need to explicitly link libc?
8624#
8625case "x$archive_cmds_need_lc" in
8626x|xyes)
8627  # Assume -lc should be added
8628  archive_cmds_need_lc=yes
8629
8630  if test "$enable_shared" = yes && test "$GCC" = yes; then
8631    case $archive_cmds in
8632    *'~'*)
8633      # FIXME: we may have to deal with multi-command sequences.
8634      ;;
8635    '$CC '*)
8636      # Test whether the compiler implicitly links with -lc since on some
8637      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8638      # to ld, don't add -lc before -lgcc.
8639      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8640echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8641      $rm conftest*
8642      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8643
8644      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8645  (eval $ac_compile) 2>&5
8646  ac_status=$?
8647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648  (exit $ac_status); } 2>conftest.err; then
8649        soname=conftest
8650        lib=conftest
8651        libobjs=conftest.$ac_objext
8652        deplibs=
8653        wl=$lt_prog_compiler_wl
8654        compiler_flags=-v
8655        linker_flags=-v
8656        verstring=
8657        output_objdir=.
8658        libname=conftest
8659        lt_save_allow_undefined_flag=$allow_undefined_flag
8660        allow_undefined_flag=
8661        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8662  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8663  ac_status=$?
8664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665  (exit $ac_status); }
8666        then
8667	  archive_cmds_need_lc=no
8668        else
8669	  archive_cmds_need_lc=yes
8670        fi
8671        allow_undefined_flag=$lt_save_allow_undefined_flag
8672      else
8673        cat conftest.err 1>&5
8674      fi
8675      $rm conftest*
8676      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8677echo "${ECHO_T}$archive_cmds_need_lc" >&6
8678      ;;
8679    esac
8680  fi
8681  ;;
8682esac
8683
8684echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8685echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8686library_names_spec=
8687libname_spec='lib$name'
8688soname_spec=
8689shrext_cmds=".so"
8690postinstall_cmds=
8691postuninstall_cmds=
8692finish_cmds=
8693finish_eval=
8694shlibpath_var=
8695shlibpath_overrides_runpath=unknown
8696version_type=none
8697dynamic_linker="$host_os ld.so"
8698sys_lib_dlsearch_path_spec="/lib /usr/lib"
8699if test "$GCC" = yes; then
8700  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8701  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8702    # if the path contains ";" then we assume it to be the separator
8703    # otherwise default to the standard path separator (i.e. ":") - it is
8704    # assumed that no part of a normal pathname contains ";" but that should
8705    # okay in the real world where ";" in dirpaths is itself problematic.
8706    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8707  else
8708    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8709  fi
8710else
8711  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8712fi
8713need_lib_prefix=unknown
8714hardcode_into_libs=no
8715
8716# when you set need_version to no, make sure it does not cause -set_version
8717# flags to be left without arguments
8718need_version=unknown
8719
8720case $host_os in
8721aix3*)
8722  version_type=linux
8723  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8724  shlibpath_var=LIBPATH
8725
8726  # AIX 3 has no versioning support, so we append a major version to the name.
8727  soname_spec='${libname}${release}${shared_ext}$major'
8728  ;;
8729
8730aix4* | aix5*)
8731  version_type=linux
8732  need_lib_prefix=no
8733  need_version=no
8734  hardcode_into_libs=yes
8735  if test "$host_cpu" = ia64; then
8736    # AIX 5 supports IA64
8737    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8738    shlibpath_var=LD_LIBRARY_PATH
8739  else
8740    # With GCC up to 2.95.x, collect2 would create an import file
8741    # for dependence libraries.  The import file would start with
8742    # the line `#! .'.  This would cause the generated library to
8743    # depend on `.', always an invalid library.  This was fixed in
8744    # development snapshots of GCC prior to 3.0.
8745    case $host_os in
8746      aix4 | aix4.[01] | aix4.[01].*)
8747      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8748	   echo ' yes '
8749	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8750	:
8751      else
8752	can_build_shared=no
8753      fi
8754      ;;
8755    esac
8756    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8757    # soname into executable. Probably we can add versioning support to
8758    # collect2, so additional links can be useful in future.
8759    if test "$aix_use_runtimelinking" = yes; then
8760      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8761      # instead of lib<name>.a to let people know that these are not
8762      # typical AIX shared libraries.
8763      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8764    else
8765      # We preserve .a as extension for shared libraries through AIX4.2
8766      # and later when we are not doing run time linking.
8767      library_names_spec='${libname}${release}.a $libname.a'
8768      soname_spec='${libname}${release}${shared_ext}$major'
8769    fi
8770    shlibpath_var=LIBPATH
8771  fi
8772  ;;
8773
8774amigaos*)
8775  library_names_spec='$libname.ixlibrary $libname.a'
8776  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8777  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'
8778  ;;
8779
8780beos*)
8781  library_names_spec='${libname}${shared_ext}'
8782  dynamic_linker="$host_os ld.so"
8783  shlibpath_var=LIBRARY_PATH
8784  ;;
8785
8786bsdi[45]*)
8787  version_type=linux
8788  need_version=no
8789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8790  soname_spec='${libname}${release}${shared_ext}$major'
8791  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8792  shlibpath_var=LD_LIBRARY_PATH
8793  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8794  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8795  # the default ld.so.conf also contains /usr/contrib/lib and
8796  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8797  # libtool to hard-code these into programs
8798  ;;
8799
8800cygwin* | mingw* | pw32*)
8801  version_type=windows
8802  shrext_cmds=".dll"
8803  need_version=no
8804  need_lib_prefix=no
8805
8806  case $GCC,$host_os in
8807  yes,cygwin* | yes,mingw* | yes,pw32*)
8808    library_names_spec='$libname.dll.a'
8809    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8810    postinstall_cmds='base_file=`basename \${file}`~
8811      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8812      dldir=$destdir/`dirname \$dlpath`~
8813      test -d \$dldir || mkdir -p \$dldir~
8814      $install_prog $dir/$dlname \$dldir/$dlname~
8815      chmod a+x \$dldir/$dlname'
8816    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8817      dlpath=$dir/\$dldll~
8818       $rm \$dlpath'
8819    shlibpath_overrides_runpath=yes
8820
8821    case $host_os in
8822    cygwin*)
8823      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8824      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8825      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8826      ;;
8827    mingw*)
8828      # MinGW DLLs use traditional 'lib' prefix
8829      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8830      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8831      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8832        # It is most probably a Windows format PATH printed by
8833        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8834        # path with ; separators, and with drive letters. We can handle the
8835        # drive letters (cygwin fileutils understands them), so leave them,
8836        # especially as we might pass files found there to a mingw objdump,
8837        # which wouldn't understand a cygwinified path. Ahh.
8838        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8839      else
8840        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8841      fi
8842      ;;
8843    pw32*)
8844      # pw32 DLLs use 'pw' prefix rather than 'lib'
8845      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8846      ;;
8847    esac
8848    ;;
8849
8850  *)
8851    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8852    ;;
8853  esac
8854  dynamic_linker='Win32 ld.exe'
8855  # FIXME: first we should search . and the directory the executable is in
8856  shlibpath_var=PATH
8857  ;;
8858
8859darwin* | rhapsody*)
8860  dynamic_linker="$host_os dyld"
8861  version_type=darwin
8862  need_lib_prefix=no
8863  need_version=no
8864  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8865  soname_spec='${libname}${release}${major}$shared_ext'
8866  shlibpath_overrides_runpath=yes
8867  shlibpath_var=DYLD_LIBRARY_PATH
8868  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8869  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8870  if test "$GCC" = yes; then
8871    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"`
8872  else
8873    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8874  fi
8875  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8876  ;;
8877
8878dgux*)
8879  version_type=linux
8880  need_lib_prefix=no
8881  need_version=no
8882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8883  soname_spec='${libname}${release}${shared_ext}$major'
8884  shlibpath_var=LD_LIBRARY_PATH
8885  ;;
8886
8887freebsd1*)
8888  dynamic_linker=no
8889  ;;
8890
8891kfreebsd*-gnu)
8892  version_type=linux
8893  need_lib_prefix=no
8894  need_version=no
8895  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8896  soname_spec='${libname}${release}${shared_ext}$major'
8897  shlibpath_var=LD_LIBRARY_PATH
8898  shlibpath_overrides_runpath=no
8899  hardcode_into_libs=yes
8900  dynamic_linker='GNU ld.so'
8901  ;;
8902
8903freebsd*)
8904  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8905  version_type=freebsd-$objformat
8906  case $version_type in
8907    freebsd-elf*)
8908      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8909      need_version=no
8910      need_lib_prefix=no
8911      ;;
8912    freebsd-*)
8913      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8914      need_version=yes
8915      ;;
8916  esac
8917  shlibpath_var=LD_LIBRARY_PATH
8918  case $host_os in
8919  freebsd2*)
8920    shlibpath_overrides_runpath=yes
8921    ;;
8922  freebsd3.01* | freebsdelf3.01*)
8923    shlibpath_overrides_runpath=yes
8924    hardcode_into_libs=yes
8925    ;;
8926  *) # from 3.2 on
8927    shlibpath_overrides_runpath=no
8928    hardcode_into_libs=yes
8929    ;;
8930  esac
8931  ;;
8932
8933gnu*)
8934  version_type=linux
8935  need_lib_prefix=no
8936  need_version=no
8937  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8938  soname_spec='${libname}${release}${shared_ext}$major'
8939  shlibpath_var=LD_LIBRARY_PATH
8940  hardcode_into_libs=yes
8941  ;;
8942
8943hpux9* | hpux10* | hpux11*)
8944  # Give a soname corresponding to the major version so that dld.sl refuses to
8945  # link against other versions.
8946  version_type=sunos
8947  need_lib_prefix=no
8948  need_version=no
8949  case "$host_cpu" in
8950  ia64*)
8951    shrext_cmds='.so'
8952    hardcode_into_libs=yes
8953    dynamic_linker="$host_os dld.so"
8954    shlibpath_var=LD_LIBRARY_PATH
8955    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8956    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8957    soname_spec='${libname}${release}${shared_ext}$major'
8958    if test "X$HPUX_IA64_MODE" = X32; then
8959      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8960    else
8961      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8962    fi
8963    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8964    ;;
8965   hppa*64*)
8966     shrext_cmds='.sl'
8967     hardcode_into_libs=yes
8968     dynamic_linker="$host_os dld.sl"
8969     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8970     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8971     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8972     soname_spec='${libname}${release}${shared_ext}$major'
8973     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8974     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8975     ;;
8976   *)
8977    shrext_cmds='.sl'
8978    dynamic_linker="$host_os dld.sl"
8979    shlibpath_var=SHLIB_PATH
8980    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8981    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982    soname_spec='${libname}${release}${shared_ext}$major'
8983    ;;
8984  esac
8985  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8986  postinstall_cmds='chmod 555 $lib'
8987  ;;
8988
8989irix5* | irix6* | nonstopux*)
8990  case $host_os in
8991    nonstopux*) version_type=nonstopux ;;
8992    *)
8993	if test "$lt_cv_prog_gnu_ld" = yes; then
8994		version_type=linux
8995	else
8996		version_type=irix
8997	fi ;;
8998  esac
8999  need_lib_prefix=no
9000  need_version=no
9001  soname_spec='${libname}${release}${shared_ext}$major'
9002  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9003  case $host_os in
9004  irix5* | nonstopux*)
9005    libsuff= shlibsuff=
9006    ;;
9007  *)
9008    case $LD in # libtool.m4 will add one of these switches to LD
9009    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9010      libsuff= shlibsuff= libmagic=32-bit;;
9011    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9012      libsuff=32 shlibsuff=N32 libmagic=N32;;
9013    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9014      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9015    *) libsuff= shlibsuff= libmagic=never-match;;
9016    esac
9017    ;;
9018  esac
9019  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9020  shlibpath_overrides_runpath=no
9021  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9022  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9023  hardcode_into_libs=yes
9024  ;;
9025
9026# No shared lib support for Linux oldld, aout, or coff.
9027linux*oldld* | linux*aout* | linux*coff*)
9028  dynamic_linker=no
9029  ;;
9030
9031# This must be Linux ELF.
9032linux*)
9033  version_type=linux
9034  need_lib_prefix=no
9035  need_version=no
9036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037  soname_spec='${libname}${release}${shared_ext}$major'
9038  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9039  shlibpath_var=LD_LIBRARY_PATH
9040  shlibpath_overrides_runpath=no
9041  # This implies no fast_install, which is unacceptable.
9042  # Some rework will be needed to allow for fast_install
9043  # before this can be enabled.
9044  hardcode_into_libs=yes
9045
9046  # Append ld.so.conf contents to the search path
9047  if test -f /etc/ld.so.conf; then
9048    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9049    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9050  fi
9051
9052  # We used to test for /lib/ld.so.1 and disable shared libraries on
9053  # powerpc, because MkLinux only supported shared libraries with the
9054  # GNU dynamic linker.  Since this was broken with cross compilers,
9055  # most powerpc-linux boxes support dynamic linking these days and
9056  # people can always --disable-shared, the test was removed, and we
9057  # assume the GNU/Linux dynamic linker is in use.
9058  dynamic_linker='GNU/Linux ld.so'
9059  ;;
9060
9061knetbsd*-gnu)
9062  version_type=linux
9063  need_lib_prefix=no
9064  need_version=no
9065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9066  soname_spec='${libname}${release}${shared_ext}$major'
9067  shlibpath_var=LD_LIBRARY_PATH
9068  shlibpath_overrides_runpath=no
9069  hardcode_into_libs=yes
9070  dynamic_linker='GNU ld.so'
9071  ;;
9072
9073netbsd*)
9074  version_type=sunos
9075  need_lib_prefix=no
9076  need_version=no
9077  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9078    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9079    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9080    dynamic_linker='NetBSD (a.out) ld.so'
9081  else
9082    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9083    soname_spec='${libname}${release}${shared_ext}$major'
9084    dynamic_linker='NetBSD ld.elf_so'
9085  fi
9086  shlibpath_var=LD_LIBRARY_PATH
9087  shlibpath_overrides_runpath=yes
9088  hardcode_into_libs=yes
9089  ;;
9090
9091newsos6)
9092  version_type=linux
9093  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094  shlibpath_var=LD_LIBRARY_PATH
9095  shlibpath_overrides_runpath=yes
9096  ;;
9097
9098nto-qnx*)
9099  version_type=linux
9100  need_lib_prefix=no
9101  need_version=no
9102  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9103  soname_spec='${libname}${release}${shared_ext}$major'
9104  shlibpath_var=LD_LIBRARY_PATH
9105  shlibpath_overrides_runpath=yes
9106  ;;
9107
9108openbsd*)
9109  version_type=sunos
9110  need_lib_prefix=no
9111  need_version=no
9112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9113  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9114  shlibpath_var=LD_LIBRARY_PATH
9115  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9116    case $host_os in
9117      openbsd2.[89] | openbsd2.[89].*)
9118	shlibpath_overrides_runpath=no
9119	;;
9120      *)
9121	shlibpath_overrides_runpath=yes
9122	;;
9123      esac
9124  else
9125    shlibpath_overrides_runpath=yes
9126  fi
9127  ;;
9128
9129os2*)
9130  libname_spec='$name'
9131  shrext_cmds=".dll"
9132  need_lib_prefix=no
9133  library_names_spec='$libname${shared_ext} $libname.a'
9134  dynamic_linker='OS/2 ld.exe'
9135  shlibpath_var=LIBPATH
9136  ;;
9137
9138osf3* | osf4* | osf5*)
9139  version_type=osf
9140  need_lib_prefix=no
9141  need_version=no
9142  soname_spec='${libname}${release}${shared_ext}$major'
9143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9144  shlibpath_var=LD_LIBRARY_PATH
9145  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9146  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9147  ;;
9148
9149sco3.2v5*)
9150  version_type=osf
9151  soname_spec='${libname}${release}${shared_ext}$major'
9152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153  shlibpath_var=LD_LIBRARY_PATH
9154  ;;
9155
9156solaris*)
9157  version_type=linux
9158  need_lib_prefix=no
9159  need_version=no
9160  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161  soname_spec='${libname}${release}${shared_ext}$major'
9162  shlibpath_var=LD_LIBRARY_PATH
9163  shlibpath_overrides_runpath=yes
9164  hardcode_into_libs=yes
9165  # ldd complains unless libraries are executable
9166  postinstall_cmds='chmod +x $lib'
9167  ;;
9168
9169sunos4*)
9170  version_type=sunos
9171  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9172  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9173  shlibpath_var=LD_LIBRARY_PATH
9174  shlibpath_overrides_runpath=yes
9175  if test "$with_gnu_ld" = yes; then
9176    need_lib_prefix=no
9177  fi
9178  need_version=yes
9179  ;;
9180
9181sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9182  version_type=linux
9183  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9184  soname_spec='${libname}${release}${shared_ext}$major'
9185  shlibpath_var=LD_LIBRARY_PATH
9186  case $host_vendor in
9187    sni)
9188      shlibpath_overrides_runpath=no
9189      need_lib_prefix=no
9190      export_dynamic_flag_spec='${wl}-Blargedynsym'
9191      runpath_var=LD_RUN_PATH
9192      ;;
9193    siemens)
9194      need_lib_prefix=no
9195      ;;
9196    motorola)
9197      need_lib_prefix=no
9198      need_version=no
9199      shlibpath_overrides_runpath=no
9200      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9201      ;;
9202  esac
9203  ;;
9204
9205sysv4*MP*)
9206  if test -d /usr/nec ;then
9207    version_type=linux
9208    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9209    soname_spec='$libname${shared_ext}.$major'
9210    shlibpath_var=LD_LIBRARY_PATH
9211  fi
9212  ;;
9213
9214uts4*)
9215  version_type=linux
9216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9217  soname_spec='${libname}${release}${shared_ext}$major'
9218  shlibpath_var=LD_LIBRARY_PATH
9219  ;;
9220
9221*)
9222  dynamic_linker=no
9223  ;;
9224esac
9225echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9226echo "${ECHO_T}$dynamic_linker" >&6
9227test "$dynamic_linker" = no && can_build_shared=no
9228
9229echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9230echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9231hardcode_action=
9232if test -n "$hardcode_libdir_flag_spec" || \
9233   test -n "$runpath_var" || \
9234   test "X$hardcode_automatic" = "Xyes" ; then
9235
9236  # We can hardcode non-existant directories.
9237  if test "$hardcode_direct" != no &&
9238     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9239     # have to relink, otherwise we might link with an installed library
9240     # when we should be linking with a yet-to-be-installed one
9241     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9242     test "$hardcode_minus_L" != no; then
9243    # Linking always hardcodes the temporary library directory.
9244    hardcode_action=relink
9245  else
9246    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9247    hardcode_action=immediate
9248  fi
9249else
9250  # We cannot hardcode anything, or else we can only hardcode existing
9251  # directories.
9252  hardcode_action=unsupported
9253fi
9254echo "$as_me:$LINENO: result: $hardcode_action" >&5
9255echo "${ECHO_T}$hardcode_action" >&6
9256
9257if test "$hardcode_action" = relink; then
9258  # Fast installation is not supported
9259  enable_fast_install=no
9260elif test "$shlibpath_overrides_runpath" = yes ||
9261     test "$enable_shared" = no; then
9262  # Fast installation is not necessary
9263  enable_fast_install=needless
9264fi
9265
9266striplib=
9267old_striplib=
9268echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9269echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9270if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9271  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9272  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9273  echo "$as_me:$LINENO: result: yes" >&5
9274echo "${ECHO_T}yes" >&6
9275else
9276# FIXME - insert some real tests, host_os isn't really good enough
9277  case $host_os in
9278   darwin*)
9279       if test -n "$STRIP" ; then
9280         striplib="$STRIP -x"
9281         echo "$as_me:$LINENO: result: yes" >&5
9282echo "${ECHO_T}yes" >&6
9283       else
9284  echo "$as_me:$LINENO: result: no" >&5
9285echo "${ECHO_T}no" >&6
9286fi
9287       ;;
9288   *)
9289  echo "$as_me:$LINENO: result: no" >&5
9290echo "${ECHO_T}no" >&6
9291    ;;
9292  esac
9293fi
9294
9295if test "x$enable_dlopen" != xyes; then
9296  enable_dlopen=unknown
9297  enable_dlopen_self=unknown
9298  enable_dlopen_self_static=unknown
9299else
9300  lt_cv_dlopen=no
9301  lt_cv_dlopen_libs=
9302
9303  case $host_os in
9304  beos*)
9305    lt_cv_dlopen="load_add_on"
9306    lt_cv_dlopen_libs=
9307    lt_cv_dlopen_self=yes
9308    ;;
9309
9310  mingw* | pw32*)
9311    lt_cv_dlopen="LoadLibrary"
9312    lt_cv_dlopen_libs=
9313   ;;
9314
9315  cygwin*)
9316    lt_cv_dlopen="dlopen"
9317    lt_cv_dlopen_libs=
9318   ;;
9319
9320  darwin*)
9321  # if libdl is installed we need to link against it
9322    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9323echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9324if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9325  echo $ECHO_N "(cached) $ECHO_C" >&6
9326else
9327  ac_check_lib_save_LIBS=$LIBS
9328LIBS="-ldl  $LIBS"
9329cat >conftest.$ac_ext <<_ACEOF
9330/* confdefs.h.  */
9331_ACEOF
9332cat confdefs.h >>conftest.$ac_ext
9333cat >>conftest.$ac_ext <<_ACEOF
9334/* end confdefs.h.  */
9335
9336/* Override any gcc2 internal prototype to avoid an error.  */
9337#ifdef __cplusplus
9338extern "C"
9339#endif
9340/* We use char because int might match the return type of a gcc2
9341   builtin and then its argument prototype would still apply.  */
9342char dlopen ();
9343int
9344main ()
9345{
9346dlopen ();
9347  ;
9348  return 0;
9349}
9350_ACEOF
9351rm -f conftest.$ac_objext conftest$ac_exeext
9352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9353  (eval $ac_link) 2>conftest.er1
9354  ac_status=$?
9355  grep -v '^ *+' conftest.er1 >conftest.err
9356  rm -f conftest.er1
9357  cat conftest.err >&5
9358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359  (exit $ac_status); } &&
9360	 { ac_try='test -z "$ac_c_werror_flag"
9361			 || test ! -s conftest.err'
9362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363  (eval $ac_try) 2>&5
9364  ac_status=$?
9365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366  (exit $ac_status); }; } &&
9367	 { ac_try='test -s conftest$ac_exeext'
9368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369  (eval $ac_try) 2>&5
9370  ac_status=$?
9371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372  (exit $ac_status); }; }; then
9373  ac_cv_lib_dl_dlopen=yes
9374else
9375  echo "$as_me: failed program was:" >&5
9376sed 's/^/| /' conftest.$ac_ext >&5
9377
9378ac_cv_lib_dl_dlopen=no
9379fi
9380rm -f conftest.err conftest.$ac_objext \
9381      conftest$ac_exeext conftest.$ac_ext
9382LIBS=$ac_check_lib_save_LIBS
9383fi
9384echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9385echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9386if test $ac_cv_lib_dl_dlopen = yes; then
9387  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9388else
9389
9390    lt_cv_dlopen="dyld"
9391    lt_cv_dlopen_libs=
9392    lt_cv_dlopen_self=yes
9393
9394fi
9395
9396   ;;
9397
9398  *)
9399    echo "$as_me:$LINENO: checking for shl_load" >&5
9400echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9401if test "${ac_cv_func_shl_load+set}" = set; then
9402  echo $ECHO_N "(cached) $ECHO_C" >&6
9403else
9404  cat >conftest.$ac_ext <<_ACEOF
9405/* confdefs.h.  */
9406_ACEOF
9407cat confdefs.h >>conftest.$ac_ext
9408cat >>conftest.$ac_ext <<_ACEOF
9409/* end confdefs.h.  */
9410/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9411   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9412#define shl_load innocuous_shl_load
9413
9414/* System header to define __stub macros and hopefully few prototypes,
9415    which can conflict with char shl_load (); below.
9416    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9417    <limits.h> exists even on freestanding compilers.  */
9418
9419#ifdef __STDC__
9420# include <limits.h>
9421#else
9422# include <assert.h>
9423#endif
9424
9425#undef shl_load
9426
9427/* Override any gcc2 internal prototype to avoid an error.  */
9428#ifdef __cplusplus
9429extern "C"
9430{
9431#endif
9432/* We use char because int might match the return type of a gcc2
9433   builtin and then its argument prototype would still apply.  */
9434char shl_load ();
9435/* The GNU C library defines this for functions which it implements
9436    to always fail with ENOSYS.  Some functions are actually named
9437    something starting with __ and the normal name is an alias.  */
9438#if defined (__stub_shl_load) || defined (__stub___shl_load)
9439choke me
9440#else
9441char (*f) () = shl_load;
9442#endif
9443#ifdef __cplusplus
9444}
9445#endif
9446
9447int
9448main ()
9449{
9450return f != shl_load;
9451  ;
9452  return 0;
9453}
9454_ACEOF
9455rm -f conftest.$ac_objext conftest$ac_exeext
9456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9457  (eval $ac_link) 2>conftest.er1
9458  ac_status=$?
9459  grep -v '^ *+' conftest.er1 >conftest.err
9460  rm -f conftest.er1
9461  cat conftest.err >&5
9462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463  (exit $ac_status); } &&
9464	 { ac_try='test -z "$ac_c_werror_flag"
9465			 || test ! -s conftest.err'
9466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467  (eval $ac_try) 2>&5
9468  ac_status=$?
9469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470  (exit $ac_status); }; } &&
9471	 { ac_try='test -s conftest$ac_exeext'
9472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473  (eval $ac_try) 2>&5
9474  ac_status=$?
9475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476  (exit $ac_status); }; }; then
9477  ac_cv_func_shl_load=yes
9478else
9479  echo "$as_me: failed program was:" >&5
9480sed 's/^/| /' conftest.$ac_ext >&5
9481
9482ac_cv_func_shl_load=no
9483fi
9484rm -f conftest.err conftest.$ac_objext \
9485      conftest$ac_exeext conftest.$ac_ext
9486fi
9487echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9488echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9489if test $ac_cv_func_shl_load = yes; then
9490  lt_cv_dlopen="shl_load"
9491else
9492  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9493echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9494if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9495  echo $ECHO_N "(cached) $ECHO_C" >&6
9496else
9497  ac_check_lib_save_LIBS=$LIBS
9498LIBS="-ldld  $LIBS"
9499cat >conftest.$ac_ext <<_ACEOF
9500/* confdefs.h.  */
9501_ACEOF
9502cat confdefs.h >>conftest.$ac_ext
9503cat >>conftest.$ac_ext <<_ACEOF
9504/* end confdefs.h.  */
9505
9506/* Override any gcc2 internal prototype to avoid an error.  */
9507#ifdef __cplusplus
9508extern "C"
9509#endif
9510/* We use char because int might match the return type of a gcc2
9511   builtin and then its argument prototype would still apply.  */
9512char shl_load ();
9513int
9514main ()
9515{
9516shl_load ();
9517  ;
9518  return 0;
9519}
9520_ACEOF
9521rm -f conftest.$ac_objext conftest$ac_exeext
9522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9523  (eval $ac_link) 2>conftest.er1
9524  ac_status=$?
9525  grep -v '^ *+' conftest.er1 >conftest.err
9526  rm -f conftest.er1
9527  cat conftest.err >&5
9528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529  (exit $ac_status); } &&
9530	 { ac_try='test -z "$ac_c_werror_flag"
9531			 || test ! -s conftest.err'
9532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533  (eval $ac_try) 2>&5
9534  ac_status=$?
9535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536  (exit $ac_status); }; } &&
9537	 { ac_try='test -s conftest$ac_exeext'
9538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539  (eval $ac_try) 2>&5
9540  ac_status=$?
9541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542  (exit $ac_status); }; }; then
9543  ac_cv_lib_dld_shl_load=yes
9544else
9545  echo "$as_me: failed program was:" >&5
9546sed 's/^/| /' conftest.$ac_ext >&5
9547
9548ac_cv_lib_dld_shl_load=no
9549fi
9550rm -f conftest.err conftest.$ac_objext \
9551      conftest$ac_exeext conftest.$ac_ext
9552LIBS=$ac_check_lib_save_LIBS
9553fi
9554echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9555echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9556if test $ac_cv_lib_dld_shl_load = yes; then
9557  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9558else
9559  echo "$as_me:$LINENO: checking for dlopen" >&5
9560echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9561if test "${ac_cv_func_dlopen+set}" = set; then
9562  echo $ECHO_N "(cached) $ECHO_C" >&6
9563else
9564  cat >conftest.$ac_ext <<_ACEOF
9565/* confdefs.h.  */
9566_ACEOF
9567cat confdefs.h >>conftest.$ac_ext
9568cat >>conftest.$ac_ext <<_ACEOF
9569/* end confdefs.h.  */
9570/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9571   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9572#define dlopen innocuous_dlopen
9573
9574/* System header to define __stub macros and hopefully few prototypes,
9575    which can conflict with char dlopen (); below.
9576    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9577    <limits.h> exists even on freestanding compilers.  */
9578
9579#ifdef __STDC__
9580# include <limits.h>
9581#else
9582# include <assert.h>
9583#endif
9584
9585#undef dlopen
9586
9587/* Override any gcc2 internal prototype to avoid an error.  */
9588#ifdef __cplusplus
9589extern "C"
9590{
9591#endif
9592/* We use char because int might match the return type of a gcc2
9593   builtin and then its argument prototype would still apply.  */
9594char dlopen ();
9595/* The GNU C library defines this for functions which it implements
9596    to always fail with ENOSYS.  Some functions are actually named
9597    something starting with __ and the normal name is an alias.  */
9598#if defined (__stub_dlopen) || defined (__stub___dlopen)
9599choke me
9600#else
9601char (*f) () = dlopen;
9602#endif
9603#ifdef __cplusplus
9604}
9605#endif
9606
9607int
9608main ()
9609{
9610return f != dlopen;
9611  ;
9612  return 0;
9613}
9614_ACEOF
9615rm -f conftest.$ac_objext conftest$ac_exeext
9616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9617  (eval $ac_link) 2>conftest.er1
9618  ac_status=$?
9619  grep -v '^ *+' conftest.er1 >conftest.err
9620  rm -f conftest.er1
9621  cat conftest.err >&5
9622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623  (exit $ac_status); } &&
9624	 { ac_try='test -z "$ac_c_werror_flag"
9625			 || test ! -s conftest.err'
9626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627  (eval $ac_try) 2>&5
9628  ac_status=$?
9629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630  (exit $ac_status); }; } &&
9631	 { ac_try='test -s conftest$ac_exeext'
9632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633  (eval $ac_try) 2>&5
9634  ac_status=$?
9635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636  (exit $ac_status); }; }; then
9637  ac_cv_func_dlopen=yes
9638else
9639  echo "$as_me: failed program was:" >&5
9640sed 's/^/| /' conftest.$ac_ext >&5
9641
9642ac_cv_func_dlopen=no
9643fi
9644rm -f conftest.err conftest.$ac_objext \
9645      conftest$ac_exeext conftest.$ac_ext
9646fi
9647echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9648echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9649if test $ac_cv_func_dlopen = yes; then
9650  lt_cv_dlopen="dlopen"
9651else
9652  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9653echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9654if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9655  echo $ECHO_N "(cached) $ECHO_C" >&6
9656else
9657  ac_check_lib_save_LIBS=$LIBS
9658LIBS="-ldl  $LIBS"
9659cat >conftest.$ac_ext <<_ACEOF
9660/* confdefs.h.  */
9661_ACEOF
9662cat confdefs.h >>conftest.$ac_ext
9663cat >>conftest.$ac_ext <<_ACEOF
9664/* end confdefs.h.  */
9665
9666/* Override any gcc2 internal prototype to avoid an error.  */
9667#ifdef __cplusplus
9668extern "C"
9669#endif
9670/* We use char because int might match the return type of a gcc2
9671   builtin and then its argument prototype would still apply.  */
9672char dlopen ();
9673int
9674main ()
9675{
9676dlopen ();
9677  ;
9678  return 0;
9679}
9680_ACEOF
9681rm -f conftest.$ac_objext conftest$ac_exeext
9682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9683  (eval $ac_link) 2>conftest.er1
9684  ac_status=$?
9685  grep -v '^ *+' conftest.er1 >conftest.err
9686  rm -f conftest.er1
9687  cat conftest.err >&5
9688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689  (exit $ac_status); } &&
9690	 { ac_try='test -z "$ac_c_werror_flag"
9691			 || test ! -s conftest.err'
9692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693  (eval $ac_try) 2>&5
9694  ac_status=$?
9695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696  (exit $ac_status); }; } &&
9697	 { ac_try='test -s conftest$ac_exeext'
9698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699  (eval $ac_try) 2>&5
9700  ac_status=$?
9701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702  (exit $ac_status); }; }; then
9703  ac_cv_lib_dl_dlopen=yes
9704else
9705  echo "$as_me: failed program was:" >&5
9706sed 's/^/| /' conftest.$ac_ext >&5
9707
9708ac_cv_lib_dl_dlopen=no
9709fi
9710rm -f conftest.err conftest.$ac_objext \
9711      conftest$ac_exeext conftest.$ac_ext
9712LIBS=$ac_check_lib_save_LIBS
9713fi
9714echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9715echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9716if test $ac_cv_lib_dl_dlopen = yes; then
9717  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9718else
9719  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9720echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9721if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9722  echo $ECHO_N "(cached) $ECHO_C" >&6
9723else
9724  ac_check_lib_save_LIBS=$LIBS
9725LIBS="-lsvld  $LIBS"
9726cat >conftest.$ac_ext <<_ACEOF
9727/* confdefs.h.  */
9728_ACEOF
9729cat confdefs.h >>conftest.$ac_ext
9730cat >>conftest.$ac_ext <<_ACEOF
9731/* end confdefs.h.  */
9732
9733/* Override any gcc2 internal prototype to avoid an error.  */
9734#ifdef __cplusplus
9735extern "C"
9736#endif
9737/* We use char because int might match the return type of a gcc2
9738   builtin and then its argument prototype would still apply.  */
9739char dlopen ();
9740int
9741main ()
9742{
9743dlopen ();
9744  ;
9745  return 0;
9746}
9747_ACEOF
9748rm -f conftest.$ac_objext conftest$ac_exeext
9749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9750  (eval $ac_link) 2>conftest.er1
9751  ac_status=$?
9752  grep -v '^ *+' conftest.er1 >conftest.err
9753  rm -f conftest.er1
9754  cat conftest.err >&5
9755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756  (exit $ac_status); } &&
9757	 { ac_try='test -z "$ac_c_werror_flag"
9758			 || test ! -s conftest.err'
9759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760  (eval $ac_try) 2>&5
9761  ac_status=$?
9762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763  (exit $ac_status); }; } &&
9764	 { ac_try='test -s conftest$ac_exeext'
9765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766  (eval $ac_try) 2>&5
9767  ac_status=$?
9768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769  (exit $ac_status); }; }; then
9770  ac_cv_lib_svld_dlopen=yes
9771else
9772  echo "$as_me: failed program was:" >&5
9773sed 's/^/| /' conftest.$ac_ext >&5
9774
9775ac_cv_lib_svld_dlopen=no
9776fi
9777rm -f conftest.err conftest.$ac_objext \
9778      conftest$ac_exeext conftest.$ac_ext
9779LIBS=$ac_check_lib_save_LIBS
9780fi
9781echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9782echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9783if test $ac_cv_lib_svld_dlopen = yes; then
9784  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9785else
9786  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9787echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9788if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9789  echo $ECHO_N "(cached) $ECHO_C" >&6
9790else
9791  ac_check_lib_save_LIBS=$LIBS
9792LIBS="-ldld  $LIBS"
9793cat >conftest.$ac_ext <<_ACEOF
9794/* confdefs.h.  */
9795_ACEOF
9796cat confdefs.h >>conftest.$ac_ext
9797cat >>conftest.$ac_ext <<_ACEOF
9798/* end confdefs.h.  */
9799
9800/* Override any gcc2 internal prototype to avoid an error.  */
9801#ifdef __cplusplus
9802extern "C"
9803#endif
9804/* We use char because int might match the return type of a gcc2
9805   builtin and then its argument prototype would still apply.  */
9806char dld_link ();
9807int
9808main ()
9809{
9810dld_link ();
9811  ;
9812  return 0;
9813}
9814_ACEOF
9815rm -f conftest.$ac_objext conftest$ac_exeext
9816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9817  (eval $ac_link) 2>conftest.er1
9818  ac_status=$?
9819  grep -v '^ *+' conftest.er1 >conftest.err
9820  rm -f conftest.er1
9821  cat conftest.err >&5
9822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823  (exit $ac_status); } &&
9824	 { ac_try='test -z "$ac_c_werror_flag"
9825			 || test ! -s conftest.err'
9826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9827  (eval $ac_try) 2>&5
9828  ac_status=$?
9829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830  (exit $ac_status); }; } &&
9831	 { ac_try='test -s conftest$ac_exeext'
9832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833  (eval $ac_try) 2>&5
9834  ac_status=$?
9835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836  (exit $ac_status); }; }; then
9837  ac_cv_lib_dld_dld_link=yes
9838else
9839  echo "$as_me: failed program was:" >&5
9840sed 's/^/| /' conftest.$ac_ext >&5
9841
9842ac_cv_lib_dld_dld_link=no
9843fi
9844rm -f conftest.err conftest.$ac_objext \
9845      conftest$ac_exeext conftest.$ac_ext
9846LIBS=$ac_check_lib_save_LIBS
9847fi
9848echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9849echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9850if test $ac_cv_lib_dld_dld_link = yes; then
9851  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9852fi
9853
9854
9855fi
9856
9857
9858fi
9859
9860
9861fi
9862
9863
9864fi
9865
9866
9867fi
9868
9869    ;;
9870  esac
9871
9872  if test "x$lt_cv_dlopen" != xno; then
9873    enable_dlopen=yes
9874  else
9875    enable_dlopen=no
9876  fi
9877
9878  case $lt_cv_dlopen in
9879  dlopen)
9880    save_CPPFLAGS="$CPPFLAGS"
9881    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9882
9883    save_LDFLAGS="$LDFLAGS"
9884    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9885
9886    save_LIBS="$LIBS"
9887    LIBS="$lt_cv_dlopen_libs $LIBS"
9888
9889    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9890echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9891if test "${lt_cv_dlopen_self+set}" = set; then
9892  echo $ECHO_N "(cached) $ECHO_C" >&6
9893else
9894  	  if test "$cross_compiling" = yes; then :
9895  lt_cv_dlopen_self=cross
9896else
9897  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9898  lt_status=$lt_dlunknown
9899  cat > conftest.$ac_ext <<EOF
9900#line 9900 "configure"
9901#include "confdefs.h"
9902
9903#if HAVE_DLFCN_H
9904#include <dlfcn.h>
9905#endif
9906
9907#include <stdio.h>
9908
9909#ifdef RTLD_GLOBAL
9910#  define LT_DLGLOBAL		RTLD_GLOBAL
9911#else
9912#  ifdef DL_GLOBAL
9913#    define LT_DLGLOBAL		DL_GLOBAL
9914#  else
9915#    define LT_DLGLOBAL		0
9916#  endif
9917#endif
9918
9919/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9920   find out it does not work in some platform. */
9921#ifndef LT_DLLAZY_OR_NOW
9922#  ifdef RTLD_LAZY
9923#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9924#  else
9925#    ifdef DL_LAZY
9926#      define LT_DLLAZY_OR_NOW		DL_LAZY
9927#    else
9928#      ifdef RTLD_NOW
9929#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9930#      else
9931#        ifdef DL_NOW
9932#          define LT_DLLAZY_OR_NOW	DL_NOW
9933#        else
9934#          define LT_DLLAZY_OR_NOW	0
9935#        endif
9936#      endif
9937#    endif
9938#  endif
9939#endif
9940
9941#ifdef __cplusplus
9942extern "C" void exit (int);
9943#endif
9944
9945void fnord() { int i=42;}
9946int main ()
9947{
9948  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9949  int status = $lt_dlunknown;
9950
9951  if (self)
9952    {
9953      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9954      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9955      /* dlclose (self); */
9956    }
9957
9958    exit (status);
9959}
9960EOF
9961  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9962  (eval $ac_link) 2>&5
9963  ac_status=$?
9964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9966    (./conftest; exit; ) 2>/dev/null
9967    lt_status=$?
9968    case x$lt_status in
9969      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9970      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9971      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9972    esac
9973  else :
9974    # compilation failed
9975    lt_cv_dlopen_self=no
9976  fi
9977fi
9978rm -fr conftest*
9979
9980
9981fi
9982echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9983echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9984
9985    if test "x$lt_cv_dlopen_self" = xyes; then
9986      LDFLAGS="$LDFLAGS $link_static_flag"
9987      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9988echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9989if test "${lt_cv_dlopen_self_static+set}" = set; then
9990  echo $ECHO_N "(cached) $ECHO_C" >&6
9991else
9992  	  if test "$cross_compiling" = yes; then :
9993  lt_cv_dlopen_self_static=cross
9994else
9995  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9996  lt_status=$lt_dlunknown
9997  cat > conftest.$ac_ext <<EOF
9998#line 9998 "configure"
9999#include "confdefs.h"
10000
10001#if HAVE_DLFCN_H
10002#include <dlfcn.h>
10003#endif
10004
10005#include <stdio.h>
10006
10007#ifdef RTLD_GLOBAL
10008#  define LT_DLGLOBAL		RTLD_GLOBAL
10009#else
10010#  ifdef DL_GLOBAL
10011#    define LT_DLGLOBAL		DL_GLOBAL
10012#  else
10013#    define LT_DLGLOBAL		0
10014#  endif
10015#endif
10016
10017/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10018   find out it does not work in some platform. */
10019#ifndef LT_DLLAZY_OR_NOW
10020#  ifdef RTLD_LAZY
10021#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10022#  else
10023#    ifdef DL_LAZY
10024#      define LT_DLLAZY_OR_NOW		DL_LAZY
10025#    else
10026#      ifdef RTLD_NOW
10027#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10028#      else
10029#        ifdef DL_NOW
10030#          define LT_DLLAZY_OR_NOW	DL_NOW
10031#        else
10032#          define LT_DLLAZY_OR_NOW	0
10033#        endif
10034#      endif
10035#    endif
10036#  endif
10037#endif
10038
10039#ifdef __cplusplus
10040extern "C" void exit (int);
10041#endif
10042
10043void fnord() { int i=42;}
10044int main ()
10045{
10046  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10047  int status = $lt_dlunknown;
10048
10049  if (self)
10050    {
10051      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10052      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10053      /* dlclose (self); */
10054    }
10055
10056    exit (status);
10057}
10058EOF
10059  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10060  (eval $ac_link) 2>&5
10061  ac_status=$?
10062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10064    (./conftest; exit; ) 2>/dev/null
10065    lt_status=$?
10066    case x$lt_status in
10067      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10068      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10069      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10070    esac
10071  else :
10072    # compilation failed
10073    lt_cv_dlopen_self_static=no
10074  fi
10075fi
10076rm -fr conftest*
10077
10078
10079fi
10080echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10081echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10082    fi
10083
10084    CPPFLAGS="$save_CPPFLAGS"
10085    LDFLAGS="$save_LDFLAGS"
10086    LIBS="$save_LIBS"
10087    ;;
10088  esac
10089
10090  case $lt_cv_dlopen_self in
10091  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10092  *) enable_dlopen_self=unknown ;;
10093  esac
10094
10095  case $lt_cv_dlopen_self_static in
10096  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10097  *) enable_dlopen_self_static=unknown ;;
10098  esac
10099fi
10100
10101
10102# Report which librarie types wil actually be built
10103echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10104echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10105echo "$as_me:$LINENO: result: $can_build_shared" >&5
10106echo "${ECHO_T}$can_build_shared" >&6
10107
10108echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10109echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10110test "$can_build_shared" = "no" && enable_shared=no
10111
10112# On AIX, shared libraries and static libraries use the same namespace, and
10113# are all built from PIC.
10114case "$host_os" in
10115aix3*)
10116  test "$enable_shared" = yes && enable_static=no
10117  if test -n "$RANLIB"; then
10118    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10119    postinstall_cmds='$RANLIB $lib'
10120  fi
10121  ;;
10122
10123aix4* | aix5*)
10124  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10125    test "$enable_shared" = yes && enable_static=no
10126  fi
10127    ;;
10128esac
10129echo "$as_me:$LINENO: result: $enable_shared" >&5
10130echo "${ECHO_T}$enable_shared" >&6
10131
10132echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10133echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10134# Make sure either enable_shared or enable_static is yes.
10135test "$enable_shared" = yes || enable_static=yes
10136echo "$as_me:$LINENO: result: $enable_static" >&5
10137echo "${ECHO_T}$enable_static" >&6
10138
10139# The else clause should only fire when bootstrapping the
10140# libtool distribution, otherwise you forgot to ship ltmain.sh
10141# with your package, and you will get complaints that there are
10142# no rules to generate ltmain.sh.
10143if test -f "$ltmain"; then
10144  # See if we are running on zsh, and set the options which allow our commands through
10145  # without removal of \ escapes.
10146  if test -n "${ZSH_VERSION+set}" ; then
10147    setopt NO_GLOB_SUBST
10148  fi
10149  # Now quote all the things that may contain metacharacters while being
10150  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10151  # variables and quote the copies for generation of the libtool script.
10152  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10153    SED SHELL STRIP \
10154    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10155    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10156    deplibs_check_method reload_flag reload_cmds need_locks \
10157    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10158    lt_cv_sys_global_symbol_to_c_name_address \
10159    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10160    old_postinstall_cmds old_postuninstall_cmds \
10161    compiler \
10162    CC \
10163    LD \
10164    lt_prog_compiler_wl \
10165    lt_prog_compiler_pic \
10166    lt_prog_compiler_static \
10167    lt_prog_compiler_no_builtin_flag \
10168    export_dynamic_flag_spec \
10169    thread_safe_flag_spec \
10170    whole_archive_flag_spec \
10171    enable_shared_with_static_runtimes \
10172    old_archive_cmds \
10173    old_archive_from_new_cmds \
10174    predep_objects \
10175    postdep_objects \
10176    predeps \
10177    postdeps \
10178    compiler_lib_search_path \
10179    archive_cmds \
10180    archive_expsym_cmds \
10181    postinstall_cmds \
10182    postuninstall_cmds \
10183    old_archive_from_expsyms_cmds \
10184    allow_undefined_flag \
10185    no_undefined_flag \
10186    export_symbols_cmds \
10187    hardcode_libdir_flag_spec \
10188    hardcode_libdir_flag_spec_ld \
10189    hardcode_libdir_separator \
10190    hardcode_automatic \
10191    module_cmds \
10192    module_expsym_cmds \
10193    lt_cv_prog_compiler_c_o \
10194    exclude_expsyms \
10195    include_expsyms; do
10196
10197    case $var in
10198    old_archive_cmds | \
10199    old_archive_from_new_cmds | \
10200    archive_cmds | \
10201    archive_expsym_cmds | \
10202    module_cmds | \
10203    module_expsym_cmds | \
10204    old_archive_from_expsyms_cmds | \
10205    export_symbols_cmds | \
10206    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10207    postinstall_cmds | postuninstall_cmds | \
10208    old_postinstall_cmds | old_postuninstall_cmds | \
10209    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10210      # Double-quote double-evaled strings.
10211      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10212      ;;
10213    *)
10214      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10215      ;;
10216    esac
10217  done
10218
10219  case $lt_echo in
10220  *'\$0 --fallback-echo"')
10221    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10222    ;;
10223  esac
10224
10225cfgfile="${ofile}T"
10226  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10227  $rm -f "$cfgfile"
10228  { echo "$as_me:$LINENO: creating $ofile" >&5
10229echo "$as_me: creating $ofile" >&6;}
10230
10231  cat <<__EOF__ >> "$cfgfile"
10232#! $SHELL
10233
10234# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10235# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10236# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10237#
10238# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10239# Free Software Foundation, Inc.
10240#
10241# This file is part of GNU Libtool:
10242# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10243#
10244# This program is free software; you can redistribute it and/or modify
10245# it under the terms of the GNU General Public License as published by
10246# the Free Software Foundation; either version 2 of the License, or
10247# (at your option) any later version.
10248#
10249# This program is distributed in the hope that it will be useful, but
10250# WITHOUT ANY WARRANTY; without even the implied warranty of
10251# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10252# General Public License for more details.
10253#
10254# You should have received a copy of the GNU General Public License
10255# along with this program; if not, write to the Free Software
10256# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
10257# USA.
10258#
10259# As a special exception to the GNU General Public License, if you
10260# distribute this file as part of a program that contains a
10261# configuration script generated by Autoconf, you may include it under
10262# the same distribution terms that you use for the rest of that program.
10263
10264# A sed program that does not truncate output.
10265SED=$lt_SED
10266
10267# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10268Xsed="$SED -e s/^X//"
10269
10270# The HP-UX ksh and POSIX shell print the target directory to stdout
10271# if CDPATH is set.
10272(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10273
10274# The names of the tagged configurations supported by this script.
10275available_tags=
10276
10277# ### BEGIN LIBTOOL CONFIG
10278
10279# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10280
10281# Shell to use when invoking shell scripts.
10282SHELL=$lt_SHELL
10283
10284# Whether or not to build shared libraries.
10285build_libtool_libs=$enable_shared
10286
10287# Whether or not to build static libraries.
10288build_old_libs=$enable_static
10289
10290# Whether or not to add -lc for building shared libraries.
10291build_libtool_need_lc=$archive_cmds_need_lc
10292
10293# Whether or not to disallow shared libs when runtime libs are static
10294allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10295
10296# Whether or not to optimize for fast installation.
10297fast_install=$enable_fast_install
10298
10299# The host system.
10300host_alias=$host_alias
10301host=$host
10302
10303# An echo program that does not interpret backslashes.
10304echo=$lt_echo
10305
10306# The archiver.
10307AR=$lt_AR
10308AR_FLAGS=$lt_AR_FLAGS
10309
10310# A C compiler.
10311LTCC=$lt_LTCC
10312
10313# A language-specific compiler.
10314CC=$lt_compiler
10315
10316# Is the compiler the GNU C compiler?
10317with_gcc=$GCC
10318
10319# An ERE matcher.
10320EGREP=$lt_EGREP
10321
10322# The linker used to build libraries.
10323LD=$lt_LD
10324
10325# Whether we need hard or soft links.
10326LN_S=$lt_LN_S
10327
10328# A BSD-compatible nm program.
10329NM=$lt_NM
10330
10331# A symbol stripping program
10332STRIP=$lt_STRIP
10333
10334# Used to examine libraries when file_magic_cmd begins "file"
10335MAGIC_CMD=$MAGIC_CMD
10336
10337# Used on cygwin: DLL creation program.
10338DLLTOOL="$DLLTOOL"
10339
10340# Used on cygwin: object dumper.
10341OBJDUMP="$OBJDUMP"
10342
10343# Used on cygwin: assembler.
10344AS="$AS"
10345
10346# The name of the directory that contains temporary libtool files.
10347objdir=$objdir
10348
10349# How to create reloadable object files.
10350reload_flag=$lt_reload_flag
10351reload_cmds=$lt_reload_cmds
10352
10353# How to pass a linker flag through the compiler.
10354wl=$lt_lt_prog_compiler_wl
10355
10356# Object file suffix (normally "o").
10357objext="$ac_objext"
10358
10359# Old archive suffix (normally "a").
10360libext="$libext"
10361
10362# Shared library suffix (normally ".so").
10363shrext_cmds='$shrext_cmds'
10364
10365# Executable file suffix (normally "").
10366exeext="$exeext"
10367
10368# Additional compiler flags for building library objects.
10369pic_flag=$lt_lt_prog_compiler_pic
10370pic_mode=$pic_mode
10371
10372# What is the maximum length of a command?
10373max_cmd_len=$lt_cv_sys_max_cmd_len
10374
10375# Does compiler simultaneously support -c and -o options?
10376compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10377
10378# Must we lock files when doing compilation ?
10379need_locks=$lt_need_locks
10380
10381# Do we need the lib prefix for modules?
10382need_lib_prefix=$need_lib_prefix
10383
10384# Do we need a version for libraries?
10385need_version=$need_version
10386
10387# Whether dlopen is supported.
10388dlopen_support=$enable_dlopen
10389
10390# Whether dlopen of programs is supported.
10391dlopen_self=$enable_dlopen_self
10392
10393# Whether dlopen of statically linked programs is supported.
10394dlopen_self_static=$enable_dlopen_self_static
10395
10396# Compiler flag to prevent dynamic linking.
10397link_static_flag=$lt_lt_prog_compiler_static
10398
10399# Compiler flag to turn off builtin functions.
10400no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10401
10402# Compiler flag to allow reflexive dlopens.
10403export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10404
10405# Compiler flag to generate shared objects directly from archives.
10406whole_archive_flag_spec=$lt_whole_archive_flag_spec
10407
10408# Compiler flag to generate thread-safe objects.
10409thread_safe_flag_spec=$lt_thread_safe_flag_spec
10410
10411# Library versioning type.
10412version_type=$version_type
10413
10414# Format of library name prefix.
10415libname_spec=$lt_libname_spec
10416
10417# List of archive names.  First name is the real one, the rest are links.
10418# The last name is the one that the linker finds with -lNAME.
10419library_names_spec=$lt_library_names_spec
10420
10421# The coded name of the library, if different from the real name.
10422soname_spec=$lt_soname_spec
10423
10424# Commands used to build and install an old-style archive.
10425RANLIB=$lt_RANLIB
10426old_archive_cmds=$lt_old_archive_cmds
10427old_postinstall_cmds=$lt_old_postinstall_cmds
10428old_postuninstall_cmds=$lt_old_postuninstall_cmds
10429
10430# Create an old-style archive from a shared archive.
10431old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10432
10433# Create a temporary old-style archive to link instead of a shared archive.
10434old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10435
10436# Commands used to build and install a shared archive.
10437archive_cmds=$lt_archive_cmds
10438archive_expsym_cmds=$lt_archive_expsym_cmds
10439postinstall_cmds=$lt_postinstall_cmds
10440postuninstall_cmds=$lt_postuninstall_cmds
10441
10442# Commands used to build a loadable module (assumed same as above if empty)
10443module_cmds=$lt_module_cmds
10444module_expsym_cmds=$lt_module_expsym_cmds
10445
10446# Commands to strip libraries.
10447old_striplib=$lt_old_striplib
10448striplib=$lt_striplib
10449
10450# Dependencies to place before the objects being linked to create a
10451# shared library.
10452predep_objects=$lt_predep_objects
10453
10454# Dependencies to place after the objects being linked to create a
10455# shared library.
10456postdep_objects=$lt_postdep_objects
10457
10458# Dependencies to place before the objects being linked to create a
10459# shared library.
10460predeps=$lt_predeps
10461
10462# Dependencies to place after the objects being linked to create a
10463# shared library.
10464postdeps=$lt_postdeps
10465
10466# The library search path used internally by the compiler when linking
10467# a shared library.
10468compiler_lib_search_path=$lt_compiler_lib_search_path
10469
10470# Method to check whether dependent libraries are shared objects.
10471deplibs_check_method=$lt_deplibs_check_method
10472
10473# Command to use when deplibs_check_method == file_magic.
10474file_magic_cmd=$lt_file_magic_cmd
10475
10476# Flag that allows shared libraries with undefined symbols to be built.
10477allow_undefined_flag=$lt_allow_undefined_flag
10478
10479# Flag that forces no undefined symbols.
10480no_undefined_flag=$lt_no_undefined_flag
10481
10482# Commands used to finish a libtool library installation in a directory.
10483finish_cmds=$lt_finish_cmds
10484
10485# Same as above, but a single script fragment to be evaled but not shown.
10486finish_eval=$lt_finish_eval
10487
10488# Take the output of nm and produce a listing of raw symbols and C names.
10489global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10490
10491# Transform the output of nm in a proper C declaration
10492global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10493
10494# Transform the output of nm in a C name address pair
10495global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10496
10497# This is the shared library runtime path variable.
10498runpath_var=$runpath_var
10499
10500# This is the shared library path variable.
10501shlibpath_var=$shlibpath_var
10502
10503# Is shlibpath searched before the hard-coded library search path?
10504shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10505
10506# How to hardcode a shared library path into an executable.
10507hardcode_action=$hardcode_action
10508
10509# Whether we should hardcode library paths into libraries.
10510hardcode_into_libs=$hardcode_into_libs
10511
10512# Flag to hardcode \$libdir into a binary during linking.
10513# This must work even if \$libdir does not exist.
10514hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10515
10516# If ld is used when linking, flag to hardcode \$libdir into
10517# a binary during linking. This must work even if \$libdir does
10518# not exist.
10519hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10520
10521# Whether we need a single -rpath flag with a separated argument.
10522hardcode_libdir_separator=$lt_hardcode_libdir_separator
10523
10524# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10525# resulting binary.
10526hardcode_direct=$hardcode_direct
10527
10528# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10529# resulting binary.
10530hardcode_minus_L=$hardcode_minus_L
10531
10532# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10533# the resulting binary.
10534hardcode_shlibpath_var=$hardcode_shlibpath_var
10535
10536# Set to yes if building a shared library automatically hardcodes DIR into the library
10537# and all subsequent libraries and executables linked against it.
10538hardcode_automatic=$hardcode_automatic
10539
10540# Variables whose values should be saved in libtool wrapper scripts and
10541# restored at relink time.
10542variables_saved_for_relink="$variables_saved_for_relink"
10543
10544# Whether libtool must link a program against all its dependency libraries.
10545link_all_deplibs=$link_all_deplibs
10546
10547# Compile-time system search path for libraries
10548sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10549
10550# Run-time system search path for libraries
10551sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10552
10553# Fix the shell variable \$srcfile for the compiler.
10554fix_srcfile_path="$fix_srcfile_path"
10555
10556# Set to yes if exported symbols are required.
10557always_export_symbols=$always_export_symbols
10558
10559# The commands to list exported symbols.
10560export_symbols_cmds=$lt_export_symbols_cmds
10561
10562# The commands to extract the exported symbol list from a shared archive.
10563extract_expsyms_cmds=$lt_extract_expsyms_cmds
10564
10565# Symbols that should not be listed in the preloaded symbols.
10566exclude_expsyms=$lt_exclude_expsyms
10567
10568# Symbols that must always be exported.
10569include_expsyms=$lt_include_expsyms
10570
10571# ### END LIBTOOL CONFIG
10572
10573__EOF__
10574
10575
10576  case $host_os in
10577  aix3*)
10578    cat <<\EOF >> "$cfgfile"
10579
10580# AIX sometimes has problems with the GCC collect2 program.  For some
10581# reason, if we set the COLLECT_NAMES environment variable, the problems
10582# vanish in a puff of smoke.
10583if test "X${COLLECT_NAMES+set}" != Xset; then
10584  COLLECT_NAMES=
10585  export COLLECT_NAMES
10586fi
10587EOF
10588    ;;
10589  esac
10590
10591  # We use sed instead of cat because bash on DJGPP gets confused if
10592  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10593  # text mode, it properly converts lines to CR/LF.  This bash problem
10594  # is reportedly fixed, but why not run on old versions too?
10595  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10596
10597  mv -f "$cfgfile" "$ofile" || \
10598    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10599  chmod +x "$ofile"
10600
10601else
10602  # If there is no Makefile yet, we rely on a make rule to execute
10603  # `config.status --recheck' to rerun these tests and create the
10604  # libtool script then.
10605  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10606  if test -f "$ltmain_in"; then
10607    test -f Makefile && make "$ltmain"
10608  fi
10609fi
10610
10611
10612ac_ext=c
10613ac_cpp='$CPP $CPPFLAGS'
10614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10616ac_compiler_gnu=$ac_cv_c_compiler_gnu
10617
10618CC="$lt_save_CC"
10619
10620
10621# Check whether --with-tags or --without-tags was given.
10622if test "${with_tags+set}" = set; then
10623  withval="$with_tags"
10624  tagnames="$withval"
10625fi;
10626
10627if test -f "$ltmain" && test -n "$tagnames"; then
10628  if test ! -f "${ofile}"; then
10629    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10630echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10631  fi
10632
10633  if test -z "$LTCC"; then
10634    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10635    if test -z "$LTCC"; then
10636      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10637echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10638    else
10639      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10640echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10641    fi
10642  fi
10643
10644  # Extract list of available tagged configurations in $ofile.
10645  # Note that this assumes the entire list is on one line.
10646  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10647
10648  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10649  for tagname in $tagnames; do
10650    IFS="$lt_save_ifs"
10651    # Check whether tagname contains only valid characters
10652    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10653    "") ;;
10654    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10655echo "$as_me: error: invalid tag name: $tagname" >&2;}
10656   { (exit 1); exit 1; }; }
10657	;;
10658    esac
10659
10660    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10661    then
10662      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10663echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10664   { (exit 1); exit 1; }; }
10665    fi
10666
10667    # Update the list of available tags.
10668    if test -n "$tagname"; then
10669      echo appending configuration tag \"$tagname\" to $ofile
10670
10671      case $tagname in
10672      CXX)
10673	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10674	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10675	    (test "X$CXX" != "Xg++"))) ; then
10676	  ac_ext=cc
10677ac_cpp='$CXXCPP $CPPFLAGS'
10678ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10679ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10680ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10681
10682
10683
10684
10685archive_cmds_need_lc_CXX=no
10686allow_undefined_flag_CXX=
10687always_export_symbols_CXX=no
10688archive_expsym_cmds_CXX=
10689export_dynamic_flag_spec_CXX=
10690hardcode_direct_CXX=no
10691hardcode_libdir_flag_spec_CXX=
10692hardcode_libdir_flag_spec_ld_CXX=
10693hardcode_libdir_separator_CXX=
10694hardcode_minus_L_CXX=no
10695hardcode_automatic_CXX=no
10696module_cmds_CXX=
10697module_expsym_cmds_CXX=
10698link_all_deplibs_CXX=unknown
10699old_archive_cmds_CXX=$old_archive_cmds
10700no_undefined_flag_CXX=
10701whole_archive_flag_spec_CXX=
10702enable_shared_with_static_runtimes_CXX=no
10703
10704# Dependencies to place before and after the object being linked:
10705predep_objects_CXX=
10706postdep_objects_CXX=
10707predeps_CXX=
10708postdeps_CXX=
10709compiler_lib_search_path_CXX=
10710
10711# Source file extension for C++ test sources.
10712ac_ext=cc
10713
10714# Object file extension for compiled C++ test sources.
10715objext=o
10716objext_CXX=$objext
10717
10718# Code to be used in simple compile tests
10719lt_simple_compile_test_code="int some_variable = 0;\n"
10720
10721# Code to be used in simple link tests
10722lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10723
10724# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10725
10726# If no C compiler was specified, use CC.
10727LTCC=${LTCC-"$CC"}
10728
10729# Allow CC to be a program name with arguments.
10730compiler=$CC
10731
10732
10733# Allow CC to be a program name with arguments.
10734lt_save_CC=$CC
10735lt_save_LD=$LD
10736lt_save_GCC=$GCC
10737GCC=$GXX
10738lt_save_with_gnu_ld=$with_gnu_ld
10739lt_save_path_LD=$lt_cv_path_LD
10740if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10741  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10742else
10743  unset lt_cv_prog_gnu_ld
10744fi
10745if test -n "${lt_cv_path_LDCXX+set}"; then
10746  lt_cv_path_LD=$lt_cv_path_LDCXX
10747else
10748  unset lt_cv_path_LD
10749fi
10750test -z "${LDCXX+set}" || LD=$LDCXX
10751CC=${CXX-"c++"}
10752compiler=$CC
10753compiler_CXX=$CC
10754cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10755
10756# We don't want -fno-exception wen compiling C++ code, so set the
10757# no_builtin_flag separately
10758if test "$GXX" = yes; then
10759  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10760else
10761  lt_prog_compiler_no_builtin_flag_CXX=
10762fi
10763
10764if test "$GXX" = yes; then
10765  # Set up default GNU C++ configuration
10766
10767
10768# Check whether --with-gnu-ld or --without-gnu-ld was given.
10769if test "${with_gnu_ld+set}" = set; then
10770  withval="$with_gnu_ld"
10771  test "$withval" = no || with_gnu_ld=yes
10772else
10773  with_gnu_ld=no
10774fi;
10775ac_prog=ld
10776if test "$GCC" = yes; then
10777  # Check if gcc -print-prog-name=ld gives a path.
10778  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10779echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10780  case $host in
10781  *-*-mingw*)
10782    # gcc leaves a trailing carriage return which upsets mingw
10783    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10784  *)
10785    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10786  esac
10787  case $ac_prog in
10788    # Accept absolute paths.
10789    [\\/]* | ?:[\\/]*)
10790      re_direlt='/[^/][^/]*/\.\./'
10791      # Canonicalize the pathname of ld
10792      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10793      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10794	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10795      done
10796      test -z "$LD" && LD="$ac_prog"
10797      ;;
10798  "")
10799    # If it fails, then pretend we aren't using GCC.
10800    ac_prog=ld
10801    ;;
10802  *)
10803    # If it is relative, then search for the first ld in PATH.
10804    with_gnu_ld=unknown
10805    ;;
10806  esac
10807elif test "$with_gnu_ld" = yes; then
10808  echo "$as_me:$LINENO: checking for GNU ld" >&5
10809echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10810else
10811  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10812echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10813fi
10814if test "${lt_cv_path_LD+set}" = set; then
10815  echo $ECHO_N "(cached) $ECHO_C" >&6
10816else
10817  if test -z "$LD"; then
10818  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10819  for ac_dir in $PATH; do
10820    IFS="$lt_save_ifs"
10821    test -z "$ac_dir" && ac_dir=.
10822    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10823      lt_cv_path_LD="$ac_dir/$ac_prog"
10824      # Check to see if the program is GNU ld.  I'd rather use --version,
10825      # but apparently some GNU ld's only accept -v.
10826      # Break only if it was the GNU/non-GNU ld that we prefer.
10827      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10828      *GNU* | *'with BFD'*)
10829	test "$with_gnu_ld" != no && break
10830	;;
10831      *)
10832	test "$with_gnu_ld" != yes && break
10833	;;
10834      esac
10835    fi
10836  done
10837  IFS="$lt_save_ifs"
10838else
10839  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10840fi
10841fi
10842
10843LD="$lt_cv_path_LD"
10844if test -n "$LD"; then
10845  echo "$as_me:$LINENO: result: $LD" >&5
10846echo "${ECHO_T}$LD" >&6
10847else
10848  echo "$as_me:$LINENO: result: no" >&5
10849echo "${ECHO_T}no" >&6
10850fi
10851test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10852echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10853   { (exit 1); exit 1; }; }
10854echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10855echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10856if test "${lt_cv_prog_gnu_ld+set}" = set; then
10857  echo $ECHO_N "(cached) $ECHO_C" >&6
10858else
10859  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10860case `$LD -v 2>&1 </dev/null` in
10861*GNU* | *'with BFD'*)
10862  lt_cv_prog_gnu_ld=yes
10863  ;;
10864*)
10865  lt_cv_prog_gnu_ld=no
10866  ;;
10867esac
10868fi
10869echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10870echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10871with_gnu_ld=$lt_cv_prog_gnu_ld
10872
10873
10874
10875  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10876  # archiving commands below assume that GNU ld is being used.
10877  if test "$with_gnu_ld" = yes; then
10878    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10879    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'
10880
10881    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10882    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10883
10884    # If archive_cmds runs LD, not CC, wlarc should be empty
10885    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10886    #     investigate it a little bit more. (MM)
10887    wlarc='${wl}'
10888
10889    # ancient GNU ld didn't support --whole-archive et. al.
10890    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10891	grep 'no-whole-archive' > /dev/null; then
10892      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10893    else
10894      whole_archive_flag_spec_CXX=
10895    fi
10896  else
10897    with_gnu_ld=no
10898    wlarc=
10899
10900    # A generic and very simple default shared library creation
10901    # command for GNU C++ for the case where it uses the native
10902    # linker, instead of GNU ld.  If possible, this setting should
10903    # overridden to take advantage of the native linker features on
10904    # the platform it is being used on.
10905    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10906  fi
10907
10908  # Commands to make compiler produce verbose output that lists
10909  # what "hidden" libraries, object files and flags are used when
10910  # linking a shared library.
10911  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10912
10913else
10914  GXX=no
10915  with_gnu_ld=no
10916  wlarc=
10917fi
10918
10919# PORTME: fill in a description of your system's C++ link characteristics
10920echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10921echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10922ld_shlibs_CXX=yes
10923case $host_os in
10924  aix3*)
10925    # FIXME: insert proper C++ library support
10926    ld_shlibs_CXX=no
10927    ;;
10928  aix4* | aix5*)
10929    if test "$host_cpu" = ia64; then
10930      # On IA64, the linker does run time linking by default, so we don't
10931      # have to do anything special.
10932      aix_use_runtimelinking=no
10933      exp_sym_flag='-Bexport'
10934      no_entry_flag=""
10935    else
10936      aix_use_runtimelinking=no
10937
10938      # Test if we are trying to use run time linking or normal
10939      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10940      # need to do runtime linking.
10941      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10942	for ld_flag in $LDFLAGS; do
10943	  case $ld_flag in
10944	  *-brtl*)
10945	    aix_use_runtimelinking=yes
10946	    break
10947	    ;;
10948	  esac
10949	done
10950      esac
10951
10952      exp_sym_flag='-bexport'
10953      no_entry_flag='-bnoentry'
10954    fi
10955
10956    # When large executables or shared objects are built, AIX ld can
10957    # have problems creating the table of contents.  If linking a library
10958    # or program results in "error TOC overflow" add -mminimal-toc to
10959    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10960    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10961
10962    archive_cmds_CXX=''
10963    hardcode_direct_CXX=yes
10964    hardcode_libdir_separator_CXX=':'
10965    link_all_deplibs_CXX=yes
10966
10967    if test "$GXX" = yes; then
10968      case $host_os in aix4.012|aix4.012.*)
10969      # We only want to do this on AIX 4.2 and lower, the check
10970      # below for broken collect2 doesn't work under 4.3+
10971	collect2name=`${CC} -print-prog-name=collect2`
10972	if test -f "$collect2name" && \
10973	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10974	then
10975	  # We have reworked collect2
10976	  hardcode_direct_CXX=yes
10977	else
10978	  # We have old collect2
10979	  hardcode_direct_CXX=unsupported
10980	  # It fails to find uninstalled libraries when the uninstalled
10981	  # path is not listed in the libpath.  Setting hardcode_minus_L
10982	  # to unsupported forces relinking
10983	  hardcode_minus_L_CXX=yes
10984	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10985	  hardcode_libdir_separator_CXX=
10986	fi
10987      esac
10988      shared_flag='-shared'
10989    else
10990      # not using gcc
10991      if test "$host_cpu" = ia64; then
10992	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10993	# chokes on -Wl,-G. The following line is correct:
10994	shared_flag='-G'
10995      else
10996	if test "$aix_use_runtimelinking" = yes; then
10997	  shared_flag='${wl}-G'
10998	else
10999	  shared_flag='${wl}-bM:SRE'
11000	fi
11001      fi
11002    fi
11003
11004    # It seems that -bexpall does not export symbols beginning with
11005    # underscore (_), so it is better to generate a list of symbols to export.
11006    always_export_symbols_CXX=yes
11007    if test "$aix_use_runtimelinking" = yes; then
11008      # Warning - without using the other runtime loading flags (-brtl),
11009      # -berok will link without error, but may produce a broken library.
11010      allow_undefined_flag_CXX='-berok'
11011      # Determine the default libpath from the value encoded in an empty executable.
11012      cat >conftest.$ac_ext <<_ACEOF
11013/* confdefs.h.  */
11014_ACEOF
11015cat confdefs.h >>conftest.$ac_ext
11016cat >>conftest.$ac_ext <<_ACEOF
11017/* end confdefs.h.  */
11018
11019int
11020main ()
11021{
11022
11023  ;
11024  return 0;
11025}
11026_ACEOF
11027rm -f conftest.$ac_objext conftest$ac_exeext
11028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11029  (eval $ac_link) 2>conftest.er1
11030  ac_status=$?
11031  grep -v '^ *+' conftest.er1 >conftest.err
11032  rm -f conftest.er1
11033  cat conftest.err >&5
11034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035  (exit $ac_status); } &&
11036	 { ac_try='test -z "$ac_cxx_werror_flag"
11037			 || test ! -s conftest.err'
11038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039  (eval $ac_try) 2>&5
11040  ac_status=$?
11041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042  (exit $ac_status); }; } &&
11043	 { ac_try='test -s conftest$ac_exeext'
11044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045  (eval $ac_try) 2>&5
11046  ac_status=$?
11047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048  (exit $ac_status); }; }; then
11049
11050aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11051}'`
11052# Check for a 64-bit object if we didn't find anything.
11053if 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; }
11054}'`; fi
11055else
11056  echo "$as_me: failed program was:" >&5
11057sed 's/^/| /' conftest.$ac_ext >&5
11058
11059fi
11060rm -f conftest.err conftest.$ac_objext \
11061      conftest$ac_exeext conftest.$ac_ext
11062if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11063
11064      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11065
11066      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"
11067     else
11068      if test "$host_cpu" = ia64; then
11069	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11070	allow_undefined_flag_CXX="-z nodefs"
11071	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"
11072      else
11073	# Determine the default libpath from the value encoded in an empty executable.
11074	cat >conftest.$ac_ext <<_ACEOF
11075/* confdefs.h.  */
11076_ACEOF
11077cat confdefs.h >>conftest.$ac_ext
11078cat >>conftest.$ac_ext <<_ACEOF
11079/* end confdefs.h.  */
11080
11081int
11082main ()
11083{
11084
11085  ;
11086  return 0;
11087}
11088_ACEOF
11089rm -f conftest.$ac_objext conftest$ac_exeext
11090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11091  (eval $ac_link) 2>conftest.er1
11092  ac_status=$?
11093  grep -v '^ *+' conftest.er1 >conftest.err
11094  rm -f conftest.er1
11095  cat conftest.err >&5
11096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097  (exit $ac_status); } &&
11098	 { ac_try='test -z "$ac_cxx_werror_flag"
11099			 || test ! -s conftest.err'
11100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101  (eval $ac_try) 2>&5
11102  ac_status=$?
11103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104  (exit $ac_status); }; } &&
11105	 { ac_try='test -s conftest$ac_exeext'
11106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107  (eval $ac_try) 2>&5
11108  ac_status=$?
11109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110  (exit $ac_status); }; }; then
11111
11112aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11113}'`
11114# Check for a 64-bit object if we didn't find anything.
11115if 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; }
11116}'`; fi
11117else
11118  echo "$as_me: failed program was:" >&5
11119sed 's/^/| /' conftest.$ac_ext >&5
11120
11121fi
11122rm -f conftest.err conftest.$ac_objext \
11123      conftest$ac_exeext conftest.$ac_ext
11124if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11125
11126	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11127	# Warning - without using the other run time loading flags,
11128	# -berok will link without error, but may produce a broken library.
11129	no_undefined_flag_CXX=' ${wl}-bernotok'
11130	allow_undefined_flag_CXX=' ${wl}-berok'
11131	# -bexpall does not export symbols beginning with underscore (_)
11132	always_export_symbols_CXX=yes
11133	# Exported symbols can be pulled into shared objects from archives
11134	whole_archive_flag_spec_CXX=' '
11135	archive_cmds_need_lc_CXX=yes
11136	# This is similar to how AIX traditionally builds it's shared libraries.
11137	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'
11138      fi
11139    fi
11140    ;;
11141  chorus*)
11142    case $cc_basename in
11143      *)
11144	# FIXME: insert proper C++ library support
11145	ld_shlibs_CXX=no
11146	;;
11147    esac
11148    ;;
11149
11150
11151  cygwin* | mingw* | pw32*)
11152    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11153    # as there is no search path for DLLs.
11154    hardcode_libdir_flag_spec_CXX='-L$libdir'
11155    allow_undefined_flag_CXX=unsupported
11156    always_export_symbols_CXX=no
11157    enable_shared_with_static_runtimes_CXX=yes
11158
11159    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11160      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'
11161      # If the export-symbols file already is a .def file (1st line
11162      # is EXPORTS), use it as is; otherwise, prepend...
11163      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11164	cp $export_symbols $output_objdir/$soname.def;
11165      else
11166	echo EXPORTS > $output_objdir/$soname.def;
11167	cat $export_symbols >> $output_objdir/$soname.def;
11168      fi~
11169      $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'
11170    else
11171      ld_shlibs_CXX=no
11172    fi
11173  ;;
11174      darwin* | rhapsody*)
11175        case "$host_os" in
11176        rhapsody* | darwin1.[012])
11177         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11178         ;;
11179       *) # Darwin 1.3 on
11180         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11181           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11182         else
11183           case ${MACOSX_DEPLOYMENT_TARGET} in
11184             10.[012])
11185               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11186               ;;
11187             10.*)
11188               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11189               ;;
11190           esac
11191         fi
11192         ;;
11193        esac
11194      archive_cmds_need_lc_CXX=no
11195      hardcode_direct_CXX=no
11196      hardcode_automatic_CXX=yes
11197      hardcode_shlibpath_var_CXX=unsupported
11198      whole_archive_flag_spec_CXX=''
11199      link_all_deplibs_CXX=yes
11200
11201    if test "$GXX" = yes ; then
11202      lt_int_apple_cc_single_mod=no
11203      output_verbose_link_cmd='echo'
11204      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11205       lt_int_apple_cc_single_mod=yes
11206      fi
11207      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11208       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11209      else
11210          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'
11211        fi
11212        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11213        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11214          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11215            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}'
11216          else
11217            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}'
11218          fi
11219            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}'
11220      else
11221      case "$cc_basename" in
11222        xlc*)
11223         output_verbose_link_cmd='echo'
11224          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'
11225          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11226          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11227          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}'
11228          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}'
11229          ;;
11230       *)
11231         ld_shlibs_CXX=no
11232          ;;
11233      esac
11234      fi
11235        ;;
11236
11237  dgux*)
11238    case $cc_basename in
11239      ec++)
11240	# FIXME: insert proper C++ library support
11241	ld_shlibs_CXX=no
11242	;;
11243      ghcx)
11244	# Green Hills C++ Compiler
11245	# FIXME: insert proper C++ library support
11246	ld_shlibs_CXX=no
11247	;;
11248      *)
11249	# FIXME: insert proper C++ library support
11250	ld_shlibs_CXX=no
11251	;;
11252    esac
11253    ;;
11254  freebsd12*)
11255    # C++ shared libraries reported to be fairly broken before switch to ELF
11256    ld_shlibs_CXX=no
11257    ;;
11258  freebsd-elf*)
11259    archive_cmds_need_lc_CXX=no
11260    ;;
11261  freebsd* | kfreebsd*-gnu)
11262    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11263    # conventions
11264    ld_shlibs_CXX=yes
11265    ;;
11266  gnu*)
11267    ;;
11268  hpux9*)
11269    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11270    hardcode_libdir_separator_CXX=:
11271    export_dynamic_flag_spec_CXX='${wl}-E'
11272    hardcode_direct_CXX=yes
11273    hardcode_minus_L_CXX=yes # Not in the search PATH,
11274				# but as the default
11275				# location of the library.
11276
11277    case $cc_basename in
11278    CC)
11279      # FIXME: insert proper C++ library support
11280      ld_shlibs_CXX=no
11281      ;;
11282    aCC)
11283      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'
11284      # Commands to make compiler produce verbose output that lists
11285      # what "hidden" libraries, object files and flags are used when
11286      # linking a shared library.
11287      #
11288      # There doesn't appear to be a way to prevent this compiler from
11289      # explicitly linking system object files so we need to strip them
11290      # from the output so that they don't get included in the library
11291      # dependencies.
11292      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'
11293      ;;
11294    *)
11295      if test "$GXX" = yes; then
11296        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'
11297      else
11298        # FIXME: insert proper C++ library support
11299        ld_shlibs_CXX=no
11300      fi
11301      ;;
11302    esac
11303    ;;
11304  hpux10*|hpux11*)
11305    if test $with_gnu_ld = no; then
11306      case "$host_cpu" in
11307      hppa*64*)
11308	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11309	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11310	hardcode_libdir_separator_CXX=:
11311        ;;
11312      ia64*)
11313	hardcode_libdir_flag_spec_CXX='-L$libdir'
11314        ;;
11315      *)
11316	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11317	hardcode_libdir_separator_CXX=:
11318	export_dynamic_flag_spec_CXX='${wl}-E'
11319        ;;
11320      esac
11321    fi
11322    case "$host_cpu" in
11323    hppa*64*)
11324      hardcode_direct_CXX=no
11325      hardcode_shlibpath_var_CXX=no
11326      ;;
11327    ia64*)
11328      hardcode_direct_CXX=no
11329      hardcode_shlibpath_var_CXX=no
11330      hardcode_minus_L_CXX=yes # Not in the search PATH,
11331					      # but as the default
11332					      # location of the library.
11333      ;;
11334    *)
11335      hardcode_direct_CXX=yes
11336      hardcode_minus_L_CXX=yes # Not in the search PATH,
11337					      # but as the default
11338					      # location of the library.
11339      ;;
11340    esac
11341
11342    case $cc_basename in
11343      CC)
11344	# FIXME: insert proper C++ library support
11345	ld_shlibs_CXX=no
11346	;;
11347      aCC)
11348	case "$host_cpu" in
11349	hppa*64*|ia64*)
11350	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11351	  ;;
11352	*)
11353	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11354	  ;;
11355	esac
11356	# Commands to make compiler produce verbose output that lists
11357	# what "hidden" libraries, object files and flags are used when
11358	# linking a shared library.
11359	#
11360	# There doesn't appear to be a way to prevent this compiler from
11361	# explicitly linking system object files so we need to strip them
11362	# from the output so that they don't get included in the library
11363	# dependencies.
11364	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'
11365	;;
11366      *)
11367	if test "$GXX" = yes; then
11368	  if test $with_gnu_ld = no; then
11369	    case "$host_cpu" in
11370	    ia64*|hppa*64*)
11371	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11372	      ;;
11373	    *)
11374	      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'
11375	      ;;
11376	    esac
11377	  fi
11378	else
11379	  # FIXME: insert proper C++ library support
11380	  ld_shlibs_CXX=no
11381	fi
11382	;;
11383    esac
11384    ;;
11385  irix5* | irix6*)
11386    case $cc_basename in
11387      CC)
11388	# SGI C++
11389	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'
11390
11391	# Archives containing C++ object files must be created using
11392	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11393	# necessary to make sure instantiated templates are included
11394	# in the archive.
11395	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11396	;;
11397      *)
11398	if test "$GXX" = yes; then
11399	  if test "$with_gnu_ld" = no; then
11400	    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'
11401	  else
11402	    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'
11403	  fi
11404	fi
11405	link_all_deplibs_CXX=yes
11406	;;
11407    esac
11408    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11409    hardcode_libdir_separator_CXX=:
11410    ;;
11411  linux*)
11412    case $cc_basename in
11413      KCC)
11414	# Kuck and Associates, Inc. (KAI) C++ Compiler
11415
11416	# KCC will only create a shared library if the output file
11417	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11418	# to its proper name (with version) after linking.
11419	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'
11420	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'
11421	# Commands to make compiler produce verbose output that lists
11422	# what "hidden" libraries, object files and flags are used when
11423	# linking a shared library.
11424	#
11425	# There doesn't appear to be a way to prevent this compiler from
11426	# explicitly linking system object files so we need to strip them
11427	# from the output so that they don't get included in the library
11428	# dependencies.
11429	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'
11430
11431	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11432	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11433
11434	# Archives containing C++ object files must be created using
11435	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11436	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11437	;;
11438      icpc)
11439	# Intel C++
11440	with_gnu_ld=yes
11441	# version 8.0 and above of icpc choke on multiply defined symbols
11442	# if we add $predep_objects and $postdep_objects, however 7.1 and
11443	# earlier do not add the objects themselves.
11444	case `$CC -V 2>&1` in
11445	*"Version 7."*)
11446  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11447  	  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'
11448	  ;;
11449	*)  # Version 8.0 or newer
11450  	  archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11451  	archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11452	  ;;
11453	esac
11454	archive_cmds_need_lc_CXX=no
11455	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11456	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11457	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11458	;;
11459      cxx)
11460	# Compaq C++
11461	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11462	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'
11463
11464	runpath_var=LD_RUN_PATH
11465	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11466	hardcode_libdir_separator_CXX=:
11467
11468	# Commands to make compiler produce verbose output that lists
11469	# what "hidden" libraries, object files and flags are used when
11470	# linking a shared library.
11471	#
11472	# There doesn't appear to be a way to prevent this compiler from
11473	# explicitly linking system object files so we need to strip them
11474	# from the output so that they don't get included in the library
11475	# dependencies.
11476	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'
11477	;;
11478    esac
11479    ;;
11480  lynxos*)
11481    # FIXME: insert proper C++ library support
11482    ld_shlibs_CXX=no
11483    ;;
11484  m88k*)
11485    # FIXME: insert proper C++ library support
11486    ld_shlibs_CXX=no
11487    ;;
11488  mvs*)
11489    case $cc_basename in
11490      cxx)
11491	# FIXME: insert proper C++ library support
11492	ld_shlibs_CXX=no
11493	;;
11494      *)
11495	# FIXME: insert proper C++ library support
11496	ld_shlibs_CXX=no
11497	;;
11498    esac
11499    ;;
11500  netbsd*)
11501    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11502      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11503      wlarc=
11504      hardcode_libdir_flag_spec_CXX='-R$libdir'
11505      hardcode_direct_CXX=yes
11506      hardcode_shlibpath_var_CXX=no
11507    fi
11508    # Workaround some broken pre-1.5 toolchains
11509    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11510    ;;
11511  openbsd2*)
11512    # C++ shared libraries are fairly broken
11513    ld_shlibs_CXX=no
11514    ;;
11515  openbsd*)
11516    hardcode_direct_CXX=yes
11517    hardcode_shlibpath_var_CXX=no
11518    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11519    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11520    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11521      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11522      export_dynamic_flag_spec_CXX='${wl}-E'
11523      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11524    fi
11525    output_verbose_link_cmd='echo'
11526    ;;
11527  osf3*)
11528    case $cc_basename in
11529      KCC)
11530	# Kuck and Associates, Inc. (KAI) C++ Compiler
11531
11532	# KCC will only create a shared library if the output file
11533	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11534	# to its proper name (with version) after linking.
11535	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'
11536
11537	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11538	hardcode_libdir_separator_CXX=:
11539
11540	# Archives containing C++ object files must be created using
11541	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11542	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11543
11544	;;
11545      RCC)
11546	# Rational C++ 2.4.1
11547	# FIXME: insert proper C++ library support
11548	ld_shlibs_CXX=no
11549	;;
11550      cxx)
11551	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11552	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'
11553
11554	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11555	hardcode_libdir_separator_CXX=:
11556
11557	# Commands to make compiler produce verbose output that lists
11558	# what "hidden" libraries, object files and flags are used when
11559	# linking a shared library.
11560	#
11561	# There doesn't appear to be a way to prevent this compiler from
11562	# explicitly linking system object files so we need to strip them
11563	# from the output so that they don't get included in the library
11564	# dependencies.
11565	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'
11566	;;
11567      *)
11568	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11569	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11570	  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'
11571
11572	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11573	  hardcode_libdir_separator_CXX=:
11574
11575	  # Commands to make compiler produce verbose output that lists
11576	  # what "hidden" libraries, object files and flags are used when
11577	  # linking a shared library.
11578	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11579
11580	else
11581	  # FIXME: insert proper C++ library support
11582	  ld_shlibs_CXX=no
11583	fi
11584	;;
11585    esac
11586    ;;
11587  osf4* | osf5*)
11588    case $cc_basename in
11589      KCC)
11590	# Kuck and Associates, Inc. (KAI) C++ Compiler
11591
11592	# KCC will only create a shared library if the output file
11593	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11594	# to its proper name (with version) after linking.
11595	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'
11596
11597	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11598	hardcode_libdir_separator_CXX=:
11599
11600	# Archives containing C++ object files must be created using
11601	# the KAI C++ compiler.
11602	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11603	;;
11604      RCC)
11605	# Rational C++ 2.4.1
11606	# FIXME: insert proper C++ library support
11607	ld_shlibs_CXX=no
11608	;;
11609      cxx)
11610	allow_undefined_flag_CXX=' -expect_unresolved \*'
11611	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'
11612	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11613	  echo "-hidden">> $lib.exp~
11614	  $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~
11615	  $rm $lib.exp'
11616
11617	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11618	hardcode_libdir_separator_CXX=:
11619
11620	# Commands to make compiler produce verbose output that lists
11621	# what "hidden" libraries, object files and flags are used when
11622	# linking a shared library.
11623	#
11624	# There doesn't appear to be a way to prevent this compiler from
11625	# explicitly linking system object files so we need to strip them
11626	# from the output so that they don't get included in the library
11627	# dependencies.
11628	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'
11629	;;
11630      *)
11631	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11632	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11633	 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'
11634
11635	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11636	  hardcode_libdir_separator_CXX=:
11637
11638	  # Commands to make compiler produce verbose output that lists
11639	  # what "hidden" libraries, object files and flags are used when
11640	  # linking a shared library.
11641	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11642
11643	else
11644	  # FIXME: insert proper C++ library support
11645	  ld_shlibs_CXX=no
11646	fi
11647	;;
11648    esac
11649    ;;
11650  psos*)
11651    # FIXME: insert proper C++ library support
11652    ld_shlibs_CXX=no
11653    ;;
11654  sco*)
11655    archive_cmds_need_lc_CXX=no
11656    case $cc_basename in
11657      CC)
11658	# FIXME: insert proper C++ library support
11659	ld_shlibs_CXX=no
11660	;;
11661      *)
11662	# FIXME: insert proper C++ library support
11663	ld_shlibs_CXX=no
11664	;;
11665    esac
11666    ;;
11667  sunos4*)
11668    case $cc_basename in
11669      CC)
11670	# Sun C++ 4.x
11671	# FIXME: insert proper C++ library support
11672	ld_shlibs_CXX=no
11673	;;
11674      lcc)
11675	# Lucid
11676	# FIXME: insert proper C++ library support
11677	ld_shlibs_CXX=no
11678	;;
11679      *)
11680	# FIXME: insert proper C++ library support
11681	ld_shlibs_CXX=no
11682	;;
11683    esac
11684    ;;
11685  solaris*)
11686    case $cc_basename in
11687      CC)
11688	# Sun C++ 4.2, 5.x and Centerline C++
11689	no_undefined_flag_CXX=' -zdefs'
11690	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11691	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11692	$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'
11693
11694	hardcode_libdir_flag_spec_CXX='-R$libdir'
11695	hardcode_shlibpath_var_CXX=no
11696	case $host_os in
11697	  solaris2.0-5 | solaris2.0-5.*) ;;
11698	  *)
11699	    # The C++ compiler is used as linker so we must use $wl
11700	    # flag to pass the commands to the underlying system
11701	    # linker.
11702	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11703	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11704	    ;;
11705	esac
11706	link_all_deplibs_CXX=yes
11707
11708	# Commands to make compiler produce verbose output that lists
11709	# what "hidden" libraries, object files and flags are used when
11710	# linking a shared library.
11711	#
11712	# There doesn't appear to be a way to prevent this compiler from
11713	# explicitly linking system object files so we need to strip them
11714	# from the output so that they don't get included in the library
11715	# dependencies.
11716	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'
11717
11718	# Archives containing C++ object files must be created using
11719	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11720	# necessary to make sure instantiated templates are included
11721	# in the archive.
11722	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11723	;;
11724      gcx)
11725	# Green Hills C++ Compiler
11726	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11727
11728	# The C++ compiler must be used to create the archive.
11729	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11730	;;
11731      *)
11732	# GNU C++ compiler with Solaris linker
11733	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11734	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11735	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11736	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11737	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11738		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11739
11740	    # Commands to make compiler produce verbose output that lists
11741	    # what "hidden" libraries, object files and flags are used when
11742	    # linking a shared library.
11743	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11744	  else
11745	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11746	    # platform.
11747	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11748	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11749		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11750
11751	    # Commands to make compiler produce verbose output that lists
11752	    # what "hidden" libraries, object files and flags are used when
11753	    # linking a shared library.
11754	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11755	  fi
11756
11757	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11758	fi
11759	;;
11760    esac
11761    ;;
11762  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11763    archive_cmds_need_lc_CXX=no
11764    ;;
11765  tandem*)
11766    case $cc_basename in
11767      NCC)
11768	# NonStop-UX NCC 3.20
11769	# FIXME: insert proper C++ library support
11770	ld_shlibs_CXX=no
11771	;;
11772      *)
11773	# FIXME: insert proper C++ library support
11774	ld_shlibs_CXX=no
11775	;;
11776    esac
11777    ;;
11778  vxworks*)
11779    # FIXME: insert proper C++ library support
11780    ld_shlibs_CXX=no
11781    ;;
11782  *)
11783    # FIXME: insert proper C++ library support
11784    ld_shlibs_CXX=no
11785    ;;
11786esac
11787echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11788echo "${ECHO_T}$ld_shlibs_CXX" >&6
11789test "$ld_shlibs_CXX" = no && can_build_shared=no
11790
11791GCC_CXX="$GXX"
11792LD_CXX="$LD"
11793
11794## CAVEAT EMPTOR:
11795## There is no encapsulation within the following macros, do not change
11796## the running order or otherwise move them around unless you know exactly
11797## what you are doing...
11798
11799cat > conftest.$ac_ext <<EOF
11800class Foo
11801{
11802public:
11803  Foo (void) { a = 0; }
11804private:
11805  int a;
11806};
11807EOF
11808
11809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11810  (eval $ac_compile) 2>&5
11811  ac_status=$?
11812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813  (exit $ac_status); }; then
11814  # Parse the compiler output and extract the necessary
11815  # objects, libraries and library flags.
11816
11817  # Sentinel used to keep track of whether or not we are before
11818  # the conftest object file.
11819  pre_test_object_deps_done=no
11820
11821  # The `*' in the case matches for architectures that use `case' in
11822  # $output_verbose_cmd can trigger glob expansion during the loop
11823  # eval without this substitution.
11824  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11825
11826  for p in `eval $output_verbose_link_cmd`; do
11827    case $p in
11828
11829    -L* | -R* | -l*)
11830       # Some compilers place space between "-{L,R}" and the path.
11831       # Remove the space.
11832       if test $p = "-L" \
11833	  || test $p = "-R"; then
11834	 prev=$p
11835	 continue
11836       else
11837	 prev=
11838       fi
11839
11840       if test "$pre_test_object_deps_done" = no; then
11841	 case $p in
11842	 -L* | -R*)
11843	   # Internal compiler library paths should come after those
11844	   # provided the user.  The postdeps already come after the
11845	   # user supplied libs so there is no need to process them.
11846	   if test -z "$compiler_lib_search_path_CXX"; then
11847	     compiler_lib_search_path_CXX="${prev}${p}"
11848	   else
11849	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11850	   fi
11851	   ;;
11852	 # The "-l" case would never come before the object being
11853	 # linked, so don't bother handling this case.
11854	 esac
11855       else
11856	 if test -z "$postdeps_CXX"; then
11857	   postdeps_CXX="${prev}${p}"
11858	 else
11859	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11860	 fi
11861       fi
11862       ;;
11863
11864    *.$objext)
11865       # This assumes that the test object file only shows up
11866       # once in the compiler output.
11867       if test "$p" = "conftest.$objext"; then
11868	 pre_test_object_deps_done=yes
11869	 continue
11870       fi
11871
11872       if test "$pre_test_object_deps_done" = no; then
11873	 if test -z "$predep_objects_CXX"; then
11874	   predep_objects_CXX="$p"
11875	 else
11876	   predep_objects_CXX="$predep_objects_CXX $p"
11877	 fi
11878       else
11879	 if test -z "$postdep_objects_CXX"; then
11880	   postdep_objects_CXX="$p"
11881	 else
11882	   postdep_objects_CXX="$postdep_objects_CXX $p"
11883	 fi
11884       fi
11885       ;;
11886
11887    *) ;; # Ignore the rest.
11888
11889    esac
11890  done
11891
11892  # Clean up.
11893  rm -f a.out a.exe
11894else
11895  echo "libtool.m4: error: problem compiling CXX test program"
11896fi
11897
11898$rm -f confest.$objext
11899
11900case " $postdeps_CXX " in
11901*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11902esac
11903
11904lt_prog_compiler_wl_CXX=
11905lt_prog_compiler_pic_CXX=
11906lt_prog_compiler_static_CXX=
11907
11908echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11909echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11910
11911  # C++ specific cases for pic, static, wl, etc.
11912  if test "$GXX" = yes; then
11913    lt_prog_compiler_wl_CXX='-Wl,'
11914    lt_prog_compiler_static_CXX='-static'
11915
11916    case $host_os in
11917    aix*)
11918      # All AIX code is PIC.
11919      if test "$host_cpu" = ia64; then
11920	# AIX 5 now supports IA64 processor
11921	lt_prog_compiler_static_CXX='-Bstatic'
11922      fi
11923      ;;
11924    amigaos*)
11925      # FIXME: we need at least 68020 code to build shared libraries, but
11926      # adding the `-m68020' flag to GCC prevents building anything better,
11927      # like `-m68040'.
11928      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11929      ;;
11930    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11931      # PIC is the default for these OSes.
11932      ;;
11933    mingw* | os2* | pw32*)
11934      # This hack is so that the source file can tell whether it is being
11935      # built for inclusion in a dll (and should export symbols for example).
11936      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11937      ;;
11938    darwin* | rhapsody*)
11939      # PIC is the default on this platform
11940      # Common symbols not allowed in MH_DYLIB files
11941      lt_prog_compiler_pic_CXX='-fno-common'
11942      ;;
11943    *djgpp*)
11944      # DJGPP does not support shared libraries at all
11945      lt_prog_compiler_pic_CXX=
11946      ;;
11947    sysv4*MP*)
11948      if test -d /usr/nec; then
11949	lt_prog_compiler_pic_CXX=-Kconform_pic
11950      fi
11951      ;;
11952    hpux*)
11953      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11954      # not for PA HP-UX.
11955      case "$host_cpu" in
11956      hppa*64*|ia64*)
11957	;;
11958      *)
11959	lt_prog_compiler_pic_CXX='-fPIC'
11960	;;
11961      esac
11962      ;;
11963    *)
11964      lt_prog_compiler_pic_CXX='-fPIC'
11965      ;;
11966    esac
11967  else
11968    case $host_os in
11969      aix4* | aix5*)
11970	# All AIX code is PIC.
11971	if test "$host_cpu" = ia64; then
11972	  # AIX 5 now supports IA64 processor
11973	  lt_prog_compiler_static_CXX='-Bstatic'
11974	else
11975	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11976	fi
11977	;;
11978      chorus*)
11979	case $cc_basename in
11980	cxch68)
11981	  # Green Hills C++ Compiler
11982	  # _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"
11983	  ;;
11984	esac
11985	;;
11986       darwin*)
11987         # PIC is the default on this platform
11988         # Common symbols not allowed in MH_DYLIB files
11989         case "$cc_basename" in
11990           xlc*)
11991           lt_prog_compiler_pic_CXX='-qnocommon'
11992           lt_prog_compiler_wl_CXX='-Wl,'
11993           ;;
11994         esac
11995       ;;
11996      dgux*)
11997	case $cc_basename in
11998	  ec++)
11999	    lt_prog_compiler_pic_CXX='-KPIC'
12000	    ;;
12001	  ghcx)
12002	    # Green Hills C++ Compiler
12003	    lt_prog_compiler_pic_CXX='-pic'
12004	    ;;
12005	  *)
12006	    ;;
12007	esac
12008	;;
12009      freebsd* | kfreebsd*-gnu)
12010	# FreeBSD uses GNU C++
12011	;;
12012      hpux9* | hpux10* | hpux11*)
12013	case $cc_basename in
12014	  CC)
12015	    lt_prog_compiler_wl_CXX='-Wl,'
12016	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12017	    if test "$host_cpu" != ia64; then
12018	      lt_prog_compiler_pic_CXX='+Z'
12019	    fi
12020	    ;;
12021	  aCC)
12022	    lt_prog_compiler_wl_CXX='-Wl,'
12023	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12024	    case "$host_cpu" in
12025	    hppa*64*|ia64*)
12026	      # +Z the default
12027	      ;;
12028	    *)
12029	      lt_prog_compiler_pic_CXX='+Z'
12030	      ;;
12031	    esac
12032	    ;;
12033	  *)
12034	    ;;
12035	esac
12036	;;
12037      irix5* | irix6* | nonstopux*)
12038	case $cc_basename in
12039	  CC)
12040	    lt_prog_compiler_wl_CXX='-Wl,'
12041	    lt_prog_compiler_static_CXX='-non_shared'
12042	    # CC pic flag -KPIC is the default.
12043	    ;;
12044	  *)
12045	    ;;
12046	esac
12047	;;
12048      linux*)
12049	case $cc_basename in
12050	  KCC)
12051	    # KAI C++ Compiler
12052	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12053	    lt_prog_compiler_pic_CXX='-fPIC'
12054	    ;;
12055	  icpc)
12056	    # Intel C++
12057	    lt_prog_compiler_wl_CXX='-Wl,'
12058	    lt_prog_compiler_pic_CXX='-KPIC'
12059	    lt_prog_compiler_static_CXX='-static'
12060	    ;;
12061	  cxx)
12062	    # Compaq C++
12063	    # Make sure the PIC flag is empty.  It appears that all Alpha
12064	    # Linux and Compaq Tru64 Unix objects are PIC.
12065	    lt_prog_compiler_pic_CXX=
12066	    lt_prog_compiler_static_CXX='-non_shared'
12067	    ;;
12068	  *)
12069	    ;;
12070	esac
12071	;;
12072      lynxos*)
12073	;;
12074      m88k*)
12075	;;
12076      mvs*)
12077	case $cc_basename in
12078	  cxx)
12079	    lt_prog_compiler_pic_CXX='-W c,exportall'
12080	    ;;
12081	  *)
12082	    ;;
12083	esac
12084	;;
12085      netbsd*)
12086	;;
12087      osf3* | osf4* | osf5*)
12088	case $cc_basename in
12089	  KCC)
12090	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12091	    ;;
12092	  RCC)
12093	    # Rational C++ 2.4.1
12094	    lt_prog_compiler_pic_CXX='-pic'
12095	    ;;
12096	  cxx)
12097	    # Digital/Compaq C++
12098	    lt_prog_compiler_wl_CXX='-Wl,'
12099	    # Make sure the PIC flag is empty.  It appears that all Alpha
12100	    # Linux and Compaq Tru64 Unix objects are PIC.
12101	    lt_prog_compiler_pic_CXX=
12102	    lt_prog_compiler_static_CXX='-non_shared'
12103	    ;;
12104	  *)
12105	    ;;
12106	esac
12107	;;
12108      psos*)
12109	;;
12110      sco*)
12111	case $cc_basename in
12112	  CC)
12113	    lt_prog_compiler_pic_CXX='-fPIC'
12114	    ;;
12115	  *)
12116	    ;;
12117	esac
12118	;;
12119      solaris*)
12120	case $cc_basename in
12121	  CC)
12122	    # Sun C++ 4.2, 5.x and Centerline C++
12123	    lt_prog_compiler_pic_CXX='-KPIC'
12124	    lt_prog_compiler_static_CXX='-Bstatic'
12125	    lt_prog_compiler_wl_CXX='-Qoption ld '
12126	    ;;
12127	  gcx)
12128	    # Green Hills C++ Compiler
12129	    lt_prog_compiler_pic_CXX='-PIC'
12130	    ;;
12131	  *)
12132	    ;;
12133	esac
12134	;;
12135      sunos4*)
12136	case $cc_basename in
12137	  CC)
12138	    # Sun C++ 4.x
12139	    lt_prog_compiler_pic_CXX='-pic'
12140	    lt_prog_compiler_static_CXX='-Bstatic'
12141	    ;;
12142	  lcc)
12143	    # Lucid
12144	    lt_prog_compiler_pic_CXX='-pic'
12145	    ;;
12146	  *)
12147	    ;;
12148	esac
12149	;;
12150      tandem*)
12151	case $cc_basename in
12152	  NCC)
12153	    # NonStop-UX NCC 3.20
12154	    lt_prog_compiler_pic_CXX='-KPIC'
12155	    ;;
12156	  *)
12157	    ;;
12158	esac
12159	;;
12160      unixware*)
12161	;;
12162      vxworks*)
12163	;;
12164      *)
12165	lt_prog_compiler_can_build_shared_CXX=no
12166	;;
12167    esac
12168  fi
12169
12170echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12171echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12172
12173#
12174# Check to make sure the PIC flag actually works.
12175#
12176if test -n "$lt_prog_compiler_pic_CXX"; then
12177
12178echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12179echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12180if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12181  echo $ECHO_N "(cached) $ECHO_C" >&6
12182else
12183  lt_prog_compiler_pic_works_CXX=no
12184  ac_outfile=conftest.$ac_objext
12185   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12186   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12187   # Insert the option either (1) after the last *FLAGS variable, or
12188   # (2) before a word containing "conftest.", or (3) at the end.
12189   # Note that $ac_compile itself does not contain backslashes and begins
12190   # with a dollar sign (not a hyphen), so the echo should work correctly.
12191   # The option is referenced via a variable to avoid confusing sed.
12192   lt_compile=`echo "$ac_compile" | $SED \
12193   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12194   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12195   -e 's:$: $lt_compiler_flag:'`
12196   (eval echo "\"\$as_me:12196: $lt_compile\"" >&5)
12197   (eval "$lt_compile" 2>conftest.err)
12198   ac_status=$?
12199   cat conftest.err >&5
12200   echo "$as_me:12200: \$? = $ac_status" >&5
12201   if (exit $ac_status) && test -s "$ac_outfile"; then
12202     # The compiler can only warn and ignore the option if not recognized
12203     # So say no if there are warnings
12204     if test ! -s conftest.err; then
12205       lt_prog_compiler_pic_works_CXX=yes
12206     fi
12207   fi
12208   $rm conftest*
12209
12210fi
12211echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12212echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12213
12214if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12215    case $lt_prog_compiler_pic_CXX in
12216     "" | " "*) ;;
12217     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12218     esac
12219else
12220    lt_prog_compiler_pic_CXX=
12221     lt_prog_compiler_can_build_shared_CXX=no
12222fi
12223
12224fi
12225case "$host_os" in
12226  # For platforms which do not support PIC, -DPIC is meaningless:
12227  *djgpp*)
12228    lt_prog_compiler_pic_CXX=
12229    ;;
12230  *)
12231    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12232    ;;
12233esac
12234
12235echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12236echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12237if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12238  echo $ECHO_N "(cached) $ECHO_C" >&6
12239else
12240  lt_cv_prog_compiler_c_o_CXX=no
12241   $rm -r conftest 2>/dev/null
12242   mkdir conftest
12243   cd conftest
12244   mkdir out
12245   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12246
12247   lt_compiler_flag="-o out/conftest2.$ac_objext"
12248   # Insert the option either (1) after the last *FLAGS variable, or
12249   # (2) before a word containing "conftest.", or (3) at the end.
12250   # Note that $ac_compile itself does not contain backslashes and begins
12251   # with a dollar sign (not a hyphen), so the echo should work correctly.
12252   lt_compile=`echo "$ac_compile" | $SED \
12253   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12254   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12255   -e 's:$: $lt_compiler_flag:'`
12256   (eval echo "\"\$as_me:12256: $lt_compile\"" >&5)
12257   (eval "$lt_compile" 2>out/conftest.err)
12258   ac_status=$?
12259   cat out/conftest.err >&5
12260   echo "$as_me:12260: \$? = $ac_status" >&5
12261   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12262   then
12263     # The compiler can only warn and ignore the option if not recognized
12264     # So say no if there are warnings
12265     if test ! -s out/conftest.err; then
12266       lt_cv_prog_compiler_c_o_CXX=yes
12267     fi
12268   fi
12269   chmod u+w .
12270   $rm conftest*
12271   # SGI C++ compiler will create directory out/ii_files/ for
12272   # template instantiation
12273   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12274   $rm out/* && rmdir out
12275   cd ..
12276   rmdir conftest
12277   $rm conftest*
12278
12279fi
12280echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12281echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12282
12283
12284hard_links="nottested"
12285if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12286  # do not overwrite the value of need_locks provided by the user
12287  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12288echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12289  hard_links=yes
12290  $rm conftest*
12291  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12292  touch conftest.a
12293  ln conftest.a conftest.b 2>&5 || hard_links=no
12294  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12295  echo "$as_me:$LINENO: result: $hard_links" >&5
12296echo "${ECHO_T}$hard_links" >&6
12297  if test "$hard_links" = no; then
12298    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12299echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12300    need_locks=warn
12301  fi
12302else
12303  need_locks=no
12304fi
12305
12306echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12307echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12308
12309  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12310  case $host_os in
12311  aix4* | aix5*)
12312    # If we're using GNU nm, then we don't want the "-C" option.
12313    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12314    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12315      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'
12316    else
12317      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'
12318    fi
12319    ;;
12320  pw32*)
12321    export_symbols_cmds_CXX="$ltdll_cmds"
12322  ;;
12323  cygwin* | mingw*)
12324    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12325  ;;
12326  *)
12327    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12328  ;;
12329  esac
12330
12331echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12332echo "${ECHO_T}$ld_shlibs_CXX" >&6
12333test "$ld_shlibs_CXX" = no && can_build_shared=no
12334
12335variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12336if test "$GCC" = yes; then
12337  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12338fi
12339
12340#
12341# Do we need to explicitly link libc?
12342#
12343case "x$archive_cmds_need_lc_CXX" in
12344x|xyes)
12345  # Assume -lc should be added
12346  archive_cmds_need_lc_CXX=yes
12347
12348  if test "$enable_shared" = yes && test "$GCC" = yes; then
12349    case $archive_cmds_CXX in
12350    *'~'*)
12351      # FIXME: we may have to deal with multi-command sequences.
12352      ;;
12353    '$CC '*)
12354      # Test whether the compiler implicitly links with -lc since on some
12355      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12356      # to ld, don't add -lc before -lgcc.
12357      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12358echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12359      $rm conftest*
12360      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12361
12362      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12363  (eval $ac_compile) 2>&5
12364  ac_status=$?
12365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366  (exit $ac_status); } 2>conftest.err; then
12367        soname=conftest
12368        lib=conftest
12369        libobjs=conftest.$ac_objext
12370        deplibs=
12371        wl=$lt_prog_compiler_wl_CXX
12372        compiler_flags=-v
12373        linker_flags=-v
12374        verstring=
12375        output_objdir=.
12376        libname=conftest
12377        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12378        allow_undefined_flag_CXX=
12379        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12380  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12381  ac_status=$?
12382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383  (exit $ac_status); }
12384        then
12385	  archive_cmds_need_lc_CXX=no
12386        else
12387	  archive_cmds_need_lc_CXX=yes
12388        fi
12389        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12390      else
12391        cat conftest.err 1>&5
12392      fi
12393      $rm conftest*
12394      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12395echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12396      ;;
12397    esac
12398  fi
12399  ;;
12400esac
12401
12402echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12403echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12404library_names_spec=
12405libname_spec='lib$name'
12406soname_spec=
12407shrext_cmds=".so"
12408postinstall_cmds=
12409postuninstall_cmds=
12410finish_cmds=
12411finish_eval=
12412shlibpath_var=
12413shlibpath_overrides_runpath=unknown
12414version_type=none
12415dynamic_linker="$host_os ld.so"
12416sys_lib_dlsearch_path_spec="/lib /usr/lib"
12417if test "$GCC" = yes; then
12418  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12419  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12420    # if the path contains ";" then we assume it to be the separator
12421    # otherwise default to the standard path separator (i.e. ":") - it is
12422    # assumed that no part of a normal pathname contains ";" but that should
12423    # okay in the real world where ";" in dirpaths is itself problematic.
12424    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12425  else
12426    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12427  fi
12428else
12429  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12430fi
12431need_lib_prefix=unknown
12432hardcode_into_libs=no
12433
12434# when you set need_version to no, make sure it does not cause -set_version
12435# flags to be left without arguments
12436need_version=unknown
12437
12438case $host_os in
12439aix3*)
12440  version_type=linux
12441  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12442  shlibpath_var=LIBPATH
12443
12444  # AIX 3 has no versioning support, so we append a major version to the name.
12445  soname_spec='${libname}${release}${shared_ext}$major'
12446  ;;
12447
12448aix4* | aix5*)
12449  version_type=linux
12450  need_lib_prefix=no
12451  need_version=no
12452  hardcode_into_libs=yes
12453  if test "$host_cpu" = ia64; then
12454    # AIX 5 supports IA64
12455    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12456    shlibpath_var=LD_LIBRARY_PATH
12457  else
12458    # With GCC up to 2.95.x, collect2 would create an import file
12459    # for dependence libraries.  The import file would start with
12460    # the line `#! .'.  This would cause the generated library to
12461    # depend on `.', always an invalid library.  This was fixed in
12462    # development snapshots of GCC prior to 3.0.
12463    case $host_os in
12464      aix4 | aix4.[01] | aix4.[01].*)
12465      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12466	   echo ' yes '
12467	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12468	:
12469      else
12470	can_build_shared=no
12471      fi
12472      ;;
12473    esac
12474    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12475    # soname into executable. Probably we can add versioning support to
12476    # collect2, so additional links can be useful in future.
12477    if test "$aix_use_runtimelinking" = yes; then
12478      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12479      # instead of lib<name>.a to let people know that these are not
12480      # typical AIX shared libraries.
12481      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12482    else
12483      # We preserve .a as extension for shared libraries through AIX4.2
12484      # and later when we are not doing run time linking.
12485      library_names_spec='${libname}${release}.a $libname.a'
12486      soname_spec='${libname}${release}${shared_ext}$major'
12487    fi
12488    shlibpath_var=LIBPATH
12489  fi
12490  ;;
12491
12492amigaos*)
12493  library_names_spec='$libname.ixlibrary $libname.a'
12494  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12495  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'
12496  ;;
12497
12498beos*)
12499  library_names_spec='${libname}${shared_ext}'
12500  dynamic_linker="$host_os ld.so"
12501  shlibpath_var=LIBRARY_PATH
12502  ;;
12503
12504bsdi[45]*)
12505  version_type=linux
12506  need_version=no
12507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12508  soname_spec='${libname}${release}${shared_ext}$major'
12509  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12510  shlibpath_var=LD_LIBRARY_PATH
12511  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12512  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12513  # the default ld.so.conf also contains /usr/contrib/lib and
12514  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12515  # libtool to hard-code these into programs
12516  ;;
12517
12518cygwin* | mingw* | pw32*)
12519  version_type=windows
12520  shrext_cmds=".dll"
12521  need_version=no
12522  need_lib_prefix=no
12523
12524  case $GCC,$host_os in
12525  yes,cygwin* | yes,mingw* | yes,pw32*)
12526    library_names_spec='$libname.dll.a'
12527    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12528    postinstall_cmds='base_file=`basename \${file}`~
12529      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12530      dldir=$destdir/`dirname \$dlpath`~
12531      test -d \$dldir || mkdir -p \$dldir~
12532      $install_prog $dir/$dlname \$dldir/$dlname~
12533      chmod a+x \$dldir/$dlname'
12534    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12535      dlpath=$dir/\$dldll~
12536       $rm \$dlpath'
12537    shlibpath_overrides_runpath=yes
12538
12539    case $host_os in
12540    cygwin*)
12541      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12542      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12543      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12544      ;;
12545    mingw*)
12546      # MinGW DLLs use traditional 'lib' prefix
12547      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12548      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12549      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12550        # It is most probably a Windows format PATH printed by
12551        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12552        # path with ; separators, and with drive letters. We can handle the
12553        # drive letters (cygwin fileutils understands them), so leave them,
12554        # especially as we might pass files found there to a mingw objdump,
12555        # which wouldn't understand a cygwinified path. Ahh.
12556        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12557      else
12558        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12559      fi
12560      ;;
12561    pw32*)
12562      # pw32 DLLs use 'pw' prefix rather than 'lib'
12563      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12564      ;;
12565    esac
12566    ;;
12567
12568  *)
12569    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12570    ;;
12571  esac
12572  dynamic_linker='Win32 ld.exe'
12573  # FIXME: first we should search . and the directory the executable is in
12574  shlibpath_var=PATH
12575  ;;
12576
12577darwin* | rhapsody*)
12578  dynamic_linker="$host_os dyld"
12579  version_type=darwin
12580  need_lib_prefix=no
12581  need_version=no
12582  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12583  soname_spec='${libname}${release}${major}$shared_ext'
12584  shlibpath_overrides_runpath=yes
12585  shlibpath_var=DYLD_LIBRARY_PATH
12586  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12587  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12588  if test "$GCC" = yes; then
12589    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"`
12590  else
12591    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12592  fi
12593  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12594  ;;
12595
12596dgux*)
12597  version_type=linux
12598  need_lib_prefix=no
12599  need_version=no
12600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12601  soname_spec='${libname}${release}${shared_ext}$major'
12602  shlibpath_var=LD_LIBRARY_PATH
12603  ;;
12604
12605freebsd1*)
12606  dynamic_linker=no
12607  ;;
12608
12609kfreebsd*-gnu)
12610  version_type=linux
12611  need_lib_prefix=no
12612  need_version=no
12613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12614  soname_spec='${libname}${release}${shared_ext}$major'
12615  shlibpath_var=LD_LIBRARY_PATH
12616  shlibpath_overrides_runpath=no
12617  hardcode_into_libs=yes
12618  dynamic_linker='GNU ld.so'
12619  ;;
12620
12621freebsd*)
12622  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12623  version_type=freebsd-$objformat
12624  case $version_type in
12625    freebsd-elf*)
12626      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12627      need_version=no
12628      need_lib_prefix=no
12629      ;;
12630    freebsd-*)
12631      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12632      need_version=yes
12633      ;;
12634  esac
12635  shlibpath_var=LD_LIBRARY_PATH
12636  case $host_os in
12637  freebsd2*)
12638    shlibpath_overrides_runpath=yes
12639    ;;
12640  freebsd3.01* | freebsdelf3.01*)
12641    shlibpath_overrides_runpath=yes
12642    hardcode_into_libs=yes
12643    ;;
12644  *) # from 3.2 on
12645    shlibpath_overrides_runpath=no
12646    hardcode_into_libs=yes
12647    ;;
12648  esac
12649  ;;
12650
12651gnu*)
12652  version_type=linux
12653  need_lib_prefix=no
12654  need_version=no
12655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12656  soname_spec='${libname}${release}${shared_ext}$major'
12657  shlibpath_var=LD_LIBRARY_PATH
12658  hardcode_into_libs=yes
12659  ;;
12660
12661hpux9* | hpux10* | hpux11*)
12662  # Give a soname corresponding to the major version so that dld.sl refuses to
12663  # link against other versions.
12664  version_type=sunos
12665  need_lib_prefix=no
12666  need_version=no
12667  case "$host_cpu" in
12668  ia64*)
12669    shrext_cmds='.so'
12670    hardcode_into_libs=yes
12671    dynamic_linker="$host_os dld.so"
12672    shlibpath_var=LD_LIBRARY_PATH
12673    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12674    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12675    soname_spec='${libname}${release}${shared_ext}$major'
12676    if test "X$HPUX_IA64_MODE" = X32; then
12677      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12678    else
12679      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12680    fi
12681    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12682    ;;
12683   hppa*64*)
12684     shrext_cmds='.sl'
12685     hardcode_into_libs=yes
12686     dynamic_linker="$host_os dld.sl"
12687     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12688     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12689     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12690     soname_spec='${libname}${release}${shared_ext}$major'
12691     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12692     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12693     ;;
12694   *)
12695    shrext_cmds='.sl'
12696    dynamic_linker="$host_os dld.sl"
12697    shlibpath_var=SHLIB_PATH
12698    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12699    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12700    soname_spec='${libname}${release}${shared_ext}$major'
12701    ;;
12702  esac
12703  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12704  postinstall_cmds='chmod 555 $lib'
12705  ;;
12706
12707irix5* | irix6* | nonstopux*)
12708  case $host_os in
12709    nonstopux*) version_type=nonstopux ;;
12710    *)
12711	if test "$lt_cv_prog_gnu_ld" = yes; then
12712		version_type=linux
12713	else
12714		version_type=irix
12715	fi ;;
12716  esac
12717  need_lib_prefix=no
12718  need_version=no
12719  soname_spec='${libname}${release}${shared_ext}$major'
12720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12721  case $host_os in
12722  irix5* | nonstopux*)
12723    libsuff= shlibsuff=
12724    ;;
12725  *)
12726    case $LD in # libtool.m4 will add one of these switches to LD
12727    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12728      libsuff= shlibsuff= libmagic=32-bit;;
12729    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12730      libsuff=32 shlibsuff=N32 libmagic=N32;;
12731    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12732      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12733    *) libsuff= shlibsuff= libmagic=never-match;;
12734    esac
12735    ;;
12736  esac
12737  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12738  shlibpath_overrides_runpath=no
12739  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12740  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12741  hardcode_into_libs=yes
12742  ;;
12743
12744# No shared lib support for Linux oldld, aout, or coff.
12745linux*oldld* | linux*aout* | linux*coff*)
12746  dynamic_linker=no
12747  ;;
12748
12749# This must be Linux ELF.
12750linux*)
12751  version_type=linux
12752  need_lib_prefix=no
12753  need_version=no
12754  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12755  soname_spec='${libname}${release}${shared_ext}$major'
12756  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12757  shlibpath_var=LD_LIBRARY_PATH
12758  shlibpath_overrides_runpath=no
12759  # This implies no fast_install, which is unacceptable.
12760  # Some rework will be needed to allow for fast_install
12761  # before this can be enabled.
12762  hardcode_into_libs=yes
12763
12764  # Append ld.so.conf contents to the search path
12765  if test -f /etc/ld.so.conf; then
12766    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12767    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12768  fi
12769
12770  # We used to test for /lib/ld.so.1 and disable shared libraries on
12771  # powerpc, because MkLinux only supported shared libraries with the
12772  # GNU dynamic linker.  Since this was broken with cross compilers,
12773  # most powerpc-linux boxes support dynamic linking these days and
12774  # people can always --disable-shared, the test was removed, and we
12775  # assume the GNU/Linux dynamic linker is in use.
12776  dynamic_linker='GNU/Linux ld.so'
12777  ;;
12778
12779knetbsd*-gnu)
12780  version_type=linux
12781  need_lib_prefix=no
12782  need_version=no
12783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12784  soname_spec='${libname}${release}${shared_ext}$major'
12785  shlibpath_var=LD_LIBRARY_PATH
12786  shlibpath_overrides_runpath=no
12787  hardcode_into_libs=yes
12788  dynamic_linker='GNU ld.so'
12789  ;;
12790
12791netbsd*)
12792  version_type=sunos
12793  need_lib_prefix=no
12794  need_version=no
12795  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12796    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12797    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12798    dynamic_linker='NetBSD (a.out) ld.so'
12799  else
12800    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12801    soname_spec='${libname}${release}${shared_ext}$major'
12802    dynamic_linker='NetBSD ld.elf_so'
12803  fi
12804  shlibpath_var=LD_LIBRARY_PATH
12805  shlibpath_overrides_runpath=yes
12806  hardcode_into_libs=yes
12807  ;;
12808
12809newsos6)
12810  version_type=linux
12811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12812  shlibpath_var=LD_LIBRARY_PATH
12813  shlibpath_overrides_runpath=yes
12814  ;;
12815
12816nto-qnx*)
12817  version_type=linux
12818  need_lib_prefix=no
12819  need_version=no
12820  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12821  soname_spec='${libname}${release}${shared_ext}$major'
12822  shlibpath_var=LD_LIBRARY_PATH
12823  shlibpath_overrides_runpath=yes
12824  ;;
12825
12826openbsd*)
12827  version_type=sunos
12828  need_lib_prefix=no
12829  need_version=no
12830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12831  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12832  shlibpath_var=LD_LIBRARY_PATH
12833  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12834    case $host_os in
12835      openbsd2.[89] | openbsd2.[89].*)
12836	shlibpath_overrides_runpath=no
12837	;;
12838      *)
12839	shlibpath_overrides_runpath=yes
12840	;;
12841      esac
12842  else
12843    shlibpath_overrides_runpath=yes
12844  fi
12845  ;;
12846
12847os2*)
12848  libname_spec='$name'
12849  shrext_cmds=".dll"
12850  need_lib_prefix=no
12851  library_names_spec='$libname${shared_ext} $libname.a'
12852  dynamic_linker='OS/2 ld.exe'
12853  shlibpath_var=LIBPATH
12854  ;;
12855
12856osf3* | osf4* | osf5*)
12857  version_type=osf
12858  need_lib_prefix=no
12859  need_version=no
12860  soname_spec='${libname}${release}${shared_ext}$major'
12861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12862  shlibpath_var=LD_LIBRARY_PATH
12863  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12864  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12865  ;;
12866
12867sco3.2v5*)
12868  version_type=osf
12869  soname_spec='${libname}${release}${shared_ext}$major'
12870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12871  shlibpath_var=LD_LIBRARY_PATH
12872  ;;
12873
12874solaris*)
12875  version_type=linux
12876  need_lib_prefix=no
12877  need_version=no
12878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12879  soname_spec='${libname}${release}${shared_ext}$major'
12880  shlibpath_var=LD_LIBRARY_PATH
12881  shlibpath_overrides_runpath=yes
12882  hardcode_into_libs=yes
12883  # ldd complains unless libraries are executable
12884  postinstall_cmds='chmod +x $lib'
12885  ;;
12886
12887sunos4*)
12888  version_type=sunos
12889  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12890  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12891  shlibpath_var=LD_LIBRARY_PATH
12892  shlibpath_overrides_runpath=yes
12893  if test "$with_gnu_ld" = yes; then
12894    need_lib_prefix=no
12895  fi
12896  need_version=yes
12897  ;;
12898
12899sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12900  version_type=linux
12901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12902  soname_spec='${libname}${release}${shared_ext}$major'
12903  shlibpath_var=LD_LIBRARY_PATH
12904  case $host_vendor in
12905    sni)
12906      shlibpath_overrides_runpath=no
12907      need_lib_prefix=no
12908      export_dynamic_flag_spec='${wl}-Blargedynsym'
12909      runpath_var=LD_RUN_PATH
12910      ;;
12911    siemens)
12912      need_lib_prefix=no
12913      ;;
12914    motorola)
12915      need_lib_prefix=no
12916      need_version=no
12917      shlibpath_overrides_runpath=no
12918      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12919      ;;
12920  esac
12921  ;;
12922
12923sysv4*MP*)
12924  if test -d /usr/nec ;then
12925    version_type=linux
12926    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12927    soname_spec='$libname${shared_ext}.$major'
12928    shlibpath_var=LD_LIBRARY_PATH
12929  fi
12930  ;;
12931
12932uts4*)
12933  version_type=linux
12934  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12935  soname_spec='${libname}${release}${shared_ext}$major'
12936  shlibpath_var=LD_LIBRARY_PATH
12937  ;;
12938
12939*)
12940  dynamic_linker=no
12941  ;;
12942esac
12943echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12944echo "${ECHO_T}$dynamic_linker" >&6
12945test "$dynamic_linker" = no && can_build_shared=no
12946
12947echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12948echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12949hardcode_action_CXX=
12950if test -n "$hardcode_libdir_flag_spec_CXX" || \
12951   test -n "$runpath_var_CXX" || \
12952   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12953
12954  # We can hardcode non-existant directories.
12955  if test "$hardcode_direct_CXX" != no &&
12956     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12957     # have to relink, otherwise we might link with an installed library
12958     # when we should be linking with a yet-to-be-installed one
12959     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12960     test "$hardcode_minus_L_CXX" != no; then
12961    # Linking always hardcodes the temporary library directory.
12962    hardcode_action_CXX=relink
12963  else
12964    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12965    hardcode_action_CXX=immediate
12966  fi
12967else
12968  # We cannot hardcode anything, or else we can only hardcode existing
12969  # directories.
12970  hardcode_action_CXX=unsupported
12971fi
12972echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12973echo "${ECHO_T}$hardcode_action_CXX" >&6
12974
12975if test "$hardcode_action_CXX" = relink; then
12976  # Fast installation is not supported
12977  enable_fast_install=no
12978elif test "$shlibpath_overrides_runpath" = yes ||
12979     test "$enable_shared" = no; then
12980  # Fast installation is not necessary
12981  enable_fast_install=needless
12982fi
12983
12984striplib=
12985old_striplib=
12986echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12987echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12988if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12989  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12990  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12991  echo "$as_me:$LINENO: result: yes" >&5
12992echo "${ECHO_T}yes" >&6
12993else
12994# FIXME - insert some real tests, host_os isn't really good enough
12995  case $host_os in
12996   darwin*)
12997       if test -n "$STRIP" ; then
12998         striplib="$STRIP -x"
12999         echo "$as_me:$LINENO: result: yes" >&5
13000echo "${ECHO_T}yes" >&6
13001       else
13002  echo "$as_me:$LINENO: result: no" >&5
13003echo "${ECHO_T}no" >&6
13004fi
13005       ;;
13006   *)
13007  echo "$as_me:$LINENO: result: no" >&5
13008echo "${ECHO_T}no" >&6
13009    ;;
13010  esac
13011fi
13012
13013if test "x$enable_dlopen" != xyes; then
13014  enable_dlopen=unknown
13015  enable_dlopen_self=unknown
13016  enable_dlopen_self_static=unknown
13017else
13018  lt_cv_dlopen=no
13019  lt_cv_dlopen_libs=
13020
13021  case $host_os in
13022  beos*)
13023    lt_cv_dlopen="load_add_on"
13024    lt_cv_dlopen_libs=
13025    lt_cv_dlopen_self=yes
13026    ;;
13027
13028  mingw* | pw32*)
13029    lt_cv_dlopen="LoadLibrary"
13030    lt_cv_dlopen_libs=
13031   ;;
13032
13033  cygwin*)
13034    lt_cv_dlopen="dlopen"
13035    lt_cv_dlopen_libs=
13036   ;;
13037
13038  darwin*)
13039  # if libdl is installed we need to link against it
13040    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13041echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13042if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13043  echo $ECHO_N "(cached) $ECHO_C" >&6
13044else
13045  ac_check_lib_save_LIBS=$LIBS
13046LIBS="-ldl  $LIBS"
13047cat >conftest.$ac_ext <<_ACEOF
13048/* confdefs.h.  */
13049_ACEOF
13050cat confdefs.h >>conftest.$ac_ext
13051cat >>conftest.$ac_ext <<_ACEOF
13052/* end confdefs.h.  */
13053
13054/* Override any gcc2 internal prototype to avoid an error.  */
13055#ifdef __cplusplus
13056extern "C"
13057#endif
13058/* We use char because int might match the return type of a gcc2
13059   builtin and then its argument prototype would still apply.  */
13060char dlopen ();
13061int
13062main ()
13063{
13064dlopen ();
13065  ;
13066  return 0;
13067}
13068_ACEOF
13069rm -f conftest.$ac_objext conftest$ac_exeext
13070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13071  (eval $ac_link) 2>conftest.er1
13072  ac_status=$?
13073  grep -v '^ *+' conftest.er1 >conftest.err
13074  rm -f conftest.er1
13075  cat conftest.err >&5
13076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077  (exit $ac_status); } &&
13078	 { ac_try='test -z "$ac_cxx_werror_flag"
13079			 || test ! -s conftest.err'
13080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081  (eval $ac_try) 2>&5
13082  ac_status=$?
13083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084  (exit $ac_status); }; } &&
13085	 { ac_try='test -s conftest$ac_exeext'
13086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087  (eval $ac_try) 2>&5
13088  ac_status=$?
13089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090  (exit $ac_status); }; }; then
13091  ac_cv_lib_dl_dlopen=yes
13092else
13093  echo "$as_me: failed program was:" >&5
13094sed 's/^/| /' conftest.$ac_ext >&5
13095
13096ac_cv_lib_dl_dlopen=no
13097fi
13098rm -f conftest.err conftest.$ac_objext \
13099      conftest$ac_exeext conftest.$ac_ext
13100LIBS=$ac_check_lib_save_LIBS
13101fi
13102echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13103echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13104if test $ac_cv_lib_dl_dlopen = yes; then
13105  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13106else
13107
13108    lt_cv_dlopen="dyld"
13109    lt_cv_dlopen_libs=
13110    lt_cv_dlopen_self=yes
13111
13112fi
13113
13114   ;;
13115
13116  *)
13117    echo "$as_me:$LINENO: checking for shl_load" >&5
13118echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13119if test "${ac_cv_func_shl_load+set}" = set; then
13120  echo $ECHO_N "(cached) $ECHO_C" >&6
13121else
13122  cat >conftest.$ac_ext <<_ACEOF
13123/* confdefs.h.  */
13124_ACEOF
13125cat confdefs.h >>conftest.$ac_ext
13126cat >>conftest.$ac_ext <<_ACEOF
13127/* end confdefs.h.  */
13128/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13129   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13130#define shl_load innocuous_shl_load
13131
13132/* System header to define __stub macros and hopefully few prototypes,
13133    which can conflict with char shl_load (); below.
13134    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13135    <limits.h> exists even on freestanding compilers.  */
13136
13137#ifdef __STDC__
13138# include <limits.h>
13139#else
13140# include <assert.h>
13141#endif
13142
13143#undef shl_load
13144
13145/* Override any gcc2 internal prototype to avoid an error.  */
13146#ifdef __cplusplus
13147extern "C"
13148{
13149#endif
13150/* We use char because int might match the return type of a gcc2
13151   builtin and then its argument prototype would still apply.  */
13152char shl_load ();
13153/* The GNU C library defines this for functions which it implements
13154    to always fail with ENOSYS.  Some functions are actually named
13155    something starting with __ and the normal name is an alias.  */
13156#if defined (__stub_shl_load) || defined (__stub___shl_load)
13157choke me
13158#else
13159char (*f) () = shl_load;
13160#endif
13161#ifdef __cplusplus
13162}
13163#endif
13164
13165int
13166main ()
13167{
13168return f != shl_load;
13169  ;
13170  return 0;
13171}
13172_ACEOF
13173rm -f conftest.$ac_objext conftest$ac_exeext
13174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13175  (eval $ac_link) 2>conftest.er1
13176  ac_status=$?
13177  grep -v '^ *+' conftest.er1 >conftest.err
13178  rm -f conftest.er1
13179  cat conftest.err >&5
13180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181  (exit $ac_status); } &&
13182	 { ac_try='test -z "$ac_cxx_werror_flag"
13183			 || test ! -s conftest.err'
13184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185  (eval $ac_try) 2>&5
13186  ac_status=$?
13187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188  (exit $ac_status); }; } &&
13189	 { ac_try='test -s conftest$ac_exeext'
13190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191  (eval $ac_try) 2>&5
13192  ac_status=$?
13193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194  (exit $ac_status); }; }; then
13195  ac_cv_func_shl_load=yes
13196else
13197  echo "$as_me: failed program was:" >&5
13198sed 's/^/| /' conftest.$ac_ext >&5
13199
13200ac_cv_func_shl_load=no
13201fi
13202rm -f conftest.err conftest.$ac_objext \
13203      conftest$ac_exeext conftest.$ac_ext
13204fi
13205echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13206echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13207if test $ac_cv_func_shl_load = yes; then
13208  lt_cv_dlopen="shl_load"
13209else
13210  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13211echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13212if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13213  echo $ECHO_N "(cached) $ECHO_C" >&6
13214else
13215  ac_check_lib_save_LIBS=$LIBS
13216LIBS="-ldld  $LIBS"
13217cat >conftest.$ac_ext <<_ACEOF
13218/* confdefs.h.  */
13219_ACEOF
13220cat confdefs.h >>conftest.$ac_ext
13221cat >>conftest.$ac_ext <<_ACEOF
13222/* end confdefs.h.  */
13223
13224/* Override any gcc2 internal prototype to avoid an error.  */
13225#ifdef __cplusplus
13226extern "C"
13227#endif
13228/* We use char because int might match the return type of a gcc2
13229   builtin and then its argument prototype would still apply.  */
13230char shl_load ();
13231int
13232main ()
13233{
13234shl_load ();
13235  ;
13236  return 0;
13237}
13238_ACEOF
13239rm -f conftest.$ac_objext conftest$ac_exeext
13240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13241  (eval $ac_link) 2>conftest.er1
13242  ac_status=$?
13243  grep -v '^ *+' conftest.er1 >conftest.err
13244  rm -f conftest.er1
13245  cat conftest.err >&5
13246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247  (exit $ac_status); } &&
13248	 { ac_try='test -z "$ac_cxx_werror_flag"
13249			 || test ! -s conftest.err'
13250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251  (eval $ac_try) 2>&5
13252  ac_status=$?
13253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254  (exit $ac_status); }; } &&
13255	 { ac_try='test -s conftest$ac_exeext'
13256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257  (eval $ac_try) 2>&5
13258  ac_status=$?
13259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260  (exit $ac_status); }; }; then
13261  ac_cv_lib_dld_shl_load=yes
13262else
13263  echo "$as_me: failed program was:" >&5
13264sed 's/^/| /' conftest.$ac_ext >&5
13265
13266ac_cv_lib_dld_shl_load=no
13267fi
13268rm -f conftest.err conftest.$ac_objext \
13269      conftest$ac_exeext conftest.$ac_ext
13270LIBS=$ac_check_lib_save_LIBS
13271fi
13272echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13273echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13274if test $ac_cv_lib_dld_shl_load = yes; then
13275  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13276else
13277  echo "$as_me:$LINENO: checking for dlopen" >&5
13278echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13279if test "${ac_cv_func_dlopen+set}" = set; then
13280  echo $ECHO_N "(cached) $ECHO_C" >&6
13281else
13282  cat >conftest.$ac_ext <<_ACEOF
13283/* confdefs.h.  */
13284_ACEOF
13285cat confdefs.h >>conftest.$ac_ext
13286cat >>conftest.$ac_ext <<_ACEOF
13287/* end confdefs.h.  */
13288/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13289   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13290#define dlopen innocuous_dlopen
13291
13292/* System header to define __stub macros and hopefully few prototypes,
13293    which can conflict with char dlopen (); below.
13294    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13295    <limits.h> exists even on freestanding compilers.  */
13296
13297#ifdef __STDC__
13298# include <limits.h>
13299#else
13300# include <assert.h>
13301#endif
13302
13303#undef dlopen
13304
13305/* Override any gcc2 internal prototype to avoid an error.  */
13306#ifdef __cplusplus
13307extern "C"
13308{
13309#endif
13310/* We use char because int might match the return type of a gcc2
13311   builtin and then its argument prototype would still apply.  */
13312char dlopen ();
13313/* The GNU C library defines this for functions which it implements
13314    to always fail with ENOSYS.  Some functions are actually named
13315    something starting with __ and the normal name is an alias.  */
13316#if defined (__stub_dlopen) || defined (__stub___dlopen)
13317choke me
13318#else
13319char (*f) () = dlopen;
13320#endif
13321#ifdef __cplusplus
13322}
13323#endif
13324
13325int
13326main ()
13327{
13328return f != dlopen;
13329  ;
13330  return 0;
13331}
13332_ACEOF
13333rm -f conftest.$ac_objext conftest$ac_exeext
13334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13335  (eval $ac_link) 2>conftest.er1
13336  ac_status=$?
13337  grep -v '^ *+' conftest.er1 >conftest.err
13338  rm -f conftest.er1
13339  cat conftest.err >&5
13340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341  (exit $ac_status); } &&
13342	 { ac_try='test -z "$ac_cxx_werror_flag"
13343			 || test ! -s conftest.err'
13344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13345  (eval $ac_try) 2>&5
13346  ac_status=$?
13347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348  (exit $ac_status); }; } &&
13349	 { ac_try='test -s conftest$ac_exeext'
13350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351  (eval $ac_try) 2>&5
13352  ac_status=$?
13353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354  (exit $ac_status); }; }; then
13355  ac_cv_func_dlopen=yes
13356else
13357  echo "$as_me: failed program was:" >&5
13358sed 's/^/| /' conftest.$ac_ext >&5
13359
13360ac_cv_func_dlopen=no
13361fi
13362rm -f conftest.err conftest.$ac_objext \
13363      conftest$ac_exeext conftest.$ac_ext
13364fi
13365echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13366echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13367if test $ac_cv_func_dlopen = yes; then
13368  lt_cv_dlopen="dlopen"
13369else
13370  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13371echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13372if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13373  echo $ECHO_N "(cached) $ECHO_C" >&6
13374else
13375  ac_check_lib_save_LIBS=$LIBS
13376LIBS="-ldl  $LIBS"
13377cat >conftest.$ac_ext <<_ACEOF
13378/* confdefs.h.  */
13379_ACEOF
13380cat confdefs.h >>conftest.$ac_ext
13381cat >>conftest.$ac_ext <<_ACEOF
13382/* end confdefs.h.  */
13383
13384/* Override any gcc2 internal prototype to avoid an error.  */
13385#ifdef __cplusplus
13386extern "C"
13387#endif
13388/* We use char because int might match the return type of a gcc2
13389   builtin and then its argument prototype would still apply.  */
13390char dlopen ();
13391int
13392main ()
13393{
13394dlopen ();
13395  ;
13396  return 0;
13397}
13398_ACEOF
13399rm -f conftest.$ac_objext conftest$ac_exeext
13400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13401  (eval $ac_link) 2>conftest.er1
13402  ac_status=$?
13403  grep -v '^ *+' conftest.er1 >conftest.err
13404  rm -f conftest.er1
13405  cat conftest.err >&5
13406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407  (exit $ac_status); } &&
13408	 { ac_try='test -z "$ac_cxx_werror_flag"
13409			 || test ! -s conftest.err'
13410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411  (eval $ac_try) 2>&5
13412  ac_status=$?
13413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414  (exit $ac_status); }; } &&
13415	 { ac_try='test -s conftest$ac_exeext'
13416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417  (eval $ac_try) 2>&5
13418  ac_status=$?
13419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420  (exit $ac_status); }; }; then
13421  ac_cv_lib_dl_dlopen=yes
13422else
13423  echo "$as_me: failed program was:" >&5
13424sed 's/^/| /' conftest.$ac_ext >&5
13425
13426ac_cv_lib_dl_dlopen=no
13427fi
13428rm -f conftest.err conftest.$ac_objext \
13429      conftest$ac_exeext conftest.$ac_ext
13430LIBS=$ac_check_lib_save_LIBS
13431fi
13432echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13433echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13434if test $ac_cv_lib_dl_dlopen = yes; then
13435  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13436else
13437  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13438echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13439if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13440  echo $ECHO_N "(cached) $ECHO_C" >&6
13441else
13442  ac_check_lib_save_LIBS=$LIBS
13443LIBS="-lsvld  $LIBS"
13444cat >conftest.$ac_ext <<_ACEOF
13445/* confdefs.h.  */
13446_ACEOF
13447cat confdefs.h >>conftest.$ac_ext
13448cat >>conftest.$ac_ext <<_ACEOF
13449/* end confdefs.h.  */
13450
13451/* Override any gcc2 internal prototype to avoid an error.  */
13452#ifdef __cplusplus
13453extern "C"
13454#endif
13455/* We use char because int might match the return type of a gcc2
13456   builtin and then its argument prototype would still apply.  */
13457char dlopen ();
13458int
13459main ()
13460{
13461dlopen ();
13462  ;
13463  return 0;
13464}
13465_ACEOF
13466rm -f conftest.$ac_objext conftest$ac_exeext
13467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13468  (eval $ac_link) 2>conftest.er1
13469  ac_status=$?
13470  grep -v '^ *+' conftest.er1 >conftest.err
13471  rm -f conftest.er1
13472  cat conftest.err >&5
13473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474  (exit $ac_status); } &&
13475	 { ac_try='test -z "$ac_cxx_werror_flag"
13476			 || test ! -s conftest.err'
13477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478  (eval $ac_try) 2>&5
13479  ac_status=$?
13480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481  (exit $ac_status); }; } &&
13482	 { ac_try='test -s conftest$ac_exeext'
13483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484  (eval $ac_try) 2>&5
13485  ac_status=$?
13486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487  (exit $ac_status); }; }; then
13488  ac_cv_lib_svld_dlopen=yes
13489else
13490  echo "$as_me: failed program was:" >&5
13491sed 's/^/| /' conftest.$ac_ext >&5
13492
13493ac_cv_lib_svld_dlopen=no
13494fi
13495rm -f conftest.err conftest.$ac_objext \
13496      conftest$ac_exeext conftest.$ac_ext
13497LIBS=$ac_check_lib_save_LIBS
13498fi
13499echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13500echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13501if test $ac_cv_lib_svld_dlopen = yes; then
13502  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13503else
13504  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13505echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13506if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13507  echo $ECHO_N "(cached) $ECHO_C" >&6
13508else
13509  ac_check_lib_save_LIBS=$LIBS
13510LIBS="-ldld  $LIBS"
13511cat >conftest.$ac_ext <<_ACEOF
13512/* confdefs.h.  */
13513_ACEOF
13514cat confdefs.h >>conftest.$ac_ext
13515cat >>conftest.$ac_ext <<_ACEOF
13516/* end confdefs.h.  */
13517
13518/* Override any gcc2 internal prototype to avoid an error.  */
13519#ifdef __cplusplus
13520extern "C"
13521#endif
13522/* We use char because int might match the return type of a gcc2
13523   builtin and then its argument prototype would still apply.  */
13524char dld_link ();
13525int
13526main ()
13527{
13528dld_link ();
13529  ;
13530  return 0;
13531}
13532_ACEOF
13533rm -f conftest.$ac_objext conftest$ac_exeext
13534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13535  (eval $ac_link) 2>conftest.er1
13536  ac_status=$?
13537  grep -v '^ *+' conftest.er1 >conftest.err
13538  rm -f conftest.er1
13539  cat conftest.err >&5
13540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541  (exit $ac_status); } &&
13542	 { ac_try='test -z "$ac_cxx_werror_flag"
13543			 || test ! -s conftest.err'
13544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545  (eval $ac_try) 2>&5
13546  ac_status=$?
13547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548  (exit $ac_status); }; } &&
13549	 { ac_try='test -s conftest$ac_exeext'
13550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551  (eval $ac_try) 2>&5
13552  ac_status=$?
13553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554  (exit $ac_status); }; }; then
13555  ac_cv_lib_dld_dld_link=yes
13556else
13557  echo "$as_me: failed program was:" >&5
13558sed 's/^/| /' conftest.$ac_ext >&5
13559
13560ac_cv_lib_dld_dld_link=no
13561fi
13562rm -f conftest.err conftest.$ac_objext \
13563      conftest$ac_exeext conftest.$ac_ext
13564LIBS=$ac_check_lib_save_LIBS
13565fi
13566echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13567echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13568if test $ac_cv_lib_dld_dld_link = yes; then
13569  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13570fi
13571
13572
13573fi
13574
13575
13576fi
13577
13578
13579fi
13580
13581
13582fi
13583
13584
13585fi
13586
13587    ;;
13588  esac
13589
13590  if test "x$lt_cv_dlopen" != xno; then
13591    enable_dlopen=yes
13592  else
13593    enable_dlopen=no
13594  fi
13595
13596  case $lt_cv_dlopen in
13597  dlopen)
13598    save_CPPFLAGS="$CPPFLAGS"
13599    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13600
13601    save_LDFLAGS="$LDFLAGS"
13602    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13603
13604    save_LIBS="$LIBS"
13605    LIBS="$lt_cv_dlopen_libs $LIBS"
13606
13607    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13608echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13609if test "${lt_cv_dlopen_self+set}" = set; then
13610  echo $ECHO_N "(cached) $ECHO_C" >&6
13611else
13612  	  if test "$cross_compiling" = yes; then :
13613  lt_cv_dlopen_self=cross
13614else
13615  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13616  lt_status=$lt_dlunknown
13617  cat > conftest.$ac_ext <<EOF
13618#line 13618 "configure"
13619#include "confdefs.h"
13620
13621#if HAVE_DLFCN_H
13622#include <dlfcn.h>
13623#endif
13624
13625#include <stdio.h>
13626
13627#ifdef RTLD_GLOBAL
13628#  define LT_DLGLOBAL		RTLD_GLOBAL
13629#else
13630#  ifdef DL_GLOBAL
13631#    define LT_DLGLOBAL		DL_GLOBAL
13632#  else
13633#    define LT_DLGLOBAL		0
13634#  endif
13635#endif
13636
13637/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13638   find out it does not work in some platform. */
13639#ifndef LT_DLLAZY_OR_NOW
13640#  ifdef RTLD_LAZY
13641#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13642#  else
13643#    ifdef DL_LAZY
13644#      define LT_DLLAZY_OR_NOW		DL_LAZY
13645#    else
13646#      ifdef RTLD_NOW
13647#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13648#      else
13649#        ifdef DL_NOW
13650#          define LT_DLLAZY_OR_NOW	DL_NOW
13651#        else
13652#          define LT_DLLAZY_OR_NOW	0
13653#        endif
13654#      endif
13655#    endif
13656#  endif
13657#endif
13658
13659#ifdef __cplusplus
13660extern "C" void exit (int);
13661#endif
13662
13663void fnord() { int i=42;}
13664int main ()
13665{
13666  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13667  int status = $lt_dlunknown;
13668
13669  if (self)
13670    {
13671      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13672      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13673      /* dlclose (self); */
13674    }
13675
13676    exit (status);
13677}
13678EOF
13679  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13680  (eval $ac_link) 2>&5
13681  ac_status=$?
13682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13684    (./conftest; exit; ) 2>/dev/null
13685    lt_status=$?
13686    case x$lt_status in
13687      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13688      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13689      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13690    esac
13691  else :
13692    # compilation failed
13693    lt_cv_dlopen_self=no
13694  fi
13695fi
13696rm -fr conftest*
13697
13698
13699fi
13700echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13701echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13702
13703    if test "x$lt_cv_dlopen_self" = xyes; then
13704      LDFLAGS="$LDFLAGS $link_static_flag"
13705      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13706echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13707if test "${lt_cv_dlopen_self_static+set}" = set; then
13708  echo $ECHO_N "(cached) $ECHO_C" >&6
13709else
13710  	  if test "$cross_compiling" = yes; then :
13711  lt_cv_dlopen_self_static=cross
13712else
13713  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13714  lt_status=$lt_dlunknown
13715  cat > conftest.$ac_ext <<EOF
13716#line 13716 "configure"
13717#include "confdefs.h"
13718
13719#if HAVE_DLFCN_H
13720#include <dlfcn.h>
13721#endif
13722
13723#include <stdio.h>
13724
13725#ifdef RTLD_GLOBAL
13726#  define LT_DLGLOBAL		RTLD_GLOBAL
13727#else
13728#  ifdef DL_GLOBAL
13729#    define LT_DLGLOBAL		DL_GLOBAL
13730#  else
13731#    define LT_DLGLOBAL		0
13732#  endif
13733#endif
13734
13735/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13736   find out it does not work in some platform. */
13737#ifndef LT_DLLAZY_OR_NOW
13738#  ifdef RTLD_LAZY
13739#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13740#  else
13741#    ifdef DL_LAZY
13742#      define LT_DLLAZY_OR_NOW		DL_LAZY
13743#    else
13744#      ifdef RTLD_NOW
13745#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13746#      else
13747#        ifdef DL_NOW
13748#          define LT_DLLAZY_OR_NOW	DL_NOW
13749#        else
13750#          define LT_DLLAZY_OR_NOW	0
13751#        endif
13752#      endif
13753#    endif
13754#  endif
13755#endif
13756
13757#ifdef __cplusplus
13758extern "C" void exit (int);
13759#endif
13760
13761void fnord() { int i=42;}
13762int main ()
13763{
13764  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13765  int status = $lt_dlunknown;
13766
13767  if (self)
13768    {
13769      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13770      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13771      /* dlclose (self); */
13772    }
13773
13774    exit (status);
13775}
13776EOF
13777  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13778  (eval $ac_link) 2>&5
13779  ac_status=$?
13780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13782    (./conftest; exit; ) 2>/dev/null
13783    lt_status=$?
13784    case x$lt_status in
13785      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13786      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13787      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13788    esac
13789  else :
13790    # compilation failed
13791    lt_cv_dlopen_self_static=no
13792  fi
13793fi
13794rm -fr conftest*
13795
13796
13797fi
13798echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13799echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13800    fi
13801
13802    CPPFLAGS="$save_CPPFLAGS"
13803    LDFLAGS="$save_LDFLAGS"
13804    LIBS="$save_LIBS"
13805    ;;
13806  esac
13807
13808  case $lt_cv_dlopen_self in
13809  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13810  *) enable_dlopen_self=unknown ;;
13811  esac
13812
13813  case $lt_cv_dlopen_self_static in
13814  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13815  *) enable_dlopen_self_static=unknown ;;
13816  esac
13817fi
13818
13819
13820# The else clause should only fire when bootstrapping the
13821# libtool distribution, otherwise you forgot to ship ltmain.sh
13822# with your package, and you will get complaints that there are
13823# no rules to generate ltmain.sh.
13824if test -f "$ltmain"; then
13825  # See if we are running on zsh, and set the options which allow our commands through
13826  # without removal of \ escapes.
13827  if test -n "${ZSH_VERSION+set}" ; then
13828    setopt NO_GLOB_SUBST
13829  fi
13830  # Now quote all the things that may contain metacharacters while being
13831  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13832  # variables and quote the copies for generation of the libtool script.
13833  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13834    SED SHELL STRIP \
13835    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13836    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13837    deplibs_check_method reload_flag reload_cmds need_locks \
13838    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13839    lt_cv_sys_global_symbol_to_c_name_address \
13840    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13841    old_postinstall_cmds old_postuninstall_cmds \
13842    compiler_CXX \
13843    CC_CXX \
13844    LD_CXX \
13845    lt_prog_compiler_wl_CXX \
13846    lt_prog_compiler_pic_CXX \
13847    lt_prog_compiler_static_CXX \
13848    lt_prog_compiler_no_builtin_flag_CXX \
13849    export_dynamic_flag_spec_CXX \
13850    thread_safe_flag_spec_CXX \
13851    whole_archive_flag_spec_CXX \
13852    enable_shared_with_static_runtimes_CXX \
13853    old_archive_cmds_CXX \
13854    old_archive_from_new_cmds_CXX \
13855    predep_objects_CXX \
13856    postdep_objects_CXX \
13857    predeps_CXX \
13858    postdeps_CXX \
13859    compiler_lib_search_path_CXX \
13860    archive_cmds_CXX \
13861    archive_expsym_cmds_CXX \
13862    postinstall_cmds_CXX \
13863    postuninstall_cmds_CXX \
13864    old_archive_from_expsyms_cmds_CXX \
13865    allow_undefined_flag_CXX \
13866    no_undefined_flag_CXX \
13867    export_symbols_cmds_CXX \
13868    hardcode_libdir_flag_spec_CXX \
13869    hardcode_libdir_flag_spec_ld_CXX \
13870    hardcode_libdir_separator_CXX \
13871    hardcode_automatic_CXX \
13872    module_cmds_CXX \
13873    module_expsym_cmds_CXX \
13874    lt_cv_prog_compiler_c_o_CXX \
13875    exclude_expsyms_CXX \
13876    include_expsyms_CXX; do
13877
13878    case $var in
13879    old_archive_cmds_CXX | \
13880    old_archive_from_new_cmds_CXX | \
13881    archive_cmds_CXX | \
13882    archive_expsym_cmds_CXX | \
13883    module_cmds_CXX | \
13884    module_expsym_cmds_CXX | \
13885    old_archive_from_expsyms_cmds_CXX | \
13886    export_symbols_cmds_CXX | \
13887    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13888    postinstall_cmds | postuninstall_cmds | \
13889    old_postinstall_cmds | old_postuninstall_cmds | \
13890    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13891      # Double-quote double-evaled strings.
13892      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13893      ;;
13894    *)
13895      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13896      ;;
13897    esac
13898  done
13899
13900  case $lt_echo in
13901  *'\$0 --fallback-echo"')
13902    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13903    ;;
13904  esac
13905
13906cfgfile="$ofile"
13907
13908  cat <<__EOF__ >> "$cfgfile"
13909# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13910
13911# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13912
13913# Shell to use when invoking shell scripts.
13914SHELL=$lt_SHELL
13915
13916# Whether or not to build shared libraries.
13917build_libtool_libs=$enable_shared
13918
13919# Whether or not to build static libraries.
13920build_old_libs=$enable_static
13921
13922# Whether or not to add -lc for building shared libraries.
13923build_libtool_need_lc=$archive_cmds_need_lc_CXX
13924
13925# Whether or not to disallow shared libs when runtime libs are static
13926allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13927
13928# Whether or not to optimize for fast installation.
13929fast_install=$enable_fast_install
13930
13931# The host system.
13932host_alias=$host_alias
13933host=$host
13934
13935# An echo program that does not interpret backslashes.
13936echo=$lt_echo
13937
13938# The archiver.
13939AR=$lt_AR
13940AR_FLAGS=$lt_AR_FLAGS
13941
13942# A C compiler.
13943LTCC=$lt_LTCC
13944
13945# A language-specific compiler.
13946CC=$lt_compiler_CXX
13947
13948# Is the compiler the GNU C compiler?
13949with_gcc=$GCC_CXX
13950
13951# An ERE matcher.
13952EGREP=$lt_EGREP
13953
13954# The linker used to build libraries.
13955LD=$lt_LD_CXX
13956
13957# Whether we need hard or soft links.
13958LN_S=$lt_LN_S
13959
13960# A BSD-compatible nm program.
13961NM=$lt_NM
13962
13963# A symbol stripping program
13964STRIP=$lt_STRIP
13965
13966# Used to examine libraries when file_magic_cmd begins "file"
13967MAGIC_CMD=$MAGIC_CMD
13968
13969# Used on cygwin: DLL creation program.
13970DLLTOOL="$DLLTOOL"
13971
13972# Used on cygwin: object dumper.
13973OBJDUMP="$OBJDUMP"
13974
13975# Used on cygwin: assembler.
13976AS="$AS"
13977
13978# The name of the directory that contains temporary libtool files.
13979objdir=$objdir
13980
13981# How to create reloadable object files.
13982reload_flag=$lt_reload_flag
13983reload_cmds=$lt_reload_cmds
13984
13985# How to pass a linker flag through the compiler.
13986wl=$lt_lt_prog_compiler_wl_CXX
13987
13988# Object file suffix (normally "o").
13989objext="$ac_objext"
13990
13991# Old archive suffix (normally "a").
13992libext="$libext"
13993
13994# Shared library suffix (normally ".so").
13995shrext_cmds='$shrext_cmds'
13996
13997# Executable file suffix (normally "").
13998exeext="$exeext"
13999
14000# Additional compiler flags for building library objects.
14001pic_flag=$lt_lt_prog_compiler_pic_CXX
14002pic_mode=$pic_mode
14003
14004# What is the maximum length of a command?
14005max_cmd_len=$lt_cv_sys_max_cmd_len
14006
14007# Does compiler simultaneously support -c and -o options?
14008compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14009
14010# Must we lock files when doing compilation ?
14011need_locks=$lt_need_locks
14012
14013# Do we need the lib prefix for modules?
14014need_lib_prefix=$need_lib_prefix
14015
14016# Do we need a version for libraries?
14017need_version=$need_version
14018
14019# Whether dlopen is supported.
14020dlopen_support=$enable_dlopen
14021
14022# Whether dlopen of programs is supported.
14023dlopen_self=$enable_dlopen_self
14024
14025# Whether dlopen of statically linked programs is supported.
14026dlopen_self_static=$enable_dlopen_self_static
14027
14028# Compiler flag to prevent dynamic linking.
14029link_static_flag=$lt_lt_prog_compiler_static_CXX
14030
14031# Compiler flag to turn off builtin functions.
14032no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14033
14034# Compiler flag to allow reflexive dlopens.
14035export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14036
14037# Compiler flag to generate shared objects directly from archives.
14038whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14039
14040# Compiler flag to generate thread-safe objects.
14041thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14042
14043# Library versioning type.
14044version_type=$version_type
14045
14046# Format of library name prefix.
14047libname_spec=$lt_libname_spec
14048
14049# List of archive names.  First name is the real one, the rest are links.
14050# The last name is the one that the linker finds with -lNAME.
14051library_names_spec=$lt_library_names_spec
14052
14053# The coded name of the library, if different from the real name.
14054soname_spec=$lt_soname_spec
14055
14056# Commands used to build and install an old-style archive.
14057RANLIB=$lt_RANLIB
14058old_archive_cmds=$lt_old_archive_cmds_CXX
14059old_postinstall_cmds=$lt_old_postinstall_cmds
14060old_postuninstall_cmds=$lt_old_postuninstall_cmds
14061
14062# Create an old-style archive from a shared archive.
14063old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14064
14065# Create a temporary old-style archive to link instead of a shared archive.
14066old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14067
14068# Commands used to build and install a shared archive.
14069archive_cmds=$lt_archive_cmds_CXX
14070archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14071postinstall_cmds=$lt_postinstall_cmds
14072postuninstall_cmds=$lt_postuninstall_cmds
14073
14074# Commands used to build a loadable module (assumed same as above if empty)
14075module_cmds=$lt_module_cmds_CXX
14076module_expsym_cmds=$lt_module_expsym_cmds_CXX
14077
14078# Commands to strip libraries.
14079old_striplib=$lt_old_striplib
14080striplib=$lt_striplib
14081
14082# Dependencies to place before the objects being linked to create a
14083# shared library.
14084predep_objects=$lt_predep_objects_CXX
14085
14086# Dependencies to place after the objects being linked to create a
14087# shared library.
14088postdep_objects=$lt_postdep_objects_CXX
14089
14090# Dependencies to place before the objects being linked to create a
14091# shared library.
14092predeps=$lt_predeps_CXX
14093
14094# Dependencies to place after the objects being linked to create a
14095# shared library.
14096postdeps=$lt_postdeps_CXX
14097
14098# The library search path used internally by the compiler when linking
14099# a shared library.
14100compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14101
14102# Method to check whether dependent libraries are shared objects.
14103deplibs_check_method=$lt_deplibs_check_method
14104
14105# Command to use when deplibs_check_method == file_magic.
14106file_magic_cmd=$lt_file_magic_cmd
14107
14108# Flag that allows shared libraries with undefined symbols to be built.
14109allow_undefined_flag=$lt_allow_undefined_flag_CXX
14110
14111# Flag that forces no undefined symbols.
14112no_undefined_flag=$lt_no_undefined_flag_CXX
14113
14114# Commands used to finish a libtool library installation in a directory.
14115finish_cmds=$lt_finish_cmds
14116
14117# Same as above, but a single script fragment to be evaled but not shown.
14118finish_eval=$lt_finish_eval
14119
14120# Take the output of nm and produce a listing of raw symbols and C names.
14121global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14122
14123# Transform the output of nm in a proper C declaration
14124global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14125
14126# Transform the output of nm in a C name address pair
14127global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14128
14129# This is the shared library runtime path variable.
14130runpath_var=$runpath_var
14131
14132# This is the shared library path variable.
14133shlibpath_var=$shlibpath_var
14134
14135# Is shlibpath searched before the hard-coded library search path?
14136shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14137
14138# How to hardcode a shared library path into an executable.
14139hardcode_action=$hardcode_action_CXX
14140
14141# Whether we should hardcode library paths into libraries.
14142hardcode_into_libs=$hardcode_into_libs
14143
14144# Flag to hardcode \$libdir into a binary during linking.
14145# This must work even if \$libdir does not exist.
14146hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14147
14148# If ld is used when linking, flag to hardcode \$libdir into
14149# a binary during linking. This must work even if \$libdir does
14150# not exist.
14151hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14152
14153# Whether we need a single -rpath flag with a separated argument.
14154hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14155
14156# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14157# resulting binary.
14158hardcode_direct=$hardcode_direct_CXX
14159
14160# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14161# resulting binary.
14162hardcode_minus_L=$hardcode_minus_L_CXX
14163
14164# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14165# the resulting binary.
14166hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14167
14168# Set to yes if building a shared library automatically hardcodes DIR into the library
14169# and all subsequent libraries and executables linked against it.
14170hardcode_automatic=$hardcode_automatic_CXX
14171
14172# Variables whose values should be saved in libtool wrapper scripts and
14173# restored at relink time.
14174variables_saved_for_relink="$variables_saved_for_relink"
14175
14176# Whether libtool must link a program against all its dependency libraries.
14177link_all_deplibs=$link_all_deplibs_CXX
14178
14179# Compile-time system search path for libraries
14180sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14181
14182# Run-time system search path for libraries
14183sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14184
14185# Fix the shell variable \$srcfile for the compiler.
14186fix_srcfile_path="$fix_srcfile_path_CXX"
14187
14188# Set to yes if exported symbols are required.
14189always_export_symbols=$always_export_symbols_CXX
14190
14191# The commands to list exported symbols.
14192export_symbols_cmds=$lt_export_symbols_cmds_CXX
14193
14194# The commands to extract the exported symbol list from a shared archive.
14195extract_expsyms_cmds=$lt_extract_expsyms_cmds
14196
14197# Symbols that should not be listed in the preloaded symbols.
14198exclude_expsyms=$lt_exclude_expsyms_CXX
14199
14200# Symbols that must always be exported.
14201include_expsyms=$lt_include_expsyms_CXX
14202
14203# ### END LIBTOOL TAG CONFIG: $tagname
14204
14205__EOF__
14206
14207
14208else
14209  # If there is no Makefile yet, we rely on a make rule to execute
14210  # `config.status --recheck' to rerun these tests and create the
14211  # libtool script then.
14212  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14213  if test -f "$ltmain_in"; then
14214    test -f Makefile && make "$ltmain"
14215  fi
14216fi
14217
14218
14219ac_ext=c
14220ac_cpp='$CPP $CPPFLAGS'
14221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14223ac_compiler_gnu=$ac_cv_c_compiler_gnu
14224
14225CC=$lt_save_CC
14226LDCXX=$LD
14227LD=$lt_save_LD
14228GCC=$lt_save_GCC
14229with_gnu_ldcxx=$with_gnu_ld
14230with_gnu_ld=$lt_save_with_gnu_ld
14231lt_cv_path_LDCXX=$lt_cv_path_LD
14232lt_cv_path_LD=$lt_save_path_LD
14233lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14234lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14235
14236	else
14237	  tagname=""
14238	fi
14239	;;
14240
14241      F77)
14242	if test -n "$F77" && test "X$F77" != "Xno"; then
14243
14244ac_ext=f
14245ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14246ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14247ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14248
14249
14250archive_cmds_need_lc_F77=no
14251allow_undefined_flag_F77=
14252always_export_symbols_F77=no
14253archive_expsym_cmds_F77=
14254export_dynamic_flag_spec_F77=
14255hardcode_direct_F77=no
14256hardcode_libdir_flag_spec_F77=
14257hardcode_libdir_flag_spec_ld_F77=
14258hardcode_libdir_separator_F77=
14259hardcode_minus_L_F77=no
14260hardcode_automatic_F77=no
14261module_cmds_F77=
14262module_expsym_cmds_F77=
14263link_all_deplibs_F77=unknown
14264old_archive_cmds_F77=$old_archive_cmds
14265no_undefined_flag_F77=
14266whole_archive_flag_spec_F77=
14267enable_shared_with_static_runtimes_F77=no
14268
14269# Source file extension for f77 test sources.
14270ac_ext=f
14271
14272# Object file extension for compiled f77 test sources.
14273objext=o
14274objext_F77=$objext
14275
14276# Code to be used in simple compile tests
14277lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14278
14279# Code to be used in simple link tests
14280lt_simple_link_test_code="      program t\n      end\n"
14281
14282# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14283
14284# If no C compiler was specified, use CC.
14285LTCC=${LTCC-"$CC"}
14286
14287# Allow CC to be a program name with arguments.
14288compiler=$CC
14289
14290
14291# Allow CC to be a program name with arguments.
14292lt_save_CC="$CC"
14293CC=${F77-"f77"}
14294compiler=$CC
14295compiler_F77=$CC
14296cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14297
14298echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14299echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14300echo "$as_me:$LINENO: result: $can_build_shared" >&5
14301echo "${ECHO_T}$can_build_shared" >&6
14302
14303echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14304echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14305test "$can_build_shared" = "no" && enable_shared=no
14306
14307# On AIX, shared libraries and static libraries use the same namespace, and
14308# are all built from PIC.
14309case "$host_os" in
14310aix3*)
14311  test "$enable_shared" = yes && enable_static=no
14312  if test -n "$RANLIB"; then
14313    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14314    postinstall_cmds='$RANLIB $lib'
14315  fi
14316  ;;
14317aix4* | aix5*)
14318  test "$enable_shared" = yes && enable_static=no
14319  ;;
14320esac
14321echo "$as_me:$LINENO: result: $enable_shared" >&5
14322echo "${ECHO_T}$enable_shared" >&6
14323
14324echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14325echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14326# Make sure either enable_shared or enable_static is yes.
14327test "$enable_shared" = yes || enable_static=yes
14328echo "$as_me:$LINENO: result: $enable_static" >&5
14329echo "${ECHO_T}$enable_static" >&6
14330
14331test "$ld_shlibs_F77" = no && can_build_shared=no
14332
14333GCC_F77="$G77"
14334LD_F77="$LD"
14335
14336lt_prog_compiler_wl_F77=
14337lt_prog_compiler_pic_F77=
14338lt_prog_compiler_static_F77=
14339
14340echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14341echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14342
14343  if test "$GCC" = yes; then
14344    lt_prog_compiler_wl_F77='-Wl,'
14345    lt_prog_compiler_static_F77='-static'
14346
14347    case $host_os in
14348      aix*)
14349      # All AIX code is PIC.
14350      if test "$host_cpu" = ia64; then
14351	# AIX 5 now supports IA64 processor
14352	lt_prog_compiler_static_F77='-Bstatic'
14353      fi
14354      ;;
14355
14356    amigaos*)
14357      # FIXME: we need at least 68020 code to build shared libraries, but
14358      # adding the `-m68020' flag to GCC prevents building anything better,
14359      # like `-m68040'.
14360      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14361      ;;
14362
14363    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14364      # PIC is the default for these OSes.
14365      ;;
14366
14367    mingw* | pw32* | os2*)
14368      # This hack is so that the source file can tell whether it is being
14369      # built for inclusion in a dll (and should export symbols for example).
14370      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14371      ;;
14372
14373    darwin* | rhapsody*)
14374      # PIC is the default on this platform
14375      # Common symbols not allowed in MH_DYLIB files
14376      lt_prog_compiler_pic_F77='-fno-common'
14377      ;;
14378
14379    msdosdjgpp*)
14380      # Just because we use GCC doesn't mean we suddenly get shared libraries
14381      # on systems that don't support them.
14382      lt_prog_compiler_can_build_shared_F77=no
14383      enable_shared=no
14384      ;;
14385
14386    sysv4*MP*)
14387      if test -d /usr/nec; then
14388	lt_prog_compiler_pic_F77=-Kconform_pic
14389      fi
14390      ;;
14391
14392    hpux*)
14393      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14394      # not for PA HP-UX.
14395      case "$host_cpu" in
14396      hppa*64*|ia64*)
14397	# +Z the default
14398	;;
14399      *)
14400	lt_prog_compiler_pic_F77='-fPIC'
14401	;;
14402      esac
14403      ;;
14404
14405    *)
14406      lt_prog_compiler_pic_F77='-fPIC'
14407      ;;
14408    esac
14409  else
14410    # PORTME Check for flag to pass linker flags through the system compiler.
14411    case $host_os in
14412    aix*)
14413      lt_prog_compiler_wl_F77='-Wl,'
14414      if test "$host_cpu" = ia64; then
14415	# AIX 5 now supports IA64 processor
14416	lt_prog_compiler_static_F77='-Bstatic'
14417      else
14418	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14419      fi
14420      ;;
14421      darwin*)
14422        # PIC is the default on this platform
14423        # Common symbols not allowed in MH_DYLIB files
14424       case "$cc_basename" in
14425         xlc*)
14426         lt_prog_compiler_pic_F77='-qnocommon'
14427         lt_prog_compiler_wl_F77='-Wl,'
14428         ;;
14429       esac
14430       ;;
14431
14432    mingw* | pw32* | os2*)
14433      # This hack is so that the source file can tell whether it is being
14434      # built for inclusion in a dll (and should export symbols for example).
14435      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14436      ;;
14437
14438    hpux9* | hpux10* | hpux11*)
14439      lt_prog_compiler_wl_F77='-Wl,'
14440      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14441      # not for PA HP-UX.
14442      case "$host_cpu" in
14443      hppa*64*|ia64*)
14444	# +Z the default
14445	;;
14446      *)
14447	lt_prog_compiler_pic_F77='+Z'
14448	;;
14449      esac
14450      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14451      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14452      ;;
14453
14454    irix5* | irix6* | nonstopux*)
14455      lt_prog_compiler_wl_F77='-Wl,'
14456      # PIC (with -KPIC) is the default.
14457      lt_prog_compiler_static_F77='-non_shared'
14458      ;;
14459
14460    newsos6)
14461      lt_prog_compiler_pic_F77='-KPIC'
14462      lt_prog_compiler_static_F77='-Bstatic'
14463      ;;
14464
14465    linux*)
14466      case $CC in
14467      icc* | ecc*)
14468	lt_prog_compiler_wl_F77='-Wl,'
14469	lt_prog_compiler_pic_F77='-KPIC'
14470	lt_prog_compiler_static_F77='-static'
14471        ;;
14472      ccc*)
14473        lt_prog_compiler_wl_F77='-Wl,'
14474        # All Alpha code is PIC.
14475        lt_prog_compiler_static_F77='-non_shared'
14476        ;;
14477      como)
14478        lt_prog_compiler_wl_F77='-lopt='
14479        ;;
14480      esac
14481      ;;
14482
14483    osf3* | osf4* | osf5*)
14484      lt_prog_compiler_wl_F77='-Wl,'
14485      # All OSF/1 code is PIC.
14486      lt_prog_compiler_static_F77='-non_shared'
14487      ;;
14488
14489    sco3.2v5*)
14490      lt_prog_compiler_pic_F77='-Kpic'
14491      lt_prog_compiler_static_F77='-dn'
14492      ;;
14493
14494    solaris*)
14495      lt_prog_compiler_wl_F77='-Wl,'
14496      lt_prog_compiler_pic_F77='-KPIC'
14497      lt_prog_compiler_static_F77='-Bstatic'
14498      ;;
14499
14500    sunos4*)
14501      lt_prog_compiler_wl_F77='-Qoption ld '
14502      lt_prog_compiler_pic_F77='-PIC'
14503      lt_prog_compiler_static_F77='-Bstatic'
14504      ;;
14505
14506    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14507      lt_prog_compiler_wl_F77='-Wl,'
14508      lt_prog_compiler_pic_F77='-KPIC'
14509      lt_prog_compiler_static_F77='-Bstatic'
14510      ;;
14511
14512    sysv4*MP*)
14513      if test -d /usr/nec ;then
14514	lt_prog_compiler_pic_F77='-Kconform_pic'
14515	lt_prog_compiler_static_F77='-Bstatic'
14516      fi
14517      ;;
14518
14519    uts4*)
14520      lt_prog_compiler_pic_F77='-pic'
14521      lt_prog_compiler_static_F77='-Bstatic'
14522      ;;
14523
14524    *)
14525      lt_prog_compiler_can_build_shared_F77=no
14526      ;;
14527    esac
14528  fi
14529
14530echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14531echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14532
14533#
14534# Check to make sure the PIC flag actually works.
14535#
14536if test -n "$lt_prog_compiler_pic_F77"; then
14537
14538echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14539echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14540if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14541  echo $ECHO_N "(cached) $ECHO_C" >&6
14542else
14543  lt_prog_compiler_pic_works_F77=no
14544  ac_outfile=conftest.$ac_objext
14545   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14546   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14547   # Insert the option either (1) after the last *FLAGS variable, or
14548   # (2) before a word containing "conftest.", or (3) at the end.
14549   # Note that $ac_compile itself does not contain backslashes and begins
14550   # with a dollar sign (not a hyphen), so the echo should work correctly.
14551   # The option is referenced via a variable to avoid confusing sed.
14552   lt_compile=`echo "$ac_compile" | $SED \
14553   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14554   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14555   -e 's:$: $lt_compiler_flag:'`
14556   (eval echo "\"\$as_me:14556: $lt_compile\"" >&5)
14557   (eval "$lt_compile" 2>conftest.err)
14558   ac_status=$?
14559   cat conftest.err >&5
14560   echo "$as_me:14560: \$? = $ac_status" >&5
14561   if (exit $ac_status) && test -s "$ac_outfile"; then
14562     # The compiler can only warn and ignore the option if not recognized
14563     # So say no if there are warnings
14564     if test ! -s conftest.err; then
14565       lt_prog_compiler_pic_works_F77=yes
14566     fi
14567   fi
14568   $rm conftest*
14569
14570fi
14571echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14572echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14573
14574if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14575    case $lt_prog_compiler_pic_F77 in
14576     "" | " "*) ;;
14577     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14578     esac
14579else
14580    lt_prog_compiler_pic_F77=
14581     lt_prog_compiler_can_build_shared_F77=no
14582fi
14583
14584fi
14585case "$host_os" in
14586  # For platforms which do not support PIC, -DPIC is meaningless:
14587  *djgpp*)
14588    lt_prog_compiler_pic_F77=
14589    ;;
14590  *)
14591    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14592    ;;
14593esac
14594
14595echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14596echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14597if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14598  echo $ECHO_N "(cached) $ECHO_C" >&6
14599else
14600  lt_cv_prog_compiler_c_o_F77=no
14601   $rm -r conftest 2>/dev/null
14602   mkdir conftest
14603   cd conftest
14604   mkdir out
14605   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14606
14607   lt_compiler_flag="-o out/conftest2.$ac_objext"
14608   # Insert the option either (1) after the last *FLAGS variable, or
14609   # (2) before a word containing "conftest.", or (3) at the end.
14610   # Note that $ac_compile itself does not contain backslashes and begins
14611   # with a dollar sign (not a hyphen), so the echo should work correctly.
14612   lt_compile=`echo "$ac_compile" | $SED \
14613   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14614   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14615   -e 's:$: $lt_compiler_flag:'`
14616   (eval echo "\"\$as_me:14616: $lt_compile\"" >&5)
14617   (eval "$lt_compile" 2>out/conftest.err)
14618   ac_status=$?
14619   cat out/conftest.err >&5
14620   echo "$as_me:14620: \$? = $ac_status" >&5
14621   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14622   then
14623     # The compiler can only warn and ignore the option if not recognized
14624     # So say no if there are warnings
14625     if test ! -s out/conftest.err; then
14626       lt_cv_prog_compiler_c_o_F77=yes
14627     fi
14628   fi
14629   chmod u+w .
14630   $rm conftest*
14631   # SGI C++ compiler will create directory out/ii_files/ for
14632   # template instantiation
14633   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14634   $rm out/* && rmdir out
14635   cd ..
14636   rmdir conftest
14637   $rm conftest*
14638
14639fi
14640echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14641echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14642
14643
14644hard_links="nottested"
14645if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14646  # do not overwrite the value of need_locks provided by the user
14647  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14648echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14649  hard_links=yes
14650  $rm conftest*
14651  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14652  touch conftest.a
14653  ln conftest.a conftest.b 2>&5 || hard_links=no
14654  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14655  echo "$as_me:$LINENO: result: $hard_links" >&5
14656echo "${ECHO_T}$hard_links" >&6
14657  if test "$hard_links" = no; then
14658    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14659echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14660    need_locks=warn
14661  fi
14662else
14663  need_locks=no
14664fi
14665
14666echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14667echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14668
14669  runpath_var=
14670  allow_undefined_flag_F77=
14671  enable_shared_with_static_runtimes_F77=no
14672  archive_cmds_F77=
14673  archive_expsym_cmds_F77=
14674  old_archive_From_new_cmds_F77=
14675  old_archive_from_expsyms_cmds_F77=
14676  export_dynamic_flag_spec_F77=
14677  whole_archive_flag_spec_F77=
14678  thread_safe_flag_spec_F77=
14679  hardcode_libdir_flag_spec_F77=
14680  hardcode_libdir_flag_spec_ld_F77=
14681  hardcode_libdir_separator_F77=
14682  hardcode_direct_F77=no
14683  hardcode_minus_L_F77=no
14684  hardcode_shlibpath_var_F77=unsupported
14685  link_all_deplibs_F77=unknown
14686  hardcode_automatic_F77=no
14687  module_cmds_F77=
14688  module_expsym_cmds_F77=
14689  always_export_symbols_F77=no
14690  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14691  # include_expsyms should be a list of space-separated symbols to be *always*
14692  # included in the symbol list
14693  include_expsyms_F77=
14694  # exclude_expsyms can be an extended regexp of symbols to exclude
14695  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14696  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14697  # as well as any symbol that contains `d'.
14698  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14699  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14700  # platforms (ab)use it in PIC code, but their linkers get confused if
14701  # the symbol is explicitly referenced.  Since portable code cannot
14702  # rely on this symbol name, it's probably fine to never include it in
14703  # preloaded symbol tables.
14704  extract_expsyms_cmds=
14705
14706  case $host_os in
14707  cygwin* | mingw* | pw32*)
14708    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14709    # When not using gcc, we currently assume that we are using
14710    # Microsoft Visual C++.
14711    if test "$GCC" != yes; then
14712      with_gnu_ld=no
14713    fi
14714    ;;
14715  openbsd*)
14716    with_gnu_ld=no
14717    ;;
14718  esac
14719
14720  ld_shlibs_F77=yes
14721  if test "$with_gnu_ld" = yes; then
14722    # If archive_cmds runs LD, not CC, wlarc should be empty
14723    wlarc='${wl}'
14724
14725    # See if GNU ld supports shared libraries.
14726    case $host_os in
14727    aix3* | aix4* | aix5*)
14728      # On AIX/PPC, the GNU linker is very broken
14729      if test "$host_cpu" != ia64; then
14730	ld_shlibs_F77=no
14731	cat <<EOF 1>&2
14732
14733*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14734*** to be unable to reliably create shared libraries on AIX.
14735*** Therefore, libtool is disabling shared libraries support.  If you
14736*** really care for shared libraries, you may want to modify your PATH
14737*** so that a non-GNU linker is found, and then restart.
14738
14739EOF
14740      fi
14741      ;;
14742
14743    amigaos*)
14744      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)'
14745      hardcode_libdir_flag_spec_F77='-L$libdir'
14746      hardcode_minus_L_F77=yes
14747
14748      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14749      # that the semantics of dynamic libraries on AmigaOS, at least up
14750      # to version 4, is to share data among multiple programs linked
14751      # with the same dynamic library.  Since this doesn't match the
14752      # behavior of shared libraries on other platforms, we can't use
14753      # them.
14754      ld_shlibs_F77=no
14755      ;;
14756
14757    beos*)
14758      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14759	allow_undefined_flag_F77=unsupported
14760	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14761	# support --undefined.  This deserves some investigation.  FIXME
14762	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14763      else
14764	ld_shlibs_F77=no
14765      fi
14766      ;;
14767
14768    cygwin* | mingw* | pw32*)
14769      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14770      # as there is no search path for DLLs.
14771      hardcode_libdir_flag_spec_F77='-L$libdir'
14772      allow_undefined_flag_F77=unsupported
14773      always_export_symbols_F77=no
14774      enable_shared_with_static_runtimes_F77=yes
14775      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14776
14777      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14778        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14779	# If the export-symbols file already is a .def file (1st line
14780	# is EXPORTS), use it as is; otherwise, prepend...
14781	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14782	  cp $export_symbols $output_objdir/$soname.def;
14783	else
14784	  echo EXPORTS > $output_objdir/$soname.def;
14785	  cat $export_symbols >> $output_objdir/$soname.def;
14786	fi~
14787	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14788      else
14789	ld_shlibs=no
14790      fi
14791      ;;
14792
14793    netbsd*)
14794      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14795	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14796	wlarc=
14797      else
14798	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14799	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14800      fi
14801      ;;
14802
14803    solaris* | sysv5*)
14804      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14805	ld_shlibs_F77=no
14806	cat <<EOF 1>&2
14807
14808*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14809*** create shared libraries on Solaris systems.  Therefore, libtool
14810*** is disabling shared libraries support.  We urge you to upgrade GNU
14811*** binutils to release 2.9.1 or newer.  Another option is to modify
14812*** your PATH or compiler configuration so that the native linker is
14813*** used, and then restart.
14814
14815EOF
14816      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14817	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14818	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14819      else
14820	ld_shlibs_F77=no
14821      fi
14822      ;;
14823
14824    sunos4*)
14825      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14826      wlarc=
14827      hardcode_direct_F77=yes
14828      hardcode_shlibpath_var_F77=no
14829      ;;
14830
14831  linux*)
14832    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14833        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14834	archive_cmds_F77="$tmp_archive_cmds"
14835      supports_anon_versioning=no
14836      case `$LD -v 2>/dev/null` in
14837        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14838        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14839        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14840        *\ 2.11.*) ;; # other 2.11 versions
14841        *) supports_anon_versioning=yes ;;
14842      esac
14843      if test $supports_anon_versioning = yes; then
14844        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14845cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14846$echo "local: *; };" >> $output_objdir/$libname.ver~
14847        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14848      else
14849        archive_expsym_cmds_F77="$tmp_archive_cmds"
14850      fi
14851    else
14852      ld_shlibs_F77=no
14853    fi
14854    ;;
14855
14856    *)
14857      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14858	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14859	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14860      else
14861	ld_shlibs_F77=no
14862      fi
14863      ;;
14864    esac
14865
14866    if test "$ld_shlibs_F77" = yes; then
14867      runpath_var=LD_RUN_PATH
14868      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14869      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14870      # ancient GNU ld didn't support --whole-archive et. al.
14871      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14872 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14873      else
14874  	whole_archive_flag_spec_F77=
14875      fi
14876    fi
14877  else
14878    # PORTME fill in a description of your system's linker (not GNU ld)
14879    case $host_os in
14880    aix3*)
14881      allow_undefined_flag_F77=unsupported
14882      always_export_symbols_F77=yes
14883      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'
14884      # Note: this linker hardcodes the directories in LIBPATH if there
14885      # are no directories specified by -L.
14886      hardcode_minus_L_F77=yes
14887      if test "$GCC" = yes && test -z "$link_static_flag"; then
14888	# Neither direct hardcoding nor static linking is supported with a
14889	# broken collect2.
14890	hardcode_direct_F77=unsupported
14891      fi
14892      ;;
14893
14894    aix4* | aix5*)
14895      if test "$host_cpu" = ia64; then
14896	# On IA64, the linker does run time linking by default, so we don't
14897	# have to do anything special.
14898	aix_use_runtimelinking=no
14899	exp_sym_flag='-Bexport'
14900	no_entry_flag=""
14901      else
14902	# If we're using GNU nm, then we don't want the "-C" option.
14903	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14904	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14905	  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'
14906	else
14907	  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'
14908	fi
14909	aix_use_runtimelinking=no
14910
14911	# Test if we are trying to use run time linking or normal
14912	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14913	# need to do runtime linking.
14914	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14915	  for ld_flag in $LDFLAGS; do
14916  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14917  	    aix_use_runtimelinking=yes
14918  	    break
14919  	  fi
14920	  done
14921	esac
14922
14923	exp_sym_flag='-bexport'
14924	no_entry_flag='-bnoentry'
14925      fi
14926
14927      # When large executables or shared objects are built, AIX ld can
14928      # have problems creating the table of contents.  If linking a library
14929      # or program results in "error TOC overflow" add -mminimal-toc to
14930      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14931      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14932
14933      archive_cmds_F77=''
14934      hardcode_direct_F77=yes
14935      hardcode_libdir_separator_F77=':'
14936      link_all_deplibs_F77=yes
14937
14938      if test "$GCC" = yes; then
14939	case $host_os in aix4.012|aix4.012.*)
14940	# We only want to do this on AIX 4.2 and lower, the check
14941	# below for broken collect2 doesn't work under 4.3+
14942	  collect2name=`${CC} -print-prog-name=collect2`
14943	  if test -f "$collect2name" && \
14944  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14945	  then
14946  	  # We have reworked collect2
14947  	  hardcode_direct_F77=yes
14948	  else
14949  	  # We have old collect2
14950  	  hardcode_direct_F77=unsupported
14951  	  # It fails to find uninstalled libraries when the uninstalled
14952  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14953  	  # to unsupported forces relinking
14954  	  hardcode_minus_L_F77=yes
14955  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14956  	  hardcode_libdir_separator_F77=
14957	  fi
14958	esac
14959	shared_flag='-shared'
14960      else
14961	# not using gcc
14962	if test "$host_cpu" = ia64; then
14963  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14964  	# chokes on -Wl,-G. The following line is correct:
14965	  shared_flag='-G'
14966	else
14967  	if test "$aix_use_runtimelinking" = yes; then
14968	    shared_flag='${wl}-G'
14969	  else
14970	    shared_flag='${wl}-bM:SRE'
14971  	fi
14972	fi
14973      fi
14974
14975      # It seems that -bexpall does not export symbols beginning with
14976      # underscore (_), so it is better to generate a list of symbols to export.
14977      always_export_symbols_F77=yes
14978      if test "$aix_use_runtimelinking" = yes; then
14979	# Warning - without using the other runtime loading flags (-brtl),
14980	# -berok will link without error, but may produce a broken library.
14981	allow_undefined_flag_F77='-berok'
14982       # Determine the default libpath from the value encoded in an empty executable.
14983       cat >conftest.$ac_ext <<_ACEOF
14984      program main
14985
14986      end
14987_ACEOF
14988rm -f conftest.$ac_objext conftest$ac_exeext
14989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14990  (eval $ac_link) 2>conftest.er1
14991  ac_status=$?
14992  grep -v '^ *+' conftest.er1 >conftest.err
14993  rm -f conftest.er1
14994  cat conftest.err >&5
14995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996  (exit $ac_status); } &&
14997	 { ac_try='test -z "$ac_f77_werror_flag"
14998			 || test ! -s conftest.err'
14999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15000  (eval $ac_try) 2>&5
15001  ac_status=$?
15002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003  (exit $ac_status); }; } &&
15004	 { ac_try='test -s conftest$ac_exeext'
15005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15006  (eval $ac_try) 2>&5
15007  ac_status=$?
15008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009  (exit $ac_status); }; }; then
15010
15011aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15012}'`
15013# Check for a 64-bit object if we didn't find anything.
15014if 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; }
15015}'`; fi
15016else
15017  echo "$as_me: failed program was:" >&5
15018sed 's/^/| /' conftest.$ac_ext >&5
15019
15020fi
15021rm -f conftest.err conftest.$ac_objext \
15022      conftest$ac_exeext conftest.$ac_ext
15023if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15024
15025       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15026	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"
15027       else
15028	if test "$host_cpu" = ia64; then
15029	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15030	  allow_undefined_flag_F77="-z nodefs"
15031	  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"
15032	else
15033	 # Determine the default libpath from the value encoded in an empty executable.
15034	 cat >conftest.$ac_ext <<_ACEOF
15035      program main
15036
15037      end
15038_ACEOF
15039rm -f conftest.$ac_objext conftest$ac_exeext
15040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15041  (eval $ac_link) 2>conftest.er1
15042  ac_status=$?
15043  grep -v '^ *+' conftest.er1 >conftest.err
15044  rm -f conftest.er1
15045  cat conftest.err >&5
15046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047  (exit $ac_status); } &&
15048	 { ac_try='test -z "$ac_f77_werror_flag"
15049			 || test ! -s conftest.err'
15050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051  (eval $ac_try) 2>&5
15052  ac_status=$?
15053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054  (exit $ac_status); }; } &&
15055	 { ac_try='test -s conftest$ac_exeext'
15056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057  (eval $ac_try) 2>&5
15058  ac_status=$?
15059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060  (exit $ac_status); }; }; then
15061
15062aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15063}'`
15064# Check for a 64-bit object if we didn't find anything.
15065if 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; }
15066}'`; fi
15067else
15068  echo "$as_me: failed program was:" >&5
15069sed 's/^/| /' conftest.$ac_ext >&5
15070
15071fi
15072rm -f conftest.err conftest.$ac_objext \
15073      conftest$ac_exeext conftest.$ac_ext
15074if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15075
15076	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15077	  # Warning - without using the other run time loading flags,
15078	  # -berok will link without error, but may produce a broken library.
15079	  no_undefined_flag_F77=' ${wl}-bernotok'
15080	  allow_undefined_flag_F77=' ${wl}-berok'
15081	  # -bexpall does not export symbols beginning with underscore (_)
15082	  always_export_symbols_F77=yes
15083	  # Exported symbols can be pulled into shared objects from archives
15084	  whole_archive_flag_spec_F77=' '
15085	  archive_cmds_need_lc_F77=yes
15086	  # This is similar to how AIX traditionally builds it's shared libraries.
15087	  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'
15088	fi
15089      fi
15090      ;;
15091
15092    amigaos*)
15093      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)'
15094      hardcode_libdir_flag_spec_F77='-L$libdir'
15095      hardcode_minus_L_F77=yes
15096      # see comment about different semantics on the GNU ld section
15097      ld_shlibs_F77=no
15098      ;;
15099
15100    bsdi[45]*)
15101      export_dynamic_flag_spec_F77=-rdynamic
15102      ;;
15103
15104    cygwin* | mingw* | pw32*)
15105      # When not using gcc, we currently assume that we are using
15106      # Microsoft Visual C++.
15107      # hardcode_libdir_flag_spec is actually meaningless, as there is
15108      # no search path for DLLs.
15109      hardcode_libdir_flag_spec_F77=' '
15110      allow_undefined_flag_F77=unsupported
15111      # Tell ltmain to make .lib files, not .a files.
15112      libext=lib
15113      # Tell ltmain to make .dll files, not .so files.
15114      shrext_cmds=".dll"
15115      # FIXME: Setting linknames here is a bad hack.
15116      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15117      # The linker will automatically build a .lib file if we build a DLL.
15118      old_archive_From_new_cmds_F77='true'
15119      # FIXME: Should let the user specify the lib program.
15120      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15121      fix_srcfile_path='`cygpath -w "$srcfile"`'
15122      enable_shared_with_static_runtimes_F77=yes
15123      ;;
15124
15125    darwin* | rhapsody*)
15126      case "$host_os" in
15127        rhapsody* | darwin1.[012])
15128         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15129         ;;
15130       *) # Darwin 1.3 on
15131         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15132           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15133         else
15134           case ${MACOSX_DEPLOYMENT_TARGET} in
15135             10.[012])
15136               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15137               ;;
15138             10.*)
15139               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15140               ;;
15141           esac
15142         fi
15143         ;;
15144      esac
15145      archive_cmds_need_lc_F77=no
15146      hardcode_direct_F77=no
15147      hardcode_automatic_F77=yes
15148      hardcode_shlibpath_var_F77=unsupported
15149      whole_archive_flag_spec_F77=''
15150      link_all_deplibs_F77=yes
15151    if test "$GCC" = yes ; then
15152    	output_verbose_link_cmd='echo'
15153        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15154      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15155      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15156      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}'
15157      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}'
15158    else
15159      case "$cc_basename" in
15160        xlc*)
15161         output_verbose_link_cmd='echo'
15162         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15163         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15164          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15165         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}'
15166          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}'
15167          ;;
15168       *)
15169         ld_shlibs_F77=no
15170          ;;
15171      esac
15172    fi
15173      ;;
15174
15175    dgux*)
15176      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15177      hardcode_libdir_flag_spec_F77='-L$libdir'
15178      hardcode_shlibpath_var_F77=no
15179      ;;
15180
15181    freebsd1*)
15182      ld_shlibs_F77=no
15183      ;;
15184
15185    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15186    # support.  Future versions do this automatically, but an explicit c++rt0.o
15187    # does not break anything, and helps significantly (at the cost of a little
15188    # extra space).
15189    freebsd2.2*)
15190      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15191      hardcode_libdir_flag_spec_F77='-R$libdir'
15192      hardcode_direct_F77=yes
15193      hardcode_shlibpath_var_F77=no
15194      ;;
15195
15196    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15197    freebsd2*)
15198      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15199      hardcode_direct_F77=yes
15200      hardcode_minus_L_F77=yes
15201      hardcode_shlibpath_var_F77=no
15202      ;;
15203
15204    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15205    freebsd* | kfreebsd*-gnu)
15206      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15207      hardcode_libdir_flag_spec_F77='-R$libdir'
15208      hardcode_direct_F77=yes
15209      hardcode_shlibpath_var_F77=no
15210      ;;
15211
15212    hpux9*)
15213      if test "$GCC" = yes; then
15214	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'
15215      else
15216	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'
15217      fi
15218      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15219      hardcode_libdir_separator_F77=:
15220      hardcode_direct_F77=yes
15221
15222      # hardcode_minus_L: Not really in the search PATH,
15223      # but as the default location of the library.
15224      hardcode_minus_L_F77=yes
15225      export_dynamic_flag_spec_F77='${wl}-E'
15226      ;;
15227
15228    hpux10* | hpux11*)
15229      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15230	case "$host_cpu" in
15231	hppa*64*|ia64*)
15232	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15233	  ;;
15234	*)
15235	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15236	  ;;
15237	esac
15238      else
15239	case "$host_cpu" in
15240	hppa*64*|ia64*)
15241	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15242	  ;;
15243	*)
15244	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15245	  ;;
15246	esac
15247      fi
15248      if test "$with_gnu_ld" = no; then
15249	case "$host_cpu" in
15250	hppa*64*)
15251	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15252	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15253	  hardcode_libdir_separator_F77=:
15254	  hardcode_direct_F77=no
15255	  hardcode_shlibpath_var_F77=no
15256	  ;;
15257	ia64*)
15258	  hardcode_libdir_flag_spec_F77='-L$libdir'
15259	  hardcode_direct_F77=no
15260	  hardcode_shlibpath_var_F77=no
15261
15262	  # hardcode_minus_L: Not really in the search PATH,
15263	  # but as the default location of the library.
15264	  hardcode_minus_L_F77=yes
15265	  ;;
15266	*)
15267	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15268	  hardcode_libdir_separator_F77=:
15269	  hardcode_direct_F77=yes
15270	  export_dynamic_flag_spec_F77='${wl}-E'
15271
15272	  # hardcode_minus_L: Not really in the search PATH,
15273	  # but as the default location of the library.
15274	  hardcode_minus_L_F77=yes
15275	  ;;
15276	esac
15277      fi
15278      ;;
15279
15280    irix5* | irix6* | nonstopux*)
15281      if test "$GCC" = yes; then
15282	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'
15283      else
15284	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'
15285	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15286      fi
15287      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15288      hardcode_libdir_separator_F77=:
15289      link_all_deplibs_F77=yes
15290      ;;
15291
15292    netbsd*)
15293      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15294	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15295      else
15296	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15297      fi
15298      hardcode_libdir_flag_spec_F77='-R$libdir'
15299      hardcode_direct_F77=yes
15300      hardcode_shlibpath_var_F77=no
15301      ;;
15302
15303    newsos6)
15304      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15305      hardcode_direct_F77=yes
15306      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15307      hardcode_libdir_separator_F77=:
15308      hardcode_shlibpath_var_F77=no
15309      ;;
15310
15311    openbsd*)
15312      hardcode_direct_F77=yes
15313      hardcode_shlibpath_var_F77=no
15314      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15315	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15316	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15317	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15318	export_dynamic_flag_spec_F77='${wl}-E'
15319      else
15320       case $host_os in
15321	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15322	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15323	   hardcode_libdir_flag_spec_F77='-R$libdir'
15324	   ;;
15325	 *)
15326	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15327	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15328	   ;;
15329       esac
15330      fi
15331      ;;
15332
15333    os2*)
15334      hardcode_libdir_flag_spec_F77='-L$libdir'
15335      hardcode_minus_L_F77=yes
15336      allow_undefined_flag_F77=unsupported
15337      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'
15338      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15339      ;;
15340
15341    osf3*)
15342      if test "$GCC" = yes; then
15343	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15344	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'
15345      else
15346	allow_undefined_flag_F77=' -expect_unresolved \*'
15347	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'
15348      fi
15349      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15350      hardcode_libdir_separator_F77=:
15351      ;;
15352
15353    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15354      if test "$GCC" = yes; then
15355	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15356	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'
15357	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15358      else
15359	allow_undefined_flag_F77=' -expect_unresolved \*'
15360	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'
15361	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~
15362	$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'
15363
15364	# Both c and cxx compiler support -rpath directly
15365	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15366      fi
15367      hardcode_libdir_separator_F77=:
15368      ;;
15369
15370    sco3.2v5*)
15371      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15372      hardcode_shlibpath_var_F77=no
15373      export_dynamic_flag_spec_F77='${wl}-Bexport'
15374      runpath_var=LD_RUN_PATH
15375      hardcode_runpath_var=yes
15376      ;;
15377
15378    solaris*)
15379      no_undefined_flag_F77=' -z text'
15380      if test "$GCC" = yes; then
15381	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15382	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15383	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15384      else
15385	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15386	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15387  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15388      fi
15389      hardcode_libdir_flag_spec_F77='-R$libdir'
15390      hardcode_shlibpath_var_F77=no
15391      case $host_os in
15392      solaris2.[0-5] | solaris2.[0-5].*) ;;
15393      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15394	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15395      esac
15396      link_all_deplibs_F77=yes
15397      ;;
15398
15399    sunos4*)
15400      if test "x$host_vendor" = xsequent; then
15401	# Use $CC to link under sequent, because it throws in some extra .o
15402	# files that make .init and .fini sections work.
15403	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15404      else
15405	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15406      fi
15407      hardcode_libdir_flag_spec_F77='-L$libdir'
15408      hardcode_direct_F77=yes
15409      hardcode_minus_L_F77=yes
15410      hardcode_shlibpath_var_F77=no
15411      ;;
15412
15413    sysv4)
15414      case $host_vendor in
15415	sni)
15416	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15417	  hardcode_direct_F77=yes # is this really true???
15418	;;
15419	siemens)
15420	  ## LD is ld it makes a PLAMLIB
15421	  ## CC just makes a GrossModule.
15422	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15423	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15424	  hardcode_direct_F77=no
15425        ;;
15426	motorola)
15427	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15428	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15429	;;
15430      esac
15431      runpath_var='LD_RUN_PATH'
15432      hardcode_shlibpath_var_F77=no
15433      ;;
15434
15435    sysv4.3*)
15436      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15437      hardcode_shlibpath_var_F77=no
15438      export_dynamic_flag_spec_F77='-Bexport'
15439      ;;
15440
15441    sysv4*MP*)
15442      if test -d /usr/nec; then
15443	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15444	hardcode_shlibpath_var_F77=no
15445	runpath_var=LD_RUN_PATH
15446	hardcode_runpath_var=yes
15447	ld_shlibs_F77=yes
15448      fi
15449      ;;
15450
15451    sysv4.2uw2*)
15452      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15453      hardcode_direct_F77=yes
15454      hardcode_minus_L_F77=no
15455      hardcode_shlibpath_var_F77=no
15456      hardcode_runpath_var=yes
15457      runpath_var=LD_RUN_PATH
15458      ;;
15459
15460   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15461      no_undefined_flag_F77='${wl}-z ${wl}text'
15462      if test "$GCC" = yes; then
15463	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15464      else
15465	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15466      fi
15467      runpath_var='LD_RUN_PATH'
15468      hardcode_shlibpath_var_F77=no
15469      ;;
15470
15471    sysv5*)
15472      no_undefined_flag_F77=' -z text'
15473      # $CC -shared without GNU ld will not create a library from C++
15474      # object files and a static libstdc++, better avoid it by now
15475      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15476      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15477  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15478      hardcode_libdir_flag_spec_F77=
15479      hardcode_shlibpath_var_F77=no
15480      runpath_var='LD_RUN_PATH'
15481      ;;
15482
15483    uts4*)
15484      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15485      hardcode_libdir_flag_spec_F77='-L$libdir'
15486      hardcode_shlibpath_var_F77=no
15487      ;;
15488
15489    *)
15490      ld_shlibs_F77=no
15491      ;;
15492    esac
15493  fi
15494
15495echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15496echo "${ECHO_T}$ld_shlibs_F77" >&6
15497test "$ld_shlibs_F77" = no && can_build_shared=no
15498
15499variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15500if test "$GCC" = yes; then
15501  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15502fi
15503
15504#
15505# Do we need to explicitly link libc?
15506#
15507case "x$archive_cmds_need_lc_F77" in
15508x|xyes)
15509  # Assume -lc should be added
15510  archive_cmds_need_lc_F77=yes
15511
15512  if test "$enable_shared" = yes && test "$GCC" = yes; then
15513    case $archive_cmds_F77 in
15514    *'~'*)
15515      # FIXME: we may have to deal with multi-command sequences.
15516      ;;
15517    '$CC '*)
15518      # Test whether the compiler implicitly links with -lc since on some
15519      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15520      # to ld, don't add -lc before -lgcc.
15521      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15522echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15523      $rm conftest*
15524      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15525
15526      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15527  (eval $ac_compile) 2>&5
15528  ac_status=$?
15529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530  (exit $ac_status); } 2>conftest.err; then
15531        soname=conftest
15532        lib=conftest
15533        libobjs=conftest.$ac_objext
15534        deplibs=
15535        wl=$lt_prog_compiler_wl_F77
15536        compiler_flags=-v
15537        linker_flags=-v
15538        verstring=
15539        output_objdir=.
15540        libname=conftest
15541        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15542        allow_undefined_flag_F77=
15543        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15544  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15545  ac_status=$?
15546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547  (exit $ac_status); }
15548        then
15549	  archive_cmds_need_lc_F77=no
15550        else
15551	  archive_cmds_need_lc_F77=yes
15552        fi
15553        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15554      else
15555        cat conftest.err 1>&5
15556      fi
15557      $rm conftest*
15558      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15559echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15560      ;;
15561    esac
15562  fi
15563  ;;
15564esac
15565
15566echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15567echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15568library_names_spec=
15569libname_spec='lib$name'
15570soname_spec=
15571shrext_cmds=".so"
15572postinstall_cmds=
15573postuninstall_cmds=
15574finish_cmds=
15575finish_eval=
15576shlibpath_var=
15577shlibpath_overrides_runpath=unknown
15578version_type=none
15579dynamic_linker="$host_os ld.so"
15580sys_lib_dlsearch_path_spec="/lib /usr/lib"
15581if test "$GCC" = yes; then
15582  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15583  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15584    # if the path contains ";" then we assume it to be the separator
15585    # otherwise default to the standard path separator (i.e. ":") - it is
15586    # assumed that no part of a normal pathname contains ";" but that should
15587    # okay in the real world where ";" in dirpaths is itself problematic.
15588    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15589  else
15590    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15591  fi
15592else
15593  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15594fi
15595need_lib_prefix=unknown
15596hardcode_into_libs=no
15597
15598# when you set need_version to no, make sure it does not cause -set_version
15599# flags to be left without arguments
15600need_version=unknown
15601
15602case $host_os in
15603aix3*)
15604  version_type=linux
15605  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15606  shlibpath_var=LIBPATH
15607
15608  # AIX 3 has no versioning support, so we append a major version to the name.
15609  soname_spec='${libname}${release}${shared_ext}$major'
15610  ;;
15611
15612aix4* | aix5*)
15613  version_type=linux
15614  need_lib_prefix=no
15615  need_version=no
15616  hardcode_into_libs=yes
15617  if test "$host_cpu" = ia64; then
15618    # AIX 5 supports IA64
15619    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15620    shlibpath_var=LD_LIBRARY_PATH
15621  else
15622    # With GCC up to 2.95.x, collect2 would create an import file
15623    # for dependence libraries.  The import file would start with
15624    # the line `#! .'.  This would cause the generated library to
15625    # depend on `.', always an invalid library.  This was fixed in
15626    # development snapshots of GCC prior to 3.0.
15627    case $host_os in
15628      aix4 | aix4.[01] | aix4.[01].*)
15629      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15630	   echo ' yes '
15631	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15632	:
15633      else
15634	can_build_shared=no
15635      fi
15636      ;;
15637    esac
15638    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15639    # soname into executable. Probably we can add versioning support to
15640    # collect2, so additional links can be useful in future.
15641    if test "$aix_use_runtimelinking" = yes; then
15642      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15643      # instead of lib<name>.a to let people know that these are not
15644      # typical AIX shared libraries.
15645      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15646    else
15647      # We preserve .a as extension for shared libraries through AIX4.2
15648      # and later when we are not doing run time linking.
15649      library_names_spec='${libname}${release}.a $libname.a'
15650      soname_spec='${libname}${release}${shared_ext}$major'
15651    fi
15652    shlibpath_var=LIBPATH
15653  fi
15654  ;;
15655
15656amigaos*)
15657  library_names_spec='$libname.ixlibrary $libname.a'
15658  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15659  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'
15660  ;;
15661
15662beos*)
15663  library_names_spec='${libname}${shared_ext}'
15664  dynamic_linker="$host_os ld.so"
15665  shlibpath_var=LIBRARY_PATH
15666  ;;
15667
15668bsdi[45]*)
15669  version_type=linux
15670  need_version=no
15671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15672  soname_spec='${libname}${release}${shared_ext}$major'
15673  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15674  shlibpath_var=LD_LIBRARY_PATH
15675  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15676  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15677  # the default ld.so.conf also contains /usr/contrib/lib and
15678  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15679  # libtool to hard-code these into programs
15680  ;;
15681
15682cygwin* | mingw* | pw32*)
15683  version_type=windows
15684  shrext_cmds=".dll"
15685  need_version=no
15686  need_lib_prefix=no
15687
15688  case $GCC,$host_os in
15689  yes,cygwin* | yes,mingw* | yes,pw32*)
15690    library_names_spec='$libname.dll.a'
15691    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15692    postinstall_cmds='base_file=`basename \${file}`~
15693      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15694      dldir=$destdir/`dirname \$dlpath`~
15695      test -d \$dldir || mkdir -p \$dldir~
15696      $install_prog $dir/$dlname \$dldir/$dlname~
15697      chmod a+x \$dldir/$dlname'
15698    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15699      dlpath=$dir/\$dldll~
15700       $rm \$dlpath'
15701    shlibpath_overrides_runpath=yes
15702
15703    case $host_os in
15704    cygwin*)
15705      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15706      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15707      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15708      ;;
15709    mingw*)
15710      # MinGW DLLs use traditional 'lib' prefix
15711      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15712      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15713      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15714        # It is most probably a Windows format PATH printed by
15715        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15716        # path with ; separators, and with drive letters. We can handle the
15717        # drive letters (cygwin fileutils understands them), so leave them,
15718        # especially as we might pass files found there to a mingw objdump,
15719        # which wouldn't understand a cygwinified path. Ahh.
15720        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15721      else
15722        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15723      fi
15724      ;;
15725    pw32*)
15726      # pw32 DLLs use 'pw' prefix rather than 'lib'
15727      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15728      ;;
15729    esac
15730    ;;
15731
15732  *)
15733    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15734    ;;
15735  esac
15736  dynamic_linker='Win32 ld.exe'
15737  # FIXME: first we should search . and the directory the executable is in
15738  shlibpath_var=PATH
15739  ;;
15740
15741darwin* | rhapsody*)
15742  dynamic_linker="$host_os dyld"
15743  version_type=darwin
15744  need_lib_prefix=no
15745  need_version=no
15746  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15747  soname_spec='${libname}${release}${major}$shared_ext'
15748  shlibpath_overrides_runpath=yes
15749  shlibpath_var=DYLD_LIBRARY_PATH
15750  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15751  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15752  if test "$GCC" = yes; then
15753    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"`
15754  else
15755    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15756  fi
15757  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15758  ;;
15759
15760dgux*)
15761  version_type=linux
15762  need_lib_prefix=no
15763  need_version=no
15764  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15765  soname_spec='${libname}${release}${shared_ext}$major'
15766  shlibpath_var=LD_LIBRARY_PATH
15767  ;;
15768
15769freebsd1*)
15770  dynamic_linker=no
15771  ;;
15772
15773kfreebsd*-gnu)
15774  version_type=linux
15775  need_lib_prefix=no
15776  need_version=no
15777  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15778  soname_spec='${libname}${release}${shared_ext}$major'
15779  shlibpath_var=LD_LIBRARY_PATH
15780  shlibpath_overrides_runpath=no
15781  hardcode_into_libs=yes
15782  dynamic_linker='GNU ld.so'
15783  ;;
15784
15785freebsd*)
15786  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15787  version_type=freebsd-$objformat
15788  case $version_type in
15789    freebsd-elf*)
15790      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15791      need_version=no
15792      need_lib_prefix=no
15793      ;;
15794    freebsd-*)
15795      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15796      need_version=yes
15797      ;;
15798  esac
15799  shlibpath_var=LD_LIBRARY_PATH
15800  case $host_os in
15801  freebsd2*)
15802    shlibpath_overrides_runpath=yes
15803    ;;
15804  freebsd3.01* | freebsdelf3.01*)
15805    shlibpath_overrides_runpath=yes
15806    hardcode_into_libs=yes
15807    ;;
15808  *) # from 3.2 on
15809    shlibpath_overrides_runpath=no
15810    hardcode_into_libs=yes
15811    ;;
15812  esac
15813  ;;
15814
15815gnu*)
15816  version_type=linux
15817  need_lib_prefix=no
15818  need_version=no
15819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15820  soname_spec='${libname}${release}${shared_ext}$major'
15821  shlibpath_var=LD_LIBRARY_PATH
15822  hardcode_into_libs=yes
15823  ;;
15824
15825hpux9* | hpux10* | hpux11*)
15826  # Give a soname corresponding to the major version so that dld.sl refuses to
15827  # link against other versions.
15828  version_type=sunos
15829  need_lib_prefix=no
15830  need_version=no
15831  case "$host_cpu" in
15832  ia64*)
15833    shrext_cmds='.so'
15834    hardcode_into_libs=yes
15835    dynamic_linker="$host_os dld.so"
15836    shlibpath_var=LD_LIBRARY_PATH
15837    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15838    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15839    soname_spec='${libname}${release}${shared_ext}$major'
15840    if test "X$HPUX_IA64_MODE" = X32; then
15841      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15842    else
15843      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15844    fi
15845    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15846    ;;
15847   hppa*64*)
15848     shrext_cmds='.sl'
15849     hardcode_into_libs=yes
15850     dynamic_linker="$host_os dld.sl"
15851     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15852     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15853     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15854     soname_spec='${libname}${release}${shared_ext}$major'
15855     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15856     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15857     ;;
15858   *)
15859    shrext_cmds='.sl'
15860    dynamic_linker="$host_os dld.sl"
15861    shlibpath_var=SHLIB_PATH
15862    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15863    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15864    soname_spec='${libname}${release}${shared_ext}$major'
15865    ;;
15866  esac
15867  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15868  postinstall_cmds='chmod 555 $lib'
15869  ;;
15870
15871irix5* | irix6* | nonstopux*)
15872  case $host_os in
15873    nonstopux*) version_type=nonstopux ;;
15874    *)
15875	if test "$lt_cv_prog_gnu_ld" = yes; then
15876		version_type=linux
15877	else
15878		version_type=irix
15879	fi ;;
15880  esac
15881  need_lib_prefix=no
15882  need_version=no
15883  soname_spec='${libname}${release}${shared_ext}$major'
15884  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15885  case $host_os in
15886  irix5* | nonstopux*)
15887    libsuff= shlibsuff=
15888    ;;
15889  *)
15890    case $LD in # libtool.m4 will add one of these switches to LD
15891    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15892      libsuff= shlibsuff= libmagic=32-bit;;
15893    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15894      libsuff=32 shlibsuff=N32 libmagic=N32;;
15895    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15896      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15897    *) libsuff= shlibsuff= libmagic=never-match;;
15898    esac
15899    ;;
15900  esac
15901  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15902  shlibpath_overrides_runpath=no
15903  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15904  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15905  hardcode_into_libs=yes
15906  ;;
15907
15908# No shared lib support for Linux oldld, aout, or coff.
15909linux*oldld* | linux*aout* | linux*coff*)
15910  dynamic_linker=no
15911  ;;
15912
15913# This must be Linux ELF.
15914linux*)
15915  version_type=linux
15916  need_lib_prefix=no
15917  need_version=no
15918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15919  soname_spec='${libname}${release}${shared_ext}$major'
15920  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15921  shlibpath_var=LD_LIBRARY_PATH
15922  shlibpath_overrides_runpath=no
15923  # This implies no fast_install, which is unacceptable.
15924  # Some rework will be needed to allow for fast_install
15925  # before this can be enabled.
15926  hardcode_into_libs=yes
15927
15928  # Append ld.so.conf contents to the search path
15929  if test -f /etc/ld.so.conf; then
15930    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15931    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15932  fi
15933
15934  # We used to test for /lib/ld.so.1 and disable shared libraries on
15935  # powerpc, because MkLinux only supported shared libraries with the
15936  # GNU dynamic linker.  Since this was broken with cross compilers,
15937  # most powerpc-linux boxes support dynamic linking these days and
15938  # people can always --disable-shared, the test was removed, and we
15939  # assume the GNU/Linux dynamic linker is in use.
15940  dynamic_linker='GNU/Linux ld.so'
15941  ;;
15942
15943knetbsd*-gnu)
15944  version_type=linux
15945  need_lib_prefix=no
15946  need_version=no
15947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15948  soname_spec='${libname}${release}${shared_ext}$major'
15949  shlibpath_var=LD_LIBRARY_PATH
15950  shlibpath_overrides_runpath=no
15951  hardcode_into_libs=yes
15952  dynamic_linker='GNU ld.so'
15953  ;;
15954
15955netbsd*)
15956  version_type=sunos
15957  need_lib_prefix=no
15958  need_version=no
15959  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15960    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15961    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15962    dynamic_linker='NetBSD (a.out) ld.so'
15963  else
15964    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15965    soname_spec='${libname}${release}${shared_ext}$major'
15966    dynamic_linker='NetBSD ld.elf_so'
15967  fi
15968  shlibpath_var=LD_LIBRARY_PATH
15969  shlibpath_overrides_runpath=yes
15970  hardcode_into_libs=yes
15971  ;;
15972
15973newsos6)
15974  version_type=linux
15975  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15976  shlibpath_var=LD_LIBRARY_PATH
15977  shlibpath_overrides_runpath=yes
15978  ;;
15979
15980nto-qnx*)
15981  version_type=linux
15982  need_lib_prefix=no
15983  need_version=no
15984  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15985  soname_spec='${libname}${release}${shared_ext}$major'
15986  shlibpath_var=LD_LIBRARY_PATH
15987  shlibpath_overrides_runpath=yes
15988  ;;
15989
15990openbsd*)
15991  version_type=sunos
15992  need_lib_prefix=no
15993  need_version=no
15994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15995  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15996  shlibpath_var=LD_LIBRARY_PATH
15997  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15998    case $host_os in
15999      openbsd2.[89] | openbsd2.[89].*)
16000	shlibpath_overrides_runpath=no
16001	;;
16002      *)
16003	shlibpath_overrides_runpath=yes
16004	;;
16005      esac
16006  else
16007    shlibpath_overrides_runpath=yes
16008  fi
16009  ;;
16010
16011os2*)
16012  libname_spec='$name'
16013  shrext_cmds=".dll"
16014  need_lib_prefix=no
16015  library_names_spec='$libname${shared_ext} $libname.a'
16016  dynamic_linker='OS/2 ld.exe'
16017  shlibpath_var=LIBPATH
16018  ;;
16019
16020osf3* | osf4* | osf5*)
16021  version_type=osf
16022  need_lib_prefix=no
16023  need_version=no
16024  soname_spec='${libname}${release}${shared_ext}$major'
16025  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16026  shlibpath_var=LD_LIBRARY_PATH
16027  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16028  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16029  ;;
16030
16031sco3.2v5*)
16032  version_type=osf
16033  soname_spec='${libname}${release}${shared_ext}$major'
16034  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16035  shlibpath_var=LD_LIBRARY_PATH
16036  ;;
16037
16038solaris*)
16039  version_type=linux
16040  need_lib_prefix=no
16041  need_version=no
16042  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16043  soname_spec='${libname}${release}${shared_ext}$major'
16044  shlibpath_var=LD_LIBRARY_PATH
16045  shlibpath_overrides_runpath=yes
16046  hardcode_into_libs=yes
16047  # ldd complains unless libraries are executable
16048  postinstall_cmds='chmod +x $lib'
16049  ;;
16050
16051sunos4*)
16052  version_type=sunos
16053  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16054  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16055  shlibpath_var=LD_LIBRARY_PATH
16056  shlibpath_overrides_runpath=yes
16057  if test "$with_gnu_ld" = yes; then
16058    need_lib_prefix=no
16059  fi
16060  need_version=yes
16061  ;;
16062
16063sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16064  version_type=linux
16065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16066  soname_spec='${libname}${release}${shared_ext}$major'
16067  shlibpath_var=LD_LIBRARY_PATH
16068  case $host_vendor in
16069    sni)
16070      shlibpath_overrides_runpath=no
16071      need_lib_prefix=no
16072      export_dynamic_flag_spec='${wl}-Blargedynsym'
16073      runpath_var=LD_RUN_PATH
16074      ;;
16075    siemens)
16076      need_lib_prefix=no
16077      ;;
16078    motorola)
16079      need_lib_prefix=no
16080      need_version=no
16081      shlibpath_overrides_runpath=no
16082      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16083      ;;
16084  esac
16085  ;;
16086
16087sysv4*MP*)
16088  if test -d /usr/nec ;then
16089    version_type=linux
16090    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16091    soname_spec='$libname${shared_ext}.$major'
16092    shlibpath_var=LD_LIBRARY_PATH
16093  fi
16094  ;;
16095
16096uts4*)
16097  version_type=linux
16098  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16099  soname_spec='${libname}${release}${shared_ext}$major'
16100  shlibpath_var=LD_LIBRARY_PATH
16101  ;;
16102
16103*)
16104  dynamic_linker=no
16105  ;;
16106esac
16107echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16108echo "${ECHO_T}$dynamic_linker" >&6
16109test "$dynamic_linker" = no && can_build_shared=no
16110
16111echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16112echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16113hardcode_action_F77=
16114if test -n "$hardcode_libdir_flag_spec_F77" || \
16115   test -n "$runpath_var_F77" || \
16116   test "X$hardcode_automatic_F77" = "Xyes" ; then
16117
16118  # We can hardcode non-existant directories.
16119  if test "$hardcode_direct_F77" != no &&
16120     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16121     # have to relink, otherwise we might link with an installed library
16122     # when we should be linking with a yet-to-be-installed one
16123     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16124     test "$hardcode_minus_L_F77" != no; then
16125    # Linking always hardcodes the temporary library directory.
16126    hardcode_action_F77=relink
16127  else
16128    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16129    hardcode_action_F77=immediate
16130  fi
16131else
16132  # We cannot hardcode anything, or else we can only hardcode existing
16133  # directories.
16134  hardcode_action_F77=unsupported
16135fi
16136echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16137echo "${ECHO_T}$hardcode_action_F77" >&6
16138
16139if test "$hardcode_action_F77" = relink; then
16140  # Fast installation is not supported
16141  enable_fast_install=no
16142elif test "$shlibpath_overrides_runpath" = yes ||
16143     test "$enable_shared" = no; then
16144  # Fast installation is not necessary
16145  enable_fast_install=needless
16146fi
16147
16148striplib=
16149old_striplib=
16150echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16151echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16152if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16153  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16154  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16155  echo "$as_me:$LINENO: result: yes" >&5
16156echo "${ECHO_T}yes" >&6
16157else
16158# FIXME - insert some real tests, host_os isn't really good enough
16159  case $host_os in
16160   darwin*)
16161       if test -n "$STRIP" ; then
16162         striplib="$STRIP -x"
16163         echo "$as_me:$LINENO: result: yes" >&5
16164echo "${ECHO_T}yes" >&6
16165       else
16166  echo "$as_me:$LINENO: result: no" >&5
16167echo "${ECHO_T}no" >&6
16168fi
16169       ;;
16170   *)
16171  echo "$as_me:$LINENO: result: no" >&5
16172echo "${ECHO_T}no" >&6
16173    ;;
16174  esac
16175fi
16176
16177
16178
16179# The else clause should only fire when bootstrapping the
16180# libtool distribution, otherwise you forgot to ship ltmain.sh
16181# with your package, and you will get complaints that there are
16182# no rules to generate ltmain.sh.
16183if test -f "$ltmain"; then
16184  # See if we are running on zsh, and set the options which allow our commands through
16185  # without removal of \ escapes.
16186  if test -n "${ZSH_VERSION+set}" ; then
16187    setopt NO_GLOB_SUBST
16188  fi
16189  # Now quote all the things that may contain metacharacters while being
16190  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16191  # variables and quote the copies for generation of the libtool script.
16192  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16193    SED SHELL STRIP \
16194    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16195    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16196    deplibs_check_method reload_flag reload_cmds need_locks \
16197    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16198    lt_cv_sys_global_symbol_to_c_name_address \
16199    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16200    old_postinstall_cmds old_postuninstall_cmds \
16201    compiler_F77 \
16202    CC_F77 \
16203    LD_F77 \
16204    lt_prog_compiler_wl_F77 \
16205    lt_prog_compiler_pic_F77 \
16206    lt_prog_compiler_static_F77 \
16207    lt_prog_compiler_no_builtin_flag_F77 \
16208    export_dynamic_flag_spec_F77 \
16209    thread_safe_flag_spec_F77 \
16210    whole_archive_flag_spec_F77 \
16211    enable_shared_with_static_runtimes_F77 \
16212    old_archive_cmds_F77 \
16213    old_archive_from_new_cmds_F77 \
16214    predep_objects_F77 \
16215    postdep_objects_F77 \
16216    predeps_F77 \
16217    postdeps_F77 \
16218    compiler_lib_search_path_F77 \
16219    archive_cmds_F77 \
16220    archive_expsym_cmds_F77 \
16221    postinstall_cmds_F77 \
16222    postuninstall_cmds_F77 \
16223    old_archive_from_expsyms_cmds_F77 \
16224    allow_undefined_flag_F77 \
16225    no_undefined_flag_F77 \
16226    export_symbols_cmds_F77 \
16227    hardcode_libdir_flag_spec_F77 \
16228    hardcode_libdir_flag_spec_ld_F77 \
16229    hardcode_libdir_separator_F77 \
16230    hardcode_automatic_F77 \
16231    module_cmds_F77 \
16232    module_expsym_cmds_F77 \
16233    lt_cv_prog_compiler_c_o_F77 \
16234    exclude_expsyms_F77 \
16235    include_expsyms_F77; do
16236
16237    case $var in
16238    old_archive_cmds_F77 | \
16239    old_archive_from_new_cmds_F77 | \
16240    archive_cmds_F77 | \
16241    archive_expsym_cmds_F77 | \
16242    module_cmds_F77 | \
16243    module_expsym_cmds_F77 | \
16244    old_archive_from_expsyms_cmds_F77 | \
16245    export_symbols_cmds_F77 | \
16246    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16247    postinstall_cmds | postuninstall_cmds | \
16248    old_postinstall_cmds | old_postuninstall_cmds | \
16249    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16250      # Double-quote double-evaled strings.
16251      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16252      ;;
16253    *)
16254      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16255      ;;
16256    esac
16257  done
16258
16259  case $lt_echo in
16260  *'\$0 --fallback-echo"')
16261    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16262    ;;
16263  esac
16264
16265cfgfile="$ofile"
16266
16267  cat <<__EOF__ >> "$cfgfile"
16268# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16269
16270# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16271
16272# Shell to use when invoking shell scripts.
16273SHELL=$lt_SHELL
16274
16275# Whether or not to build shared libraries.
16276build_libtool_libs=$enable_shared
16277
16278# Whether or not to build static libraries.
16279build_old_libs=$enable_static
16280
16281# Whether or not to add -lc for building shared libraries.
16282build_libtool_need_lc=$archive_cmds_need_lc_F77
16283
16284# Whether or not to disallow shared libs when runtime libs are static
16285allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16286
16287# Whether or not to optimize for fast installation.
16288fast_install=$enable_fast_install
16289
16290# The host system.
16291host_alias=$host_alias
16292host=$host
16293
16294# An echo program that does not interpret backslashes.
16295echo=$lt_echo
16296
16297# The archiver.
16298AR=$lt_AR
16299AR_FLAGS=$lt_AR_FLAGS
16300
16301# A C compiler.
16302LTCC=$lt_LTCC
16303
16304# A language-specific compiler.
16305CC=$lt_compiler_F77
16306
16307# Is the compiler the GNU C compiler?
16308with_gcc=$GCC_F77
16309
16310# An ERE matcher.
16311EGREP=$lt_EGREP
16312
16313# The linker used to build libraries.
16314LD=$lt_LD_F77
16315
16316# Whether we need hard or soft links.
16317LN_S=$lt_LN_S
16318
16319# A BSD-compatible nm program.
16320NM=$lt_NM
16321
16322# A symbol stripping program
16323STRIP=$lt_STRIP
16324
16325# Used to examine libraries when file_magic_cmd begins "file"
16326MAGIC_CMD=$MAGIC_CMD
16327
16328# Used on cygwin: DLL creation program.
16329DLLTOOL="$DLLTOOL"
16330
16331# Used on cygwin: object dumper.
16332OBJDUMP="$OBJDUMP"
16333
16334# Used on cygwin: assembler.
16335AS="$AS"
16336
16337# The name of the directory that contains temporary libtool files.
16338objdir=$objdir
16339
16340# How to create reloadable object files.
16341reload_flag=$lt_reload_flag
16342reload_cmds=$lt_reload_cmds
16343
16344# How to pass a linker flag through the compiler.
16345wl=$lt_lt_prog_compiler_wl_F77
16346
16347# Object file suffix (normally "o").
16348objext="$ac_objext"
16349
16350# Old archive suffix (normally "a").
16351libext="$libext"
16352
16353# Shared library suffix (normally ".so").
16354shrext_cmds='$shrext_cmds'
16355
16356# Executable file suffix (normally "").
16357exeext="$exeext"
16358
16359# Additional compiler flags for building library objects.
16360pic_flag=$lt_lt_prog_compiler_pic_F77
16361pic_mode=$pic_mode
16362
16363# What is the maximum length of a command?
16364max_cmd_len=$lt_cv_sys_max_cmd_len
16365
16366# Does compiler simultaneously support -c and -o options?
16367compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16368
16369# Must we lock files when doing compilation ?
16370need_locks=$lt_need_locks
16371
16372# Do we need the lib prefix for modules?
16373need_lib_prefix=$need_lib_prefix
16374
16375# Do we need a version for libraries?
16376need_version=$need_version
16377
16378# Whether dlopen is supported.
16379dlopen_support=$enable_dlopen
16380
16381# Whether dlopen of programs is supported.
16382dlopen_self=$enable_dlopen_self
16383
16384# Whether dlopen of statically linked programs is supported.
16385dlopen_self_static=$enable_dlopen_self_static
16386
16387# Compiler flag to prevent dynamic linking.
16388link_static_flag=$lt_lt_prog_compiler_static_F77
16389
16390# Compiler flag to turn off builtin functions.
16391no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16392
16393# Compiler flag to allow reflexive dlopens.
16394export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16395
16396# Compiler flag to generate shared objects directly from archives.
16397whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16398
16399# Compiler flag to generate thread-safe objects.
16400thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16401
16402# Library versioning type.
16403version_type=$version_type
16404
16405# Format of library name prefix.
16406libname_spec=$lt_libname_spec
16407
16408# List of archive names.  First name is the real one, the rest are links.
16409# The last name is the one that the linker finds with -lNAME.
16410library_names_spec=$lt_library_names_spec
16411
16412# The coded name of the library, if different from the real name.
16413soname_spec=$lt_soname_spec
16414
16415# Commands used to build and install an old-style archive.
16416RANLIB=$lt_RANLIB
16417old_archive_cmds=$lt_old_archive_cmds_F77
16418old_postinstall_cmds=$lt_old_postinstall_cmds
16419old_postuninstall_cmds=$lt_old_postuninstall_cmds
16420
16421# Create an old-style archive from a shared archive.
16422old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16423
16424# Create a temporary old-style archive to link instead of a shared archive.
16425old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16426
16427# Commands used to build and install a shared archive.
16428archive_cmds=$lt_archive_cmds_F77
16429archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16430postinstall_cmds=$lt_postinstall_cmds
16431postuninstall_cmds=$lt_postuninstall_cmds
16432
16433# Commands used to build a loadable module (assumed same as above if empty)
16434module_cmds=$lt_module_cmds_F77
16435module_expsym_cmds=$lt_module_expsym_cmds_F77
16436
16437# Commands to strip libraries.
16438old_striplib=$lt_old_striplib
16439striplib=$lt_striplib
16440
16441# Dependencies to place before the objects being linked to create a
16442# shared library.
16443predep_objects=$lt_predep_objects_F77
16444
16445# Dependencies to place after the objects being linked to create a
16446# shared library.
16447postdep_objects=$lt_postdep_objects_F77
16448
16449# Dependencies to place before the objects being linked to create a
16450# shared library.
16451predeps=$lt_predeps_F77
16452
16453# Dependencies to place after the objects being linked to create a
16454# shared library.
16455postdeps=$lt_postdeps_F77
16456
16457# The library search path used internally by the compiler when linking
16458# a shared library.
16459compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16460
16461# Method to check whether dependent libraries are shared objects.
16462deplibs_check_method=$lt_deplibs_check_method
16463
16464# Command to use when deplibs_check_method == file_magic.
16465file_magic_cmd=$lt_file_magic_cmd
16466
16467# Flag that allows shared libraries with undefined symbols to be built.
16468allow_undefined_flag=$lt_allow_undefined_flag_F77
16469
16470# Flag that forces no undefined symbols.
16471no_undefined_flag=$lt_no_undefined_flag_F77
16472
16473# Commands used to finish a libtool library installation in a directory.
16474finish_cmds=$lt_finish_cmds
16475
16476# Same as above, but a single script fragment to be evaled but not shown.
16477finish_eval=$lt_finish_eval
16478
16479# Take the output of nm and produce a listing of raw symbols and C names.
16480global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16481
16482# Transform the output of nm in a proper C declaration
16483global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16484
16485# Transform the output of nm in a C name address pair
16486global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16487
16488# This is the shared library runtime path variable.
16489runpath_var=$runpath_var
16490
16491# This is the shared library path variable.
16492shlibpath_var=$shlibpath_var
16493
16494# Is shlibpath searched before the hard-coded library search path?
16495shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16496
16497# How to hardcode a shared library path into an executable.
16498hardcode_action=$hardcode_action_F77
16499
16500# Whether we should hardcode library paths into libraries.
16501hardcode_into_libs=$hardcode_into_libs
16502
16503# Flag to hardcode \$libdir into a binary during linking.
16504# This must work even if \$libdir does not exist.
16505hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16506
16507# If ld is used when linking, flag to hardcode \$libdir into
16508# a binary during linking. This must work even if \$libdir does
16509# not exist.
16510hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16511
16512# Whether we need a single -rpath flag with a separated argument.
16513hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16514
16515# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16516# resulting binary.
16517hardcode_direct=$hardcode_direct_F77
16518
16519# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16520# resulting binary.
16521hardcode_minus_L=$hardcode_minus_L_F77
16522
16523# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16524# the resulting binary.
16525hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16526
16527# Set to yes if building a shared library automatically hardcodes DIR into the library
16528# and all subsequent libraries and executables linked against it.
16529hardcode_automatic=$hardcode_automatic_F77
16530
16531# Variables whose values should be saved in libtool wrapper scripts and
16532# restored at relink time.
16533variables_saved_for_relink="$variables_saved_for_relink"
16534
16535# Whether libtool must link a program against all its dependency libraries.
16536link_all_deplibs=$link_all_deplibs_F77
16537
16538# Compile-time system search path for libraries
16539sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16540
16541# Run-time system search path for libraries
16542sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16543
16544# Fix the shell variable \$srcfile for the compiler.
16545fix_srcfile_path="$fix_srcfile_path_F77"
16546
16547# Set to yes if exported symbols are required.
16548always_export_symbols=$always_export_symbols_F77
16549
16550# The commands to list exported symbols.
16551export_symbols_cmds=$lt_export_symbols_cmds_F77
16552
16553# The commands to extract the exported symbol list from a shared archive.
16554extract_expsyms_cmds=$lt_extract_expsyms_cmds
16555
16556# Symbols that should not be listed in the preloaded symbols.
16557exclude_expsyms=$lt_exclude_expsyms_F77
16558
16559# Symbols that must always be exported.
16560include_expsyms=$lt_include_expsyms_F77
16561
16562# ### END LIBTOOL TAG CONFIG: $tagname
16563
16564__EOF__
16565
16566
16567else
16568  # If there is no Makefile yet, we rely on a make rule to execute
16569  # `config.status --recheck' to rerun these tests and create the
16570  # libtool script then.
16571  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16572  if test -f "$ltmain_in"; then
16573    test -f Makefile && make "$ltmain"
16574  fi
16575fi
16576
16577
16578ac_ext=c
16579ac_cpp='$CPP $CPPFLAGS'
16580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16582ac_compiler_gnu=$ac_cv_c_compiler_gnu
16583
16584CC="$lt_save_CC"
16585
16586	else
16587	  tagname=""
16588	fi
16589	;;
16590
16591      GCJ)
16592	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16593
16594
16595
16596# Source file extension for Java test sources.
16597ac_ext=java
16598
16599# Object file extension for compiled Java test sources.
16600objext=o
16601objext_GCJ=$objext
16602
16603# Code to be used in simple compile tests
16604lt_simple_compile_test_code="class foo {}\n"
16605
16606# Code to be used in simple link tests
16607lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16608
16609# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16610
16611# If no C compiler was specified, use CC.
16612LTCC=${LTCC-"$CC"}
16613
16614# Allow CC to be a program name with arguments.
16615compiler=$CC
16616
16617
16618# Allow CC to be a program name with arguments.
16619lt_save_CC="$CC"
16620CC=${GCJ-"gcj"}
16621compiler=$CC
16622compiler_GCJ=$CC
16623
16624# GCJ did not exist at the time GCC didn't implicitly link libc in.
16625archive_cmds_need_lc_GCJ=no
16626
16627## CAVEAT EMPTOR:
16628## There is no encapsulation within the following macros, do not change
16629## the running order or otherwise move them around unless you know exactly
16630## what you are doing...
16631
16632lt_prog_compiler_no_builtin_flag_GCJ=
16633
16634if test "$GCC" = yes; then
16635  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16636
16637
16638echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16639echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16640if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16641  echo $ECHO_N "(cached) $ECHO_C" >&6
16642else
16643  lt_cv_prog_compiler_rtti_exceptions=no
16644  ac_outfile=conftest.$ac_objext
16645   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16646   lt_compiler_flag="-fno-rtti -fno-exceptions"
16647   # Insert the option either (1) after the last *FLAGS variable, or
16648   # (2) before a word containing "conftest.", or (3) at the end.
16649   # Note that $ac_compile itself does not contain backslashes and begins
16650   # with a dollar sign (not a hyphen), so the echo should work correctly.
16651   # The option is referenced via a variable to avoid confusing sed.
16652   lt_compile=`echo "$ac_compile" | $SED \
16653   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16654   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16655   -e 's:$: $lt_compiler_flag:'`
16656   (eval echo "\"\$as_me:16656: $lt_compile\"" >&5)
16657   (eval "$lt_compile" 2>conftest.err)
16658   ac_status=$?
16659   cat conftest.err >&5
16660   echo "$as_me:16660: \$? = $ac_status" >&5
16661   if (exit $ac_status) && test -s "$ac_outfile"; then
16662     # The compiler can only warn and ignore the option if not recognized
16663     # So say no if there are warnings
16664     if test ! -s conftest.err; then
16665       lt_cv_prog_compiler_rtti_exceptions=yes
16666     fi
16667   fi
16668   $rm conftest*
16669
16670fi
16671echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16672echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16673
16674if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16675    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16676else
16677    :
16678fi
16679
16680fi
16681
16682lt_prog_compiler_wl_GCJ=
16683lt_prog_compiler_pic_GCJ=
16684lt_prog_compiler_static_GCJ=
16685
16686echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16687echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16688
16689  if test "$GCC" = yes; then
16690    lt_prog_compiler_wl_GCJ='-Wl,'
16691    lt_prog_compiler_static_GCJ='-static'
16692
16693    case $host_os in
16694      aix*)
16695      # All AIX code is PIC.
16696      if test "$host_cpu" = ia64; then
16697	# AIX 5 now supports IA64 processor
16698	lt_prog_compiler_static_GCJ='-Bstatic'
16699      fi
16700      ;;
16701
16702    amigaos*)
16703      # FIXME: we need at least 68020 code to build shared libraries, but
16704      # adding the `-m68020' flag to GCC prevents building anything better,
16705      # like `-m68040'.
16706      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16707      ;;
16708
16709    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16710      # PIC is the default for these OSes.
16711      ;;
16712
16713    mingw* | pw32* | os2*)
16714      # This hack is so that the source file can tell whether it is being
16715      # built for inclusion in a dll (and should export symbols for example).
16716      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16717      ;;
16718
16719    darwin* | rhapsody*)
16720      # PIC is the default on this platform
16721      # Common symbols not allowed in MH_DYLIB files
16722      lt_prog_compiler_pic_GCJ='-fno-common'
16723      ;;
16724
16725    msdosdjgpp*)
16726      # Just because we use GCC doesn't mean we suddenly get shared libraries
16727      # on systems that don't support them.
16728      lt_prog_compiler_can_build_shared_GCJ=no
16729      enable_shared=no
16730      ;;
16731
16732    sysv4*MP*)
16733      if test -d /usr/nec; then
16734	lt_prog_compiler_pic_GCJ=-Kconform_pic
16735      fi
16736      ;;
16737
16738    hpux*)
16739      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16740      # not for PA HP-UX.
16741      case "$host_cpu" in
16742      hppa*64*|ia64*)
16743	# +Z the default
16744	;;
16745      *)
16746	lt_prog_compiler_pic_GCJ='-fPIC'
16747	;;
16748      esac
16749      ;;
16750
16751    *)
16752      lt_prog_compiler_pic_GCJ='-fPIC'
16753      ;;
16754    esac
16755  else
16756    # PORTME Check for flag to pass linker flags through the system compiler.
16757    case $host_os in
16758    aix*)
16759      lt_prog_compiler_wl_GCJ='-Wl,'
16760      if test "$host_cpu" = ia64; then
16761	# AIX 5 now supports IA64 processor
16762	lt_prog_compiler_static_GCJ='-Bstatic'
16763      else
16764	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16765      fi
16766      ;;
16767      darwin*)
16768        # PIC is the default on this platform
16769        # Common symbols not allowed in MH_DYLIB files
16770       case "$cc_basename" in
16771         xlc*)
16772         lt_prog_compiler_pic_GCJ='-qnocommon'
16773         lt_prog_compiler_wl_GCJ='-Wl,'
16774         ;;
16775       esac
16776       ;;
16777
16778    mingw* | pw32* | os2*)
16779      # This hack is so that the source file can tell whether it is being
16780      # built for inclusion in a dll (and should export symbols for example).
16781      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16782      ;;
16783
16784    hpux9* | hpux10* | hpux11*)
16785      lt_prog_compiler_wl_GCJ='-Wl,'
16786      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16787      # not for PA HP-UX.
16788      case "$host_cpu" in
16789      hppa*64*|ia64*)
16790	# +Z the default
16791	;;
16792      *)
16793	lt_prog_compiler_pic_GCJ='+Z'
16794	;;
16795      esac
16796      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16797      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16798      ;;
16799
16800    irix5* | irix6* | nonstopux*)
16801      lt_prog_compiler_wl_GCJ='-Wl,'
16802      # PIC (with -KPIC) is the default.
16803      lt_prog_compiler_static_GCJ='-non_shared'
16804      ;;
16805
16806    newsos6)
16807      lt_prog_compiler_pic_GCJ='-KPIC'
16808      lt_prog_compiler_static_GCJ='-Bstatic'
16809      ;;
16810
16811    linux*)
16812      case $CC in
16813      icc* | ecc*)
16814	lt_prog_compiler_wl_GCJ='-Wl,'
16815	lt_prog_compiler_pic_GCJ='-KPIC'
16816	lt_prog_compiler_static_GCJ='-static'
16817        ;;
16818      ccc*)
16819        lt_prog_compiler_wl_GCJ='-Wl,'
16820        # All Alpha code is PIC.
16821        lt_prog_compiler_static_GCJ='-non_shared'
16822        ;;
16823      como)
16824        lt_prog_compiler_wl_GCJ='-lopt='
16825        ;;
16826      esac
16827      ;;
16828
16829    osf3* | osf4* | osf5*)
16830      lt_prog_compiler_wl_GCJ='-Wl,'
16831      # All OSF/1 code is PIC.
16832      lt_prog_compiler_static_GCJ='-non_shared'
16833      ;;
16834
16835    sco3.2v5*)
16836      lt_prog_compiler_pic_GCJ='-Kpic'
16837      lt_prog_compiler_static_GCJ='-dn'
16838      ;;
16839
16840    solaris*)
16841      lt_prog_compiler_wl_GCJ='-Wl,'
16842      lt_prog_compiler_pic_GCJ='-KPIC'
16843      lt_prog_compiler_static_GCJ='-Bstatic'
16844      ;;
16845
16846    sunos4*)
16847      lt_prog_compiler_wl_GCJ='-Qoption ld '
16848      lt_prog_compiler_pic_GCJ='-PIC'
16849      lt_prog_compiler_static_GCJ='-Bstatic'
16850      ;;
16851
16852    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16853      lt_prog_compiler_wl_GCJ='-Wl,'
16854      lt_prog_compiler_pic_GCJ='-KPIC'
16855      lt_prog_compiler_static_GCJ='-Bstatic'
16856      ;;
16857
16858    sysv4*MP*)
16859      if test -d /usr/nec ;then
16860	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16861	lt_prog_compiler_static_GCJ='-Bstatic'
16862      fi
16863      ;;
16864
16865    uts4*)
16866      lt_prog_compiler_pic_GCJ='-pic'
16867      lt_prog_compiler_static_GCJ='-Bstatic'
16868      ;;
16869
16870    *)
16871      lt_prog_compiler_can_build_shared_GCJ=no
16872      ;;
16873    esac
16874  fi
16875
16876echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16877echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16878
16879#
16880# Check to make sure the PIC flag actually works.
16881#
16882if test -n "$lt_prog_compiler_pic_GCJ"; then
16883
16884echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16885echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16886if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16887  echo $ECHO_N "(cached) $ECHO_C" >&6
16888else
16889  lt_prog_compiler_pic_works_GCJ=no
16890  ac_outfile=conftest.$ac_objext
16891   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16892   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16893   # Insert the option either (1) after the last *FLAGS variable, or
16894   # (2) before a word containing "conftest.", or (3) at the end.
16895   # Note that $ac_compile itself does not contain backslashes and begins
16896   # with a dollar sign (not a hyphen), so the echo should work correctly.
16897   # The option is referenced via a variable to avoid confusing sed.
16898   lt_compile=`echo "$ac_compile" | $SED \
16899   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16900   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16901   -e 's:$: $lt_compiler_flag:'`
16902   (eval echo "\"\$as_me:16902: $lt_compile\"" >&5)
16903   (eval "$lt_compile" 2>conftest.err)
16904   ac_status=$?
16905   cat conftest.err >&5
16906   echo "$as_me:16906: \$? = $ac_status" >&5
16907   if (exit $ac_status) && test -s "$ac_outfile"; then
16908     # The compiler can only warn and ignore the option if not recognized
16909     # So say no if there are warnings
16910     if test ! -s conftest.err; then
16911       lt_prog_compiler_pic_works_GCJ=yes
16912     fi
16913   fi
16914   $rm conftest*
16915
16916fi
16917echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16918echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16919
16920if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16921    case $lt_prog_compiler_pic_GCJ in
16922     "" | " "*) ;;
16923     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16924     esac
16925else
16926    lt_prog_compiler_pic_GCJ=
16927     lt_prog_compiler_can_build_shared_GCJ=no
16928fi
16929
16930fi
16931case "$host_os" in
16932  # For platforms which do not support PIC, -DPIC is meaningless:
16933  *djgpp*)
16934    lt_prog_compiler_pic_GCJ=
16935    ;;
16936  *)
16937    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16938    ;;
16939esac
16940
16941echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16942echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16943if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16944  echo $ECHO_N "(cached) $ECHO_C" >&6
16945else
16946  lt_cv_prog_compiler_c_o_GCJ=no
16947   $rm -r conftest 2>/dev/null
16948   mkdir conftest
16949   cd conftest
16950   mkdir out
16951   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16952
16953   lt_compiler_flag="-o out/conftest2.$ac_objext"
16954   # Insert the option either (1) after the last *FLAGS variable, or
16955   # (2) before a word containing "conftest.", or (3) at the end.
16956   # Note that $ac_compile itself does not contain backslashes and begins
16957   # with a dollar sign (not a hyphen), so the echo should work correctly.
16958   lt_compile=`echo "$ac_compile" | $SED \
16959   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16960   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16961   -e 's:$: $lt_compiler_flag:'`
16962   (eval echo "\"\$as_me:16962: $lt_compile\"" >&5)
16963   (eval "$lt_compile" 2>out/conftest.err)
16964   ac_status=$?
16965   cat out/conftest.err >&5
16966   echo "$as_me:16966: \$? = $ac_status" >&5
16967   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16968   then
16969     # The compiler can only warn and ignore the option if not recognized
16970     # So say no if there are warnings
16971     if test ! -s out/conftest.err; then
16972       lt_cv_prog_compiler_c_o_GCJ=yes
16973     fi
16974   fi
16975   chmod u+w .
16976   $rm conftest*
16977   # SGI C++ compiler will create directory out/ii_files/ for
16978   # template instantiation
16979   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16980   $rm out/* && rmdir out
16981   cd ..
16982   rmdir conftest
16983   $rm conftest*
16984
16985fi
16986echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16987echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16988
16989
16990hard_links="nottested"
16991if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16992  # do not overwrite the value of need_locks provided by the user
16993  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16994echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16995  hard_links=yes
16996  $rm conftest*
16997  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16998  touch conftest.a
16999  ln conftest.a conftest.b 2>&5 || hard_links=no
17000  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17001  echo "$as_me:$LINENO: result: $hard_links" >&5
17002echo "${ECHO_T}$hard_links" >&6
17003  if test "$hard_links" = no; then
17004    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17005echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17006    need_locks=warn
17007  fi
17008else
17009  need_locks=no
17010fi
17011
17012echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17013echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17014
17015  runpath_var=
17016  allow_undefined_flag_GCJ=
17017  enable_shared_with_static_runtimes_GCJ=no
17018  archive_cmds_GCJ=
17019  archive_expsym_cmds_GCJ=
17020  old_archive_From_new_cmds_GCJ=
17021  old_archive_from_expsyms_cmds_GCJ=
17022  export_dynamic_flag_spec_GCJ=
17023  whole_archive_flag_spec_GCJ=
17024  thread_safe_flag_spec_GCJ=
17025  hardcode_libdir_flag_spec_GCJ=
17026  hardcode_libdir_flag_spec_ld_GCJ=
17027  hardcode_libdir_separator_GCJ=
17028  hardcode_direct_GCJ=no
17029  hardcode_minus_L_GCJ=no
17030  hardcode_shlibpath_var_GCJ=unsupported
17031  link_all_deplibs_GCJ=unknown
17032  hardcode_automatic_GCJ=no
17033  module_cmds_GCJ=
17034  module_expsym_cmds_GCJ=
17035  always_export_symbols_GCJ=no
17036  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17037  # include_expsyms should be a list of space-separated symbols to be *always*
17038  # included in the symbol list
17039  include_expsyms_GCJ=
17040  # exclude_expsyms can be an extended regexp of symbols to exclude
17041  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17042  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17043  # as well as any symbol that contains `d'.
17044  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17045  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17046  # platforms (ab)use it in PIC code, but their linkers get confused if
17047  # the symbol is explicitly referenced.  Since portable code cannot
17048  # rely on this symbol name, it's probably fine to never include it in
17049  # preloaded symbol tables.
17050  extract_expsyms_cmds=
17051
17052  case $host_os in
17053  cygwin* | mingw* | pw32*)
17054    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17055    # When not using gcc, we currently assume that we are using
17056    # Microsoft Visual C++.
17057    if test "$GCC" != yes; then
17058      with_gnu_ld=no
17059    fi
17060    ;;
17061  openbsd*)
17062    with_gnu_ld=no
17063    ;;
17064  esac
17065
17066  ld_shlibs_GCJ=yes
17067  if test "$with_gnu_ld" = yes; then
17068    # If archive_cmds runs LD, not CC, wlarc should be empty
17069    wlarc='${wl}'
17070
17071    # See if GNU ld supports shared libraries.
17072    case $host_os in
17073    aix3* | aix4* | aix5*)
17074      # On AIX/PPC, the GNU linker is very broken
17075      if test "$host_cpu" != ia64; then
17076	ld_shlibs_GCJ=no
17077	cat <<EOF 1>&2
17078
17079*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17080*** to be unable to reliably create shared libraries on AIX.
17081*** Therefore, libtool is disabling shared libraries support.  If you
17082*** really care for shared libraries, you may want to modify your PATH
17083*** so that a non-GNU linker is found, and then restart.
17084
17085EOF
17086      fi
17087      ;;
17088
17089    amigaos*)
17090      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)'
17091      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17092      hardcode_minus_L_GCJ=yes
17093
17094      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17095      # that the semantics of dynamic libraries on AmigaOS, at least up
17096      # to version 4, is to share data among multiple programs linked
17097      # with the same dynamic library.  Since this doesn't match the
17098      # behavior of shared libraries on other platforms, we can't use
17099      # them.
17100      ld_shlibs_GCJ=no
17101      ;;
17102
17103    beos*)
17104      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17105	allow_undefined_flag_GCJ=unsupported
17106	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17107	# support --undefined.  This deserves some investigation.  FIXME
17108	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17109      else
17110	ld_shlibs_GCJ=no
17111      fi
17112      ;;
17113
17114    cygwin* | mingw* | pw32*)
17115      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17116      # as there is no search path for DLLs.
17117      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17118      allow_undefined_flag_GCJ=unsupported
17119      always_export_symbols_GCJ=no
17120      enable_shared_with_static_runtimes_GCJ=yes
17121      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17122
17123      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17124        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17125	# If the export-symbols file already is a .def file (1st line
17126	# is EXPORTS), use it as is; otherwise, prepend...
17127	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17128	  cp $export_symbols $output_objdir/$soname.def;
17129	else
17130	  echo EXPORTS > $output_objdir/$soname.def;
17131	  cat $export_symbols >> $output_objdir/$soname.def;
17132	fi~
17133	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17134      else
17135	ld_shlibs=no
17136      fi
17137      ;;
17138
17139    netbsd*)
17140      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17141	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17142	wlarc=
17143      else
17144	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17145	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17146      fi
17147      ;;
17148
17149    solaris* | sysv5*)
17150      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17151	ld_shlibs_GCJ=no
17152	cat <<EOF 1>&2
17153
17154*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17155*** create shared libraries on Solaris systems.  Therefore, libtool
17156*** is disabling shared libraries support.  We urge you to upgrade GNU
17157*** binutils to release 2.9.1 or newer.  Another option is to modify
17158*** your PATH or compiler configuration so that the native linker is
17159*** used, and then restart.
17160
17161EOF
17162      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17163	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17164	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17165      else
17166	ld_shlibs_GCJ=no
17167      fi
17168      ;;
17169
17170    sunos4*)
17171      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17172      wlarc=
17173      hardcode_direct_GCJ=yes
17174      hardcode_shlibpath_var_GCJ=no
17175      ;;
17176
17177  linux*)
17178    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17179        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17180	archive_cmds_GCJ="$tmp_archive_cmds"
17181      supports_anon_versioning=no
17182      case `$LD -v 2>/dev/null` in
17183        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17184        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17185        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17186        *\ 2.11.*) ;; # other 2.11 versions
17187        *) supports_anon_versioning=yes ;;
17188      esac
17189      if test $supports_anon_versioning = yes; then
17190        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17191cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17192$echo "local: *; };" >> $output_objdir/$libname.ver~
17193        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17194      else
17195        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17196      fi
17197    else
17198      ld_shlibs_GCJ=no
17199    fi
17200    ;;
17201
17202    *)
17203      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17204	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17205	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17206      else
17207	ld_shlibs_GCJ=no
17208      fi
17209      ;;
17210    esac
17211
17212    if test "$ld_shlibs_GCJ" = yes; then
17213      runpath_var=LD_RUN_PATH
17214      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17215      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17216      # ancient GNU ld didn't support --whole-archive et. al.
17217      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17218 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17219      else
17220  	whole_archive_flag_spec_GCJ=
17221      fi
17222    fi
17223  else
17224    # PORTME fill in a description of your system's linker (not GNU ld)
17225    case $host_os in
17226    aix3*)
17227      allow_undefined_flag_GCJ=unsupported
17228      always_export_symbols_GCJ=yes
17229      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'
17230      # Note: this linker hardcodes the directories in LIBPATH if there
17231      # are no directories specified by -L.
17232      hardcode_minus_L_GCJ=yes
17233      if test "$GCC" = yes && test -z "$link_static_flag"; then
17234	# Neither direct hardcoding nor static linking is supported with a
17235	# broken collect2.
17236	hardcode_direct_GCJ=unsupported
17237      fi
17238      ;;
17239
17240    aix4* | aix5*)
17241      if test "$host_cpu" = ia64; then
17242	# On IA64, the linker does run time linking by default, so we don't
17243	# have to do anything special.
17244	aix_use_runtimelinking=no
17245	exp_sym_flag='-Bexport'
17246	no_entry_flag=""
17247      else
17248	# If we're using GNU nm, then we don't want the "-C" option.
17249	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17250	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17251	  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'
17252	else
17253	  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'
17254	fi
17255	aix_use_runtimelinking=no
17256
17257	# Test if we are trying to use run time linking or normal
17258	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17259	# need to do runtime linking.
17260	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17261	  for ld_flag in $LDFLAGS; do
17262  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17263  	    aix_use_runtimelinking=yes
17264  	    break
17265  	  fi
17266	  done
17267	esac
17268
17269	exp_sym_flag='-bexport'
17270	no_entry_flag='-bnoentry'
17271      fi
17272
17273      # When large executables or shared objects are built, AIX ld can
17274      # have problems creating the table of contents.  If linking a library
17275      # or program results in "error TOC overflow" add -mminimal-toc to
17276      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17277      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17278
17279      archive_cmds_GCJ=''
17280      hardcode_direct_GCJ=yes
17281      hardcode_libdir_separator_GCJ=':'
17282      link_all_deplibs_GCJ=yes
17283
17284      if test "$GCC" = yes; then
17285	case $host_os in aix4.012|aix4.012.*)
17286	# We only want to do this on AIX 4.2 and lower, the check
17287	# below for broken collect2 doesn't work under 4.3+
17288	  collect2name=`${CC} -print-prog-name=collect2`
17289	  if test -f "$collect2name" && \
17290  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17291	  then
17292  	  # We have reworked collect2
17293  	  hardcode_direct_GCJ=yes
17294	  else
17295  	  # We have old collect2
17296  	  hardcode_direct_GCJ=unsupported
17297  	  # It fails to find uninstalled libraries when the uninstalled
17298  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17299  	  # to unsupported forces relinking
17300  	  hardcode_minus_L_GCJ=yes
17301  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17302  	  hardcode_libdir_separator_GCJ=
17303	  fi
17304	esac
17305	shared_flag='-shared'
17306      else
17307	# not using gcc
17308	if test "$host_cpu" = ia64; then
17309  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17310  	# chokes on -Wl,-G. The following line is correct:
17311	  shared_flag='-G'
17312	else
17313  	if test "$aix_use_runtimelinking" = yes; then
17314	    shared_flag='${wl}-G'
17315	  else
17316	    shared_flag='${wl}-bM:SRE'
17317  	fi
17318	fi
17319      fi
17320
17321      # It seems that -bexpall does not export symbols beginning with
17322      # underscore (_), so it is better to generate a list of symbols to export.
17323      always_export_symbols_GCJ=yes
17324      if test "$aix_use_runtimelinking" = yes; then
17325	# Warning - without using the other runtime loading flags (-brtl),
17326	# -berok will link without error, but may produce a broken library.
17327	allow_undefined_flag_GCJ='-berok'
17328       # Determine the default libpath from the value encoded in an empty executable.
17329       cat >conftest.$ac_ext <<_ACEOF
17330/* confdefs.h.  */
17331_ACEOF
17332cat confdefs.h >>conftest.$ac_ext
17333cat >>conftest.$ac_ext <<_ACEOF
17334/* end confdefs.h.  */
17335
17336int
17337main ()
17338{
17339
17340  ;
17341  return 0;
17342}
17343_ACEOF
17344rm -f conftest.$ac_objext conftest$ac_exeext
17345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17346  (eval $ac_link) 2>conftest.er1
17347  ac_status=$?
17348  grep -v '^ *+' conftest.er1 >conftest.err
17349  rm -f conftest.er1
17350  cat conftest.err >&5
17351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352  (exit $ac_status); } &&
17353	 { ac_try='test -z "$ac_c_werror_flag"
17354			 || test ! -s conftest.err'
17355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17356  (eval $ac_try) 2>&5
17357  ac_status=$?
17358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359  (exit $ac_status); }; } &&
17360	 { ac_try='test -s conftest$ac_exeext'
17361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17362  (eval $ac_try) 2>&5
17363  ac_status=$?
17364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365  (exit $ac_status); }; }; then
17366
17367aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17368}'`
17369# Check for a 64-bit object if we didn't find anything.
17370if 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; }
17371}'`; fi
17372else
17373  echo "$as_me: failed program was:" >&5
17374sed 's/^/| /' conftest.$ac_ext >&5
17375
17376fi
17377rm -f conftest.err conftest.$ac_objext \
17378      conftest$ac_exeext conftest.$ac_ext
17379if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17380
17381       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17382	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"
17383       else
17384	if test "$host_cpu" = ia64; then
17385	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17386	  allow_undefined_flag_GCJ="-z nodefs"
17387	  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"
17388	else
17389	 # Determine the default libpath from the value encoded in an empty executable.
17390	 cat >conftest.$ac_ext <<_ACEOF
17391/* confdefs.h.  */
17392_ACEOF
17393cat confdefs.h >>conftest.$ac_ext
17394cat >>conftest.$ac_ext <<_ACEOF
17395/* end confdefs.h.  */
17396
17397int
17398main ()
17399{
17400
17401  ;
17402  return 0;
17403}
17404_ACEOF
17405rm -f conftest.$ac_objext conftest$ac_exeext
17406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17407  (eval $ac_link) 2>conftest.er1
17408  ac_status=$?
17409  grep -v '^ *+' conftest.er1 >conftest.err
17410  rm -f conftest.er1
17411  cat conftest.err >&5
17412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413  (exit $ac_status); } &&
17414	 { ac_try='test -z "$ac_c_werror_flag"
17415			 || test ! -s conftest.err'
17416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417  (eval $ac_try) 2>&5
17418  ac_status=$?
17419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420  (exit $ac_status); }; } &&
17421	 { ac_try='test -s conftest$ac_exeext'
17422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17423  (eval $ac_try) 2>&5
17424  ac_status=$?
17425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426  (exit $ac_status); }; }; then
17427
17428aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17429}'`
17430# Check for a 64-bit object if we didn't find anything.
17431if 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; }
17432}'`; fi
17433else
17434  echo "$as_me: failed program was:" >&5
17435sed 's/^/| /' conftest.$ac_ext >&5
17436
17437fi
17438rm -f conftest.err conftest.$ac_objext \
17439      conftest$ac_exeext conftest.$ac_ext
17440if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17441
17442	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17443	  # Warning - without using the other run time loading flags,
17444	  # -berok will link without error, but may produce a broken library.
17445	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17446	  allow_undefined_flag_GCJ=' ${wl}-berok'
17447	  # -bexpall does not export symbols beginning with underscore (_)
17448	  always_export_symbols_GCJ=yes
17449	  # Exported symbols can be pulled into shared objects from archives
17450	  whole_archive_flag_spec_GCJ=' '
17451	  archive_cmds_need_lc_GCJ=yes
17452	  # This is similar to how AIX traditionally builds it's shared libraries.
17453	  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'
17454	fi
17455      fi
17456      ;;
17457
17458    amigaos*)
17459      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)'
17460      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17461      hardcode_minus_L_GCJ=yes
17462      # see comment about different semantics on the GNU ld section
17463      ld_shlibs_GCJ=no
17464      ;;
17465
17466    bsdi[45]*)
17467      export_dynamic_flag_spec_GCJ=-rdynamic
17468      ;;
17469
17470    cygwin* | mingw* | pw32*)
17471      # When not using gcc, we currently assume that we are using
17472      # Microsoft Visual C++.
17473      # hardcode_libdir_flag_spec is actually meaningless, as there is
17474      # no search path for DLLs.
17475      hardcode_libdir_flag_spec_GCJ=' '
17476      allow_undefined_flag_GCJ=unsupported
17477      # Tell ltmain to make .lib files, not .a files.
17478      libext=lib
17479      # Tell ltmain to make .dll files, not .so files.
17480      shrext_cmds=".dll"
17481      # FIXME: Setting linknames here is a bad hack.
17482      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17483      # The linker will automatically build a .lib file if we build a DLL.
17484      old_archive_From_new_cmds_GCJ='true'
17485      # FIXME: Should let the user specify the lib program.
17486      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17487      fix_srcfile_path='`cygpath -w "$srcfile"`'
17488      enable_shared_with_static_runtimes_GCJ=yes
17489      ;;
17490
17491    darwin* | rhapsody*)
17492      case "$host_os" in
17493        rhapsody* | darwin1.[012])
17494         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17495         ;;
17496       *) # Darwin 1.3 on
17497         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17498           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17499         else
17500           case ${MACOSX_DEPLOYMENT_TARGET} in
17501             10.[012])
17502               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17503               ;;
17504             10.*)
17505               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17506               ;;
17507           esac
17508         fi
17509         ;;
17510      esac
17511      archive_cmds_need_lc_GCJ=no
17512      hardcode_direct_GCJ=no
17513      hardcode_automatic_GCJ=yes
17514      hardcode_shlibpath_var_GCJ=unsupported
17515      whole_archive_flag_spec_GCJ=''
17516      link_all_deplibs_GCJ=yes
17517    if test "$GCC" = yes ; then
17518    	output_verbose_link_cmd='echo'
17519        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17520      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17521      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17522      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}'
17523      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}'
17524    else
17525      case "$cc_basename" in
17526        xlc*)
17527         output_verbose_link_cmd='echo'
17528         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17529         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17530          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17531         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}'
17532          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}'
17533          ;;
17534       *)
17535         ld_shlibs_GCJ=no
17536          ;;
17537      esac
17538    fi
17539      ;;
17540
17541    dgux*)
17542      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17543      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17544      hardcode_shlibpath_var_GCJ=no
17545      ;;
17546
17547    freebsd1*)
17548      ld_shlibs_GCJ=no
17549      ;;
17550
17551    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17552    # support.  Future versions do this automatically, but an explicit c++rt0.o
17553    # does not break anything, and helps significantly (at the cost of a little
17554    # extra space).
17555    freebsd2.2*)
17556      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17557      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17558      hardcode_direct_GCJ=yes
17559      hardcode_shlibpath_var_GCJ=no
17560      ;;
17561
17562    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17563    freebsd2*)
17564      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17565      hardcode_direct_GCJ=yes
17566      hardcode_minus_L_GCJ=yes
17567      hardcode_shlibpath_var_GCJ=no
17568      ;;
17569
17570    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17571    freebsd* | kfreebsd*-gnu)
17572      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17573      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17574      hardcode_direct_GCJ=yes
17575      hardcode_shlibpath_var_GCJ=no
17576      ;;
17577
17578    hpux9*)
17579      if test "$GCC" = yes; then
17580	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'
17581      else
17582	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'
17583      fi
17584      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17585      hardcode_libdir_separator_GCJ=:
17586      hardcode_direct_GCJ=yes
17587
17588      # hardcode_minus_L: Not really in the search PATH,
17589      # but as the default location of the library.
17590      hardcode_minus_L_GCJ=yes
17591      export_dynamic_flag_spec_GCJ='${wl}-E'
17592      ;;
17593
17594    hpux10* | hpux11*)
17595      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17596	case "$host_cpu" in
17597	hppa*64*|ia64*)
17598	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17599	  ;;
17600	*)
17601	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17602	  ;;
17603	esac
17604      else
17605	case "$host_cpu" in
17606	hppa*64*|ia64*)
17607	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17608	  ;;
17609	*)
17610	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17611	  ;;
17612	esac
17613      fi
17614      if test "$with_gnu_ld" = no; then
17615	case "$host_cpu" in
17616	hppa*64*)
17617	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17618	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17619	  hardcode_libdir_separator_GCJ=:
17620	  hardcode_direct_GCJ=no
17621	  hardcode_shlibpath_var_GCJ=no
17622	  ;;
17623	ia64*)
17624	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17625	  hardcode_direct_GCJ=no
17626	  hardcode_shlibpath_var_GCJ=no
17627
17628	  # hardcode_minus_L: Not really in the search PATH,
17629	  # but as the default location of the library.
17630	  hardcode_minus_L_GCJ=yes
17631	  ;;
17632	*)
17633	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17634	  hardcode_libdir_separator_GCJ=:
17635	  hardcode_direct_GCJ=yes
17636	  export_dynamic_flag_spec_GCJ='${wl}-E'
17637
17638	  # hardcode_minus_L: Not really in the search PATH,
17639	  # but as the default location of the library.
17640	  hardcode_minus_L_GCJ=yes
17641	  ;;
17642	esac
17643      fi
17644      ;;
17645
17646    irix5* | irix6* | nonstopux*)
17647      if test "$GCC" = yes; then
17648	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'
17649      else
17650	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'
17651	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17652      fi
17653      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17654      hardcode_libdir_separator_GCJ=:
17655      link_all_deplibs_GCJ=yes
17656      ;;
17657
17658    netbsd*)
17659      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17660	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17661      else
17662	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17663      fi
17664      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17665      hardcode_direct_GCJ=yes
17666      hardcode_shlibpath_var_GCJ=no
17667      ;;
17668
17669    newsos6)
17670      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17671      hardcode_direct_GCJ=yes
17672      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17673      hardcode_libdir_separator_GCJ=:
17674      hardcode_shlibpath_var_GCJ=no
17675      ;;
17676
17677    openbsd*)
17678      hardcode_direct_GCJ=yes
17679      hardcode_shlibpath_var_GCJ=no
17680      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17681	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17682	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17683	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17684	export_dynamic_flag_spec_GCJ='${wl}-E'
17685      else
17686       case $host_os in
17687	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17688	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17689	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17690	   ;;
17691	 *)
17692	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17693	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17694	   ;;
17695       esac
17696      fi
17697      ;;
17698
17699    os2*)
17700      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17701      hardcode_minus_L_GCJ=yes
17702      allow_undefined_flag_GCJ=unsupported
17703      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'
17704      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17705      ;;
17706
17707    osf3*)
17708      if test "$GCC" = yes; then
17709	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17710	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'
17711      else
17712	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17713	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'
17714      fi
17715      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17716      hardcode_libdir_separator_GCJ=:
17717      ;;
17718
17719    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17720      if test "$GCC" = yes; then
17721	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17722	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'
17723	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17724      else
17725	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17726	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'
17727	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~
17728	$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'
17729
17730	# Both c and cxx compiler support -rpath directly
17731	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17732      fi
17733      hardcode_libdir_separator_GCJ=:
17734      ;;
17735
17736    sco3.2v5*)
17737      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17738      hardcode_shlibpath_var_GCJ=no
17739      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17740      runpath_var=LD_RUN_PATH
17741      hardcode_runpath_var=yes
17742      ;;
17743
17744    solaris*)
17745      no_undefined_flag_GCJ=' -z text'
17746      if test "$GCC" = yes; then
17747	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17748	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17749	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17750      else
17751	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17752	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17753  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17754      fi
17755      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17756      hardcode_shlibpath_var_GCJ=no
17757      case $host_os in
17758      solaris2.[0-5] | solaris2.[0-5].*) ;;
17759      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17760	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17761      esac
17762      link_all_deplibs_GCJ=yes
17763      ;;
17764
17765    sunos4*)
17766      if test "x$host_vendor" = xsequent; then
17767	# Use $CC to link under sequent, because it throws in some extra .o
17768	# files that make .init and .fini sections work.
17769	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17770      else
17771	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17772      fi
17773      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17774      hardcode_direct_GCJ=yes
17775      hardcode_minus_L_GCJ=yes
17776      hardcode_shlibpath_var_GCJ=no
17777      ;;
17778
17779    sysv4)
17780      case $host_vendor in
17781	sni)
17782	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17783	  hardcode_direct_GCJ=yes # is this really true???
17784	;;
17785	siemens)
17786	  ## LD is ld it makes a PLAMLIB
17787	  ## CC just makes a GrossModule.
17788	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17789	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17790	  hardcode_direct_GCJ=no
17791        ;;
17792	motorola)
17793	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17794	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17795	;;
17796      esac
17797      runpath_var='LD_RUN_PATH'
17798      hardcode_shlibpath_var_GCJ=no
17799      ;;
17800
17801    sysv4.3*)
17802      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17803      hardcode_shlibpath_var_GCJ=no
17804      export_dynamic_flag_spec_GCJ='-Bexport'
17805      ;;
17806
17807    sysv4*MP*)
17808      if test -d /usr/nec; then
17809	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17810	hardcode_shlibpath_var_GCJ=no
17811	runpath_var=LD_RUN_PATH
17812	hardcode_runpath_var=yes
17813	ld_shlibs_GCJ=yes
17814      fi
17815      ;;
17816
17817    sysv4.2uw2*)
17818      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17819      hardcode_direct_GCJ=yes
17820      hardcode_minus_L_GCJ=no
17821      hardcode_shlibpath_var_GCJ=no
17822      hardcode_runpath_var=yes
17823      runpath_var=LD_RUN_PATH
17824      ;;
17825
17826   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17827      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17828      if test "$GCC" = yes; then
17829	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17830      else
17831	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17832      fi
17833      runpath_var='LD_RUN_PATH'
17834      hardcode_shlibpath_var_GCJ=no
17835      ;;
17836
17837    sysv5*)
17838      no_undefined_flag_GCJ=' -z text'
17839      # $CC -shared without GNU ld will not create a library from C++
17840      # object files and a static libstdc++, better avoid it by now
17841      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17842      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17843  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17844      hardcode_libdir_flag_spec_GCJ=
17845      hardcode_shlibpath_var_GCJ=no
17846      runpath_var='LD_RUN_PATH'
17847      ;;
17848
17849    uts4*)
17850      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17851      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17852      hardcode_shlibpath_var_GCJ=no
17853      ;;
17854
17855    *)
17856      ld_shlibs_GCJ=no
17857      ;;
17858    esac
17859  fi
17860
17861echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17862echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17863test "$ld_shlibs_GCJ" = no && can_build_shared=no
17864
17865variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17866if test "$GCC" = yes; then
17867  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17868fi
17869
17870#
17871# Do we need to explicitly link libc?
17872#
17873case "x$archive_cmds_need_lc_GCJ" in
17874x|xyes)
17875  # Assume -lc should be added
17876  archive_cmds_need_lc_GCJ=yes
17877
17878  if test "$enable_shared" = yes && test "$GCC" = yes; then
17879    case $archive_cmds_GCJ in
17880    *'~'*)
17881      # FIXME: we may have to deal with multi-command sequences.
17882      ;;
17883    '$CC '*)
17884      # Test whether the compiler implicitly links with -lc since on some
17885      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17886      # to ld, don't add -lc before -lgcc.
17887      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17888echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17889      $rm conftest*
17890      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17891
17892      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17893  (eval $ac_compile) 2>&5
17894  ac_status=$?
17895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896  (exit $ac_status); } 2>conftest.err; then
17897        soname=conftest
17898        lib=conftest
17899        libobjs=conftest.$ac_objext
17900        deplibs=
17901        wl=$lt_prog_compiler_wl_GCJ
17902        compiler_flags=-v
17903        linker_flags=-v
17904        verstring=
17905        output_objdir=.
17906        libname=conftest
17907        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17908        allow_undefined_flag_GCJ=
17909        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17910  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17911  ac_status=$?
17912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913  (exit $ac_status); }
17914        then
17915	  archive_cmds_need_lc_GCJ=no
17916        else
17917	  archive_cmds_need_lc_GCJ=yes
17918        fi
17919        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17920      else
17921        cat conftest.err 1>&5
17922      fi
17923      $rm conftest*
17924      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17925echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17926      ;;
17927    esac
17928  fi
17929  ;;
17930esac
17931
17932echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17933echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17934library_names_spec=
17935libname_spec='lib$name'
17936soname_spec=
17937shrext_cmds=".so"
17938postinstall_cmds=
17939postuninstall_cmds=
17940finish_cmds=
17941finish_eval=
17942shlibpath_var=
17943shlibpath_overrides_runpath=unknown
17944version_type=none
17945dynamic_linker="$host_os ld.so"
17946sys_lib_dlsearch_path_spec="/lib /usr/lib"
17947if test "$GCC" = yes; then
17948  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17949  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17950    # if the path contains ";" then we assume it to be the separator
17951    # otherwise default to the standard path separator (i.e. ":") - it is
17952    # assumed that no part of a normal pathname contains ";" but that should
17953    # okay in the real world where ";" in dirpaths is itself problematic.
17954    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17955  else
17956    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17957  fi
17958else
17959  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17960fi
17961need_lib_prefix=unknown
17962hardcode_into_libs=no
17963
17964# when you set need_version to no, make sure it does not cause -set_version
17965# flags to be left without arguments
17966need_version=unknown
17967
17968case $host_os in
17969aix3*)
17970  version_type=linux
17971  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17972  shlibpath_var=LIBPATH
17973
17974  # AIX 3 has no versioning support, so we append a major version to the name.
17975  soname_spec='${libname}${release}${shared_ext}$major'
17976  ;;
17977
17978aix4* | aix5*)
17979  version_type=linux
17980  need_lib_prefix=no
17981  need_version=no
17982  hardcode_into_libs=yes
17983  if test "$host_cpu" = ia64; then
17984    # AIX 5 supports IA64
17985    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17986    shlibpath_var=LD_LIBRARY_PATH
17987  else
17988    # With GCC up to 2.95.x, collect2 would create an import file
17989    # for dependence libraries.  The import file would start with
17990    # the line `#! .'.  This would cause the generated library to
17991    # depend on `.', always an invalid library.  This was fixed in
17992    # development snapshots of GCC prior to 3.0.
17993    case $host_os in
17994      aix4 | aix4.[01] | aix4.[01].*)
17995      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17996	   echo ' yes '
17997	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17998	:
17999      else
18000	can_build_shared=no
18001      fi
18002      ;;
18003    esac
18004    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18005    # soname into executable. Probably we can add versioning support to
18006    # collect2, so additional links can be useful in future.
18007    if test "$aix_use_runtimelinking" = yes; then
18008      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18009      # instead of lib<name>.a to let people know that these are not
18010      # typical AIX shared libraries.
18011      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18012    else
18013      # We preserve .a as extension for shared libraries through AIX4.2
18014      # and later when we are not doing run time linking.
18015      library_names_spec='${libname}${release}.a $libname.a'
18016      soname_spec='${libname}${release}${shared_ext}$major'
18017    fi
18018    shlibpath_var=LIBPATH
18019  fi
18020  ;;
18021
18022amigaos*)
18023  library_names_spec='$libname.ixlibrary $libname.a'
18024  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18025  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'
18026  ;;
18027
18028beos*)
18029  library_names_spec='${libname}${shared_ext}'
18030  dynamic_linker="$host_os ld.so"
18031  shlibpath_var=LIBRARY_PATH
18032  ;;
18033
18034bsdi[45]*)
18035  version_type=linux
18036  need_version=no
18037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18038  soname_spec='${libname}${release}${shared_ext}$major'
18039  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18040  shlibpath_var=LD_LIBRARY_PATH
18041  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18042  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18043  # the default ld.so.conf also contains /usr/contrib/lib and
18044  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18045  # libtool to hard-code these into programs
18046  ;;
18047
18048cygwin* | mingw* | pw32*)
18049  version_type=windows
18050  shrext_cmds=".dll"
18051  need_version=no
18052  need_lib_prefix=no
18053
18054  case $GCC,$host_os in
18055  yes,cygwin* | yes,mingw* | yes,pw32*)
18056    library_names_spec='$libname.dll.a'
18057    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18058    postinstall_cmds='base_file=`basename \${file}`~
18059      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18060      dldir=$destdir/`dirname \$dlpath`~
18061      test -d \$dldir || mkdir -p \$dldir~
18062      $install_prog $dir/$dlname \$dldir/$dlname~
18063      chmod a+x \$dldir/$dlname'
18064    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18065      dlpath=$dir/\$dldll~
18066       $rm \$dlpath'
18067    shlibpath_overrides_runpath=yes
18068
18069    case $host_os in
18070    cygwin*)
18071      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18072      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18073      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18074      ;;
18075    mingw*)
18076      # MinGW DLLs use traditional 'lib' prefix
18077      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18078      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18079      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18080        # It is most probably a Windows format PATH printed by
18081        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18082        # path with ; separators, and with drive letters. We can handle the
18083        # drive letters (cygwin fileutils understands them), so leave them,
18084        # especially as we might pass files found there to a mingw objdump,
18085        # which wouldn't understand a cygwinified path. Ahh.
18086        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18087      else
18088        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18089      fi
18090      ;;
18091    pw32*)
18092      # pw32 DLLs use 'pw' prefix rather than 'lib'
18093      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18094      ;;
18095    esac
18096    ;;
18097
18098  *)
18099    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18100    ;;
18101  esac
18102  dynamic_linker='Win32 ld.exe'
18103  # FIXME: first we should search . and the directory the executable is in
18104  shlibpath_var=PATH
18105  ;;
18106
18107darwin* | rhapsody*)
18108  dynamic_linker="$host_os dyld"
18109  version_type=darwin
18110  need_lib_prefix=no
18111  need_version=no
18112  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18113  soname_spec='${libname}${release}${major}$shared_ext'
18114  shlibpath_overrides_runpath=yes
18115  shlibpath_var=DYLD_LIBRARY_PATH
18116  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18117  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18118  if test "$GCC" = yes; then
18119    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"`
18120  else
18121    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18122  fi
18123  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18124  ;;
18125
18126dgux*)
18127  version_type=linux
18128  need_lib_prefix=no
18129  need_version=no
18130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18131  soname_spec='${libname}${release}${shared_ext}$major'
18132  shlibpath_var=LD_LIBRARY_PATH
18133  ;;
18134
18135freebsd1*)
18136  dynamic_linker=no
18137  ;;
18138
18139kfreebsd*-gnu)
18140  version_type=linux
18141  need_lib_prefix=no
18142  need_version=no
18143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18144  soname_spec='${libname}${release}${shared_ext}$major'
18145  shlibpath_var=LD_LIBRARY_PATH
18146  shlibpath_overrides_runpath=no
18147  hardcode_into_libs=yes
18148  dynamic_linker='GNU ld.so'
18149  ;;
18150
18151freebsd*)
18152  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18153  version_type=freebsd-$objformat
18154  case $version_type in
18155    freebsd-elf*)
18156      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18157      need_version=no
18158      need_lib_prefix=no
18159      ;;
18160    freebsd-*)
18161      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18162      need_version=yes
18163      ;;
18164  esac
18165  shlibpath_var=LD_LIBRARY_PATH
18166  case $host_os in
18167  freebsd2*)
18168    shlibpath_overrides_runpath=yes
18169    ;;
18170  freebsd3.01* | freebsdelf3.01*)
18171    shlibpath_overrides_runpath=yes
18172    hardcode_into_libs=yes
18173    ;;
18174  *) # from 3.2 on
18175    shlibpath_overrides_runpath=no
18176    hardcode_into_libs=yes
18177    ;;
18178  esac
18179  ;;
18180
18181gnu*)
18182  version_type=linux
18183  need_lib_prefix=no
18184  need_version=no
18185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18186  soname_spec='${libname}${release}${shared_ext}$major'
18187  shlibpath_var=LD_LIBRARY_PATH
18188  hardcode_into_libs=yes
18189  ;;
18190
18191hpux9* | hpux10* | hpux11*)
18192  # Give a soname corresponding to the major version so that dld.sl refuses to
18193  # link against other versions.
18194  version_type=sunos
18195  need_lib_prefix=no
18196  need_version=no
18197  case "$host_cpu" in
18198  ia64*)
18199    shrext_cmds='.so'
18200    hardcode_into_libs=yes
18201    dynamic_linker="$host_os dld.so"
18202    shlibpath_var=LD_LIBRARY_PATH
18203    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18204    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18205    soname_spec='${libname}${release}${shared_ext}$major'
18206    if test "X$HPUX_IA64_MODE" = X32; then
18207      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18208    else
18209      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18210    fi
18211    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18212    ;;
18213   hppa*64*)
18214     shrext_cmds='.sl'
18215     hardcode_into_libs=yes
18216     dynamic_linker="$host_os dld.sl"
18217     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18218     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18219     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18220     soname_spec='${libname}${release}${shared_ext}$major'
18221     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18222     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18223     ;;
18224   *)
18225    shrext_cmds='.sl'
18226    dynamic_linker="$host_os dld.sl"
18227    shlibpath_var=SHLIB_PATH
18228    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18229    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18230    soname_spec='${libname}${release}${shared_ext}$major'
18231    ;;
18232  esac
18233  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18234  postinstall_cmds='chmod 555 $lib'
18235  ;;
18236
18237irix5* | irix6* | nonstopux*)
18238  case $host_os in
18239    nonstopux*) version_type=nonstopux ;;
18240    *)
18241	if test "$lt_cv_prog_gnu_ld" = yes; then
18242		version_type=linux
18243	else
18244		version_type=irix
18245	fi ;;
18246  esac
18247  need_lib_prefix=no
18248  need_version=no
18249  soname_spec='${libname}${release}${shared_ext}$major'
18250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18251  case $host_os in
18252  irix5* | nonstopux*)
18253    libsuff= shlibsuff=
18254    ;;
18255  *)
18256    case $LD in # libtool.m4 will add one of these switches to LD
18257    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18258      libsuff= shlibsuff= libmagic=32-bit;;
18259    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18260      libsuff=32 shlibsuff=N32 libmagic=N32;;
18261    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18262      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18263    *) libsuff= shlibsuff= libmagic=never-match;;
18264    esac
18265    ;;
18266  esac
18267  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18268  shlibpath_overrides_runpath=no
18269  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18270  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18271  hardcode_into_libs=yes
18272  ;;
18273
18274# No shared lib support for Linux oldld, aout, or coff.
18275linux*oldld* | linux*aout* | linux*coff*)
18276  dynamic_linker=no
18277  ;;
18278
18279# This must be Linux ELF.
18280linux*)
18281  version_type=linux
18282  need_lib_prefix=no
18283  need_version=no
18284  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18285  soname_spec='${libname}${release}${shared_ext}$major'
18286  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18287  shlibpath_var=LD_LIBRARY_PATH
18288  shlibpath_overrides_runpath=no
18289  # This implies no fast_install, which is unacceptable.
18290  # Some rework will be needed to allow for fast_install
18291  # before this can be enabled.
18292  hardcode_into_libs=yes
18293
18294  # Append ld.so.conf contents to the search path
18295  if test -f /etc/ld.so.conf; then
18296    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18297    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18298  fi
18299
18300  # We used to test for /lib/ld.so.1 and disable shared libraries on
18301  # powerpc, because MkLinux only supported shared libraries with the
18302  # GNU dynamic linker.  Since this was broken with cross compilers,
18303  # most powerpc-linux boxes support dynamic linking these days and
18304  # people can always --disable-shared, the test was removed, and we
18305  # assume the GNU/Linux dynamic linker is in use.
18306  dynamic_linker='GNU/Linux ld.so'
18307  ;;
18308
18309knetbsd*-gnu)
18310  version_type=linux
18311  need_lib_prefix=no
18312  need_version=no
18313  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18314  soname_spec='${libname}${release}${shared_ext}$major'
18315  shlibpath_var=LD_LIBRARY_PATH
18316  shlibpath_overrides_runpath=no
18317  hardcode_into_libs=yes
18318  dynamic_linker='GNU ld.so'
18319  ;;
18320
18321netbsd*)
18322  version_type=sunos
18323  need_lib_prefix=no
18324  need_version=no
18325  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18326    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18327    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18328    dynamic_linker='NetBSD (a.out) ld.so'
18329  else
18330    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18331    soname_spec='${libname}${release}${shared_ext}$major'
18332    dynamic_linker='NetBSD ld.elf_so'
18333  fi
18334  shlibpath_var=LD_LIBRARY_PATH
18335  shlibpath_overrides_runpath=yes
18336  hardcode_into_libs=yes
18337  ;;
18338
18339newsos6)
18340  version_type=linux
18341  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18342  shlibpath_var=LD_LIBRARY_PATH
18343  shlibpath_overrides_runpath=yes
18344  ;;
18345
18346nto-qnx*)
18347  version_type=linux
18348  need_lib_prefix=no
18349  need_version=no
18350  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18351  soname_spec='${libname}${release}${shared_ext}$major'
18352  shlibpath_var=LD_LIBRARY_PATH
18353  shlibpath_overrides_runpath=yes
18354  ;;
18355
18356openbsd*)
18357  version_type=sunos
18358  need_lib_prefix=no
18359  need_version=no
18360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18361  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18362  shlibpath_var=LD_LIBRARY_PATH
18363  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18364    case $host_os in
18365      openbsd2.[89] | openbsd2.[89].*)
18366	shlibpath_overrides_runpath=no
18367	;;
18368      *)
18369	shlibpath_overrides_runpath=yes
18370	;;
18371      esac
18372  else
18373    shlibpath_overrides_runpath=yes
18374  fi
18375  ;;
18376
18377os2*)
18378  libname_spec='$name'
18379  shrext_cmds=".dll"
18380  need_lib_prefix=no
18381  library_names_spec='$libname${shared_ext} $libname.a'
18382  dynamic_linker='OS/2 ld.exe'
18383  shlibpath_var=LIBPATH
18384  ;;
18385
18386osf3* | osf4* | osf5*)
18387  version_type=osf
18388  need_lib_prefix=no
18389  need_version=no
18390  soname_spec='${libname}${release}${shared_ext}$major'
18391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18392  shlibpath_var=LD_LIBRARY_PATH
18393  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18394  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18395  ;;
18396
18397sco3.2v5*)
18398  version_type=osf
18399  soname_spec='${libname}${release}${shared_ext}$major'
18400  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18401  shlibpath_var=LD_LIBRARY_PATH
18402  ;;
18403
18404solaris*)
18405  version_type=linux
18406  need_lib_prefix=no
18407  need_version=no
18408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18409  soname_spec='${libname}${release}${shared_ext}$major'
18410  shlibpath_var=LD_LIBRARY_PATH
18411  shlibpath_overrides_runpath=yes
18412  hardcode_into_libs=yes
18413  # ldd complains unless libraries are executable
18414  postinstall_cmds='chmod +x $lib'
18415  ;;
18416
18417sunos4*)
18418  version_type=sunos
18419  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18420  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18421  shlibpath_var=LD_LIBRARY_PATH
18422  shlibpath_overrides_runpath=yes
18423  if test "$with_gnu_ld" = yes; then
18424    need_lib_prefix=no
18425  fi
18426  need_version=yes
18427  ;;
18428
18429sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18430  version_type=linux
18431  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18432  soname_spec='${libname}${release}${shared_ext}$major'
18433  shlibpath_var=LD_LIBRARY_PATH
18434  case $host_vendor in
18435    sni)
18436      shlibpath_overrides_runpath=no
18437      need_lib_prefix=no
18438      export_dynamic_flag_spec='${wl}-Blargedynsym'
18439      runpath_var=LD_RUN_PATH
18440      ;;
18441    siemens)
18442      need_lib_prefix=no
18443      ;;
18444    motorola)
18445      need_lib_prefix=no
18446      need_version=no
18447      shlibpath_overrides_runpath=no
18448      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18449      ;;
18450  esac
18451  ;;
18452
18453sysv4*MP*)
18454  if test -d /usr/nec ;then
18455    version_type=linux
18456    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18457    soname_spec='$libname${shared_ext}.$major'
18458    shlibpath_var=LD_LIBRARY_PATH
18459  fi
18460  ;;
18461
18462uts4*)
18463  version_type=linux
18464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18465  soname_spec='${libname}${release}${shared_ext}$major'
18466  shlibpath_var=LD_LIBRARY_PATH
18467  ;;
18468
18469*)
18470  dynamic_linker=no
18471  ;;
18472esac
18473echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18474echo "${ECHO_T}$dynamic_linker" >&6
18475test "$dynamic_linker" = no && can_build_shared=no
18476
18477echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18478echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18479hardcode_action_GCJ=
18480if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18481   test -n "$runpath_var_GCJ" || \
18482   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18483
18484  # We can hardcode non-existant directories.
18485  if test "$hardcode_direct_GCJ" != no &&
18486     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18487     # have to relink, otherwise we might link with an installed library
18488     # when we should be linking with a yet-to-be-installed one
18489     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18490     test "$hardcode_minus_L_GCJ" != no; then
18491    # Linking always hardcodes the temporary library directory.
18492    hardcode_action_GCJ=relink
18493  else
18494    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18495    hardcode_action_GCJ=immediate
18496  fi
18497else
18498  # We cannot hardcode anything, or else we can only hardcode existing
18499  # directories.
18500  hardcode_action_GCJ=unsupported
18501fi
18502echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18503echo "${ECHO_T}$hardcode_action_GCJ" >&6
18504
18505if test "$hardcode_action_GCJ" = relink; then
18506  # Fast installation is not supported
18507  enable_fast_install=no
18508elif test "$shlibpath_overrides_runpath" = yes ||
18509     test "$enable_shared" = no; then
18510  # Fast installation is not necessary
18511  enable_fast_install=needless
18512fi
18513
18514striplib=
18515old_striplib=
18516echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18517echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18518if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18519  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18520  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18521  echo "$as_me:$LINENO: result: yes" >&5
18522echo "${ECHO_T}yes" >&6
18523else
18524# FIXME - insert some real tests, host_os isn't really good enough
18525  case $host_os in
18526   darwin*)
18527       if test -n "$STRIP" ; then
18528         striplib="$STRIP -x"
18529         echo "$as_me:$LINENO: result: yes" >&5
18530echo "${ECHO_T}yes" >&6
18531       else
18532  echo "$as_me:$LINENO: result: no" >&5
18533echo "${ECHO_T}no" >&6
18534fi
18535       ;;
18536   *)
18537  echo "$as_me:$LINENO: result: no" >&5
18538echo "${ECHO_T}no" >&6
18539    ;;
18540  esac
18541fi
18542
18543if test "x$enable_dlopen" != xyes; then
18544  enable_dlopen=unknown
18545  enable_dlopen_self=unknown
18546  enable_dlopen_self_static=unknown
18547else
18548  lt_cv_dlopen=no
18549  lt_cv_dlopen_libs=
18550
18551  case $host_os in
18552  beos*)
18553    lt_cv_dlopen="load_add_on"
18554    lt_cv_dlopen_libs=
18555    lt_cv_dlopen_self=yes
18556    ;;
18557
18558  mingw* | pw32*)
18559    lt_cv_dlopen="LoadLibrary"
18560    lt_cv_dlopen_libs=
18561   ;;
18562
18563  cygwin*)
18564    lt_cv_dlopen="dlopen"
18565    lt_cv_dlopen_libs=
18566   ;;
18567
18568  darwin*)
18569  # if libdl is installed we need to link against it
18570    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18571echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18572if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18573  echo $ECHO_N "(cached) $ECHO_C" >&6
18574else
18575  ac_check_lib_save_LIBS=$LIBS
18576LIBS="-ldl  $LIBS"
18577cat >conftest.$ac_ext <<_ACEOF
18578/* confdefs.h.  */
18579_ACEOF
18580cat confdefs.h >>conftest.$ac_ext
18581cat >>conftest.$ac_ext <<_ACEOF
18582/* end confdefs.h.  */
18583
18584/* Override any gcc2 internal prototype to avoid an error.  */
18585#ifdef __cplusplus
18586extern "C"
18587#endif
18588/* We use char because int might match the return type of a gcc2
18589   builtin and then its argument prototype would still apply.  */
18590char dlopen ();
18591int
18592main ()
18593{
18594dlopen ();
18595  ;
18596  return 0;
18597}
18598_ACEOF
18599rm -f conftest.$ac_objext conftest$ac_exeext
18600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18601  (eval $ac_link) 2>conftest.er1
18602  ac_status=$?
18603  grep -v '^ *+' conftest.er1 >conftest.err
18604  rm -f conftest.er1
18605  cat conftest.err >&5
18606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607  (exit $ac_status); } &&
18608	 { ac_try='test -z "$ac_c_werror_flag"
18609			 || test ! -s conftest.err'
18610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611  (eval $ac_try) 2>&5
18612  ac_status=$?
18613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614  (exit $ac_status); }; } &&
18615	 { ac_try='test -s conftest$ac_exeext'
18616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18617  (eval $ac_try) 2>&5
18618  ac_status=$?
18619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620  (exit $ac_status); }; }; then
18621  ac_cv_lib_dl_dlopen=yes
18622else
18623  echo "$as_me: failed program was:" >&5
18624sed 's/^/| /' conftest.$ac_ext >&5
18625
18626ac_cv_lib_dl_dlopen=no
18627fi
18628rm -f conftest.err conftest.$ac_objext \
18629      conftest$ac_exeext conftest.$ac_ext
18630LIBS=$ac_check_lib_save_LIBS
18631fi
18632echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18633echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18634if test $ac_cv_lib_dl_dlopen = yes; then
18635  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18636else
18637
18638    lt_cv_dlopen="dyld"
18639    lt_cv_dlopen_libs=
18640    lt_cv_dlopen_self=yes
18641
18642fi
18643
18644   ;;
18645
18646  *)
18647    echo "$as_me:$LINENO: checking for shl_load" >&5
18648echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18649if test "${ac_cv_func_shl_load+set}" = set; then
18650  echo $ECHO_N "(cached) $ECHO_C" >&6
18651else
18652  cat >conftest.$ac_ext <<_ACEOF
18653/* confdefs.h.  */
18654_ACEOF
18655cat confdefs.h >>conftest.$ac_ext
18656cat >>conftest.$ac_ext <<_ACEOF
18657/* end confdefs.h.  */
18658/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18659   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18660#define shl_load innocuous_shl_load
18661
18662/* System header to define __stub macros and hopefully few prototypes,
18663    which can conflict with char shl_load (); below.
18664    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18665    <limits.h> exists even on freestanding compilers.  */
18666
18667#ifdef __STDC__
18668# include <limits.h>
18669#else
18670# include <assert.h>
18671#endif
18672
18673#undef shl_load
18674
18675/* Override any gcc2 internal prototype to avoid an error.  */
18676#ifdef __cplusplus
18677extern "C"
18678{
18679#endif
18680/* We use char because int might match the return type of a gcc2
18681   builtin and then its argument prototype would still apply.  */
18682char shl_load ();
18683/* The GNU C library defines this for functions which it implements
18684    to always fail with ENOSYS.  Some functions are actually named
18685    something starting with __ and the normal name is an alias.  */
18686#if defined (__stub_shl_load) || defined (__stub___shl_load)
18687choke me
18688#else
18689char (*f) () = shl_load;
18690#endif
18691#ifdef __cplusplus
18692}
18693#endif
18694
18695int
18696main ()
18697{
18698return f != shl_load;
18699  ;
18700  return 0;
18701}
18702_ACEOF
18703rm -f conftest.$ac_objext conftest$ac_exeext
18704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18705  (eval $ac_link) 2>conftest.er1
18706  ac_status=$?
18707  grep -v '^ *+' conftest.er1 >conftest.err
18708  rm -f conftest.er1
18709  cat conftest.err >&5
18710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711  (exit $ac_status); } &&
18712	 { ac_try='test -z "$ac_c_werror_flag"
18713			 || test ! -s conftest.err'
18714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18715  (eval $ac_try) 2>&5
18716  ac_status=$?
18717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718  (exit $ac_status); }; } &&
18719	 { ac_try='test -s conftest$ac_exeext'
18720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18721  (eval $ac_try) 2>&5
18722  ac_status=$?
18723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724  (exit $ac_status); }; }; then
18725  ac_cv_func_shl_load=yes
18726else
18727  echo "$as_me: failed program was:" >&5
18728sed 's/^/| /' conftest.$ac_ext >&5
18729
18730ac_cv_func_shl_load=no
18731fi
18732rm -f conftest.err conftest.$ac_objext \
18733      conftest$ac_exeext conftest.$ac_ext
18734fi
18735echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18736echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18737if test $ac_cv_func_shl_load = yes; then
18738  lt_cv_dlopen="shl_load"
18739else
18740  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18741echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18742if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18743  echo $ECHO_N "(cached) $ECHO_C" >&6
18744else
18745  ac_check_lib_save_LIBS=$LIBS
18746LIBS="-ldld  $LIBS"
18747cat >conftest.$ac_ext <<_ACEOF
18748/* confdefs.h.  */
18749_ACEOF
18750cat confdefs.h >>conftest.$ac_ext
18751cat >>conftest.$ac_ext <<_ACEOF
18752/* end confdefs.h.  */
18753
18754/* Override any gcc2 internal prototype to avoid an error.  */
18755#ifdef __cplusplus
18756extern "C"
18757#endif
18758/* We use char because int might match the return type of a gcc2
18759   builtin and then its argument prototype would still apply.  */
18760char shl_load ();
18761int
18762main ()
18763{
18764shl_load ();
18765  ;
18766  return 0;
18767}
18768_ACEOF
18769rm -f conftest.$ac_objext conftest$ac_exeext
18770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18771  (eval $ac_link) 2>conftest.er1
18772  ac_status=$?
18773  grep -v '^ *+' conftest.er1 >conftest.err
18774  rm -f conftest.er1
18775  cat conftest.err >&5
18776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777  (exit $ac_status); } &&
18778	 { ac_try='test -z "$ac_c_werror_flag"
18779			 || test ! -s conftest.err'
18780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781  (eval $ac_try) 2>&5
18782  ac_status=$?
18783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784  (exit $ac_status); }; } &&
18785	 { ac_try='test -s conftest$ac_exeext'
18786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18787  (eval $ac_try) 2>&5
18788  ac_status=$?
18789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790  (exit $ac_status); }; }; then
18791  ac_cv_lib_dld_shl_load=yes
18792else
18793  echo "$as_me: failed program was:" >&5
18794sed 's/^/| /' conftest.$ac_ext >&5
18795
18796ac_cv_lib_dld_shl_load=no
18797fi
18798rm -f conftest.err conftest.$ac_objext \
18799      conftest$ac_exeext conftest.$ac_ext
18800LIBS=$ac_check_lib_save_LIBS
18801fi
18802echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18803echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18804if test $ac_cv_lib_dld_shl_load = yes; then
18805  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18806else
18807  echo "$as_me:$LINENO: checking for dlopen" >&5
18808echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18809if test "${ac_cv_func_dlopen+set}" = set; then
18810  echo $ECHO_N "(cached) $ECHO_C" >&6
18811else
18812  cat >conftest.$ac_ext <<_ACEOF
18813/* confdefs.h.  */
18814_ACEOF
18815cat confdefs.h >>conftest.$ac_ext
18816cat >>conftest.$ac_ext <<_ACEOF
18817/* end confdefs.h.  */
18818/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18819   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18820#define dlopen innocuous_dlopen
18821
18822/* System header to define __stub macros and hopefully few prototypes,
18823    which can conflict with char dlopen (); below.
18824    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18825    <limits.h> exists even on freestanding compilers.  */
18826
18827#ifdef __STDC__
18828# include <limits.h>
18829#else
18830# include <assert.h>
18831#endif
18832
18833#undef dlopen
18834
18835/* Override any gcc2 internal prototype to avoid an error.  */
18836#ifdef __cplusplus
18837extern "C"
18838{
18839#endif
18840/* We use char because int might match the return type of a gcc2
18841   builtin and then its argument prototype would still apply.  */
18842char dlopen ();
18843/* The GNU C library defines this for functions which it implements
18844    to always fail with ENOSYS.  Some functions are actually named
18845    something starting with __ and the normal name is an alias.  */
18846#if defined (__stub_dlopen) || defined (__stub___dlopen)
18847choke me
18848#else
18849char (*f) () = dlopen;
18850#endif
18851#ifdef __cplusplus
18852}
18853#endif
18854
18855int
18856main ()
18857{
18858return f != dlopen;
18859  ;
18860  return 0;
18861}
18862_ACEOF
18863rm -f conftest.$ac_objext conftest$ac_exeext
18864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18865  (eval $ac_link) 2>conftest.er1
18866  ac_status=$?
18867  grep -v '^ *+' conftest.er1 >conftest.err
18868  rm -f conftest.er1
18869  cat conftest.err >&5
18870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871  (exit $ac_status); } &&
18872	 { ac_try='test -z "$ac_c_werror_flag"
18873			 || test ! -s conftest.err'
18874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18875  (eval $ac_try) 2>&5
18876  ac_status=$?
18877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878  (exit $ac_status); }; } &&
18879	 { ac_try='test -s conftest$ac_exeext'
18880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881  (eval $ac_try) 2>&5
18882  ac_status=$?
18883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884  (exit $ac_status); }; }; then
18885  ac_cv_func_dlopen=yes
18886else
18887  echo "$as_me: failed program was:" >&5
18888sed 's/^/| /' conftest.$ac_ext >&5
18889
18890ac_cv_func_dlopen=no
18891fi
18892rm -f conftest.err conftest.$ac_objext \
18893      conftest$ac_exeext conftest.$ac_ext
18894fi
18895echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18896echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18897if test $ac_cv_func_dlopen = yes; then
18898  lt_cv_dlopen="dlopen"
18899else
18900  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18901echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18902if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18903  echo $ECHO_N "(cached) $ECHO_C" >&6
18904else
18905  ac_check_lib_save_LIBS=$LIBS
18906LIBS="-ldl  $LIBS"
18907cat >conftest.$ac_ext <<_ACEOF
18908/* confdefs.h.  */
18909_ACEOF
18910cat confdefs.h >>conftest.$ac_ext
18911cat >>conftest.$ac_ext <<_ACEOF
18912/* end confdefs.h.  */
18913
18914/* Override any gcc2 internal prototype to avoid an error.  */
18915#ifdef __cplusplus
18916extern "C"
18917#endif
18918/* We use char because int might match the return type of a gcc2
18919   builtin and then its argument prototype would still apply.  */
18920char dlopen ();
18921int
18922main ()
18923{
18924dlopen ();
18925  ;
18926  return 0;
18927}
18928_ACEOF
18929rm -f conftest.$ac_objext conftest$ac_exeext
18930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18931  (eval $ac_link) 2>conftest.er1
18932  ac_status=$?
18933  grep -v '^ *+' conftest.er1 >conftest.err
18934  rm -f conftest.er1
18935  cat conftest.err >&5
18936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937  (exit $ac_status); } &&
18938	 { ac_try='test -z "$ac_c_werror_flag"
18939			 || test ! -s conftest.err'
18940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18941  (eval $ac_try) 2>&5
18942  ac_status=$?
18943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944  (exit $ac_status); }; } &&
18945	 { ac_try='test -s conftest$ac_exeext'
18946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18947  (eval $ac_try) 2>&5
18948  ac_status=$?
18949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950  (exit $ac_status); }; }; then
18951  ac_cv_lib_dl_dlopen=yes
18952else
18953  echo "$as_me: failed program was:" >&5
18954sed 's/^/| /' conftest.$ac_ext >&5
18955
18956ac_cv_lib_dl_dlopen=no
18957fi
18958rm -f conftest.err conftest.$ac_objext \
18959      conftest$ac_exeext conftest.$ac_ext
18960LIBS=$ac_check_lib_save_LIBS
18961fi
18962echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18963echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18964if test $ac_cv_lib_dl_dlopen = yes; then
18965  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18966else
18967  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18968echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18969if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18970  echo $ECHO_N "(cached) $ECHO_C" >&6
18971else
18972  ac_check_lib_save_LIBS=$LIBS
18973LIBS="-lsvld  $LIBS"
18974cat >conftest.$ac_ext <<_ACEOF
18975/* confdefs.h.  */
18976_ACEOF
18977cat confdefs.h >>conftest.$ac_ext
18978cat >>conftest.$ac_ext <<_ACEOF
18979/* end confdefs.h.  */
18980
18981/* Override any gcc2 internal prototype to avoid an error.  */
18982#ifdef __cplusplus
18983extern "C"
18984#endif
18985/* We use char because int might match the return type of a gcc2
18986   builtin and then its argument prototype would still apply.  */
18987char dlopen ();
18988int
18989main ()
18990{
18991dlopen ();
18992  ;
18993  return 0;
18994}
18995_ACEOF
18996rm -f conftest.$ac_objext conftest$ac_exeext
18997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18998  (eval $ac_link) 2>conftest.er1
18999  ac_status=$?
19000  grep -v '^ *+' conftest.er1 >conftest.err
19001  rm -f conftest.er1
19002  cat conftest.err >&5
19003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004  (exit $ac_status); } &&
19005	 { ac_try='test -z "$ac_c_werror_flag"
19006			 || test ! -s conftest.err'
19007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008  (eval $ac_try) 2>&5
19009  ac_status=$?
19010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011  (exit $ac_status); }; } &&
19012	 { ac_try='test -s conftest$ac_exeext'
19013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19014  (eval $ac_try) 2>&5
19015  ac_status=$?
19016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017  (exit $ac_status); }; }; then
19018  ac_cv_lib_svld_dlopen=yes
19019else
19020  echo "$as_me: failed program was:" >&5
19021sed 's/^/| /' conftest.$ac_ext >&5
19022
19023ac_cv_lib_svld_dlopen=no
19024fi
19025rm -f conftest.err conftest.$ac_objext \
19026      conftest$ac_exeext conftest.$ac_ext
19027LIBS=$ac_check_lib_save_LIBS
19028fi
19029echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19030echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19031if test $ac_cv_lib_svld_dlopen = yes; then
19032  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19033else
19034  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19035echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19036if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19037  echo $ECHO_N "(cached) $ECHO_C" >&6
19038else
19039  ac_check_lib_save_LIBS=$LIBS
19040LIBS="-ldld  $LIBS"
19041cat >conftest.$ac_ext <<_ACEOF
19042/* confdefs.h.  */
19043_ACEOF
19044cat confdefs.h >>conftest.$ac_ext
19045cat >>conftest.$ac_ext <<_ACEOF
19046/* end confdefs.h.  */
19047
19048/* Override any gcc2 internal prototype to avoid an error.  */
19049#ifdef __cplusplus
19050extern "C"
19051#endif
19052/* We use char because int might match the return type of a gcc2
19053   builtin and then its argument prototype would still apply.  */
19054char dld_link ();
19055int
19056main ()
19057{
19058dld_link ();
19059  ;
19060  return 0;
19061}
19062_ACEOF
19063rm -f conftest.$ac_objext conftest$ac_exeext
19064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19065  (eval $ac_link) 2>conftest.er1
19066  ac_status=$?
19067  grep -v '^ *+' conftest.er1 >conftest.err
19068  rm -f conftest.er1
19069  cat conftest.err >&5
19070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071  (exit $ac_status); } &&
19072	 { ac_try='test -z "$ac_c_werror_flag"
19073			 || test ! -s conftest.err'
19074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075  (eval $ac_try) 2>&5
19076  ac_status=$?
19077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078  (exit $ac_status); }; } &&
19079	 { ac_try='test -s conftest$ac_exeext'
19080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081  (eval $ac_try) 2>&5
19082  ac_status=$?
19083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084  (exit $ac_status); }; }; then
19085  ac_cv_lib_dld_dld_link=yes
19086else
19087  echo "$as_me: failed program was:" >&5
19088sed 's/^/| /' conftest.$ac_ext >&5
19089
19090ac_cv_lib_dld_dld_link=no
19091fi
19092rm -f conftest.err conftest.$ac_objext \
19093      conftest$ac_exeext conftest.$ac_ext
19094LIBS=$ac_check_lib_save_LIBS
19095fi
19096echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19097echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19098if test $ac_cv_lib_dld_dld_link = yes; then
19099  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19100fi
19101
19102
19103fi
19104
19105
19106fi
19107
19108
19109fi
19110
19111
19112fi
19113
19114
19115fi
19116
19117    ;;
19118  esac
19119
19120  if test "x$lt_cv_dlopen" != xno; then
19121    enable_dlopen=yes
19122  else
19123    enable_dlopen=no
19124  fi
19125
19126  case $lt_cv_dlopen in
19127  dlopen)
19128    save_CPPFLAGS="$CPPFLAGS"
19129    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19130
19131    save_LDFLAGS="$LDFLAGS"
19132    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19133
19134    save_LIBS="$LIBS"
19135    LIBS="$lt_cv_dlopen_libs $LIBS"
19136
19137    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19138echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19139if test "${lt_cv_dlopen_self+set}" = set; then
19140  echo $ECHO_N "(cached) $ECHO_C" >&6
19141else
19142  	  if test "$cross_compiling" = yes; then :
19143  lt_cv_dlopen_self=cross
19144else
19145  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19146  lt_status=$lt_dlunknown
19147  cat > conftest.$ac_ext <<EOF
19148#line 19148 "configure"
19149#include "confdefs.h"
19150
19151#if HAVE_DLFCN_H
19152#include <dlfcn.h>
19153#endif
19154
19155#include <stdio.h>
19156
19157#ifdef RTLD_GLOBAL
19158#  define LT_DLGLOBAL		RTLD_GLOBAL
19159#else
19160#  ifdef DL_GLOBAL
19161#    define LT_DLGLOBAL		DL_GLOBAL
19162#  else
19163#    define LT_DLGLOBAL		0
19164#  endif
19165#endif
19166
19167/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19168   find out it does not work in some platform. */
19169#ifndef LT_DLLAZY_OR_NOW
19170#  ifdef RTLD_LAZY
19171#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19172#  else
19173#    ifdef DL_LAZY
19174#      define LT_DLLAZY_OR_NOW		DL_LAZY
19175#    else
19176#      ifdef RTLD_NOW
19177#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19178#      else
19179#        ifdef DL_NOW
19180#          define LT_DLLAZY_OR_NOW	DL_NOW
19181#        else
19182#          define LT_DLLAZY_OR_NOW	0
19183#        endif
19184#      endif
19185#    endif
19186#  endif
19187#endif
19188
19189#ifdef __cplusplus
19190extern "C" void exit (int);
19191#endif
19192
19193void fnord() { int i=42;}
19194int main ()
19195{
19196  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19197  int status = $lt_dlunknown;
19198
19199  if (self)
19200    {
19201      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19202      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19203      /* dlclose (self); */
19204    }
19205
19206    exit (status);
19207}
19208EOF
19209  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19210  (eval $ac_link) 2>&5
19211  ac_status=$?
19212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19214    (./conftest; exit; ) 2>/dev/null
19215    lt_status=$?
19216    case x$lt_status in
19217      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19218      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19219      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19220    esac
19221  else :
19222    # compilation failed
19223    lt_cv_dlopen_self=no
19224  fi
19225fi
19226rm -fr conftest*
19227
19228
19229fi
19230echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19231echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19232
19233    if test "x$lt_cv_dlopen_self" = xyes; then
19234      LDFLAGS="$LDFLAGS $link_static_flag"
19235      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19236echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19237if test "${lt_cv_dlopen_self_static+set}" = set; then
19238  echo $ECHO_N "(cached) $ECHO_C" >&6
19239else
19240  	  if test "$cross_compiling" = yes; then :
19241  lt_cv_dlopen_self_static=cross
19242else
19243  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19244  lt_status=$lt_dlunknown
19245  cat > conftest.$ac_ext <<EOF
19246#line 19246 "configure"
19247#include "confdefs.h"
19248
19249#if HAVE_DLFCN_H
19250#include <dlfcn.h>
19251#endif
19252
19253#include <stdio.h>
19254
19255#ifdef RTLD_GLOBAL
19256#  define LT_DLGLOBAL		RTLD_GLOBAL
19257#else
19258#  ifdef DL_GLOBAL
19259#    define LT_DLGLOBAL		DL_GLOBAL
19260#  else
19261#    define LT_DLGLOBAL		0
19262#  endif
19263#endif
19264
19265/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19266   find out it does not work in some platform. */
19267#ifndef LT_DLLAZY_OR_NOW
19268#  ifdef RTLD_LAZY
19269#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19270#  else
19271#    ifdef DL_LAZY
19272#      define LT_DLLAZY_OR_NOW		DL_LAZY
19273#    else
19274#      ifdef RTLD_NOW
19275#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19276#      else
19277#        ifdef DL_NOW
19278#          define LT_DLLAZY_OR_NOW	DL_NOW
19279#        else
19280#          define LT_DLLAZY_OR_NOW	0
19281#        endif
19282#      endif
19283#    endif
19284#  endif
19285#endif
19286
19287#ifdef __cplusplus
19288extern "C" void exit (int);
19289#endif
19290
19291void fnord() { int i=42;}
19292int main ()
19293{
19294  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19295  int status = $lt_dlunknown;
19296
19297  if (self)
19298    {
19299      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19300      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19301      /* dlclose (self); */
19302    }
19303
19304    exit (status);
19305}
19306EOF
19307  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19308  (eval $ac_link) 2>&5
19309  ac_status=$?
19310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19312    (./conftest; exit; ) 2>/dev/null
19313    lt_status=$?
19314    case x$lt_status in
19315      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19316      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19317      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19318    esac
19319  else :
19320    # compilation failed
19321    lt_cv_dlopen_self_static=no
19322  fi
19323fi
19324rm -fr conftest*
19325
19326
19327fi
19328echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19329echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19330    fi
19331
19332    CPPFLAGS="$save_CPPFLAGS"
19333    LDFLAGS="$save_LDFLAGS"
19334    LIBS="$save_LIBS"
19335    ;;
19336  esac
19337
19338  case $lt_cv_dlopen_self in
19339  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19340  *) enable_dlopen_self=unknown ;;
19341  esac
19342
19343  case $lt_cv_dlopen_self_static in
19344  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19345  *) enable_dlopen_self_static=unknown ;;
19346  esac
19347fi
19348
19349
19350# The else clause should only fire when bootstrapping the
19351# libtool distribution, otherwise you forgot to ship ltmain.sh
19352# with your package, and you will get complaints that there are
19353# no rules to generate ltmain.sh.
19354if test -f "$ltmain"; then
19355  # See if we are running on zsh, and set the options which allow our commands through
19356  # without removal of \ escapes.
19357  if test -n "${ZSH_VERSION+set}" ; then
19358    setopt NO_GLOB_SUBST
19359  fi
19360  # Now quote all the things that may contain metacharacters while being
19361  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19362  # variables and quote the copies for generation of the libtool script.
19363  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19364    SED SHELL STRIP \
19365    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19366    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19367    deplibs_check_method reload_flag reload_cmds need_locks \
19368    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19369    lt_cv_sys_global_symbol_to_c_name_address \
19370    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19371    old_postinstall_cmds old_postuninstall_cmds \
19372    compiler_GCJ \
19373    CC_GCJ \
19374    LD_GCJ \
19375    lt_prog_compiler_wl_GCJ \
19376    lt_prog_compiler_pic_GCJ \
19377    lt_prog_compiler_static_GCJ \
19378    lt_prog_compiler_no_builtin_flag_GCJ \
19379    export_dynamic_flag_spec_GCJ \
19380    thread_safe_flag_spec_GCJ \
19381    whole_archive_flag_spec_GCJ \
19382    enable_shared_with_static_runtimes_GCJ \
19383    old_archive_cmds_GCJ \
19384    old_archive_from_new_cmds_GCJ \
19385    predep_objects_GCJ \
19386    postdep_objects_GCJ \
19387    predeps_GCJ \
19388    postdeps_GCJ \
19389    compiler_lib_search_path_GCJ \
19390    archive_cmds_GCJ \
19391    archive_expsym_cmds_GCJ \
19392    postinstall_cmds_GCJ \
19393    postuninstall_cmds_GCJ \
19394    old_archive_from_expsyms_cmds_GCJ \
19395    allow_undefined_flag_GCJ \
19396    no_undefined_flag_GCJ \
19397    export_symbols_cmds_GCJ \
19398    hardcode_libdir_flag_spec_GCJ \
19399    hardcode_libdir_flag_spec_ld_GCJ \
19400    hardcode_libdir_separator_GCJ \
19401    hardcode_automatic_GCJ \
19402    module_cmds_GCJ \
19403    module_expsym_cmds_GCJ \
19404    lt_cv_prog_compiler_c_o_GCJ \
19405    exclude_expsyms_GCJ \
19406    include_expsyms_GCJ; do
19407
19408    case $var in
19409    old_archive_cmds_GCJ | \
19410    old_archive_from_new_cmds_GCJ | \
19411    archive_cmds_GCJ | \
19412    archive_expsym_cmds_GCJ | \
19413    module_cmds_GCJ | \
19414    module_expsym_cmds_GCJ | \
19415    old_archive_from_expsyms_cmds_GCJ | \
19416    export_symbols_cmds_GCJ | \
19417    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19418    postinstall_cmds | postuninstall_cmds | \
19419    old_postinstall_cmds | old_postuninstall_cmds | \
19420    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19421      # Double-quote double-evaled strings.
19422      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19423      ;;
19424    *)
19425      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19426      ;;
19427    esac
19428  done
19429
19430  case $lt_echo in
19431  *'\$0 --fallback-echo"')
19432    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19433    ;;
19434  esac
19435
19436cfgfile="$ofile"
19437
19438  cat <<__EOF__ >> "$cfgfile"
19439# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19440
19441# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19442
19443# Shell to use when invoking shell scripts.
19444SHELL=$lt_SHELL
19445
19446# Whether or not to build shared libraries.
19447build_libtool_libs=$enable_shared
19448
19449# Whether or not to build static libraries.
19450build_old_libs=$enable_static
19451
19452# Whether or not to add -lc for building shared libraries.
19453build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19454
19455# Whether or not to disallow shared libs when runtime libs are static
19456allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19457
19458# Whether or not to optimize for fast installation.
19459fast_install=$enable_fast_install
19460
19461# The host system.
19462host_alias=$host_alias
19463host=$host
19464
19465# An echo program that does not interpret backslashes.
19466echo=$lt_echo
19467
19468# The archiver.
19469AR=$lt_AR
19470AR_FLAGS=$lt_AR_FLAGS
19471
19472# A C compiler.
19473LTCC=$lt_LTCC
19474
19475# A language-specific compiler.
19476CC=$lt_compiler_GCJ
19477
19478# Is the compiler the GNU C compiler?
19479with_gcc=$GCC_GCJ
19480
19481# An ERE matcher.
19482EGREP=$lt_EGREP
19483
19484# The linker used to build libraries.
19485LD=$lt_LD_GCJ
19486
19487# Whether we need hard or soft links.
19488LN_S=$lt_LN_S
19489
19490# A BSD-compatible nm program.
19491NM=$lt_NM
19492
19493# A symbol stripping program
19494STRIP=$lt_STRIP
19495
19496# Used to examine libraries when file_magic_cmd begins "file"
19497MAGIC_CMD=$MAGIC_CMD
19498
19499# Used on cygwin: DLL creation program.
19500DLLTOOL="$DLLTOOL"
19501
19502# Used on cygwin: object dumper.
19503OBJDUMP="$OBJDUMP"
19504
19505# Used on cygwin: assembler.
19506AS="$AS"
19507
19508# The name of the directory that contains temporary libtool files.
19509objdir=$objdir
19510
19511# How to create reloadable object files.
19512reload_flag=$lt_reload_flag
19513reload_cmds=$lt_reload_cmds
19514
19515# How to pass a linker flag through the compiler.
19516wl=$lt_lt_prog_compiler_wl_GCJ
19517
19518# Object file suffix (normally "o").
19519objext="$ac_objext"
19520
19521# Old archive suffix (normally "a").
19522libext="$libext"
19523
19524# Shared library suffix (normally ".so").
19525shrext_cmds='$shrext_cmds'
19526
19527# Executable file suffix (normally "").
19528exeext="$exeext"
19529
19530# Additional compiler flags for building library objects.
19531pic_flag=$lt_lt_prog_compiler_pic_GCJ
19532pic_mode=$pic_mode
19533
19534# What is the maximum length of a command?
19535max_cmd_len=$lt_cv_sys_max_cmd_len
19536
19537# Does compiler simultaneously support -c and -o options?
19538compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19539
19540# Must we lock files when doing compilation ?
19541need_locks=$lt_need_locks
19542
19543# Do we need the lib prefix for modules?
19544need_lib_prefix=$need_lib_prefix
19545
19546# Do we need a version for libraries?
19547need_version=$need_version
19548
19549# Whether dlopen is supported.
19550dlopen_support=$enable_dlopen
19551
19552# Whether dlopen of programs is supported.
19553dlopen_self=$enable_dlopen_self
19554
19555# Whether dlopen of statically linked programs is supported.
19556dlopen_self_static=$enable_dlopen_self_static
19557
19558# Compiler flag to prevent dynamic linking.
19559link_static_flag=$lt_lt_prog_compiler_static_GCJ
19560
19561# Compiler flag to turn off builtin functions.
19562no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19563
19564# Compiler flag to allow reflexive dlopens.
19565export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19566
19567# Compiler flag to generate shared objects directly from archives.
19568whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19569
19570# Compiler flag to generate thread-safe objects.
19571thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19572
19573# Library versioning type.
19574version_type=$version_type
19575
19576# Format of library name prefix.
19577libname_spec=$lt_libname_spec
19578
19579# List of archive names.  First name is the real one, the rest are links.
19580# The last name is the one that the linker finds with -lNAME.
19581library_names_spec=$lt_library_names_spec
19582
19583# The coded name of the library, if different from the real name.
19584soname_spec=$lt_soname_spec
19585
19586# Commands used to build and install an old-style archive.
19587RANLIB=$lt_RANLIB
19588old_archive_cmds=$lt_old_archive_cmds_GCJ
19589old_postinstall_cmds=$lt_old_postinstall_cmds
19590old_postuninstall_cmds=$lt_old_postuninstall_cmds
19591
19592# Create an old-style archive from a shared archive.
19593old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19594
19595# Create a temporary old-style archive to link instead of a shared archive.
19596old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19597
19598# Commands used to build and install a shared archive.
19599archive_cmds=$lt_archive_cmds_GCJ
19600archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19601postinstall_cmds=$lt_postinstall_cmds
19602postuninstall_cmds=$lt_postuninstall_cmds
19603
19604# Commands used to build a loadable module (assumed same as above if empty)
19605module_cmds=$lt_module_cmds_GCJ
19606module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19607
19608# Commands to strip libraries.
19609old_striplib=$lt_old_striplib
19610striplib=$lt_striplib
19611
19612# Dependencies to place before the objects being linked to create a
19613# shared library.
19614predep_objects=$lt_predep_objects_GCJ
19615
19616# Dependencies to place after the objects being linked to create a
19617# shared library.
19618postdep_objects=$lt_postdep_objects_GCJ
19619
19620# Dependencies to place before the objects being linked to create a
19621# shared library.
19622predeps=$lt_predeps_GCJ
19623
19624# Dependencies to place after the objects being linked to create a
19625# shared library.
19626postdeps=$lt_postdeps_GCJ
19627
19628# The library search path used internally by the compiler when linking
19629# a shared library.
19630compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19631
19632# Method to check whether dependent libraries are shared objects.
19633deplibs_check_method=$lt_deplibs_check_method
19634
19635# Command to use when deplibs_check_method == file_magic.
19636file_magic_cmd=$lt_file_magic_cmd
19637
19638# Flag that allows shared libraries with undefined symbols to be built.
19639allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19640
19641# Flag that forces no undefined symbols.
19642no_undefined_flag=$lt_no_undefined_flag_GCJ
19643
19644# Commands used to finish a libtool library installation in a directory.
19645finish_cmds=$lt_finish_cmds
19646
19647# Same as above, but a single script fragment to be evaled but not shown.
19648finish_eval=$lt_finish_eval
19649
19650# Take the output of nm and produce a listing of raw symbols and C names.
19651global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19652
19653# Transform the output of nm in a proper C declaration
19654global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19655
19656# Transform the output of nm in a C name address pair
19657global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19658
19659# This is the shared library runtime path variable.
19660runpath_var=$runpath_var
19661
19662# This is the shared library path variable.
19663shlibpath_var=$shlibpath_var
19664
19665# Is shlibpath searched before the hard-coded library search path?
19666shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19667
19668# How to hardcode a shared library path into an executable.
19669hardcode_action=$hardcode_action_GCJ
19670
19671# Whether we should hardcode library paths into libraries.
19672hardcode_into_libs=$hardcode_into_libs
19673
19674# Flag to hardcode \$libdir into a binary during linking.
19675# This must work even if \$libdir does not exist.
19676hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19677
19678# If ld is used when linking, flag to hardcode \$libdir into
19679# a binary during linking. This must work even if \$libdir does
19680# not exist.
19681hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19682
19683# Whether we need a single -rpath flag with a separated argument.
19684hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19685
19686# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19687# resulting binary.
19688hardcode_direct=$hardcode_direct_GCJ
19689
19690# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19691# resulting binary.
19692hardcode_minus_L=$hardcode_minus_L_GCJ
19693
19694# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19695# the resulting binary.
19696hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19697
19698# Set to yes if building a shared library automatically hardcodes DIR into the library
19699# and all subsequent libraries and executables linked against it.
19700hardcode_automatic=$hardcode_automatic_GCJ
19701
19702# Variables whose values should be saved in libtool wrapper scripts and
19703# restored at relink time.
19704variables_saved_for_relink="$variables_saved_for_relink"
19705
19706# Whether libtool must link a program against all its dependency libraries.
19707link_all_deplibs=$link_all_deplibs_GCJ
19708
19709# Compile-time system search path for libraries
19710sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19711
19712# Run-time system search path for libraries
19713sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19714
19715# Fix the shell variable \$srcfile for the compiler.
19716fix_srcfile_path="$fix_srcfile_path_GCJ"
19717
19718# Set to yes if exported symbols are required.
19719always_export_symbols=$always_export_symbols_GCJ
19720
19721# The commands to list exported symbols.
19722export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19723
19724# The commands to extract the exported symbol list from a shared archive.
19725extract_expsyms_cmds=$lt_extract_expsyms_cmds
19726
19727# Symbols that should not be listed in the preloaded symbols.
19728exclude_expsyms=$lt_exclude_expsyms_GCJ
19729
19730# Symbols that must always be exported.
19731include_expsyms=$lt_include_expsyms_GCJ
19732
19733# ### END LIBTOOL TAG CONFIG: $tagname
19734
19735__EOF__
19736
19737
19738else
19739  # If there is no Makefile yet, we rely on a make rule to execute
19740  # `config.status --recheck' to rerun these tests and create the
19741  # libtool script then.
19742  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19743  if test -f "$ltmain_in"; then
19744    test -f Makefile && make "$ltmain"
19745  fi
19746fi
19747
19748
19749ac_ext=c
19750ac_cpp='$CPP $CPPFLAGS'
19751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19753ac_compiler_gnu=$ac_cv_c_compiler_gnu
19754
19755CC="$lt_save_CC"
19756
19757	else
19758	  tagname=""
19759	fi
19760	;;
19761
19762      RC)
19763
19764
19765
19766# Source file extension for RC test sources.
19767ac_ext=rc
19768
19769# Object file extension for compiled RC test sources.
19770objext=o
19771objext_RC=$objext
19772
19773# Code to be used in simple compile tests
19774lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19775
19776# Code to be used in simple link tests
19777lt_simple_link_test_code="$lt_simple_compile_test_code"
19778
19779# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19780
19781# If no C compiler was specified, use CC.
19782LTCC=${LTCC-"$CC"}
19783
19784# Allow CC to be a program name with arguments.
19785compiler=$CC
19786
19787
19788# Allow CC to be a program name with arguments.
19789lt_save_CC="$CC"
19790CC=${RC-"windres"}
19791compiler=$CC
19792compiler_RC=$CC
19793lt_cv_prog_compiler_c_o_RC=yes
19794
19795# The else clause should only fire when bootstrapping the
19796# libtool distribution, otherwise you forgot to ship ltmain.sh
19797# with your package, and you will get complaints that there are
19798# no rules to generate ltmain.sh.
19799if test -f "$ltmain"; then
19800  # See if we are running on zsh, and set the options which allow our commands through
19801  # without removal of \ escapes.
19802  if test -n "${ZSH_VERSION+set}" ; then
19803    setopt NO_GLOB_SUBST
19804  fi
19805  # Now quote all the things that may contain metacharacters while being
19806  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19807  # variables and quote the copies for generation of the libtool script.
19808  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19809    SED SHELL STRIP \
19810    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19811    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19812    deplibs_check_method reload_flag reload_cmds need_locks \
19813    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19814    lt_cv_sys_global_symbol_to_c_name_address \
19815    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19816    old_postinstall_cmds old_postuninstall_cmds \
19817    compiler_RC \
19818    CC_RC \
19819    LD_RC \
19820    lt_prog_compiler_wl_RC \
19821    lt_prog_compiler_pic_RC \
19822    lt_prog_compiler_static_RC \
19823    lt_prog_compiler_no_builtin_flag_RC \
19824    export_dynamic_flag_spec_RC \
19825    thread_safe_flag_spec_RC \
19826    whole_archive_flag_spec_RC \
19827    enable_shared_with_static_runtimes_RC \
19828    old_archive_cmds_RC \
19829    old_archive_from_new_cmds_RC \
19830    predep_objects_RC \
19831    postdep_objects_RC \
19832    predeps_RC \
19833    postdeps_RC \
19834    compiler_lib_search_path_RC \
19835    archive_cmds_RC \
19836    archive_expsym_cmds_RC \
19837    postinstall_cmds_RC \
19838    postuninstall_cmds_RC \
19839    old_archive_from_expsyms_cmds_RC \
19840    allow_undefined_flag_RC \
19841    no_undefined_flag_RC \
19842    export_symbols_cmds_RC \
19843    hardcode_libdir_flag_spec_RC \
19844    hardcode_libdir_flag_spec_ld_RC \
19845    hardcode_libdir_separator_RC \
19846    hardcode_automatic_RC \
19847    module_cmds_RC \
19848    module_expsym_cmds_RC \
19849    lt_cv_prog_compiler_c_o_RC \
19850    exclude_expsyms_RC \
19851    include_expsyms_RC; do
19852
19853    case $var in
19854    old_archive_cmds_RC | \
19855    old_archive_from_new_cmds_RC | \
19856    archive_cmds_RC | \
19857    archive_expsym_cmds_RC | \
19858    module_cmds_RC | \
19859    module_expsym_cmds_RC | \
19860    old_archive_from_expsyms_cmds_RC | \
19861    export_symbols_cmds_RC | \
19862    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19863    postinstall_cmds | postuninstall_cmds | \
19864    old_postinstall_cmds | old_postuninstall_cmds | \
19865    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19866      # Double-quote double-evaled strings.
19867      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19868      ;;
19869    *)
19870      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19871      ;;
19872    esac
19873  done
19874
19875  case $lt_echo in
19876  *'\$0 --fallback-echo"')
19877    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19878    ;;
19879  esac
19880
19881cfgfile="$ofile"
19882
19883  cat <<__EOF__ >> "$cfgfile"
19884# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19885
19886# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19887
19888# Shell to use when invoking shell scripts.
19889SHELL=$lt_SHELL
19890
19891# Whether or not to build shared libraries.
19892build_libtool_libs=$enable_shared
19893
19894# Whether or not to build static libraries.
19895build_old_libs=$enable_static
19896
19897# Whether or not to add -lc for building shared libraries.
19898build_libtool_need_lc=$archive_cmds_need_lc_RC
19899
19900# Whether or not to disallow shared libs when runtime libs are static
19901allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19902
19903# Whether or not to optimize for fast installation.
19904fast_install=$enable_fast_install
19905
19906# The host system.
19907host_alias=$host_alias
19908host=$host
19909
19910# An echo program that does not interpret backslashes.
19911echo=$lt_echo
19912
19913# The archiver.
19914AR=$lt_AR
19915AR_FLAGS=$lt_AR_FLAGS
19916
19917# A C compiler.
19918LTCC=$lt_LTCC
19919
19920# A language-specific compiler.
19921CC=$lt_compiler_RC
19922
19923# Is the compiler the GNU C compiler?
19924with_gcc=$GCC_RC
19925
19926# An ERE matcher.
19927EGREP=$lt_EGREP
19928
19929# The linker used to build libraries.
19930LD=$lt_LD_RC
19931
19932# Whether we need hard or soft links.
19933LN_S=$lt_LN_S
19934
19935# A BSD-compatible nm program.
19936NM=$lt_NM
19937
19938# A symbol stripping program
19939STRIP=$lt_STRIP
19940
19941# Used to examine libraries when file_magic_cmd begins "file"
19942MAGIC_CMD=$MAGIC_CMD
19943
19944# Used on cygwin: DLL creation program.
19945DLLTOOL="$DLLTOOL"
19946
19947# Used on cygwin: object dumper.
19948OBJDUMP="$OBJDUMP"
19949
19950# Used on cygwin: assembler.
19951AS="$AS"
19952
19953# The name of the directory that contains temporary libtool files.
19954objdir=$objdir
19955
19956# How to create reloadable object files.
19957reload_flag=$lt_reload_flag
19958reload_cmds=$lt_reload_cmds
19959
19960# How to pass a linker flag through the compiler.
19961wl=$lt_lt_prog_compiler_wl_RC
19962
19963# Object file suffix (normally "o").
19964objext="$ac_objext"
19965
19966# Old archive suffix (normally "a").
19967libext="$libext"
19968
19969# Shared library suffix (normally ".so").
19970shrext_cmds='$shrext_cmds'
19971
19972# Executable file suffix (normally "").
19973exeext="$exeext"
19974
19975# Additional compiler flags for building library objects.
19976pic_flag=$lt_lt_prog_compiler_pic_RC
19977pic_mode=$pic_mode
19978
19979# What is the maximum length of a command?
19980max_cmd_len=$lt_cv_sys_max_cmd_len
19981
19982# Does compiler simultaneously support -c and -o options?
19983compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19984
19985# Must we lock files when doing compilation ?
19986need_locks=$lt_need_locks
19987
19988# Do we need the lib prefix for modules?
19989need_lib_prefix=$need_lib_prefix
19990
19991# Do we need a version for libraries?
19992need_version=$need_version
19993
19994# Whether dlopen is supported.
19995dlopen_support=$enable_dlopen
19996
19997# Whether dlopen of programs is supported.
19998dlopen_self=$enable_dlopen_self
19999
20000# Whether dlopen of statically linked programs is supported.
20001dlopen_self_static=$enable_dlopen_self_static
20002
20003# Compiler flag to prevent dynamic linking.
20004link_static_flag=$lt_lt_prog_compiler_static_RC
20005
20006# Compiler flag to turn off builtin functions.
20007no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20008
20009# Compiler flag to allow reflexive dlopens.
20010export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20011
20012# Compiler flag to generate shared objects directly from archives.
20013whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20014
20015# Compiler flag to generate thread-safe objects.
20016thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20017
20018# Library versioning type.
20019version_type=$version_type
20020
20021# Format of library name prefix.
20022libname_spec=$lt_libname_spec
20023
20024# List of archive names.  First name is the real one, the rest are links.
20025# The last name is the one that the linker finds with -lNAME.
20026library_names_spec=$lt_library_names_spec
20027
20028# The coded name of the library, if different from the real name.
20029soname_spec=$lt_soname_spec
20030
20031# Commands used to build and install an old-style archive.
20032RANLIB=$lt_RANLIB
20033old_archive_cmds=$lt_old_archive_cmds_RC
20034old_postinstall_cmds=$lt_old_postinstall_cmds
20035old_postuninstall_cmds=$lt_old_postuninstall_cmds
20036
20037# Create an old-style archive from a shared archive.
20038old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20039
20040# Create a temporary old-style archive to link instead of a shared archive.
20041old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20042
20043# Commands used to build and install a shared archive.
20044archive_cmds=$lt_archive_cmds_RC
20045archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20046postinstall_cmds=$lt_postinstall_cmds
20047postuninstall_cmds=$lt_postuninstall_cmds
20048
20049# Commands used to build a loadable module (assumed same as above if empty)
20050module_cmds=$lt_module_cmds_RC
20051module_expsym_cmds=$lt_module_expsym_cmds_RC
20052
20053# Commands to strip libraries.
20054old_striplib=$lt_old_striplib
20055striplib=$lt_striplib
20056
20057# Dependencies to place before the objects being linked to create a
20058# shared library.
20059predep_objects=$lt_predep_objects_RC
20060
20061# Dependencies to place after the objects being linked to create a
20062# shared library.
20063postdep_objects=$lt_postdep_objects_RC
20064
20065# Dependencies to place before the objects being linked to create a
20066# shared library.
20067predeps=$lt_predeps_RC
20068
20069# Dependencies to place after the objects being linked to create a
20070# shared library.
20071postdeps=$lt_postdeps_RC
20072
20073# The library search path used internally by the compiler when linking
20074# a shared library.
20075compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20076
20077# Method to check whether dependent libraries are shared objects.
20078deplibs_check_method=$lt_deplibs_check_method
20079
20080# Command to use when deplibs_check_method == file_magic.
20081file_magic_cmd=$lt_file_magic_cmd
20082
20083# Flag that allows shared libraries with undefined symbols to be built.
20084allow_undefined_flag=$lt_allow_undefined_flag_RC
20085
20086# Flag that forces no undefined symbols.
20087no_undefined_flag=$lt_no_undefined_flag_RC
20088
20089# Commands used to finish a libtool library installation in a directory.
20090finish_cmds=$lt_finish_cmds
20091
20092# Same as above, but a single script fragment to be evaled but not shown.
20093finish_eval=$lt_finish_eval
20094
20095# Take the output of nm and produce a listing of raw symbols and C names.
20096global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20097
20098# Transform the output of nm in a proper C declaration
20099global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20100
20101# Transform the output of nm in a C name address pair
20102global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20103
20104# This is the shared library runtime path variable.
20105runpath_var=$runpath_var
20106
20107# This is the shared library path variable.
20108shlibpath_var=$shlibpath_var
20109
20110# Is shlibpath searched before the hard-coded library search path?
20111shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20112
20113# How to hardcode a shared library path into an executable.
20114hardcode_action=$hardcode_action_RC
20115
20116# Whether we should hardcode library paths into libraries.
20117hardcode_into_libs=$hardcode_into_libs
20118
20119# Flag to hardcode \$libdir into a binary during linking.
20120# This must work even if \$libdir does not exist.
20121hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20122
20123# If ld is used when linking, flag to hardcode \$libdir into
20124# a binary during linking. This must work even if \$libdir does
20125# not exist.
20126hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20127
20128# Whether we need a single -rpath flag with a separated argument.
20129hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20130
20131# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20132# resulting binary.
20133hardcode_direct=$hardcode_direct_RC
20134
20135# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20136# resulting binary.
20137hardcode_minus_L=$hardcode_minus_L_RC
20138
20139# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20140# the resulting binary.
20141hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20142
20143# Set to yes if building a shared library automatically hardcodes DIR into the library
20144# and all subsequent libraries and executables linked against it.
20145hardcode_automatic=$hardcode_automatic_RC
20146
20147# Variables whose values should be saved in libtool wrapper scripts and
20148# restored at relink time.
20149variables_saved_for_relink="$variables_saved_for_relink"
20150
20151# Whether libtool must link a program against all its dependency libraries.
20152link_all_deplibs=$link_all_deplibs_RC
20153
20154# Compile-time system search path for libraries
20155sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20156
20157# Run-time system search path for libraries
20158sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20159
20160# Fix the shell variable \$srcfile for the compiler.
20161fix_srcfile_path="$fix_srcfile_path_RC"
20162
20163# Set to yes if exported symbols are required.
20164always_export_symbols=$always_export_symbols_RC
20165
20166# The commands to list exported symbols.
20167export_symbols_cmds=$lt_export_symbols_cmds_RC
20168
20169# The commands to extract the exported symbol list from a shared archive.
20170extract_expsyms_cmds=$lt_extract_expsyms_cmds
20171
20172# Symbols that should not be listed in the preloaded symbols.
20173exclude_expsyms=$lt_exclude_expsyms_RC
20174
20175# Symbols that must always be exported.
20176include_expsyms=$lt_include_expsyms_RC
20177
20178# ### END LIBTOOL TAG CONFIG: $tagname
20179
20180__EOF__
20181
20182
20183else
20184  # If there is no Makefile yet, we rely on a make rule to execute
20185  # `config.status --recheck' to rerun these tests and create the
20186  # libtool script then.
20187  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20188  if test -f "$ltmain_in"; then
20189    test -f Makefile && make "$ltmain"
20190  fi
20191fi
20192
20193
20194ac_ext=c
20195ac_cpp='$CPP $CPPFLAGS'
20196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20198ac_compiler_gnu=$ac_cv_c_compiler_gnu
20199
20200CC="$lt_save_CC"
20201
20202	;;
20203
20204      *)
20205	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20206echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20207   { (exit 1); exit 1; }; }
20208	;;
20209      esac
20210
20211      # Append the new tag name to the list of available tags.
20212      if test -n "$tagname" ; then
20213      available_tags="$available_tags $tagname"
20214    fi
20215    fi
20216  done
20217  IFS="$lt_save_ifs"
20218
20219  # Now substitute the updated list of available tags.
20220  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20221    mv "${ofile}T" "$ofile"
20222    chmod +x "$ofile"
20223  else
20224    rm -f "${ofile}T"
20225    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20226echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20227   { (exit 1); exit 1; }; }
20228  fi
20229fi
20230
20231
20232
20233# This can be used to rebuild libtool when needed
20234LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20235
20236# Always use our own libtool.
20237LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20238
20239# Prevent multiple expansion
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261      if test "X$prefix" = "XNONE"; then
20262    acl_final_prefix="$ac_default_prefix"
20263  else
20264    acl_final_prefix="$prefix"
20265  fi
20266  if test "X$exec_prefix" = "XNONE"; then
20267    acl_final_exec_prefix='${prefix}'
20268  else
20269    acl_final_exec_prefix="$exec_prefix"
20270  fi
20271  acl_save_prefix="$prefix"
20272  prefix="$acl_final_prefix"
20273  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20274  prefix="$acl_save_prefix"
20275
20276
20277                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
20278echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
20279if test "${acl_cv_rpath+set}" = set; then
20280  echo $ECHO_N "(cached) $ECHO_C" >&6
20281else
20282
20283    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
20284    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
20285    . ./conftest.sh
20286    rm -f ./conftest.sh
20287    acl_cv_rpath=done
20288
20289fi
20290echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
20291echo "${ECHO_T}$acl_cv_rpath" >&6
20292  wl="$acl_cv_wl"
20293  libext="$acl_cv_libext"
20294  shlibext="$acl_cv_shlibext"
20295  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
20296  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
20297  hardcode_direct="$acl_cv_hardcode_direct"
20298  hardcode_minus_L="$acl_cv_hardcode_minus_L"
20299    # Check whether --enable-rpath or --disable-rpath was given.
20300if test "${enable_rpath+set}" = set; then
20301  enableval="$enable_rpath"
20302  :
20303else
20304  enable_rpath=yes
20305fi;
20306
20307
20308
20309
20310
20311
20312
20313    use_additional=yes
20314
20315  acl_save_prefix="$prefix"
20316  prefix="$acl_final_prefix"
20317  acl_save_exec_prefix="$exec_prefix"
20318  exec_prefix="$acl_final_exec_prefix"
20319
20320    eval additional_includedir=\"$includedir\"
20321    eval additional_libdir=\"$libdir\"
20322
20323  exec_prefix="$acl_save_exec_prefix"
20324  prefix="$acl_save_prefix"
20325
20326
20327# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
20328if test "${with_libiconv_prefix+set}" = set; then
20329  withval="$with_libiconv_prefix"
20330
20331    if test "X$withval" = "Xno"; then
20332      use_additional=no
20333    else
20334      if test "X$withval" = "X"; then
20335
20336  acl_save_prefix="$prefix"
20337  prefix="$acl_final_prefix"
20338  acl_save_exec_prefix="$exec_prefix"
20339  exec_prefix="$acl_final_exec_prefix"
20340
20341          eval additional_includedir=\"$includedir\"
20342          eval additional_libdir=\"$libdir\"
20343
20344  exec_prefix="$acl_save_exec_prefix"
20345  prefix="$acl_save_prefix"
20346
20347      else
20348        additional_includedir="$withval/include"
20349        additional_libdir="$withval/lib"
20350      fi
20351    fi
20352
20353fi;
20354      LIBICONV=
20355  LTLIBICONV=
20356  INCICONV=
20357  rpathdirs=
20358  ltrpathdirs=
20359  names_already_handled=
20360  names_next_round='iconv '
20361  while test -n "$names_next_round"; do
20362    names_this_round="$names_next_round"
20363    names_next_round=
20364    for name in $names_this_round; do
20365      already_handled=
20366      for n in $names_already_handled; do
20367        if test "$n" = "$name"; then
20368          already_handled=yes
20369          break
20370        fi
20371      done
20372      if test -z "$already_handled"; then
20373        names_already_handled="$names_already_handled $name"
20374                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20375        eval value=\"\$HAVE_LIB$uppername\"
20376        if test -n "$value"; then
20377          if test "$value" = yes; then
20378            eval value=\"\$LIB$uppername\"
20379            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
20380            eval value=\"\$LTLIB$uppername\"
20381            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
20382          else
20383                                    :
20384          fi
20385        else
20386                              found_dir=
20387          found_la=
20388          found_so=
20389          found_a=
20390          if test $use_additional = yes; then
20391            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20392              found_dir="$additional_libdir"
20393              found_so="$additional_libdir/lib$name.$shlibext"
20394              if test -f "$additional_libdir/lib$name.la"; then
20395                found_la="$additional_libdir/lib$name.la"
20396              fi
20397            else
20398              if test -f "$additional_libdir/lib$name.$libext"; then
20399                found_dir="$additional_libdir"
20400                found_a="$additional_libdir/lib$name.$libext"
20401                if test -f "$additional_libdir/lib$name.la"; then
20402                  found_la="$additional_libdir/lib$name.la"
20403                fi
20404              fi
20405            fi
20406          fi
20407          if test "X$found_dir" = "X"; then
20408            for x in $LDFLAGS $LTLIBICONV; do
20409
20410  acl_save_prefix="$prefix"
20411  prefix="$acl_final_prefix"
20412  acl_save_exec_prefix="$exec_prefix"
20413  exec_prefix="$acl_final_exec_prefix"
20414  eval x=\"$x\"
20415  exec_prefix="$acl_save_exec_prefix"
20416  prefix="$acl_save_prefix"
20417
20418              case "$x" in
20419                -L*)
20420                  dir=`echo "X$x" | sed -e 's/^X-L//'`
20421                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20422                    found_dir="$dir"
20423                    found_so="$dir/lib$name.$shlibext"
20424                    if test -f "$dir/lib$name.la"; then
20425                      found_la="$dir/lib$name.la"
20426                    fi
20427                  else
20428                    if test -f "$dir/lib$name.$libext"; then
20429                      found_dir="$dir"
20430                      found_a="$dir/lib$name.$libext"
20431                      if test -f "$dir/lib$name.la"; then
20432                        found_la="$dir/lib$name.la"
20433                      fi
20434                    fi
20435                  fi
20436                  ;;
20437              esac
20438              if test "X$found_dir" != "X"; then
20439                break
20440              fi
20441            done
20442          fi
20443          if test "X$found_dir" != "X"; then
20444                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20445            if test "X$found_so" != "X"; then
20446                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20447                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20448              else
20449                                                                                haveit=
20450                for x in $ltrpathdirs; do
20451                  if test "X$x" = "X$found_dir"; then
20452                    haveit=yes
20453                    break
20454                  fi
20455                done
20456                if test -z "$haveit"; then
20457                  ltrpathdirs="$ltrpathdirs $found_dir"
20458                fi
20459                                if test "$hardcode_direct" = yes; then
20460                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20461                else
20462                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20463                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20464                                                            haveit=
20465                    for x in $rpathdirs; do
20466                      if test "X$x" = "X$found_dir"; then
20467                        haveit=yes
20468                        break
20469                      fi
20470                    done
20471                    if test -z "$haveit"; then
20472                      rpathdirs="$rpathdirs $found_dir"
20473                    fi
20474                  else
20475                                                                                haveit=
20476                    for x in $LDFLAGS $LIBICONV; do
20477
20478  acl_save_prefix="$prefix"
20479  prefix="$acl_final_prefix"
20480  acl_save_exec_prefix="$exec_prefix"
20481  exec_prefix="$acl_final_exec_prefix"
20482  eval x=\"$x\"
20483  exec_prefix="$acl_save_exec_prefix"
20484  prefix="$acl_save_prefix"
20485
20486                      if test "X$x" = "X-L$found_dir"; then
20487                        haveit=yes
20488                        break
20489                      fi
20490                    done
20491                    if test -z "$haveit"; then
20492                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20493                    fi
20494                    if test "$hardcode_minus_L" != no; then
20495                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20496                    else
20497                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20498                    fi
20499                  fi
20500                fi
20501              fi
20502            else
20503              if test "X$found_a" != "X"; then
20504                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20505              else
20506                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20507              fi
20508            fi
20509                        additional_includedir=
20510            case "$found_dir" in
20511              */lib | */lib/)
20512                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20513                additional_includedir="$basedir/include"
20514                ;;
20515            esac
20516            if test "X$additional_includedir" != "X"; then
20517                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
20518                haveit=
20519                if test "X$additional_includedir" = "X/usr/local/include"; then
20520                  if test -n "$GCC"; then
20521                    case $host_os in
20522                      linux*) haveit=yes;;
20523                    esac
20524                  fi
20525                fi
20526                if test -z "$haveit"; then
20527                  for x in $CPPFLAGS $INCICONV; do
20528
20529  acl_save_prefix="$prefix"
20530  prefix="$acl_final_prefix"
20531  acl_save_exec_prefix="$exec_prefix"
20532  exec_prefix="$acl_final_exec_prefix"
20533  eval x=\"$x\"
20534  exec_prefix="$acl_save_exec_prefix"
20535  prefix="$acl_save_prefix"
20536
20537                    if test "X$x" = "X-I$additional_includedir"; then
20538                      haveit=yes
20539                      break
20540                    fi
20541                  done
20542                  if test -z "$haveit"; then
20543                    if test -d "$additional_includedir"; then
20544                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20545                    fi
20546                  fi
20547                fi
20548              fi
20549            fi
20550                        if test -n "$found_la"; then
20551                                                        save_libdir="$libdir"
20552              case "$found_la" in
20553                */* | *\\*) . "$found_la" ;;
20554                *) . "./$found_la" ;;
20555              esac
20556              libdir="$save_libdir"
20557                            for dep in $dependency_libs; do
20558                case "$dep" in
20559                  -L*)
20560                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20561                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
20562                      haveit=
20563                      if test "X$additional_libdir" = "X/usr/local/lib"; then
20564                        if test -n "$GCC"; then
20565                          case $host_os in
20566                            linux*) haveit=yes;;
20567                          esac
20568                        fi
20569                      fi
20570                      if test -z "$haveit"; then
20571                        haveit=
20572                        for x in $LDFLAGS $LIBICONV; do
20573
20574  acl_save_prefix="$prefix"
20575  prefix="$acl_final_prefix"
20576  acl_save_exec_prefix="$exec_prefix"
20577  exec_prefix="$acl_final_exec_prefix"
20578  eval x=\"$x\"
20579  exec_prefix="$acl_save_exec_prefix"
20580  prefix="$acl_save_prefix"
20581
20582                          if test "X$x" = "X-L$additional_libdir"; then
20583                            haveit=yes
20584                            break
20585                          fi
20586                        done
20587                        if test -z "$haveit"; then
20588                          if test -d "$additional_libdir"; then
20589                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20590                          fi
20591                        fi
20592                        haveit=
20593                        for x in $LDFLAGS $LTLIBICONV; do
20594
20595  acl_save_prefix="$prefix"
20596  prefix="$acl_final_prefix"
20597  acl_save_exec_prefix="$exec_prefix"
20598  exec_prefix="$acl_final_exec_prefix"
20599  eval x=\"$x\"
20600  exec_prefix="$acl_save_exec_prefix"
20601  prefix="$acl_save_prefix"
20602
20603                          if test "X$x" = "X-L$additional_libdir"; then
20604                            haveit=yes
20605                            break
20606                          fi
20607                        done
20608                        if test -z "$haveit"; then
20609                          if test -d "$additional_libdir"; then
20610                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20611                          fi
20612                        fi
20613                      fi
20614                    fi
20615                    ;;
20616                  -R*)
20617                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
20618                    if test "$enable_rpath" != no; then
20619                                                                  haveit=
20620                      for x in $rpathdirs; do
20621                        if test "X$x" = "X$dir"; then
20622                          haveit=yes
20623                          break
20624                        fi
20625                      done
20626                      if test -z "$haveit"; then
20627                        rpathdirs="$rpathdirs $dir"
20628                      fi
20629                                                                  haveit=
20630                      for x in $ltrpathdirs; do
20631                        if test "X$x" = "X$dir"; then
20632                          haveit=yes
20633                          break
20634                        fi
20635                      done
20636                      if test -z "$haveit"; then
20637                        ltrpathdirs="$ltrpathdirs $dir"
20638                      fi
20639                    fi
20640                    ;;
20641                  -l*)
20642                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20643                    ;;
20644                  *.la)
20645                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20646                    ;;
20647                  *)
20648                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20649                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20650                    ;;
20651                esac
20652              done
20653            fi
20654          else
20655                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20656            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20657          fi
20658        fi
20659      fi
20660    done
20661  done
20662  if test "X$rpathdirs" != "X"; then
20663    if test -n "$hardcode_libdir_separator"; then
20664                        alldirs=
20665      for found_dir in $rpathdirs; do
20666        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20667      done
20668            acl_save_libdir="$libdir"
20669      libdir="$alldirs"
20670      eval flag=\"$hardcode_libdir_flag_spec\"
20671      libdir="$acl_save_libdir"
20672      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20673    else
20674            for found_dir in $rpathdirs; do
20675        acl_save_libdir="$libdir"
20676        libdir="$found_dir"
20677        eval flag=\"$hardcode_libdir_flag_spec\"
20678        libdir="$acl_save_libdir"
20679        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20680      done
20681    fi
20682  fi
20683  if test "X$ltrpathdirs" != "X"; then
20684            for found_dir in $ltrpathdirs; do
20685      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20686    done
20687  fi
20688
20689
20690
20691
20692
20693
20694
20695          am_save_CPPFLAGS="$CPPFLAGS"
20696
20697  for element in $INCICONV; do
20698    haveit=
20699    for x in $CPPFLAGS; do
20700
20701  acl_save_prefix="$prefix"
20702  prefix="$acl_final_prefix"
20703  acl_save_exec_prefix="$exec_prefix"
20704  exec_prefix="$acl_final_exec_prefix"
20705  eval x=\"$x\"
20706  exec_prefix="$acl_save_exec_prefix"
20707  prefix="$acl_save_prefix"
20708
20709      if test "X$x" = "X$element"; then
20710        haveit=yes
20711        break
20712      fi
20713    done
20714    if test -z "$haveit"; then
20715      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20716    fi
20717  done
20718
20719
20720  echo "$as_me:$LINENO: checking for iconv" >&5
20721echo $ECHO_N "checking for iconv... $ECHO_C" >&6
20722if test "${am_cv_func_iconv+set}" = set; then
20723  echo $ECHO_N "(cached) $ECHO_C" >&6
20724else
20725
20726    am_cv_func_iconv="no, consider installing GNU libiconv"
20727    am_cv_lib_iconv=no
20728    cat >conftest.$ac_ext <<_ACEOF
20729/* confdefs.h.  */
20730_ACEOF
20731cat confdefs.h >>conftest.$ac_ext
20732cat >>conftest.$ac_ext <<_ACEOF
20733/* end confdefs.h.  */
20734#include <stdlib.h>
20735#include <iconv.h>
20736int
20737main ()
20738{
20739iconv_t cd = iconv_open("","");
20740       iconv(cd,NULL,NULL,NULL,NULL);
20741       iconv_close(cd);
20742  ;
20743  return 0;
20744}
20745_ACEOF
20746rm -f conftest.$ac_objext conftest$ac_exeext
20747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20748  (eval $ac_link) 2>conftest.er1
20749  ac_status=$?
20750  grep -v '^ *+' conftest.er1 >conftest.err
20751  rm -f conftest.er1
20752  cat conftest.err >&5
20753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754  (exit $ac_status); } &&
20755	 { ac_try='test -z "$ac_c_werror_flag"
20756			 || test ! -s conftest.err'
20757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20758  (eval $ac_try) 2>&5
20759  ac_status=$?
20760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761  (exit $ac_status); }; } &&
20762	 { ac_try='test -s conftest$ac_exeext'
20763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20764  (eval $ac_try) 2>&5
20765  ac_status=$?
20766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767  (exit $ac_status); }; }; then
20768  am_cv_func_iconv=yes
20769else
20770  echo "$as_me: failed program was:" >&5
20771sed 's/^/| /' conftest.$ac_ext >&5
20772
20773fi
20774rm -f conftest.err conftest.$ac_objext \
20775      conftest$ac_exeext conftest.$ac_ext
20776    if test "$am_cv_func_iconv" != yes; then
20777      am_save_LIBS="$LIBS"
20778      LIBS="$LIBS $LIBICONV"
20779      cat >conftest.$ac_ext <<_ACEOF
20780/* confdefs.h.  */
20781_ACEOF
20782cat confdefs.h >>conftest.$ac_ext
20783cat >>conftest.$ac_ext <<_ACEOF
20784/* end confdefs.h.  */
20785#include <stdlib.h>
20786#include <iconv.h>
20787int
20788main ()
20789{
20790iconv_t cd = iconv_open("","");
20791         iconv(cd,NULL,NULL,NULL,NULL);
20792         iconv_close(cd);
20793  ;
20794  return 0;
20795}
20796_ACEOF
20797rm -f conftest.$ac_objext conftest$ac_exeext
20798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20799  (eval $ac_link) 2>conftest.er1
20800  ac_status=$?
20801  grep -v '^ *+' conftest.er1 >conftest.err
20802  rm -f conftest.er1
20803  cat conftest.err >&5
20804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805  (exit $ac_status); } &&
20806	 { ac_try='test -z "$ac_c_werror_flag"
20807			 || test ! -s conftest.err'
20808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809  (eval $ac_try) 2>&5
20810  ac_status=$?
20811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812  (exit $ac_status); }; } &&
20813	 { ac_try='test -s conftest$ac_exeext'
20814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815  (eval $ac_try) 2>&5
20816  ac_status=$?
20817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818  (exit $ac_status); }; }; then
20819  am_cv_lib_iconv=yes
20820        am_cv_func_iconv=yes
20821else
20822  echo "$as_me: failed program was:" >&5
20823sed 's/^/| /' conftest.$ac_ext >&5
20824
20825fi
20826rm -f conftest.err conftest.$ac_objext \
20827      conftest$ac_exeext conftest.$ac_ext
20828      LIBS="$am_save_LIBS"
20829    fi
20830
20831fi
20832echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
20833echo "${ECHO_T}$am_cv_func_iconv" >&6
20834  if test "$am_cv_func_iconv" = yes; then
20835
20836cat >>confdefs.h <<\_ACEOF
20837#define HAVE_ICONV 1
20838_ACEOF
20839
20840  fi
20841  if test "$am_cv_lib_iconv" = yes; then
20842    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
20843echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
20844    echo "$as_me:$LINENO: result: $LIBICONV" >&5
20845echo "${ECHO_T}$LIBICONV" >&6
20846  else
20847            CPPFLAGS="$am_save_CPPFLAGS"
20848    LIBICONV=
20849    LTLIBICONV=
20850  fi
20851
20852
20853
20854  if test "$am_cv_func_iconv" = yes; then
20855    echo "$as_me:$LINENO: checking for iconv declaration" >&5
20856echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
20857    if test "${am_cv_proto_iconv+set}" = set; then
20858  echo $ECHO_N "(cached) $ECHO_C" >&6
20859else
20860
20861      cat >conftest.$ac_ext <<_ACEOF
20862/* confdefs.h.  */
20863_ACEOF
20864cat confdefs.h >>conftest.$ac_ext
20865cat >>conftest.$ac_ext <<_ACEOF
20866/* end confdefs.h.  */
20867
20868#include <stdlib.h>
20869#include <iconv.h>
20870extern
20871#ifdef __cplusplus
20872"C"
20873#endif
20874#if defined(__STDC__) || defined(__cplusplus)
20875size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20876#else
20877size_t iconv();
20878#endif
20879
20880int
20881main ()
20882{
20883
20884  ;
20885  return 0;
20886}
20887_ACEOF
20888rm -f conftest.$ac_objext
20889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20890  (eval $ac_compile) 2>conftest.er1
20891  ac_status=$?
20892  grep -v '^ *+' conftest.er1 >conftest.err
20893  rm -f conftest.er1
20894  cat conftest.err >&5
20895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896  (exit $ac_status); } &&
20897	 { ac_try='test -z "$ac_c_werror_flag"
20898			 || test ! -s conftest.err'
20899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20900  (eval $ac_try) 2>&5
20901  ac_status=$?
20902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903  (exit $ac_status); }; } &&
20904	 { ac_try='test -s conftest.$ac_objext'
20905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906  (eval $ac_try) 2>&5
20907  ac_status=$?
20908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909  (exit $ac_status); }; }; then
20910  am_cv_proto_iconv_arg1=""
20911else
20912  echo "$as_me: failed program was:" >&5
20913sed 's/^/| /' conftest.$ac_ext >&5
20914
20915am_cv_proto_iconv_arg1="const"
20916fi
20917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20918      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);"
20919fi
20920
20921    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20922    echo "$as_me:$LINENO: result: ${ac_t:-
20923         }$am_cv_proto_iconv" >&5
20924echo "${ECHO_T}${ac_t:-
20925         }$am_cv_proto_iconv" >&6
20926
20927cat >>confdefs.h <<_ACEOF
20928#define ICONV_CONST $am_cv_proto_iconv_arg1
20929_ACEOF
20930
20931  fi
20932
20933
20934        MKINSTALLDIRS=
20935  if test -n "$ac_aux_dir"; then
20936    case "$ac_aux_dir" in
20937      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
20938      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
20939    esac
20940  fi
20941  if test -z "$MKINSTALLDIRS"; then
20942    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
20943  fi
20944
20945
20946
20947  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
20948echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
20949    # Check whether --enable-nls or --disable-nls was given.
20950if test "${enable_nls+set}" = set; then
20951  enableval="$enable_nls"
20952  USE_NLS=$enableval
20953else
20954  USE_NLS=yes
20955fi;
20956  echo "$as_me:$LINENO: result: $USE_NLS" >&5
20957echo "${ECHO_T}$USE_NLS" >&6
20958
20959
20960
20961
20962
20963
20964# Prepare PATH_SEPARATOR.
20965# The user is always right.
20966if test "${PATH_SEPARATOR+set}" != set; then
20967  echo "#! /bin/sh" >conf$$.sh
20968  echo  "exit 0"   >>conf$$.sh
20969  chmod +x conf$$.sh
20970  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20971    PATH_SEPARATOR=';'
20972  else
20973    PATH_SEPARATOR=:
20974  fi
20975  rm -f conf$$.sh
20976fi
20977
20978# Find out how to test for executable files. Don't use a zero-byte file,
20979# as systems may use methods other than mode bits to determine executability.
20980cat >conf$$.file <<_ASEOF
20981#! /bin/sh
20982exit 0
20983_ASEOF
20984chmod +x conf$$.file
20985if test -x conf$$.file >/dev/null 2>&1; then
20986  ac_executable_p="test -x"
20987else
20988  ac_executable_p="test -f"
20989fi
20990rm -f conf$$.file
20991
20992# Extract the first word of "msgfmt", so it can be a program name with args.
20993set dummy msgfmt; ac_word=$2
20994echo "$as_me:$LINENO: checking for $ac_word" >&5
20995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20996if test "${ac_cv_path_MSGFMT+set}" = set; then
20997  echo $ECHO_N "(cached) $ECHO_C" >&6
20998else
20999  case "$MSGFMT" in
21000  [\\/]* | ?:[\\/]*)
21001    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21002    ;;
21003  *)
21004    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21005    for ac_dir in $PATH; do
21006      IFS="$ac_save_IFS"
21007      test -z "$ac_dir" && ac_dir=.
21008      for ac_exec_ext in '' $ac_executable_extensions; do
21009        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21010          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
21011     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21012            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
21013            break 2
21014          fi
21015        fi
21016      done
21017    done
21018    IFS="$ac_save_IFS"
21019  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
21020    ;;
21021esac
21022fi
21023MSGFMT="$ac_cv_path_MSGFMT"
21024if test "$MSGFMT" != ":"; then
21025  echo "$as_me:$LINENO: result: $MSGFMT" >&5
21026echo "${ECHO_T}$MSGFMT" >&6
21027else
21028  echo "$as_me:$LINENO: result: no" >&5
21029echo "${ECHO_T}no" >&6
21030fi
21031
21032  # Extract the first word of "gmsgfmt", so it can be a program name with args.
21033set dummy gmsgfmt; ac_word=$2
21034echo "$as_me:$LINENO: checking for $ac_word" >&5
21035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21036if test "${ac_cv_path_GMSGFMT+set}" = set; then
21037  echo $ECHO_N "(cached) $ECHO_C" >&6
21038else
21039  case $GMSGFMT in
21040  [\\/]* | ?:[\\/]*)
21041  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21042  ;;
21043  *)
21044  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21045for as_dir in $PATH
21046do
21047  IFS=$as_save_IFS
21048  test -z "$as_dir" && as_dir=.
21049  for ac_exec_ext in '' $ac_executable_extensions; do
21050  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21051    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
21052    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21053    break 2
21054  fi
21055done
21056done
21057
21058  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
21059  ;;
21060esac
21061fi
21062GMSGFMT=$ac_cv_path_GMSGFMT
21063
21064if test -n "$GMSGFMT"; then
21065  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
21066echo "${ECHO_T}$GMSGFMT" >&6
21067else
21068  echo "$as_me:$LINENO: result: no" >&5
21069echo "${ECHO_T}no" >&6
21070fi
21071
21072
21073
21074# Prepare PATH_SEPARATOR.
21075# The user is always right.
21076if test "${PATH_SEPARATOR+set}" != set; then
21077  echo "#! /bin/sh" >conf$$.sh
21078  echo  "exit 0"   >>conf$$.sh
21079  chmod +x conf$$.sh
21080  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21081    PATH_SEPARATOR=';'
21082  else
21083    PATH_SEPARATOR=:
21084  fi
21085  rm -f conf$$.sh
21086fi
21087
21088# Find out how to test for executable files. Don't use a zero-byte file,
21089# as systems may use methods other than mode bits to determine executability.
21090cat >conf$$.file <<_ASEOF
21091#! /bin/sh
21092exit 0
21093_ASEOF
21094chmod +x conf$$.file
21095if test -x conf$$.file >/dev/null 2>&1; then
21096  ac_executable_p="test -x"
21097else
21098  ac_executable_p="test -f"
21099fi
21100rm -f conf$$.file
21101
21102# Extract the first word of "xgettext", so it can be a program name with args.
21103set dummy xgettext; ac_word=$2
21104echo "$as_me:$LINENO: checking for $ac_word" >&5
21105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21106if test "${ac_cv_path_XGETTEXT+set}" = set; then
21107  echo $ECHO_N "(cached) $ECHO_C" >&6
21108else
21109  case "$XGETTEXT" in
21110  [\\/]* | ?:[\\/]*)
21111    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
21112    ;;
21113  *)
21114    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21115    for ac_dir in $PATH; do
21116      IFS="$ac_save_IFS"
21117      test -z "$ac_dir" && ac_dir=.
21118      for ac_exec_ext in '' $ac_executable_extensions; do
21119        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21120          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
21121     (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
21122            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
21123            break 2
21124          fi
21125        fi
21126      done
21127    done
21128    IFS="$ac_save_IFS"
21129  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
21130    ;;
21131esac
21132fi
21133XGETTEXT="$ac_cv_path_XGETTEXT"
21134if test "$XGETTEXT" != ":"; then
21135  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21136echo "${ECHO_T}$XGETTEXT" >&6
21137else
21138  echo "$as_me:$LINENO: result: no" >&5
21139echo "${ECHO_T}no" >&6
21140fi
21141
21142    rm -f messages.po
21143
21144
21145# Prepare PATH_SEPARATOR.
21146# The user is always right.
21147if test "${PATH_SEPARATOR+set}" != set; then
21148  echo "#! /bin/sh" >conf$$.sh
21149  echo  "exit 0"   >>conf$$.sh
21150  chmod +x conf$$.sh
21151  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21152    PATH_SEPARATOR=';'
21153  else
21154    PATH_SEPARATOR=:
21155  fi
21156  rm -f conf$$.sh
21157fi
21158
21159# Find out how to test for executable files. Don't use a zero-byte file,
21160# as systems may use methods other than mode bits to determine executability.
21161cat >conf$$.file <<_ASEOF
21162#! /bin/sh
21163exit 0
21164_ASEOF
21165chmod +x conf$$.file
21166if test -x conf$$.file >/dev/null 2>&1; then
21167  ac_executable_p="test -x"
21168else
21169  ac_executable_p="test -f"
21170fi
21171rm -f conf$$.file
21172
21173# Extract the first word of "msgmerge", so it can be a program name with args.
21174set dummy msgmerge; ac_word=$2
21175echo "$as_me:$LINENO: checking for $ac_word" >&5
21176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21177if test "${ac_cv_path_MSGMERGE+set}" = set; then
21178  echo $ECHO_N "(cached) $ECHO_C" >&6
21179else
21180  case "$MSGMERGE" in
21181  [\\/]* | ?:[\\/]*)
21182    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
21183    ;;
21184  *)
21185    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21186    for ac_dir in $PATH; do
21187      IFS="$ac_save_IFS"
21188      test -z "$ac_dir" && ac_dir=.
21189      for ac_exec_ext in '' $ac_executable_extensions; do
21190        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21191          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
21192            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
21193            break 2
21194          fi
21195        fi
21196      done
21197    done
21198    IFS="$ac_save_IFS"
21199  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
21200    ;;
21201esac
21202fi
21203MSGMERGE="$ac_cv_path_MSGMERGE"
21204if test "$MSGMERGE" != ":"; then
21205  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
21206echo "${ECHO_T}$MSGMERGE" >&6
21207else
21208  echo "$as_me:$LINENO: result: no" >&5
21209echo "${ECHO_T}no" >&6
21210fi
21211
21212
21213      if test "$GMSGFMT" != ":"; then
21214            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
21215       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21216      : ;
21217    else
21218      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
21219      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
21220echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
21221      GMSGFMT=":"
21222    fi
21223  fi
21224
21225      if test "$XGETTEXT" != ":"; then
21226            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
21227       (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
21228      : ;
21229    else
21230      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
21231echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
21232      XGETTEXT=":"
21233    fi
21234        rm -f messages.po
21235  fi
21236
21237            ac_config_commands="$ac_config_commands default-1"
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
21257echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
21258    # Check whether --enable-nls or --disable-nls was given.
21259if test "${enable_nls+set}" = set; then
21260  enableval="$enable_nls"
21261  USE_NLS=$enableval
21262else
21263  USE_NLS=yes
21264fi;
21265  echo "$as_me:$LINENO: result: $USE_NLS" >&5
21266echo "${ECHO_T}$USE_NLS" >&6
21267
21268
21269
21270
21271  LIBINTL=
21272  LTLIBINTL=
21273  POSUB=
21274
21275    if test "$USE_NLS" = "yes"; then
21276    gt_use_preinstalled_gnugettext=no
21277
21278
21279
21280
21281
21282
21283        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
21284echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
21285if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
21286  echo $ECHO_N "(cached) $ECHO_C" >&6
21287else
21288  cat >conftest.$ac_ext <<_ACEOF
21289/* confdefs.h.  */
21290_ACEOF
21291cat confdefs.h >>conftest.$ac_ext
21292cat >>conftest.$ac_ext <<_ACEOF
21293/* end confdefs.h.  */
21294#include <libintl.h>
21295extern int _nl_msg_cat_cntr;
21296extern int *_nl_domain_bindings;
21297int
21298main ()
21299{
21300bindtextdomain ("", "");
21301return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21302  ;
21303  return 0;
21304}
21305_ACEOF
21306rm -f conftest.$ac_objext conftest$ac_exeext
21307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21308  (eval $ac_link) 2>conftest.er1
21309  ac_status=$?
21310  grep -v '^ *+' conftest.er1 >conftest.err
21311  rm -f conftest.er1
21312  cat conftest.err >&5
21313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314  (exit $ac_status); } &&
21315	 { ac_try='test -z "$ac_c_werror_flag"
21316			 || test ! -s conftest.err'
21317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21318  (eval $ac_try) 2>&5
21319  ac_status=$?
21320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321  (exit $ac_status); }; } &&
21322	 { ac_try='test -s conftest$ac_exeext'
21323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21324  (eval $ac_try) 2>&5
21325  ac_status=$?
21326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327  (exit $ac_status); }; }; then
21328  gt_cv_func_gnugettext1_libc=yes
21329else
21330  echo "$as_me: failed program was:" >&5
21331sed 's/^/| /' conftest.$ac_ext >&5
21332
21333gt_cv_func_gnugettext1_libc=no
21334fi
21335rm -f conftest.err conftest.$ac_objext \
21336      conftest$ac_exeext conftest.$ac_ext
21337fi
21338echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
21339echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
21340
21341        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21342
21343
21344
21345
21346
21347          am_save_CPPFLAGS="$CPPFLAGS"
21348
21349  for element in $INCICONV; do
21350    haveit=
21351    for x in $CPPFLAGS; do
21352
21353  acl_save_prefix="$prefix"
21354  prefix="$acl_final_prefix"
21355  acl_save_exec_prefix="$exec_prefix"
21356  exec_prefix="$acl_final_exec_prefix"
21357  eval x=\"$x\"
21358  exec_prefix="$acl_save_exec_prefix"
21359  prefix="$acl_save_prefix"
21360
21361      if test "X$x" = "X$element"; then
21362        haveit=yes
21363        break
21364      fi
21365    done
21366    if test -z "$haveit"; then
21367      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21368    fi
21369  done
21370
21371
21372  echo "$as_me:$LINENO: checking for iconv" >&5
21373echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21374if test "${am_cv_func_iconv+set}" = set; then
21375  echo $ECHO_N "(cached) $ECHO_C" >&6
21376else
21377
21378    am_cv_func_iconv="no, consider installing GNU libiconv"
21379    am_cv_lib_iconv=no
21380    cat >conftest.$ac_ext <<_ACEOF
21381/* confdefs.h.  */
21382_ACEOF
21383cat confdefs.h >>conftest.$ac_ext
21384cat >>conftest.$ac_ext <<_ACEOF
21385/* end confdefs.h.  */
21386#include <stdlib.h>
21387#include <iconv.h>
21388int
21389main ()
21390{
21391iconv_t cd = iconv_open("","");
21392       iconv(cd,NULL,NULL,NULL,NULL);
21393       iconv_close(cd);
21394  ;
21395  return 0;
21396}
21397_ACEOF
21398rm -f conftest.$ac_objext conftest$ac_exeext
21399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21400  (eval $ac_link) 2>conftest.er1
21401  ac_status=$?
21402  grep -v '^ *+' conftest.er1 >conftest.err
21403  rm -f conftest.er1
21404  cat conftest.err >&5
21405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406  (exit $ac_status); } &&
21407	 { ac_try='test -z "$ac_c_werror_flag"
21408			 || test ! -s conftest.err'
21409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21410  (eval $ac_try) 2>&5
21411  ac_status=$?
21412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413  (exit $ac_status); }; } &&
21414	 { ac_try='test -s conftest$ac_exeext'
21415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21416  (eval $ac_try) 2>&5
21417  ac_status=$?
21418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419  (exit $ac_status); }; }; then
21420  am_cv_func_iconv=yes
21421else
21422  echo "$as_me: failed program was:" >&5
21423sed 's/^/| /' conftest.$ac_ext >&5
21424
21425fi
21426rm -f conftest.err conftest.$ac_objext \
21427      conftest$ac_exeext conftest.$ac_ext
21428    if test "$am_cv_func_iconv" != yes; then
21429      am_save_LIBS="$LIBS"
21430      LIBS="$LIBS $LIBICONV"
21431      cat >conftest.$ac_ext <<_ACEOF
21432/* confdefs.h.  */
21433_ACEOF
21434cat confdefs.h >>conftest.$ac_ext
21435cat >>conftest.$ac_ext <<_ACEOF
21436/* end confdefs.h.  */
21437#include <stdlib.h>
21438#include <iconv.h>
21439int
21440main ()
21441{
21442iconv_t cd = iconv_open("","");
21443         iconv(cd,NULL,NULL,NULL,NULL);
21444         iconv_close(cd);
21445  ;
21446  return 0;
21447}
21448_ACEOF
21449rm -f conftest.$ac_objext conftest$ac_exeext
21450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21451  (eval $ac_link) 2>conftest.er1
21452  ac_status=$?
21453  grep -v '^ *+' conftest.er1 >conftest.err
21454  rm -f conftest.er1
21455  cat conftest.err >&5
21456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457  (exit $ac_status); } &&
21458	 { ac_try='test -z "$ac_c_werror_flag"
21459			 || test ! -s conftest.err'
21460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461  (eval $ac_try) 2>&5
21462  ac_status=$?
21463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464  (exit $ac_status); }; } &&
21465	 { ac_try='test -s conftest$ac_exeext'
21466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21467  (eval $ac_try) 2>&5
21468  ac_status=$?
21469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470  (exit $ac_status); }; }; then
21471  am_cv_lib_iconv=yes
21472        am_cv_func_iconv=yes
21473else
21474  echo "$as_me: failed program was:" >&5
21475sed 's/^/| /' conftest.$ac_ext >&5
21476
21477fi
21478rm -f conftest.err conftest.$ac_objext \
21479      conftest$ac_exeext conftest.$ac_ext
21480      LIBS="$am_save_LIBS"
21481    fi
21482
21483fi
21484echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21485echo "${ECHO_T}$am_cv_func_iconv" >&6
21486  if test "$am_cv_func_iconv" = yes; then
21487
21488cat >>confdefs.h <<\_ACEOF
21489#define HAVE_ICONV 1
21490_ACEOF
21491
21492  fi
21493  if test "$am_cv_lib_iconv" = yes; then
21494    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
21495echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
21496    echo "$as_me:$LINENO: result: $LIBICONV" >&5
21497echo "${ECHO_T}$LIBICONV" >&6
21498  else
21499            CPPFLAGS="$am_save_CPPFLAGS"
21500    LIBICONV=
21501    LTLIBICONV=
21502  fi
21503
21504
21505
21506
21507
21508
21509    use_additional=yes
21510
21511  acl_save_prefix="$prefix"
21512  prefix="$acl_final_prefix"
21513  acl_save_exec_prefix="$exec_prefix"
21514  exec_prefix="$acl_final_exec_prefix"
21515
21516    eval additional_includedir=\"$includedir\"
21517    eval additional_libdir=\"$libdir\"
21518
21519  exec_prefix="$acl_save_exec_prefix"
21520  prefix="$acl_save_prefix"
21521
21522
21523# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
21524if test "${with_libintl_prefix+set}" = set; then
21525  withval="$with_libintl_prefix"
21526
21527    if test "X$withval" = "Xno"; then
21528      use_additional=no
21529    else
21530      if test "X$withval" = "X"; then
21531
21532  acl_save_prefix="$prefix"
21533  prefix="$acl_final_prefix"
21534  acl_save_exec_prefix="$exec_prefix"
21535  exec_prefix="$acl_final_exec_prefix"
21536
21537          eval additional_includedir=\"$includedir\"
21538          eval additional_libdir=\"$libdir\"
21539
21540  exec_prefix="$acl_save_exec_prefix"
21541  prefix="$acl_save_prefix"
21542
21543      else
21544        additional_includedir="$withval/include"
21545        additional_libdir="$withval/lib"
21546      fi
21547    fi
21548
21549fi;
21550      LIBINTL=
21551  LTLIBINTL=
21552  INCINTL=
21553  rpathdirs=
21554  ltrpathdirs=
21555  names_already_handled=
21556  names_next_round='intl '
21557  while test -n "$names_next_round"; do
21558    names_this_round="$names_next_round"
21559    names_next_round=
21560    for name in $names_this_round; do
21561      already_handled=
21562      for n in $names_already_handled; do
21563        if test "$n" = "$name"; then
21564          already_handled=yes
21565          break
21566        fi
21567      done
21568      if test -z "$already_handled"; then
21569        names_already_handled="$names_already_handled $name"
21570                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21571        eval value=\"\$HAVE_LIB$uppername\"
21572        if test -n "$value"; then
21573          if test "$value" = yes; then
21574            eval value=\"\$LIB$uppername\"
21575            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21576            eval value=\"\$LTLIB$uppername\"
21577            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21578          else
21579                                    :
21580          fi
21581        else
21582                              found_dir=
21583          found_la=
21584          found_so=
21585          found_a=
21586          if test $use_additional = yes; then
21587            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21588              found_dir="$additional_libdir"
21589              found_so="$additional_libdir/lib$name.$shlibext"
21590              if test -f "$additional_libdir/lib$name.la"; then
21591                found_la="$additional_libdir/lib$name.la"
21592              fi
21593            else
21594              if test -f "$additional_libdir/lib$name.$libext"; then
21595                found_dir="$additional_libdir"
21596                found_a="$additional_libdir/lib$name.$libext"
21597                if test -f "$additional_libdir/lib$name.la"; then
21598                  found_la="$additional_libdir/lib$name.la"
21599                fi
21600              fi
21601            fi
21602          fi
21603          if test "X$found_dir" = "X"; then
21604            for x in $LDFLAGS $LTLIBINTL; do
21605
21606  acl_save_prefix="$prefix"
21607  prefix="$acl_final_prefix"
21608  acl_save_exec_prefix="$exec_prefix"
21609  exec_prefix="$acl_final_exec_prefix"
21610  eval x=\"$x\"
21611  exec_prefix="$acl_save_exec_prefix"
21612  prefix="$acl_save_prefix"
21613
21614              case "$x" in
21615                -L*)
21616                  dir=`echo "X$x" | sed -e 's/^X-L//'`
21617                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21618                    found_dir="$dir"
21619                    found_so="$dir/lib$name.$shlibext"
21620                    if test -f "$dir/lib$name.la"; then
21621                      found_la="$dir/lib$name.la"
21622                    fi
21623                  else
21624                    if test -f "$dir/lib$name.$libext"; then
21625                      found_dir="$dir"
21626                      found_a="$dir/lib$name.$libext"
21627                      if test -f "$dir/lib$name.la"; then
21628                        found_la="$dir/lib$name.la"
21629                      fi
21630                    fi
21631                  fi
21632                  ;;
21633              esac
21634              if test "X$found_dir" != "X"; then
21635                break
21636              fi
21637            done
21638          fi
21639          if test "X$found_dir" != "X"; then
21640                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21641            if test "X$found_so" != "X"; then
21642                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21643                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21644              else
21645                                                                                haveit=
21646                for x in $ltrpathdirs; do
21647                  if test "X$x" = "X$found_dir"; then
21648                    haveit=yes
21649                    break
21650                  fi
21651                done
21652                if test -z "$haveit"; then
21653                  ltrpathdirs="$ltrpathdirs $found_dir"
21654                fi
21655                                if test "$hardcode_direct" = yes; then
21656                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21657                else
21658                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21659                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21660                                                            haveit=
21661                    for x in $rpathdirs; do
21662                      if test "X$x" = "X$found_dir"; then
21663                        haveit=yes
21664                        break
21665                      fi
21666                    done
21667                    if test -z "$haveit"; then
21668                      rpathdirs="$rpathdirs $found_dir"
21669                    fi
21670                  else
21671                                                                                haveit=
21672                    for x in $LDFLAGS $LIBINTL; do
21673
21674  acl_save_prefix="$prefix"
21675  prefix="$acl_final_prefix"
21676  acl_save_exec_prefix="$exec_prefix"
21677  exec_prefix="$acl_final_exec_prefix"
21678  eval x=\"$x\"
21679  exec_prefix="$acl_save_exec_prefix"
21680  prefix="$acl_save_prefix"
21681
21682                      if test "X$x" = "X-L$found_dir"; then
21683                        haveit=yes
21684                        break
21685                      fi
21686                    done
21687                    if test -z "$haveit"; then
21688                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21689                    fi
21690                    if test "$hardcode_minus_L" != no; then
21691                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21692                    else
21693                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21694                    fi
21695                  fi
21696                fi
21697              fi
21698            else
21699              if test "X$found_a" != "X"; then
21700                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21701              else
21702                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21703              fi
21704            fi
21705                        additional_includedir=
21706            case "$found_dir" in
21707              */lib | */lib/)
21708                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21709                additional_includedir="$basedir/include"
21710                ;;
21711            esac
21712            if test "X$additional_includedir" != "X"; then
21713                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
21714                haveit=
21715                if test "X$additional_includedir" = "X/usr/local/include"; then
21716                  if test -n "$GCC"; then
21717                    case $host_os in
21718                      linux*) haveit=yes;;
21719                    esac
21720                  fi
21721                fi
21722                if test -z "$haveit"; then
21723                  for x in $CPPFLAGS $INCINTL; do
21724
21725  acl_save_prefix="$prefix"
21726  prefix="$acl_final_prefix"
21727  acl_save_exec_prefix="$exec_prefix"
21728  exec_prefix="$acl_final_exec_prefix"
21729  eval x=\"$x\"
21730  exec_prefix="$acl_save_exec_prefix"
21731  prefix="$acl_save_prefix"
21732
21733                    if test "X$x" = "X-I$additional_includedir"; then
21734                      haveit=yes
21735                      break
21736                    fi
21737                  done
21738                  if test -z "$haveit"; then
21739                    if test -d "$additional_includedir"; then
21740                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21741                    fi
21742                  fi
21743                fi
21744              fi
21745            fi
21746                        if test -n "$found_la"; then
21747                                                        save_libdir="$libdir"
21748              case "$found_la" in
21749                */* | *\\*) . "$found_la" ;;
21750                *) . "./$found_la" ;;
21751              esac
21752              libdir="$save_libdir"
21753                            for dep in $dependency_libs; do
21754                case "$dep" in
21755                  -L*)
21756                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21757                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
21758                      haveit=
21759                      if test "X$additional_libdir" = "X/usr/local/lib"; then
21760                        if test -n "$GCC"; then
21761                          case $host_os in
21762                            linux*) haveit=yes;;
21763                          esac
21764                        fi
21765                      fi
21766                      if test -z "$haveit"; then
21767                        haveit=
21768                        for x in $LDFLAGS $LIBINTL; do
21769
21770  acl_save_prefix="$prefix"
21771  prefix="$acl_final_prefix"
21772  acl_save_exec_prefix="$exec_prefix"
21773  exec_prefix="$acl_final_exec_prefix"
21774  eval x=\"$x\"
21775  exec_prefix="$acl_save_exec_prefix"
21776  prefix="$acl_save_prefix"
21777
21778                          if test "X$x" = "X-L$additional_libdir"; then
21779                            haveit=yes
21780                            break
21781                          fi
21782                        done
21783                        if test -z "$haveit"; then
21784                          if test -d "$additional_libdir"; then
21785                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21786                          fi
21787                        fi
21788                        haveit=
21789                        for x in $LDFLAGS $LTLIBINTL; do
21790
21791  acl_save_prefix="$prefix"
21792  prefix="$acl_final_prefix"
21793  acl_save_exec_prefix="$exec_prefix"
21794  exec_prefix="$acl_final_exec_prefix"
21795  eval x=\"$x\"
21796  exec_prefix="$acl_save_exec_prefix"
21797  prefix="$acl_save_prefix"
21798
21799                          if test "X$x" = "X-L$additional_libdir"; then
21800                            haveit=yes
21801                            break
21802                          fi
21803                        done
21804                        if test -z "$haveit"; then
21805                          if test -d "$additional_libdir"; then
21806                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21807                          fi
21808                        fi
21809                      fi
21810                    fi
21811                    ;;
21812                  -R*)
21813                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
21814                    if test "$enable_rpath" != no; then
21815                                                                  haveit=
21816                      for x in $rpathdirs; do
21817                        if test "X$x" = "X$dir"; then
21818                          haveit=yes
21819                          break
21820                        fi
21821                      done
21822                      if test -z "$haveit"; then
21823                        rpathdirs="$rpathdirs $dir"
21824                      fi
21825                                                                  haveit=
21826                      for x in $ltrpathdirs; do
21827                        if test "X$x" = "X$dir"; then
21828                          haveit=yes
21829                          break
21830                        fi
21831                      done
21832                      if test -z "$haveit"; then
21833                        ltrpathdirs="$ltrpathdirs $dir"
21834                      fi
21835                    fi
21836                    ;;
21837                  -l*)
21838                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21839                    ;;
21840                  *.la)
21841                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21842                    ;;
21843                  *)
21844                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21845                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21846                    ;;
21847                esac
21848              done
21849            fi
21850          else
21851                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21852            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21853          fi
21854        fi
21855      fi
21856    done
21857  done
21858  if test "X$rpathdirs" != "X"; then
21859    if test -n "$hardcode_libdir_separator"; then
21860                        alldirs=
21861      for found_dir in $rpathdirs; do
21862        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21863      done
21864            acl_save_libdir="$libdir"
21865      libdir="$alldirs"
21866      eval flag=\"$hardcode_libdir_flag_spec\"
21867      libdir="$acl_save_libdir"
21868      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21869    else
21870            for found_dir in $rpathdirs; do
21871        acl_save_libdir="$libdir"
21872        libdir="$found_dir"
21873        eval flag=\"$hardcode_libdir_flag_spec\"
21874        libdir="$acl_save_libdir"
21875        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21876      done
21877    fi
21878  fi
21879  if test "X$ltrpathdirs" != "X"; then
21880            for found_dir in $ltrpathdirs; do
21881      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21882    done
21883  fi
21884
21885          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
21886echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
21887if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
21888  echo $ECHO_N "(cached) $ECHO_C" >&6
21889else
21890  gt_save_CPPFLAGS="$CPPFLAGS"
21891            CPPFLAGS="$CPPFLAGS $INCINTL"
21892            gt_save_LIBS="$LIBS"
21893            LIBS="$LIBS $LIBINTL"
21894                        cat >conftest.$ac_ext <<_ACEOF
21895/* confdefs.h.  */
21896_ACEOF
21897cat confdefs.h >>conftest.$ac_ext
21898cat >>conftest.$ac_ext <<_ACEOF
21899/* end confdefs.h.  */
21900#include <libintl.h>
21901extern int _nl_msg_cat_cntr;
21902extern
21903#ifdef __cplusplus
21904"C"
21905#endif
21906const char *_nl_expand_alias ();
21907int
21908main ()
21909{
21910bindtextdomain ("", "");
21911return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
21912  ;
21913  return 0;
21914}
21915_ACEOF
21916rm -f conftest.$ac_objext conftest$ac_exeext
21917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21918  (eval $ac_link) 2>conftest.er1
21919  ac_status=$?
21920  grep -v '^ *+' conftest.er1 >conftest.err
21921  rm -f conftest.er1
21922  cat conftest.err >&5
21923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924  (exit $ac_status); } &&
21925	 { ac_try='test -z "$ac_c_werror_flag"
21926			 || test ! -s conftest.err'
21927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928  (eval $ac_try) 2>&5
21929  ac_status=$?
21930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931  (exit $ac_status); }; } &&
21932	 { ac_try='test -s conftest$ac_exeext'
21933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934  (eval $ac_try) 2>&5
21935  ac_status=$?
21936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937  (exit $ac_status); }; }; then
21938  gt_cv_func_gnugettext1_libintl=yes
21939else
21940  echo "$as_me: failed program was:" >&5
21941sed 's/^/| /' conftest.$ac_ext >&5
21942
21943gt_cv_func_gnugettext1_libintl=no
21944fi
21945rm -f conftest.err conftest.$ac_objext \
21946      conftest$ac_exeext conftest.$ac_ext
21947                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21948              LIBS="$LIBS $LIBICONV"
21949              cat >conftest.$ac_ext <<_ACEOF
21950/* confdefs.h.  */
21951_ACEOF
21952cat confdefs.h >>conftest.$ac_ext
21953cat >>conftest.$ac_ext <<_ACEOF
21954/* end confdefs.h.  */
21955#include <libintl.h>
21956extern int _nl_msg_cat_cntr;
21957extern
21958#ifdef __cplusplus
21959"C"
21960#endif
21961const char *_nl_expand_alias ();
21962int
21963main ()
21964{
21965bindtextdomain ("", "");
21966return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
21967  ;
21968  return 0;
21969}
21970_ACEOF
21971rm -f conftest.$ac_objext conftest$ac_exeext
21972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21973  (eval $ac_link) 2>conftest.er1
21974  ac_status=$?
21975  grep -v '^ *+' conftest.er1 >conftest.err
21976  rm -f conftest.er1
21977  cat conftest.err >&5
21978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979  (exit $ac_status); } &&
21980	 { ac_try='test -z "$ac_c_werror_flag"
21981			 || test ! -s conftest.err'
21982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21983  (eval $ac_try) 2>&5
21984  ac_status=$?
21985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986  (exit $ac_status); }; } &&
21987	 { ac_try='test -s conftest$ac_exeext'
21988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21989  (eval $ac_try) 2>&5
21990  ac_status=$?
21991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992  (exit $ac_status); }; }; then
21993  LIBINTL="$LIBINTL $LIBICONV"
21994                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21995                gt_cv_func_gnugettext1_libintl=yes
21996
21997else
21998  echo "$as_me: failed program was:" >&5
21999sed 's/^/| /' conftest.$ac_ext >&5
22000
22001fi
22002rm -f conftest.err conftest.$ac_objext \
22003      conftest$ac_exeext conftest.$ac_ext
22004            fi
22005            CPPFLAGS="$gt_save_CPPFLAGS"
22006            LIBS="$gt_save_LIBS"
22007fi
22008echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
22009echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
22010        fi
22011
22012                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
22013           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
22014                && test "$PACKAGE" != gettext-runtime \
22015                && test "$PACKAGE" != gettext-tools; }; then
22016          gt_use_preinstalled_gnugettext=yes
22017        else
22018                    LIBINTL=
22019          LTLIBINTL=
22020          INCINTL=
22021        fi
22022
22023
22024
22025    if test "$gt_use_preinstalled_gnugettext" = "yes" \
22026       || test "$nls_cv_use_gnu_gettext" = "yes"; then
22027
22028cat >>confdefs.h <<\_ACEOF
22029#define ENABLE_NLS 1
22030_ACEOF
22031
22032    else
22033      USE_NLS=no
22034    fi
22035  fi
22036
22037  echo "$as_me:$LINENO: checking whether to use NLS" >&5
22038echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
22039  echo "$as_me:$LINENO: result: $USE_NLS" >&5
22040echo "${ECHO_T}$USE_NLS" >&6
22041  if test "$USE_NLS" = "yes"; then
22042    echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
22043echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
22044    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22045      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
22046        gt_source="external libintl"
22047      else
22048        gt_source="libc"
22049      fi
22050    else
22051      gt_source="included intl directory"
22052    fi
22053    echo "$as_me:$LINENO: result: $gt_source" >&5
22054echo "${ECHO_T}$gt_source" >&6
22055  fi
22056
22057  if test "$USE_NLS" = "yes"; then
22058
22059    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22060      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
22061        echo "$as_me:$LINENO: checking how to link with libintl" >&5
22062echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
22063        echo "$as_me:$LINENO: result: $LIBINTL" >&5
22064echo "${ECHO_T}$LIBINTL" >&6
22065
22066  for element in $INCINTL; do
22067    haveit=
22068    for x in $CPPFLAGS; do
22069
22070  acl_save_prefix="$prefix"
22071  prefix="$acl_final_prefix"
22072  acl_save_exec_prefix="$exec_prefix"
22073  exec_prefix="$acl_final_exec_prefix"
22074  eval x=\"$x\"
22075  exec_prefix="$acl_save_exec_prefix"
22076  prefix="$acl_save_prefix"
22077
22078      if test "X$x" = "X$element"; then
22079        haveit=yes
22080        break
22081      fi
22082    done
22083    if test -z "$haveit"; then
22084      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22085    fi
22086  done
22087
22088      fi
22089
22090
22091cat >>confdefs.h <<\_ACEOF
22092#define HAVE_GETTEXT 1
22093_ACEOF
22094
22095
22096cat >>confdefs.h <<\_ACEOF
22097#define HAVE_DCGETTEXT 1
22098_ACEOF
22099
22100    fi
22101
22102        POSUB=po
22103  fi
22104
22105
22106
22107    INTLLIBS="$LIBINTL"
22108
22109
22110
22111
22112
22113
22114
22115
22116echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22117echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
22118if test "${ac_cv_header_stdc+set}" = set; then
22119  echo $ECHO_N "(cached) $ECHO_C" >&6
22120else
22121  cat >conftest.$ac_ext <<_ACEOF
22122/* confdefs.h.  */
22123_ACEOF
22124cat confdefs.h >>conftest.$ac_ext
22125cat >>conftest.$ac_ext <<_ACEOF
22126/* end confdefs.h.  */
22127#include <stdlib.h>
22128#include <stdarg.h>
22129#include <string.h>
22130#include <float.h>
22131
22132int
22133main ()
22134{
22135
22136  ;
22137  return 0;
22138}
22139_ACEOF
22140rm -f conftest.$ac_objext
22141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22142  (eval $ac_compile) 2>conftest.er1
22143  ac_status=$?
22144  grep -v '^ *+' conftest.er1 >conftest.err
22145  rm -f conftest.er1
22146  cat conftest.err >&5
22147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148  (exit $ac_status); } &&
22149	 { ac_try='test -z "$ac_c_werror_flag"
22150			 || test ! -s conftest.err'
22151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22152  (eval $ac_try) 2>&5
22153  ac_status=$?
22154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155  (exit $ac_status); }; } &&
22156	 { ac_try='test -s conftest.$ac_objext'
22157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22158  (eval $ac_try) 2>&5
22159  ac_status=$?
22160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161  (exit $ac_status); }; }; then
22162  ac_cv_header_stdc=yes
22163else
22164  echo "$as_me: failed program was:" >&5
22165sed 's/^/| /' conftest.$ac_ext >&5
22166
22167ac_cv_header_stdc=no
22168fi
22169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22170
22171if test $ac_cv_header_stdc = yes; then
22172  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22173  cat >conftest.$ac_ext <<_ACEOF
22174/* confdefs.h.  */
22175_ACEOF
22176cat confdefs.h >>conftest.$ac_ext
22177cat >>conftest.$ac_ext <<_ACEOF
22178/* end confdefs.h.  */
22179#include <string.h>
22180
22181_ACEOF
22182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22183  $EGREP "memchr" >/dev/null 2>&1; then
22184  :
22185else
22186  ac_cv_header_stdc=no
22187fi
22188rm -f conftest*
22189
22190fi
22191
22192if test $ac_cv_header_stdc = yes; then
22193  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22194  cat >conftest.$ac_ext <<_ACEOF
22195/* confdefs.h.  */
22196_ACEOF
22197cat confdefs.h >>conftest.$ac_ext
22198cat >>conftest.$ac_ext <<_ACEOF
22199/* end confdefs.h.  */
22200#include <stdlib.h>
22201
22202_ACEOF
22203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22204  $EGREP "free" >/dev/null 2>&1; then
22205  :
22206else
22207  ac_cv_header_stdc=no
22208fi
22209rm -f conftest*
22210
22211fi
22212
22213if test $ac_cv_header_stdc = yes; then
22214  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22215  if test "$cross_compiling" = yes; then
22216  :
22217else
22218  cat >conftest.$ac_ext <<_ACEOF
22219/* confdefs.h.  */
22220_ACEOF
22221cat confdefs.h >>conftest.$ac_ext
22222cat >>conftest.$ac_ext <<_ACEOF
22223/* end confdefs.h.  */
22224#include <ctype.h>
22225#if ((' ' & 0x0FF) == 0x020)
22226# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22227# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22228#else
22229# define ISLOWER(c) \
22230		   (('a' <= (c) && (c) <= 'i') \
22231		     || ('j' <= (c) && (c) <= 'r') \
22232		     || ('s' <= (c) && (c) <= 'z'))
22233# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22234#endif
22235
22236#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22237int
22238main ()
22239{
22240  int i;
22241  for (i = 0; i < 256; i++)
22242    if (XOR (islower (i), ISLOWER (i))
22243	|| toupper (i) != TOUPPER (i))
22244      exit(2);
22245  exit (0);
22246}
22247_ACEOF
22248rm -f conftest$ac_exeext
22249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22250  (eval $ac_link) 2>&5
22251  ac_status=$?
22252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255  (eval $ac_try) 2>&5
22256  ac_status=$?
22257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258  (exit $ac_status); }; }; then
22259  :
22260else
22261  echo "$as_me: program exited with status $ac_status" >&5
22262echo "$as_me: failed program was:" >&5
22263sed 's/^/| /' conftest.$ac_ext >&5
22264
22265( exit $ac_status )
22266ac_cv_header_stdc=no
22267fi
22268rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22269fi
22270fi
22271fi
22272echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22273echo "${ECHO_T}$ac_cv_header_stdc" >&6
22274if test $ac_cv_header_stdc = yes; then
22275
22276cat >>confdefs.h <<\_ACEOF
22277#define STDC_HEADERS 1
22278_ACEOF
22279
22280fi
22281
22282
22283
22284
22285
22286for ac_header in locale.h stddef.h stdlib.h string.h
22287do
22288as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22289if eval "test \"\${$as_ac_Header+set}\" = set"; then
22290  echo "$as_me:$LINENO: checking for $ac_header" >&5
22291echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22292if eval "test \"\${$as_ac_Header+set}\" = set"; then
22293  echo $ECHO_N "(cached) $ECHO_C" >&6
22294fi
22295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22296echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22297else
22298  # Is the header compilable?
22299echo "$as_me:$LINENO: checking $ac_header usability" >&5
22300echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22301cat >conftest.$ac_ext <<_ACEOF
22302/* confdefs.h.  */
22303_ACEOF
22304cat confdefs.h >>conftest.$ac_ext
22305cat >>conftest.$ac_ext <<_ACEOF
22306/* end confdefs.h.  */
22307$ac_includes_default
22308#include <$ac_header>
22309_ACEOF
22310rm -f conftest.$ac_objext
22311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22312  (eval $ac_compile) 2>conftest.er1
22313  ac_status=$?
22314  grep -v '^ *+' conftest.er1 >conftest.err
22315  rm -f conftest.er1
22316  cat conftest.err >&5
22317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318  (exit $ac_status); } &&
22319	 { ac_try='test -z "$ac_c_werror_flag"
22320			 || test ! -s conftest.err'
22321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22322  (eval $ac_try) 2>&5
22323  ac_status=$?
22324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325  (exit $ac_status); }; } &&
22326	 { ac_try='test -s conftest.$ac_objext'
22327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22328  (eval $ac_try) 2>&5
22329  ac_status=$?
22330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331  (exit $ac_status); }; }; then
22332  ac_header_compiler=yes
22333else
22334  echo "$as_me: failed program was:" >&5
22335sed 's/^/| /' conftest.$ac_ext >&5
22336
22337ac_header_compiler=no
22338fi
22339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22340echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22341echo "${ECHO_T}$ac_header_compiler" >&6
22342
22343# Is the header present?
22344echo "$as_me:$LINENO: checking $ac_header presence" >&5
22345echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22346cat >conftest.$ac_ext <<_ACEOF
22347/* confdefs.h.  */
22348_ACEOF
22349cat confdefs.h >>conftest.$ac_ext
22350cat >>conftest.$ac_ext <<_ACEOF
22351/* end confdefs.h.  */
22352#include <$ac_header>
22353_ACEOF
22354if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22355  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22356  ac_status=$?
22357  grep -v '^ *+' conftest.er1 >conftest.err
22358  rm -f conftest.er1
22359  cat conftest.err >&5
22360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361  (exit $ac_status); } >/dev/null; then
22362  if test -s conftest.err; then
22363    ac_cpp_err=$ac_c_preproc_warn_flag
22364    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22365  else
22366    ac_cpp_err=
22367  fi
22368else
22369  ac_cpp_err=yes
22370fi
22371if test -z "$ac_cpp_err"; then
22372  ac_header_preproc=yes
22373else
22374  echo "$as_me: failed program was:" >&5
22375sed 's/^/| /' conftest.$ac_ext >&5
22376
22377  ac_header_preproc=no
22378fi
22379rm -f conftest.err conftest.$ac_ext
22380echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22381echo "${ECHO_T}$ac_header_preproc" >&6
22382
22383# So?  What about this header?
22384case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22385  yes:no: )
22386    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22387echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22388    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22389echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22390    ac_header_preproc=yes
22391    ;;
22392  no:yes:* )
22393    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22394echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22395    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22396echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22397    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22398echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22399    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22400echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22401    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22402echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22403    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22404echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22405    (
22406      cat <<\_ASBOX
22407## ------------------------------------------ ##
22408## Report this to the AC_PACKAGE_NAME lists.  ##
22409## ------------------------------------------ ##
22410_ASBOX
22411    ) |
22412      sed "s/^/$as_me: WARNING:     /" >&2
22413    ;;
22414esac
22415echo "$as_me:$LINENO: checking for $ac_header" >&5
22416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22417if eval "test \"\${$as_ac_Header+set}\" = set"; then
22418  echo $ECHO_N "(cached) $ECHO_C" >&6
22419else
22420  eval "$as_ac_Header=\$ac_header_preproc"
22421fi
22422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22423echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22424
22425fi
22426if test `eval echo '${'$as_ac_Header'}'` = yes; then
22427  cat >>confdefs.h <<_ACEOF
22428#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22429_ACEOF
22430
22431fi
22432
22433done
22434
22435
22436
22437
22438
22439for ac_header in stdlib.h
22440do
22441as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22442if eval "test \"\${$as_ac_Header+set}\" = set"; then
22443  echo "$as_me:$LINENO: checking for $ac_header" >&5
22444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22445if eval "test \"\${$as_ac_Header+set}\" = set"; then
22446  echo $ECHO_N "(cached) $ECHO_C" >&6
22447fi
22448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22449echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22450else
22451  # Is the header compilable?
22452echo "$as_me:$LINENO: checking $ac_header usability" >&5
22453echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22454cat >conftest.$ac_ext <<_ACEOF
22455/* confdefs.h.  */
22456_ACEOF
22457cat confdefs.h >>conftest.$ac_ext
22458cat >>conftest.$ac_ext <<_ACEOF
22459/* end confdefs.h.  */
22460$ac_includes_default
22461#include <$ac_header>
22462_ACEOF
22463rm -f conftest.$ac_objext
22464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22465  (eval $ac_compile) 2>conftest.er1
22466  ac_status=$?
22467  grep -v '^ *+' conftest.er1 >conftest.err
22468  rm -f conftest.er1
22469  cat conftest.err >&5
22470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471  (exit $ac_status); } &&
22472	 { ac_try='test -z "$ac_c_werror_flag"
22473			 || test ! -s conftest.err'
22474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22475  (eval $ac_try) 2>&5
22476  ac_status=$?
22477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478  (exit $ac_status); }; } &&
22479	 { ac_try='test -s conftest.$ac_objext'
22480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481  (eval $ac_try) 2>&5
22482  ac_status=$?
22483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484  (exit $ac_status); }; }; then
22485  ac_header_compiler=yes
22486else
22487  echo "$as_me: failed program was:" >&5
22488sed 's/^/| /' conftest.$ac_ext >&5
22489
22490ac_header_compiler=no
22491fi
22492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22493echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22494echo "${ECHO_T}$ac_header_compiler" >&6
22495
22496# Is the header present?
22497echo "$as_me:$LINENO: checking $ac_header presence" >&5
22498echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22499cat >conftest.$ac_ext <<_ACEOF
22500/* confdefs.h.  */
22501_ACEOF
22502cat confdefs.h >>conftest.$ac_ext
22503cat >>conftest.$ac_ext <<_ACEOF
22504/* end confdefs.h.  */
22505#include <$ac_header>
22506_ACEOF
22507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22508  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22509  ac_status=$?
22510  grep -v '^ *+' conftest.er1 >conftest.err
22511  rm -f conftest.er1
22512  cat conftest.err >&5
22513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514  (exit $ac_status); } >/dev/null; then
22515  if test -s conftest.err; then
22516    ac_cpp_err=$ac_c_preproc_warn_flag
22517    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22518  else
22519    ac_cpp_err=
22520  fi
22521else
22522  ac_cpp_err=yes
22523fi
22524if test -z "$ac_cpp_err"; then
22525  ac_header_preproc=yes
22526else
22527  echo "$as_me: failed program was:" >&5
22528sed 's/^/| /' conftest.$ac_ext >&5
22529
22530  ac_header_preproc=no
22531fi
22532rm -f conftest.err conftest.$ac_ext
22533echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22534echo "${ECHO_T}$ac_header_preproc" >&6
22535
22536# So?  What about this header?
22537case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22538  yes:no: )
22539    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22540echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22541    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22542echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22543    ac_header_preproc=yes
22544    ;;
22545  no:yes:* )
22546    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22547echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22548    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22549echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22550    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22551echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22552    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22553echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22554    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22555echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22556    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22557echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22558    (
22559      cat <<\_ASBOX
22560## ------------------------------------------ ##
22561## Report this to the AC_PACKAGE_NAME lists.  ##
22562## ------------------------------------------ ##
22563_ASBOX
22564    ) |
22565      sed "s/^/$as_me: WARNING:     /" >&2
22566    ;;
22567esac
22568echo "$as_me:$LINENO: checking for $ac_header" >&5
22569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22570if eval "test \"\${$as_ac_Header+set}\" = set"; then
22571  echo $ECHO_N "(cached) $ECHO_C" >&6
22572else
22573  eval "$as_ac_Header=\$ac_header_preproc"
22574fi
22575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22576echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22577
22578fi
22579if test `eval echo '${'$as_ac_Header'}'` = yes; then
22580  cat >>confdefs.h <<_ACEOF
22581#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22582_ACEOF
22583
22584fi
22585
22586done
22587
22588
22589   echo "$as_me:$LINENO: checking for mbstate_t" >&5
22590echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22591if test "${ac_cv_type_mbstate_t+set}" = set; then
22592  echo $ECHO_N "(cached) $ECHO_C" >&6
22593else
22594  cat >conftest.$ac_ext <<_ACEOF
22595/* confdefs.h.  */
22596_ACEOF
22597cat confdefs.h >>conftest.$ac_ext
22598cat >>conftest.$ac_ext <<_ACEOF
22599/* end confdefs.h.  */
22600
22601#if HAVE_STDLIB_H
22602# include <stdlib.h>
22603#endif
22604#include <wchar.h>
22605int
22606main ()
22607{
22608mbstate_t x; return sizeof x;
22609  ;
22610  return 0;
22611}
22612_ACEOF
22613rm -f conftest.$ac_objext
22614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22615  (eval $ac_compile) 2>conftest.er1
22616  ac_status=$?
22617  grep -v '^ *+' conftest.er1 >conftest.err
22618  rm -f conftest.er1
22619  cat conftest.err >&5
22620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621  (exit $ac_status); } &&
22622	 { ac_try='test -z "$ac_c_werror_flag"
22623			 || test ! -s conftest.err'
22624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22625  (eval $ac_try) 2>&5
22626  ac_status=$?
22627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628  (exit $ac_status); }; } &&
22629	 { ac_try='test -s conftest.$ac_objext'
22630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22631  (eval $ac_try) 2>&5
22632  ac_status=$?
22633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634  (exit $ac_status); }; }; then
22635  ac_cv_type_mbstate_t=yes
22636else
22637  echo "$as_me: failed program was:" >&5
22638sed 's/^/| /' conftest.$ac_ext >&5
22639
22640ac_cv_type_mbstate_t=no
22641fi
22642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22643fi
22644echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22645echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22646   if test $ac_cv_type_mbstate_t = no; then
22647
22648cat >>confdefs.h <<\_ACEOF
22649#define mbstate_t int
22650_ACEOF
22651
22652   fi
22653
22654  echo "$as_me:$LINENO: checking for inttypes.h" >&5
22655echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
22656if test "${gt_cv_header_inttypes_h+set}" = set; then
22657  echo $ECHO_N "(cached) $ECHO_C" >&6
22658else
22659
22660    cat >conftest.$ac_ext <<_ACEOF
22661/* confdefs.h.  */
22662_ACEOF
22663cat confdefs.h >>conftest.$ac_ext
22664cat >>conftest.$ac_ext <<_ACEOF
22665/* end confdefs.h.  */
22666#include <sys/types.h>
22667#include <inttypes.h>
22668int
22669main ()
22670{
22671
22672  ;
22673  return 0;
22674}
22675_ACEOF
22676rm -f conftest.$ac_objext
22677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22678  (eval $ac_compile) 2>conftest.er1
22679  ac_status=$?
22680  grep -v '^ *+' conftest.er1 >conftest.err
22681  rm -f conftest.er1
22682  cat conftest.err >&5
22683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684  (exit $ac_status); } &&
22685	 { ac_try='test -z "$ac_c_werror_flag"
22686			 || test ! -s conftest.err'
22687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22688  (eval $ac_try) 2>&5
22689  ac_status=$?
22690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691  (exit $ac_status); }; } &&
22692	 { ac_try='test -s conftest.$ac_objext'
22693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22694  (eval $ac_try) 2>&5
22695  ac_status=$?
22696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697  (exit $ac_status); }; }; then
22698  gt_cv_header_inttypes_h=yes
22699else
22700  echo "$as_me: failed program was:" >&5
22701sed 's/^/| /' conftest.$ac_ext >&5
22702
22703gt_cv_header_inttypes_h=no
22704fi
22705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22706
22707fi
22708echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
22709echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
22710  if test $gt_cv_header_inttypes_h = yes; then
22711
22712cat >>confdefs.h <<_ACEOF
22713#define HAVE_INTTYPES_H 1
22714_ACEOF
22715
22716  fi
22717
22718
22719
22720for ac_header in sys/inttypes.h
22721do
22722as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22723if eval "test \"\${$as_ac_Header+set}\" = set"; then
22724  echo "$as_me:$LINENO: checking for $ac_header" >&5
22725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22726if eval "test \"\${$as_ac_Header+set}\" = set"; then
22727  echo $ECHO_N "(cached) $ECHO_C" >&6
22728fi
22729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22730echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22731else
22732  # Is the header compilable?
22733echo "$as_me:$LINENO: checking $ac_header usability" >&5
22734echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22735cat >conftest.$ac_ext <<_ACEOF
22736/* confdefs.h.  */
22737_ACEOF
22738cat confdefs.h >>conftest.$ac_ext
22739cat >>conftest.$ac_ext <<_ACEOF
22740/* end confdefs.h.  */
22741$ac_includes_default
22742#include <$ac_header>
22743_ACEOF
22744rm -f conftest.$ac_objext
22745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22746  (eval $ac_compile) 2>conftest.er1
22747  ac_status=$?
22748  grep -v '^ *+' conftest.er1 >conftest.err
22749  rm -f conftest.er1
22750  cat conftest.err >&5
22751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752  (exit $ac_status); } &&
22753	 { ac_try='test -z "$ac_c_werror_flag"
22754			 || test ! -s conftest.err'
22755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756  (eval $ac_try) 2>&5
22757  ac_status=$?
22758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759  (exit $ac_status); }; } &&
22760	 { ac_try='test -s conftest.$ac_objext'
22761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22762  (eval $ac_try) 2>&5
22763  ac_status=$?
22764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765  (exit $ac_status); }; }; then
22766  ac_header_compiler=yes
22767else
22768  echo "$as_me: failed program was:" >&5
22769sed 's/^/| /' conftest.$ac_ext >&5
22770
22771ac_header_compiler=no
22772fi
22773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22774echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22775echo "${ECHO_T}$ac_header_compiler" >&6
22776
22777# Is the header present?
22778echo "$as_me:$LINENO: checking $ac_header presence" >&5
22779echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22780cat >conftest.$ac_ext <<_ACEOF
22781/* confdefs.h.  */
22782_ACEOF
22783cat confdefs.h >>conftest.$ac_ext
22784cat >>conftest.$ac_ext <<_ACEOF
22785/* end confdefs.h.  */
22786#include <$ac_header>
22787_ACEOF
22788if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22789  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22790  ac_status=$?
22791  grep -v '^ *+' conftest.er1 >conftest.err
22792  rm -f conftest.er1
22793  cat conftest.err >&5
22794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795  (exit $ac_status); } >/dev/null; then
22796  if test -s conftest.err; then
22797    ac_cpp_err=$ac_c_preproc_warn_flag
22798    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22799  else
22800    ac_cpp_err=
22801  fi
22802else
22803  ac_cpp_err=yes
22804fi
22805if test -z "$ac_cpp_err"; then
22806  ac_header_preproc=yes
22807else
22808  echo "$as_me: failed program was:" >&5
22809sed 's/^/| /' conftest.$ac_ext >&5
22810
22811  ac_header_preproc=no
22812fi
22813rm -f conftest.err conftest.$ac_ext
22814echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22815echo "${ECHO_T}$ac_header_preproc" >&6
22816
22817# So?  What about this header?
22818case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22819  yes:no: )
22820    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22821echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22822    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22823echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22824    ac_header_preproc=yes
22825    ;;
22826  no:yes:* )
22827    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22828echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22829    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22830echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22831    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22832echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22833    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22834echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22835    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22836echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22837    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22838echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22839    (
22840      cat <<\_ASBOX
22841## ------------------------------------------ ##
22842## Report this to the AC_PACKAGE_NAME lists.  ##
22843## ------------------------------------------ ##
22844_ASBOX
22845    ) |
22846      sed "s/^/$as_me: WARNING:     /" >&2
22847    ;;
22848esac
22849echo "$as_me:$LINENO: checking for $ac_header" >&5
22850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22851if eval "test \"\${$as_ac_Header+set}\" = set"; then
22852  echo $ECHO_N "(cached) $ECHO_C" >&6
22853else
22854  eval "$as_ac_Header=\$ac_header_preproc"
22855fi
22856echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22857echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22858
22859fi
22860if test `eval echo '${'$as_ac_Header'}'` = yes; then
22861  cat >>confdefs.h <<_ACEOF
22862#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22863_ACEOF
22864
22865fi
22866
22867done
22868
22869
22870echo "$as_me:$LINENO: checking for stdint.h" >&5
22871echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
22872if test "${gl_cv_header_stdint_h+set}" = set; then
22873  echo $ECHO_N "(cached) $ECHO_C" >&6
22874else
22875
22876  cat >conftest.$ac_ext <<_ACEOF
22877/* confdefs.h.  */
22878_ACEOF
22879cat confdefs.h >>conftest.$ac_ext
22880cat >>conftest.$ac_ext <<_ACEOF
22881/* end confdefs.h.  */
22882#include <stdint.h>
22883int
22884main ()
22885{
22886
22887  ;
22888  return 0;
22889}
22890_ACEOF
22891rm -f conftest.$ac_objext
22892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22893  (eval $ac_compile) 2>conftest.er1
22894  ac_status=$?
22895  grep -v '^ *+' conftest.er1 >conftest.err
22896  rm -f conftest.er1
22897  cat conftest.err >&5
22898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899  (exit $ac_status); } &&
22900	 { ac_try='test -z "$ac_c_werror_flag"
22901			 || test ! -s conftest.err'
22902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22903  (eval $ac_try) 2>&5
22904  ac_status=$?
22905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906  (exit $ac_status); }; } &&
22907	 { ac_try='test -s conftest.$ac_objext'
22908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909  (eval $ac_try) 2>&5
22910  ac_status=$?
22911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912  (exit $ac_status); }; }; then
22913  gl_cv_header_stdint_h=yes
22914else
22915  echo "$as_me: failed program was:" >&5
22916sed 's/^/| /' conftest.$ac_ext >&5
22917
22918gl_cv_header_stdint_h=no
22919fi
22920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22921fi
22922
22923echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
22924echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
22925if test $gl_cv_header_stdint_h = yes; then
22926
22927cat >>confdefs.h <<\_ACEOF
22928#define HAVE_STDINT_H 1
22929_ACEOF
22930
22931  STDINT_H=''
22932else
22933  STDINT_H='stdint.h'
22934
22935    echo "$as_me:$LINENO: checking whether 'long' is 64 bit wide" >&5
22936echo $ECHO_N "checking whether 'long' is 64 bit wide... $ECHO_C" >&6
22937if test "${gl_cv_long_bitsize_64+set}" = set; then
22938  echo $ECHO_N "(cached) $ECHO_C" >&6
22939else
22940
22941    cat >conftest.$ac_ext <<_ACEOF
22942/* confdefs.h.  */
22943_ACEOF
22944cat confdefs.h >>conftest.$ac_ext
22945cat >>conftest.$ac_ext <<_ACEOF
22946/* end confdefs.h.  */
22947
22948#define POW63  ((((((long) 1 << 15) << 15) << 15) << 15) << 3)
22949#define POW64  ((((((long) 1 << 15) << 15) << 15) << 15) << 4)
22950typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1];
22951
22952int
22953main ()
22954{
22955
22956  ;
22957  return 0;
22958}
22959_ACEOF
22960rm -f conftest.$ac_objext
22961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22962  (eval $ac_compile) 2>conftest.er1
22963  ac_status=$?
22964  grep -v '^ *+' conftest.er1 >conftest.err
22965  rm -f conftest.er1
22966  cat conftest.err >&5
22967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968  (exit $ac_status); } &&
22969	 { ac_try='test -z "$ac_c_werror_flag"
22970			 || test ! -s conftest.err'
22971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22972  (eval $ac_try) 2>&5
22973  ac_status=$?
22974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975  (exit $ac_status); }; } &&
22976	 { ac_try='test -s conftest.$ac_objext'
22977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22978  (eval $ac_try) 2>&5
22979  ac_status=$?
22980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981  (exit $ac_status); }; }; then
22982  gl_cv_long_bitsize_64=yes
22983else
22984  echo "$as_me: failed program was:" >&5
22985sed 's/^/| /' conftest.$ac_ext >&5
22986
22987gl_cv_long_bitsize_64=no
22988fi
22989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22990fi
22991echo "$as_me:$LINENO: result: $gl_cv_long_bitsize_64" >&5
22992echo "${ECHO_T}$gl_cv_long_bitsize_64" >&6
22993  if test $gl_cv_long_bitsize_64 = yes; then
22994    HAVE_LONG_64BIT=1
22995  else
22996    HAVE_LONG_64BIT=0
22997  fi
22998
22999
23000    echo "$as_me:$LINENO: checking whether 'long long' is 64 bit wide" >&5
23001echo $ECHO_N "checking whether 'long long' is 64 bit wide... $ECHO_C" >&6
23002if test "${gl_cv_longlong_bitsize_64+set}" = set; then
23003  echo $ECHO_N "(cached) $ECHO_C" >&6
23004else
23005
23006    cat >conftest.$ac_ext <<_ACEOF
23007/* confdefs.h.  */
23008_ACEOF
23009cat confdefs.h >>conftest.$ac_ext
23010cat >>conftest.$ac_ext <<_ACEOF
23011/* end confdefs.h.  */
23012
23013#define POW63  ((((((long long) 1 << 15) << 15) << 15) << 15) << 3)
23014#define POW64  ((((((long long) 1 << 15) << 15) << 15) << 15) << 4)
23015typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1];
23016
23017int
23018main ()
23019{
23020
23021  ;
23022  return 0;
23023}
23024_ACEOF
23025rm -f conftest.$ac_objext
23026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23027  (eval $ac_compile) 2>conftest.er1
23028  ac_status=$?
23029  grep -v '^ *+' conftest.er1 >conftest.err
23030  rm -f conftest.er1
23031  cat conftest.err >&5
23032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033  (exit $ac_status); } &&
23034	 { ac_try='test -z "$ac_c_werror_flag"
23035			 || test ! -s conftest.err'
23036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23037  (eval $ac_try) 2>&5
23038  ac_status=$?
23039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040  (exit $ac_status); }; } &&
23041	 { ac_try='test -s conftest.$ac_objext'
23042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23043  (eval $ac_try) 2>&5
23044  ac_status=$?
23045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046  (exit $ac_status); }; }; then
23047  gl_cv_longlong_bitsize_64=yes
23048else
23049  echo "$as_me: failed program was:" >&5
23050sed 's/^/| /' conftest.$ac_ext >&5
23051
23052gl_cv_longlong_bitsize_64=no
23053fi
23054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23055fi
23056echo "$as_me:$LINENO: result: $gl_cv_longlong_bitsize_64" >&5
23057echo "${ECHO_T}$gl_cv_longlong_bitsize_64" >&6
23058  if test $gl_cv_longlong_bitsize_64 = yes; then
23059    HAVE_LONG_LONG_64BIT=1
23060  else
23061    HAVE_LONG_LONG_64BIT=0
23062  fi
23063
23064
23065fi
23066
23067
23068
23069
23070if test "$am_cv_func_iconv" = yes -a -z "$am_cv_proto_iconv_arg1"; then
23071  ICONV_CONST=""
23072else
23073  ICONV_CONST="const"
23074fi
23075
23076
23077
23078
23079
23080
23081
23082for ac_func in getc_unlocked mbrtowc wcrtomb mbsinit setlocale
23083do
23084as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23085echo "$as_me:$LINENO: checking for $ac_func" >&5
23086echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23087if eval "test \"\${$as_ac_var+set}\" = set"; then
23088  echo $ECHO_N "(cached) $ECHO_C" >&6
23089else
23090  cat >conftest.$ac_ext <<_ACEOF
23091/* confdefs.h.  */
23092_ACEOF
23093cat confdefs.h >>conftest.$ac_ext
23094cat >>conftest.$ac_ext <<_ACEOF
23095/* end confdefs.h.  */
23096/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23097   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23098#define $ac_func innocuous_$ac_func
23099
23100/* System header to define __stub macros and hopefully few prototypes,
23101    which can conflict with char $ac_func (); below.
23102    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23103    <limits.h> exists even on freestanding compilers.  */
23104
23105#ifdef __STDC__
23106# include <limits.h>
23107#else
23108# include <assert.h>
23109#endif
23110
23111#undef $ac_func
23112
23113/* Override any gcc2 internal prototype to avoid an error.  */
23114#ifdef __cplusplus
23115extern "C"
23116{
23117#endif
23118/* We use char because int might match the return type of a gcc2
23119   builtin and then its argument prototype would still apply.  */
23120char $ac_func ();
23121/* The GNU C library defines this for functions which it implements
23122    to always fail with ENOSYS.  Some functions are actually named
23123    something starting with __ and the normal name is an alias.  */
23124#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23125choke me
23126#else
23127char (*f) () = $ac_func;
23128#endif
23129#ifdef __cplusplus
23130}
23131#endif
23132
23133int
23134main ()
23135{
23136return f != $ac_func;
23137  ;
23138  return 0;
23139}
23140_ACEOF
23141rm -f conftest.$ac_objext conftest$ac_exeext
23142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23143  (eval $ac_link) 2>conftest.er1
23144  ac_status=$?
23145  grep -v '^ *+' conftest.er1 >conftest.err
23146  rm -f conftest.er1
23147  cat conftest.err >&5
23148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149  (exit $ac_status); } &&
23150	 { ac_try='test -z "$ac_c_werror_flag"
23151			 || test ! -s conftest.err'
23152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23153  (eval $ac_try) 2>&5
23154  ac_status=$?
23155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156  (exit $ac_status); }; } &&
23157	 { ac_try='test -s conftest$ac_exeext'
23158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23159  (eval $ac_try) 2>&5
23160  ac_status=$?
23161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162  (exit $ac_status); }; }; then
23163  eval "$as_ac_var=yes"
23164else
23165  echo "$as_me: failed program was:" >&5
23166sed 's/^/| /' conftest.$ac_ext >&5
23167
23168eval "$as_ac_var=no"
23169fi
23170rm -f conftest.err conftest.$ac_objext \
23171      conftest$ac_exeext conftest.$ac_ext
23172fi
23173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23174echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23175if test `eval echo '${'$as_ac_var'}'` = yes; then
23176  cat >>confdefs.h <<_ACEOF
23177#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23178_ACEOF
23179
23180fi
23181done
23182
23183
23184for ac_func in memmove
23185do
23186as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23187echo "$as_me:$LINENO: checking for $ac_func" >&5
23188echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23189if eval "test \"\${$as_ac_var+set}\" = set"; then
23190  echo $ECHO_N "(cached) $ECHO_C" >&6
23191else
23192  cat >conftest.$ac_ext <<_ACEOF
23193/* confdefs.h.  */
23194_ACEOF
23195cat confdefs.h >>conftest.$ac_ext
23196cat >>conftest.$ac_ext <<_ACEOF
23197/* end confdefs.h.  */
23198/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23199   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23200#define $ac_func innocuous_$ac_func
23201
23202/* System header to define __stub macros and hopefully few prototypes,
23203    which can conflict with char $ac_func (); below.
23204    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23205    <limits.h> exists even on freestanding compilers.  */
23206
23207#ifdef __STDC__
23208# include <limits.h>
23209#else
23210# include <assert.h>
23211#endif
23212
23213#undef $ac_func
23214
23215/* Override any gcc2 internal prototype to avoid an error.  */
23216#ifdef __cplusplus
23217extern "C"
23218{
23219#endif
23220/* We use char because int might match the return type of a gcc2
23221   builtin and then its argument prototype would still apply.  */
23222char $ac_func ();
23223/* The GNU C library defines this for functions which it implements
23224    to always fail with ENOSYS.  Some functions are actually named
23225    something starting with __ and the normal name is an alias.  */
23226#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23227choke me
23228#else
23229char (*f) () = $ac_func;
23230#endif
23231#ifdef __cplusplus
23232}
23233#endif
23234
23235int
23236main ()
23237{
23238return f != $ac_func;
23239  ;
23240  return 0;
23241}
23242_ACEOF
23243rm -f conftest.$ac_objext conftest$ac_exeext
23244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23245  (eval $ac_link) 2>conftest.er1
23246  ac_status=$?
23247  grep -v '^ *+' conftest.er1 >conftest.err
23248  rm -f conftest.er1
23249  cat conftest.err >&5
23250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251  (exit $ac_status); } &&
23252	 { ac_try='test -z "$ac_c_werror_flag"
23253			 || test ! -s conftest.err'
23254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23255  (eval $ac_try) 2>&5
23256  ac_status=$?
23257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258  (exit $ac_status); }; } &&
23259	 { ac_try='test -s conftest$ac_exeext'
23260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23261  (eval $ac_try) 2>&5
23262  ac_status=$?
23263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264  (exit $ac_status); }; }; then
23265  eval "$as_ac_var=yes"
23266else
23267  echo "$as_me: failed program was:" >&5
23268sed 's/^/| /' conftest.$ac_ext >&5
23269
23270eval "$as_ac_var=no"
23271fi
23272rm -f conftest.err conftest.$ac_objext \
23273      conftest$ac_exeext conftest.$ac_ext
23274fi
23275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23276echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23277if test `eval echo '${'$as_ac_var'}'` = yes; then
23278  cat >>confdefs.h <<_ACEOF
23279#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23280_ACEOF
23281
23282else
23283  case $LIBOBJS in
23284    "$ac_func.$ac_objext"   | \
23285  *" $ac_func.$ac_objext"   | \
23286    "$ac_func.$ac_objext "* | \
23287  *" $ac_func.$ac_objext "* ) ;;
23288  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
23289esac
23290
23291fi
23292done
23293
23294
23295
23296
23297  echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23298echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
23299if test "${am_cv_langinfo_codeset+set}" = set; then
23300  echo $ECHO_N "(cached) $ECHO_C" >&6
23301else
23302  cat >conftest.$ac_ext <<_ACEOF
23303/* confdefs.h.  */
23304_ACEOF
23305cat confdefs.h >>conftest.$ac_ext
23306cat >>conftest.$ac_ext <<_ACEOF
23307/* end confdefs.h.  */
23308#include <langinfo.h>
23309int
23310main ()
23311{
23312char* cs = nl_langinfo(CODESET);
23313  ;
23314  return 0;
23315}
23316_ACEOF
23317rm -f conftest.$ac_objext conftest$ac_exeext
23318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23319  (eval $ac_link) 2>conftest.er1
23320  ac_status=$?
23321  grep -v '^ *+' conftest.er1 >conftest.err
23322  rm -f conftest.er1
23323  cat conftest.err >&5
23324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325  (exit $ac_status); } &&
23326	 { ac_try='test -z "$ac_c_werror_flag"
23327			 || test ! -s conftest.err'
23328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23329  (eval $ac_try) 2>&5
23330  ac_status=$?
23331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332  (exit $ac_status); }; } &&
23333	 { ac_try='test -s conftest$ac_exeext'
23334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23335  (eval $ac_try) 2>&5
23336  ac_status=$?
23337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338  (exit $ac_status); }; }; then
23339  am_cv_langinfo_codeset=yes
23340else
23341  echo "$as_me: failed program was:" >&5
23342sed 's/^/| /' conftest.$ac_ext >&5
23343
23344am_cv_langinfo_codeset=no
23345fi
23346rm -f conftest.err conftest.$ac_objext \
23347      conftest$ac_exeext conftest.$ac_ext
23348
23349fi
23350echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
23351echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
23352  if test $am_cv_langinfo_codeset = yes; then
23353
23354cat >>confdefs.h <<\_ACEOF
23355#define HAVE_LANGINFO_CODESET 1
23356_ACEOF
23357
23358  fi
23359
23360
23361
23362
23363
23364for ac_header in wchar.h
23365do
23366as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23367if eval "test \"\${$as_ac_Header+set}\" = set"; then
23368  echo "$as_me:$LINENO: checking for $ac_header" >&5
23369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23370if eval "test \"\${$as_ac_Header+set}\" = set"; then
23371  echo $ECHO_N "(cached) $ECHO_C" >&6
23372fi
23373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23374echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23375else
23376  # Is the header compilable?
23377echo "$as_me:$LINENO: checking $ac_header usability" >&5
23378echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23379cat >conftest.$ac_ext <<_ACEOF
23380/* confdefs.h.  */
23381_ACEOF
23382cat confdefs.h >>conftest.$ac_ext
23383cat >>conftest.$ac_ext <<_ACEOF
23384/* end confdefs.h.  */
23385$ac_includes_default
23386#include <$ac_header>
23387_ACEOF
23388rm -f conftest.$ac_objext
23389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23390  (eval $ac_compile) 2>conftest.er1
23391  ac_status=$?
23392  grep -v '^ *+' conftest.er1 >conftest.err
23393  rm -f conftest.er1
23394  cat conftest.err >&5
23395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396  (exit $ac_status); } &&
23397	 { ac_try='test -z "$ac_c_werror_flag"
23398			 || test ! -s conftest.err'
23399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23400  (eval $ac_try) 2>&5
23401  ac_status=$?
23402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403  (exit $ac_status); }; } &&
23404	 { ac_try='test -s conftest.$ac_objext'
23405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23406  (eval $ac_try) 2>&5
23407  ac_status=$?
23408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409  (exit $ac_status); }; }; then
23410  ac_header_compiler=yes
23411else
23412  echo "$as_me: failed program was:" >&5
23413sed 's/^/| /' conftest.$ac_ext >&5
23414
23415ac_header_compiler=no
23416fi
23417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23418echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23419echo "${ECHO_T}$ac_header_compiler" >&6
23420
23421# Is the header present?
23422echo "$as_me:$LINENO: checking $ac_header presence" >&5
23423echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23424cat >conftest.$ac_ext <<_ACEOF
23425/* confdefs.h.  */
23426_ACEOF
23427cat confdefs.h >>conftest.$ac_ext
23428cat >>conftest.$ac_ext <<_ACEOF
23429/* end confdefs.h.  */
23430#include <$ac_header>
23431_ACEOF
23432if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23433  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23434  ac_status=$?
23435  grep -v '^ *+' conftest.er1 >conftest.err
23436  rm -f conftest.er1
23437  cat conftest.err >&5
23438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439  (exit $ac_status); } >/dev/null; then
23440  if test -s conftest.err; then
23441    ac_cpp_err=$ac_c_preproc_warn_flag
23442    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23443  else
23444    ac_cpp_err=
23445  fi
23446else
23447  ac_cpp_err=yes
23448fi
23449if test -z "$ac_cpp_err"; then
23450  ac_header_preproc=yes
23451else
23452  echo "$as_me: failed program was:" >&5
23453sed 's/^/| /' conftest.$ac_ext >&5
23454
23455  ac_header_preproc=no
23456fi
23457rm -f conftest.err conftest.$ac_ext
23458echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23459echo "${ECHO_T}$ac_header_preproc" >&6
23460
23461# So?  What about this header?
23462case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23463  yes:no: )
23464    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23465echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23466    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23467echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23468    ac_header_preproc=yes
23469    ;;
23470  no:yes:* )
23471    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23472echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23473    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23474echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23475    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23476echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23477    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23478echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23479    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23480echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23481    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23482echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23483    (
23484      cat <<\_ASBOX
23485## ------------------------------------------ ##
23486## Report this to the AC_PACKAGE_NAME lists.  ##
23487## ------------------------------------------ ##
23488_ASBOX
23489    ) |
23490      sed "s/^/$as_me: WARNING:     /" >&2
23491    ;;
23492esac
23493echo "$as_me:$LINENO: checking for $ac_header" >&5
23494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23495if eval "test \"\${$as_ac_Header+set}\" = set"; then
23496  echo $ECHO_N "(cached) $ECHO_C" >&6
23497else
23498  eval "$as_ac_Header=\$ac_header_preproc"
23499fi
23500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23501echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23502
23503fi
23504if test `eval echo '${'$as_ac_Header'}'` = yes; then
23505  cat >>confdefs.h <<_ACEOF
23506#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23507_ACEOF
23508
23509fi
23510
23511done
23512
23513
23514  echo "$as_me:$LINENO: checking for EILSEQ" >&5
23515echo $ECHO_N "checking for EILSEQ... $ECHO_C" >&6
23516if test "${ac_cv_decl_EILSEQ+set}" = set; then
23517  echo $ECHO_N "(cached) $ECHO_C" >&6
23518else
23519
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
23527#include <errno.h>
23528#ifdef EILSEQ
23529yes
23530#endif
23531
23532_ACEOF
23533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23534  $EGREP "yes" >/dev/null 2>&1; then
23535  have_eilseq=1
23536fi
23537rm -f conftest*
23538
23539    if test -n "$have_eilseq"; then
23540            ac_cv_decl_EILSEQ=yes
23541    else
23542      cat >conftest.$ac_ext <<_ACEOF
23543/* confdefs.h.  */
23544_ACEOF
23545cat confdefs.h >>conftest.$ac_ext
23546cat >>conftest.$ac_ext <<_ACEOF
23547/* end confdefs.h.  */
23548
23549#include <errno.h>
23550#if HAVE_WCHAR_H
23551#include <wchar.h>
23552#endif
23553#ifdef EILSEQ
23554yes
23555#endif
23556
23557_ACEOF
23558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23559  $EGREP "yes" >/dev/null 2>&1; then
23560  have_eilseq=1
23561fi
23562rm -f conftest*
23563
23564      if test -n "$have_eilseq"; then
23565                        if test "$cross_compiling" = yes; then
23566  # Depending upon the size, compute the lo and hi bounds.
23567cat >conftest.$ac_ext <<_ACEOF
23568/* confdefs.h.  */
23569_ACEOF
23570cat confdefs.h >>conftest.$ac_ext
23571cat >>conftest.$ac_ext <<_ACEOF
23572/* end confdefs.h.  */
23573
23574#include <errno.h>
23575#if HAVE_WCHAR_H
23576#include <wchar.h>
23577#endif
23578/* The following two lines are a workaround against an autoconf-2.52 bug.  */
23579#include <stdio.h>
23580#include <stdlib.h>
23581
23582int
23583main ()
23584{
23585static int test_array [1 - 2 * !((EILSEQ) >= 0)];
23586test_array [0] = 0
23587
23588  ;
23589  return 0;
23590}
23591_ACEOF
23592rm -f conftest.$ac_objext
23593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23594  (eval $ac_compile) 2>conftest.er1
23595  ac_status=$?
23596  grep -v '^ *+' conftest.er1 >conftest.err
23597  rm -f conftest.er1
23598  cat conftest.err >&5
23599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600  (exit $ac_status); } &&
23601	 { ac_try='test -z "$ac_c_werror_flag"
23602			 || test ! -s conftest.err'
23603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23604  (eval $ac_try) 2>&5
23605  ac_status=$?
23606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607  (exit $ac_status); }; } &&
23608	 { ac_try='test -s conftest.$ac_objext'
23609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23610  (eval $ac_try) 2>&5
23611  ac_status=$?
23612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613  (exit $ac_status); }; }; then
23614  ac_lo=0 ac_mid=0
23615  while :; do
23616    cat >conftest.$ac_ext <<_ACEOF
23617/* confdefs.h.  */
23618_ACEOF
23619cat confdefs.h >>conftest.$ac_ext
23620cat >>conftest.$ac_ext <<_ACEOF
23621/* end confdefs.h.  */
23622
23623#include <errno.h>
23624#if HAVE_WCHAR_H
23625#include <wchar.h>
23626#endif
23627/* The following two lines are a workaround against an autoconf-2.52 bug.  */
23628#include <stdio.h>
23629#include <stdlib.h>
23630
23631int
23632main ()
23633{
23634static int test_array [1 - 2 * !((EILSEQ) <= $ac_mid)];
23635test_array [0] = 0
23636
23637  ;
23638  return 0;
23639}
23640_ACEOF
23641rm -f conftest.$ac_objext
23642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23643  (eval $ac_compile) 2>conftest.er1
23644  ac_status=$?
23645  grep -v '^ *+' conftest.er1 >conftest.err
23646  rm -f conftest.er1
23647  cat conftest.err >&5
23648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649  (exit $ac_status); } &&
23650	 { ac_try='test -z "$ac_c_werror_flag"
23651			 || test ! -s conftest.err'
23652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23653  (eval $ac_try) 2>&5
23654  ac_status=$?
23655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656  (exit $ac_status); }; } &&
23657	 { ac_try='test -s conftest.$ac_objext'
23658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23659  (eval $ac_try) 2>&5
23660  ac_status=$?
23661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662  (exit $ac_status); }; }; then
23663  ac_hi=$ac_mid; break
23664else
23665  echo "$as_me: failed program was:" >&5
23666sed 's/^/| /' conftest.$ac_ext >&5
23667
23668ac_lo=`expr $ac_mid + 1`
23669		    if test $ac_lo -le $ac_mid; then
23670		      ac_lo= ac_hi=
23671		      break
23672		    fi
23673		    ac_mid=`expr 2 '*' $ac_mid + 1`
23674fi
23675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23676  done
23677else
23678  echo "$as_me: failed program was:" >&5
23679sed 's/^/| /' conftest.$ac_ext >&5
23680
23681cat >conftest.$ac_ext <<_ACEOF
23682/* confdefs.h.  */
23683_ACEOF
23684cat confdefs.h >>conftest.$ac_ext
23685cat >>conftest.$ac_ext <<_ACEOF
23686/* end confdefs.h.  */
23687
23688#include <errno.h>
23689#if HAVE_WCHAR_H
23690#include <wchar.h>
23691#endif
23692/* The following two lines are a workaround against an autoconf-2.52 bug.  */
23693#include <stdio.h>
23694#include <stdlib.h>
23695
23696int
23697main ()
23698{
23699static int test_array [1 - 2 * !((EILSEQ) < 0)];
23700test_array [0] = 0
23701
23702  ;
23703  return 0;
23704}
23705_ACEOF
23706rm -f conftest.$ac_objext
23707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23708  (eval $ac_compile) 2>conftest.er1
23709  ac_status=$?
23710  grep -v '^ *+' conftest.er1 >conftest.err
23711  rm -f conftest.er1
23712  cat conftest.err >&5
23713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714  (exit $ac_status); } &&
23715	 { ac_try='test -z "$ac_c_werror_flag"
23716			 || test ! -s conftest.err'
23717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23718  (eval $ac_try) 2>&5
23719  ac_status=$?
23720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721  (exit $ac_status); }; } &&
23722	 { ac_try='test -s conftest.$ac_objext'
23723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23724  (eval $ac_try) 2>&5
23725  ac_status=$?
23726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727  (exit $ac_status); }; }; then
23728  ac_hi=-1 ac_mid=-1
23729  while :; do
23730    cat >conftest.$ac_ext <<_ACEOF
23731/* confdefs.h.  */
23732_ACEOF
23733cat confdefs.h >>conftest.$ac_ext
23734cat >>conftest.$ac_ext <<_ACEOF
23735/* end confdefs.h.  */
23736
23737#include <errno.h>
23738#if HAVE_WCHAR_H
23739#include <wchar.h>
23740#endif
23741/* The following two lines are a workaround against an autoconf-2.52 bug.  */
23742#include <stdio.h>
23743#include <stdlib.h>
23744
23745int
23746main ()
23747{
23748static int test_array [1 - 2 * !((EILSEQ) >= $ac_mid)];
23749test_array [0] = 0
23750
23751  ;
23752  return 0;
23753}
23754_ACEOF
23755rm -f conftest.$ac_objext
23756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23757  (eval $ac_compile) 2>conftest.er1
23758  ac_status=$?
23759  grep -v '^ *+' conftest.er1 >conftest.err
23760  rm -f conftest.er1
23761  cat conftest.err >&5
23762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763  (exit $ac_status); } &&
23764	 { ac_try='test -z "$ac_c_werror_flag"
23765			 || test ! -s conftest.err'
23766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23767  (eval $ac_try) 2>&5
23768  ac_status=$?
23769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770  (exit $ac_status); }; } &&
23771	 { ac_try='test -s conftest.$ac_objext'
23772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23773  (eval $ac_try) 2>&5
23774  ac_status=$?
23775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776  (exit $ac_status); }; }; then
23777  ac_lo=$ac_mid; break
23778else
23779  echo "$as_me: failed program was:" >&5
23780sed 's/^/| /' conftest.$ac_ext >&5
23781
23782ac_hi=`expr '(' $ac_mid ')' - 1`
23783		       if test $ac_mid -le $ac_hi; then
23784			 ac_lo= ac_hi=
23785			 break
23786		       fi
23787		       ac_mid=`expr 2 '*' $ac_mid`
23788fi
23789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23790  done
23791else
23792  echo "$as_me: failed program was:" >&5
23793sed 's/^/| /' conftest.$ac_ext >&5
23794
23795ac_lo= ac_hi=
23796fi
23797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23798fi
23799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23800# Binary search between lo and hi bounds.
23801while test "x$ac_lo" != "x$ac_hi"; do
23802  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23803  cat >conftest.$ac_ext <<_ACEOF
23804/* confdefs.h.  */
23805_ACEOF
23806cat confdefs.h >>conftest.$ac_ext
23807cat >>conftest.$ac_ext <<_ACEOF
23808/* end confdefs.h.  */
23809
23810#include <errno.h>
23811#if HAVE_WCHAR_H
23812#include <wchar.h>
23813#endif
23814/* The following two lines are a workaround against an autoconf-2.52 bug.  */
23815#include <stdio.h>
23816#include <stdlib.h>
23817
23818int
23819main ()
23820{
23821static int test_array [1 - 2 * !((EILSEQ) <= $ac_mid)];
23822test_array [0] = 0
23823
23824  ;
23825  return 0;
23826}
23827_ACEOF
23828rm -f conftest.$ac_objext
23829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23830  (eval $ac_compile) 2>conftest.er1
23831  ac_status=$?
23832  grep -v '^ *+' conftest.er1 >conftest.err
23833  rm -f conftest.er1
23834  cat conftest.err >&5
23835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836  (exit $ac_status); } &&
23837	 { ac_try='test -z "$ac_c_werror_flag"
23838			 || test ! -s conftest.err'
23839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23840  (eval $ac_try) 2>&5
23841  ac_status=$?
23842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843  (exit $ac_status); }; } &&
23844	 { ac_try='test -s conftest.$ac_objext'
23845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23846  (eval $ac_try) 2>&5
23847  ac_status=$?
23848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849  (exit $ac_status); }; }; then
23850  ac_hi=$ac_mid
23851else
23852  echo "$as_me: failed program was:" >&5
23853sed 's/^/| /' conftest.$ac_ext >&5
23854
23855ac_lo=`expr '(' $ac_mid ')' + 1`
23856fi
23857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23858done
23859case $ac_lo in
23860?*) ac_cv_decl_EILSEQ=$ac_lo;;
23861'')  ;;
23862esac
23863else
23864  if test "$cross_compiling" = yes; then
23865  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23866See \`config.log' for more details." >&5
23867echo "$as_me: error: cannot run test program while cross compiling
23868See \`config.log' for more details." >&2;}
23869   { (exit 1); exit 1; }; }
23870else
23871  cat >conftest.$ac_ext <<_ACEOF
23872/* confdefs.h.  */
23873_ACEOF
23874cat confdefs.h >>conftest.$ac_ext
23875cat >>conftest.$ac_ext <<_ACEOF
23876/* end confdefs.h.  */
23877
23878#include <errno.h>
23879#if HAVE_WCHAR_H
23880#include <wchar.h>
23881#endif
23882/* The following two lines are a workaround against an autoconf-2.52 bug.  */
23883#include <stdio.h>
23884#include <stdlib.h>
23885
23886long longval () { return EILSEQ; }
23887unsigned long ulongval () { return EILSEQ; }
23888#include <stdio.h>
23889#include <stdlib.h>
23890int
23891main ()
23892{
23893
23894  FILE *f = fopen ("conftest.val", "w");
23895  if (! f)
23896    exit (1);
23897  if ((EILSEQ) < 0)
23898    {
23899      long i = longval ();
23900      if (i != (EILSEQ))
23901	exit (1);
23902      fprintf (f, "%ld\n", i);
23903    }
23904  else
23905    {
23906      unsigned long i = ulongval ();
23907      if (i != (EILSEQ))
23908	exit (1);
23909      fprintf (f, "%lu\n", i);
23910    }
23911  exit (ferror (f) || fclose (f) != 0);
23912
23913  ;
23914  return 0;
23915}
23916_ACEOF
23917rm -f conftest$ac_exeext
23918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23919  (eval $ac_link) 2>&5
23920  ac_status=$?
23921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23924  (eval $ac_try) 2>&5
23925  ac_status=$?
23926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927  (exit $ac_status); }; }; then
23928  ac_cv_decl_EILSEQ=`cat conftest.val`
23929else
23930  echo "$as_me: program exited with status $ac_status" >&5
23931echo "$as_me: failed program was:" >&5
23932sed 's/^/| /' conftest.$ac_ext >&5
23933
23934fi
23935rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23936fi
23937fi
23938rm -f conftest.val
23939      else
23940                                ac_cv_decl_EILSEQ=ENOENT
23941      fi
23942    fi
23943
23944fi
23945echo "$as_me:$LINENO: result: $ac_cv_decl_EILSEQ" >&5
23946echo "${ECHO_T}$ac_cv_decl_EILSEQ" >&6
23947  if test "$ac_cv_decl_EILSEQ" != yes; then
23948
23949cat >>confdefs.h <<_ACEOF
23950#define EILSEQ $ac_cv_decl_EILSEQ
23951_ACEOF
23952
23953    EILSEQ="$ac_cv_decl_EILSEQ"
23954
23955  fi
23956
23957
23958echo "$as_me:$LINENO: checking byte ordering" >&5
23959echo $ECHO_N "checking byte ordering... $ECHO_C" >&6
23960if test "${cl_cv_sys_endian+set}" = set; then
23961  echo $ECHO_N "(cached) $ECHO_C" >&6
23962else
23963
23964if test "$cross_compiling" = yes; then
23965  : # must guess the endianness
23966
23967else
23968  cat >conftest.$ac_ext <<_ACEOF
23969/* confdefs.h.  */
23970_ACEOF
23971cat confdefs.h >>conftest.$ac_ext
23972cat >>conftest.$ac_ext <<_ACEOF
23973/* end confdefs.h.  */
23974int main () {
23975  /* Are we little or big endian?  From Harbison&Steele.  */
23976  union
23977  {
23978    long l;
23979    char c[sizeof (long)];
23980  } u;
23981  u.l = 1;
23982  exit (u.c[0] == 1);
23983}
23984_ACEOF
23985rm -f conftest$ac_exeext
23986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23987  (eval $ac_link) 2>&5
23988  ac_status=$?
23989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23992  (eval $ac_try) 2>&5
23993  ac_status=$?
23994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995  (exit $ac_status); }; }; then
23996  cl_cv_sys_endian="big endian"
23997else
23998  echo "$as_me: program exited with status $ac_status" >&5
23999echo "$as_me: failed program was:" >&5
24000sed 's/^/| /' conftest.$ac_ext >&5
24001
24002( exit $ac_status )
24003cl_cv_sys_endian="little endian"
24004fi
24005rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24006fi
24007if test -z "$cl_cv_sys_endian"; then
24008cat >conftest.$ac_ext <<_ACEOF
24009/* confdefs.h.  */
24010_ACEOF
24011cat confdefs.h >>conftest.$ac_ext
24012cat >>conftest.$ac_ext <<_ACEOF
24013/* end confdefs.h.  */
24014#if defined(m68k) || defined(__m68k__) || defined(mc68000) || defined(mc68020) || defined(__mc68020__) || defined(sparc) || defined(__sparc__) || defined(MIPSEB) || defined(__MIPSEB__) || defined(hppa) || defined(__hppa) || defined(m88000) || defined(__m88k__)
24015  yes
24016#endif
24017
24018_ACEOF
24019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24020  $EGREP "yes" >/dev/null 2>&1; then
24021  cl_cv_sys_endian="big endian"
24022fi
24023rm -f conftest*
24024
24025fi
24026if test -z "$cl_cv_sys_endian"; then
24027cat >conftest.$ac_ext <<_ACEOF
24028/* confdefs.h.  */
24029_ACEOF
24030cat confdefs.h >>conftest.$ac_ext
24031cat >>conftest.$ac_ext <<_ACEOF
24032/* end confdefs.h.  */
24033#if defined(i386) || defined(__i386) || defined(__i386__) || defined(_I386) || defined(MIPSEL) || defined(__MIPSEL__) || defined(__alpha)
24034  yes
24035#endif
24036
24037_ACEOF
24038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24039  $EGREP "yes" >/dev/null 2>&1; then
24040  cl_cv_sys_endian="little endian"
24041fi
24042rm -f conftest*
24043
24044fi
24045if test -z "$cl_cv_sys_endian"; then
24046cl_cv_sys_endian="guessing little endian"
24047fi
24048
24049fi
24050echo "$as_me:$LINENO: result: $cl_cv_sys_endian" >&5
24051echo "${ECHO_T}$cl_cv_sys_endian" >&6
24052case "$cl_cv_sys_endian" in
24053  *little*)
24054
24055cat >>confdefs.h <<\_ACEOF
24056#define WORDS_LITTLEENDIAN 1
24057_ACEOF
24058 ;;
24059  *big*) ;;
24060esac
24061
24062
24063# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24064# for constant arguments.  Useless!
24065echo "$as_me:$LINENO: checking for working alloca.h" >&5
24066echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
24067if test "${ac_cv_working_alloca_h+set}" = set; then
24068  echo $ECHO_N "(cached) $ECHO_C" >&6
24069else
24070  cat >conftest.$ac_ext <<_ACEOF
24071/* confdefs.h.  */
24072_ACEOF
24073cat confdefs.h >>conftest.$ac_ext
24074cat >>conftest.$ac_ext <<_ACEOF
24075/* end confdefs.h.  */
24076#include <alloca.h>
24077int
24078main ()
24079{
24080char *p = (char *) alloca (2 * sizeof (int));
24081  ;
24082  return 0;
24083}
24084_ACEOF
24085rm -f conftest.$ac_objext conftest$ac_exeext
24086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24087  (eval $ac_link) 2>conftest.er1
24088  ac_status=$?
24089  grep -v '^ *+' conftest.er1 >conftest.err
24090  rm -f conftest.er1
24091  cat conftest.err >&5
24092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093  (exit $ac_status); } &&
24094	 { ac_try='test -z "$ac_c_werror_flag"
24095			 || test ! -s conftest.err'
24096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24097  (eval $ac_try) 2>&5
24098  ac_status=$?
24099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100  (exit $ac_status); }; } &&
24101	 { ac_try='test -s conftest$ac_exeext'
24102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24103  (eval $ac_try) 2>&5
24104  ac_status=$?
24105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106  (exit $ac_status); }; }; then
24107  ac_cv_working_alloca_h=yes
24108else
24109  echo "$as_me: failed program was:" >&5
24110sed 's/^/| /' conftest.$ac_ext >&5
24111
24112ac_cv_working_alloca_h=no
24113fi
24114rm -f conftest.err conftest.$ac_objext \
24115      conftest$ac_exeext conftest.$ac_ext
24116fi
24117echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24118echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
24119if test $ac_cv_working_alloca_h = yes; then
24120
24121cat >>confdefs.h <<\_ACEOF
24122#define HAVE_ALLOCA_H 1
24123_ACEOF
24124
24125fi
24126
24127echo "$as_me:$LINENO: checking for alloca" >&5
24128echo $ECHO_N "checking for alloca... $ECHO_C" >&6
24129if test "${ac_cv_func_alloca_works+set}" = set; then
24130  echo $ECHO_N "(cached) $ECHO_C" >&6
24131else
24132  cat >conftest.$ac_ext <<_ACEOF
24133/* confdefs.h.  */
24134_ACEOF
24135cat confdefs.h >>conftest.$ac_ext
24136cat >>conftest.$ac_ext <<_ACEOF
24137/* end confdefs.h.  */
24138#ifdef __GNUC__
24139# define alloca __builtin_alloca
24140#else
24141# ifdef _MSC_VER
24142#  include <malloc.h>
24143#  define alloca _alloca
24144# else
24145#  if HAVE_ALLOCA_H
24146#   include <alloca.h>
24147#  else
24148#   ifdef _AIX
24149 #pragma alloca
24150#   else
24151#    ifndef alloca /* predefined by HP cc +Olibcalls */
24152char *alloca ();
24153#    endif
24154#   endif
24155#  endif
24156# endif
24157#endif
24158
24159int
24160main ()
24161{
24162char *p = (char *) alloca (1);
24163  ;
24164  return 0;
24165}
24166_ACEOF
24167rm -f conftest.$ac_objext conftest$ac_exeext
24168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24169  (eval $ac_link) 2>conftest.er1
24170  ac_status=$?
24171  grep -v '^ *+' conftest.er1 >conftest.err
24172  rm -f conftest.er1
24173  cat conftest.err >&5
24174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175  (exit $ac_status); } &&
24176	 { ac_try='test -z "$ac_c_werror_flag"
24177			 || test ! -s conftest.err'
24178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24179  (eval $ac_try) 2>&5
24180  ac_status=$?
24181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24182  (exit $ac_status); }; } &&
24183	 { ac_try='test -s conftest$ac_exeext'
24184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24185  (eval $ac_try) 2>&5
24186  ac_status=$?
24187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188  (exit $ac_status); }; }; then
24189  ac_cv_func_alloca_works=yes
24190else
24191  echo "$as_me: failed program was:" >&5
24192sed 's/^/| /' conftest.$ac_ext >&5
24193
24194ac_cv_func_alloca_works=no
24195fi
24196rm -f conftest.err conftest.$ac_objext \
24197      conftest$ac_exeext conftest.$ac_ext
24198fi
24199echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24200echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
24201
24202if test $ac_cv_func_alloca_works = yes; then
24203
24204cat >>confdefs.h <<\_ACEOF
24205#define HAVE_ALLOCA 1
24206_ACEOF
24207
24208else
24209  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24210# that cause trouble.  Some versions do not even contain alloca or
24211# contain a buggy version.  If you still want to use their alloca,
24212# use ar to extract alloca.o from them instead of compiling alloca.c.
24213
24214ALLOCA=alloca.$ac_objext
24215
24216cat >>confdefs.h <<\_ACEOF
24217#define C_ALLOCA 1
24218_ACEOF
24219
24220
24221echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24222echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
24223if test "${ac_cv_os_cray+set}" = set; then
24224  echo $ECHO_N "(cached) $ECHO_C" >&6
24225else
24226  cat >conftest.$ac_ext <<_ACEOF
24227/* confdefs.h.  */
24228_ACEOF
24229cat confdefs.h >>conftest.$ac_ext
24230cat >>conftest.$ac_ext <<_ACEOF
24231/* end confdefs.h.  */
24232#if defined(CRAY) && ! defined(CRAY2)
24233webecray
24234#else
24235wenotbecray
24236#endif
24237
24238_ACEOF
24239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24240  $EGREP "webecray" >/dev/null 2>&1; then
24241  ac_cv_os_cray=yes
24242else
24243  ac_cv_os_cray=no
24244fi
24245rm -f conftest*
24246
24247fi
24248echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24249echo "${ECHO_T}$ac_cv_os_cray" >&6
24250if test $ac_cv_os_cray = yes; then
24251  for ac_func in _getb67 GETB67 getb67; do
24252    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24253echo "$as_me:$LINENO: checking for $ac_func" >&5
24254echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24255if eval "test \"\${$as_ac_var+set}\" = set"; then
24256  echo $ECHO_N "(cached) $ECHO_C" >&6
24257else
24258  cat >conftest.$ac_ext <<_ACEOF
24259/* confdefs.h.  */
24260_ACEOF
24261cat confdefs.h >>conftest.$ac_ext
24262cat >>conftest.$ac_ext <<_ACEOF
24263/* end confdefs.h.  */
24264/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24265   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24266#define $ac_func innocuous_$ac_func
24267
24268/* System header to define __stub macros and hopefully few prototypes,
24269    which can conflict with char $ac_func (); below.
24270    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24271    <limits.h> exists even on freestanding compilers.  */
24272
24273#ifdef __STDC__
24274# include <limits.h>
24275#else
24276# include <assert.h>
24277#endif
24278
24279#undef $ac_func
24280
24281/* Override any gcc2 internal prototype to avoid an error.  */
24282#ifdef __cplusplus
24283extern "C"
24284{
24285#endif
24286/* We use char because int might match the return type of a gcc2
24287   builtin and then its argument prototype would still apply.  */
24288char $ac_func ();
24289/* The GNU C library defines this for functions which it implements
24290    to always fail with ENOSYS.  Some functions are actually named
24291    something starting with __ and the normal name is an alias.  */
24292#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24293choke me
24294#else
24295char (*f) () = $ac_func;
24296#endif
24297#ifdef __cplusplus
24298}
24299#endif
24300
24301int
24302main ()
24303{
24304return f != $ac_func;
24305  ;
24306  return 0;
24307}
24308_ACEOF
24309rm -f conftest.$ac_objext conftest$ac_exeext
24310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24311  (eval $ac_link) 2>conftest.er1
24312  ac_status=$?
24313  grep -v '^ *+' conftest.er1 >conftest.err
24314  rm -f conftest.er1
24315  cat conftest.err >&5
24316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317  (exit $ac_status); } &&
24318	 { ac_try='test -z "$ac_c_werror_flag"
24319			 || test ! -s conftest.err'
24320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24321  (eval $ac_try) 2>&5
24322  ac_status=$?
24323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324  (exit $ac_status); }; } &&
24325	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
24331  eval "$as_ac_var=yes"
24332else
24333  echo "$as_me: failed program was:" >&5
24334sed 's/^/| /' conftest.$ac_ext >&5
24335
24336eval "$as_ac_var=no"
24337fi
24338rm -f conftest.err conftest.$ac_objext \
24339      conftest$ac_exeext conftest.$ac_ext
24340fi
24341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24342echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24343if test `eval echo '${'$as_ac_var'}'` = yes; then
24344
24345cat >>confdefs.h <<_ACEOF
24346#define CRAY_STACKSEG_END $ac_func
24347_ACEOF
24348
24349    break
24350fi
24351
24352  done
24353fi
24354
24355echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24356echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
24357if test "${ac_cv_c_stack_direction+set}" = set; then
24358  echo $ECHO_N "(cached) $ECHO_C" >&6
24359else
24360  if test "$cross_compiling" = yes; then
24361  ac_cv_c_stack_direction=0
24362else
24363  cat >conftest.$ac_ext <<_ACEOF
24364/* confdefs.h.  */
24365_ACEOF
24366cat confdefs.h >>conftest.$ac_ext
24367cat >>conftest.$ac_ext <<_ACEOF
24368/* end confdefs.h.  */
24369int
24370find_stack_direction ()
24371{
24372  static char *addr = 0;
24373  auto char dummy;
24374  if (addr == 0)
24375    {
24376      addr = &dummy;
24377      return find_stack_direction ();
24378    }
24379  else
24380    return (&dummy > addr) ? 1 : -1;
24381}
24382
24383int
24384main ()
24385{
24386  exit (find_stack_direction () < 0);
24387}
24388_ACEOF
24389rm -f conftest$ac_exeext
24390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24391  (eval $ac_link) 2>&5
24392  ac_status=$?
24393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24396  (eval $ac_try) 2>&5
24397  ac_status=$?
24398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399  (exit $ac_status); }; }; then
24400  ac_cv_c_stack_direction=1
24401else
24402  echo "$as_me: program exited with status $ac_status" >&5
24403echo "$as_me: failed program was:" >&5
24404sed 's/^/| /' conftest.$ac_ext >&5
24405
24406( exit $ac_status )
24407ac_cv_c_stack_direction=-1
24408fi
24409rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24410fi
24411fi
24412echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24413echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
24414
24415cat >>confdefs.h <<_ACEOF
24416#define STACK_DIRECTION $ac_cv_c_stack_direction
24417_ACEOF
24418
24419
24420fi
24421
24422
24423
24424for ac_header in stdlib.h
24425do
24426as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24427if eval "test \"\${$as_ac_Header+set}\" = set"; then
24428  echo "$as_me:$LINENO: checking for $ac_header" >&5
24429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24430if eval "test \"\${$as_ac_Header+set}\" = set"; then
24431  echo $ECHO_N "(cached) $ECHO_C" >&6
24432fi
24433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24434echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24435else
24436  # Is the header compilable?
24437echo "$as_me:$LINENO: checking $ac_header usability" >&5
24438echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24439cat >conftest.$ac_ext <<_ACEOF
24440/* confdefs.h.  */
24441_ACEOF
24442cat confdefs.h >>conftest.$ac_ext
24443cat >>conftest.$ac_ext <<_ACEOF
24444/* end confdefs.h.  */
24445$ac_includes_default
24446#include <$ac_header>
24447_ACEOF
24448rm -f conftest.$ac_objext
24449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24450  (eval $ac_compile) 2>conftest.er1
24451  ac_status=$?
24452  grep -v '^ *+' conftest.er1 >conftest.err
24453  rm -f conftest.er1
24454  cat conftest.err >&5
24455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456  (exit $ac_status); } &&
24457	 { ac_try='test -z "$ac_c_werror_flag"
24458			 || test ! -s conftest.err'
24459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24460  (eval $ac_try) 2>&5
24461  ac_status=$?
24462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463  (exit $ac_status); }; } &&
24464	 { ac_try='test -s conftest.$ac_objext'
24465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24466  (eval $ac_try) 2>&5
24467  ac_status=$?
24468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469  (exit $ac_status); }; }; then
24470  ac_header_compiler=yes
24471else
24472  echo "$as_me: failed program was:" >&5
24473sed 's/^/| /' conftest.$ac_ext >&5
24474
24475ac_header_compiler=no
24476fi
24477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24478echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24479echo "${ECHO_T}$ac_header_compiler" >&6
24480
24481# Is the header present?
24482echo "$as_me:$LINENO: checking $ac_header presence" >&5
24483echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24484cat >conftest.$ac_ext <<_ACEOF
24485/* confdefs.h.  */
24486_ACEOF
24487cat confdefs.h >>conftest.$ac_ext
24488cat >>conftest.$ac_ext <<_ACEOF
24489/* end confdefs.h.  */
24490#include <$ac_header>
24491_ACEOF
24492if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24493  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24494  ac_status=$?
24495  grep -v '^ *+' conftest.er1 >conftest.err
24496  rm -f conftest.er1
24497  cat conftest.err >&5
24498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499  (exit $ac_status); } >/dev/null; then
24500  if test -s conftest.err; then
24501    ac_cpp_err=$ac_c_preproc_warn_flag
24502    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24503  else
24504    ac_cpp_err=
24505  fi
24506else
24507  ac_cpp_err=yes
24508fi
24509if test -z "$ac_cpp_err"; then
24510  ac_header_preproc=yes
24511else
24512  echo "$as_me: failed program was:" >&5
24513sed 's/^/| /' conftest.$ac_ext >&5
24514
24515  ac_header_preproc=no
24516fi
24517rm -f conftest.err conftest.$ac_ext
24518echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24519echo "${ECHO_T}$ac_header_preproc" >&6
24520
24521# So?  What about this header?
24522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24523  yes:no: )
24524    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24525echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24526    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24527echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24528    ac_header_preproc=yes
24529    ;;
24530  no:yes:* )
24531    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24532echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24533    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24534echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24535    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24536echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24537    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24538echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24539    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24540echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24541    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24542echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24543    (
24544      cat <<\_ASBOX
24545## ------------------------------------------ ##
24546## Report this to the AC_PACKAGE_NAME lists.  ##
24547## ------------------------------------------ ##
24548_ASBOX
24549    ) |
24550      sed "s/^/$as_me: WARNING:     /" >&2
24551    ;;
24552esac
24553echo "$as_me:$LINENO: checking for $ac_header" >&5
24554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24555if eval "test \"\${$as_ac_Header+set}\" = set"; then
24556  echo $ECHO_N "(cached) $ECHO_C" >&6
24557else
24558  eval "$as_ac_Header=\$ac_header_preproc"
24559fi
24560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24561echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24562
24563fi
24564if test `eval echo '${'$as_ac_Header'}'` = yes; then
24565  cat >>confdefs.h <<_ACEOF
24566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24567_ACEOF
24568
24569fi
24570
24571done
24572
24573
24574
24575
24576for ac_header in string.h
24577do
24578as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24579if eval "test \"\${$as_ac_Header+set}\" = set"; then
24580  echo "$as_me:$LINENO: checking for $ac_header" >&5
24581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24582if eval "test \"\${$as_ac_Header+set}\" = set"; then
24583  echo $ECHO_N "(cached) $ECHO_C" >&6
24584fi
24585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24586echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24587else
24588  # Is the header compilable?
24589echo "$as_me:$LINENO: checking $ac_header usability" >&5
24590echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24591cat >conftest.$ac_ext <<_ACEOF
24592/* confdefs.h.  */
24593_ACEOF
24594cat confdefs.h >>conftest.$ac_ext
24595cat >>conftest.$ac_ext <<_ACEOF
24596/* end confdefs.h.  */
24597$ac_includes_default
24598#include <$ac_header>
24599_ACEOF
24600rm -f conftest.$ac_objext
24601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24602  (eval $ac_compile) 2>conftest.er1
24603  ac_status=$?
24604  grep -v '^ *+' conftest.er1 >conftest.err
24605  rm -f conftest.er1
24606  cat conftest.err >&5
24607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608  (exit $ac_status); } &&
24609	 { ac_try='test -z "$ac_c_werror_flag"
24610			 || test ! -s conftest.err'
24611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24612  (eval $ac_try) 2>&5
24613  ac_status=$?
24614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615  (exit $ac_status); }; } &&
24616	 { ac_try='test -s conftest.$ac_objext'
24617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24618  (eval $ac_try) 2>&5
24619  ac_status=$?
24620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621  (exit $ac_status); }; }; then
24622  ac_header_compiler=yes
24623else
24624  echo "$as_me: failed program was:" >&5
24625sed 's/^/| /' conftest.$ac_ext >&5
24626
24627ac_header_compiler=no
24628fi
24629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24630echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24631echo "${ECHO_T}$ac_header_compiler" >&6
24632
24633# Is the header present?
24634echo "$as_me:$LINENO: checking $ac_header presence" >&5
24635echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24636cat >conftest.$ac_ext <<_ACEOF
24637/* confdefs.h.  */
24638_ACEOF
24639cat confdefs.h >>conftest.$ac_ext
24640cat >>conftest.$ac_ext <<_ACEOF
24641/* end confdefs.h.  */
24642#include <$ac_header>
24643_ACEOF
24644if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24645  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24646  ac_status=$?
24647  grep -v '^ *+' conftest.er1 >conftest.err
24648  rm -f conftest.er1
24649  cat conftest.err >&5
24650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651  (exit $ac_status); } >/dev/null; then
24652  if test -s conftest.err; then
24653    ac_cpp_err=$ac_c_preproc_warn_flag
24654    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24655  else
24656    ac_cpp_err=
24657  fi
24658else
24659  ac_cpp_err=yes
24660fi
24661if test -z "$ac_cpp_err"; then
24662  ac_header_preproc=yes
24663else
24664  echo "$as_me: failed program was:" >&5
24665sed 's/^/| /' conftest.$ac_ext >&5
24666
24667  ac_header_preproc=no
24668fi
24669rm -f conftest.err conftest.$ac_ext
24670echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24671echo "${ECHO_T}$ac_header_preproc" >&6
24672
24673# So?  What about this header?
24674case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24675  yes:no: )
24676    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24677echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24678    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24679echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24680    ac_header_preproc=yes
24681    ;;
24682  no:yes:* )
24683    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24684echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24685    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24686echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24687    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24688echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24689    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24690echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24691    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24692echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24693    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24694echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24695    (
24696      cat <<\_ASBOX
24697## ------------------------------------------ ##
24698## Report this to the AC_PACKAGE_NAME lists.  ##
24699## ------------------------------------------ ##
24700_ASBOX
24701    ) |
24702      sed "s/^/$as_me: WARNING:     /" >&2
24703    ;;
24704esac
24705echo "$as_me:$LINENO: checking for $ac_header" >&5
24706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24707if eval "test \"\${$as_ac_Header+set}\" = set"; then
24708  echo $ECHO_N "(cached) $ECHO_C" >&6
24709else
24710  eval "$as_ac_Header=\$ac_header_preproc"
24711fi
24712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24713echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24714
24715fi
24716if test `eval echo '${'$as_ac_Header'}'` = yes; then
24717  cat >>confdefs.h <<_ACEOF
24718#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24719_ACEOF
24720
24721fi
24722
24723done
24724
24725
24726
24727
24728
24729
24730
24731  if test $ac_cv_func_alloca_works = no; then
24732
24733
24734  :
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744  fi
24745
24746  # Define an additional variable used in the Makefile substitution.
24747
24748  cat >conftest.$ac_ext <<_ACEOF
24749/* confdefs.h.  */
24750_ACEOF
24751cat confdefs.h >>conftest.$ac_ext
24752cat >>conftest.$ac_ext <<_ACEOF
24753/* end confdefs.h.  */
24754
24755#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
24756  Need own alloca
24757#endif
24758
24759_ACEOF
24760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24761  $EGREP "Need own alloca" >/dev/null 2>&1; then
24762  ALLOCA_H=alloca.h
24763else
24764  ALLOCA_H=
24765fi
24766rm -f conftest*
24767
24768
24769
24770
24771
24772for ac_header in sys/param.h
24773do
24774as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24775if eval "test \"\${$as_ac_Header+set}\" = set"; then
24776  echo "$as_me:$LINENO: checking for $ac_header" >&5
24777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24778if eval "test \"\${$as_ac_Header+set}\" = set"; then
24779  echo $ECHO_N "(cached) $ECHO_C" >&6
24780fi
24781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24782echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24783else
24784  # Is the header compilable?
24785echo "$as_me:$LINENO: checking $ac_header usability" >&5
24786echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24787cat >conftest.$ac_ext <<_ACEOF
24788/* confdefs.h.  */
24789_ACEOF
24790cat confdefs.h >>conftest.$ac_ext
24791cat >>conftest.$ac_ext <<_ACEOF
24792/* end confdefs.h.  */
24793$ac_includes_default
24794#include <$ac_header>
24795_ACEOF
24796rm -f conftest.$ac_objext
24797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24798  (eval $ac_compile) 2>conftest.er1
24799  ac_status=$?
24800  grep -v '^ *+' conftest.er1 >conftest.err
24801  rm -f conftest.er1
24802  cat conftest.err >&5
24803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804  (exit $ac_status); } &&
24805	 { ac_try='test -z "$ac_c_werror_flag"
24806			 || test ! -s conftest.err'
24807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24808  (eval $ac_try) 2>&5
24809  ac_status=$?
24810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811  (exit $ac_status); }; } &&
24812	 { ac_try='test -s conftest.$ac_objext'
24813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24814  (eval $ac_try) 2>&5
24815  ac_status=$?
24816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817  (exit $ac_status); }; }; then
24818  ac_header_compiler=yes
24819else
24820  echo "$as_me: failed program was:" >&5
24821sed 's/^/| /' conftest.$ac_ext >&5
24822
24823ac_header_compiler=no
24824fi
24825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24826echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24827echo "${ECHO_T}$ac_header_compiler" >&6
24828
24829# Is the header present?
24830echo "$as_me:$LINENO: checking $ac_header presence" >&5
24831echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24832cat >conftest.$ac_ext <<_ACEOF
24833/* confdefs.h.  */
24834_ACEOF
24835cat confdefs.h >>conftest.$ac_ext
24836cat >>conftest.$ac_ext <<_ACEOF
24837/* end confdefs.h.  */
24838#include <$ac_header>
24839_ACEOF
24840if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24841  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24842  ac_status=$?
24843  grep -v '^ *+' conftest.er1 >conftest.err
24844  rm -f conftest.er1
24845  cat conftest.err >&5
24846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847  (exit $ac_status); } >/dev/null; then
24848  if test -s conftest.err; then
24849    ac_cpp_err=$ac_c_preproc_warn_flag
24850    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24851  else
24852    ac_cpp_err=
24853  fi
24854else
24855  ac_cpp_err=yes
24856fi
24857if test -z "$ac_cpp_err"; then
24858  ac_header_preproc=yes
24859else
24860  echo "$as_me: failed program was:" >&5
24861sed 's/^/| /' conftest.$ac_ext >&5
24862
24863  ac_header_preproc=no
24864fi
24865rm -f conftest.err conftest.$ac_ext
24866echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24867echo "${ECHO_T}$ac_header_preproc" >&6
24868
24869# So?  What about this header?
24870case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24871  yes:no: )
24872    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24873echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24874    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24875echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24876    ac_header_preproc=yes
24877    ;;
24878  no:yes:* )
24879    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24880echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24881    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24882echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24883    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24884echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24885    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24886echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24887    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24888echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24889    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24890echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24891    (
24892      cat <<\_ASBOX
24893## ------------------------------------------ ##
24894## Report this to the AC_PACKAGE_NAME lists.  ##
24895## ------------------------------------------ ##
24896_ASBOX
24897    ) |
24898      sed "s/^/$as_me: WARNING:     /" >&2
24899    ;;
24900esac
24901echo "$as_me:$LINENO: checking for $ac_header" >&5
24902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24903if eval "test \"\${$as_ac_Header+set}\" = set"; then
24904  echo $ECHO_N "(cached) $ECHO_C" >&6
24905else
24906  eval "$as_ac_Header=\$ac_header_preproc"
24907fi
24908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24909echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24910
24911fi
24912if test `eval echo '${'$as_ac_Header'}'` = yes; then
24913  cat >>confdefs.h <<_ACEOF
24914#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24915_ACEOF
24916
24917fi
24918
24919done
24920
24921
24922
24923
24924for ac_header in unistd.h
24925do
24926as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24927if eval "test \"\${$as_ac_Header+set}\" = set"; then
24928  echo "$as_me:$LINENO: checking for $ac_header" >&5
24929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24930if eval "test \"\${$as_ac_Header+set}\" = set"; then
24931  echo $ECHO_N "(cached) $ECHO_C" >&6
24932fi
24933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24935else
24936  # Is the header compilable?
24937echo "$as_me:$LINENO: checking $ac_header usability" >&5
24938echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24939cat >conftest.$ac_ext <<_ACEOF
24940/* confdefs.h.  */
24941_ACEOF
24942cat confdefs.h >>conftest.$ac_ext
24943cat >>conftest.$ac_ext <<_ACEOF
24944/* end confdefs.h.  */
24945$ac_includes_default
24946#include <$ac_header>
24947_ACEOF
24948rm -f conftest.$ac_objext
24949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24950  (eval $ac_compile) 2>conftest.er1
24951  ac_status=$?
24952  grep -v '^ *+' conftest.er1 >conftest.err
24953  rm -f conftest.er1
24954  cat conftest.err >&5
24955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956  (exit $ac_status); } &&
24957	 { ac_try='test -z "$ac_c_werror_flag"
24958			 || test ! -s conftest.err'
24959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24960  (eval $ac_try) 2>&5
24961  ac_status=$?
24962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963  (exit $ac_status); }; } &&
24964	 { ac_try='test -s conftest.$ac_objext'
24965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24966  (eval $ac_try) 2>&5
24967  ac_status=$?
24968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969  (exit $ac_status); }; }; then
24970  ac_header_compiler=yes
24971else
24972  echo "$as_me: failed program was:" >&5
24973sed 's/^/| /' conftest.$ac_ext >&5
24974
24975ac_header_compiler=no
24976fi
24977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24978echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24979echo "${ECHO_T}$ac_header_compiler" >&6
24980
24981# Is the header present?
24982echo "$as_me:$LINENO: checking $ac_header presence" >&5
24983echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24984cat >conftest.$ac_ext <<_ACEOF
24985/* confdefs.h.  */
24986_ACEOF
24987cat confdefs.h >>conftest.$ac_ext
24988cat >>conftest.$ac_ext <<_ACEOF
24989/* end confdefs.h.  */
24990#include <$ac_header>
24991_ACEOF
24992if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24993  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24994  ac_status=$?
24995  grep -v '^ *+' conftest.er1 >conftest.err
24996  rm -f conftest.er1
24997  cat conftest.err >&5
24998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999  (exit $ac_status); } >/dev/null; then
25000  if test -s conftest.err; then
25001    ac_cpp_err=$ac_c_preproc_warn_flag
25002    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25003  else
25004    ac_cpp_err=
25005  fi
25006else
25007  ac_cpp_err=yes
25008fi
25009if test -z "$ac_cpp_err"; then
25010  ac_header_preproc=yes
25011else
25012  echo "$as_me: failed program was:" >&5
25013sed 's/^/| /' conftest.$ac_ext >&5
25014
25015  ac_header_preproc=no
25016fi
25017rm -f conftest.err conftest.$ac_ext
25018echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25019echo "${ECHO_T}$ac_header_preproc" >&6
25020
25021# So?  What about this header?
25022case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25023  yes:no: )
25024    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25025echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25026    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25027echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25028    ac_header_preproc=yes
25029    ;;
25030  no:yes:* )
25031    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25032echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25033    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25034echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25035    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25036echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25037    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25038echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25039    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25040echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25041    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25042echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25043    (
25044      cat <<\_ASBOX
25045## ------------------------------------------ ##
25046## Report this to the AC_PACKAGE_NAME lists.  ##
25047## ------------------------------------------ ##
25048_ASBOX
25049    ) |
25050      sed "s/^/$as_me: WARNING:     /" >&2
25051    ;;
25052esac
25053echo "$as_me:$LINENO: checking for $ac_header" >&5
25054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25055if eval "test \"\${$as_ac_Header+set}\" = set"; then
25056  echo $ECHO_N "(cached) $ECHO_C" >&6
25057else
25058  eval "$as_ac_Header=\$ac_header_preproc"
25059fi
25060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25061echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25062
25063fi
25064if test `eval echo '${'$as_ac_Header'}'` = yes; then
25065  cat >>confdefs.h <<_ACEOF
25066#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25067_ACEOF
25068
25069fi
25070
25071done
25072
25073
25074
25075
25076for ac_func in canonicalize_file_name
25077do
25078as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25079echo "$as_me:$LINENO: checking for $ac_func" >&5
25080echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25081if eval "test \"\${$as_ac_var+set}\" = set"; then
25082  echo $ECHO_N "(cached) $ECHO_C" >&6
25083else
25084  cat >conftest.$ac_ext <<_ACEOF
25085/* confdefs.h.  */
25086_ACEOF
25087cat confdefs.h >>conftest.$ac_ext
25088cat >>conftest.$ac_ext <<_ACEOF
25089/* end confdefs.h.  */
25090/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25091   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25092#define $ac_func innocuous_$ac_func
25093
25094/* System header to define __stub macros and hopefully few prototypes,
25095    which can conflict with char $ac_func (); below.
25096    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25097    <limits.h> exists even on freestanding compilers.  */
25098
25099#ifdef __STDC__
25100# include <limits.h>
25101#else
25102# include <assert.h>
25103#endif
25104
25105#undef $ac_func
25106
25107/* Override any gcc2 internal prototype to avoid an error.  */
25108#ifdef __cplusplus
25109extern "C"
25110{
25111#endif
25112/* We use char because int might match the return type of a gcc2
25113   builtin and then its argument prototype would still apply.  */
25114char $ac_func ();
25115/* The GNU C library defines this for functions which it implements
25116    to always fail with ENOSYS.  Some functions are actually named
25117    something starting with __ and the normal name is an alias.  */
25118#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25119choke me
25120#else
25121char (*f) () = $ac_func;
25122#endif
25123#ifdef __cplusplus
25124}
25125#endif
25126
25127int
25128main ()
25129{
25130return f != $ac_func;
25131  ;
25132  return 0;
25133}
25134_ACEOF
25135rm -f conftest.$ac_objext conftest$ac_exeext
25136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25137  (eval $ac_link) 2>conftest.er1
25138  ac_status=$?
25139  grep -v '^ *+' conftest.er1 >conftest.err
25140  rm -f conftest.er1
25141  cat conftest.err >&5
25142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25143  (exit $ac_status); } &&
25144	 { ac_try='test -z "$ac_c_werror_flag"
25145			 || test ! -s conftest.err'
25146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25147  (eval $ac_try) 2>&5
25148  ac_status=$?
25149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150  (exit $ac_status); }; } &&
25151	 { ac_try='test -s conftest$ac_exeext'
25152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25153  (eval $ac_try) 2>&5
25154  ac_status=$?
25155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25156  (exit $ac_status); }; }; then
25157  eval "$as_ac_var=yes"
25158else
25159  echo "$as_me: failed program was:" >&5
25160sed 's/^/| /' conftest.$ac_ext >&5
25161
25162eval "$as_ac_var=no"
25163fi
25164rm -f conftest.err conftest.$ac_objext \
25165      conftest$ac_exeext conftest.$ac_ext
25166fi
25167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25168echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25169if test `eval echo '${'$as_ac_var'}'` = yes; then
25170  cat >>confdefs.h <<_ACEOF
25171#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25172_ACEOF
25173
25174fi
25175done
25176
25177  if test $ac_cv_func_canonicalize_file_name = no; then
25178    case $LIBOBJS in
25179    "canonicalize.$ac_objext"   | \
25180  *" canonicalize.$ac_objext"   | \
25181    "canonicalize.$ac_objext "* | \
25182  *" canonicalize.$ac_objext "* ) ;;
25183  *) LIBOBJS="$LIBOBJS canonicalize.$ac_objext" ;;
25184esac
25185
25186
25187cat >>confdefs.h <<\_ACEOF
25188#define realpath rpl_realpath
25189_ACEOF
25190
25191
25192
25193  :
25194
25195
25196
25197
25198
25199
25200
25201
25202
25203
25204for ac_func in getcwd readlink
25205do
25206as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25207echo "$as_me:$LINENO: checking for $ac_func" >&5
25208echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25209if eval "test \"\${$as_ac_var+set}\" = set"; then
25210  echo $ECHO_N "(cached) $ECHO_C" >&6
25211else
25212  cat >conftest.$ac_ext <<_ACEOF
25213/* confdefs.h.  */
25214_ACEOF
25215cat confdefs.h >>conftest.$ac_ext
25216cat >>conftest.$ac_ext <<_ACEOF
25217/* end confdefs.h.  */
25218/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25219   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25220#define $ac_func innocuous_$ac_func
25221
25222/* System header to define __stub macros and hopefully few prototypes,
25223    which can conflict with char $ac_func (); below.
25224    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25225    <limits.h> exists even on freestanding compilers.  */
25226
25227#ifdef __STDC__
25228# include <limits.h>
25229#else
25230# include <assert.h>
25231#endif
25232
25233#undef $ac_func
25234
25235/* Override any gcc2 internal prototype to avoid an error.  */
25236#ifdef __cplusplus
25237extern "C"
25238{
25239#endif
25240/* We use char because int might match the return type of a gcc2
25241   builtin and then its argument prototype would still apply.  */
25242char $ac_func ();
25243/* The GNU C library defines this for functions which it implements
25244    to always fail with ENOSYS.  Some functions are actually named
25245    something starting with __ and the normal name is an alias.  */
25246#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25247choke me
25248#else
25249char (*f) () = $ac_func;
25250#endif
25251#ifdef __cplusplus
25252}
25253#endif
25254
25255int
25256main ()
25257{
25258return f != $ac_func;
25259  ;
25260  return 0;
25261}
25262_ACEOF
25263rm -f conftest.$ac_objext conftest$ac_exeext
25264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25265  (eval $ac_link) 2>conftest.er1
25266  ac_status=$?
25267  grep -v '^ *+' conftest.er1 >conftest.err
25268  rm -f conftest.er1
25269  cat conftest.err >&5
25270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271  (exit $ac_status); } &&
25272	 { ac_try='test -z "$ac_c_werror_flag"
25273			 || test ! -s conftest.err'
25274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25275  (eval $ac_try) 2>&5
25276  ac_status=$?
25277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278  (exit $ac_status); }; } &&
25279	 { ac_try='test -s conftest$ac_exeext'
25280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25281  (eval $ac_try) 2>&5
25282  ac_status=$?
25283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284  (exit $ac_status); }; }; then
25285  eval "$as_ac_var=yes"
25286else
25287  echo "$as_me: failed program was:" >&5
25288sed 's/^/| /' conftest.$ac_ext >&5
25289
25290eval "$as_ac_var=no"
25291fi
25292rm -f conftest.err conftest.$ac_objext \
25293      conftest$ac_exeext conftest.$ac_ext
25294fi
25295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25296echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25297if test `eval echo '${'$as_ac_var'}'` = yes; then
25298  cat >>confdefs.h <<_ACEOF
25299#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25300_ACEOF
25301
25302fi
25303done
25304
25305
25306  fi
25307
25308
25309      echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
25310echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
25311if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
25312  echo $ECHO_N "(cached) $ECHO_C" >&6
25313else
25314  cat >conftest.$ac_ext <<_ACEOF
25315/* confdefs.h.  */
25316_ACEOF
25317cat confdefs.h >>conftest.$ac_ext
25318cat >>conftest.$ac_ext <<_ACEOF
25319/* end confdefs.h.  */
25320$ac_includes_default
25321int
25322main ()
25323{
25324#ifndef clearerr_unlocked
25325  char *p = (char *) clearerr_unlocked;
25326#endif
25327
25328  ;
25329  return 0;
25330}
25331_ACEOF
25332rm -f conftest.$ac_objext
25333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25334  (eval $ac_compile) 2>conftest.er1
25335  ac_status=$?
25336  grep -v '^ *+' conftest.er1 >conftest.err
25337  rm -f conftest.er1
25338  cat conftest.err >&5
25339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340  (exit $ac_status); } &&
25341	 { ac_try='test -z "$ac_c_werror_flag"
25342			 || test ! -s conftest.err'
25343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25344  (eval $ac_try) 2>&5
25345  ac_status=$?
25346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347  (exit $ac_status); }; } &&
25348	 { ac_try='test -s conftest.$ac_objext'
25349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25350  (eval $ac_try) 2>&5
25351  ac_status=$?
25352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353  (exit $ac_status); }; }; then
25354  ac_cv_have_decl_clearerr_unlocked=yes
25355else
25356  echo "$as_me: failed program was:" >&5
25357sed 's/^/| /' conftest.$ac_ext >&5
25358
25359ac_cv_have_decl_clearerr_unlocked=no
25360fi
25361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25362fi
25363echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
25364echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
25365if test $ac_cv_have_decl_clearerr_unlocked = yes; then
25366
25367cat >>confdefs.h <<_ACEOF
25368#define HAVE_DECL_CLEARERR_UNLOCKED 1
25369_ACEOF
25370
25371
25372else
25373  cat >>confdefs.h <<_ACEOF
25374#define HAVE_DECL_CLEARERR_UNLOCKED 0
25375_ACEOF
25376
25377
25378fi
25379
25380
25381
25382
25383      echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
25384echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
25385if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
25386  echo $ECHO_N "(cached) $ECHO_C" >&6
25387else
25388  cat >conftest.$ac_ext <<_ACEOF
25389/* confdefs.h.  */
25390_ACEOF
25391cat confdefs.h >>conftest.$ac_ext
25392cat >>conftest.$ac_ext <<_ACEOF
25393/* end confdefs.h.  */
25394$ac_includes_default
25395int
25396main ()
25397{
25398#ifndef feof_unlocked
25399  char *p = (char *) feof_unlocked;
25400#endif
25401
25402  ;
25403  return 0;
25404}
25405_ACEOF
25406rm -f conftest.$ac_objext
25407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25408  (eval $ac_compile) 2>conftest.er1
25409  ac_status=$?
25410  grep -v '^ *+' conftest.er1 >conftest.err
25411  rm -f conftest.er1
25412  cat conftest.err >&5
25413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414  (exit $ac_status); } &&
25415	 { ac_try='test -z "$ac_c_werror_flag"
25416			 || test ! -s conftest.err'
25417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25418  (eval $ac_try) 2>&5
25419  ac_status=$?
25420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421  (exit $ac_status); }; } &&
25422	 { ac_try='test -s conftest.$ac_objext'
25423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25424  (eval $ac_try) 2>&5
25425  ac_status=$?
25426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427  (exit $ac_status); }; }; then
25428  ac_cv_have_decl_feof_unlocked=yes
25429else
25430  echo "$as_me: failed program was:" >&5
25431sed 's/^/| /' conftest.$ac_ext >&5
25432
25433ac_cv_have_decl_feof_unlocked=no
25434fi
25435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25436fi
25437echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
25438echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
25439if test $ac_cv_have_decl_feof_unlocked = yes; then
25440
25441cat >>confdefs.h <<_ACEOF
25442#define HAVE_DECL_FEOF_UNLOCKED 1
25443_ACEOF
25444
25445
25446else
25447  cat >>confdefs.h <<_ACEOF
25448#define HAVE_DECL_FEOF_UNLOCKED 0
25449_ACEOF
25450
25451
25452fi
25453
25454
25455
25456
25457      echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
25458echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
25459if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
25460  echo $ECHO_N "(cached) $ECHO_C" >&6
25461else
25462  cat >conftest.$ac_ext <<_ACEOF
25463/* confdefs.h.  */
25464_ACEOF
25465cat confdefs.h >>conftest.$ac_ext
25466cat >>conftest.$ac_ext <<_ACEOF
25467/* end confdefs.h.  */
25468$ac_includes_default
25469int
25470main ()
25471{
25472#ifndef ferror_unlocked
25473  char *p = (char *) ferror_unlocked;
25474#endif
25475
25476  ;
25477  return 0;
25478}
25479_ACEOF
25480rm -f conftest.$ac_objext
25481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25482  (eval $ac_compile) 2>conftest.er1
25483  ac_status=$?
25484  grep -v '^ *+' conftest.er1 >conftest.err
25485  rm -f conftest.er1
25486  cat conftest.err >&5
25487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488  (exit $ac_status); } &&
25489	 { ac_try='test -z "$ac_c_werror_flag"
25490			 || test ! -s conftest.err'
25491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492  (eval $ac_try) 2>&5
25493  ac_status=$?
25494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495  (exit $ac_status); }; } &&
25496	 { ac_try='test -s conftest.$ac_objext'
25497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25498  (eval $ac_try) 2>&5
25499  ac_status=$?
25500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501  (exit $ac_status); }; }; then
25502  ac_cv_have_decl_ferror_unlocked=yes
25503else
25504  echo "$as_me: failed program was:" >&5
25505sed 's/^/| /' conftest.$ac_ext >&5
25506
25507ac_cv_have_decl_ferror_unlocked=no
25508fi
25509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25510fi
25511echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
25512echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
25513if test $ac_cv_have_decl_ferror_unlocked = yes; then
25514
25515cat >>confdefs.h <<_ACEOF
25516#define HAVE_DECL_FERROR_UNLOCKED 1
25517_ACEOF
25518
25519
25520else
25521  cat >>confdefs.h <<_ACEOF
25522#define HAVE_DECL_FERROR_UNLOCKED 0
25523_ACEOF
25524
25525
25526fi
25527
25528
25529
25530
25531      echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
25532echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
25533if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
25534  echo $ECHO_N "(cached) $ECHO_C" >&6
25535else
25536  cat >conftest.$ac_ext <<_ACEOF
25537/* confdefs.h.  */
25538_ACEOF
25539cat confdefs.h >>conftest.$ac_ext
25540cat >>conftest.$ac_ext <<_ACEOF
25541/* end confdefs.h.  */
25542$ac_includes_default
25543int
25544main ()
25545{
25546#ifndef fflush_unlocked
25547  char *p = (char *) fflush_unlocked;
25548#endif
25549
25550  ;
25551  return 0;
25552}
25553_ACEOF
25554rm -f conftest.$ac_objext
25555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25556  (eval $ac_compile) 2>conftest.er1
25557  ac_status=$?
25558  grep -v '^ *+' conftest.er1 >conftest.err
25559  rm -f conftest.er1
25560  cat conftest.err >&5
25561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562  (exit $ac_status); } &&
25563	 { ac_try='test -z "$ac_c_werror_flag"
25564			 || test ! -s conftest.err'
25565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25566  (eval $ac_try) 2>&5
25567  ac_status=$?
25568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569  (exit $ac_status); }; } &&
25570	 { ac_try='test -s conftest.$ac_objext'
25571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25572  (eval $ac_try) 2>&5
25573  ac_status=$?
25574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25575  (exit $ac_status); }; }; then
25576  ac_cv_have_decl_fflush_unlocked=yes
25577else
25578  echo "$as_me: failed program was:" >&5
25579sed 's/^/| /' conftest.$ac_ext >&5
25580
25581ac_cv_have_decl_fflush_unlocked=no
25582fi
25583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25584fi
25585echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
25586echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
25587if test $ac_cv_have_decl_fflush_unlocked = yes; then
25588
25589cat >>confdefs.h <<_ACEOF
25590#define HAVE_DECL_FFLUSH_UNLOCKED 1
25591_ACEOF
25592
25593
25594else
25595  cat >>confdefs.h <<_ACEOF
25596#define HAVE_DECL_FFLUSH_UNLOCKED 0
25597_ACEOF
25598
25599
25600fi
25601
25602
25603
25604
25605      echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
25606echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
25607if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
25608  echo $ECHO_N "(cached) $ECHO_C" >&6
25609else
25610  cat >conftest.$ac_ext <<_ACEOF
25611/* confdefs.h.  */
25612_ACEOF
25613cat confdefs.h >>conftest.$ac_ext
25614cat >>conftest.$ac_ext <<_ACEOF
25615/* end confdefs.h.  */
25616$ac_includes_default
25617int
25618main ()
25619{
25620#ifndef fgets_unlocked
25621  char *p = (char *) fgets_unlocked;
25622#endif
25623
25624  ;
25625  return 0;
25626}
25627_ACEOF
25628rm -f conftest.$ac_objext
25629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25630  (eval $ac_compile) 2>conftest.er1
25631  ac_status=$?
25632  grep -v '^ *+' conftest.er1 >conftest.err
25633  rm -f conftest.er1
25634  cat conftest.err >&5
25635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25636  (exit $ac_status); } &&
25637	 { ac_try='test -z "$ac_c_werror_flag"
25638			 || test ! -s conftest.err'
25639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25640  (eval $ac_try) 2>&5
25641  ac_status=$?
25642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643  (exit $ac_status); }; } &&
25644	 { ac_try='test -s conftest.$ac_objext'
25645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25646  (eval $ac_try) 2>&5
25647  ac_status=$?
25648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649  (exit $ac_status); }; }; then
25650  ac_cv_have_decl_fgets_unlocked=yes
25651else
25652  echo "$as_me: failed program was:" >&5
25653sed 's/^/| /' conftest.$ac_ext >&5
25654
25655ac_cv_have_decl_fgets_unlocked=no
25656fi
25657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25658fi
25659echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
25660echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
25661if test $ac_cv_have_decl_fgets_unlocked = yes; then
25662
25663cat >>confdefs.h <<_ACEOF
25664#define HAVE_DECL_FGETS_UNLOCKED 1
25665_ACEOF
25666
25667
25668else
25669  cat >>confdefs.h <<_ACEOF
25670#define HAVE_DECL_FGETS_UNLOCKED 0
25671_ACEOF
25672
25673
25674fi
25675
25676
25677
25678
25679      echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
25680echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
25681if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
25682  echo $ECHO_N "(cached) $ECHO_C" >&6
25683else
25684  cat >conftest.$ac_ext <<_ACEOF
25685/* confdefs.h.  */
25686_ACEOF
25687cat confdefs.h >>conftest.$ac_ext
25688cat >>conftest.$ac_ext <<_ACEOF
25689/* end confdefs.h.  */
25690$ac_includes_default
25691int
25692main ()
25693{
25694#ifndef fputc_unlocked
25695  char *p = (char *) fputc_unlocked;
25696#endif
25697
25698  ;
25699  return 0;
25700}
25701_ACEOF
25702rm -f conftest.$ac_objext
25703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25704  (eval $ac_compile) 2>conftest.er1
25705  ac_status=$?
25706  grep -v '^ *+' conftest.er1 >conftest.err
25707  rm -f conftest.er1
25708  cat conftest.err >&5
25709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25710  (exit $ac_status); } &&
25711	 { ac_try='test -z "$ac_c_werror_flag"
25712			 || test ! -s conftest.err'
25713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25714  (eval $ac_try) 2>&5
25715  ac_status=$?
25716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717  (exit $ac_status); }; } &&
25718	 { ac_try='test -s conftest.$ac_objext'
25719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25720  (eval $ac_try) 2>&5
25721  ac_status=$?
25722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723  (exit $ac_status); }; }; then
25724  ac_cv_have_decl_fputc_unlocked=yes
25725else
25726  echo "$as_me: failed program was:" >&5
25727sed 's/^/| /' conftest.$ac_ext >&5
25728
25729ac_cv_have_decl_fputc_unlocked=no
25730fi
25731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25732fi
25733echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
25734echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
25735if test $ac_cv_have_decl_fputc_unlocked = yes; then
25736
25737cat >>confdefs.h <<_ACEOF
25738#define HAVE_DECL_FPUTC_UNLOCKED 1
25739_ACEOF
25740
25741
25742else
25743  cat >>confdefs.h <<_ACEOF
25744#define HAVE_DECL_FPUTC_UNLOCKED 0
25745_ACEOF
25746
25747
25748fi
25749
25750
25751
25752
25753      echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
25754echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
25755if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
25756  echo $ECHO_N "(cached) $ECHO_C" >&6
25757else
25758  cat >conftest.$ac_ext <<_ACEOF
25759/* confdefs.h.  */
25760_ACEOF
25761cat confdefs.h >>conftest.$ac_ext
25762cat >>conftest.$ac_ext <<_ACEOF
25763/* end confdefs.h.  */
25764$ac_includes_default
25765int
25766main ()
25767{
25768#ifndef fputs_unlocked
25769  char *p = (char *) fputs_unlocked;
25770#endif
25771
25772  ;
25773  return 0;
25774}
25775_ACEOF
25776rm -f conftest.$ac_objext
25777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25778  (eval $ac_compile) 2>conftest.er1
25779  ac_status=$?
25780  grep -v '^ *+' conftest.er1 >conftest.err
25781  rm -f conftest.er1
25782  cat conftest.err >&5
25783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784  (exit $ac_status); } &&
25785	 { ac_try='test -z "$ac_c_werror_flag"
25786			 || test ! -s conftest.err'
25787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25788  (eval $ac_try) 2>&5
25789  ac_status=$?
25790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791  (exit $ac_status); }; } &&
25792	 { ac_try='test -s conftest.$ac_objext'
25793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25794  (eval $ac_try) 2>&5
25795  ac_status=$?
25796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797  (exit $ac_status); }; }; then
25798  ac_cv_have_decl_fputs_unlocked=yes
25799else
25800  echo "$as_me: failed program was:" >&5
25801sed 's/^/| /' conftest.$ac_ext >&5
25802
25803ac_cv_have_decl_fputs_unlocked=no
25804fi
25805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25806fi
25807echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
25808echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
25809if test $ac_cv_have_decl_fputs_unlocked = yes; then
25810
25811cat >>confdefs.h <<_ACEOF
25812#define HAVE_DECL_FPUTS_UNLOCKED 1
25813_ACEOF
25814
25815
25816else
25817  cat >>confdefs.h <<_ACEOF
25818#define HAVE_DECL_FPUTS_UNLOCKED 0
25819_ACEOF
25820
25821
25822fi
25823
25824
25825
25826
25827      echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
25828echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
25829if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
25830  echo $ECHO_N "(cached) $ECHO_C" >&6
25831else
25832  cat >conftest.$ac_ext <<_ACEOF
25833/* confdefs.h.  */
25834_ACEOF
25835cat confdefs.h >>conftest.$ac_ext
25836cat >>conftest.$ac_ext <<_ACEOF
25837/* end confdefs.h.  */
25838$ac_includes_default
25839int
25840main ()
25841{
25842#ifndef fread_unlocked
25843  char *p = (char *) fread_unlocked;
25844#endif
25845
25846  ;
25847  return 0;
25848}
25849_ACEOF
25850rm -f conftest.$ac_objext
25851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25852  (eval $ac_compile) 2>conftest.er1
25853  ac_status=$?
25854  grep -v '^ *+' conftest.er1 >conftest.err
25855  rm -f conftest.er1
25856  cat conftest.err >&5
25857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858  (exit $ac_status); } &&
25859	 { ac_try='test -z "$ac_c_werror_flag"
25860			 || test ! -s conftest.err'
25861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25862  (eval $ac_try) 2>&5
25863  ac_status=$?
25864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865  (exit $ac_status); }; } &&
25866	 { ac_try='test -s conftest.$ac_objext'
25867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25868  (eval $ac_try) 2>&5
25869  ac_status=$?
25870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871  (exit $ac_status); }; }; then
25872  ac_cv_have_decl_fread_unlocked=yes
25873else
25874  echo "$as_me: failed program was:" >&5
25875sed 's/^/| /' conftest.$ac_ext >&5
25876
25877ac_cv_have_decl_fread_unlocked=no
25878fi
25879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25880fi
25881echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
25882echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
25883if test $ac_cv_have_decl_fread_unlocked = yes; then
25884
25885cat >>confdefs.h <<_ACEOF
25886#define HAVE_DECL_FREAD_UNLOCKED 1
25887_ACEOF
25888
25889
25890else
25891  cat >>confdefs.h <<_ACEOF
25892#define HAVE_DECL_FREAD_UNLOCKED 0
25893_ACEOF
25894
25895
25896fi
25897
25898
25899
25900
25901      echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
25902echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
25903if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
25904  echo $ECHO_N "(cached) $ECHO_C" >&6
25905else
25906  cat >conftest.$ac_ext <<_ACEOF
25907/* confdefs.h.  */
25908_ACEOF
25909cat confdefs.h >>conftest.$ac_ext
25910cat >>conftest.$ac_ext <<_ACEOF
25911/* end confdefs.h.  */
25912$ac_includes_default
25913int
25914main ()
25915{
25916#ifndef fwrite_unlocked
25917  char *p = (char *) fwrite_unlocked;
25918#endif
25919
25920  ;
25921  return 0;
25922}
25923_ACEOF
25924rm -f conftest.$ac_objext
25925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25926  (eval $ac_compile) 2>conftest.er1
25927  ac_status=$?
25928  grep -v '^ *+' conftest.er1 >conftest.err
25929  rm -f conftest.er1
25930  cat conftest.err >&5
25931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25932  (exit $ac_status); } &&
25933	 { ac_try='test -z "$ac_c_werror_flag"
25934			 || test ! -s conftest.err'
25935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25936  (eval $ac_try) 2>&5
25937  ac_status=$?
25938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25939  (exit $ac_status); }; } &&
25940	 { ac_try='test -s conftest.$ac_objext'
25941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25942  (eval $ac_try) 2>&5
25943  ac_status=$?
25944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945  (exit $ac_status); }; }; then
25946  ac_cv_have_decl_fwrite_unlocked=yes
25947else
25948  echo "$as_me: failed program was:" >&5
25949sed 's/^/| /' conftest.$ac_ext >&5
25950
25951ac_cv_have_decl_fwrite_unlocked=no
25952fi
25953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25954fi
25955echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
25956echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
25957if test $ac_cv_have_decl_fwrite_unlocked = yes; then
25958
25959cat >>confdefs.h <<_ACEOF
25960#define HAVE_DECL_FWRITE_UNLOCKED 1
25961_ACEOF
25962
25963
25964else
25965  cat >>confdefs.h <<_ACEOF
25966#define HAVE_DECL_FWRITE_UNLOCKED 0
25967_ACEOF
25968
25969
25970fi
25971
25972
25973
25974
25975      echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
25976echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
25977if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
25978  echo $ECHO_N "(cached) $ECHO_C" >&6
25979else
25980  cat >conftest.$ac_ext <<_ACEOF
25981/* confdefs.h.  */
25982_ACEOF
25983cat confdefs.h >>conftest.$ac_ext
25984cat >>conftest.$ac_ext <<_ACEOF
25985/* end confdefs.h.  */
25986$ac_includes_default
25987int
25988main ()
25989{
25990#ifndef getc_unlocked
25991  char *p = (char *) getc_unlocked;
25992#endif
25993
25994  ;
25995  return 0;
25996}
25997_ACEOF
25998rm -f conftest.$ac_objext
25999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26000  (eval $ac_compile) 2>conftest.er1
26001  ac_status=$?
26002  grep -v '^ *+' conftest.er1 >conftest.err
26003  rm -f conftest.er1
26004  cat conftest.err >&5
26005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006  (exit $ac_status); } &&
26007	 { ac_try='test -z "$ac_c_werror_flag"
26008			 || test ! -s conftest.err'
26009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26010  (eval $ac_try) 2>&5
26011  ac_status=$?
26012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013  (exit $ac_status); }; } &&
26014	 { ac_try='test -s conftest.$ac_objext'
26015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26016  (eval $ac_try) 2>&5
26017  ac_status=$?
26018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019  (exit $ac_status); }; }; then
26020  ac_cv_have_decl_getc_unlocked=yes
26021else
26022  echo "$as_me: failed program was:" >&5
26023sed 's/^/| /' conftest.$ac_ext >&5
26024
26025ac_cv_have_decl_getc_unlocked=no
26026fi
26027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26028fi
26029echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
26030echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
26031if test $ac_cv_have_decl_getc_unlocked = yes; then
26032
26033cat >>confdefs.h <<_ACEOF
26034#define HAVE_DECL_GETC_UNLOCKED 1
26035_ACEOF
26036
26037
26038else
26039  cat >>confdefs.h <<_ACEOF
26040#define HAVE_DECL_GETC_UNLOCKED 0
26041_ACEOF
26042
26043
26044fi
26045
26046
26047
26048
26049      echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
26050echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
26051if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
26052  echo $ECHO_N "(cached) $ECHO_C" >&6
26053else
26054  cat >conftest.$ac_ext <<_ACEOF
26055/* confdefs.h.  */
26056_ACEOF
26057cat confdefs.h >>conftest.$ac_ext
26058cat >>conftest.$ac_ext <<_ACEOF
26059/* end confdefs.h.  */
26060$ac_includes_default
26061int
26062main ()
26063{
26064#ifndef getchar_unlocked
26065  char *p = (char *) getchar_unlocked;
26066#endif
26067
26068  ;
26069  return 0;
26070}
26071_ACEOF
26072rm -f conftest.$ac_objext
26073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26074  (eval $ac_compile) 2>conftest.er1
26075  ac_status=$?
26076  grep -v '^ *+' conftest.er1 >conftest.err
26077  rm -f conftest.er1
26078  cat conftest.err >&5
26079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26080  (exit $ac_status); } &&
26081	 { ac_try='test -z "$ac_c_werror_flag"
26082			 || test ! -s conftest.err'
26083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26084  (eval $ac_try) 2>&5
26085  ac_status=$?
26086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26087  (exit $ac_status); }; } &&
26088	 { ac_try='test -s conftest.$ac_objext'
26089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26090  (eval $ac_try) 2>&5
26091  ac_status=$?
26092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26093  (exit $ac_status); }; }; then
26094  ac_cv_have_decl_getchar_unlocked=yes
26095else
26096  echo "$as_me: failed program was:" >&5
26097sed 's/^/| /' conftest.$ac_ext >&5
26098
26099ac_cv_have_decl_getchar_unlocked=no
26100fi
26101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26102fi
26103echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
26104echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
26105if test $ac_cv_have_decl_getchar_unlocked = yes; then
26106
26107cat >>confdefs.h <<_ACEOF
26108#define HAVE_DECL_GETCHAR_UNLOCKED 1
26109_ACEOF
26110
26111
26112else
26113  cat >>confdefs.h <<_ACEOF
26114#define HAVE_DECL_GETCHAR_UNLOCKED 0
26115_ACEOF
26116
26117
26118fi
26119
26120
26121
26122
26123      echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
26124echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
26125if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
26126  echo $ECHO_N "(cached) $ECHO_C" >&6
26127else
26128  cat >conftest.$ac_ext <<_ACEOF
26129/* confdefs.h.  */
26130_ACEOF
26131cat confdefs.h >>conftest.$ac_ext
26132cat >>conftest.$ac_ext <<_ACEOF
26133/* end confdefs.h.  */
26134$ac_includes_default
26135int
26136main ()
26137{
26138#ifndef putc_unlocked
26139  char *p = (char *) putc_unlocked;
26140#endif
26141
26142  ;
26143  return 0;
26144}
26145_ACEOF
26146rm -f conftest.$ac_objext
26147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26148  (eval $ac_compile) 2>conftest.er1
26149  ac_status=$?
26150  grep -v '^ *+' conftest.er1 >conftest.err
26151  rm -f conftest.er1
26152  cat conftest.err >&5
26153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154  (exit $ac_status); } &&
26155	 { ac_try='test -z "$ac_c_werror_flag"
26156			 || test ! -s conftest.err'
26157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26158  (eval $ac_try) 2>&5
26159  ac_status=$?
26160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161  (exit $ac_status); }; } &&
26162	 { ac_try='test -s conftest.$ac_objext'
26163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26164  (eval $ac_try) 2>&5
26165  ac_status=$?
26166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26167  (exit $ac_status); }; }; then
26168  ac_cv_have_decl_putc_unlocked=yes
26169else
26170  echo "$as_me: failed program was:" >&5
26171sed 's/^/| /' conftest.$ac_ext >&5
26172
26173ac_cv_have_decl_putc_unlocked=no
26174fi
26175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26176fi
26177echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
26178echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
26179if test $ac_cv_have_decl_putc_unlocked = yes; then
26180
26181cat >>confdefs.h <<_ACEOF
26182#define HAVE_DECL_PUTC_UNLOCKED 1
26183_ACEOF
26184
26185
26186else
26187  cat >>confdefs.h <<_ACEOF
26188#define HAVE_DECL_PUTC_UNLOCKED 0
26189_ACEOF
26190
26191
26192fi
26193
26194
26195
26196
26197      echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
26198echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
26199if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
26200  echo $ECHO_N "(cached) $ECHO_C" >&6
26201else
26202  cat >conftest.$ac_ext <<_ACEOF
26203/* confdefs.h.  */
26204_ACEOF
26205cat confdefs.h >>conftest.$ac_ext
26206cat >>conftest.$ac_ext <<_ACEOF
26207/* end confdefs.h.  */
26208$ac_includes_default
26209int
26210main ()
26211{
26212#ifndef putchar_unlocked
26213  char *p = (char *) putchar_unlocked;
26214#endif
26215
26216  ;
26217  return 0;
26218}
26219_ACEOF
26220rm -f conftest.$ac_objext
26221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26222  (eval $ac_compile) 2>conftest.er1
26223  ac_status=$?
26224  grep -v '^ *+' conftest.er1 >conftest.err
26225  rm -f conftest.er1
26226  cat conftest.err >&5
26227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228  (exit $ac_status); } &&
26229	 { ac_try='test -z "$ac_c_werror_flag"
26230			 || test ! -s conftest.err'
26231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26232  (eval $ac_try) 2>&5
26233  ac_status=$?
26234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235  (exit $ac_status); }; } &&
26236	 { ac_try='test -s conftest.$ac_objext'
26237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26238  (eval $ac_try) 2>&5
26239  ac_status=$?
26240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241  (exit $ac_status); }; }; then
26242  ac_cv_have_decl_putchar_unlocked=yes
26243else
26244  echo "$as_me: failed program was:" >&5
26245sed 's/^/| /' conftest.$ac_ext >&5
26246
26247ac_cv_have_decl_putchar_unlocked=no
26248fi
26249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26250fi
26251echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
26252echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
26253if test $ac_cv_have_decl_putchar_unlocked = yes; then
26254
26255cat >>confdefs.h <<_ACEOF
26256#define HAVE_DECL_PUTCHAR_UNLOCKED 1
26257_ACEOF
26258
26259
26260else
26261  cat >>confdefs.h <<_ACEOF
26262#define HAVE_DECL_PUTCHAR_UNLOCKED 0
26263_ACEOF
26264
26265
26266fi
26267
26268
26269
26270
26271
26272
26273
26274  :
26275
26276
26277
26278
26279
26280
26281
26282
26283
26284
26285
26286
26287
26288
26289
26290
26291
26292
26293
26294
26295
26296
26297
26298
26299
26300
26301
26302
26303
26304
26305
26306
26307
26308
26309
26310
26311
26312
26313
26314
26315
26316
26317
26318for ac_func in vprintf
26319do
26320as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26321echo "$as_me:$LINENO: checking for $ac_func" >&5
26322echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26323if eval "test \"\${$as_ac_var+set}\" = set"; then
26324  echo $ECHO_N "(cached) $ECHO_C" >&6
26325else
26326  cat >conftest.$ac_ext <<_ACEOF
26327/* confdefs.h.  */
26328_ACEOF
26329cat confdefs.h >>conftest.$ac_ext
26330cat >>conftest.$ac_ext <<_ACEOF
26331/* end confdefs.h.  */
26332/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26333   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26334#define $ac_func innocuous_$ac_func
26335
26336/* System header to define __stub macros and hopefully few prototypes,
26337    which can conflict with char $ac_func (); below.
26338    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26339    <limits.h> exists even on freestanding compilers.  */
26340
26341#ifdef __STDC__
26342# include <limits.h>
26343#else
26344# include <assert.h>
26345#endif
26346
26347#undef $ac_func
26348
26349/* Override any gcc2 internal prototype to avoid an error.  */
26350#ifdef __cplusplus
26351extern "C"
26352{
26353#endif
26354/* We use char because int might match the return type of a gcc2
26355   builtin and then its argument prototype would still apply.  */
26356char $ac_func ();
26357/* The GNU C library defines this for functions which it implements
26358    to always fail with ENOSYS.  Some functions are actually named
26359    something starting with __ and the normal name is an alias.  */
26360#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26361choke me
26362#else
26363char (*f) () = $ac_func;
26364#endif
26365#ifdef __cplusplus
26366}
26367#endif
26368
26369int
26370main ()
26371{
26372return f != $ac_func;
26373  ;
26374  return 0;
26375}
26376_ACEOF
26377rm -f conftest.$ac_objext conftest$ac_exeext
26378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26379  (eval $ac_link) 2>conftest.er1
26380  ac_status=$?
26381  grep -v '^ *+' conftest.er1 >conftest.err
26382  rm -f conftest.er1
26383  cat conftest.err >&5
26384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385  (exit $ac_status); } &&
26386	 { ac_try='test -z "$ac_c_werror_flag"
26387			 || test ! -s conftest.err'
26388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26389  (eval $ac_try) 2>&5
26390  ac_status=$?
26391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26392  (exit $ac_status); }; } &&
26393	 { ac_try='test -s conftest$ac_exeext'
26394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26395  (eval $ac_try) 2>&5
26396  ac_status=$?
26397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398  (exit $ac_status); }; }; then
26399  eval "$as_ac_var=yes"
26400else
26401  echo "$as_me: failed program was:" >&5
26402sed 's/^/| /' conftest.$ac_ext >&5
26403
26404eval "$as_ac_var=no"
26405fi
26406rm -f conftest.err conftest.$ac_objext \
26407      conftest$ac_exeext conftest.$ac_ext
26408fi
26409echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26410echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26411if test `eval echo '${'$as_ac_var'}'` = yes; then
26412  cat >>confdefs.h <<_ACEOF
26413#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26414_ACEOF
26415
26416echo "$as_me:$LINENO: checking for _doprnt" >&5
26417echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
26418if test "${ac_cv_func__doprnt+set}" = set; then
26419  echo $ECHO_N "(cached) $ECHO_C" >&6
26420else
26421  cat >conftest.$ac_ext <<_ACEOF
26422/* confdefs.h.  */
26423_ACEOF
26424cat confdefs.h >>conftest.$ac_ext
26425cat >>conftest.$ac_ext <<_ACEOF
26426/* end confdefs.h.  */
26427/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
26428   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26429#define _doprnt innocuous__doprnt
26430
26431/* System header to define __stub macros and hopefully few prototypes,
26432    which can conflict with char _doprnt (); below.
26433    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26434    <limits.h> exists even on freestanding compilers.  */
26435
26436#ifdef __STDC__
26437# include <limits.h>
26438#else
26439# include <assert.h>
26440#endif
26441
26442#undef _doprnt
26443
26444/* Override any gcc2 internal prototype to avoid an error.  */
26445#ifdef __cplusplus
26446extern "C"
26447{
26448#endif
26449/* We use char because int might match the return type of a gcc2
26450   builtin and then its argument prototype would still apply.  */
26451char _doprnt ();
26452/* The GNU C library defines this for functions which it implements
26453    to always fail with ENOSYS.  Some functions are actually named
26454    something starting with __ and the normal name is an alias.  */
26455#if defined (__stub__doprnt) || defined (__stub____doprnt)
26456choke me
26457#else
26458char (*f) () = _doprnt;
26459#endif
26460#ifdef __cplusplus
26461}
26462#endif
26463
26464int
26465main ()
26466{
26467return f != _doprnt;
26468  ;
26469  return 0;
26470}
26471_ACEOF
26472rm -f conftest.$ac_objext conftest$ac_exeext
26473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26474  (eval $ac_link) 2>conftest.er1
26475  ac_status=$?
26476  grep -v '^ *+' conftest.er1 >conftest.err
26477  rm -f conftest.er1
26478  cat conftest.err >&5
26479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480  (exit $ac_status); } &&
26481	 { ac_try='test -z "$ac_c_werror_flag"
26482			 || test ! -s conftest.err'
26483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26484  (eval $ac_try) 2>&5
26485  ac_status=$?
26486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487  (exit $ac_status); }; } &&
26488	 { ac_try='test -s conftest$ac_exeext'
26489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26490  (eval $ac_try) 2>&5
26491  ac_status=$?
26492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26493  (exit $ac_status); }; }; then
26494  ac_cv_func__doprnt=yes
26495else
26496  echo "$as_me: failed program was:" >&5
26497sed 's/^/| /' conftest.$ac_ext >&5
26498
26499ac_cv_func__doprnt=no
26500fi
26501rm -f conftest.err conftest.$ac_objext \
26502      conftest$ac_exeext conftest.$ac_ext
26503fi
26504echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26505echo "${ECHO_T}$ac_cv_func__doprnt" >&6
26506if test $ac_cv_func__doprnt = yes; then
26507
26508cat >>confdefs.h <<\_ACEOF
26509#define HAVE_DOPRNT 1
26510_ACEOF
26511
26512fi
26513
26514fi
26515done
26516
26517
26518
26519  echo "$as_me:$LINENO: checking for error_at_line" >&5
26520echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
26521if test "${am_cv_lib_error_at_line+set}" = set; then
26522  echo $ECHO_N "(cached) $ECHO_C" >&6
26523else
26524  cat >conftest.$ac_ext <<_ACEOF
26525/* confdefs.h.  */
26526_ACEOF
26527cat confdefs.h >>conftest.$ac_ext
26528cat >>conftest.$ac_ext <<_ACEOF
26529/* end confdefs.h.  */
26530
26531int
26532main ()
26533{
26534error_at_line(0, 0, "", 0, "");
26535  ;
26536  return 0;
26537}
26538_ACEOF
26539rm -f conftest.$ac_objext conftest$ac_exeext
26540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26541  (eval $ac_link) 2>conftest.er1
26542  ac_status=$?
26543  grep -v '^ *+' conftest.er1 >conftest.err
26544  rm -f conftest.er1
26545  cat conftest.err >&5
26546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26547  (exit $ac_status); } &&
26548	 { ac_try='test -z "$ac_c_werror_flag"
26549			 || test ! -s conftest.err'
26550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26551  (eval $ac_try) 2>&5
26552  ac_status=$?
26553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26554  (exit $ac_status); }; } &&
26555	 { ac_try='test -s conftest$ac_exeext'
26556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26557  (eval $ac_try) 2>&5
26558  ac_status=$?
26559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560  (exit $ac_status); }; }; then
26561  am_cv_lib_error_at_line=yes
26562else
26563  echo "$as_me: failed program was:" >&5
26564sed 's/^/| /' conftest.$ac_ext >&5
26565
26566am_cv_lib_error_at_line=no
26567fi
26568rm -f conftest.err conftest.$ac_objext \
26569      conftest$ac_exeext conftest.$ac_ext
26570fi
26571echo "$as_me:$LINENO: result: $am_cv_lib_error_at_line" >&5
26572echo "${ECHO_T}$am_cv_lib_error_at_line" >&6
26573  if test $am_cv_lib_error_at_line = yes; then
26574
26575cat >>confdefs.h <<\_ACEOF
26576#define HAVE_ERROR_AT_LINE 1
26577_ACEOF
26578
26579  else
26580
26581
26582
26583
26584for ac_func in strerror
26585do
26586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26587echo "$as_me:$LINENO: checking for $ac_func" >&5
26588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26589if eval "test \"\${$as_ac_var+set}\" = set"; then
26590  echo $ECHO_N "(cached) $ECHO_C" >&6
26591else
26592  cat >conftest.$ac_ext <<_ACEOF
26593/* confdefs.h.  */
26594_ACEOF
26595cat confdefs.h >>conftest.$ac_ext
26596cat >>conftest.$ac_ext <<_ACEOF
26597/* end confdefs.h.  */
26598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26599   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26600#define $ac_func innocuous_$ac_func
26601
26602/* System header to define __stub macros and hopefully few prototypes,
26603    which can conflict with char $ac_func (); below.
26604    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26605    <limits.h> exists even on freestanding compilers.  */
26606
26607#ifdef __STDC__
26608# include <limits.h>
26609#else
26610# include <assert.h>
26611#endif
26612
26613#undef $ac_func
26614
26615/* Override any gcc2 internal prototype to avoid an error.  */
26616#ifdef __cplusplus
26617extern "C"
26618{
26619#endif
26620/* We use char because int might match the return type of a gcc2
26621   builtin and then its argument prototype would still apply.  */
26622char $ac_func ();
26623/* The GNU C library defines this for functions which it implements
26624    to always fail with ENOSYS.  Some functions are actually named
26625    something starting with __ and the normal name is an alias.  */
26626#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26627choke me
26628#else
26629char (*f) () = $ac_func;
26630#endif
26631#ifdef __cplusplus
26632}
26633#endif
26634
26635int
26636main ()
26637{
26638return f != $ac_func;
26639  ;
26640  return 0;
26641}
26642_ACEOF
26643rm -f conftest.$ac_objext conftest$ac_exeext
26644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26645  (eval $ac_link) 2>conftest.er1
26646  ac_status=$?
26647  grep -v '^ *+' conftest.er1 >conftest.err
26648  rm -f conftest.er1
26649  cat conftest.err >&5
26650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651  (exit $ac_status); } &&
26652	 { ac_try='test -z "$ac_c_werror_flag"
26653			 || test ! -s conftest.err'
26654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26655  (eval $ac_try) 2>&5
26656  ac_status=$?
26657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658  (exit $ac_status); }; } &&
26659	 { ac_try='test -s conftest$ac_exeext'
26660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26661  (eval $ac_try) 2>&5
26662  ac_status=$?
26663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664  (exit $ac_status); }; }; then
26665  eval "$as_ac_var=yes"
26666else
26667  echo "$as_me: failed program was:" >&5
26668sed 's/^/| /' conftest.$ac_ext >&5
26669
26670eval "$as_ac_var=no"
26671fi
26672rm -f conftest.err conftest.$ac_objext \
26673      conftest$ac_exeext conftest.$ac_ext
26674fi
26675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26676echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26677if test `eval echo '${'$as_ac_var'}'` = yes; then
26678  cat >>confdefs.h <<_ACEOF
26679#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26680_ACEOF
26681
26682fi
26683done
26684
26685  echo "$as_me:$LINENO: checking whether strerror is declared" >&5
26686echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
26687if test "${ac_cv_have_decl_strerror+set}" = set; then
26688  echo $ECHO_N "(cached) $ECHO_C" >&6
26689else
26690  cat >conftest.$ac_ext <<_ACEOF
26691/* confdefs.h.  */
26692_ACEOF
26693cat confdefs.h >>conftest.$ac_ext
26694cat >>conftest.$ac_ext <<_ACEOF
26695/* end confdefs.h.  */
26696$ac_includes_default
26697int
26698main ()
26699{
26700#ifndef strerror
26701  char *p = (char *) strerror;
26702#endif
26703
26704  ;
26705  return 0;
26706}
26707_ACEOF
26708rm -f conftest.$ac_objext
26709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26710  (eval $ac_compile) 2>conftest.er1
26711  ac_status=$?
26712  grep -v '^ *+' conftest.er1 >conftest.err
26713  rm -f conftest.er1
26714  cat conftest.err >&5
26715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716  (exit $ac_status); } &&
26717	 { ac_try='test -z "$ac_c_werror_flag"
26718			 || test ! -s conftest.err'
26719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26720  (eval $ac_try) 2>&5
26721  ac_status=$?
26722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26723  (exit $ac_status); }; } &&
26724	 { ac_try='test -s conftest.$ac_objext'
26725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26726  (eval $ac_try) 2>&5
26727  ac_status=$?
26728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26729  (exit $ac_status); }; }; then
26730  ac_cv_have_decl_strerror=yes
26731else
26732  echo "$as_me: failed program was:" >&5
26733sed 's/^/| /' conftest.$ac_ext >&5
26734
26735ac_cv_have_decl_strerror=no
26736fi
26737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26738fi
26739echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
26740echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
26741if test $ac_cv_have_decl_strerror = yes; then
26742
26743cat >>confdefs.h <<_ACEOF
26744#define HAVE_DECL_STRERROR 1
26745_ACEOF
26746
26747
26748else
26749  cat >>confdefs.h <<_ACEOF
26750#define HAVE_DECL_STRERROR 0
26751_ACEOF
26752
26753
26754fi
26755
26756
26757  echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
26758echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
26759if test "${ac_cv_have_decl_strerror_r+set}" = set; then
26760  echo $ECHO_N "(cached) $ECHO_C" >&6
26761else
26762  cat >conftest.$ac_ext <<_ACEOF
26763/* confdefs.h.  */
26764_ACEOF
26765cat confdefs.h >>conftest.$ac_ext
26766cat >>conftest.$ac_ext <<_ACEOF
26767/* end confdefs.h.  */
26768$ac_includes_default
26769int
26770main ()
26771{
26772#ifndef strerror_r
26773  char *p = (char *) strerror_r;
26774#endif
26775
26776  ;
26777  return 0;
26778}
26779_ACEOF
26780rm -f conftest.$ac_objext
26781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26782  (eval $ac_compile) 2>conftest.er1
26783  ac_status=$?
26784  grep -v '^ *+' conftest.er1 >conftest.err
26785  rm -f conftest.er1
26786  cat conftest.err >&5
26787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788  (exit $ac_status); } &&
26789	 { ac_try='test -z "$ac_c_werror_flag"
26790			 || test ! -s conftest.err'
26791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26792  (eval $ac_try) 2>&5
26793  ac_status=$?
26794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795  (exit $ac_status); }; } &&
26796	 { ac_try='test -s conftest.$ac_objext'
26797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26798  (eval $ac_try) 2>&5
26799  ac_status=$?
26800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801  (exit $ac_status); }; }; then
26802  ac_cv_have_decl_strerror_r=yes
26803else
26804  echo "$as_me: failed program was:" >&5
26805sed 's/^/| /' conftest.$ac_ext >&5
26806
26807ac_cv_have_decl_strerror_r=no
26808fi
26809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26810fi
26811echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
26812echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
26813if test $ac_cv_have_decl_strerror_r = yes; then
26814
26815cat >>confdefs.h <<_ACEOF
26816#define HAVE_DECL_STRERROR_R 1
26817_ACEOF
26818
26819
26820else
26821  cat >>confdefs.h <<_ACEOF
26822#define HAVE_DECL_STRERROR_R 0
26823_ACEOF
26824
26825
26826fi
26827
26828
26829
26830for ac_func in strerror_r
26831do
26832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26833echo "$as_me:$LINENO: checking for $ac_func" >&5
26834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26835if eval "test \"\${$as_ac_var+set}\" = set"; then
26836  echo $ECHO_N "(cached) $ECHO_C" >&6
26837else
26838  cat >conftest.$ac_ext <<_ACEOF
26839/* confdefs.h.  */
26840_ACEOF
26841cat confdefs.h >>conftest.$ac_ext
26842cat >>conftest.$ac_ext <<_ACEOF
26843/* end confdefs.h.  */
26844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26845   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26846#define $ac_func innocuous_$ac_func
26847
26848/* System header to define __stub macros and hopefully few prototypes,
26849    which can conflict with char $ac_func (); below.
26850    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26851    <limits.h> exists even on freestanding compilers.  */
26852
26853#ifdef __STDC__
26854# include <limits.h>
26855#else
26856# include <assert.h>
26857#endif
26858
26859#undef $ac_func
26860
26861/* Override any gcc2 internal prototype to avoid an error.  */
26862#ifdef __cplusplus
26863extern "C"
26864{
26865#endif
26866/* We use char because int might match the return type of a gcc2
26867   builtin and then its argument prototype would still apply.  */
26868char $ac_func ();
26869/* The GNU C library defines this for functions which it implements
26870    to always fail with ENOSYS.  Some functions are actually named
26871    something starting with __ and the normal name is an alias.  */
26872#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26873choke me
26874#else
26875char (*f) () = $ac_func;
26876#endif
26877#ifdef __cplusplus
26878}
26879#endif
26880
26881int
26882main ()
26883{
26884return f != $ac_func;
26885  ;
26886  return 0;
26887}
26888_ACEOF
26889rm -f conftest.$ac_objext conftest$ac_exeext
26890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26891  (eval $ac_link) 2>conftest.er1
26892  ac_status=$?
26893  grep -v '^ *+' conftest.er1 >conftest.err
26894  rm -f conftest.er1
26895  cat conftest.err >&5
26896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897  (exit $ac_status); } &&
26898	 { ac_try='test -z "$ac_c_werror_flag"
26899			 || test ! -s conftest.err'
26900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26901  (eval $ac_try) 2>&5
26902  ac_status=$?
26903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904  (exit $ac_status); }; } &&
26905	 { ac_try='test -s conftest$ac_exeext'
26906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26907  (eval $ac_try) 2>&5
26908  ac_status=$?
26909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26910  (exit $ac_status); }; }; then
26911  eval "$as_ac_var=yes"
26912else
26913  echo "$as_me: failed program was:" >&5
26914sed 's/^/| /' conftest.$ac_ext >&5
26915
26916eval "$as_ac_var=no"
26917fi
26918rm -f conftest.err conftest.$ac_objext \
26919      conftest$ac_exeext conftest.$ac_ext
26920fi
26921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26922echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26923if test `eval echo '${'$as_ac_var'}'` = yes; then
26924  cat >>confdefs.h <<_ACEOF
26925#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26926_ACEOF
26927
26928fi
26929done
26930
26931echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
26932echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
26933if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
26934  echo $ECHO_N "(cached) $ECHO_C" >&6
26935else
26936
26937    ac_cv_func_strerror_r_char_p=no
26938    if test $ac_cv_have_decl_strerror_r = yes; then
26939      cat >conftest.$ac_ext <<_ACEOF
26940/* confdefs.h.  */
26941_ACEOF
26942cat confdefs.h >>conftest.$ac_ext
26943cat >>conftest.$ac_ext <<_ACEOF
26944/* end confdefs.h.  */
26945$ac_includes_default
26946int
26947main ()
26948{
26949
26950	  char buf[100];
26951	  char x = *strerror_r (0, buf, sizeof buf);
26952	  char *p = strerror_r (0, buf, sizeof buf);
26953
26954  ;
26955  return 0;
26956}
26957_ACEOF
26958rm -f conftest.$ac_objext
26959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26960  (eval $ac_compile) 2>conftest.er1
26961  ac_status=$?
26962  grep -v '^ *+' conftest.er1 >conftest.err
26963  rm -f conftest.er1
26964  cat conftest.err >&5
26965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966  (exit $ac_status); } &&
26967	 { ac_try='test -z "$ac_c_werror_flag"
26968			 || test ! -s conftest.err'
26969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26970  (eval $ac_try) 2>&5
26971  ac_status=$?
26972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973  (exit $ac_status); }; } &&
26974	 { ac_try='test -s conftest.$ac_objext'
26975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26976  (eval $ac_try) 2>&5
26977  ac_status=$?
26978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979  (exit $ac_status); }; }; then
26980  ac_cv_func_strerror_r_char_p=yes
26981else
26982  echo "$as_me: failed program was:" >&5
26983sed 's/^/| /' conftest.$ac_ext >&5
26984
26985fi
26986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26987    else
26988      # strerror_r is not declared.  Choose between
26989      # systems that have relatively inaccessible declarations for the
26990      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
26991      # former has a strerror_r that returns char*, while the latter
26992      # has a strerror_r that returns `int'.
26993      # This test should segfault on the DEC system.
26994      if test "$cross_compiling" = yes; then
26995  :
26996else
26997  cat >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$ac_includes_default
27004	extern char *strerror_r ();
27005int
27006main ()
27007{
27008char buf[100];
27009	  char x = *strerror_r (0, buf, sizeof buf);
27010	  exit (!isalpha (x));
27011  ;
27012  return 0;
27013}
27014_ACEOF
27015rm -f conftest$ac_exeext
27016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27017  (eval $ac_link) 2>&5
27018  ac_status=$?
27019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27022  (eval $ac_try) 2>&5
27023  ac_status=$?
27024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025  (exit $ac_status); }; }; then
27026  ac_cv_func_strerror_r_char_p=yes
27027else
27028  echo "$as_me: program exited with status $ac_status" >&5
27029echo "$as_me: failed program was:" >&5
27030sed 's/^/| /' conftest.$ac_ext >&5
27031
27032fi
27033rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27034fi
27035    fi
27036
27037fi
27038echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
27039echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
27040if test $ac_cv_func_strerror_r_char_p = yes; then
27041
27042cat >>confdefs.h <<\_ACEOF
27043#define STRERROR_R_CHAR_P 1
27044_ACEOF
27045
27046fi
27047
27048
27049  fi
27050
27051
27052
27053  :
27054
27055
27056
27057
27058
27059
27060
27061
27062
27063
27064
27065for ac_header in stdlib.h
27066do
27067as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27068if eval "test \"\${$as_ac_Header+set}\" = set"; then
27069  echo "$as_me:$LINENO: checking for $ac_header" >&5
27070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27071if eval "test \"\${$as_ac_Header+set}\" = set"; then
27072  echo $ECHO_N "(cached) $ECHO_C" >&6
27073fi
27074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27075echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27076else
27077  # Is the header compilable?
27078echo "$as_me:$LINENO: checking $ac_header usability" >&5
27079echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27080cat >conftest.$ac_ext <<_ACEOF
27081/* confdefs.h.  */
27082_ACEOF
27083cat confdefs.h >>conftest.$ac_ext
27084cat >>conftest.$ac_ext <<_ACEOF
27085/* end confdefs.h.  */
27086$ac_includes_default
27087#include <$ac_header>
27088_ACEOF
27089rm -f conftest.$ac_objext
27090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27091  (eval $ac_compile) 2>conftest.er1
27092  ac_status=$?
27093  grep -v '^ *+' conftest.er1 >conftest.err
27094  rm -f conftest.er1
27095  cat conftest.err >&5
27096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097  (exit $ac_status); } &&
27098	 { ac_try='test -z "$ac_c_werror_flag"
27099			 || test ! -s conftest.err'
27100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27101  (eval $ac_try) 2>&5
27102  ac_status=$?
27103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104  (exit $ac_status); }; } &&
27105	 { ac_try='test -s conftest.$ac_objext'
27106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27107  (eval $ac_try) 2>&5
27108  ac_status=$?
27109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27110  (exit $ac_status); }; }; then
27111  ac_header_compiler=yes
27112else
27113  echo "$as_me: failed program was:" >&5
27114sed 's/^/| /' conftest.$ac_ext >&5
27115
27116ac_header_compiler=no
27117fi
27118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27119echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27120echo "${ECHO_T}$ac_header_compiler" >&6
27121
27122# Is the header present?
27123echo "$as_me:$LINENO: checking $ac_header presence" >&5
27124echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27125cat >conftest.$ac_ext <<_ACEOF
27126/* confdefs.h.  */
27127_ACEOF
27128cat confdefs.h >>conftest.$ac_ext
27129cat >>conftest.$ac_ext <<_ACEOF
27130/* end confdefs.h.  */
27131#include <$ac_header>
27132_ACEOF
27133if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27134  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27135  ac_status=$?
27136  grep -v '^ *+' conftest.er1 >conftest.err
27137  rm -f conftest.er1
27138  cat conftest.err >&5
27139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140  (exit $ac_status); } >/dev/null; then
27141  if test -s conftest.err; then
27142    ac_cpp_err=$ac_c_preproc_warn_flag
27143    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27144  else
27145    ac_cpp_err=
27146  fi
27147else
27148  ac_cpp_err=yes
27149fi
27150if test -z "$ac_cpp_err"; then
27151  ac_header_preproc=yes
27152else
27153  echo "$as_me: failed program was:" >&5
27154sed 's/^/| /' conftest.$ac_ext >&5
27155
27156  ac_header_preproc=no
27157fi
27158rm -f conftest.err conftest.$ac_ext
27159echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27160echo "${ECHO_T}$ac_header_preproc" >&6
27161
27162# So?  What about this header?
27163case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27164  yes:no: )
27165    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27166echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27167    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27168echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27169    ac_header_preproc=yes
27170    ;;
27171  no:yes:* )
27172    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27173echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27174    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27175echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27176    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27177echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27178    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27179echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27180    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27181echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27182    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27183echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27184    (
27185      cat <<\_ASBOX
27186## ------------------------------------------ ##
27187## Report this to the AC_PACKAGE_NAME lists.  ##
27188## ------------------------------------------ ##
27189_ASBOX
27190    ) |
27191      sed "s/^/$as_me: WARNING:     /" >&2
27192    ;;
27193esac
27194echo "$as_me:$LINENO: checking for $ac_header" >&5
27195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27196if eval "test \"\${$as_ac_Header+set}\" = set"; then
27197  echo $ECHO_N "(cached) $ECHO_C" >&6
27198else
27199  eval "$as_ac_Header=\$ac_header_preproc"
27200fi
27201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27202echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27203
27204fi
27205if test `eval echo '${'$as_ac_Header'}'` = yes; then
27206  cat >>confdefs.h <<_ACEOF
27207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27208_ACEOF
27209
27210fi
27211
27212done
27213
27214echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
27215echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
27216if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
27217  echo $ECHO_N "(cached) $ECHO_C" >&6
27218else
27219  if test "$cross_compiling" = yes; then
27220  ac_cv_func_malloc_0_nonnull=no
27221else
27222  cat >conftest.$ac_ext <<_ACEOF
27223/* confdefs.h.  */
27224_ACEOF
27225cat confdefs.h >>conftest.$ac_ext
27226cat >>conftest.$ac_ext <<_ACEOF
27227/* end confdefs.h.  */
27228#if STDC_HEADERS || HAVE_STDLIB_H
27229# include <stdlib.h>
27230#else
27231char *malloc ();
27232#endif
27233
27234int
27235main ()
27236{
27237exit (malloc (0) ? 0 : 1);
27238  ;
27239  return 0;
27240}
27241_ACEOF
27242rm -f conftest$ac_exeext
27243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27244  (eval $ac_link) 2>&5
27245  ac_status=$?
27246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27249  (eval $ac_try) 2>&5
27250  ac_status=$?
27251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252  (exit $ac_status); }; }; then
27253  ac_cv_func_malloc_0_nonnull=yes
27254else
27255  echo "$as_me: program exited with status $ac_status" >&5
27256echo "$as_me: failed program was:" >&5
27257sed 's/^/| /' conftest.$ac_ext >&5
27258
27259( exit $ac_status )
27260ac_cv_func_malloc_0_nonnull=no
27261fi
27262rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27263fi
27264fi
27265echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
27266echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
27267if test $ac_cv_func_malloc_0_nonnull = yes; then
27268  gl_cv_func_malloc_0_nonnull=1
27269else
27270  gl_cv_func_malloc_0_nonnull=0
27271fi
27272
27273
27274
27275cat >>confdefs.h <<_ACEOF
27276#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
27277_ACEOF
27278
27279
27280
27281
27282
27283
27284
27285
27286
27287for ac_func in setenv unsetenv
27288do
27289as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27290echo "$as_me:$LINENO: checking for $ac_func" >&5
27291echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27292if eval "test \"\${$as_ac_var+set}\" = set"; then
27293  echo $ECHO_N "(cached) $ECHO_C" >&6
27294else
27295  cat >conftest.$ac_ext <<_ACEOF
27296/* confdefs.h.  */
27297_ACEOF
27298cat confdefs.h >>conftest.$ac_ext
27299cat >>conftest.$ac_ext <<_ACEOF
27300/* end confdefs.h.  */
27301/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27302   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27303#define $ac_func innocuous_$ac_func
27304
27305/* System header to define __stub macros and hopefully few prototypes,
27306    which can conflict with char $ac_func (); below.
27307    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27308    <limits.h> exists even on freestanding compilers.  */
27309
27310#ifdef __STDC__
27311# include <limits.h>
27312#else
27313# include <assert.h>
27314#endif
27315
27316#undef $ac_func
27317
27318/* Override any gcc2 internal prototype to avoid an error.  */
27319#ifdef __cplusplus
27320extern "C"
27321{
27322#endif
27323/* We use char because int might match the return type of a gcc2
27324   builtin and then its argument prototype would still apply.  */
27325char $ac_func ();
27326/* The GNU C library defines this for functions which it implements
27327    to always fail with ENOSYS.  Some functions are actually named
27328    something starting with __ and the normal name is an alias.  */
27329#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27330choke me
27331#else
27332char (*f) () = $ac_func;
27333#endif
27334#ifdef __cplusplus
27335}
27336#endif
27337
27338int
27339main ()
27340{
27341return f != $ac_func;
27342  ;
27343  return 0;
27344}
27345_ACEOF
27346rm -f conftest.$ac_objext conftest$ac_exeext
27347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27348  (eval $ac_link) 2>conftest.er1
27349  ac_status=$?
27350  grep -v '^ *+' conftest.er1 >conftest.err
27351  rm -f conftest.er1
27352  cat conftest.err >&5
27353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354  (exit $ac_status); } &&
27355	 { ac_try='test -z "$ac_c_werror_flag"
27356			 || test ! -s conftest.err'
27357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27358  (eval $ac_try) 2>&5
27359  ac_status=$?
27360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361  (exit $ac_status); }; } &&
27362	 { ac_try='test -s conftest$ac_exeext'
27363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27364  (eval $ac_try) 2>&5
27365  ac_status=$?
27366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367  (exit $ac_status); }; }; then
27368  eval "$as_ac_var=yes"
27369else
27370  echo "$as_me: failed program was:" >&5
27371sed 's/^/| /' conftest.$ac_ext >&5
27372
27373eval "$as_ac_var=no"
27374fi
27375rm -f conftest.err conftest.$ac_objext \
27376      conftest$ac_exeext conftest.$ac_ext
27377fi
27378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27379echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27380if test `eval echo '${'$as_ac_var'}'` = yes; then
27381  cat >>confdefs.h <<_ACEOF
27382#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27383_ACEOF
27384
27385else
27386  case $LIBOBJS in
27387    "$ac_func.$ac_objext"   | \
27388  *" $ac_func.$ac_objext"   | \
27389    "$ac_func.$ac_objext "* | \
27390  *" $ac_func.$ac_objext "* ) ;;
27391  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
27392esac
27393
27394fi
27395done
27396
27397
27398  if test $ac_cv_func_setenv = no; then
27399
27400
27401
27402  :
27403
27404
27405
27406
27407
27408
27409
27410
27411
27412
27413
27414
27415for ac_header in search.h
27416do
27417as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27418if eval "test \"\${$as_ac_Header+set}\" = set"; then
27419  echo "$as_me:$LINENO: checking for $ac_header" >&5
27420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27421if eval "test \"\${$as_ac_Header+set}\" = set"; then
27422  echo $ECHO_N "(cached) $ECHO_C" >&6
27423fi
27424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27425echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27426else
27427  # Is the header compilable?
27428echo "$as_me:$LINENO: checking $ac_header usability" >&5
27429echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27430cat >conftest.$ac_ext <<_ACEOF
27431/* confdefs.h.  */
27432_ACEOF
27433cat confdefs.h >>conftest.$ac_ext
27434cat >>conftest.$ac_ext <<_ACEOF
27435/* end confdefs.h.  */
27436$ac_includes_default
27437#include <$ac_header>
27438_ACEOF
27439rm -f conftest.$ac_objext
27440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27441  (eval $ac_compile) 2>conftest.er1
27442  ac_status=$?
27443  grep -v '^ *+' conftest.er1 >conftest.err
27444  rm -f conftest.er1
27445  cat conftest.err >&5
27446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447  (exit $ac_status); } &&
27448	 { ac_try='test -z "$ac_c_werror_flag"
27449			 || test ! -s conftest.err'
27450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27451  (eval $ac_try) 2>&5
27452  ac_status=$?
27453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454  (exit $ac_status); }; } &&
27455	 { ac_try='test -s conftest.$ac_objext'
27456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27457  (eval $ac_try) 2>&5
27458  ac_status=$?
27459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460  (exit $ac_status); }; }; then
27461  ac_header_compiler=yes
27462else
27463  echo "$as_me: failed program was:" >&5
27464sed 's/^/| /' conftest.$ac_ext >&5
27465
27466ac_header_compiler=no
27467fi
27468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27469echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27470echo "${ECHO_T}$ac_header_compiler" >&6
27471
27472# Is the header present?
27473echo "$as_me:$LINENO: checking $ac_header presence" >&5
27474echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27475cat >conftest.$ac_ext <<_ACEOF
27476/* confdefs.h.  */
27477_ACEOF
27478cat confdefs.h >>conftest.$ac_ext
27479cat >>conftest.$ac_ext <<_ACEOF
27480/* end confdefs.h.  */
27481#include <$ac_header>
27482_ACEOF
27483if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27484  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27485  ac_status=$?
27486  grep -v '^ *+' conftest.er1 >conftest.err
27487  rm -f conftest.er1
27488  cat conftest.err >&5
27489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490  (exit $ac_status); } >/dev/null; then
27491  if test -s conftest.err; then
27492    ac_cpp_err=$ac_c_preproc_warn_flag
27493    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27494  else
27495    ac_cpp_err=
27496  fi
27497else
27498  ac_cpp_err=yes
27499fi
27500if test -z "$ac_cpp_err"; then
27501  ac_header_preproc=yes
27502else
27503  echo "$as_me: failed program was:" >&5
27504sed 's/^/| /' conftest.$ac_ext >&5
27505
27506  ac_header_preproc=no
27507fi
27508rm -f conftest.err conftest.$ac_ext
27509echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27510echo "${ECHO_T}$ac_header_preproc" >&6
27511
27512# So?  What about this header?
27513case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27514  yes:no: )
27515    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27516echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27517    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27518echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27519    ac_header_preproc=yes
27520    ;;
27521  no:yes:* )
27522    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27523echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27524    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27525echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27526    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27527echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27528    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27529echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27530    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27531echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27532    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27533echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27534    (
27535      cat <<\_ASBOX
27536## ------------------------------------------ ##
27537## Report this to the AC_PACKAGE_NAME lists.  ##
27538## ------------------------------------------ ##
27539_ASBOX
27540    ) |
27541      sed "s/^/$as_me: WARNING:     /" >&2
27542    ;;
27543esac
27544echo "$as_me:$LINENO: checking for $ac_header" >&5
27545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27546if eval "test \"\${$as_ac_Header+set}\" = set"; then
27547  echo $ECHO_N "(cached) $ECHO_C" >&6
27548else
27549  eval "$as_ac_Header=\$ac_header_preproc"
27550fi
27551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27552echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27553
27554fi
27555if test `eval echo '${'$as_ac_Header'}'` = yes; then
27556  cat >>confdefs.h <<_ACEOF
27557#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27558_ACEOF
27559
27560fi
27561
27562done
27563
27564
27565for ac_func in tsearch
27566do
27567as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27568echo "$as_me:$LINENO: checking for $ac_func" >&5
27569echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27570if eval "test \"\${$as_ac_var+set}\" = set"; then
27571  echo $ECHO_N "(cached) $ECHO_C" >&6
27572else
27573  cat >conftest.$ac_ext <<_ACEOF
27574/* confdefs.h.  */
27575_ACEOF
27576cat confdefs.h >>conftest.$ac_ext
27577cat >>conftest.$ac_ext <<_ACEOF
27578/* end confdefs.h.  */
27579/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27580   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27581#define $ac_func innocuous_$ac_func
27582
27583/* System header to define __stub macros and hopefully few prototypes,
27584    which can conflict with char $ac_func (); below.
27585    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27586    <limits.h> exists even on freestanding compilers.  */
27587
27588#ifdef __STDC__
27589# include <limits.h>
27590#else
27591# include <assert.h>
27592#endif
27593
27594#undef $ac_func
27595
27596/* Override any gcc2 internal prototype to avoid an error.  */
27597#ifdef __cplusplus
27598extern "C"
27599{
27600#endif
27601/* We use char because int might match the return type of a gcc2
27602   builtin and then its argument prototype would still apply.  */
27603char $ac_func ();
27604/* The GNU C library defines this for functions which it implements
27605    to always fail with ENOSYS.  Some functions are actually named
27606    something starting with __ and the normal name is an alias.  */
27607#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27608choke me
27609#else
27610char (*f) () = $ac_func;
27611#endif
27612#ifdef __cplusplus
27613}
27614#endif
27615
27616int
27617main ()
27618{
27619return f != $ac_func;
27620  ;
27621  return 0;
27622}
27623_ACEOF
27624rm -f conftest.$ac_objext conftest$ac_exeext
27625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27626  (eval $ac_link) 2>conftest.er1
27627  ac_status=$?
27628  grep -v '^ *+' conftest.er1 >conftest.err
27629  rm -f conftest.er1
27630  cat conftest.err >&5
27631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632  (exit $ac_status); } &&
27633	 { ac_try='test -z "$ac_c_werror_flag"
27634			 || test ! -s conftest.err'
27635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27636  (eval $ac_try) 2>&5
27637  ac_status=$?
27638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639  (exit $ac_status); }; } &&
27640	 { ac_try='test -s conftest$ac_exeext'
27641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27642  (eval $ac_try) 2>&5
27643  ac_status=$?
27644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645  (exit $ac_status); }; }; then
27646  eval "$as_ac_var=yes"
27647else
27648  echo "$as_me: failed program was:" >&5
27649sed 's/^/| /' conftest.$ac_ext >&5
27650
27651eval "$as_ac_var=no"
27652fi
27653rm -f conftest.err conftest.$ac_objext \
27654      conftest$ac_exeext conftest.$ac_ext
27655fi
27656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27657echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27658if test `eval echo '${'$as_ac_var'}'` = yes; then
27659  cat >>confdefs.h <<_ACEOF
27660#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27661_ACEOF
27662
27663fi
27664done
27665
27666
27667
27668  echo "$as_me:$LINENO: checking if errno is properly declared" >&5
27669echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
27670  if test "${gt_cv_var_errno_declaration+set}" = set; then
27671  echo $ECHO_N "(cached) $ECHO_C" >&6
27672else
27673
27674    cat >conftest.$ac_ext <<_ACEOF
27675/* confdefs.h.  */
27676_ACEOF
27677cat confdefs.h >>conftest.$ac_ext
27678cat >>conftest.$ac_ext <<_ACEOF
27679/* end confdefs.h.  */
27680#include <errno.h>
27681      extern struct { int foo; } errno;
27682int
27683main ()
27684{
27685errno.foo = 1;
27686  ;
27687  return 0;
27688}
27689_ACEOF
27690rm -f conftest.$ac_objext
27691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27692  (eval $ac_compile) 2>conftest.er1
27693  ac_status=$?
27694  grep -v '^ *+' conftest.er1 >conftest.err
27695  rm -f conftest.er1
27696  cat conftest.err >&5
27697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27698  (exit $ac_status); } &&
27699	 { ac_try='test -z "$ac_c_werror_flag"
27700			 || test ! -s conftest.err'
27701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27702  (eval $ac_try) 2>&5
27703  ac_status=$?
27704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705  (exit $ac_status); }; } &&
27706	 { ac_try='test -s conftest.$ac_objext'
27707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27708  (eval $ac_try) 2>&5
27709  ac_status=$?
27710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711  (exit $ac_status); }; }; then
27712  gt_cv_var_errno_declaration=no
27713else
27714  echo "$as_me: failed program was:" >&5
27715sed 's/^/| /' conftest.$ac_ext >&5
27716
27717gt_cv_var_errno_declaration=yes
27718fi
27719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27720fi
27721
27722  echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
27723echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
27724  if test $gt_cv_var_errno_declaration = yes; then
27725
27726cat >>confdefs.h <<\_ACEOF
27727#define HAVE_ERRNO_DECL 1
27728_ACEOF
27729
27730  fi
27731
27732
27733
27734  echo "$as_me:$LINENO: checking if environ is properly declared" >&5
27735echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
27736  if test "${gt_cv_var_environ_declaration+set}" = set; then
27737  echo $ECHO_N "(cached) $ECHO_C" >&6
27738else
27739
27740    cat >conftest.$ac_ext <<_ACEOF
27741/* confdefs.h.  */
27742_ACEOF
27743cat confdefs.h >>conftest.$ac_ext
27744cat >>conftest.$ac_ext <<_ACEOF
27745/* end confdefs.h.  */
27746#include <unistd.h>
27747      extern struct { int foo; } environ;
27748int
27749main ()
27750{
27751environ.foo = 1;
27752  ;
27753  return 0;
27754}
27755_ACEOF
27756rm -f conftest.$ac_objext
27757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27758  (eval $ac_compile) 2>conftest.er1
27759  ac_status=$?
27760  grep -v '^ *+' conftest.er1 >conftest.err
27761  rm -f conftest.er1
27762  cat conftest.err >&5
27763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764  (exit $ac_status); } &&
27765	 { ac_try='test -z "$ac_c_werror_flag"
27766			 || test ! -s conftest.err'
27767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27768  (eval $ac_try) 2>&5
27769  ac_status=$?
27770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771  (exit $ac_status); }; } &&
27772	 { ac_try='test -s conftest.$ac_objext'
27773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27774  (eval $ac_try) 2>&5
27775  ac_status=$?
27776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777  (exit $ac_status); }; }; then
27778  gt_cv_var_environ_declaration=no
27779else
27780  echo "$as_me: failed program was:" >&5
27781sed 's/^/| /' conftest.$ac_ext >&5
27782
27783gt_cv_var_environ_declaration=yes
27784fi
27785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27786fi
27787
27788  echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
27789echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
27790  if test $gt_cv_var_environ_declaration = yes; then
27791
27792cat >>confdefs.h <<\_ACEOF
27793#define HAVE_ENVIRON_DECL 1
27794_ACEOF
27795
27796  fi
27797
27798
27799  fi
27800  if test $ac_cv_func_unsetenv = no; then
27801
27802
27803  :
27804
27805
27806
27807
27808
27809
27810
27811
27812
27813
27814
27815
27816
27817  echo "$as_me:$LINENO: checking if errno is properly declared" >&5
27818echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
27819  if test "${gt_cv_var_errno_declaration+set}" = set; then
27820  echo $ECHO_N "(cached) $ECHO_C" >&6
27821else
27822
27823    cat >conftest.$ac_ext <<_ACEOF
27824/* confdefs.h.  */
27825_ACEOF
27826cat confdefs.h >>conftest.$ac_ext
27827cat >>conftest.$ac_ext <<_ACEOF
27828/* end confdefs.h.  */
27829#include <errno.h>
27830      extern struct { int foo; } errno;
27831int
27832main ()
27833{
27834errno.foo = 1;
27835  ;
27836  return 0;
27837}
27838_ACEOF
27839rm -f conftest.$ac_objext
27840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27841  (eval $ac_compile) 2>conftest.er1
27842  ac_status=$?
27843  grep -v '^ *+' conftest.er1 >conftest.err
27844  rm -f conftest.er1
27845  cat conftest.err >&5
27846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847  (exit $ac_status); } &&
27848	 { ac_try='test -z "$ac_c_werror_flag"
27849			 || test ! -s conftest.err'
27850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27851  (eval $ac_try) 2>&5
27852  ac_status=$?
27853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854  (exit $ac_status); }; } &&
27855	 { ac_try='test -s conftest.$ac_objext'
27856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27857  (eval $ac_try) 2>&5
27858  ac_status=$?
27859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860  (exit $ac_status); }; }; then
27861  gt_cv_var_errno_declaration=no
27862else
27863  echo "$as_me: failed program was:" >&5
27864sed 's/^/| /' conftest.$ac_ext >&5
27865
27866gt_cv_var_errno_declaration=yes
27867fi
27868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27869fi
27870
27871  echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
27872echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
27873  if test $gt_cv_var_errno_declaration = yes; then
27874
27875cat >>confdefs.h <<\_ACEOF
27876#define HAVE_ERRNO_DECL 1
27877_ACEOF
27878
27879  fi
27880
27881
27882
27883  echo "$as_me:$LINENO: checking if environ is properly declared" >&5
27884echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
27885  if test "${gt_cv_var_environ_declaration+set}" = set; then
27886  echo $ECHO_N "(cached) $ECHO_C" >&6
27887else
27888
27889    cat >conftest.$ac_ext <<_ACEOF
27890/* confdefs.h.  */
27891_ACEOF
27892cat confdefs.h >>conftest.$ac_ext
27893cat >>conftest.$ac_ext <<_ACEOF
27894/* end confdefs.h.  */
27895#include <unistd.h>
27896      extern struct { int foo; } environ;
27897int
27898main ()
27899{
27900environ.foo = 1;
27901  ;
27902  return 0;
27903}
27904_ACEOF
27905rm -f conftest.$ac_objext
27906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27907  (eval $ac_compile) 2>conftest.er1
27908  ac_status=$?
27909  grep -v '^ *+' conftest.er1 >conftest.err
27910  rm -f conftest.er1
27911  cat conftest.err >&5
27912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27913  (exit $ac_status); } &&
27914	 { ac_try='test -z "$ac_c_werror_flag"
27915			 || test ! -s conftest.err'
27916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27917  (eval $ac_try) 2>&5
27918  ac_status=$?
27919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920  (exit $ac_status); }; } &&
27921	 { ac_try='test -s conftest.$ac_objext'
27922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27923  (eval $ac_try) 2>&5
27924  ac_status=$?
27925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926  (exit $ac_status); }; }; then
27927  gt_cv_var_environ_declaration=no
27928else
27929  echo "$as_me: failed program was:" >&5
27930sed 's/^/| /' conftest.$ac_ext >&5
27931
27932gt_cv_var_environ_declaration=yes
27933fi
27934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27935fi
27936
27937  echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
27938echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
27939  if test $gt_cv_var_environ_declaration = yes; then
27940
27941cat >>confdefs.h <<\_ACEOF
27942#define HAVE_ENVIRON_DECL 1
27943_ACEOF
27944
27945  fi
27946
27947
27948  fi
27949
27950echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
27951echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
27952if test "${ac_cv_header_stdbool_h+set}" = set; then
27953  echo $ECHO_N "(cached) $ECHO_C" >&6
27954else
27955  cat >conftest.$ac_ext <<_ACEOF
27956/* confdefs.h.  */
27957_ACEOF
27958cat confdefs.h >>conftest.$ac_ext
27959cat >>conftest.$ac_ext <<_ACEOF
27960/* end confdefs.h.  */
27961
27962#include <stdbool.h>
27963#ifndef bool
27964# error bool is not defined
27965#endif
27966#ifndef false
27967# error false is not defined
27968#endif
27969#if false
27970# error false is not 0
27971#endif
27972#ifndef true
27973# error true is not defined
27974#endif
27975#if true != 1
27976# error true is not 1
27977#endif
27978#ifndef __bool_true_false_are_defined
27979# error __bool_true_false_are_defined is not defined
27980#endif
27981
27982	struct s { _Bool s: 1; _Bool t; } s;
27983
27984	char a[true == 1 ? 1 : -1];
27985	char b[false == 0 ? 1 : -1];
27986	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
27987	char d[(bool) -0.5 == true ? 1 : -1];
27988	bool e = &s;
27989	char f[(_Bool) -0.0 == false ? 1 : -1];
27990	char g[true];
27991	char h[sizeof (_Bool)];
27992	char i[sizeof s.t];
27993
27994int
27995main ()
27996{
27997 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
27998  ;
27999  return 0;
28000}
28001_ACEOF
28002rm -f conftest.$ac_objext
28003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28004  (eval $ac_compile) 2>conftest.er1
28005  ac_status=$?
28006  grep -v '^ *+' conftest.er1 >conftest.err
28007  rm -f conftest.er1
28008  cat conftest.err >&5
28009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010  (exit $ac_status); } &&
28011	 { ac_try='test -z "$ac_c_werror_flag"
28012			 || test ! -s conftest.err'
28013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28014  (eval $ac_try) 2>&5
28015  ac_status=$?
28016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017  (exit $ac_status); }; } &&
28018	 { ac_try='test -s conftest.$ac_objext'
28019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28020  (eval $ac_try) 2>&5
28021  ac_status=$?
28022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023  (exit $ac_status); }; }; then
28024  ac_cv_header_stdbool_h=yes
28025else
28026  echo "$as_me: failed program was:" >&5
28027sed 's/^/| /' conftest.$ac_ext >&5
28028
28029ac_cv_header_stdbool_h=no
28030fi
28031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28032fi
28033echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
28034echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
28035echo "$as_me:$LINENO: checking for _Bool" >&5
28036echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
28037if test "${ac_cv_type__Bool+set}" = set; then
28038  echo $ECHO_N "(cached) $ECHO_C" >&6
28039else
28040  cat >conftest.$ac_ext <<_ACEOF
28041/* confdefs.h.  */
28042_ACEOF
28043cat confdefs.h >>conftest.$ac_ext
28044cat >>conftest.$ac_ext <<_ACEOF
28045/* end confdefs.h.  */
28046$ac_includes_default
28047int
28048main ()
28049{
28050if ((_Bool *) 0)
28051  return 0;
28052if (sizeof (_Bool))
28053  return 0;
28054  ;
28055  return 0;
28056}
28057_ACEOF
28058rm -f conftest.$ac_objext
28059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28060  (eval $ac_compile) 2>conftest.er1
28061  ac_status=$?
28062  grep -v '^ *+' conftest.er1 >conftest.err
28063  rm -f conftest.er1
28064  cat conftest.err >&5
28065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066  (exit $ac_status); } &&
28067	 { ac_try='test -z "$ac_c_werror_flag"
28068			 || test ! -s conftest.err'
28069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28070  (eval $ac_try) 2>&5
28071  ac_status=$?
28072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073  (exit $ac_status); }; } &&
28074	 { ac_try='test -s conftest.$ac_objext'
28075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28076  (eval $ac_try) 2>&5
28077  ac_status=$?
28078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079  (exit $ac_status); }; }; then
28080  ac_cv_type__Bool=yes
28081else
28082  echo "$as_me: failed program was:" >&5
28083sed 's/^/| /' conftest.$ac_ext >&5
28084
28085ac_cv_type__Bool=no
28086fi
28087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28088fi
28089echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
28090echo "${ECHO_T}$ac_cv_type__Bool" >&6
28091if test $ac_cv_type__Bool = yes; then
28092
28093cat >>confdefs.h <<_ACEOF
28094#define HAVE__BOOL 1
28095_ACEOF
28096
28097
28098fi
28099
28100if test $ac_cv_header_stdbool_h = yes; then
28101
28102cat >>confdefs.h <<\_ACEOF
28103#define HAVE_STDBOOL_H 1
28104_ACEOF
28105
28106fi
28107
28108
28109
28110
28111  # Define two additional variables used in the Makefile substitution.
28112
28113  if test "$ac_cv_header_stdbool_h" = yes; then
28114    STDBOOL_H=''
28115  else
28116    STDBOOL_H='stdbool.h'
28117  fi
28118
28119
28120  if test "$ac_cv_type__Bool" = yes; then
28121    HAVE__BOOL=1
28122  else
28123    HAVE__BOOL=0
28124  fi
28125
28126
28127
28128
28129for ac_func in strerror
28130do
28131as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28132echo "$as_me:$LINENO: checking for $ac_func" >&5
28133echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28134if eval "test \"\${$as_ac_var+set}\" = set"; then
28135  echo $ECHO_N "(cached) $ECHO_C" >&6
28136else
28137  cat >conftest.$ac_ext <<_ACEOF
28138/* confdefs.h.  */
28139_ACEOF
28140cat confdefs.h >>conftest.$ac_ext
28141cat >>conftest.$ac_ext <<_ACEOF
28142/* end confdefs.h.  */
28143/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28144   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28145#define $ac_func innocuous_$ac_func
28146
28147/* System header to define __stub macros and hopefully few prototypes,
28148    which can conflict with char $ac_func (); below.
28149    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28150    <limits.h> exists even on freestanding compilers.  */
28151
28152#ifdef __STDC__
28153# include <limits.h>
28154#else
28155# include <assert.h>
28156#endif
28157
28158#undef $ac_func
28159
28160/* Override any gcc2 internal prototype to avoid an error.  */
28161#ifdef __cplusplus
28162extern "C"
28163{
28164#endif
28165/* We use char because int might match the return type of a gcc2
28166   builtin and then its argument prototype would still apply.  */
28167char $ac_func ();
28168/* The GNU C library defines this for functions which it implements
28169    to always fail with ENOSYS.  Some functions are actually named
28170    something starting with __ and the normal name is an alias.  */
28171#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28172choke me
28173#else
28174char (*f) () = $ac_func;
28175#endif
28176#ifdef __cplusplus
28177}
28178#endif
28179
28180int
28181main ()
28182{
28183return f != $ac_func;
28184  ;
28185  return 0;
28186}
28187_ACEOF
28188rm -f conftest.$ac_objext conftest$ac_exeext
28189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28190  (eval $ac_link) 2>conftest.er1
28191  ac_status=$?
28192  grep -v '^ *+' conftest.er1 >conftest.err
28193  rm -f conftest.er1
28194  cat conftest.err >&5
28195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196  (exit $ac_status); } &&
28197	 { ac_try='test -z "$ac_c_werror_flag"
28198			 || test ! -s conftest.err'
28199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28200  (eval $ac_try) 2>&5
28201  ac_status=$?
28202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203  (exit $ac_status); }; } &&
28204	 { ac_try='test -s conftest$ac_exeext'
28205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28206  (eval $ac_try) 2>&5
28207  ac_status=$?
28208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209  (exit $ac_status); }; }; then
28210  eval "$as_ac_var=yes"
28211else
28212  echo "$as_me: failed program was:" >&5
28213sed 's/^/| /' conftest.$ac_ext >&5
28214
28215eval "$as_ac_var=no"
28216fi
28217rm -f conftest.err conftest.$ac_objext \
28218      conftest$ac_exeext conftest.$ac_ext
28219fi
28220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28221echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28222if test `eval echo '${'$as_ac_var'}'` = yes; then
28223  cat >>confdefs.h <<_ACEOF
28224#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28225_ACEOF
28226
28227else
28228  case $LIBOBJS in
28229    "$ac_func.$ac_objext"   | \
28230  *" $ac_func.$ac_objext"   | \
28231    "$ac_func.$ac_objext "* | \
28232  *" $ac_func.$ac_objext "* ) ;;
28233  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
28234esac
28235
28236fi
28237done
28238
28239
28240  if test $ac_cv_func_strerror = no; then
28241
28242  :
28243
28244  fi
28245
28246
28247
28248for ac_func in readlink
28249do
28250as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28251echo "$as_me:$LINENO: checking for $ac_func" >&5
28252echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28253if eval "test \"\${$as_ac_var+set}\" = set"; then
28254  echo $ECHO_N "(cached) $ECHO_C" >&6
28255else
28256  cat >conftest.$ac_ext <<_ACEOF
28257/* confdefs.h.  */
28258_ACEOF
28259cat confdefs.h >>conftest.$ac_ext
28260cat >>conftest.$ac_ext <<_ACEOF
28261/* end confdefs.h.  */
28262/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28263   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28264#define $ac_func innocuous_$ac_func
28265
28266/* System header to define __stub macros and hopefully few prototypes,
28267    which can conflict with char $ac_func (); below.
28268    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28269    <limits.h> exists even on freestanding compilers.  */
28270
28271#ifdef __STDC__
28272# include <limits.h>
28273#else
28274# include <assert.h>
28275#endif
28276
28277#undef $ac_func
28278
28279/* Override any gcc2 internal prototype to avoid an error.  */
28280#ifdef __cplusplus
28281extern "C"
28282{
28283#endif
28284/* We use char because int might match the return type of a gcc2
28285   builtin and then its argument prototype would still apply.  */
28286char $ac_func ();
28287/* The GNU C library defines this for functions which it implements
28288    to always fail with ENOSYS.  Some functions are actually named
28289    something starting with __ and the normal name is an alias.  */
28290#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28291choke me
28292#else
28293char (*f) () = $ac_func;
28294#endif
28295#ifdef __cplusplus
28296}
28297#endif
28298
28299int
28300main ()
28301{
28302return f != $ac_func;
28303  ;
28304  return 0;
28305}
28306_ACEOF
28307rm -f conftest.$ac_objext conftest$ac_exeext
28308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28309  (eval $ac_link) 2>conftest.er1
28310  ac_status=$?
28311  grep -v '^ *+' conftest.er1 >conftest.err
28312  rm -f conftest.er1
28313  cat conftest.err >&5
28314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315  (exit $ac_status); } &&
28316	 { ac_try='test -z "$ac_c_werror_flag"
28317			 || test ! -s conftest.err'
28318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28319  (eval $ac_try) 2>&5
28320  ac_status=$?
28321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322  (exit $ac_status); }; } &&
28323	 { ac_try='test -s conftest$ac_exeext'
28324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28325  (eval $ac_try) 2>&5
28326  ac_status=$?
28327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28328  (exit $ac_status); }; }; then
28329  eval "$as_ac_var=yes"
28330else
28331  echo "$as_me: failed program was:" >&5
28332sed 's/^/| /' conftest.$ac_ext >&5
28333
28334eval "$as_ac_var=no"
28335fi
28336rm -f conftest.err conftest.$ac_objext \
28337      conftest$ac_exeext conftest.$ac_ext
28338fi
28339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28340echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28341if test `eval echo '${'$as_ac_var'}'` = yes; then
28342  cat >>confdefs.h <<_ACEOF
28343#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28344_ACEOF
28345
28346fi
28347done
28348
28349  if test $ac_cv_func_readlink = no; then
28350    case $LIBOBJS in
28351    "readlink.$ac_objext"   | \
28352  *" readlink.$ac_objext"   | \
28353    "readlink.$ac_objext "* | \
28354  *" readlink.$ac_objext "* ) ;;
28355  *) LIBOBJS="$LIBOBJS readlink.$ac_objext" ;;
28356esac
28357
28358
28359  :
28360
28361  fi
28362
28363
28364  echo "$as_me:$LINENO: checking for ssize_t" >&5
28365echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
28366if test "${gt_cv_ssize_t+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#include <sys/types.h>
28376int
28377main ()
28378{
28379int x = sizeof (ssize_t *) + sizeof (ssize_t);
28380  ;
28381  return 0;
28382}
28383_ACEOF
28384rm -f conftest.$ac_objext
28385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28386  (eval $ac_compile) 2>conftest.er1
28387  ac_status=$?
28388  grep -v '^ *+' conftest.er1 >conftest.err
28389  rm -f conftest.er1
28390  cat conftest.err >&5
28391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392  (exit $ac_status); } &&
28393	 { ac_try='test -z "$ac_c_werror_flag"
28394			 || test ! -s conftest.err'
28395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28396  (eval $ac_try) 2>&5
28397  ac_status=$?
28398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399  (exit $ac_status); }; } &&
28400	 { ac_try='test -s conftest.$ac_objext'
28401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28402  (eval $ac_try) 2>&5
28403  ac_status=$?
28404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405  (exit $ac_status); }; }; then
28406  gt_cv_ssize_t=yes
28407else
28408  echo "$as_me: failed program was:" >&5
28409sed 's/^/| /' conftest.$ac_ext >&5
28410
28411gt_cv_ssize_t=no
28412fi
28413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28414fi
28415echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
28416echo "${ECHO_T}$gt_cv_ssize_t" >&6
28417  if test $gt_cv_ssize_t = no; then
28418
28419cat >>confdefs.h <<\_ACEOF
28420#define ssize_t int
28421_ACEOF
28422
28423  fi
28424
28425
28426
28427
28428  :
28429
28430
28431
28432
28433
28434
28435
28436
28437
28438
28439
28440OS=""
28441case "$host_os" in
28442  linux*)   OS="linux" ;;
28443  solaris*) OS="solaris" ;;
28444  osf*)     OS="osf" ;;
28445esac
28446if test -n "$OS"; then
28447
28448
28449  PLUGLIB="preloadable_libiconv.so"
28450else
28451  PLUGLIB=""
28452fi
28453
28454
28455
28456
28457
28458if test -d "${srcdir}/tests"; then
28459  TESTS_MAKEFILE=tests/Makefile
28460else
28461  TESTS_MAKEFILE=""
28462fi
28463
28464
28465subdirs="$subdirs libcharset"
28466
28467                                                                                ac_config_files="$ac_config_files Makefile lib/Makefile srclib/Makefile src/Makefile po/Makefile.in man/Makefile ${TESTS_MAKEFILE} include/iconv.h"
28468cat >confcache <<\_ACEOF
28469# This file is a shell script that caches the results of configure
28470# tests run on this system so they can be shared between configure
28471# scripts and configure runs, see configure's option --config-cache.
28472# It is not useful on other systems.  If it contains results you don't
28473# want to keep, you may remove or edit it.
28474#
28475# config.status only pays attention to the cache file if you give it
28476# the --recheck option to rerun configure.
28477#
28478# `ac_cv_env_foo' variables (set or unset) will be overridden when
28479# loading this file, other *unset* `ac_cv_foo' will be assigned the
28480# following values.
28481
28482_ACEOF
28483
28484# The following way of writing the cache mishandles newlines in values,
28485# but we know of no workaround that is simple, portable, and efficient.
28486# So, don't put newlines in cache variables' values.
28487# Ultrix sh set writes to stderr and can't be redirected directly,
28488# and sets the high bit in the cache file unless we assign to the vars.
28489{
28490  (set) 2>&1 |
28491    case `(ac_space=' '; set | grep ac_space) 2>&1` in
28492    *ac_space=\ *)
28493      # `set' does not quote correctly, so add quotes (double-quote
28494      # substitution turns \\\\ into \\, and sed turns \\ into \).
28495      sed -n \
28496	"s/'/'\\\\''/g;
28497	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28498      ;;
28499    *)
28500      # `set' quotes correctly as required by POSIX, so do not add quotes.
28501      sed -n \
28502	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28503      ;;
28504    esac;
28505} |
28506  sed '
28507     t clear
28508     : clear
28509     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28510     t end
28511     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28512     : end' >>confcache
28513if diff $cache_file confcache >/dev/null 2>&1; then :; else
28514  if test -w $cache_file; then
28515    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28516    cat confcache >$cache_file
28517  else
28518    echo "not updating unwritable cache $cache_file"
28519  fi
28520fi
28521rm -f confcache
28522
28523test "x$prefix" = xNONE && prefix=$ac_default_prefix
28524# Let make expand exec_prefix.
28525test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28526
28527# VPATH may cause trouble with some makes, so we remove $(srcdir),
28528# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28529# trailing colons and then remove the whole line if VPATH becomes empty
28530# (actually we leave an empty line to preserve line numbers).
28531if test "x$srcdir" = x.; then
28532  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
28533s/:*\$(srcdir):*/:/;
28534s/:*\${srcdir}:*/:/;
28535s/:*@srcdir@:*/:/;
28536s/^\([^=]*=[	 ]*\):*/\1/;
28537s/:*$//;
28538s/^[^=]*=[	 ]*$//;
28539}'
28540fi
28541
28542DEFS=-DHAVE_CONFIG_H
28543
28544ac_libobjs=
28545ac_ltlibobjs=
28546for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28547  # 1. Remove the extension, and $U if already installed.
28548  ac_i=`echo "$ac_i" |
28549	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28550  # 2. Add them.
28551  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28552  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28553done
28554LIBOBJS=$ac_libobjs
28555
28556LTLIBOBJS=$ac_ltlibobjs
28557
28558
28559if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28560  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28561Usually this means the macro was only invoked conditionally." >&5
28562echo "$as_me: error: conditional \"AMDEP\" was never defined.
28563Usually this means the macro was only invoked conditionally." >&2;}
28564   { (exit 1); exit 1; }; }
28565fi
28566if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28567  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28568Usually this means the macro was only invoked conditionally." >&5
28569echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28570Usually this means the macro was only invoked conditionally." >&2;}
28571   { (exit 1); exit 1; }; }
28572fi
28573if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
28574  { { echo "$as_me:$LINENO: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
28575Usually this means the macro was only invoked conditionally." >&5
28576echo "$as_me: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
28577Usually this means the macro was only invoked conditionally." >&2;}
28578   { (exit 1); exit 1; }; }
28579fi
28580if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28581  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28582Usually this means the macro was only invoked conditionally." >&5
28583echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28584Usually this means the macro was only invoked conditionally." >&2;}
28585   { (exit 1); exit 1; }; }
28586fi
28587
28588: ${CONFIG_STATUS=./config.status}
28589ac_clean_files_save=$ac_clean_files
28590ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28591{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28592echo "$as_me: creating $CONFIG_STATUS" >&6;}
28593cat >$CONFIG_STATUS <<_ACEOF
28594#! $SHELL
28595# Generated by $as_me.
28596# Run this file to recreate the current configuration.
28597# Compiler output produced by configure, useful for debugging
28598# configure, is in config.log if it exists.
28599
28600debug=false
28601ac_cs_recheck=false
28602ac_cs_silent=false
28603SHELL=\${CONFIG_SHELL-$SHELL}
28604_ACEOF
28605
28606cat >>$CONFIG_STATUS <<\_ACEOF
28607## --------------------- ##
28608## M4sh Initialization.  ##
28609## --------------------- ##
28610
28611# Be Bourne compatible
28612if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28613  emulate sh
28614  NULLCMD=:
28615  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28616  # is contrary to our usage.  Disable this feature.
28617  alias -g '${1+"$@"}'='"$@"'
28618elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28619  set -o posix
28620fi
28621DUALCASE=1; export DUALCASE # for MKS sh
28622
28623# Support unset when possible.
28624if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28625  as_unset=unset
28626else
28627  as_unset=false
28628fi
28629
28630
28631# Work around bugs in pre-3.0 UWIN ksh.
28632$as_unset ENV MAIL MAILPATH
28633PS1='$ '
28634PS2='> '
28635PS4='+ '
28636
28637# NLS nuisances.
28638for as_var in \
28639  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28640  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28641  LC_TELEPHONE LC_TIME
28642do
28643  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28644    eval $as_var=C; export $as_var
28645  else
28646    $as_unset $as_var
28647  fi
28648done
28649
28650# Required to use basename.
28651if expr a : '\(a\)' >/dev/null 2>&1; then
28652  as_expr=expr
28653else
28654  as_expr=false
28655fi
28656
28657if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28658  as_basename=basename
28659else
28660  as_basename=false
28661fi
28662
28663
28664# Name of the executable.
28665as_me=`$as_basename "$0" ||
28666$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28667	 X"$0" : 'X\(//\)$' \| \
28668	 X"$0" : 'X\(/\)$' \| \
28669	 .     : '\(.\)' 2>/dev/null ||
28670echo X/"$0" |
28671    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28672  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
28673  	  /^X\/\(\/\).*/{ s//\1/; q; }
28674  	  s/.*/./; q'`
28675
28676
28677# PATH needs CR, and LINENO needs CR and PATH.
28678# Avoid depending upon Character Ranges.
28679as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28680as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28681as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28682as_cr_digits='0123456789'
28683as_cr_alnum=$as_cr_Letters$as_cr_digits
28684
28685# The user is always right.
28686if test "${PATH_SEPARATOR+set}" != set; then
28687  echo "#! /bin/sh" >conf$$.sh
28688  echo  "exit 0"   >>conf$$.sh
28689  chmod +x conf$$.sh
28690  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28691    PATH_SEPARATOR=';'
28692  else
28693    PATH_SEPARATOR=:
28694  fi
28695  rm -f conf$$.sh
28696fi
28697
28698
28699  as_lineno_1=$LINENO
28700  as_lineno_2=$LINENO
28701  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28702  test "x$as_lineno_1" != "x$as_lineno_2" &&
28703  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
28704  # Find who we are.  Look in the path if we contain no path at all
28705  # relative or not.
28706  case $0 in
28707    *[\\/]* ) as_myself=$0 ;;
28708    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28709for as_dir in $PATH
28710do
28711  IFS=$as_save_IFS
28712  test -z "$as_dir" && as_dir=.
28713  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28714done
28715
28716       ;;
28717  esac
28718  # We did not find ourselves, most probably we were run as `sh COMMAND'
28719  # in which case we are not to be found in the path.
28720  if test "x$as_myself" = x; then
28721    as_myself=$0
28722  fi
28723  if test ! -f "$as_myself"; then
28724    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28725echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28726   { (exit 1); exit 1; }; }
28727  fi
28728  case $CONFIG_SHELL in
28729  '')
28730    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28731for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28732do
28733  IFS=$as_save_IFS
28734  test -z "$as_dir" && as_dir=.
28735  for as_base in sh bash ksh sh5; do
28736	 case $as_dir in
28737	 /*)
28738	   if ("$as_dir/$as_base" -c '
28739  as_lineno_1=$LINENO
28740  as_lineno_2=$LINENO
28741  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28742  test "x$as_lineno_1" != "x$as_lineno_2" &&
28743  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
28744	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28745	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28746	     CONFIG_SHELL=$as_dir/$as_base
28747	     export CONFIG_SHELL
28748	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28749	   fi;;
28750	 esac
28751       done
28752done
28753;;
28754  esac
28755
28756  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28757  # uniformly replaced by the line number.  The first 'sed' inserts a
28758  # line-number line before each line; the second 'sed' does the real
28759  # work.  The second script uses 'N' to pair each line-number line
28760  # with the numbered line, and appends trailing '-' during
28761  # substitution so that $LINENO is not a special case at line end.
28762  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28763  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
28764  sed '=' <$as_myself |
28765    sed '
28766      N
28767      s,$,-,
28768      : loop
28769      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28770      t loop
28771      s,-$,,
28772      s,^['$as_cr_digits']*\n,,
28773    ' >$as_me.lineno &&
28774  chmod +x $as_me.lineno ||
28775    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28776echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28777   { (exit 1); exit 1; }; }
28778
28779  # Don't try to exec as it changes $[0], causing all sort of problems
28780  # (the dirname of $[0] is not the place where we might find the
28781  # original and so on.  Autoconf is especially sensible to this).
28782  . ./$as_me.lineno
28783  # Exit status is that of the last command.
28784  exit
28785}
28786
28787
28788case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28789  *c*,-n*) ECHO_N= ECHO_C='
28790' ECHO_T='	' ;;
28791  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28792  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
28793esac
28794
28795if expr a : '\(a\)' >/dev/null 2>&1; then
28796  as_expr=expr
28797else
28798  as_expr=false
28799fi
28800
28801rm -f conf$$ conf$$.exe conf$$.file
28802echo >conf$$.file
28803if ln -s conf$$.file conf$$ 2>/dev/null; then
28804  # We could just check for DJGPP; but this test a) works b) is more generic
28805  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28806  if test -f conf$$.exe; then
28807    # Don't use ln at all; we don't have any links
28808    as_ln_s='cp -p'
28809  else
28810    as_ln_s='ln -s'
28811  fi
28812elif ln conf$$.file conf$$ 2>/dev/null; then
28813  as_ln_s=ln
28814else
28815  as_ln_s='cp -p'
28816fi
28817rm -f conf$$ conf$$.exe conf$$.file
28818
28819if mkdir -p . 2>/dev/null; then
28820  as_mkdir_p=:
28821else
28822  test -d ./-p && rmdir ./-p
28823  as_mkdir_p=false
28824fi
28825
28826as_executable_p="test -f"
28827
28828# Sed expression to map a string onto a valid CPP name.
28829as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28830
28831# Sed expression to map a string onto a valid variable name.
28832as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28833
28834
28835# IFS
28836# We need space, tab and new line, in precisely that order.
28837as_nl='
28838'
28839IFS=" 	$as_nl"
28840
28841# CDPATH.
28842$as_unset CDPATH
28843
28844exec 6>&1
28845
28846# Open the log real soon, to keep \$[0] and so on meaningful, and to
28847# report actual input values of CONFIG_FILES etc. instead of their
28848# values after options handling.  Logging --version etc. is OK.
28849exec 5>>config.log
28850{
28851  echo
28852  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28853## Running $as_me. ##
28854_ASBOX
28855} >&5
28856cat >&5 <<_CSEOF
28857
28858This file was extended by $as_me, which was
28859generated by GNU Autoconf 2.59.  Invocation command line was
28860
28861  CONFIG_FILES    = $CONFIG_FILES
28862  CONFIG_HEADERS  = $CONFIG_HEADERS
28863  CONFIG_LINKS    = $CONFIG_LINKS
28864  CONFIG_COMMANDS = $CONFIG_COMMANDS
28865  $ $0 $@
28866
28867_CSEOF
28868echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28869echo >&5
28870_ACEOF
28871
28872# Files that config.status was made for.
28873if test -n "$ac_config_files"; then
28874  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28875fi
28876
28877if test -n "$ac_config_headers"; then
28878  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28879fi
28880
28881if test -n "$ac_config_links"; then
28882  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28883fi
28884
28885if test -n "$ac_config_commands"; then
28886  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28887fi
28888
28889cat >>$CONFIG_STATUS <<\_ACEOF
28890
28891ac_cs_usage="\
28892\`$as_me' instantiates files from templates according to the
28893current configuration.
28894
28895Usage: $0 [OPTIONS] [FILE]...
28896
28897  -h, --help       print this help, then exit
28898  -V, --version    print version number, then exit
28899  -q, --quiet      do not print progress messages
28900  -d, --debug      don't remove temporary files
28901      --recheck    update $as_me by reconfiguring in the same conditions
28902  --file=FILE[:TEMPLATE]
28903		   instantiate the configuration file FILE
28904  --header=FILE[:TEMPLATE]
28905		   instantiate the configuration header FILE
28906
28907Configuration files:
28908$config_files
28909
28910Configuration headers:
28911$config_headers
28912
28913Configuration commands:
28914$config_commands
28915
28916Report bugs to <bug-autoconf@gnu.org>."
28917_ACEOF
28918
28919cat >>$CONFIG_STATUS <<_ACEOF
28920ac_cs_version="\\
28921config.status
28922configured by $0, generated by GNU Autoconf 2.59,
28923  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28924
28925Copyright (C) 2003 Free Software Foundation, Inc.
28926This config.status script is free software; the Free Software Foundation
28927gives unlimited permission to copy, distribute and modify it."
28928srcdir=$srcdir
28929INSTALL="$INSTALL"
28930_ACEOF
28931
28932cat >>$CONFIG_STATUS <<\_ACEOF
28933# If no file are specified by the user, then we need to provide default
28934# value.  By we need to know if files were specified by the user.
28935ac_need_defaults=:
28936while test $# != 0
28937do
28938  case $1 in
28939  --*=*)
28940    ac_option=`expr "x$1" : 'x\([^=]*\)='`
28941    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28942    ac_shift=:
28943    ;;
28944  -*)
28945    ac_option=$1
28946    ac_optarg=$2
28947    ac_shift=shift
28948    ;;
28949  *) # This is not an option, so the user has probably given explicit
28950     # arguments.
28951     ac_option=$1
28952     ac_need_defaults=false;;
28953  esac
28954
28955  case $ac_option in
28956  # Handling of the options.
28957_ACEOF
28958cat >>$CONFIG_STATUS <<\_ACEOF
28959  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28960    ac_cs_recheck=: ;;
28961  --version | --vers* | -V )
28962    echo "$ac_cs_version"; exit 0 ;;
28963  --he | --h)
28964    # Conflict between --help and --header
28965    { { echo "$as_me:$LINENO: error: ambiguous option: $1
28966Try \`$0 --help' for more information." >&5
28967echo "$as_me: error: ambiguous option: $1
28968Try \`$0 --help' for more information." >&2;}
28969   { (exit 1); exit 1; }; };;
28970  --help | --hel | -h )
28971    echo "$ac_cs_usage"; exit 0 ;;
28972  --debug | --d* | -d )
28973    debug=: ;;
28974  --file | --fil | --fi | --f )
28975    $ac_shift
28976    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28977    ac_need_defaults=false;;
28978  --header | --heade | --head | --hea )
28979    $ac_shift
28980    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28981    ac_need_defaults=false;;
28982  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28983  | -silent | --silent | --silen | --sile | --sil | --si | --s)
28984    ac_cs_silent=: ;;
28985
28986  # This is an error.
28987  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28988Try \`$0 --help' for more information." >&5
28989echo "$as_me: error: unrecognized option: $1
28990Try \`$0 --help' for more information." >&2;}
28991   { (exit 1); exit 1; }; } ;;
28992
28993  *) ac_config_targets="$ac_config_targets $1" ;;
28994
28995  esac
28996  shift
28997done
28998
28999ac_configure_extra_args=
29000
29001if $ac_cs_silent; then
29002  exec 6>/dev/null
29003  ac_configure_extra_args="$ac_configure_extra_args --silent"
29004fi
29005
29006_ACEOF
29007cat >>$CONFIG_STATUS <<_ACEOF
29008if \$ac_cs_recheck; then
29009  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29010  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29011fi
29012
29013_ACEOF
29014
29015cat >>$CONFIG_STATUS <<_ACEOF
29016#
29017# INIT-COMMANDS section.
29018#
29019
29020AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29021# Capture the value of obsolete ALL_LINGUAS because we need it to compute
29022    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
29023    # from automake.
29024    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
29025    # Capture the value of LINGUAS because we need it to compute CATALOGS.
29026    LINGUAS="${LINGUAS-%UNSET%}"
29027
29028
29029_ACEOF
29030
29031
29032
29033cat >>$CONFIG_STATUS <<\_ACEOF
29034for ac_config_target in $ac_config_targets
29035do
29036  case "$ac_config_target" in
29037  # Handling of arguments.
29038  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29039  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
29040  "srclib/Makefile" ) CONFIG_FILES="$CONFIG_FILES srclib/Makefile" ;;
29041  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
29042  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
29043  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
29044  "${TESTS_MAKEFILE}" ) CONFIG_FILES="$CONFIG_FILES ${TESTS_MAKEFILE}" ;;
29045  "include/iconv.h" ) CONFIG_FILES="$CONFIG_FILES include/iconv.h" ;;
29046  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29047  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29048  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29049  "lib/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
29050  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29051echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29052   { (exit 1); exit 1; }; };;
29053  esac
29054done
29055
29056# If the user did not use the arguments to specify the items to instantiate,
29057# then the envvar interface is used.  Set only those that are not.
29058# We use the long form for the default assignment because of an extremely
29059# bizarre bug on SunOS 4.1.3.
29060if $ac_need_defaults; then
29061  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29062  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29063  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29064fi
29065
29066# Have a temporary directory for convenience.  Make it in the build tree
29067# simply because there is no reason to put it here, and in addition,
29068# creating and moving files from /tmp can sometimes cause problems.
29069# Create a temporary directory, and hook for its removal unless debugging.
29070$debug ||
29071{
29072  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29073  trap '{ (exit 1); exit 1; }' 1 2 13 15
29074}
29075
29076# Create a (secure) tmp directory for tmp files.
29077
29078{
29079  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29080  test -n "$tmp" && test -d "$tmp"
29081}  ||
29082{
29083  tmp=./confstat$$-$RANDOM
29084  (umask 077 && mkdir $tmp)
29085} ||
29086{
29087   echo "$me: cannot create a temporary directory in ." >&2
29088   { (exit 1); exit 1; }
29089}
29090
29091_ACEOF
29092
29093cat >>$CONFIG_STATUS <<_ACEOF
29094
29095#
29096# CONFIG_FILES section.
29097#
29098
29099# No need to generate the scripts if there are no CONFIG_FILES.
29100# This happens for instance when ./config.status config.h
29101if test -n "\$CONFIG_FILES"; then
29102  # Protect against being on the right side of a sed subst in config.status.
29103  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29104   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29105s,@SHELL@,$SHELL,;t t
29106s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29107s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29108s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29109s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29110s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29111s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29112s,@exec_prefix@,$exec_prefix,;t t
29113s,@prefix@,$prefix,;t t
29114s,@program_transform_name@,$program_transform_name,;t t
29115s,@bindir@,$bindir,;t t
29116s,@sbindir@,$sbindir,;t t
29117s,@libexecdir@,$libexecdir,;t t
29118s,@datadir@,$datadir,;t t
29119s,@sysconfdir@,$sysconfdir,;t t
29120s,@sharedstatedir@,$sharedstatedir,;t t
29121s,@localstatedir@,$localstatedir,;t t
29122s,@libdir@,$libdir,;t t
29123s,@includedir@,$includedir,;t t
29124s,@oldincludedir@,$oldincludedir,;t t
29125s,@infodir@,$infodir,;t t
29126s,@mandir@,$mandir,;t t
29127s,@build_alias@,$build_alias,;t t
29128s,@host_alias@,$host_alias,;t t
29129s,@target_alias@,$target_alias,;t t
29130s,@DEFS@,$DEFS,;t t
29131s,@ECHO_C@,$ECHO_C,;t t
29132s,@ECHO_N@,$ECHO_N,;t t
29133s,@ECHO_T@,$ECHO_T,;t t
29134s,@LIBS@,$LIBS,;t t
29135s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29136s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29137s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29138s,@CYGPATH_W@,$CYGPATH_W,;t t
29139s,@PACKAGE@,$PACKAGE,;t t
29140s,@VERSION@,$VERSION,;t t
29141s,@ACLOCAL@,$ACLOCAL,;t t
29142s,@AUTOCONF@,$AUTOCONF,;t t
29143s,@AUTOMAKE@,$AUTOMAKE,;t t
29144s,@AUTOHEADER@,$AUTOHEADER,;t t
29145s,@MAKEINFO@,$MAKEINFO,;t t
29146s,@install_sh@,$install_sh,;t t
29147s,@STRIP@,$STRIP,;t t
29148s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29149s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29150s,@mkdir_p@,$mkdir_p,;t t
29151s,@AWK@,$AWK,;t t
29152s,@SET_MAKE@,$SET_MAKE,;t t
29153s,@am__leading_dot@,$am__leading_dot,;t t
29154s,@AMTAR@,$AMTAR,;t t
29155s,@am__tar@,$am__tar,;t t
29156s,@am__untar@,$am__untar,;t t
29157s,@CC@,$CC,;t t
29158s,@CFLAGS@,$CFLAGS,;t t
29159s,@LDFLAGS@,$LDFLAGS,;t t
29160s,@CPPFLAGS@,$CPPFLAGS,;t t
29161s,@ac_ct_CC@,$ac_ct_CC,;t t
29162s,@EXEEXT@,$EXEEXT,;t t
29163s,@OBJEXT@,$OBJEXT,;t t
29164s,@DEPDIR@,$DEPDIR,;t t
29165s,@am__include@,$am__include,;t t
29166s,@am__quote@,$am__quote,;t t
29167s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29168s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29169s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29170s,@CCDEPMODE@,$CCDEPMODE,;t t
29171s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29172s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29173s,@CPP@,$CPP,;t t
29174s,@EGREP@,$EGREP,;t t
29175s,@build@,$build,;t t
29176s,@build_cpu@,$build_cpu,;t t
29177s,@build_vendor@,$build_vendor,;t t
29178s,@build_os@,$build_os,;t t
29179s,@host@,$host,;t t
29180s,@host_cpu@,$host_cpu,;t t
29181s,@host_vendor@,$host_vendor,;t t
29182s,@host_os@,$host_os,;t t
29183s,@RELOCATABLE@,$RELOCATABLE,;t t
29184s,@LIBOBJS@,$LIBOBJS,;t t
29185s,@SET_RELOCATABLE@,$SET_RELOCATABLE,;t t
29186s,@RELOCATABLE_VIA_LD_TRUE@,$RELOCATABLE_VIA_LD_TRUE,;t t
29187s,@RELOCATABLE_VIA_LD_FALSE@,$RELOCATABLE_VIA_LD_FALSE,;t t
29188s,@USE_EXTRA_ENCODINGS@,$USE_EXTRA_ENCODINGS,;t t
29189s,@RANLIB@,$RANLIB,;t t
29190s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29191s,@CP@,$CP,;t t
29192s,@LN@,$LN,;t t
29193s,@LN_S@,$LN_S,;t t
29194s,@ECHO@,$ECHO,;t t
29195s,@AR@,$AR,;t t
29196s,@ac_ct_AR@,$ac_ct_AR,;t t
29197s,@DLLTOOL@,$DLLTOOL,;t t
29198s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
29199s,@AS@,$AS,;t t
29200s,@ac_ct_AS@,$ac_ct_AS,;t t
29201s,@OBJDUMP@,$OBJDUMP,;t t
29202s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
29203s,@CXX@,$CXX,;t t
29204s,@CXXFLAGS@,$CXXFLAGS,;t t
29205s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29206s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29207s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29208s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29209s,@CXXCPP@,$CXXCPP,;t t
29210s,@F77@,$F77,;t t
29211s,@FFLAGS@,$FFLAGS,;t t
29212s,@ac_ct_F77@,$ac_ct_F77,;t t
29213s,@LIBTOOL@,$LIBTOOL,;t t
29214s,@LIBICONV@,$LIBICONV,;t t
29215s,@LTLIBICONV@,$LTLIBICONV,;t t
29216s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
29217s,@USE_NLS@,$USE_NLS,;t t
29218s,@MSGFMT@,$MSGFMT,;t t
29219s,@GMSGFMT@,$GMSGFMT,;t t
29220s,@XGETTEXT@,$XGETTEXT,;t t
29221s,@MSGMERGE@,$MSGMERGE,;t t
29222s,@INTLLIBS@,$INTLLIBS,;t t
29223s,@LIBINTL@,$LIBINTL,;t t
29224s,@LTLIBINTL@,$LTLIBINTL,;t t
29225s,@POSUB@,$POSUB,;t t
29226s,@HAVE_LONG_64BIT@,$HAVE_LONG_64BIT,;t t
29227s,@HAVE_LONG_LONG_64BIT@,$HAVE_LONG_LONG_64BIT,;t t
29228s,@STDINT_H@,$STDINT_H,;t t
29229s,@ICONV_CONST@,$ICONV_CONST,;t t
29230s,@EILSEQ@,$EILSEQ,;t t
29231s,@ALLOCA@,$ALLOCA,;t t
29232s,@ALLOCA_H@,$ALLOCA_H,;t t
29233s,@STDBOOL_H@,$STDBOOL_H,;t t
29234s,@HAVE__BOOL@,$HAVE__BOOL,;t t
29235s,@OS@,$OS,;t t
29236s,@GCC@,$GCC,;t t
29237s,@PLUGLIB@,$PLUGLIB,;t t
29238s,@subdirs@,$subdirs,;t t
29239s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29240CEOF
29241
29242_ACEOF
29243
29244  cat >>$CONFIG_STATUS <<\_ACEOF
29245  # Split the substitutions into bite-sized pieces for seds with
29246  # small command number limits, like on Digital OSF/1 and HP-UX.
29247  ac_max_sed_lines=48
29248  ac_sed_frag=1 # Number of current file.
29249  ac_beg=1 # First line for current file.
29250  ac_end=$ac_max_sed_lines # Line after last line for current file.
29251  ac_more_lines=:
29252  ac_sed_cmds=
29253  while $ac_more_lines; do
29254    if test $ac_beg -gt 1; then
29255      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29256    else
29257      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29258    fi
29259    if test ! -s $tmp/subs.frag; then
29260      ac_more_lines=false
29261    else
29262      # The purpose of the label and of the branching condition is to
29263      # speed up the sed processing (if there are no `@' at all, there
29264      # is no need to browse any of the substitutions).
29265      # These are the two extra sed commands mentioned above.
29266      (echo ':t
29267  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29268      if test -z "$ac_sed_cmds"; then
29269	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29270      else
29271	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29272      fi
29273      ac_sed_frag=`expr $ac_sed_frag + 1`
29274      ac_beg=$ac_end
29275      ac_end=`expr $ac_end + $ac_max_sed_lines`
29276    fi
29277  done
29278  if test -z "$ac_sed_cmds"; then
29279    ac_sed_cmds=cat
29280  fi
29281fi # test -n "$CONFIG_FILES"
29282
29283_ACEOF
29284cat >>$CONFIG_STATUS <<\_ACEOF
29285for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29286  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29287  case $ac_file in
29288  - | *:- | *:-:* ) # input from stdin
29289	cat >$tmp/stdin
29290	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29291	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29292  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29293	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29294  * )   ac_file_in=$ac_file.in ;;
29295  esac
29296
29297  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29298  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29299$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29300	 X"$ac_file" : 'X\(//\)[^/]' \| \
29301	 X"$ac_file" : 'X\(//\)$' \| \
29302	 X"$ac_file" : 'X\(/\)' \| \
29303	 .     : '\(.\)' 2>/dev/null ||
29304echo X"$ac_file" |
29305    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29306  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29307  	  /^X\(\/\/\)$/{ s//\1/; q; }
29308  	  /^X\(\/\).*/{ s//\1/; q; }
29309  	  s/.*/./; q'`
29310  { if $as_mkdir_p; then
29311    mkdir -p "$ac_dir"
29312  else
29313    as_dir="$ac_dir"
29314    as_dirs=
29315    while test ! -d "$as_dir"; do
29316      as_dirs="$as_dir $as_dirs"
29317      as_dir=`(dirname "$as_dir") 2>/dev/null ||
29318$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29319	 X"$as_dir" : 'X\(//\)[^/]' \| \
29320	 X"$as_dir" : 'X\(//\)$' \| \
29321	 X"$as_dir" : 'X\(/\)' \| \
29322	 .     : '\(.\)' 2>/dev/null ||
29323echo X"$as_dir" |
29324    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29325  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29326  	  /^X\(\/\/\)$/{ s//\1/; q; }
29327  	  /^X\(\/\).*/{ s//\1/; q; }
29328  	  s/.*/./; q'`
29329    done
29330    test ! -n "$as_dirs" || mkdir $as_dirs
29331  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29332echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29333   { (exit 1); exit 1; }; }; }
29334
29335  ac_builddir=.
29336
29337if test "$ac_dir" != .; then
29338  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29339  # A "../" for each directory in $ac_dir_suffix.
29340  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29341else
29342  ac_dir_suffix= ac_top_builddir=
29343fi
29344
29345case $srcdir in
29346  .)  # No --srcdir option.  We are building in place.
29347    ac_srcdir=.
29348    if test -z "$ac_top_builddir"; then
29349       ac_top_srcdir=.
29350    else
29351       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29352    fi ;;
29353  [\\/]* | ?:[\\/]* )  # Absolute path.
29354    ac_srcdir=$srcdir$ac_dir_suffix;
29355    ac_top_srcdir=$srcdir ;;
29356  *) # Relative path.
29357    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29358    ac_top_srcdir=$ac_top_builddir$srcdir ;;
29359esac
29360
29361# Do not use `cd foo && pwd` to compute absolute paths, because
29362# the directories may not exist.
29363case `pwd` in
29364.) ac_abs_builddir="$ac_dir";;
29365*)
29366  case "$ac_dir" in
29367  .) ac_abs_builddir=`pwd`;;
29368  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29369  *) ac_abs_builddir=`pwd`/"$ac_dir";;
29370  esac;;
29371esac
29372case $ac_abs_builddir in
29373.) ac_abs_top_builddir=${ac_top_builddir}.;;
29374*)
29375  case ${ac_top_builddir}. in
29376  .) ac_abs_top_builddir=$ac_abs_builddir;;
29377  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29378  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29379  esac;;
29380esac
29381case $ac_abs_builddir in
29382.) ac_abs_srcdir=$ac_srcdir;;
29383*)
29384  case $ac_srcdir in
29385  .) ac_abs_srcdir=$ac_abs_builddir;;
29386  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29387  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29388  esac;;
29389esac
29390case $ac_abs_builddir in
29391.) ac_abs_top_srcdir=$ac_top_srcdir;;
29392*)
29393  case $ac_top_srcdir in
29394  .) ac_abs_top_srcdir=$ac_abs_builddir;;
29395  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29396  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29397  esac;;
29398esac
29399
29400
29401  case $INSTALL in
29402  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29403  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29404  esac
29405
29406  if test x"$ac_file" != x-; then
29407    { echo "$as_me:$LINENO: creating $ac_file" >&5
29408echo "$as_me: creating $ac_file" >&6;}
29409    rm -f "$ac_file"
29410  fi
29411  # Let's still pretend it is `configure' which instantiates (i.e., don't
29412  # use $as_me), people would be surprised to read:
29413  #    /* config.h.  Generated by config.status.  */
29414  if test x"$ac_file" = x-; then
29415    configure_input=
29416  else
29417    configure_input="$ac_file.  "
29418  fi
29419  configure_input=$configure_input"Generated from `echo $ac_file_in |
29420				     sed 's,.*/,,'` by configure."
29421
29422  # First look for the input files in the build tree, otherwise in the
29423  # src tree.
29424  ac_file_inputs=`IFS=:
29425    for f in $ac_file_in; do
29426      case $f in
29427      -) echo $tmp/stdin ;;
29428      [\\/$]*)
29429	 # Absolute (can't be DOS-style, as IFS=:)
29430	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29431echo "$as_me: error: cannot find input file: $f" >&2;}
29432   { (exit 1); exit 1; }; }
29433	 echo "$f";;
29434      *) # Relative
29435	 if test -f "$f"; then
29436	   # Build tree
29437	   echo "$f"
29438	 elif test -f "$srcdir/$f"; then
29439	   # Source tree
29440	   echo "$srcdir/$f"
29441	 else
29442	   # /dev/null tree
29443	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29444echo "$as_me: error: cannot find input file: $f" >&2;}
29445   { (exit 1); exit 1; }; }
29446	 fi;;
29447      esac
29448    done` || { (exit 1); exit 1; }
29449_ACEOF
29450cat >>$CONFIG_STATUS <<_ACEOF
29451  sed "$ac_vpsub
29452$extrasub
29453_ACEOF
29454cat >>$CONFIG_STATUS <<\_ACEOF
29455:t
29456/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29457s,@configure_input@,$configure_input,;t t
29458s,@srcdir@,$ac_srcdir,;t t
29459s,@abs_srcdir@,$ac_abs_srcdir,;t t
29460s,@top_srcdir@,$ac_top_srcdir,;t t
29461s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29462s,@builddir@,$ac_builddir,;t t
29463s,@abs_builddir@,$ac_abs_builddir,;t t
29464s,@top_builddir@,$ac_top_builddir,;t t
29465s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29466s,@INSTALL@,$ac_INSTALL,;t t
29467" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29468  rm -f $tmp/stdin
29469  if test x"$ac_file" != x-; then
29470    mv $tmp/out $ac_file
29471  else
29472    cat $tmp/out
29473    rm -f $tmp/out
29474  fi
29475
29476done
29477_ACEOF
29478cat >>$CONFIG_STATUS <<\_ACEOF
29479
29480#
29481# CONFIG_HEADER section.
29482#
29483
29484# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29485# NAME is the cpp macro being defined and VALUE is the value it is being given.
29486#
29487# ac_d sets the value in "#define NAME VALUE" lines.
29488ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
29489ac_dB='[	 ].*$,\1#\2'
29490ac_dC=' '
29491ac_dD=',;t'
29492# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29493ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
29494ac_uB='$,\1#\2define\3'
29495ac_uC=' '
29496ac_uD=',;t'
29497
29498for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29499  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29500  case $ac_file in
29501  - | *:- | *:-:* ) # input from stdin
29502	cat >$tmp/stdin
29503	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29504	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29505  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29506	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29507  * )   ac_file_in=$ac_file.in ;;
29508  esac
29509
29510  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29511echo "$as_me: creating $ac_file" >&6;}
29512
29513  # First look for the input files in the build tree, otherwise in the
29514  # src tree.
29515  ac_file_inputs=`IFS=:
29516    for f in $ac_file_in; do
29517      case $f in
29518      -) echo $tmp/stdin ;;
29519      [\\/$]*)
29520	 # Absolute (can't be DOS-style, as IFS=:)
29521	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29522echo "$as_me: error: cannot find input file: $f" >&2;}
29523   { (exit 1); exit 1; }; }
29524	 # Do quote $f, to prevent DOS paths from being IFS'd.
29525	 echo "$f";;
29526      *) # Relative
29527	 if test -f "$f"; then
29528	   # Build tree
29529	   echo "$f"
29530	 elif test -f "$srcdir/$f"; then
29531	   # Source tree
29532	   echo "$srcdir/$f"
29533	 else
29534	   # /dev/null tree
29535	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29536echo "$as_me: error: cannot find input file: $f" >&2;}
29537   { (exit 1); exit 1; }; }
29538	 fi;;
29539      esac
29540    done` || { (exit 1); exit 1; }
29541  # Remove the trailing spaces.
29542  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
29543
29544_ACEOF
29545
29546# Transform confdefs.h into two sed scripts, `conftest.defines' and
29547# `conftest.undefs', that substitutes the proper values into
29548# config.h.in to produce config.h.  The first handles `#define'
29549# templates, and the second `#undef' templates.
29550# And first: Protect against being on the right side of a sed subst in
29551# config.status.  Protect against being in an unquoted here document
29552# in config.status.
29553rm -f conftest.defines conftest.undefs
29554# Using a here document instead of a string reduces the quoting nightmare.
29555# Putting comments in sed scripts is not portable.
29556#
29557# `end' is used to avoid that the second main sed command (meant for
29558# 0-ary CPP macros) applies to n-ary macro definitions.
29559# See the Autoconf documentation for `clear'.
29560cat >confdef2sed.sed <<\_ACEOF
29561s/[\\&,]/\\&/g
29562s,[\\$`],\\&,g
29563t clear
29564: clear
29565s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29566t end
29567s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29568: end
29569_ACEOF
29570# If some macros were called several times there might be several times
29571# the same #defines, which is useless.  Nevertheless, we may not want to
29572# sort them, since we want the *last* AC-DEFINE to be honored.
29573uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29574sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29575rm -f confdef2sed.sed
29576
29577# This sed command replaces #undef with comments.  This is necessary, for
29578# example, in the case of _POSIX_SOURCE, which is predefined and required
29579# on some systems where configure will not decide to define it.
29580cat >>conftest.undefs <<\_ACEOF
29581s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29582_ACEOF
29583
29584# Break up conftest.defines because some shells have a limit on the size
29585# of here documents, and old seds have small limits too (100 cmds).
29586echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29587echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29588echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29589echo '  :' >>$CONFIG_STATUS
29590rm -f conftest.tail
29591while grep . conftest.defines >/dev/null
29592do
29593  # Write a limited-size here document to $tmp/defines.sed.
29594  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29595  # Speed up: don't consider the non `#define' lines.
29596  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
29597  # Work around the forget-to-reset-the-flag bug.
29598  echo 't clr' >>$CONFIG_STATUS
29599  echo ': clr' >>$CONFIG_STATUS
29600  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29601  echo 'CEOF
29602  sed -f $tmp/defines.sed $tmp/in >$tmp/out
29603  rm -f $tmp/in
29604  mv $tmp/out $tmp/in
29605' >>$CONFIG_STATUS
29606  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29607  rm -f conftest.defines
29608  mv conftest.tail conftest.defines
29609done
29610rm -f conftest.defines
29611echo '  fi # grep' >>$CONFIG_STATUS
29612echo >>$CONFIG_STATUS
29613
29614# Break up conftest.undefs because some shells have a limit on the size
29615# of here documents, and old seds have small limits too (100 cmds).
29616echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
29617rm -f conftest.tail
29618while grep . conftest.undefs >/dev/null
29619do
29620  # Write a limited-size here document to $tmp/undefs.sed.
29621  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29622  # Speed up: don't consider the non `#undef'
29623  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
29624  # Work around the forget-to-reset-the-flag bug.
29625  echo 't clr' >>$CONFIG_STATUS
29626  echo ': clr' >>$CONFIG_STATUS
29627  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29628  echo 'CEOF
29629  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29630  rm -f $tmp/in
29631  mv $tmp/out $tmp/in
29632' >>$CONFIG_STATUS
29633  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29634  rm -f conftest.undefs
29635  mv conftest.tail conftest.undefs
29636done
29637rm -f conftest.undefs
29638
29639cat >>$CONFIG_STATUS <<\_ACEOF
29640  # Let's still pretend it is `configure' which instantiates (i.e., don't
29641  # use $as_me), people would be surprised to read:
29642  #    /* config.h.  Generated by config.status.  */
29643  if test x"$ac_file" = x-; then
29644    echo "/* Generated by configure.  */" >$tmp/config.h
29645  else
29646    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
29647  fi
29648  cat $tmp/in >>$tmp/config.h
29649  rm -f $tmp/in
29650  if test x"$ac_file" != x-; then
29651    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29652      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29653echo "$as_me: $ac_file is unchanged" >&6;}
29654    else
29655      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29656$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29657	 X"$ac_file" : 'X\(//\)[^/]' \| \
29658	 X"$ac_file" : 'X\(//\)$' \| \
29659	 X"$ac_file" : 'X\(/\)' \| \
29660	 .     : '\(.\)' 2>/dev/null ||
29661echo X"$ac_file" |
29662    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29663  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29664  	  /^X\(\/\/\)$/{ s//\1/; q; }
29665  	  /^X\(\/\).*/{ s//\1/; q; }
29666  	  s/.*/./; q'`
29667      { if $as_mkdir_p; then
29668    mkdir -p "$ac_dir"
29669  else
29670    as_dir="$ac_dir"
29671    as_dirs=
29672    while test ! -d "$as_dir"; do
29673      as_dirs="$as_dir $as_dirs"
29674      as_dir=`(dirname "$as_dir") 2>/dev/null ||
29675$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29676	 X"$as_dir" : 'X\(//\)[^/]' \| \
29677	 X"$as_dir" : 'X\(//\)$' \| \
29678	 X"$as_dir" : 'X\(/\)' \| \
29679	 .     : '\(.\)' 2>/dev/null ||
29680echo X"$as_dir" |
29681    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29682  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29683  	  /^X\(\/\/\)$/{ s//\1/; q; }
29684  	  /^X\(\/\).*/{ s//\1/; q; }
29685  	  s/.*/./; q'`
29686    done
29687    test ! -n "$as_dirs" || mkdir $as_dirs
29688  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29689echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29690   { (exit 1); exit 1; }; }; }
29691
29692      rm -f $ac_file
29693      mv $tmp/config.h $ac_file
29694    fi
29695  else
29696    cat $tmp/config.h
29697    rm -f $tmp/config.h
29698  fi
29699# Compute $ac_file's index in $config_headers.
29700_am_stamp_count=1
29701for _am_header in $config_headers :; do
29702  case $_am_header in
29703    $ac_file | $ac_file:* )
29704      break ;;
29705    * )
29706      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29707  esac
29708done
29709echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29710$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29711	 X$ac_file : 'X\(//\)[^/]' \| \
29712	 X$ac_file : 'X\(//\)$' \| \
29713	 X$ac_file : 'X\(/\)' \| \
29714	 .     : '\(.\)' 2>/dev/null ||
29715echo X$ac_file |
29716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29717  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29718  	  /^X\(\/\/\)$/{ s//\1/; q; }
29719  	  /^X\(\/\).*/{ s//\1/; q; }
29720  	  s/.*/./; q'`/stamp-h$_am_stamp_count
29721done
29722_ACEOF
29723cat >>$CONFIG_STATUS <<\_ACEOF
29724
29725#
29726# CONFIG_COMMANDS section.
29727#
29728for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29729  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29730  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29731  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
29732$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29733	 X"$ac_dest" : 'X\(//\)[^/]' \| \
29734	 X"$ac_dest" : 'X\(//\)$' \| \
29735	 X"$ac_dest" : 'X\(/\)' \| \
29736	 .     : '\(.\)' 2>/dev/null ||
29737echo X"$ac_dest" |
29738    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29739  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29740  	  /^X\(\/\/\)$/{ s//\1/; q; }
29741  	  /^X\(\/\).*/{ s//\1/; q; }
29742  	  s/.*/./; q'`
29743  { if $as_mkdir_p; then
29744    mkdir -p "$ac_dir"
29745  else
29746    as_dir="$ac_dir"
29747    as_dirs=
29748    while test ! -d "$as_dir"; do
29749      as_dirs="$as_dir $as_dirs"
29750      as_dir=`(dirname "$as_dir") 2>/dev/null ||
29751$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29752	 X"$as_dir" : 'X\(//\)[^/]' \| \
29753	 X"$as_dir" : 'X\(//\)$' \| \
29754	 X"$as_dir" : 'X\(/\)' \| \
29755	 .     : '\(.\)' 2>/dev/null ||
29756echo X"$as_dir" |
29757    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29758  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29759  	  /^X\(\/\/\)$/{ s//\1/; q; }
29760  	  /^X\(\/\).*/{ s//\1/; q; }
29761  	  s/.*/./; q'`
29762    done
29763    test ! -n "$as_dirs" || mkdir $as_dirs
29764  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29765echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29766   { (exit 1); exit 1; }; }; }
29767
29768  ac_builddir=.
29769
29770if test "$ac_dir" != .; then
29771  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29772  # A "../" for each directory in $ac_dir_suffix.
29773  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29774else
29775  ac_dir_suffix= ac_top_builddir=
29776fi
29777
29778case $srcdir in
29779  .)  # No --srcdir option.  We are building in place.
29780    ac_srcdir=.
29781    if test -z "$ac_top_builddir"; then
29782       ac_top_srcdir=.
29783    else
29784       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29785    fi ;;
29786  [\\/]* | ?:[\\/]* )  # Absolute path.
29787    ac_srcdir=$srcdir$ac_dir_suffix;
29788    ac_top_srcdir=$srcdir ;;
29789  *) # Relative path.
29790    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29791    ac_top_srcdir=$ac_top_builddir$srcdir ;;
29792esac
29793
29794# Do not use `cd foo && pwd` to compute absolute paths, because
29795# the directories may not exist.
29796case `pwd` in
29797.) ac_abs_builddir="$ac_dir";;
29798*)
29799  case "$ac_dir" in
29800  .) ac_abs_builddir=`pwd`;;
29801  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29802  *) ac_abs_builddir=`pwd`/"$ac_dir";;
29803  esac;;
29804esac
29805case $ac_abs_builddir in
29806.) ac_abs_top_builddir=${ac_top_builddir}.;;
29807*)
29808  case ${ac_top_builddir}. in
29809  .) ac_abs_top_builddir=$ac_abs_builddir;;
29810  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29811  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29812  esac;;
29813esac
29814case $ac_abs_builddir in
29815.) ac_abs_srcdir=$ac_srcdir;;
29816*)
29817  case $ac_srcdir in
29818  .) ac_abs_srcdir=$ac_abs_builddir;;
29819  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29820  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29821  esac;;
29822esac
29823case $ac_abs_builddir in
29824.) ac_abs_top_srcdir=$ac_top_srcdir;;
29825*)
29826  case $ac_top_srcdir in
29827  .) ac_abs_top_srcdir=$ac_abs_builddir;;
29828  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29829  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29830  esac;;
29831esac
29832
29833
29834  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
29835echo "$as_me: executing $ac_dest commands" >&6;}
29836  case $ac_dest in
29837    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29838  # Strip MF so we end up with the name of the file.
29839  mf=`echo "$mf" | sed -e 's/:.*$//'`
29840  # Check whether this is an Automake generated Makefile or not.
29841  # We used to match only the files named `Makefile.in', but
29842  # some people rename them; so instead we look at the file content.
29843  # Grep'ing the first line is not enough: some people post-process
29844  # each Makefile.in and add a new line on top of each file to say so.
29845  # So let's grep whole file.
29846  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
29847    dirpart=`(dirname "$mf") 2>/dev/null ||
29848$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29849	 X"$mf" : 'X\(//\)[^/]' \| \
29850	 X"$mf" : 'X\(//\)$' \| \
29851	 X"$mf" : 'X\(/\)' \| \
29852	 .     : '\(.\)' 2>/dev/null ||
29853echo X"$mf" |
29854    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29855  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29856  	  /^X\(\/\/\)$/{ s//\1/; q; }
29857  	  /^X\(\/\).*/{ s//\1/; q; }
29858  	  s/.*/./; q'`
29859  else
29860    continue
29861  fi
29862  # Extract the definition of DEPDIR, am__include, and am__quote
29863  # from the Makefile without running `make'.
29864  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29865  test -z "$DEPDIR" && continue
29866  am__include=`sed -n 's/^am__include = //p' < "$mf"`
29867  test -z "am__include" && continue
29868  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29869  # When using ansi2knr, U may be empty or an underscore; expand it
29870  U=`sed -n 's/^U = //p' < "$mf"`
29871  # Find all dependency output files, they are included files with
29872  # $(DEPDIR) in their names.  We invoke sed twice because it is the
29873  # simplest approach to changing $(DEPDIR) to its actual value in the
29874  # expansion.
29875  for file in `sed -n "
29876    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29877       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29878    # Make sure the directory exists.
29879    test -f "$dirpart/$file" && continue
29880    fdir=`(dirname "$file") 2>/dev/null ||
29881$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29882	 X"$file" : 'X\(//\)[^/]' \| \
29883	 X"$file" : 'X\(//\)$' \| \
29884	 X"$file" : 'X\(/\)' \| \
29885	 .     : '\(.\)' 2>/dev/null ||
29886echo X"$file" |
29887    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29888  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29889  	  /^X\(\/\/\)$/{ s//\1/; q; }
29890  	  /^X\(\/\).*/{ s//\1/; q; }
29891  	  s/.*/./; q'`
29892    { if $as_mkdir_p; then
29893    mkdir -p $dirpart/$fdir
29894  else
29895    as_dir=$dirpart/$fdir
29896    as_dirs=
29897    while test ! -d "$as_dir"; do
29898      as_dirs="$as_dir $as_dirs"
29899      as_dir=`(dirname "$as_dir") 2>/dev/null ||
29900$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29901	 X"$as_dir" : 'X\(//\)[^/]' \| \
29902	 X"$as_dir" : 'X\(//\)$' \| \
29903	 X"$as_dir" : 'X\(/\)' \| \
29904	 .     : '\(.\)' 2>/dev/null ||
29905echo X"$as_dir" |
29906    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29907  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29908  	  /^X\(\/\/\)$/{ s//\1/; q; }
29909  	  /^X\(\/\).*/{ s//\1/; q; }
29910  	  s/.*/./; q'`
29911    done
29912    test ! -n "$as_dirs" || mkdir $as_dirs
29913  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
29914echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
29915   { (exit 1); exit 1; }; }; }
29916
29917    # echo "creating $dirpart/$file"
29918    echo '# dummy' > "$dirpart/$file"
29919  done
29920done
29921 ;;
29922    default-1 )
29923    for ac_file in $CONFIG_FILES; do
29924      # Support "outfile[:infile[:infile...]]"
29925      case "$ac_file" in
29926        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
29927      esac
29928      # PO directories have a Makefile.in generated from Makefile.in.in.
29929      case "$ac_file" in */Makefile.in)
29930        # Adjust a relative srcdir.
29931        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
29932        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
29933        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
29934        # In autoconf-2.13 it is called $ac_given_srcdir.
29935        # In autoconf-2.50 it is called $srcdir.
29936        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
29937        case "$ac_given_srcdir" in
29938          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
29939          /*) top_srcdir="$ac_given_srcdir" ;;
29940          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
29941        esac
29942        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
29943          rm -f "$ac_dir/POTFILES"
29944          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
29945          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
29946          POMAKEFILEDEPS="POTFILES.in"
29947          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
29948          # on $ac_dir but don't depend on user-specified configuration
29949          # parameters.
29950          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
29951            # The LINGUAS file contains the set of available languages.
29952            if test -n "$OBSOLETE_ALL_LINGUAS"; then
29953              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
29954            fi
29955            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
29956            # Hide the ALL_LINGUAS assigment from automake.
29957            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
29958            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
29959          else
29960            # The set of available languages was given in configure.in.
29961            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
29962          fi
29963          # Compute POFILES
29964          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
29965          # Compute UPDATEPOFILES
29966          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
29967          # Compute DUMMYPOFILES
29968          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
29969          # Compute GMOFILES
29970          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
29971          case "$ac_given_srcdir" in
29972            .) srcdirpre= ;;
29973            *) srcdirpre='$(srcdir)/' ;;
29974          esac
29975          POFILES=
29976          UPDATEPOFILES=
29977          DUMMYPOFILES=
29978          GMOFILES=
29979          for lang in $ALL_LINGUAS; do
29980            POFILES="$POFILES $srcdirpre$lang.po"
29981            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
29982            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
29983            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
29984          done
29985          # CATALOGS depends on both $ac_dir and the user's LINGUAS
29986          # environment variable.
29987          INST_LINGUAS=
29988          if test -n "$ALL_LINGUAS"; then
29989            for presentlang in $ALL_LINGUAS; do
29990              useit=no
29991              if test "%UNSET%" != "$LINGUAS"; then
29992                desiredlanguages="$LINGUAS"
29993              else
29994                desiredlanguages="$ALL_LINGUAS"
29995              fi
29996              for desiredlang in $desiredlanguages; do
29997                # Use the presentlang catalog if desiredlang is
29998                #   a. equal to presentlang, or
29999                #   b. a variant of presentlang (because in this case,
30000                #      presentlang can be used as a fallback for messages
30001                #      which are not translated in the desiredlang catalog).
30002                case "$desiredlang" in
30003                  "$presentlang"*) useit=yes;;
30004                esac
30005              done
30006              if test $useit = yes; then
30007                INST_LINGUAS="$INST_LINGUAS $presentlang"
30008              fi
30009            done
30010          fi
30011          CATALOGS=
30012          if test -n "$INST_LINGUAS"; then
30013            for lang in $INST_LINGUAS; do
30014              CATALOGS="$CATALOGS $lang.gmo"
30015            done
30016          fi
30017          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
30018          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"
30019          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
30020            if test -f "$f"; then
30021              case "$f" in
30022                *.orig | *.bak | *~) ;;
30023                *) cat "$f" >> "$ac_dir/Makefile" ;;
30024              esac
30025            fi
30026          done
30027        fi
30028        ;;
30029      esac
30030    done ;;
30031  esac
30032done
30033_ACEOF
30034
30035cat >>$CONFIG_STATUS <<\_ACEOF
30036
30037{ (exit 0); exit 0; }
30038_ACEOF
30039chmod +x $CONFIG_STATUS
30040ac_clean_files=$ac_clean_files_save
30041
30042
30043# configure is writing to config.log, and then calls config.status.
30044# config.status does its own redirection, appending to config.log.
30045# Unfortunately, on DOS this fails, as config.log is still kept open
30046# by configure, so config.status won't be able to write to it; its
30047# output is simply discarded.  So we exec the FD to /dev/null,
30048# effectively closing config.log, so it can be properly (re)opened and
30049# appended to by config.status.  When coming back to configure, we
30050# need to make the FD available again.
30051if test "$no_create" != yes; then
30052  ac_cs_success=:
30053  ac_config_status_args=
30054  test "$silent" = yes &&
30055    ac_config_status_args="$ac_config_status_args --quiet"
30056  exec 5>/dev/null
30057  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30058  exec 5>>config.log
30059  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30060  # would make configure fail if this is the last instruction.
30061  $ac_cs_success || { (exit 1); exit 1; }
30062fi
30063
30064#
30065# CONFIG_SUBDIRS section.
30066#
30067if test "$no_recursion" != yes; then
30068
30069  # Remove --cache-file and --srcdir arguments so they do not pile up.
30070  ac_sub_configure_args=
30071  ac_prev=
30072  for ac_arg in $ac_configure_args; do
30073    if test -n "$ac_prev"; then
30074      ac_prev=
30075      continue
30076    fi
30077    case $ac_arg in
30078    -cache-file | --cache-file | --cache-fil | --cache-fi \
30079    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
30080      ac_prev=cache_file ;;
30081    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
30082    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
30083    | --c=*)
30084      ;;
30085    --config-cache | -C)
30086      ;;
30087    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
30088      ac_prev=srcdir ;;
30089    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
30090      ;;
30091    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
30092      ac_prev=prefix ;;
30093    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
30094      ;;
30095    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
30096    esac
30097  done
30098
30099  # Always prepend --prefix to ensure using the same prefix
30100  # in subdir configurations.
30101  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
30102
30103  ac_popdir=`pwd`
30104  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
30105
30106    # Do not complain, so a configure script can configure whichever
30107    # parts of a large source tree are present.
30108    test -d $srcdir/$ac_dir || continue
30109
30110    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
30111echo "$as_me: configuring in $ac_dir" >&6;}
30112    { if $as_mkdir_p; then
30113    mkdir -p "$ac_dir"
30114  else
30115    as_dir="$ac_dir"
30116    as_dirs=
30117    while test ! -d "$as_dir"; do
30118      as_dirs="$as_dir $as_dirs"
30119      as_dir=`(dirname "$as_dir") 2>/dev/null ||
30120$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30121	 X"$as_dir" : 'X\(//\)[^/]' \| \
30122	 X"$as_dir" : 'X\(//\)$' \| \
30123	 X"$as_dir" : 'X\(/\)' \| \
30124	 .     : '\(.\)' 2>/dev/null ||
30125echo X"$as_dir" |
30126    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30127  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30128  	  /^X\(\/\/\)$/{ s//\1/; q; }
30129  	  /^X\(\/\).*/{ s//\1/; q; }
30130  	  s/.*/./; q'`
30131    done
30132    test ! -n "$as_dirs" || mkdir $as_dirs
30133  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30134echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30135   { (exit 1); exit 1; }; }; }
30136
30137    ac_builddir=.
30138
30139if test "$ac_dir" != .; then
30140  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30141  # A "../" for each directory in $ac_dir_suffix.
30142  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30143else
30144  ac_dir_suffix= ac_top_builddir=
30145fi
30146
30147case $srcdir in
30148  .)  # No --srcdir option.  We are building in place.
30149    ac_srcdir=.
30150    if test -z "$ac_top_builddir"; then
30151       ac_top_srcdir=.
30152    else
30153       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30154    fi ;;
30155  [\\/]* | ?:[\\/]* )  # Absolute path.
30156    ac_srcdir=$srcdir$ac_dir_suffix;
30157    ac_top_srcdir=$srcdir ;;
30158  *) # Relative path.
30159    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30160    ac_top_srcdir=$ac_top_builddir$srcdir ;;
30161esac
30162
30163# Do not use `cd foo && pwd` to compute absolute paths, because
30164# the directories may not exist.
30165case `pwd` in
30166.) ac_abs_builddir="$ac_dir";;
30167*)
30168  case "$ac_dir" in
30169  .) ac_abs_builddir=`pwd`;;
30170  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30171  *) ac_abs_builddir=`pwd`/"$ac_dir";;
30172  esac;;
30173esac
30174case $ac_abs_builddir in
30175.) ac_abs_top_builddir=${ac_top_builddir}.;;
30176*)
30177  case ${ac_top_builddir}. in
30178  .) ac_abs_top_builddir=$ac_abs_builddir;;
30179  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30180  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30181  esac;;
30182esac
30183case $ac_abs_builddir in
30184.) ac_abs_srcdir=$ac_srcdir;;
30185*)
30186  case $ac_srcdir in
30187  .) ac_abs_srcdir=$ac_abs_builddir;;
30188  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30189  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30190  esac;;
30191esac
30192case $ac_abs_builddir in
30193.) ac_abs_top_srcdir=$ac_top_srcdir;;
30194*)
30195  case $ac_top_srcdir in
30196  .) ac_abs_top_srcdir=$ac_abs_builddir;;
30197  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30198  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30199  esac;;
30200esac
30201
30202
30203    cd $ac_dir
30204
30205    # Check for guested configure; otherwise get Cygnus style configure.
30206    if test -f $ac_srcdir/configure.gnu; then
30207      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
30208    elif test -f $ac_srcdir/configure; then
30209      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
30210    elif test -f $ac_srcdir/configure.in; then
30211      ac_sub_configure=$ac_configure
30212    else
30213      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
30214echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
30215      ac_sub_configure=
30216    fi
30217
30218    # The recursion is here.
30219    if test -n "$ac_sub_configure"; then
30220      # Make the cache file name correct relative to the subdirectory.
30221      case $cache_file in
30222      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
30223      *) # Relative path.
30224	ac_sub_cache_file=$ac_top_builddir$cache_file ;;
30225      esac
30226
30227      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
30228echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
30229      # The eval makes quoting arguments work.
30230      eval $ac_sub_configure $ac_sub_configure_args \
30231	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
30232	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
30233echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
30234   { (exit 1); exit 1; }; }
30235    fi
30236
30237    cd $ac_popdir
30238  done
30239fi
30240
30241