1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for scim-canna 1.0.0.
4#
5# Report bugs to <poincare@ikezoe.net>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252  # Remove one level of quotation (which was required for Make).
253  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254  ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259  # Discard the --no-reexec flag, and continue.
260  shift
261elif test "X$1" = X--fallback-echo; then
262  # Avoid inline document here, it may be left over
263  :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265  # Yippee, $echo works!
266  :
267else
268  # Restart under the correct shell.
269  exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273  # used as fallback echo
274  shift
275  cat <<EOF
276$*
277EOF
278  exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291       echo_test_string="`eval $cmd`" &&
292       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293    then
294      break
295    fi
296  done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301   test "X$echo_testing_string" = "X$echo_test_string"; then
302  :
303else
304  # The Solaris, AIX, and Digital Unix default echo programs unquote
305  # backslashes.  This makes it impossible to quote backslashes using
306  #   echo "$something" | sed 's/\\/\\\\/g'
307  #
308  # So, first we look for a working echo in the user's PATH.
309
310  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311  for dir in $PATH /usr/ucb; do
312    IFS="$lt_save_ifs"
313    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316       test "X$echo_testing_string" = "X$echo_test_string"; then
317      echo="$dir/echo"
318      break
319    fi
320  done
321  IFS="$lt_save_ifs"
322
323  if test "X$echo" = Xecho; then
324    # We didn't find a better echo, so look for alternatives.
325    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327       test "X$echo_testing_string" = "X$echo_test_string"; then
328      # This shell has a builtin print -r that does the trick.
329      echo='print -r'
330    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331	 test "X$CONFIG_SHELL" != X/bin/ksh; then
332      # If we have ksh, try running configure again with it.
333      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334      export ORIGINAL_CONFIG_SHELL
335      CONFIG_SHELL=/bin/ksh
336      export CONFIG_SHELL
337      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338    else
339      # Try using printf.
340      echo='printf %s\n'
341      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343	 test "X$echo_testing_string" = "X$echo_test_string"; then
344	# Cool, printf works
345	:
346      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347	   test "X$echo_testing_string" = 'X\t' &&
348	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349	   test "X$echo_testing_string" = "X$echo_test_string"; then
350	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351	export CONFIG_SHELL
352	SHELL="$CONFIG_SHELL"
353	export SHELL
354	echo="$CONFIG_SHELL $0 --fallback-echo"
355      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356	   test "X$echo_testing_string" = 'X\t' &&
357	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358	   test "X$echo_testing_string" = "X$echo_test_string"; then
359	echo="$CONFIG_SHELL $0 --fallback-echo"
360      else
361	# maybe with a smaller string...
362	prev=:
363
364	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366	  then
367	    break
368	  fi
369	  prev="$cmd"
370	done
371
372	if test "$prev" != 'sed 50q "$0"'; then
373	  echo_test_string=`eval $prev`
374	  export echo_test_string
375	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376	else
377	  # Oops.  We lost completely, so just stick with echo.
378	  echo=echo
379	fi
380      fi
381    fi
382  fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete.  It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='scim-canna'
425PACKAGE_TARNAME='scim-canna'
426PACKAGE_VERSION='1.0.0'
427PACKAGE_STRING='scim-canna 1.0.0'
428PACKAGE_BUGREPORT='poincare@ikezoe.net'
429
430ac_unique_file="configure.ac"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445#  include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450#  include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461#  include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_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 SCIM_CANNA_MAJOR_VERSION SCIM_CANNA_MINOR_VERSION SCIM_CANNA_MICRO_VERSION SCIM_CANNA_VERSION 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 MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os RANLIB ac_ct_RANLIB CPP EGREP ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB GETTEXT_PACKAGE LN_S ECHO AR ac_ct_AR CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LIBTOOL_DEPS PKG_CONFIG ac_pt_PKG_CONFIG SCIM_CFLAGS SCIM_LIBS SCIM_GTKUTILS_CFLAGS SCIM_GTKUTILS_LIBS SCIM_VERSION SCIM_BUILD_SETUP_TRUE SCIM_BUILD_SETUP_FALSE SCIM_BUILD_SETUP ac_aux_dir CANNA_LIBS CANNA_CFLAGS LIBTOOL_EXPORT_OPTIONS SCIM_DEBUG_FLAGS SCIM_ICONDIR SCIM_MODULEDIR LIBOBJS LTLIBOBJS'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512  # If the previous option needs an argument, assign it.
513  if test -n "$ac_prev"; then
514    eval "$ac_prev=\$ac_option"
515    ac_prev=
516    continue
517  fi
518
519  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521  # Accept the important Cygnus configure options, so we can diagnose typos.
522
523  case $ac_option in
524
525  -bindir | --bindir | --bindi | --bind | --bin | --bi)
526    ac_prev=bindir ;;
527  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528    bindir=$ac_optarg ;;
529
530  -build | --build | --buil | --bui | --bu)
531    ac_prev=build_alias ;;
532  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533    build_alias=$ac_optarg ;;
534
535  -cache-file | --cache-file | --cache-fil | --cache-fi \
536  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537    ac_prev=cache_file ;;
538  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540    cache_file=$ac_optarg ;;
541
542  --config-cache | -C)
543    cache_file=config.cache ;;
544
545  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546    ac_prev=datadir ;;
547  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548  | --da=*)
549    datadir=$ac_optarg ;;
550
551  -disable-* | --disable-*)
552    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553    # Reject names that are not valid shell variable names.
554    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556   { (exit 1); exit 1; }; }
557    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558    eval "enable_$ac_feature=no" ;;
559
560  -enable-* | --enable-*)
561    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562    # Reject names that are not valid shell variable names.
563    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565   { (exit 1); exit 1; }; }
566    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567    case $ac_option in
568      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569      *) ac_optarg=yes ;;
570    esac
571    eval "enable_$ac_feature='$ac_optarg'" ;;
572
573  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575  | --exec | --exe | --ex)
576    ac_prev=exec_prefix ;;
577  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579  | --exec=* | --exe=* | --ex=*)
580    exec_prefix=$ac_optarg ;;
581
582  -gas | --gas | --ga | --g)
583    # Obsolete; use --with-gas.
584    with_gas=yes ;;
585
586  -help | --help | --hel | --he | -h)
587    ac_init_help=long ;;
588  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589    ac_init_help=recursive ;;
590  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591    ac_init_help=short ;;
592
593  -host | --host | --hos | --ho)
594    ac_prev=host_alias ;;
595  -host=* | --host=* | --hos=* | --ho=*)
596    host_alias=$ac_optarg ;;
597
598  -includedir | --includedir | --includedi | --included | --include \
599  | --includ | --inclu | --incl | --inc)
600    ac_prev=includedir ;;
601  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602  | --includ=* | --inclu=* | --incl=* | --inc=*)
603    includedir=$ac_optarg ;;
604
605  -infodir | --infodir | --infodi | --infod | --info | --inf)
606    ac_prev=infodir ;;
607  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608    infodir=$ac_optarg ;;
609
610  -libdir | --libdir | --libdi | --libd)
611    ac_prev=libdir ;;
612  -libdir=* | --libdir=* | --libdi=* | --libd=*)
613    libdir=$ac_optarg ;;
614
615  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616  | --libexe | --libex | --libe)
617    ac_prev=libexecdir ;;
618  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619  | --libexe=* | --libex=* | --libe=*)
620    libexecdir=$ac_optarg ;;
621
622  -localstatedir | --localstatedir | --localstatedi | --localstated \
623  | --localstate | --localstat | --localsta | --localst \
624  | --locals | --local | --loca | --loc | --lo)
625    ac_prev=localstatedir ;;
626  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629    localstatedir=$ac_optarg ;;
630
631  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632    ac_prev=mandir ;;
633  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634    mandir=$ac_optarg ;;
635
636  -nfp | --nfp | --nf)
637    # Obsolete; use --without-fp.
638    with_fp=no ;;
639
640  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641  | --no-cr | --no-c | -n)
642    no_create=yes ;;
643
644  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646    no_recursion=yes ;;
647
648  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650  | --oldin | --oldi | --old | --ol | --o)
651    ac_prev=oldincludedir ;;
652  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655    oldincludedir=$ac_optarg ;;
656
657  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658    ac_prev=prefix ;;
659  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660    prefix=$ac_optarg ;;
661
662  -program-prefix | --program-prefix | --program-prefi | --program-pref \
663  | --program-pre | --program-pr | --program-p)
664    ac_prev=program_prefix ;;
665  -program-prefix=* | --program-prefix=* | --program-prefi=* \
666  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667    program_prefix=$ac_optarg ;;
668
669  -program-suffix | --program-suffix | --program-suffi | --program-suff \
670  | --program-suf | --program-su | --program-s)
671    ac_prev=program_suffix ;;
672  -program-suffix=* | --program-suffix=* | --program-suffi=* \
673  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674    program_suffix=$ac_optarg ;;
675
676  -program-transform-name | --program-transform-name \
677  | --program-transform-nam | --program-transform-na \
678  | --program-transform-n | --program-transform- \
679  | --program-transform | --program-transfor \
680  | --program-transfo | --program-transf \
681  | --program-trans | --program-tran \
682  | --progr-tra | --program-tr | --program-t)
683    ac_prev=program_transform_name ;;
684  -program-transform-name=* | --program-transform-name=* \
685  | --program-transform-nam=* | --program-transform-na=* \
686  | --program-transform-n=* | --program-transform-=* \
687  | --program-transform=* | --program-transfor=* \
688  | --program-transfo=* | --program-transf=* \
689  | --program-trans=* | --program-tran=* \
690  | --progr-tra=* | --program-tr=* | --program-t=*)
691    program_transform_name=$ac_optarg ;;
692
693  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694  | -silent | --silent | --silen | --sile | --sil)
695    silent=yes ;;
696
697  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698    ac_prev=sbindir ;;
699  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700  | --sbi=* | --sb=*)
701    sbindir=$ac_optarg ;;
702
703  -sharedstatedir | --sharedstatedir | --sharedstatedi \
704  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705  | --sharedst | --shareds | --shared | --share | --shar \
706  | --sha | --sh)
707    ac_prev=sharedstatedir ;;
708  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711  | --sha=* | --sh=*)
712    sharedstatedir=$ac_optarg ;;
713
714  -site | --site | --sit)
715    ac_prev=site ;;
716  -site=* | --site=* | --sit=*)
717    site=$ac_optarg ;;
718
719  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720    ac_prev=srcdir ;;
721  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722    srcdir=$ac_optarg ;;
723
724  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725  | --syscon | --sysco | --sysc | --sys | --sy)
726    ac_prev=sysconfdir ;;
727  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729    sysconfdir=$ac_optarg ;;
730
731  -target | --target | --targe | --targ | --tar | --ta | --t)
732    ac_prev=target_alias ;;
733  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734    target_alias=$ac_optarg ;;
735
736  -v | -verbose | --verbose | --verbos | --verbo | --verb)
737    verbose=yes ;;
738
739  -version | --version | --versio | --versi | --vers | -V)
740    ac_init_version=: ;;
741
742  -with-* | --with-*)
743    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744    # Reject names that are not valid shell variable names.
745    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746      { echo "$as_me: error: invalid package name: $ac_package" >&2
747   { (exit 1); exit 1; }; }
748    ac_package=`echo $ac_package| sed 's/-/_/g'`
749    case $ac_option in
750      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751      *) ac_optarg=yes ;;
752    esac
753    eval "with_$ac_package='$ac_optarg'" ;;
754
755  -without-* | --without-*)
756    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757    # Reject names that are not valid shell variable names.
758    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759      { echo "$as_me: error: invalid package name: $ac_package" >&2
760   { (exit 1); exit 1; }; }
761    ac_package=`echo $ac_package | sed 's/-/_/g'`
762    eval "with_$ac_package=no" ;;
763
764  --x)
765    # Obsolete; use --with-x.
766    with_x=yes ;;
767
768  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769  | --x-incl | --x-inc | --x-in | --x-i)
770    ac_prev=x_includes ;;
771  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773    x_includes=$ac_optarg ;;
774
775  -x-libraries | --x-libraries | --x-librarie | --x-librari \
776  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777    ac_prev=x_libraries ;;
778  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780    x_libraries=$ac_optarg ;;
781
782  -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784   { (exit 1); exit 1; }; }
785    ;;
786
787  *=*)
788    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789    # Reject names that are not valid shell variable names.
790    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792   { (exit 1); exit 1; }; }
793    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794    eval "$ac_envvar='$ac_optarg'"
795    export $ac_envvar ;;
796
797  *)
798    # FIXME: should be removed in autoconf 3.0.
799    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803    ;;
804
805  esac
806done
807
808if test -n "$ac_prev"; then
809  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810  { echo "$as_me: error: missing argument to $ac_option" >&2
811   { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817  eval ac_val=$`echo $ac_var`
818  case $ac_val in
819    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821   { (exit 1); exit 1; }; };;
822  esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827	      localstatedir libdir includedir oldincludedir infodir mandir
828do
829  eval ac_val=$`echo $ac_var`
830  case $ac_val in
831    [\\/$]* | ?:[\\/]* ) ;;
832    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833   { (exit 1); exit 1; }; };;
834  esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846  if test "x$build_alias" = x; then
847    cross_compiling=maybe
848    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849    If a cross compiler is detected then cross compile mode will be used." >&2
850  elif test "x$build_alias" != "x$host_alias"; then
851    cross_compiling=yes
852  fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863  ac_srcdir_defaulted=yes
864  # Try the directory containing this script, then its parent.
865  ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867	 X"$0" : 'X\(//\)[^/]' \| \
868	 X"$0" : 'X\(//\)$' \| \
869	 X"$0" : 'X\(/\)' \| \
870	 .     : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874  	  /^X\(\/\/\)$/{ s//\1/; q; }
875  	  /^X\(\/\).*/{ s//\1/; q; }
876  	  s/.*/./; q'`
877  srcdir=$ac_confdir
878  if test ! -r $srcdir/$ac_unique_file; then
879    srcdir=..
880  fi
881else
882  ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885  if test "$ac_srcdir_defaulted" = yes; then
886    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887   { (exit 1); exit 1; }; }
888  else
889    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890   { (exit 1); exit 1; }; }
891  fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895   { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
950ac_env_PKG_CONFIG_value=$PKG_CONFIG
951ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
952ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
953ac_env_SCIM_CFLAGS_set=${SCIM_CFLAGS+set}
954ac_env_SCIM_CFLAGS_value=$SCIM_CFLAGS
955ac_cv_env_SCIM_CFLAGS_set=${SCIM_CFLAGS+set}
956ac_cv_env_SCIM_CFLAGS_value=$SCIM_CFLAGS
957ac_env_SCIM_LIBS_set=${SCIM_LIBS+set}
958ac_env_SCIM_LIBS_value=$SCIM_LIBS
959ac_cv_env_SCIM_LIBS_set=${SCIM_LIBS+set}
960ac_cv_env_SCIM_LIBS_value=$SCIM_LIBS
961ac_env_SCIM_GTKUTILS_CFLAGS_set=${SCIM_GTKUTILS_CFLAGS+set}
962ac_env_SCIM_GTKUTILS_CFLAGS_value=$SCIM_GTKUTILS_CFLAGS
963ac_cv_env_SCIM_GTKUTILS_CFLAGS_set=${SCIM_GTKUTILS_CFLAGS+set}
964ac_cv_env_SCIM_GTKUTILS_CFLAGS_value=$SCIM_GTKUTILS_CFLAGS
965ac_env_SCIM_GTKUTILS_LIBS_set=${SCIM_GTKUTILS_LIBS+set}
966ac_env_SCIM_GTKUTILS_LIBS_value=$SCIM_GTKUTILS_LIBS
967ac_cv_env_SCIM_GTKUTILS_LIBS_set=${SCIM_GTKUTILS_LIBS+set}
968ac_cv_env_SCIM_GTKUTILS_LIBS_value=$SCIM_GTKUTILS_LIBS
969
970#
971# Report the --help message.
972#
973if test "$ac_init_help" = "long"; then
974  # Omit some internal or obsolete options to make the list less imposing.
975  # This message is too long to be a string in the A/UX 3.1 sh.
976  cat <<_ACEOF
977\`configure' configures scim-canna 1.0.0 to adapt to many kinds of systems.
978
979Usage: $0 [OPTION]... [VAR=VALUE]...
980
981To assign environment variables (e.g., CC, CFLAGS...), specify them as
982VAR=VALUE.  See below for descriptions of some of the useful variables.
983
984Defaults for the options are specified in brackets.
985
986Configuration:
987  -h, --help              display this help and exit
988      --help=short        display options specific to this package
989      --help=recursive    display the short help of all the included packages
990  -V, --version           display version information and exit
991  -q, --quiet, --silent   do not print \`checking...' messages
992      --cache-file=FILE   cache test results in FILE [disabled]
993  -C, --config-cache      alias for \`--cache-file=config.cache'
994  -n, --no-create         do not create output files
995      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
996
997_ACEOF
998
999  cat <<_ACEOF
1000Installation directories:
1001  --prefix=PREFIX         install architecture-independent files in PREFIX
1002			  [$ac_default_prefix]
1003  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1004			  [PREFIX]
1005
1006By default, \`make install' will install all the files in
1007\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1008an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1009for instance \`--prefix=\$HOME'.
1010
1011For better control, use the options below.
1012
1013Fine tuning of the installation directories:
1014  --bindir=DIR           user executables [EPREFIX/bin]
1015  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1016  --libexecdir=DIR       program executables [EPREFIX/libexec]
1017  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1018  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1019  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1020  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1021  --libdir=DIR           object code libraries [EPREFIX/lib]
1022  --includedir=DIR       C header files [PREFIX/include]
1023  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1024  --infodir=DIR          info documentation [PREFIX/info]
1025  --mandir=DIR           man documentation [PREFIX/man]
1026_ACEOF
1027
1028  cat <<\_ACEOF
1029
1030Program names:
1031  --program-prefix=PREFIX            prepend PREFIX to installed program names
1032  --program-suffix=SUFFIX            append SUFFIX to installed program names
1033  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1034
1035System types:
1036  --build=BUILD     configure for building on BUILD [guessed]
1037  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1038_ACEOF
1039fi
1040
1041if test -n "$ac_init_help"; then
1042  case $ac_init_help in
1043     short | recursive ) echo "Configuration of scim-canna 1.0.0:";;
1044   esac
1045  cat <<\_ACEOF
1046
1047Optional Features:
1048  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1049  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1050  --disable-nls           do not use Native Language Support
1051  --disable-dependency-tracking  speeds up one-time build
1052  --enable-dependency-tracking   do not reject slow dependency extractors
1053  --disable-rpath         do not hardcode runtime library paths
1054  --enable-shared[=PKGS]
1055                          build shared libraries [default=yes]
1056  --enable-static[=PKGS]
1057                          build static libraries [default=yes]
1058  --enable-fast-install[=PKGS]
1059                          optimize for fast installation [default=yes]
1060  --disable-libtool-lock  avoid locking (might break parallel builds)
1061  --enable-ltdl-install   install libltdl
1062  --enable-debug     Turn on debugging
1063
1064Optional Packages:
1065  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1066  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1067  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1068  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1069  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1070  --with-included-gettext use the GNU gettext library included here
1071  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1072  --without-libintl-prefix     don't search for libintl in includedir and libdir
1073  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1074  --with-pic              try to use only PIC/non-PIC objects [default=use
1075                          both]
1076  --with-tags[=TAGS]
1077                          include additional configurations [automatic]
1078
1079Some influential environment variables:
1080  CC          C compiler command
1081  CFLAGS      C compiler flags
1082  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1083              nonstandard directory <lib dir>
1084  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1085              headers in a nonstandard directory <include dir>
1086  CPP         C preprocessor
1087  CXX         C++ compiler command
1088  CXXFLAGS    C++ compiler flags
1089  CXXCPP      C++ preprocessor
1090  F77         Fortran 77 compiler command
1091  FFLAGS      Fortran 77 compiler flags
1092  PKG_CONFIG  path to pkg-config utility
1093  SCIM_CFLAGS C compiler flags for SCIM, overriding pkg-config
1094  SCIM_LIBS   linker flags for SCIM, overriding pkg-config
1095  SCIM_GTKUTILS_CFLAGS
1096              C compiler flags for SCIM_GTKUTILS, overriding pkg-config
1097  SCIM_GTKUTILS_LIBS
1098              linker flags for SCIM_GTKUTILS, overriding pkg-config
1099
1100Use these variables to override the choices made by `configure' or to help
1101it to find libraries and programs with nonstandard names/locations.
1102
1103Report bugs to <poincare@ikezoe.net>.
1104_ACEOF
1105fi
1106
1107if test "$ac_init_help" = "recursive"; then
1108  # If there are subdirs, report their specific --help.
1109  ac_popdir=`pwd`
1110  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1111    test -d $ac_dir || continue
1112    ac_builddir=.
1113
1114if test "$ac_dir" != .; then
1115  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1116  # A "../" for each directory in $ac_dir_suffix.
1117  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1118else
1119  ac_dir_suffix= ac_top_builddir=
1120fi
1121
1122case $srcdir in
1123  .)  # No --srcdir option.  We are building in place.
1124    ac_srcdir=.
1125    if test -z "$ac_top_builddir"; then
1126       ac_top_srcdir=.
1127    else
1128       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1129    fi ;;
1130  [\\/]* | ?:[\\/]* )  # Absolute path.
1131    ac_srcdir=$srcdir$ac_dir_suffix;
1132    ac_top_srcdir=$srcdir ;;
1133  *) # Relative path.
1134    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1135    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1136esac
1137
1138# Do not use `cd foo && pwd` to compute absolute paths, because
1139# the directories may not exist.
1140case `pwd` in
1141.) ac_abs_builddir="$ac_dir";;
1142*)
1143  case "$ac_dir" in
1144  .) ac_abs_builddir=`pwd`;;
1145  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1146  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1147  esac;;
1148esac
1149case $ac_abs_builddir in
1150.) ac_abs_top_builddir=${ac_top_builddir}.;;
1151*)
1152  case ${ac_top_builddir}. in
1153  .) ac_abs_top_builddir=$ac_abs_builddir;;
1154  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1155  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1156  esac;;
1157esac
1158case $ac_abs_builddir in
1159.) ac_abs_srcdir=$ac_srcdir;;
1160*)
1161  case $ac_srcdir in
1162  .) ac_abs_srcdir=$ac_abs_builddir;;
1163  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1164  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1165  esac;;
1166esac
1167case $ac_abs_builddir in
1168.) ac_abs_top_srcdir=$ac_top_srcdir;;
1169*)
1170  case $ac_top_srcdir in
1171  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1172  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1173  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1174  esac;;
1175esac
1176
1177    cd $ac_dir
1178    # Check for guested configure; otherwise get Cygnus style configure.
1179    if test -f $ac_srcdir/configure.gnu; then
1180      echo
1181      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1182    elif test -f $ac_srcdir/configure; then
1183      echo
1184      $SHELL $ac_srcdir/configure  --help=recursive
1185    elif test -f $ac_srcdir/configure.ac ||
1186	   test -f $ac_srcdir/configure.in; then
1187      echo
1188      $ac_configure --help
1189    else
1190      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1191    fi
1192    cd "$ac_popdir"
1193  done
1194fi
1195
1196test -n "$ac_init_help" && exit 0
1197if $ac_init_version; then
1198  cat <<\_ACEOF
1199scim-canna configure 1.0.0
1200generated by GNU Autoconf 2.59
1201
1202Copyright (C) 2003 Free Software Foundation, Inc.
1203This configure script is free software; the Free Software Foundation
1204gives unlimited permission to copy, distribute and modify it.
1205_ACEOF
1206  exit 0
1207fi
1208exec 5>config.log
1209cat >&5 <<_ACEOF
1210This file contains any messages produced by compilers while
1211running configure, to aid debugging if configure makes a mistake.
1212
1213It was created by scim-canna $as_me 1.0.0, which was
1214generated by GNU Autoconf 2.59.  Invocation command line was
1215
1216  $ $0 $@
1217
1218_ACEOF
1219{
1220cat <<_ASUNAME
1221## --------- ##
1222## Platform. ##
1223## --------- ##
1224
1225hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1226uname -m = `(uname -m) 2>/dev/null || echo unknown`
1227uname -r = `(uname -r) 2>/dev/null || echo unknown`
1228uname -s = `(uname -s) 2>/dev/null || echo unknown`
1229uname -v = `(uname -v) 2>/dev/null || echo unknown`
1230
1231/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1232/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1233
1234/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1235/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1236/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1237hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1238/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1239/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1240/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1241
1242_ASUNAME
1243
1244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1245for as_dir in $PATH
1246do
1247  IFS=$as_save_IFS
1248  test -z "$as_dir" && as_dir=.
1249  echo "PATH: $as_dir"
1250done
1251
1252} >&5
1253
1254cat >&5 <<_ACEOF
1255
1256
1257## ----------- ##
1258## Core tests. ##
1259## ----------- ##
1260
1261_ACEOF
1262
1263
1264# Keep a trace of the command line.
1265# Strip out --no-create and --no-recursion so they do not pile up.
1266# Strip out --silent because we don't want to record it for future runs.
1267# Also quote any args containing shell meta-characters.
1268# Make two passes to allow for proper duplicate-argument suppression.
1269ac_configure_args=
1270ac_configure_args0=
1271ac_configure_args1=
1272ac_sep=
1273ac_must_keep_next=false
1274for ac_pass in 1 2
1275do
1276  for ac_arg
1277  do
1278    case $ac_arg in
1279    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1280    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1281    | -silent | --silent | --silen | --sile | --sil)
1282      continue ;;
1283    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1285    esac
1286    case $ac_pass in
1287    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1288    2)
1289      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1290      if test $ac_must_keep_next = true; then
1291	ac_must_keep_next=false # Got value, back to normal.
1292      else
1293	case $ac_arg in
1294	  *=* | --config-cache | -C | -disable-* | --disable-* \
1295	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1296	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1297	  | -with-* | --with-* | -without-* | --without-* | --x)
1298	    case "$ac_configure_args0 " in
1299	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1300	    esac
1301	    ;;
1302	  -* ) ac_must_keep_next=true ;;
1303	esac
1304      fi
1305      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1306      # Get rid of the leading space.
1307      ac_sep=" "
1308      ;;
1309    esac
1310  done
1311done
1312$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1313$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1314
1315# When interrupted or exit'd, cleanup temporary files, and complete
1316# config.log.  We remove comments because anyway the quotes in there
1317# would cause problems or look ugly.
1318# WARNING: Be sure not to use single quotes in there, as some shells,
1319# such as our DU 5.0 friend, will then `close' the trap.
1320trap 'exit_status=$?
1321  # Save into config.log some information that might help in debugging.
1322  {
1323    echo
1324
1325    cat <<\_ASBOX
1326## ---------------- ##
1327## Cache variables. ##
1328## ---------------- ##
1329_ASBOX
1330    echo
1331    # The following way of writing the cache mishandles newlines in values,
1332{
1333  (set) 2>&1 |
1334    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1335    *ac_space=\ *)
1336      sed -n \
1337	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1338	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1339      ;;
1340    *)
1341      sed -n \
1342	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1343      ;;
1344    esac;
1345}
1346    echo
1347
1348    cat <<\_ASBOX
1349## ----------------- ##
1350## Output variables. ##
1351## ----------------- ##
1352_ASBOX
1353    echo
1354    for ac_var in $ac_subst_vars
1355    do
1356      eval ac_val=$`echo $ac_var`
1357      echo "$ac_var='"'"'$ac_val'"'"'"
1358    done | sort
1359    echo
1360
1361    if test -n "$ac_subst_files"; then
1362      cat <<\_ASBOX
1363## ------------- ##
1364## Output files. ##
1365## ------------- ##
1366_ASBOX
1367      echo
1368      for ac_var in $ac_subst_files
1369      do
1370	eval ac_val=$`echo $ac_var`
1371	echo "$ac_var='"'"'$ac_val'"'"'"
1372      done | sort
1373      echo
1374    fi
1375
1376    if test -s confdefs.h; then
1377      cat <<\_ASBOX
1378## ----------- ##
1379## confdefs.h. ##
1380## ----------- ##
1381_ASBOX
1382      echo
1383      sed "/^$/d" confdefs.h | sort
1384      echo
1385    fi
1386    test "$ac_signal" != 0 &&
1387      echo "$as_me: caught signal $ac_signal"
1388    echo "$as_me: exit $exit_status"
1389  } >&5
1390  rm -f core *.core &&
1391  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1392    exit $exit_status
1393     ' 0
1394for ac_signal in 1 2 13 15; do
1395  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1396done
1397ac_signal=0
1398
1399# confdefs.h avoids OS command line length limits that DEFS can exceed.
1400rm -rf conftest* confdefs.h
1401# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1402echo >confdefs.h
1403
1404# Predefined preprocessor variables.
1405
1406cat >>confdefs.h <<_ACEOF
1407#define PACKAGE_NAME "$PACKAGE_NAME"
1408_ACEOF
1409
1410
1411cat >>confdefs.h <<_ACEOF
1412#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1413_ACEOF
1414
1415
1416cat >>confdefs.h <<_ACEOF
1417#define PACKAGE_VERSION "$PACKAGE_VERSION"
1418_ACEOF
1419
1420
1421cat >>confdefs.h <<_ACEOF
1422#define PACKAGE_STRING "$PACKAGE_STRING"
1423_ACEOF
1424
1425
1426cat >>confdefs.h <<_ACEOF
1427#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1428_ACEOF
1429
1430
1431# Let the site file select an alternate cache file if it wants to.
1432# Prefer explicitly selected file to automatically selected ones.
1433if test -z "$CONFIG_SITE"; then
1434  if test "x$prefix" != xNONE; then
1435    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1436  else
1437    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1438  fi
1439fi
1440for ac_site_file in $CONFIG_SITE; do
1441  if test -r "$ac_site_file"; then
1442    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1443echo "$as_me: loading site script $ac_site_file" >&6;}
1444    sed 's/^/| /' "$ac_site_file" >&5
1445    . "$ac_site_file"
1446  fi
1447done
1448
1449if test -r "$cache_file"; then
1450  # Some versions of bash will fail to source /dev/null (special
1451  # files actually), so we avoid doing that.
1452  if test -f "$cache_file"; then
1453    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1454echo "$as_me: loading cache $cache_file" >&6;}
1455    case $cache_file in
1456      [\\/]* | ?:[\\/]* ) . $cache_file;;
1457      *)                      . ./$cache_file;;
1458    esac
1459  fi
1460else
1461  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1462echo "$as_me: creating cache $cache_file" >&6;}
1463  >$cache_file
1464fi
1465
1466# Check that the precious variables saved in the cache have kept the same
1467# value.
1468ac_cache_corrupted=false
1469for ac_var in `(set) 2>&1 |
1470	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1471  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1472  eval ac_new_set=\$ac_env_${ac_var}_set
1473  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1474  eval ac_new_val="\$ac_env_${ac_var}_value"
1475  case $ac_old_set,$ac_new_set in
1476    set,)
1477      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1478echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1479      ac_cache_corrupted=: ;;
1480    ,set)
1481      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1482echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1483      ac_cache_corrupted=: ;;
1484    ,);;
1485    *)
1486      if test "x$ac_old_val" != "x$ac_new_val"; then
1487	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1488echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1489	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1490echo "$as_me:   former value:  $ac_old_val" >&2;}
1491	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1492echo "$as_me:   current value: $ac_new_val" >&2;}
1493	ac_cache_corrupted=:
1494      fi;;
1495  esac
1496  # Pass precious variables to config.status.
1497  if test "$ac_new_set" = set; then
1498    case $ac_new_val in
1499    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1500      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1501    *) ac_arg=$ac_var=$ac_new_val ;;
1502    esac
1503    case " $ac_configure_args " in
1504      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1505      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1506    esac
1507  fi
1508done
1509if $ac_cache_corrupted; then
1510  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1511echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1512  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1513echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1514   { (exit 1); exit 1; }; }
1515fi
1516
1517ac_ext=c
1518ac_cpp='$CPP $CPPFLAGS'
1519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1521ac_compiler_gnu=$ac_cv_c_compiler_gnu
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551# Save this value here, since automake will set cflags and cxxflags later
1552cflags_set=${CFLAGS+set}
1553cppflags_set=${CPPFLAGS+set}
1554
1555SCIM_CANNA_MAJOR_VERSION=1
1556SCIM_CANNA_MINOR_VERSION=0
1557SCIM_CANNA_MICRO_VERSION=0
1558
1559SCIM_CANNA_VERSION=$SCIM_CANNA_MAJOR_VERSION.$SCIM_CANNA_MINOR_VERSION.$SCIM_CANNA_MICRO_VERSION
1560
1561
1562
1563
1564
1565
1566# Init automake stuff
1567am__api_version="1.9"
1568ac_aux_dir=
1569for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1570  if test -f $ac_dir/install-sh; then
1571    ac_aux_dir=$ac_dir
1572    ac_install_sh="$ac_aux_dir/install-sh -c"
1573    break
1574  elif test -f $ac_dir/install.sh; then
1575    ac_aux_dir=$ac_dir
1576    ac_install_sh="$ac_aux_dir/install.sh -c"
1577    break
1578  elif test -f $ac_dir/shtool; then
1579    ac_aux_dir=$ac_dir
1580    ac_install_sh="$ac_aux_dir/shtool install -c"
1581    break
1582  fi
1583done
1584if test -z "$ac_aux_dir"; then
1585  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1586echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1587   { (exit 1); exit 1; }; }
1588fi
1589ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1590ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1591ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1592
1593# Find a good install program.  We prefer a C program (faster),
1594# so one script is as good as another.  But avoid the broken or
1595# incompatible versions:
1596# SysV /etc/install, /usr/sbin/install
1597# SunOS /usr/etc/install
1598# IRIX /sbin/install
1599# AIX /bin/install
1600# AmigaOS /C/install, which installs bootblocks on floppy discs
1601# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1602# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1603# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1604# OS/2's system install, which has a completely different semantic
1605# ./install, which can be erroneously created by make from ./install.sh.
1606echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1607echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1608if test -z "$INSTALL"; then
1609if test "${ac_cv_path_install+set}" = set; then
1610  echo $ECHO_N "(cached) $ECHO_C" >&6
1611else
1612  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613for as_dir in $PATH
1614do
1615  IFS=$as_save_IFS
1616  test -z "$as_dir" && as_dir=.
1617  # Account for people who put trailing slashes in PATH elements.
1618case $as_dir/ in
1619  ./ | .// | /cC/* | \
1620  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1621  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1622  /usr/ucb/* ) ;;
1623  *)
1624    # OSF1 and SCO ODT 3.0 have their own names for install.
1625    # Don't use installbsd from OSF since it installs stuff as root
1626    # by default.
1627    for ac_prog in ginstall scoinst install; do
1628      for ac_exec_ext in '' $ac_executable_extensions; do
1629	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1630	  if test $ac_prog = install &&
1631	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1632	    # AIX install.  It has an incompatible calling convention.
1633	    :
1634	  elif test $ac_prog = install &&
1635	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1636	    # program-specific install script used by HP pwplus--don't use.
1637	    :
1638	  else
1639	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1640	    break 3
1641	  fi
1642	fi
1643      done
1644    done
1645    ;;
1646esac
1647done
1648
1649
1650fi
1651  if test "${ac_cv_path_install+set}" = set; then
1652    INSTALL=$ac_cv_path_install
1653  else
1654    # As a last resort, use the slow shell script.  We don't cache a
1655    # path for INSTALL within a source directory, because that will
1656    # break other packages using the cache if that directory is
1657    # removed, or if the path is relative.
1658    INSTALL=$ac_install_sh
1659  fi
1660fi
1661echo "$as_me:$LINENO: result: $INSTALL" >&5
1662echo "${ECHO_T}$INSTALL" >&6
1663
1664# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1665# It thinks the first close brace ends the variable substitution.
1666test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1667
1668test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1669
1670test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1671
1672echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1673echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1674# Just in case
1675sleep 1
1676echo timestamp > conftest.file
1677# Do `set' in a subshell so we don't clobber the current shell's
1678# arguments.  Must try -L first in case configure is actually a
1679# symlink; some systems play weird games with the mod time of symlinks
1680# (eg FreeBSD returns the mod time of the symlink's containing
1681# directory).
1682if (
1683   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1684   if test "$*" = "X"; then
1685      # -L didn't work.
1686      set X `ls -t $srcdir/configure conftest.file`
1687   fi
1688   rm -f conftest.file
1689   if test "$*" != "X $srcdir/configure conftest.file" \
1690      && test "$*" != "X conftest.file $srcdir/configure"; then
1691
1692      # If neither matched, then we have a broken ls.  This can happen
1693      # if, for instance, CONFIG_SHELL is bash and it inherits a
1694      # broken ls alias from the environment.  This has actually
1695      # happened.  Such a system could not be considered "sane".
1696      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1697alias in your environment" >&5
1698echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1699alias in your environment" >&2;}
1700   { (exit 1); exit 1; }; }
1701   fi
1702
1703   test "$2" = conftest.file
1704   )
1705then
1706   # Ok.
1707   :
1708else
1709   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1710Check your system clock" >&5
1711echo "$as_me: error: newly created file is older than distributed files!
1712Check your system clock" >&2;}
1713   { (exit 1); exit 1; }; }
1714fi
1715echo "$as_me:$LINENO: result: yes" >&5
1716echo "${ECHO_T}yes" >&6
1717test "$program_prefix" != NONE &&
1718  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1719# Use a double $ so make ignores it.
1720test "$program_suffix" != NONE &&
1721  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1722# Double any \ or $.  echo might interpret backslashes.
1723# By default was `s,x,x', remove it if useless.
1724cat <<\_ACEOF >conftest.sed
1725s/[\\$]/&&/g;s/;s,x,x,$//
1726_ACEOF
1727program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1728rm conftest.sed
1729
1730# expand $ac_aux_dir to an absolute path
1731am_aux_dir=`cd $ac_aux_dir && pwd`
1732
1733test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1734# Use eval to expand $SHELL
1735if eval "$MISSING --run true"; then
1736  am_missing_run="$MISSING --run "
1737else
1738  am_missing_run=
1739  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1740echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1741fi
1742
1743if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1744  # We used to keeping the `.' as first argument, in order to
1745  # allow $(mkdir_p) to be used without argument.  As in
1746  #   $(mkdir_p) $(somedir)
1747  # where $(somedir) is conditionally defined.  However this is wrong
1748  # for two reasons:
1749  #  1. if the package is installed by a user who cannot write `.'
1750  #     make install will fail,
1751  #  2. the above comment should most certainly read
1752  #     $(mkdir_p) $(DESTDIR)$(somedir)
1753  #     so it does not work when $(somedir) is undefined and
1754  #     $(DESTDIR) is not.
1755  #  To support the latter case, we have to write
1756  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1757  #  so the `.' trick is pointless.
1758  mkdir_p='mkdir -p --'
1759else
1760  # On NextStep and OpenStep, the `mkdir' command does not
1761  # recognize any option.  It will interpret all options as
1762  # directories to create, and then abort because `.' already
1763  # exists.
1764  for d in ./-p ./--version;
1765  do
1766    test -d $d && rmdir $d
1767  done
1768  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1769  if test -f "$ac_aux_dir/mkinstalldirs"; then
1770    mkdir_p='$(mkinstalldirs)'
1771  else
1772    mkdir_p='$(install_sh) -d'
1773  fi
1774fi
1775
1776for ac_prog in gawk mawk nawk awk
1777do
1778  # Extract the first word of "$ac_prog", so it can be a program name with args.
1779set dummy $ac_prog; ac_word=$2
1780echo "$as_me:$LINENO: checking for $ac_word" >&5
1781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1782if test "${ac_cv_prog_AWK+set}" = set; then
1783  echo $ECHO_N "(cached) $ECHO_C" >&6
1784else
1785  if test -n "$AWK"; then
1786  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1787else
1788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789for as_dir in $PATH
1790do
1791  IFS=$as_save_IFS
1792  test -z "$as_dir" && as_dir=.
1793  for ac_exec_ext in '' $ac_executable_extensions; do
1794  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1795    ac_cv_prog_AWK="$ac_prog"
1796    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1797    break 2
1798  fi
1799done
1800done
1801
1802fi
1803fi
1804AWK=$ac_cv_prog_AWK
1805if test -n "$AWK"; then
1806  echo "$as_me:$LINENO: result: $AWK" >&5
1807echo "${ECHO_T}$AWK" >&6
1808else
1809  echo "$as_me:$LINENO: result: no" >&5
1810echo "${ECHO_T}no" >&6
1811fi
1812
1813  test -n "$AWK" && break
1814done
1815
1816echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1817echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1818set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1819if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1820  echo $ECHO_N "(cached) $ECHO_C" >&6
1821else
1822  cat >conftest.make <<\_ACEOF
1823all:
1824	@echo 'ac_maketemp="$(MAKE)"'
1825_ACEOF
1826# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1827eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1828if test -n "$ac_maketemp"; then
1829  eval ac_cv_prog_make_${ac_make}_set=yes
1830else
1831  eval ac_cv_prog_make_${ac_make}_set=no
1832fi
1833rm -f conftest.make
1834fi
1835if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1836  echo "$as_me:$LINENO: result: yes" >&5
1837echo "${ECHO_T}yes" >&6
1838  SET_MAKE=
1839else
1840  echo "$as_me:$LINENO: result: no" >&5
1841echo "${ECHO_T}no" >&6
1842  SET_MAKE="MAKE=${MAKE-make}"
1843fi
1844
1845rm -rf .tst 2>/dev/null
1846mkdir .tst 2>/dev/null
1847if test -d .tst; then
1848  am__leading_dot=.
1849else
1850  am__leading_dot=_
1851fi
1852rmdir .tst 2>/dev/null
1853
1854# test to see if srcdir already configured
1855if test "`cd $srcdir && pwd`" != "`pwd`" &&
1856   test -f $srcdir/config.status; then
1857  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1858echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1859   { (exit 1); exit 1; }; }
1860fi
1861
1862# test whether we have cygpath
1863if test -z "$CYGPATH_W"; then
1864  if (cygpath --version) >/dev/null 2>/dev/null; then
1865    CYGPATH_W='cygpath -w'
1866  else
1867    CYGPATH_W=echo
1868  fi
1869fi
1870
1871
1872# Define the identity of the package.
1873 PACKAGE='scim-canna'
1874 VERSION='1.0.0'
1875
1876
1877cat >>confdefs.h <<_ACEOF
1878#define PACKAGE "$PACKAGE"
1879_ACEOF
1880
1881
1882cat >>confdefs.h <<_ACEOF
1883#define VERSION "$VERSION"
1884_ACEOF
1885
1886# Some tools Automake needs.
1887
1888ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1889
1890
1891AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1892
1893
1894AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1895
1896
1897AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1898
1899
1900MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1901
1902install_sh=${install_sh-"$am_aux_dir/install-sh"}
1903
1904# Installed binaries are usually stripped using `strip' when the user
1905# run `make install-strip'.  However `strip' might not be the right
1906# tool to use in cross-compilation environments, therefore Automake
1907# will honor the `STRIP' environment variable to overrule this program.
1908if test "$cross_compiling" != no; then
1909  if test -n "$ac_tool_prefix"; then
1910  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1911set dummy ${ac_tool_prefix}strip; ac_word=$2
1912echo "$as_me:$LINENO: checking for $ac_word" >&5
1913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914if test "${ac_cv_prog_STRIP+set}" = set; then
1915  echo $ECHO_N "(cached) $ECHO_C" >&6
1916else
1917  if test -n "$STRIP"; then
1918  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1919else
1920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921for as_dir in $PATH
1922do
1923  IFS=$as_save_IFS
1924  test -z "$as_dir" && as_dir=.
1925  for ac_exec_ext in '' $ac_executable_extensions; do
1926  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1928    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929    break 2
1930  fi
1931done
1932done
1933
1934fi
1935fi
1936STRIP=$ac_cv_prog_STRIP
1937if test -n "$STRIP"; then
1938  echo "$as_me:$LINENO: result: $STRIP" >&5
1939echo "${ECHO_T}$STRIP" >&6
1940else
1941  echo "$as_me:$LINENO: result: no" >&5
1942echo "${ECHO_T}no" >&6
1943fi
1944
1945fi
1946if test -z "$ac_cv_prog_STRIP"; then
1947  ac_ct_STRIP=$STRIP
1948  # Extract the first word of "strip", so it can be a program name with args.
1949set dummy strip; ac_word=$2
1950echo "$as_me:$LINENO: checking for $ac_word" >&5
1951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1952if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1953  echo $ECHO_N "(cached) $ECHO_C" >&6
1954else
1955  if test -n "$ac_ct_STRIP"; then
1956  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1957else
1958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959for as_dir in $PATH
1960do
1961  IFS=$as_save_IFS
1962  test -z "$as_dir" && as_dir=.
1963  for ac_exec_ext in '' $ac_executable_extensions; do
1964  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1965    ac_cv_prog_ac_ct_STRIP="strip"
1966    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967    break 2
1968  fi
1969done
1970done
1971
1972  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1973fi
1974fi
1975ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1976if test -n "$ac_ct_STRIP"; then
1977  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1978echo "${ECHO_T}$ac_ct_STRIP" >&6
1979else
1980  echo "$as_me:$LINENO: result: no" >&5
1981echo "${ECHO_T}no" >&6
1982fi
1983
1984  STRIP=$ac_ct_STRIP
1985else
1986  STRIP="$ac_cv_prog_STRIP"
1987fi
1988
1989fi
1990INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1991
1992# We need awk for the "check" target.  The system "awk" is bad on
1993# some platforms.
1994# Always define AMTAR for backward compatibility.
1995
1996AMTAR=${AMTAR-"${am_missing_run}tar"}
1997
1998am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1999
2000
2001
2002
2003
2004          ac_config_headers="$ac_config_headers config.h"
2005
2006
2007# Init gettext
2008ALL_LINGUAS="ja"
2009
2010        MKINSTALLDIRS=
2011  if test -n "$ac_aux_dir"; then
2012    case "$ac_aux_dir" in
2013      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
2014      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
2015    esac
2016  fi
2017  if test -z "$MKINSTALLDIRS"; then
2018    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2019  fi
2020
2021
2022
2023  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2024echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2025    # Check whether --enable-nls or --disable-nls was given.
2026if test "${enable_nls+set}" = set; then
2027  enableval="$enable_nls"
2028  USE_NLS=$enableval
2029else
2030  USE_NLS=yes
2031fi;
2032  echo "$as_me:$LINENO: result: $USE_NLS" >&5
2033echo "${ECHO_T}$USE_NLS" >&6
2034
2035
2036
2037
2038
2039
2040# Prepare PATH_SEPARATOR.
2041# The user is always right.
2042if test "${PATH_SEPARATOR+set}" != set; then
2043  echo "#! /bin/sh" >conf$$.sh
2044  echo  "exit 0"   >>conf$$.sh
2045  chmod +x conf$$.sh
2046  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2047    PATH_SEPARATOR=';'
2048  else
2049    PATH_SEPARATOR=:
2050  fi
2051  rm -f conf$$.sh
2052fi
2053
2054# Find out how to test for executable files. Don't use a zero-byte file,
2055# as systems may use methods other than mode bits to determine executability.
2056cat >conf$$.file <<_ASEOF
2057#! /bin/sh
2058exit 0
2059_ASEOF
2060chmod +x conf$$.file
2061if test -x conf$$.file >/dev/null 2>&1; then
2062  ac_executable_p="test -x"
2063else
2064  ac_executable_p="test -f"
2065fi
2066rm -f conf$$.file
2067
2068# Extract the first word of "msgfmt", so it can be a program name with args.
2069set dummy msgfmt; 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_path_MSGFMT+set}" = set; then
2073  echo $ECHO_N "(cached) $ECHO_C" >&6
2074else
2075  case "$MSGFMT" in
2076  [\\/]* | ?:[\\/]*)
2077    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2078    ;;
2079  *)
2080    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2081    for ac_dir in $PATH; do
2082      IFS="$ac_save_IFS"
2083      test -z "$ac_dir" && ac_dir=.
2084      for ac_exec_ext in '' $ac_executable_extensions; do
2085        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2086          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
2087     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2088            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2089            break 2
2090          fi
2091        fi
2092      done
2093    done
2094    IFS="$ac_save_IFS"
2095  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2096    ;;
2097esac
2098fi
2099MSGFMT="$ac_cv_path_MSGFMT"
2100if test "$MSGFMT" != ":"; then
2101  echo "$as_me:$LINENO: result: $MSGFMT" >&5
2102echo "${ECHO_T}$MSGFMT" >&6
2103else
2104  echo "$as_me:$LINENO: result: no" >&5
2105echo "${ECHO_T}no" >&6
2106fi
2107
2108  # Extract the first word of "gmsgfmt", so it can be a program name with args.
2109set dummy gmsgfmt; ac_word=$2
2110echo "$as_me:$LINENO: checking for $ac_word" >&5
2111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2112if test "${ac_cv_path_GMSGFMT+set}" = set; then
2113  echo $ECHO_N "(cached) $ECHO_C" >&6
2114else
2115  case $GMSGFMT in
2116  [\\/]* | ?:[\\/]*)
2117  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2118  ;;
2119  *)
2120  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121for as_dir in $PATH
2122do
2123  IFS=$as_save_IFS
2124  test -z "$as_dir" && as_dir=.
2125  for ac_exec_ext in '' $ac_executable_extensions; do
2126  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2127    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2128    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129    break 2
2130  fi
2131done
2132done
2133
2134  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2135  ;;
2136esac
2137fi
2138GMSGFMT=$ac_cv_path_GMSGFMT
2139
2140if test -n "$GMSGFMT"; then
2141  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
2142echo "${ECHO_T}$GMSGFMT" >&6
2143else
2144  echo "$as_me:$LINENO: result: no" >&5
2145echo "${ECHO_T}no" >&6
2146fi
2147
2148
2149
2150# Prepare PATH_SEPARATOR.
2151# The user is always right.
2152if test "${PATH_SEPARATOR+set}" != set; then
2153  echo "#! /bin/sh" >conf$$.sh
2154  echo  "exit 0"   >>conf$$.sh
2155  chmod +x conf$$.sh
2156  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2157    PATH_SEPARATOR=';'
2158  else
2159    PATH_SEPARATOR=:
2160  fi
2161  rm -f conf$$.sh
2162fi
2163
2164# Find out how to test for executable files. Don't use a zero-byte file,
2165# as systems may use methods other than mode bits to determine executability.
2166cat >conf$$.file <<_ASEOF
2167#! /bin/sh
2168exit 0
2169_ASEOF
2170chmod +x conf$$.file
2171if test -x conf$$.file >/dev/null 2>&1; then
2172  ac_executable_p="test -x"
2173else
2174  ac_executable_p="test -f"
2175fi
2176rm -f conf$$.file
2177
2178# Extract the first word of "xgettext", so it can be a program name with args.
2179set dummy xgettext; ac_word=$2
2180echo "$as_me:$LINENO: checking for $ac_word" >&5
2181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2182if test "${ac_cv_path_XGETTEXT+set}" = set; then
2183  echo $ECHO_N "(cached) $ECHO_C" >&6
2184else
2185  case "$XGETTEXT" in
2186  [\\/]* | ?:[\\/]*)
2187    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2188    ;;
2189  *)
2190    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2191    for ac_dir in $PATH; do
2192      IFS="$ac_save_IFS"
2193      test -z "$ac_dir" && ac_dir=.
2194      for ac_exec_ext in '' $ac_executable_extensions; do
2195        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2196          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2197     (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
2198            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
2199            break 2
2200          fi
2201        fi
2202      done
2203    done
2204    IFS="$ac_save_IFS"
2205  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2206    ;;
2207esac
2208fi
2209XGETTEXT="$ac_cv_path_XGETTEXT"
2210if test "$XGETTEXT" != ":"; then
2211  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
2212echo "${ECHO_T}$XGETTEXT" >&6
2213else
2214  echo "$as_me:$LINENO: result: no" >&5
2215echo "${ECHO_T}no" >&6
2216fi
2217
2218    rm -f messages.po
2219
2220
2221# Prepare PATH_SEPARATOR.
2222# The user is always right.
2223if test "${PATH_SEPARATOR+set}" != set; then
2224  echo "#! /bin/sh" >conf$$.sh
2225  echo  "exit 0"   >>conf$$.sh
2226  chmod +x conf$$.sh
2227  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2228    PATH_SEPARATOR=';'
2229  else
2230    PATH_SEPARATOR=:
2231  fi
2232  rm -f conf$$.sh
2233fi
2234
2235# Find out how to test for executable files. Don't use a zero-byte file,
2236# as systems may use methods other than mode bits to determine executability.
2237cat >conf$$.file <<_ASEOF
2238#! /bin/sh
2239exit 0
2240_ASEOF
2241chmod +x conf$$.file
2242if test -x conf$$.file >/dev/null 2>&1; then
2243  ac_executable_p="test -x"
2244else
2245  ac_executable_p="test -f"
2246fi
2247rm -f conf$$.file
2248
2249# Extract the first word of "msgmerge", so it can be a program name with args.
2250set dummy msgmerge; ac_word=$2
2251echo "$as_me:$LINENO: checking for $ac_word" >&5
2252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2253if test "${ac_cv_path_MSGMERGE+set}" = set; then
2254  echo $ECHO_N "(cached) $ECHO_C" >&6
2255else
2256  case "$MSGMERGE" in
2257  [\\/]* | ?:[\\/]*)
2258    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2259    ;;
2260  *)
2261    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2262    for ac_dir in $PATH; do
2263      IFS="$ac_save_IFS"
2264      test -z "$ac_dir" && ac_dir=.
2265      for ac_exec_ext in '' $ac_executable_extensions; do
2266        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2267          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
2268            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
2269            break 2
2270          fi
2271        fi
2272      done
2273    done
2274    IFS="$ac_save_IFS"
2275  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2276    ;;
2277esac
2278fi
2279MSGMERGE="$ac_cv_path_MSGMERGE"
2280if test "$MSGMERGE" != ":"; then
2281  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
2282echo "${ECHO_T}$MSGMERGE" >&6
2283else
2284  echo "$as_me:$LINENO: result: no" >&5
2285echo "${ECHO_T}no" >&6
2286fi
2287
2288
2289      if test "$GMSGFMT" != ":"; then
2290            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
2291       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2292      : ;
2293    else
2294      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2295      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
2296echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
2297      GMSGFMT=":"
2298    fi
2299  fi
2300
2301      if test "$XGETTEXT" != ":"; then
2302            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2303       (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
2304      : ;
2305    else
2306      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
2307echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
2308      XGETTEXT=":"
2309    fi
2310        rm -f messages.po
2311  fi
2312
2313            ac_config_commands="$ac_config_commands default-1"
2314
2315
2316DEPDIR="${am__leading_dot}deps"
2317
2318          ac_config_commands="$ac_config_commands depfiles"
2319
2320
2321am_make=${MAKE-make}
2322cat > confinc << 'END'
2323am__doit:
2324	@echo done
2325.PHONY: am__doit
2326END
2327# If we don't find an include directive, just comment out the code.
2328echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2329echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2330am__include="#"
2331am__quote=
2332_am_result=none
2333# First try GNU make style include.
2334echo "include confinc" > confmf
2335# We grep out `Entering directory' and `Leaving directory'
2336# messages which can occur if `w' ends up in MAKEFLAGS.
2337# In particular we don't look at `^make:' because GNU make might
2338# be invoked under some other name (usually "gmake"), in which
2339# case it prints its new name instead of `make'.
2340if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2341   am__include=include
2342   am__quote=
2343   _am_result=GNU
2344fi
2345# Now try BSD make style include.
2346if test "$am__include" = "#"; then
2347   echo '.include "confinc"' > confmf
2348   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2349      am__include=.include
2350      am__quote="\""
2351      _am_result=BSD
2352   fi
2353fi
2354
2355
2356echo "$as_me:$LINENO: result: $_am_result" >&5
2357echo "${ECHO_T}$_am_result" >&6
2358rm -f confinc confmf
2359
2360# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2361if test "${enable_dependency_tracking+set}" = set; then
2362  enableval="$enable_dependency_tracking"
2363
2364fi;
2365if test "x$enable_dependency_tracking" != xno; then
2366  am_depcomp="$ac_aux_dir/depcomp"
2367  AMDEPBACKSLASH='\'
2368fi
2369
2370
2371if test "x$enable_dependency_tracking" != xno; then
2372  AMDEP_TRUE=
2373  AMDEP_FALSE='#'
2374else
2375  AMDEP_TRUE='#'
2376  AMDEP_FALSE=
2377fi
2378
2379
2380
2381ac_ext=c
2382ac_cpp='$CPP $CPPFLAGS'
2383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2385ac_compiler_gnu=$ac_cv_c_compiler_gnu
2386if test -n "$ac_tool_prefix"; then
2387  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2388set dummy ${ac_tool_prefix}gcc; ac_word=$2
2389echo "$as_me:$LINENO: checking for $ac_word" >&5
2390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2391if test "${ac_cv_prog_CC+set}" = set; then
2392  echo $ECHO_N "(cached) $ECHO_C" >&6
2393else
2394  if test -n "$CC"; then
2395  ac_cv_prog_CC="$CC" # Let the user override the test.
2396else
2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398for as_dir in $PATH
2399do
2400  IFS=$as_save_IFS
2401  test -z "$as_dir" && as_dir=.
2402  for ac_exec_ext in '' $ac_executable_extensions; do
2403  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2404    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2405    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406    break 2
2407  fi
2408done
2409done
2410
2411fi
2412fi
2413CC=$ac_cv_prog_CC
2414if test -n "$CC"; then
2415  echo "$as_me:$LINENO: result: $CC" >&5
2416echo "${ECHO_T}$CC" >&6
2417else
2418  echo "$as_me:$LINENO: result: no" >&5
2419echo "${ECHO_T}no" >&6
2420fi
2421
2422fi
2423if test -z "$ac_cv_prog_CC"; then
2424  ac_ct_CC=$CC
2425  # Extract the first word of "gcc", so it can be a program name with args.
2426set dummy gcc; ac_word=$2
2427echo "$as_me:$LINENO: checking for $ac_word" >&5
2428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2429if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2430  echo $ECHO_N "(cached) $ECHO_C" >&6
2431else
2432  if test -n "$ac_ct_CC"; then
2433  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2434else
2435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436for as_dir in $PATH
2437do
2438  IFS=$as_save_IFS
2439  test -z "$as_dir" && as_dir=.
2440  for ac_exec_ext in '' $ac_executable_extensions; do
2441  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2442    ac_cv_prog_ac_ct_CC="gcc"
2443    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444    break 2
2445  fi
2446done
2447done
2448
2449fi
2450fi
2451ac_ct_CC=$ac_cv_prog_ac_ct_CC
2452if test -n "$ac_ct_CC"; then
2453  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2454echo "${ECHO_T}$ac_ct_CC" >&6
2455else
2456  echo "$as_me:$LINENO: result: no" >&5
2457echo "${ECHO_T}no" >&6
2458fi
2459
2460  CC=$ac_ct_CC
2461else
2462  CC="$ac_cv_prog_CC"
2463fi
2464
2465if test -z "$CC"; then
2466  if test -n "$ac_tool_prefix"; then
2467  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2468set dummy ${ac_tool_prefix}cc; ac_word=$2
2469echo "$as_me:$LINENO: checking for $ac_word" >&5
2470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2471if test "${ac_cv_prog_CC+set}" = set; then
2472  echo $ECHO_N "(cached) $ECHO_C" >&6
2473else
2474  if test -n "$CC"; then
2475  ac_cv_prog_CC="$CC" # Let the user override the test.
2476else
2477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478for as_dir in $PATH
2479do
2480  IFS=$as_save_IFS
2481  test -z "$as_dir" && as_dir=.
2482  for ac_exec_ext in '' $ac_executable_extensions; do
2483  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2484    ac_cv_prog_CC="${ac_tool_prefix}cc"
2485    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2486    break 2
2487  fi
2488done
2489done
2490
2491fi
2492fi
2493CC=$ac_cv_prog_CC
2494if test -n "$CC"; then
2495  echo "$as_me:$LINENO: result: $CC" >&5
2496echo "${ECHO_T}$CC" >&6
2497else
2498  echo "$as_me:$LINENO: result: no" >&5
2499echo "${ECHO_T}no" >&6
2500fi
2501
2502fi
2503if test -z "$ac_cv_prog_CC"; then
2504  ac_ct_CC=$CC
2505  # Extract the first word of "cc", so it can be a program name with args.
2506set dummy cc; ac_word=$2
2507echo "$as_me:$LINENO: checking for $ac_word" >&5
2508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2509if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2510  echo $ECHO_N "(cached) $ECHO_C" >&6
2511else
2512  if test -n "$ac_ct_CC"; then
2513  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2514else
2515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516for as_dir in $PATH
2517do
2518  IFS=$as_save_IFS
2519  test -z "$as_dir" && as_dir=.
2520  for ac_exec_ext in '' $ac_executable_extensions; do
2521  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2522    ac_cv_prog_ac_ct_CC="cc"
2523    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524    break 2
2525  fi
2526done
2527done
2528
2529fi
2530fi
2531ac_ct_CC=$ac_cv_prog_ac_ct_CC
2532if test -n "$ac_ct_CC"; then
2533  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2534echo "${ECHO_T}$ac_ct_CC" >&6
2535else
2536  echo "$as_me:$LINENO: result: no" >&5
2537echo "${ECHO_T}no" >&6
2538fi
2539
2540  CC=$ac_ct_CC
2541else
2542  CC="$ac_cv_prog_CC"
2543fi
2544
2545fi
2546if test -z "$CC"; then
2547  # Extract the first word of "cc", so it can be a program name with args.
2548set dummy cc; ac_word=$2
2549echo "$as_me:$LINENO: checking for $ac_word" >&5
2550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2551if test "${ac_cv_prog_CC+set}" = set; then
2552  echo $ECHO_N "(cached) $ECHO_C" >&6
2553else
2554  if test -n "$CC"; then
2555  ac_cv_prog_CC="$CC" # Let the user override the test.
2556else
2557  ac_prog_rejected=no
2558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559for as_dir in $PATH
2560do
2561  IFS=$as_save_IFS
2562  test -z "$as_dir" && as_dir=.
2563  for ac_exec_ext in '' $ac_executable_extensions; do
2564  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2565    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2566       ac_prog_rejected=yes
2567       continue
2568     fi
2569    ac_cv_prog_CC="cc"
2570    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571    break 2
2572  fi
2573done
2574done
2575
2576if test $ac_prog_rejected = yes; then
2577  # We found a bogon in the path, so make sure we never use it.
2578  set dummy $ac_cv_prog_CC
2579  shift
2580  if test $# != 0; then
2581    # We chose a different compiler from the bogus one.
2582    # However, it has the same basename, so the bogon will be chosen
2583    # first if we set CC to just the basename; use the full file name.
2584    shift
2585    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2586  fi
2587fi
2588fi
2589fi
2590CC=$ac_cv_prog_CC
2591if test -n "$CC"; then
2592  echo "$as_me:$LINENO: result: $CC" >&5
2593echo "${ECHO_T}$CC" >&6
2594else
2595  echo "$as_me:$LINENO: result: no" >&5
2596echo "${ECHO_T}no" >&6
2597fi
2598
2599fi
2600if test -z "$CC"; then
2601  if test -n "$ac_tool_prefix"; then
2602  for ac_prog in cl
2603  do
2604    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2605set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2606echo "$as_me:$LINENO: checking for $ac_word" >&5
2607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2608if test "${ac_cv_prog_CC+set}" = set; then
2609  echo $ECHO_N "(cached) $ECHO_C" >&6
2610else
2611  if test -n "$CC"; then
2612  ac_cv_prog_CC="$CC" # Let the user override the test.
2613else
2614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615for as_dir in $PATH
2616do
2617  IFS=$as_save_IFS
2618  test -z "$as_dir" && as_dir=.
2619  for ac_exec_ext in '' $ac_executable_extensions; do
2620  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2621    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2622    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623    break 2
2624  fi
2625done
2626done
2627
2628fi
2629fi
2630CC=$ac_cv_prog_CC
2631if test -n "$CC"; then
2632  echo "$as_me:$LINENO: result: $CC" >&5
2633echo "${ECHO_T}$CC" >&6
2634else
2635  echo "$as_me:$LINENO: result: no" >&5
2636echo "${ECHO_T}no" >&6
2637fi
2638
2639    test -n "$CC" && break
2640  done
2641fi
2642if test -z "$CC"; then
2643  ac_ct_CC=$CC
2644  for ac_prog in cl
2645do
2646  # Extract the first word of "$ac_prog", so it can be a program name with args.
2647set dummy $ac_prog; ac_word=$2
2648echo "$as_me:$LINENO: checking for $ac_word" >&5
2649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2650if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2651  echo $ECHO_N "(cached) $ECHO_C" >&6
2652else
2653  if test -n "$ac_ct_CC"; then
2654  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2655else
2656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657for as_dir in $PATH
2658do
2659  IFS=$as_save_IFS
2660  test -z "$as_dir" && as_dir=.
2661  for ac_exec_ext in '' $ac_executable_extensions; do
2662  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663    ac_cv_prog_ac_ct_CC="$ac_prog"
2664    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665    break 2
2666  fi
2667done
2668done
2669
2670fi
2671fi
2672ac_ct_CC=$ac_cv_prog_ac_ct_CC
2673if test -n "$ac_ct_CC"; then
2674  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2675echo "${ECHO_T}$ac_ct_CC" >&6
2676else
2677  echo "$as_me:$LINENO: result: no" >&5
2678echo "${ECHO_T}no" >&6
2679fi
2680
2681  test -n "$ac_ct_CC" && break
2682done
2683
2684  CC=$ac_ct_CC
2685fi
2686
2687fi
2688
2689
2690test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2691See \`config.log' for more details." >&5
2692echo "$as_me: error: no acceptable C compiler found in \$PATH
2693See \`config.log' for more details." >&2;}
2694   { (exit 1); exit 1; }; }
2695
2696# Provide some information about the compiler.
2697echo "$as_me:$LINENO:" \
2698     "checking for C compiler version" >&5
2699ac_compiler=`set X $ac_compile; echo $2`
2700{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2701  (eval $ac_compiler --version </dev/null >&5) 2>&5
2702  ac_status=$?
2703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704  (exit $ac_status); }
2705{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2706  (eval $ac_compiler -v </dev/null >&5) 2>&5
2707  ac_status=$?
2708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709  (exit $ac_status); }
2710{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2711  (eval $ac_compiler -V </dev/null >&5) 2>&5
2712  ac_status=$?
2713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714  (exit $ac_status); }
2715
2716cat >conftest.$ac_ext <<_ACEOF
2717/* confdefs.h.  */
2718_ACEOF
2719cat confdefs.h >>conftest.$ac_ext
2720cat >>conftest.$ac_ext <<_ACEOF
2721/* end confdefs.h.  */
2722
2723int
2724main ()
2725{
2726
2727  ;
2728  return 0;
2729}
2730_ACEOF
2731ac_clean_files_save=$ac_clean_files
2732ac_clean_files="$ac_clean_files a.out a.exe b.out"
2733# Try to create an executable without -o first, disregard a.out.
2734# It will help us diagnose broken compilers, and finding out an intuition
2735# of exeext.
2736echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2737echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2738ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2739if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2740  (eval $ac_link_default) 2>&5
2741  ac_status=$?
2742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743  (exit $ac_status); }; then
2744  # Find the output, starting from the most likely.  This scheme is
2745# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2746# resort.
2747
2748# Be careful to initialize this variable, since it used to be cached.
2749# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2750ac_cv_exeext=
2751# b.out is created by i960 compilers.
2752for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2753do
2754  test -f "$ac_file" || continue
2755  case $ac_file in
2756    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2757	;;
2758    conftest.$ac_ext )
2759	# This is the source file.
2760	;;
2761    [ab].out )
2762	# We found the default executable, but exeext='' is most
2763	# certainly right.
2764	break;;
2765    *.* )
2766	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2767	# FIXME: I believe we export ac_cv_exeext for Libtool,
2768	# but it would be cool to find out if it's true.  Does anybody
2769	# maintain Libtool? --akim.
2770	export ac_cv_exeext
2771	break;;
2772    * )
2773	break;;
2774  esac
2775done
2776else
2777  echo "$as_me: failed program was:" >&5
2778sed 's/^/| /' conftest.$ac_ext >&5
2779
2780{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2781See \`config.log' for more details." >&5
2782echo "$as_me: error: C compiler cannot create executables
2783See \`config.log' for more details." >&2;}
2784   { (exit 77); exit 77; }; }
2785fi
2786
2787ac_exeext=$ac_cv_exeext
2788echo "$as_me:$LINENO: result: $ac_file" >&5
2789echo "${ECHO_T}$ac_file" >&6
2790
2791# Check the compiler produces executables we can run.  If not, either
2792# the compiler is broken, or we cross compile.
2793echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2794echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2795# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2796# If not cross compiling, check that we can run a simple program.
2797if test "$cross_compiling" != yes; then
2798  if { ac_try='./$ac_file'
2799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800  (eval $ac_try) 2>&5
2801  ac_status=$?
2802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803  (exit $ac_status); }; }; then
2804    cross_compiling=no
2805  else
2806    if test "$cross_compiling" = maybe; then
2807	cross_compiling=yes
2808    else
2809	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2810If you meant to cross compile, use \`--host'.
2811See \`config.log' for more details." >&5
2812echo "$as_me: error: cannot run C compiled programs.
2813If you meant to cross compile, use \`--host'.
2814See \`config.log' for more details." >&2;}
2815   { (exit 1); exit 1; }; }
2816    fi
2817  fi
2818fi
2819echo "$as_me:$LINENO: result: yes" >&5
2820echo "${ECHO_T}yes" >&6
2821
2822rm -f a.out a.exe conftest$ac_cv_exeext b.out
2823ac_clean_files=$ac_clean_files_save
2824# Check the compiler produces executables we can run.  If not, either
2825# the compiler is broken, or we cross compile.
2826echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2827echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2828echo "$as_me:$LINENO: result: $cross_compiling" >&5
2829echo "${ECHO_T}$cross_compiling" >&6
2830
2831echo "$as_me:$LINENO: checking for suffix of executables" >&5
2832echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2834  (eval $ac_link) 2>&5
2835  ac_status=$?
2836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837  (exit $ac_status); }; then
2838  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2839# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2840# work properly (i.e., refer to `conftest.exe'), while it won't with
2841# `rm'.
2842for ac_file in conftest.exe conftest conftest.*; do
2843  test -f "$ac_file" || continue
2844  case $ac_file in
2845    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2846    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2847	  export ac_cv_exeext
2848	  break;;
2849    * ) break;;
2850  esac
2851done
2852else
2853  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2854See \`config.log' for more details." >&5
2855echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2856See \`config.log' for more details." >&2;}
2857   { (exit 1); exit 1; }; }
2858fi
2859
2860rm -f conftest$ac_cv_exeext
2861echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2862echo "${ECHO_T}$ac_cv_exeext" >&6
2863
2864rm -f conftest.$ac_ext
2865EXEEXT=$ac_cv_exeext
2866ac_exeext=$EXEEXT
2867echo "$as_me:$LINENO: checking for suffix of object files" >&5
2868echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2869if test "${ac_cv_objext+set}" = set; then
2870  echo $ECHO_N "(cached) $ECHO_C" >&6
2871else
2872  cat >conftest.$ac_ext <<_ACEOF
2873/* confdefs.h.  */
2874_ACEOF
2875cat confdefs.h >>conftest.$ac_ext
2876cat >>conftest.$ac_ext <<_ACEOF
2877/* end confdefs.h.  */
2878
2879int
2880main ()
2881{
2882
2883  ;
2884  return 0;
2885}
2886_ACEOF
2887rm -f conftest.o conftest.obj
2888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2889  (eval $ac_compile) 2>&5
2890  ac_status=$?
2891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892  (exit $ac_status); }; then
2893  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2894  case $ac_file in
2895    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2896    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2897       break;;
2898  esac
2899done
2900else
2901  echo "$as_me: failed program was:" >&5
2902sed 's/^/| /' conftest.$ac_ext >&5
2903
2904{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2905See \`config.log' for more details." >&5
2906echo "$as_me: error: cannot compute suffix of object files: cannot compile
2907See \`config.log' for more details." >&2;}
2908   { (exit 1); exit 1; }; }
2909fi
2910
2911rm -f conftest.$ac_cv_objext conftest.$ac_ext
2912fi
2913echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2914echo "${ECHO_T}$ac_cv_objext" >&6
2915OBJEXT=$ac_cv_objext
2916ac_objext=$OBJEXT
2917echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2918echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2919if test "${ac_cv_c_compiler_gnu+set}" = set; then
2920  echo $ECHO_N "(cached) $ECHO_C" >&6
2921else
2922  cat >conftest.$ac_ext <<_ACEOF
2923/* confdefs.h.  */
2924_ACEOF
2925cat confdefs.h >>conftest.$ac_ext
2926cat >>conftest.$ac_ext <<_ACEOF
2927/* end confdefs.h.  */
2928
2929int
2930main ()
2931{
2932#ifndef __GNUC__
2933       choke me
2934#endif
2935
2936  ;
2937  return 0;
2938}
2939_ACEOF
2940rm -f conftest.$ac_objext
2941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2942  (eval $ac_compile) 2>conftest.er1
2943  ac_status=$?
2944  grep -v '^ *+' conftest.er1 >conftest.err
2945  rm -f conftest.er1
2946  cat conftest.err >&5
2947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948  (exit $ac_status); } &&
2949	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951  (eval $ac_try) 2>&5
2952  ac_status=$?
2953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954  (exit $ac_status); }; } &&
2955	 { ac_try='test -s conftest.$ac_objext'
2956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957  (eval $ac_try) 2>&5
2958  ac_status=$?
2959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960  (exit $ac_status); }; }; then
2961  ac_compiler_gnu=yes
2962else
2963  echo "$as_me: failed program was:" >&5
2964sed 's/^/| /' conftest.$ac_ext >&5
2965
2966ac_compiler_gnu=no
2967fi
2968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2969ac_cv_c_compiler_gnu=$ac_compiler_gnu
2970
2971fi
2972echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2973echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2974GCC=`test $ac_compiler_gnu = yes && echo yes`
2975ac_test_CFLAGS=${CFLAGS+set}
2976ac_save_CFLAGS=$CFLAGS
2977CFLAGS="-g"
2978echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2979echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2980if test "${ac_cv_prog_cc_g+set}" = set; then
2981  echo $ECHO_N "(cached) $ECHO_C" >&6
2982else
2983  cat >conftest.$ac_ext <<_ACEOF
2984/* confdefs.h.  */
2985_ACEOF
2986cat confdefs.h >>conftest.$ac_ext
2987cat >>conftest.$ac_ext <<_ACEOF
2988/* end confdefs.h.  */
2989
2990int
2991main ()
2992{
2993
2994  ;
2995  return 0;
2996}
2997_ACEOF
2998rm -f conftest.$ac_objext
2999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3000  (eval $ac_compile) 2>conftest.er1
3001  ac_status=$?
3002  grep -v '^ *+' conftest.er1 >conftest.err
3003  rm -f conftest.er1
3004  cat conftest.err >&5
3005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006  (exit $ac_status); } &&
3007	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009  (eval $ac_try) 2>&5
3010  ac_status=$?
3011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012  (exit $ac_status); }; } &&
3013	 { ac_try='test -s conftest.$ac_objext'
3014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015  (eval $ac_try) 2>&5
3016  ac_status=$?
3017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018  (exit $ac_status); }; }; then
3019  ac_cv_prog_cc_g=yes
3020else
3021  echo "$as_me: failed program was:" >&5
3022sed 's/^/| /' conftest.$ac_ext >&5
3023
3024ac_cv_prog_cc_g=no
3025fi
3026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3027fi
3028echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3029echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3030if test "$ac_test_CFLAGS" = set; then
3031  CFLAGS=$ac_save_CFLAGS
3032elif test $ac_cv_prog_cc_g = yes; then
3033  if test "$GCC" = yes; then
3034    CFLAGS="-g -O2"
3035  else
3036    CFLAGS="-g"
3037  fi
3038else
3039  if test "$GCC" = yes; then
3040    CFLAGS="-O2"
3041  else
3042    CFLAGS=
3043  fi
3044fi
3045echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3046echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3047if test "${ac_cv_prog_cc_stdc+set}" = set; then
3048  echo $ECHO_N "(cached) $ECHO_C" >&6
3049else
3050  ac_cv_prog_cc_stdc=no
3051ac_save_CC=$CC
3052cat >conftest.$ac_ext <<_ACEOF
3053/* confdefs.h.  */
3054_ACEOF
3055cat confdefs.h >>conftest.$ac_ext
3056cat >>conftest.$ac_ext <<_ACEOF
3057/* end confdefs.h.  */
3058#include <stdarg.h>
3059#include <stdio.h>
3060#include <sys/types.h>
3061#include <sys/stat.h>
3062/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3063struct buf { int x; };
3064FILE * (*rcsopen) (struct buf *, struct stat *, int);
3065static char *e (p, i)
3066     char **p;
3067     int i;
3068{
3069  return p[i];
3070}
3071static char *f (char * (*g) (char **, int), char **p, ...)
3072{
3073  char *s;
3074  va_list v;
3075  va_start (v,p);
3076  s = g (p, va_arg (v,int));
3077  va_end (v);
3078  return s;
3079}
3080
3081/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3082   function prototypes and stuff, but not '\xHH' hex character constants.
3083   These don't provoke an error unfortunately, instead are silently treated
3084   as 'x'.  The following induces an error, until -std1 is added to get
3085   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3086   array size at least.  It's necessary to write '\x00'==0 to get something
3087   that's true only with -std1.  */
3088int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3089
3090int test (int i, double x);
3091struct s1 {int (*f) (int a);};
3092struct s2 {int (*f) (double a);};
3093int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3094int argc;
3095char **argv;
3096int
3097main ()
3098{
3099return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3100  ;
3101  return 0;
3102}
3103_ACEOF
3104# Don't try gcc -ansi; that turns off useful extensions and
3105# breaks some systems' header files.
3106# AIX			-qlanglvl=ansi
3107# Ultrix and OSF/1	-std1
3108# HP-UX 10.20 and later	-Ae
3109# HP-UX older versions	-Aa -D_HPUX_SOURCE
3110# SVR4			-Xc -D__EXTENSIONS__
3111for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3112do
3113  CC="$ac_save_CC $ac_arg"
3114  rm -f conftest.$ac_objext
3115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3116  (eval $ac_compile) 2>conftest.er1
3117  ac_status=$?
3118  grep -v '^ *+' conftest.er1 >conftest.err
3119  rm -f conftest.er1
3120  cat conftest.err >&5
3121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122  (exit $ac_status); } &&
3123	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125  (eval $ac_try) 2>&5
3126  ac_status=$?
3127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128  (exit $ac_status); }; } &&
3129	 { ac_try='test -s conftest.$ac_objext'
3130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131  (eval $ac_try) 2>&5
3132  ac_status=$?
3133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134  (exit $ac_status); }; }; then
3135  ac_cv_prog_cc_stdc=$ac_arg
3136break
3137else
3138  echo "$as_me: failed program was:" >&5
3139sed 's/^/| /' conftest.$ac_ext >&5
3140
3141fi
3142rm -f conftest.err conftest.$ac_objext
3143done
3144rm -f conftest.$ac_ext conftest.$ac_objext
3145CC=$ac_save_CC
3146
3147fi
3148
3149case "x$ac_cv_prog_cc_stdc" in
3150  x|xno)
3151    echo "$as_me:$LINENO: result: none needed" >&5
3152echo "${ECHO_T}none needed" >&6 ;;
3153  *)
3154    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3155echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3156    CC="$CC $ac_cv_prog_cc_stdc" ;;
3157esac
3158
3159# Some people use a C++ compiler to compile C.  Since we use `exit',
3160# in C++ we need to declare it.  In case someone uses the same compiler
3161# for both compiling C and C++ we need to have the C++ compiler decide
3162# the declaration of exit, since it's the most demanding environment.
3163cat >conftest.$ac_ext <<_ACEOF
3164#ifndef __cplusplus
3165  choke me
3166#endif
3167_ACEOF
3168rm -f conftest.$ac_objext
3169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3170  (eval $ac_compile) 2>conftest.er1
3171  ac_status=$?
3172  grep -v '^ *+' conftest.er1 >conftest.err
3173  rm -f conftest.er1
3174  cat conftest.err >&5
3175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176  (exit $ac_status); } &&
3177	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179  (eval $ac_try) 2>&5
3180  ac_status=$?
3181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182  (exit $ac_status); }; } &&
3183	 { ac_try='test -s conftest.$ac_objext'
3184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185  (eval $ac_try) 2>&5
3186  ac_status=$?
3187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188  (exit $ac_status); }; }; then
3189  for ac_declaration in \
3190   '' \
3191   'extern "C" void std::exit (int) throw (); using std::exit;' \
3192   'extern "C" void std::exit (int); using std::exit;' \
3193   'extern "C" void exit (int) throw ();' \
3194   'extern "C" void exit (int);' \
3195   'void exit (int);'
3196do
3197  cat >conftest.$ac_ext <<_ACEOF
3198/* confdefs.h.  */
3199_ACEOF
3200cat confdefs.h >>conftest.$ac_ext
3201cat >>conftest.$ac_ext <<_ACEOF
3202/* end confdefs.h.  */
3203$ac_declaration
3204#include <stdlib.h>
3205int
3206main ()
3207{
3208exit (42);
3209  ;
3210  return 0;
3211}
3212_ACEOF
3213rm -f conftest.$ac_objext
3214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3215  (eval $ac_compile) 2>conftest.er1
3216  ac_status=$?
3217  grep -v '^ *+' conftest.er1 >conftest.err
3218  rm -f conftest.er1
3219  cat conftest.err >&5
3220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221  (exit $ac_status); } &&
3222	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224  (eval $ac_try) 2>&5
3225  ac_status=$?
3226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227  (exit $ac_status); }; } &&
3228	 { ac_try='test -s conftest.$ac_objext'
3229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230  (eval $ac_try) 2>&5
3231  ac_status=$?
3232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233  (exit $ac_status); }; }; then
3234  :
3235else
3236  echo "$as_me: failed program was:" >&5
3237sed 's/^/| /' conftest.$ac_ext >&5
3238
3239continue
3240fi
3241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3242  cat >conftest.$ac_ext <<_ACEOF
3243/* confdefs.h.  */
3244_ACEOF
3245cat confdefs.h >>conftest.$ac_ext
3246cat >>conftest.$ac_ext <<_ACEOF
3247/* end confdefs.h.  */
3248$ac_declaration
3249int
3250main ()
3251{
3252exit (42);
3253  ;
3254  return 0;
3255}
3256_ACEOF
3257rm -f conftest.$ac_objext
3258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3259  (eval $ac_compile) 2>conftest.er1
3260  ac_status=$?
3261  grep -v '^ *+' conftest.er1 >conftest.err
3262  rm -f conftest.er1
3263  cat conftest.err >&5
3264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265  (exit $ac_status); } &&
3266	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268  (eval $ac_try) 2>&5
3269  ac_status=$?
3270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271  (exit $ac_status); }; } &&
3272	 { ac_try='test -s conftest.$ac_objext'
3273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274  (eval $ac_try) 2>&5
3275  ac_status=$?
3276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277  (exit $ac_status); }; }; then
3278  break
3279else
3280  echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282
3283fi
3284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3285done
3286rm -f conftest*
3287if test -n "$ac_declaration"; then
3288  echo '#ifdef __cplusplus' >>confdefs.h
3289  echo $ac_declaration      >>confdefs.h
3290  echo '#endif'             >>confdefs.h
3291fi
3292
3293else
3294  echo "$as_me: failed program was:" >&5
3295sed 's/^/| /' conftest.$ac_ext >&5
3296
3297fi
3298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3299ac_ext=c
3300ac_cpp='$CPP $CPPFLAGS'
3301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3303ac_compiler_gnu=$ac_cv_c_compiler_gnu
3304
3305depcc="$CC"   am_compiler_list=
3306
3307echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3308echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3309if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3310  echo $ECHO_N "(cached) $ECHO_C" >&6
3311else
3312  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3313  # We make a subdir and do the tests there.  Otherwise we can end up
3314  # making bogus files that we don't know about and never remove.  For
3315  # instance it was reported that on HP-UX the gcc test will end up
3316  # making a dummy file named `D' -- because `-MD' means `put the output
3317  # in D'.
3318  mkdir conftest.dir
3319  # Copy depcomp to subdir because otherwise we won't find it if we're
3320  # using a relative directory.
3321  cp "$am_depcomp" conftest.dir
3322  cd conftest.dir
3323  # We will build objects and dependencies in a subdirectory because
3324  # it helps to detect inapplicable dependency modes.  For instance
3325  # both Tru64's cc and ICC support -MD to output dependencies as a
3326  # side effect of compilation, but ICC will put the dependencies in
3327  # the current directory while Tru64 will put them in the object
3328  # directory.
3329  mkdir sub
3330
3331  am_cv_CC_dependencies_compiler_type=none
3332  if test "$am_compiler_list" = ""; then
3333     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3334  fi
3335  for depmode in $am_compiler_list; do
3336    # Setup a source with many dependencies, because some compilers
3337    # like to wrap large dependency lists on column 80 (with \), and
3338    # we should not choose a depcomp mode which is confused by this.
3339    #
3340    # We need to recreate these files for each test, as the compiler may
3341    # overwrite some of them when testing with obscure command lines.
3342    # This happens at least with the AIX C compiler.
3343    : > sub/conftest.c
3344    for i in 1 2 3 4 5 6; do
3345      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3346      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3347      # Solaris 8's {/usr,}/bin/sh.
3348      touch sub/conftst$i.h
3349    done
3350    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3351
3352    case $depmode in
3353    nosideeffect)
3354      # after this tag, mechanisms are not by side-effect, so they'll
3355      # only be used when explicitly requested
3356      if test "x$enable_dependency_tracking" = xyes; then
3357	continue
3358      else
3359	break
3360      fi
3361      ;;
3362    none) break ;;
3363    esac
3364    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3365    # mode.  It turns out that the SunPro C++ compiler does not properly
3366    # handle `-M -o', and we need to detect this.
3367    if depmode=$depmode \
3368       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3369       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3370       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3371         >/dev/null 2>conftest.err &&
3372       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3373       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3374       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3375      # icc doesn't choke on unknown options, it will just issue warnings
3376      # or remarks (even with -Werror).  So we grep stderr for any message
3377      # that says an option was ignored or not supported.
3378      # When given -MP, icc 7.0 and 7.1 complain thusly:
3379      #   icc: Command line warning: ignoring option '-M'; no argument required
3380      # The diagnosis changed in icc 8.0:
3381      #   icc: Command line remark: option '-MP' not supported
3382      if (grep 'ignoring option' conftest.err ||
3383          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3384        am_cv_CC_dependencies_compiler_type=$depmode
3385        break
3386      fi
3387    fi
3388  done
3389
3390  cd ..
3391  rm -rf conftest.dir
3392else
3393  am_cv_CC_dependencies_compiler_type=none
3394fi
3395
3396fi
3397echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3398echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3399CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3400
3401
3402
3403if
3404  test "x$enable_dependency_tracking" != xno \
3405  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3406  am__fastdepCC_TRUE=
3407  am__fastdepCC_FALSE='#'
3408else
3409  am__fastdepCC_TRUE='#'
3410  am__fastdepCC_FALSE=
3411fi
3412
3413
3414# Make sure we can run config.sub.
3415$ac_config_sub sun4 >/dev/null 2>&1 ||
3416  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3417echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3418   { (exit 1); exit 1; }; }
3419
3420echo "$as_me:$LINENO: checking build system type" >&5
3421echo $ECHO_N "checking build system type... $ECHO_C" >&6
3422if test "${ac_cv_build+set}" = set; then
3423  echo $ECHO_N "(cached) $ECHO_C" >&6
3424else
3425  ac_cv_build_alias=$build_alias
3426test -z "$ac_cv_build_alias" &&
3427  ac_cv_build_alias=`$ac_config_guess`
3428test -z "$ac_cv_build_alias" &&
3429  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3430echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3431   { (exit 1); exit 1; }; }
3432ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3433  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3434echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3435   { (exit 1); exit 1; }; }
3436
3437fi
3438echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3439echo "${ECHO_T}$ac_cv_build" >&6
3440build=$ac_cv_build
3441build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3442build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3443build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3444
3445
3446echo "$as_me:$LINENO: checking host system type" >&5
3447echo $ECHO_N "checking host system type... $ECHO_C" >&6
3448if test "${ac_cv_host+set}" = set; then
3449  echo $ECHO_N "(cached) $ECHO_C" >&6
3450else
3451  ac_cv_host_alias=$host_alias
3452test -z "$ac_cv_host_alias" &&
3453  ac_cv_host_alias=$ac_cv_build_alias
3454ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3455  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3456echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3457   { (exit 1); exit 1; }; }
3458
3459fi
3460echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3461echo "${ECHO_T}$ac_cv_host" >&6
3462host=$ac_cv_host
3463host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3464host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3465host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3466
3467
3468if test -n "$ac_tool_prefix"; then
3469  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3470set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3471echo "$as_me:$LINENO: checking for $ac_word" >&5
3472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3473if test "${ac_cv_prog_RANLIB+set}" = set; then
3474  echo $ECHO_N "(cached) $ECHO_C" >&6
3475else
3476  if test -n "$RANLIB"; then
3477  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3478else
3479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480for as_dir in $PATH
3481do
3482  IFS=$as_save_IFS
3483  test -z "$as_dir" && as_dir=.
3484  for ac_exec_ext in '' $ac_executable_extensions; do
3485  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3486    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3487    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3488    break 2
3489  fi
3490done
3491done
3492
3493fi
3494fi
3495RANLIB=$ac_cv_prog_RANLIB
3496if test -n "$RANLIB"; then
3497  echo "$as_me:$LINENO: result: $RANLIB" >&5
3498echo "${ECHO_T}$RANLIB" >&6
3499else
3500  echo "$as_me:$LINENO: result: no" >&5
3501echo "${ECHO_T}no" >&6
3502fi
3503
3504fi
3505if test -z "$ac_cv_prog_RANLIB"; then
3506  ac_ct_RANLIB=$RANLIB
3507  # Extract the first word of "ranlib", so it can be a program name with args.
3508set dummy ranlib; ac_word=$2
3509echo "$as_me:$LINENO: checking for $ac_word" >&5
3510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3511if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3512  echo $ECHO_N "(cached) $ECHO_C" >&6
3513else
3514  if test -n "$ac_ct_RANLIB"; then
3515  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3516else
3517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518for as_dir in $PATH
3519do
3520  IFS=$as_save_IFS
3521  test -z "$as_dir" && as_dir=.
3522  for ac_exec_ext in '' $ac_executable_extensions; do
3523  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524    ac_cv_prog_ac_ct_RANLIB="ranlib"
3525    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3526    break 2
3527  fi
3528done
3529done
3530
3531  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3532fi
3533fi
3534ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3535if test -n "$ac_ct_RANLIB"; then
3536  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3537echo "${ECHO_T}$ac_ct_RANLIB" >&6
3538else
3539  echo "$as_me:$LINENO: result: no" >&5
3540echo "${ECHO_T}no" >&6
3541fi
3542
3543  RANLIB=$ac_ct_RANLIB
3544else
3545  RANLIB="$ac_cv_prog_RANLIB"
3546fi
3547
3548
3549echo "$as_me:$LINENO: checking for library containing strerror" >&5
3550echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3551if test "${ac_cv_search_strerror+set}" = set; then
3552  echo $ECHO_N "(cached) $ECHO_C" >&6
3553else
3554  ac_func_search_save_LIBS=$LIBS
3555ac_cv_search_strerror=no
3556cat >conftest.$ac_ext <<_ACEOF
3557/* confdefs.h.  */
3558_ACEOF
3559cat confdefs.h >>conftest.$ac_ext
3560cat >>conftest.$ac_ext <<_ACEOF
3561/* end confdefs.h.  */
3562
3563/* Override any gcc2 internal prototype to avoid an error.  */
3564#ifdef __cplusplus
3565extern "C"
3566#endif
3567/* We use char because int might match the return type of a gcc2
3568   builtin and then its argument prototype would still apply.  */
3569char strerror ();
3570int
3571main ()
3572{
3573strerror ();
3574  ;
3575  return 0;
3576}
3577_ACEOF
3578rm -f conftest.$ac_objext conftest$ac_exeext
3579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3580  (eval $ac_link) 2>conftest.er1
3581  ac_status=$?
3582  grep -v '^ *+' conftest.er1 >conftest.err
3583  rm -f conftest.er1
3584  cat conftest.err >&5
3585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586  (exit $ac_status); } &&
3587	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589  (eval $ac_try) 2>&5
3590  ac_status=$?
3591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592  (exit $ac_status); }; } &&
3593	 { ac_try='test -s conftest$ac_exeext'
3594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595  (eval $ac_try) 2>&5
3596  ac_status=$?
3597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598  (exit $ac_status); }; }; then
3599  ac_cv_search_strerror="none required"
3600else
3601  echo "$as_me: failed program was:" >&5
3602sed 's/^/| /' conftest.$ac_ext >&5
3603
3604fi
3605rm -f conftest.err conftest.$ac_objext \
3606      conftest$ac_exeext conftest.$ac_ext
3607if test "$ac_cv_search_strerror" = no; then
3608  for ac_lib in cposix; do
3609    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3610    cat >conftest.$ac_ext <<_ACEOF
3611/* confdefs.h.  */
3612_ACEOF
3613cat confdefs.h >>conftest.$ac_ext
3614cat >>conftest.$ac_ext <<_ACEOF
3615/* end confdefs.h.  */
3616
3617/* Override any gcc2 internal prototype to avoid an error.  */
3618#ifdef __cplusplus
3619extern "C"
3620#endif
3621/* We use char because int might match the return type of a gcc2
3622   builtin and then its argument prototype would still apply.  */
3623char strerror ();
3624int
3625main ()
3626{
3627strerror ();
3628  ;
3629  return 0;
3630}
3631_ACEOF
3632rm -f conftest.$ac_objext conftest$ac_exeext
3633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3634  (eval $ac_link) 2>conftest.er1
3635  ac_status=$?
3636  grep -v '^ *+' conftest.er1 >conftest.err
3637  rm -f conftest.er1
3638  cat conftest.err >&5
3639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640  (exit $ac_status); } &&
3641	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643  (eval $ac_try) 2>&5
3644  ac_status=$?
3645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646  (exit $ac_status); }; } &&
3647	 { ac_try='test -s conftest$ac_exeext'
3648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649  (eval $ac_try) 2>&5
3650  ac_status=$?
3651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652  (exit $ac_status); }; }; then
3653  ac_cv_search_strerror="-l$ac_lib"
3654break
3655else
3656  echo "$as_me: failed program was:" >&5
3657sed 's/^/| /' conftest.$ac_ext >&5
3658
3659fi
3660rm -f conftest.err conftest.$ac_objext \
3661      conftest$ac_exeext conftest.$ac_ext
3662  done
3663fi
3664LIBS=$ac_func_search_save_LIBS
3665fi
3666echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3667echo "${ECHO_T}$ac_cv_search_strerror" >&6
3668if test "$ac_cv_search_strerror" != no; then
3669  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3670
3671fi
3672
3673ac_ext=c
3674ac_cpp='$CPP $CPPFLAGS'
3675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3677ac_compiler_gnu=$ac_cv_c_compiler_gnu
3678echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3679echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3680# On Suns, sometimes $CPP names a directory.
3681if test -n "$CPP" && test -d "$CPP"; then
3682  CPP=
3683fi
3684if test -z "$CPP"; then
3685  if test "${ac_cv_prog_CPP+set}" = set; then
3686  echo $ECHO_N "(cached) $ECHO_C" >&6
3687else
3688      # Double quotes because CPP needs to be expanded
3689    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3690    do
3691      ac_preproc_ok=false
3692for ac_c_preproc_warn_flag in '' yes
3693do
3694  # Use a header file that comes with gcc, so configuring glibc
3695  # with a fresh cross-compiler works.
3696  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3697  # <limits.h> exists even on freestanding compilers.
3698  # On the NeXT, cc -E runs the code through the compiler's parser,
3699  # not just through cpp. "Syntax error" is here to catch this case.
3700  cat >conftest.$ac_ext <<_ACEOF
3701/* confdefs.h.  */
3702_ACEOF
3703cat confdefs.h >>conftest.$ac_ext
3704cat >>conftest.$ac_ext <<_ACEOF
3705/* end confdefs.h.  */
3706#ifdef __STDC__
3707# include <limits.h>
3708#else
3709# include <assert.h>
3710#endif
3711		     Syntax error
3712_ACEOF
3713if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3714  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3715  ac_status=$?
3716  grep -v '^ *+' conftest.er1 >conftest.err
3717  rm -f conftest.er1
3718  cat conftest.err >&5
3719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720  (exit $ac_status); } >/dev/null; then
3721  if test -s conftest.err; then
3722    ac_cpp_err=$ac_c_preproc_warn_flag
3723    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3724  else
3725    ac_cpp_err=
3726  fi
3727else
3728  ac_cpp_err=yes
3729fi
3730if test -z "$ac_cpp_err"; then
3731  :
3732else
3733  echo "$as_me: failed program was:" >&5
3734sed 's/^/| /' conftest.$ac_ext >&5
3735
3736  # Broken: fails on valid input.
3737continue
3738fi
3739rm -f conftest.err conftest.$ac_ext
3740
3741  # OK, works on sane cases.  Now check whether non-existent headers
3742  # can be detected and how.
3743  cat >conftest.$ac_ext <<_ACEOF
3744/* confdefs.h.  */
3745_ACEOF
3746cat confdefs.h >>conftest.$ac_ext
3747cat >>conftest.$ac_ext <<_ACEOF
3748/* end confdefs.h.  */
3749#include <ac_nonexistent.h>
3750_ACEOF
3751if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3752  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3753  ac_status=$?
3754  grep -v '^ *+' conftest.er1 >conftest.err
3755  rm -f conftest.er1
3756  cat conftest.err >&5
3757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758  (exit $ac_status); } >/dev/null; then
3759  if test -s conftest.err; then
3760    ac_cpp_err=$ac_c_preproc_warn_flag
3761    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3762  else
3763    ac_cpp_err=
3764  fi
3765else
3766  ac_cpp_err=yes
3767fi
3768if test -z "$ac_cpp_err"; then
3769  # Broken: success on invalid input.
3770continue
3771else
3772  echo "$as_me: failed program was:" >&5
3773sed 's/^/| /' conftest.$ac_ext >&5
3774
3775  # Passes both tests.
3776ac_preproc_ok=:
3777break
3778fi
3779rm -f conftest.err conftest.$ac_ext
3780
3781done
3782# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3783rm -f conftest.err conftest.$ac_ext
3784if $ac_preproc_ok; then
3785  break
3786fi
3787
3788    done
3789    ac_cv_prog_CPP=$CPP
3790
3791fi
3792  CPP=$ac_cv_prog_CPP
3793else
3794  ac_cv_prog_CPP=$CPP
3795fi
3796echo "$as_me:$LINENO: result: $CPP" >&5
3797echo "${ECHO_T}$CPP" >&6
3798ac_preproc_ok=false
3799for ac_c_preproc_warn_flag in '' yes
3800do
3801  # Use a header file that comes with gcc, so configuring glibc
3802  # with a fresh cross-compiler works.
3803  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3804  # <limits.h> exists even on freestanding compilers.
3805  # On the NeXT, cc -E runs the code through the compiler's parser,
3806  # not just through cpp. "Syntax error" is here to catch this case.
3807  cat >conftest.$ac_ext <<_ACEOF
3808/* confdefs.h.  */
3809_ACEOF
3810cat confdefs.h >>conftest.$ac_ext
3811cat >>conftest.$ac_ext <<_ACEOF
3812/* end confdefs.h.  */
3813#ifdef __STDC__
3814# include <limits.h>
3815#else
3816# include <assert.h>
3817#endif
3818		     Syntax error
3819_ACEOF
3820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3821  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3822  ac_status=$?
3823  grep -v '^ *+' conftest.er1 >conftest.err
3824  rm -f conftest.er1
3825  cat conftest.err >&5
3826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827  (exit $ac_status); } >/dev/null; then
3828  if test -s conftest.err; then
3829    ac_cpp_err=$ac_c_preproc_warn_flag
3830    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3831  else
3832    ac_cpp_err=
3833  fi
3834else
3835  ac_cpp_err=yes
3836fi
3837if test -z "$ac_cpp_err"; then
3838  :
3839else
3840  echo "$as_me: failed program was:" >&5
3841sed 's/^/| /' conftest.$ac_ext >&5
3842
3843  # Broken: fails on valid input.
3844continue
3845fi
3846rm -f conftest.err conftest.$ac_ext
3847
3848  # OK, works on sane cases.  Now check whether non-existent headers
3849  # can be detected and how.
3850  cat >conftest.$ac_ext <<_ACEOF
3851/* confdefs.h.  */
3852_ACEOF
3853cat confdefs.h >>conftest.$ac_ext
3854cat >>conftest.$ac_ext <<_ACEOF
3855/* end confdefs.h.  */
3856#include <ac_nonexistent.h>
3857_ACEOF
3858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3859  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3860  ac_status=$?
3861  grep -v '^ *+' conftest.er1 >conftest.err
3862  rm -f conftest.er1
3863  cat conftest.err >&5
3864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865  (exit $ac_status); } >/dev/null; then
3866  if test -s conftest.err; then
3867    ac_cpp_err=$ac_c_preproc_warn_flag
3868    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3869  else
3870    ac_cpp_err=
3871  fi
3872else
3873  ac_cpp_err=yes
3874fi
3875if test -z "$ac_cpp_err"; then
3876  # Broken: success on invalid input.
3877continue
3878else
3879  echo "$as_me: failed program was:" >&5
3880sed 's/^/| /' conftest.$ac_ext >&5
3881
3882  # Passes both tests.
3883ac_preproc_ok=:
3884break
3885fi
3886rm -f conftest.err conftest.$ac_ext
3887
3888done
3889# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3890rm -f conftest.err conftest.$ac_ext
3891if $ac_preproc_ok; then
3892  :
3893else
3894  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3895See \`config.log' for more details." >&5
3896echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3897See \`config.log' for more details." >&2;}
3898   { (exit 1); exit 1; }; }
3899fi
3900
3901ac_ext=c
3902ac_cpp='$CPP $CPPFLAGS'
3903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906
3907
3908echo "$as_me:$LINENO: checking for egrep" >&5
3909echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3910if test "${ac_cv_prog_egrep+set}" = set; then
3911  echo $ECHO_N "(cached) $ECHO_C" >&6
3912else
3913  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3914    then ac_cv_prog_egrep='grep -E'
3915    else ac_cv_prog_egrep='egrep'
3916    fi
3917fi
3918echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3919echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3920 EGREP=$ac_cv_prog_egrep
3921
3922
3923echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3924echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3925if test "${ac_cv_header_stdc+set}" = set; then
3926  echo $ECHO_N "(cached) $ECHO_C" >&6
3927else
3928  cat >conftest.$ac_ext <<_ACEOF
3929/* confdefs.h.  */
3930_ACEOF
3931cat confdefs.h >>conftest.$ac_ext
3932cat >>conftest.$ac_ext <<_ACEOF
3933/* end confdefs.h.  */
3934#include <stdlib.h>
3935#include <stdarg.h>
3936#include <string.h>
3937#include <float.h>
3938
3939int
3940main ()
3941{
3942
3943  ;
3944  return 0;
3945}
3946_ACEOF
3947rm -f conftest.$ac_objext
3948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3949  (eval $ac_compile) 2>conftest.er1
3950  ac_status=$?
3951  grep -v '^ *+' conftest.er1 >conftest.err
3952  rm -f conftest.er1
3953  cat conftest.err >&5
3954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955  (exit $ac_status); } &&
3956	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958  (eval $ac_try) 2>&5
3959  ac_status=$?
3960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961  (exit $ac_status); }; } &&
3962	 { ac_try='test -s conftest.$ac_objext'
3963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964  (eval $ac_try) 2>&5
3965  ac_status=$?
3966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967  (exit $ac_status); }; }; then
3968  ac_cv_header_stdc=yes
3969else
3970  echo "$as_me: failed program was:" >&5
3971sed 's/^/| /' conftest.$ac_ext >&5
3972
3973ac_cv_header_stdc=no
3974fi
3975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3976
3977if test $ac_cv_header_stdc = yes; then
3978  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3979  cat >conftest.$ac_ext <<_ACEOF
3980/* confdefs.h.  */
3981_ACEOF
3982cat confdefs.h >>conftest.$ac_ext
3983cat >>conftest.$ac_ext <<_ACEOF
3984/* end confdefs.h.  */
3985#include <string.h>
3986
3987_ACEOF
3988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3989  $EGREP "memchr" >/dev/null 2>&1; then
3990  :
3991else
3992  ac_cv_header_stdc=no
3993fi
3994rm -f conftest*
3995
3996fi
3997
3998if test $ac_cv_header_stdc = yes; then
3999  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4000  cat >conftest.$ac_ext <<_ACEOF
4001/* confdefs.h.  */
4002_ACEOF
4003cat confdefs.h >>conftest.$ac_ext
4004cat >>conftest.$ac_ext <<_ACEOF
4005/* end confdefs.h.  */
4006#include <stdlib.h>
4007
4008_ACEOF
4009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4010  $EGREP "free" >/dev/null 2>&1; then
4011  :
4012else
4013  ac_cv_header_stdc=no
4014fi
4015rm -f conftest*
4016
4017fi
4018
4019if test $ac_cv_header_stdc = yes; then
4020  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4021  if test "$cross_compiling" = yes; then
4022  :
4023else
4024  cat >conftest.$ac_ext <<_ACEOF
4025/* confdefs.h.  */
4026_ACEOF
4027cat confdefs.h >>conftest.$ac_ext
4028cat >>conftest.$ac_ext <<_ACEOF
4029/* end confdefs.h.  */
4030#include <ctype.h>
4031#if ((' ' & 0x0FF) == 0x020)
4032# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4033# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4034#else
4035# define ISLOWER(c) \
4036		   (('a' <= (c) && (c) <= 'i') \
4037		     || ('j' <= (c) && (c) <= 'r') \
4038		     || ('s' <= (c) && (c) <= 'z'))
4039# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4040#endif
4041
4042#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4043int
4044main ()
4045{
4046  int i;
4047  for (i = 0; i < 256; i++)
4048    if (XOR (islower (i), ISLOWER (i))
4049	|| toupper (i) != TOUPPER (i))
4050      exit(2);
4051  exit (0);
4052}
4053_ACEOF
4054rm -f conftest$ac_exeext
4055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4056  (eval $ac_link) 2>&5
4057  ac_status=$?
4058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061  (eval $ac_try) 2>&5
4062  ac_status=$?
4063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064  (exit $ac_status); }; }; then
4065  :
4066else
4067  echo "$as_me: program exited with status $ac_status" >&5
4068echo "$as_me: failed program was:" >&5
4069sed 's/^/| /' conftest.$ac_ext >&5
4070
4071( exit $ac_status )
4072ac_cv_header_stdc=no
4073fi
4074rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4075fi
4076fi
4077fi
4078echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4079echo "${ECHO_T}$ac_cv_header_stdc" >&6
4080if test $ac_cv_header_stdc = yes; then
4081
4082cat >>confdefs.h <<\_ACEOF
4083#define STDC_HEADERS 1
4084_ACEOF
4085
4086fi
4087
4088echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4089echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4090if test "${ac_cv_c_const+set}" = set; then
4091  echo $ECHO_N "(cached) $ECHO_C" >&6
4092else
4093  cat >conftest.$ac_ext <<_ACEOF
4094/* confdefs.h.  */
4095_ACEOF
4096cat confdefs.h >>conftest.$ac_ext
4097cat >>conftest.$ac_ext <<_ACEOF
4098/* end confdefs.h.  */
4099
4100int
4101main ()
4102{
4103/* FIXME: Include the comments suggested by Paul. */
4104#ifndef __cplusplus
4105  /* Ultrix mips cc rejects this.  */
4106  typedef int charset[2];
4107  const charset x;
4108  /* SunOS 4.1.1 cc rejects this.  */
4109  char const *const *ccp;
4110  char **p;
4111  /* NEC SVR4.0.2 mips cc rejects this.  */
4112  struct point {int x, y;};
4113  static struct point const zero = {0,0};
4114  /* AIX XL C 1.02.0.0 rejects this.
4115     It does not let you subtract one const X* pointer from another in
4116     an arm of an if-expression whose if-part is not a constant
4117     expression */
4118  const char *g = "string";
4119  ccp = &g + (g ? g-g : 0);
4120  /* HPUX 7.0 cc rejects these. */
4121  ++ccp;
4122  p = (char**) ccp;
4123  ccp = (char const *const *) p;
4124  { /* SCO 3.2v4 cc rejects this.  */
4125    char *t;
4126    char const *s = 0 ? (char *) 0 : (char const *) 0;
4127
4128    *t++ = 0;
4129  }
4130  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4131    int x[] = {25, 17};
4132    const int *foo = &x[0];
4133    ++foo;
4134  }
4135  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4136    typedef const int *iptr;
4137    iptr p = 0;
4138    ++p;
4139  }
4140  { /* AIX XL C 1.02.0.0 rejects this saying
4141       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4142    struct s { int j; const int *ap[3]; };
4143    struct s *b; b->j = 5;
4144  }
4145  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4146    const int foo = 10;
4147  }
4148#endif
4149
4150  ;
4151  return 0;
4152}
4153_ACEOF
4154rm -f conftest.$ac_objext
4155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4156  (eval $ac_compile) 2>conftest.er1
4157  ac_status=$?
4158  grep -v '^ *+' conftest.er1 >conftest.err
4159  rm -f conftest.er1
4160  cat conftest.err >&5
4161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162  (exit $ac_status); } &&
4163	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165  (eval $ac_try) 2>&5
4166  ac_status=$?
4167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168  (exit $ac_status); }; } &&
4169	 { ac_try='test -s conftest.$ac_objext'
4170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171  (eval $ac_try) 2>&5
4172  ac_status=$?
4173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174  (exit $ac_status); }; }; then
4175  ac_cv_c_const=yes
4176else
4177  echo "$as_me: failed program was:" >&5
4178sed 's/^/| /' conftest.$ac_ext >&5
4179
4180ac_cv_c_const=no
4181fi
4182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4183fi
4184echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4185echo "${ECHO_T}$ac_cv_c_const" >&6
4186if test $ac_cv_c_const = no; then
4187
4188cat >>confdefs.h <<\_ACEOF
4189#define const
4190_ACEOF
4191
4192fi
4193
4194
4195  echo "$as_me:$LINENO: checking for signed" >&5
4196echo $ECHO_N "checking for signed... $ECHO_C" >&6
4197if test "${bh_cv_c_signed+set}" = set; then
4198  echo $ECHO_N "(cached) $ECHO_C" >&6
4199else
4200  cat >conftest.$ac_ext <<_ACEOF
4201/* confdefs.h.  */
4202_ACEOF
4203cat confdefs.h >>conftest.$ac_ext
4204cat >>conftest.$ac_ext <<_ACEOF
4205/* end confdefs.h.  */
4206
4207int
4208main ()
4209{
4210signed char x;
4211  ;
4212  return 0;
4213}
4214_ACEOF
4215rm -f conftest.$ac_objext
4216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4217  (eval $ac_compile) 2>conftest.er1
4218  ac_status=$?
4219  grep -v '^ *+' conftest.er1 >conftest.err
4220  rm -f conftest.er1
4221  cat conftest.err >&5
4222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223  (exit $ac_status); } &&
4224	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226  (eval $ac_try) 2>&5
4227  ac_status=$?
4228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229  (exit $ac_status); }; } &&
4230	 { ac_try='test -s conftest.$ac_objext'
4231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232  (eval $ac_try) 2>&5
4233  ac_status=$?
4234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235  (exit $ac_status); }; }; then
4236  bh_cv_c_signed=yes
4237else
4238  echo "$as_me: failed program was:" >&5
4239sed 's/^/| /' conftest.$ac_ext >&5
4240
4241bh_cv_c_signed=no
4242fi
4243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4244fi
4245echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4246echo "${ECHO_T}$bh_cv_c_signed" >&6
4247  if test $bh_cv_c_signed = no; then
4248
4249cat >>confdefs.h <<\_ACEOF
4250#define signed
4251_ACEOF
4252
4253  fi
4254
4255echo "$as_me:$LINENO: checking for inline" >&5
4256echo $ECHO_N "checking for inline... $ECHO_C" >&6
4257if test "${ac_cv_c_inline+set}" = set; then
4258  echo $ECHO_N "(cached) $ECHO_C" >&6
4259else
4260  ac_cv_c_inline=no
4261for ac_kw in inline __inline__ __inline; do
4262  cat >conftest.$ac_ext <<_ACEOF
4263/* confdefs.h.  */
4264_ACEOF
4265cat confdefs.h >>conftest.$ac_ext
4266cat >>conftest.$ac_ext <<_ACEOF
4267/* end confdefs.h.  */
4268#ifndef __cplusplus
4269typedef int foo_t;
4270static $ac_kw foo_t static_foo () {return 0; }
4271$ac_kw foo_t foo () {return 0; }
4272#endif
4273
4274_ACEOF
4275rm -f conftest.$ac_objext
4276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4277  (eval $ac_compile) 2>conftest.er1
4278  ac_status=$?
4279  grep -v '^ *+' conftest.er1 >conftest.err
4280  rm -f conftest.er1
4281  cat conftest.err >&5
4282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283  (exit $ac_status); } &&
4284	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286  (eval $ac_try) 2>&5
4287  ac_status=$?
4288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289  (exit $ac_status); }; } &&
4290	 { ac_try='test -s conftest.$ac_objext'
4291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292  (eval $ac_try) 2>&5
4293  ac_status=$?
4294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295  (exit $ac_status); }; }; then
4296  ac_cv_c_inline=$ac_kw; break
4297else
4298  echo "$as_me: failed program was:" >&5
4299sed 's/^/| /' conftest.$ac_ext >&5
4300
4301fi
4302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4303done
4304
4305fi
4306echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4307echo "${ECHO_T}$ac_cv_c_inline" >&6
4308
4309
4310case $ac_cv_c_inline in
4311  inline | yes) ;;
4312  *)
4313    case $ac_cv_c_inline in
4314      no) ac_val=;;
4315      *) ac_val=$ac_cv_c_inline;;
4316    esac
4317    cat >>confdefs.h <<_ACEOF
4318#ifndef __cplusplus
4319#define inline $ac_val
4320#endif
4321_ACEOF
4322    ;;
4323esac
4324
4325# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4336		  inttypes.h stdint.h unistd.h
4337do
4338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4339echo "$as_me:$LINENO: checking for $ac_header" >&5
4340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4341if eval "test \"\${$as_ac_Header+set}\" = set"; then
4342  echo $ECHO_N "(cached) $ECHO_C" >&6
4343else
4344  cat >conftest.$ac_ext <<_ACEOF
4345/* confdefs.h.  */
4346_ACEOF
4347cat confdefs.h >>conftest.$ac_ext
4348cat >>conftest.$ac_ext <<_ACEOF
4349/* end confdefs.h.  */
4350$ac_includes_default
4351
4352#include <$ac_header>
4353_ACEOF
4354rm -f conftest.$ac_objext
4355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356  (eval $ac_compile) 2>conftest.er1
4357  ac_status=$?
4358  grep -v '^ *+' conftest.er1 >conftest.err
4359  rm -f conftest.er1
4360  cat conftest.err >&5
4361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362  (exit $ac_status); } &&
4363	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365  (eval $ac_try) 2>&5
4366  ac_status=$?
4367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368  (exit $ac_status); }; } &&
4369	 { ac_try='test -s conftest.$ac_objext'
4370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371  (eval $ac_try) 2>&5
4372  ac_status=$?
4373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374  (exit $ac_status); }; }; then
4375  eval "$as_ac_Header=yes"
4376else
4377  echo "$as_me: failed program was:" >&5
4378sed 's/^/| /' conftest.$ac_ext >&5
4379
4380eval "$as_ac_Header=no"
4381fi
4382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4383fi
4384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4385echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4386if test `eval echo '${'$as_ac_Header'}'` = yes; then
4387  cat >>confdefs.h <<_ACEOF
4388#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4389_ACEOF
4390
4391fi
4392
4393done
4394
4395
4396echo "$as_me:$LINENO: checking for off_t" >&5
4397echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4398if test "${ac_cv_type_off_t+set}" = set; then
4399  echo $ECHO_N "(cached) $ECHO_C" >&6
4400else
4401  cat >conftest.$ac_ext <<_ACEOF
4402/* confdefs.h.  */
4403_ACEOF
4404cat confdefs.h >>conftest.$ac_ext
4405cat >>conftest.$ac_ext <<_ACEOF
4406/* end confdefs.h.  */
4407$ac_includes_default
4408int
4409main ()
4410{
4411if ((off_t *) 0)
4412  return 0;
4413if (sizeof (off_t))
4414  return 0;
4415  ;
4416  return 0;
4417}
4418_ACEOF
4419rm -f conftest.$ac_objext
4420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4421  (eval $ac_compile) 2>conftest.er1
4422  ac_status=$?
4423  grep -v '^ *+' conftest.er1 >conftest.err
4424  rm -f conftest.er1
4425  cat conftest.err >&5
4426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427  (exit $ac_status); } &&
4428	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430  (eval $ac_try) 2>&5
4431  ac_status=$?
4432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433  (exit $ac_status); }; } &&
4434	 { ac_try='test -s conftest.$ac_objext'
4435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436  (eval $ac_try) 2>&5
4437  ac_status=$?
4438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439  (exit $ac_status); }; }; then
4440  ac_cv_type_off_t=yes
4441else
4442  echo "$as_me: failed program was:" >&5
4443sed 's/^/| /' conftest.$ac_ext >&5
4444
4445ac_cv_type_off_t=no
4446fi
4447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4448fi
4449echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4450echo "${ECHO_T}$ac_cv_type_off_t" >&6
4451if test $ac_cv_type_off_t = yes; then
4452  :
4453else
4454
4455cat >>confdefs.h <<_ACEOF
4456#define off_t long
4457_ACEOF
4458
4459fi
4460
4461echo "$as_me:$LINENO: checking for size_t" >&5
4462echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4463if test "${ac_cv_type_size_t+set}" = set; then
4464  echo $ECHO_N "(cached) $ECHO_C" >&6
4465else
4466  cat >conftest.$ac_ext <<_ACEOF
4467/* confdefs.h.  */
4468_ACEOF
4469cat confdefs.h >>conftest.$ac_ext
4470cat >>conftest.$ac_ext <<_ACEOF
4471/* end confdefs.h.  */
4472$ac_includes_default
4473int
4474main ()
4475{
4476if ((size_t *) 0)
4477  return 0;
4478if (sizeof (size_t))
4479  return 0;
4480  ;
4481  return 0;
4482}
4483_ACEOF
4484rm -f conftest.$ac_objext
4485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4486  (eval $ac_compile) 2>conftest.er1
4487  ac_status=$?
4488  grep -v '^ *+' conftest.er1 >conftest.err
4489  rm -f conftest.er1
4490  cat conftest.err >&5
4491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492  (exit $ac_status); } &&
4493	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495  (eval $ac_try) 2>&5
4496  ac_status=$?
4497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498  (exit $ac_status); }; } &&
4499	 { ac_try='test -s conftest.$ac_objext'
4500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501  (eval $ac_try) 2>&5
4502  ac_status=$?
4503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504  (exit $ac_status); }; }; then
4505  ac_cv_type_size_t=yes
4506else
4507  echo "$as_me: failed program was:" >&5
4508sed 's/^/| /' conftest.$ac_ext >&5
4509
4510ac_cv_type_size_t=no
4511fi
4512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4513fi
4514echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4515echo "${ECHO_T}$ac_cv_type_size_t" >&6
4516if test $ac_cv_type_size_t = yes; then
4517  :
4518else
4519
4520cat >>confdefs.h <<_ACEOF
4521#define size_t unsigned
4522_ACEOF
4523
4524fi
4525
4526
4527  echo "$as_me:$LINENO: checking for long long" >&5
4528echo $ECHO_N "checking for long long... $ECHO_C" >&6
4529if test "${ac_cv_type_long_long+set}" = set; then
4530  echo $ECHO_N "(cached) $ECHO_C" >&6
4531else
4532  cat >conftest.$ac_ext <<_ACEOF
4533/* confdefs.h.  */
4534_ACEOF
4535cat confdefs.h >>conftest.$ac_ext
4536cat >>conftest.$ac_ext <<_ACEOF
4537/* end confdefs.h.  */
4538long long ll = 1LL; int i = 63;
4539int
4540main ()
4541{
4542long long llmax = (long long) -1;
4543     return ll << i | ll >> i | llmax / ll | llmax % ll;
4544  ;
4545  return 0;
4546}
4547_ACEOF
4548rm -f conftest.$ac_objext conftest$ac_exeext
4549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4550  (eval $ac_link) 2>conftest.er1
4551  ac_status=$?
4552  grep -v '^ *+' conftest.er1 >conftest.err
4553  rm -f conftest.er1
4554  cat conftest.err >&5
4555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556  (exit $ac_status); } &&
4557	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559  (eval $ac_try) 2>&5
4560  ac_status=$?
4561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562  (exit $ac_status); }; } &&
4563	 { ac_try='test -s conftest$ac_exeext'
4564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565  (eval $ac_try) 2>&5
4566  ac_status=$?
4567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568  (exit $ac_status); }; }; then
4569  ac_cv_type_long_long=yes
4570else
4571  echo "$as_me: failed program was:" >&5
4572sed 's/^/| /' conftest.$ac_ext >&5
4573
4574ac_cv_type_long_long=no
4575fi
4576rm -f conftest.err conftest.$ac_objext \
4577      conftest$ac_exeext conftest.$ac_ext
4578fi
4579echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4580echo "${ECHO_T}$ac_cv_type_long_long" >&6
4581  if test $ac_cv_type_long_long = yes; then
4582
4583cat >>confdefs.h <<\_ACEOF
4584#define HAVE_LONG_LONG 1
4585_ACEOF
4586
4587  fi
4588
4589
4590  echo "$as_me:$LINENO: checking for long double" >&5
4591echo $ECHO_N "checking for long double... $ECHO_C" >&6
4592if test "${gt_cv_c_long_double+set}" = set; then
4593  echo $ECHO_N "(cached) $ECHO_C" >&6
4594else
4595  if test "$GCC" = yes; then
4596       gt_cv_c_long_double=yes
4597     else
4598       cat >conftest.$ac_ext <<_ACEOF
4599/* confdefs.h.  */
4600_ACEOF
4601cat confdefs.h >>conftest.$ac_ext
4602cat >>conftest.$ac_ext <<_ACEOF
4603/* end confdefs.h.  */
4604
4605         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
4606         long double foo = 0.0;
4607         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
4608         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
4609
4610int
4611main ()
4612{
4613
4614  ;
4615  return 0;
4616}
4617_ACEOF
4618rm -f conftest.$ac_objext
4619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4620  (eval $ac_compile) 2>conftest.er1
4621  ac_status=$?
4622  grep -v '^ *+' conftest.er1 >conftest.err
4623  rm -f conftest.er1
4624  cat conftest.err >&5
4625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626  (exit $ac_status); } &&
4627	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629  (eval $ac_try) 2>&5
4630  ac_status=$?
4631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632  (exit $ac_status); }; } &&
4633	 { ac_try='test -s conftest.$ac_objext'
4634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635  (eval $ac_try) 2>&5
4636  ac_status=$?
4637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638  (exit $ac_status); }; }; then
4639  gt_cv_c_long_double=yes
4640else
4641  echo "$as_me: failed program was:" >&5
4642sed 's/^/| /' conftest.$ac_ext >&5
4643
4644gt_cv_c_long_double=no
4645fi
4646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4647     fi
4648fi
4649echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
4650echo "${ECHO_T}$gt_cv_c_long_double" >&6
4651  if test $gt_cv_c_long_double = yes; then
4652
4653cat >>confdefs.h <<\_ACEOF
4654#define HAVE_LONG_DOUBLE 1
4655_ACEOF
4656
4657  fi
4658
4659
4660  echo "$as_me:$LINENO: checking for wchar_t" >&5
4661echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4662if test "${gt_cv_c_wchar_t+set}" = set; then
4663  echo $ECHO_N "(cached) $ECHO_C" >&6
4664else
4665  cat >conftest.$ac_ext <<_ACEOF
4666/* confdefs.h.  */
4667_ACEOF
4668cat confdefs.h >>conftest.$ac_ext
4669cat >>conftest.$ac_ext <<_ACEOF
4670/* end confdefs.h.  */
4671#include <stddef.h>
4672       wchar_t foo = (wchar_t)'\0';
4673int
4674main ()
4675{
4676
4677  ;
4678  return 0;
4679}
4680_ACEOF
4681rm -f conftest.$ac_objext
4682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4683  (eval $ac_compile) 2>conftest.er1
4684  ac_status=$?
4685  grep -v '^ *+' conftest.er1 >conftest.err
4686  rm -f conftest.er1
4687  cat conftest.err >&5
4688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689  (exit $ac_status); } &&
4690	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692  (eval $ac_try) 2>&5
4693  ac_status=$?
4694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695  (exit $ac_status); }; } &&
4696	 { ac_try='test -s conftest.$ac_objext'
4697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698  (eval $ac_try) 2>&5
4699  ac_status=$?
4700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701  (exit $ac_status); }; }; then
4702  gt_cv_c_wchar_t=yes
4703else
4704  echo "$as_me: failed program was:" >&5
4705sed 's/^/| /' conftest.$ac_ext >&5
4706
4707gt_cv_c_wchar_t=no
4708fi
4709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4710fi
4711echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
4712echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
4713  if test $gt_cv_c_wchar_t = yes; then
4714
4715cat >>confdefs.h <<\_ACEOF
4716#define HAVE_WCHAR_T 1
4717_ACEOF
4718
4719  fi
4720
4721
4722  echo "$as_me:$LINENO: checking for wint_t" >&5
4723echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
4724if test "${gt_cv_c_wint_t+set}" = set; then
4725  echo $ECHO_N "(cached) $ECHO_C" >&6
4726else
4727  cat >conftest.$ac_ext <<_ACEOF
4728/* confdefs.h.  */
4729_ACEOF
4730cat confdefs.h >>conftest.$ac_ext
4731cat >>conftest.$ac_ext <<_ACEOF
4732/* end confdefs.h.  */
4733#include <wchar.h>
4734       wint_t foo = (wchar_t)'\0';
4735int
4736main ()
4737{
4738
4739  ;
4740  return 0;
4741}
4742_ACEOF
4743rm -f conftest.$ac_objext
4744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4745  (eval $ac_compile) 2>conftest.er1
4746  ac_status=$?
4747  grep -v '^ *+' conftest.er1 >conftest.err
4748  rm -f conftest.er1
4749  cat conftest.err >&5
4750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751  (exit $ac_status); } &&
4752	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754  (eval $ac_try) 2>&5
4755  ac_status=$?
4756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757  (exit $ac_status); }; } &&
4758	 { ac_try='test -s conftest.$ac_objext'
4759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760  (eval $ac_try) 2>&5
4761  ac_status=$?
4762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763  (exit $ac_status); }; }; then
4764  gt_cv_c_wint_t=yes
4765else
4766  echo "$as_me: failed program was:" >&5
4767sed 's/^/| /' conftest.$ac_ext >&5
4768
4769gt_cv_c_wint_t=no
4770fi
4771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4772fi
4773echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
4774echo "${ECHO_T}$gt_cv_c_wint_t" >&6
4775  if test $gt_cv_c_wint_t = yes; then
4776
4777cat >>confdefs.h <<\_ACEOF
4778#define HAVE_WINT_T 1
4779_ACEOF
4780
4781  fi
4782
4783
4784  echo "$as_me:$LINENO: checking for inttypes.h" >&5
4785echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4786if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4787  echo $ECHO_N "(cached) $ECHO_C" >&6
4788else
4789  cat >conftest.$ac_ext <<_ACEOF
4790/* confdefs.h.  */
4791_ACEOF
4792cat confdefs.h >>conftest.$ac_ext
4793cat >>conftest.$ac_ext <<_ACEOF
4794/* end confdefs.h.  */
4795#include <sys/types.h>
4796#include <inttypes.h>
4797int
4798main ()
4799{
4800uintmax_t i = (uintmax_t) -1;
4801  ;
4802  return 0;
4803}
4804_ACEOF
4805rm -f conftest.$ac_objext
4806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4807  (eval $ac_compile) 2>conftest.er1
4808  ac_status=$?
4809  grep -v '^ *+' conftest.er1 >conftest.err
4810  rm -f conftest.er1
4811  cat conftest.err >&5
4812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813  (exit $ac_status); } &&
4814	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816  (eval $ac_try) 2>&5
4817  ac_status=$?
4818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819  (exit $ac_status); }; } &&
4820	 { ac_try='test -s conftest.$ac_objext'
4821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822  (eval $ac_try) 2>&5
4823  ac_status=$?
4824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825  (exit $ac_status); }; }; then
4826  jm_ac_cv_header_inttypes_h=yes
4827else
4828  echo "$as_me: failed program was:" >&5
4829sed 's/^/| /' conftest.$ac_ext >&5
4830
4831jm_ac_cv_header_inttypes_h=no
4832fi
4833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4834fi
4835echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
4836echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4837  if test $jm_ac_cv_header_inttypes_h = yes; then
4838
4839cat >>confdefs.h <<_ACEOF
4840#define HAVE_INTTYPES_H_WITH_UINTMAX 1
4841_ACEOF
4842
4843  fi
4844
4845
4846  echo "$as_me:$LINENO: checking for stdint.h" >&5
4847echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4848if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4849  echo $ECHO_N "(cached) $ECHO_C" >&6
4850else
4851  cat >conftest.$ac_ext <<_ACEOF
4852/* confdefs.h.  */
4853_ACEOF
4854cat confdefs.h >>conftest.$ac_ext
4855cat >>conftest.$ac_ext <<_ACEOF
4856/* end confdefs.h.  */
4857#include <sys/types.h>
4858#include <stdint.h>
4859int
4860main ()
4861{
4862uintmax_t i = (uintmax_t) -1;
4863  ;
4864  return 0;
4865}
4866_ACEOF
4867rm -f conftest.$ac_objext
4868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4869  (eval $ac_compile) 2>conftest.er1
4870  ac_status=$?
4871  grep -v '^ *+' conftest.er1 >conftest.err
4872  rm -f conftest.er1
4873  cat conftest.err >&5
4874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875  (exit $ac_status); } &&
4876	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878  (eval $ac_try) 2>&5
4879  ac_status=$?
4880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881  (exit $ac_status); }; } &&
4882	 { ac_try='test -s conftest.$ac_objext'
4883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884  (eval $ac_try) 2>&5
4885  ac_status=$?
4886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887  (exit $ac_status); }; }; then
4888  jm_ac_cv_header_stdint_h=yes
4889else
4890  echo "$as_me: failed program was:" >&5
4891sed 's/^/| /' conftest.$ac_ext >&5
4892
4893jm_ac_cv_header_stdint_h=no
4894fi
4895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4896fi
4897echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
4898echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
4899  if test $jm_ac_cv_header_stdint_h = yes; then
4900
4901cat >>confdefs.h <<_ACEOF
4902#define HAVE_STDINT_H_WITH_UINTMAX 1
4903_ACEOF
4904
4905  fi
4906
4907
4908
4909
4910  echo "$as_me:$LINENO: checking for intmax_t" >&5
4911echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
4912if test "${gt_cv_c_intmax_t+set}" = set; then
4913  echo $ECHO_N "(cached) $ECHO_C" >&6
4914else
4915  cat >conftest.$ac_ext <<_ACEOF
4916/* confdefs.h.  */
4917_ACEOF
4918cat confdefs.h >>conftest.$ac_ext
4919cat >>conftest.$ac_ext <<_ACEOF
4920/* end confdefs.h.  */
4921
4922#include <stddef.h>
4923#include <stdlib.h>
4924#if HAVE_STDINT_H_WITH_UINTMAX
4925#include <stdint.h>
4926#endif
4927#if HAVE_INTTYPES_H_WITH_UINTMAX
4928#include <inttypes.h>
4929#endif
4930
4931int
4932main ()
4933{
4934intmax_t x = -1;
4935  ;
4936  return 0;
4937}
4938_ACEOF
4939rm -f conftest.$ac_objext
4940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4941  (eval $ac_compile) 2>conftest.er1
4942  ac_status=$?
4943  grep -v '^ *+' conftest.er1 >conftest.err
4944  rm -f conftest.er1
4945  cat conftest.err >&5
4946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947  (exit $ac_status); } &&
4948	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950  (eval $ac_try) 2>&5
4951  ac_status=$?
4952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953  (exit $ac_status); }; } &&
4954	 { ac_try='test -s conftest.$ac_objext'
4955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956  (eval $ac_try) 2>&5
4957  ac_status=$?
4958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959  (exit $ac_status); }; }; then
4960  gt_cv_c_intmax_t=yes
4961else
4962  echo "$as_me: failed program was:" >&5
4963sed 's/^/| /' conftest.$ac_ext >&5
4964
4965gt_cv_c_intmax_t=no
4966fi
4967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4968fi
4969echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
4970echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
4971  if test $gt_cv_c_intmax_t = yes; then
4972
4973cat >>confdefs.h <<\_ACEOF
4974#define HAVE_INTMAX_T 1
4975_ACEOF
4976
4977  fi
4978
4979
4980
4981  echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
4982echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
4983if test "${gt_cv_func_printf_posix+set}" = set; then
4984  echo $ECHO_N "(cached) $ECHO_C" >&6
4985else
4986
4987      if test "$cross_compiling" = yes; then
4988
4989        cat >conftest.$ac_ext <<_ACEOF
4990/* confdefs.h.  */
4991_ACEOF
4992cat confdefs.h >>conftest.$ac_ext
4993cat >>conftest.$ac_ext <<_ACEOF
4994/* end confdefs.h.  */
4995
4996#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
4997  notposix
4998#endif
4999
5000_ACEOF
5001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5002  $EGREP "notposix" >/dev/null 2>&1; then
5003  gt_cv_func_printf_posix="guessing no"
5004else
5005  gt_cv_func_printf_posix="guessing yes"
5006fi
5007rm -f conftest*
5008
5009
5010else
5011  cat >conftest.$ac_ext <<_ACEOF
5012/* confdefs.h.  */
5013_ACEOF
5014cat confdefs.h >>conftest.$ac_ext
5015cat >>conftest.$ac_ext <<_ACEOF
5016/* end confdefs.h.  */
5017
5018#include <stdio.h>
5019#include <string.h>
5020/* The string "%2$d %1$d", with dollar characters protected from the shell's
5021   dollar expansion (possibly an autoconf bug).  */
5022static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5023static char buf[100];
5024int main ()
5025{
5026  sprintf (buf, format, 33, 55);
5027  return (strcmp (buf, "55 33") != 0);
5028}
5029_ACEOF
5030rm -f conftest$ac_exeext
5031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5032  (eval $ac_link) 2>&5
5033  ac_status=$?
5034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037  (eval $ac_try) 2>&5
5038  ac_status=$?
5039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040  (exit $ac_status); }; }; then
5041  gt_cv_func_printf_posix=yes
5042else
5043  echo "$as_me: program exited with status $ac_status" >&5
5044echo "$as_me: failed program was:" >&5
5045sed 's/^/| /' conftest.$ac_ext >&5
5046
5047( exit $ac_status )
5048gt_cv_func_printf_posix=no
5049fi
5050rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5051fi
5052
5053fi
5054echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5055echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
5056  case $gt_cv_func_printf_posix in
5057    *yes)
5058
5059cat >>confdefs.h <<\_ACEOF
5060#define HAVE_POSIX_PRINTF 1
5061_ACEOF
5062
5063      ;;
5064  esac
5065
5066# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5067# for constant arguments.  Useless!
5068echo "$as_me:$LINENO: checking for working alloca.h" >&5
5069echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5070if test "${ac_cv_working_alloca_h+set}" = set; then
5071  echo $ECHO_N "(cached) $ECHO_C" >&6
5072else
5073  cat >conftest.$ac_ext <<_ACEOF
5074/* confdefs.h.  */
5075_ACEOF
5076cat confdefs.h >>conftest.$ac_ext
5077cat >>conftest.$ac_ext <<_ACEOF
5078/* end confdefs.h.  */
5079#include <alloca.h>
5080int
5081main ()
5082{
5083char *p = (char *) alloca (2 * sizeof (int));
5084  ;
5085  return 0;
5086}
5087_ACEOF
5088rm -f conftest.$ac_objext conftest$ac_exeext
5089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5090  (eval $ac_link) 2>conftest.er1
5091  ac_status=$?
5092  grep -v '^ *+' conftest.er1 >conftest.err
5093  rm -f conftest.er1
5094  cat conftest.err >&5
5095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096  (exit $ac_status); } &&
5097	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099  (eval $ac_try) 2>&5
5100  ac_status=$?
5101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102  (exit $ac_status); }; } &&
5103	 { ac_try='test -s conftest$ac_exeext'
5104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105  (eval $ac_try) 2>&5
5106  ac_status=$?
5107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108  (exit $ac_status); }; }; then
5109  ac_cv_working_alloca_h=yes
5110else
5111  echo "$as_me: failed program was:" >&5
5112sed 's/^/| /' conftest.$ac_ext >&5
5113
5114ac_cv_working_alloca_h=no
5115fi
5116rm -f conftest.err conftest.$ac_objext \
5117      conftest$ac_exeext conftest.$ac_ext
5118fi
5119echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5120echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5121if test $ac_cv_working_alloca_h = yes; then
5122
5123cat >>confdefs.h <<\_ACEOF
5124#define HAVE_ALLOCA_H 1
5125_ACEOF
5126
5127fi
5128
5129echo "$as_me:$LINENO: checking for alloca" >&5
5130echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5131if test "${ac_cv_func_alloca_works+set}" = set; then
5132  echo $ECHO_N "(cached) $ECHO_C" >&6
5133else
5134  cat >conftest.$ac_ext <<_ACEOF
5135/* confdefs.h.  */
5136_ACEOF
5137cat confdefs.h >>conftest.$ac_ext
5138cat >>conftest.$ac_ext <<_ACEOF
5139/* end confdefs.h.  */
5140#ifdef __GNUC__
5141# define alloca __builtin_alloca
5142#else
5143# ifdef _MSC_VER
5144#  include <malloc.h>
5145#  define alloca _alloca
5146# else
5147#  if HAVE_ALLOCA_H
5148#   include <alloca.h>
5149#  else
5150#   ifdef _AIX
5151 #pragma alloca
5152#   else
5153#    ifndef alloca /* predefined by HP cc +Olibcalls */
5154char *alloca ();
5155#    endif
5156#   endif
5157#  endif
5158# endif
5159#endif
5160
5161int
5162main ()
5163{
5164char *p = (char *) alloca (1);
5165  ;
5166  return 0;
5167}
5168_ACEOF
5169rm -f conftest.$ac_objext conftest$ac_exeext
5170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5171  (eval $ac_link) 2>conftest.er1
5172  ac_status=$?
5173  grep -v '^ *+' conftest.er1 >conftest.err
5174  rm -f conftest.er1
5175  cat conftest.err >&5
5176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177  (exit $ac_status); } &&
5178	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180  (eval $ac_try) 2>&5
5181  ac_status=$?
5182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183  (exit $ac_status); }; } &&
5184	 { ac_try='test -s conftest$ac_exeext'
5185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186  (eval $ac_try) 2>&5
5187  ac_status=$?
5188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189  (exit $ac_status); }; }; then
5190  ac_cv_func_alloca_works=yes
5191else
5192  echo "$as_me: failed program was:" >&5
5193sed 's/^/| /' conftest.$ac_ext >&5
5194
5195ac_cv_func_alloca_works=no
5196fi
5197rm -f conftest.err conftest.$ac_objext \
5198      conftest$ac_exeext conftest.$ac_ext
5199fi
5200echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5201echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5202
5203if test $ac_cv_func_alloca_works = yes; then
5204
5205cat >>confdefs.h <<\_ACEOF
5206#define HAVE_ALLOCA 1
5207_ACEOF
5208
5209else
5210  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5211# that cause trouble.  Some versions do not even contain alloca or
5212# contain a buggy version.  If you still want to use their alloca,
5213# use ar to extract alloca.o from them instead of compiling alloca.c.
5214
5215ALLOCA=alloca.$ac_objext
5216
5217cat >>confdefs.h <<\_ACEOF
5218#define C_ALLOCA 1
5219_ACEOF
5220
5221
5222echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5223echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5224if test "${ac_cv_os_cray+set}" = set; then
5225  echo $ECHO_N "(cached) $ECHO_C" >&6
5226else
5227  cat >conftest.$ac_ext <<_ACEOF
5228/* confdefs.h.  */
5229_ACEOF
5230cat confdefs.h >>conftest.$ac_ext
5231cat >>conftest.$ac_ext <<_ACEOF
5232/* end confdefs.h.  */
5233#if defined(CRAY) && ! defined(CRAY2)
5234webecray
5235#else
5236wenotbecray
5237#endif
5238
5239_ACEOF
5240if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5241  $EGREP "webecray" >/dev/null 2>&1; then
5242  ac_cv_os_cray=yes
5243else
5244  ac_cv_os_cray=no
5245fi
5246rm -f conftest*
5247
5248fi
5249echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5250echo "${ECHO_T}$ac_cv_os_cray" >&6
5251if test $ac_cv_os_cray = yes; then
5252  for ac_func in _getb67 GETB67 getb67; do
5253    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5254echo "$as_me:$LINENO: checking for $ac_func" >&5
5255echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5256if eval "test \"\${$as_ac_var+set}\" = set"; then
5257  echo $ECHO_N "(cached) $ECHO_C" >&6
5258else
5259  cat >conftest.$ac_ext <<_ACEOF
5260/* confdefs.h.  */
5261_ACEOF
5262cat confdefs.h >>conftest.$ac_ext
5263cat >>conftest.$ac_ext <<_ACEOF
5264/* end confdefs.h.  */
5265/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5266   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5267#define $ac_func innocuous_$ac_func
5268
5269/* System header to define __stub macros and hopefully few prototypes,
5270    which can conflict with char $ac_func (); below.
5271    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5272    <limits.h> exists even on freestanding compilers.  */
5273
5274#ifdef __STDC__
5275# include <limits.h>
5276#else
5277# include <assert.h>
5278#endif
5279
5280#undef $ac_func
5281
5282/* Override any gcc2 internal prototype to avoid an error.  */
5283#ifdef __cplusplus
5284extern "C"
5285{
5286#endif
5287/* We use char because int might match the return type of a gcc2
5288   builtin and then its argument prototype would still apply.  */
5289char $ac_func ();
5290/* The GNU C library defines this for functions which it implements
5291    to always fail with ENOSYS.  Some functions are actually named
5292    something starting with __ and the normal name is an alias.  */
5293#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5294choke me
5295#else
5296char (*f) () = $ac_func;
5297#endif
5298#ifdef __cplusplus
5299}
5300#endif
5301
5302int
5303main ()
5304{
5305return f != $ac_func;
5306  ;
5307  return 0;
5308}
5309_ACEOF
5310rm -f conftest.$ac_objext conftest$ac_exeext
5311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5312  (eval $ac_link) 2>conftest.er1
5313  ac_status=$?
5314  grep -v '^ *+' conftest.er1 >conftest.err
5315  rm -f conftest.er1
5316  cat conftest.err >&5
5317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318  (exit $ac_status); } &&
5319	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321  (eval $ac_try) 2>&5
5322  ac_status=$?
5323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324  (exit $ac_status); }; } &&
5325	 { ac_try='test -s conftest$ac_exeext'
5326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327  (eval $ac_try) 2>&5
5328  ac_status=$?
5329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330  (exit $ac_status); }; }; then
5331  eval "$as_ac_var=yes"
5332else
5333  echo "$as_me: failed program was:" >&5
5334sed 's/^/| /' conftest.$ac_ext >&5
5335
5336eval "$as_ac_var=no"
5337fi
5338rm -f conftest.err conftest.$ac_objext \
5339      conftest$ac_exeext conftest.$ac_ext
5340fi
5341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5342echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5343if test `eval echo '${'$as_ac_var'}'` = yes; then
5344
5345cat >>confdefs.h <<_ACEOF
5346#define CRAY_STACKSEG_END $ac_func
5347_ACEOF
5348
5349    break
5350fi
5351
5352  done
5353fi
5354
5355echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5356echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5357if test "${ac_cv_c_stack_direction+set}" = set; then
5358  echo $ECHO_N "(cached) $ECHO_C" >&6
5359else
5360  if test "$cross_compiling" = yes; then
5361  ac_cv_c_stack_direction=0
5362else
5363  cat >conftest.$ac_ext <<_ACEOF
5364/* confdefs.h.  */
5365_ACEOF
5366cat confdefs.h >>conftest.$ac_ext
5367cat >>conftest.$ac_ext <<_ACEOF
5368/* end confdefs.h.  */
5369int
5370find_stack_direction ()
5371{
5372  static char *addr = 0;
5373  auto char dummy;
5374  if (addr == 0)
5375    {
5376      addr = &dummy;
5377      return find_stack_direction ();
5378    }
5379  else
5380    return (&dummy > addr) ? 1 : -1;
5381}
5382
5383int
5384main ()
5385{
5386  exit (find_stack_direction () < 0);
5387}
5388_ACEOF
5389rm -f conftest$ac_exeext
5390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5391  (eval $ac_link) 2>&5
5392  ac_status=$?
5393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396  (eval $ac_try) 2>&5
5397  ac_status=$?
5398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399  (exit $ac_status); }; }; then
5400  ac_cv_c_stack_direction=1
5401else
5402  echo "$as_me: program exited with status $ac_status" >&5
5403echo "$as_me: failed program was:" >&5
5404sed 's/^/| /' conftest.$ac_ext >&5
5405
5406( exit $ac_status )
5407ac_cv_c_stack_direction=-1
5408fi
5409rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5410fi
5411fi
5412echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5413echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5414
5415cat >>confdefs.h <<_ACEOF
5416#define STACK_DIRECTION $ac_cv_c_stack_direction
5417_ACEOF
5418
5419
5420fi
5421
5422
5423
5424for ac_header in stdlib.h unistd.h
5425do
5426as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5427if eval "test \"\${$as_ac_Header+set}\" = set"; then
5428  echo "$as_me:$LINENO: checking for $ac_header" >&5
5429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5430if eval "test \"\${$as_ac_Header+set}\" = set"; then
5431  echo $ECHO_N "(cached) $ECHO_C" >&6
5432fi
5433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5434echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5435else
5436  # Is the header compilable?
5437echo "$as_me:$LINENO: checking $ac_header usability" >&5
5438echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5439cat >conftest.$ac_ext <<_ACEOF
5440/* confdefs.h.  */
5441_ACEOF
5442cat confdefs.h >>conftest.$ac_ext
5443cat >>conftest.$ac_ext <<_ACEOF
5444/* end confdefs.h.  */
5445$ac_includes_default
5446#include <$ac_header>
5447_ACEOF
5448rm -f conftest.$ac_objext
5449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5450  (eval $ac_compile) 2>conftest.er1
5451  ac_status=$?
5452  grep -v '^ *+' conftest.er1 >conftest.err
5453  rm -f conftest.er1
5454  cat conftest.err >&5
5455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456  (exit $ac_status); } &&
5457	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459  (eval $ac_try) 2>&5
5460  ac_status=$?
5461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462  (exit $ac_status); }; } &&
5463	 { ac_try='test -s conftest.$ac_objext'
5464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465  (eval $ac_try) 2>&5
5466  ac_status=$?
5467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468  (exit $ac_status); }; }; then
5469  ac_header_compiler=yes
5470else
5471  echo "$as_me: failed program was:" >&5
5472sed 's/^/| /' conftest.$ac_ext >&5
5473
5474ac_header_compiler=no
5475fi
5476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5477echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5478echo "${ECHO_T}$ac_header_compiler" >&6
5479
5480# Is the header present?
5481echo "$as_me:$LINENO: checking $ac_header presence" >&5
5482echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5483cat >conftest.$ac_ext <<_ACEOF
5484/* confdefs.h.  */
5485_ACEOF
5486cat confdefs.h >>conftest.$ac_ext
5487cat >>conftest.$ac_ext <<_ACEOF
5488/* end confdefs.h.  */
5489#include <$ac_header>
5490_ACEOF
5491if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5492  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5493  ac_status=$?
5494  grep -v '^ *+' conftest.er1 >conftest.err
5495  rm -f conftest.er1
5496  cat conftest.err >&5
5497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498  (exit $ac_status); } >/dev/null; then
5499  if test -s conftest.err; then
5500    ac_cpp_err=$ac_c_preproc_warn_flag
5501    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5502  else
5503    ac_cpp_err=
5504  fi
5505else
5506  ac_cpp_err=yes
5507fi
5508if test -z "$ac_cpp_err"; then
5509  ac_header_preproc=yes
5510else
5511  echo "$as_me: failed program was:" >&5
5512sed 's/^/| /' conftest.$ac_ext >&5
5513
5514  ac_header_preproc=no
5515fi
5516rm -f conftest.err conftest.$ac_ext
5517echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5518echo "${ECHO_T}$ac_header_preproc" >&6
5519
5520# So?  What about this header?
5521case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5522  yes:no: )
5523    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5524echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5525    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5526echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5527    ac_header_preproc=yes
5528    ;;
5529  no:yes:* )
5530    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5531echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5532    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5533echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5534    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5535echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5536    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5537echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5538    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5539echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5540    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5541echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5542    (
5543      cat <<\_ASBOX
5544## ---------------------------------- ##
5545## Report this to poincare@ikezoe.net ##
5546## ---------------------------------- ##
5547_ASBOX
5548    ) |
5549      sed "s/^/$as_me: WARNING:     /" >&2
5550    ;;
5551esac
5552echo "$as_me:$LINENO: checking for $ac_header" >&5
5553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5554if eval "test \"\${$as_ac_Header+set}\" = set"; then
5555  echo $ECHO_N "(cached) $ECHO_C" >&6
5556else
5557  eval "$as_ac_Header=\$ac_header_preproc"
5558fi
5559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5560echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5561
5562fi
5563if test `eval echo '${'$as_ac_Header'}'` = yes; then
5564  cat >>confdefs.h <<_ACEOF
5565#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5566_ACEOF
5567
5568fi
5569
5570done
5571
5572
5573for ac_func in getpagesize
5574do
5575as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5576echo "$as_me:$LINENO: checking for $ac_func" >&5
5577echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5578if eval "test \"\${$as_ac_var+set}\" = set"; then
5579  echo $ECHO_N "(cached) $ECHO_C" >&6
5580else
5581  cat >conftest.$ac_ext <<_ACEOF
5582/* confdefs.h.  */
5583_ACEOF
5584cat confdefs.h >>conftest.$ac_ext
5585cat >>conftest.$ac_ext <<_ACEOF
5586/* end confdefs.h.  */
5587/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5588   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5589#define $ac_func innocuous_$ac_func
5590
5591/* System header to define __stub macros and hopefully few prototypes,
5592    which can conflict with char $ac_func (); below.
5593    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5594    <limits.h> exists even on freestanding compilers.  */
5595
5596#ifdef __STDC__
5597# include <limits.h>
5598#else
5599# include <assert.h>
5600#endif
5601
5602#undef $ac_func
5603
5604/* Override any gcc2 internal prototype to avoid an error.  */
5605#ifdef __cplusplus
5606extern "C"
5607{
5608#endif
5609/* We use char because int might match the return type of a gcc2
5610   builtin and then its argument prototype would still apply.  */
5611char $ac_func ();
5612/* The GNU C library defines this for functions which it implements
5613    to always fail with ENOSYS.  Some functions are actually named
5614    something starting with __ and the normal name is an alias.  */
5615#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5616choke me
5617#else
5618char (*f) () = $ac_func;
5619#endif
5620#ifdef __cplusplus
5621}
5622#endif
5623
5624int
5625main ()
5626{
5627return f != $ac_func;
5628  ;
5629  return 0;
5630}
5631_ACEOF
5632rm -f conftest.$ac_objext conftest$ac_exeext
5633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5634  (eval $ac_link) 2>conftest.er1
5635  ac_status=$?
5636  grep -v '^ *+' conftest.er1 >conftest.err
5637  rm -f conftest.er1
5638  cat conftest.err >&5
5639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640  (exit $ac_status); } &&
5641	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643  (eval $ac_try) 2>&5
5644  ac_status=$?
5645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646  (exit $ac_status); }; } &&
5647	 { ac_try='test -s conftest$ac_exeext'
5648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649  (eval $ac_try) 2>&5
5650  ac_status=$?
5651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652  (exit $ac_status); }; }; then
5653  eval "$as_ac_var=yes"
5654else
5655  echo "$as_me: failed program was:" >&5
5656sed 's/^/| /' conftest.$ac_ext >&5
5657
5658eval "$as_ac_var=no"
5659fi
5660rm -f conftest.err conftest.$ac_objext \
5661      conftest$ac_exeext conftest.$ac_ext
5662fi
5663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5664echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5665if test `eval echo '${'$as_ac_var'}'` = yes; then
5666  cat >>confdefs.h <<_ACEOF
5667#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5668_ACEOF
5669
5670fi
5671done
5672
5673echo "$as_me:$LINENO: checking for working mmap" >&5
5674echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5675if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5676  echo $ECHO_N "(cached) $ECHO_C" >&6
5677else
5678  if test "$cross_compiling" = yes; then
5679  ac_cv_func_mmap_fixed_mapped=no
5680else
5681  cat >conftest.$ac_ext <<_ACEOF
5682/* confdefs.h.  */
5683_ACEOF
5684cat confdefs.h >>conftest.$ac_ext
5685cat >>conftest.$ac_ext <<_ACEOF
5686/* end confdefs.h.  */
5687$ac_includes_default
5688/* malloc might have been renamed as rpl_malloc. */
5689#undef malloc
5690
5691/* Thanks to Mike Haertel and Jim Avera for this test.
5692   Here is a matrix of mmap possibilities:
5693	mmap private not fixed
5694	mmap private fixed at somewhere currently unmapped
5695	mmap private fixed at somewhere already mapped
5696	mmap shared not fixed
5697	mmap shared fixed at somewhere currently unmapped
5698	mmap shared fixed at somewhere already mapped
5699   For private mappings, we should verify that changes cannot be read()
5700   back from the file, nor mmap's back from the file at a different
5701   address.  (There have been systems where private was not correctly
5702   implemented like the infamous i386 svr4.0, and systems where the
5703   VM page cache was not coherent with the file system buffer cache
5704   like early versions of FreeBSD and possibly contemporary NetBSD.)
5705   For shared mappings, we should conversely verify that changes get
5706   propagated back to all the places they're supposed to be.
5707
5708   Grep wants private fixed already mapped.
5709   The main things grep needs to know about mmap are:
5710   * does it exist and is it safe to write into the mmap'd area
5711   * how to use it (BSD variants)  */
5712
5713#include <fcntl.h>
5714#include <sys/mman.h>
5715
5716#if !STDC_HEADERS && !HAVE_STDLIB_H
5717char *malloc ();
5718#endif
5719
5720/* This mess was copied from the GNU getpagesize.h.  */
5721#if !HAVE_GETPAGESIZE
5722/* Assume that all systems that can run configure have sys/param.h.  */
5723# if !HAVE_SYS_PARAM_H
5724#  define HAVE_SYS_PARAM_H 1
5725# endif
5726
5727# ifdef _SC_PAGESIZE
5728#  define getpagesize() sysconf(_SC_PAGESIZE)
5729# else /* no _SC_PAGESIZE */
5730#  if HAVE_SYS_PARAM_H
5731#   include <sys/param.h>
5732#   ifdef EXEC_PAGESIZE
5733#    define getpagesize() EXEC_PAGESIZE
5734#   else /* no EXEC_PAGESIZE */
5735#    ifdef NBPG
5736#     define getpagesize() NBPG * CLSIZE
5737#     ifndef CLSIZE
5738#      define CLSIZE 1
5739#     endif /* no CLSIZE */
5740#    else /* no NBPG */
5741#     ifdef NBPC
5742#      define getpagesize() NBPC
5743#     else /* no NBPC */
5744#      ifdef PAGESIZE
5745#       define getpagesize() PAGESIZE
5746#      endif /* PAGESIZE */
5747#     endif /* no NBPC */
5748#    endif /* no NBPG */
5749#   endif /* no EXEC_PAGESIZE */
5750#  else /* no HAVE_SYS_PARAM_H */
5751#   define getpagesize() 8192	/* punt totally */
5752#  endif /* no HAVE_SYS_PARAM_H */
5753# endif /* no _SC_PAGESIZE */
5754
5755#endif /* no HAVE_GETPAGESIZE */
5756
5757int
5758main ()
5759{
5760  char *data, *data2, *data3;
5761  int i, pagesize;
5762  int fd;
5763
5764  pagesize = getpagesize ();
5765
5766  /* First, make a file with some known garbage in it. */
5767  data = (char *) malloc (pagesize);
5768  if (!data)
5769    exit (1);
5770  for (i = 0; i < pagesize; ++i)
5771    *(data + i) = rand ();
5772  umask (0);
5773  fd = creat ("conftest.mmap", 0600);
5774  if (fd < 0)
5775    exit (1);
5776  if (write (fd, data, pagesize) != pagesize)
5777    exit (1);
5778  close (fd);
5779
5780  /* Next, try to mmap the file at a fixed address which already has
5781     something else allocated at it.  If we can, also make sure that
5782     we see the same garbage.  */
5783  fd = open ("conftest.mmap", O_RDWR);
5784  if (fd < 0)
5785    exit (1);
5786  data2 = (char *) malloc (2 * pagesize);
5787  if (!data2)
5788    exit (1);
5789  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5790  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5791		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
5792    exit (1);
5793  for (i = 0; i < pagesize; ++i)
5794    if (*(data + i) != *(data2 + i))
5795      exit (1);
5796
5797  /* Finally, make sure that changes to the mapped area do not
5798     percolate back to the file as seen by read().  (This is a bug on
5799     some variants of i386 svr4.0.)  */
5800  for (i = 0; i < pagesize; ++i)
5801    *(data2 + i) = *(data2 + i) + 1;
5802  data3 = (char *) malloc (pagesize);
5803  if (!data3)
5804    exit (1);
5805  if (read (fd, data3, pagesize) != pagesize)
5806    exit (1);
5807  for (i = 0; i < pagesize; ++i)
5808    if (*(data + i) != *(data3 + i))
5809      exit (1);
5810  close (fd);
5811  exit (0);
5812}
5813_ACEOF
5814rm -f conftest$ac_exeext
5815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5816  (eval $ac_link) 2>&5
5817  ac_status=$?
5818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821  (eval $ac_try) 2>&5
5822  ac_status=$?
5823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824  (exit $ac_status); }; }; then
5825  ac_cv_func_mmap_fixed_mapped=yes
5826else
5827  echo "$as_me: program exited with status $ac_status" >&5
5828echo "$as_me: failed program was:" >&5
5829sed 's/^/| /' conftest.$ac_ext >&5
5830
5831( exit $ac_status )
5832ac_cv_func_mmap_fixed_mapped=no
5833fi
5834rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5835fi
5836fi
5837echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5838echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5839if test $ac_cv_func_mmap_fixed_mapped = yes; then
5840
5841cat >>confdefs.h <<\_ACEOF
5842#define HAVE_MMAP 1
5843_ACEOF
5844
5845fi
5846rm -f conftest.mmap
5847
5848
5849    echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5850echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5851if test "${ac_cv_gnu_library_2_1+set}" = set; then
5852  echo $ECHO_N "(cached) $ECHO_C" >&6
5853else
5854  cat >conftest.$ac_ext <<_ACEOF
5855/* confdefs.h.  */
5856_ACEOF
5857cat confdefs.h >>conftest.$ac_ext
5858cat >>conftest.$ac_ext <<_ACEOF
5859/* end confdefs.h.  */
5860
5861#include <features.h>
5862#ifdef __GNU_LIBRARY__
5863 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5864  Lucky GNU user
5865 #endif
5866#endif
5867
5868_ACEOF
5869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5870  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5871  ac_cv_gnu_library_2_1=yes
5872else
5873  ac_cv_gnu_library_2_1=no
5874fi
5875rm -f conftest*
5876
5877
5878
5879fi
5880echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5881echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5882
5883    GLIBC21="$ac_cv_gnu_library_2_1"
5884
5885
5886
5887
5888  echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5889echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
5890if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5891  echo $ECHO_N "(cached) $ECHO_C" >&6
5892else
5893
5894      if test "$cross_compiling" = yes; then
5895
5896          # Guess based on the CPU.
5897          case "$host_cpu" in
5898            alpha* | i3456786 | m68k | s390*)
5899              gt_cv_int_divbyzero_sigfpe="guessing yes";;
5900            *)
5901              gt_cv_int_divbyzero_sigfpe="guessing no";;
5902          esac
5903
5904else
5905  cat >conftest.$ac_ext <<_ACEOF
5906/* confdefs.h.  */
5907_ACEOF
5908cat confdefs.h >>conftest.$ac_ext
5909cat >>conftest.$ac_ext <<_ACEOF
5910/* end confdefs.h.  */
5911
5912#include <stdlib.h>
5913#include <signal.h>
5914
5915static void
5916#ifdef __cplusplus
5917sigfpe_handler (int sig)
5918#else
5919sigfpe_handler (sig) int sig;
5920#endif
5921{
5922  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
5923  exit (sig != SIGFPE);
5924}
5925
5926int x = 1;
5927int y = 0;
5928int z;
5929int nan;
5930
5931int main ()
5932{
5933  signal (SIGFPE, sigfpe_handler);
5934/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
5935#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5936  signal (SIGTRAP, sigfpe_handler);
5937#endif
5938/* Linux/SPARC yields signal SIGILL.  */
5939#if defined (__sparc__) && defined (__linux__)
5940  signal (SIGILL, sigfpe_handler);
5941#endif
5942
5943  z = x / y;
5944  nan = y / y;
5945  exit (1);
5946}
5947
5948_ACEOF
5949rm -f conftest$ac_exeext
5950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5951  (eval $ac_link) 2>&5
5952  ac_status=$?
5953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956  (eval $ac_try) 2>&5
5957  ac_status=$?
5958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959  (exit $ac_status); }; }; then
5960  gt_cv_int_divbyzero_sigfpe=yes
5961else
5962  echo "$as_me: program exited with status $ac_status" >&5
5963echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
5966( exit $ac_status )
5967gt_cv_int_divbyzero_sigfpe=no
5968fi
5969rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5970fi
5971
5972fi
5973echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5974echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
5975  case "$gt_cv_int_divbyzero_sigfpe" in
5976    *yes) value=1;;
5977    *) value=0;;
5978  esac
5979
5980cat >>confdefs.h <<_ACEOF
5981#define INTDIV0_RAISES_SIGFPE $value
5982_ACEOF
5983
5984
5985
5986  echo "$as_me:$LINENO: checking for unsigned long long" >&5
5987echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5988if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5989  echo $ECHO_N "(cached) $ECHO_C" >&6
5990else
5991  cat >conftest.$ac_ext <<_ACEOF
5992/* confdefs.h.  */
5993_ACEOF
5994cat confdefs.h >>conftest.$ac_ext
5995cat >>conftest.$ac_ext <<_ACEOF
5996/* end confdefs.h.  */
5997unsigned long long ull = 1ULL; int i = 63;
5998int
5999main ()
6000{
6001unsigned long long ullmax = (unsigned long long) -1;
6002     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6003  ;
6004  return 0;
6005}
6006_ACEOF
6007rm -f conftest.$ac_objext conftest$ac_exeext
6008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6009  (eval $ac_link) 2>conftest.er1
6010  ac_status=$?
6011  grep -v '^ *+' conftest.er1 >conftest.err
6012  rm -f conftest.er1
6013  cat conftest.err >&5
6014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015  (exit $ac_status); } &&
6016	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018  (eval $ac_try) 2>&5
6019  ac_status=$?
6020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021  (exit $ac_status); }; } &&
6022	 { ac_try='test -s conftest$ac_exeext'
6023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024  (eval $ac_try) 2>&5
6025  ac_status=$?
6026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027  (exit $ac_status); }; }; then
6028  ac_cv_type_unsigned_long_long=yes
6029else
6030  echo "$as_me: failed program was:" >&5
6031sed 's/^/| /' conftest.$ac_ext >&5
6032
6033ac_cv_type_unsigned_long_long=no
6034fi
6035rm -f conftest.err conftest.$ac_objext \
6036      conftest$ac_exeext conftest.$ac_ext
6037fi
6038echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6039echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6040  if test $ac_cv_type_unsigned_long_long = yes; then
6041
6042cat >>confdefs.h <<\_ACEOF
6043#define HAVE_UNSIGNED_LONG_LONG 1
6044_ACEOF
6045
6046  fi
6047
6048
6049
6050
6051  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6052
6053    test $ac_cv_type_unsigned_long_long = yes \
6054      && ac_type='unsigned long long' \
6055      || ac_type='unsigned long'
6056
6057cat >>confdefs.h <<_ACEOF
6058#define uintmax_t $ac_type
6059_ACEOF
6060
6061  else
6062
6063cat >>confdefs.h <<\_ACEOF
6064#define HAVE_UINTMAX_T 1
6065_ACEOF
6066
6067  fi
6068
6069
6070  echo "$as_me:$LINENO: checking for inttypes.h" >&5
6071echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6072if test "${gt_cv_header_inttypes_h+set}" = set; then
6073  echo $ECHO_N "(cached) $ECHO_C" >&6
6074else
6075
6076    cat >conftest.$ac_ext <<_ACEOF
6077/* confdefs.h.  */
6078_ACEOF
6079cat confdefs.h >>conftest.$ac_ext
6080cat >>conftest.$ac_ext <<_ACEOF
6081/* end confdefs.h.  */
6082#include <sys/types.h>
6083#include <inttypes.h>
6084int
6085main ()
6086{
6087
6088  ;
6089  return 0;
6090}
6091_ACEOF
6092rm -f conftest.$ac_objext
6093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6094  (eval $ac_compile) 2>conftest.er1
6095  ac_status=$?
6096  grep -v '^ *+' conftest.er1 >conftest.err
6097  rm -f conftest.er1
6098  cat conftest.err >&5
6099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100  (exit $ac_status); } &&
6101	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103  (eval $ac_try) 2>&5
6104  ac_status=$?
6105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106  (exit $ac_status); }; } &&
6107	 { ac_try='test -s conftest.$ac_objext'
6108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109  (eval $ac_try) 2>&5
6110  ac_status=$?
6111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112  (exit $ac_status); }; }; then
6113  gt_cv_header_inttypes_h=yes
6114else
6115  echo "$as_me: failed program was:" >&5
6116sed 's/^/| /' conftest.$ac_ext >&5
6117
6118gt_cv_header_inttypes_h=no
6119fi
6120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6121
6122fi
6123echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6124echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6125  if test $gt_cv_header_inttypes_h = yes; then
6126
6127cat >>confdefs.h <<_ACEOF
6128#define HAVE_INTTYPES_H 1
6129_ACEOF
6130
6131  fi
6132
6133
6134
6135  if test $gt_cv_header_inttypes_h = yes; then
6136    echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6137echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6138if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6139  echo $ECHO_N "(cached) $ECHO_C" >&6
6140else
6141
6142        cat >conftest.$ac_ext <<_ACEOF
6143/* confdefs.h.  */
6144_ACEOF
6145cat confdefs.h >>conftest.$ac_ext
6146cat >>conftest.$ac_ext <<_ACEOF
6147/* end confdefs.h.  */
6148#include <inttypes.h>
6149#ifdef PRId32
6150char *p = PRId32;
6151#endif
6152
6153int
6154main ()
6155{
6156
6157  ;
6158  return 0;
6159}
6160_ACEOF
6161rm -f conftest.$ac_objext
6162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6163  (eval $ac_compile) 2>conftest.er1
6164  ac_status=$?
6165  grep -v '^ *+' conftest.er1 >conftest.err
6166  rm -f conftest.er1
6167  cat conftest.err >&5
6168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169  (exit $ac_status); } &&
6170	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172  (eval $ac_try) 2>&5
6173  ac_status=$?
6174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175  (exit $ac_status); }; } &&
6176	 { ac_try='test -s conftest.$ac_objext'
6177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178  (eval $ac_try) 2>&5
6179  ac_status=$?
6180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181  (exit $ac_status); }; }; then
6182  gt_cv_inttypes_pri_broken=no
6183else
6184  echo "$as_me: failed program was:" >&5
6185sed 's/^/| /' conftest.$ac_ext >&5
6186
6187gt_cv_inttypes_pri_broken=yes
6188fi
6189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6190
6191fi
6192echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6193echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6194  fi
6195  if test "$gt_cv_inttypes_pri_broken" = yes; then
6196
6197cat >>confdefs.h <<_ACEOF
6198#define PRI_MACROS_BROKEN 1
6199_ACEOF
6200
6201  fi
6202
6203
6204
6205for ac_header in stdint.h
6206do
6207as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6208if eval "test \"\${$as_ac_Header+set}\" = set"; then
6209  echo "$as_me:$LINENO: checking for $ac_header" >&5
6210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6211if eval "test \"\${$as_ac_Header+set}\" = set"; then
6212  echo $ECHO_N "(cached) $ECHO_C" >&6
6213fi
6214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6215echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6216else
6217  # Is the header compilable?
6218echo "$as_me:$LINENO: checking $ac_header usability" >&5
6219echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6220cat >conftest.$ac_ext <<_ACEOF
6221/* confdefs.h.  */
6222_ACEOF
6223cat confdefs.h >>conftest.$ac_ext
6224cat >>conftest.$ac_ext <<_ACEOF
6225/* end confdefs.h.  */
6226$ac_includes_default
6227#include <$ac_header>
6228_ACEOF
6229rm -f conftest.$ac_objext
6230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231  (eval $ac_compile) 2>conftest.er1
6232  ac_status=$?
6233  grep -v '^ *+' conftest.er1 >conftest.err
6234  rm -f conftest.er1
6235  cat conftest.err >&5
6236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237  (exit $ac_status); } &&
6238	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240  (eval $ac_try) 2>&5
6241  ac_status=$?
6242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243  (exit $ac_status); }; } &&
6244	 { ac_try='test -s conftest.$ac_objext'
6245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246  (eval $ac_try) 2>&5
6247  ac_status=$?
6248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249  (exit $ac_status); }; }; then
6250  ac_header_compiler=yes
6251else
6252  echo "$as_me: failed program was:" >&5
6253sed 's/^/| /' conftest.$ac_ext >&5
6254
6255ac_header_compiler=no
6256fi
6257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6258echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6259echo "${ECHO_T}$ac_header_compiler" >&6
6260
6261# Is the header present?
6262echo "$as_me:$LINENO: checking $ac_header presence" >&5
6263echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6264cat >conftest.$ac_ext <<_ACEOF
6265/* confdefs.h.  */
6266_ACEOF
6267cat confdefs.h >>conftest.$ac_ext
6268cat >>conftest.$ac_ext <<_ACEOF
6269/* end confdefs.h.  */
6270#include <$ac_header>
6271_ACEOF
6272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6273  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6274  ac_status=$?
6275  grep -v '^ *+' conftest.er1 >conftest.err
6276  rm -f conftest.er1
6277  cat conftest.err >&5
6278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279  (exit $ac_status); } >/dev/null; then
6280  if test -s conftest.err; then
6281    ac_cpp_err=$ac_c_preproc_warn_flag
6282    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6283  else
6284    ac_cpp_err=
6285  fi
6286else
6287  ac_cpp_err=yes
6288fi
6289if test -z "$ac_cpp_err"; then
6290  ac_header_preproc=yes
6291else
6292  echo "$as_me: failed program was:" >&5
6293sed 's/^/| /' conftest.$ac_ext >&5
6294
6295  ac_header_preproc=no
6296fi
6297rm -f conftest.err conftest.$ac_ext
6298echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6299echo "${ECHO_T}$ac_header_preproc" >&6
6300
6301# So?  What about this header?
6302case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6303  yes:no: )
6304    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6305echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6306    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6307echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6308    ac_header_preproc=yes
6309    ;;
6310  no:yes:* )
6311    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6312echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6313    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6314echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6315    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6316echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6317    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6318echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6319    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6320echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6321    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6322echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6323    (
6324      cat <<\_ASBOX
6325## ---------------------------------- ##
6326## Report this to poincare@ikezoe.net ##
6327## ---------------------------------- ##
6328_ASBOX
6329    ) |
6330      sed "s/^/$as_me: WARNING:     /" >&2
6331    ;;
6332esac
6333echo "$as_me:$LINENO: checking for $ac_header" >&5
6334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6335if eval "test \"\${$as_ac_Header+set}\" = set"; then
6336  echo $ECHO_N "(cached) $ECHO_C" >&6
6337else
6338  eval "$as_ac_Header=\$ac_header_preproc"
6339fi
6340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6341echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6342
6343fi
6344if test `eval echo '${'$as_ac_Header'}'` = yes; then
6345  cat >>confdefs.h <<_ACEOF
6346#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6347_ACEOF
6348
6349fi
6350
6351done
6352
6353    echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6354echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6355  result=
6356  cat >conftest.$ac_ext <<_ACEOF
6357/* confdefs.h.  */
6358_ACEOF
6359cat confdefs.h >>conftest.$ac_ext
6360cat >>conftest.$ac_ext <<_ACEOF
6361/* end confdefs.h.  */
6362
6363#include <limits.h>
6364#if HAVE_STDINT_H
6365#include <stdint.h>
6366#endif
6367#ifdef SIZE_MAX
6368Found it
6369#endif
6370
6371_ACEOF
6372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6373  $EGREP "Found it" >/dev/null 2>&1; then
6374  result=yes
6375fi
6376rm -f conftest*
6377
6378  if test -z "$result"; then
6379                    if test "$cross_compiling" = yes; then
6380  # Depending upon the size, compute the lo and hi bounds.
6381cat >conftest.$ac_ext <<_ACEOF
6382/* confdefs.h.  */
6383_ACEOF
6384cat confdefs.h >>conftest.$ac_ext
6385cat >>conftest.$ac_ext <<_ACEOF
6386/* end confdefs.h.  */
6387#include <stddef.h>
6388int
6389main ()
6390{
6391static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6392test_array [0] = 0
6393
6394  ;
6395  return 0;
6396}
6397_ACEOF
6398rm -f conftest.$ac_objext
6399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6400  (eval $ac_compile) 2>conftest.er1
6401  ac_status=$?
6402  grep -v '^ *+' conftest.er1 >conftest.err
6403  rm -f conftest.er1
6404  cat conftest.err >&5
6405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406  (exit $ac_status); } &&
6407	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409  (eval $ac_try) 2>&5
6410  ac_status=$?
6411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412  (exit $ac_status); }; } &&
6413	 { ac_try='test -s conftest.$ac_objext'
6414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415  (eval $ac_try) 2>&5
6416  ac_status=$?
6417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418  (exit $ac_status); }; }; then
6419  ac_lo=0 ac_mid=0
6420  while :; do
6421    cat >conftest.$ac_ext <<_ACEOF
6422/* confdefs.h.  */
6423_ACEOF
6424cat confdefs.h >>conftest.$ac_ext
6425cat >>conftest.$ac_ext <<_ACEOF
6426/* end confdefs.h.  */
6427#include <stddef.h>
6428int
6429main ()
6430{
6431static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6432test_array [0] = 0
6433
6434  ;
6435  return 0;
6436}
6437_ACEOF
6438rm -f conftest.$ac_objext
6439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6440  (eval $ac_compile) 2>conftest.er1
6441  ac_status=$?
6442  grep -v '^ *+' conftest.er1 >conftest.err
6443  rm -f conftest.er1
6444  cat conftest.err >&5
6445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446  (exit $ac_status); } &&
6447	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449  (eval $ac_try) 2>&5
6450  ac_status=$?
6451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452  (exit $ac_status); }; } &&
6453	 { ac_try='test -s conftest.$ac_objext'
6454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455  (eval $ac_try) 2>&5
6456  ac_status=$?
6457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458  (exit $ac_status); }; }; then
6459  ac_hi=$ac_mid; break
6460else
6461  echo "$as_me: failed program was:" >&5
6462sed 's/^/| /' conftest.$ac_ext >&5
6463
6464ac_lo=`expr $ac_mid + 1`
6465		    if test $ac_lo -le $ac_mid; then
6466		      ac_lo= ac_hi=
6467		      break
6468		    fi
6469		    ac_mid=`expr 2 '*' $ac_mid + 1`
6470fi
6471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6472  done
6473else
6474  echo "$as_me: failed program was:" >&5
6475sed 's/^/| /' conftest.$ac_ext >&5
6476
6477cat >conftest.$ac_ext <<_ACEOF
6478/* confdefs.h.  */
6479_ACEOF
6480cat confdefs.h >>conftest.$ac_ext
6481cat >>conftest.$ac_ext <<_ACEOF
6482/* end confdefs.h.  */
6483#include <stddef.h>
6484int
6485main ()
6486{
6487static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6488test_array [0] = 0
6489
6490  ;
6491  return 0;
6492}
6493_ACEOF
6494rm -f conftest.$ac_objext
6495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6496  (eval $ac_compile) 2>conftest.er1
6497  ac_status=$?
6498  grep -v '^ *+' conftest.er1 >conftest.err
6499  rm -f conftest.er1
6500  cat conftest.err >&5
6501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502  (exit $ac_status); } &&
6503	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505  (eval $ac_try) 2>&5
6506  ac_status=$?
6507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508  (exit $ac_status); }; } &&
6509	 { ac_try='test -s conftest.$ac_objext'
6510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511  (eval $ac_try) 2>&5
6512  ac_status=$?
6513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514  (exit $ac_status); }; }; then
6515  ac_hi=-1 ac_mid=-1
6516  while :; do
6517    cat >conftest.$ac_ext <<_ACEOF
6518/* confdefs.h.  */
6519_ACEOF
6520cat confdefs.h >>conftest.$ac_ext
6521cat >>conftest.$ac_ext <<_ACEOF
6522/* end confdefs.h.  */
6523#include <stddef.h>
6524int
6525main ()
6526{
6527static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6528test_array [0] = 0
6529
6530  ;
6531  return 0;
6532}
6533_ACEOF
6534rm -f conftest.$ac_objext
6535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6536  (eval $ac_compile) 2>conftest.er1
6537  ac_status=$?
6538  grep -v '^ *+' conftest.er1 >conftest.err
6539  rm -f conftest.er1
6540  cat conftest.err >&5
6541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542  (exit $ac_status); } &&
6543	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545  (eval $ac_try) 2>&5
6546  ac_status=$?
6547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548  (exit $ac_status); }; } &&
6549	 { ac_try='test -s conftest.$ac_objext'
6550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551  (eval $ac_try) 2>&5
6552  ac_status=$?
6553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554  (exit $ac_status); }; }; then
6555  ac_lo=$ac_mid; break
6556else
6557  echo "$as_me: failed program was:" >&5
6558sed 's/^/| /' conftest.$ac_ext >&5
6559
6560ac_hi=`expr '(' $ac_mid ')' - 1`
6561		       if test $ac_mid -le $ac_hi; then
6562			 ac_lo= ac_hi=
6563			 break
6564		       fi
6565		       ac_mid=`expr 2 '*' $ac_mid`
6566fi
6567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6568  done
6569else
6570  echo "$as_me: failed program was:" >&5
6571sed 's/^/| /' conftest.$ac_ext >&5
6572
6573ac_lo= ac_hi=
6574fi
6575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6576fi
6577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6578# Binary search between lo and hi bounds.
6579while test "x$ac_lo" != "x$ac_hi"; do
6580  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6581  cat >conftest.$ac_ext <<_ACEOF
6582/* confdefs.h.  */
6583_ACEOF
6584cat confdefs.h >>conftest.$ac_ext
6585cat >>conftest.$ac_ext <<_ACEOF
6586/* end confdefs.h.  */
6587#include <stddef.h>
6588int
6589main ()
6590{
6591static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6592test_array [0] = 0
6593
6594  ;
6595  return 0;
6596}
6597_ACEOF
6598rm -f conftest.$ac_objext
6599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6600  (eval $ac_compile) 2>conftest.er1
6601  ac_status=$?
6602  grep -v '^ *+' conftest.er1 >conftest.err
6603  rm -f conftest.er1
6604  cat conftest.err >&5
6605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606  (exit $ac_status); } &&
6607	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609  (eval $ac_try) 2>&5
6610  ac_status=$?
6611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612  (exit $ac_status); }; } &&
6613	 { ac_try='test -s conftest.$ac_objext'
6614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615  (eval $ac_try) 2>&5
6616  ac_status=$?
6617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618  (exit $ac_status); }; }; then
6619  ac_hi=$ac_mid
6620else
6621  echo "$as_me: failed program was:" >&5
6622sed 's/^/| /' conftest.$ac_ext >&5
6623
6624ac_lo=`expr '(' $ac_mid ')' + 1`
6625fi
6626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6627done
6628case $ac_lo in
6629?*) res_hi=$ac_lo;;
6630'') result=? ;;
6631esac
6632else
6633  if test "$cross_compiling" = yes; then
6634  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6635echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6636   { (exit 1); exit 1; }; }
6637else
6638  cat >conftest.$ac_ext <<_ACEOF
6639/* confdefs.h.  */
6640_ACEOF
6641cat confdefs.h >>conftest.$ac_ext
6642cat >>conftest.$ac_ext <<_ACEOF
6643/* end confdefs.h.  */
6644#include <stddef.h>
6645long longval () { return ~(size_t)0 / 10; }
6646unsigned long ulongval () { return ~(size_t)0 / 10; }
6647#include <stdio.h>
6648#include <stdlib.h>
6649int
6650main ()
6651{
6652
6653  FILE *f = fopen ("conftest.val", "w");
6654  if (! f)
6655    exit (1);
6656  if ((~(size_t)0 / 10) < 0)
6657    {
6658      long i = longval ();
6659      if (i != (~(size_t)0 / 10))
6660	exit (1);
6661      fprintf (f, "%ld\n", i);
6662    }
6663  else
6664    {
6665      unsigned long i = ulongval ();
6666      if (i != (~(size_t)0 / 10))
6667	exit (1);
6668      fprintf (f, "%lu\n", i);
6669    }
6670  exit (ferror (f) || fclose (f) != 0);
6671
6672  ;
6673  return 0;
6674}
6675_ACEOF
6676rm -f conftest$ac_exeext
6677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6678  (eval $ac_link) 2>&5
6679  ac_status=$?
6680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683  (eval $ac_try) 2>&5
6684  ac_status=$?
6685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686  (exit $ac_status); }; }; then
6687  res_hi=`cat conftest.val`
6688else
6689  echo "$as_me: program exited with status $ac_status" >&5
6690echo "$as_me: failed program was:" >&5
6691sed 's/^/| /' conftest.$ac_ext >&5
6692
6693( exit $ac_status )
6694result=?
6695fi
6696rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6697fi
6698fi
6699rm -f conftest.val
6700    if test "$cross_compiling" = yes; then
6701  # Depending upon the size, compute the lo and hi bounds.
6702cat >conftest.$ac_ext <<_ACEOF
6703/* confdefs.h.  */
6704_ACEOF
6705cat confdefs.h >>conftest.$ac_ext
6706cat >>conftest.$ac_ext <<_ACEOF
6707/* end confdefs.h.  */
6708#include <stddef.h>
6709int
6710main ()
6711{
6712static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
6713test_array [0] = 0
6714
6715  ;
6716  return 0;
6717}
6718_ACEOF
6719rm -f conftest.$ac_objext
6720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6721  (eval $ac_compile) 2>conftest.er1
6722  ac_status=$?
6723  grep -v '^ *+' conftest.er1 >conftest.err
6724  rm -f conftest.er1
6725  cat conftest.err >&5
6726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727  (exit $ac_status); } &&
6728	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730  (eval $ac_try) 2>&5
6731  ac_status=$?
6732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733  (exit $ac_status); }; } &&
6734	 { ac_try='test -s conftest.$ac_objext'
6735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736  (eval $ac_try) 2>&5
6737  ac_status=$?
6738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739  (exit $ac_status); }; }; then
6740  ac_lo=0 ac_mid=0
6741  while :; do
6742    cat >conftest.$ac_ext <<_ACEOF
6743/* confdefs.h.  */
6744_ACEOF
6745cat confdefs.h >>conftest.$ac_ext
6746cat >>conftest.$ac_ext <<_ACEOF
6747/* end confdefs.h.  */
6748#include <stddef.h>
6749int
6750main ()
6751{
6752static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6753test_array [0] = 0
6754
6755  ;
6756  return 0;
6757}
6758_ACEOF
6759rm -f conftest.$ac_objext
6760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6761  (eval $ac_compile) 2>conftest.er1
6762  ac_status=$?
6763  grep -v '^ *+' conftest.er1 >conftest.err
6764  rm -f conftest.er1
6765  cat conftest.err >&5
6766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767  (exit $ac_status); } &&
6768	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770  (eval $ac_try) 2>&5
6771  ac_status=$?
6772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773  (exit $ac_status); }; } &&
6774	 { ac_try='test -s conftest.$ac_objext'
6775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776  (eval $ac_try) 2>&5
6777  ac_status=$?
6778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779  (exit $ac_status); }; }; then
6780  ac_hi=$ac_mid; break
6781else
6782  echo "$as_me: failed program was:" >&5
6783sed 's/^/| /' conftest.$ac_ext >&5
6784
6785ac_lo=`expr $ac_mid + 1`
6786		    if test $ac_lo -le $ac_mid; then
6787		      ac_lo= ac_hi=
6788		      break
6789		    fi
6790		    ac_mid=`expr 2 '*' $ac_mid + 1`
6791fi
6792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6793  done
6794else
6795  echo "$as_me: failed program was:" >&5
6796sed 's/^/| /' conftest.$ac_ext >&5
6797
6798cat >conftest.$ac_ext <<_ACEOF
6799/* confdefs.h.  */
6800_ACEOF
6801cat confdefs.h >>conftest.$ac_ext
6802cat >>conftest.$ac_ext <<_ACEOF
6803/* end confdefs.h.  */
6804#include <stddef.h>
6805int
6806main ()
6807{
6808static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
6809test_array [0] = 0
6810
6811  ;
6812  return 0;
6813}
6814_ACEOF
6815rm -f conftest.$ac_objext
6816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6817  (eval $ac_compile) 2>conftest.er1
6818  ac_status=$?
6819  grep -v '^ *+' conftest.er1 >conftest.err
6820  rm -f conftest.er1
6821  cat conftest.err >&5
6822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823  (exit $ac_status); } &&
6824	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826  (eval $ac_try) 2>&5
6827  ac_status=$?
6828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829  (exit $ac_status); }; } &&
6830	 { ac_try='test -s conftest.$ac_objext'
6831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832  (eval $ac_try) 2>&5
6833  ac_status=$?
6834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835  (exit $ac_status); }; }; then
6836  ac_hi=-1 ac_mid=-1
6837  while :; do
6838    cat >conftest.$ac_ext <<_ACEOF
6839/* confdefs.h.  */
6840_ACEOF
6841cat confdefs.h >>conftest.$ac_ext
6842cat >>conftest.$ac_ext <<_ACEOF
6843/* end confdefs.h.  */
6844#include <stddef.h>
6845int
6846main ()
6847{
6848static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
6849test_array [0] = 0
6850
6851  ;
6852  return 0;
6853}
6854_ACEOF
6855rm -f conftest.$ac_objext
6856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6857  (eval $ac_compile) 2>conftest.er1
6858  ac_status=$?
6859  grep -v '^ *+' conftest.er1 >conftest.err
6860  rm -f conftest.er1
6861  cat conftest.err >&5
6862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863  (exit $ac_status); } &&
6864	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866  (eval $ac_try) 2>&5
6867  ac_status=$?
6868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869  (exit $ac_status); }; } &&
6870	 { ac_try='test -s conftest.$ac_objext'
6871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872  (eval $ac_try) 2>&5
6873  ac_status=$?
6874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875  (exit $ac_status); }; }; then
6876  ac_lo=$ac_mid; break
6877else
6878  echo "$as_me: failed program was:" >&5
6879sed 's/^/| /' conftest.$ac_ext >&5
6880
6881ac_hi=`expr '(' $ac_mid ')' - 1`
6882		       if test $ac_mid -le $ac_hi; then
6883			 ac_lo= ac_hi=
6884			 break
6885		       fi
6886		       ac_mid=`expr 2 '*' $ac_mid`
6887fi
6888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6889  done
6890else
6891  echo "$as_me: failed program was:" >&5
6892sed 's/^/| /' conftest.$ac_ext >&5
6893
6894ac_lo= ac_hi=
6895fi
6896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6897fi
6898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6899# Binary search between lo and hi bounds.
6900while test "x$ac_lo" != "x$ac_hi"; do
6901  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6902  cat >conftest.$ac_ext <<_ACEOF
6903/* confdefs.h.  */
6904_ACEOF
6905cat confdefs.h >>conftest.$ac_ext
6906cat >>conftest.$ac_ext <<_ACEOF
6907/* end confdefs.h.  */
6908#include <stddef.h>
6909int
6910main ()
6911{
6912static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6913test_array [0] = 0
6914
6915  ;
6916  return 0;
6917}
6918_ACEOF
6919rm -f conftest.$ac_objext
6920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6921  (eval $ac_compile) 2>conftest.er1
6922  ac_status=$?
6923  grep -v '^ *+' conftest.er1 >conftest.err
6924  rm -f conftest.er1
6925  cat conftest.err >&5
6926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927  (exit $ac_status); } &&
6928	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930  (eval $ac_try) 2>&5
6931  ac_status=$?
6932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933  (exit $ac_status); }; } &&
6934	 { ac_try='test -s conftest.$ac_objext'
6935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936  (eval $ac_try) 2>&5
6937  ac_status=$?
6938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939  (exit $ac_status); }; }; then
6940  ac_hi=$ac_mid
6941else
6942  echo "$as_me: failed program was:" >&5
6943sed 's/^/| /' conftest.$ac_ext >&5
6944
6945ac_lo=`expr '(' $ac_mid ')' + 1`
6946fi
6947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6948done
6949case $ac_lo in
6950?*) res_lo=$ac_lo;;
6951'') result=? ;;
6952esac
6953else
6954  if test "$cross_compiling" = yes; then
6955  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6956echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6957   { (exit 1); exit 1; }; }
6958else
6959  cat >conftest.$ac_ext <<_ACEOF
6960/* confdefs.h.  */
6961_ACEOF
6962cat confdefs.h >>conftest.$ac_ext
6963cat >>conftest.$ac_ext <<_ACEOF
6964/* end confdefs.h.  */
6965#include <stddef.h>
6966long longval () { return ~(size_t)0 % 10; }
6967unsigned long ulongval () { return ~(size_t)0 % 10; }
6968#include <stdio.h>
6969#include <stdlib.h>
6970int
6971main ()
6972{
6973
6974  FILE *f = fopen ("conftest.val", "w");
6975  if (! f)
6976    exit (1);
6977  if ((~(size_t)0 % 10) < 0)
6978    {
6979      long i = longval ();
6980      if (i != (~(size_t)0 % 10))
6981	exit (1);
6982      fprintf (f, "%ld\n", i);
6983    }
6984  else
6985    {
6986      unsigned long i = ulongval ();
6987      if (i != (~(size_t)0 % 10))
6988	exit (1);
6989      fprintf (f, "%lu\n", i);
6990    }
6991  exit (ferror (f) || fclose (f) != 0);
6992
6993  ;
6994  return 0;
6995}
6996_ACEOF
6997rm -f conftest$ac_exeext
6998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6999  (eval $ac_link) 2>&5
7000  ac_status=$?
7001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004  (eval $ac_try) 2>&5
7005  ac_status=$?
7006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007  (exit $ac_status); }; }; then
7008  res_lo=`cat conftest.val`
7009else
7010  echo "$as_me: program exited with status $ac_status" >&5
7011echo "$as_me: failed program was:" >&5
7012sed 's/^/| /' conftest.$ac_ext >&5
7013
7014( exit $ac_status )
7015result=?
7016fi
7017rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7018fi
7019fi
7020rm -f conftest.val
7021    if test "$cross_compiling" = yes; then
7022  # Depending upon the size, compute the lo and hi bounds.
7023cat >conftest.$ac_ext <<_ACEOF
7024/* confdefs.h.  */
7025_ACEOF
7026cat confdefs.h >>conftest.$ac_ext
7027cat >>conftest.$ac_ext <<_ACEOF
7028/* end confdefs.h.  */
7029#include <stddef.h>
7030int
7031main ()
7032{
7033static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7034test_array [0] = 0
7035
7036  ;
7037  return 0;
7038}
7039_ACEOF
7040rm -f conftest.$ac_objext
7041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7042  (eval $ac_compile) 2>conftest.er1
7043  ac_status=$?
7044  grep -v '^ *+' conftest.er1 >conftest.err
7045  rm -f conftest.er1
7046  cat conftest.err >&5
7047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048  (exit $ac_status); } &&
7049	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051  (eval $ac_try) 2>&5
7052  ac_status=$?
7053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054  (exit $ac_status); }; } &&
7055	 { ac_try='test -s conftest.$ac_objext'
7056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057  (eval $ac_try) 2>&5
7058  ac_status=$?
7059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060  (exit $ac_status); }; }; then
7061  ac_lo=0 ac_mid=0
7062  while :; do
7063    cat >conftest.$ac_ext <<_ACEOF
7064/* confdefs.h.  */
7065_ACEOF
7066cat confdefs.h >>conftest.$ac_ext
7067cat >>conftest.$ac_ext <<_ACEOF
7068/* end confdefs.h.  */
7069#include <stddef.h>
7070int
7071main ()
7072{
7073static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7074test_array [0] = 0
7075
7076  ;
7077  return 0;
7078}
7079_ACEOF
7080rm -f conftest.$ac_objext
7081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7082  (eval $ac_compile) 2>conftest.er1
7083  ac_status=$?
7084  grep -v '^ *+' conftest.er1 >conftest.err
7085  rm -f conftest.er1
7086  cat conftest.err >&5
7087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088  (exit $ac_status); } &&
7089	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091  (eval $ac_try) 2>&5
7092  ac_status=$?
7093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094  (exit $ac_status); }; } &&
7095	 { ac_try='test -s conftest.$ac_objext'
7096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097  (eval $ac_try) 2>&5
7098  ac_status=$?
7099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100  (exit $ac_status); }; }; then
7101  ac_hi=$ac_mid; break
7102else
7103  echo "$as_me: failed program was:" >&5
7104sed 's/^/| /' conftest.$ac_ext >&5
7105
7106ac_lo=`expr $ac_mid + 1`
7107		    if test $ac_lo -le $ac_mid; then
7108		      ac_lo= ac_hi=
7109		      break
7110		    fi
7111		    ac_mid=`expr 2 '*' $ac_mid + 1`
7112fi
7113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7114  done
7115else
7116  echo "$as_me: failed program was:" >&5
7117sed 's/^/| /' conftest.$ac_ext >&5
7118
7119cat >conftest.$ac_ext <<_ACEOF
7120/* confdefs.h.  */
7121_ACEOF
7122cat confdefs.h >>conftest.$ac_ext
7123cat >>conftest.$ac_ext <<_ACEOF
7124/* end confdefs.h.  */
7125#include <stddef.h>
7126int
7127main ()
7128{
7129static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7130test_array [0] = 0
7131
7132  ;
7133  return 0;
7134}
7135_ACEOF
7136rm -f conftest.$ac_objext
7137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7138  (eval $ac_compile) 2>conftest.er1
7139  ac_status=$?
7140  grep -v '^ *+' conftest.er1 >conftest.err
7141  rm -f conftest.er1
7142  cat conftest.err >&5
7143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144  (exit $ac_status); } &&
7145	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147  (eval $ac_try) 2>&5
7148  ac_status=$?
7149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150  (exit $ac_status); }; } &&
7151	 { ac_try='test -s conftest.$ac_objext'
7152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153  (eval $ac_try) 2>&5
7154  ac_status=$?
7155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156  (exit $ac_status); }; }; then
7157  ac_hi=-1 ac_mid=-1
7158  while :; do
7159    cat >conftest.$ac_ext <<_ACEOF
7160/* confdefs.h.  */
7161_ACEOF
7162cat confdefs.h >>conftest.$ac_ext
7163cat >>conftest.$ac_ext <<_ACEOF
7164/* end confdefs.h.  */
7165#include <stddef.h>
7166int
7167main ()
7168{
7169static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7170test_array [0] = 0
7171
7172  ;
7173  return 0;
7174}
7175_ACEOF
7176rm -f conftest.$ac_objext
7177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7178  (eval $ac_compile) 2>conftest.er1
7179  ac_status=$?
7180  grep -v '^ *+' conftest.er1 >conftest.err
7181  rm -f conftest.er1
7182  cat conftest.err >&5
7183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184  (exit $ac_status); } &&
7185	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187  (eval $ac_try) 2>&5
7188  ac_status=$?
7189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190  (exit $ac_status); }; } &&
7191	 { ac_try='test -s conftest.$ac_objext'
7192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193  (eval $ac_try) 2>&5
7194  ac_status=$?
7195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196  (exit $ac_status); }; }; then
7197  ac_lo=$ac_mid; break
7198else
7199  echo "$as_me: failed program was:" >&5
7200sed 's/^/| /' conftest.$ac_ext >&5
7201
7202ac_hi=`expr '(' $ac_mid ')' - 1`
7203		       if test $ac_mid -le $ac_hi; then
7204			 ac_lo= ac_hi=
7205			 break
7206		       fi
7207		       ac_mid=`expr 2 '*' $ac_mid`
7208fi
7209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7210  done
7211else
7212  echo "$as_me: failed program was:" >&5
7213sed 's/^/| /' conftest.$ac_ext >&5
7214
7215ac_lo= ac_hi=
7216fi
7217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7218fi
7219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7220# Binary search between lo and hi bounds.
7221while test "x$ac_lo" != "x$ac_hi"; do
7222  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7223  cat >conftest.$ac_ext <<_ACEOF
7224/* confdefs.h.  */
7225_ACEOF
7226cat confdefs.h >>conftest.$ac_ext
7227cat >>conftest.$ac_ext <<_ACEOF
7228/* end confdefs.h.  */
7229#include <stddef.h>
7230int
7231main ()
7232{
7233static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7234test_array [0] = 0
7235
7236  ;
7237  return 0;
7238}
7239_ACEOF
7240rm -f conftest.$ac_objext
7241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7242  (eval $ac_compile) 2>conftest.er1
7243  ac_status=$?
7244  grep -v '^ *+' conftest.er1 >conftest.err
7245  rm -f conftest.er1
7246  cat conftest.err >&5
7247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248  (exit $ac_status); } &&
7249	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251  (eval $ac_try) 2>&5
7252  ac_status=$?
7253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254  (exit $ac_status); }; } &&
7255	 { ac_try='test -s conftest.$ac_objext'
7256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257  (eval $ac_try) 2>&5
7258  ac_status=$?
7259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260  (exit $ac_status); }; }; then
7261  ac_hi=$ac_mid
7262else
7263  echo "$as_me: failed program was:" >&5
7264sed 's/^/| /' conftest.$ac_ext >&5
7265
7266ac_lo=`expr '(' $ac_mid ')' + 1`
7267fi
7268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7269done
7270case $ac_lo in
7271?*) fits_in_uint=$ac_lo;;
7272'') result=? ;;
7273esac
7274else
7275  if test "$cross_compiling" = yes; then
7276  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7277echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7278   { (exit 1); exit 1; }; }
7279else
7280  cat >conftest.$ac_ext <<_ACEOF
7281/* confdefs.h.  */
7282_ACEOF
7283cat confdefs.h >>conftest.$ac_ext
7284cat >>conftest.$ac_ext <<_ACEOF
7285/* end confdefs.h.  */
7286#include <stddef.h>
7287long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7288unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7289#include <stdio.h>
7290#include <stdlib.h>
7291int
7292main ()
7293{
7294
7295  FILE *f = fopen ("conftest.val", "w");
7296  if (! f)
7297    exit (1);
7298  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7299    {
7300      long i = longval ();
7301      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7302	exit (1);
7303      fprintf (f, "%ld\n", i);
7304    }
7305  else
7306    {
7307      unsigned long i = ulongval ();
7308      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7309	exit (1);
7310      fprintf (f, "%lu\n", i);
7311    }
7312  exit (ferror (f) || fclose (f) != 0);
7313
7314  ;
7315  return 0;
7316}
7317_ACEOF
7318rm -f conftest$ac_exeext
7319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7320  (eval $ac_link) 2>&5
7321  ac_status=$?
7322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325  (eval $ac_try) 2>&5
7326  ac_status=$?
7327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328  (exit $ac_status); }; }; then
7329  fits_in_uint=`cat conftest.val`
7330else
7331  echo "$as_me: program exited with status $ac_status" >&5
7332echo "$as_me: failed program was:" >&5
7333sed 's/^/| /' conftest.$ac_ext >&5
7334
7335( exit $ac_status )
7336result=?
7337fi
7338rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7339fi
7340fi
7341rm -f conftest.val
7342    if test "$fits_in_uint" = 1; then
7343                  cat >conftest.$ac_ext <<_ACEOF
7344/* confdefs.h.  */
7345_ACEOF
7346cat confdefs.h >>conftest.$ac_ext
7347cat >>conftest.$ac_ext <<_ACEOF
7348/* end confdefs.h.  */
7349#include <stddef.h>
7350        extern size_t foo;
7351        extern unsigned long foo;
7352
7353int
7354main ()
7355{
7356
7357  ;
7358  return 0;
7359}
7360_ACEOF
7361rm -f conftest.$ac_objext
7362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7363  (eval $ac_compile) 2>conftest.er1
7364  ac_status=$?
7365  grep -v '^ *+' conftest.er1 >conftest.err
7366  rm -f conftest.er1
7367  cat conftest.err >&5
7368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369  (exit $ac_status); } &&
7370	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372  (eval $ac_try) 2>&5
7373  ac_status=$?
7374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375  (exit $ac_status); }; } &&
7376	 { ac_try='test -s conftest.$ac_objext'
7377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7378  (eval $ac_try) 2>&5
7379  ac_status=$?
7380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381  (exit $ac_status); }; }; then
7382  fits_in_uint=0
7383else
7384  echo "$as_me: failed program was:" >&5
7385sed 's/^/| /' conftest.$ac_ext >&5
7386
7387fi
7388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7389    fi
7390    if test -z "$result"; then
7391      if test "$fits_in_uint" = 1; then
7392        result="$res_hi$res_lo"U
7393      else
7394        result="$res_hi$res_lo"UL
7395      fi
7396    else
7397            result='~(size_t)0'
7398    fi
7399  fi
7400  echo "$as_me:$LINENO: result: $result" >&5
7401echo "${ECHO_T}$result" >&6
7402  if test "$result" != yes; then
7403
7404cat >>confdefs.h <<_ACEOF
7405#define SIZE_MAX $result
7406_ACEOF
7407
7408  fi
7409
7410
7411
7412
7413for ac_header in stdint.h
7414do
7415as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7416if eval "test \"\${$as_ac_Header+set}\" = set"; then
7417  echo "$as_me:$LINENO: checking for $ac_header" >&5
7418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7419if eval "test \"\${$as_ac_Header+set}\" = set"; then
7420  echo $ECHO_N "(cached) $ECHO_C" >&6
7421fi
7422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7423echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7424else
7425  # Is the header compilable?
7426echo "$as_me:$LINENO: checking $ac_header usability" >&5
7427echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7428cat >conftest.$ac_ext <<_ACEOF
7429/* confdefs.h.  */
7430_ACEOF
7431cat confdefs.h >>conftest.$ac_ext
7432cat >>conftest.$ac_ext <<_ACEOF
7433/* end confdefs.h.  */
7434$ac_includes_default
7435#include <$ac_header>
7436_ACEOF
7437rm -f conftest.$ac_objext
7438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7439  (eval $ac_compile) 2>conftest.er1
7440  ac_status=$?
7441  grep -v '^ *+' conftest.er1 >conftest.err
7442  rm -f conftest.er1
7443  cat conftest.err >&5
7444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445  (exit $ac_status); } &&
7446	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448  (eval $ac_try) 2>&5
7449  ac_status=$?
7450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451  (exit $ac_status); }; } &&
7452	 { ac_try='test -s conftest.$ac_objext'
7453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454  (eval $ac_try) 2>&5
7455  ac_status=$?
7456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457  (exit $ac_status); }; }; then
7458  ac_header_compiler=yes
7459else
7460  echo "$as_me: failed program was:" >&5
7461sed 's/^/| /' conftest.$ac_ext >&5
7462
7463ac_header_compiler=no
7464fi
7465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7466echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7467echo "${ECHO_T}$ac_header_compiler" >&6
7468
7469# Is the header present?
7470echo "$as_me:$LINENO: checking $ac_header presence" >&5
7471echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7472cat >conftest.$ac_ext <<_ACEOF
7473/* confdefs.h.  */
7474_ACEOF
7475cat confdefs.h >>conftest.$ac_ext
7476cat >>conftest.$ac_ext <<_ACEOF
7477/* end confdefs.h.  */
7478#include <$ac_header>
7479_ACEOF
7480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7481  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7482  ac_status=$?
7483  grep -v '^ *+' conftest.er1 >conftest.err
7484  rm -f conftest.er1
7485  cat conftest.err >&5
7486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487  (exit $ac_status); } >/dev/null; then
7488  if test -s conftest.err; then
7489    ac_cpp_err=$ac_c_preproc_warn_flag
7490    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7491  else
7492    ac_cpp_err=
7493  fi
7494else
7495  ac_cpp_err=yes
7496fi
7497if test -z "$ac_cpp_err"; then
7498  ac_header_preproc=yes
7499else
7500  echo "$as_me: failed program was:" >&5
7501sed 's/^/| /' conftest.$ac_ext >&5
7502
7503  ac_header_preproc=no
7504fi
7505rm -f conftest.err conftest.$ac_ext
7506echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7507echo "${ECHO_T}$ac_header_preproc" >&6
7508
7509# So?  What about this header?
7510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7511  yes:no: )
7512    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7513echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7514    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7515echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7516    ac_header_preproc=yes
7517    ;;
7518  no:yes:* )
7519    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7520echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7521    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7522echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7523    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7524echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7525    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7526echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7527    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7528echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7529    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7530echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7531    (
7532      cat <<\_ASBOX
7533## ---------------------------------- ##
7534## Report this to poincare@ikezoe.net ##
7535## ---------------------------------- ##
7536_ASBOX
7537    ) |
7538      sed "s/^/$as_me: WARNING:     /" >&2
7539    ;;
7540esac
7541echo "$as_me:$LINENO: checking for $ac_header" >&5
7542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7543if eval "test \"\${$as_ac_Header+set}\" = set"; then
7544  echo $ECHO_N "(cached) $ECHO_C" >&6
7545else
7546  eval "$as_ac_Header=\$ac_header_preproc"
7547fi
7548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7550
7551fi
7552if test `eval echo '${'$as_ac_Header'}'` = yes; then
7553  cat >>confdefs.h <<_ACEOF
7554#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7555_ACEOF
7556
7557fi
7558
7559done
7560
7561
7562
7563      if test "X$prefix" = "XNONE"; then
7564    acl_final_prefix="$ac_default_prefix"
7565  else
7566    acl_final_prefix="$prefix"
7567  fi
7568  if test "X$exec_prefix" = "XNONE"; then
7569    acl_final_exec_prefix='${prefix}'
7570  else
7571    acl_final_exec_prefix="$exec_prefix"
7572  fi
7573  acl_save_prefix="$prefix"
7574  prefix="$acl_final_prefix"
7575  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7576  prefix="$acl_save_prefix"
7577
7578
7579# Check whether --with-gnu-ld or --without-gnu-ld was given.
7580if test "${with_gnu_ld+set}" = set; then
7581  withval="$with_gnu_ld"
7582  test "$withval" = no || with_gnu_ld=yes
7583else
7584  with_gnu_ld=no
7585fi;
7586# Prepare PATH_SEPARATOR.
7587# The user is always right.
7588if test "${PATH_SEPARATOR+set}" != set; then
7589  echo "#! /bin/sh" >conf$$.sh
7590  echo  "exit 0"   >>conf$$.sh
7591  chmod +x conf$$.sh
7592  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7593    PATH_SEPARATOR=';'
7594  else
7595    PATH_SEPARATOR=:
7596  fi
7597  rm -f conf$$.sh
7598fi
7599ac_prog=ld
7600if test "$GCC" = yes; then
7601  # Check if gcc -print-prog-name=ld gives a path.
7602  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7603echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7604  case $host in
7605  *-*-mingw*)
7606    # gcc leaves a trailing carriage return which upsets mingw
7607    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7608  *)
7609    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7610  esac
7611  case $ac_prog in
7612    # Accept absolute paths.
7613    [\\/]* | [A-Za-z]:[\\/]*)
7614      re_direlt='/[^/][^/]*/\.\./'
7615      # Canonicalize the path of ld
7616      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7617      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7618	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7619      done
7620      test -z "$LD" && LD="$ac_prog"
7621      ;;
7622  "")
7623    # If it fails, then pretend we aren't using GCC.
7624    ac_prog=ld
7625    ;;
7626  *)
7627    # If it is relative, then search for the first ld in PATH.
7628    with_gnu_ld=unknown
7629    ;;
7630  esac
7631elif test "$with_gnu_ld" = yes; then
7632  echo "$as_me:$LINENO: checking for GNU ld" >&5
7633echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7634else
7635  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7636echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7637fi
7638if test "${acl_cv_path_LD+set}" = set; then
7639  echo $ECHO_N "(cached) $ECHO_C" >&6
7640else
7641  if test -z "$LD"; then
7642  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7643  for ac_dir in $PATH; do
7644    test -z "$ac_dir" && ac_dir=.
7645    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7646      acl_cv_path_LD="$ac_dir/$ac_prog"
7647      # Check to see if the program is GNU ld.  I'd rather use --version,
7648      # but apparently some GNU ld's only accept -v.
7649      # Break only if it was the GNU/non-GNU ld that we prefer.
7650      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7651      *GNU* | *'with BFD'*)
7652	test "$with_gnu_ld" != no && break ;;
7653      *)
7654	test "$with_gnu_ld" != yes && break ;;
7655      esac
7656    fi
7657  done
7658  IFS="$ac_save_ifs"
7659else
7660  acl_cv_path_LD="$LD" # Let the user override the test with a path.
7661fi
7662fi
7663
7664LD="$acl_cv_path_LD"
7665if test -n "$LD"; then
7666  echo "$as_me:$LINENO: result: $LD" >&5
7667echo "${ECHO_T}$LD" >&6
7668else
7669  echo "$as_me:$LINENO: result: no" >&5
7670echo "${ECHO_T}no" >&6
7671fi
7672test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7673echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7674   { (exit 1); exit 1; }; }
7675echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7676echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7677if test "${acl_cv_prog_gnu_ld+set}" = set; then
7678  echo $ECHO_N "(cached) $ECHO_C" >&6
7679else
7680  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7681case `$LD -v 2>&1 </dev/null` in
7682*GNU* | *'with BFD'*)
7683  acl_cv_prog_gnu_ld=yes ;;
7684*)
7685  acl_cv_prog_gnu_ld=no ;;
7686esac
7687fi
7688echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7689echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7690with_gnu_ld=$acl_cv_prog_gnu_ld
7691
7692
7693
7694                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7695echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7696if test "${acl_cv_rpath+set}" = set; then
7697  echo $ECHO_N "(cached) $ECHO_C" >&6
7698else
7699
7700    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7701    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7702    . ./conftest.sh
7703    rm -f ./conftest.sh
7704    acl_cv_rpath=done
7705
7706fi
7707echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7708echo "${ECHO_T}$acl_cv_rpath" >&6
7709  wl="$acl_cv_wl"
7710  libext="$acl_cv_libext"
7711  shlibext="$acl_cv_shlibext"
7712  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7713  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7714  hardcode_direct="$acl_cv_hardcode_direct"
7715  hardcode_minus_L="$acl_cv_hardcode_minus_L"
7716    # Check whether --enable-rpath or --disable-rpath was given.
7717if test "${enable_rpath+set}" = set; then
7718  enableval="$enable_rpath"
7719  :
7720else
7721  enable_rpath=yes
7722fi;
7723
7724
7725
7726
7727
7728
7729
7730    use_additional=yes
7731
7732  acl_save_prefix="$prefix"
7733  prefix="$acl_final_prefix"
7734  acl_save_exec_prefix="$exec_prefix"
7735  exec_prefix="$acl_final_exec_prefix"
7736
7737    eval additional_includedir=\"$includedir\"
7738    eval additional_libdir=\"$libdir\"
7739
7740  exec_prefix="$acl_save_exec_prefix"
7741  prefix="$acl_save_prefix"
7742
7743
7744# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7745if test "${with_libiconv_prefix+set}" = set; then
7746  withval="$with_libiconv_prefix"
7747
7748    if test "X$withval" = "Xno"; then
7749      use_additional=no
7750    else
7751      if test "X$withval" = "X"; then
7752
7753  acl_save_prefix="$prefix"
7754  prefix="$acl_final_prefix"
7755  acl_save_exec_prefix="$exec_prefix"
7756  exec_prefix="$acl_final_exec_prefix"
7757
7758          eval additional_includedir=\"$includedir\"
7759          eval additional_libdir=\"$libdir\"
7760
7761  exec_prefix="$acl_save_exec_prefix"
7762  prefix="$acl_save_prefix"
7763
7764      else
7765        additional_includedir="$withval/include"
7766        additional_libdir="$withval/lib"
7767      fi
7768    fi
7769
7770fi;
7771      LIBICONV=
7772  LTLIBICONV=
7773  INCICONV=
7774  rpathdirs=
7775  ltrpathdirs=
7776  names_already_handled=
7777  names_next_round='iconv '
7778  while test -n "$names_next_round"; do
7779    names_this_round="$names_next_round"
7780    names_next_round=
7781    for name in $names_this_round; do
7782      already_handled=
7783      for n in $names_already_handled; do
7784        if test "$n" = "$name"; then
7785          already_handled=yes
7786          break
7787        fi
7788      done
7789      if test -z "$already_handled"; then
7790        names_already_handled="$names_already_handled $name"
7791                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7792        eval value=\"\$HAVE_LIB$uppername\"
7793        if test -n "$value"; then
7794          if test "$value" = yes; then
7795            eval value=\"\$LIB$uppername\"
7796            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7797            eval value=\"\$LTLIB$uppername\"
7798            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7799          else
7800                                    :
7801          fi
7802        else
7803                              found_dir=
7804          found_la=
7805          found_so=
7806          found_a=
7807          if test $use_additional = yes; then
7808            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7809              found_dir="$additional_libdir"
7810              found_so="$additional_libdir/lib$name.$shlibext"
7811              if test -f "$additional_libdir/lib$name.la"; then
7812                found_la="$additional_libdir/lib$name.la"
7813              fi
7814            else
7815              if test -f "$additional_libdir/lib$name.$libext"; then
7816                found_dir="$additional_libdir"
7817                found_a="$additional_libdir/lib$name.$libext"
7818                if test -f "$additional_libdir/lib$name.la"; then
7819                  found_la="$additional_libdir/lib$name.la"
7820                fi
7821              fi
7822            fi
7823          fi
7824          if test "X$found_dir" = "X"; then
7825            for x in $LDFLAGS $LTLIBICONV; do
7826
7827  acl_save_prefix="$prefix"
7828  prefix="$acl_final_prefix"
7829  acl_save_exec_prefix="$exec_prefix"
7830  exec_prefix="$acl_final_exec_prefix"
7831  eval x=\"$x\"
7832  exec_prefix="$acl_save_exec_prefix"
7833  prefix="$acl_save_prefix"
7834
7835              case "$x" in
7836                -L*)
7837                  dir=`echo "X$x" | sed -e 's/^X-L//'`
7838                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7839                    found_dir="$dir"
7840                    found_so="$dir/lib$name.$shlibext"
7841                    if test -f "$dir/lib$name.la"; then
7842                      found_la="$dir/lib$name.la"
7843                    fi
7844                  else
7845                    if test -f "$dir/lib$name.$libext"; then
7846                      found_dir="$dir"
7847                      found_a="$dir/lib$name.$libext"
7848                      if test -f "$dir/lib$name.la"; then
7849                        found_la="$dir/lib$name.la"
7850                      fi
7851                    fi
7852                  fi
7853                  ;;
7854              esac
7855              if test "X$found_dir" != "X"; then
7856                break
7857              fi
7858            done
7859          fi
7860          if test "X$found_dir" != "X"; then
7861                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7862            if test "X$found_so" != "X"; then
7863                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7864                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7865              else
7866                                                                                haveit=
7867                for x in $ltrpathdirs; do
7868                  if test "X$x" = "X$found_dir"; then
7869                    haveit=yes
7870                    break
7871                  fi
7872                done
7873                if test -z "$haveit"; then
7874                  ltrpathdirs="$ltrpathdirs $found_dir"
7875                fi
7876                                if test "$hardcode_direct" = yes; then
7877                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7878                else
7879                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7880                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7881                                                            haveit=
7882                    for x in $rpathdirs; do
7883                      if test "X$x" = "X$found_dir"; then
7884                        haveit=yes
7885                        break
7886                      fi
7887                    done
7888                    if test -z "$haveit"; then
7889                      rpathdirs="$rpathdirs $found_dir"
7890                    fi
7891                  else
7892                                                                                haveit=
7893                    for x in $LDFLAGS $LIBICONV; do
7894
7895  acl_save_prefix="$prefix"
7896  prefix="$acl_final_prefix"
7897  acl_save_exec_prefix="$exec_prefix"
7898  exec_prefix="$acl_final_exec_prefix"
7899  eval x=\"$x\"
7900  exec_prefix="$acl_save_exec_prefix"
7901  prefix="$acl_save_prefix"
7902
7903                      if test "X$x" = "X-L$found_dir"; then
7904                        haveit=yes
7905                        break
7906                      fi
7907                    done
7908                    if test -z "$haveit"; then
7909                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7910                    fi
7911                    if test "$hardcode_minus_L" != no; then
7912                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7913                    else
7914                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7915                    fi
7916                  fi
7917                fi
7918              fi
7919            else
7920              if test "X$found_a" != "X"; then
7921                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7922              else
7923                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7924              fi
7925            fi
7926                        additional_includedir=
7927            case "$found_dir" in
7928              */lib | */lib/)
7929                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7930                additional_includedir="$basedir/include"
7931                ;;
7932            esac
7933            if test "X$additional_includedir" != "X"; then
7934                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
7935                haveit=
7936                if test "X$additional_includedir" = "X/usr/local/include"; then
7937                  if test -n "$GCC"; then
7938                    case $host_os in
7939                      linux*) haveit=yes;;
7940                    esac
7941                  fi
7942                fi
7943                if test -z "$haveit"; then
7944                  for x in $CPPFLAGS $INCICONV; do
7945
7946  acl_save_prefix="$prefix"
7947  prefix="$acl_final_prefix"
7948  acl_save_exec_prefix="$exec_prefix"
7949  exec_prefix="$acl_final_exec_prefix"
7950  eval x=\"$x\"
7951  exec_prefix="$acl_save_exec_prefix"
7952  prefix="$acl_save_prefix"
7953
7954                    if test "X$x" = "X-I$additional_includedir"; then
7955                      haveit=yes
7956                      break
7957                    fi
7958                  done
7959                  if test -z "$haveit"; then
7960                    if test -d "$additional_includedir"; then
7961                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7962                    fi
7963                  fi
7964                fi
7965              fi
7966            fi
7967                        if test -n "$found_la"; then
7968                                                        save_libdir="$libdir"
7969              case "$found_la" in
7970                */* | *\\*) . "$found_la" ;;
7971                *) . "./$found_la" ;;
7972              esac
7973              libdir="$save_libdir"
7974                            for dep in $dependency_libs; do
7975                case "$dep" in
7976                  -L*)
7977                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7978                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
7979                      haveit=
7980                      if test "X$additional_libdir" = "X/usr/local/lib"; then
7981                        if test -n "$GCC"; then
7982                          case $host_os in
7983                            linux*) haveit=yes;;
7984                          esac
7985                        fi
7986                      fi
7987                      if test -z "$haveit"; then
7988                        haveit=
7989                        for x in $LDFLAGS $LIBICONV; do
7990
7991  acl_save_prefix="$prefix"
7992  prefix="$acl_final_prefix"
7993  acl_save_exec_prefix="$exec_prefix"
7994  exec_prefix="$acl_final_exec_prefix"
7995  eval x=\"$x\"
7996  exec_prefix="$acl_save_exec_prefix"
7997  prefix="$acl_save_prefix"
7998
7999                          if test "X$x" = "X-L$additional_libdir"; then
8000                            haveit=yes
8001                            break
8002                          fi
8003                        done
8004                        if test -z "$haveit"; then
8005                          if test -d "$additional_libdir"; then
8006                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8007                          fi
8008                        fi
8009                        haveit=
8010                        for x in $LDFLAGS $LTLIBICONV; do
8011
8012  acl_save_prefix="$prefix"
8013  prefix="$acl_final_prefix"
8014  acl_save_exec_prefix="$exec_prefix"
8015  exec_prefix="$acl_final_exec_prefix"
8016  eval x=\"$x\"
8017  exec_prefix="$acl_save_exec_prefix"
8018  prefix="$acl_save_prefix"
8019
8020                          if test "X$x" = "X-L$additional_libdir"; then
8021                            haveit=yes
8022                            break
8023                          fi
8024                        done
8025                        if test -z "$haveit"; then
8026                          if test -d "$additional_libdir"; then
8027                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8028                          fi
8029                        fi
8030                      fi
8031                    fi
8032                    ;;
8033                  -R*)
8034                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
8035                    if test "$enable_rpath" != no; then
8036                                                                  haveit=
8037                      for x in $rpathdirs; do
8038                        if test "X$x" = "X$dir"; then
8039                          haveit=yes
8040                          break
8041                        fi
8042                      done
8043                      if test -z "$haveit"; then
8044                        rpathdirs="$rpathdirs $dir"
8045                      fi
8046                                                                  haveit=
8047                      for x in $ltrpathdirs; do
8048                        if test "X$x" = "X$dir"; then
8049                          haveit=yes
8050                          break
8051                        fi
8052                      done
8053                      if test -z "$haveit"; then
8054                        ltrpathdirs="$ltrpathdirs $dir"
8055                      fi
8056                    fi
8057                    ;;
8058                  -l*)
8059                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8060                    ;;
8061                  *.la)
8062                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8063                    ;;
8064                  *)
8065                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8066                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8067                    ;;
8068                esac
8069              done
8070            fi
8071          else
8072                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8073            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8074          fi
8075        fi
8076      fi
8077    done
8078  done
8079  if test "X$rpathdirs" != "X"; then
8080    if test -n "$hardcode_libdir_separator"; then
8081                        alldirs=
8082      for found_dir in $rpathdirs; do
8083        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8084      done
8085            acl_save_libdir="$libdir"
8086      libdir="$alldirs"
8087      eval flag=\"$hardcode_libdir_flag_spec\"
8088      libdir="$acl_save_libdir"
8089      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8090    else
8091            for found_dir in $rpathdirs; do
8092        acl_save_libdir="$libdir"
8093        libdir="$found_dir"
8094        eval flag=\"$hardcode_libdir_flag_spec\"
8095        libdir="$acl_save_libdir"
8096        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8097      done
8098    fi
8099  fi
8100  if test "X$ltrpathdirs" != "X"; then
8101            for found_dir in $ltrpathdirs; do
8102      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8103    done
8104  fi
8105
8106
8107
8108
8109
8110
8111
8112
8113  echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8114echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
8115if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8116  echo $ECHO_N "(cached) $ECHO_C" >&6
8117else
8118  cat >conftest.$ac_ext <<_ACEOF
8119/* confdefs.h.  */
8120_ACEOF
8121cat confdefs.h >>conftest.$ac_ext
8122cat >>conftest.$ac_ext <<_ACEOF
8123/* end confdefs.h.  */
8124$ac_includes_default
8125int
8126main ()
8127{
8128if ((ptrdiff_t *) 0)
8129  return 0;
8130if (sizeof (ptrdiff_t))
8131  return 0;
8132  ;
8133  return 0;
8134}
8135_ACEOF
8136rm -f conftest.$ac_objext
8137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8138  (eval $ac_compile) 2>conftest.er1
8139  ac_status=$?
8140  grep -v '^ *+' conftest.er1 >conftest.err
8141  rm -f conftest.er1
8142  cat conftest.err >&5
8143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144  (exit $ac_status); } &&
8145	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147  (eval $ac_try) 2>&5
8148  ac_status=$?
8149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150  (exit $ac_status); }; } &&
8151	 { ac_try='test -s conftest.$ac_objext'
8152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8153  (eval $ac_try) 2>&5
8154  ac_status=$?
8155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156  (exit $ac_status); }; }; then
8157  ac_cv_type_ptrdiff_t=yes
8158else
8159  echo "$as_me: failed program was:" >&5
8160sed 's/^/| /' conftest.$ac_ext >&5
8161
8162ac_cv_type_ptrdiff_t=no
8163fi
8164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8165fi
8166echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8167echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8168if test $ac_cv_type_ptrdiff_t = yes; then
8169  :
8170else
8171
8172cat >>confdefs.h <<\_ACEOF
8173#define ptrdiff_t long
8174_ACEOF
8175
8176
8177fi
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8190stdlib.h string.h unistd.h sys/param.h
8191do
8192as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8193if eval "test \"\${$as_ac_Header+set}\" = set"; then
8194  echo "$as_me:$LINENO: checking for $ac_header" >&5
8195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8196if eval "test \"\${$as_ac_Header+set}\" = set"; then
8197  echo $ECHO_N "(cached) $ECHO_C" >&6
8198fi
8199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8200echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8201else
8202  # Is the header compilable?
8203echo "$as_me:$LINENO: checking $ac_header usability" >&5
8204echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8205cat >conftest.$ac_ext <<_ACEOF
8206/* confdefs.h.  */
8207_ACEOF
8208cat confdefs.h >>conftest.$ac_ext
8209cat >>conftest.$ac_ext <<_ACEOF
8210/* end confdefs.h.  */
8211$ac_includes_default
8212#include <$ac_header>
8213_ACEOF
8214rm -f conftest.$ac_objext
8215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8216  (eval $ac_compile) 2>conftest.er1
8217  ac_status=$?
8218  grep -v '^ *+' conftest.er1 >conftest.err
8219  rm -f conftest.er1
8220  cat conftest.err >&5
8221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222  (exit $ac_status); } &&
8223	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225  (eval $ac_try) 2>&5
8226  ac_status=$?
8227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228  (exit $ac_status); }; } &&
8229	 { ac_try='test -s conftest.$ac_objext'
8230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231  (eval $ac_try) 2>&5
8232  ac_status=$?
8233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234  (exit $ac_status); }; }; then
8235  ac_header_compiler=yes
8236else
8237  echo "$as_me: failed program was:" >&5
8238sed 's/^/| /' conftest.$ac_ext >&5
8239
8240ac_header_compiler=no
8241fi
8242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8243echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8244echo "${ECHO_T}$ac_header_compiler" >&6
8245
8246# Is the header present?
8247echo "$as_me:$LINENO: checking $ac_header presence" >&5
8248echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8249cat >conftest.$ac_ext <<_ACEOF
8250/* confdefs.h.  */
8251_ACEOF
8252cat confdefs.h >>conftest.$ac_ext
8253cat >>conftest.$ac_ext <<_ACEOF
8254/* end confdefs.h.  */
8255#include <$ac_header>
8256_ACEOF
8257if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8258  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8259  ac_status=$?
8260  grep -v '^ *+' conftest.er1 >conftest.err
8261  rm -f conftest.er1
8262  cat conftest.err >&5
8263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264  (exit $ac_status); } >/dev/null; then
8265  if test -s conftest.err; then
8266    ac_cpp_err=$ac_c_preproc_warn_flag
8267    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8268  else
8269    ac_cpp_err=
8270  fi
8271else
8272  ac_cpp_err=yes
8273fi
8274if test -z "$ac_cpp_err"; then
8275  ac_header_preproc=yes
8276else
8277  echo "$as_me: failed program was:" >&5
8278sed 's/^/| /' conftest.$ac_ext >&5
8279
8280  ac_header_preproc=no
8281fi
8282rm -f conftest.err conftest.$ac_ext
8283echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8284echo "${ECHO_T}$ac_header_preproc" >&6
8285
8286# So?  What about this header?
8287case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8288  yes:no: )
8289    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8290echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8291    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8292echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8293    ac_header_preproc=yes
8294    ;;
8295  no:yes:* )
8296    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8297echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8298    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8299echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8300    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8301echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8302    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8303echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8304    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8305echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8306    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8307echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8308    (
8309      cat <<\_ASBOX
8310## ---------------------------------- ##
8311## Report this to poincare@ikezoe.net ##
8312## ---------------------------------- ##
8313_ASBOX
8314    ) |
8315      sed "s/^/$as_me: WARNING:     /" >&2
8316    ;;
8317esac
8318echo "$as_me:$LINENO: checking for $ac_header" >&5
8319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8320if eval "test \"\${$as_ac_Header+set}\" = set"; then
8321  echo $ECHO_N "(cached) $ECHO_C" >&6
8322else
8323  eval "$as_ac_Header=\$ac_header_preproc"
8324fi
8325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8326echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8327
8328fi
8329if test `eval echo '${'$as_ac_Header'}'` = yes; then
8330  cat >>confdefs.h <<_ACEOF
8331#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8332_ACEOF
8333
8334fi
8335
8336done
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8362mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8363strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8364__fsetlocking
8365do
8366as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8367echo "$as_me:$LINENO: checking for $ac_func" >&5
8368echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8369if eval "test \"\${$as_ac_var+set}\" = set"; then
8370  echo $ECHO_N "(cached) $ECHO_C" >&6
8371else
8372  cat >conftest.$ac_ext <<_ACEOF
8373/* confdefs.h.  */
8374_ACEOF
8375cat confdefs.h >>conftest.$ac_ext
8376cat >>conftest.$ac_ext <<_ACEOF
8377/* end confdefs.h.  */
8378/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8379   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8380#define $ac_func innocuous_$ac_func
8381
8382/* System header to define __stub macros and hopefully few prototypes,
8383    which can conflict with char $ac_func (); below.
8384    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8385    <limits.h> exists even on freestanding compilers.  */
8386
8387#ifdef __STDC__
8388# include <limits.h>
8389#else
8390# include <assert.h>
8391#endif
8392
8393#undef $ac_func
8394
8395/* Override any gcc2 internal prototype to avoid an error.  */
8396#ifdef __cplusplus
8397extern "C"
8398{
8399#endif
8400/* We use char because int might match the return type of a gcc2
8401   builtin and then its argument prototype would still apply.  */
8402char $ac_func ();
8403/* The GNU C library defines this for functions which it implements
8404    to always fail with ENOSYS.  Some functions are actually named
8405    something starting with __ and the normal name is an alias.  */
8406#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8407choke me
8408#else
8409char (*f) () = $ac_func;
8410#endif
8411#ifdef __cplusplus
8412}
8413#endif
8414
8415int
8416main ()
8417{
8418return f != $ac_func;
8419  ;
8420  return 0;
8421}
8422_ACEOF
8423rm -f conftest.$ac_objext conftest$ac_exeext
8424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8425  (eval $ac_link) 2>conftest.er1
8426  ac_status=$?
8427  grep -v '^ *+' conftest.er1 >conftest.err
8428  rm -f conftest.er1
8429  cat conftest.err >&5
8430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431  (exit $ac_status); } &&
8432	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434  (eval $ac_try) 2>&5
8435  ac_status=$?
8436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437  (exit $ac_status); }; } &&
8438	 { ac_try='test -s conftest$ac_exeext'
8439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440  (eval $ac_try) 2>&5
8441  ac_status=$?
8442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443  (exit $ac_status); }; }; then
8444  eval "$as_ac_var=yes"
8445else
8446  echo "$as_me: failed program was:" >&5
8447sed 's/^/| /' conftest.$ac_ext >&5
8448
8449eval "$as_ac_var=no"
8450fi
8451rm -f conftest.err conftest.$ac_objext \
8452      conftest$ac_exeext conftest.$ac_ext
8453fi
8454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8455echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8456if test `eval echo '${'$as_ac_var'}'` = yes; then
8457  cat >>confdefs.h <<_ACEOF
8458#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8459_ACEOF
8460
8461fi
8462done
8463
8464
8465
8466  echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8467echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8468if test "${ac_cv_have_decl__snprintf+set}" = set; then
8469  echo $ECHO_N "(cached) $ECHO_C" >&6
8470else
8471  cat >conftest.$ac_ext <<_ACEOF
8472/* confdefs.h.  */
8473_ACEOF
8474cat confdefs.h >>conftest.$ac_ext
8475cat >>conftest.$ac_ext <<_ACEOF
8476/* end confdefs.h.  */
8477#include <stdio.h>
8478int
8479main ()
8480{
8481
8482#ifndef _snprintf
8483  char *p = (char *) _snprintf;
8484#endif
8485
8486  ;
8487  return 0;
8488}
8489_ACEOF
8490rm -f conftest.$ac_objext
8491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8492  (eval $ac_compile) 2>conftest.er1
8493  ac_status=$?
8494  grep -v '^ *+' conftest.er1 >conftest.err
8495  rm -f conftest.er1
8496  cat conftest.err >&5
8497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498  (exit $ac_status); } &&
8499	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501  (eval $ac_try) 2>&5
8502  ac_status=$?
8503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504  (exit $ac_status); }; } &&
8505	 { ac_try='test -s conftest.$ac_objext'
8506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507  (eval $ac_try) 2>&5
8508  ac_status=$?
8509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510  (exit $ac_status); }; }; then
8511  ac_cv_have_decl__snprintf=yes
8512else
8513  echo "$as_me: failed program was:" >&5
8514sed 's/^/| /' conftest.$ac_ext >&5
8515
8516ac_cv_have_decl__snprintf=no
8517fi
8518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8519fi
8520echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8521echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8522  if test $ac_cv_have_decl__snprintf = yes; then
8523    gt_value=1
8524  else
8525    gt_value=0
8526  fi
8527
8528cat >>confdefs.h <<_ACEOF
8529#define HAVE_DECL__SNPRINTF $gt_value
8530_ACEOF
8531
8532
8533
8534  echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8535echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8536if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8537  echo $ECHO_N "(cached) $ECHO_C" >&6
8538else
8539  cat >conftest.$ac_ext <<_ACEOF
8540/* confdefs.h.  */
8541_ACEOF
8542cat confdefs.h >>conftest.$ac_ext
8543cat >>conftest.$ac_ext <<_ACEOF
8544/* end confdefs.h.  */
8545#include <stdio.h>
8546int
8547main ()
8548{
8549
8550#ifndef _snwprintf
8551  char *p = (char *) _snwprintf;
8552#endif
8553
8554  ;
8555  return 0;
8556}
8557_ACEOF
8558rm -f conftest.$ac_objext
8559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8560  (eval $ac_compile) 2>conftest.er1
8561  ac_status=$?
8562  grep -v '^ *+' conftest.er1 >conftest.err
8563  rm -f conftest.er1
8564  cat conftest.err >&5
8565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566  (exit $ac_status); } &&
8567	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569  (eval $ac_try) 2>&5
8570  ac_status=$?
8571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572  (exit $ac_status); }; } &&
8573	 { ac_try='test -s conftest.$ac_objext'
8574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575  (eval $ac_try) 2>&5
8576  ac_status=$?
8577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578  (exit $ac_status); }; }; then
8579  ac_cv_have_decl__snwprintf=yes
8580else
8581  echo "$as_me: failed program was:" >&5
8582sed 's/^/| /' conftest.$ac_ext >&5
8583
8584ac_cv_have_decl__snwprintf=no
8585fi
8586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8587fi
8588echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8589echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8590  if test $ac_cv_have_decl__snwprintf = yes; then
8591    gt_value=1
8592  else
8593    gt_value=0
8594  fi
8595
8596cat >>confdefs.h <<_ACEOF
8597#define HAVE_DECL__SNWPRINTF $gt_value
8598_ACEOF
8599
8600
8601
8602
8603  echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8604echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8605if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8606  echo $ECHO_N "(cached) $ECHO_C" >&6
8607else
8608  cat >conftest.$ac_ext <<_ACEOF
8609/* confdefs.h.  */
8610_ACEOF
8611cat confdefs.h >>conftest.$ac_ext
8612cat >>conftest.$ac_ext <<_ACEOF
8613/* end confdefs.h.  */
8614#include <stdio.h>
8615int
8616main ()
8617{
8618
8619#ifndef feof_unlocked
8620  char *p = (char *) feof_unlocked;
8621#endif
8622
8623  ;
8624  return 0;
8625}
8626_ACEOF
8627rm -f conftest.$ac_objext
8628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8629  (eval $ac_compile) 2>conftest.er1
8630  ac_status=$?
8631  grep -v '^ *+' conftest.er1 >conftest.err
8632  rm -f conftest.er1
8633  cat conftest.err >&5
8634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635  (exit $ac_status); } &&
8636	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638  (eval $ac_try) 2>&5
8639  ac_status=$?
8640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641  (exit $ac_status); }; } &&
8642	 { ac_try='test -s conftest.$ac_objext'
8643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644  (eval $ac_try) 2>&5
8645  ac_status=$?
8646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647  (exit $ac_status); }; }; then
8648  ac_cv_have_decl_feof_unlocked=yes
8649else
8650  echo "$as_me: failed program was:" >&5
8651sed 's/^/| /' conftest.$ac_ext >&5
8652
8653ac_cv_have_decl_feof_unlocked=no
8654fi
8655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8656fi
8657echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8658echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
8659  if test $ac_cv_have_decl_feof_unlocked = yes; then
8660    gt_value=1
8661  else
8662    gt_value=0
8663  fi
8664
8665cat >>confdefs.h <<_ACEOF
8666#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8667_ACEOF
8668
8669
8670
8671  echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8672echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
8673if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8674  echo $ECHO_N "(cached) $ECHO_C" >&6
8675else
8676  cat >conftest.$ac_ext <<_ACEOF
8677/* confdefs.h.  */
8678_ACEOF
8679cat confdefs.h >>conftest.$ac_ext
8680cat >>conftest.$ac_ext <<_ACEOF
8681/* end confdefs.h.  */
8682#include <stdio.h>
8683int
8684main ()
8685{
8686
8687#ifndef fgets_unlocked
8688  char *p = (char *) fgets_unlocked;
8689#endif
8690
8691  ;
8692  return 0;
8693}
8694_ACEOF
8695rm -f conftest.$ac_objext
8696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8697  (eval $ac_compile) 2>conftest.er1
8698  ac_status=$?
8699  grep -v '^ *+' conftest.er1 >conftest.err
8700  rm -f conftest.er1
8701  cat conftest.err >&5
8702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703  (exit $ac_status); } &&
8704	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706  (eval $ac_try) 2>&5
8707  ac_status=$?
8708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709  (exit $ac_status); }; } &&
8710	 { ac_try='test -s conftest.$ac_objext'
8711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712  (eval $ac_try) 2>&5
8713  ac_status=$?
8714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715  (exit $ac_status); }; }; then
8716  ac_cv_have_decl_fgets_unlocked=yes
8717else
8718  echo "$as_me: failed program was:" >&5
8719sed 's/^/| /' conftest.$ac_ext >&5
8720
8721ac_cv_have_decl_fgets_unlocked=no
8722fi
8723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8724fi
8725echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8726echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
8727  if test $ac_cv_have_decl_fgets_unlocked = yes; then
8728    gt_value=1
8729  else
8730    gt_value=0
8731  fi
8732
8733cat >>confdefs.h <<_ACEOF
8734#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8735_ACEOF
8736
8737
8738
8739  echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8740echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8741if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8742  echo $ECHO_N "(cached) $ECHO_C" >&6
8743else
8744  cat >conftest.$ac_ext <<_ACEOF
8745/* confdefs.h.  */
8746_ACEOF
8747cat confdefs.h >>conftest.$ac_ext
8748cat >>conftest.$ac_ext <<_ACEOF
8749/* end confdefs.h.  */
8750#include <stdio.h>
8751int
8752main ()
8753{
8754
8755#ifndef getc_unlocked
8756  char *p = (char *) getc_unlocked;
8757#endif
8758
8759  ;
8760  return 0;
8761}
8762_ACEOF
8763rm -f conftest.$ac_objext
8764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8765  (eval $ac_compile) 2>conftest.er1
8766  ac_status=$?
8767  grep -v '^ *+' conftest.er1 >conftest.err
8768  rm -f conftest.er1
8769  cat conftest.err >&5
8770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771  (exit $ac_status); } &&
8772	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774  (eval $ac_try) 2>&5
8775  ac_status=$?
8776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777  (exit $ac_status); }; } &&
8778	 { ac_try='test -s conftest.$ac_objext'
8779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780  (eval $ac_try) 2>&5
8781  ac_status=$?
8782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783  (exit $ac_status); }; }; then
8784  ac_cv_have_decl_getc_unlocked=yes
8785else
8786  echo "$as_me: failed program was:" >&5
8787sed 's/^/| /' conftest.$ac_ext >&5
8788
8789ac_cv_have_decl_getc_unlocked=no
8790fi
8791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8792fi
8793echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8794echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8795  if test $ac_cv_have_decl_getc_unlocked = yes; then
8796    gt_value=1
8797  else
8798    gt_value=0
8799  fi
8800
8801cat >>confdefs.h <<_ACEOF
8802#define HAVE_DECL_GETC_UNLOCKED $gt_value
8803_ACEOF
8804
8805
8806
8807  case $gt_cv_func_printf_posix in
8808    *yes) HAVE_POSIX_PRINTF=1 ;;
8809    *) HAVE_POSIX_PRINTF=0 ;;
8810  esac
8811
8812  if test "$ac_cv_func_asprintf" = yes; then
8813    HAVE_ASPRINTF=1
8814  else
8815    HAVE_ASPRINTF=0
8816  fi
8817
8818  if test "$ac_cv_func_snprintf" = yes; then
8819    HAVE_SNPRINTF=1
8820  else
8821    HAVE_SNPRINTF=0
8822  fi
8823
8824  if test "$ac_cv_func_wprintf" = yes; then
8825    HAVE_WPRINTF=1
8826  else
8827    HAVE_WPRINTF=0
8828  fi
8829
8830
8831
8832
8833
8834
8835
8836          am_save_CPPFLAGS="$CPPFLAGS"
8837
8838  for element in $INCICONV; do
8839    haveit=
8840    for x in $CPPFLAGS; do
8841
8842  acl_save_prefix="$prefix"
8843  prefix="$acl_final_prefix"
8844  acl_save_exec_prefix="$exec_prefix"
8845  exec_prefix="$acl_final_exec_prefix"
8846  eval x=\"$x\"
8847  exec_prefix="$acl_save_exec_prefix"
8848  prefix="$acl_save_prefix"
8849
8850      if test "X$x" = "X$element"; then
8851        haveit=yes
8852        break
8853      fi
8854    done
8855    if test -z "$haveit"; then
8856      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8857    fi
8858  done
8859
8860
8861  echo "$as_me:$LINENO: checking for iconv" >&5
8862echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8863if test "${am_cv_func_iconv+set}" = set; then
8864  echo $ECHO_N "(cached) $ECHO_C" >&6
8865else
8866
8867    am_cv_func_iconv="no, consider installing GNU libiconv"
8868    am_cv_lib_iconv=no
8869    cat >conftest.$ac_ext <<_ACEOF
8870/* confdefs.h.  */
8871_ACEOF
8872cat confdefs.h >>conftest.$ac_ext
8873cat >>conftest.$ac_ext <<_ACEOF
8874/* end confdefs.h.  */
8875#include <stdlib.h>
8876#include <iconv.h>
8877int
8878main ()
8879{
8880iconv_t cd = iconv_open("","");
8881       iconv(cd,NULL,NULL,NULL,NULL);
8882       iconv_close(cd);
8883  ;
8884  return 0;
8885}
8886_ACEOF
8887rm -f conftest.$ac_objext conftest$ac_exeext
8888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8889  (eval $ac_link) 2>conftest.er1
8890  ac_status=$?
8891  grep -v '^ *+' conftest.er1 >conftest.err
8892  rm -f conftest.er1
8893  cat conftest.err >&5
8894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895  (exit $ac_status); } &&
8896	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898  (eval $ac_try) 2>&5
8899  ac_status=$?
8900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901  (exit $ac_status); }; } &&
8902	 { ac_try='test -s conftest$ac_exeext'
8903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904  (eval $ac_try) 2>&5
8905  ac_status=$?
8906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907  (exit $ac_status); }; }; then
8908  am_cv_func_iconv=yes
8909else
8910  echo "$as_me: failed program was:" >&5
8911sed 's/^/| /' conftest.$ac_ext >&5
8912
8913fi
8914rm -f conftest.err conftest.$ac_objext \
8915      conftest$ac_exeext conftest.$ac_ext
8916    if test "$am_cv_func_iconv" != yes; then
8917      am_save_LIBS="$LIBS"
8918      LIBS="$LIBS $LIBICONV"
8919      cat >conftest.$ac_ext <<_ACEOF
8920/* confdefs.h.  */
8921_ACEOF
8922cat confdefs.h >>conftest.$ac_ext
8923cat >>conftest.$ac_ext <<_ACEOF
8924/* end confdefs.h.  */
8925#include <stdlib.h>
8926#include <iconv.h>
8927int
8928main ()
8929{
8930iconv_t cd = iconv_open("","");
8931         iconv(cd,NULL,NULL,NULL,NULL);
8932         iconv_close(cd);
8933  ;
8934  return 0;
8935}
8936_ACEOF
8937rm -f conftest.$ac_objext conftest$ac_exeext
8938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8939  (eval $ac_link) 2>conftest.er1
8940  ac_status=$?
8941  grep -v '^ *+' conftest.er1 >conftest.err
8942  rm -f conftest.er1
8943  cat conftest.err >&5
8944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945  (exit $ac_status); } &&
8946	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948  (eval $ac_try) 2>&5
8949  ac_status=$?
8950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951  (exit $ac_status); }; } &&
8952	 { ac_try='test -s conftest$ac_exeext'
8953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954  (eval $ac_try) 2>&5
8955  ac_status=$?
8956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957  (exit $ac_status); }; }; then
8958  am_cv_lib_iconv=yes
8959        am_cv_func_iconv=yes
8960else
8961  echo "$as_me: failed program was:" >&5
8962sed 's/^/| /' conftest.$ac_ext >&5
8963
8964fi
8965rm -f conftest.err conftest.$ac_objext \
8966      conftest$ac_exeext conftest.$ac_ext
8967      LIBS="$am_save_LIBS"
8968    fi
8969
8970fi
8971echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8972echo "${ECHO_T}$am_cv_func_iconv" >&6
8973  if test "$am_cv_func_iconv" = yes; then
8974
8975cat >>confdefs.h <<\_ACEOF
8976#define HAVE_ICONV 1
8977_ACEOF
8978
8979  fi
8980  if test "$am_cv_lib_iconv" = yes; then
8981    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8982echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8983    echo "$as_me:$LINENO: result: $LIBICONV" >&5
8984echo "${ECHO_T}$LIBICONV" >&6
8985  else
8986            CPPFLAGS="$am_save_CPPFLAGS"
8987    LIBICONV=
8988    LTLIBICONV=
8989  fi
8990
8991
8992
8993  if test "$am_cv_func_iconv" = yes; then
8994    echo "$as_me:$LINENO: checking for iconv declaration" >&5
8995echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8996    if test "${am_cv_proto_iconv+set}" = set; then
8997  echo $ECHO_N "(cached) $ECHO_C" >&6
8998else
8999
9000      cat >conftest.$ac_ext <<_ACEOF
9001/* confdefs.h.  */
9002_ACEOF
9003cat confdefs.h >>conftest.$ac_ext
9004cat >>conftest.$ac_ext <<_ACEOF
9005/* end confdefs.h.  */
9006
9007#include <stdlib.h>
9008#include <iconv.h>
9009extern
9010#ifdef __cplusplus
9011"C"
9012#endif
9013#if defined(__STDC__) || defined(__cplusplus)
9014size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9015#else
9016size_t iconv();
9017#endif
9018
9019int
9020main ()
9021{
9022
9023  ;
9024  return 0;
9025}
9026_ACEOF
9027rm -f conftest.$ac_objext
9028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9029  (eval $ac_compile) 2>conftest.er1
9030  ac_status=$?
9031  grep -v '^ *+' conftest.er1 >conftest.err
9032  rm -f conftest.er1
9033  cat conftest.err >&5
9034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035  (exit $ac_status); } &&
9036	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038  (eval $ac_try) 2>&5
9039  ac_status=$?
9040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041  (exit $ac_status); }; } &&
9042	 { ac_try='test -s conftest.$ac_objext'
9043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044  (eval $ac_try) 2>&5
9045  ac_status=$?
9046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047  (exit $ac_status); }; }; then
9048  am_cv_proto_iconv_arg1=""
9049else
9050  echo "$as_me: failed program was:" >&5
9051sed 's/^/| /' conftest.$ac_ext >&5
9052
9053am_cv_proto_iconv_arg1="const"
9054fi
9055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9056      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);"
9057fi
9058
9059    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9060    echo "$as_me:$LINENO: result: ${ac_t:-
9061         }$am_cv_proto_iconv" >&5
9062echo "${ECHO_T}${ac_t:-
9063         }$am_cv_proto_iconv" >&6
9064
9065cat >>confdefs.h <<_ACEOF
9066#define ICONV_CONST $am_cv_proto_iconv_arg1
9067_ACEOF
9068
9069  fi
9070
9071
9072  echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9073echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
9074if test "${am_cv_langinfo_codeset+set}" = set; then
9075  echo $ECHO_N "(cached) $ECHO_C" >&6
9076else
9077  cat >conftest.$ac_ext <<_ACEOF
9078/* confdefs.h.  */
9079_ACEOF
9080cat confdefs.h >>conftest.$ac_ext
9081cat >>conftest.$ac_ext <<_ACEOF
9082/* end confdefs.h.  */
9083#include <langinfo.h>
9084int
9085main ()
9086{
9087char* cs = nl_langinfo(CODESET);
9088  ;
9089  return 0;
9090}
9091_ACEOF
9092rm -f conftest.$ac_objext conftest$ac_exeext
9093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9094  (eval $ac_link) 2>conftest.er1
9095  ac_status=$?
9096  grep -v '^ *+' conftest.er1 >conftest.err
9097  rm -f conftest.er1
9098  cat conftest.err >&5
9099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100  (exit $ac_status); } &&
9101	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103  (eval $ac_try) 2>&5
9104  ac_status=$?
9105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106  (exit $ac_status); }; } &&
9107	 { ac_try='test -s conftest$ac_exeext'
9108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109  (eval $ac_try) 2>&5
9110  ac_status=$?
9111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112  (exit $ac_status); }; }; then
9113  am_cv_langinfo_codeset=yes
9114else
9115  echo "$as_me: failed program was:" >&5
9116sed 's/^/| /' conftest.$ac_ext >&5
9117
9118am_cv_langinfo_codeset=no
9119fi
9120rm -f conftest.err conftest.$ac_objext \
9121      conftest$ac_exeext conftest.$ac_ext
9122
9123fi
9124echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9125echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9126  if test $am_cv_langinfo_codeset = yes; then
9127
9128cat >>confdefs.h <<\_ACEOF
9129#define HAVE_LANGINFO_CODESET 1
9130_ACEOF
9131
9132  fi
9133
9134  if test $ac_cv_header_locale_h = yes; then
9135
9136  echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9137echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9138if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9139  echo $ECHO_N "(cached) $ECHO_C" >&6
9140else
9141  cat >conftest.$ac_ext <<_ACEOF
9142/* confdefs.h.  */
9143_ACEOF
9144cat confdefs.h >>conftest.$ac_ext
9145cat >>conftest.$ac_ext <<_ACEOF
9146/* end confdefs.h.  */
9147#include <locale.h>
9148int
9149main ()
9150{
9151return LC_MESSAGES
9152  ;
9153  return 0;
9154}
9155_ACEOF
9156rm -f conftest.$ac_objext conftest$ac_exeext
9157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9158  (eval $ac_link) 2>conftest.er1
9159  ac_status=$?
9160  grep -v '^ *+' conftest.er1 >conftest.err
9161  rm -f conftest.er1
9162  cat conftest.err >&5
9163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164  (exit $ac_status); } &&
9165	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167  (eval $ac_try) 2>&5
9168  ac_status=$?
9169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170  (exit $ac_status); }; } &&
9171	 { ac_try='test -s conftest$ac_exeext'
9172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173  (eval $ac_try) 2>&5
9174  ac_status=$?
9175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176  (exit $ac_status); }; }; then
9177  am_cv_val_LC_MESSAGES=yes
9178else
9179  echo "$as_me: failed program was:" >&5
9180sed 's/^/| /' conftest.$ac_ext >&5
9181
9182am_cv_val_LC_MESSAGES=no
9183fi
9184rm -f conftest.err conftest.$ac_objext \
9185      conftest$ac_exeext conftest.$ac_ext
9186fi
9187echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9188echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
9189  if test $am_cv_val_LC_MESSAGES = yes; then
9190
9191cat >>confdefs.h <<\_ACEOF
9192#define HAVE_LC_MESSAGES 1
9193_ACEOF
9194
9195  fi
9196
9197  fi
9198
9199                      for ac_prog in bison
9200do
9201  # Extract the first word of "$ac_prog", so it can be a program name with args.
9202set dummy $ac_prog; ac_word=$2
9203echo "$as_me:$LINENO: checking for $ac_word" >&5
9204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9205if test "${ac_cv_prog_INTLBISON+set}" = set; then
9206  echo $ECHO_N "(cached) $ECHO_C" >&6
9207else
9208  if test -n "$INTLBISON"; then
9209  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9210else
9211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9212for as_dir in $PATH
9213do
9214  IFS=$as_save_IFS
9215  test -z "$as_dir" && as_dir=.
9216  for ac_exec_ext in '' $ac_executable_extensions; do
9217  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9218    ac_cv_prog_INTLBISON="$ac_prog"
9219    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9220    break 2
9221  fi
9222done
9223done
9224
9225fi
9226fi
9227INTLBISON=$ac_cv_prog_INTLBISON
9228if test -n "$INTLBISON"; then
9229  echo "$as_me:$LINENO: result: $INTLBISON" >&5
9230echo "${ECHO_T}$INTLBISON" >&6
9231else
9232  echo "$as_me:$LINENO: result: no" >&5
9233echo "${ECHO_T}no" >&6
9234fi
9235
9236  test -n "$INTLBISON" && break
9237done
9238
9239  if test -z "$INTLBISON"; then
9240    ac_verc_fail=yes
9241  else
9242        echo "$as_me:$LINENO: checking version of bison" >&5
9243echo $ECHO_N "checking version of bison... $ECHO_C" >&6
9244    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9245    case $ac_prog_version in
9246      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9247      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9248         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9249      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9250    esac
9251    echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9252echo "${ECHO_T}$ac_prog_version" >&6
9253  fi
9254  if test $ac_verc_fail = yes; then
9255    INTLBISON=:
9256  fi
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9274echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9275    # Check whether --enable-nls or --disable-nls was given.
9276if test "${enable_nls+set}" = set; then
9277  enableval="$enable_nls"
9278  USE_NLS=$enableval
9279else
9280  USE_NLS=yes
9281fi;
9282  echo "$as_me:$LINENO: result: $USE_NLS" >&5
9283echo "${ECHO_T}$USE_NLS" >&6
9284
9285
9286
9287
9288    BUILD_INCLUDED_LIBINTL=no
9289    USE_INCLUDED_LIBINTL=no
9290
9291  LIBINTL=
9292  LTLIBINTL=
9293  POSUB=
9294
9295    if test "$USE_NLS" = "yes"; then
9296    gt_use_preinstalled_gnugettext=no
9297
9298      echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9299echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9300
9301# Check whether --with-included-gettext or --without-included-gettext was given.
9302if test "${with_included_gettext+set}" = set; then
9303  withval="$with_included_gettext"
9304  nls_cv_force_use_gnu_gettext=$withval
9305else
9306  nls_cv_force_use_gnu_gettext=no
9307fi;
9308      echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9309echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
9310
9311      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9312      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9313
9314
9315
9316
9317
9318
9319        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9320echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9321if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9322  echo $ECHO_N "(cached) $ECHO_C" >&6
9323else
9324  cat >conftest.$ac_ext <<_ACEOF
9325/* confdefs.h.  */
9326_ACEOF
9327cat confdefs.h >>conftest.$ac_ext
9328cat >>conftest.$ac_ext <<_ACEOF
9329/* end confdefs.h.  */
9330#include <libintl.h>
9331extern int _nl_msg_cat_cntr;
9332extern int *_nl_domain_bindings;
9333int
9334main ()
9335{
9336bindtextdomain ("", "");
9337return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9338  ;
9339  return 0;
9340}
9341_ACEOF
9342rm -f conftest.$ac_objext conftest$ac_exeext
9343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9344  (eval $ac_link) 2>conftest.er1
9345  ac_status=$?
9346  grep -v '^ *+' conftest.er1 >conftest.err
9347  rm -f conftest.er1
9348  cat conftest.err >&5
9349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350  (exit $ac_status); } &&
9351	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353  (eval $ac_try) 2>&5
9354  ac_status=$?
9355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356  (exit $ac_status); }; } &&
9357	 { ac_try='test -s conftest$ac_exeext'
9358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359  (eval $ac_try) 2>&5
9360  ac_status=$?
9361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362  (exit $ac_status); }; }; then
9363  gt_cv_func_gnugettext1_libc=yes
9364else
9365  echo "$as_me: failed program was:" >&5
9366sed 's/^/| /' conftest.$ac_ext >&5
9367
9368gt_cv_func_gnugettext1_libc=no
9369fi
9370rm -f conftest.err conftest.$ac_objext \
9371      conftest$ac_exeext conftest.$ac_ext
9372fi
9373echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9374echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
9375
9376        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9377
9378
9379
9380    use_additional=yes
9381
9382  acl_save_prefix="$prefix"
9383  prefix="$acl_final_prefix"
9384  acl_save_exec_prefix="$exec_prefix"
9385  exec_prefix="$acl_final_exec_prefix"
9386
9387    eval additional_includedir=\"$includedir\"
9388    eval additional_libdir=\"$libdir\"
9389
9390  exec_prefix="$acl_save_exec_prefix"
9391  prefix="$acl_save_prefix"
9392
9393
9394# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
9395if test "${with_libintl_prefix+set}" = set; then
9396  withval="$with_libintl_prefix"
9397
9398    if test "X$withval" = "Xno"; then
9399      use_additional=no
9400    else
9401      if test "X$withval" = "X"; then
9402
9403  acl_save_prefix="$prefix"
9404  prefix="$acl_final_prefix"
9405  acl_save_exec_prefix="$exec_prefix"
9406  exec_prefix="$acl_final_exec_prefix"
9407
9408          eval additional_includedir=\"$includedir\"
9409          eval additional_libdir=\"$libdir\"
9410
9411  exec_prefix="$acl_save_exec_prefix"
9412  prefix="$acl_save_prefix"
9413
9414      else
9415        additional_includedir="$withval/include"
9416        additional_libdir="$withval/lib"
9417      fi
9418    fi
9419
9420fi;
9421      LIBINTL=
9422  LTLIBINTL=
9423  INCINTL=
9424  rpathdirs=
9425  ltrpathdirs=
9426  names_already_handled=
9427  names_next_round='intl '
9428  while test -n "$names_next_round"; do
9429    names_this_round="$names_next_round"
9430    names_next_round=
9431    for name in $names_this_round; do
9432      already_handled=
9433      for n in $names_already_handled; do
9434        if test "$n" = "$name"; then
9435          already_handled=yes
9436          break
9437        fi
9438      done
9439      if test -z "$already_handled"; then
9440        names_already_handled="$names_already_handled $name"
9441                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9442        eval value=\"\$HAVE_LIB$uppername\"
9443        if test -n "$value"; then
9444          if test "$value" = yes; then
9445            eval value=\"\$LIB$uppername\"
9446            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9447            eval value=\"\$LTLIB$uppername\"
9448            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9449          else
9450                                    :
9451          fi
9452        else
9453                              found_dir=
9454          found_la=
9455          found_so=
9456          found_a=
9457          if test $use_additional = yes; then
9458            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9459              found_dir="$additional_libdir"
9460              found_so="$additional_libdir/lib$name.$shlibext"
9461              if test -f "$additional_libdir/lib$name.la"; then
9462                found_la="$additional_libdir/lib$name.la"
9463              fi
9464            else
9465              if test -f "$additional_libdir/lib$name.$libext"; then
9466                found_dir="$additional_libdir"
9467                found_a="$additional_libdir/lib$name.$libext"
9468                if test -f "$additional_libdir/lib$name.la"; then
9469                  found_la="$additional_libdir/lib$name.la"
9470                fi
9471              fi
9472            fi
9473          fi
9474          if test "X$found_dir" = "X"; then
9475            for x in $LDFLAGS $LTLIBINTL; do
9476
9477  acl_save_prefix="$prefix"
9478  prefix="$acl_final_prefix"
9479  acl_save_exec_prefix="$exec_prefix"
9480  exec_prefix="$acl_final_exec_prefix"
9481  eval x=\"$x\"
9482  exec_prefix="$acl_save_exec_prefix"
9483  prefix="$acl_save_prefix"
9484
9485              case "$x" in
9486                -L*)
9487                  dir=`echo "X$x" | sed -e 's/^X-L//'`
9488                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9489                    found_dir="$dir"
9490                    found_so="$dir/lib$name.$shlibext"
9491                    if test -f "$dir/lib$name.la"; then
9492                      found_la="$dir/lib$name.la"
9493                    fi
9494                  else
9495                    if test -f "$dir/lib$name.$libext"; then
9496                      found_dir="$dir"
9497                      found_a="$dir/lib$name.$libext"
9498                      if test -f "$dir/lib$name.la"; then
9499                        found_la="$dir/lib$name.la"
9500                      fi
9501                    fi
9502                  fi
9503                  ;;
9504              esac
9505              if test "X$found_dir" != "X"; then
9506                break
9507              fi
9508            done
9509          fi
9510          if test "X$found_dir" != "X"; then
9511                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9512            if test "X$found_so" != "X"; then
9513                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9514                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9515              else
9516                                                                                haveit=
9517                for x in $ltrpathdirs; do
9518                  if test "X$x" = "X$found_dir"; then
9519                    haveit=yes
9520                    break
9521                  fi
9522                done
9523                if test -z "$haveit"; then
9524                  ltrpathdirs="$ltrpathdirs $found_dir"
9525                fi
9526                                if test "$hardcode_direct" = yes; then
9527                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9528                else
9529                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9530                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9531                                                            haveit=
9532                    for x in $rpathdirs; do
9533                      if test "X$x" = "X$found_dir"; then
9534                        haveit=yes
9535                        break
9536                      fi
9537                    done
9538                    if test -z "$haveit"; then
9539                      rpathdirs="$rpathdirs $found_dir"
9540                    fi
9541                  else
9542                                                                                haveit=
9543                    for x in $LDFLAGS $LIBINTL; do
9544
9545  acl_save_prefix="$prefix"
9546  prefix="$acl_final_prefix"
9547  acl_save_exec_prefix="$exec_prefix"
9548  exec_prefix="$acl_final_exec_prefix"
9549  eval x=\"$x\"
9550  exec_prefix="$acl_save_exec_prefix"
9551  prefix="$acl_save_prefix"
9552
9553                      if test "X$x" = "X-L$found_dir"; then
9554                        haveit=yes
9555                        break
9556                      fi
9557                    done
9558                    if test -z "$haveit"; then
9559                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9560                    fi
9561                    if test "$hardcode_minus_L" != no; then
9562                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9563                    else
9564                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9565                    fi
9566                  fi
9567                fi
9568              fi
9569            else
9570              if test "X$found_a" != "X"; then
9571                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9572              else
9573                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9574              fi
9575            fi
9576                        additional_includedir=
9577            case "$found_dir" in
9578              */lib | */lib/)
9579                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9580                additional_includedir="$basedir/include"
9581                ;;
9582            esac
9583            if test "X$additional_includedir" != "X"; then
9584                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
9585                haveit=
9586                if test "X$additional_includedir" = "X/usr/local/include"; then
9587                  if test -n "$GCC"; then
9588                    case $host_os in
9589                      linux*) haveit=yes;;
9590                    esac
9591                  fi
9592                fi
9593                if test -z "$haveit"; then
9594                  for x in $CPPFLAGS $INCINTL; do
9595
9596  acl_save_prefix="$prefix"
9597  prefix="$acl_final_prefix"
9598  acl_save_exec_prefix="$exec_prefix"
9599  exec_prefix="$acl_final_exec_prefix"
9600  eval x=\"$x\"
9601  exec_prefix="$acl_save_exec_prefix"
9602  prefix="$acl_save_prefix"
9603
9604                    if test "X$x" = "X-I$additional_includedir"; then
9605                      haveit=yes
9606                      break
9607                    fi
9608                  done
9609                  if test -z "$haveit"; then
9610                    if test -d "$additional_includedir"; then
9611                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9612                    fi
9613                  fi
9614                fi
9615              fi
9616            fi
9617                        if test -n "$found_la"; then
9618                                                        save_libdir="$libdir"
9619              case "$found_la" in
9620                */* | *\\*) . "$found_la" ;;
9621                *) . "./$found_la" ;;
9622              esac
9623              libdir="$save_libdir"
9624                            for dep in $dependency_libs; do
9625                case "$dep" in
9626                  -L*)
9627                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9628                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
9629                      haveit=
9630                      if test "X$additional_libdir" = "X/usr/local/lib"; then
9631                        if test -n "$GCC"; then
9632                          case $host_os in
9633                            linux*) haveit=yes;;
9634                          esac
9635                        fi
9636                      fi
9637                      if test -z "$haveit"; then
9638                        haveit=
9639                        for x in $LDFLAGS $LIBINTL; do
9640
9641  acl_save_prefix="$prefix"
9642  prefix="$acl_final_prefix"
9643  acl_save_exec_prefix="$exec_prefix"
9644  exec_prefix="$acl_final_exec_prefix"
9645  eval x=\"$x\"
9646  exec_prefix="$acl_save_exec_prefix"
9647  prefix="$acl_save_prefix"
9648
9649                          if test "X$x" = "X-L$additional_libdir"; then
9650                            haveit=yes
9651                            break
9652                          fi
9653                        done
9654                        if test -z "$haveit"; then
9655                          if test -d "$additional_libdir"; then
9656                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9657                          fi
9658                        fi
9659                        haveit=
9660                        for x in $LDFLAGS $LTLIBINTL; do
9661
9662  acl_save_prefix="$prefix"
9663  prefix="$acl_final_prefix"
9664  acl_save_exec_prefix="$exec_prefix"
9665  exec_prefix="$acl_final_exec_prefix"
9666  eval x=\"$x\"
9667  exec_prefix="$acl_save_exec_prefix"
9668  prefix="$acl_save_prefix"
9669
9670                          if test "X$x" = "X-L$additional_libdir"; then
9671                            haveit=yes
9672                            break
9673                          fi
9674                        done
9675                        if test -z "$haveit"; then
9676                          if test -d "$additional_libdir"; then
9677                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9678                          fi
9679                        fi
9680                      fi
9681                    fi
9682                    ;;
9683                  -R*)
9684                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
9685                    if test "$enable_rpath" != no; then
9686                                                                  haveit=
9687                      for x in $rpathdirs; do
9688                        if test "X$x" = "X$dir"; then
9689                          haveit=yes
9690                          break
9691                        fi
9692                      done
9693                      if test -z "$haveit"; then
9694                        rpathdirs="$rpathdirs $dir"
9695                      fi
9696                                                                  haveit=
9697                      for x in $ltrpathdirs; do
9698                        if test "X$x" = "X$dir"; then
9699                          haveit=yes
9700                          break
9701                        fi
9702                      done
9703                      if test -z "$haveit"; then
9704                        ltrpathdirs="$ltrpathdirs $dir"
9705                      fi
9706                    fi
9707                    ;;
9708                  -l*)
9709                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9710                    ;;
9711                  *.la)
9712                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9713                    ;;
9714                  *)
9715                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9716                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9717                    ;;
9718                esac
9719              done
9720            fi
9721          else
9722                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9723            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9724          fi
9725        fi
9726      fi
9727    done
9728  done
9729  if test "X$rpathdirs" != "X"; then
9730    if test -n "$hardcode_libdir_separator"; then
9731                        alldirs=
9732      for found_dir in $rpathdirs; do
9733        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9734      done
9735            acl_save_libdir="$libdir"
9736      libdir="$alldirs"
9737      eval flag=\"$hardcode_libdir_flag_spec\"
9738      libdir="$acl_save_libdir"
9739      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9740    else
9741            for found_dir in $rpathdirs; do
9742        acl_save_libdir="$libdir"
9743        libdir="$found_dir"
9744        eval flag=\"$hardcode_libdir_flag_spec\"
9745        libdir="$acl_save_libdir"
9746        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9747      done
9748    fi
9749  fi
9750  if test "X$ltrpathdirs" != "X"; then
9751            for found_dir in $ltrpathdirs; do
9752      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9753    done
9754  fi
9755
9756          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9757echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9758if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9759  echo $ECHO_N "(cached) $ECHO_C" >&6
9760else
9761  gt_save_CPPFLAGS="$CPPFLAGS"
9762            CPPFLAGS="$CPPFLAGS $INCINTL"
9763            gt_save_LIBS="$LIBS"
9764            LIBS="$LIBS $LIBINTL"
9765                        cat >conftest.$ac_ext <<_ACEOF
9766/* confdefs.h.  */
9767_ACEOF
9768cat confdefs.h >>conftest.$ac_ext
9769cat >>conftest.$ac_ext <<_ACEOF
9770/* end confdefs.h.  */
9771#include <libintl.h>
9772extern int _nl_msg_cat_cntr;
9773extern
9774#ifdef __cplusplus
9775"C"
9776#endif
9777const char *_nl_expand_alias ();
9778int
9779main ()
9780{
9781bindtextdomain ("", "");
9782return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9783  ;
9784  return 0;
9785}
9786_ACEOF
9787rm -f conftest.$ac_objext conftest$ac_exeext
9788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789  (eval $ac_link) 2>conftest.er1
9790  ac_status=$?
9791  grep -v '^ *+' conftest.er1 >conftest.err
9792  rm -f conftest.er1
9793  cat conftest.err >&5
9794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795  (exit $ac_status); } &&
9796	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9798  (eval $ac_try) 2>&5
9799  ac_status=$?
9800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801  (exit $ac_status); }; } &&
9802	 { ac_try='test -s conftest$ac_exeext'
9803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804  (eval $ac_try) 2>&5
9805  ac_status=$?
9806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807  (exit $ac_status); }; }; then
9808  gt_cv_func_gnugettext1_libintl=yes
9809else
9810  echo "$as_me: failed program was:" >&5
9811sed 's/^/| /' conftest.$ac_ext >&5
9812
9813gt_cv_func_gnugettext1_libintl=no
9814fi
9815rm -f conftest.err conftest.$ac_objext \
9816      conftest$ac_exeext conftest.$ac_ext
9817                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9818              LIBS="$LIBS $LIBICONV"
9819              cat >conftest.$ac_ext <<_ACEOF
9820/* confdefs.h.  */
9821_ACEOF
9822cat confdefs.h >>conftest.$ac_ext
9823cat >>conftest.$ac_ext <<_ACEOF
9824/* end confdefs.h.  */
9825#include <libintl.h>
9826extern int _nl_msg_cat_cntr;
9827extern
9828#ifdef __cplusplus
9829"C"
9830#endif
9831const char *_nl_expand_alias ();
9832int
9833main ()
9834{
9835bindtextdomain ("", "");
9836return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9837  ;
9838  return 0;
9839}
9840_ACEOF
9841rm -f conftest.$ac_objext conftest$ac_exeext
9842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9843  (eval $ac_link) 2>conftest.er1
9844  ac_status=$?
9845  grep -v '^ *+' conftest.er1 >conftest.err
9846  rm -f conftest.er1
9847  cat conftest.err >&5
9848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849  (exit $ac_status); } &&
9850	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852  (eval $ac_try) 2>&5
9853  ac_status=$?
9854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855  (exit $ac_status); }; } &&
9856	 { ac_try='test -s conftest$ac_exeext'
9857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858  (eval $ac_try) 2>&5
9859  ac_status=$?
9860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861  (exit $ac_status); }; }; then
9862  LIBINTL="$LIBINTL $LIBICONV"
9863                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9864                gt_cv_func_gnugettext1_libintl=yes
9865
9866else
9867  echo "$as_me: failed program was:" >&5
9868sed 's/^/| /' conftest.$ac_ext >&5
9869
9870fi
9871rm -f conftest.err conftest.$ac_objext \
9872      conftest$ac_exeext conftest.$ac_ext
9873            fi
9874            CPPFLAGS="$gt_save_CPPFLAGS"
9875            LIBS="$gt_save_LIBS"
9876fi
9877echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
9878echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
9879        fi
9880
9881                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9882           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9883                && test "$PACKAGE" != gettext-runtime \
9884                && test "$PACKAGE" != gettext-tools; }; then
9885          gt_use_preinstalled_gnugettext=yes
9886        else
9887                    LIBINTL=
9888          LTLIBINTL=
9889          INCINTL=
9890        fi
9891
9892
9893        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9894                              nls_cv_use_gnu_gettext=yes
9895        fi
9896      fi
9897
9898      if test "$nls_cv_use_gnu_gettext" = "yes"; then
9899                BUILD_INCLUDED_LIBINTL=yes
9900        USE_INCLUDED_LIBINTL=yes
9901        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9902        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9903        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9904      fi
9905
9906      if test "$gt_use_preinstalled_gnugettext" = "yes" \
9907         || test "$nls_cv_use_gnu_gettext" = "yes"; then
9908                CATOBJEXT=.gmo
9909      fi
9910
9911
9912    if test "$gt_use_preinstalled_gnugettext" = "yes" \
9913       || test "$nls_cv_use_gnu_gettext" = "yes"; then
9914
9915cat >>confdefs.h <<\_ACEOF
9916#define ENABLE_NLS 1
9917_ACEOF
9918
9919    else
9920      USE_NLS=no
9921    fi
9922  fi
9923
9924  echo "$as_me:$LINENO: checking whether to use NLS" >&5
9925echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9926  echo "$as_me:$LINENO: result: $USE_NLS" >&5
9927echo "${ECHO_T}$USE_NLS" >&6
9928  if test "$USE_NLS" = "yes"; then
9929    echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9930echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9931    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9932      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9933        gt_source="external libintl"
9934      else
9935        gt_source="libc"
9936      fi
9937    else
9938      gt_source="included intl directory"
9939    fi
9940    echo "$as_me:$LINENO: result: $gt_source" >&5
9941echo "${ECHO_T}$gt_source" >&6
9942  fi
9943
9944  if test "$USE_NLS" = "yes"; then
9945
9946    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9947      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9948        echo "$as_me:$LINENO: checking how to link with libintl" >&5
9949echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9950        echo "$as_me:$LINENO: result: $LIBINTL" >&5
9951echo "${ECHO_T}$LIBINTL" >&6
9952
9953  for element in $INCINTL; do
9954    haveit=
9955    for x in $CPPFLAGS; do
9956
9957  acl_save_prefix="$prefix"
9958  prefix="$acl_final_prefix"
9959  acl_save_exec_prefix="$exec_prefix"
9960  exec_prefix="$acl_final_exec_prefix"
9961  eval x=\"$x\"
9962  exec_prefix="$acl_save_exec_prefix"
9963  prefix="$acl_save_prefix"
9964
9965      if test "X$x" = "X$element"; then
9966        haveit=yes
9967        break
9968      fi
9969    done
9970    if test -z "$haveit"; then
9971      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9972    fi
9973  done
9974
9975      fi
9976
9977
9978cat >>confdefs.h <<\_ACEOF
9979#define HAVE_GETTEXT 1
9980_ACEOF
9981
9982
9983cat >>confdefs.h <<\_ACEOF
9984#define HAVE_DCGETTEXT 1
9985_ACEOF
9986
9987    fi
9988
9989        POSUB=po
9990  fi
9991
9992
9993            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9994      BUILD_INCLUDED_LIBINTL=yes
9995    fi
9996
9997
9998
9999
10000
10001        nls_cv_header_intl=
10002    nls_cv_header_libgt=
10003
10004        DATADIRNAME=share
10005
10006
10007        INSTOBJEXT=.mo
10008
10009
10010        GENCAT=gencat
10011
10012
10013        if test "$USE_INCLUDED_LIBINTL" = yes; then
10014      INTLOBJS="\$(GETTOBJS)"
10015    fi
10016
10017
10018        INTL_LIBTOOL_SUFFIX_PREFIX=
10019
10020
10021
10022    INTLLIBS="$LIBINTL"
10023
10024
10025
10026
10027
10028
10029
10030GETTEXT_PACKAGE=scim-canna
10031
10032
10033cat >>confdefs.h <<_ACEOF
10034#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
10035_ACEOF
10036
10037
10038# Init libtool
10039
10040
10041# Check whether --enable-shared or --disable-shared was given.
10042if test "${enable_shared+set}" = set; then
10043  enableval="$enable_shared"
10044  p=${PACKAGE-default}
10045    case $enableval in
10046    yes) enable_shared=yes ;;
10047    no) enable_shared=no ;;
10048    *)
10049      enable_shared=no
10050      # Look at the argument we got.  We use all the common list separators.
10051      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10052      for pkg in $enableval; do
10053	IFS="$lt_save_ifs"
10054	if test "X$pkg" = "X$p"; then
10055	  enable_shared=yes
10056	fi
10057      done
10058      IFS="$lt_save_ifs"
10059      ;;
10060    esac
10061else
10062  enable_shared=yes
10063fi;
10064
10065# Check whether --enable-static or --disable-static was given.
10066if test "${enable_static+set}" = set; then
10067  enableval="$enable_static"
10068  p=${PACKAGE-default}
10069    case $enableval in
10070    yes) enable_static=yes ;;
10071    no) enable_static=no ;;
10072    *)
10073     enable_static=no
10074      # Look at the argument we got.  We use all the common list separators.
10075      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10076      for pkg in $enableval; do
10077	IFS="$lt_save_ifs"
10078	if test "X$pkg" = "X$p"; then
10079	  enable_static=yes
10080	fi
10081      done
10082      IFS="$lt_save_ifs"
10083      ;;
10084    esac
10085else
10086  enable_static=yes
10087fi;
10088
10089# Check whether --enable-fast-install or --disable-fast-install was given.
10090if test "${enable_fast_install+set}" = set; then
10091  enableval="$enable_fast_install"
10092  p=${PACKAGE-default}
10093    case $enableval in
10094    yes) enable_fast_install=yes ;;
10095    no) enable_fast_install=no ;;
10096    *)
10097      enable_fast_install=no
10098      # Look at the argument we got.  We use all the common list separators.
10099      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10100      for pkg in $enableval; do
10101	IFS="$lt_save_ifs"
10102	if test "X$pkg" = "X$p"; then
10103	  enable_fast_install=yes
10104	fi
10105      done
10106      IFS="$lt_save_ifs"
10107      ;;
10108    esac
10109else
10110  enable_fast_install=yes
10111fi;
10112
10113echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10114echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10115if test "${lt_cv_path_SED+set}" = set; then
10116  echo $ECHO_N "(cached) $ECHO_C" >&6
10117else
10118  # Loop through the user's path and test for sed and gsed.
10119# Then use that list of sed's as ones to test for truncation.
10120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10121for as_dir in $PATH
10122do
10123  IFS=$as_save_IFS
10124  test -z "$as_dir" && as_dir=.
10125  for lt_ac_prog in sed gsed; do
10126    for ac_exec_ext in '' $ac_executable_extensions; do
10127      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10128        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10129      fi
10130    done
10131  done
10132done
10133lt_ac_max=0
10134lt_ac_count=0
10135# Add /usr/xpg4/bin/sed as it is typically found on Solaris
10136# along with /bin/sed that truncates output.
10137for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10138  test ! -f $lt_ac_sed && break
10139  cat /dev/null > conftest.in
10140  lt_ac_count=0
10141  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10142  # Check for GNU sed and select it if it is found.
10143  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10144    lt_cv_path_SED=$lt_ac_sed
10145    break
10146  fi
10147  while true; do
10148    cat conftest.in conftest.in >conftest.tmp
10149    mv conftest.tmp conftest.in
10150    cp conftest.in conftest.nl
10151    echo >>conftest.nl
10152    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10153    cmp -s conftest.out conftest.nl || break
10154    # 10000 chars as input seems more than enough
10155    test $lt_ac_count -gt 10 && break
10156    lt_ac_count=`expr $lt_ac_count + 1`
10157    if test $lt_ac_count -gt $lt_ac_max; then
10158      lt_ac_max=$lt_ac_count
10159      lt_cv_path_SED=$lt_ac_sed
10160    fi
10161  done
10162done
10163SED=$lt_cv_path_SED
10164
10165fi
10166
10167echo "$as_me:$LINENO: result: $SED" >&5
10168echo "${ECHO_T}$SED" >&6
10169
10170
10171# Check whether --with-gnu-ld or --without-gnu-ld was given.
10172if test "${with_gnu_ld+set}" = set; then
10173  withval="$with_gnu_ld"
10174  test "$withval" = no || with_gnu_ld=yes
10175else
10176  with_gnu_ld=no
10177fi;
10178ac_prog=ld
10179if test "$GCC" = yes; then
10180  # Check if gcc -print-prog-name=ld gives a path.
10181  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10182echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10183  case $host in
10184  *-*-mingw*)
10185    # gcc leaves a trailing carriage return which upsets mingw
10186    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10187  *)
10188    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10189  esac
10190  case $ac_prog in
10191    # Accept absolute paths.
10192    [\\/]* | ?:[\\/]*)
10193      re_direlt='/[^/][^/]*/\.\./'
10194      # Canonicalize the pathname of ld
10195      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10196      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10197	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10198      done
10199      test -z "$LD" && LD="$ac_prog"
10200      ;;
10201  "")
10202    # If it fails, then pretend we aren't using GCC.
10203    ac_prog=ld
10204    ;;
10205  *)
10206    # If it is relative, then search for the first ld in PATH.
10207    with_gnu_ld=unknown
10208    ;;
10209  esac
10210elif test "$with_gnu_ld" = yes; then
10211  echo "$as_me:$LINENO: checking for GNU ld" >&5
10212echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10213else
10214  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10215echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10216fi
10217if test "${lt_cv_path_LD+set}" = set; then
10218  echo $ECHO_N "(cached) $ECHO_C" >&6
10219else
10220  if test -z "$LD"; then
10221  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10222  for ac_dir in $PATH; do
10223    IFS="$lt_save_ifs"
10224    test -z "$ac_dir" && ac_dir=.
10225    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10226      lt_cv_path_LD="$ac_dir/$ac_prog"
10227      # Check to see if the program is GNU ld.  I'd rather use --version,
10228      # but apparently some GNU ld's only accept -v.
10229      # Break only if it was the GNU/non-GNU ld that we prefer.
10230      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10231      *GNU* | *'with BFD'*)
10232	test "$with_gnu_ld" != no && break
10233	;;
10234      *)
10235	test "$with_gnu_ld" != yes && break
10236	;;
10237      esac
10238    fi
10239  done
10240  IFS="$lt_save_ifs"
10241else
10242  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10243fi
10244fi
10245
10246LD="$lt_cv_path_LD"
10247if test -n "$LD"; then
10248  echo "$as_me:$LINENO: result: $LD" >&5
10249echo "${ECHO_T}$LD" >&6
10250else
10251  echo "$as_me:$LINENO: result: no" >&5
10252echo "${ECHO_T}no" >&6
10253fi
10254test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10255echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10256   { (exit 1); exit 1; }; }
10257echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10258echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10259if test "${lt_cv_prog_gnu_ld+set}" = set; then
10260  echo $ECHO_N "(cached) $ECHO_C" >&6
10261else
10262  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10263case `$LD -v 2>&1 </dev/null` in
10264*GNU* | *'with BFD'*)
10265  lt_cv_prog_gnu_ld=yes
10266  ;;
10267*)
10268  lt_cv_prog_gnu_ld=no
10269  ;;
10270esac
10271fi
10272echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10273echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10274with_gnu_ld=$lt_cv_prog_gnu_ld
10275
10276
10277echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10278echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10279if test "${lt_cv_ld_reload_flag+set}" = set; then
10280  echo $ECHO_N "(cached) $ECHO_C" >&6
10281else
10282  lt_cv_ld_reload_flag='-r'
10283fi
10284echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10285echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10286reload_flag=$lt_cv_ld_reload_flag
10287case $reload_flag in
10288"" | " "*) ;;
10289*) reload_flag=" $reload_flag" ;;
10290esac
10291reload_cmds='$LD$reload_flag -o $output$reload_objs'
10292
10293echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
10294echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
10295if test "${lt_cv_path_NM+set}" = set; then
10296  echo $ECHO_N "(cached) $ECHO_C" >&6
10297else
10298  if test -n "$NM"; then
10299  # Let the user override the test.
10300  lt_cv_path_NM="$NM"
10301else
10302  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10303  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
10304    IFS="$lt_save_ifs"
10305    test -z "$ac_dir" && ac_dir=.
10306    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
10307    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10308      # Check to see if the nm accepts a BSD-compat flag.
10309      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10310      #   nm: unknown option "B" ignored
10311      # Tru64's nm complains that /dev/null is an invalid object file
10312      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10313      */dev/null* | *'Invalid file or object type'*)
10314	lt_cv_path_NM="$tmp_nm -B"
10315	break
10316        ;;
10317      *)
10318	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10319	*/dev/null*)
10320	  lt_cv_path_NM="$tmp_nm -p"
10321	  break
10322	  ;;
10323	*)
10324	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10325	  continue # so that we can try to find one that supports BSD flags
10326	  ;;
10327	esac
10328      esac
10329    fi
10330  done
10331  IFS="$lt_save_ifs"
10332  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
10333fi
10334fi
10335echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
10336echo "${ECHO_T}$lt_cv_path_NM" >&6
10337NM="$lt_cv_path_NM"
10338
10339echo "$as_me:$LINENO: checking whether ln -s works" >&5
10340echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
10341LN_S=$as_ln_s
10342if test "$LN_S" = "ln -s"; then
10343  echo "$as_me:$LINENO: result: yes" >&5
10344echo "${ECHO_T}yes" >&6
10345else
10346  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10347echo "${ECHO_T}no, using $LN_S" >&6
10348fi
10349
10350echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10351echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10352if test "${lt_cv_deplibs_check_method+set}" = set; then
10353  echo $ECHO_N "(cached) $ECHO_C" >&6
10354else
10355  lt_cv_file_magic_cmd='$MAGIC_CMD'
10356lt_cv_file_magic_test_file=
10357lt_cv_deplibs_check_method='unknown'
10358# Need to set the preceding variable on all platforms that support
10359# interlibrary dependencies.
10360# 'none' -- dependencies not supported.
10361# `unknown' -- same as none, but documents that we really don't know.
10362# 'pass_all' -- all dependencies passed with no checks.
10363# 'test_compile' -- check by making test program.
10364# 'file_magic [[regex]]' -- check by looking for files in library path
10365# which responds to the $file_magic_cmd with a given extended regex.
10366# If you have `file' or equivalent on your system and you're not sure
10367# whether `pass_all' will *always* work, you probably want this one.
10368
10369case $host_os in
10370aix4* | aix5*)
10371  lt_cv_deplibs_check_method=pass_all
10372  ;;
10373
10374beos*)
10375  lt_cv_deplibs_check_method=pass_all
10376  ;;
10377
10378bsdi4*)
10379  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10380  lt_cv_file_magic_cmd='/usr/bin/file -L'
10381  lt_cv_file_magic_test_file=/shlib/libc.so
10382  ;;
10383
10384cygwin*)
10385  # func_win32_libid is a shell function defined in ltmain.sh
10386  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10387  lt_cv_file_magic_cmd='func_win32_libid'
10388  ;;
10389
10390mingw* | pw32*)
10391  # Base MSYS/MinGW do not provide the 'file' command needed by
10392  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10393  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10394  lt_cv_file_magic_cmd='$OBJDUMP -f'
10395  ;;
10396
10397darwin* | rhapsody*)
10398  lt_cv_deplibs_check_method=pass_all
10399  ;;
10400
10401freebsd* | kfreebsd*-gnu)
10402  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10403    case $host_cpu in
10404    i*86 )
10405      # Not sure whether the presence of OpenBSD here was a mistake.
10406      # Let's accept both of them until this is cleared up.
10407      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10408      lt_cv_file_magic_cmd=/usr/bin/file
10409      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10410      ;;
10411    esac
10412  else
10413    lt_cv_deplibs_check_method=pass_all
10414  fi
10415  ;;
10416
10417gnu*)
10418  lt_cv_deplibs_check_method=pass_all
10419  ;;
10420
10421hpux10.20* | hpux11*)
10422  lt_cv_file_magic_cmd=/usr/bin/file
10423  case "$host_cpu" in
10424  ia64*)
10425    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10426    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10427    ;;
10428  hppa*64*)
10429    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]'
10430    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10431    ;;
10432  *)
10433    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10434    lt_cv_file_magic_test_file=/usr/lib/libc.sl
10435    ;;
10436  esac
10437  ;;
10438
10439irix5* | irix6* | nonstopux*)
10440  case $LD in
10441  *-32|*"-32 ") libmagic=32-bit;;
10442  *-n32|*"-n32 ") libmagic=N32;;
10443  *-64|*"-64 ") libmagic=64-bit;;
10444  *) libmagic=never-match;;
10445  esac
10446  lt_cv_deplibs_check_method=pass_all
10447  ;;
10448
10449# This must be Linux ELF.
10450linux*)
10451  lt_cv_deplibs_check_method=pass_all
10452  ;;
10453
10454netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10455  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10456    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10457  else
10458    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10459  fi
10460  ;;
10461
10462newos6*)
10463  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10464  lt_cv_file_magic_cmd=/usr/bin/file
10465  lt_cv_file_magic_test_file=/usr/lib/libnls.so
10466  ;;
10467
10468nto-qnx*)
10469  lt_cv_deplibs_check_method=unknown
10470  ;;
10471
10472openbsd*)
10473  lt_cv_file_magic_cmd=/usr/bin/file
10474  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10475  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10476    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
10477  else
10478    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
10479  fi
10480  ;;
10481
10482osf3* | osf4* | osf5*)
10483  lt_cv_deplibs_check_method=pass_all
10484  ;;
10485
10486sco3.2v5*)
10487  lt_cv_deplibs_check_method=pass_all
10488  ;;
10489
10490solaris*)
10491  lt_cv_deplibs_check_method=pass_all
10492  ;;
10493
10494sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10495  case $host_vendor in
10496  motorola)
10497    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]'
10498    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10499    ;;
10500  ncr)
10501    lt_cv_deplibs_check_method=pass_all
10502    ;;
10503  sequent)
10504    lt_cv_file_magic_cmd='/bin/file'
10505    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10506    ;;
10507  sni)
10508    lt_cv_file_magic_cmd='/bin/file'
10509    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10510    lt_cv_file_magic_test_file=/lib/libc.so
10511    ;;
10512  siemens)
10513    lt_cv_deplibs_check_method=pass_all
10514    ;;
10515  esac
10516  ;;
10517
10518sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10519  lt_cv_deplibs_check_method=pass_all
10520  ;;
10521esac
10522
10523fi
10524echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10525echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10526file_magic_cmd=$lt_cv_file_magic_cmd
10527deplibs_check_method=$lt_cv_deplibs_check_method
10528test -z "$deplibs_check_method" && deplibs_check_method=unknown
10529
10530
10531
10532
10533# If no C compiler was specified, use CC.
10534LTCC=${LTCC-"$CC"}
10535
10536# Allow CC to be a program name with arguments.
10537compiler=$CC
10538
10539# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10540if test "${enable_libtool_lock+set}" = set; then
10541  enableval="$enable_libtool_lock"
10542
10543fi;
10544test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10545
10546# Some flags need to be propagated to the compiler or linker for good
10547# libtool support.
10548case $host in
10549ia64-*-hpux*)
10550  # Find out which ABI we are using.
10551  echo 'int i;' > conftest.$ac_ext
10552  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10553  (eval $ac_compile) 2>&5
10554  ac_status=$?
10555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556  (exit $ac_status); }; then
10557    case `/usr/bin/file conftest.$ac_objext` in
10558    *ELF-32*)
10559      HPUX_IA64_MODE="32"
10560      ;;
10561    *ELF-64*)
10562      HPUX_IA64_MODE="64"
10563      ;;
10564    esac
10565  fi
10566  rm -rf conftest*
10567  ;;
10568*-*-irix6*)
10569  # Find out which ABI we are using.
10570  echo '#line 10570 "configure"' > conftest.$ac_ext
10571  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10572  (eval $ac_compile) 2>&5
10573  ac_status=$?
10574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575  (exit $ac_status); }; then
10576   if test "$lt_cv_prog_gnu_ld" = yes; then
10577    case `/usr/bin/file conftest.$ac_objext` in
10578    *32-bit*)
10579      LD="${LD-ld} -melf32bsmip"
10580      ;;
10581    *N32*)
10582      LD="${LD-ld} -melf32bmipn32"
10583      ;;
10584    *64-bit*)
10585      LD="${LD-ld} -melf64bmip"
10586      ;;
10587    esac
10588   else
10589    case `/usr/bin/file conftest.$ac_objext` in
10590    *32-bit*)
10591      LD="${LD-ld} -32"
10592      ;;
10593    *N32*)
10594      LD="${LD-ld} -n32"
10595      ;;
10596    *64-bit*)
10597      LD="${LD-ld} -64"
10598      ;;
10599    esac
10600   fi
10601  fi
10602  rm -rf conftest*
10603  ;;
10604
10605x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10606  # Find out which ABI we are using.
10607  echo 'int i;' > conftest.$ac_ext
10608  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10609  (eval $ac_compile) 2>&5
10610  ac_status=$?
10611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612  (exit $ac_status); }; then
10613    case "`/usr/bin/file conftest.o`" in
10614    *32-bit*)
10615      case $host in
10616        x86_64-*linux*)
10617          LD="${LD-ld} -m elf_i386"
10618          ;;
10619        ppc64-*linux*|powerpc64-*linux*)
10620          LD="${LD-ld} -m elf32ppclinux"
10621          ;;
10622        s390x-*linux*)
10623          LD="${LD-ld} -m elf_s390"
10624          ;;
10625        sparc64-*linux*)
10626          LD="${LD-ld} -m elf32_sparc"
10627          ;;
10628      esac
10629      ;;
10630    *64-bit*)
10631      case $host in
10632        x86_64-*linux*)
10633          LD="${LD-ld} -m elf_x86_64"
10634          ;;
10635        ppc*-*linux*|powerpc*-*linux*)
10636          LD="${LD-ld} -m elf64ppc"
10637          ;;
10638        s390*-*linux*)
10639          LD="${LD-ld} -m elf64_s390"
10640          ;;
10641        sparc*-*linux*)
10642          LD="${LD-ld} -m elf64_sparc"
10643          ;;
10644      esac
10645      ;;
10646    esac
10647  fi
10648  rm -rf conftest*
10649  ;;
10650
10651*-*-sco3.2v5*)
10652  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10653  SAVE_CFLAGS="$CFLAGS"
10654  CFLAGS="$CFLAGS -belf"
10655  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10656echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10657if test "${lt_cv_cc_needs_belf+set}" = set; then
10658  echo $ECHO_N "(cached) $ECHO_C" >&6
10659else
10660  ac_ext=c
10661ac_cpp='$CPP $CPPFLAGS'
10662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10664ac_compiler_gnu=$ac_cv_c_compiler_gnu
10665
10666     cat >conftest.$ac_ext <<_ACEOF
10667/* confdefs.h.  */
10668_ACEOF
10669cat confdefs.h >>conftest.$ac_ext
10670cat >>conftest.$ac_ext <<_ACEOF
10671/* end confdefs.h.  */
10672
10673int
10674main ()
10675{
10676
10677  ;
10678  return 0;
10679}
10680_ACEOF
10681rm -f conftest.$ac_objext conftest$ac_exeext
10682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10683  (eval $ac_link) 2>conftest.er1
10684  ac_status=$?
10685  grep -v '^ *+' conftest.er1 >conftest.err
10686  rm -f conftest.er1
10687  cat conftest.err >&5
10688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689  (exit $ac_status); } &&
10690	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10692  (eval $ac_try) 2>&5
10693  ac_status=$?
10694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695  (exit $ac_status); }; } &&
10696	 { ac_try='test -s conftest$ac_exeext'
10697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698  (eval $ac_try) 2>&5
10699  ac_status=$?
10700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701  (exit $ac_status); }; }; then
10702  lt_cv_cc_needs_belf=yes
10703else
10704  echo "$as_me: failed program was:" >&5
10705sed 's/^/| /' conftest.$ac_ext >&5
10706
10707lt_cv_cc_needs_belf=no
10708fi
10709rm -f conftest.err conftest.$ac_objext \
10710      conftest$ac_exeext conftest.$ac_ext
10711     ac_ext=c
10712ac_cpp='$CPP $CPPFLAGS'
10713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10715ac_compiler_gnu=$ac_cv_c_compiler_gnu
10716
10717fi
10718echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10719echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10720  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10721    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10722    CFLAGS="$SAVE_CFLAGS"
10723  fi
10724  ;;
10725
10726esac
10727
10728need_locks="$enable_libtool_lock"
10729
10730
10731
10732for ac_header in dlfcn.h
10733do
10734as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10735if eval "test \"\${$as_ac_Header+set}\" = set"; then
10736  echo "$as_me:$LINENO: checking for $ac_header" >&5
10737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10738if eval "test \"\${$as_ac_Header+set}\" = set"; then
10739  echo $ECHO_N "(cached) $ECHO_C" >&6
10740fi
10741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10742echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10743else
10744  # Is the header compilable?
10745echo "$as_me:$LINENO: checking $ac_header usability" >&5
10746echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10747cat >conftest.$ac_ext <<_ACEOF
10748/* confdefs.h.  */
10749_ACEOF
10750cat confdefs.h >>conftest.$ac_ext
10751cat >>conftest.$ac_ext <<_ACEOF
10752/* end confdefs.h.  */
10753$ac_includes_default
10754#include <$ac_header>
10755_ACEOF
10756rm -f conftest.$ac_objext
10757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10758  (eval $ac_compile) 2>conftest.er1
10759  ac_status=$?
10760  grep -v '^ *+' conftest.er1 >conftest.err
10761  rm -f conftest.er1
10762  cat conftest.err >&5
10763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764  (exit $ac_status); } &&
10765	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767  (eval $ac_try) 2>&5
10768  ac_status=$?
10769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770  (exit $ac_status); }; } &&
10771	 { ac_try='test -s conftest.$ac_objext'
10772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773  (eval $ac_try) 2>&5
10774  ac_status=$?
10775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776  (exit $ac_status); }; }; then
10777  ac_header_compiler=yes
10778else
10779  echo "$as_me: failed program was:" >&5
10780sed 's/^/| /' conftest.$ac_ext >&5
10781
10782ac_header_compiler=no
10783fi
10784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10785echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10786echo "${ECHO_T}$ac_header_compiler" >&6
10787
10788# Is the header present?
10789echo "$as_me:$LINENO: checking $ac_header presence" >&5
10790echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10791cat >conftest.$ac_ext <<_ACEOF
10792/* confdefs.h.  */
10793_ACEOF
10794cat confdefs.h >>conftest.$ac_ext
10795cat >>conftest.$ac_ext <<_ACEOF
10796/* end confdefs.h.  */
10797#include <$ac_header>
10798_ACEOF
10799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10800  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10801  ac_status=$?
10802  grep -v '^ *+' conftest.er1 >conftest.err
10803  rm -f conftest.er1
10804  cat conftest.err >&5
10805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806  (exit $ac_status); } >/dev/null; then
10807  if test -s conftest.err; then
10808    ac_cpp_err=$ac_c_preproc_warn_flag
10809    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10810  else
10811    ac_cpp_err=
10812  fi
10813else
10814  ac_cpp_err=yes
10815fi
10816if test -z "$ac_cpp_err"; then
10817  ac_header_preproc=yes
10818else
10819  echo "$as_me: failed program was:" >&5
10820sed 's/^/| /' conftest.$ac_ext >&5
10821
10822  ac_header_preproc=no
10823fi
10824rm -f conftest.err conftest.$ac_ext
10825echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10826echo "${ECHO_T}$ac_header_preproc" >&6
10827
10828# So?  What about this header?
10829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10830  yes:no: )
10831    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10832echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10833    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10834echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10835    ac_header_preproc=yes
10836    ;;
10837  no:yes:* )
10838    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10839echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10840    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10841echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10842    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10843echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10844    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10845echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10846    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10847echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10848    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10849echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10850    (
10851      cat <<\_ASBOX
10852## ---------------------------------- ##
10853## Report this to poincare@ikezoe.net ##
10854## ---------------------------------- ##
10855_ASBOX
10856    ) |
10857      sed "s/^/$as_me: WARNING:     /" >&2
10858    ;;
10859esac
10860echo "$as_me:$LINENO: checking for $ac_header" >&5
10861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10862if eval "test \"\${$as_ac_Header+set}\" = set"; then
10863  echo $ECHO_N "(cached) $ECHO_C" >&6
10864else
10865  eval "$as_ac_Header=\$ac_header_preproc"
10866fi
10867echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10868echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10869
10870fi
10871if test `eval echo '${'$as_ac_Header'}'` = yes; then
10872  cat >>confdefs.h <<_ACEOF
10873#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10874_ACEOF
10875
10876fi
10877
10878done
10879
10880ac_ext=cc
10881ac_cpp='$CXXCPP $CPPFLAGS'
10882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10885if test -n "$ac_tool_prefix"; then
10886  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10887  do
10888    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10889set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10890echo "$as_me:$LINENO: checking for $ac_word" >&5
10891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10892if test "${ac_cv_prog_CXX+set}" = set; then
10893  echo $ECHO_N "(cached) $ECHO_C" >&6
10894else
10895  if test -n "$CXX"; then
10896  ac_cv_prog_CXX="$CXX" # Let the user override the test.
10897else
10898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10899for as_dir in $PATH
10900do
10901  IFS=$as_save_IFS
10902  test -z "$as_dir" && as_dir=.
10903  for ac_exec_ext in '' $ac_executable_extensions; do
10904  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10905    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10906    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10907    break 2
10908  fi
10909done
10910done
10911
10912fi
10913fi
10914CXX=$ac_cv_prog_CXX
10915if test -n "$CXX"; then
10916  echo "$as_me:$LINENO: result: $CXX" >&5
10917echo "${ECHO_T}$CXX" >&6
10918else
10919  echo "$as_me:$LINENO: result: no" >&5
10920echo "${ECHO_T}no" >&6
10921fi
10922
10923    test -n "$CXX" && break
10924  done
10925fi
10926if test -z "$CXX"; then
10927  ac_ct_CXX=$CXX
10928  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10929do
10930  # Extract the first word of "$ac_prog", so it can be a program name with args.
10931set dummy $ac_prog; ac_word=$2
10932echo "$as_me:$LINENO: checking for $ac_word" >&5
10933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10934if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10935  echo $ECHO_N "(cached) $ECHO_C" >&6
10936else
10937  if test -n "$ac_ct_CXX"; then
10938  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10939else
10940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941for as_dir in $PATH
10942do
10943  IFS=$as_save_IFS
10944  test -z "$as_dir" && as_dir=.
10945  for ac_exec_ext in '' $ac_executable_extensions; do
10946  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10947    ac_cv_prog_ac_ct_CXX="$ac_prog"
10948    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10949    break 2
10950  fi
10951done
10952done
10953
10954fi
10955fi
10956ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10957if test -n "$ac_ct_CXX"; then
10958  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10959echo "${ECHO_T}$ac_ct_CXX" >&6
10960else
10961  echo "$as_me:$LINENO: result: no" >&5
10962echo "${ECHO_T}no" >&6
10963fi
10964
10965  test -n "$ac_ct_CXX" && break
10966done
10967test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
10968
10969  CXX=$ac_ct_CXX
10970fi
10971
10972
10973# Provide some information about the compiler.
10974echo "$as_me:$LINENO:" \
10975     "checking for C++ compiler version" >&5
10976ac_compiler=`set X $ac_compile; echo $2`
10977{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10978  (eval $ac_compiler --version </dev/null >&5) 2>&5
10979  ac_status=$?
10980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981  (exit $ac_status); }
10982{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10983  (eval $ac_compiler -v </dev/null >&5) 2>&5
10984  ac_status=$?
10985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986  (exit $ac_status); }
10987{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10988  (eval $ac_compiler -V </dev/null >&5) 2>&5
10989  ac_status=$?
10990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991  (exit $ac_status); }
10992
10993echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10994echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
10995if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10996  echo $ECHO_N "(cached) $ECHO_C" >&6
10997else
10998  cat >conftest.$ac_ext <<_ACEOF
10999/* confdefs.h.  */
11000_ACEOF
11001cat confdefs.h >>conftest.$ac_ext
11002cat >>conftest.$ac_ext <<_ACEOF
11003/* end confdefs.h.  */
11004
11005int
11006main ()
11007{
11008#ifndef __GNUC__
11009       choke me
11010#endif
11011
11012  ;
11013  return 0;
11014}
11015_ACEOF
11016rm -f conftest.$ac_objext
11017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11018  (eval $ac_compile) 2>conftest.er1
11019  ac_status=$?
11020  grep -v '^ *+' conftest.er1 >conftest.err
11021  rm -f conftest.er1
11022  cat conftest.err >&5
11023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024  (exit $ac_status); } &&
11025	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
11026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027  (eval $ac_try) 2>&5
11028  ac_status=$?
11029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030  (exit $ac_status); }; } &&
11031	 { ac_try='test -s conftest.$ac_objext'
11032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033  (eval $ac_try) 2>&5
11034  ac_status=$?
11035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036  (exit $ac_status); }; }; then
11037  ac_compiler_gnu=yes
11038else
11039  echo "$as_me: failed program was:" >&5
11040sed 's/^/| /' conftest.$ac_ext >&5
11041
11042ac_compiler_gnu=no
11043fi
11044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11045ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11046
11047fi
11048echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11049echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11050GXX=`test $ac_compiler_gnu = yes && echo yes`
11051ac_test_CXXFLAGS=${CXXFLAGS+set}
11052ac_save_CXXFLAGS=$CXXFLAGS
11053CXXFLAGS="-g"
11054echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11055echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11056if test "${ac_cv_prog_cxx_g+set}" = set; then
11057  echo $ECHO_N "(cached) $ECHO_C" >&6
11058else
11059  cat >conftest.$ac_ext <<_ACEOF
11060/* confdefs.h.  */
11061_ACEOF
11062cat confdefs.h >>conftest.$ac_ext
11063cat >>conftest.$ac_ext <<_ACEOF
11064/* end confdefs.h.  */
11065
11066int
11067main ()
11068{
11069
11070  ;
11071  return 0;
11072}
11073_ACEOF
11074rm -f conftest.$ac_objext
11075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11076  (eval $ac_compile) 2>conftest.er1
11077  ac_status=$?
11078  grep -v '^ *+' conftest.er1 >conftest.err
11079  rm -f conftest.er1
11080  cat conftest.err >&5
11081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082  (exit $ac_status); } &&
11083	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
11084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085  (eval $ac_try) 2>&5
11086  ac_status=$?
11087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088  (exit $ac_status); }; } &&
11089	 { ac_try='test -s conftest.$ac_objext'
11090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091  (eval $ac_try) 2>&5
11092  ac_status=$?
11093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094  (exit $ac_status); }; }; then
11095  ac_cv_prog_cxx_g=yes
11096else
11097  echo "$as_me: failed program was:" >&5
11098sed 's/^/| /' conftest.$ac_ext >&5
11099
11100ac_cv_prog_cxx_g=no
11101fi
11102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11103fi
11104echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11105echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11106if test "$ac_test_CXXFLAGS" = set; then
11107  CXXFLAGS=$ac_save_CXXFLAGS
11108elif test $ac_cv_prog_cxx_g = yes; then
11109  if test "$GXX" = yes; then
11110    CXXFLAGS="-g -O2"
11111  else
11112    CXXFLAGS="-g"
11113  fi
11114else
11115  if test "$GXX" = yes; then
11116    CXXFLAGS="-O2"
11117  else
11118    CXXFLAGS=
11119  fi
11120fi
11121for ac_declaration in \
11122   '' \
11123   'extern "C" void std::exit (int) throw (); using std::exit;' \
11124   'extern "C" void std::exit (int); using std::exit;' \
11125   'extern "C" void exit (int) throw ();' \
11126   'extern "C" void exit (int);' \
11127   'void exit (int);'
11128do
11129  cat >conftest.$ac_ext <<_ACEOF
11130/* confdefs.h.  */
11131_ACEOF
11132cat confdefs.h >>conftest.$ac_ext
11133cat >>conftest.$ac_ext <<_ACEOF
11134/* end confdefs.h.  */
11135$ac_declaration
11136#include <stdlib.h>
11137int
11138main ()
11139{
11140exit (42);
11141  ;
11142  return 0;
11143}
11144_ACEOF
11145rm -f conftest.$ac_objext
11146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11147  (eval $ac_compile) 2>conftest.er1
11148  ac_status=$?
11149  grep -v '^ *+' conftest.er1 >conftest.err
11150  rm -f conftest.er1
11151  cat conftest.err >&5
11152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153  (exit $ac_status); } &&
11154	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
11155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156  (eval $ac_try) 2>&5
11157  ac_status=$?
11158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159  (exit $ac_status); }; } &&
11160	 { ac_try='test -s conftest.$ac_objext'
11161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11162  (eval $ac_try) 2>&5
11163  ac_status=$?
11164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165  (exit $ac_status); }; }; then
11166  :
11167else
11168  echo "$as_me: failed program was:" >&5
11169sed 's/^/| /' conftest.$ac_ext >&5
11170
11171continue
11172fi
11173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11174  cat >conftest.$ac_ext <<_ACEOF
11175/* confdefs.h.  */
11176_ACEOF
11177cat confdefs.h >>conftest.$ac_ext
11178cat >>conftest.$ac_ext <<_ACEOF
11179/* end confdefs.h.  */
11180$ac_declaration
11181int
11182main ()
11183{
11184exit (42);
11185  ;
11186  return 0;
11187}
11188_ACEOF
11189rm -f conftest.$ac_objext
11190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11191  (eval $ac_compile) 2>conftest.er1
11192  ac_status=$?
11193  grep -v '^ *+' conftest.er1 >conftest.err
11194  rm -f conftest.er1
11195  cat conftest.err >&5
11196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197  (exit $ac_status); } &&
11198	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
11199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11200  (eval $ac_try) 2>&5
11201  ac_status=$?
11202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203  (exit $ac_status); }; } &&
11204	 { ac_try='test -s conftest.$ac_objext'
11205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206  (eval $ac_try) 2>&5
11207  ac_status=$?
11208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209  (exit $ac_status); }; }; then
11210  break
11211else
11212  echo "$as_me: failed program was:" >&5
11213sed 's/^/| /' conftest.$ac_ext >&5
11214
11215fi
11216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11217done
11218rm -f conftest*
11219if test -n "$ac_declaration"; then
11220  echo '#ifdef __cplusplus' >>confdefs.h
11221  echo $ac_declaration      >>confdefs.h
11222  echo '#endif'             >>confdefs.h
11223fi
11224
11225ac_ext=cc
11226ac_cpp='$CXXCPP $CPPFLAGS'
11227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11230
11231depcc="$CXX"  am_compiler_list=
11232
11233echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11234echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
11235if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
11236  echo $ECHO_N "(cached) $ECHO_C" >&6
11237else
11238  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11239  # We make a subdir and do the tests there.  Otherwise we can end up
11240  # making bogus files that we don't know about and never remove.  For
11241  # instance it was reported that on HP-UX the gcc test will end up
11242  # making a dummy file named `D' -- because `-MD' means `put the output
11243  # in D'.
11244  mkdir conftest.dir
11245  # Copy depcomp to subdir because otherwise we won't find it if we're
11246  # using a relative directory.
11247  cp "$am_depcomp" conftest.dir
11248  cd conftest.dir
11249  # We will build objects and dependencies in a subdirectory because
11250  # it helps to detect inapplicable dependency modes.  For instance
11251  # both Tru64's cc and ICC support -MD to output dependencies as a
11252  # side effect of compilation, but ICC will put the dependencies in
11253  # the current directory while Tru64 will put them in the object
11254  # directory.
11255  mkdir sub
11256
11257  am_cv_CXX_dependencies_compiler_type=none
11258  if test "$am_compiler_list" = ""; then
11259     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11260  fi
11261  for depmode in $am_compiler_list; do
11262    # Setup a source with many dependencies, because some compilers
11263    # like to wrap large dependency lists on column 80 (with \), and
11264    # we should not choose a depcomp mode which is confused by this.
11265    #
11266    # We need to recreate these files for each test, as the compiler may
11267    # overwrite some of them when testing with obscure command lines.
11268    # This happens at least with the AIX C compiler.
11269    : > sub/conftest.c
11270    for i in 1 2 3 4 5 6; do
11271      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11272      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11273      # Solaris 8's {/usr,}/bin/sh.
11274      touch sub/conftst$i.h
11275    done
11276    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11277
11278    case $depmode in
11279    nosideeffect)
11280      # after this tag, mechanisms are not by side-effect, so they'll
11281      # only be used when explicitly requested
11282      if test "x$enable_dependency_tracking" = xyes; then
11283	continue
11284      else
11285	break
11286      fi
11287      ;;
11288    none) break ;;
11289    esac
11290    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11291    # mode.  It turns out that the SunPro C++ compiler does not properly
11292    # handle `-M -o', and we need to detect this.
11293    if depmode=$depmode \
11294       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11295       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11296       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11297         >/dev/null 2>conftest.err &&
11298       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11299       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11300       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11301      # icc doesn't choke on unknown options, it will just issue warnings
11302      # or remarks (even with -Werror).  So we grep stderr for any message
11303      # that says an option was ignored or not supported.
11304      # When given -MP, icc 7.0 and 7.1 complain thusly:
11305      #   icc: Command line warning: ignoring option '-M'; no argument required
11306      # The diagnosis changed in icc 8.0:
11307      #   icc: Command line remark: option '-MP' not supported
11308      if (grep 'ignoring option' conftest.err ||
11309          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11310        am_cv_CXX_dependencies_compiler_type=$depmode
11311        break
11312      fi
11313    fi
11314  done
11315
11316  cd ..
11317  rm -rf conftest.dir
11318else
11319  am_cv_CXX_dependencies_compiler_type=none
11320fi
11321
11322fi
11323echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
11324echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
11325CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11326
11327
11328
11329if
11330  test "x$enable_dependency_tracking" != xno \
11331  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11332  am__fastdepCXX_TRUE=
11333  am__fastdepCXX_FALSE='#'
11334else
11335  am__fastdepCXX_TRUE='#'
11336  am__fastdepCXX_FALSE=
11337fi
11338
11339
11340ac_ext=cc
11341ac_cpp='$CXXCPP $CPPFLAGS'
11342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11345echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11346echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
11347if test -z "$CXXCPP"; then
11348  if test "${ac_cv_prog_CXXCPP+set}" = set; then
11349  echo $ECHO_N "(cached) $ECHO_C" >&6
11350else
11351      # Double quotes because CXXCPP needs to be expanded
11352    for CXXCPP in "$CXX -E" "/lib/cpp"
11353    do
11354      ac_preproc_ok=false
11355for ac_cxx_preproc_warn_flag in '' yes
11356do
11357  # Use a header file that comes with gcc, so configuring glibc
11358  # with a fresh cross-compiler works.
11359  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11360  # <limits.h> exists even on freestanding compilers.
11361  # On the NeXT, cc -E runs the code through the compiler's parser,
11362  # not just through cpp. "Syntax error" is here to catch this case.
11363  cat >conftest.$ac_ext <<_ACEOF
11364/* confdefs.h.  */
11365_ACEOF
11366cat confdefs.h >>conftest.$ac_ext
11367cat >>conftest.$ac_ext <<_ACEOF
11368/* end confdefs.h.  */
11369#ifdef __STDC__
11370# include <limits.h>
11371#else
11372# include <assert.h>
11373#endif
11374		     Syntax error
11375_ACEOF
11376if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11377  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11378  ac_status=$?
11379  grep -v '^ *+' conftest.er1 >conftest.err
11380  rm -f conftest.er1
11381  cat conftest.err >&5
11382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383  (exit $ac_status); } >/dev/null; then
11384  if test -s conftest.err; then
11385    ac_cpp_err=$ac_cxx_preproc_warn_flag
11386    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11387  else
11388    ac_cpp_err=
11389  fi
11390else
11391  ac_cpp_err=yes
11392fi
11393if test -z "$ac_cpp_err"; then
11394  :
11395else
11396  echo "$as_me: failed program was:" >&5
11397sed 's/^/| /' conftest.$ac_ext >&5
11398
11399  # Broken: fails on valid input.
11400continue
11401fi
11402rm -f conftest.err conftest.$ac_ext
11403
11404  # OK, works on sane cases.  Now check whether non-existent headers
11405  # can be detected and how.
11406  cat >conftest.$ac_ext <<_ACEOF
11407/* confdefs.h.  */
11408_ACEOF
11409cat confdefs.h >>conftest.$ac_ext
11410cat >>conftest.$ac_ext <<_ACEOF
11411/* end confdefs.h.  */
11412#include <ac_nonexistent.h>
11413_ACEOF
11414if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11415  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11416  ac_status=$?
11417  grep -v '^ *+' conftest.er1 >conftest.err
11418  rm -f conftest.er1
11419  cat conftest.err >&5
11420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421  (exit $ac_status); } >/dev/null; then
11422  if test -s conftest.err; then
11423    ac_cpp_err=$ac_cxx_preproc_warn_flag
11424    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11425  else
11426    ac_cpp_err=
11427  fi
11428else
11429  ac_cpp_err=yes
11430fi
11431if test -z "$ac_cpp_err"; then
11432  # Broken: success on invalid input.
11433continue
11434else
11435  echo "$as_me: failed program was:" >&5
11436sed 's/^/| /' conftest.$ac_ext >&5
11437
11438  # Passes both tests.
11439ac_preproc_ok=:
11440break
11441fi
11442rm -f conftest.err conftest.$ac_ext
11443
11444done
11445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11446rm -f conftest.err conftest.$ac_ext
11447if $ac_preproc_ok; then
11448  break
11449fi
11450
11451    done
11452    ac_cv_prog_CXXCPP=$CXXCPP
11453
11454fi
11455  CXXCPP=$ac_cv_prog_CXXCPP
11456else
11457  ac_cv_prog_CXXCPP=$CXXCPP
11458fi
11459echo "$as_me:$LINENO: result: $CXXCPP" >&5
11460echo "${ECHO_T}$CXXCPP" >&6
11461ac_preproc_ok=false
11462for ac_cxx_preproc_warn_flag in '' yes
11463do
11464  # Use a header file that comes with gcc, so configuring glibc
11465  # with a fresh cross-compiler works.
11466  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11467  # <limits.h> exists even on freestanding compilers.
11468  # On the NeXT, cc -E runs the code through the compiler's parser,
11469  # not just through cpp. "Syntax error" is here to catch this case.
11470  cat >conftest.$ac_ext <<_ACEOF
11471/* confdefs.h.  */
11472_ACEOF
11473cat confdefs.h >>conftest.$ac_ext
11474cat >>conftest.$ac_ext <<_ACEOF
11475/* end confdefs.h.  */
11476#ifdef __STDC__
11477# include <limits.h>
11478#else
11479# include <assert.h>
11480#endif
11481		     Syntax error
11482_ACEOF
11483if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11484  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11485  ac_status=$?
11486  grep -v '^ *+' conftest.er1 >conftest.err
11487  rm -f conftest.er1
11488  cat conftest.err >&5
11489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490  (exit $ac_status); } >/dev/null; then
11491  if test -s conftest.err; then
11492    ac_cpp_err=$ac_cxx_preproc_warn_flag
11493    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11494  else
11495    ac_cpp_err=
11496  fi
11497else
11498  ac_cpp_err=yes
11499fi
11500if test -z "$ac_cpp_err"; then
11501  :
11502else
11503  echo "$as_me: failed program was:" >&5
11504sed 's/^/| /' conftest.$ac_ext >&5
11505
11506  # Broken: fails on valid input.
11507continue
11508fi
11509rm -f conftest.err conftest.$ac_ext
11510
11511  # OK, works on sane cases.  Now check whether non-existent headers
11512  # can be detected and how.
11513  cat >conftest.$ac_ext <<_ACEOF
11514/* confdefs.h.  */
11515_ACEOF
11516cat confdefs.h >>conftest.$ac_ext
11517cat >>conftest.$ac_ext <<_ACEOF
11518/* end confdefs.h.  */
11519#include <ac_nonexistent.h>
11520_ACEOF
11521if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11522  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11523  ac_status=$?
11524  grep -v '^ *+' conftest.er1 >conftest.err
11525  rm -f conftest.er1
11526  cat conftest.err >&5
11527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528  (exit $ac_status); } >/dev/null; then
11529  if test -s conftest.err; then
11530    ac_cpp_err=$ac_cxx_preproc_warn_flag
11531    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11532  else
11533    ac_cpp_err=
11534  fi
11535else
11536  ac_cpp_err=yes
11537fi
11538if test -z "$ac_cpp_err"; then
11539  # Broken: success on invalid input.
11540continue
11541else
11542  echo "$as_me: failed program was:" >&5
11543sed 's/^/| /' conftest.$ac_ext >&5
11544
11545  # Passes both tests.
11546ac_preproc_ok=:
11547break
11548fi
11549rm -f conftest.err conftest.$ac_ext
11550
11551done
11552# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11553rm -f conftest.err conftest.$ac_ext
11554if $ac_preproc_ok; then
11555  :
11556else
11557  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11558See \`config.log' for more details." >&5
11559echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11560See \`config.log' for more details." >&2;}
11561   { (exit 1); exit 1; }; }
11562fi
11563
11564ac_ext=cc
11565ac_cpp='$CXXCPP $CPPFLAGS'
11566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11569
11570
11571ac_ext=f
11572ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11573ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11574ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11575if test -n "$ac_tool_prefix"; then
11576  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11577  do
11578    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11579set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11580echo "$as_me:$LINENO: checking for $ac_word" >&5
11581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11582if test "${ac_cv_prog_F77+set}" = set; then
11583  echo $ECHO_N "(cached) $ECHO_C" >&6
11584else
11585  if test -n "$F77"; then
11586  ac_cv_prog_F77="$F77" # Let the user override the test.
11587else
11588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11589for as_dir in $PATH
11590do
11591  IFS=$as_save_IFS
11592  test -z "$as_dir" && as_dir=.
11593  for ac_exec_ext in '' $ac_executable_extensions; do
11594  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11595    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
11596    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11597    break 2
11598  fi
11599done
11600done
11601
11602fi
11603fi
11604F77=$ac_cv_prog_F77
11605if test -n "$F77"; then
11606  echo "$as_me:$LINENO: result: $F77" >&5
11607echo "${ECHO_T}$F77" >&6
11608else
11609  echo "$as_me:$LINENO: result: no" >&5
11610echo "${ECHO_T}no" >&6
11611fi
11612
11613    test -n "$F77" && break
11614  done
11615fi
11616if test -z "$F77"; then
11617  ac_ct_F77=$F77
11618  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11619do
11620  # Extract the first word of "$ac_prog", so it can be a program name with args.
11621set dummy $ac_prog; ac_word=$2
11622echo "$as_me:$LINENO: checking for $ac_word" >&5
11623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11624if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
11625  echo $ECHO_N "(cached) $ECHO_C" >&6
11626else
11627  if test -n "$ac_ct_F77"; then
11628  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11629else
11630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11631for as_dir in $PATH
11632do
11633  IFS=$as_save_IFS
11634  test -z "$as_dir" && as_dir=.
11635  for ac_exec_ext in '' $ac_executable_extensions; do
11636  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11637    ac_cv_prog_ac_ct_F77="$ac_prog"
11638    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11639    break 2
11640  fi
11641done
11642done
11643
11644fi
11645fi
11646ac_ct_F77=$ac_cv_prog_ac_ct_F77
11647if test -n "$ac_ct_F77"; then
11648  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11649echo "${ECHO_T}$ac_ct_F77" >&6
11650else
11651  echo "$as_me:$LINENO: result: no" >&5
11652echo "${ECHO_T}no" >&6
11653fi
11654
11655  test -n "$ac_ct_F77" && break
11656done
11657
11658  F77=$ac_ct_F77
11659fi
11660
11661
11662# Provide some information about the compiler.
11663echo "$as_me:11663:" \
11664     "checking for Fortran 77 compiler version" >&5
11665ac_compiler=`set X $ac_compile; echo $2`
11666{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11667  (eval $ac_compiler --version </dev/null >&5) 2>&5
11668  ac_status=$?
11669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670  (exit $ac_status); }
11671{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11672  (eval $ac_compiler -v </dev/null >&5) 2>&5
11673  ac_status=$?
11674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675  (exit $ac_status); }
11676{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11677  (eval $ac_compiler -V </dev/null >&5) 2>&5
11678  ac_status=$?
11679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680  (exit $ac_status); }
11681rm -f a.out
11682
11683# If we don't use `.F' as extension, the preprocessor is not run on the
11684# input file.  (Note that this only needs to work for GNU compilers.)
11685ac_save_ext=$ac_ext
11686ac_ext=F
11687echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11688echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11689if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11690  echo $ECHO_N "(cached) $ECHO_C" >&6
11691else
11692  cat >conftest.$ac_ext <<_ACEOF
11693      program main
11694#ifndef __GNUC__
11695       choke me
11696#endif
11697
11698      end
11699_ACEOF
11700rm -f conftest.$ac_objext
11701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11702  (eval $ac_compile) 2>conftest.er1
11703  ac_status=$?
11704  grep -v '^ *+' conftest.er1 >conftest.err
11705  rm -f conftest.er1
11706  cat conftest.err >&5
11707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708  (exit $ac_status); } &&
11709	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
11710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711  (eval $ac_try) 2>&5
11712  ac_status=$?
11713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714  (exit $ac_status); }; } &&
11715	 { ac_try='test -s conftest.$ac_objext'
11716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717  (eval $ac_try) 2>&5
11718  ac_status=$?
11719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720  (exit $ac_status); }; }; then
11721  ac_compiler_gnu=yes
11722else
11723  echo "$as_me: failed program was:" >&5
11724sed 's/^/| /' conftest.$ac_ext >&5
11725
11726ac_compiler_gnu=no
11727fi
11728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11729ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11730
11731fi
11732echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11733echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11734ac_ext=$ac_save_ext
11735ac_test_FFLAGS=${FFLAGS+set}
11736ac_save_FFLAGS=$FFLAGS
11737FFLAGS=
11738echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11739echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11740if test "${ac_cv_prog_f77_g+set}" = set; then
11741  echo $ECHO_N "(cached) $ECHO_C" >&6
11742else
11743  FFLAGS=-g
11744cat >conftest.$ac_ext <<_ACEOF
11745      program main
11746
11747      end
11748_ACEOF
11749rm -f conftest.$ac_objext
11750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11751  (eval $ac_compile) 2>conftest.er1
11752  ac_status=$?
11753  grep -v '^ *+' conftest.er1 >conftest.err
11754  rm -f conftest.er1
11755  cat conftest.err >&5
11756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757  (exit $ac_status); } &&
11758	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
11759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760  (eval $ac_try) 2>&5
11761  ac_status=$?
11762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763  (exit $ac_status); }; } &&
11764	 { ac_try='test -s conftest.$ac_objext'
11765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11766  (eval $ac_try) 2>&5
11767  ac_status=$?
11768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769  (exit $ac_status); }; }; then
11770  ac_cv_prog_f77_g=yes
11771else
11772  echo "$as_me: failed program was:" >&5
11773sed 's/^/| /' conftest.$ac_ext >&5
11774
11775ac_cv_prog_f77_g=no
11776fi
11777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11778
11779fi
11780echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11781echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11782if test "$ac_test_FFLAGS" = set; then
11783  FFLAGS=$ac_save_FFLAGS
11784elif test $ac_cv_prog_f77_g = yes; then
11785  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11786    FFLAGS="-g -O2"
11787  else
11788    FFLAGS="-g"
11789  fi
11790else
11791  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11792    FFLAGS="-O2"
11793  else
11794    FFLAGS=
11795  fi
11796fi
11797
11798G77=`test $ac_compiler_gnu = yes && echo yes`
11799ac_ext=c
11800ac_cpp='$CPP $CPPFLAGS'
11801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11803ac_compiler_gnu=$ac_cv_c_compiler_gnu
11804
11805
11806
11807# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11808
11809# find the maximum length of command line arguments
11810echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11811echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11812if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11813  echo $ECHO_N "(cached) $ECHO_C" >&6
11814else
11815    i=0
11816  teststring="ABCD"
11817
11818  case $build_os in
11819  msdosdjgpp*)
11820    # On DJGPP, this test can blow up pretty badly due to problems in libc
11821    # (any single argument exceeding 2000 bytes causes a buffer overrun
11822    # during glob expansion).  Even if it were fixed, the result of this
11823    # check would be larger than it should be.
11824    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11825    ;;
11826
11827  gnu*)
11828    # Under GNU Hurd, this test is not required because there is
11829    # no limit to the length of command line arguments.
11830    # Libtool will interpret -1 as no limit whatsoever
11831    lt_cv_sys_max_cmd_len=-1;
11832    ;;
11833
11834  cygwin* | mingw*)
11835    # On Win9x/ME, this test blows up -- it succeeds, but takes
11836    # about 5 minutes as the teststring grows exponentially.
11837    # Worse, since 9x/ME are not pre-emptively multitasking,
11838    # you end up with a "frozen" computer, even though with patience
11839    # the test eventually succeeds (with a max line length of 256k).
11840    # Instead, let's just punt: use the minimum linelength reported by
11841    # all of the supported platforms: 8192 (on NT/2K/XP).
11842    lt_cv_sys_max_cmd_len=8192;
11843    ;;
11844
11845  amigaos*)
11846    # On AmigaOS with pdksh, this test takes hours, literally.
11847    # So we just punt and use a minimum line length of 8192.
11848    lt_cv_sys_max_cmd_len=8192;
11849    ;;
11850
11851 *)
11852    # If test is not a shell built-in, we'll probably end up computing a
11853    # maximum length that is only half of the actual maximum length, but
11854    # we can't tell.
11855    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11856	       = "XX$teststring") >/dev/null 2>&1 &&
11857	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
11858	    lt_cv_sys_max_cmd_len=$new_result &&
11859	    test $i != 17 # 1/2 MB should be enough
11860    do
11861      i=`expr $i + 1`
11862      teststring=$teststring$teststring
11863    done
11864    teststring=
11865    # Add a significant safety factor because C++ compilers can tack on massive
11866    # amounts of additional arguments before passing them to the linker.
11867    # It appears as though 1/2 is a usable value.
11868    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11869    ;;
11870  esac
11871
11872fi
11873
11874if test -n $lt_cv_sys_max_cmd_len ; then
11875  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11876echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11877else
11878  echo "$as_me:$LINENO: result: none" >&5
11879echo "${ECHO_T}none" >&6
11880fi
11881
11882
11883
11884
11885# Check for command to grab the raw symbol name followed by C symbol from nm.
11886echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11887echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11888if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11889  echo $ECHO_N "(cached) $ECHO_C" >&6
11890else
11891
11892# These are sane defaults that work on at least a few old systems.
11893# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11894
11895# Character class describing NM global symbol codes.
11896symcode='[BCDEGRST]'
11897
11898# Regexp to match symbols that can be accessed directly from C.
11899sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11900
11901# Transform the above into a raw symbol and a C symbol.
11902symxfrm='\1 \2\3 \3'
11903
11904# Transform an extracted symbol line into a proper C declaration
11905lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11906
11907# Transform an extracted symbol line into symbol name and symbol address
11908lt_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'"
11909
11910# Define system-specific variables.
11911case $host_os in
11912aix*)
11913  symcode='[BCDT]'
11914  ;;
11915cygwin* | mingw* | pw32*)
11916  symcode='[ABCDGISTW]'
11917  ;;
11918hpux*) # Its linker distinguishes data from code symbols
11919  if test "$host_cpu" = ia64; then
11920    symcode='[ABCDEGRST]'
11921  fi
11922  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11923  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'"
11924  ;;
11925irix* | nonstopux*)
11926  symcode='[BCDEGRST]'
11927  ;;
11928osf*)
11929  symcode='[BCDEGQRST]'
11930  ;;
11931solaris* | sysv5*)
11932  symcode='[BDRT]'
11933  ;;
11934sysv4)
11935  symcode='[DFNSTU]'
11936  ;;
11937esac
11938
11939# Handle CRLF in mingw tool chain
11940opt_cr=
11941case $build_os in
11942mingw*)
11943  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11944  ;;
11945esac
11946
11947# If we're using GNU nm, then use its standard symbol codes.
11948case `$NM -V 2>&1` in
11949*GNU* | *'with BFD'*)
11950  symcode='[ABCDGIRSTW]' ;;
11951esac
11952
11953# Try without a prefix undercore, then with it.
11954for ac_symprfx in "" "_"; do
11955
11956  # Write the raw and C identifiers.
11957  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11958
11959  # Check to see that the pipe works correctly.
11960  pipe_works=no
11961
11962  rm -f conftest*
11963  cat > conftest.$ac_ext <<EOF
11964#ifdef __cplusplus
11965extern "C" {
11966#endif
11967char nm_test_var;
11968void nm_test_func(){}
11969#ifdef __cplusplus
11970}
11971#endif
11972int main(){nm_test_var='a';nm_test_func();return(0);}
11973EOF
11974
11975  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11976  (eval $ac_compile) 2>&5
11977  ac_status=$?
11978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979  (exit $ac_status); }; then
11980    # Now try to grab the symbols.
11981    nlist=conftest.nm
11982    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11983  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11984  ac_status=$?
11985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986  (exit $ac_status); } && test -s "$nlist"; then
11987      # Try sorting and uniquifying the output.
11988      if sort "$nlist" | uniq > "$nlist"T; then
11989	mv -f "$nlist"T "$nlist"
11990      else
11991	rm -f "$nlist"T
11992      fi
11993
11994      # Make sure that we snagged all the symbols we need.
11995      if grep ' nm_test_var$' "$nlist" >/dev/null; then
11996	if grep ' nm_test_func$' "$nlist" >/dev/null; then
11997	  cat <<EOF > conftest.$ac_ext
11998#ifdef __cplusplus
11999extern "C" {
12000#endif
12001
12002EOF
12003	  # Now generate the symbol file.
12004	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12005
12006	  cat <<EOF >> conftest.$ac_ext
12007#if defined (__STDC__) && __STDC__
12008# define lt_ptr_t void *
12009#else
12010# define lt_ptr_t char *
12011# define const
12012#endif
12013
12014/* The mapping between symbol names and symbols. */
12015const struct {
12016  const char *name;
12017  lt_ptr_t address;
12018}
12019lt_preloaded_symbols[] =
12020{
12021EOF
12022	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12023	  cat <<\EOF >> conftest.$ac_ext
12024  {0, (lt_ptr_t) 0}
12025};
12026
12027#ifdef __cplusplus
12028}
12029#endif
12030EOF
12031	  # Now try linking the two files.
12032	  mv conftest.$ac_objext conftstm.$ac_objext
12033	  lt_save_LIBS="$LIBS"
12034	  lt_save_CFLAGS="$CFLAGS"
12035	  LIBS="conftstm.$ac_objext"
12036	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12037	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12038  (eval $ac_link) 2>&5
12039  ac_status=$?
12040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041  (exit $ac_status); } && test -s conftest${ac_exeext}; then
12042	    pipe_works=yes
12043	  fi
12044	  LIBS="$lt_save_LIBS"
12045	  CFLAGS="$lt_save_CFLAGS"
12046	else
12047	  echo "cannot find nm_test_func in $nlist" >&5
12048	fi
12049      else
12050	echo "cannot find nm_test_var in $nlist" >&5
12051      fi
12052    else
12053      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12054    fi
12055  else
12056    echo "$progname: failed program was:" >&5
12057    cat conftest.$ac_ext >&5
12058  fi
12059  rm -f conftest* conftst*
12060
12061  # Do not use the global_symbol_pipe unless it works.
12062  if test "$pipe_works" = yes; then
12063    break
12064  else
12065    lt_cv_sys_global_symbol_pipe=
12066  fi
12067done
12068
12069fi
12070
12071if test -z "$lt_cv_sys_global_symbol_pipe"; then
12072  lt_cv_sys_global_symbol_to_cdecl=
12073fi
12074if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12075  echo "$as_me:$LINENO: result: failed" >&5
12076echo "${ECHO_T}failed" >&6
12077else
12078  echo "$as_me:$LINENO: result: ok" >&5
12079echo "${ECHO_T}ok" >&6
12080fi
12081
12082echo "$as_me:$LINENO: checking for objdir" >&5
12083echo $ECHO_N "checking for objdir... $ECHO_C" >&6
12084if test "${lt_cv_objdir+set}" = set; then
12085  echo $ECHO_N "(cached) $ECHO_C" >&6
12086else
12087  rm -f .libs 2>/dev/null
12088mkdir .libs 2>/dev/null
12089if test -d .libs; then
12090  lt_cv_objdir=.libs
12091else
12092  # MS-DOS does not allow filenames that begin with a dot.
12093  lt_cv_objdir=_libs
12094fi
12095rmdir .libs 2>/dev/null
12096fi
12097echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12098echo "${ECHO_T}$lt_cv_objdir" >&6
12099objdir=$lt_cv_objdir
12100
12101
12102
12103
12104
12105case $host_os in
12106aix3*)
12107  # AIX sometimes has problems with the GCC collect2 program.  For some
12108  # reason, if we set the COLLECT_NAMES environment variable, the problems
12109  # vanish in a puff of smoke.
12110  if test "X${COLLECT_NAMES+set}" != Xset; then
12111    COLLECT_NAMES=
12112    export COLLECT_NAMES
12113  fi
12114  ;;
12115esac
12116
12117# Sed substitution that helps us do robust quoting.  It backslashifies
12118# metacharacters that are still active within double-quoted strings.
12119Xsed='sed -e s/^X//'
12120sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12121
12122# Same as above, but do not quote variable references.
12123double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12124
12125# Sed substitution to delay expansion of an escaped shell variable in a
12126# double_quote_subst'ed string.
12127delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12128
12129# Sed substitution to avoid accidental globbing in evaled expressions
12130no_glob_subst='s/\*/\\\*/g'
12131
12132# Constants:
12133rm="rm -f"
12134
12135# Global variables:
12136default_ofile=libtool
12137can_build_shared=yes
12138
12139# All known linkers require a `.a' archive for static linking (except M$VC,
12140# which needs '.lib').
12141libext=a
12142ltmain="$ac_aux_dir/ltmain.sh"
12143ofile="$default_ofile"
12144with_gnu_ld="$lt_cv_prog_gnu_ld"
12145
12146if test -n "$ac_tool_prefix"; then
12147  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12148set dummy ${ac_tool_prefix}ar; ac_word=$2
12149echo "$as_me:$LINENO: checking for $ac_word" >&5
12150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12151if test "${ac_cv_prog_AR+set}" = set; then
12152  echo $ECHO_N "(cached) $ECHO_C" >&6
12153else
12154  if test -n "$AR"; then
12155  ac_cv_prog_AR="$AR" # Let the user override the test.
12156else
12157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12158for as_dir in $PATH
12159do
12160  IFS=$as_save_IFS
12161  test -z "$as_dir" && as_dir=.
12162  for ac_exec_ext in '' $ac_executable_extensions; do
12163  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12164    ac_cv_prog_AR="${ac_tool_prefix}ar"
12165    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12166    break 2
12167  fi
12168done
12169done
12170
12171fi
12172fi
12173AR=$ac_cv_prog_AR
12174if test -n "$AR"; then
12175  echo "$as_me:$LINENO: result: $AR" >&5
12176echo "${ECHO_T}$AR" >&6
12177else
12178  echo "$as_me:$LINENO: result: no" >&5
12179echo "${ECHO_T}no" >&6
12180fi
12181
12182fi
12183if test -z "$ac_cv_prog_AR"; then
12184  ac_ct_AR=$AR
12185  # Extract the first word of "ar", so it can be a program name with args.
12186set dummy ar; ac_word=$2
12187echo "$as_me:$LINENO: checking for $ac_word" >&5
12188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12189if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12190  echo $ECHO_N "(cached) $ECHO_C" >&6
12191else
12192  if test -n "$ac_ct_AR"; then
12193  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12194else
12195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196for as_dir in $PATH
12197do
12198  IFS=$as_save_IFS
12199  test -z "$as_dir" && as_dir=.
12200  for ac_exec_ext in '' $ac_executable_extensions; do
12201  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12202    ac_cv_prog_ac_ct_AR="ar"
12203    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12204    break 2
12205  fi
12206done
12207done
12208
12209  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
12210fi
12211fi
12212ac_ct_AR=$ac_cv_prog_ac_ct_AR
12213if test -n "$ac_ct_AR"; then
12214  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12215echo "${ECHO_T}$ac_ct_AR" >&6
12216else
12217  echo "$as_me:$LINENO: result: no" >&5
12218echo "${ECHO_T}no" >&6
12219fi
12220
12221  AR=$ac_ct_AR
12222else
12223  AR="$ac_cv_prog_AR"
12224fi
12225
12226if test -n "$ac_tool_prefix"; then
12227  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12228set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12229echo "$as_me:$LINENO: checking for $ac_word" >&5
12230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12231if test "${ac_cv_prog_RANLIB+set}" = set; then
12232  echo $ECHO_N "(cached) $ECHO_C" >&6
12233else
12234  if test -n "$RANLIB"; then
12235  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12236else
12237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12238for as_dir in $PATH
12239do
12240  IFS=$as_save_IFS
12241  test -z "$as_dir" && as_dir=.
12242  for ac_exec_ext in '' $ac_executable_extensions; do
12243  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12244    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12245    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12246    break 2
12247  fi
12248done
12249done
12250
12251fi
12252fi
12253RANLIB=$ac_cv_prog_RANLIB
12254if test -n "$RANLIB"; then
12255  echo "$as_me:$LINENO: result: $RANLIB" >&5
12256echo "${ECHO_T}$RANLIB" >&6
12257else
12258  echo "$as_me:$LINENO: result: no" >&5
12259echo "${ECHO_T}no" >&6
12260fi
12261
12262fi
12263if test -z "$ac_cv_prog_RANLIB"; then
12264  ac_ct_RANLIB=$RANLIB
12265  # Extract the first word of "ranlib", so it can be a program name with args.
12266set dummy ranlib; ac_word=$2
12267echo "$as_me:$LINENO: checking for $ac_word" >&5
12268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12269if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12270  echo $ECHO_N "(cached) $ECHO_C" >&6
12271else
12272  if test -n "$ac_ct_RANLIB"; then
12273  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12274else
12275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12276for as_dir in $PATH
12277do
12278  IFS=$as_save_IFS
12279  test -z "$as_dir" && as_dir=.
12280  for ac_exec_ext in '' $ac_executable_extensions; do
12281  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12282    ac_cv_prog_ac_ct_RANLIB="ranlib"
12283    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12284    break 2
12285  fi
12286done
12287done
12288
12289  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12290fi
12291fi
12292ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12293if test -n "$ac_ct_RANLIB"; then
12294  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12295echo "${ECHO_T}$ac_ct_RANLIB" >&6
12296else
12297  echo "$as_me:$LINENO: result: no" >&5
12298echo "${ECHO_T}no" >&6
12299fi
12300
12301  RANLIB=$ac_ct_RANLIB
12302else
12303  RANLIB="$ac_cv_prog_RANLIB"
12304fi
12305
12306if test -n "$ac_tool_prefix"; then
12307  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12308set dummy ${ac_tool_prefix}strip; ac_word=$2
12309echo "$as_me:$LINENO: checking for $ac_word" >&5
12310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12311if test "${ac_cv_prog_STRIP+set}" = set; then
12312  echo $ECHO_N "(cached) $ECHO_C" >&6
12313else
12314  if test -n "$STRIP"; then
12315  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12316else
12317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12318for as_dir in $PATH
12319do
12320  IFS=$as_save_IFS
12321  test -z "$as_dir" && as_dir=.
12322  for ac_exec_ext in '' $ac_executable_extensions; do
12323  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12324    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12325    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12326    break 2
12327  fi
12328done
12329done
12330
12331fi
12332fi
12333STRIP=$ac_cv_prog_STRIP
12334if test -n "$STRIP"; then
12335  echo "$as_me:$LINENO: result: $STRIP" >&5
12336echo "${ECHO_T}$STRIP" >&6
12337else
12338  echo "$as_me:$LINENO: result: no" >&5
12339echo "${ECHO_T}no" >&6
12340fi
12341
12342fi
12343if test -z "$ac_cv_prog_STRIP"; then
12344  ac_ct_STRIP=$STRIP
12345  # Extract the first word of "strip", so it can be a program name with args.
12346set dummy strip; ac_word=$2
12347echo "$as_me:$LINENO: checking for $ac_word" >&5
12348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12349if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12350  echo $ECHO_N "(cached) $ECHO_C" >&6
12351else
12352  if test -n "$ac_ct_STRIP"; then
12353  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12354else
12355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356for as_dir in $PATH
12357do
12358  IFS=$as_save_IFS
12359  test -z "$as_dir" && as_dir=.
12360  for ac_exec_ext in '' $ac_executable_extensions; do
12361  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12362    ac_cv_prog_ac_ct_STRIP="strip"
12363    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12364    break 2
12365  fi
12366done
12367done
12368
12369  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
12370fi
12371fi
12372ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12373if test -n "$ac_ct_STRIP"; then
12374  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12375echo "${ECHO_T}$ac_ct_STRIP" >&6
12376else
12377  echo "$as_me:$LINENO: result: no" >&5
12378echo "${ECHO_T}no" >&6
12379fi
12380
12381  STRIP=$ac_ct_STRIP
12382else
12383  STRIP="$ac_cv_prog_STRIP"
12384fi
12385
12386
12387old_CC="$CC"
12388old_CFLAGS="$CFLAGS"
12389
12390# Set sane defaults for various variables
12391test -z "$AR" && AR=ar
12392test -z "$AR_FLAGS" && AR_FLAGS=cru
12393test -z "$AS" && AS=as
12394test -z "$CC" && CC=cc
12395test -z "$LTCC" && LTCC=$CC
12396test -z "$DLLTOOL" && DLLTOOL=dlltool
12397test -z "$LD" && LD=ld
12398test -z "$LN_S" && LN_S="ln -s"
12399test -z "$MAGIC_CMD" && MAGIC_CMD=file
12400test -z "$NM" && NM=nm
12401test -z "$SED" && SED=sed
12402test -z "$OBJDUMP" && OBJDUMP=objdump
12403test -z "$RANLIB" && RANLIB=:
12404test -z "$STRIP" && STRIP=:
12405test -z "$ac_objext" && ac_objext=o
12406
12407# Determine commands to create old-style static archives.
12408old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
12409old_postinstall_cmds='chmod 644 $oldlib'
12410old_postuninstall_cmds=
12411
12412if test -n "$RANLIB"; then
12413  case $host_os in
12414  openbsd*)
12415    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
12416    ;;
12417  *)
12418    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
12419    ;;
12420  esac
12421  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12422fi
12423
12424# Only perform the check for file, if the check method requires it
12425case $deplibs_check_method in
12426file_magic*)
12427  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12428    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12429echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
12430if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12431  echo $ECHO_N "(cached) $ECHO_C" >&6
12432else
12433  case $MAGIC_CMD in
12434[\\/*] |  ?:[\\/]*)
12435  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12436  ;;
12437*)
12438  lt_save_MAGIC_CMD="$MAGIC_CMD"
12439  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12440  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12441  for ac_dir in $ac_dummy; do
12442    IFS="$lt_save_ifs"
12443    test -z "$ac_dir" && ac_dir=.
12444    if test -f $ac_dir/${ac_tool_prefix}file; then
12445      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12446      if test -n "$file_magic_test_file"; then
12447	case $deplibs_check_method in
12448	"file_magic "*)
12449	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12450	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12451	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12452	    $EGREP "$file_magic_regex" > /dev/null; then
12453	    :
12454	  else
12455	    cat <<EOF 1>&2
12456
12457*** Warning: the command libtool uses to detect shared libraries,
12458*** $file_magic_cmd, produces output that libtool cannot recognize.
12459*** The result is that libtool may fail to recognize shared libraries
12460*** as such.  This will affect the creation of libtool libraries that
12461*** depend on shared libraries, but programs linked with such libtool
12462*** libraries will work regardless of this problem.  Nevertheless, you
12463*** may want to report the problem to your system manager and/or to
12464*** bug-libtool@gnu.org
12465
12466EOF
12467	  fi ;;
12468	esac
12469      fi
12470      break
12471    fi
12472  done
12473  IFS="$lt_save_ifs"
12474  MAGIC_CMD="$lt_save_MAGIC_CMD"
12475  ;;
12476esac
12477fi
12478
12479MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12480if test -n "$MAGIC_CMD"; then
12481  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12482echo "${ECHO_T}$MAGIC_CMD" >&6
12483else
12484  echo "$as_me:$LINENO: result: no" >&5
12485echo "${ECHO_T}no" >&6
12486fi
12487
12488if test -z "$lt_cv_path_MAGIC_CMD"; then
12489  if test -n "$ac_tool_prefix"; then
12490    echo "$as_me:$LINENO: checking for file" >&5
12491echo $ECHO_N "checking for file... $ECHO_C" >&6
12492if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12493  echo $ECHO_N "(cached) $ECHO_C" >&6
12494else
12495  case $MAGIC_CMD in
12496[\\/*] |  ?:[\\/]*)
12497  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12498  ;;
12499*)
12500  lt_save_MAGIC_CMD="$MAGIC_CMD"
12501  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12502  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12503  for ac_dir in $ac_dummy; do
12504    IFS="$lt_save_ifs"
12505    test -z "$ac_dir" && ac_dir=.
12506    if test -f $ac_dir/file; then
12507      lt_cv_path_MAGIC_CMD="$ac_dir/file"
12508      if test -n "$file_magic_test_file"; then
12509	case $deplibs_check_method in
12510	"file_magic "*)
12511	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12512	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12513	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12514	    $EGREP "$file_magic_regex" > /dev/null; then
12515	    :
12516	  else
12517	    cat <<EOF 1>&2
12518
12519*** Warning: the command libtool uses to detect shared libraries,
12520*** $file_magic_cmd, produces output that libtool cannot recognize.
12521*** The result is that libtool may fail to recognize shared libraries
12522*** as such.  This will affect the creation of libtool libraries that
12523*** depend on shared libraries, but programs linked with such libtool
12524*** libraries will work regardless of this problem.  Nevertheless, you
12525*** may want to report the problem to your system manager and/or to
12526*** bug-libtool@gnu.org
12527
12528EOF
12529	  fi ;;
12530	esac
12531      fi
12532      break
12533    fi
12534  done
12535  IFS="$lt_save_ifs"
12536  MAGIC_CMD="$lt_save_MAGIC_CMD"
12537  ;;
12538esac
12539fi
12540
12541MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12542if test -n "$MAGIC_CMD"; then
12543  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12544echo "${ECHO_T}$MAGIC_CMD" >&6
12545else
12546  echo "$as_me:$LINENO: result: no" >&5
12547echo "${ECHO_T}no" >&6
12548fi
12549
12550  else
12551    MAGIC_CMD=:
12552  fi
12553fi
12554
12555  fi
12556  ;;
12557esac
12558
12559enable_dlopen=yes
12560enable_win32_dll=no
12561
12562# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
12563if test "${enable_libtool_lock+set}" = set; then
12564  enableval="$enable_libtool_lock"
12565
12566fi;
12567test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12568
12569
12570# Check whether --with-pic or --without-pic was given.
12571if test "${with_pic+set}" = set; then
12572  withval="$with_pic"
12573  pic_mode="$withval"
12574else
12575  pic_mode=default
12576fi;
12577test -z "$pic_mode" && pic_mode=default
12578
12579# Use C for the default configuration in the libtool script
12580tagname=
12581lt_save_CC="$CC"
12582ac_ext=c
12583ac_cpp='$CPP $CPPFLAGS'
12584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12586ac_compiler_gnu=$ac_cv_c_compiler_gnu
12587
12588
12589# Source file extension for C test sources.
12590ac_ext=c
12591
12592# Object file extension for compiled C test sources.
12593objext=o
12594objext=$objext
12595
12596# Code to be used in simple compile tests
12597lt_simple_compile_test_code="int some_variable = 0;\n"
12598
12599# Code to be used in simple link tests
12600lt_simple_link_test_code='int main(){return(0);}\n'
12601
12602
12603# If no C compiler was specified, use CC.
12604LTCC=${LTCC-"$CC"}
12605
12606# Allow CC to be a program name with arguments.
12607compiler=$CC
12608
12609
12610#
12611# Check for any special shared library compilation flags.
12612#
12613lt_prog_cc_shlib=
12614if test "$GCC" = no; then
12615  case $host_os in
12616  sco3.2v5*)
12617    lt_prog_cc_shlib='-belf'
12618    ;;
12619  esac
12620fi
12621if test -n "$lt_prog_cc_shlib"; then
12622  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12623echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12624  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
12625  else
12626    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12627echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12628    lt_cv_prog_cc_can_build_shared=no
12629  fi
12630fi
12631
12632
12633#
12634# Check to make sure the static flag actually works.
12635#
12636echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12637echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12638if test "${lt_prog_compiler_static_works+set}" = set; then
12639  echo $ECHO_N "(cached) $ECHO_C" >&6
12640else
12641  lt_prog_compiler_static_works=no
12642   save_LDFLAGS="$LDFLAGS"
12643   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12644   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12645   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12646     # The compiler can only warn and ignore the option if not recognized
12647     # So say no if there are warnings
12648     if test -s conftest.err; then
12649       # Append any errors to the config.log.
12650       cat conftest.err 1>&5
12651     else
12652       lt_prog_compiler_static_works=yes
12653     fi
12654   fi
12655   $rm conftest*
12656   LDFLAGS="$save_LDFLAGS"
12657
12658fi
12659echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12660echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12661
12662if test x"$lt_prog_compiler_static_works" = xyes; then
12663    :
12664else
12665    lt_prog_compiler_static=
12666fi
12667
12668
12669
12670
12671lt_prog_compiler_no_builtin_flag=
12672
12673if test "$GCC" = yes; then
12674  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12675
12676
12677echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12678echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12679if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12680  echo $ECHO_N "(cached) $ECHO_C" >&6
12681else
12682  lt_cv_prog_compiler_rtti_exceptions=no
12683  ac_outfile=conftest.$ac_objext
12684   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12685   lt_compiler_flag="-fno-rtti -fno-exceptions"
12686   # Insert the option either (1) after the last *FLAGS variable, or
12687   # (2) before a word containing "conftest.", or (3) at the end.
12688   # Note that $ac_compile itself does not contain backslashes and begins
12689   # with a dollar sign (not a hyphen), so the echo should work correctly.
12690   # The option is referenced via a variable to avoid confusing sed.
12691   lt_compile=`echo "$ac_compile" | $SED \
12692   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12693   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12694   -e 's:$: $lt_compiler_flag:'`
12695   (eval echo "\"\$as_me:12695: $lt_compile\"" >&5)
12696   (eval "$lt_compile" 2>conftest.err)
12697   ac_status=$?
12698   cat conftest.err >&5
12699   echo "$as_me:12699: \$? = $ac_status" >&5
12700   if (exit $ac_status) && test -s "$ac_outfile"; then
12701     # The compiler can only warn and ignore the option if not recognized
12702     # So say no if there are warnings
12703     if test ! -s conftest.err; then
12704       lt_cv_prog_compiler_rtti_exceptions=yes
12705     fi
12706   fi
12707   $rm conftest*
12708
12709fi
12710echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12711echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12712
12713if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12714    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12715else
12716    :
12717fi
12718
12719fi
12720
12721lt_prog_compiler_wl=
12722lt_prog_compiler_pic=
12723lt_prog_compiler_static=
12724
12725echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12726echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12727
12728  if test "$GCC" = yes; then
12729    lt_prog_compiler_wl='-Wl,'
12730    lt_prog_compiler_static='-static'
12731
12732    case $host_os in
12733      aix*)
12734      # All AIX code is PIC.
12735      if test "$host_cpu" = ia64; then
12736	# AIX 5 now supports IA64 processor
12737	lt_prog_compiler_static='-Bstatic'
12738      fi
12739      ;;
12740
12741    amigaos*)
12742      # FIXME: we need at least 68020 code to build shared libraries, but
12743      # adding the `-m68020' flag to GCC prevents building anything better,
12744      # like `-m68040'.
12745      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12746      ;;
12747
12748    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12749      # PIC is the default for these OSes.
12750      ;;
12751
12752    mingw* | pw32* | os2*)
12753      # This hack is so that the source file can tell whether it is being
12754      # built for inclusion in a dll (and should export symbols for example).
12755      lt_prog_compiler_pic='-DDLL_EXPORT'
12756      ;;
12757
12758    darwin* | rhapsody*)
12759      # PIC is the default on this platform
12760      # Common symbols not allowed in MH_DYLIB files
12761      lt_prog_compiler_pic='-fno-common'
12762      ;;
12763
12764    msdosdjgpp*)
12765      # Just because we use GCC doesn't mean we suddenly get shared libraries
12766      # on systems that don't support them.
12767      lt_prog_compiler_can_build_shared=no
12768      enable_shared=no
12769      ;;
12770
12771    sysv4*MP*)
12772      if test -d /usr/nec; then
12773	lt_prog_compiler_pic=-Kconform_pic
12774      fi
12775      ;;
12776
12777    hpux*)
12778      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12779      # not for PA HP-UX.
12780      case "$host_cpu" in
12781      hppa*64*|ia64*)
12782	# +Z the default
12783	;;
12784      *)
12785	lt_prog_compiler_pic='-fPIC'
12786	;;
12787      esac
12788      ;;
12789
12790    *)
12791      lt_prog_compiler_pic='-fPIC'
12792      ;;
12793    esac
12794  else
12795    # PORTME Check for flag to pass linker flags through the system compiler.
12796    case $host_os in
12797    aix*)
12798      lt_prog_compiler_wl='-Wl,'
12799      if test "$host_cpu" = ia64; then
12800	# AIX 5 now supports IA64 processor
12801	lt_prog_compiler_static='-Bstatic'
12802      else
12803	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12804      fi
12805      ;;
12806
12807    mingw* | pw32* | os2*)
12808      # This hack is so that the source file can tell whether it is being
12809      # built for inclusion in a dll (and should export symbols for example).
12810      lt_prog_compiler_pic='-DDLL_EXPORT'
12811      ;;
12812
12813    hpux9* | hpux10* | hpux11*)
12814      lt_prog_compiler_wl='-Wl,'
12815      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12816      # not for PA HP-UX.
12817      case "$host_cpu" in
12818      hppa*64*|ia64*)
12819	# +Z the default
12820	;;
12821      *)
12822	lt_prog_compiler_pic='+Z'
12823	;;
12824      esac
12825      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12826      lt_prog_compiler_static='${wl}-a ${wl}archive'
12827      ;;
12828
12829    irix5* | irix6* | nonstopux*)
12830      lt_prog_compiler_wl='-Wl,'
12831      # PIC (with -KPIC) is the default.
12832      lt_prog_compiler_static='-non_shared'
12833      ;;
12834
12835    newsos6)
12836      lt_prog_compiler_pic='-KPIC'
12837      lt_prog_compiler_static='-Bstatic'
12838      ;;
12839
12840    linux*)
12841      case $CC in
12842      icc* | ecc*)
12843	lt_prog_compiler_wl='-Wl,'
12844	lt_prog_compiler_pic='-KPIC'
12845	lt_prog_compiler_static='-static'
12846        ;;
12847      ccc*)
12848        lt_prog_compiler_wl='-Wl,'
12849        # All Alpha code is PIC.
12850        lt_prog_compiler_static='-non_shared'
12851        ;;
12852      esac
12853      ;;
12854
12855    osf3* | osf4* | osf5*)
12856      lt_prog_compiler_wl='-Wl,'
12857      # All OSF/1 code is PIC.
12858      lt_prog_compiler_static='-non_shared'
12859      ;;
12860
12861    sco3.2v5*)
12862      lt_prog_compiler_pic='-Kpic'
12863      lt_prog_compiler_static='-dn'
12864      ;;
12865
12866    solaris*)
12867      lt_prog_compiler_wl='-Wl,'
12868      lt_prog_compiler_pic='-KPIC'
12869      lt_prog_compiler_static='-Bstatic'
12870      ;;
12871
12872    sunos4*)
12873      lt_prog_compiler_wl='-Qoption ld '
12874      lt_prog_compiler_pic='-PIC'
12875      lt_prog_compiler_static='-Bstatic'
12876      ;;
12877
12878    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12879      lt_prog_compiler_wl='-Wl,'
12880      lt_prog_compiler_pic='-KPIC'
12881      lt_prog_compiler_static='-Bstatic'
12882      ;;
12883
12884    sysv4*MP*)
12885      if test -d /usr/nec ;then
12886	lt_prog_compiler_pic='-Kconform_pic'
12887	lt_prog_compiler_static='-Bstatic'
12888      fi
12889      ;;
12890
12891    uts4*)
12892      lt_prog_compiler_pic='-pic'
12893      lt_prog_compiler_static='-Bstatic'
12894      ;;
12895
12896    *)
12897      lt_prog_compiler_can_build_shared=no
12898      ;;
12899    esac
12900  fi
12901
12902echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12903echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12904
12905#
12906# Check to make sure the PIC flag actually works.
12907#
12908if test -n "$lt_prog_compiler_pic"; then
12909
12910echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12911echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12912if test "${lt_prog_compiler_pic_works+set}" = set; then
12913  echo $ECHO_N "(cached) $ECHO_C" >&6
12914else
12915  lt_prog_compiler_pic_works=no
12916  ac_outfile=conftest.$ac_objext
12917   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12918   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12919   # Insert the option either (1) after the last *FLAGS variable, or
12920   # (2) before a word containing "conftest.", or (3) at the end.
12921   # Note that $ac_compile itself does not contain backslashes and begins
12922   # with a dollar sign (not a hyphen), so the echo should work correctly.
12923   # The option is referenced via a variable to avoid confusing sed.
12924   lt_compile=`echo "$ac_compile" | $SED \
12925   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12926   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12927   -e 's:$: $lt_compiler_flag:'`
12928   (eval echo "\"\$as_me:12928: $lt_compile\"" >&5)
12929   (eval "$lt_compile" 2>conftest.err)
12930   ac_status=$?
12931   cat conftest.err >&5
12932   echo "$as_me:12932: \$? = $ac_status" >&5
12933   if (exit $ac_status) && test -s "$ac_outfile"; then
12934     # The compiler can only warn and ignore the option if not recognized
12935     # So say no if there are warnings
12936     if test ! -s conftest.err; then
12937       lt_prog_compiler_pic_works=yes
12938     fi
12939   fi
12940   $rm conftest*
12941
12942fi
12943echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12944echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12945
12946if test x"$lt_prog_compiler_pic_works" = xyes; then
12947    case $lt_prog_compiler_pic in
12948     "" | " "*) ;;
12949     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12950     esac
12951else
12952    lt_prog_compiler_pic=
12953     lt_prog_compiler_can_build_shared=no
12954fi
12955
12956fi
12957case "$host_os" in
12958  # For platforms which do not support PIC, -DPIC is meaningless:
12959  *djgpp*)
12960    lt_prog_compiler_pic=
12961    ;;
12962  *)
12963    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12964    ;;
12965esac
12966
12967echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12968echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12969if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12970  echo $ECHO_N "(cached) $ECHO_C" >&6
12971else
12972  lt_cv_prog_compiler_c_o=no
12973   $rm -r conftest 2>/dev/null
12974   mkdir conftest
12975   cd conftest
12976   mkdir out
12977   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12978
12979   lt_compiler_flag="-o out/conftest2.$ac_objext"
12980   # Insert the option either (1) after the last *FLAGS variable, or
12981   # (2) before a word containing "conftest.", or (3) at the end.
12982   # Note that $ac_compile itself does not contain backslashes and begins
12983   # with a dollar sign (not a hyphen), so the echo should work correctly.
12984   lt_compile=`echo "$ac_compile" | $SED \
12985   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12986   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12987   -e 's:$: $lt_compiler_flag:'`
12988   (eval echo "\"\$as_me:12988: $lt_compile\"" >&5)
12989   (eval "$lt_compile" 2>out/conftest.err)
12990   ac_status=$?
12991   cat out/conftest.err >&5
12992   echo "$as_me:12992: \$? = $ac_status" >&5
12993   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12994   then
12995     # The compiler can only warn and ignore the option if not recognized
12996     # So say no if there are warnings
12997     if test ! -s out/conftest.err; then
12998       lt_cv_prog_compiler_c_o=yes
12999     fi
13000   fi
13001   chmod u+w .
13002   $rm conftest*
13003   # SGI C++ compiler will create directory out/ii_files/ for
13004   # template instantiation
13005   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13006   $rm out/* && rmdir out
13007   cd ..
13008   rmdir conftest
13009   $rm conftest*
13010
13011fi
13012echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13013echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
13014
13015
13016hard_links="nottested"
13017if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13018  # do not overwrite the value of need_locks provided by the user
13019  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13020echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13021  hard_links=yes
13022  $rm conftest*
13023  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13024  touch conftest.a
13025  ln conftest.a conftest.b 2>&5 || hard_links=no
13026  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13027  echo "$as_me:$LINENO: result: $hard_links" >&5
13028echo "${ECHO_T}$hard_links" >&6
13029  if test "$hard_links" = no; then
13030    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13031echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13032    need_locks=warn
13033  fi
13034else
13035  need_locks=no
13036fi
13037
13038echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13039echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13040
13041  runpath_var=
13042  allow_undefined_flag=
13043  enable_shared_with_static_runtimes=no
13044  archive_cmds=
13045  archive_expsym_cmds=
13046  old_archive_From_new_cmds=
13047  old_archive_from_expsyms_cmds=
13048  export_dynamic_flag_spec=
13049  whole_archive_flag_spec=
13050  thread_safe_flag_spec=
13051  hardcode_libdir_flag_spec=
13052  hardcode_libdir_flag_spec_ld=
13053  hardcode_libdir_separator=
13054  hardcode_direct=no
13055  hardcode_minus_L=no
13056  hardcode_shlibpath_var=unsupported
13057  link_all_deplibs=unknown
13058  hardcode_automatic=no
13059  module_cmds=
13060  module_expsym_cmds=
13061  always_export_symbols=no
13062  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13063  # include_expsyms should be a list of space-separated symbols to be *always*
13064  # included in the symbol list
13065  include_expsyms=
13066  # exclude_expsyms can be an extended regexp of symbols to exclude
13067  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13068  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13069  # as well as any symbol that contains `d'.
13070  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13071  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13072  # platforms (ab)use it in PIC code, but their linkers get confused if
13073  # the symbol is explicitly referenced.  Since portable code cannot
13074  # rely on this symbol name, it's probably fine to never include it in
13075  # preloaded symbol tables.
13076  extract_expsyms_cmds=
13077
13078  case $host_os in
13079  cygwin* | mingw* | pw32*)
13080    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13081    # When not using gcc, we currently assume that we are using
13082    # Microsoft Visual C++.
13083    if test "$GCC" != yes; then
13084      with_gnu_ld=no
13085    fi
13086    ;;
13087  openbsd*)
13088    with_gnu_ld=no
13089    ;;
13090  esac
13091
13092  ld_shlibs=yes
13093  if test "$with_gnu_ld" = yes; then
13094    # If archive_cmds runs LD, not CC, wlarc should be empty
13095    wlarc='${wl}'
13096
13097    # See if GNU ld supports shared libraries.
13098    case $host_os in
13099    aix3* | aix4* | aix5*)
13100      # On AIX/PPC, the GNU linker is very broken
13101      if test "$host_cpu" != ia64; then
13102	ld_shlibs=no
13103	cat <<EOF 1>&2
13104
13105*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13106*** to be unable to reliably create shared libraries on AIX.
13107*** Therefore, libtool is disabling shared libraries support.  If you
13108*** really care for shared libraries, you may want to modify your PATH
13109*** so that a non-GNU linker is found, and then restart.
13110
13111EOF
13112      fi
13113      ;;
13114
13115    amigaos*)
13116      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)'
13117      hardcode_libdir_flag_spec='-L$libdir'
13118      hardcode_minus_L=yes
13119
13120      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13121      # that the semantics of dynamic libraries on AmigaOS, at least up
13122      # to version 4, is to share data among multiple programs linked
13123      # with the same dynamic library.  Since this doesn't match the
13124      # behavior of shared libraries on other platforms, we can't use
13125      # them.
13126      ld_shlibs=no
13127      ;;
13128
13129    beos*)
13130      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13131	allow_undefined_flag=unsupported
13132	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13133	# support --undefined.  This deserves some investigation.  FIXME
13134	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13135      else
13136	ld_shlibs=no
13137      fi
13138      ;;
13139
13140    cygwin* | mingw* | pw32*)
13141      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13142      # as there is no search path for DLLs.
13143      hardcode_libdir_flag_spec='-L$libdir'
13144      allow_undefined_flag=unsupported
13145      always_export_symbols=no
13146      enable_shared_with_static_runtimes=yes
13147      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13148
13149      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13150        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13151	# If the export-symbols file already is a .def file (1st line
13152	# is EXPORTS), use it as is; otherwise, prepend...
13153	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13154	  cp $export_symbols $output_objdir/$soname.def;
13155	else
13156	  echo EXPORTS > $output_objdir/$soname.def;
13157	  cat $export_symbols >> $output_objdir/$soname.def;
13158	fi~
13159	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13160      else
13161	ld_shlibs=no
13162      fi
13163      ;;
13164
13165    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13166      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13167	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13168	wlarc=
13169      else
13170	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13171	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13172      fi
13173      ;;
13174
13175    solaris* | sysv5*)
13176      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13177	ld_shlibs=no
13178	cat <<EOF 1>&2
13179
13180*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13181*** create shared libraries on Solaris systems.  Therefore, libtool
13182*** is disabling shared libraries support.  We urge you to upgrade GNU
13183*** binutils to release 2.9.1 or newer.  Another option is to modify
13184*** your PATH or compiler configuration so that the native linker is
13185*** used, and then restart.
13186
13187EOF
13188      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13189	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13190	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13191      else
13192	ld_shlibs=no
13193      fi
13194      ;;
13195
13196    sunos4*)
13197      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13198      wlarc=
13199      hardcode_direct=yes
13200      hardcode_shlibpath_var=no
13201      ;;
13202
13203  linux*)
13204    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13205        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13206	archive_cmds="$tmp_archive_cmds"
13207      supports_anon_versioning=no
13208      case `$LD -v 2>/dev/null` in
13209        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13210        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13211        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13212        *\ 2.11.*) ;; # other 2.11 versions
13213        *) supports_anon_versioning=yes ;;
13214      esac
13215      if test $supports_anon_versioning = yes; then
13216        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
13217cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13218$echo "local: *; };" >> $output_objdir/$libname.ver~
13219        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13220      else
13221        archive_expsym_cmds="$tmp_archive_cmds"
13222      fi
13223      link_all_deplibs=no
13224    else
13225      ld_shlibs=no
13226    fi
13227    ;;
13228
13229    *)
13230      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13231	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13232	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13233      else
13234	ld_shlibs=no
13235      fi
13236      ;;
13237    esac
13238
13239    if test "$ld_shlibs" = yes; then
13240      runpath_var=LD_RUN_PATH
13241      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13242      export_dynamic_flag_spec='${wl}--export-dynamic'
13243      # ancient GNU ld didn't support --whole-archive et. al.
13244      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13245 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13246      else
13247  	whole_archive_flag_spec=
13248      fi
13249    fi
13250  else
13251    # PORTME fill in a description of your system's linker (not GNU ld)
13252    case $host_os in
13253    aix3*)
13254      allow_undefined_flag=unsupported
13255      always_export_symbols=yes
13256      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'
13257      # Note: this linker hardcodes the directories in LIBPATH if there
13258      # are no directories specified by -L.
13259      hardcode_minus_L=yes
13260      if test "$GCC" = yes && test -z "$link_static_flag"; then
13261	# Neither direct hardcoding nor static linking is supported with a
13262	# broken collect2.
13263	hardcode_direct=unsupported
13264      fi
13265      ;;
13266
13267    aix4* | aix5*)
13268      if test "$host_cpu" = ia64; then
13269	# On IA64, the linker does run time linking by default, so we don't
13270	# have to do anything special.
13271	aix_use_runtimelinking=no
13272	exp_sym_flag='-Bexport'
13273	no_entry_flag=""
13274      else
13275	# If we're using GNU nm, then we don't want the "-C" option.
13276	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13277	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13278	  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'
13279	else
13280	  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'
13281	fi
13282	aix_use_runtimelinking=no
13283
13284	# Test if we are trying to use run time linking or normal
13285	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13286	# need to do runtime linking.
13287	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13288	  for ld_flag in $LDFLAGS; do
13289  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13290  	    aix_use_runtimelinking=yes
13291  	    break
13292  	  fi
13293	  done
13294	esac
13295
13296	exp_sym_flag='-bexport'
13297	no_entry_flag='-bnoentry'
13298      fi
13299
13300      # When large executables or shared objects are built, AIX ld can
13301      # have problems creating the table of contents.  If linking a library
13302      # or program results in "error TOC overflow" add -mminimal-toc to
13303      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13304      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13305
13306      archive_cmds=''
13307      hardcode_direct=yes
13308      hardcode_libdir_separator=':'
13309      link_all_deplibs=yes
13310
13311      if test "$GCC" = yes; then
13312	case $host_os in aix4.012|aix4.012.*)
13313	# We only want to do this on AIX 4.2 and lower, the check
13314	# below for broken collect2 doesn't work under 4.3+
13315	  collect2name=`${CC} -print-prog-name=collect2`
13316	  if test -f "$collect2name" && \
13317  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13318	  then
13319  	  # We have reworked collect2
13320  	  hardcode_direct=yes
13321	  else
13322  	  # We have old collect2
13323  	  hardcode_direct=unsupported
13324  	  # It fails to find uninstalled libraries when the uninstalled
13325  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13326  	  # to unsupported forces relinking
13327  	  hardcode_minus_L=yes
13328  	  hardcode_libdir_flag_spec='-L$libdir'
13329  	  hardcode_libdir_separator=
13330	  fi
13331	esac
13332	shared_flag='-shared'
13333      else
13334	# not using gcc
13335	if test "$host_cpu" = ia64; then
13336  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13337  	# chokes on -Wl,-G. The following line is correct:
13338	  shared_flag='-G'
13339	else
13340  	if test "$aix_use_runtimelinking" = yes; then
13341	    shared_flag='${wl}-G'
13342	  else
13343	    shared_flag='${wl}-bM:SRE'
13344  	fi
13345	fi
13346      fi
13347
13348      # It seems that -bexpall does not export symbols beginning with
13349      # underscore (_), so it is better to generate a list of symbols to export.
13350      always_export_symbols=yes
13351      if test "$aix_use_runtimelinking" = yes; then
13352	# Warning - without using the other runtime loading flags (-brtl),
13353	# -berok will link without error, but may produce a broken library.
13354	allow_undefined_flag='-berok'
13355       # Determine the default libpath from the value encoded in an empty executable.
13356       cat >conftest.$ac_ext <<_ACEOF
13357/* confdefs.h.  */
13358_ACEOF
13359cat confdefs.h >>conftest.$ac_ext
13360cat >>conftest.$ac_ext <<_ACEOF
13361/* end confdefs.h.  */
13362
13363int
13364main ()
13365{
13366
13367  ;
13368  return 0;
13369}
13370_ACEOF
13371rm -f conftest.$ac_objext conftest$ac_exeext
13372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13373  (eval $ac_link) 2>conftest.er1
13374  ac_status=$?
13375  grep -v '^ *+' conftest.er1 >conftest.err
13376  rm -f conftest.er1
13377  cat conftest.err >&5
13378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379  (exit $ac_status); } &&
13380	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13382  (eval $ac_try) 2>&5
13383  ac_status=$?
13384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385  (exit $ac_status); }; } &&
13386	 { ac_try='test -s conftest$ac_exeext'
13387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388  (eval $ac_try) 2>&5
13389  ac_status=$?
13390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391  (exit $ac_status); }; }; then
13392
13393aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13394}'`
13395# Check for a 64-bit object if we didn't find anything.
13396if 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; }
13397}'`; fi
13398else
13399  echo "$as_me: failed program was:" >&5
13400sed 's/^/| /' conftest.$ac_ext >&5
13401
13402fi
13403rm -f conftest.err conftest.$ac_objext \
13404      conftest$ac_exeext conftest.$ac_ext
13405if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13406
13407       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13408	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"
13409       else
13410	if test "$host_cpu" = ia64; then
13411	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13412	  allow_undefined_flag="-z nodefs"
13413	  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"
13414	else
13415	 # Determine the default libpath from the value encoded in an empty executable.
13416	 cat >conftest.$ac_ext <<_ACEOF
13417/* confdefs.h.  */
13418_ACEOF
13419cat confdefs.h >>conftest.$ac_ext
13420cat >>conftest.$ac_ext <<_ACEOF
13421/* end confdefs.h.  */
13422
13423int
13424main ()
13425{
13426
13427  ;
13428  return 0;
13429}
13430_ACEOF
13431rm -f conftest.$ac_objext conftest$ac_exeext
13432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13433  (eval $ac_link) 2>conftest.er1
13434  ac_status=$?
13435  grep -v '^ *+' conftest.er1 >conftest.err
13436  rm -f conftest.er1
13437  cat conftest.err >&5
13438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439  (exit $ac_status); } &&
13440	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442  (eval $ac_try) 2>&5
13443  ac_status=$?
13444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445  (exit $ac_status); }; } &&
13446	 { ac_try='test -s conftest$ac_exeext'
13447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448  (eval $ac_try) 2>&5
13449  ac_status=$?
13450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451  (exit $ac_status); }; }; then
13452
13453aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13454}'`
13455# Check for a 64-bit object if we didn't find anything.
13456if 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; }
13457}'`; fi
13458else
13459  echo "$as_me: failed program was:" >&5
13460sed 's/^/| /' conftest.$ac_ext >&5
13461
13462fi
13463rm -f conftest.err conftest.$ac_objext \
13464      conftest$ac_exeext conftest.$ac_ext
13465if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13466
13467	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13468	  # Warning - without using the other run time loading flags,
13469	  # -berok will link without error, but may produce a broken library.
13470	  no_undefined_flag=' ${wl}-bernotok'
13471	  allow_undefined_flag=' ${wl}-berok'
13472	  # -bexpall does not export symbols beginning with underscore (_)
13473	  always_export_symbols=yes
13474	  # Exported symbols can be pulled into shared objects from archives
13475	  whole_archive_flag_spec=' '
13476	  archive_cmds_need_lc=yes
13477	  # This is similar to how AIX traditionally builds it's shared libraries.
13478	  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'
13479	fi
13480      fi
13481      ;;
13482
13483    amigaos*)
13484      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)'
13485      hardcode_libdir_flag_spec='-L$libdir'
13486      hardcode_minus_L=yes
13487      # see comment about different semantics on the GNU ld section
13488      ld_shlibs=no
13489      ;;
13490
13491    bsdi4*)
13492      export_dynamic_flag_spec=-rdynamic
13493      ;;
13494
13495    cygwin* | mingw* | pw32*)
13496      # When not using gcc, we currently assume that we are using
13497      # Microsoft Visual C++.
13498      # hardcode_libdir_flag_spec is actually meaningless, as there is
13499      # no search path for DLLs.
13500      hardcode_libdir_flag_spec=' '
13501      allow_undefined_flag=unsupported
13502      # Tell ltmain to make .lib files, not .a files.
13503      libext=lib
13504      # Tell ltmain to make .dll files, not .so files.
13505      shrext_cmds=".dll"
13506      # FIXME: Setting linknames here is a bad hack.
13507      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13508      # The linker will automatically build a .lib file if we build a DLL.
13509      old_archive_From_new_cmds='true'
13510      # FIXME: Should let the user specify the lib program.
13511      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
13512      fix_srcfile_path='`cygpath -w "$srcfile"`'
13513      enable_shared_with_static_runtimes=yes
13514      ;;
13515
13516    darwin* | rhapsody*)
13517    if test "$GXX" = yes ; then
13518      archive_cmds_need_lc=no
13519      case "$host_os" in
13520      rhapsody* | darwin1.[012])
13521	allow_undefined_flag='-undefined suppress'
13522	;;
13523      *) # Darwin 1.3 on
13524      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13525      	allow_undefined_flag='-flat_namespace -undefined suppress'
13526      else
13527        case ${MACOSX_DEPLOYMENT_TARGET} in
13528          10.[012])
13529            allow_undefined_flag='-flat_namespace -undefined suppress'
13530            ;;
13531          10.*)
13532            allow_undefined_flag='-undefined dynamic_lookup'
13533            ;;
13534        esac
13535      fi
13536	;;
13537      esac
13538    	lt_int_apple_cc_single_mod=no
13539    	output_verbose_link_cmd='echo'
13540    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13541    	  lt_int_apple_cc_single_mod=yes
13542    	fi
13543    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13544    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13545    	else
13546        archive_cmds='$CC -r ${wl}-bind_at_load -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'
13547      fi
13548      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13549      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13550        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13551          archive_expsym_cmds='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}'
13552        else
13553          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13554        fi
13555          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}'
13556      hardcode_direct=no
13557      hardcode_automatic=yes
13558      hardcode_shlibpath_var=unsupported
13559      whole_archive_flag_spec='-all_load $convenience'
13560      link_all_deplibs=yes
13561    else
13562      ld_shlibs=no
13563    fi
13564      ;;
13565
13566    dgux*)
13567      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13568      hardcode_libdir_flag_spec='-L$libdir'
13569      hardcode_shlibpath_var=no
13570      ;;
13571
13572    freebsd1*)
13573      ld_shlibs=no
13574      ;;
13575
13576    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13577    # support.  Future versions do this automatically, but an explicit c++rt0.o
13578    # does not break anything, and helps significantly (at the cost of a little
13579    # extra space).
13580    freebsd2.2*)
13581      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13582      hardcode_libdir_flag_spec='-R$libdir'
13583      hardcode_direct=yes
13584      hardcode_shlibpath_var=no
13585      ;;
13586
13587    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13588    freebsd2*)
13589      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13590      hardcode_direct=yes
13591      hardcode_minus_L=yes
13592      hardcode_shlibpath_var=no
13593      ;;
13594
13595    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13596    freebsd* | kfreebsd*-gnu)
13597      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13598      hardcode_libdir_flag_spec='-R$libdir'
13599      hardcode_direct=yes
13600      hardcode_shlibpath_var=no
13601      ;;
13602
13603    hpux9*)
13604      if test "$GCC" = yes; then
13605	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'
13606      else
13607	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'
13608      fi
13609      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13610      hardcode_libdir_separator=:
13611      hardcode_direct=yes
13612
13613      # hardcode_minus_L: Not really in the search PATH,
13614      # but as the default location of the library.
13615      hardcode_minus_L=yes
13616      export_dynamic_flag_spec='${wl}-E'
13617      ;;
13618
13619    hpux10* | hpux11*)
13620      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13621	case "$host_cpu" in
13622	hppa*64*|ia64*)
13623	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13624	  ;;
13625	*)
13626	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13627	  ;;
13628	esac
13629      else
13630	case "$host_cpu" in
13631	hppa*64*|ia64*)
13632	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13633	  ;;
13634	*)
13635	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13636	  ;;
13637	esac
13638      fi
13639      if test "$with_gnu_ld" = no; then
13640	case "$host_cpu" in
13641	hppa*64*)
13642	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13643	  hardcode_libdir_flag_spec_ld='+b $libdir'
13644	  hardcode_libdir_separator=:
13645	  hardcode_direct=no
13646	  hardcode_shlibpath_var=no
13647	  ;;
13648	ia64*)
13649	  hardcode_libdir_flag_spec='-L$libdir'
13650	  hardcode_direct=no
13651	  hardcode_shlibpath_var=no
13652
13653	  # hardcode_minus_L: Not really in the search PATH,
13654	  # but as the default location of the library.
13655	  hardcode_minus_L=yes
13656	  ;;
13657	*)
13658	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13659	  hardcode_libdir_separator=:
13660	  hardcode_direct=yes
13661	  export_dynamic_flag_spec='${wl}-E'
13662
13663	  # hardcode_minus_L: Not really in the search PATH,
13664	  # but as the default location of the library.
13665	  hardcode_minus_L=yes
13666	  ;;
13667	esac
13668      fi
13669      ;;
13670
13671    irix5* | irix6* | nonstopux*)
13672      if test "$GCC" = yes; then
13673	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'
13674      else
13675	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'
13676	hardcode_libdir_flag_spec_ld='-rpath $libdir'
13677      fi
13678      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13679      hardcode_libdir_separator=:
13680      link_all_deplibs=yes
13681      ;;
13682
13683    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13684      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13685	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13686      else
13687	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13688      fi
13689      hardcode_libdir_flag_spec='-R$libdir'
13690      hardcode_direct=yes
13691      hardcode_shlibpath_var=no
13692      ;;
13693
13694    newsos6)
13695      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13696      hardcode_direct=yes
13697      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13698      hardcode_libdir_separator=:
13699      hardcode_shlibpath_var=no
13700      ;;
13701
13702    openbsd*)
13703      hardcode_direct=yes
13704      hardcode_shlibpath_var=no
13705      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13706	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13707	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13708	export_dynamic_flag_spec='${wl}-E'
13709      else
13710       case $host_os in
13711	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13712	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13713	   hardcode_libdir_flag_spec='-R$libdir'
13714	   ;;
13715	 *)
13716	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13717	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13718	   ;;
13719       esac
13720      fi
13721      ;;
13722
13723    os2*)
13724      hardcode_libdir_flag_spec='-L$libdir'
13725      hardcode_minus_L=yes
13726      allow_undefined_flag=unsupported
13727      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'
13728      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13729      ;;
13730
13731    osf3*)
13732      if test "$GCC" = yes; then
13733	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13734	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'
13735      else
13736	allow_undefined_flag=' -expect_unresolved \*'
13737	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'
13738      fi
13739      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13740      hardcode_libdir_separator=:
13741      ;;
13742
13743    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13744      if test "$GCC" = yes; then
13745	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13746	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'
13747	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13748      else
13749	allow_undefined_flag=' -expect_unresolved \*'
13750	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'
13751	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13752	$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'
13753
13754	# Both c and cxx compiler support -rpath directly
13755	hardcode_libdir_flag_spec='-rpath $libdir'
13756      fi
13757      hardcode_libdir_separator=:
13758      ;;
13759
13760    sco3.2v5*)
13761      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13762      hardcode_shlibpath_var=no
13763      export_dynamic_flag_spec='${wl}-Bexport'
13764      runpath_var=LD_RUN_PATH
13765      hardcode_runpath_var=yes
13766      ;;
13767
13768    solaris*)
13769      no_undefined_flag=' -z text'
13770      if test "$GCC" = yes; then
13771	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13772	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13773	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13774      else
13775	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13776	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13777  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13778      fi
13779      hardcode_libdir_flag_spec='-R$libdir'
13780      hardcode_shlibpath_var=no
13781      case $host_os in
13782      solaris2.[0-5] | solaris2.[0-5].*) ;;
13783      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13784	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13785      esac
13786      link_all_deplibs=yes
13787      ;;
13788
13789    sunos4*)
13790      if test "x$host_vendor" = xsequent; then
13791	# Use $CC to link under sequent, because it throws in some extra .o
13792	# files that make .init and .fini sections work.
13793	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13794      else
13795	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13796      fi
13797      hardcode_libdir_flag_spec='-L$libdir'
13798      hardcode_direct=yes
13799      hardcode_minus_L=yes
13800      hardcode_shlibpath_var=no
13801      ;;
13802
13803    sysv4)
13804      case $host_vendor in
13805	sni)
13806	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13807	  hardcode_direct=yes # is this really true???
13808	;;
13809	siemens)
13810	  ## LD is ld it makes a PLAMLIB
13811	  ## CC just makes a GrossModule.
13812	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13813	  reload_cmds='$CC -r -o $output$reload_objs'
13814	  hardcode_direct=no
13815        ;;
13816	motorola)
13817	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13818	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13819	;;
13820      esac
13821      runpath_var='LD_RUN_PATH'
13822      hardcode_shlibpath_var=no
13823      ;;
13824
13825    sysv4.3*)
13826      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13827      hardcode_shlibpath_var=no
13828      export_dynamic_flag_spec='-Bexport'
13829      ;;
13830
13831    sysv4*MP*)
13832      if test -d /usr/nec; then
13833	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13834	hardcode_shlibpath_var=no
13835	runpath_var=LD_RUN_PATH
13836	hardcode_runpath_var=yes
13837	ld_shlibs=yes
13838      fi
13839      ;;
13840
13841    sysv4.2uw2*)
13842      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13843      hardcode_direct=yes
13844      hardcode_minus_L=no
13845      hardcode_shlibpath_var=no
13846      hardcode_runpath_var=yes
13847      runpath_var=LD_RUN_PATH
13848      ;;
13849
13850   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13851      no_undefined_flag='${wl}-z ${wl}text'
13852      if test "$GCC" = yes; then
13853	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13854      else
13855	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13856      fi
13857      runpath_var='LD_RUN_PATH'
13858      hardcode_shlibpath_var=no
13859      ;;
13860
13861    sysv5*)
13862      no_undefined_flag=' -z text'
13863      # $CC -shared without GNU ld will not create a library from C++
13864      # object files and a static libstdc++, better avoid it by now
13865      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13866      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13867  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13868      hardcode_libdir_flag_spec=
13869      hardcode_shlibpath_var=no
13870      runpath_var='LD_RUN_PATH'
13871      ;;
13872
13873    uts4*)
13874      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13875      hardcode_libdir_flag_spec='-L$libdir'
13876      hardcode_shlibpath_var=no
13877      ;;
13878
13879    *)
13880      ld_shlibs=no
13881      ;;
13882    esac
13883  fi
13884
13885echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13886echo "${ECHO_T}$ld_shlibs" >&6
13887test "$ld_shlibs" = no && can_build_shared=no
13888
13889variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13890if test "$GCC" = yes; then
13891  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13892fi
13893
13894#
13895# Do we need to explicitly link libc?
13896#
13897case "x$archive_cmds_need_lc" in
13898x|xyes)
13899  # Assume -lc should be added
13900  archive_cmds_need_lc=yes
13901
13902  if test "$enable_shared" = yes && test "$GCC" = yes; then
13903    case $archive_cmds in
13904    *'~'*)
13905      # FIXME: we may have to deal with multi-command sequences.
13906      ;;
13907    '$CC '*)
13908      # Test whether the compiler implicitly links with -lc since on some
13909      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13910      # to ld, don't add -lc before -lgcc.
13911      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13912echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13913      $rm conftest*
13914      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13915
13916      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13917  (eval $ac_compile) 2>&5
13918  ac_status=$?
13919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920  (exit $ac_status); } 2>conftest.err; then
13921        soname=conftest
13922        lib=conftest
13923        libobjs=conftest.$ac_objext
13924        deplibs=
13925        wl=$lt_prog_compiler_wl
13926        compiler_flags=-v
13927        linker_flags=-v
13928        verstring=
13929        output_objdir=.
13930        libname=conftest
13931        lt_save_allow_undefined_flag=$allow_undefined_flag
13932        allow_undefined_flag=
13933        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13934  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13935  ac_status=$?
13936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937  (exit $ac_status); }
13938        then
13939	  archive_cmds_need_lc=no
13940        else
13941	  archive_cmds_need_lc=yes
13942        fi
13943        allow_undefined_flag=$lt_save_allow_undefined_flag
13944      else
13945        cat conftest.err 1>&5
13946      fi
13947      $rm conftest*
13948      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13949echo "${ECHO_T}$archive_cmds_need_lc" >&6
13950      ;;
13951    esac
13952  fi
13953  ;;
13954esac
13955
13956echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13957echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13958library_names_spec=
13959libname_spec='lib$name'
13960soname_spec=
13961shrext_cmds=".so"
13962postinstall_cmds=
13963postuninstall_cmds=
13964finish_cmds=
13965finish_eval=
13966shlibpath_var=
13967shlibpath_overrides_runpath=unknown
13968version_type=none
13969dynamic_linker="$host_os ld.so"
13970sys_lib_dlsearch_path_spec="/lib /usr/lib"
13971if test "$GCC" = yes; then
13972  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13973  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13974    # if the path contains ";" then we assume it to be the separator
13975    # otherwise default to the standard path separator (i.e. ":") - it is
13976    # assumed that no part of a normal pathname contains ";" but that should
13977    # okay in the real world where ";" in dirpaths is itself problematic.
13978    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13979  else
13980    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13981  fi
13982else
13983  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13984fi
13985need_lib_prefix=unknown
13986hardcode_into_libs=no
13987
13988# when you set need_version to no, make sure it does not cause -set_version
13989# flags to be left without arguments
13990need_version=unknown
13991
13992case $host_os in
13993aix3*)
13994  version_type=linux
13995  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13996  shlibpath_var=LIBPATH
13997
13998  # AIX 3 has no versioning support, so we append a major version to the name.
13999  soname_spec='${libname}${release}${shared_ext}$major'
14000  ;;
14001
14002aix4* | aix5*)
14003  version_type=linux
14004  need_lib_prefix=no
14005  need_version=no
14006  hardcode_into_libs=yes
14007  if test "$host_cpu" = ia64; then
14008    # AIX 5 supports IA64
14009    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14010    shlibpath_var=LD_LIBRARY_PATH
14011  else
14012    # With GCC up to 2.95.x, collect2 would create an import file
14013    # for dependence libraries.  The import file would start with
14014    # the line `#! .'.  This would cause the generated library to
14015    # depend on `.', always an invalid library.  This was fixed in
14016    # development snapshots of GCC prior to 3.0.
14017    case $host_os in
14018      aix4 | aix4.[01] | aix4.[01].*)
14019      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14020	   echo ' yes '
14021	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14022	:
14023      else
14024	can_build_shared=no
14025      fi
14026      ;;
14027    esac
14028    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14029    # soname into executable. Probably we can add versioning support to
14030    # collect2, so additional links can be useful in future.
14031    if test "$aix_use_runtimelinking" = yes; then
14032      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14033      # instead of lib<name>.a to let people know that these are not
14034      # typical AIX shared libraries.
14035      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14036    else
14037      # We preserve .a as extension for shared libraries through AIX4.2
14038      # and later when we are not doing run time linking.
14039      library_names_spec='${libname}${release}.a $libname.a'
14040      soname_spec='${libname}${release}${shared_ext}$major'
14041    fi
14042    shlibpath_var=LIBPATH
14043  fi
14044  ;;
14045
14046amigaos*)
14047  library_names_spec='$libname.ixlibrary $libname.a'
14048  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14049  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'
14050  ;;
14051
14052beos*)
14053  library_names_spec='${libname}${shared_ext}'
14054  dynamic_linker="$host_os ld.so"
14055  shlibpath_var=LIBRARY_PATH
14056  ;;
14057
14058bsdi4*)
14059  version_type=linux
14060  need_version=no
14061  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14062  soname_spec='${libname}${release}${shared_ext}$major'
14063  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14064  shlibpath_var=LD_LIBRARY_PATH
14065  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14066  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14067  # the default ld.so.conf also contains /usr/contrib/lib and
14068  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14069  # libtool to hard-code these into programs
14070  ;;
14071
14072cygwin* | mingw* | pw32*)
14073  version_type=windows
14074  shrext_cmds=".dll"
14075  need_version=no
14076  need_lib_prefix=no
14077
14078  case $GCC,$host_os in
14079  yes,cygwin* | yes,mingw* | yes,pw32*)
14080    library_names_spec='$libname.dll.a'
14081    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14082    postinstall_cmds='base_file=`basename \${file}`~
14083      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14084      dldir=$destdir/`dirname \$dlpath`~
14085      test -d \$dldir || mkdir -p \$dldir~
14086      $install_prog $dir/$dlname \$dldir/$dlname'
14087    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14088      dlpath=$dir/\$dldll~
14089       $rm \$dlpath'
14090    shlibpath_overrides_runpath=yes
14091
14092    case $host_os in
14093    cygwin*)
14094      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14095      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14096      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14097      ;;
14098    mingw*)
14099      # MinGW DLLs use traditional 'lib' prefix
14100      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14101      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14102      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14103        # It is most probably a Windows format PATH printed by
14104        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14105        # path with ; separators, and with drive letters. We can handle the
14106        # drive letters (cygwin fileutils understands them), so leave them,
14107        # especially as we might pass files found there to a mingw objdump,
14108        # which wouldn't understand a cygwinified path. Ahh.
14109        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14110      else
14111        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14112      fi
14113      ;;
14114    pw32*)
14115      # pw32 DLLs use 'pw' prefix rather than 'lib'
14116      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14117      ;;
14118    esac
14119    ;;
14120
14121  *)
14122    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14123    ;;
14124  esac
14125  dynamic_linker='Win32 ld.exe'
14126  # FIXME: first we should search . and the directory the executable is in
14127  shlibpath_var=PATH
14128  ;;
14129
14130darwin* | rhapsody*)
14131  dynamic_linker="$host_os dyld"
14132  version_type=darwin
14133  need_lib_prefix=no
14134  need_version=no
14135  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14136  soname_spec='${libname}${release}${major}$shared_ext'
14137  shlibpath_overrides_runpath=yes
14138  shlibpath_var=DYLD_LIBRARY_PATH
14139  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14140  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14141  if test "$GCC" = yes; then
14142    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"`
14143  else
14144    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14145  fi
14146  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14147  ;;
14148
14149dgux*)
14150  version_type=linux
14151  need_lib_prefix=no
14152  need_version=no
14153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14154  soname_spec='${libname}${release}${shared_ext}$major'
14155  shlibpath_var=LD_LIBRARY_PATH
14156  ;;
14157
14158freebsd1*)
14159  dynamic_linker=no
14160  ;;
14161
14162kfreebsd*-gnu)
14163  version_type=linux
14164  need_lib_prefix=no
14165  need_version=no
14166  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14167  soname_spec='${libname}${release}${shared_ext}$major'
14168  shlibpath_var=LD_LIBRARY_PATH
14169  shlibpath_overrides_runpath=no
14170  hardcode_into_libs=yes
14171  dynamic_linker='GNU ld.so'
14172  ;;
14173
14174freebsd*)
14175  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14176  version_type=freebsd-$objformat
14177  case $version_type in
14178    freebsd-elf*)
14179      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14180      need_version=no
14181      need_lib_prefix=no
14182      ;;
14183    freebsd-*)
14184      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14185      need_version=yes
14186      ;;
14187  esac
14188  shlibpath_var=LD_LIBRARY_PATH
14189  case $host_os in
14190  freebsd2*)
14191    shlibpath_overrides_runpath=yes
14192    ;;
14193  freebsd3.01* | freebsdelf3.01*)
14194    shlibpath_overrides_runpath=yes
14195    hardcode_into_libs=yes
14196    ;;
14197  *) # from 3.2 on
14198    shlibpath_overrides_runpath=no
14199    hardcode_into_libs=yes
14200    ;;
14201  esac
14202  ;;
14203
14204gnu*)
14205  version_type=linux
14206  need_lib_prefix=no
14207  need_version=no
14208  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14209  soname_spec='${libname}${release}${shared_ext}$major'
14210  shlibpath_var=LD_LIBRARY_PATH
14211  hardcode_into_libs=yes
14212  ;;
14213
14214hpux9* | hpux10* | hpux11*)
14215  # Give a soname corresponding to the major version so that dld.sl refuses to
14216  # link against other versions.
14217  version_type=sunos
14218  need_lib_prefix=no
14219  need_version=no
14220  case "$host_cpu" in
14221  ia64*)
14222    shrext_cmds='.so'
14223    hardcode_into_libs=yes
14224    dynamic_linker="$host_os dld.so"
14225    shlibpath_var=LD_LIBRARY_PATH
14226    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14227    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14228    soname_spec='${libname}${release}${shared_ext}$major'
14229    if test "X$HPUX_IA64_MODE" = X32; then
14230      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14231    else
14232      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14233    fi
14234    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14235    ;;
14236   hppa*64*)
14237     shrext_cmds='.sl'
14238     hardcode_into_libs=yes
14239     dynamic_linker="$host_os dld.sl"
14240     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14241     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14242     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14243     soname_spec='${libname}${release}${shared_ext}$major'
14244     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14245     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14246     ;;
14247   *)
14248    shrext_cmds='.sl'
14249    dynamic_linker="$host_os dld.sl"
14250    shlibpath_var=SHLIB_PATH
14251    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14252    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14253    soname_spec='${libname}${release}${shared_ext}$major'
14254    ;;
14255  esac
14256  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14257  postinstall_cmds='chmod 555 $lib'
14258  ;;
14259
14260irix5* | irix6* | nonstopux*)
14261  case $host_os in
14262    nonstopux*) version_type=nonstopux ;;
14263    *)
14264	if test "$lt_cv_prog_gnu_ld" = yes; then
14265		version_type=linux
14266	else
14267		version_type=irix
14268	fi ;;
14269  esac
14270  need_lib_prefix=no
14271  need_version=no
14272  soname_spec='${libname}${release}${shared_ext}$major'
14273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14274  case $host_os in
14275  irix5* | nonstopux*)
14276    libsuff= shlibsuff=
14277    ;;
14278  *)
14279    case $LD in # libtool.m4 will add one of these switches to LD
14280    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14281      libsuff= shlibsuff= libmagic=32-bit;;
14282    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14283      libsuff=32 shlibsuff=N32 libmagic=N32;;
14284    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14285      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14286    *) libsuff= shlibsuff= libmagic=never-match;;
14287    esac
14288    ;;
14289  esac
14290  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14291  shlibpath_overrides_runpath=no
14292  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14293  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14294  hardcode_into_libs=yes
14295  ;;
14296
14297# No shared lib support for Linux oldld, aout, or coff.
14298linux*oldld* | linux*aout* | linux*coff*)
14299  dynamic_linker=no
14300  ;;
14301
14302# This must be Linux ELF.
14303linux*)
14304  version_type=linux
14305  need_lib_prefix=no
14306  need_version=no
14307  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14308  soname_spec='${libname}${release}${shared_ext}$major'
14309  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14310  shlibpath_var=LD_LIBRARY_PATH
14311  shlibpath_overrides_runpath=no
14312  # This implies no fast_install, which is unacceptable.
14313  # Some rework will be needed to allow for fast_install
14314  # before this can be enabled.
14315  hardcode_into_libs=yes
14316
14317  # Append ld.so.conf contents to the search path
14318  if test -f /etc/ld.so.conf; then
14319    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14320    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14321  fi
14322
14323  # We used to test for /lib/ld.so.1 and disable shared libraries on
14324  # powerpc, because MkLinux only supported shared libraries with the
14325  # GNU dynamic linker.  Since this was broken with cross compilers,
14326  # most powerpc-linux boxes support dynamic linking these days and
14327  # people can always --disable-shared, the test was removed, and we
14328  # assume the GNU/Linux dynamic linker is in use.
14329  dynamic_linker='GNU/Linux ld.so'
14330  ;;
14331
14332netbsdelf*-gnu)
14333  version_type=linux
14334  need_lib_prefix=no
14335  need_version=no
14336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14337  soname_spec='${libname}${release}${shared_ext}$major'
14338  shlibpath_var=LD_LIBRARY_PATH
14339  shlibpath_overrides_runpath=no
14340  hardcode_into_libs=yes
14341  dynamic_linker='NetBSD ld.elf_so'
14342  ;;
14343
14344knetbsd*-gnu)
14345  version_type=linux
14346  need_lib_prefix=no
14347  need_version=no
14348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14349  soname_spec='${libname}${release}${shared_ext}$major'
14350  shlibpath_var=LD_LIBRARY_PATH
14351  shlibpath_overrides_runpath=no
14352  hardcode_into_libs=yes
14353  dynamic_linker='GNU ld.so'
14354  ;;
14355
14356netbsd*)
14357  version_type=sunos
14358  need_lib_prefix=no
14359  need_version=no
14360  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14361    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14362    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14363    dynamic_linker='NetBSD (a.out) ld.so'
14364  else
14365    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14366    soname_spec='${libname}${release}${shared_ext}$major'
14367    dynamic_linker='NetBSD ld.elf_so'
14368  fi
14369  shlibpath_var=LD_LIBRARY_PATH
14370  shlibpath_overrides_runpath=yes
14371  hardcode_into_libs=yes
14372  ;;
14373
14374newsos6)
14375  version_type=linux
14376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14377  shlibpath_var=LD_LIBRARY_PATH
14378  shlibpath_overrides_runpath=yes
14379  ;;
14380
14381nto-qnx*)
14382  version_type=linux
14383  need_lib_prefix=no
14384  need_version=no
14385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14386  soname_spec='${libname}${release}${shared_ext}$major'
14387  shlibpath_var=LD_LIBRARY_PATH
14388  shlibpath_overrides_runpath=yes
14389  ;;
14390
14391openbsd*)
14392  version_type=sunos
14393  need_lib_prefix=no
14394  need_version=yes
14395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14396  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14397  shlibpath_var=LD_LIBRARY_PATH
14398  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14399    case $host_os in
14400      openbsd2.[89] | openbsd2.[89].*)
14401	shlibpath_overrides_runpath=no
14402	;;
14403      *)
14404	shlibpath_overrides_runpath=yes
14405	;;
14406      esac
14407  else
14408    shlibpath_overrides_runpath=yes
14409  fi
14410  ;;
14411
14412os2*)
14413  libname_spec='$name'
14414  shrext_cmds=".dll"
14415  need_lib_prefix=no
14416  library_names_spec='$libname${shared_ext} $libname.a'
14417  dynamic_linker='OS/2 ld.exe'
14418  shlibpath_var=LIBPATH
14419  ;;
14420
14421osf3* | osf4* | osf5*)
14422  version_type=osf
14423  need_lib_prefix=no
14424  need_version=no
14425  soname_spec='${libname}${release}${shared_ext}$major'
14426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14427  shlibpath_var=LD_LIBRARY_PATH
14428  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14429  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14430  ;;
14431
14432sco3.2v5*)
14433  version_type=osf
14434  soname_spec='${libname}${release}${shared_ext}$major'
14435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14436  shlibpath_var=LD_LIBRARY_PATH
14437  ;;
14438
14439solaris*)
14440  version_type=linux
14441  need_lib_prefix=no
14442  need_version=no
14443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14444  soname_spec='${libname}${release}${shared_ext}$major'
14445  shlibpath_var=LD_LIBRARY_PATH
14446  shlibpath_overrides_runpath=yes
14447  hardcode_into_libs=yes
14448  # ldd complains unless libraries are executable
14449  postinstall_cmds='chmod +x $lib'
14450  ;;
14451
14452sunos4*)
14453  version_type=sunos
14454  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14455  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14456  shlibpath_var=LD_LIBRARY_PATH
14457  shlibpath_overrides_runpath=yes
14458  if test "$with_gnu_ld" = yes; then
14459    need_lib_prefix=no
14460  fi
14461  need_version=yes
14462  ;;
14463
14464sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14465  version_type=linux
14466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14467  soname_spec='${libname}${release}${shared_ext}$major'
14468  shlibpath_var=LD_LIBRARY_PATH
14469  case $host_vendor in
14470    sni)
14471      shlibpath_overrides_runpath=no
14472      need_lib_prefix=no
14473      export_dynamic_flag_spec='${wl}-Blargedynsym'
14474      runpath_var=LD_RUN_PATH
14475      ;;
14476    siemens)
14477      need_lib_prefix=no
14478      ;;
14479    motorola)
14480      need_lib_prefix=no
14481      need_version=no
14482      shlibpath_overrides_runpath=no
14483      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14484      ;;
14485  esac
14486  ;;
14487
14488sysv4*MP*)
14489  if test -d /usr/nec ;then
14490    version_type=linux
14491    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14492    soname_spec='$libname${shared_ext}.$major'
14493    shlibpath_var=LD_LIBRARY_PATH
14494  fi
14495  ;;
14496
14497uts4*)
14498  version_type=linux
14499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14500  soname_spec='${libname}${release}${shared_ext}$major'
14501  shlibpath_var=LD_LIBRARY_PATH
14502  ;;
14503
14504*)
14505  dynamic_linker=no
14506  ;;
14507esac
14508echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14509echo "${ECHO_T}$dynamic_linker" >&6
14510test "$dynamic_linker" = no && can_build_shared=no
14511
14512echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14513echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14514hardcode_action=
14515if test -n "$hardcode_libdir_flag_spec" || \
14516   test -n "$runpath_var " || \
14517   test "X$hardcode_automatic"="Xyes" ; then
14518
14519  # We can hardcode non-existant directories.
14520  if test "$hardcode_direct" != no &&
14521     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14522     # have to relink, otherwise we might link with an installed library
14523     # when we should be linking with a yet-to-be-installed one
14524     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14525     test "$hardcode_minus_L" != no; then
14526    # Linking always hardcodes the temporary library directory.
14527    hardcode_action=relink
14528  else
14529    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14530    hardcode_action=immediate
14531  fi
14532else
14533  # We cannot hardcode anything, or else we can only hardcode existing
14534  # directories.
14535  hardcode_action=unsupported
14536fi
14537echo "$as_me:$LINENO: result: $hardcode_action" >&5
14538echo "${ECHO_T}$hardcode_action" >&6
14539
14540if test "$hardcode_action" = relink; then
14541  # Fast installation is not supported
14542  enable_fast_install=no
14543elif test "$shlibpath_overrides_runpath" = yes ||
14544     test "$enable_shared" = no; then
14545  # Fast installation is not necessary
14546  enable_fast_install=needless
14547fi
14548
14549striplib=
14550old_striplib=
14551echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14552echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14553if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14554  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14555  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14556  echo "$as_me:$LINENO: result: yes" >&5
14557echo "${ECHO_T}yes" >&6
14558else
14559# FIXME - insert some real tests, host_os isn't really good enough
14560  case $host_os in
14561   darwin*)
14562       if test -n "$STRIP" ; then
14563         striplib="$STRIP -x"
14564         echo "$as_me:$LINENO: result: yes" >&5
14565echo "${ECHO_T}yes" >&6
14566       else
14567  echo "$as_me:$LINENO: result: no" >&5
14568echo "${ECHO_T}no" >&6
14569fi
14570       ;;
14571   *)
14572  echo "$as_me:$LINENO: result: no" >&5
14573echo "${ECHO_T}no" >&6
14574    ;;
14575  esac
14576fi
14577
14578if test "x$enable_dlopen" != xyes; then
14579  enable_dlopen=unknown
14580  enable_dlopen_self=unknown
14581  enable_dlopen_self_static=unknown
14582else
14583  lt_cv_dlopen=no
14584  lt_cv_dlopen_libs=
14585
14586  case $host_os in
14587  beos*)
14588    lt_cv_dlopen="load_add_on"
14589    lt_cv_dlopen_libs=
14590    lt_cv_dlopen_self=yes
14591    ;;
14592
14593  mingw* | pw32*)
14594    lt_cv_dlopen="LoadLibrary"
14595    lt_cv_dlopen_libs=
14596   ;;
14597
14598  cygwin*)
14599    lt_cv_dlopen="dlopen"
14600    lt_cv_dlopen_libs=
14601   ;;
14602
14603  darwin*)
14604  # if libdl is installed we need to link against it
14605    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14606echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14607if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14608  echo $ECHO_N "(cached) $ECHO_C" >&6
14609else
14610  ac_check_lib_save_LIBS=$LIBS
14611LIBS="-ldl  $LIBS"
14612cat >conftest.$ac_ext <<_ACEOF
14613/* confdefs.h.  */
14614_ACEOF
14615cat confdefs.h >>conftest.$ac_ext
14616cat >>conftest.$ac_ext <<_ACEOF
14617/* end confdefs.h.  */
14618
14619/* Override any gcc2 internal prototype to avoid an error.  */
14620#ifdef __cplusplus
14621extern "C"
14622#endif
14623/* We use char because int might match the return type of a gcc2
14624   builtin and then its argument prototype would still apply.  */
14625char dlopen ();
14626int
14627main ()
14628{
14629dlopen ();
14630  ;
14631  return 0;
14632}
14633_ACEOF
14634rm -f conftest.$ac_objext conftest$ac_exeext
14635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14636  (eval $ac_link) 2>conftest.er1
14637  ac_status=$?
14638  grep -v '^ *+' conftest.er1 >conftest.err
14639  rm -f conftest.er1
14640  cat conftest.err >&5
14641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642  (exit $ac_status); } &&
14643	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
14644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645  (eval $ac_try) 2>&5
14646  ac_status=$?
14647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648  (exit $ac_status); }; } &&
14649	 { ac_try='test -s conftest$ac_exeext'
14650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651  (eval $ac_try) 2>&5
14652  ac_status=$?
14653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654  (exit $ac_status); }; }; then
14655  ac_cv_lib_dl_dlopen=yes
14656else
14657  echo "$as_me: failed program was:" >&5
14658sed 's/^/| /' conftest.$ac_ext >&5
14659
14660ac_cv_lib_dl_dlopen=no
14661fi
14662rm -f conftest.err conftest.$ac_objext \
14663      conftest$ac_exeext conftest.$ac_ext
14664LIBS=$ac_check_lib_save_LIBS
14665fi
14666echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14667echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14668if test $ac_cv_lib_dl_dlopen = yes; then
14669  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14670else
14671
14672    lt_cv_dlopen="dyld"
14673    lt_cv_dlopen_libs=
14674    lt_cv_dlopen_self=yes
14675
14676fi
14677
14678   ;;
14679
14680  *)
14681    echo "$as_me:$LINENO: checking for shl_load" >&5
14682echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14683if test "${ac_cv_func_shl_load+set}" = set; then
14684  echo $ECHO_N "(cached) $ECHO_C" >&6
14685else
14686  cat >conftest.$ac_ext <<_ACEOF
14687/* confdefs.h.  */
14688_ACEOF
14689cat confdefs.h >>conftest.$ac_ext
14690cat >>conftest.$ac_ext <<_ACEOF
14691/* end confdefs.h.  */
14692/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14693   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14694#define shl_load innocuous_shl_load
14695
14696/* System header to define __stub macros and hopefully few prototypes,
14697    which can conflict with char shl_load (); below.
14698    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14699    <limits.h> exists even on freestanding compilers.  */
14700
14701#ifdef __STDC__
14702# include <limits.h>
14703#else
14704# include <assert.h>
14705#endif
14706
14707#undef shl_load
14708
14709/* Override any gcc2 internal prototype to avoid an error.  */
14710#ifdef __cplusplus
14711extern "C"
14712{
14713#endif
14714/* We use char because int might match the return type of a gcc2
14715   builtin and then its argument prototype would still apply.  */
14716char shl_load ();
14717/* The GNU C library defines this for functions which it implements
14718    to always fail with ENOSYS.  Some functions are actually named
14719    something starting with __ and the normal name is an alias.  */
14720#if defined (__stub_shl_load) || defined (__stub___shl_load)
14721choke me
14722#else
14723char (*f) () = shl_load;
14724#endif
14725#ifdef __cplusplus
14726}
14727#endif
14728
14729int
14730main ()
14731{
14732return f != shl_load;
14733  ;
14734  return 0;
14735}
14736_ACEOF
14737rm -f conftest.$ac_objext conftest$ac_exeext
14738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14739  (eval $ac_link) 2>conftest.er1
14740  ac_status=$?
14741  grep -v '^ *+' conftest.er1 >conftest.err
14742  rm -f conftest.er1
14743  cat conftest.err >&5
14744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745  (exit $ac_status); } &&
14746	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
14747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748  (eval $ac_try) 2>&5
14749  ac_status=$?
14750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751  (exit $ac_status); }; } &&
14752	 { ac_try='test -s conftest$ac_exeext'
14753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754  (eval $ac_try) 2>&5
14755  ac_status=$?
14756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757  (exit $ac_status); }; }; then
14758  ac_cv_func_shl_load=yes
14759else
14760  echo "$as_me: failed program was:" >&5
14761sed 's/^/| /' conftest.$ac_ext >&5
14762
14763ac_cv_func_shl_load=no
14764fi
14765rm -f conftest.err conftest.$ac_objext \
14766      conftest$ac_exeext conftest.$ac_ext
14767fi
14768echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14769echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14770if test $ac_cv_func_shl_load = yes; then
14771  lt_cv_dlopen="shl_load"
14772else
14773  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14774echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14775if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14776  echo $ECHO_N "(cached) $ECHO_C" >&6
14777else
14778  ac_check_lib_save_LIBS=$LIBS
14779LIBS="-ldld  $LIBS"
14780cat >conftest.$ac_ext <<_ACEOF
14781/* confdefs.h.  */
14782_ACEOF
14783cat confdefs.h >>conftest.$ac_ext
14784cat >>conftest.$ac_ext <<_ACEOF
14785/* end confdefs.h.  */
14786
14787/* Override any gcc2 internal prototype to avoid an error.  */
14788#ifdef __cplusplus
14789extern "C"
14790#endif
14791/* We use char because int might match the return type of a gcc2
14792   builtin and then its argument prototype would still apply.  */
14793char shl_load ();
14794int
14795main ()
14796{
14797shl_load ();
14798  ;
14799  return 0;
14800}
14801_ACEOF
14802rm -f conftest.$ac_objext conftest$ac_exeext
14803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14804  (eval $ac_link) 2>conftest.er1
14805  ac_status=$?
14806  grep -v '^ *+' conftest.er1 >conftest.err
14807  rm -f conftest.er1
14808  cat conftest.err >&5
14809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810  (exit $ac_status); } &&
14811	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
14812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813  (eval $ac_try) 2>&5
14814  ac_status=$?
14815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816  (exit $ac_status); }; } &&
14817	 { ac_try='test -s conftest$ac_exeext'
14818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819  (eval $ac_try) 2>&5
14820  ac_status=$?
14821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822  (exit $ac_status); }; }; then
14823  ac_cv_lib_dld_shl_load=yes
14824else
14825  echo "$as_me: failed program was:" >&5
14826sed 's/^/| /' conftest.$ac_ext >&5
14827
14828ac_cv_lib_dld_shl_load=no
14829fi
14830rm -f conftest.err conftest.$ac_objext \
14831      conftest$ac_exeext conftest.$ac_ext
14832LIBS=$ac_check_lib_save_LIBS
14833fi
14834echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14835echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14836if test $ac_cv_lib_dld_shl_load = yes; then
14837  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14838else
14839  echo "$as_me:$LINENO: checking for dlopen" >&5
14840echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14841if test "${ac_cv_func_dlopen+set}" = set; then
14842  echo $ECHO_N "(cached) $ECHO_C" >&6
14843else
14844  cat >conftest.$ac_ext <<_ACEOF
14845/* confdefs.h.  */
14846_ACEOF
14847cat confdefs.h >>conftest.$ac_ext
14848cat >>conftest.$ac_ext <<_ACEOF
14849/* end confdefs.h.  */
14850/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14851   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14852#define dlopen innocuous_dlopen
14853
14854/* System header to define __stub macros and hopefully few prototypes,
14855    which can conflict with char dlopen (); below.
14856    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14857    <limits.h> exists even on freestanding compilers.  */
14858
14859#ifdef __STDC__
14860# include <limits.h>
14861#else
14862# include <assert.h>
14863#endif
14864
14865#undef dlopen
14866
14867/* Override any gcc2 internal prototype to avoid an error.  */
14868#ifdef __cplusplus
14869extern "C"
14870{
14871#endif
14872/* We use char because int might match the return type of a gcc2
14873   builtin and then its argument prototype would still apply.  */
14874char dlopen ();
14875/* The GNU C library defines this for functions which it implements
14876    to always fail with ENOSYS.  Some functions are actually named
14877    something starting with __ and the normal name is an alias.  */
14878#if defined (__stub_dlopen) || defined (__stub___dlopen)
14879choke me
14880#else
14881char (*f) () = dlopen;
14882#endif
14883#ifdef __cplusplus
14884}
14885#endif
14886
14887int
14888main ()
14889{
14890return f != dlopen;
14891  ;
14892  return 0;
14893}
14894_ACEOF
14895rm -f conftest.$ac_objext conftest$ac_exeext
14896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14897  (eval $ac_link) 2>conftest.er1
14898  ac_status=$?
14899  grep -v '^ *+' conftest.er1 >conftest.err
14900  rm -f conftest.er1
14901  cat conftest.err >&5
14902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903  (exit $ac_status); } &&
14904	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
14905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906  (eval $ac_try) 2>&5
14907  ac_status=$?
14908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909  (exit $ac_status); }; } &&
14910	 { ac_try='test -s conftest$ac_exeext'
14911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912  (eval $ac_try) 2>&5
14913  ac_status=$?
14914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915  (exit $ac_status); }; }; then
14916  ac_cv_func_dlopen=yes
14917else
14918  echo "$as_me: failed program was:" >&5
14919sed 's/^/| /' conftest.$ac_ext >&5
14920
14921ac_cv_func_dlopen=no
14922fi
14923rm -f conftest.err conftest.$ac_objext \
14924      conftest$ac_exeext conftest.$ac_ext
14925fi
14926echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14927echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14928if test $ac_cv_func_dlopen = yes; then
14929  lt_cv_dlopen="dlopen"
14930else
14931  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14932echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14933if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14934  echo $ECHO_N "(cached) $ECHO_C" >&6
14935else
14936  ac_check_lib_save_LIBS=$LIBS
14937LIBS="-ldl  $LIBS"
14938cat >conftest.$ac_ext <<_ACEOF
14939/* confdefs.h.  */
14940_ACEOF
14941cat confdefs.h >>conftest.$ac_ext
14942cat >>conftest.$ac_ext <<_ACEOF
14943/* end confdefs.h.  */
14944
14945/* Override any gcc2 internal prototype to avoid an error.  */
14946#ifdef __cplusplus
14947extern "C"
14948#endif
14949/* We use char because int might match the return type of a gcc2
14950   builtin and then its argument prototype would still apply.  */
14951char dlopen ();
14952int
14953main ()
14954{
14955dlopen ();
14956  ;
14957  return 0;
14958}
14959_ACEOF
14960rm -f conftest.$ac_objext conftest$ac_exeext
14961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14962  (eval $ac_link) 2>conftest.er1
14963  ac_status=$?
14964  grep -v '^ *+' conftest.er1 >conftest.err
14965  rm -f conftest.er1
14966  cat conftest.err >&5
14967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968  (exit $ac_status); } &&
14969	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
14970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971  (eval $ac_try) 2>&5
14972  ac_status=$?
14973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974  (exit $ac_status); }; } &&
14975	 { ac_try='test -s conftest$ac_exeext'
14976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977  (eval $ac_try) 2>&5
14978  ac_status=$?
14979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980  (exit $ac_status); }; }; then
14981  ac_cv_lib_dl_dlopen=yes
14982else
14983  echo "$as_me: failed program was:" >&5
14984sed 's/^/| /' conftest.$ac_ext >&5
14985
14986ac_cv_lib_dl_dlopen=no
14987fi
14988rm -f conftest.err conftest.$ac_objext \
14989      conftest$ac_exeext conftest.$ac_ext
14990LIBS=$ac_check_lib_save_LIBS
14991fi
14992echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14993echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14994if test $ac_cv_lib_dl_dlopen = yes; then
14995  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14996else
14997  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14998echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14999if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15000  echo $ECHO_N "(cached) $ECHO_C" >&6
15001else
15002  ac_check_lib_save_LIBS=$LIBS
15003LIBS="-lsvld  $LIBS"
15004cat >conftest.$ac_ext <<_ACEOF
15005/* confdefs.h.  */
15006_ACEOF
15007cat confdefs.h >>conftest.$ac_ext
15008cat >>conftest.$ac_ext <<_ACEOF
15009/* end confdefs.h.  */
15010
15011/* Override any gcc2 internal prototype to avoid an error.  */
15012#ifdef __cplusplus
15013extern "C"
15014#endif
15015/* We use char because int might match the return type of a gcc2
15016   builtin and then its argument prototype would still apply.  */
15017char dlopen ();
15018int
15019main ()
15020{
15021dlopen ();
15022  ;
15023  return 0;
15024}
15025_ACEOF
15026rm -f conftest.$ac_objext conftest$ac_exeext
15027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15028  (eval $ac_link) 2>conftest.er1
15029  ac_status=$?
15030  grep -v '^ *+' conftest.er1 >conftest.err
15031  rm -f conftest.er1
15032  cat conftest.err >&5
15033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034  (exit $ac_status); } &&
15035	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
15036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037  (eval $ac_try) 2>&5
15038  ac_status=$?
15039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040  (exit $ac_status); }; } &&
15041	 { ac_try='test -s conftest$ac_exeext'
15042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043  (eval $ac_try) 2>&5
15044  ac_status=$?
15045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046  (exit $ac_status); }; }; then
15047  ac_cv_lib_svld_dlopen=yes
15048else
15049  echo "$as_me: failed program was:" >&5
15050sed 's/^/| /' conftest.$ac_ext >&5
15051
15052ac_cv_lib_svld_dlopen=no
15053fi
15054rm -f conftest.err conftest.$ac_objext \
15055      conftest$ac_exeext conftest.$ac_ext
15056LIBS=$ac_check_lib_save_LIBS
15057fi
15058echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15059echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15060if test $ac_cv_lib_svld_dlopen = yes; then
15061  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15062else
15063  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15064echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15065if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15066  echo $ECHO_N "(cached) $ECHO_C" >&6
15067else
15068  ac_check_lib_save_LIBS=$LIBS
15069LIBS="-ldld  $LIBS"
15070cat >conftest.$ac_ext <<_ACEOF
15071/* confdefs.h.  */
15072_ACEOF
15073cat confdefs.h >>conftest.$ac_ext
15074cat >>conftest.$ac_ext <<_ACEOF
15075/* end confdefs.h.  */
15076
15077/* Override any gcc2 internal prototype to avoid an error.  */
15078#ifdef __cplusplus
15079extern "C"
15080#endif
15081/* We use char because int might match the return type of a gcc2
15082   builtin and then its argument prototype would still apply.  */
15083char dld_link ();
15084int
15085main ()
15086{
15087dld_link ();
15088  ;
15089  return 0;
15090}
15091_ACEOF
15092rm -f conftest.$ac_objext conftest$ac_exeext
15093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15094  (eval $ac_link) 2>conftest.er1
15095  ac_status=$?
15096  grep -v '^ *+' conftest.er1 >conftest.err
15097  rm -f conftest.er1
15098  cat conftest.err >&5
15099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100  (exit $ac_status); } &&
15101	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
15102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15103  (eval $ac_try) 2>&5
15104  ac_status=$?
15105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106  (exit $ac_status); }; } &&
15107	 { ac_try='test -s conftest$ac_exeext'
15108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109  (eval $ac_try) 2>&5
15110  ac_status=$?
15111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112  (exit $ac_status); }; }; then
15113  ac_cv_lib_dld_dld_link=yes
15114else
15115  echo "$as_me: failed program was:" >&5
15116sed 's/^/| /' conftest.$ac_ext >&5
15117
15118ac_cv_lib_dld_dld_link=no
15119fi
15120rm -f conftest.err conftest.$ac_objext \
15121      conftest$ac_exeext conftest.$ac_ext
15122LIBS=$ac_check_lib_save_LIBS
15123fi
15124echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15125echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15126if test $ac_cv_lib_dld_dld_link = yes; then
15127  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15128fi
15129
15130
15131fi
15132
15133
15134fi
15135
15136
15137fi
15138
15139
15140fi
15141
15142
15143fi
15144
15145    ;;
15146  esac
15147
15148  if test "x$lt_cv_dlopen" != xno; then
15149    enable_dlopen=yes
15150  else
15151    enable_dlopen=no
15152  fi
15153
15154  case $lt_cv_dlopen in
15155  dlopen)
15156    save_CPPFLAGS="$CPPFLAGS"
15157    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15158
15159    save_LDFLAGS="$LDFLAGS"
15160    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15161
15162    save_LIBS="$LIBS"
15163    LIBS="$lt_cv_dlopen_libs $LIBS"
15164
15165    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15166echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15167if test "${lt_cv_dlopen_self+set}" = set; then
15168  echo $ECHO_N "(cached) $ECHO_C" >&6
15169else
15170  	  if test "$cross_compiling" = yes; then :
15171  lt_cv_dlopen_self=cross
15172else
15173  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15174  lt_status=$lt_dlunknown
15175  cat > conftest.$ac_ext <<EOF
15176#line 15176 "configure"
15177#include "confdefs.h"
15178
15179#if HAVE_DLFCN_H
15180#include <dlfcn.h>
15181#endif
15182
15183#include <stdio.h>
15184
15185#ifdef RTLD_GLOBAL
15186#  define LT_DLGLOBAL		RTLD_GLOBAL
15187#else
15188#  ifdef DL_GLOBAL
15189#    define LT_DLGLOBAL		DL_GLOBAL
15190#  else
15191#    define LT_DLGLOBAL		0
15192#  endif
15193#endif
15194
15195/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15196   find out it does not work in some platform. */
15197#ifndef LT_DLLAZY_OR_NOW
15198#  ifdef RTLD_LAZY
15199#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15200#  else
15201#    ifdef DL_LAZY
15202#      define LT_DLLAZY_OR_NOW		DL_LAZY
15203#    else
15204#      ifdef RTLD_NOW
15205#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15206#      else
15207#        ifdef DL_NOW
15208#          define LT_DLLAZY_OR_NOW	DL_NOW
15209#        else
15210#          define LT_DLLAZY_OR_NOW	0
15211#        endif
15212#      endif
15213#    endif
15214#  endif
15215#endif
15216
15217#ifdef __cplusplus
15218extern "C" void exit (int);
15219#endif
15220
15221void fnord() { int i=42;}
15222int main ()
15223{
15224  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15225  int status = $lt_dlunknown;
15226
15227  if (self)
15228    {
15229      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15230      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15231      /* dlclose (self); */
15232    }
15233
15234    exit (status);
15235}
15236EOF
15237  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15238  (eval $ac_link) 2>&5
15239  ac_status=$?
15240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15242    (./conftest; exit; ) 2>/dev/null
15243    lt_status=$?
15244    case x$lt_status in
15245      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15246      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15247      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15248    esac
15249  else :
15250    # compilation failed
15251    lt_cv_dlopen_self=no
15252  fi
15253fi
15254rm -fr conftest*
15255
15256
15257fi
15258echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15259echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15260
15261    if test "x$lt_cv_dlopen_self" = xyes; then
15262      LDFLAGS="$LDFLAGS $link_static_flag"
15263      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15264echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15265if test "${lt_cv_dlopen_self_static+set}" = set; then
15266  echo $ECHO_N "(cached) $ECHO_C" >&6
15267else
15268  	  if test "$cross_compiling" = yes; then :
15269  lt_cv_dlopen_self_static=cross
15270else
15271  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15272  lt_status=$lt_dlunknown
15273  cat > conftest.$ac_ext <<EOF
15274#line 15274 "configure"
15275#include "confdefs.h"
15276
15277#if HAVE_DLFCN_H
15278#include <dlfcn.h>
15279#endif
15280
15281#include <stdio.h>
15282
15283#ifdef RTLD_GLOBAL
15284#  define LT_DLGLOBAL		RTLD_GLOBAL
15285#else
15286#  ifdef DL_GLOBAL
15287#    define LT_DLGLOBAL		DL_GLOBAL
15288#  else
15289#    define LT_DLGLOBAL		0
15290#  endif
15291#endif
15292
15293/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15294   find out it does not work in some platform. */
15295#ifndef LT_DLLAZY_OR_NOW
15296#  ifdef RTLD_LAZY
15297#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15298#  else
15299#    ifdef DL_LAZY
15300#      define LT_DLLAZY_OR_NOW		DL_LAZY
15301#    else
15302#      ifdef RTLD_NOW
15303#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15304#      else
15305#        ifdef DL_NOW
15306#          define LT_DLLAZY_OR_NOW	DL_NOW
15307#        else
15308#          define LT_DLLAZY_OR_NOW	0
15309#        endif
15310#      endif
15311#    endif
15312#  endif
15313#endif
15314
15315#ifdef __cplusplus
15316extern "C" void exit (int);
15317#endif
15318
15319void fnord() { int i=42;}
15320int main ()
15321{
15322  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15323  int status = $lt_dlunknown;
15324
15325  if (self)
15326    {
15327      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15328      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15329      /* dlclose (self); */
15330    }
15331
15332    exit (status);
15333}
15334EOF
15335  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15336  (eval $ac_link) 2>&5
15337  ac_status=$?
15338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15340    (./conftest; exit; ) 2>/dev/null
15341    lt_status=$?
15342    case x$lt_status in
15343      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15344      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15345      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15346    esac
15347  else :
15348    # compilation failed
15349    lt_cv_dlopen_self_static=no
15350  fi
15351fi
15352rm -fr conftest*
15353
15354
15355fi
15356echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15357echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15358    fi
15359
15360    CPPFLAGS="$save_CPPFLAGS"
15361    LDFLAGS="$save_LDFLAGS"
15362    LIBS="$save_LIBS"
15363    ;;
15364  esac
15365
15366  case $lt_cv_dlopen_self in
15367  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15368  *) enable_dlopen_self=unknown ;;
15369  esac
15370
15371  case $lt_cv_dlopen_self_static in
15372  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15373  *) enable_dlopen_self_static=unknown ;;
15374  esac
15375fi
15376
15377
15378# Report which librarie types wil actually be built
15379echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15380echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15381echo "$as_me:$LINENO: result: $can_build_shared" >&5
15382echo "${ECHO_T}$can_build_shared" >&6
15383
15384echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15385echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15386test "$can_build_shared" = "no" && enable_shared=no
15387
15388# On AIX, shared libraries and static libraries use the same namespace, and
15389# are all built from PIC.
15390case "$host_os" in
15391aix3*)
15392  test "$enable_shared" = yes && enable_static=no
15393  if test -n "$RANLIB"; then
15394    archive_cmds="$archive_cmds~\$RANLIB \$lib"
15395    postinstall_cmds='$RANLIB $lib'
15396  fi
15397  ;;
15398
15399aix4* | aix5*)
15400  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15401    test "$enable_shared" = yes && enable_static=no
15402  fi
15403  ;;
15404  darwin* | rhapsody*)
15405  if test "$GCC" = yes; then
15406    archive_cmds_need_lc=no
15407    case "$host_os" in
15408    rhapsody* | darwin1.[012])
15409      allow_undefined_flag='-undefined suppress'
15410      ;;
15411    *) # Darwin 1.3 on
15412      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15413      	allow_undefined_flag='-flat_namespace -undefined suppress'
15414      else
15415        case ${MACOSX_DEPLOYMENT_TARGET} in
15416          10.[012])
15417            allow_undefined_flag='-flat_namespace -undefined suppress'
15418            ;;
15419          10.*)
15420            allow_undefined_flag='-undefined dynamic_lookup'
15421            ;;
15422        esac
15423      fi
15424      ;;
15425    esac
15426    output_verbose_link_cmd='echo'
15427    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
15428    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15429    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15430    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}'
15431    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}'
15432    hardcode_direct=no
15433    hardcode_automatic=yes
15434    hardcode_shlibpath_var=unsupported
15435    whole_archive_flag_spec='-all_load $convenience'
15436    link_all_deplibs=yes
15437  else
15438    ld_shlibs=no
15439  fi
15440    ;;
15441esac
15442echo "$as_me:$LINENO: result: $enable_shared" >&5
15443echo "${ECHO_T}$enable_shared" >&6
15444
15445echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15446echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15447# Make sure either enable_shared or enable_static is yes.
15448test "$enable_shared" = yes || enable_static=yes
15449echo "$as_me:$LINENO: result: $enable_static" >&5
15450echo "${ECHO_T}$enable_static" >&6
15451
15452# The else clause should only fire when bootstrapping the
15453# libtool distribution, otherwise you forgot to ship ltmain.sh
15454# with your package, and you will get complaints that there are
15455# no rules to generate ltmain.sh.
15456if test -f "$ltmain"; then
15457  # See if we are running on zsh, and set the options which allow our commands through
15458  # without removal of \ escapes.
15459  if test -n "${ZSH_VERSION+set}" ; then
15460    setopt NO_GLOB_SUBST
15461  fi
15462  # Now quote all the things that may contain metacharacters while being
15463  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15464  # variables and quote the copies for generation of the libtool script.
15465  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15466    SED SHELL STRIP \
15467    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15468    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15469    deplibs_check_method reload_flag reload_cmds need_locks \
15470    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15471    lt_cv_sys_global_symbol_to_c_name_address \
15472    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15473    old_postinstall_cmds old_postuninstall_cmds \
15474    compiler \
15475    CC \
15476    LD \
15477    lt_prog_compiler_wl \
15478    lt_prog_compiler_pic \
15479    lt_prog_compiler_static \
15480    lt_prog_compiler_no_builtin_flag \
15481    export_dynamic_flag_spec \
15482    thread_safe_flag_spec \
15483    whole_archive_flag_spec \
15484    enable_shared_with_static_runtimes \
15485    old_archive_cmds \
15486    old_archive_from_new_cmds \
15487    predep_objects \
15488    postdep_objects \
15489    predeps \
15490    postdeps \
15491    compiler_lib_search_path \
15492    archive_cmds \
15493    archive_expsym_cmds \
15494    postinstall_cmds \
15495    postuninstall_cmds \
15496    old_archive_from_expsyms_cmds \
15497    allow_undefined_flag \
15498    no_undefined_flag \
15499    export_symbols_cmds \
15500    hardcode_libdir_flag_spec \
15501    hardcode_libdir_flag_spec_ld \
15502    hardcode_libdir_separator \
15503    hardcode_automatic \
15504    module_cmds \
15505    module_expsym_cmds \
15506    lt_cv_prog_compiler_c_o \
15507    exclude_expsyms \
15508    include_expsyms; do
15509
15510    case $var in
15511    old_archive_cmds | \
15512    old_archive_from_new_cmds | \
15513    archive_cmds | \
15514    archive_expsym_cmds | \
15515    module_cmds | \
15516    module_expsym_cmds | \
15517    old_archive_from_expsyms_cmds | \
15518    export_symbols_cmds | \
15519    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15520    postinstall_cmds | postuninstall_cmds | \
15521    old_postinstall_cmds | old_postuninstall_cmds | \
15522    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15523      # Double-quote double-evaled strings.
15524      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15525      ;;
15526    *)
15527      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15528      ;;
15529    esac
15530  done
15531
15532  case $lt_echo in
15533  *'\$0 --fallback-echo"')
15534    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15535    ;;
15536  esac
15537
15538cfgfile="${ofile}T"
15539  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15540  $rm -f "$cfgfile"
15541  { echo "$as_me:$LINENO: creating $ofile" >&5
15542echo "$as_me: creating $ofile" >&6;}
15543
15544  cat <<__EOF__ >> "$cfgfile"
15545#! $SHELL
15546
15547# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15548# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
15549# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15550#
15551# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
15552# Free Software Foundation, Inc.
15553#
15554# This file is part of GNU Libtool:
15555# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15556#
15557# This program is free software; you can redistribute it and/or modify
15558# it under the terms of the GNU General Public License as published by
15559# the Free Software Foundation; either version 2 of the License, or
15560# (at your option) any later version.
15561#
15562# This program is distributed in the hope that it will be useful, but
15563# WITHOUT ANY WARRANTY; without even the implied warranty of
15564# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15565# General Public License for more details.
15566#
15567# You should have received a copy of the GNU General Public License
15568# along with this program; if not, write to the Free Software
15569# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15570#
15571# As a special exception to the GNU General Public License, if you
15572# distribute this file as part of a program that contains a
15573# configuration script generated by Autoconf, you may include it under
15574# the same distribution terms that you use for the rest of that program.
15575
15576# A sed program that does not truncate output.
15577SED=$lt_SED
15578
15579# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15580Xsed="$SED -e s/^X//"
15581
15582# The HP-UX ksh and POSIX shell print the target directory to stdout
15583# if CDPATH is set.
15584if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
15585
15586# The names of the tagged configurations supported by this script.
15587available_tags=
15588
15589# ### BEGIN LIBTOOL CONFIG
15590
15591# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15592
15593# Shell to use when invoking shell scripts.
15594SHELL=$lt_SHELL
15595
15596# Whether or not to build shared libraries.
15597build_libtool_libs=$enable_shared
15598
15599# Whether or not to build static libraries.
15600build_old_libs=$enable_static
15601
15602# Whether or not to add -lc for building shared libraries.
15603build_libtool_need_lc=$archive_cmds_need_lc
15604
15605# Whether or not to disallow shared libs when runtime libs are static
15606allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15607
15608# Whether or not to optimize for fast installation.
15609fast_install=$enable_fast_install
15610
15611# The host system.
15612host_alias=$host_alias
15613host=$host
15614
15615# An echo program that does not interpret backslashes.
15616echo=$lt_echo
15617
15618# The archiver.
15619AR=$lt_AR
15620AR_FLAGS=$lt_AR_FLAGS
15621
15622# A C compiler.
15623LTCC=$lt_LTCC
15624
15625# A language-specific compiler.
15626CC=$lt_compiler
15627
15628# Is the compiler the GNU C compiler?
15629with_gcc=$GCC
15630
15631# An ERE matcher.
15632EGREP=$lt_EGREP
15633
15634# The linker used to build libraries.
15635LD=$lt_LD
15636
15637# Whether we need hard or soft links.
15638LN_S=$lt_LN_S
15639
15640# A BSD-compatible nm program.
15641NM=$lt_NM
15642
15643# A symbol stripping program
15644STRIP=$lt_STRIP
15645
15646# Used to examine libraries when file_magic_cmd begins "file"
15647MAGIC_CMD=$MAGIC_CMD
15648
15649# Used on cygwin: DLL creation program.
15650DLLTOOL="$DLLTOOL"
15651
15652# Used on cygwin: object dumper.
15653OBJDUMP="$OBJDUMP"
15654
15655# Used on cygwin: assembler.
15656AS="$AS"
15657
15658# The name of the directory that contains temporary libtool files.
15659objdir=$objdir
15660
15661# How to create reloadable object files.
15662reload_flag=$lt_reload_flag
15663reload_cmds=$lt_reload_cmds
15664
15665# How to pass a linker flag through the compiler.
15666wl=$lt_lt_prog_compiler_wl
15667
15668# Object file suffix (normally "o").
15669objext="$ac_objext"
15670
15671# Old archive suffix (normally "a").
15672libext="$libext"
15673
15674# Shared library suffix (normally ".so").
15675shrext_cmds='$shrext_cmds'
15676
15677# Executable file suffix (normally "").
15678exeext="$exeext"
15679
15680# Additional compiler flags for building library objects.
15681pic_flag=$lt_lt_prog_compiler_pic
15682pic_mode=$pic_mode
15683
15684# What is the maximum length of a command?
15685max_cmd_len=$lt_cv_sys_max_cmd_len
15686
15687# Does compiler simultaneously support -c and -o options?
15688compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15689
15690# Must we lock files when doing compilation ?
15691need_locks=$lt_need_locks
15692
15693# Do we need the lib prefix for modules?
15694need_lib_prefix=$need_lib_prefix
15695
15696# Do we need a version for libraries?
15697need_version=$need_version
15698
15699# Whether dlopen is supported.
15700dlopen_support=$enable_dlopen
15701
15702# Whether dlopen of programs is supported.
15703dlopen_self=$enable_dlopen_self
15704
15705# Whether dlopen of statically linked programs is supported.
15706dlopen_self_static=$enable_dlopen_self_static
15707
15708# Compiler flag to prevent dynamic linking.
15709link_static_flag=$lt_lt_prog_compiler_static
15710
15711# Compiler flag to turn off builtin functions.
15712no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15713
15714# Compiler flag to allow reflexive dlopens.
15715export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15716
15717# Compiler flag to generate shared objects directly from archives.
15718whole_archive_flag_spec=$lt_whole_archive_flag_spec
15719
15720# Compiler flag to generate thread-safe objects.
15721thread_safe_flag_spec=$lt_thread_safe_flag_spec
15722
15723# Library versioning type.
15724version_type=$version_type
15725
15726# Format of library name prefix.
15727libname_spec=$lt_libname_spec
15728
15729# List of archive names.  First name is the real one, the rest are links.
15730# The last name is the one that the linker finds with -lNAME.
15731library_names_spec=$lt_library_names_spec
15732
15733# The coded name of the library, if different from the real name.
15734soname_spec=$lt_soname_spec
15735
15736# Commands used to build and install an old-style archive.
15737RANLIB=$lt_RANLIB
15738old_archive_cmds=$lt_old_archive_cmds
15739old_postinstall_cmds=$lt_old_postinstall_cmds
15740old_postuninstall_cmds=$lt_old_postuninstall_cmds
15741
15742# Create an old-style archive from a shared archive.
15743old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15744
15745# Create a temporary old-style archive to link instead of a shared archive.
15746old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15747
15748# Commands used to build and install a shared archive.
15749archive_cmds=$lt_archive_cmds
15750archive_expsym_cmds=$lt_archive_expsym_cmds
15751postinstall_cmds=$lt_postinstall_cmds
15752postuninstall_cmds=$lt_postuninstall_cmds
15753
15754# Commands used to build a loadable module (assumed same as above if empty)
15755module_cmds=$lt_module_cmds
15756module_expsym_cmds=$lt_module_expsym_cmds
15757
15758# Commands to strip libraries.
15759old_striplib=$lt_old_striplib
15760striplib=$lt_striplib
15761
15762# Dependencies to place before the objects being linked to create a
15763# shared library.
15764predep_objects=$lt_predep_objects
15765
15766# Dependencies to place after the objects being linked to create a
15767# shared library.
15768postdep_objects=$lt_postdep_objects
15769
15770# Dependencies to place before the objects being linked to create a
15771# shared library.
15772predeps=$lt_predeps
15773
15774# Dependencies to place after the objects being linked to create a
15775# shared library.
15776postdeps=$lt_postdeps
15777
15778# The library search path used internally by the compiler when linking
15779# a shared library.
15780compiler_lib_search_path=$lt_compiler_lib_search_path
15781
15782# Method to check whether dependent libraries are shared objects.
15783deplibs_check_method=$lt_deplibs_check_method
15784
15785# Command to use when deplibs_check_method == file_magic.
15786file_magic_cmd=$lt_file_magic_cmd
15787
15788# Flag that allows shared libraries with undefined symbols to be built.
15789allow_undefined_flag=$lt_allow_undefined_flag
15790
15791# Flag that forces no undefined symbols.
15792no_undefined_flag=$lt_no_undefined_flag
15793
15794# Commands used to finish a libtool library installation in a directory.
15795finish_cmds=$lt_finish_cmds
15796
15797# Same as above, but a single script fragment to be evaled but not shown.
15798finish_eval=$lt_finish_eval
15799
15800# Take the output of nm and produce a listing of raw symbols and C names.
15801global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15802
15803# Transform the output of nm in a proper C declaration
15804global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15805
15806# Transform the output of nm in a C name address pair
15807global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15808
15809# This is the shared library runtime path variable.
15810runpath_var=$runpath_var
15811
15812# This is the shared library path variable.
15813shlibpath_var=$shlibpath_var
15814
15815# Is shlibpath searched before the hard-coded library search path?
15816shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15817
15818# How to hardcode a shared library path into an executable.
15819hardcode_action=$hardcode_action
15820
15821# Whether we should hardcode library paths into libraries.
15822hardcode_into_libs=$hardcode_into_libs
15823
15824# Flag to hardcode \$libdir into a binary during linking.
15825# This must work even if \$libdir does not exist.
15826hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15827
15828# If ld is used when linking, flag to hardcode \$libdir into
15829# a binary during linking. This must work even if \$libdir does
15830# not exist.
15831hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15832
15833# Whether we need a single -rpath flag with a separated argument.
15834hardcode_libdir_separator=$lt_hardcode_libdir_separator
15835
15836# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15837# resulting binary.
15838hardcode_direct=$hardcode_direct
15839
15840# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15841# resulting binary.
15842hardcode_minus_L=$hardcode_minus_L
15843
15844# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15845# the resulting binary.
15846hardcode_shlibpath_var=$hardcode_shlibpath_var
15847
15848# Set to yes if building a shared library automatically hardcodes DIR into the library
15849# and all subsequent libraries and executables linked against it.
15850hardcode_automatic=$hardcode_automatic
15851
15852# Variables whose values should be saved in libtool wrapper scripts and
15853# restored at relink time.
15854variables_saved_for_relink="$variables_saved_for_relink"
15855
15856# Whether libtool must link a program against all its dependency libraries.
15857link_all_deplibs=$link_all_deplibs
15858
15859# Compile-time system search path for libraries
15860sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15861
15862# Run-time system search path for libraries
15863sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15864
15865# Fix the shell variable \$srcfile for the compiler.
15866fix_srcfile_path="$fix_srcfile_path"
15867
15868# Set to yes if exported symbols are required.
15869always_export_symbols=$always_export_symbols
15870
15871# The commands to list exported symbols.
15872export_symbols_cmds=$lt_export_symbols_cmds
15873
15874# The commands to extract the exported symbol list from a shared archive.
15875extract_expsyms_cmds=$lt_extract_expsyms_cmds
15876
15877# Symbols that should not be listed in the preloaded symbols.
15878exclude_expsyms=$lt_exclude_expsyms
15879
15880# Symbols that must always be exported.
15881include_expsyms=$lt_include_expsyms
15882
15883# ### END LIBTOOL CONFIG
15884
15885__EOF__
15886
15887
15888  case $host_os in
15889  aix3*)
15890    cat <<\EOF >> "$cfgfile"
15891
15892# AIX sometimes has problems with the GCC collect2 program.  For some
15893# reason, if we set the COLLECT_NAMES environment variable, the problems
15894# vanish in a puff of smoke.
15895if test "X${COLLECT_NAMES+set}" != Xset; then
15896  COLLECT_NAMES=
15897  export COLLECT_NAMES
15898fi
15899EOF
15900    ;;
15901  esac
15902
15903  # We use sed instead of cat because bash on DJGPP gets confused if
15904  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15905  # text mode, it properly converts lines to CR/LF.  This bash problem
15906  # is reportedly fixed, but why not run on old versions too?
15907  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15908
15909  mv -f "$cfgfile" "$ofile" || \
15910    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15911  chmod +x "$ofile"
15912
15913else
15914  # If there is no Makefile yet, we rely on a make rule to execute
15915  # `config.status --recheck' to rerun these tests and create the
15916  # libtool script then.
15917  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15918  if test -f "$ltmain_in"; then
15919    test -f Makefile && make "$ltmain"
15920  fi
15921fi
15922
15923
15924ac_ext=c
15925ac_cpp='$CPP $CPPFLAGS'
15926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15928ac_compiler_gnu=$ac_cv_c_compiler_gnu
15929
15930CC="$lt_save_CC"
15931
15932
15933# Check whether --with-tags or --without-tags was given.
15934if test "${with_tags+set}" = set; then
15935  withval="$with_tags"
15936  tagnames="$withval"
15937fi;
15938
15939if test -f "$ltmain" && test -n "$tagnames"; then
15940  if test ! -f "${ofile}"; then
15941    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15942echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15943  fi
15944
15945  if test -z "$LTCC"; then
15946    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15947    if test -z "$LTCC"; then
15948      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15949echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15950    else
15951      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15952echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15953    fi
15954  fi
15955
15956  # Extract list of available tagged configurations in $ofile.
15957  # Note that this assumes the entire list is on one line.
15958  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15959
15960  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15961  for tagname in $tagnames; do
15962    IFS="$lt_save_ifs"
15963    # Check whether tagname contains only valid characters
15964    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15965    "") ;;
15966    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15967echo "$as_me: error: invalid tag name: $tagname" >&2;}
15968   { (exit 1); exit 1; }; }
15969	;;
15970    esac
15971
15972    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15973    then
15974      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15975echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15976   { (exit 1); exit 1; }; }
15977    fi
15978
15979    # Update the list of available tags.
15980    if test -n "$tagname"; then
15981      echo appending configuration tag \"$tagname\" to $ofile
15982
15983      case $tagname in
15984      CXX)
15985	if test -n "$CXX" && test "X$CXX" != "Xno"; then
15986	  ac_ext=cc
15987ac_cpp='$CXXCPP $CPPFLAGS'
15988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15991
15992
15993
15994
15995archive_cmds_need_lc_CXX=no
15996allow_undefined_flag_CXX=
15997always_export_symbols_CXX=no
15998archive_expsym_cmds_CXX=
15999export_dynamic_flag_spec_CXX=
16000hardcode_direct_CXX=no
16001hardcode_libdir_flag_spec_CXX=
16002hardcode_libdir_flag_spec_ld_CXX=
16003hardcode_libdir_separator_CXX=
16004hardcode_minus_L_CXX=no
16005hardcode_automatic_CXX=no
16006module_cmds_CXX=
16007module_expsym_cmds_CXX=
16008link_all_deplibs_CXX=unknown
16009old_archive_cmds_CXX=$old_archive_cmds
16010no_undefined_flag_CXX=
16011whole_archive_flag_spec_CXX=
16012enable_shared_with_static_runtimes_CXX=no
16013
16014# Dependencies to place before and after the object being linked:
16015predep_objects_CXX=
16016postdep_objects_CXX=
16017predeps_CXX=
16018postdeps_CXX=
16019compiler_lib_search_path_CXX=
16020
16021# Source file extension for C++ test sources.
16022ac_ext=cc
16023
16024# Object file extension for compiled C++ test sources.
16025objext=o
16026objext_CXX=$objext
16027
16028# Code to be used in simple compile tests
16029lt_simple_compile_test_code="int some_variable = 0;\n"
16030
16031# Code to be used in simple link tests
16032lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
16033
16034# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16035
16036# If no C compiler was specified, use CC.
16037LTCC=${LTCC-"$CC"}
16038
16039# Allow CC to be a program name with arguments.
16040compiler=$CC
16041
16042
16043# Allow CC to be a program name with arguments.
16044lt_save_CC=$CC
16045lt_save_LD=$LD
16046lt_save_GCC=$GCC
16047GCC=$GXX
16048lt_save_with_gnu_ld=$with_gnu_ld
16049lt_save_path_LD=$lt_cv_path_LD
16050if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16051  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16052else
16053  unset lt_cv_prog_gnu_ld
16054fi
16055if test -n "${lt_cv_path_LDCXX+set}"; then
16056  lt_cv_path_LD=$lt_cv_path_LDCXX
16057else
16058  unset lt_cv_path_LD
16059fi
16060test -z "${LDCXX+set}" || LD=$LDCXX
16061CC=${CXX-"c++"}
16062compiler=$CC
16063compiler_CXX=$CC
16064cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
16065
16066# We don't want -fno-exception wen compiling C++ code, so set the
16067# no_builtin_flag separately
16068if test "$GXX" = yes; then
16069  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16070else
16071  lt_prog_compiler_no_builtin_flag_CXX=
16072fi
16073
16074if test "$GXX" = yes; then
16075  # Set up default GNU C++ configuration
16076
16077
16078# Check whether --with-gnu-ld or --without-gnu-ld was given.
16079if test "${with_gnu_ld+set}" = set; then
16080  withval="$with_gnu_ld"
16081  test "$withval" = no || with_gnu_ld=yes
16082else
16083  with_gnu_ld=no
16084fi;
16085ac_prog=ld
16086if test "$GCC" = yes; then
16087  # Check if gcc -print-prog-name=ld gives a path.
16088  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
16089echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
16090  case $host in
16091  *-*-mingw*)
16092    # gcc leaves a trailing carriage return which upsets mingw
16093    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16094  *)
16095    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16096  esac
16097  case $ac_prog in
16098    # Accept absolute paths.
16099    [\\/]* | ?:[\\/]*)
16100      re_direlt='/[^/][^/]*/\.\./'
16101      # Canonicalize the pathname of ld
16102      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
16103      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16104	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
16105      done
16106      test -z "$LD" && LD="$ac_prog"
16107      ;;
16108  "")
16109    # If it fails, then pretend we aren't using GCC.
16110    ac_prog=ld
16111    ;;
16112  *)
16113    # If it is relative, then search for the first ld in PATH.
16114    with_gnu_ld=unknown
16115    ;;
16116  esac
16117elif test "$with_gnu_ld" = yes; then
16118  echo "$as_me:$LINENO: checking for GNU ld" >&5
16119echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16120else
16121  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16122echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16123fi
16124if test "${lt_cv_path_LD+set}" = set; then
16125  echo $ECHO_N "(cached) $ECHO_C" >&6
16126else
16127  if test -z "$LD"; then
16128  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16129  for ac_dir in $PATH; do
16130    IFS="$lt_save_ifs"
16131    test -z "$ac_dir" && ac_dir=.
16132    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16133      lt_cv_path_LD="$ac_dir/$ac_prog"
16134      # Check to see if the program is GNU ld.  I'd rather use --version,
16135      # but apparently some GNU ld's only accept -v.
16136      # Break only if it was the GNU/non-GNU ld that we prefer.
16137      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16138      *GNU* | *'with BFD'*)
16139	test "$with_gnu_ld" != no && break
16140	;;
16141      *)
16142	test "$with_gnu_ld" != yes && break
16143	;;
16144      esac
16145    fi
16146  done
16147  IFS="$lt_save_ifs"
16148else
16149  lt_cv_path_LD="$LD" # Let the user override the test with a path.
16150fi
16151fi
16152
16153LD="$lt_cv_path_LD"
16154if test -n "$LD"; then
16155  echo "$as_me:$LINENO: result: $LD" >&5
16156echo "${ECHO_T}$LD" >&6
16157else
16158  echo "$as_me:$LINENO: result: no" >&5
16159echo "${ECHO_T}no" >&6
16160fi
16161test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16162echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16163   { (exit 1); exit 1; }; }
16164echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16165echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16166if test "${lt_cv_prog_gnu_ld+set}" = set; then
16167  echo $ECHO_N "(cached) $ECHO_C" >&6
16168else
16169  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16170case `$LD -v 2>&1 </dev/null` in
16171*GNU* | *'with BFD'*)
16172  lt_cv_prog_gnu_ld=yes
16173  ;;
16174*)
16175  lt_cv_prog_gnu_ld=no
16176  ;;
16177esac
16178fi
16179echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
16180echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
16181with_gnu_ld=$lt_cv_prog_gnu_ld
16182
16183
16184
16185  # Check if GNU C++ uses GNU ld as the underlying linker, since the
16186  # archiving commands below assume that GNU ld is being used.
16187  if test "$with_gnu_ld" = yes; then
16188    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16189    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'
16190
16191    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16192    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16193
16194    # If archive_cmds runs LD, not CC, wlarc should be empty
16195    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16196    #     investigate it a little bit more. (MM)
16197    wlarc='${wl}'
16198
16199    # ancient GNU ld didn't support --whole-archive et. al.
16200    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
16201	grep 'no-whole-archive' > /dev/null; then
16202      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16203    else
16204      whole_archive_flag_spec_CXX=
16205    fi
16206  else
16207    with_gnu_ld=no
16208    wlarc=
16209
16210    # A generic and very simple default shared library creation
16211    # command for GNU C++ for the case where it uses the native
16212    # linker, instead of GNU ld.  If possible, this setting should
16213    # overridden to take advantage of the native linker features on
16214    # the platform it is being used on.
16215    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16216  fi
16217
16218  # Commands to make compiler produce verbose output that lists
16219  # what "hidden" libraries, object files and flags are used when
16220  # linking a shared library.
16221  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16222
16223else
16224  GXX=no
16225  with_gnu_ld=no
16226  wlarc=
16227fi
16228
16229# PORTME: fill in a description of your system's C++ link characteristics
16230echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16231echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16232ld_shlibs_CXX=yes
16233case $host_os in
16234  aix3*)
16235    # FIXME: insert proper C++ library support
16236    ld_shlibs_CXX=no
16237    ;;
16238  aix4* | aix5*)
16239    if test "$host_cpu" = ia64; then
16240      # On IA64, the linker does run time linking by default, so we don't
16241      # have to do anything special.
16242      aix_use_runtimelinking=no
16243      exp_sym_flag='-Bexport'
16244      no_entry_flag=""
16245    else
16246      aix_use_runtimelinking=no
16247
16248      # Test if we are trying to use run time linking or normal
16249      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16250      # need to do runtime linking.
16251      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16252	for ld_flag in $LDFLAGS; do
16253	  case $ld_flag in
16254	  *-brtl*)
16255	    aix_use_runtimelinking=yes
16256	    break
16257	    ;;
16258	  esac
16259	done
16260      esac
16261
16262      exp_sym_flag='-bexport'
16263      no_entry_flag='-bnoentry'
16264    fi
16265
16266    # When large executables or shared objects are built, AIX ld can
16267    # have problems creating the table of contents.  If linking a library
16268    # or program results in "error TOC overflow" add -mminimal-toc to
16269    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16270    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16271
16272    archive_cmds_CXX=''
16273    hardcode_direct_CXX=yes
16274    hardcode_libdir_separator_CXX=':'
16275    link_all_deplibs_CXX=yes
16276
16277    if test "$GXX" = yes; then
16278      case $host_os in aix4.012|aix4.012.*)
16279      # We only want to do this on AIX 4.2 and lower, the check
16280      # below for broken collect2 doesn't work under 4.3+
16281	collect2name=`${CC} -print-prog-name=collect2`
16282	if test -f "$collect2name" && \
16283	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16284	then
16285	  # We have reworked collect2
16286	  hardcode_direct_CXX=yes
16287	else
16288	  # We have old collect2
16289	  hardcode_direct_CXX=unsupported
16290	  # It fails to find uninstalled libraries when the uninstalled
16291	  # path is not listed in the libpath.  Setting hardcode_minus_L
16292	  # to unsupported forces relinking
16293	  hardcode_minus_L_CXX=yes
16294	  hardcode_libdir_flag_spec_CXX='-L$libdir'
16295	  hardcode_libdir_separator_CXX=
16296	fi
16297      esac
16298      shared_flag='-shared'
16299    else
16300      # not using gcc
16301      if test "$host_cpu" = ia64; then
16302	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16303	# chokes on -Wl,-G. The following line is correct:
16304	shared_flag='-G'
16305      else
16306	if test "$aix_use_runtimelinking" = yes; then
16307	  shared_flag='${wl}-G'
16308	else
16309	  shared_flag='${wl}-bM:SRE'
16310	fi
16311      fi
16312    fi
16313
16314    # It seems that -bexpall does not export symbols beginning with
16315    # underscore (_), so it is better to generate a list of symbols to export.
16316    always_export_symbols_CXX=yes
16317    if test "$aix_use_runtimelinking" = yes; then
16318      # Warning - without using the other runtime loading flags (-brtl),
16319      # -berok will link without error, but may produce a broken library.
16320      allow_undefined_flag_CXX='-berok'
16321      # Determine the default libpath from the value encoded in an empty executable.
16322      cat >conftest.$ac_ext <<_ACEOF
16323/* confdefs.h.  */
16324_ACEOF
16325cat confdefs.h >>conftest.$ac_ext
16326cat >>conftest.$ac_ext <<_ACEOF
16327/* end confdefs.h.  */
16328
16329int
16330main ()
16331{
16332
16333  ;
16334  return 0;
16335}
16336_ACEOF
16337rm -f conftest.$ac_objext conftest$ac_exeext
16338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16339  (eval $ac_link) 2>conftest.er1
16340  ac_status=$?
16341  grep -v '^ *+' conftest.er1 >conftest.err
16342  rm -f conftest.er1
16343  cat conftest.err >&5
16344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345  (exit $ac_status); } &&
16346	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
16347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348  (eval $ac_try) 2>&5
16349  ac_status=$?
16350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351  (exit $ac_status); }; } &&
16352	 { ac_try='test -s conftest$ac_exeext'
16353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354  (eval $ac_try) 2>&5
16355  ac_status=$?
16356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357  (exit $ac_status); }; }; then
16358
16359aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16360}'`
16361# Check for a 64-bit object if we didn't find anything.
16362if 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; }
16363}'`; fi
16364else
16365  echo "$as_me: failed program was:" >&5
16366sed 's/^/| /' conftest.$ac_ext >&5
16367
16368fi
16369rm -f conftest.err conftest.$ac_objext \
16370      conftest$ac_exeext conftest.$ac_ext
16371if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16372
16373      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16374
16375      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"
16376     else
16377      if test "$host_cpu" = ia64; then
16378	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16379	allow_undefined_flag_CXX="-z nodefs"
16380	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"
16381      else
16382	# Determine the default libpath from the value encoded in an empty executable.
16383	cat >conftest.$ac_ext <<_ACEOF
16384/* confdefs.h.  */
16385_ACEOF
16386cat confdefs.h >>conftest.$ac_ext
16387cat >>conftest.$ac_ext <<_ACEOF
16388/* end confdefs.h.  */
16389
16390int
16391main ()
16392{
16393
16394  ;
16395  return 0;
16396}
16397_ACEOF
16398rm -f conftest.$ac_objext conftest$ac_exeext
16399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16400  (eval $ac_link) 2>conftest.er1
16401  ac_status=$?
16402  grep -v '^ *+' conftest.er1 >conftest.err
16403  rm -f conftest.er1
16404  cat conftest.err >&5
16405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406  (exit $ac_status); } &&
16407	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
16408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409  (eval $ac_try) 2>&5
16410  ac_status=$?
16411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412  (exit $ac_status); }; } &&
16413	 { ac_try='test -s conftest$ac_exeext'
16414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415  (eval $ac_try) 2>&5
16416  ac_status=$?
16417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418  (exit $ac_status); }; }; then
16419
16420aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16421}'`
16422# Check for a 64-bit object if we didn't find anything.
16423if 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; }
16424}'`; fi
16425else
16426  echo "$as_me: failed program was:" >&5
16427sed 's/^/| /' conftest.$ac_ext >&5
16428
16429fi
16430rm -f conftest.err conftest.$ac_objext \
16431      conftest$ac_exeext conftest.$ac_ext
16432if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16433
16434	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16435	# Warning - without using the other run time loading flags,
16436	# -berok will link without error, but may produce a broken library.
16437	no_undefined_flag_CXX=' ${wl}-bernotok'
16438	allow_undefined_flag_CXX=' ${wl}-berok'
16439	# -bexpall does not export symbols beginning with underscore (_)
16440	always_export_symbols_CXX=yes
16441	# Exported symbols can be pulled into shared objects from archives
16442	whole_archive_flag_spec_CXX=' '
16443	archive_cmds_need_lc_CXX=yes
16444	# This is similar to how AIX traditionally builds it's shared libraries.
16445	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'
16446      fi
16447    fi
16448    ;;
16449  chorus*)
16450    case $cc_basename in
16451      *)
16452	# FIXME: insert proper C++ library support
16453	ld_shlibs_CXX=no
16454	;;
16455    esac
16456    ;;
16457
16458  cygwin* | mingw* | pw32*)
16459    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16460    # as there is no search path for DLLs.
16461    hardcode_libdir_flag_spec_CXX='-L$libdir'
16462    allow_undefined_flag_CXX=unsupported
16463    always_export_symbols_CXX=no
16464    enable_shared_with_static_runtimes_CXX=yes
16465
16466    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16467      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'
16468      # If the export-symbols file already is a .def file (1st line
16469      # is EXPORTS), use it as is; otherwise, prepend...
16470      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16471	cp $export_symbols $output_objdir/$soname.def;
16472      else
16473	echo EXPORTS > $output_objdir/$soname.def;
16474	cat $export_symbols >> $output_objdir/$soname.def;
16475      fi~
16476      $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'
16477    else
16478      ld_shlibs_CXX=no
16479    fi
16480  ;;
16481
16482  darwin* | rhapsody*)
16483  if test "$GXX" = yes; then
16484    archive_cmds_need_lc_CXX=no
16485    case "$host_os" in
16486    rhapsody* | darwin1.[012])
16487      allow_undefined_flag_CXX='-undefined suppress'
16488      ;;
16489    *) # Darwin 1.3 on
16490      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16491      	allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
16492      else
16493        case ${MACOSX_DEPLOYMENT_TARGET} in
16494          10.[012])
16495            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
16496            ;;
16497          10.*)
16498            allow_undefined_flag_CXX='-undefined dynamic_lookup'
16499            ;;
16500        esac
16501      fi
16502      ;;
16503    esac
16504    lt_int_apple_cc_single_mod=no
16505    output_verbose_link_cmd='echo'
16506    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16507      lt_int_apple_cc_single_mod=yes
16508    fi
16509    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16510      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16511    else
16512      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
16513    fi
16514    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16515
16516    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16517    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16518      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}'
16519    else
16520      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16521    fi
16522    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}'
16523    hardcode_direct_CXX=no
16524    hardcode_automatic_CXX=yes
16525    hardcode_shlibpath_var_CXX=unsupported
16526    whole_archive_flag_spec_CXX='-all_load $convenience'
16527    link_all_deplibs_CXX=yes
16528  else
16529    ld_shlibs_CXX=no
16530  fi
16531    ;;
16532
16533  dgux*)
16534    case $cc_basename in
16535      ec++)
16536	# FIXME: insert proper C++ library support
16537	ld_shlibs_CXX=no
16538	;;
16539      ghcx)
16540	# Green Hills C++ Compiler
16541	# FIXME: insert proper C++ library support
16542	ld_shlibs_CXX=no
16543	;;
16544      *)
16545	# FIXME: insert proper C++ library support
16546	ld_shlibs_CXX=no
16547	;;
16548    esac
16549    ;;
16550  freebsd12*)
16551    # C++ shared libraries reported to be fairly broken before switch to ELF
16552    ld_shlibs_CXX=no
16553    ;;
16554  freebsd-elf*)
16555    archive_cmds_need_lc_CXX=no
16556    ;;
16557  freebsd* | kfreebsd*-gnu)
16558    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16559    # conventions
16560    ld_shlibs_CXX=yes
16561    ;;
16562  gnu*)
16563    ;;
16564  hpux9*)
16565    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16566    hardcode_libdir_separator_CXX=:
16567    export_dynamic_flag_spec_CXX='${wl}-E'
16568    hardcode_direct_CXX=yes
16569    hardcode_minus_L_CXX=yes # Not in the search PATH,
16570				# but as the default
16571				# location of the library.
16572
16573    case $cc_basename in
16574    CC)
16575      # FIXME: insert proper C++ library support
16576      ld_shlibs_CXX=no
16577      ;;
16578    aCC)
16579      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'
16580      # Commands to make compiler produce verbose output that lists
16581      # what "hidden" libraries, object files and flags are used when
16582      # linking a shared library.
16583      #
16584      # There doesn't appear to be a way to prevent this compiler from
16585      # explicitly linking system object files so we need to strip them
16586      # from the output so that they don't get included in the library
16587      # dependencies.
16588      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'
16589      ;;
16590    *)
16591      if test "$GXX" = yes; then
16592        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'
16593      else
16594        # FIXME: insert proper C++ library support
16595        ld_shlibs_CXX=no
16596      fi
16597      ;;
16598    esac
16599    ;;
16600  hpux10*|hpux11*)
16601    if test $with_gnu_ld = no; then
16602      case "$host_cpu" in
16603      hppa*64*)
16604	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16605	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
16606	hardcode_libdir_separator_CXX=:
16607        ;;
16608      ia64*)
16609	hardcode_libdir_flag_spec_CXX='-L$libdir'
16610        ;;
16611      *)
16612	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16613	hardcode_libdir_separator_CXX=:
16614	export_dynamic_flag_spec_CXX='${wl}-E'
16615        ;;
16616      esac
16617    fi
16618    case "$host_cpu" in
16619    hppa*64*)
16620      hardcode_direct_CXX=no
16621      hardcode_shlibpath_var_CXX=no
16622      ;;
16623    ia64*)
16624      hardcode_direct_CXX=no
16625      hardcode_shlibpath_var_CXX=no
16626      hardcode_minus_L_CXX=yes # Not in the search PATH,
16627					      # but as the default
16628					      # location of the library.
16629      ;;
16630    *)
16631      hardcode_direct_CXX=yes
16632      hardcode_minus_L_CXX=yes # Not in the search PATH,
16633					      # but as the default
16634					      # location of the library.
16635      ;;
16636    esac
16637
16638    case $cc_basename in
16639      CC)
16640	# FIXME: insert proper C++ library support
16641	ld_shlibs_CXX=no
16642	;;
16643      aCC)
16644	case "$host_cpu" in
16645	hppa*64*|ia64*)
16646	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16647	  ;;
16648	*)
16649	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16650	  ;;
16651	esac
16652	# Commands to make compiler produce verbose output that lists
16653	# what "hidden" libraries, object files and flags are used when
16654	# linking a shared library.
16655	#
16656	# There doesn't appear to be a way to prevent this compiler from
16657	# explicitly linking system object files so we need to strip them
16658	# from the output so that they don't get included in the library
16659	# dependencies.
16660	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'
16661	;;
16662      *)
16663	if test "$GXX" = yes; then
16664	  if test $with_gnu_ld = no; then
16665	    case "$host_cpu" in
16666	    ia64*|hppa*64*)
16667	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16668	      ;;
16669	    *)
16670	      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'
16671	      ;;
16672	    esac
16673	  fi
16674	else
16675	  # FIXME: insert proper C++ library support
16676	  ld_shlibs_CXX=no
16677	fi
16678	;;
16679    esac
16680    ;;
16681  irix5* | irix6*)
16682    case $cc_basename in
16683      CC)
16684	# SGI C++
16685	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'
16686
16687	# Archives containing C++ object files must be created using
16688	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16689	# necessary to make sure instantiated templates are included
16690	# in the archive.
16691	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16692	;;
16693      *)
16694	if test "$GXX" = yes; then
16695	  if test "$with_gnu_ld" = no; then
16696	    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'
16697	  else
16698	    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'
16699	  fi
16700	fi
16701	link_all_deplibs_CXX=yes
16702	;;
16703    esac
16704    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16705    hardcode_libdir_separator_CXX=:
16706    ;;
16707  linux*)
16708    case $cc_basename in
16709      KCC)
16710	# Kuck and Associates, Inc. (KAI) C++ Compiler
16711
16712	# KCC will only create a shared library if the output file
16713	# ends with ".so" (or ".sl" for HP-UX), so rename the library
16714	# to its proper name (with version) after linking.
16715	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'
16716	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'
16717	# Commands to make compiler produce verbose output that lists
16718	# what "hidden" libraries, object files and flags are used when
16719	# linking a shared library.
16720	#
16721	# There doesn't appear to be a way to prevent this compiler from
16722	# explicitly linking system object files so we need to strip them
16723	# from the output so that they don't get included in the library
16724	# dependencies.
16725	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'
16726
16727	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16728	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16729
16730	# Archives containing C++ object files must be created using
16731	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
16732	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16733	;;
16734      icpc)
16735	# Intel C++
16736	with_gnu_ld=yes
16737	archive_cmds_need_lc_CXX=no
16738	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16739	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'
16740	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16741	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16742	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16743	;;
16744      cxx)
16745	# Compaq C++
16746	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16747	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'
16748
16749	runpath_var=LD_RUN_PATH
16750	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16751	hardcode_libdir_separator_CXX=:
16752
16753	# Commands to make compiler produce verbose output that lists
16754	# what "hidden" libraries, object files and flags are used when
16755	# linking a shared library.
16756	#
16757	# There doesn't appear to be a way to prevent this compiler from
16758	# explicitly linking system object files so we need to strip them
16759	# from the output so that they don't get included in the library
16760	# dependencies.
16761	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'
16762	;;
16763    esac
16764    ;;
16765  lynxos*)
16766    # FIXME: insert proper C++ library support
16767    ld_shlibs_CXX=no
16768    ;;
16769  m88k*)
16770    # FIXME: insert proper C++ library support
16771    ld_shlibs_CXX=no
16772    ;;
16773  mvs*)
16774    case $cc_basename in
16775      cxx)
16776	# FIXME: insert proper C++ library support
16777	ld_shlibs_CXX=no
16778	;;
16779      *)
16780	# FIXME: insert proper C++ library support
16781	ld_shlibs_CXX=no
16782	;;
16783    esac
16784    ;;
16785  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16786    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16787      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16788      wlarc=
16789      hardcode_libdir_flag_spec_CXX='-R$libdir'
16790      hardcode_direct_CXX=yes
16791      hardcode_shlibpath_var_CXX=no
16792    fi
16793    # Workaround some broken pre-1.5 toolchains
16794    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16795    ;;
16796  osf3*)
16797    case $cc_basename in
16798      KCC)
16799	# Kuck and Associates, Inc. (KAI) C++ Compiler
16800
16801	# KCC will only create a shared library if the output file
16802	# ends with ".so" (or ".sl" for HP-UX), so rename the library
16803	# to its proper name (with version) after linking.
16804	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'
16805
16806	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16807	hardcode_libdir_separator_CXX=:
16808
16809	# Archives containing C++ object files must be created using
16810	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
16811	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16812
16813	;;
16814      RCC)
16815	# Rational C++ 2.4.1
16816	# FIXME: insert proper C++ library support
16817	ld_shlibs_CXX=no
16818	;;
16819      cxx)
16820	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16821	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'
16822
16823	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16824	hardcode_libdir_separator_CXX=:
16825
16826	# Commands to make compiler produce verbose output that lists
16827	# what "hidden" libraries, object files and flags are used when
16828	# linking a shared library.
16829	#
16830	# There doesn't appear to be a way to prevent this compiler from
16831	# explicitly linking system object files so we need to strip them
16832	# from the output so that they don't get included in the library
16833	# dependencies.
16834	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'
16835	;;
16836      *)
16837	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16838	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16839	  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'
16840
16841	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16842	  hardcode_libdir_separator_CXX=:
16843
16844	  # Commands to make compiler produce verbose output that lists
16845	  # what "hidden" libraries, object files and flags are used when
16846	  # linking a shared library.
16847	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16848
16849	else
16850	  # FIXME: insert proper C++ library support
16851	  ld_shlibs_CXX=no
16852	fi
16853	;;
16854    esac
16855    ;;
16856  osf4* | osf5*)
16857    case $cc_basename in
16858      KCC)
16859	# Kuck and Associates, Inc. (KAI) C++ Compiler
16860
16861	# KCC will only create a shared library if the output file
16862	# ends with ".so" (or ".sl" for HP-UX), so rename the library
16863	# to its proper name (with version) after linking.
16864	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'
16865
16866	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16867	hardcode_libdir_separator_CXX=:
16868
16869	# Archives containing C++ object files must be created using
16870	# the KAI C++ compiler.
16871	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16872	;;
16873      RCC)
16874	# Rational C++ 2.4.1
16875	# FIXME: insert proper C++ library support
16876	ld_shlibs_CXX=no
16877	;;
16878      cxx)
16879	allow_undefined_flag_CXX=' -expect_unresolved \*'
16880	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'
16881	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16882	  echo "-hidden">> $lib.exp~
16883	  $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~
16884	  $rm $lib.exp'
16885
16886	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16887	hardcode_libdir_separator_CXX=:
16888
16889	# Commands to make compiler produce verbose output that lists
16890	# what "hidden" libraries, object files and flags are used when
16891	# linking a shared library.
16892	#
16893	# There doesn't appear to be a way to prevent this compiler from
16894	# explicitly linking system object files so we need to strip them
16895	# from the output so that they don't get included in the library
16896	# dependencies.
16897	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'
16898	;;
16899      *)
16900	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16901	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16902	 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'
16903
16904	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16905	  hardcode_libdir_separator_CXX=:
16906
16907	  # Commands to make compiler produce verbose output that lists
16908	  # what "hidden" libraries, object files and flags are used when
16909	  # linking a shared library.
16910	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16911
16912	else
16913	  # FIXME: insert proper C++ library support
16914	  ld_shlibs_CXX=no
16915	fi
16916	;;
16917    esac
16918    ;;
16919  psos*)
16920    # FIXME: insert proper C++ library support
16921    ld_shlibs_CXX=no
16922    ;;
16923  sco*)
16924    archive_cmds_need_lc_CXX=no
16925    case $cc_basename in
16926      CC)
16927	# FIXME: insert proper C++ library support
16928	ld_shlibs_CXX=no
16929	;;
16930      *)
16931	# FIXME: insert proper C++ library support
16932	ld_shlibs_CXX=no
16933	;;
16934    esac
16935    ;;
16936  sunos4*)
16937    case $cc_basename in
16938      CC)
16939	# Sun C++ 4.x
16940	# FIXME: insert proper C++ library support
16941	ld_shlibs_CXX=no
16942	;;
16943      lcc)
16944	# Lucid
16945	# FIXME: insert proper C++ library support
16946	ld_shlibs_CXX=no
16947	;;
16948      *)
16949	# FIXME: insert proper C++ library support
16950	ld_shlibs_CXX=no
16951	;;
16952    esac
16953    ;;
16954  solaris*)
16955    case $cc_basename in
16956      CC)
16957	# Sun C++ 4.2, 5.x and Centerline C++
16958	no_undefined_flag_CXX=' -zdefs'
16959	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16960	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16961	$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'
16962
16963	hardcode_libdir_flag_spec_CXX='-R$libdir'
16964	hardcode_shlibpath_var_CXX=no
16965	case $host_os in
16966	  solaris2.0-5 | solaris2.0-5.*) ;;
16967	  *)
16968	    # The C++ compiler is used as linker so we must use $wl
16969	    # flag to pass the commands to the underlying system
16970	    # linker.
16971	    # Supported since Solaris 2.6 (maybe 2.5.1?)
16972	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16973	    ;;
16974	esac
16975	link_all_deplibs_CXX=yes
16976
16977	# Commands to make compiler produce verbose output that lists
16978	# what "hidden" libraries, object files and flags are used when
16979	# linking a shared library.
16980	#
16981	# There doesn't appear to be a way to prevent this compiler from
16982	# explicitly linking system object files so we need to strip them
16983	# from the output so that they don't get included in the library
16984	# dependencies.
16985	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'
16986
16987	# Archives containing C++ object files must be created using
16988	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
16989	# necessary to make sure instantiated templates are included
16990	# in the archive.
16991	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16992	;;
16993      gcx)
16994	# Green Hills C++ Compiler
16995	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16996
16997	# The C++ compiler must be used to create the archive.
16998	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16999	;;
17000      *)
17001	# GNU C++ compiler with Solaris linker
17002	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17003	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17004	  if $CC --version | grep -v '^2\.7' > /dev/null; then
17005	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17006	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17007		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17008
17009	    # Commands to make compiler produce verbose output that lists
17010	    # what "hidden" libraries, object files and flags are used when
17011	    # linking a shared library.
17012	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17013	  else
17014	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
17015	    # platform.
17016	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17017	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17018		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17019
17020	    # Commands to make compiler produce verbose output that lists
17021	    # what "hidden" libraries, object files and flags are used when
17022	    # linking a shared library.
17023	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17024	  fi
17025
17026	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17027	fi
17028	;;
17029    esac
17030    ;;
17031  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17032    archive_cmds_need_lc_CXX=no
17033    ;;
17034  tandem*)
17035    case $cc_basename in
17036      NCC)
17037	# NonStop-UX NCC 3.20
17038	# FIXME: insert proper C++ library support
17039	ld_shlibs_CXX=no
17040	;;
17041      *)
17042	# FIXME: insert proper C++ library support
17043	ld_shlibs_CXX=no
17044	;;
17045    esac
17046    ;;
17047  vxworks*)
17048    # FIXME: insert proper C++ library support
17049    ld_shlibs_CXX=no
17050    ;;
17051  *)
17052    # FIXME: insert proper C++ library support
17053    ld_shlibs_CXX=no
17054    ;;
17055esac
17056echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17057echo "${ECHO_T}$ld_shlibs_CXX" >&6
17058test "$ld_shlibs_CXX" = no && can_build_shared=no
17059
17060GCC_CXX="$GXX"
17061LD_CXX="$LD"
17062
17063
17064cat > conftest.$ac_ext <<EOF
17065class Foo
17066{
17067public:
17068  Foo (void) { a = 0; }
17069private:
17070  int a;
17071};
17072EOF
17073
17074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17075  (eval $ac_compile) 2>&5
17076  ac_status=$?
17077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078  (exit $ac_status); }; then
17079  # Parse the compiler output and extract the necessary
17080  # objects, libraries and library flags.
17081
17082  # Sentinel used to keep track of whether or not we are before
17083  # the conftest object file.
17084  pre_test_object_deps_done=no
17085
17086  # The `*' in the case matches for architectures that use `case' in
17087  # $output_verbose_cmd can trigger glob expansion during the loop
17088  # eval without this substitution.
17089  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
17090
17091  for p in `eval $output_verbose_link_cmd`; do
17092    case $p in
17093
17094    -L* | -R* | -l*)
17095       # Some compilers place space between "-{L,R}" and the path.
17096       # Remove the space.
17097       if test $p = "-L" \
17098	  || test $p = "-R"; then
17099	 prev=$p
17100	 continue
17101       else
17102	 prev=
17103       fi
17104
17105       if test "$pre_test_object_deps_done" = no; then
17106	 case $p in
17107	 -L* | -R*)
17108	   # Internal compiler library paths should come after those
17109	   # provided the user.  The postdeps already come after the
17110	   # user supplied libs so there is no need to process them.
17111	   if test -z "$compiler_lib_search_path_CXX"; then
17112	     compiler_lib_search_path_CXX="${prev}${p}"
17113	   else
17114	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17115	   fi
17116	   ;;
17117	 # The "-l" case would never come before the object being
17118	 # linked, so don't bother handling this case.
17119	 esac
17120       else
17121	 if test -z "$postdeps_CXX"; then
17122	   postdeps_CXX="${prev}${p}"
17123	 else
17124	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17125	 fi
17126       fi
17127       ;;
17128
17129    *.$objext)
17130       # This assumes that the test object file only shows up
17131       # once in the compiler output.
17132       if test "$p" = "conftest.$objext"; then
17133	 pre_test_object_deps_done=yes
17134	 continue
17135       fi
17136
17137       if test "$pre_test_object_deps_done" = no; then
17138	 if test -z "$predep_objects_CXX"; then
17139	   predep_objects_CXX="$p"
17140	 else
17141	   predep_objects_CXX="$predep_objects_CXX $p"
17142	 fi
17143       else
17144	 if test -z "$postdep_objects_CXX"; then
17145	   postdep_objects_CXX="$p"
17146	 else
17147	   postdep_objects_CXX="$postdep_objects_CXX $p"
17148	 fi
17149       fi
17150       ;;
17151
17152    *) ;; # Ignore the rest.
17153
17154    esac
17155  done
17156
17157  # Clean up.
17158  rm -f a.out a.exe
17159else
17160  echo "libtool.m4: error: problem compiling CXX test program"
17161fi
17162
17163$rm -f confest.$objext
17164
17165case " $postdeps_CXX " in
17166*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17167esac
17168
17169lt_prog_compiler_wl_CXX=
17170lt_prog_compiler_pic_CXX=
17171lt_prog_compiler_static_CXX=
17172
17173echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17174echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17175
17176  # C++ specific cases for pic, static, wl, etc.
17177  if test "$GXX" = yes; then
17178    lt_prog_compiler_wl_CXX='-Wl,'
17179    lt_prog_compiler_static_CXX='-static'
17180
17181    case $host_os in
17182    aix*)
17183      # All AIX code is PIC.
17184      if test "$host_cpu" = ia64; then
17185	# AIX 5 now supports IA64 processor
17186	lt_prog_compiler_static_CXX='-Bstatic'
17187      fi
17188      ;;
17189    amigaos*)
17190      # FIXME: we need at least 68020 code to build shared libraries, but
17191      # adding the `-m68020' flag to GCC prevents building anything better,
17192      # like `-m68040'.
17193      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17194      ;;
17195    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17196      # PIC is the default for these OSes.
17197      ;;
17198    mingw* | os2* | pw32*)
17199      # This hack is so that the source file can tell whether it is being
17200      # built for inclusion in a dll (and should export symbols for example).
17201      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17202      ;;
17203    darwin* | rhapsody*)
17204      # PIC is the default on this platform
17205      # Common symbols not allowed in MH_DYLIB files
17206      lt_prog_compiler_pic_CXX='-fno-common'
17207      ;;
17208    *djgpp*)
17209      # DJGPP does not support shared libraries at all
17210      lt_prog_compiler_pic_CXX=
17211      ;;
17212    sysv4*MP*)
17213      if test -d /usr/nec; then
17214	lt_prog_compiler_pic_CXX=-Kconform_pic
17215      fi
17216      ;;
17217    hpux*)
17218      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17219      # not for PA HP-UX.
17220      case "$host_cpu" in
17221      hppa*64*|ia64*)
17222	;;
17223      *)
17224	lt_prog_compiler_pic_CXX='-fPIC'
17225	;;
17226      esac
17227      ;;
17228    *)
17229      lt_prog_compiler_pic_CXX='-fPIC'
17230      ;;
17231    esac
17232  else
17233    case $host_os in
17234      aix4* | aix5*)
17235	# All AIX code is PIC.
17236	if test "$host_cpu" = ia64; then
17237	  # AIX 5 now supports IA64 processor
17238	  lt_prog_compiler_static_CXX='-Bstatic'
17239	else
17240	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17241	fi
17242	;;
17243      chorus*)
17244	case $cc_basename in
17245	cxch68)
17246	  # Green Hills C++ Compiler
17247	  # _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"
17248	  ;;
17249	esac
17250	;;
17251      dgux*)
17252	case $cc_basename in
17253	  ec++)
17254	    lt_prog_compiler_pic_CXX='-KPIC'
17255	    ;;
17256	  ghcx)
17257	    # Green Hills C++ Compiler
17258	    lt_prog_compiler_pic_CXX='-pic'
17259	    ;;
17260	  *)
17261	    ;;
17262	esac
17263	;;
17264      freebsd* | kfreebsd*-gnu)
17265	# FreeBSD uses GNU C++
17266	;;
17267      hpux9* | hpux10* | hpux11*)
17268	case $cc_basename in
17269	  CC)
17270	    lt_prog_compiler_wl_CXX='-Wl,'
17271	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
17272	    if test "$host_cpu" != ia64; then
17273	      lt_prog_compiler_pic_CXX='+Z'
17274	    fi
17275	    ;;
17276	  aCC)
17277	    lt_prog_compiler_wl_CXX='-Wl,'
17278	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
17279	    case "$host_cpu" in
17280	    hppa*64*|ia64*)
17281	      # +Z the default
17282	      ;;
17283	    *)
17284	      lt_prog_compiler_pic_CXX='+Z'
17285	      ;;
17286	    esac
17287	    ;;
17288	  *)
17289	    ;;
17290	esac
17291	;;
17292      irix5* | irix6* | nonstopux*)
17293	case $cc_basename in
17294	  CC)
17295	    lt_prog_compiler_wl_CXX='-Wl,'
17296	    lt_prog_compiler_static_CXX='-non_shared'
17297	    # CC pic flag -KPIC is the default.
17298	    ;;
17299	  *)
17300	    ;;
17301	esac
17302	;;
17303      linux*)
17304	case $cc_basename in
17305	  KCC)
17306	    # KAI C++ Compiler
17307	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17308	    lt_prog_compiler_pic_CXX='-fPIC'
17309	    ;;
17310	  icpc)
17311	    # Intel C++
17312	    lt_prog_compiler_wl_CXX='-Wl,'
17313	    lt_prog_compiler_pic_CXX='-KPIC'
17314	    lt_prog_compiler_static_CXX='-static'
17315	    ;;
17316	  cxx)
17317	    # Compaq C++
17318	    # Make sure the PIC flag is empty.  It appears that all Alpha
17319	    # Linux and Compaq Tru64 Unix objects are PIC.
17320	    lt_prog_compiler_pic_CXX=
17321	    lt_prog_compiler_static_CXX='-non_shared'
17322	    ;;
17323	  *)
17324	    ;;
17325	esac
17326	;;
17327      lynxos*)
17328	;;
17329      m88k*)
17330	;;
17331      mvs*)
17332	case $cc_basename in
17333	  cxx)
17334	    lt_prog_compiler_pic_CXX='-W c,exportall'
17335	    ;;
17336	  *)
17337	    ;;
17338	esac
17339	;;
17340      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17341	;;
17342      osf3* | osf4* | osf5*)
17343	case $cc_basename in
17344	  KCC)
17345	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17346	    ;;
17347	  RCC)
17348	    # Rational C++ 2.4.1
17349	    lt_prog_compiler_pic_CXX='-pic'
17350	    ;;
17351	  cxx)
17352	    # Digital/Compaq C++
17353	    lt_prog_compiler_wl_CXX='-Wl,'
17354	    # Make sure the PIC flag is empty.  It appears that all Alpha
17355	    # Linux and Compaq Tru64 Unix objects are PIC.
17356	    lt_prog_compiler_pic_CXX=
17357	    lt_prog_compiler_static_CXX='-non_shared'
17358	    ;;
17359	  *)
17360	    ;;
17361	esac
17362	;;
17363      psos*)
17364	;;
17365      sco*)
17366	case $cc_basename in
17367	  CC)
17368	    lt_prog_compiler_pic_CXX='-fPIC'
17369	    ;;
17370	  *)
17371	    ;;
17372	esac
17373	;;
17374      solaris*)
17375	case $cc_basename in
17376	  CC)
17377	    # Sun C++ 4.2, 5.x and Centerline C++
17378	    lt_prog_compiler_pic_CXX='-KPIC'
17379	    lt_prog_compiler_static_CXX='-Bstatic'
17380	    lt_prog_compiler_wl_CXX='-Qoption ld '
17381	    ;;
17382	  gcx)
17383	    # Green Hills C++ Compiler
17384	    lt_prog_compiler_pic_CXX='-PIC'
17385	    ;;
17386	  *)
17387	    ;;
17388	esac
17389	;;
17390      sunos4*)
17391	case $cc_basename in
17392	  CC)
17393	    # Sun C++ 4.x
17394	    lt_prog_compiler_pic_CXX='-pic'
17395	    lt_prog_compiler_static_CXX='-Bstatic'
17396	    ;;
17397	  lcc)
17398	    # Lucid
17399	    lt_prog_compiler_pic_CXX='-pic'
17400	    ;;
17401	  *)
17402	    ;;
17403	esac
17404	;;
17405      tandem*)
17406	case $cc_basename in
17407	  NCC)
17408	    # NonStop-UX NCC 3.20
17409	    lt_prog_compiler_pic_CXX='-KPIC'
17410	    ;;
17411	  *)
17412	    ;;
17413	esac
17414	;;
17415      unixware*)
17416	;;
17417      vxworks*)
17418	;;
17419      *)
17420	lt_prog_compiler_can_build_shared_CXX=no
17421	;;
17422    esac
17423  fi
17424
17425echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17426echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
17427
17428#
17429# Check to make sure the PIC flag actually works.
17430#
17431if test -n "$lt_prog_compiler_pic_CXX"; then
17432
17433echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17434echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
17435if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
17436  echo $ECHO_N "(cached) $ECHO_C" >&6
17437else
17438  lt_prog_compiler_pic_works_CXX=no
17439  ac_outfile=conftest.$ac_objext
17440   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17441   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17442   # Insert the option either (1) after the last *FLAGS variable, or
17443   # (2) before a word containing "conftest.", or (3) at the end.
17444   # Note that $ac_compile itself does not contain backslashes and begins
17445   # with a dollar sign (not a hyphen), so the echo should work correctly.
17446   # The option is referenced via a variable to avoid confusing sed.
17447   lt_compile=`echo "$ac_compile" | $SED \
17448   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17449   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17450   -e 's:$: $lt_compiler_flag:'`
17451   (eval echo "\"\$as_me:17451: $lt_compile\"" >&5)
17452   (eval "$lt_compile" 2>conftest.err)
17453   ac_status=$?
17454   cat conftest.err >&5
17455   echo "$as_me:17455: \$? = $ac_status" >&5
17456   if (exit $ac_status) && test -s "$ac_outfile"; then
17457     # The compiler can only warn and ignore the option if not recognized
17458     # So say no if there are warnings
17459     if test ! -s conftest.err; then
17460       lt_prog_compiler_pic_works_CXX=yes
17461     fi
17462   fi
17463   $rm conftest*
17464
17465fi
17466echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
17467echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
17468
17469if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
17470    case $lt_prog_compiler_pic_CXX in
17471     "" | " "*) ;;
17472     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17473     esac
17474else
17475    lt_prog_compiler_pic_CXX=
17476     lt_prog_compiler_can_build_shared_CXX=no
17477fi
17478
17479fi
17480case "$host_os" in
17481  # For platforms which do not support PIC, -DPIC is meaningless:
17482  *djgpp*)
17483    lt_prog_compiler_pic_CXX=
17484    ;;
17485  *)
17486    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17487    ;;
17488esac
17489
17490echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17491echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17492if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17493  echo $ECHO_N "(cached) $ECHO_C" >&6
17494else
17495  lt_cv_prog_compiler_c_o_CXX=no
17496   $rm -r conftest 2>/dev/null
17497   mkdir conftest
17498   cd conftest
17499   mkdir out
17500   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17501
17502   lt_compiler_flag="-o out/conftest2.$ac_objext"
17503   # Insert the option either (1) after the last *FLAGS variable, or
17504   # (2) before a word containing "conftest.", or (3) at the end.
17505   # Note that $ac_compile itself does not contain backslashes and begins
17506   # with a dollar sign (not a hyphen), so the echo should work correctly.
17507   lt_compile=`echo "$ac_compile" | $SED \
17508   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17509   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17510   -e 's:$: $lt_compiler_flag:'`
17511   (eval echo "\"\$as_me:17511: $lt_compile\"" >&5)
17512   (eval "$lt_compile" 2>out/conftest.err)
17513   ac_status=$?
17514   cat out/conftest.err >&5
17515   echo "$as_me:17515: \$? = $ac_status" >&5
17516   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17517   then
17518     # The compiler can only warn and ignore the option if not recognized
17519     # So say no if there are warnings
17520     if test ! -s out/conftest.err; then
17521       lt_cv_prog_compiler_c_o_CXX=yes
17522     fi
17523   fi
17524   chmod u+w .
17525   $rm conftest*
17526   # SGI C++ compiler will create directory out/ii_files/ for
17527   # template instantiation
17528   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17529   $rm out/* && rmdir out
17530   cd ..
17531   rmdir conftest
17532   $rm conftest*
17533
17534fi
17535echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17536echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
17537
17538
17539hard_links="nottested"
17540if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17541  # do not overwrite the value of need_locks provided by the user
17542  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17543echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17544  hard_links=yes
17545  $rm conftest*
17546  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17547  touch conftest.a
17548  ln conftest.a conftest.b 2>&5 || hard_links=no
17549  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17550  echo "$as_me:$LINENO: result: $hard_links" >&5
17551echo "${ECHO_T}$hard_links" >&6
17552  if test "$hard_links" = no; then
17553    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17554echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17555    need_locks=warn
17556  fi
17557else
17558  need_locks=no
17559fi
17560
17561echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17562echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17563
17564  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17565  case $host_os in
17566  aix4* | aix5*)
17567    # If we're using GNU nm, then we don't want the "-C" option.
17568    # -C means demangle to AIX nm, but means don't demangle with GNU nm
17569    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17570      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'
17571    else
17572      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'
17573    fi
17574    ;;
17575  pw32*)
17576    export_symbols_cmds_CXX="$ltdll_cmds"
17577  ;;
17578  cygwin* | mingw*)
17579    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17580  ;;
17581  linux*)
17582    link_all_deplibs_CXX=no
17583  ;;
17584  *)
17585    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17586  ;;
17587  esac
17588
17589echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17590echo "${ECHO_T}$ld_shlibs_CXX" >&6
17591test "$ld_shlibs_CXX" = no && can_build_shared=no
17592
17593variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17594if test "$GCC" = yes; then
17595  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17596fi
17597
17598#
17599# Do we need to explicitly link libc?
17600#
17601case "x$archive_cmds_need_lc_CXX" in
17602x|xyes)
17603  # Assume -lc should be added
17604  archive_cmds_need_lc_CXX=yes
17605
17606  if test "$enable_shared" = yes && test "$GCC" = yes; then
17607    case $archive_cmds_CXX in
17608    *'~'*)
17609      # FIXME: we may have to deal with multi-command sequences.
17610      ;;
17611    '$CC '*)
17612      # Test whether the compiler implicitly links with -lc since on some
17613      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17614      # to ld, don't add -lc before -lgcc.
17615      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17616echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17617      $rm conftest*
17618      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17619
17620      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17621  (eval $ac_compile) 2>&5
17622  ac_status=$?
17623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624  (exit $ac_status); } 2>conftest.err; then
17625        soname=conftest
17626        lib=conftest
17627        libobjs=conftest.$ac_objext
17628        deplibs=
17629        wl=$lt_prog_compiler_wl_CXX
17630        compiler_flags=-v
17631        linker_flags=-v
17632        verstring=
17633        output_objdir=.
17634        libname=conftest
17635        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17636        allow_undefined_flag_CXX=
17637        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17638  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17639  ac_status=$?
17640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641  (exit $ac_status); }
17642        then
17643	  archive_cmds_need_lc_CXX=no
17644        else
17645	  archive_cmds_need_lc_CXX=yes
17646        fi
17647        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17648      else
17649        cat conftest.err 1>&5
17650      fi
17651      $rm conftest*
17652      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17653echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17654      ;;
17655    esac
17656  fi
17657  ;;
17658esac
17659
17660echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17661echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17662library_names_spec=
17663libname_spec='lib$name'
17664soname_spec=
17665shrext_cmds=".so"
17666postinstall_cmds=
17667postuninstall_cmds=
17668finish_cmds=
17669finish_eval=
17670shlibpath_var=
17671shlibpath_overrides_runpath=unknown
17672version_type=none
17673dynamic_linker="$host_os ld.so"
17674sys_lib_dlsearch_path_spec="/lib /usr/lib"
17675if test "$GCC" = yes; then
17676  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17677  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17678    # if the path contains ";" then we assume it to be the separator
17679    # otherwise default to the standard path separator (i.e. ":") - it is
17680    # assumed that no part of a normal pathname contains ";" but that should
17681    # okay in the real world where ";" in dirpaths is itself problematic.
17682    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17683  else
17684    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17685  fi
17686else
17687  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17688fi
17689need_lib_prefix=unknown
17690hardcode_into_libs=no
17691
17692# when you set need_version to no, make sure it does not cause -set_version
17693# flags to be left without arguments
17694need_version=unknown
17695
17696case $host_os in
17697aix3*)
17698  version_type=linux
17699  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17700  shlibpath_var=LIBPATH
17701
17702  # AIX 3 has no versioning support, so we append a major version to the name.
17703  soname_spec='${libname}${release}${shared_ext}$major'
17704  ;;
17705
17706aix4* | aix5*)
17707  version_type=linux
17708  need_lib_prefix=no
17709  need_version=no
17710  hardcode_into_libs=yes
17711  if test "$host_cpu" = ia64; then
17712    # AIX 5 supports IA64
17713    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17714    shlibpath_var=LD_LIBRARY_PATH
17715  else
17716    # With GCC up to 2.95.x, collect2 would create an import file
17717    # for dependence libraries.  The import file would start with
17718    # the line `#! .'.  This would cause the generated library to
17719    # depend on `.', always an invalid library.  This was fixed in
17720    # development snapshots of GCC prior to 3.0.
17721    case $host_os in
17722      aix4 | aix4.[01] | aix4.[01].*)
17723      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17724	   echo ' yes '
17725	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17726	:
17727      else
17728	can_build_shared=no
17729      fi
17730      ;;
17731    esac
17732    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17733    # soname into executable. Probably we can add versioning support to
17734    # collect2, so additional links can be useful in future.
17735    if test "$aix_use_runtimelinking" = yes; then
17736      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17737      # instead of lib<name>.a to let people know that these are not
17738      # typical AIX shared libraries.
17739      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17740    else
17741      # We preserve .a as extension for shared libraries through AIX4.2
17742      # and later when we are not doing run time linking.
17743      library_names_spec='${libname}${release}.a $libname.a'
17744      soname_spec='${libname}${release}${shared_ext}$major'
17745    fi
17746    shlibpath_var=LIBPATH
17747  fi
17748  ;;
17749
17750amigaos*)
17751  library_names_spec='$libname.ixlibrary $libname.a'
17752  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17753  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'
17754  ;;
17755
17756beos*)
17757  library_names_spec='${libname}${shared_ext}'
17758  dynamic_linker="$host_os ld.so"
17759  shlibpath_var=LIBRARY_PATH
17760  ;;
17761
17762bsdi4*)
17763  version_type=linux
17764  need_version=no
17765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17766  soname_spec='${libname}${release}${shared_ext}$major'
17767  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17768  shlibpath_var=LD_LIBRARY_PATH
17769  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17770  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17771  # the default ld.so.conf also contains /usr/contrib/lib and
17772  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17773  # libtool to hard-code these into programs
17774  ;;
17775
17776cygwin* | mingw* | pw32*)
17777  version_type=windows
17778  shrext_cmds=".dll"
17779  need_version=no
17780  need_lib_prefix=no
17781
17782  case $GCC,$host_os in
17783  yes,cygwin* | yes,mingw* | yes,pw32*)
17784    library_names_spec='$libname.dll.a'
17785    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17786    postinstall_cmds='base_file=`basename \${file}`~
17787      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17788      dldir=$destdir/`dirname \$dlpath`~
17789      test -d \$dldir || mkdir -p \$dldir~
17790      $install_prog $dir/$dlname \$dldir/$dlname'
17791    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17792      dlpath=$dir/\$dldll~
17793       $rm \$dlpath'
17794    shlibpath_overrides_runpath=yes
17795
17796    case $host_os in
17797    cygwin*)
17798      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17799      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17800      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17801      ;;
17802    mingw*)
17803      # MinGW DLLs use traditional 'lib' prefix
17804      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17805      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17806      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17807        # It is most probably a Windows format PATH printed by
17808        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17809        # path with ; separators, and with drive letters. We can handle the
17810        # drive letters (cygwin fileutils understands them), so leave them,
17811        # especially as we might pass files found there to a mingw objdump,
17812        # which wouldn't understand a cygwinified path. Ahh.
17813        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17814      else
17815        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17816      fi
17817      ;;
17818    pw32*)
17819      # pw32 DLLs use 'pw' prefix rather than 'lib'
17820      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17821      ;;
17822    esac
17823    ;;
17824
17825  *)
17826    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17827    ;;
17828  esac
17829  dynamic_linker='Win32 ld.exe'
17830  # FIXME: first we should search . and the directory the executable is in
17831  shlibpath_var=PATH
17832  ;;
17833
17834darwin* | rhapsody*)
17835  dynamic_linker="$host_os dyld"
17836  version_type=darwin
17837  need_lib_prefix=no
17838  need_version=no
17839  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17840  soname_spec='${libname}${release}${major}$shared_ext'
17841  shlibpath_overrides_runpath=yes
17842  shlibpath_var=DYLD_LIBRARY_PATH
17843  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17844  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17845  if test "$GCC" = yes; then
17846    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"`
17847  else
17848    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17849  fi
17850  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17851  ;;
17852
17853dgux*)
17854  version_type=linux
17855  need_lib_prefix=no
17856  need_version=no
17857  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17858  soname_spec='${libname}${release}${shared_ext}$major'
17859  shlibpath_var=LD_LIBRARY_PATH
17860  ;;
17861
17862freebsd1*)
17863  dynamic_linker=no
17864  ;;
17865
17866kfreebsd*-gnu)
17867  version_type=linux
17868  need_lib_prefix=no
17869  need_version=no
17870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17871  soname_spec='${libname}${release}${shared_ext}$major'
17872  shlibpath_var=LD_LIBRARY_PATH
17873  shlibpath_overrides_runpath=no
17874  hardcode_into_libs=yes
17875  dynamic_linker='GNU ld.so'
17876  ;;
17877
17878freebsd*)
17879  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17880  version_type=freebsd-$objformat
17881  case $version_type in
17882    freebsd-elf*)
17883      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17884      need_version=no
17885      need_lib_prefix=no
17886      ;;
17887    freebsd-*)
17888      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17889      need_version=yes
17890      ;;
17891  esac
17892  shlibpath_var=LD_LIBRARY_PATH
17893  case $host_os in
17894  freebsd2*)
17895    shlibpath_overrides_runpath=yes
17896    ;;
17897  freebsd3.01* | freebsdelf3.01*)
17898    shlibpath_overrides_runpath=yes
17899    hardcode_into_libs=yes
17900    ;;
17901  *) # from 3.2 on
17902    shlibpath_overrides_runpath=no
17903    hardcode_into_libs=yes
17904    ;;
17905  esac
17906  ;;
17907
17908gnu*)
17909  version_type=linux
17910  need_lib_prefix=no
17911  need_version=no
17912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17913  soname_spec='${libname}${release}${shared_ext}$major'
17914  shlibpath_var=LD_LIBRARY_PATH
17915  hardcode_into_libs=yes
17916  ;;
17917
17918hpux9* | hpux10* | hpux11*)
17919  # Give a soname corresponding to the major version so that dld.sl refuses to
17920  # link against other versions.
17921  version_type=sunos
17922  need_lib_prefix=no
17923  need_version=no
17924  case "$host_cpu" in
17925  ia64*)
17926    shrext_cmds='.so'
17927    hardcode_into_libs=yes
17928    dynamic_linker="$host_os dld.so"
17929    shlibpath_var=LD_LIBRARY_PATH
17930    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17931    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17932    soname_spec='${libname}${release}${shared_ext}$major'
17933    if test "X$HPUX_IA64_MODE" = X32; then
17934      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17935    else
17936      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17937    fi
17938    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17939    ;;
17940   hppa*64*)
17941     shrext_cmds='.sl'
17942     hardcode_into_libs=yes
17943     dynamic_linker="$host_os dld.sl"
17944     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17945     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17946     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17947     soname_spec='${libname}${release}${shared_ext}$major'
17948     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17949     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17950     ;;
17951   *)
17952    shrext_cmds='.sl'
17953    dynamic_linker="$host_os dld.sl"
17954    shlibpath_var=SHLIB_PATH
17955    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17956    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17957    soname_spec='${libname}${release}${shared_ext}$major'
17958    ;;
17959  esac
17960  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17961  postinstall_cmds='chmod 555 $lib'
17962  ;;
17963
17964irix5* | irix6* | nonstopux*)
17965  case $host_os in
17966    nonstopux*) version_type=nonstopux ;;
17967    *)
17968	if test "$lt_cv_prog_gnu_ld" = yes; then
17969		version_type=linux
17970	else
17971		version_type=irix
17972	fi ;;
17973  esac
17974  need_lib_prefix=no
17975  need_version=no
17976  soname_spec='${libname}${release}${shared_ext}$major'
17977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17978  case $host_os in
17979  irix5* | nonstopux*)
17980    libsuff= shlibsuff=
17981    ;;
17982  *)
17983    case $LD in # libtool.m4 will add one of these switches to LD
17984    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17985      libsuff= shlibsuff= libmagic=32-bit;;
17986    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17987      libsuff=32 shlibsuff=N32 libmagic=N32;;
17988    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17989      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17990    *) libsuff= shlibsuff= libmagic=never-match;;
17991    esac
17992    ;;
17993  esac
17994  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17995  shlibpath_overrides_runpath=no
17996  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17997  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17998  hardcode_into_libs=yes
17999  ;;
18000
18001# No shared lib support for Linux oldld, aout, or coff.
18002linux*oldld* | linux*aout* | linux*coff*)
18003  dynamic_linker=no
18004  ;;
18005
18006# This must be Linux ELF.
18007linux*)
18008  version_type=linux
18009  need_lib_prefix=no
18010  need_version=no
18011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18012  soname_spec='${libname}${release}${shared_ext}$major'
18013  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18014  shlibpath_var=LD_LIBRARY_PATH
18015  shlibpath_overrides_runpath=no
18016  # This implies no fast_install, which is unacceptable.
18017  # Some rework will be needed to allow for fast_install
18018  # before this can be enabled.
18019  hardcode_into_libs=yes
18020
18021  # Append ld.so.conf contents to the search path
18022  if test -f /etc/ld.so.conf; then
18023    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18024    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18025  fi
18026
18027  # We used to test for /lib/ld.so.1 and disable shared libraries on
18028  # powerpc, because MkLinux only supported shared libraries with the
18029  # GNU dynamic linker.  Since this was broken with cross compilers,
18030  # most powerpc-linux boxes support dynamic linking these days and
18031  # people can always --disable-shared, the test was removed, and we
18032  # assume the GNU/Linux dynamic linker is in use.
18033  dynamic_linker='GNU/Linux ld.so'
18034  ;;
18035
18036netbsdelf*-gnu)
18037  version_type=linux
18038  need_lib_prefix=no
18039  need_version=no
18040  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18041  soname_spec='${libname}${release}${shared_ext}$major'
18042  shlibpath_var=LD_LIBRARY_PATH
18043  shlibpath_overrides_runpath=no
18044  hardcode_into_libs=yes
18045  dynamic_linker='NetBSD ld.elf_so'
18046  ;;
18047
18048knetbsd*-gnu)
18049  version_type=linux
18050  need_lib_prefix=no
18051  need_version=no
18052  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18053  soname_spec='${libname}${release}${shared_ext}$major'
18054  shlibpath_var=LD_LIBRARY_PATH
18055  shlibpath_overrides_runpath=no
18056  hardcode_into_libs=yes
18057  dynamic_linker='GNU ld.so'
18058  ;;
18059
18060netbsd*)
18061  version_type=sunos
18062  need_lib_prefix=no
18063  need_version=no
18064  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18065    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18066    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18067    dynamic_linker='NetBSD (a.out) ld.so'
18068  else
18069    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18070    soname_spec='${libname}${release}${shared_ext}$major'
18071    dynamic_linker='NetBSD ld.elf_so'
18072  fi
18073  shlibpath_var=LD_LIBRARY_PATH
18074  shlibpath_overrides_runpath=yes
18075  hardcode_into_libs=yes
18076  ;;
18077
18078newsos6)
18079  version_type=linux
18080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18081  shlibpath_var=LD_LIBRARY_PATH
18082  shlibpath_overrides_runpath=yes
18083  ;;
18084
18085nto-qnx*)
18086  version_type=linux
18087  need_lib_prefix=no
18088  need_version=no
18089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18090  soname_spec='${libname}${release}${shared_ext}$major'
18091  shlibpath_var=LD_LIBRARY_PATH
18092  shlibpath_overrides_runpath=yes
18093  ;;
18094
18095openbsd*)
18096  version_type=sunos
18097  need_lib_prefix=no
18098  need_version=yes
18099  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18100  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18101  shlibpath_var=LD_LIBRARY_PATH
18102  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18103    case $host_os in
18104      openbsd2.[89] | openbsd2.[89].*)
18105	shlibpath_overrides_runpath=no
18106	;;
18107      *)
18108	shlibpath_overrides_runpath=yes
18109	;;
18110      esac
18111  else
18112    shlibpath_overrides_runpath=yes
18113  fi
18114  ;;
18115
18116os2*)
18117  libname_spec='$name'
18118  shrext_cmds=".dll"
18119  need_lib_prefix=no
18120  library_names_spec='$libname${shared_ext} $libname.a'
18121  dynamic_linker='OS/2 ld.exe'
18122  shlibpath_var=LIBPATH
18123  ;;
18124
18125osf3* | osf4* | osf5*)
18126  version_type=osf
18127  need_lib_prefix=no
18128  need_version=no
18129  soname_spec='${libname}${release}${shared_ext}$major'
18130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18131  shlibpath_var=LD_LIBRARY_PATH
18132  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18133  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18134  ;;
18135
18136sco3.2v5*)
18137  version_type=osf
18138  soname_spec='${libname}${release}${shared_ext}$major'
18139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18140  shlibpath_var=LD_LIBRARY_PATH
18141  ;;
18142
18143solaris*)
18144  version_type=linux
18145  need_lib_prefix=no
18146  need_version=no
18147  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18148  soname_spec='${libname}${release}${shared_ext}$major'
18149  shlibpath_var=LD_LIBRARY_PATH
18150  shlibpath_overrides_runpath=yes
18151  hardcode_into_libs=yes
18152  # ldd complains unless libraries are executable
18153  postinstall_cmds='chmod +x $lib'
18154  ;;
18155
18156sunos4*)
18157  version_type=sunos
18158  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18159  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18160  shlibpath_var=LD_LIBRARY_PATH
18161  shlibpath_overrides_runpath=yes
18162  if test "$with_gnu_ld" = yes; then
18163    need_lib_prefix=no
18164  fi
18165  need_version=yes
18166  ;;
18167
18168sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18169  version_type=linux
18170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18171  soname_spec='${libname}${release}${shared_ext}$major'
18172  shlibpath_var=LD_LIBRARY_PATH
18173  case $host_vendor in
18174    sni)
18175      shlibpath_overrides_runpath=no
18176      need_lib_prefix=no
18177      export_dynamic_flag_spec='${wl}-Blargedynsym'
18178      runpath_var=LD_RUN_PATH
18179      ;;
18180    siemens)
18181      need_lib_prefix=no
18182      ;;
18183    motorola)
18184      need_lib_prefix=no
18185      need_version=no
18186      shlibpath_overrides_runpath=no
18187      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18188      ;;
18189  esac
18190  ;;
18191
18192sysv4*MP*)
18193  if test -d /usr/nec ;then
18194    version_type=linux
18195    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18196    soname_spec='$libname${shared_ext}.$major'
18197    shlibpath_var=LD_LIBRARY_PATH
18198  fi
18199  ;;
18200
18201uts4*)
18202  version_type=linux
18203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18204  soname_spec='${libname}${release}${shared_ext}$major'
18205  shlibpath_var=LD_LIBRARY_PATH
18206  ;;
18207
18208*)
18209  dynamic_linker=no
18210  ;;
18211esac
18212echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18213echo "${ECHO_T}$dynamic_linker" >&6
18214test "$dynamic_linker" = no && can_build_shared=no
18215
18216echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18217echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18218hardcode_action_CXX=
18219if test -n "$hardcode_libdir_flag_spec_CXX" || \
18220   test -n "$runpath_var CXX" || \
18221   test "X$hardcode_automatic_CXX"="Xyes" ; then
18222
18223  # We can hardcode non-existant directories.
18224  if test "$hardcode_direct_CXX" != no &&
18225     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18226     # have to relink, otherwise we might link with an installed library
18227     # when we should be linking with a yet-to-be-installed one
18228     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18229     test "$hardcode_minus_L_CXX" != no; then
18230    # Linking always hardcodes the temporary library directory.
18231    hardcode_action_CXX=relink
18232  else
18233    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18234    hardcode_action_CXX=immediate
18235  fi
18236else
18237  # We cannot hardcode anything, or else we can only hardcode existing
18238  # directories.
18239  hardcode_action_CXX=unsupported
18240fi
18241echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
18242echo "${ECHO_T}$hardcode_action_CXX" >&6
18243
18244if test "$hardcode_action_CXX" = relink; then
18245  # Fast installation is not supported
18246  enable_fast_install=no
18247elif test "$shlibpath_overrides_runpath" = yes ||
18248     test "$enable_shared" = no; then
18249  # Fast installation is not necessary
18250  enable_fast_install=needless
18251fi
18252
18253striplib=
18254old_striplib=
18255echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18256echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18257if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18258  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18259  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18260  echo "$as_me:$LINENO: result: yes" >&5
18261echo "${ECHO_T}yes" >&6
18262else
18263# FIXME - insert some real tests, host_os isn't really good enough
18264  case $host_os in
18265   darwin*)
18266       if test -n "$STRIP" ; then
18267         striplib="$STRIP -x"
18268         echo "$as_me:$LINENO: result: yes" >&5
18269echo "${ECHO_T}yes" >&6
18270       else
18271  echo "$as_me:$LINENO: result: no" >&5
18272echo "${ECHO_T}no" >&6
18273fi
18274       ;;
18275   *)
18276  echo "$as_me:$LINENO: result: no" >&5
18277echo "${ECHO_T}no" >&6
18278    ;;
18279  esac
18280fi
18281
18282if test "x$enable_dlopen" != xyes; then
18283  enable_dlopen=unknown
18284  enable_dlopen_self=unknown
18285  enable_dlopen_self_static=unknown
18286else
18287  lt_cv_dlopen=no
18288  lt_cv_dlopen_libs=
18289
18290  case $host_os in
18291  beos*)
18292    lt_cv_dlopen="load_add_on"
18293    lt_cv_dlopen_libs=
18294    lt_cv_dlopen_self=yes
18295    ;;
18296
18297  mingw* | pw32*)
18298    lt_cv_dlopen="LoadLibrary"
18299    lt_cv_dlopen_libs=
18300   ;;
18301
18302  cygwin*)
18303    lt_cv_dlopen="dlopen"
18304    lt_cv_dlopen_libs=
18305   ;;
18306
18307  darwin*)
18308  # if libdl is installed we need to link against it
18309    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18310echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18311if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18312  echo $ECHO_N "(cached) $ECHO_C" >&6
18313else
18314  ac_check_lib_save_LIBS=$LIBS
18315LIBS="-ldl  $LIBS"
18316cat >conftest.$ac_ext <<_ACEOF
18317/* confdefs.h.  */
18318_ACEOF
18319cat confdefs.h >>conftest.$ac_ext
18320cat >>conftest.$ac_ext <<_ACEOF
18321/* end confdefs.h.  */
18322
18323/* Override any gcc2 internal prototype to avoid an error.  */
18324#ifdef __cplusplus
18325extern "C"
18326#endif
18327/* We use char because int might match the return type of a gcc2
18328   builtin and then its argument prototype would still apply.  */
18329char dlopen ();
18330int
18331main ()
18332{
18333dlopen ();
18334  ;
18335  return 0;
18336}
18337_ACEOF
18338rm -f conftest.$ac_objext conftest$ac_exeext
18339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18340  (eval $ac_link) 2>conftest.er1
18341  ac_status=$?
18342  grep -v '^ *+' conftest.er1 >conftest.err
18343  rm -f conftest.er1
18344  cat conftest.err >&5
18345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346  (exit $ac_status); } &&
18347	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
18348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349  (eval $ac_try) 2>&5
18350  ac_status=$?
18351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352  (exit $ac_status); }; } &&
18353	 { ac_try='test -s conftest$ac_exeext'
18354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18355  (eval $ac_try) 2>&5
18356  ac_status=$?
18357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358  (exit $ac_status); }; }; then
18359  ac_cv_lib_dl_dlopen=yes
18360else
18361  echo "$as_me: failed program was:" >&5
18362sed 's/^/| /' conftest.$ac_ext >&5
18363
18364ac_cv_lib_dl_dlopen=no
18365fi
18366rm -f conftest.err conftest.$ac_objext \
18367      conftest$ac_exeext conftest.$ac_ext
18368LIBS=$ac_check_lib_save_LIBS
18369fi
18370echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18371echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18372if test $ac_cv_lib_dl_dlopen = yes; then
18373  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18374else
18375
18376    lt_cv_dlopen="dyld"
18377    lt_cv_dlopen_libs=
18378    lt_cv_dlopen_self=yes
18379
18380fi
18381
18382   ;;
18383
18384  *)
18385    echo "$as_me:$LINENO: checking for shl_load" >&5
18386echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18387if test "${ac_cv_func_shl_load+set}" = set; then
18388  echo $ECHO_N "(cached) $ECHO_C" >&6
18389else
18390  cat >conftest.$ac_ext <<_ACEOF
18391/* confdefs.h.  */
18392_ACEOF
18393cat confdefs.h >>conftest.$ac_ext
18394cat >>conftest.$ac_ext <<_ACEOF
18395/* end confdefs.h.  */
18396/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18397   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18398#define shl_load innocuous_shl_load
18399
18400/* System header to define __stub macros and hopefully few prototypes,
18401    which can conflict with char shl_load (); below.
18402    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18403    <limits.h> exists even on freestanding compilers.  */
18404
18405#ifdef __STDC__
18406# include <limits.h>
18407#else
18408# include <assert.h>
18409#endif
18410
18411#undef shl_load
18412
18413/* Override any gcc2 internal prototype to avoid an error.  */
18414#ifdef __cplusplus
18415extern "C"
18416{
18417#endif
18418/* We use char because int might match the return type of a gcc2
18419   builtin and then its argument prototype would still apply.  */
18420char shl_load ();
18421/* The GNU C library defines this for functions which it implements
18422    to always fail with ENOSYS.  Some functions are actually named
18423    something starting with __ and the normal name is an alias.  */
18424#if defined (__stub_shl_load) || defined (__stub___shl_load)
18425choke me
18426#else
18427char (*f) () = shl_load;
18428#endif
18429#ifdef __cplusplus
18430}
18431#endif
18432
18433int
18434main ()
18435{
18436return f != shl_load;
18437  ;
18438  return 0;
18439}
18440_ACEOF
18441rm -f conftest.$ac_objext conftest$ac_exeext
18442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18443  (eval $ac_link) 2>conftest.er1
18444  ac_status=$?
18445  grep -v '^ *+' conftest.er1 >conftest.err
18446  rm -f conftest.er1
18447  cat conftest.err >&5
18448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449  (exit $ac_status); } &&
18450	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
18451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18452  (eval $ac_try) 2>&5
18453  ac_status=$?
18454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455  (exit $ac_status); }; } &&
18456	 { ac_try='test -s conftest$ac_exeext'
18457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18458  (eval $ac_try) 2>&5
18459  ac_status=$?
18460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461  (exit $ac_status); }; }; then
18462  ac_cv_func_shl_load=yes
18463else
18464  echo "$as_me: failed program was:" >&5
18465sed 's/^/| /' conftest.$ac_ext >&5
18466
18467ac_cv_func_shl_load=no
18468fi
18469rm -f conftest.err conftest.$ac_objext \
18470      conftest$ac_exeext conftest.$ac_ext
18471fi
18472echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18473echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18474if test $ac_cv_func_shl_load = yes; then
18475  lt_cv_dlopen="shl_load"
18476else
18477  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18478echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18479if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18480  echo $ECHO_N "(cached) $ECHO_C" >&6
18481else
18482  ac_check_lib_save_LIBS=$LIBS
18483LIBS="-ldld  $LIBS"
18484cat >conftest.$ac_ext <<_ACEOF
18485/* confdefs.h.  */
18486_ACEOF
18487cat confdefs.h >>conftest.$ac_ext
18488cat >>conftest.$ac_ext <<_ACEOF
18489/* end confdefs.h.  */
18490
18491/* Override any gcc2 internal prototype to avoid an error.  */
18492#ifdef __cplusplus
18493extern "C"
18494#endif
18495/* We use char because int might match the return type of a gcc2
18496   builtin and then its argument prototype would still apply.  */
18497char shl_load ();
18498int
18499main ()
18500{
18501shl_load ();
18502  ;
18503  return 0;
18504}
18505_ACEOF
18506rm -f conftest.$ac_objext conftest$ac_exeext
18507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18508  (eval $ac_link) 2>conftest.er1
18509  ac_status=$?
18510  grep -v '^ *+' conftest.er1 >conftest.err
18511  rm -f conftest.er1
18512  cat conftest.err >&5
18513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514  (exit $ac_status); } &&
18515	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
18516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18517  (eval $ac_try) 2>&5
18518  ac_status=$?
18519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520  (exit $ac_status); }; } &&
18521	 { ac_try='test -s conftest$ac_exeext'
18522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523  (eval $ac_try) 2>&5
18524  ac_status=$?
18525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526  (exit $ac_status); }; }; then
18527  ac_cv_lib_dld_shl_load=yes
18528else
18529  echo "$as_me: failed program was:" >&5
18530sed 's/^/| /' conftest.$ac_ext >&5
18531
18532ac_cv_lib_dld_shl_load=no
18533fi
18534rm -f conftest.err conftest.$ac_objext \
18535      conftest$ac_exeext conftest.$ac_ext
18536LIBS=$ac_check_lib_save_LIBS
18537fi
18538echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18539echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18540if test $ac_cv_lib_dld_shl_load = yes; then
18541  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18542else
18543  echo "$as_me:$LINENO: checking for dlopen" >&5
18544echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18545if test "${ac_cv_func_dlopen+set}" = set; then
18546  echo $ECHO_N "(cached) $ECHO_C" >&6
18547else
18548  cat >conftest.$ac_ext <<_ACEOF
18549/* confdefs.h.  */
18550_ACEOF
18551cat confdefs.h >>conftest.$ac_ext
18552cat >>conftest.$ac_ext <<_ACEOF
18553/* end confdefs.h.  */
18554/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18555   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18556#define dlopen innocuous_dlopen
18557
18558/* System header to define __stub macros and hopefully few prototypes,
18559    which can conflict with char dlopen (); below.
18560    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18561    <limits.h> exists even on freestanding compilers.  */
18562
18563#ifdef __STDC__
18564# include <limits.h>
18565#else
18566# include <assert.h>
18567#endif
18568
18569#undef dlopen
18570
18571/* Override any gcc2 internal prototype to avoid an error.  */
18572#ifdef __cplusplus
18573extern "C"
18574{
18575#endif
18576/* We use char because int might match the return type of a gcc2
18577   builtin and then its argument prototype would still apply.  */
18578char dlopen ();
18579/* The GNU C library defines this for functions which it implements
18580    to always fail with ENOSYS.  Some functions are actually named
18581    something starting with __ and the normal name is an alias.  */
18582#if defined (__stub_dlopen) || defined (__stub___dlopen)
18583choke me
18584#else
18585char (*f) () = dlopen;
18586#endif
18587#ifdef __cplusplus
18588}
18589#endif
18590
18591int
18592main ()
18593{
18594return f != dlopen;
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_cxx_werror_flag"			 || test ! -s conftest.err'
18609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18610  (eval $ac_try) 2>&5
18611  ac_status=$?
18612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613  (exit $ac_status); }; } &&
18614	 { ac_try='test -s conftest$ac_exeext'
18615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18616  (eval $ac_try) 2>&5
18617  ac_status=$?
18618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619  (exit $ac_status); }; }; then
18620  ac_cv_func_dlopen=yes
18621else
18622  echo "$as_me: failed program was:" >&5
18623sed 's/^/| /' conftest.$ac_ext >&5
18624
18625ac_cv_func_dlopen=no
18626fi
18627rm -f conftest.err conftest.$ac_objext \
18628      conftest$ac_exeext conftest.$ac_ext
18629fi
18630echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18631echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18632if test $ac_cv_func_dlopen = yes; then
18633  lt_cv_dlopen="dlopen"
18634else
18635  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18636echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18637if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18638  echo $ECHO_N "(cached) $ECHO_C" >&6
18639else
18640  ac_check_lib_save_LIBS=$LIBS
18641LIBS="-ldl  $LIBS"
18642cat >conftest.$ac_ext <<_ACEOF
18643/* confdefs.h.  */
18644_ACEOF
18645cat confdefs.h >>conftest.$ac_ext
18646cat >>conftest.$ac_ext <<_ACEOF
18647/* end confdefs.h.  */
18648
18649/* Override any gcc2 internal prototype to avoid an error.  */
18650#ifdef __cplusplus
18651extern "C"
18652#endif
18653/* We use char because int might match the return type of a gcc2
18654   builtin and then its argument prototype would still apply.  */
18655char dlopen ();
18656int
18657main ()
18658{
18659dlopen ();
18660  ;
18661  return 0;
18662}
18663_ACEOF
18664rm -f conftest.$ac_objext conftest$ac_exeext
18665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18666  (eval $ac_link) 2>conftest.er1
18667  ac_status=$?
18668  grep -v '^ *+' conftest.er1 >conftest.err
18669  rm -f conftest.er1
18670  cat conftest.err >&5
18671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672  (exit $ac_status); } &&
18673	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
18674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18675  (eval $ac_try) 2>&5
18676  ac_status=$?
18677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678  (exit $ac_status); }; } &&
18679	 { ac_try='test -s conftest$ac_exeext'
18680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681  (eval $ac_try) 2>&5
18682  ac_status=$?
18683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684  (exit $ac_status); }; }; then
18685  ac_cv_lib_dl_dlopen=yes
18686else
18687  echo "$as_me: failed program was:" >&5
18688sed 's/^/| /' conftest.$ac_ext >&5
18689
18690ac_cv_lib_dl_dlopen=no
18691fi
18692rm -f conftest.err conftest.$ac_objext \
18693      conftest$ac_exeext conftest.$ac_ext
18694LIBS=$ac_check_lib_save_LIBS
18695fi
18696echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18697echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18698if test $ac_cv_lib_dl_dlopen = yes; then
18699  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18700else
18701  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18702echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18703if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18704  echo $ECHO_N "(cached) $ECHO_C" >&6
18705else
18706  ac_check_lib_save_LIBS=$LIBS
18707LIBS="-lsvld  $LIBS"
18708cat >conftest.$ac_ext <<_ACEOF
18709/* confdefs.h.  */
18710_ACEOF
18711cat confdefs.h >>conftest.$ac_ext
18712cat >>conftest.$ac_ext <<_ACEOF
18713/* end confdefs.h.  */
18714
18715/* Override any gcc2 internal prototype to avoid an error.  */
18716#ifdef __cplusplus
18717extern "C"
18718#endif
18719/* We use char because int might match the return type of a gcc2
18720   builtin and then its argument prototype would still apply.  */
18721char dlopen ();
18722int
18723main ()
18724{
18725dlopen ();
18726  ;
18727  return 0;
18728}
18729_ACEOF
18730rm -f conftest.$ac_objext conftest$ac_exeext
18731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18732  (eval $ac_link) 2>conftest.er1
18733  ac_status=$?
18734  grep -v '^ *+' conftest.er1 >conftest.err
18735  rm -f conftest.er1
18736  cat conftest.err >&5
18737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738  (exit $ac_status); } &&
18739	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
18740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18741  (eval $ac_try) 2>&5
18742  ac_status=$?
18743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744  (exit $ac_status); }; } &&
18745	 { ac_try='test -s conftest$ac_exeext'
18746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18747  (eval $ac_try) 2>&5
18748  ac_status=$?
18749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750  (exit $ac_status); }; }; then
18751  ac_cv_lib_svld_dlopen=yes
18752else
18753  echo "$as_me: failed program was:" >&5
18754sed 's/^/| /' conftest.$ac_ext >&5
18755
18756ac_cv_lib_svld_dlopen=no
18757fi
18758rm -f conftest.err conftest.$ac_objext \
18759      conftest$ac_exeext conftest.$ac_ext
18760LIBS=$ac_check_lib_save_LIBS
18761fi
18762echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18763echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18764if test $ac_cv_lib_svld_dlopen = yes; then
18765  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18766else
18767  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18768echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18769if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18770  echo $ECHO_N "(cached) $ECHO_C" >&6
18771else
18772  ac_check_lib_save_LIBS=$LIBS
18773LIBS="-ldld  $LIBS"
18774cat >conftest.$ac_ext <<_ACEOF
18775/* confdefs.h.  */
18776_ACEOF
18777cat confdefs.h >>conftest.$ac_ext
18778cat >>conftest.$ac_ext <<_ACEOF
18779/* end confdefs.h.  */
18780
18781/* Override any gcc2 internal prototype to avoid an error.  */
18782#ifdef __cplusplus
18783extern "C"
18784#endif
18785/* We use char because int might match the return type of a gcc2
18786   builtin and then its argument prototype would still apply.  */
18787char dld_link ();
18788int
18789main ()
18790{
18791dld_link ();
18792  ;
18793  return 0;
18794}
18795_ACEOF
18796rm -f conftest.$ac_objext conftest$ac_exeext
18797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18798  (eval $ac_link) 2>conftest.er1
18799  ac_status=$?
18800  grep -v '^ *+' conftest.er1 >conftest.err
18801  rm -f conftest.er1
18802  cat conftest.err >&5
18803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804  (exit $ac_status); } &&
18805	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
18806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18807  (eval $ac_try) 2>&5
18808  ac_status=$?
18809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810  (exit $ac_status); }; } &&
18811	 { ac_try='test -s conftest$ac_exeext'
18812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18813  (eval $ac_try) 2>&5
18814  ac_status=$?
18815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816  (exit $ac_status); }; }; then
18817  ac_cv_lib_dld_dld_link=yes
18818else
18819  echo "$as_me: failed program was:" >&5
18820sed 's/^/| /' conftest.$ac_ext >&5
18821
18822ac_cv_lib_dld_dld_link=no
18823fi
18824rm -f conftest.err conftest.$ac_objext \
18825      conftest$ac_exeext conftest.$ac_ext
18826LIBS=$ac_check_lib_save_LIBS
18827fi
18828echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18829echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18830if test $ac_cv_lib_dld_dld_link = yes; then
18831  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18832fi
18833
18834
18835fi
18836
18837
18838fi
18839
18840
18841fi
18842
18843
18844fi
18845
18846
18847fi
18848
18849    ;;
18850  esac
18851
18852  if test "x$lt_cv_dlopen" != xno; then
18853    enable_dlopen=yes
18854  else
18855    enable_dlopen=no
18856  fi
18857
18858  case $lt_cv_dlopen in
18859  dlopen)
18860    save_CPPFLAGS="$CPPFLAGS"
18861    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18862
18863    save_LDFLAGS="$LDFLAGS"
18864    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18865
18866    save_LIBS="$LIBS"
18867    LIBS="$lt_cv_dlopen_libs $LIBS"
18868
18869    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18870echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18871if test "${lt_cv_dlopen_self+set}" = set; then
18872  echo $ECHO_N "(cached) $ECHO_C" >&6
18873else
18874  	  if test "$cross_compiling" = yes; then :
18875  lt_cv_dlopen_self=cross
18876else
18877  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18878  lt_status=$lt_dlunknown
18879  cat > conftest.$ac_ext <<EOF
18880#line 18880 "configure"
18881#include "confdefs.h"
18882
18883#if HAVE_DLFCN_H
18884#include <dlfcn.h>
18885#endif
18886
18887#include <stdio.h>
18888
18889#ifdef RTLD_GLOBAL
18890#  define LT_DLGLOBAL		RTLD_GLOBAL
18891#else
18892#  ifdef DL_GLOBAL
18893#    define LT_DLGLOBAL		DL_GLOBAL
18894#  else
18895#    define LT_DLGLOBAL		0
18896#  endif
18897#endif
18898
18899/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18900   find out it does not work in some platform. */
18901#ifndef LT_DLLAZY_OR_NOW
18902#  ifdef RTLD_LAZY
18903#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18904#  else
18905#    ifdef DL_LAZY
18906#      define LT_DLLAZY_OR_NOW		DL_LAZY
18907#    else
18908#      ifdef RTLD_NOW
18909#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18910#      else
18911#        ifdef DL_NOW
18912#          define LT_DLLAZY_OR_NOW	DL_NOW
18913#        else
18914#          define LT_DLLAZY_OR_NOW	0
18915#        endif
18916#      endif
18917#    endif
18918#  endif
18919#endif
18920
18921#ifdef __cplusplus
18922extern "C" void exit (int);
18923#endif
18924
18925void fnord() { int i=42;}
18926int main ()
18927{
18928  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18929  int status = $lt_dlunknown;
18930
18931  if (self)
18932    {
18933      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18934      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18935      /* dlclose (self); */
18936    }
18937
18938    exit (status);
18939}
18940EOF
18941  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18942  (eval $ac_link) 2>&5
18943  ac_status=$?
18944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18946    (./conftest; exit; ) 2>/dev/null
18947    lt_status=$?
18948    case x$lt_status in
18949      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18950      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18951      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18952    esac
18953  else :
18954    # compilation failed
18955    lt_cv_dlopen_self=no
18956  fi
18957fi
18958rm -fr conftest*
18959
18960
18961fi
18962echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18963echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18964
18965    if test "x$lt_cv_dlopen_self" = xyes; then
18966      LDFLAGS="$LDFLAGS $link_static_flag"
18967      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18968echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18969if test "${lt_cv_dlopen_self_static+set}" = set; then
18970  echo $ECHO_N "(cached) $ECHO_C" >&6
18971else
18972  	  if test "$cross_compiling" = yes; then :
18973  lt_cv_dlopen_self_static=cross
18974else
18975  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18976  lt_status=$lt_dlunknown
18977  cat > conftest.$ac_ext <<EOF
18978#line 18978 "configure"
18979#include "confdefs.h"
18980
18981#if HAVE_DLFCN_H
18982#include <dlfcn.h>
18983#endif
18984
18985#include <stdio.h>
18986
18987#ifdef RTLD_GLOBAL
18988#  define LT_DLGLOBAL		RTLD_GLOBAL
18989#else
18990#  ifdef DL_GLOBAL
18991#    define LT_DLGLOBAL		DL_GLOBAL
18992#  else
18993#    define LT_DLGLOBAL		0
18994#  endif
18995#endif
18996
18997/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18998   find out it does not work in some platform. */
18999#ifndef LT_DLLAZY_OR_NOW
19000#  ifdef RTLD_LAZY
19001#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19002#  else
19003#    ifdef DL_LAZY
19004#      define LT_DLLAZY_OR_NOW		DL_LAZY
19005#    else
19006#      ifdef RTLD_NOW
19007#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19008#      else
19009#        ifdef DL_NOW
19010#          define LT_DLLAZY_OR_NOW	DL_NOW
19011#        else
19012#          define LT_DLLAZY_OR_NOW	0
19013#        endif
19014#      endif
19015#    endif
19016#  endif
19017#endif
19018
19019#ifdef __cplusplus
19020extern "C" void exit (int);
19021#endif
19022
19023void fnord() { int i=42;}
19024int main ()
19025{
19026  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19027  int status = $lt_dlunknown;
19028
19029  if (self)
19030    {
19031      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19032      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19033      /* dlclose (self); */
19034    }
19035
19036    exit (status);
19037}
19038EOF
19039  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19040  (eval $ac_link) 2>&5
19041  ac_status=$?
19042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19044    (./conftest; exit; ) 2>/dev/null
19045    lt_status=$?
19046    case x$lt_status in
19047      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19048      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19049      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19050    esac
19051  else :
19052    # compilation failed
19053    lt_cv_dlopen_self_static=no
19054  fi
19055fi
19056rm -fr conftest*
19057
19058
19059fi
19060echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19061echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19062    fi
19063
19064    CPPFLAGS="$save_CPPFLAGS"
19065    LDFLAGS="$save_LDFLAGS"
19066    LIBS="$save_LIBS"
19067    ;;
19068  esac
19069
19070  case $lt_cv_dlopen_self in
19071  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19072  *) enable_dlopen_self=unknown ;;
19073  esac
19074
19075  case $lt_cv_dlopen_self_static in
19076  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19077  *) enable_dlopen_self_static=unknown ;;
19078  esac
19079fi
19080
19081
19082# The else clause should only fire when bootstrapping the
19083# libtool distribution, otherwise you forgot to ship ltmain.sh
19084# with your package, and you will get complaints that there are
19085# no rules to generate ltmain.sh.
19086if test -f "$ltmain"; then
19087  # See if we are running on zsh, and set the options which allow our commands through
19088  # without removal of \ escapes.
19089  if test -n "${ZSH_VERSION+set}" ; then
19090    setopt NO_GLOB_SUBST
19091  fi
19092  # Now quote all the things that may contain metacharacters while being
19093  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19094  # variables and quote the copies for generation of the libtool script.
19095  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19096    SED SHELL STRIP \
19097    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19098    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19099    deplibs_check_method reload_flag reload_cmds need_locks \
19100    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19101    lt_cv_sys_global_symbol_to_c_name_address \
19102    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19103    old_postinstall_cmds old_postuninstall_cmds \
19104    compiler_CXX \
19105    CC_CXX \
19106    LD_CXX \
19107    lt_prog_compiler_wl_CXX \
19108    lt_prog_compiler_pic_CXX \
19109    lt_prog_compiler_static_CXX \
19110    lt_prog_compiler_no_builtin_flag_CXX \
19111    export_dynamic_flag_spec_CXX \
19112    thread_safe_flag_spec_CXX \
19113    whole_archive_flag_spec_CXX \
19114    enable_shared_with_static_runtimes_CXX \
19115    old_archive_cmds_CXX \
19116    old_archive_from_new_cmds_CXX \
19117    predep_objects_CXX \
19118    postdep_objects_CXX \
19119    predeps_CXX \
19120    postdeps_CXX \
19121    compiler_lib_search_path_CXX \
19122    archive_cmds_CXX \
19123    archive_expsym_cmds_CXX \
19124    postinstall_cmds_CXX \
19125    postuninstall_cmds_CXX \
19126    old_archive_from_expsyms_cmds_CXX \
19127    allow_undefined_flag_CXX \
19128    no_undefined_flag_CXX \
19129    export_symbols_cmds_CXX \
19130    hardcode_libdir_flag_spec_CXX \
19131    hardcode_libdir_flag_spec_ld_CXX \
19132    hardcode_libdir_separator_CXX \
19133    hardcode_automatic_CXX \
19134    module_cmds_CXX \
19135    module_expsym_cmds_CXX \
19136    lt_cv_prog_compiler_c_o_CXX \
19137    exclude_expsyms_CXX \
19138    include_expsyms_CXX; do
19139
19140    case $var in
19141    old_archive_cmds_CXX | \
19142    old_archive_from_new_cmds_CXX | \
19143    archive_cmds_CXX | \
19144    archive_expsym_cmds_CXX | \
19145    module_cmds_CXX | \
19146    module_expsym_cmds_CXX | \
19147    old_archive_from_expsyms_cmds_CXX | \
19148    export_symbols_cmds_CXX | \
19149    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19150    postinstall_cmds | postuninstall_cmds | \
19151    old_postinstall_cmds | old_postuninstall_cmds | \
19152    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19153      # Double-quote double-evaled strings.
19154      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19155      ;;
19156    *)
19157      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19158      ;;
19159    esac
19160  done
19161
19162  case $lt_echo in
19163  *'\$0 --fallback-echo"')
19164    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19165    ;;
19166  esac
19167
19168cfgfile="$ofile"
19169
19170  cat <<__EOF__ >> "$cfgfile"
19171# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19172
19173# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19174
19175# Shell to use when invoking shell scripts.
19176SHELL=$lt_SHELL
19177
19178# Whether or not to build shared libraries.
19179build_libtool_libs=$enable_shared
19180
19181# Whether or not to build static libraries.
19182build_old_libs=$enable_static
19183
19184# Whether or not to add -lc for building shared libraries.
19185build_libtool_need_lc=$archive_cmds_need_lc_CXX
19186
19187# Whether or not to disallow shared libs when runtime libs are static
19188allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19189
19190# Whether or not to optimize for fast installation.
19191fast_install=$enable_fast_install
19192
19193# The host system.
19194host_alias=$host_alias
19195host=$host
19196
19197# An echo program that does not interpret backslashes.
19198echo=$lt_echo
19199
19200# The archiver.
19201AR=$lt_AR
19202AR_FLAGS=$lt_AR_FLAGS
19203
19204# A C compiler.
19205LTCC=$lt_LTCC
19206
19207# A language-specific compiler.
19208CC=$lt_compiler_CXX
19209
19210# Is the compiler the GNU C compiler?
19211with_gcc=$GCC_CXX
19212
19213# An ERE matcher.
19214EGREP=$lt_EGREP
19215
19216# The linker used to build libraries.
19217LD=$lt_LD_CXX
19218
19219# Whether we need hard or soft links.
19220LN_S=$lt_LN_S
19221
19222# A BSD-compatible nm program.
19223NM=$lt_NM
19224
19225# A symbol stripping program
19226STRIP=$lt_STRIP
19227
19228# Used to examine libraries when file_magic_cmd begins "file"
19229MAGIC_CMD=$MAGIC_CMD
19230
19231# Used on cygwin: DLL creation program.
19232DLLTOOL="$DLLTOOL"
19233
19234# Used on cygwin: object dumper.
19235OBJDUMP="$OBJDUMP"
19236
19237# Used on cygwin: assembler.
19238AS="$AS"
19239
19240# The name of the directory that contains temporary libtool files.
19241objdir=$objdir
19242
19243# How to create reloadable object files.
19244reload_flag=$lt_reload_flag
19245reload_cmds=$lt_reload_cmds
19246
19247# How to pass a linker flag through the compiler.
19248wl=$lt_lt_prog_compiler_wl_CXX
19249
19250# Object file suffix (normally "o").
19251objext="$ac_objext"
19252
19253# Old archive suffix (normally "a").
19254libext="$libext"
19255
19256# Shared library suffix (normally ".so").
19257shrext_cmds='$shrext_cmds'
19258
19259# Executable file suffix (normally "").
19260exeext="$exeext"
19261
19262# Additional compiler flags for building library objects.
19263pic_flag=$lt_lt_prog_compiler_pic_CXX
19264pic_mode=$pic_mode
19265
19266# What is the maximum length of a command?
19267max_cmd_len=$lt_cv_sys_max_cmd_len
19268
19269# Does compiler simultaneously support -c and -o options?
19270compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19271
19272# Must we lock files when doing compilation ?
19273need_locks=$lt_need_locks
19274
19275# Do we need the lib prefix for modules?
19276need_lib_prefix=$need_lib_prefix
19277
19278# Do we need a version for libraries?
19279need_version=$need_version
19280
19281# Whether dlopen is supported.
19282dlopen_support=$enable_dlopen
19283
19284# Whether dlopen of programs is supported.
19285dlopen_self=$enable_dlopen_self
19286
19287# Whether dlopen of statically linked programs is supported.
19288dlopen_self_static=$enable_dlopen_self_static
19289
19290# Compiler flag to prevent dynamic linking.
19291link_static_flag=$lt_lt_prog_compiler_static_CXX
19292
19293# Compiler flag to turn off builtin functions.
19294no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19295
19296# Compiler flag to allow reflexive dlopens.
19297export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19298
19299# Compiler flag to generate shared objects directly from archives.
19300whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19301
19302# Compiler flag to generate thread-safe objects.
19303thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19304
19305# Library versioning type.
19306version_type=$version_type
19307
19308# Format of library name prefix.
19309libname_spec=$lt_libname_spec
19310
19311# List of archive names.  First name is the real one, the rest are links.
19312# The last name is the one that the linker finds with -lNAME.
19313library_names_spec=$lt_library_names_spec
19314
19315# The coded name of the library, if different from the real name.
19316soname_spec=$lt_soname_spec
19317
19318# Commands used to build and install an old-style archive.
19319RANLIB=$lt_RANLIB
19320old_archive_cmds=$lt_old_archive_cmds_CXX
19321old_postinstall_cmds=$lt_old_postinstall_cmds
19322old_postuninstall_cmds=$lt_old_postuninstall_cmds
19323
19324# Create an old-style archive from a shared archive.
19325old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19326
19327# Create a temporary old-style archive to link instead of a shared archive.
19328old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19329
19330# Commands used to build and install a shared archive.
19331archive_cmds=$lt_archive_cmds_CXX
19332archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19333postinstall_cmds=$lt_postinstall_cmds
19334postuninstall_cmds=$lt_postuninstall_cmds
19335
19336# Commands used to build a loadable module (assumed same as above if empty)
19337module_cmds=$lt_module_cmds_CXX
19338module_expsym_cmds=$lt_module_expsym_cmds_CXX
19339
19340# Commands to strip libraries.
19341old_striplib=$lt_old_striplib
19342striplib=$lt_striplib
19343
19344# Dependencies to place before the objects being linked to create a
19345# shared library.
19346predep_objects=$lt_predep_objects_CXX
19347
19348# Dependencies to place after the objects being linked to create a
19349# shared library.
19350postdep_objects=$lt_postdep_objects_CXX
19351
19352# Dependencies to place before the objects being linked to create a
19353# shared library.
19354predeps=$lt_predeps_CXX
19355
19356# Dependencies to place after the objects being linked to create a
19357# shared library.
19358postdeps=$lt_postdeps_CXX
19359
19360# The library search path used internally by the compiler when linking
19361# a shared library.
19362compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19363
19364# Method to check whether dependent libraries are shared objects.
19365deplibs_check_method=$lt_deplibs_check_method
19366
19367# Command to use when deplibs_check_method == file_magic.
19368file_magic_cmd=$lt_file_magic_cmd
19369
19370# Flag that allows shared libraries with undefined symbols to be built.
19371allow_undefined_flag=$lt_allow_undefined_flag_CXX
19372
19373# Flag that forces no undefined symbols.
19374no_undefined_flag=$lt_no_undefined_flag_CXX
19375
19376# Commands used to finish a libtool library installation in a directory.
19377finish_cmds=$lt_finish_cmds
19378
19379# Same as above, but a single script fragment to be evaled but not shown.
19380finish_eval=$lt_finish_eval
19381
19382# Take the output of nm and produce a listing of raw symbols and C names.
19383global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19384
19385# Transform the output of nm in a proper C declaration
19386global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19387
19388# Transform the output of nm in a C name address pair
19389global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19390
19391# This is the shared library runtime path variable.
19392runpath_var=$runpath_var
19393
19394# This is the shared library path variable.
19395shlibpath_var=$shlibpath_var
19396
19397# Is shlibpath searched before the hard-coded library search path?
19398shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19399
19400# How to hardcode a shared library path into an executable.
19401hardcode_action=$hardcode_action_CXX
19402
19403# Whether we should hardcode library paths into libraries.
19404hardcode_into_libs=$hardcode_into_libs
19405
19406# Flag to hardcode \$libdir into a binary during linking.
19407# This must work even if \$libdir does not exist.
19408hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19409
19410# If ld is used when linking, flag to hardcode \$libdir into
19411# a binary during linking. This must work even if \$libdir does
19412# not exist.
19413hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19414
19415# Whether we need a single -rpath flag with a separated argument.
19416hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19417
19418# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19419# resulting binary.
19420hardcode_direct=$hardcode_direct_CXX
19421
19422# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19423# resulting binary.
19424hardcode_minus_L=$hardcode_minus_L_CXX
19425
19426# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19427# the resulting binary.
19428hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19429
19430# Set to yes if building a shared library automatically hardcodes DIR into the library
19431# and all subsequent libraries and executables linked against it.
19432hardcode_automatic=$hardcode_automatic_CXX
19433
19434# Variables whose values should be saved in libtool wrapper scripts and
19435# restored at relink time.
19436variables_saved_for_relink="$variables_saved_for_relink"
19437
19438# Whether libtool must link a program against all its dependency libraries.
19439link_all_deplibs=$link_all_deplibs_CXX
19440
19441# Compile-time system search path for libraries
19442sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19443
19444# Run-time system search path for libraries
19445sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19446
19447# Fix the shell variable \$srcfile for the compiler.
19448fix_srcfile_path="$fix_srcfile_path_CXX"
19449
19450# Set to yes if exported symbols are required.
19451always_export_symbols=$always_export_symbols_CXX
19452
19453# The commands to list exported symbols.
19454export_symbols_cmds=$lt_export_symbols_cmds_CXX
19455
19456# The commands to extract the exported symbol list from a shared archive.
19457extract_expsyms_cmds=$lt_extract_expsyms_cmds
19458
19459# Symbols that should not be listed in the preloaded symbols.
19460exclude_expsyms=$lt_exclude_expsyms_CXX
19461
19462# Symbols that must always be exported.
19463include_expsyms=$lt_include_expsyms_CXX
19464
19465# ### END LIBTOOL TAG CONFIG: $tagname
19466
19467__EOF__
19468
19469
19470else
19471  # If there is no Makefile yet, we rely on a make rule to execute
19472  # `config.status --recheck' to rerun these tests and create the
19473  # libtool script then.
19474  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19475  if test -f "$ltmain_in"; then
19476    test -f Makefile && make "$ltmain"
19477  fi
19478fi
19479
19480
19481ac_ext=c
19482ac_cpp='$CPP $CPPFLAGS'
19483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19485ac_compiler_gnu=$ac_cv_c_compiler_gnu
19486
19487CC=$lt_save_CC
19488LDCXX=$LD
19489LD=$lt_save_LD
19490GCC=$lt_save_GCC
19491with_gnu_ldcxx=$with_gnu_ld
19492with_gnu_ld=$lt_save_with_gnu_ld
19493lt_cv_path_LDCXX=$lt_cv_path_LD
19494lt_cv_path_LD=$lt_save_path_LD
19495lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19496lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19497
19498	else
19499	  tagname=""
19500	fi
19501	;;
19502
19503      F77)
19504	if test -n "$F77" && test "X$F77" != "Xno"; then
19505
19506ac_ext=f
19507ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19508ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19509ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19510
19511
19512archive_cmds_need_lc_F77=no
19513allow_undefined_flag_F77=
19514always_export_symbols_F77=no
19515archive_expsym_cmds_F77=
19516export_dynamic_flag_spec_F77=
19517hardcode_direct_F77=no
19518hardcode_libdir_flag_spec_F77=
19519hardcode_libdir_flag_spec_ld_F77=
19520hardcode_libdir_separator_F77=
19521hardcode_minus_L_F77=no
19522hardcode_automatic_F77=no
19523module_cmds_F77=
19524module_expsym_cmds_F77=
19525link_all_deplibs_F77=unknown
19526old_archive_cmds_F77=$old_archive_cmds
19527no_undefined_flag_F77=
19528whole_archive_flag_spec_F77=
19529enable_shared_with_static_runtimes_F77=no
19530
19531# Source file extension for f77 test sources.
19532ac_ext=f
19533
19534# Object file extension for compiled f77 test sources.
19535objext=o
19536objext_F77=$objext
19537
19538# Code to be used in simple compile tests
19539lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
19540
19541# Code to be used in simple link tests
19542lt_simple_link_test_code="      program t\n      end\n"
19543
19544# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19545
19546# If no C compiler was specified, use CC.
19547LTCC=${LTCC-"$CC"}
19548
19549# Allow CC to be a program name with arguments.
19550compiler=$CC
19551
19552
19553# Allow CC to be a program name with arguments.
19554lt_save_CC="$CC"
19555CC=${F77-"f77"}
19556compiler=$CC
19557compiler_F77=$CC
19558cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
19559
19560echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19561echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19562echo "$as_me:$LINENO: result: $can_build_shared" >&5
19563echo "${ECHO_T}$can_build_shared" >&6
19564
19565echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19566echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19567test "$can_build_shared" = "no" && enable_shared=no
19568
19569# On AIX, shared libraries and static libraries use the same namespace, and
19570# are all built from PIC.
19571case "$host_os" in
19572aix3*)
19573  test "$enable_shared" = yes && enable_static=no
19574  if test -n "$RANLIB"; then
19575    archive_cmds="$archive_cmds~\$RANLIB \$lib"
19576    postinstall_cmds='$RANLIB $lib'
19577  fi
19578  ;;
19579aix4* | aix5*)
19580  test "$enable_shared" = yes && enable_static=no
19581  ;;
19582esac
19583echo "$as_me:$LINENO: result: $enable_shared" >&5
19584echo "${ECHO_T}$enable_shared" >&6
19585
19586echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19587echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19588# Make sure either enable_shared or enable_static is yes.
19589test "$enable_shared" = yes || enable_static=yes
19590echo "$as_me:$LINENO: result: $enable_static" >&5
19591echo "${ECHO_T}$enable_static" >&6
19592
19593test "$ld_shlibs_F77" = no && can_build_shared=no
19594
19595GCC_F77="$G77"
19596LD_F77="$LD"
19597
19598lt_prog_compiler_wl_F77=
19599lt_prog_compiler_pic_F77=
19600lt_prog_compiler_static_F77=
19601
19602echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19603echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19604
19605  if test "$GCC" = yes; then
19606    lt_prog_compiler_wl_F77='-Wl,'
19607    lt_prog_compiler_static_F77='-static'
19608
19609    case $host_os in
19610      aix*)
19611      # All AIX code is PIC.
19612      if test "$host_cpu" = ia64; then
19613	# AIX 5 now supports IA64 processor
19614	lt_prog_compiler_static_F77='-Bstatic'
19615      fi
19616      ;;
19617
19618    amigaos*)
19619      # FIXME: we need at least 68020 code to build shared libraries, but
19620      # adding the `-m68020' flag to GCC prevents building anything better,
19621      # like `-m68040'.
19622      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19623      ;;
19624
19625    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19626      # PIC is the default for these OSes.
19627      ;;
19628
19629    mingw* | pw32* | os2*)
19630      # This hack is so that the source file can tell whether it is being
19631      # built for inclusion in a dll (and should export symbols for example).
19632      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19633      ;;
19634
19635    darwin* | rhapsody*)
19636      # PIC is the default on this platform
19637      # Common symbols not allowed in MH_DYLIB files
19638      lt_prog_compiler_pic_F77='-fno-common'
19639      ;;
19640
19641    msdosdjgpp*)
19642      # Just because we use GCC doesn't mean we suddenly get shared libraries
19643      # on systems that don't support them.
19644      lt_prog_compiler_can_build_shared_F77=no
19645      enable_shared=no
19646      ;;
19647
19648    sysv4*MP*)
19649      if test -d /usr/nec; then
19650	lt_prog_compiler_pic_F77=-Kconform_pic
19651      fi
19652      ;;
19653
19654    hpux*)
19655      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19656      # not for PA HP-UX.
19657      case "$host_cpu" in
19658      hppa*64*|ia64*)
19659	# +Z the default
19660	;;
19661      *)
19662	lt_prog_compiler_pic_F77='-fPIC'
19663	;;
19664      esac
19665      ;;
19666
19667    *)
19668      lt_prog_compiler_pic_F77='-fPIC'
19669      ;;
19670    esac
19671  else
19672    # PORTME Check for flag to pass linker flags through the system compiler.
19673    case $host_os in
19674    aix*)
19675      lt_prog_compiler_wl_F77='-Wl,'
19676      if test "$host_cpu" = ia64; then
19677	# AIX 5 now supports IA64 processor
19678	lt_prog_compiler_static_F77='-Bstatic'
19679      else
19680	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19681      fi
19682      ;;
19683
19684    mingw* | pw32* | os2*)
19685      # This hack is so that the source file can tell whether it is being
19686      # built for inclusion in a dll (and should export symbols for example).
19687      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19688      ;;
19689
19690    hpux9* | hpux10* | hpux11*)
19691      lt_prog_compiler_wl_F77='-Wl,'
19692      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19693      # not for PA HP-UX.
19694      case "$host_cpu" in
19695      hppa*64*|ia64*)
19696	# +Z the default
19697	;;
19698      *)
19699	lt_prog_compiler_pic_F77='+Z'
19700	;;
19701      esac
19702      # Is there a better lt_prog_compiler_static that works with the bundled CC?
19703      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19704      ;;
19705
19706    irix5* | irix6* | nonstopux*)
19707      lt_prog_compiler_wl_F77='-Wl,'
19708      # PIC (with -KPIC) is the default.
19709      lt_prog_compiler_static_F77='-non_shared'
19710      ;;
19711
19712    newsos6)
19713      lt_prog_compiler_pic_F77='-KPIC'
19714      lt_prog_compiler_static_F77='-Bstatic'
19715      ;;
19716
19717    linux*)
19718      case $CC in
19719      icc* | ecc*)
19720	lt_prog_compiler_wl_F77='-Wl,'
19721	lt_prog_compiler_pic_F77='-KPIC'
19722	lt_prog_compiler_static_F77='-static'
19723        ;;
19724      ccc*)
19725        lt_prog_compiler_wl_F77='-Wl,'
19726        # All Alpha code is PIC.
19727        lt_prog_compiler_static_F77='-non_shared'
19728        ;;
19729      esac
19730      ;;
19731
19732    osf3* | osf4* | osf5*)
19733      lt_prog_compiler_wl_F77='-Wl,'
19734      # All OSF/1 code is PIC.
19735      lt_prog_compiler_static_F77='-non_shared'
19736      ;;
19737
19738    sco3.2v5*)
19739      lt_prog_compiler_pic_F77='-Kpic'
19740      lt_prog_compiler_static_F77='-dn'
19741      ;;
19742
19743    solaris*)
19744      lt_prog_compiler_wl_F77='-Wl,'
19745      lt_prog_compiler_pic_F77='-KPIC'
19746      lt_prog_compiler_static_F77='-Bstatic'
19747      ;;
19748
19749    sunos4*)
19750      lt_prog_compiler_wl_F77='-Qoption ld '
19751      lt_prog_compiler_pic_F77='-PIC'
19752      lt_prog_compiler_static_F77='-Bstatic'
19753      ;;
19754
19755    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19756      lt_prog_compiler_wl_F77='-Wl,'
19757      lt_prog_compiler_pic_F77='-KPIC'
19758      lt_prog_compiler_static_F77='-Bstatic'
19759      ;;
19760
19761    sysv4*MP*)
19762      if test -d /usr/nec ;then
19763	lt_prog_compiler_pic_F77='-Kconform_pic'
19764	lt_prog_compiler_static_F77='-Bstatic'
19765      fi
19766      ;;
19767
19768    uts4*)
19769      lt_prog_compiler_pic_F77='-pic'
19770      lt_prog_compiler_static_F77='-Bstatic'
19771      ;;
19772
19773    *)
19774      lt_prog_compiler_can_build_shared_F77=no
19775      ;;
19776    esac
19777  fi
19778
19779echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19780echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19781
19782#
19783# Check to make sure the PIC flag actually works.
19784#
19785if test -n "$lt_prog_compiler_pic_F77"; then
19786
19787echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19788echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19789if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19790  echo $ECHO_N "(cached) $ECHO_C" >&6
19791else
19792  lt_prog_compiler_pic_works_F77=no
19793  ac_outfile=conftest.$ac_objext
19794   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19795   lt_compiler_flag="$lt_prog_compiler_pic_F77"
19796   # Insert the option either (1) after the last *FLAGS variable, or
19797   # (2) before a word containing "conftest.", or (3) at the end.
19798   # Note that $ac_compile itself does not contain backslashes and begins
19799   # with a dollar sign (not a hyphen), so the echo should work correctly.
19800   # The option is referenced via a variable to avoid confusing sed.
19801   lt_compile=`echo "$ac_compile" | $SED \
19802   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19803   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19804   -e 's:$: $lt_compiler_flag:'`
19805   (eval echo "\"\$as_me:19805: $lt_compile\"" >&5)
19806   (eval "$lt_compile" 2>conftest.err)
19807   ac_status=$?
19808   cat conftest.err >&5
19809   echo "$as_me:19809: \$? = $ac_status" >&5
19810   if (exit $ac_status) && test -s "$ac_outfile"; then
19811     # The compiler can only warn and ignore the option if not recognized
19812     # So say no if there are warnings
19813     if test ! -s conftest.err; then
19814       lt_prog_compiler_pic_works_F77=yes
19815     fi
19816   fi
19817   $rm conftest*
19818
19819fi
19820echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19821echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19822
19823if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19824    case $lt_prog_compiler_pic_F77 in
19825     "" | " "*) ;;
19826     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19827     esac
19828else
19829    lt_prog_compiler_pic_F77=
19830     lt_prog_compiler_can_build_shared_F77=no
19831fi
19832
19833fi
19834case "$host_os" in
19835  # For platforms which do not support PIC, -DPIC is meaningless:
19836  *djgpp*)
19837    lt_prog_compiler_pic_F77=
19838    ;;
19839  *)
19840    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19841    ;;
19842esac
19843
19844echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19845echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19846if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19847  echo $ECHO_N "(cached) $ECHO_C" >&6
19848else
19849  lt_cv_prog_compiler_c_o_F77=no
19850   $rm -r conftest 2>/dev/null
19851   mkdir conftest
19852   cd conftest
19853   mkdir out
19854   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19855
19856   lt_compiler_flag="-o out/conftest2.$ac_objext"
19857   # Insert the option either (1) after the last *FLAGS variable, or
19858   # (2) before a word containing "conftest.", or (3) at the end.
19859   # Note that $ac_compile itself does not contain backslashes and begins
19860   # with a dollar sign (not a hyphen), so the echo should work correctly.
19861   lt_compile=`echo "$ac_compile" | $SED \
19862   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19863   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19864   -e 's:$: $lt_compiler_flag:'`
19865   (eval echo "\"\$as_me:19865: $lt_compile\"" >&5)
19866   (eval "$lt_compile" 2>out/conftest.err)
19867   ac_status=$?
19868   cat out/conftest.err >&5
19869   echo "$as_me:19869: \$? = $ac_status" >&5
19870   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19871   then
19872     # The compiler can only warn and ignore the option if not recognized
19873     # So say no if there are warnings
19874     if test ! -s out/conftest.err; then
19875       lt_cv_prog_compiler_c_o_F77=yes
19876     fi
19877   fi
19878   chmod u+w .
19879   $rm conftest*
19880   # SGI C++ compiler will create directory out/ii_files/ for
19881   # template instantiation
19882   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19883   $rm out/* && rmdir out
19884   cd ..
19885   rmdir conftest
19886   $rm conftest*
19887
19888fi
19889echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19890echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19891
19892
19893hard_links="nottested"
19894if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19895  # do not overwrite the value of need_locks provided by the user
19896  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19897echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19898  hard_links=yes
19899  $rm conftest*
19900  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19901  touch conftest.a
19902  ln conftest.a conftest.b 2>&5 || hard_links=no
19903  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19904  echo "$as_me:$LINENO: result: $hard_links" >&5
19905echo "${ECHO_T}$hard_links" >&6
19906  if test "$hard_links" = no; then
19907    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19908echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19909    need_locks=warn
19910  fi
19911else
19912  need_locks=no
19913fi
19914
19915echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19916echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19917
19918  runpath_var=
19919  allow_undefined_flag_F77=
19920  enable_shared_with_static_runtimes_F77=no
19921  archive_cmds_F77=
19922  archive_expsym_cmds_F77=
19923  old_archive_From_new_cmds_F77=
19924  old_archive_from_expsyms_cmds_F77=
19925  export_dynamic_flag_spec_F77=
19926  whole_archive_flag_spec_F77=
19927  thread_safe_flag_spec_F77=
19928  hardcode_libdir_flag_spec_F77=
19929  hardcode_libdir_flag_spec_ld_F77=
19930  hardcode_libdir_separator_F77=
19931  hardcode_direct_F77=no
19932  hardcode_minus_L_F77=no
19933  hardcode_shlibpath_var_F77=unsupported
19934  link_all_deplibs_F77=unknown
19935  hardcode_automatic_F77=no
19936  module_cmds_F77=
19937  module_expsym_cmds_F77=
19938  always_export_symbols_F77=no
19939  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19940  # include_expsyms should be a list of space-separated symbols to be *always*
19941  # included in the symbol list
19942  include_expsyms_F77=
19943  # exclude_expsyms can be an extended regexp of symbols to exclude
19944  # it will be wrapped by ` (' and `)$', so one must not match beginning or
19945  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19946  # as well as any symbol that contains `d'.
19947  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19948  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19949  # platforms (ab)use it in PIC code, but their linkers get confused if
19950  # the symbol is explicitly referenced.  Since portable code cannot
19951  # rely on this symbol name, it's probably fine to never include it in
19952  # preloaded symbol tables.
19953  extract_expsyms_cmds=
19954
19955  case $host_os in
19956  cygwin* | mingw* | pw32*)
19957    # FIXME: the MSVC++ port hasn't been tested in a loooong time
19958    # When not using gcc, we currently assume that we are using
19959    # Microsoft Visual C++.
19960    if test "$GCC" != yes; then
19961      with_gnu_ld=no
19962    fi
19963    ;;
19964  openbsd*)
19965    with_gnu_ld=no
19966    ;;
19967  esac
19968
19969  ld_shlibs_F77=yes
19970  if test "$with_gnu_ld" = yes; then
19971    # If archive_cmds runs LD, not CC, wlarc should be empty
19972    wlarc='${wl}'
19973
19974    # See if GNU ld supports shared libraries.
19975    case $host_os in
19976    aix3* | aix4* | aix5*)
19977      # On AIX/PPC, the GNU linker is very broken
19978      if test "$host_cpu" != ia64; then
19979	ld_shlibs_F77=no
19980	cat <<EOF 1>&2
19981
19982*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19983*** to be unable to reliably create shared libraries on AIX.
19984*** Therefore, libtool is disabling shared libraries support.  If you
19985*** really care for shared libraries, you may want to modify your PATH
19986*** so that a non-GNU linker is found, and then restart.
19987
19988EOF
19989      fi
19990      ;;
19991
19992    amigaos*)
19993      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)'
19994      hardcode_libdir_flag_spec_F77='-L$libdir'
19995      hardcode_minus_L_F77=yes
19996
19997      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19998      # that the semantics of dynamic libraries on AmigaOS, at least up
19999      # to version 4, is to share data among multiple programs linked
20000      # with the same dynamic library.  Since this doesn't match the
20001      # behavior of shared libraries on other platforms, we can't use
20002      # them.
20003      ld_shlibs_F77=no
20004      ;;
20005
20006    beos*)
20007      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20008	allow_undefined_flag_F77=unsupported
20009	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20010	# support --undefined.  This deserves some investigation.  FIXME
20011	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20012      else
20013	ld_shlibs_F77=no
20014      fi
20015      ;;
20016
20017    cygwin* | mingw* | pw32*)
20018      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20019      # as there is no search path for DLLs.
20020      hardcode_libdir_flag_spec_F77='-L$libdir'
20021      allow_undefined_flag_F77=unsupported
20022      always_export_symbols_F77=no
20023      enable_shared_with_static_runtimes_F77=yes
20024      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20025
20026      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20027        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20028	# If the export-symbols file already is a .def file (1st line
20029	# is EXPORTS), use it as is; otherwise, prepend...
20030	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20031	  cp $export_symbols $output_objdir/$soname.def;
20032	else
20033	  echo EXPORTS > $output_objdir/$soname.def;
20034	  cat $export_symbols >> $output_objdir/$soname.def;
20035	fi~
20036	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
20037      else
20038	ld_shlibs=no
20039      fi
20040      ;;
20041
20042    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
20043      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20044	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20045	wlarc=
20046      else
20047	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20048	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20049      fi
20050      ;;
20051
20052    solaris* | sysv5*)
20053      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20054	ld_shlibs_F77=no
20055	cat <<EOF 1>&2
20056
20057*** Warning: The releases 2.8.* of the GNU linker cannot reliably
20058*** create shared libraries on Solaris systems.  Therefore, libtool
20059*** is disabling shared libraries support.  We urge you to upgrade GNU
20060*** binutils to release 2.9.1 or newer.  Another option is to modify
20061*** your PATH or compiler configuration so that the native linker is
20062*** used, and then restart.
20063
20064EOF
20065      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20066	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20067	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20068      else
20069	ld_shlibs_F77=no
20070      fi
20071      ;;
20072
20073    sunos4*)
20074      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20075      wlarc=
20076      hardcode_direct_F77=yes
20077      hardcode_shlibpath_var_F77=no
20078      ;;
20079
20080  linux*)
20081    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20082        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20083	archive_cmds_F77="$tmp_archive_cmds"
20084      supports_anon_versioning=no
20085      case `$LD -v 2>/dev/null` in
20086        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20087        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20088        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20089        *\ 2.11.*) ;; # other 2.11 versions
20090        *) supports_anon_versioning=yes ;;
20091      esac
20092      if test $supports_anon_versioning = yes; then
20093        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20094cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20095$echo "local: *; };" >> $output_objdir/$libname.ver~
20096        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20097      else
20098        archive_expsym_cmds_F77="$tmp_archive_cmds"
20099      fi
20100      link_all_deplibs_F77=no
20101    else
20102      ld_shlibs_F77=no
20103    fi
20104    ;;
20105
20106    *)
20107      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20108	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20109	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20110      else
20111	ld_shlibs_F77=no
20112      fi
20113      ;;
20114    esac
20115
20116    if test "$ld_shlibs_F77" = yes; then
20117      runpath_var=LD_RUN_PATH
20118      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20119      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20120      # ancient GNU ld didn't support --whole-archive et. al.
20121      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20122 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20123      else
20124  	whole_archive_flag_spec_F77=
20125      fi
20126    fi
20127  else
20128    # PORTME fill in a description of your system's linker (not GNU ld)
20129    case $host_os in
20130    aix3*)
20131      allow_undefined_flag_F77=unsupported
20132      always_export_symbols_F77=yes
20133      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'
20134      # Note: this linker hardcodes the directories in LIBPATH if there
20135      # are no directories specified by -L.
20136      hardcode_minus_L_F77=yes
20137      if test "$GCC" = yes && test -z "$link_static_flag"; then
20138	# Neither direct hardcoding nor static linking is supported with a
20139	# broken collect2.
20140	hardcode_direct_F77=unsupported
20141      fi
20142      ;;
20143
20144    aix4* | aix5*)
20145      if test "$host_cpu" = ia64; then
20146	# On IA64, the linker does run time linking by default, so we don't
20147	# have to do anything special.
20148	aix_use_runtimelinking=no
20149	exp_sym_flag='-Bexport'
20150	no_entry_flag=""
20151      else
20152	# If we're using GNU nm, then we don't want the "-C" option.
20153	# -C means demangle to AIX nm, but means don't demangle with GNU nm
20154	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20155	  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'
20156	else
20157	  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'
20158	fi
20159	aix_use_runtimelinking=no
20160
20161	# Test if we are trying to use run time linking or normal
20162	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
20163	# need to do runtime linking.
20164	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20165	  for ld_flag in $LDFLAGS; do
20166  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20167  	    aix_use_runtimelinking=yes
20168  	    break
20169  	  fi
20170	  done
20171	esac
20172
20173	exp_sym_flag='-bexport'
20174	no_entry_flag='-bnoentry'
20175      fi
20176
20177      # When large executables or shared objects are built, AIX ld can
20178      # have problems creating the table of contents.  If linking a library
20179      # or program results in "error TOC overflow" add -mminimal-toc to
20180      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20181      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20182
20183      archive_cmds_F77=''
20184      hardcode_direct_F77=yes
20185      hardcode_libdir_separator_F77=':'
20186      link_all_deplibs_F77=yes
20187
20188      if test "$GCC" = yes; then
20189	case $host_os in aix4.012|aix4.012.*)
20190	# We only want to do this on AIX 4.2 and lower, the check
20191	# below for broken collect2 doesn't work under 4.3+
20192	  collect2name=`${CC} -print-prog-name=collect2`
20193	  if test -f "$collect2name" && \
20194  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
20195	  then
20196  	  # We have reworked collect2
20197  	  hardcode_direct_F77=yes
20198	  else
20199  	  # We have old collect2
20200  	  hardcode_direct_F77=unsupported
20201  	  # It fails to find uninstalled libraries when the uninstalled
20202  	  # path is not listed in the libpath.  Setting hardcode_minus_L
20203  	  # to unsupported forces relinking
20204  	  hardcode_minus_L_F77=yes
20205  	  hardcode_libdir_flag_spec_F77='-L$libdir'
20206  	  hardcode_libdir_separator_F77=
20207	  fi
20208	esac
20209	shared_flag='-shared'
20210      else
20211	# not using gcc
20212	if test "$host_cpu" = ia64; then
20213  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20214  	# chokes on -Wl,-G. The following line is correct:
20215	  shared_flag='-G'
20216	else
20217  	if test "$aix_use_runtimelinking" = yes; then
20218	    shared_flag='${wl}-G'
20219	  else
20220	    shared_flag='${wl}-bM:SRE'
20221  	fi
20222	fi
20223      fi
20224
20225      # It seems that -bexpall does not export symbols beginning with
20226      # underscore (_), so it is better to generate a list of symbols to export.
20227      always_export_symbols_F77=yes
20228      if test "$aix_use_runtimelinking" = yes; then
20229	# Warning - without using the other runtime loading flags (-brtl),
20230	# -berok will link without error, but may produce a broken library.
20231	allow_undefined_flag_F77='-berok'
20232       # Determine the default libpath from the value encoded in an empty executable.
20233       cat >conftest.$ac_ext <<_ACEOF
20234      program main
20235
20236      end
20237_ACEOF
20238rm -f conftest.$ac_objext conftest$ac_exeext
20239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20240  (eval $ac_link) 2>conftest.er1
20241  ac_status=$?
20242  grep -v '^ *+' conftest.er1 >conftest.err
20243  rm -f conftest.er1
20244  cat conftest.err >&5
20245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246  (exit $ac_status); } &&
20247	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
20248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20249  (eval $ac_try) 2>&5
20250  ac_status=$?
20251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252  (exit $ac_status); }; } &&
20253	 { ac_try='test -s conftest$ac_exeext'
20254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255  (eval $ac_try) 2>&5
20256  ac_status=$?
20257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258  (exit $ac_status); }; }; then
20259
20260aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20261}'`
20262# Check for a 64-bit object if we didn't find anything.
20263if 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; }
20264}'`; fi
20265else
20266  echo "$as_me: failed program was:" >&5
20267sed 's/^/| /' conftest.$ac_ext >&5
20268
20269fi
20270rm -f conftest.err conftest.$ac_objext \
20271      conftest$ac_exeext conftest.$ac_ext
20272if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20273
20274       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20275	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"
20276       else
20277	if test "$host_cpu" = ia64; then
20278	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20279	  allow_undefined_flag_F77="-z nodefs"
20280	  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"
20281	else
20282	 # Determine the default libpath from the value encoded in an empty executable.
20283	 cat >conftest.$ac_ext <<_ACEOF
20284      program main
20285
20286      end
20287_ACEOF
20288rm -f conftest.$ac_objext conftest$ac_exeext
20289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20290  (eval $ac_link) 2>conftest.er1
20291  ac_status=$?
20292  grep -v '^ *+' conftest.er1 >conftest.err
20293  rm -f conftest.er1
20294  cat conftest.err >&5
20295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296  (exit $ac_status); } &&
20297	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
20298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299  (eval $ac_try) 2>&5
20300  ac_status=$?
20301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302  (exit $ac_status); }; } &&
20303	 { ac_try='test -s conftest$ac_exeext'
20304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305  (eval $ac_try) 2>&5
20306  ac_status=$?
20307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308  (exit $ac_status); }; }; then
20309
20310aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20311}'`
20312# Check for a 64-bit object if we didn't find anything.
20313if 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; }
20314}'`; fi
20315else
20316  echo "$as_me: failed program was:" >&5
20317sed 's/^/| /' conftest.$ac_ext >&5
20318
20319fi
20320rm -f conftest.err conftest.$ac_objext \
20321      conftest$ac_exeext conftest.$ac_ext
20322if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20323
20324	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20325	  # Warning - without using the other run time loading flags,
20326	  # -berok will link without error, but may produce a broken library.
20327	  no_undefined_flag_F77=' ${wl}-bernotok'
20328	  allow_undefined_flag_F77=' ${wl}-berok'
20329	  # -bexpall does not export symbols beginning with underscore (_)
20330	  always_export_symbols_F77=yes
20331	  # Exported symbols can be pulled into shared objects from archives
20332	  whole_archive_flag_spec_F77=' '
20333	  archive_cmds_need_lc_F77=yes
20334	  # This is similar to how AIX traditionally builds it's shared libraries.
20335	  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'
20336	fi
20337      fi
20338      ;;
20339
20340    amigaos*)
20341      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)'
20342      hardcode_libdir_flag_spec_F77='-L$libdir'
20343      hardcode_minus_L_F77=yes
20344      # see comment about different semantics on the GNU ld section
20345      ld_shlibs_F77=no
20346      ;;
20347
20348    bsdi4*)
20349      export_dynamic_flag_spec_F77=-rdynamic
20350      ;;
20351
20352    cygwin* | mingw* | pw32*)
20353      # When not using gcc, we currently assume that we are using
20354      # Microsoft Visual C++.
20355      # hardcode_libdir_flag_spec is actually meaningless, as there is
20356      # no search path for DLLs.
20357      hardcode_libdir_flag_spec_F77=' '
20358      allow_undefined_flag_F77=unsupported
20359      # Tell ltmain to make .lib files, not .a files.
20360      libext=lib
20361      # Tell ltmain to make .dll files, not .so files.
20362      shrext_cmds=".dll"
20363      # FIXME: Setting linknames here is a bad hack.
20364      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20365      # The linker will automatically build a .lib file if we build a DLL.
20366      old_archive_From_new_cmds_F77='true'
20367      # FIXME: Should let the user specify the lib program.
20368      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
20369      fix_srcfile_path='`cygpath -w "$srcfile"`'
20370      enable_shared_with_static_runtimes_F77=yes
20371      ;;
20372
20373    darwin* | rhapsody*)
20374    if test "$GXX" = yes ; then
20375      archive_cmds_need_lc_F77=no
20376      case "$host_os" in
20377      rhapsody* | darwin1.[012])
20378	allow_undefined_flag_F77='-undefined suppress'
20379	;;
20380      *) # Darwin 1.3 on
20381      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20382      	allow_undefined_flag_F77='-flat_namespace -undefined suppress'
20383      else
20384        case ${MACOSX_DEPLOYMENT_TARGET} in
20385          10.[012])
20386            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
20387            ;;
20388          10.*)
20389            allow_undefined_flag_F77='-undefined dynamic_lookup'
20390            ;;
20391        esac
20392      fi
20393	;;
20394      esac
20395    	lt_int_apple_cc_single_mod=no
20396    	output_verbose_link_cmd='echo'
20397    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
20398    	  lt_int_apple_cc_single_mod=yes
20399    	fi
20400    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20401    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20402    	else
20403        archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
20404      fi
20405      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20406      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20407        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20408          archive_expsym_cmds_F77='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}'
20409        else
20410          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
20411        fi
20412          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}'
20413      hardcode_direct_F77=no
20414      hardcode_automatic_F77=yes
20415      hardcode_shlibpath_var_F77=unsupported
20416      whole_archive_flag_spec_F77='-all_load $convenience'
20417      link_all_deplibs_F77=yes
20418    else
20419      ld_shlibs_F77=no
20420    fi
20421      ;;
20422
20423    dgux*)
20424      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20425      hardcode_libdir_flag_spec_F77='-L$libdir'
20426      hardcode_shlibpath_var_F77=no
20427      ;;
20428
20429    freebsd1*)
20430      ld_shlibs_F77=no
20431      ;;
20432
20433    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20434    # support.  Future versions do this automatically, but an explicit c++rt0.o
20435    # does not break anything, and helps significantly (at the cost of a little
20436    # extra space).
20437    freebsd2.2*)
20438      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20439      hardcode_libdir_flag_spec_F77='-R$libdir'
20440      hardcode_direct_F77=yes
20441      hardcode_shlibpath_var_F77=no
20442      ;;
20443
20444    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20445    freebsd2*)
20446      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20447      hardcode_direct_F77=yes
20448      hardcode_minus_L_F77=yes
20449      hardcode_shlibpath_var_F77=no
20450      ;;
20451
20452    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20453    freebsd* | kfreebsd*-gnu)
20454      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20455      hardcode_libdir_flag_spec_F77='-R$libdir'
20456      hardcode_direct_F77=yes
20457      hardcode_shlibpath_var_F77=no
20458      ;;
20459
20460    hpux9*)
20461      if test "$GCC" = yes; then
20462	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'
20463      else
20464	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'
20465      fi
20466      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20467      hardcode_libdir_separator_F77=:
20468      hardcode_direct_F77=yes
20469
20470      # hardcode_minus_L: Not really in the search PATH,
20471      # but as the default location of the library.
20472      hardcode_minus_L_F77=yes
20473      export_dynamic_flag_spec_F77='${wl}-E'
20474      ;;
20475
20476    hpux10* | hpux11*)
20477      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20478	case "$host_cpu" in
20479	hppa*64*|ia64*)
20480	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20481	  ;;
20482	*)
20483	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20484	  ;;
20485	esac
20486      else
20487	case "$host_cpu" in
20488	hppa*64*|ia64*)
20489	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20490	  ;;
20491	*)
20492	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20493	  ;;
20494	esac
20495      fi
20496      if test "$with_gnu_ld" = no; then
20497	case "$host_cpu" in
20498	hppa*64*)
20499	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20500	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
20501	  hardcode_libdir_separator_F77=:
20502	  hardcode_direct_F77=no
20503	  hardcode_shlibpath_var_F77=no
20504	  ;;
20505	ia64*)
20506	  hardcode_libdir_flag_spec_F77='-L$libdir'
20507	  hardcode_direct_F77=no
20508	  hardcode_shlibpath_var_F77=no
20509
20510	  # hardcode_minus_L: Not really in the search PATH,
20511	  # but as the default location of the library.
20512	  hardcode_minus_L_F77=yes
20513	  ;;
20514	*)
20515	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20516	  hardcode_libdir_separator_F77=:
20517	  hardcode_direct_F77=yes
20518	  export_dynamic_flag_spec_F77='${wl}-E'
20519
20520	  # hardcode_minus_L: Not really in the search PATH,
20521	  # but as the default location of the library.
20522	  hardcode_minus_L_F77=yes
20523	  ;;
20524	esac
20525      fi
20526      ;;
20527
20528    irix5* | irix6* | nonstopux*)
20529      if test "$GCC" = yes; then
20530	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'
20531      else
20532	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'
20533	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
20534      fi
20535      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20536      hardcode_libdir_separator_F77=:
20537      link_all_deplibs_F77=yes
20538      ;;
20539
20540    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
20541      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20542	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
20543      else
20544	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
20545      fi
20546      hardcode_libdir_flag_spec_F77='-R$libdir'
20547      hardcode_direct_F77=yes
20548      hardcode_shlibpath_var_F77=no
20549      ;;
20550
20551    newsos6)
20552      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20553      hardcode_direct_F77=yes
20554      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20555      hardcode_libdir_separator_F77=:
20556      hardcode_shlibpath_var_F77=no
20557      ;;
20558
20559    openbsd*)
20560      hardcode_direct_F77=yes
20561      hardcode_shlibpath_var_F77=no
20562      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20563	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20564	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20565	export_dynamic_flag_spec_F77='${wl}-E'
20566      else
20567       case $host_os in
20568	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20569	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20570	   hardcode_libdir_flag_spec_F77='-R$libdir'
20571	   ;;
20572	 *)
20573	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20574	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20575	   ;;
20576       esac
20577      fi
20578      ;;
20579
20580    os2*)
20581      hardcode_libdir_flag_spec_F77='-L$libdir'
20582      hardcode_minus_L_F77=yes
20583      allow_undefined_flag_F77=unsupported
20584      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'
20585      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20586      ;;
20587
20588    osf3*)
20589      if test "$GCC" = yes; then
20590	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20591	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'
20592      else
20593	allow_undefined_flag_F77=' -expect_unresolved \*'
20594	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'
20595      fi
20596      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20597      hardcode_libdir_separator_F77=:
20598      ;;
20599
20600    osf4* | osf5*)	# as osf3* with the addition of -msym flag
20601      if test "$GCC" = yes; then
20602	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20603	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'
20604	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20605      else
20606	allow_undefined_flag_F77=' -expect_unresolved \*'
20607	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'
20608	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~
20609	$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'
20610
20611	# Both c and cxx compiler support -rpath directly
20612	hardcode_libdir_flag_spec_F77='-rpath $libdir'
20613      fi
20614      hardcode_libdir_separator_F77=:
20615      ;;
20616
20617    sco3.2v5*)
20618      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20619      hardcode_shlibpath_var_F77=no
20620      export_dynamic_flag_spec_F77='${wl}-Bexport'
20621      runpath_var=LD_RUN_PATH
20622      hardcode_runpath_var=yes
20623      ;;
20624
20625    solaris*)
20626      no_undefined_flag_F77=' -z text'
20627      if test "$GCC" = yes; then
20628	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20629	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20630	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20631      else
20632	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20633	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20634  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20635      fi
20636      hardcode_libdir_flag_spec_F77='-R$libdir'
20637      hardcode_shlibpath_var_F77=no
20638      case $host_os in
20639      solaris2.[0-5] | solaris2.[0-5].*) ;;
20640      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20641	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20642      esac
20643      link_all_deplibs_F77=yes
20644      ;;
20645
20646    sunos4*)
20647      if test "x$host_vendor" = xsequent; then
20648	# Use $CC to link under sequent, because it throws in some extra .o
20649	# files that make .init and .fini sections work.
20650	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20651      else
20652	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20653      fi
20654      hardcode_libdir_flag_spec_F77='-L$libdir'
20655      hardcode_direct_F77=yes
20656      hardcode_minus_L_F77=yes
20657      hardcode_shlibpath_var_F77=no
20658      ;;
20659
20660    sysv4)
20661      case $host_vendor in
20662	sni)
20663	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20664	  hardcode_direct_F77=yes # is this really true???
20665	;;
20666	siemens)
20667	  ## LD is ld it makes a PLAMLIB
20668	  ## CC just makes a GrossModule.
20669	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20670	  reload_cmds_F77='$CC -r -o $output$reload_objs'
20671	  hardcode_direct_F77=no
20672        ;;
20673	motorola)
20674	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20675	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20676	;;
20677      esac
20678      runpath_var='LD_RUN_PATH'
20679      hardcode_shlibpath_var_F77=no
20680      ;;
20681
20682    sysv4.3*)
20683      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20684      hardcode_shlibpath_var_F77=no
20685      export_dynamic_flag_spec_F77='-Bexport'
20686      ;;
20687
20688    sysv4*MP*)
20689      if test -d /usr/nec; then
20690	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20691	hardcode_shlibpath_var_F77=no
20692	runpath_var=LD_RUN_PATH
20693	hardcode_runpath_var=yes
20694	ld_shlibs_F77=yes
20695      fi
20696      ;;
20697
20698    sysv4.2uw2*)
20699      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20700      hardcode_direct_F77=yes
20701      hardcode_minus_L_F77=no
20702      hardcode_shlibpath_var_F77=no
20703      hardcode_runpath_var=yes
20704      runpath_var=LD_RUN_PATH
20705      ;;
20706
20707   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
20708      no_undefined_flag_F77='${wl}-z ${wl}text'
20709      if test "$GCC" = yes; then
20710	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20711      else
20712	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20713      fi
20714      runpath_var='LD_RUN_PATH'
20715      hardcode_shlibpath_var_F77=no
20716      ;;
20717
20718    sysv5*)
20719      no_undefined_flag_F77=' -z text'
20720      # $CC -shared without GNU ld will not create a library from C++
20721      # object files and a static libstdc++, better avoid it by now
20722      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20723      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20724  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20725      hardcode_libdir_flag_spec_F77=
20726      hardcode_shlibpath_var_F77=no
20727      runpath_var='LD_RUN_PATH'
20728      ;;
20729
20730    uts4*)
20731      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20732      hardcode_libdir_flag_spec_F77='-L$libdir'
20733      hardcode_shlibpath_var_F77=no
20734      ;;
20735
20736    *)
20737      ld_shlibs_F77=no
20738      ;;
20739    esac
20740  fi
20741
20742echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20743echo "${ECHO_T}$ld_shlibs_F77" >&6
20744test "$ld_shlibs_F77" = no && can_build_shared=no
20745
20746variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20747if test "$GCC" = yes; then
20748  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20749fi
20750
20751#
20752# Do we need to explicitly link libc?
20753#
20754case "x$archive_cmds_need_lc_F77" in
20755x|xyes)
20756  # Assume -lc should be added
20757  archive_cmds_need_lc_F77=yes
20758
20759  if test "$enable_shared" = yes && test "$GCC" = yes; then
20760    case $archive_cmds_F77 in
20761    *'~'*)
20762      # FIXME: we may have to deal with multi-command sequences.
20763      ;;
20764    '$CC '*)
20765      # Test whether the compiler implicitly links with -lc since on some
20766      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20767      # to ld, don't add -lc before -lgcc.
20768      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20769echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20770      $rm conftest*
20771      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20772
20773      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20774  (eval $ac_compile) 2>&5
20775  ac_status=$?
20776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777  (exit $ac_status); } 2>conftest.err; then
20778        soname=conftest
20779        lib=conftest
20780        libobjs=conftest.$ac_objext
20781        deplibs=
20782        wl=$lt_prog_compiler_wl_F77
20783        compiler_flags=-v
20784        linker_flags=-v
20785        verstring=
20786        output_objdir=.
20787        libname=conftest
20788        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20789        allow_undefined_flag_F77=
20790        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20791  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20792  ac_status=$?
20793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794  (exit $ac_status); }
20795        then
20796	  archive_cmds_need_lc_F77=no
20797        else
20798	  archive_cmds_need_lc_F77=yes
20799        fi
20800        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20801      else
20802        cat conftest.err 1>&5
20803      fi
20804      $rm conftest*
20805      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20806echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20807      ;;
20808    esac
20809  fi
20810  ;;
20811esac
20812
20813echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20814echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20815library_names_spec=
20816libname_spec='lib$name'
20817soname_spec=
20818shrext_cmds=".so"
20819postinstall_cmds=
20820postuninstall_cmds=
20821finish_cmds=
20822finish_eval=
20823shlibpath_var=
20824shlibpath_overrides_runpath=unknown
20825version_type=none
20826dynamic_linker="$host_os ld.so"
20827sys_lib_dlsearch_path_spec="/lib /usr/lib"
20828if test "$GCC" = yes; then
20829  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20830  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20831    # if the path contains ";" then we assume it to be the separator
20832    # otherwise default to the standard path separator (i.e. ":") - it is
20833    # assumed that no part of a normal pathname contains ";" but that should
20834    # okay in the real world where ";" in dirpaths is itself problematic.
20835    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20836  else
20837    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20838  fi
20839else
20840  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20841fi
20842need_lib_prefix=unknown
20843hardcode_into_libs=no
20844
20845# when you set need_version to no, make sure it does not cause -set_version
20846# flags to be left without arguments
20847need_version=unknown
20848
20849case $host_os in
20850aix3*)
20851  version_type=linux
20852  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20853  shlibpath_var=LIBPATH
20854
20855  # AIX 3 has no versioning support, so we append a major version to the name.
20856  soname_spec='${libname}${release}${shared_ext}$major'
20857  ;;
20858
20859aix4* | aix5*)
20860  version_type=linux
20861  need_lib_prefix=no
20862  need_version=no
20863  hardcode_into_libs=yes
20864  if test "$host_cpu" = ia64; then
20865    # AIX 5 supports IA64
20866    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20867    shlibpath_var=LD_LIBRARY_PATH
20868  else
20869    # With GCC up to 2.95.x, collect2 would create an import file
20870    # for dependence libraries.  The import file would start with
20871    # the line `#! .'.  This would cause the generated library to
20872    # depend on `.', always an invalid library.  This was fixed in
20873    # development snapshots of GCC prior to 3.0.
20874    case $host_os in
20875      aix4 | aix4.[01] | aix4.[01].*)
20876      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20877	   echo ' yes '
20878	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20879	:
20880      else
20881	can_build_shared=no
20882      fi
20883      ;;
20884    esac
20885    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20886    # soname into executable. Probably we can add versioning support to
20887    # collect2, so additional links can be useful in future.
20888    if test "$aix_use_runtimelinking" = yes; then
20889      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20890      # instead of lib<name>.a to let people know that these are not
20891      # typical AIX shared libraries.
20892      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20893    else
20894      # We preserve .a as extension for shared libraries through AIX4.2
20895      # and later when we are not doing run time linking.
20896      library_names_spec='${libname}${release}.a $libname.a'
20897      soname_spec='${libname}${release}${shared_ext}$major'
20898    fi
20899    shlibpath_var=LIBPATH
20900  fi
20901  ;;
20902
20903amigaos*)
20904  library_names_spec='$libname.ixlibrary $libname.a'
20905  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20906  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'
20907  ;;
20908
20909beos*)
20910  library_names_spec='${libname}${shared_ext}'
20911  dynamic_linker="$host_os ld.so"
20912  shlibpath_var=LIBRARY_PATH
20913  ;;
20914
20915bsdi4*)
20916  version_type=linux
20917  need_version=no
20918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20919  soname_spec='${libname}${release}${shared_ext}$major'
20920  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20921  shlibpath_var=LD_LIBRARY_PATH
20922  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20923  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20924  # the default ld.so.conf also contains /usr/contrib/lib and
20925  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20926  # libtool to hard-code these into programs
20927  ;;
20928
20929cygwin* | mingw* | pw32*)
20930  version_type=windows
20931  shrext_cmds=".dll"
20932  need_version=no
20933  need_lib_prefix=no
20934
20935  case $GCC,$host_os in
20936  yes,cygwin* | yes,mingw* | yes,pw32*)
20937    library_names_spec='$libname.dll.a'
20938    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20939    postinstall_cmds='base_file=`basename \${file}`~
20940      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20941      dldir=$destdir/`dirname \$dlpath`~
20942      test -d \$dldir || mkdir -p \$dldir~
20943      $install_prog $dir/$dlname \$dldir/$dlname'
20944    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20945      dlpath=$dir/\$dldll~
20946       $rm \$dlpath'
20947    shlibpath_overrides_runpath=yes
20948
20949    case $host_os in
20950    cygwin*)
20951      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20952      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20953      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20954      ;;
20955    mingw*)
20956      # MinGW DLLs use traditional 'lib' prefix
20957      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20958      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20959      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20960        # It is most probably a Windows format PATH printed by
20961        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20962        # path with ; separators, and with drive letters. We can handle the
20963        # drive letters (cygwin fileutils understands them), so leave them,
20964        # especially as we might pass files found there to a mingw objdump,
20965        # which wouldn't understand a cygwinified path. Ahh.
20966        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20967      else
20968        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20969      fi
20970      ;;
20971    pw32*)
20972      # pw32 DLLs use 'pw' prefix rather than 'lib'
20973      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20974      ;;
20975    esac
20976    ;;
20977
20978  *)
20979    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20980    ;;
20981  esac
20982  dynamic_linker='Win32 ld.exe'
20983  # FIXME: first we should search . and the directory the executable is in
20984  shlibpath_var=PATH
20985  ;;
20986
20987darwin* | rhapsody*)
20988  dynamic_linker="$host_os dyld"
20989  version_type=darwin
20990  need_lib_prefix=no
20991  need_version=no
20992  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20993  soname_spec='${libname}${release}${major}$shared_ext'
20994  shlibpath_overrides_runpath=yes
20995  shlibpath_var=DYLD_LIBRARY_PATH
20996  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20997  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20998  if test "$GCC" = yes; then
20999    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"`
21000  else
21001    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21002  fi
21003  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21004  ;;
21005
21006dgux*)
21007  version_type=linux
21008  need_lib_prefix=no
21009  need_version=no
21010  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21011  soname_spec='${libname}${release}${shared_ext}$major'
21012  shlibpath_var=LD_LIBRARY_PATH
21013  ;;
21014
21015freebsd1*)
21016  dynamic_linker=no
21017  ;;
21018
21019kfreebsd*-gnu)
21020  version_type=linux
21021  need_lib_prefix=no
21022  need_version=no
21023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21024  soname_spec='${libname}${release}${shared_ext}$major'
21025  shlibpath_var=LD_LIBRARY_PATH
21026  shlibpath_overrides_runpath=no
21027  hardcode_into_libs=yes
21028  dynamic_linker='GNU ld.so'
21029  ;;
21030
21031freebsd*)
21032  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
21033  version_type=freebsd-$objformat
21034  case $version_type in
21035    freebsd-elf*)
21036      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21037      need_version=no
21038      need_lib_prefix=no
21039      ;;
21040    freebsd-*)
21041      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21042      need_version=yes
21043      ;;
21044  esac
21045  shlibpath_var=LD_LIBRARY_PATH
21046  case $host_os in
21047  freebsd2*)
21048    shlibpath_overrides_runpath=yes
21049    ;;
21050  freebsd3.01* | freebsdelf3.01*)
21051    shlibpath_overrides_runpath=yes
21052    hardcode_into_libs=yes
21053    ;;
21054  *) # from 3.2 on
21055    shlibpath_overrides_runpath=no
21056    hardcode_into_libs=yes
21057    ;;
21058  esac
21059  ;;
21060
21061gnu*)
21062  version_type=linux
21063  need_lib_prefix=no
21064  need_version=no
21065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21066  soname_spec='${libname}${release}${shared_ext}$major'
21067  shlibpath_var=LD_LIBRARY_PATH
21068  hardcode_into_libs=yes
21069  ;;
21070
21071hpux9* | hpux10* | hpux11*)
21072  # Give a soname corresponding to the major version so that dld.sl refuses to
21073  # link against other versions.
21074  version_type=sunos
21075  need_lib_prefix=no
21076  need_version=no
21077  case "$host_cpu" in
21078  ia64*)
21079    shrext_cmds='.so'
21080    hardcode_into_libs=yes
21081    dynamic_linker="$host_os dld.so"
21082    shlibpath_var=LD_LIBRARY_PATH
21083    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21084    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21085    soname_spec='${libname}${release}${shared_ext}$major'
21086    if test "X$HPUX_IA64_MODE" = X32; then
21087      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21088    else
21089      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21090    fi
21091    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21092    ;;
21093   hppa*64*)
21094     shrext_cmds='.sl'
21095     hardcode_into_libs=yes
21096     dynamic_linker="$host_os dld.sl"
21097     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21098     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21099     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21100     soname_spec='${libname}${release}${shared_ext}$major'
21101     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21102     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21103     ;;
21104   *)
21105    shrext_cmds='.sl'
21106    dynamic_linker="$host_os dld.sl"
21107    shlibpath_var=SHLIB_PATH
21108    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21109    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21110    soname_spec='${libname}${release}${shared_ext}$major'
21111    ;;
21112  esac
21113  # HP-UX runs *really* slowly unless shared libraries are mode 555.
21114  postinstall_cmds='chmod 555 $lib'
21115  ;;
21116
21117irix5* | irix6* | nonstopux*)
21118  case $host_os in
21119    nonstopux*) version_type=nonstopux ;;
21120    *)
21121	if test "$lt_cv_prog_gnu_ld" = yes; then
21122		version_type=linux
21123	else
21124		version_type=irix
21125	fi ;;
21126  esac
21127  need_lib_prefix=no
21128  need_version=no
21129  soname_spec='${libname}${release}${shared_ext}$major'
21130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21131  case $host_os in
21132  irix5* | nonstopux*)
21133    libsuff= shlibsuff=
21134    ;;
21135  *)
21136    case $LD in # libtool.m4 will add one of these switches to LD
21137    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21138      libsuff= shlibsuff= libmagic=32-bit;;
21139    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21140      libsuff=32 shlibsuff=N32 libmagic=N32;;
21141    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21142      libsuff=64 shlibsuff=64 libmagic=64-bit;;
21143    *) libsuff= shlibsuff= libmagic=never-match;;
21144    esac
21145    ;;
21146  esac
21147  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21148  shlibpath_overrides_runpath=no
21149  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21150  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21151  hardcode_into_libs=yes
21152  ;;
21153
21154# No shared lib support for Linux oldld, aout, or coff.
21155linux*oldld* | linux*aout* | linux*coff*)
21156  dynamic_linker=no
21157  ;;
21158
21159# This must be Linux ELF.
21160linux*)
21161  version_type=linux
21162  need_lib_prefix=no
21163  need_version=no
21164  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21165  soname_spec='${libname}${release}${shared_ext}$major'
21166  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21167  shlibpath_var=LD_LIBRARY_PATH
21168  shlibpath_overrides_runpath=no
21169  # This implies no fast_install, which is unacceptable.
21170  # Some rework will be needed to allow for fast_install
21171  # before this can be enabled.
21172  hardcode_into_libs=yes
21173
21174  # Append ld.so.conf contents to the search path
21175  if test -f /etc/ld.so.conf; then
21176    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
21177    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21178  fi
21179
21180  # We used to test for /lib/ld.so.1 and disable shared libraries on
21181  # powerpc, because MkLinux only supported shared libraries with the
21182  # GNU dynamic linker.  Since this was broken with cross compilers,
21183  # most powerpc-linux boxes support dynamic linking these days and
21184  # people can always --disable-shared, the test was removed, and we
21185  # assume the GNU/Linux dynamic linker is in use.
21186  dynamic_linker='GNU/Linux ld.so'
21187  ;;
21188
21189netbsdelf*-gnu)
21190  version_type=linux
21191  need_lib_prefix=no
21192  need_version=no
21193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21194  soname_spec='${libname}${release}${shared_ext}$major'
21195  shlibpath_var=LD_LIBRARY_PATH
21196  shlibpath_overrides_runpath=no
21197  hardcode_into_libs=yes
21198  dynamic_linker='NetBSD ld.elf_so'
21199  ;;
21200
21201knetbsd*-gnu)
21202  version_type=linux
21203  need_lib_prefix=no
21204  need_version=no
21205  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21206  soname_spec='${libname}${release}${shared_ext}$major'
21207  shlibpath_var=LD_LIBRARY_PATH
21208  shlibpath_overrides_runpath=no
21209  hardcode_into_libs=yes
21210  dynamic_linker='GNU ld.so'
21211  ;;
21212
21213netbsd*)
21214  version_type=sunos
21215  need_lib_prefix=no
21216  need_version=no
21217  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21218    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21219    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21220    dynamic_linker='NetBSD (a.out) ld.so'
21221  else
21222    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21223    soname_spec='${libname}${release}${shared_ext}$major'
21224    dynamic_linker='NetBSD ld.elf_so'
21225  fi
21226  shlibpath_var=LD_LIBRARY_PATH
21227  shlibpath_overrides_runpath=yes
21228  hardcode_into_libs=yes
21229  ;;
21230
21231newsos6)
21232  version_type=linux
21233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21234  shlibpath_var=LD_LIBRARY_PATH
21235  shlibpath_overrides_runpath=yes
21236  ;;
21237
21238nto-qnx*)
21239  version_type=linux
21240  need_lib_prefix=no
21241  need_version=no
21242  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21243  soname_spec='${libname}${release}${shared_ext}$major'
21244  shlibpath_var=LD_LIBRARY_PATH
21245  shlibpath_overrides_runpath=yes
21246  ;;
21247
21248openbsd*)
21249  version_type=sunos
21250  need_lib_prefix=no
21251  need_version=yes
21252  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21253  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21254  shlibpath_var=LD_LIBRARY_PATH
21255  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21256    case $host_os in
21257      openbsd2.[89] | openbsd2.[89].*)
21258	shlibpath_overrides_runpath=no
21259	;;
21260      *)
21261	shlibpath_overrides_runpath=yes
21262	;;
21263      esac
21264  else
21265    shlibpath_overrides_runpath=yes
21266  fi
21267  ;;
21268
21269os2*)
21270  libname_spec='$name'
21271  shrext_cmds=".dll"
21272  need_lib_prefix=no
21273  library_names_spec='$libname${shared_ext} $libname.a'
21274  dynamic_linker='OS/2 ld.exe'
21275  shlibpath_var=LIBPATH
21276  ;;
21277
21278osf3* | osf4* | osf5*)
21279  version_type=osf
21280  need_lib_prefix=no
21281  need_version=no
21282  soname_spec='${libname}${release}${shared_ext}$major'
21283  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21284  shlibpath_var=LD_LIBRARY_PATH
21285  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21286  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21287  ;;
21288
21289sco3.2v5*)
21290  version_type=osf
21291  soname_spec='${libname}${release}${shared_ext}$major'
21292  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21293  shlibpath_var=LD_LIBRARY_PATH
21294  ;;
21295
21296solaris*)
21297  version_type=linux
21298  need_lib_prefix=no
21299  need_version=no
21300  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21301  soname_spec='${libname}${release}${shared_ext}$major'
21302  shlibpath_var=LD_LIBRARY_PATH
21303  shlibpath_overrides_runpath=yes
21304  hardcode_into_libs=yes
21305  # ldd complains unless libraries are executable
21306  postinstall_cmds='chmod +x $lib'
21307  ;;
21308
21309sunos4*)
21310  version_type=sunos
21311  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21312  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21313  shlibpath_var=LD_LIBRARY_PATH
21314  shlibpath_overrides_runpath=yes
21315  if test "$with_gnu_ld" = yes; then
21316    need_lib_prefix=no
21317  fi
21318  need_version=yes
21319  ;;
21320
21321sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21322  version_type=linux
21323  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21324  soname_spec='${libname}${release}${shared_ext}$major'
21325  shlibpath_var=LD_LIBRARY_PATH
21326  case $host_vendor in
21327    sni)
21328      shlibpath_overrides_runpath=no
21329      need_lib_prefix=no
21330      export_dynamic_flag_spec='${wl}-Blargedynsym'
21331      runpath_var=LD_RUN_PATH
21332      ;;
21333    siemens)
21334      need_lib_prefix=no
21335      ;;
21336    motorola)
21337      need_lib_prefix=no
21338      need_version=no
21339      shlibpath_overrides_runpath=no
21340      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21341      ;;
21342  esac
21343  ;;
21344
21345sysv4*MP*)
21346  if test -d /usr/nec ;then
21347    version_type=linux
21348    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21349    soname_spec='$libname${shared_ext}.$major'
21350    shlibpath_var=LD_LIBRARY_PATH
21351  fi
21352  ;;
21353
21354uts4*)
21355  version_type=linux
21356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21357  soname_spec='${libname}${release}${shared_ext}$major'
21358  shlibpath_var=LD_LIBRARY_PATH
21359  ;;
21360
21361*)
21362  dynamic_linker=no
21363  ;;
21364esac
21365echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21366echo "${ECHO_T}$dynamic_linker" >&6
21367test "$dynamic_linker" = no && can_build_shared=no
21368
21369echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21370echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21371hardcode_action_F77=
21372if test -n "$hardcode_libdir_flag_spec_F77" || \
21373   test -n "$runpath_var F77" || \
21374   test "X$hardcode_automatic_F77"="Xyes" ; then
21375
21376  # We can hardcode non-existant directories.
21377  if test "$hardcode_direct_F77" != no &&
21378     # If the only mechanism to avoid hardcoding is shlibpath_var, we
21379     # have to relink, otherwise we might link with an installed library
21380     # when we should be linking with a yet-to-be-installed one
21381     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
21382     test "$hardcode_minus_L_F77" != no; then
21383    # Linking always hardcodes the temporary library directory.
21384    hardcode_action_F77=relink
21385  else
21386    # We can link without hardcoding, and we can hardcode nonexisting dirs.
21387    hardcode_action_F77=immediate
21388  fi
21389else
21390  # We cannot hardcode anything, or else we can only hardcode existing
21391  # directories.
21392  hardcode_action_F77=unsupported
21393fi
21394echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
21395echo "${ECHO_T}$hardcode_action_F77" >&6
21396
21397if test "$hardcode_action_F77" = relink; then
21398  # Fast installation is not supported
21399  enable_fast_install=no
21400elif test "$shlibpath_overrides_runpath" = yes ||
21401     test "$enable_shared" = no; then
21402  # Fast installation is not necessary
21403  enable_fast_install=needless
21404fi
21405
21406striplib=
21407old_striplib=
21408echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21409echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21410if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21411  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21412  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21413  echo "$as_me:$LINENO: result: yes" >&5
21414echo "${ECHO_T}yes" >&6
21415else
21416# FIXME - insert some real tests, host_os isn't really good enough
21417  case $host_os in
21418   darwin*)
21419       if test -n "$STRIP" ; then
21420         striplib="$STRIP -x"
21421         echo "$as_me:$LINENO: result: yes" >&5
21422echo "${ECHO_T}yes" >&6
21423       else
21424  echo "$as_me:$LINENO: result: no" >&5
21425echo "${ECHO_T}no" >&6
21426fi
21427       ;;
21428   *)
21429  echo "$as_me:$LINENO: result: no" >&5
21430echo "${ECHO_T}no" >&6
21431    ;;
21432  esac
21433fi
21434
21435
21436
21437# The else clause should only fire when bootstrapping the
21438# libtool distribution, otherwise you forgot to ship ltmain.sh
21439# with your package, and you will get complaints that there are
21440# no rules to generate ltmain.sh.
21441if test -f "$ltmain"; then
21442  # See if we are running on zsh, and set the options which allow our commands through
21443  # without removal of \ escapes.
21444  if test -n "${ZSH_VERSION+set}" ; then
21445    setopt NO_GLOB_SUBST
21446  fi
21447  # Now quote all the things that may contain metacharacters while being
21448  # careful not to overquote the AC_SUBSTed values.  We take copies of the
21449  # variables and quote the copies for generation of the libtool script.
21450  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21451    SED SHELL STRIP \
21452    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21453    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21454    deplibs_check_method reload_flag reload_cmds need_locks \
21455    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21456    lt_cv_sys_global_symbol_to_c_name_address \
21457    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21458    old_postinstall_cmds old_postuninstall_cmds \
21459    compiler_F77 \
21460    CC_F77 \
21461    LD_F77 \
21462    lt_prog_compiler_wl_F77 \
21463    lt_prog_compiler_pic_F77 \
21464    lt_prog_compiler_static_F77 \
21465    lt_prog_compiler_no_builtin_flag_F77 \
21466    export_dynamic_flag_spec_F77 \
21467    thread_safe_flag_spec_F77 \
21468    whole_archive_flag_spec_F77 \
21469    enable_shared_with_static_runtimes_F77 \
21470    old_archive_cmds_F77 \
21471    old_archive_from_new_cmds_F77 \
21472    predep_objects_F77 \
21473    postdep_objects_F77 \
21474    predeps_F77 \
21475    postdeps_F77 \
21476    compiler_lib_search_path_F77 \
21477    archive_cmds_F77 \
21478    archive_expsym_cmds_F77 \
21479    postinstall_cmds_F77 \
21480    postuninstall_cmds_F77 \
21481    old_archive_from_expsyms_cmds_F77 \
21482    allow_undefined_flag_F77 \
21483    no_undefined_flag_F77 \
21484    export_symbols_cmds_F77 \
21485    hardcode_libdir_flag_spec_F77 \
21486    hardcode_libdir_flag_spec_ld_F77 \
21487    hardcode_libdir_separator_F77 \
21488    hardcode_automatic_F77 \
21489    module_cmds_F77 \
21490    module_expsym_cmds_F77 \
21491    lt_cv_prog_compiler_c_o_F77 \
21492    exclude_expsyms_F77 \
21493    include_expsyms_F77; do
21494
21495    case $var in
21496    old_archive_cmds_F77 | \
21497    old_archive_from_new_cmds_F77 | \
21498    archive_cmds_F77 | \
21499    archive_expsym_cmds_F77 | \
21500    module_cmds_F77 | \
21501    module_expsym_cmds_F77 | \
21502    old_archive_from_expsyms_cmds_F77 | \
21503    export_symbols_cmds_F77 | \
21504    extract_expsyms_cmds | reload_cmds | finish_cmds | \
21505    postinstall_cmds | postuninstall_cmds | \
21506    old_postinstall_cmds | old_postuninstall_cmds | \
21507    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21508      # Double-quote double-evaled strings.
21509      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21510      ;;
21511    *)
21512      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21513      ;;
21514    esac
21515  done
21516
21517  case $lt_echo in
21518  *'\$0 --fallback-echo"')
21519    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21520    ;;
21521  esac
21522
21523cfgfile="$ofile"
21524
21525  cat <<__EOF__ >> "$cfgfile"
21526# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21527
21528# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21529
21530# Shell to use when invoking shell scripts.
21531SHELL=$lt_SHELL
21532
21533# Whether or not to build shared libraries.
21534build_libtool_libs=$enable_shared
21535
21536# Whether or not to build static libraries.
21537build_old_libs=$enable_static
21538
21539# Whether or not to add -lc for building shared libraries.
21540build_libtool_need_lc=$archive_cmds_need_lc_F77
21541
21542# Whether or not to disallow shared libs when runtime libs are static
21543allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
21544
21545# Whether or not to optimize for fast installation.
21546fast_install=$enable_fast_install
21547
21548# The host system.
21549host_alias=$host_alias
21550host=$host
21551
21552# An echo program that does not interpret backslashes.
21553echo=$lt_echo
21554
21555# The archiver.
21556AR=$lt_AR
21557AR_FLAGS=$lt_AR_FLAGS
21558
21559# A C compiler.
21560LTCC=$lt_LTCC
21561
21562# A language-specific compiler.
21563CC=$lt_compiler_F77
21564
21565# Is the compiler the GNU C compiler?
21566with_gcc=$GCC_F77
21567
21568# An ERE matcher.
21569EGREP=$lt_EGREP
21570
21571# The linker used to build libraries.
21572LD=$lt_LD_F77
21573
21574# Whether we need hard or soft links.
21575LN_S=$lt_LN_S
21576
21577# A BSD-compatible nm program.
21578NM=$lt_NM
21579
21580# A symbol stripping program
21581STRIP=$lt_STRIP
21582
21583# Used to examine libraries when file_magic_cmd begins "file"
21584MAGIC_CMD=$MAGIC_CMD
21585
21586# Used on cygwin: DLL creation program.
21587DLLTOOL="$DLLTOOL"
21588
21589# Used on cygwin: object dumper.
21590OBJDUMP="$OBJDUMP"
21591
21592# Used on cygwin: assembler.
21593AS="$AS"
21594
21595# The name of the directory that contains temporary libtool files.
21596objdir=$objdir
21597
21598# How to create reloadable object files.
21599reload_flag=$lt_reload_flag
21600reload_cmds=$lt_reload_cmds
21601
21602# How to pass a linker flag through the compiler.
21603wl=$lt_lt_prog_compiler_wl_F77
21604
21605# Object file suffix (normally "o").
21606objext="$ac_objext"
21607
21608# Old archive suffix (normally "a").
21609libext="$libext"
21610
21611# Shared library suffix (normally ".so").
21612shrext_cmds='$shrext_cmds'
21613
21614# Executable file suffix (normally "").
21615exeext="$exeext"
21616
21617# Additional compiler flags for building library objects.
21618pic_flag=$lt_lt_prog_compiler_pic_F77
21619pic_mode=$pic_mode
21620
21621# What is the maximum length of a command?
21622max_cmd_len=$lt_cv_sys_max_cmd_len
21623
21624# Does compiler simultaneously support -c and -o options?
21625compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21626
21627# Must we lock files when doing compilation ?
21628need_locks=$lt_need_locks
21629
21630# Do we need the lib prefix for modules?
21631need_lib_prefix=$need_lib_prefix
21632
21633# Do we need a version for libraries?
21634need_version=$need_version
21635
21636# Whether dlopen is supported.
21637dlopen_support=$enable_dlopen
21638
21639# Whether dlopen of programs is supported.
21640dlopen_self=$enable_dlopen_self
21641
21642# Whether dlopen of statically linked programs is supported.
21643dlopen_self_static=$enable_dlopen_self_static
21644
21645# Compiler flag to prevent dynamic linking.
21646link_static_flag=$lt_lt_prog_compiler_static_F77
21647
21648# Compiler flag to turn off builtin functions.
21649no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21650
21651# Compiler flag to allow reflexive dlopens.
21652export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21653
21654# Compiler flag to generate shared objects directly from archives.
21655whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21656
21657# Compiler flag to generate thread-safe objects.
21658thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21659
21660# Library versioning type.
21661version_type=$version_type
21662
21663# Format of library name prefix.
21664libname_spec=$lt_libname_spec
21665
21666# List of archive names.  First name is the real one, the rest are links.
21667# The last name is the one that the linker finds with -lNAME.
21668library_names_spec=$lt_library_names_spec
21669
21670# The coded name of the library, if different from the real name.
21671soname_spec=$lt_soname_spec
21672
21673# Commands used to build and install an old-style archive.
21674RANLIB=$lt_RANLIB
21675old_archive_cmds=$lt_old_archive_cmds_F77
21676old_postinstall_cmds=$lt_old_postinstall_cmds
21677old_postuninstall_cmds=$lt_old_postuninstall_cmds
21678
21679# Create an old-style archive from a shared archive.
21680old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21681
21682# Create a temporary old-style archive to link instead of a shared archive.
21683old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21684
21685# Commands used to build and install a shared archive.
21686archive_cmds=$lt_archive_cmds_F77
21687archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21688postinstall_cmds=$lt_postinstall_cmds
21689postuninstall_cmds=$lt_postuninstall_cmds
21690
21691# Commands used to build a loadable module (assumed same as above if empty)
21692module_cmds=$lt_module_cmds_F77
21693module_expsym_cmds=$lt_module_expsym_cmds_F77
21694
21695# Commands to strip libraries.
21696old_striplib=$lt_old_striplib
21697striplib=$lt_striplib
21698
21699# Dependencies to place before the objects being linked to create a
21700# shared library.
21701predep_objects=$lt_predep_objects_F77
21702
21703# Dependencies to place after the objects being linked to create a
21704# shared library.
21705postdep_objects=$lt_postdep_objects_F77
21706
21707# Dependencies to place before the objects being linked to create a
21708# shared library.
21709predeps=$lt_predeps_F77
21710
21711# Dependencies to place after the objects being linked to create a
21712# shared library.
21713postdeps=$lt_postdeps_F77
21714
21715# The library search path used internally by the compiler when linking
21716# a shared library.
21717compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21718
21719# Method to check whether dependent libraries are shared objects.
21720deplibs_check_method=$lt_deplibs_check_method
21721
21722# Command to use when deplibs_check_method == file_magic.
21723file_magic_cmd=$lt_file_magic_cmd
21724
21725# Flag that allows shared libraries with undefined symbols to be built.
21726allow_undefined_flag=$lt_allow_undefined_flag_F77
21727
21728# Flag that forces no undefined symbols.
21729no_undefined_flag=$lt_no_undefined_flag_F77
21730
21731# Commands used to finish a libtool library installation in a directory.
21732finish_cmds=$lt_finish_cmds
21733
21734# Same as above, but a single script fragment to be evaled but not shown.
21735finish_eval=$lt_finish_eval
21736
21737# Take the output of nm and produce a listing of raw symbols and C names.
21738global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21739
21740# Transform the output of nm in a proper C declaration
21741global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21742
21743# Transform the output of nm in a C name address pair
21744global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21745
21746# This is the shared library runtime path variable.
21747runpath_var=$runpath_var
21748
21749# This is the shared library path variable.
21750shlibpath_var=$shlibpath_var
21751
21752# Is shlibpath searched before the hard-coded library search path?
21753shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21754
21755# How to hardcode a shared library path into an executable.
21756hardcode_action=$hardcode_action_F77
21757
21758# Whether we should hardcode library paths into libraries.
21759hardcode_into_libs=$hardcode_into_libs
21760
21761# Flag to hardcode \$libdir into a binary during linking.
21762# This must work even if \$libdir does not exist.
21763hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21764
21765# If ld is used when linking, flag to hardcode \$libdir into
21766# a binary during linking. This must work even if \$libdir does
21767# not exist.
21768hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21769
21770# Whether we need a single -rpath flag with a separated argument.
21771hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21772
21773# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21774# resulting binary.
21775hardcode_direct=$hardcode_direct_F77
21776
21777# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21778# resulting binary.
21779hardcode_minus_L=$hardcode_minus_L_F77
21780
21781# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21782# the resulting binary.
21783hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21784
21785# Set to yes if building a shared library automatically hardcodes DIR into the library
21786# and all subsequent libraries and executables linked against it.
21787hardcode_automatic=$hardcode_automatic_F77
21788
21789# Variables whose values should be saved in libtool wrapper scripts and
21790# restored at relink time.
21791variables_saved_for_relink="$variables_saved_for_relink"
21792
21793# Whether libtool must link a program against all its dependency libraries.
21794link_all_deplibs=$link_all_deplibs_F77
21795
21796# Compile-time system search path for libraries
21797sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21798
21799# Run-time system search path for libraries
21800sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21801
21802# Fix the shell variable \$srcfile for the compiler.
21803fix_srcfile_path="$fix_srcfile_path_F77"
21804
21805# Set to yes if exported symbols are required.
21806always_export_symbols=$always_export_symbols_F77
21807
21808# The commands to list exported symbols.
21809export_symbols_cmds=$lt_export_symbols_cmds_F77
21810
21811# The commands to extract the exported symbol list from a shared archive.
21812extract_expsyms_cmds=$lt_extract_expsyms_cmds
21813
21814# Symbols that should not be listed in the preloaded symbols.
21815exclude_expsyms=$lt_exclude_expsyms_F77
21816
21817# Symbols that must always be exported.
21818include_expsyms=$lt_include_expsyms_F77
21819
21820# ### END LIBTOOL TAG CONFIG: $tagname
21821
21822__EOF__
21823
21824
21825else
21826  # If there is no Makefile yet, we rely on a make rule to execute
21827  # `config.status --recheck' to rerun these tests and create the
21828  # libtool script then.
21829  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21830  if test -f "$ltmain_in"; then
21831    test -f Makefile && make "$ltmain"
21832  fi
21833fi
21834
21835
21836ac_ext=c
21837ac_cpp='$CPP $CPPFLAGS'
21838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21840ac_compiler_gnu=$ac_cv_c_compiler_gnu
21841
21842CC="$lt_save_CC"
21843
21844	else
21845	  tagname=""
21846	fi
21847	;;
21848
21849      GCJ)
21850	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21851
21852
21853
21854# Source file extension for Java test sources.
21855ac_ext=java
21856
21857# Object file extension for compiled Java test sources.
21858objext=o
21859objext_GCJ=$objext
21860
21861# Code to be used in simple compile tests
21862lt_simple_compile_test_code="class foo {}\n"
21863
21864# Code to be used in simple link tests
21865lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21866
21867# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21868
21869# If no C compiler was specified, use CC.
21870LTCC=${LTCC-"$CC"}
21871
21872# Allow CC to be a program name with arguments.
21873compiler=$CC
21874
21875
21876# Allow CC to be a program name with arguments.
21877lt_save_CC="$CC"
21878CC=${GCJ-"gcj"}
21879compiler=$CC
21880compiler_GCJ=$CC
21881
21882# GCJ did not exist at the time GCC didn't implicitly link libc in.
21883archive_cmds_need_lc_GCJ=no
21884
21885
21886lt_prog_compiler_no_builtin_flag_GCJ=
21887
21888if test "$GCC" = yes; then
21889  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21890
21891
21892echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21893echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21894if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21895  echo $ECHO_N "(cached) $ECHO_C" >&6
21896else
21897  lt_cv_prog_compiler_rtti_exceptions=no
21898  ac_outfile=conftest.$ac_objext
21899   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21900   lt_compiler_flag="-fno-rtti -fno-exceptions"
21901   # Insert the option either (1) after the last *FLAGS variable, or
21902   # (2) before a word containing "conftest.", or (3) at the end.
21903   # Note that $ac_compile itself does not contain backslashes and begins
21904   # with a dollar sign (not a hyphen), so the echo should work correctly.
21905   # The option is referenced via a variable to avoid confusing sed.
21906   lt_compile=`echo "$ac_compile" | $SED \
21907   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21908   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21909   -e 's:$: $lt_compiler_flag:'`
21910   (eval echo "\"\$as_me:21910: $lt_compile\"" >&5)
21911   (eval "$lt_compile" 2>conftest.err)
21912   ac_status=$?
21913   cat conftest.err >&5
21914   echo "$as_me:21914: \$? = $ac_status" >&5
21915   if (exit $ac_status) && test -s "$ac_outfile"; then
21916     # The compiler can only warn and ignore the option if not recognized
21917     # So say no if there are warnings
21918     if test ! -s conftest.err; then
21919       lt_cv_prog_compiler_rtti_exceptions=yes
21920     fi
21921   fi
21922   $rm conftest*
21923
21924fi
21925echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21926echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21927
21928if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21929    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21930else
21931    :
21932fi
21933
21934fi
21935
21936lt_prog_compiler_wl_GCJ=
21937lt_prog_compiler_pic_GCJ=
21938lt_prog_compiler_static_GCJ=
21939
21940echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21941echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21942
21943  if test "$GCC" = yes; then
21944    lt_prog_compiler_wl_GCJ='-Wl,'
21945    lt_prog_compiler_static_GCJ='-static'
21946
21947    case $host_os in
21948      aix*)
21949      # All AIX code is PIC.
21950      if test "$host_cpu" = ia64; then
21951	# AIX 5 now supports IA64 processor
21952	lt_prog_compiler_static_GCJ='-Bstatic'
21953      fi
21954      ;;
21955
21956    amigaos*)
21957      # FIXME: we need at least 68020 code to build shared libraries, but
21958      # adding the `-m68020' flag to GCC prevents building anything better,
21959      # like `-m68040'.
21960      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21961      ;;
21962
21963    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21964      # PIC is the default for these OSes.
21965      ;;
21966
21967    mingw* | pw32* | os2*)
21968      # This hack is so that the source file can tell whether it is being
21969      # built for inclusion in a dll (and should export symbols for example).
21970      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21971      ;;
21972
21973    darwin* | rhapsody*)
21974      # PIC is the default on this platform
21975      # Common symbols not allowed in MH_DYLIB files
21976      lt_prog_compiler_pic_GCJ='-fno-common'
21977      ;;
21978
21979    msdosdjgpp*)
21980      # Just because we use GCC doesn't mean we suddenly get shared libraries
21981      # on systems that don't support them.
21982      lt_prog_compiler_can_build_shared_GCJ=no
21983      enable_shared=no
21984      ;;
21985
21986    sysv4*MP*)
21987      if test -d /usr/nec; then
21988	lt_prog_compiler_pic_GCJ=-Kconform_pic
21989      fi
21990      ;;
21991
21992    hpux*)
21993      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21994      # not for PA HP-UX.
21995      case "$host_cpu" in
21996      hppa*64*|ia64*)
21997	# +Z the default
21998	;;
21999      *)
22000	lt_prog_compiler_pic_GCJ='-fPIC'
22001	;;
22002      esac
22003      ;;
22004
22005    *)
22006      lt_prog_compiler_pic_GCJ='-fPIC'
22007      ;;
22008    esac
22009  else
22010    # PORTME Check for flag to pass linker flags through the system compiler.
22011    case $host_os in
22012    aix*)
22013      lt_prog_compiler_wl_GCJ='-Wl,'
22014      if test "$host_cpu" = ia64; then
22015	# AIX 5 now supports IA64 processor
22016	lt_prog_compiler_static_GCJ='-Bstatic'
22017      else
22018	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22019      fi
22020      ;;
22021
22022    mingw* | pw32* | os2*)
22023      # This hack is so that the source file can tell whether it is being
22024      # built for inclusion in a dll (and should export symbols for example).
22025      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22026      ;;
22027
22028    hpux9* | hpux10* | hpux11*)
22029      lt_prog_compiler_wl_GCJ='-Wl,'
22030      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22031      # not for PA HP-UX.
22032      case "$host_cpu" in
22033      hppa*64*|ia64*)
22034	# +Z the default
22035	;;
22036      *)
22037	lt_prog_compiler_pic_GCJ='+Z'
22038	;;
22039      esac
22040      # Is there a better lt_prog_compiler_static that works with the bundled CC?
22041      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22042      ;;
22043
22044    irix5* | irix6* | nonstopux*)
22045      lt_prog_compiler_wl_GCJ='-Wl,'
22046      # PIC (with -KPIC) is the default.
22047      lt_prog_compiler_static_GCJ='-non_shared'
22048      ;;
22049
22050    newsos6)
22051      lt_prog_compiler_pic_GCJ='-KPIC'
22052      lt_prog_compiler_static_GCJ='-Bstatic'
22053      ;;
22054
22055    linux*)
22056      case $CC in
22057      icc* | ecc*)
22058	lt_prog_compiler_wl_GCJ='-Wl,'
22059	lt_prog_compiler_pic_GCJ='-KPIC'
22060	lt_prog_compiler_static_GCJ='-static'
22061        ;;
22062      ccc*)
22063        lt_prog_compiler_wl_GCJ='-Wl,'
22064        # All Alpha code is PIC.
22065        lt_prog_compiler_static_GCJ='-non_shared'
22066        ;;
22067      esac
22068      ;;
22069
22070    osf3* | osf4* | osf5*)
22071      lt_prog_compiler_wl_GCJ='-Wl,'
22072      # All OSF/1 code is PIC.
22073      lt_prog_compiler_static_GCJ='-non_shared'
22074      ;;
22075
22076    sco3.2v5*)
22077      lt_prog_compiler_pic_GCJ='-Kpic'
22078      lt_prog_compiler_static_GCJ='-dn'
22079      ;;
22080
22081    solaris*)
22082      lt_prog_compiler_wl_GCJ='-Wl,'
22083      lt_prog_compiler_pic_GCJ='-KPIC'
22084      lt_prog_compiler_static_GCJ='-Bstatic'
22085      ;;
22086
22087    sunos4*)
22088      lt_prog_compiler_wl_GCJ='-Qoption ld '
22089      lt_prog_compiler_pic_GCJ='-PIC'
22090      lt_prog_compiler_static_GCJ='-Bstatic'
22091      ;;
22092
22093    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22094      lt_prog_compiler_wl_GCJ='-Wl,'
22095      lt_prog_compiler_pic_GCJ='-KPIC'
22096      lt_prog_compiler_static_GCJ='-Bstatic'
22097      ;;
22098
22099    sysv4*MP*)
22100      if test -d /usr/nec ;then
22101	lt_prog_compiler_pic_GCJ='-Kconform_pic'
22102	lt_prog_compiler_static_GCJ='-Bstatic'
22103      fi
22104      ;;
22105
22106    uts4*)
22107      lt_prog_compiler_pic_GCJ='-pic'
22108      lt_prog_compiler_static_GCJ='-Bstatic'
22109      ;;
22110
22111    *)
22112      lt_prog_compiler_can_build_shared_GCJ=no
22113      ;;
22114    esac
22115  fi
22116
22117echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22118echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
22119
22120#
22121# Check to make sure the PIC flag actually works.
22122#
22123if test -n "$lt_prog_compiler_pic_GCJ"; then
22124
22125echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22126echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
22127if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22128  echo $ECHO_N "(cached) $ECHO_C" >&6
22129else
22130  lt_prog_compiler_pic_works_GCJ=no
22131  ac_outfile=conftest.$ac_objext
22132   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22133   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22134   # Insert the option either (1) after the last *FLAGS variable, or
22135   # (2) before a word containing "conftest.", or (3) at the end.
22136   # Note that $ac_compile itself does not contain backslashes and begins
22137   # with a dollar sign (not a hyphen), so the echo should work correctly.
22138   # The option is referenced via a variable to avoid confusing sed.
22139   lt_compile=`echo "$ac_compile" | $SED \
22140   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22141   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22142   -e 's:$: $lt_compiler_flag:'`
22143   (eval echo "\"\$as_me:22143: $lt_compile\"" >&5)
22144   (eval "$lt_compile" 2>conftest.err)
22145   ac_status=$?
22146   cat conftest.err >&5
22147   echo "$as_me:22147: \$? = $ac_status" >&5
22148   if (exit $ac_status) && test -s "$ac_outfile"; then
22149     # The compiler can only warn and ignore the option if not recognized
22150     # So say no if there are warnings
22151     if test ! -s conftest.err; then
22152       lt_prog_compiler_pic_works_GCJ=yes
22153     fi
22154   fi
22155   $rm conftest*
22156
22157fi
22158echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22159echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
22160
22161if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22162    case $lt_prog_compiler_pic_GCJ in
22163     "" | " "*) ;;
22164     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22165     esac
22166else
22167    lt_prog_compiler_pic_GCJ=
22168     lt_prog_compiler_can_build_shared_GCJ=no
22169fi
22170
22171fi
22172case "$host_os" in
22173  # For platforms which do not support PIC, -DPIC is meaningless:
22174  *djgpp*)
22175    lt_prog_compiler_pic_GCJ=
22176    ;;
22177  *)
22178    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22179    ;;
22180esac
22181
22182echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22183echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22184if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22185  echo $ECHO_N "(cached) $ECHO_C" >&6
22186else
22187  lt_cv_prog_compiler_c_o_GCJ=no
22188   $rm -r conftest 2>/dev/null
22189   mkdir conftest
22190   cd conftest
22191   mkdir out
22192   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22193
22194   lt_compiler_flag="-o out/conftest2.$ac_objext"
22195   # Insert the option either (1) after the last *FLAGS variable, or
22196   # (2) before a word containing "conftest.", or (3) at the end.
22197   # Note that $ac_compile itself does not contain backslashes and begins
22198   # with a dollar sign (not a hyphen), so the echo should work correctly.
22199   lt_compile=`echo "$ac_compile" | $SED \
22200   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22201   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22202   -e 's:$: $lt_compiler_flag:'`
22203   (eval echo "\"\$as_me:22203: $lt_compile\"" >&5)
22204   (eval "$lt_compile" 2>out/conftest.err)
22205   ac_status=$?
22206   cat out/conftest.err >&5
22207   echo "$as_me:22207: \$? = $ac_status" >&5
22208   if (exit $ac_status) && test -s out/conftest2.$ac_objext
22209   then
22210     # The compiler can only warn and ignore the option if not recognized
22211     # So say no if there are warnings
22212     if test ! -s out/conftest.err; then
22213       lt_cv_prog_compiler_c_o_GCJ=yes
22214     fi
22215   fi
22216   chmod u+w .
22217   $rm conftest*
22218   # SGI C++ compiler will create directory out/ii_files/ for
22219   # template instantiation
22220   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22221   $rm out/* && rmdir out
22222   cd ..
22223   rmdir conftest
22224   $rm conftest*
22225
22226fi
22227echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22228echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
22229
22230
22231hard_links="nottested"
22232if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22233  # do not overwrite the value of need_locks provided by the user
22234  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22235echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22236  hard_links=yes
22237  $rm conftest*
22238  ln conftest.a conftest.b 2>/dev/null && hard_links=no
22239  touch conftest.a
22240  ln conftest.a conftest.b 2>&5 || hard_links=no
22241  ln conftest.a conftest.b 2>/dev/null && hard_links=no
22242  echo "$as_me:$LINENO: result: $hard_links" >&5
22243echo "${ECHO_T}$hard_links" >&6
22244  if test "$hard_links" = no; then
22245    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22246echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22247    need_locks=warn
22248  fi
22249else
22250  need_locks=no
22251fi
22252
22253echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22254echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22255
22256  runpath_var=
22257  allow_undefined_flag_GCJ=
22258  enable_shared_with_static_runtimes_GCJ=no
22259  archive_cmds_GCJ=
22260  archive_expsym_cmds_GCJ=
22261  old_archive_From_new_cmds_GCJ=
22262  old_archive_from_expsyms_cmds_GCJ=
22263  export_dynamic_flag_spec_GCJ=
22264  whole_archive_flag_spec_GCJ=
22265  thread_safe_flag_spec_GCJ=
22266  hardcode_libdir_flag_spec_GCJ=
22267  hardcode_libdir_flag_spec_ld_GCJ=
22268  hardcode_libdir_separator_GCJ=
22269  hardcode_direct_GCJ=no
22270  hardcode_minus_L_GCJ=no
22271  hardcode_shlibpath_var_GCJ=unsupported
22272  link_all_deplibs_GCJ=unknown
22273  hardcode_automatic_GCJ=no
22274  module_cmds_GCJ=
22275  module_expsym_cmds_GCJ=
22276  always_export_symbols_GCJ=no
22277  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22278  # include_expsyms should be a list of space-separated symbols to be *always*
22279  # included in the symbol list
22280  include_expsyms_GCJ=
22281  # exclude_expsyms can be an extended regexp of symbols to exclude
22282  # it will be wrapped by ` (' and `)$', so one must not match beginning or
22283  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22284  # as well as any symbol that contains `d'.
22285  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
22286  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22287  # platforms (ab)use it in PIC code, but their linkers get confused if
22288  # the symbol is explicitly referenced.  Since portable code cannot
22289  # rely on this symbol name, it's probably fine to never include it in
22290  # preloaded symbol tables.
22291  extract_expsyms_cmds=
22292
22293  case $host_os in
22294  cygwin* | mingw* | pw32*)
22295    # FIXME: the MSVC++ port hasn't been tested in a loooong time
22296    # When not using gcc, we currently assume that we are using
22297    # Microsoft Visual C++.
22298    if test "$GCC" != yes; then
22299      with_gnu_ld=no
22300    fi
22301    ;;
22302  openbsd*)
22303    with_gnu_ld=no
22304    ;;
22305  esac
22306
22307  ld_shlibs_GCJ=yes
22308  if test "$with_gnu_ld" = yes; then
22309    # If archive_cmds runs LD, not CC, wlarc should be empty
22310    wlarc='${wl}'
22311
22312    # See if GNU ld supports shared libraries.
22313    case $host_os in
22314    aix3* | aix4* | aix5*)
22315      # On AIX/PPC, the GNU linker is very broken
22316      if test "$host_cpu" != ia64; then
22317	ld_shlibs_GCJ=no
22318	cat <<EOF 1>&2
22319
22320*** Warning: the GNU linker, at least up to release 2.9.1, is reported
22321*** to be unable to reliably create shared libraries on AIX.
22322*** Therefore, libtool is disabling shared libraries support.  If you
22323*** really care for shared libraries, you may want to modify your PATH
22324*** so that a non-GNU linker is found, and then restart.
22325
22326EOF
22327      fi
22328      ;;
22329
22330    amigaos*)
22331      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)'
22332      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22333      hardcode_minus_L_GCJ=yes
22334
22335      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22336      # that the semantics of dynamic libraries on AmigaOS, at least up
22337      # to version 4, is to share data among multiple programs linked
22338      # with the same dynamic library.  Since this doesn't match the
22339      # behavior of shared libraries on other platforms, we can't use
22340      # them.
22341      ld_shlibs_GCJ=no
22342      ;;
22343
22344    beos*)
22345      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22346	allow_undefined_flag_GCJ=unsupported
22347	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22348	# support --undefined.  This deserves some investigation.  FIXME
22349	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22350      else
22351	ld_shlibs_GCJ=no
22352      fi
22353      ;;
22354
22355    cygwin* | mingw* | pw32*)
22356      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
22357      # as there is no search path for DLLs.
22358      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22359      allow_undefined_flag_GCJ=unsupported
22360      always_export_symbols_GCJ=no
22361      enable_shared_with_static_runtimes_GCJ=yes
22362      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22363
22364      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22365        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22366	# If the export-symbols file already is a .def file (1st line
22367	# is EXPORTS), use it as is; otherwise, prepend...
22368	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22369	  cp $export_symbols $output_objdir/$soname.def;
22370	else
22371	  echo EXPORTS > $output_objdir/$soname.def;
22372	  cat $export_symbols >> $output_objdir/$soname.def;
22373	fi~
22374	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
22375      else
22376	ld_shlibs=no
22377      fi
22378      ;;
22379
22380    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
22381      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22382	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22383	wlarc=
22384      else
22385	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22386	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22387      fi
22388      ;;
22389
22390    solaris* | sysv5*)
22391      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22392	ld_shlibs_GCJ=no
22393	cat <<EOF 1>&2
22394
22395*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22396*** create shared libraries on Solaris systems.  Therefore, libtool
22397*** is disabling shared libraries support.  We urge you to upgrade GNU
22398*** binutils to release 2.9.1 or newer.  Another option is to modify
22399*** your PATH or compiler configuration so that the native linker is
22400*** used, and then restart.
22401
22402EOF
22403      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22404	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22405	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22406      else
22407	ld_shlibs_GCJ=no
22408      fi
22409      ;;
22410
22411    sunos4*)
22412      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22413      wlarc=
22414      hardcode_direct_GCJ=yes
22415      hardcode_shlibpath_var_GCJ=no
22416      ;;
22417
22418  linux*)
22419    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22420        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22421	archive_cmds_GCJ="$tmp_archive_cmds"
22422      supports_anon_versioning=no
22423      case `$LD -v 2>/dev/null` in
22424        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22425        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22426        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22427        *\ 2.11.*) ;; # other 2.11 versions
22428        *) supports_anon_versioning=yes ;;
22429      esac
22430      if test $supports_anon_versioning = yes; then
22431        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
22432cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22433$echo "local: *; };" >> $output_objdir/$libname.ver~
22434        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22435      else
22436        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
22437      fi
22438      link_all_deplibs_GCJ=no
22439    else
22440      ld_shlibs_GCJ=no
22441    fi
22442    ;;
22443
22444    *)
22445      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22446	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22447	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22448      else
22449	ld_shlibs_GCJ=no
22450      fi
22451      ;;
22452    esac
22453
22454    if test "$ld_shlibs_GCJ" = yes; then
22455      runpath_var=LD_RUN_PATH
22456      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22457      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22458      # ancient GNU ld didn't support --whole-archive et. al.
22459      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22460 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22461      else
22462  	whole_archive_flag_spec_GCJ=
22463      fi
22464    fi
22465  else
22466    # PORTME fill in a description of your system's linker (not GNU ld)
22467    case $host_os in
22468    aix3*)
22469      allow_undefined_flag_GCJ=unsupported
22470      always_export_symbols_GCJ=yes
22471      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'
22472      # Note: this linker hardcodes the directories in LIBPATH if there
22473      # are no directories specified by -L.
22474      hardcode_minus_L_GCJ=yes
22475      if test "$GCC" = yes && test -z "$link_static_flag"; then
22476	# Neither direct hardcoding nor static linking is supported with a
22477	# broken collect2.
22478	hardcode_direct_GCJ=unsupported
22479      fi
22480      ;;
22481
22482    aix4* | aix5*)
22483      if test "$host_cpu" = ia64; then
22484	# On IA64, the linker does run time linking by default, so we don't
22485	# have to do anything special.
22486	aix_use_runtimelinking=no
22487	exp_sym_flag='-Bexport'
22488	no_entry_flag=""
22489      else
22490	# If we're using GNU nm, then we don't want the "-C" option.
22491	# -C means demangle to AIX nm, but means don't demangle with GNU nm
22492	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22493	  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'
22494	else
22495	  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'
22496	fi
22497	aix_use_runtimelinking=no
22498
22499	# Test if we are trying to use run time linking or normal
22500	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
22501	# need to do runtime linking.
22502	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22503	  for ld_flag in $LDFLAGS; do
22504  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22505  	    aix_use_runtimelinking=yes
22506  	    break
22507  	  fi
22508	  done
22509	esac
22510
22511	exp_sym_flag='-bexport'
22512	no_entry_flag='-bnoentry'
22513      fi
22514
22515      # When large executables or shared objects are built, AIX ld can
22516      # have problems creating the table of contents.  If linking a library
22517      # or program results in "error TOC overflow" add -mminimal-toc to
22518      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22519      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22520
22521      archive_cmds_GCJ=''
22522      hardcode_direct_GCJ=yes
22523      hardcode_libdir_separator_GCJ=':'
22524      link_all_deplibs_GCJ=yes
22525
22526      if test "$GCC" = yes; then
22527	case $host_os in aix4.012|aix4.012.*)
22528	# We only want to do this on AIX 4.2 and lower, the check
22529	# below for broken collect2 doesn't work under 4.3+
22530	  collect2name=`${CC} -print-prog-name=collect2`
22531	  if test -f "$collect2name" && \
22532  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
22533	  then
22534  	  # We have reworked collect2
22535  	  hardcode_direct_GCJ=yes
22536	  else
22537  	  # We have old collect2
22538  	  hardcode_direct_GCJ=unsupported
22539  	  # It fails to find uninstalled libraries when the uninstalled
22540  	  # path is not listed in the libpath.  Setting hardcode_minus_L
22541  	  # to unsupported forces relinking
22542  	  hardcode_minus_L_GCJ=yes
22543  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
22544  	  hardcode_libdir_separator_GCJ=
22545	  fi
22546	esac
22547	shared_flag='-shared'
22548      else
22549	# not using gcc
22550	if test "$host_cpu" = ia64; then
22551  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22552  	# chokes on -Wl,-G. The following line is correct:
22553	  shared_flag='-G'
22554	else
22555  	if test "$aix_use_runtimelinking" = yes; then
22556	    shared_flag='${wl}-G'
22557	  else
22558	    shared_flag='${wl}-bM:SRE'
22559  	fi
22560	fi
22561      fi
22562
22563      # It seems that -bexpall does not export symbols beginning with
22564      # underscore (_), so it is better to generate a list of symbols to export.
22565      always_export_symbols_GCJ=yes
22566      if test "$aix_use_runtimelinking" = yes; then
22567	# Warning - without using the other runtime loading flags (-brtl),
22568	# -berok will link without error, but may produce a broken library.
22569	allow_undefined_flag_GCJ='-berok'
22570       # Determine the default libpath from the value encoded in an empty executable.
22571       cat >conftest.$ac_ext <<_ACEOF
22572/* confdefs.h.  */
22573_ACEOF
22574cat confdefs.h >>conftest.$ac_ext
22575cat >>conftest.$ac_ext <<_ACEOF
22576/* end confdefs.h.  */
22577
22578int
22579main ()
22580{
22581
22582  ;
22583  return 0;
22584}
22585_ACEOF
22586rm -f conftest.$ac_objext conftest$ac_exeext
22587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22588  (eval $ac_link) 2>conftest.er1
22589  ac_status=$?
22590  grep -v '^ *+' conftest.er1 >conftest.err
22591  rm -f conftest.er1
22592  cat conftest.err >&5
22593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594  (exit $ac_status); } &&
22595	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22597  (eval $ac_try) 2>&5
22598  ac_status=$?
22599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600  (exit $ac_status); }; } &&
22601	 { ac_try='test -s conftest$ac_exeext'
22602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22603  (eval $ac_try) 2>&5
22604  ac_status=$?
22605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606  (exit $ac_status); }; }; then
22607
22608aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22609}'`
22610# Check for a 64-bit object if we didn't find anything.
22611if 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; }
22612}'`; fi
22613else
22614  echo "$as_me: failed program was:" >&5
22615sed 's/^/| /' conftest.$ac_ext >&5
22616
22617fi
22618rm -f conftest.err conftest.$ac_objext \
22619      conftest$ac_exeext conftest.$ac_ext
22620if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22621
22622       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22623	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"
22624       else
22625	if test "$host_cpu" = ia64; then
22626	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22627	  allow_undefined_flag_GCJ="-z nodefs"
22628	  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"
22629	else
22630	 # Determine the default libpath from the value encoded in an empty executable.
22631	 cat >conftest.$ac_ext <<_ACEOF
22632/* confdefs.h.  */
22633_ACEOF
22634cat confdefs.h >>conftest.$ac_ext
22635cat >>conftest.$ac_ext <<_ACEOF
22636/* end confdefs.h.  */
22637
22638int
22639main ()
22640{
22641
22642  ;
22643  return 0;
22644}
22645_ACEOF
22646rm -f conftest.$ac_objext conftest$ac_exeext
22647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22648  (eval $ac_link) 2>conftest.er1
22649  ac_status=$?
22650  grep -v '^ *+' conftest.er1 >conftest.err
22651  rm -f conftest.er1
22652  cat conftest.err >&5
22653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654  (exit $ac_status); } &&
22655	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22657  (eval $ac_try) 2>&5
22658  ac_status=$?
22659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660  (exit $ac_status); }; } &&
22661	 { ac_try='test -s conftest$ac_exeext'
22662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22663  (eval $ac_try) 2>&5
22664  ac_status=$?
22665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666  (exit $ac_status); }; }; then
22667
22668aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22669}'`
22670# Check for a 64-bit object if we didn't find anything.
22671if 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; }
22672}'`; fi
22673else
22674  echo "$as_me: failed program was:" >&5
22675sed 's/^/| /' conftest.$ac_ext >&5
22676
22677fi
22678rm -f conftest.err conftest.$ac_objext \
22679      conftest$ac_exeext conftest.$ac_ext
22680if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22681
22682	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22683	  # Warning - without using the other run time loading flags,
22684	  # -berok will link without error, but may produce a broken library.
22685	  no_undefined_flag_GCJ=' ${wl}-bernotok'
22686	  allow_undefined_flag_GCJ=' ${wl}-berok'
22687	  # -bexpall does not export symbols beginning with underscore (_)
22688	  always_export_symbols_GCJ=yes
22689	  # Exported symbols can be pulled into shared objects from archives
22690	  whole_archive_flag_spec_GCJ=' '
22691	  archive_cmds_need_lc_GCJ=yes
22692	  # This is similar to how AIX traditionally builds it's shared libraries.
22693	  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'
22694	fi
22695      fi
22696      ;;
22697
22698    amigaos*)
22699      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)'
22700      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22701      hardcode_minus_L_GCJ=yes
22702      # see comment about different semantics on the GNU ld section
22703      ld_shlibs_GCJ=no
22704      ;;
22705
22706    bsdi4*)
22707      export_dynamic_flag_spec_GCJ=-rdynamic
22708      ;;
22709
22710    cygwin* | mingw* | pw32*)
22711      # When not using gcc, we currently assume that we are using
22712      # Microsoft Visual C++.
22713      # hardcode_libdir_flag_spec is actually meaningless, as there is
22714      # no search path for DLLs.
22715      hardcode_libdir_flag_spec_GCJ=' '
22716      allow_undefined_flag_GCJ=unsupported
22717      # Tell ltmain to make .lib files, not .a files.
22718      libext=lib
22719      # Tell ltmain to make .dll files, not .so files.
22720      shrext_cmds=".dll"
22721      # FIXME: Setting linknames here is a bad hack.
22722      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22723      # The linker will automatically build a .lib file if we build a DLL.
22724      old_archive_From_new_cmds_GCJ='true'
22725      # FIXME: Should let the user specify the lib program.
22726      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22727      fix_srcfile_path='`cygpath -w "$srcfile"`'
22728      enable_shared_with_static_runtimes_GCJ=yes
22729      ;;
22730
22731    darwin* | rhapsody*)
22732    if test "$GXX" = yes ; then
22733      archive_cmds_need_lc_GCJ=no
22734      case "$host_os" in
22735      rhapsody* | darwin1.[012])
22736	allow_undefined_flag_GCJ='-undefined suppress'
22737	;;
22738      *) # Darwin 1.3 on
22739      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22740      	allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
22741      else
22742        case ${MACOSX_DEPLOYMENT_TARGET} in
22743          10.[012])
22744            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
22745            ;;
22746          10.*)
22747            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
22748            ;;
22749        esac
22750      fi
22751	;;
22752      esac
22753    	lt_int_apple_cc_single_mod=no
22754    	output_verbose_link_cmd='echo'
22755    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
22756    	  lt_int_apple_cc_single_mod=yes
22757    	fi
22758    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
22759    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22760    	else
22761        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
22762      fi
22763      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22764      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22765        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
22766          archive_expsym_cmds_GCJ='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}'
22767        else
22768          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
22769        fi
22770          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}'
22771      hardcode_direct_GCJ=no
22772      hardcode_automatic_GCJ=yes
22773      hardcode_shlibpath_var_GCJ=unsupported
22774      whole_archive_flag_spec_GCJ='-all_load $convenience'
22775      link_all_deplibs_GCJ=yes
22776    else
22777      ld_shlibs_GCJ=no
22778    fi
22779      ;;
22780
22781    dgux*)
22782      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22783      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22784      hardcode_shlibpath_var_GCJ=no
22785      ;;
22786
22787    freebsd1*)
22788      ld_shlibs_GCJ=no
22789      ;;
22790
22791    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22792    # support.  Future versions do this automatically, but an explicit c++rt0.o
22793    # does not break anything, and helps significantly (at the cost of a little
22794    # extra space).
22795    freebsd2.2*)
22796      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22797      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22798      hardcode_direct_GCJ=yes
22799      hardcode_shlibpath_var_GCJ=no
22800      ;;
22801
22802    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22803    freebsd2*)
22804      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22805      hardcode_direct_GCJ=yes
22806      hardcode_minus_L_GCJ=yes
22807      hardcode_shlibpath_var_GCJ=no
22808      ;;
22809
22810    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22811    freebsd* | kfreebsd*-gnu)
22812      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22813      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22814      hardcode_direct_GCJ=yes
22815      hardcode_shlibpath_var_GCJ=no
22816      ;;
22817
22818    hpux9*)
22819      if test "$GCC" = yes; then
22820	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'
22821      else
22822	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'
22823      fi
22824      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22825      hardcode_libdir_separator_GCJ=:
22826      hardcode_direct_GCJ=yes
22827
22828      # hardcode_minus_L: Not really in the search PATH,
22829      # but as the default location of the library.
22830      hardcode_minus_L_GCJ=yes
22831      export_dynamic_flag_spec_GCJ='${wl}-E'
22832      ;;
22833
22834    hpux10* | hpux11*)
22835      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22836	case "$host_cpu" in
22837	hppa*64*|ia64*)
22838	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22839	  ;;
22840	*)
22841	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22842	  ;;
22843	esac
22844      else
22845	case "$host_cpu" in
22846	hppa*64*|ia64*)
22847	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22848	  ;;
22849	*)
22850	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22851	  ;;
22852	esac
22853      fi
22854      if test "$with_gnu_ld" = no; then
22855	case "$host_cpu" in
22856	hppa*64*)
22857	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22858	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22859	  hardcode_libdir_separator_GCJ=:
22860	  hardcode_direct_GCJ=no
22861	  hardcode_shlibpath_var_GCJ=no
22862	  ;;
22863	ia64*)
22864	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
22865	  hardcode_direct_GCJ=no
22866	  hardcode_shlibpath_var_GCJ=no
22867
22868	  # hardcode_minus_L: Not really in the search PATH,
22869	  # but as the default location of the library.
22870	  hardcode_minus_L_GCJ=yes
22871	  ;;
22872	*)
22873	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22874	  hardcode_libdir_separator_GCJ=:
22875	  hardcode_direct_GCJ=yes
22876	  export_dynamic_flag_spec_GCJ='${wl}-E'
22877
22878	  # hardcode_minus_L: Not really in the search PATH,
22879	  # but as the default location of the library.
22880	  hardcode_minus_L_GCJ=yes
22881	  ;;
22882	esac
22883      fi
22884      ;;
22885
22886    irix5* | irix6* | nonstopux*)
22887      if test "$GCC" = yes; then
22888	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'
22889      else
22890	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'
22891	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22892      fi
22893      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22894      hardcode_libdir_separator_GCJ=:
22895      link_all_deplibs_GCJ=yes
22896      ;;
22897
22898    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
22899      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22900	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22901      else
22902	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22903      fi
22904      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22905      hardcode_direct_GCJ=yes
22906      hardcode_shlibpath_var_GCJ=no
22907      ;;
22908
22909    newsos6)
22910      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22911      hardcode_direct_GCJ=yes
22912      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22913      hardcode_libdir_separator_GCJ=:
22914      hardcode_shlibpath_var_GCJ=no
22915      ;;
22916
22917    openbsd*)
22918      hardcode_direct_GCJ=yes
22919      hardcode_shlibpath_var_GCJ=no
22920      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22921	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22922	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22923	export_dynamic_flag_spec_GCJ='${wl}-E'
22924      else
22925       case $host_os in
22926	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22927	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22928	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
22929	   ;;
22930	 *)
22931	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22932	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22933	   ;;
22934       esac
22935      fi
22936      ;;
22937
22938    os2*)
22939      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22940      hardcode_minus_L_GCJ=yes
22941      allow_undefined_flag_GCJ=unsupported
22942      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'
22943      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22944      ;;
22945
22946    osf3*)
22947      if test "$GCC" = yes; then
22948	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22949	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'
22950      else
22951	allow_undefined_flag_GCJ=' -expect_unresolved \*'
22952	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'
22953      fi
22954      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22955      hardcode_libdir_separator_GCJ=:
22956      ;;
22957
22958    osf4* | osf5*)	# as osf3* with the addition of -msym flag
22959      if test "$GCC" = yes; then
22960	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22961	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'
22962	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22963      else
22964	allow_undefined_flag_GCJ=' -expect_unresolved \*'
22965	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'
22966	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~
22967	$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'
22968
22969	# Both c and cxx compiler support -rpath directly
22970	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22971      fi
22972      hardcode_libdir_separator_GCJ=:
22973      ;;
22974
22975    sco3.2v5*)
22976      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22977      hardcode_shlibpath_var_GCJ=no
22978      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22979      runpath_var=LD_RUN_PATH
22980      hardcode_runpath_var=yes
22981      ;;
22982
22983    solaris*)
22984      no_undefined_flag_GCJ=' -z text'
22985      if test "$GCC" = yes; then
22986	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22987	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22988	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22989      else
22990	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22991	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22992  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22993      fi
22994      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22995      hardcode_shlibpath_var_GCJ=no
22996      case $host_os in
22997      solaris2.[0-5] | solaris2.[0-5].*) ;;
22998      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22999	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23000      esac
23001      link_all_deplibs_GCJ=yes
23002      ;;
23003
23004    sunos4*)
23005      if test "x$host_vendor" = xsequent; then
23006	# Use $CC to link under sequent, because it throws in some extra .o
23007	# files that make .init and .fini sections work.
23008	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23009      else
23010	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23011      fi
23012      hardcode_libdir_flag_spec_GCJ='-L$libdir'
23013      hardcode_direct_GCJ=yes
23014      hardcode_minus_L_GCJ=yes
23015      hardcode_shlibpath_var_GCJ=no
23016      ;;
23017
23018    sysv4)
23019      case $host_vendor in
23020	sni)
23021	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23022	  hardcode_direct_GCJ=yes # is this really true???
23023	;;
23024	siemens)
23025	  ## LD is ld it makes a PLAMLIB
23026	  ## CC just makes a GrossModule.
23027	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23028	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23029	  hardcode_direct_GCJ=no
23030        ;;
23031	motorola)
23032	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23033	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23034	;;
23035      esac
23036      runpath_var='LD_RUN_PATH'
23037      hardcode_shlibpath_var_GCJ=no
23038      ;;
23039
23040    sysv4.3*)
23041      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23042      hardcode_shlibpath_var_GCJ=no
23043      export_dynamic_flag_spec_GCJ='-Bexport'
23044      ;;
23045
23046    sysv4*MP*)
23047      if test -d /usr/nec; then
23048	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23049	hardcode_shlibpath_var_GCJ=no
23050	runpath_var=LD_RUN_PATH
23051	hardcode_runpath_var=yes
23052	ld_shlibs_GCJ=yes
23053      fi
23054      ;;
23055
23056    sysv4.2uw2*)
23057      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23058      hardcode_direct_GCJ=yes
23059      hardcode_minus_L_GCJ=no
23060      hardcode_shlibpath_var_GCJ=no
23061      hardcode_runpath_var=yes
23062      runpath_var=LD_RUN_PATH
23063      ;;
23064
23065   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
23066      no_undefined_flag_GCJ='${wl}-z ${wl}text'
23067      if test "$GCC" = yes; then
23068	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23069      else
23070	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23071      fi
23072      runpath_var='LD_RUN_PATH'
23073      hardcode_shlibpath_var_GCJ=no
23074      ;;
23075
23076    sysv5*)
23077      no_undefined_flag_GCJ=' -z text'
23078      # $CC -shared without GNU ld will not create a library from C++
23079      # object files and a static libstdc++, better avoid it by now
23080      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23081      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23082  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23083      hardcode_libdir_flag_spec_GCJ=
23084      hardcode_shlibpath_var_GCJ=no
23085      runpath_var='LD_RUN_PATH'
23086      ;;
23087
23088    uts4*)
23089      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23090      hardcode_libdir_flag_spec_GCJ='-L$libdir'
23091      hardcode_shlibpath_var_GCJ=no
23092      ;;
23093
23094    *)
23095      ld_shlibs_GCJ=no
23096      ;;
23097    esac
23098  fi
23099
23100echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23101echo "${ECHO_T}$ld_shlibs_GCJ" >&6
23102test "$ld_shlibs_GCJ" = no && can_build_shared=no
23103
23104variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23105if test "$GCC" = yes; then
23106  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23107fi
23108
23109#
23110# Do we need to explicitly link libc?
23111#
23112case "x$archive_cmds_need_lc_GCJ" in
23113x|xyes)
23114  # Assume -lc should be added
23115  archive_cmds_need_lc_GCJ=yes
23116
23117  if test "$enable_shared" = yes && test "$GCC" = yes; then
23118    case $archive_cmds_GCJ in
23119    *'~'*)
23120      # FIXME: we may have to deal with multi-command sequences.
23121      ;;
23122    '$CC '*)
23123      # Test whether the compiler implicitly links with -lc since on some
23124      # systems, -lgcc has to come before -lc. If gcc already passes -lc
23125      # to ld, don't add -lc before -lgcc.
23126      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23127echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
23128      $rm conftest*
23129      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23130
23131      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23132  (eval $ac_compile) 2>&5
23133  ac_status=$?
23134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135  (exit $ac_status); } 2>conftest.err; then
23136        soname=conftest
23137        lib=conftest
23138        libobjs=conftest.$ac_objext
23139        deplibs=
23140        wl=$lt_prog_compiler_wl_GCJ
23141        compiler_flags=-v
23142        linker_flags=-v
23143        verstring=
23144        output_objdir=.
23145        libname=conftest
23146        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23147        allow_undefined_flag_GCJ=
23148        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23149  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23150  ac_status=$?
23151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152  (exit $ac_status); }
23153        then
23154	  archive_cmds_need_lc_GCJ=no
23155        else
23156	  archive_cmds_need_lc_GCJ=yes
23157        fi
23158        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23159      else
23160        cat conftest.err 1>&5
23161      fi
23162      $rm conftest*
23163      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23164echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
23165      ;;
23166    esac
23167  fi
23168  ;;
23169esac
23170
23171echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23172echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
23173library_names_spec=
23174libname_spec='lib$name'
23175soname_spec=
23176shrext_cmds=".so"
23177postinstall_cmds=
23178postuninstall_cmds=
23179finish_cmds=
23180finish_eval=
23181shlibpath_var=
23182shlibpath_overrides_runpath=unknown
23183version_type=none
23184dynamic_linker="$host_os ld.so"
23185sys_lib_dlsearch_path_spec="/lib /usr/lib"
23186if test "$GCC" = yes; then
23187  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23188  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23189    # if the path contains ";" then we assume it to be the separator
23190    # otherwise default to the standard path separator (i.e. ":") - it is
23191    # assumed that no part of a normal pathname contains ";" but that should
23192    # okay in the real world where ";" in dirpaths is itself problematic.
23193    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23194  else
23195    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23196  fi
23197else
23198  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23199fi
23200need_lib_prefix=unknown
23201hardcode_into_libs=no
23202
23203# when you set need_version to no, make sure it does not cause -set_version
23204# flags to be left without arguments
23205need_version=unknown
23206
23207case $host_os in
23208aix3*)
23209  version_type=linux
23210  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23211  shlibpath_var=LIBPATH
23212
23213  # AIX 3 has no versioning support, so we append a major version to the name.
23214  soname_spec='${libname}${release}${shared_ext}$major'
23215  ;;
23216
23217aix4* | aix5*)
23218  version_type=linux
23219  need_lib_prefix=no
23220  need_version=no
23221  hardcode_into_libs=yes
23222  if test "$host_cpu" = ia64; then
23223    # AIX 5 supports IA64
23224    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23225    shlibpath_var=LD_LIBRARY_PATH
23226  else
23227    # With GCC up to 2.95.x, collect2 would create an import file
23228    # for dependence libraries.  The import file would start with
23229    # the line `#! .'.  This would cause the generated library to
23230    # depend on `.', always an invalid library.  This was fixed in
23231    # development snapshots of GCC prior to 3.0.
23232    case $host_os in
23233      aix4 | aix4.[01] | aix4.[01].*)
23234      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23235	   echo ' yes '
23236	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23237	:
23238      else
23239	can_build_shared=no
23240      fi
23241      ;;
23242    esac
23243    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23244    # soname into executable. Probably we can add versioning support to
23245    # collect2, so additional links can be useful in future.
23246    if test "$aix_use_runtimelinking" = yes; then
23247      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23248      # instead of lib<name>.a to let people know that these are not
23249      # typical AIX shared libraries.
23250      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23251    else
23252      # We preserve .a as extension for shared libraries through AIX4.2
23253      # and later when we are not doing run time linking.
23254      library_names_spec='${libname}${release}.a $libname.a'
23255      soname_spec='${libname}${release}${shared_ext}$major'
23256    fi
23257    shlibpath_var=LIBPATH
23258  fi
23259  ;;
23260
23261amigaos*)
23262  library_names_spec='$libname.ixlibrary $libname.a'
23263  # Create ${libname}_ixlibrary.a entries in /sys/libs.
23264  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'
23265  ;;
23266
23267beos*)
23268  library_names_spec='${libname}${shared_ext}'
23269  dynamic_linker="$host_os ld.so"
23270  shlibpath_var=LIBRARY_PATH
23271  ;;
23272
23273bsdi4*)
23274  version_type=linux
23275  need_version=no
23276  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23277  soname_spec='${libname}${release}${shared_ext}$major'
23278  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23279  shlibpath_var=LD_LIBRARY_PATH
23280  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23281  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23282  # the default ld.so.conf also contains /usr/contrib/lib and
23283  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23284  # libtool to hard-code these into programs
23285  ;;
23286
23287cygwin* | mingw* | pw32*)
23288  version_type=windows
23289  shrext_cmds=".dll"
23290  need_version=no
23291  need_lib_prefix=no
23292
23293  case $GCC,$host_os in
23294  yes,cygwin* | yes,mingw* | yes,pw32*)
23295    library_names_spec='$libname.dll.a'
23296    # DLL is installed to $(libdir)/../bin by postinstall_cmds
23297    postinstall_cmds='base_file=`basename \${file}`~
23298      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23299      dldir=$destdir/`dirname \$dlpath`~
23300      test -d \$dldir || mkdir -p \$dldir~
23301      $install_prog $dir/$dlname \$dldir/$dlname'
23302    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23303      dlpath=$dir/\$dldll~
23304       $rm \$dlpath'
23305    shlibpath_overrides_runpath=yes
23306
23307    case $host_os in
23308    cygwin*)
23309      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23310      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23311      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23312      ;;
23313    mingw*)
23314      # MinGW DLLs use traditional 'lib' prefix
23315      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23316      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23317      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23318        # It is most probably a Windows format PATH printed by
23319        # mingw gcc, but we are running on Cygwin. Gcc prints its search
23320        # path with ; separators, and with drive letters. We can handle the
23321        # drive letters (cygwin fileutils understands them), so leave them,
23322        # especially as we might pass files found there to a mingw objdump,
23323        # which wouldn't understand a cygwinified path. Ahh.
23324        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23325      else
23326        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23327      fi
23328      ;;
23329    pw32*)
23330      # pw32 DLLs use 'pw' prefix rather than 'lib'
23331      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
23332      ;;
23333    esac
23334    ;;
23335
23336  *)
23337    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23338    ;;
23339  esac
23340  dynamic_linker='Win32 ld.exe'
23341  # FIXME: first we should search . and the directory the executable is in
23342  shlibpath_var=PATH
23343  ;;
23344
23345darwin* | rhapsody*)
23346  dynamic_linker="$host_os dyld"
23347  version_type=darwin
23348  need_lib_prefix=no
23349  need_version=no
23350  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23351  soname_spec='${libname}${release}${major}$shared_ext'
23352  shlibpath_overrides_runpath=yes
23353  shlibpath_var=DYLD_LIBRARY_PATH
23354  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
23355  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23356  if test "$GCC" = yes; then
23357    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"`
23358  else
23359    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23360  fi
23361  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23362  ;;
23363
23364dgux*)
23365  version_type=linux
23366  need_lib_prefix=no
23367  need_version=no
23368  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23369  soname_spec='${libname}${release}${shared_ext}$major'
23370  shlibpath_var=LD_LIBRARY_PATH
23371  ;;
23372
23373freebsd1*)
23374  dynamic_linker=no
23375  ;;
23376
23377kfreebsd*-gnu)
23378  version_type=linux
23379  need_lib_prefix=no
23380  need_version=no
23381  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23382  soname_spec='${libname}${release}${shared_ext}$major'
23383  shlibpath_var=LD_LIBRARY_PATH
23384  shlibpath_overrides_runpath=no
23385  hardcode_into_libs=yes
23386  dynamic_linker='GNU ld.so'
23387  ;;
23388
23389freebsd*)
23390  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
23391  version_type=freebsd-$objformat
23392  case $version_type in
23393    freebsd-elf*)
23394      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23395      need_version=no
23396      need_lib_prefix=no
23397      ;;
23398    freebsd-*)
23399      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23400      need_version=yes
23401      ;;
23402  esac
23403  shlibpath_var=LD_LIBRARY_PATH
23404  case $host_os in
23405  freebsd2*)
23406    shlibpath_overrides_runpath=yes
23407    ;;
23408  freebsd3.01* | freebsdelf3.01*)
23409    shlibpath_overrides_runpath=yes
23410    hardcode_into_libs=yes
23411    ;;
23412  *) # from 3.2 on
23413    shlibpath_overrides_runpath=no
23414    hardcode_into_libs=yes
23415    ;;
23416  esac
23417  ;;
23418
23419gnu*)
23420  version_type=linux
23421  need_lib_prefix=no
23422  need_version=no
23423  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23424  soname_spec='${libname}${release}${shared_ext}$major'
23425  shlibpath_var=LD_LIBRARY_PATH
23426  hardcode_into_libs=yes
23427  ;;
23428
23429hpux9* | hpux10* | hpux11*)
23430  # Give a soname corresponding to the major version so that dld.sl refuses to
23431  # link against other versions.
23432  version_type=sunos
23433  need_lib_prefix=no
23434  need_version=no
23435  case "$host_cpu" in
23436  ia64*)
23437    shrext_cmds='.so'
23438    hardcode_into_libs=yes
23439    dynamic_linker="$host_os dld.so"
23440    shlibpath_var=LD_LIBRARY_PATH
23441    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23442    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23443    soname_spec='${libname}${release}${shared_ext}$major'
23444    if test "X$HPUX_IA64_MODE" = X32; then
23445      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23446    else
23447      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23448    fi
23449    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23450    ;;
23451   hppa*64*)
23452     shrext_cmds='.sl'
23453     hardcode_into_libs=yes
23454     dynamic_linker="$host_os dld.sl"
23455     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23456     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23457     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23458     soname_spec='${libname}${release}${shared_ext}$major'
23459     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23460     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23461     ;;
23462   *)
23463    shrext_cmds='.sl'
23464    dynamic_linker="$host_os dld.sl"
23465    shlibpath_var=SHLIB_PATH
23466    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23467    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23468    soname_spec='${libname}${release}${shared_ext}$major'
23469    ;;
23470  esac
23471  # HP-UX runs *really* slowly unless shared libraries are mode 555.
23472  postinstall_cmds='chmod 555 $lib'
23473  ;;
23474
23475irix5* | irix6* | nonstopux*)
23476  case $host_os in
23477    nonstopux*) version_type=nonstopux ;;
23478    *)
23479	if test "$lt_cv_prog_gnu_ld" = yes; then
23480		version_type=linux
23481	else
23482		version_type=irix
23483	fi ;;
23484  esac
23485  need_lib_prefix=no
23486  need_version=no
23487  soname_spec='${libname}${release}${shared_ext}$major'
23488  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23489  case $host_os in
23490  irix5* | nonstopux*)
23491    libsuff= shlibsuff=
23492    ;;
23493  *)
23494    case $LD in # libtool.m4 will add one of these switches to LD
23495    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23496      libsuff= shlibsuff= libmagic=32-bit;;
23497    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23498      libsuff=32 shlibsuff=N32 libmagic=N32;;
23499    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23500      libsuff=64 shlibsuff=64 libmagic=64-bit;;
23501    *) libsuff= shlibsuff= libmagic=never-match;;
23502    esac
23503    ;;
23504  esac
23505  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23506  shlibpath_overrides_runpath=no
23507  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23508  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23509  hardcode_into_libs=yes
23510  ;;
23511
23512# No shared lib support for Linux oldld, aout, or coff.
23513linux*oldld* | linux*aout* | linux*coff*)
23514  dynamic_linker=no
23515  ;;
23516
23517# This must be Linux ELF.
23518linux*)
23519  version_type=linux
23520  need_lib_prefix=no
23521  need_version=no
23522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23523  soname_spec='${libname}${release}${shared_ext}$major'
23524  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23525  shlibpath_var=LD_LIBRARY_PATH
23526  shlibpath_overrides_runpath=no
23527  # This implies no fast_install, which is unacceptable.
23528  # Some rework will be needed to allow for fast_install
23529  # before this can be enabled.
23530  hardcode_into_libs=yes
23531
23532  # Append ld.so.conf contents to the search path
23533  if test -f /etc/ld.so.conf; then
23534    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
23535    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23536  fi
23537
23538  # We used to test for /lib/ld.so.1 and disable shared libraries on
23539  # powerpc, because MkLinux only supported shared libraries with the
23540  # GNU dynamic linker.  Since this was broken with cross compilers,
23541  # most powerpc-linux boxes support dynamic linking these days and
23542  # people can always --disable-shared, the test was removed, and we
23543  # assume the GNU/Linux dynamic linker is in use.
23544  dynamic_linker='GNU/Linux ld.so'
23545  ;;
23546
23547netbsdelf*-gnu)
23548  version_type=linux
23549  need_lib_prefix=no
23550  need_version=no
23551  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23552  soname_spec='${libname}${release}${shared_ext}$major'
23553  shlibpath_var=LD_LIBRARY_PATH
23554  shlibpath_overrides_runpath=no
23555  hardcode_into_libs=yes
23556  dynamic_linker='NetBSD ld.elf_so'
23557  ;;
23558
23559knetbsd*-gnu)
23560  version_type=linux
23561  need_lib_prefix=no
23562  need_version=no
23563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23564  soname_spec='${libname}${release}${shared_ext}$major'
23565  shlibpath_var=LD_LIBRARY_PATH
23566  shlibpath_overrides_runpath=no
23567  hardcode_into_libs=yes
23568  dynamic_linker='GNU ld.so'
23569  ;;
23570
23571netbsd*)
23572  version_type=sunos
23573  need_lib_prefix=no
23574  need_version=no
23575  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23576    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23577    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23578    dynamic_linker='NetBSD (a.out) ld.so'
23579  else
23580    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23581    soname_spec='${libname}${release}${shared_ext}$major'
23582    dynamic_linker='NetBSD ld.elf_so'
23583  fi
23584  shlibpath_var=LD_LIBRARY_PATH
23585  shlibpath_overrides_runpath=yes
23586  hardcode_into_libs=yes
23587  ;;
23588
23589newsos6)
23590  version_type=linux
23591  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23592  shlibpath_var=LD_LIBRARY_PATH
23593  shlibpath_overrides_runpath=yes
23594  ;;
23595
23596nto-qnx*)
23597  version_type=linux
23598  need_lib_prefix=no
23599  need_version=no
23600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23601  soname_spec='${libname}${release}${shared_ext}$major'
23602  shlibpath_var=LD_LIBRARY_PATH
23603  shlibpath_overrides_runpath=yes
23604  ;;
23605
23606openbsd*)
23607  version_type=sunos
23608  need_lib_prefix=no
23609  need_version=yes
23610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23611  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23612  shlibpath_var=LD_LIBRARY_PATH
23613  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23614    case $host_os in
23615      openbsd2.[89] | openbsd2.[89].*)
23616	shlibpath_overrides_runpath=no
23617	;;
23618      *)
23619	shlibpath_overrides_runpath=yes
23620	;;
23621      esac
23622  else
23623    shlibpath_overrides_runpath=yes
23624  fi
23625  ;;
23626
23627os2*)
23628  libname_spec='$name'
23629  shrext_cmds=".dll"
23630  need_lib_prefix=no
23631  library_names_spec='$libname${shared_ext} $libname.a'
23632  dynamic_linker='OS/2 ld.exe'
23633  shlibpath_var=LIBPATH
23634  ;;
23635
23636osf3* | osf4* | osf5*)
23637  version_type=osf
23638  need_lib_prefix=no
23639  need_version=no
23640  soname_spec='${libname}${release}${shared_ext}$major'
23641  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23642  shlibpath_var=LD_LIBRARY_PATH
23643  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23644  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23645  ;;
23646
23647sco3.2v5*)
23648  version_type=osf
23649  soname_spec='${libname}${release}${shared_ext}$major'
23650  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23651  shlibpath_var=LD_LIBRARY_PATH
23652  ;;
23653
23654solaris*)
23655  version_type=linux
23656  need_lib_prefix=no
23657  need_version=no
23658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23659  soname_spec='${libname}${release}${shared_ext}$major'
23660  shlibpath_var=LD_LIBRARY_PATH
23661  shlibpath_overrides_runpath=yes
23662  hardcode_into_libs=yes
23663  # ldd complains unless libraries are executable
23664  postinstall_cmds='chmod +x $lib'
23665  ;;
23666
23667sunos4*)
23668  version_type=sunos
23669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23670  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23671  shlibpath_var=LD_LIBRARY_PATH
23672  shlibpath_overrides_runpath=yes
23673  if test "$with_gnu_ld" = yes; then
23674    need_lib_prefix=no
23675  fi
23676  need_version=yes
23677  ;;
23678
23679sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23680  version_type=linux
23681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23682  soname_spec='${libname}${release}${shared_ext}$major'
23683  shlibpath_var=LD_LIBRARY_PATH
23684  case $host_vendor in
23685    sni)
23686      shlibpath_overrides_runpath=no
23687      need_lib_prefix=no
23688      export_dynamic_flag_spec='${wl}-Blargedynsym'
23689      runpath_var=LD_RUN_PATH
23690      ;;
23691    siemens)
23692      need_lib_prefix=no
23693      ;;
23694    motorola)
23695      need_lib_prefix=no
23696      need_version=no
23697      shlibpath_overrides_runpath=no
23698      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23699      ;;
23700  esac
23701  ;;
23702
23703sysv4*MP*)
23704  if test -d /usr/nec ;then
23705    version_type=linux
23706    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23707    soname_spec='$libname${shared_ext}.$major'
23708    shlibpath_var=LD_LIBRARY_PATH
23709  fi
23710  ;;
23711
23712uts4*)
23713  version_type=linux
23714  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23715  soname_spec='${libname}${release}${shared_ext}$major'
23716  shlibpath_var=LD_LIBRARY_PATH
23717  ;;
23718
23719*)
23720  dynamic_linker=no
23721  ;;
23722esac
23723echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23724echo "${ECHO_T}$dynamic_linker" >&6
23725test "$dynamic_linker" = no && can_build_shared=no
23726
23727echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23728echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23729hardcode_action_GCJ=
23730if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23731   test -n "$runpath_var GCJ" || \
23732   test "X$hardcode_automatic_GCJ"="Xyes" ; then
23733
23734  # We can hardcode non-existant directories.
23735  if test "$hardcode_direct_GCJ" != no &&
23736     # If the only mechanism to avoid hardcoding is shlibpath_var, we
23737     # have to relink, otherwise we might link with an installed library
23738     # when we should be linking with a yet-to-be-installed one
23739     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23740     test "$hardcode_minus_L_GCJ" != no; then
23741    # Linking always hardcodes the temporary library directory.
23742    hardcode_action_GCJ=relink
23743  else
23744    # We can link without hardcoding, and we can hardcode nonexisting dirs.
23745    hardcode_action_GCJ=immediate
23746  fi
23747else
23748  # We cannot hardcode anything, or else we can only hardcode existing
23749  # directories.
23750  hardcode_action_GCJ=unsupported
23751fi
23752echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23753echo "${ECHO_T}$hardcode_action_GCJ" >&6
23754
23755if test "$hardcode_action_GCJ" = relink; then
23756  # Fast installation is not supported
23757  enable_fast_install=no
23758elif test "$shlibpath_overrides_runpath" = yes ||
23759     test "$enable_shared" = no; then
23760  # Fast installation is not necessary
23761  enable_fast_install=needless
23762fi
23763
23764striplib=
23765old_striplib=
23766echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23767echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23768if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23769  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23770  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23771  echo "$as_me:$LINENO: result: yes" >&5
23772echo "${ECHO_T}yes" >&6
23773else
23774# FIXME - insert some real tests, host_os isn't really good enough
23775  case $host_os in
23776   darwin*)
23777       if test -n "$STRIP" ; then
23778         striplib="$STRIP -x"
23779         echo "$as_me:$LINENO: result: yes" >&5
23780echo "${ECHO_T}yes" >&6
23781       else
23782  echo "$as_me:$LINENO: result: no" >&5
23783echo "${ECHO_T}no" >&6
23784fi
23785       ;;
23786   *)
23787  echo "$as_me:$LINENO: result: no" >&5
23788echo "${ECHO_T}no" >&6
23789    ;;
23790  esac
23791fi
23792
23793if test "x$enable_dlopen" != xyes; then
23794  enable_dlopen=unknown
23795  enable_dlopen_self=unknown
23796  enable_dlopen_self_static=unknown
23797else
23798  lt_cv_dlopen=no
23799  lt_cv_dlopen_libs=
23800
23801  case $host_os in
23802  beos*)
23803    lt_cv_dlopen="load_add_on"
23804    lt_cv_dlopen_libs=
23805    lt_cv_dlopen_self=yes
23806    ;;
23807
23808  mingw* | pw32*)
23809    lt_cv_dlopen="LoadLibrary"
23810    lt_cv_dlopen_libs=
23811   ;;
23812
23813  cygwin*)
23814    lt_cv_dlopen="dlopen"
23815    lt_cv_dlopen_libs=
23816   ;;
23817
23818  darwin*)
23819  # if libdl is installed we need to link against it
23820    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23821echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23822if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23823  echo $ECHO_N "(cached) $ECHO_C" >&6
23824else
23825  ac_check_lib_save_LIBS=$LIBS
23826LIBS="-ldl  $LIBS"
23827cat >conftest.$ac_ext <<_ACEOF
23828/* confdefs.h.  */
23829_ACEOF
23830cat confdefs.h >>conftest.$ac_ext
23831cat >>conftest.$ac_ext <<_ACEOF
23832/* end confdefs.h.  */
23833
23834/* Override any gcc2 internal prototype to avoid an error.  */
23835#ifdef __cplusplus
23836extern "C"
23837#endif
23838/* We use char because int might match the return type of a gcc2
23839   builtin and then its argument prototype would still apply.  */
23840char dlopen ();
23841int
23842main ()
23843{
23844dlopen ();
23845  ;
23846  return 0;
23847}
23848_ACEOF
23849rm -f conftest.$ac_objext conftest$ac_exeext
23850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23851  (eval $ac_link) 2>conftest.er1
23852  ac_status=$?
23853  grep -v '^ *+' conftest.er1 >conftest.err
23854  rm -f conftest.er1
23855  cat conftest.err >&5
23856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857  (exit $ac_status); } &&
23858	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23860  (eval $ac_try) 2>&5
23861  ac_status=$?
23862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863  (exit $ac_status); }; } &&
23864	 { ac_try='test -s conftest$ac_exeext'
23865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23866  (eval $ac_try) 2>&5
23867  ac_status=$?
23868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23869  (exit $ac_status); }; }; then
23870  ac_cv_lib_dl_dlopen=yes
23871else
23872  echo "$as_me: failed program was:" >&5
23873sed 's/^/| /' conftest.$ac_ext >&5
23874
23875ac_cv_lib_dl_dlopen=no
23876fi
23877rm -f conftest.err conftest.$ac_objext \
23878      conftest$ac_exeext conftest.$ac_ext
23879LIBS=$ac_check_lib_save_LIBS
23880fi
23881echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23882echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23883if test $ac_cv_lib_dl_dlopen = yes; then
23884  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23885else
23886
23887    lt_cv_dlopen="dyld"
23888    lt_cv_dlopen_libs=
23889    lt_cv_dlopen_self=yes
23890
23891fi
23892
23893   ;;
23894
23895  *)
23896    echo "$as_me:$LINENO: checking for shl_load" >&5
23897echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23898if test "${ac_cv_func_shl_load+set}" = set; then
23899  echo $ECHO_N "(cached) $ECHO_C" >&6
23900else
23901  cat >conftest.$ac_ext <<_ACEOF
23902/* confdefs.h.  */
23903_ACEOF
23904cat confdefs.h >>conftest.$ac_ext
23905cat >>conftest.$ac_ext <<_ACEOF
23906/* end confdefs.h.  */
23907/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23908   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23909#define shl_load innocuous_shl_load
23910
23911/* System header to define __stub macros and hopefully few prototypes,
23912    which can conflict with char shl_load (); below.
23913    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23914    <limits.h> exists even on freestanding compilers.  */
23915
23916#ifdef __STDC__
23917# include <limits.h>
23918#else
23919# include <assert.h>
23920#endif
23921
23922#undef shl_load
23923
23924/* Override any gcc2 internal prototype to avoid an error.  */
23925#ifdef __cplusplus
23926extern "C"
23927{
23928#endif
23929/* We use char because int might match the return type of a gcc2
23930   builtin and then its argument prototype would still apply.  */
23931char shl_load ();
23932/* The GNU C library defines this for functions which it implements
23933    to always fail with ENOSYS.  Some functions are actually named
23934    something starting with __ and the normal name is an alias.  */
23935#if defined (__stub_shl_load) || defined (__stub___shl_load)
23936choke me
23937#else
23938char (*f) () = shl_load;
23939#endif
23940#ifdef __cplusplus
23941}
23942#endif
23943
23944int
23945main ()
23946{
23947return f != shl_load;
23948  ;
23949  return 0;
23950}
23951_ACEOF
23952rm -f conftest.$ac_objext conftest$ac_exeext
23953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23954  (eval $ac_link) 2>conftest.er1
23955  ac_status=$?
23956  grep -v '^ *+' conftest.er1 >conftest.err
23957  rm -f conftest.er1
23958  cat conftest.err >&5
23959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960  (exit $ac_status); } &&
23961	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23963  (eval $ac_try) 2>&5
23964  ac_status=$?
23965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23966  (exit $ac_status); }; } &&
23967	 { ac_try='test -s conftest$ac_exeext'
23968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23969  (eval $ac_try) 2>&5
23970  ac_status=$?
23971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972  (exit $ac_status); }; }; then
23973  ac_cv_func_shl_load=yes
23974else
23975  echo "$as_me: failed program was:" >&5
23976sed 's/^/| /' conftest.$ac_ext >&5
23977
23978ac_cv_func_shl_load=no
23979fi
23980rm -f conftest.err conftest.$ac_objext \
23981      conftest$ac_exeext conftest.$ac_ext
23982fi
23983echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23984echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23985if test $ac_cv_func_shl_load = yes; then
23986  lt_cv_dlopen="shl_load"
23987else
23988  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23989echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23990if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23991  echo $ECHO_N "(cached) $ECHO_C" >&6
23992else
23993  ac_check_lib_save_LIBS=$LIBS
23994LIBS="-ldld  $LIBS"
23995cat >conftest.$ac_ext <<_ACEOF
23996/* confdefs.h.  */
23997_ACEOF
23998cat confdefs.h >>conftest.$ac_ext
23999cat >>conftest.$ac_ext <<_ACEOF
24000/* end confdefs.h.  */
24001
24002/* Override any gcc2 internal prototype to avoid an error.  */
24003#ifdef __cplusplus
24004extern "C"
24005#endif
24006/* We use char because int might match the return type of a gcc2
24007   builtin and then its argument prototype would still apply.  */
24008char shl_load ();
24009int
24010main ()
24011{
24012shl_load ();
24013  ;
24014  return 0;
24015}
24016_ACEOF
24017rm -f conftest.$ac_objext conftest$ac_exeext
24018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24019  (eval $ac_link) 2>conftest.er1
24020  ac_status=$?
24021  grep -v '^ *+' conftest.er1 >conftest.err
24022  rm -f conftest.er1
24023  cat conftest.err >&5
24024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24025  (exit $ac_status); } &&
24026	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24028  (eval $ac_try) 2>&5
24029  ac_status=$?
24030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031  (exit $ac_status); }; } &&
24032	 { ac_try='test -s conftest$ac_exeext'
24033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24034  (eval $ac_try) 2>&5
24035  ac_status=$?
24036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037  (exit $ac_status); }; }; then
24038  ac_cv_lib_dld_shl_load=yes
24039else
24040  echo "$as_me: failed program was:" >&5
24041sed 's/^/| /' conftest.$ac_ext >&5
24042
24043ac_cv_lib_dld_shl_load=no
24044fi
24045rm -f conftest.err conftest.$ac_objext \
24046      conftest$ac_exeext conftest.$ac_ext
24047LIBS=$ac_check_lib_save_LIBS
24048fi
24049echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
24050echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
24051if test $ac_cv_lib_dld_shl_load = yes; then
24052  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
24053else
24054  echo "$as_me:$LINENO: checking for dlopen" >&5
24055echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
24056if test "${ac_cv_func_dlopen+set}" = set; then
24057  echo $ECHO_N "(cached) $ECHO_C" >&6
24058else
24059  cat >conftest.$ac_ext <<_ACEOF
24060/* confdefs.h.  */
24061_ACEOF
24062cat confdefs.h >>conftest.$ac_ext
24063cat >>conftest.$ac_ext <<_ACEOF
24064/* end confdefs.h.  */
24065/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
24066   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24067#define dlopen innocuous_dlopen
24068
24069/* System header to define __stub macros and hopefully few prototypes,
24070    which can conflict with char dlopen (); below.
24071    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24072    <limits.h> exists even on freestanding compilers.  */
24073
24074#ifdef __STDC__
24075# include <limits.h>
24076#else
24077# include <assert.h>
24078#endif
24079
24080#undef dlopen
24081
24082/* Override any gcc2 internal prototype to avoid an error.  */
24083#ifdef __cplusplus
24084extern "C"
24085{
24086#endif
24087/* We use char because int might match the return type of a gcc2
24088   builtin and then its argument prototype would still apply.  */
24089char dlopen ();
24090/* The GNU C library defines this for functions which it implements
24091    to always fail with ENOSYS.  Some functions are actually named
24092    something starting with __ and the normal name is an alias.  */
24093#if defined (__stub_dlopen) || defined (__stub___dlopen)
24094choke me
24095#else
24096char (*f) () = dlopen;
24097#endif
24098#ifdef __cplusplus
24099}
24100#endif
24101
24102int
24103main ()
24104{
24105return f != dlopen;
24106  ;
24107  return 0;
24108}
24109_ACEOF
24110rm -f conftest.$ac_objext conftest$ac_exeext
24111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24112  (eval $ac_link) 2>conftest.er1
24113  ac_status=$?
24114  grep -v '^ *+' conftest.er1 >conftest.err
24115  rm -f conftest.er1
24116  cat conftest.err >&5
24117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118  (exit $ac_status); } &&
24119	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24121  (eval $ac_try) 2>&5
24122  ac_status=$?
24123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124  (exit $ac_status); }; } &&
24125	 { ac_try='test -s conftest$ac_exeext'
24126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24127  (eval $ac_try) 2>&5
24128  ac_status=$?
24129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130  (exit $ac_status); }; }; then
24131  ac_cv_func_dlopen=yes
24132else
24133  echo "$as_me: failed program was:" >&5
24134sed 's/^/| /' conftest.$ac_ext >&5
24135
24136ac_cv_func_dlopen=no
24137fi
24138rm -f conftest.err conftest.$ac_objext \
24139      conftest$ac_exeext conftest.$ac_ext
24140fi
24141echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
24142echo "${ECHO_T}$ac_cv_func_dlopen" >&6
24143if test $ac_cv_func_dlopen = yes; then
24144  lt_cv_dlopen="dlopen"
24145else
24146  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24147echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24148if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24149  echo $ECHO_N "(cached) $ECHO_C" >&6
24150else
24151  ac_check_lib_save_LIBS=$LIBS
24152LIBS="-ldl  $LIBS"
24153cat >conftest.$ac_ext <<_ACEOF
24154/* confdefs.h.  */
24155_ACEOF
24156cat confdefs.h >>conftest.$ac_ext
24157cat >>conftest.$ac_ext <<_ACEOF
24158/* end confdefs.h.  */
24159
24160/* Override any gcc2 internal prototype to avoid an error.  */
24161#ifdef __cplusplus
24162extern "C"
24163#endif
24164/* We use char because int might match the return type of a gcc2
24165   builtin and then its argument prototype would still apply.  */
24166char dlopen ();
24167int
24168main ()
24169{
24170dlopen ();
24171  ;
24172  return 0;
24173}
24174_ACEOF
24175rm -f conftest.$ac_objext conftest$ac_exeext
24176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24177  (eval $ac_link) 2>conftest.er1
24178  ac_status=$?
24179  grep -v '^ *+' conftest.er1 >conftest.err
24180  rm -f conftest.er1
24181  cat conftest.err >&5
24182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183  (exit $ac_status); } &&
24184	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24186  (eval $ac_try) 2>&5
24187  ac_status=$?
24188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189  (exit $ac_status); }; } &&
24190	 { ac_try='test -s conftest$ac_exeext'
24191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24192  (eval $ac_try) 2>&5
24193  ac_status=$?
24194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195  (exit $ac_status); }; }; then
24196  ac_cv_lib_dl_dlopen=yes
24197else
24198  echo "$as_me: failed program was:" >&5
24199sed 's/^/| /' conftest.$ac_ext >&5
24200
24201ac_cv_lib_dl_dlopen=no
24202fi
24203rm -f conftest.err conftest.$ac_objext \
24204      conftest$ac_exeext conftest.$ac_ext
24205LIBS=$ac_check_lib_save_LIBS
24206fi
24207echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24208echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24209if test $ac_cv_lib_dl_dlopen = yes; then
24210  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
24211else
24212  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
24213echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
24214if test "${ac_cv_lib_svld_dlopen+set}" = set; then
24215  echo $ECHO_N "(cached) $ECHO_C" >&6
24216else
24217  ac_check_lib_save_LIBS=$LIBS
24218LIBS="-lsvld  $LIBS"
24219cat >conftest.$ac_ext <<_ACEOF
24220/* confdefs.h.  */
24221_ACEOF
24222cat confdefs.h >>conftest.$ac_ext
24223cat >>conftest.$ac_ext <<_ACEOF
24224/* end confdefs.h.  */
24225
24226/* Override any gcc2 internal prototype to avoid an error.  */
24227#ifdef __cplusplus
24228extern "C"
24229#endif
24230/* We use char because int might match the return type of a gcc2
24231   builtin and then its argument prototype would still apply.  */
24232char dlopen ();
24233int
24234main ()
24235{
24236dlopen ();
24237  ;
24238  return 0;
24239}
24240_ACEOF
24241rm -f conftest.$ac_objext conftest$ac_exeext
24242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24243  (eval $ac_link) 2>conftest.er1
24244  ac_status=$?
24245  grep -v '^ *+' conftest.er1 >conftest.err
24246  rm -f conftest.er1
24247  cat conftest.err >&5
24248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249  (exit $ac_status); } &&
24250	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24252  (eval $ac_try) 2>&5
24253  ac_status=$?
24254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255  (exit $ac_status); }; } &&
24256	 { ac_try='test -s conftest$ac_exeext'
24257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24258  (eval $ac_try) 2>&5
24259  ac_status=$?
24260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261  (exit $ac_status); }; }; then
24262  ac_cv_lib_svld_dlopen=yes
24263else
24264  echo "$as_me: failed program was:" >&5
24265sed 's/^/| /' conftest.$ac_ext >&5
24266
24267ac_cv_lib_svld_dlopen=no
24268fi
24269rm -f conftest.err conftest.$ac_objext \
24270      conftest$ac_exeext conftest.$ac_ext
24271LIBS=$ac_check_lib_save_LIBS
24272fi
24273echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
24274echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
24275if test $ac_cv_lib_svld_dlopen = yes; then
24276  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
24277else
24278  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
24279echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
24280if test "${ac_cv_lib_dld_dld_link+set}" = set; then
24281  echo $ECHO_N "(cached) $ECHO_C" >&6
24282else
24283  ac_check_lib_save_LIBS=$LIBS
24284LIBS="-ldld  $LIBS"
24285cat >conftest.$ac_ext <<_ACEOF
24286/* confdefs.h.  */
24287_ACEOF
24288cat confdefs.h >>conftest.$ac_ext
24289cat >>conftest.$ac_ext <<_ACEOF
24290/* end confdefs.h.  */
24291
24292/* Override any gcc2 internal prototype to avoid an error.  */
24293#ifdef __cplusplus
24294extern "C"
24295#endif
24296/* We use char because int might match the return type of a gcc2
24297   builtin and then its argument prototype would still apply.  */
24298char dld_link ();
24299int
24300main ()
24301{
24302dld_link ();
24303  ;
24304  return 0;
24305}
24306_ACEOF
24307rm -f conftest.$ac_objext conftest$ac_exeext
24308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24309  (eval $ac_link) 2>conftest.er1
24310  ac_status=$?
24311  grep -v '^ *+' conftest.er1 >conftest.err
24312  rm -f conftest.er1
24313  cat conftest.err >&5
24314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315  (exit $ac_status); } &&
24316	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24318  (eval $ac_try) 2>&5
24319  ac_status=$?
24320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321  (exit $ac_status); }; } &&
24322	 { ac_try='test -s conftest$ac_exeext'
24323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24324  (eval $ac_try) 2>&5
24325  ac_status=$?
24326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327  (exit $ac_status); }; }; then
24328  ac_cv_lib_dld_dld_link=yes
24329else
24330  echo "$as_me: failed program was:" >&5
24331sed 's/^/| /' conftest.$ac_ext >&5
24332
24333ac_cv_lib_dld_dld_link=no
24334fi
24335rm -f conftest.err conftest.$ac_objext \
24336      conftest$ac_exeext conftest.$ac_ext
24337LIBS=$ac_check_lib_save_LIBS
24338fi
24339echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
24340echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
24341if test $ac_cv_lib_dld_dld_link = yes; then
24342  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
24343fi
24344
24345
24346fi
24347
24348
24349fi
24350
24351
24352fi
24353
24354
24355fi
24356
24357
24358fi
24359
24360    ;;
24361  esac
24362
24363  if test "x$lt_cv_dlopen" != xno; then
24364    enable_dlopen=yes
24365  else
24366    enable_dlopen=no
24367  fi
24368
24369  case $lt_cv_dlopen in
24370  dlopen)
24371    save_CPPFLAGS="$CPPFLAGS"
24372    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
24373
24374    save_LDFLAGS="$LDFLAGS"
24375    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
24376
24377    save_LIBS="$LIBS"
24378    LIBS="$lt_cv_dlopen_libs $LIBS"
24379
24380    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
24381echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
24382if test "${lt_cv_dlopen_self+set}" = set; then
24383  echo $ECHO_N "(cached) $ECHO_C" >&6
24384else
24385  	  if test "$cross_compiling" = yes; then :
24386  lt_cv_dlopen_self=cross
24387else
24388  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24389  lt_status=$lt_dlunknown
24390  cat > conftest.$ac_ext <<EOF
24391#line 24391 "configure"
24392#include "confdefs.h"
24393
24394#if HAVE_DLFCN_H
24395#include <dlfcn.h>
24396#endif
24397
24398#include <stdio.h>
24399
24400#ifdef RTLD_GLOBAL
24401#  define LT_DLGLOBAL		RTLD_GLOBAL
24402#else
24403#  ifdef DL_GLOBAL
24404#    define LT_DLGLOBAL		DL_GLOBAL
24405#  else
24406#    define LT_DLGLOBAL		0
24407#  endif
24408#endif
24409
24410/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24411   find out it does not work in some platform. */
24412#ifndef LT_DLLAZY_OR_NOW
24413#  ifdef RTLD_LAZY
24414#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
24415#  else
24416#    ifdef DL_LAZY
24417#      define LT_DLLAZY_OR_NOW		DL_LAZY
24418#    else
24419#      ifdef RTLD_NOW
24420#        define LT_DLLAZY_OR_NOW	RTLD_NOW
24421#      else
24422#        ifdef DL_NOW
24423#          define LT_DLLAZY_OR_NOW	DL_NOW
24424#        else
24425#          define LT_DLLAZY_OR_NOW	0
24426#        endif
24427#      endif
24428#    endif
24429#  endif
24430#endif
24431
24432#ifdef __cplusplus
24433extern "C" void exit (int);
24434#endif
24435
24436void fnord() { int i=42;}
24437int main ()
24438{
24439  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24440  int status = $lt_dlunknown;
24441
24442  if (self)
24443    {
24444      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
24445      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24446      /* dlclose (self); */
24447    }
24448
24449    exit (status);
24450}
24451EOF
24452  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24453  (eval $ac_link) 2>&5
24454  ac_status=$?
24455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24457    (./conftest; exit; ) 2>/dev/null
24458    lt_status=$?
24459    case x$lt_status in
24460      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
24461      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
24462      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
24463    esac
24464  else :
24465    # compilation failed
24466    lt_cv_dlopen_self=no
24467  fi
24468fi
24469rm -fr conftest*
24470
24471
24472fi
24473echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
24474echo "${ECHO_T}$lt_cv_dlopen_self" >&6
24475
24476    if test "x$lt_cv_dlopen_self" = xyes; then
24477      LDFLAGS="$LDFLAGS $link_static_flag"
24478      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
24479echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
24480if test "${lt_cv_dlopen_self_static+set}" = set; then
24481  echo $ECHO_N "(cached) $ECHO_C" >&6
24482else
24483  	  if test "$cross_compiling" = yes; then :
24484  lt_cv_dlopen_self_static=cross
24485else
24486  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24487  lt_status=$lt_dlunknown
24488  cat > conftest.$ac_ext <<EOF
24489#line 24489 "configure"
24490#include "confdefs.h"
24491
24492#if HAVE_DLFCN_H
24493#include <dlfcn.h>
24494#endif
24495
24496#include <stdio.h>
24497
24498#ifdef RTLD_GLOBAL
24499#  define LT_DLGLOBAL		RTLD_GLOBAL
24500#else
24501#  ifdef DL_GLOBAL
24502#    define LT_DLGLOBAL		DL_GLOBAL
24503#  else
24504#    define LT_DLGLOBAL		0
24505#  endif
24506#endif
24507
24508/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24509   find out it does not work in some platform. */
24510#ifndef LT_DLLAZY_OR_NOW
24511#  ifdef RTLD_LAZY
24512#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
24513#  else
24514#    ifdef DL_LAZY
24515#      define LT_DLLAZY_OR_NOW		DL_LAZY
24516#    else
24517#      ifdef RTLD_NOW
24518#        define LT_DLLAZY_OR_NOW	RTLD_NOW
24519#      else
24520#        ifdef DL_NOW
24521#          define LT_DLLAZY_OR_NOW	DL_NOW
24522#        else
24523#          define LT_DLLAZY_OR_NOW	0
24524#        endif
24525#      endif
24526#    endif
24527#  endif
24528#endif
24529
24530#ifdef __cplusplus
24531extern "C" void exit (int);
24532#endif
24533
24534void fnord() { int i=42;}
24535int main ()
24536{
24537  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24538  int status = $lt_dlunknown;
24539
24540  if (self)
24541    {
24542      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
24543      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24544      /* dlclose (self); */
24545    }
24546
24547    exit (status);
24548}
24549EOF
24550  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24551  (eval $ac_link) 2>&5
24552  ac_status=$?
24553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24555    (./conftest; exit; ) 2>/dev/null
24556    lt_status=$?
24557    case x$lt_status in
24558      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
24559      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
24560      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
24561    esac
24562  else :
24563    # compilation failed
24564    lt_cv_dlopen_self_static=no
24565  fi
24566fi
24567rm -fr conftest*
24568
24569
24570fi
24571echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
24572echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
24573    fi
24574
24575    CPPFLAGS="$save_CPPFLAGS"
24576    LDFLAGS="$save_LDFLAGS"
24577    LIBS="$save_LIBS"
24578    ;;
24579  esac
24580
24581  case $lt_cv_dlopen_self in
24582  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24583  *) enable_dlopen_self=unknown ;;
24584  esac
24585
24586  case $lt_cv_dlopen_self_static in
24587  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24588  *) enable_dlopen_self_static=unknown ;;
24589  esac
24590fi
24591
24592
24593# The else clause should only fire when bootstrapping the
24594# libtool distribution, otherwise you forgot to ship ltmain.sh
24595# with your package, and you will get complaints that there are
24596# no rules to generate ltmain.sh.
24597if test -f "$ltmain"; then
24598  # See if we are running on zsh, and set the options which allow our commands through
24599  # without removal of \ escapes.
24600  if test -n "${ZSH_VERSION+set}" ; then
24601    setopt NO_GLOB_SUBST
24602  fi
24603  # Now quote all the things that may contain metacharacters while being
24604  # careful not to overquote the AC_SUBSTed values.  We take copies of the
24605  # variables and quote the copies for generation of the libtool script.
24606  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24607    SED SHELL STRIP \
24608    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24609    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24610    deplibs_check_method reload_flag reload_cmds need_locks \
24611    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24612    lt_cv_sys_global_symbol_to_c_name_address \
24613    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24614    old_postinstall_cmds old_postuninstall_cmds \
24615    compiler_GCJ \
24616    CC_GCJ \
24617    LD_GCJ \
24618    lt_prog_compiler_wl_GCJ \
24619    lt_prog_compiler_pic_GCJ \
24620    lt_prog_compiler_static_GCJ \
24621    lt_prog_compiler_no_builtin_flag_GCJ \
24622    export_dynamic_flag_spec_GCJ \
24623    thread_safe_flag_spec_GCJ \
24624    whole_archive_flag_spec_GCJ \
24625    enable_shared_with_static_runtimes_GCJ \
24626    old_archive_cmds_GCJ \
24627    old_archive_from_new_cmds_GCJ \
24628    predep_objects_GCJ \
24629    postdep_objects_GCJ \
24630    predeps_GCJ \
24631    postdeps_GCJ \
24632    compiler_lib_search_path_GCJ \
24633    archive_cmds_GCJ \
24634    archive_expsym_cmds_GCJ \
24635    postinstall_cmds_GCJ \
24636    postuninstall_cmds_GCJ \
24637    old_archive_from_expsyms_cmds_GCJ \
24638    allow_undefined_flag_GCJ \
24639    no_undefined_flag_GCJ \
24640    export_symbols_cmds_GCJ \
24641    hardcode_libdir_flag_spec_GCJ \
24642    hardcode_libdir_flag_spec_ld_GCJ \
24643    hardcode_libdir_separator_GCJ \
24644    hardcode_automatic_GCJ \
24645    module_cmds_GCJ \
24646    module_expsym_cmds_GCJ \
24647    lt_cv_prog_compiler_c_o_GCJ \
24648    exclude_expsyms_GCJ \
24649    include_expsyms_GCJ; do
24650
24651    case $var in
24652    old_archive_cmds_GCJ | \
24653    old_archive_from_new_cmds_GCJ | \
24654    archive_cmds_GCJ | \
24655    archive_expsym_cmds_GCJ | \
24656    module_cmds_GCJ | \
24657    module_expsym_cmds_GCJ | \
24658    old_archive_from_expsyms_cmds_GCJ | \
24659    export_symbols_cmds_GCJ | \
24660    extract_expsyms_cmds | reload_cmds | finish_cmds | \
24661    postinstall_cmds | postuninstall_cmds | \
24662    old_postinstall_cmds | old_postuninstall_cmds | \
24663    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24664      # Double-quote double-evaled strings.
24665      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24666      ;;
24667    *)
24668      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24669      ;;
24670    esac
24671  done
24672
24673  case $lt_echo in
24674  *'\$0 --fallback-echo"')
24675    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24676    ;;
24677  esac
24678
24679cfgfile="$ofile"
24680
24681  cat <<__EOF__ >> "$cfgfile"
24682# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24683
24684# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24685
24686# Shell to use when invoking shell scripts.
24687SHELL=$lt_SHELL
24688
24689# Whether or not to build shared libraries.
24690build_libtool_libs=$enable_shared
24691
24692# Whether or not to build static libraries.
24693build_old_libs=$enable_static
24694
24695# Whether or not to add -lc for building shared libraries.
24696build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24697
24698# Whether or not to disallow shared libs when runtime libs are static
24699allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24700
24701# Whether or not to optimize for fast installation.
24702fast_install=$enable_fast_install
24703
24704# The host system.
24705host_alias=$host_alias
24706host=$host
24707
24708# An echo program that does not interpret backslashes.
24709echo=$lt_echo
24710
24711# The archiver.
24712AR=$lt_AR
24713AR_FLAGS=$lt_AR_FLAGS
24714
24715# A C compiler.
24716LTCC=$lt_LTCC
24717
24718# A language-specific compiler.
24719CC=$lt_compiler_GCJ
24720
24721# Is the compiler the GNU C compiler?
24722with_gcc=$GCC_GCJ
24723
24724# An ERE matcher.
24725EGREP=$lt_EGREP
24726
24727# The linker used to build libraries.
24728LD=$lt_LD_GCJ
24729
24730# Whether we need hard or soft links.
24731LN_S=$lt_LN_S
24732
24733# A BSD-compatible nm program.
24734NM=$lt_NM
24735
24736# A symbol stripping program
24737STRIP=$lt_STRIP
24738
24739# Used to examine libraries when file_magic_cmd begins "file"
24740MAGIC_CMD=$MAGIC_CMD
24741
24742# Used on cygwin: DLL creation program.
24743DLLTOOL="$DLLTOOL"
24744
24745# Used on cygwin: object dumper.
24746OBJDUMP="$OBJDUMP"
24747
24748# Used on cygwin: assembler.
24749AS="$AS"
24750
24751# The name of the directory that contains temporary libtool files.
24752objdir=$objdir
24753
24754# How to create reloadable object files.
24755reload_flag=$lt_reload_flag
24756reload_cmds=$lt_reload_cmds
24757
24758# How to pass a linker flag through the compiler.
24759wl=$lt_lt_prog_compiler_wl_GCJ
24760
24761# Object file suffix (normally "o").
24762objext="$ac_objext"
24763
24764# Old archive suffix (normally "a").
24765libext="$libext"
24766
24767# Shared library suffix (normally ".so").
24768shrext_cmds='$shrext_cmds'
24769
24770# Executable file suffix (normally "").
24771exeext="$exeext"
24772
24773# Additional compiler flags for building library objects.
24774pic_flag=$lt_lt_prog_compiler_pic_GCJ
24775pic_mode=$pic_mode
24776
24777# What is the maximum length of a command?
24778max_cmd_len=$lt_cv_sys_max_cmd_len
24779
24780# Does compiler simultaneously support -c and -o options?
24781compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24782
24783# Must we lock files when doing compilation ?
24784need_locks=$lt_need_locks
24785
24786# Do we need the lib prefix for modules?
24787need_lib_prefix=$need_lib_prefix
24788
24789# Do we need a version for libraries?
24790need_version=$need_version
24791
24792# Whether dlopen is supported.
24793dlopen_support=$enable_dlopen
24794
24795# Whether dlopen of programs is supported.
24796dlopen_self=$enable_dlopen_self
24797
24798# Whether dlopen of statically linked programs is supported.
24799dlopen_self_static=$enable_dlopen_self_static
24800
24801# Compiler flag to prevent dynamic linking.
24802link_static_flag=$lt_lt_prog_compiler_static_GCJ
24803
24804# Compiler flag to turn off builtin functions.
24805no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24806
24807# Compiler flag to allow reflexive dlopens.
24808export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24809
24810# Compiler flag to generate shared objects directly from archives.
24811whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24812
24813# Compiler flag to generate thread-safe objects.
24814thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24815
24816# Library versioning type.
24817version_type=$version_type
24818
24819# Format of library name prefix.
24820libname_spec=$lt_libname_spec
24821
24822# List of archive names.  First name is the real one, the rest are links.
24823# The last name is the one that the linker finds with -lNAME.
24824library_names_spec=$lt_library_names_spec
24825
24826# The coded name of the library, if different from the real name.
24827soname_spec=$lt_soname_spec
24828
24829# Commands used to build and install an old-style archive.
24830RANLIB=$lt_RANLIB
24831old_archive_cmds=$lt_old_archive_cmds_GCJ
24832old_postinstall_cmds=$lt_old_postinstall_cmds
24833old_postuninstall_cmds=$lt_old_postuninstall_cmds
24834
24835# Create an old-style archive from a shared archive.
24836old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24837
24838# Create a temporary old-style archive to link instead of a shared archive.
24839old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24840
24841# Commands used to build and install a shared archive.
24842archive_cmds=$lt_archive_cmds_GCJ
24843archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24844postinstall_cmds=$lt_postinstall_cmds
24845postuninstall_cmds=$lt_postuninstall_cmds
24846
24847# Commands used to build a loadable module (assumed same as above if empty)
24848module_cmds=$lt_module_cmds_GCJ
24849module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24850
24851# Commands to strip libraries.
24852old_striplib=$lt_old_striplib
24853striplib=$lt_striplib
24854
24855# Dependencies to place before the objects being linked to create a
24856# shared library.
24857predep_objects=$lt_predep_objects_GCJ
24858
24859# Dependencies to place after the objects being linked to create a
24860# shared library.
24861postdep_objects=$lt_postdep_objects_GCJ
24862
24863# Dependencies to place before the objects being linked to create a
24864# shared library.
24865predeps=$lt_predeps_GCJ
24866
24867# Dependencies to place after the objects being linked to create a
24868# shared library.
24869postdeps=$lt_postdeps_GCJ
24870
24871# The library search path used internally by the compiler when linking
24872# a shared library.
24873compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24874
24875# Method to check whether dependent libraries are shared objects.
24876deplibs_check_method=$lt_deplibs_check_method
24877
24878# Command to use when deplibs_check_method == file_magic.
24879file_magic_cmd=$lt_file_magic_cmd
24880
24881# Flag that allows shared libraries with undefined symbols to be built.
24882allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24883
24884# Flag that forces no undefined symbols.
24885no_undefined_flag=$lt_no_undefined_flag_GCJ
24886
24887# Commands used to finish a libtool library installation in a directory.
24888finish_cmds=$lt_finish_cmds
24889
24890# Same as above, but a single script fragment to be evaled but not shown.
24891finish_eval=$lt_finish_eval
24892
24893# Take the output of nm and produce a listing of raw symbols and C names.
24894global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24895
24896# Transform the output of nm in a proper C declaration
24897global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24898
24899# Transform the output of nm in a C name address pair
24900global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24901
24902# This is the shared library runtime path variable.
24903runpath_var=$runpath_var
24904
24905# This is the shared library path variable.
24906shlibpath_var=$shlibpath_var
24907
24908# Is shlibpath searched before the hard-coded library search path?
24909shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24910
24911# How to hardcode a shared library path into an executable.
24912hardcode_action=$hardcode_action_GCJ
24913
24914# Whether we should hardcode library paths into libraries.
24915hardcode_into_libs=$hardcode_into_libs
24916
24917# Flag to hardcode \$libdir into a binary during linking.
24918# This must work even if \$libdir does not exist.
24919hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24920
24921# If ld is used when linking, flag to hardcode \$libdir into
24922# a binary during linking. This must work even if \$libdir does
24923# not exist.
24924hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24925
24926# Whether we need a single -rpath flag with a separated argument.
24927hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24928
24929# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24930# resulting binary.
24931hardcode_direct=$hardcode_direct_GCJ
24932
24933# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24934# resulting binary.
24935hardcode_minus_L=$hardcode_minus_L_GCJ
24936
24937# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24938# the resulting binary.
24939hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24940
24941# Set to yes if building a shared library automatically hardcodes DIR into the library
24942# and all subsequent libraries and executables linked against it.
24943hardcode_automatic=$hardcode_automatic_GCJ
24944
24945# Variables whose values should be saved in libtool wrapper scripts and
24946# restored at relink time.
24947variables_saved_for_relink="$variables_saved_for_relink"
24948
24949# Whether libtool must link a program against all its dependency libraries.
24950link_all_deplibs=$link_all_deplibs_GCJ
24951
24952# Compile-time system search path for libraries
24953sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24954
24955# Run-time system search path for libraries
24956sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24957
24958# Fix the shell variable \$srcfile for the compiler.
24959fix_srcfile_path="$fix_srcfile_path_GCJ"
24960
24961# Set to yes if exported symbols are required.
24962always_export_symbols=$always_export_symbols_GCJ
24963
24964# The commands to list exported symbols.
24965export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24966
24967# The commands to extract the exported symbol list from a shared archive.
24968extract_expsyms_cmds=$lt_extract_expsyms_cmds
24969
24970# Symbols that should not be listed in the preloaded symbols.
24971exclude_expsyms=$lt_exclude_expsyms_GCJ
24972
24973# Symbols that must always be exported.
24974include_expsyms=$lt_include_expsyms_GCJ
24975
24976# ### END LIBTOOL TAG CONFIG: $tagname
24977
24978__EOF__
24979
24980
24981else
24982  # If there is no Makefile yet, we rely on a make rule to execute
24983  # `config.status --recheck' to rerun these tests and create the
24984  # libtool script then.
24985  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24986  if test -f "$ltmain_in"; then
24987    test -f Makefile && make "$ltmain"
24988  fi
24989fi
24990
24991
24992ac_ext=c
24993ac_cpp='$CPP $CPPFLAGS'
24994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24996ac_compiler_gnu=$ac_cv_c_compiler_gnu
24997
24998CC="$lt_save_CC"
24999
25000	else
25001	  tagname=""
25002	fi
25003	;;
25004
25005      RC)
25006
25007
25008
25009# Source file extension for RC test sources.
25010ac_ext=rc
25011
25012# Object file extension for compiled RC test sources.
25013objext=o
25014objext_RC=$objext
25015
25016# Code to be used in simple compile tests
25017lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25018
25019# Code to be used in simple link tests
25020lt_simple_link_test_code="$lt_simple_compile_test_code"
25021
25022# ltmain only uses $CC for tagged configurations so make sure $CC is set.
25023
25024# If no C compiler was specified, use CC.
25025LTCC=${LTCC-"$CC"}
25026
25027# Allow CC to be a program name with arguments.
25028compiler=$CC
25029
25030
25031# Allow CC to be a program name with arguments.
25032lt_save_CC="$CC"
25033CC=${RC-"windres"}
25034compiler=$CC
25035compiler_RC=$CC
25036lt_cv_prog_compiler_c_o_RC=yes
25037
25038# The else clause should only fire when bootstrapping the
25039# libtool distribution, otherwise you forgot to ship ltmain.sh
25040# with your package, and you will get complaints that there are
25041# no rules to generate ltmain.sh.
25042if test -f "$ltmain"; then
25043  # See if we are running on zsh, and set the options which allow our commands through
25044  # without removal of \ escapes.
25045  if test -n "${ZSH_VERSION+set}" ; then
25046    setopt NO_GLOB_SUBST
25047  fi
25048  # Now quote all the things that may contain metacharacters while being
25049  # careful not to overquote the AC_SUBSTed values.  We take copies of the
25050  # variables and quote the copies for generation of the libtool script.
25051  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
25052    SED SHELL STRIP \
25053    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25054    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25055    deplibs_check_method reload_flag reload_cmds need_locks \
25056    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25057    lt_cv_sys_global_symbol_to_c_name_address \
25058    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25059    old_postinstall_cmds old_postuninstall_cmds \
25060    compiler_RC \
25061    CC_RC \
25062    LD_RC \
25063    lt_prog_compiler_wl_RC \
25064    lt_prog_compiler_pic_RC \
25065    lt_prog_compiler_static_RC \
25066    lt_prog_compiler_no_builtin_flag_RC \
25067    export_dynamic_flag_spec_RC \
25068    thread_safe_flag_spec_RC \
25069    whole_archive_flag_spec_RC \
25070    enable_shared_with_static_runtimes_RC \
25071    old_archive_cmds_RC \
25072    old_archive_from_new_cmds_RC \
25073    predep_objects_RC \
25074    postdep_objects_RC \
25075    predeps_RC \
25076    postdeps_RC \
25077    compiler_lib_search_path_RC \
25078    archive_cmds_RC \
25079    archive_expsym_cmds_RC \
25080    postinstall_cmds_RC \
25081    postuninstall_cmds_RC \
25082    old_archive_from_expsyms_cmds_RC \
25083    allow_undefined_flag_RC \
25084    no_undefined_flag_RC \
25085    export_symbols_cmds_RC \
25086    hardcode_libdir_flag_spec_RC \
25087    hardcode_libdir_flag_spec_ld_RC \
25088    hardcode_libdir_separator_RC \
25089    hardcode_automatic_RC \
25090    module_cmds_RC \
25091    module_expsym_cmds_RC \
25092    lt_cv_prog_compiler_c_o_RC \
25093    exclude_expsyms_RC \
25094    include_expsyms_RC; do
25095
25096    case $var in
25097    old_archive_cmds_RC | \
25098    old_archive_from_new_cmds_RC | \
25099    archive_cmds_RC | \
25100    archive_expsym_cmds_RC | \
25101    module_cmds_RC | \
25102    module_expsym_cmds_RC | \
25103    old_archive_from_expsyms_cmds_RC | \
25104    export_symbols_cmds_RC | \
25105    extract_expsyms_cmds | reload_cmds | finish_cmds | \
25106    postinstall_cmds | postuninstall_cmds | \
25107    old_postinstall_cmds | old_postuninstall_cmds | \
25108    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25109      # Double-quote double-evaled strings.
25110      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25111      ;;
25112    *)
25113      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25114      ;;
25115    esac
25116  done
25117
25118  case $lt_echo in
25119  *'\$0 --fallback-echo"')
25120    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25121    ;;
25122  esac
25123
25124cfgfile="$ofile"
25125
25126  cat <<__EOF__ >> "$cfgfile"
25127# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25128
25129# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25130
25131# Shell to use when invoking shell scripts.
25132SHELL=$lt_SHELL
25133
25134# Whether or not to build shared libraries.
25135build_libtool_libs=$enable_shared
25136
25137# Whether or not to build static libraries.
25138build_old_libs=$enable_static
25139
25140# Whether or not to add -lc for building shared libraries.
25141build_libtool_need_lc=$archive_cmds_need_lc_RC
25142
25143# Whether or not to disallow shared libs when runtime libs are static
25144allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25145
25146# Whether or not to optimize for fast installation.
25147fast_install=$enable_fast_install
25148
25149# The host system.
25150host_alias=$host_alias
25151host=$host
25152
25153# An echo program that does not interpret backslashes.
25154echo=$lt_echo
25155
25156# The archiver.
25157AR=$lt_AR
25158AR_FLAGS=$lt_AR_FLAGS
25159
25160# A C compiler.
25161LTCC=$lt_LTCC
25162
25163# A language-specific compiler.
25164CC=$lt_compiler_RC
25165
25166# Is the compiler the GNU C compiler?
25167with_gcc=$GCC_RC
25168
25169# An ERE matcher.
25170EGREP=$lt_EGREP
25171
25172# The linker used to build libraries.
25173LD=$lt_LD_RC
25174
25175# Whether we need hard or soft links.
25176LN_S=$lt_LN_S
25177
25178# A BSD-compatible nm program.
25179NM=$lt_NM
25180
25181# A symbol stripping program
25182STRIP=$lt_STRIP
25183
25184# Used to examine libraries when file_magic_cmd begins "file"
25185MAGIC_CMD=$MAGIC_CMD
25186
25187# Used on cygwin: DLL creation program.
25188DLLTOOL="$DLLTOOL"
25189
25190# Used on cygwin: object dumper.
25191OBJDUMP="$OBJDUMP"
25192
25193# Used on cygwin: assembler.
25194AS="$AS"
25195
25196# The name of the directory that contains temporary libtool files.
25197objdir=$objdir
25198
25199# How to create reloadable object files.
25200reload_flag=$lt_reload_flag
25201reload_cmds=$lt_reload_cmds
25202
25203# How to pass a linker flag through the compiler.
25204wl=$lt_lt_prog_compiler_wl_RC
25205
25206# Object file suffix (normally "o").
25207objext="$ac_objext"
25208
25209# Old archive suffix (normally "a").
25210libext="$libext"
25211
25212# Shared library suffix (normally ".so").
25213shrext_cmds='$shrext_cmds'
25214
25215# Executable file suffix (normally "").
25216exeext="$exeext"
25217
25218# Additional compiler flags for building library objects.
25219pic_flag=$lt_lt_prog_compiler_pic_RC
25220pic_mode=$pic_mode
25221
25222# What is the maximum length of a command?
25223max_cmd_len=$lt_cv_sys_max_cmd_len
25224
25225# Does compiler simultaneously support -c and -o options?
25226compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25227
25228# Must we lock files when doing compilation ?
25229need_locks=$lt_need_locks
25230
25231# Do we need the lib prefix for modules?
25232need_lib_prefix=$need_lib_prefix
25233
25234# Do we need a version for libraries?
25235need_version=$need_version
25236
25237# Whether dlopen is supported.
25238dlopen_support=$enable_dlopen
25239
25240# Whether dlopen of programs is supported.
25241dlopen_self=$enable_dlopen_self
25242
25243# Whether dlopen of statically linked programs is supported.
25244dlopen_self_static=$enable_dlopen_self_static
25245
25246# Compiler flag to prevent dynamic linking.
25247link_static_flag=$lt_lt_prog_compiler_static_RC
25248
25249# Compiler flag to turn off builtin functions.
25250no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25251
25252# Compiler flag to allow reflexive dlopens.
25253export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25254
25255# Compiler flag to generate shared objects directly from archives.
25256whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25257
25258# Compiler flag to generate thread-safe objects.
25259thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25260
25261# Library versioning type.
25262version_type=$version_type
25263
25264# Format of library name prefix.
25265libname_spec=$lt_libname_spec
25266
25267# List of archive names.  First name is the real one, the rest are links.
25268# The last name is the one that the linker finds with -lNAME.
25269library_names_spec=$lt_library_names_spec
25270
25271# The coded name of the library, if different from the real name.
25272soname_spec=$lt_soname_spec
25273
25274# Commands used to build and install an old-style archive.
25275RANLIB=$lt_RANLIB
25276old_archive_cmds=$lt_old_archive_cmds_RC
25277old_postinstall_cmds=$lt_old_postinstall_cmds
25278old_postuninstall_cmds=$lt_old_postuninstall_cmds
25279
25280# Create an old-style archive from a shared archive.
25281old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25282
25283# Create a temporary old-style archive to link instead of a shared archive.
25284old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25285
25286# Commands used to build and install a shared archive.
25287archive_cmds=$lt_archive_cmds_RC
25288archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25289postinstall_cmds=$lt_postinstall_cmds
25290postuninstall_cmds=$lt_postuninstall_cmds
25291
25292# Commands used to build a loadable module (assumed same as above if empty)
25293module_cmds=$lt_module_cmds_RC
25294module_expsym_cmds=$lt_module_expsym_cmds_RC
25295
25296# Commands to strip libraries.
25297old_striplib=$lt_old_striplib
25298striplib=$lt_striplib
25299
25300# Dependencies to place before the objects being linked to create a
25301# shared library.
25302predep_objects=$lt_predep_objects_RC
25303
25304# Dependencies to place after the objects being linked to create a
25305# shared library.
25306postdep_objects=$lt_postdep_objects_RC
25307
25308# Dependencies to place before the objects being linked to create a
25309# shared library.
25310predeps=$lt_predeps_RC
25311
25312# Dependencies to place after the objects being linked to create a
25313# shared library.
25314postdeps=$lt_postdeps_RC
25315
25316# The library search path used internally by the compiler when linking
25317# a shared library.
25318compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25319
25320# Method to check whether dependent libraries are shared objects.
25321deplibs_check_method=$lt_deplibs_check_method
25322
25323# Command to use when deplibs_check_method == file_magic.
25324file_magic_cmd=$lt_file_magic_cmd
25325
25326# Flag that allows shared libraries with undefined symbols to be built.
25327allow_undefined_flag=$lt_allow_undefined_flag_RC
25328
25329# Flag that forces no undefined symbols.
25330no_undefined_flag=$lt_no_undefined_flag_RC
25331
25332# Commands used to finish a libtool library installation in a directory.
25333finish_cmds=$lt_finish_cmds
25334
25335# Same as above, but a single script fragment to be evaled but not shown.
25336finish_eval=$lt_finish_eval
25337
25338# Take the output of nm and produce a listing of raw symbols and C names.
25339global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25340
25341# Transform the output of nm in a proper C declaration
25342global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25343
25344# Transform the output of nm in a C name address pair
25345global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25346
25347# This is the shared library runtime path variable.
25348runpath_var=$runpath_var
25349
25350# This is the shared library path variable.
25351shlibpath_var=$shlibpath_var
25352
25353# Is shlibpath searched before the hard-coded library search path?
25354shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25355
25356# How to hardcode a shared library path into an executable.
25357hardcode_action=$hardcode_action_RC
25358
25359# Whether we should hardcode library paths into libraries.
25360hardcode_into_libs=$hardcode_into_libs
25361
25362# Flag to hardcode \$libdir into a binary during linking.
25363# This must work even if \$libdir does not exist.
25364hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25365
25366# If ld is used when linking, flag to hardcode \$libdir into
25367# a binary during linking. This must work even if \$libdir does
25368# not exist.
25369hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25370
25371# Whether we need a single -rpath flag with a separated argument.
25372hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25373
25374# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25375# resulting binary.
25376hardcode_direct=$hardcode_direct_RC
25377
25378# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25379# resulting binary.
25380hardcode_minus_L=$hardcode_minus_L_RC
25381
25382# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25383# the resulting binary.
25384hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25385
25386# Set to yes if building a shared library automatically hardcodes DIR into the library
25387# and all subsequent libraries and executables linked against it.
25388hardcode_automatic=$hardcode_automatic_RC
25389
25390# Variables whose values should be saved in libtool wrapper scripts and
25391# restored at relink time.
25392variables_saved_for_relink="$variables_saved_for_relink"
25393
25394# Whether libtool must link a program against all its dependency libraries.
25395link_all_deplibs=$link_all_deplibs_RC
25396
25397# Compile-time system search path for libraries
25398sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25399
25400# Run-time system search path for libraries
25401sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25402
25403# Fix the shell variable \$srcfile for the compiler.
25404fix_srcfile_path="$fix_srcfile_path_RC"
25405
25406# Set to yes if exported symbols are required.
25407always_export_symbols=$always_export_symbols_RC
25408
25409# The commands to list exported symbols.
25410export_symbols_cmds=$lt_export_symbols_cmds_RC
25411
25412# The commands to extract the exported symbol list from a shared archive.
25413extract_expsyms_cmds=$lt_extract_expsyms_cmds
25414
25415# Symbols that should not be listed in the preloaded symbols.
25416exclude_expsyms=$lt_exclude_expsyms_RC
25417
25418# Symbols that must always be exported.
25419include_expsyms=$lt_include_expsyms_RC
25420
25421# ### END LIBTOOL TAG CONFIG: $tagname
25422
25423__EOF__
25424
25425
25426else
25427  # If there is no Makefile yet, we rely on a make rule to execute
25428  # `config.status --recheck' to rerun these tests and create the
25429  # libtool script then.
25430  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25431  if test -f "$ltmain_in"; then
25432    test -f Makefile && make "$ltmain"
25433  fi
25434fi
25435
25436
25437ac_ext=c
25438ac_cpp='$CPP $CPPFLAGS'
25439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25441ac_compiler_gnu=$ac_cv_c_compiler_gnu
25442
25443CC="$lt_save_CC"
25444
25445	;;
25446
25447      *)
25448	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25449echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25450   { (exit 1); exit 1; }; }
25451	;;
25452      esac
25453
25454      # Append the new tag name to the list of available tags.
25455      if test -n "$tagname" ; then
25456      available_tags="$available_tags $tagname"
25457    fi
25458    fi
25459  done
25460  IFS="$lt_save_ifs"
25461
25462  # Now substitute the updated list of available tags.
25463  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25464    mv "${ofile}T" "$ofile"
25465    chmod +x "$ofile"
25466  else
25467    rm -f "${ofile}T"
25468    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25469echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25470   { (exit 1); exit 1; }; }
25471  fi
25472fi
25473
25474
25475
25476# This can be used to rebuild libtool when needed
25477LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25478
25479# Always use our own libtool.
25480LIBTOOL='$(SHELL) $(top_builddir)/libtool'
25481
25482# Prevent multiple expansion
25483
25484
25485
25486
25487
25488
25489
25490
25491
25492
25493
25494
25495
25496
25497
25498
25499
25500
25501
25502
25503
25504
25505
25506
25507
25508ac_header_dirent=no
25509for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25510  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25511echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25512echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25513if eval "test \"\${$as_ac_Header+set}\" = set"; then
25514  echo $ECHO_N "(cached) $ECHO_C" >&6
25515else
25516  cat >conftest.$ac_ext <<_ACEOF
25517/* confdefs.h.  */
25518_ACEOF
25519cat confdefs.h >>conftest.$ac_ext
25520cat >>conftest.$ac_ext <<_ACEOF
25521/* end confdefs.h.  */
25522#include <sys/types.h>
25523#include <$ac_hdr>
25524
25525int
25526main ()
25527{
25528if ((DIR *) 0)
25529return 0;
25530  ;
25531  return 0;
25532}
25533_ACEOF
25534rm -f conftest.$ac_objext
25535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25536  (eval $ac_compile) 2>conftest.er1
25537  ac_status=$?
25538  grep -v '^ *+' conftest.er1 >conftest.err
25539  rm -f conftest.er1
25540  cat conftest.err >&5
25541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542  (exit $ac_status); } &&
25543	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25545  (eval $ac_try) 2>&5
25546  ac_status=$?
25547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548  (exit $ac_status); }; } &&
25549	 { ac_try='test -s conftest.$ac_objext'
25550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25551  (eval $ac_try) 2>&5
25552  ac_status=$?
25553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554  (exit $ac_status); }; }; then
25555  eval "$as_ac_Header=yes"
25556else
25557  echo "$as_me: failed program was:" >&5
25558sed 's/^/| /' conftest.$ac_ext >&5
25559
25560eval "$as_ac_Header=no"
25561fi
25562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25563fi
25564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25565echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25566if test `eval echo '${'$as_ac_Header'}'` = yes; then
25567  cat >>confdefs.h <<_ACEOF
25568#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25569_ACEOF
25570
25571ac_header_dirent=$ac_hdr; break
25572fi
25573
25574done
25575# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25576if test $ac_header_dirent = dirent.h; then
25577  echo "$as_me:$LINENO: checking for library containing opendir" >&5
25578echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25579if test "${ac_cv_search_opendir+set}" = set; then
25580  echo $ECHO_N "(cached) $ECHO_C" >&6
25581else
25582  ac_func_search_save_LIBS=$LIBS
25583ac_cv_search_opendir=no
25584cat >conftest.$ac_ext <<_ACEOF
25585/* confdefs.h.  */
25586_ACEOF
25587cat confdefs.h >>conftest.$ac_ext
25588cat >>conftest.$ac_ext <<_ACEOF
25589/* end confdefs.h.  */
25590
25591/* Override any gcc2 internal prototype to avoid an error.  */
25592#ifdef __cplusplus
25593extern "C"
25594#endif
25595/* We use char because int might match the return type of a gcc2
25596   builtin and then its argument prototype would still apply.  */
25597char opendir ();
25598int
25599main ()
25600{
25601opendir ();
25602  ;
25603  return 0;
25604}
25605_ACEOF
25606rm -f conftest.$ac_objext conftest$ac_exeext
25607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25608  (eval $ac_link) 2>conftest.er1
25609  ac_status=$?
25610  grep -v '^ *+' conftest.er1 >conftest.err
25611  rm -f conftest.er1
25612  cat conftest.err >&5
25613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614  (exit $ac_status); } &&
25615	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25617  (eval $ac_try) 2>&5
25618  ac_status=$?
25619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620  (exit $ac_status); }; } &&
25621	 { ac_try='test -s conftest$ac_exeext'
25622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25623  (eval $ac_try) 2>&5
25624  ac_status=$?
25625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626  (exit $ac_status); }; }; then
25627  ac_cv_search_opendir="none required"
25628else
25629  echo "$as_me: failed program was:" >&5
25630sed 's/^/| /' conftest.$ac_ext >&5
25631
25632fi
25633rm -f conftest.err conftest.$ac_objext \
25634      conftest$ac_exeext conftest.$ac_ext
25635if test "$ac_cv_search_opendir" = no; then
25636  for ac_lib in dir; do
25637    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25638    cat >conftest.$ac_ext <<_ACEOF
25639/* confdefs.h.  */
25640_ACEOF
25641cat confdefs.h >>conftest.$ac_ext
25642cat >>conftest.$ac_ext <<_ACEOF
25643/* end confdefs.h.  */
25644
25645/* Override any gcc2 internal prototype to avoid an error.  */
25646#ifdef __cplusplus
25647extern "C"
25648#endif
25649/* We use char because int might match the return type of a gcc2
25650   builtin and then its argument prototype would still apply.  */
25651char opendir ();
25652int
25653main ()
25654{
25655opendir ();
25656  ;
25657  return 0;
25658}
25659_ACEOF
25660rm -f conftest.$ac_objext conftest$ac_exeext
25661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25662  (eval $ac_link) 2>conftest.er1
25663  ac_status=$?
25664  grep -v '^ *+' conftest.er1 >conftest.err
25665  rm -f conftest.er1
25666  cat conftest.err >&5
25667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668  (exit $ac_status); } &&
25669	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25671  (eval $ac_try) 2>&5
25672  ac_status=$?
25673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674  (exit $ac_status); }; } &&
25675	 { ac_try='test -s conftest$ac_exeext'
25676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25677  (eval $ac_try) 2>&5
25678  ac_status=$?
25679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680  (exit $ac_status); }; }; then
25681  ac_cv_search_opendir="-l$ac_lib"
25682break
25683else
25684  echo "$as_me: failed program was:" >&5
25685sed 's/^/| /' conftest.$ac_ext >&5
25686
25687fi
25688rm -f conftest.err conftest.$ac_objext \
25689      conftest$ac_exeext conftest.$ac_ext
25690  done
25691fi
25692LIBS=$ac_func_search_save_LIBS
25693fi
25694echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25695echo "${ECHO_T}$ac_cv_search_opendir" >&6
25696if test "$ac_cv_search_opendir" != no; then
25697  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25698
25699fi
25700
25701else
25702  echo "$as_me:$LINENO: checking for library containing opendir" >&5
25703echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25704if test "${ac_cv_search_opendir+set}" = set; then
25705  echo $ECHO_N "(cached) $ECHO_C" >&6
25706else
25707  ac_func_search_save_LIBS=$LIBS
25708ac_cv_search_opendir=no
25709cat >conftest.$ac_ext <<_ACEOF
25710/* confdefs.h.  */
25711_ACEOF
25712cat confdefs.h >>conftest.$ac_ext
25713cat >>conftest.$ac_ext <<_ACEOF
25714/* end confdefs.h.  */
25715
25716/* Override any gcc2 internal prototype to avoid an error.  */
25717#ifdef __cplusplus
25718extern "C"
25719#endif
25720/* We use char because int might match the return type of a gcc2
25721   builtin and then its argument prototype would still apply.  */
25722char opendir ();
25723int
25724main ()
25725{
25726opendir ();
25727  ;
25728  return 0;
25729}
25730_ACEOF
25731rm -f conftest.$ac_objext conftest$ac_exeext
25732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25733  (eval $ac_link) 2>conftest.er1
25734  ac_status=$?
25735  grep -v '^ *+' conftest.er1 >conftest.err
25736  rm -f conftest.er1
25737  cat conftest.err >&5
25738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739  (exit $ac_status); } &&
25740	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742  (eval $ac_try) 2>&5
25743  ac_status=$?
25744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745  (exit $ac_status); }; } &&
25746	 { ac_try='test -s conftest$ac_exeext'
25747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25748  (eval $ac_try) 2>&5
25749  ac_status=$?
25750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751  (exit $ac_status); }; }; then
25752  ac_cv_search_opendir="none required"
25753else
25754  echo "$as_me: failed program was:" >&5
25755sed 's/^/| /' conftest.$ac_ext >&5
25756
25757fi
25758rm -f conftest.err conftest.$ac_objext \
25759      conftest$ac_exeext conftest.$ac_ext
25760if test "$ac_cv_search_opendir" = no; then
25761  for ac_lib in x; do
25762    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25763    cat >conftest.$ac_ext <<_ACEOF
25764/* confdefs.h.  */
25765_ACEOF
25766cat confdefs.h >>conftest.$ac_ext
25767cat >>conftest.$ac_ext <<_ACEOF
25768/* end confdefs.h.  */
25769
25770/* Override any gcc2 internal prototype to avoid an error.  */
25771#ifdef __cplusplus
25772extern "C"
25773#endif
25774/* We use char because int might match the return type of a gcc2
25775   builtin and then its argument prototype would still apply.  */
25776char opendir ();
25777int
25778main ()
25779{
25780opendir ();
25781  ;
25782  return 0;
25783}
25784_ACEOF
25785rm -f conftest.$ac_objext conftest$ac_exeext
25786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25787  (eval $ac_link) 2>conftest.er1
25788  ac_status=$?
25789  grep -v '^ *+' conftest.er1 >conftest.err
25790  rm -f conftest.er1
25791  cat conftest.err >&5
25792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793  (exit $ac_status); } &&
25794	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25796  (eval $ac_try) 2>&5
25797  ac_status=$?
25798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25799  (exit $ac_status); }; } &&
25800	 { ac_try='test -s conftest$ac_exeext'
25801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25802  (eval $ac_try) 2>&5
25803  ac_status=$?
25804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25805  (exit $ac_status); }; }; then
25806  ac_cv_search_opendir="-l$ac_lib"
25807break
25808else
25809  echo "$as_me: failed program was:" >&5
25810sed 's/^/| /' conftest.$ac_ext >&5
25811
25812fi
25813rm -f conftest.err conftest.$ac_objext \
25814      conftest$ac_exeext conftest.$ac_ext
25815  done
25816fi
25817LIBS=$ac_func_search_save_LIBS
25818fi
25819echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25820echo "${ECHO_T}$ac_cv_search_opendir" >&6
25821if test "$ac_cv_search_opendir" != no; then
25822  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25823
25824fi
25825
25826fi
25827
25828# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
25829if test "${enable_ltdl_install+set}" = set; then
25830  enableval="$enable_ltdl_install"
25831
25832fi;
25833
25834
25835
25836if test x"${enable_ltdl_install-no}" != xno; then
25837  INSTALL_LTDL_TRUE=
25838  INSTALL_LTDL_FALSE='#'
25839else
25840  INSTALL_LTDL_TRUE='#'
25841  INSTALL_LTDL_FALSE=
25842fi
25843
25844
25845
25846if test x"${enable_ltdl_convenience-no}" != xno; then
25847  CONVENIENCE_LTDL_TRUE=
25848  CONVENIENCE_LTDL_FALSE='#'
25849else
25850  CONVENIENCE_LTDL_TRUE='#'
25851  CONVENIENCE_LTDL_FALSE=
25852fi
25853
25854
25855
25856echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
25857echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
25858if test "${libltdl_cv_shlibext+set}" = set; then
25859  echo $ECHO_N "(cached) $ECHO_C" >&6
25860else
25861
25862module=yes
25863eval libltdl_cv_shlibext=$shrext_cmds
25864
25865fi
25866echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
25867echo "${ECHO_T}$libltdl_cv_shlibext" >&6
25868if test -n "$libltdl_cv_shlibext"; then
25869
25870cat >>confdefs.h <<_ACEOF
25871#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
25872_ACEOF
25873
25874fi
25875
25876
25877echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
25878echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
25879if test "${libltdl_cv_shlibpath_var+set}" = set; then
25880  echo $ECHO_N "(cached) $ECHO_C" >&6
25881else
25882  libltdl_cv_shlibpath_var="$shlibpath_var"
25883fi
25884echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
25885echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
25886if test -n "$libltdl_cv_shlibpath_var"; then
25887
25888cat >>confdefs.h <<_ACEOF
25889#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
25890_ACEOF
25891
25892fi
25893
25894
25895echo "$as_me:$LINENO: checking for the default library search path" >&5
25896echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
25897if test "${libltdl_cv_sys_search_path+set}" = set; then
25898  echo $ECHO_N "(cached) $ECHO_C" >&6
25899else
25900  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
25901fi
25902echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
25903echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
25904if test -n "$libltdl_cv_sys_search_path"; then
25905  sys_search_path=
25906  for dir in $libltdl_cv_sys_search_path; do
25907    if test -z "$sys_search_path"; then
25908      sys_search_path="$dir"
25909    else
25910      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
25911    fi
25912  done
25913
25914cat >>confdefs.h <<_ACEOF
25915#define LTDL_SYSSEARCHPATH "$sys_search_path"
25916_ACEOF
25917
25918fi
25919
25920echo "$as_me:$LINENO: checking for objdir" >&5
25921echo $ECHO_N "checking for objdir... $ECHO_C" >&6
25922if test "${libltdl_cv_objdir+set}" = set; then
25923  echo $ECHO_N "(cached) $ECHO_C" >&6
25924else
25925  libltdl_cv_objdir="$objdir"
25926  if test -n "$objdir"; then
25927    :
25928  else
25929    rm -f .libs 2>/dev/null
25930    mkdir .libs 2>/dev/null
25931    if test -d .libs; then
25932      libltdl_cv_objdir=.libs
25933    else
25934      # MS-DOS does not allow filenames that begin with a dot.
25935      libltdl_cv_objdir=_libs
25936    fi
25937  rmdir .libs 2>/dev/null
25938  fi
25939
25940fi
25941echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
25942echo "${ECHO_T}$libltdl_cv_objdir" >&6
25943
25944cat >>confdefs.h <<_ACEOF
25945#define LTDL_OBJDIR "$libltdl_cv_objdir/"
25946_ACEOF
25947
25948
25949
25950echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
25951echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
25952if test "${libltdl_cv_preloaded_symbols+set}" = set; then
25953  echo $ECHO_N "(cached) $ECHO_C" >&6
25954else
25955  if test -n "$lt_cv_sys_global_symbol_pipe"; then
25956    libltdl_cv_preloaded_symbols=yes
25957  else
25958    libltdl_cv_preloaded_symbols=no
25959  fi
25960
25961fi
25962echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
25963echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
25964if test x"$libltdl_cv_preloaded_symbols" = xyes; then
25965
25966cat >>confdefs.h <<\_ACEOF
25967#define HAVE_PRELOADED_SYMBOLS 1
25968_ACEOF
25969
25970fi
25971
25972LIBADD_DL=
25973
25974ac_ext=c
25975ac_cpp='$CPP $CPPFLAGS'
25976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25978ac_compiler_gnu=$ac_cv_c_compiler_gnu
25979
25980
25981echo "$as_me:$LINENO: checking for shl_load" >&5
25982echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
25983if test "${ac_cv_func_shl_load+set}" = set; then
25984  echo $ECHO_N "(cached) $ECHO_C" >&6
25985else
25986  cat >conftest.$ac_ext <<_ACEOF
25987/* confdefs.h.  */
25988_ACEOF
25989cat confdefs.h >>conftest.$ac_ext
25990cat >>conftest.$ac_ext <<_ACEOF
25991/* end confdefs.h.  */
25992/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
25993   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25994#define shl_load innocuous_shl_load
25995
25996/* System header to define __stub macros and hopefully few prototypes,
25997    which can conflict with char shl_load (); below.
25998    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25999    <limits.h> exists even on freestanding compilers.  */
26000
26001#ifdef __STDC__
26002# include <limits.h>
26003#else
26004# include <assert.h>
26005#endif
26006
26007#undef shl_load
26008
26009/* Override any gcc2 internal prototype to avoid an error.  */
26010#ifdef __cplusplus
26011extern "C"
26012{
26013#endif
26014/* We use char because int might match the return type of a gcc2
26015   builtin and then its argument prototype would still apply.  */
26016char shl_load ();
26017/* The GNU C library defines this for functions which it implements
26018    to always fail with ENOSYS.  Some functions are actually named
26019    something starting with __ and the normal name is an alias.  */
26020#if defined (__stub_shl_load) || defined (__stub___shl_load)
26021choke me
26022#else
26023char (*f) () = shl_load;
26024#endif
26025#ifdef __cplusplus
26026}
26027#endif
26028
26029int
26030main ()
26031{
26032return f != shl_load;
26033  ;
26034  return 0;
26035}
26036_ACEOF
26037rm -f conftest.$ac_objext conftest$ac_exeext
26038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26039  (eval $ac_link) 2>conftest.er1
26040  ac_status=$?
26041  grep -v '^ *+' conftest.er1 >conftest.err
26042  rm -f conftest.er1
26043  cat conftest.err >&5
26044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045  (exit $ac_status); } &&
26046	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26048  (eval $ac_try) 2>&5
26049  ac_status=$?
26050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051  (exit $ac_status); }; } &&
26052	 { ac_try='test -s conftest$ac_exeext'
26053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26054  (eval $ac_try) 2>&5
26055  ac_status=$?
26056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057  (exit $ac_status); }; }; then
26058  ac_cv_func_shl_load=yes
26059else
26060  echo "$as_me: failed program was:" >&5
26061sed 's/^/| /' conftest.$ac_ext >&5
26062
26063ac_cv_func_shl_load=no
26064fi
26065rm -f conftest.err conftest.$ac_objext \
26066      conftest$ac_exeext conftest.$ac_ext
26067fi
26068echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
26069echo "${ECHO_T}$ac_cv_func_shl_load" >&6
26070if test $ac_cv_func_shl_load = yes; then
26071
26072cat >>confdefs.h <<\_ACEOF
26073#define HAVE_SHL_LOAD 1
26074_ACEOF
26075
26076else
26077  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
26078echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
26079if test "${ac_cv_lib_dld_shl_load+set}" = set; then
26080  echo $ECHO_N "(cached) $ECHO_C" >&6
26081else
26082  ac_check_lib_save_LIBS=$LIBS
26083LIBS="-ldld  $LIBS"
26084cat >conftest.$ac_ext <<_ACEOF
26085/* confdefs.h.  */
26086_ACEOF
26087cat confdefs.h >>conftest.$ac_ext
26088cat >>conftest.$ac_ext <<_ACEOF
26089/* end confdefs.h.  */
26090
26091/* Override any gcc2 internal prototype to avoid an error.  */
26092#ifdef __cplusplus
26093extern "C"
26094#endif
26095/* We use char because int might match the return type of a gcc2
26096   builtin and then its argument prototype would still apply.  */
26097char shl_load ();
26098int
26099main ()
26100{
26101shl_load ();
26102  ;
26103  return 0;
26104}
26105_ACEOF
26106rm -f conftest.$ac_objext conftest$ac_exeext
26107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26108  (eval $ac_link) 2>conftest.er1
26109  ac_status=$?
26110  grep -v '^ *+' conftest.er1 >conftest.err
26111  rm -f conftest.er1
26112  cat conftest.err >&5
26113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114  (exit $ac_status); } &&
26115	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26117  (eval $ac_try) 2>&5
26118  ac_status=$?
26119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120  (exit $ac_status); }; } &&
26121	 { ac_try='test -s conftest$ac_exeext'
26122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26123  (eval $ac_try) 2>&5
26124  ac_status=$?
26125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126  (exit $ac_status); }; }; then
26127  ac_cv_lib_dld_shl_load=yes
26128else
26129  echo "$as_me: failed program was:" >&5
26130sed 's/^/| /' conftest.$ac_ext >&5
26131
26132ac_cv_lib_dld_shl_load=no
26133fi
26134rm -f conftest.err conftest.$ac_objext \
26135      conftest$ac_exeext conftest.$ac_ext
26136LIBS=$ac_check_lib_save_LIBS
26137fi
26138echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
26139echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
26140if test $ac_cv_lib_dld_shl_load = yes; then
26141
26142cat >>confdefs.h <<\_ACEOF
26143#define HAVE_SHL_LOAD 1
26144_ACEOF
26145
26146	LIBADD_DL="$LIBADD_DL -ldld"
26147else
26148  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
26149echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
26150if test "${ac_cv_lib_dl_dlopen+set}" = set; then
26151  echo $ECHO_N "(cached) $ECHO_C" >&6
26152else
26153  ac_check_lib_save_LIBS=$LIBS
26154LIBS="-ldl  $LIBS"
26155cat >conftest.$ac_ext <<_ACEOF
26156/* confdefs.h.  */
26157_ACEOF
26158cat confdefs.h >>conftest.$ac_ext
26159cat >>conftest.$ac_ext <<_ACEOF
26160/* end confdefs.h.  */
26161
26162/* Override any gcc2 internal prototype to avoid an error.  */
26163#ifdef __cplusplus
26164extern "C"
26165#endif
26166/* We use char because int might match the return type of a gcc2
26167   builtin and then its argument prototype would still apply.  */
26168char dlopen ();
26169int
26170main ()
26171{
26172dlopen ();
26173  ;
26174  return 0;
26175}
26176_ACEOF
26177rm -f conftest.$ac_objext conftest$ac_exeext
26178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26179  (eval $ac_link) 2>conftest.er1
26180  ac_status=$?
26181  grep -v '^ *+' conftest.er1 >conftest.err
26182  rm -f conftest.er1
26183  cat conftest.err >&5
26184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185  (exit $ac_status); } &&
26186	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26188  (eval $ac_try) 2>&5
26189  ac_status=$?
26190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191  (exit $ac_status); }; } &&
26192	 { ac_try='test -s conftest$ac_exeext'
26193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26194  (eval $ac_try) 2>&5
26195  ac_status=$?
26196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197  (exit $ac_status); }; }; then
26198  ac_cv_lib_dl_dlopen=yes
26199else
26200  echo "$as_me: failed program was:" >&5
26201sed 's/^/| /' conftest.$ac_ext >&5
26202
26203ac_cv_lib_dl_dlopen=no
26204fi
26205rm -f conftest.err conftest.$ac_objext \
26206      conftest$ac_exeext conftest.$ac_ext
26207LIBS=$ac_check_lib_save_LIBS
26208fi
26209echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
26210echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
26211if test $ac_cv_lib_dl_dlopen = yes; then
26212
26213cat >>confdefs.h <<\_ACEOF
26214#define HAVE_LIBDL 1
26215_ACEOF
26216
26217	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
26218else
26219  cat >conftest.$ac_ext <<_ACEOF
26220/* confdefs.h.  */
26221_ACEOF
26222cat confdefs.h >>conftest.$ac_ext
26223cat >>conftest.$ac_ext <<_ACEOF
26224/* end confdefs.h.  */
26225#if HAVE_DLFCN_H
26226#  include <dlfcn.h>
26227#endif
26228
26229int
26230main ()
26231{
26232dlopen(0, 0);
26233  ;
26234  return 0;
26235}
26236_ACEOF
26237rm -f conftest.$ac_objext conftest$ac_exeext
26238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26239  (eval $ac_link) 2>conftest.er1
26240  ac_status=$?
26241  grep -v '^ *+' conftest.er1 >conftest.err
26242  rm -f conftest.er1
26243  cat conftest.err >&5
26244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245  (exit $ac_status); } &&
26246	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26248  (eval $ac_try) 2>&5
26249  ac_status=$?
26250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251  (exit $ac_status); }; } &&
26252	 { ac_try='test -s conftest$ac_exeext'
26253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26254  (eval $ac_try) 2>&5
26255  ac_status=$?
26256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257  (exit $ac_status); }; }; then
26258
26259cat >>confdefs.h <<\_ACEOF
26260#define HAVE_LIBDL 1
26261_ACEOF
26262 libltdl_cv_func_dlopen="yes"
26263else
26264  echo "$as_me: failed program was:" >&5
26265sed 's/^/| /' conftest.$ac_ext >&5
26266
26267echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
26268echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
26269if test "${ac_cv_lib_svld_dlopen+set}" = set; then
26270  echo $ECHO_N "(cached) $ECHO_C" >&6
26271else
26272  ac_check_lib_save_LIBS=$LIBS
26273LIBS="-lsvld  $LIBS"
26274cat >conftest.$ac_ext <<_ACEOF
26275/* confdefs.h.  */
26276_ACEOF
26277cat confdefs.h >>conftest.$ac_ext
26278cat >>conftest.$ac_ext <<_ACEOF
26279/* end confdefs.h.  */
26280
26281/* Override any gcc2 internal prototype to avoid an error.  */
26282#ifdef __cplusplus
26283extern "C"
26284#endif
26285/* We use char because int might match the return type of a gcc2
26286   builtin and then its argument prototype would still apply.  */
26287char dlopen ();
26288int
26289main ()
26290{
26291dlopen ();
26292  ;
26293  return 0;
26294}
26295_ACEOF
26296rm -f conftest.$ac_objext conftest$ac_exeext
26297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26298  (eval $ac_link) 2>conftest.er1
26299  ac_status=$?
26300  grep -v '^ *+' conftest.er1 >conftest.err
26301  rm -f conftest.er1
26302  cat conftest.err >&5
26303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26304  (exit $ac_status); } &&
26305	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26307  (eval $ac_try) 2>&5
26308  ac_status=$?
26309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310  (exit $ac_status); }; } &&
26311	 { ac_try='test -s conftest$ac_exeext'
26312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26313  (eval $ac_try) 2>&5
26314  ac_status=$?
26315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316  (exit $ac_status); }; }; then
26317  ac_cv_lib_svld_dlopen=yes
26318else
26319  echo "$as_me: failed program was:" >&5
26320sed 's/^/| /' conftest.$ac_ext >&5
26321
26322ac_cv_lib_svld_dlopen=no
26323fi
26324rm -f conftest.err conftest.$ac_objext \
26325      conftest$ac_exeext conftest.$ac_ext
26326LIBS=$ac_check_lib_save_LIBS
26327fi
26328echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
26329echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
26330if test $ac_cv_lib_svld_dlopen = yes; then
26331
26332cat >>confdefs.h <<\_ACEOF
26333#define HAVE_LIBDL 1
26334_ACEOF
26335
26336	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
26337else
26338  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
26339echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
26340if test "${ac_cv_lib_dld_dld_link+set}" = set; then
26341  echo $ECHO_N "(cached) $ECHO_C" >&6
26342else
26343  ac_check_lib_save_LIBS=$LIBS
26344LIBS="-ldld  $LIBS"
26345cat >conftest.$ac_ext <<_ACEOF
26346/* confdefs.h.  */
26347_ACEOF
26348cat confdefs.h >>conftest.$ac_ext
26349cat >>conftest.$ac_ext <<_ACEOF
26350/* end confdefs.h.  */
26351
26352/* Override any gcc2 internal prototype to avoid an error.  */
26353#ifdef __cplusplus
26354extern "C"
26355#endif
26356/* We use char because int might match the return type of a gcc2
26357   builtin and then its argument prototype would still apply.  */
26358char dld_link ();
26359int
26360main ()
26361{
26362dld_link ();
26363  ;
26364  return 0;
26365}
26366_ACEOF
26367rm -f conftest.$ac_objext conftest$ac_exeext
26368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26369  (eval $ac_link) 2>conftest.er1
26370  ac_status=$?
26371  grep -v '^ *+' conftest.er1 >conftest.err
26372  rm -f conftest.er1
26373  cat conftest.err >&5
26374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26375  (exit $ac_status); } &&
26376	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26378  (eval $ac_try) 2>&5
26379  ac_status=$?
26380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381  (exit $ac_status); }; } &&
26382	 { ac_try='test -s conftest$ac_exeext'
26383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26384  (eval $ac_try) 2>&5
26385  ac_status=$?
26386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26387  (exit $ac_status); }; }; then
26388  ac_cv_lib_dld_dld_link=yes
26389else
26390  echo "$as_me: failed program was:" >&5
26391sed 's/^/| /' conftest.$ac_ext >&5
26392
26393ac_cv_lib_dld_dld_link=no
26394fi
26395rm -f conftest.err conftest.$ac_objext \
26396      conftest$ac_exeext conftest.$ac_ext
26397LIBS=$ac_check_lib_save_LIBS
26398fi
26399echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
26400echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
26401if test $ac_cv_lib_dld_dld_link = yes; then
26402
26403cat >>confdefs.h <<\_ACEOF
26404#define HAVE_DLD 1
26405_ACEOF
26406
26407	 	LIBADD_DL="$LIBADD_DL -ldld"
26408else
26409  echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
26410echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
26411if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
26412  echo $ECHO_N "(cached) $ECHO_C" >&6
26413else
26414  cat >conftest.$ac_ext <<_ACEOF
26415/* confdefs.h.  */
26416_ACEOF
26417cat confdefs.h >>conftest.$ac_ext
26418cat >>conftest.$ac_ext <<_ACEOF
26419/* end confdefs.h.  */
26420/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
26421   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26422#define _dyld_func_lookup innocuous__dyld_func_lookup
26423
26424/* System header to define __stub macros and hopefully few prototypes,
26425    which can conflict with char _dyld_func_lookup (); below.
26426    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26427    <limits.h> exists even on freestanding compilers.  */
26428
26429#ifdef __STDC__
26430# include <limits.h>
26431#else
26432# include <assert.h>
26433#endif
26434
26435#undef _dyld_func_lookup
26436
26437/* Override any gcc2 internal prototype to avoid an error.  */
26438#ifdef __cplusplus
26439extern "C"
26440{
26441#endif
26442/* We use char because int might match the return type of a gcc2
26443   builtin and then its argument prototype would still apply.  */
26444char _dyld_func_lookup ();
26445/* The GNU C library defines this for functions which it implements
26446    to always fail with ENOSYS.  Some functions are actually named
26447    something starting with __ and the normal name is an alias.  */
26448#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
26449choke me
26450#else
26451char (*f) () = _dyld_func_lookup;
26452#endif
26453#ifdef __cplusplus
26454}
26455#endif
26456
26457int
26458main ()
26459{
26460return f != _dyld_func_lookup;
26461  ;
26462  return 0;
26463}
26464_ACEOF
26465rm -f conftest.$ac_objext conftest$ac_exeext
26466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26467  (eval $ac_link) 2>conftest.er1
26468  ac_status=$?
26469  grep -v '^ *+' conftest.er1 >conftest.err
26470  rm -f conftest.er1
26471  cat conftest.err >&5
26472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473  (exit $ac_status); } &&
26474	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26476  (eval $ac_try) 2>&5
26477  ac_status=$?
26478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479  (exit $ac_status); }; } &&
26480	 { ac_try='test -s conftest$ac_exeext'
26481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26482  (eval $ac_try) 2>&5
26483  ac_status=$?
26484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485  (exit $ac_status); }; }; then
26486  ac_cv_func__dyld_func_lookup=yes
26487else
26488  echo "$as_me: failed program was:" >&5
26489sed 's/^/| /' conftest.$ac_ext >&5
26490
26491ac_cv_func__dyld_func_lookup=no
26492fi
26493rm -f conftest.err conftest.$ac_objext \
26494      conftest$ac_exeext conftest.$ac_ext
26495fi
26496echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
26497echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
26498if test $ac_cv_func__dyld_func_lookup = yes; then
26499
26500cat >>confdefs.h <<\_ACEOF
26501#define HAVE_DYLD 1
26502_ACEOF
26503
26504fi
26505
26506
26507fi
26508
26509
26510fi
26511
26512
26513fi
26514rm -f conftest.err conftest.$ac_objext \
26515      conftest$ac_exeext conftest.$ac_ext
26516
26517fi
26518
26519
26520fi
26521
26522
26523fi
26524
26525
26526if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
26527then
26528  lt_save_LIBS="$LIBS"
26529  LIBS="$LIBS $LIBADD_DL"
26530
26531for ac_func in dlerror
26532do
26533as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26534echo "$as_me:$LINENO: checking for $ac_func" >&5
26535echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26536if eval "test \"\${$as_ac_var+set}\" = set"; then
26537  echo $ECHO_N "(cached) $ECHO_C" >&6
26538else
26539  cat >conftest.$ac_ext <<_ACEOF
26540/* confdefs.h.  */
26541_ACEOF
26542cat confdefs.h >>conftest.$ac_ext
26543cat >>conftest.$ac_ext <<_ACEOF
26544/* end confdefs.h.  */
26545/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26546   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26547#define $ac_func innocuous_$ac_func
26548
26549/* System header to define __stub macros and hopefully few prototypes,
26550    which can conflict with char $ac_func (); below.
26551    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26552    <limits.h> exists even on freestanding compilers.  */
26553
26554#ifdef __STDC__
26555# include <limits.h>
26556#else
26557# include <assert.h>
26558#endif
26559
26560#undef $ac_func
26561
26562/* Override any gcc2 internal prototype to avoid an error.  */
26563#ifdef __cplusplus
26564extern "C"
26565{
26566#endif
26567/* We use char because int might match the return type of a gcc2
26568   builtin and then its argument prototype would still apply.  */
26569char $ac_func ();
26570/* The GNU C library defines this for functions which it implements
26571    to always fail with ENOSYS.  Some functions are actually named
26572    something starting with __ and the normal name is an alias.  */
26573#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26574choke me
26575#else
26576char (*f) () = $ac_func;
26577#endif
26578#ifdef __cplusplus
26579}
26580#endif
26581
26582int
26583main ()
26584{
26585return f != $ac_func;
26586  ;
26587  return 0;
26588}
26589_ACEOF
26590rm -f conftest.$ac_objext conftest$ac_exeext
26591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26592  (eval $ac_link) 2>conftest.er1
26593  ac_status=$?
26594  grep -v '^ *+' conftest.er1 >conftest.err
26595  rm -f conftest.er1
26596  cat conftest.err >&5
26597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598  (exit $ac_status); } &&
26599	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26601  (eval $ac_try) 2>&5
26602  ac_status=$?
26603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604  (exit $ac_status); }; } &&
26605	 { ac_try='test -s conftest$ac_exeext'
26606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26607  (eval $ac_try) 2>&5
26608  ac_status=$?
26609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26610  (exit $ac_status); }; }; then
26611  eval "$as_ac_var=yes"
26612else
26613  echo "$as_me: failed program was:" >&5
26614sed 's/^/| /' conftest.$ac_ext >&5
26615
26616eval "$as_ac_var=no"
26617fi
26618rm -f conftest.err conftest.$ac_objext \
26619      conftest$ac_exeext conftest.$ac_ext
26620fi
26621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26622echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26623if test `eval echo '${'$as_ac_var'}'` = yes; then
26624  cat >>confdefs.h <<_ACEOF
26625#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26626_ACEOF
26627
26628fi
26629done
26630
26631  LIBS="$lt_save_LIBS"
26632fi
26633ac_ext=c
26634ac_cpp='$CPP $CPPFLAGS'
26635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26637ac_compiler_gnu=$ac_cv_c_compiler_gnu
26638
26639
26640
26641echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
26642echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
26643if test "${ac_cv_sys_symbol_underscore+set}" = set; then
26644  echo $ECHO_N "(cached) $ECHO_C" >&6
26645else
26646  ac_cv_sys_symbol_underscore=no
26647  cat > conftest.$ac_ext <<EOF
26648void nm_test_func(){}
26649int main(){nm_test_func;return 0;}
26650EOF
26651  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26652  (eval $ac_compile) 2>&5
26653  ac_status=$?
26654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655  (exit $ac_status); }; then
26656    # Now try to grab the symbols.
26657    ac_nlist=conftest.nm
26658    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
26659  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
26660  ac_status=$?
26661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26662  (exit $ac_status); } && test -s "$ac_nlist"; then
26663      # See whether the symbols have a leading underscore.
26664      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
26665        ac_cv_sys_symbol_underscore=yes
26666      else
26667        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
26668	  :
26669        else
26670	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
26671        fi
26672      fi
26673    else
26674      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
26675    fi
26676  else
26677    echo "configure: failed program was:" >&5
26678    cat conftest.c >&5
26679  fi
26680  rm -rf conftest*
26681
26682fi
26683echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
26684echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
26685
26686
26687if test x"$ac_cv_sys_symbol_underscore" = xyes; then
26688  if test x"$libltdl_cv_func_dlopen" = xyes ||
26689     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
26690	echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
26691echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
26692if test "${libltdl_cv_need_uscore+set}" = set; then
26693  echo $ECHO_N "(cached) $ECHO_C" >&6
26694else
26695  libltdl_cv_need_uscore=unknown
26696          save_LIBS="$LIBS"
26697          LIBS="$LIBS $LIBADD_DL"
26698	  if test "$cross_compiling" = yes; then :
26699  libltdl_cv_need_uscore=cross
26700else
26701  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
26702  lt_status=$lt_dlunknown
26703  cat > conftest.$ac_ext <<EOF
26704#line 26704 "configure"
26705#include "confdefs.h"
26706
26707#if HAVE_DLFCN_H
26708#include <dlfcn.h>
26709#endif
26710
26711#include <stdio.h>
26712
26713#ifdef RTLD_GLOBAL
26714#  define LT_DLGLOBAL		RTLD_GLOBAL
26715#else
26716#  ifdef DL_GLOBAL
26717#    define LT_DLGLOBAL		DL_GLOBAL
26718#  else
26719#    define LT_DLGLOBAL		0
26720#  endif
26721#endif
26722
26723/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
26724   find out it does not work in some platform. */
26725#ifndef LT_DLLAZY_OR_NOW
26726#  ifdef RTLD_LAZY
26727#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
26728#  else
26729#    ifdef DL_LAZY
26730#      define LT_DLLAZY_OR_NOW		DL_LAZY
26731#    else
26732#      ifdef RTLD_NOW
26733#        define LT_DLLAZY_OR_NOW	RTLD_NOW
26734#      else
26735#        ifdef DL_NOW
26736#          define LT_DLLAZY_OR_NOW	DL_NOW
26737#        else
26738#          define LT_DLLAZY_OR_NOW	0
26739#        endif
26740#      endif
26741#    endif
26742#  endif
26743#endif
26744
26745#ifdef __cplusplus
26746extern "C" void exit (int);
26747#endif
26748
26749void fnord() { int i=42;}
26750int main ()
26751{
26752  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
26753  int status = $lt_dlunknown;
26754
26755  if (self)
26756    {
26757      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
26758      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
26759      /* dlclose (self); */
26760    }
26761
26762    exit (status);
26763}
26764EOF
26765  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26766  (eval $ac_link) 2>&5
26767  ac_status=$?
26768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
26770    (./conftest; exit; ) 2>/dev/null
26771    lt_status=$?
26772    case x$lt_status in
26773      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
26774      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
26775      x$lt_unknown|x*)  ;;
26776    esac
26777  else :
26778    # compilation failed
26779
26780  fi
26781fi
26782rm -fr conftest*
26783
26784	  LIBS="$save_LIBS"
26785
26786fi
26787echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
26788echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
26789  fi
26790fi
26791
26792if test x"$libltdl_cv_need_uscore" = xyes; then
26793
26794cat >>confdefs.h <<\_ACEOF
26795#define NEED_USCORE 1
26796_ACEOF
26797
26798fi
26799
26800
26801echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
26802echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
26803if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
26804  echo $ECHO_N "(cached) $ECHO_C" >&6
26805else
26806  # PORTME does your system automatically load deplibs for dlopen?
26807  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
26808  # For now, we just catch OSes we know something about -- in the
26809  # future, we'll try test this programmatically.
26810  libltdl_cv_sys_dlopen_deplibs=unknown
26811  case "$host_os" in
26812  aix3*|aix4.1.*|aix4.2.*)
26813    # Unknown whether this is true for these versions of AIX, but
26814    # we want this `case' here to explicitly catch those versions.
26815    libltdl_cv_sys_dlopen_deplibs=unknown
26816    ;;
26817  aix[45]*)
26818    libltdl_cv_sys_dlopen_deplibs=yes
26819    ;;
26820  darwin*)
26821    # Assuming the user has installed a libdl from somewhere, this is true
26822    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
26823    libltdl_cv_sys_dlopen_deplibs=yes
26824    ;;
26825  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
26826    # GNU and its variants, using gnu ld.so (Glibc)
26827    libltdl_cv_sys_dlopen_deplibs=yes
26828    ;;
26829  hpux10*|hpux11*)
26830    libltdl_cv_sys_dlopen_deplibs=yes
26831    ;;
26832  irix[12345]*|irix6.[01]*)
26833    # Catch all versions of IRIX before 6.2, and indicate that we don't
26834    # know how it worked for any of those versions.
26835    libltdl_cv_sys_dlopen_deplibs=unknown
26836    ;;
26837  irix*)
26838    # The case above catches anything before 6.2, and it's known that
26839    # at 6.2 and later dlopen does load deplibs.
26840    libltdl_cv_sys_dlopen_deplibs=yes
26841    ;;
26842  netbsd* | netbsdelf*-gnu)
26843    libltdl_cv_sys_dlopen_deplibs=yes
26844    ;;
26845  openbsd*)
26846    libltdl_cv_sys_dlopen_deplibs=yes
26847    ;;
26848  osf[1234]*)
26849    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
26850    # it did *not* use an RPATH in a shared library to find objects the
26851    # library depends on, so we explictly say `no'.
26852    libltdl_cv_sys_dlopen_deplibs=no
26853    ;;
26854  osf5.0|osf5.0a|osf5.1)
26855    # dlopen *does* load deplibs and with the right loader patch applied
26856    # it even uses RPATH in a shared library to search for shared objects
26857    # that the library depends on, but there's no easy way to know if that
26858    # patch is installed.  Since this is the case, all we can really
26859    # say is unknown -- it depends on the patch being installed.  If
26860    # it is, this changes to `yes'.  Without it, it would be `no'.
26861    libltdl_cv_sys_dlopen_deplibs=unknown
26862    ;;
26863  osf*)
26864    # the two cases above should catch all versions of osf <= 5.1.  Read
26865    # the comments above for what we know about them.
26866    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
26867    # is used to find them so we can finally say `yes'.
26868    libltdl_cv_sys_dlopen_deplibs=yes
26869    ;;
26870  solaris*)
26871    libltdl_cv_sys_dlopen_deplibs=yes
26872    ;;
26873  esac
26874
26875fi
26876echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
26877echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
26878if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
26879
26880cat >>confdefs.h <<\_ACEOF
26881#define LTDL_DLOPEN_DEPLIBS 1
26882_ACEOF
26883
26884fi
26885
26886
26887for ac_header in argz.h
26888do
26889as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26890if eval "test \"\${$as_ac_Header+set}\" = set"; then
26891  echo "$as_me:$LINENO: checking for $ac_header" >&5
26892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26893if eval "test \"\${$as_ac_Header+set}\" = set"; then
26894  echo $ECHO_N "(cached) $ECHO_C" >&6
26895fi
26896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26897echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26898else
26899  # Is the header compilable?
26900echo "$as_me:$LINENO: checking $ac_header usability" >&5
26901echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26902cat >conftest.$ac_ext <<_ACEOF
26903/* confdefs.h.  */
26904_ACEOF
26905cat confdefs.h >>conftest.$ac_ext
26906cat >>conftest.$ac_ext <<_ACEOF
26907/* end confdefs.h.  */
26908$ac_includes_default
26909#include <$ac_header>
26910_ACEOF
26911rm -f conftest.$ac_objext
26912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26913  (eval $ac_compile) 2>conftest.er1
26914  ac_status=$?
26915  grep -v '^ *+' conftest.er1 >conftest.err
26916  rm -f conftest.er1
26917  cat conftest.err >&5
26918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919  (exit $ac_status); } &&
26920	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26922  (eval $ac_try) 2>&5
26923  ac_status=$?
26924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925  (exit $ac_status); }; } &&
26926	 { ac_try='test -s conftest.$ac_objext'
26927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26928  (eval $ac_try) 2>&5
26929  ac_status=$?
26930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931  (exit $ac_status); }; }; then
26932  ac_header_compiler=yes
26933else
26934  echo "$as_me: failed program was:" >&5
26935sed 's/^/| /' conftest.$ac_ext >&5
26936
26937ac_header_compiler=no
26938fi
26939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26940echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26941echo "${ECHO_T}$ac_header_compiler" >&6
26942
26943# Is the header present?
26944echo "$as_me:$LINENO: checking $ac_header presence" >&5
26945echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26946cat >conftest.$ac_ext <<_ACEOF
26947/* confdefs.h.  */
26948_ACEOF
26949cat confdefs.h >>conftest.$ac_ext
26950cat >>conftest.$ac_ext <<_ACEOF
26951/* end confdefs.h.  */
26952#include <$ac_header>
26953_ACEOF
26954if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26955  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26956  ac_status=$?
26957  grep -v '^ *+' conftest.er1 >conftest.err
26958  rm -f conftest.er1
26959  cat conftest.err >&5
26960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961  (exit $ac_status); } >/dev/null; then
26962  if test -s conftest.err; then
26963    ac_cpp_err=$ac_c_preproc_warn_flag
26964    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26965  else
26966    ac_cpp_err=
26967  fi
26968else
26969  ac_cpp_err=yes
26970fi
26971if test -z "$ac_cpp_err"; then
26972  ac_header_preproc=yes
26973else
26974  echo "$as_me: failed program was:" >&5
26975sed 's/^/| /' conftest.$ac_ext >&5
26976
26977  ac_header_preproc=no
26978fi
26979rm -f conftest.err conftest.$ac_ext
26980echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26981echo "${ECHO_T}$ac_header_preproc" >&6
26982
26983# So?  What about this header?
26984case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26985  yes:no: )
26986    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26987echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26988    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26989echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26990    ac_header_preproc=yes
26991    ;;
26992  no:yes:* )
26993    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26994echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26995    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26996echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26997    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26998echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26999    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27000echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27001    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27002echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27003    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27004echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27005    (
27006      cat <<\_ASBOX
27007## ---------------------------------- ##
27008## Report this to poincare@ikezoe.net ##
27009## ---------------------------------- ##
27010_ASBOX
27011    ) |
27012      sed "s/^/$as_me: WARNING:     /" >&2
27013    ;;
27014esac
27015echo "$as_me:$LINENO: checking for $ac_header" >&5
27016echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27017if eval "test \"\${$as_ac_Header+set}\" = set"; then
27018  echo $ECHO_N "(cached) $ECHO_C" >&6
27019else
27020  eval "$as_ac_Header=\$ac_header_preproc"
27021fi
27022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27023echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27024
27025fi
27026if test `eval echo '${'$as_ac_Header'}'` = yes; then
27027  cat >>confdefs.h <<_ACEOF
27028#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27029_ACEOF
27030
27031fi
27032
27033done
27034
27035
27036echo "$as_me:$LINENO: checking for error_t" >&5
27037echo $ECHO_N "checking for error_t... $ECHO_C" >&6
27038if test "${ac_cv_type_error_t+set}" = set; then
27039  echo $ECHO_N "(cached) $ECHO_C" >&6
27040else
27041  cat >conftest.$ac_ext <<_ACEOF
27042/* confdefs.h.  */
27043_ACEOF
27044cat confdefs.h >>conftest.$ac_ext
27045cat >>conftest.$ac_ext <<_ACEOF
27046/* end confdefs.h.  */
27047#if HAVE_ARGZ_H
27048#  include <argz.h>
27049#endif
27050
27051int
27052main ()
27053{
27054if ((error_t *) 0)
27055  return 0;
27056if (sizeof (error_t))
27057  return 0;
27058  ;
27059  return 0;
27060}
27061_ACEOF
27062rm -f conftest.$ac_objext
27063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27064  (eval $ac_compile) 2>conftest.er1
27065  ac_status=$?
27066  grep -v '^ *+' conftest.er1 >conftest.err
27067  rm -f conftest.er1
27068  cat conftest.err >&5
27069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27070  (exit $ac_status); } &&
27071	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27073  (eval $ac_try) 2>&5
27074  ac_status=$?
27075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076  (exit $ac_status); }; } &&
27077	 { ac_try='test -s conftest.$ac_objext'
27078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27079  (eval $ac_try) 2>&5
27080  ac_status=$?
27081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082  (exit $ac_status); }; }; then
27083  ac_cv_type_error_t=yes
27084else
27085  echo "$as_me: failed program was:" >&5
27086sed 's/^/| /' conftest.$ac_ext >&5
27087
27088ac_cv_type_error_t=no
27089fi
27090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27091fi
27092echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
27093echo "${ECHO_T}$ac_cv_type_error_t" >&6
27094if test $ac_cv_type_error_t = yes; then
27095
27096cat >>confdefs.h <<_ACEOF
27097#define HAVE_ERROR_T 1
27098_ACEOF
27099
27100
27101else
27102
27103cat >>confdefs.h <<\_ACEOF
27104#define error_t int
27105_ACEOF
27106
27107fi
27108
27109
27110
27111
27112
27113
27114
27115for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
27116do
27117as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27118echo "$as_me:$LINENO: checking for $ac_func" >&5
27119echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27120if eval "test \"\${$as_ac_var+set}\" = set"; then
27121  echo $ECHO_N "(cached) $ECHO_C" >&6
27122else
27123  cat >conftest.$ac_ext <<_ACEOF
27124/* confdefs.h.  */
27125_ACEOF
27126cat confdefs.h >>conftest.$ac_ext
27127cat >>conftest.$ac_ext <<_ACEOF
27128/* end confdefs.h.  */
27129/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27130   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27131#define $ac_func innocuous_$ac_func
27132
27133/* System header to define __stub macros and hopefully few prototypes,
27134    which can conflict with char $ac_func (); below.
27135    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27136    <limits.h> exists even on freestanding compilers.  */
27137
27138#ifdef __STDC__
27139# include <limits.h>
27140#else
27141# include <assert.h>
27142#endif
27143
27144#undef $ac_func
27145
27146/* Override any gcc2 internal prototype to avoid an error.  */
27147#ifdef __cplusplus
27148extern "C"
27149{
27150#endif
27151/* We use char because int might match the return type of a gcc2
27152   builtin and then its argument prototype would still apply.  */
27153char $ac_func ();
27154/* The GNU C library defines this for functions which it implements
27155    to always fail with ENOSYS.  Some functions are actually named
27156    something starting with __ and the normal name is an alias.  */
27157#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27158choke me
27159#else
27160char (*f) () = $ac_func;
27161#endif
27162#ifdef __cplusplus
27163}
27164#endif
27165
27166int
27167main ()
27168{
27169return f != $ac_func;
27170  ;
27171  return 0;
27172}
27173_ACEOF
27174rm -f conftest.$ac_objext conftest$ac_exeext
27175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27176  (eval $ac_link) 2>conftest.er1
27177  ac_status=$?
27178  grep -v '^ *+' conftest.er1 >conftest.err
27179  rm -f conftest.er1
27180  cat conftest.err >&5
27181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182  (exit $ac_status); } &&
27183	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27185  (eval $ac_try) 2>&5
27186  ac_status=$?
27187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188  (exit $ac_status); }; } &&
27189	 { ac_try='test -s conftest$ac_exeext'
27190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27191  (eval $ac_try) 2>&5
27192  ac_status=$?
27193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194  (exit $ac_status); }; }; then
27195  eval "$as_ac_var=yes"
27196else
27197  echo "$as_me: failed program was:" >&5
27198sed 's/^/| /' conftest.$ac_ext >&5
27199
27200eval "$as_ac_var=no"
27201fi
27202rm -f conftest.err conftest.$ac_objext \
27203      conftest$ac_exeext conftest.$ac_ext
27204fi
27205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27206echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27207if test `eval echo '${'$as_ac_var'}'` = yes; then
27208  cat >>confdefs.h <<_ACEOF
27209#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27210_ACEOF
27211
27212fi
27213done
27214
27215
27216
27217
27218
27219
27220
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236
27237
27238
27239
27240
27241
27242for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
27243		  stdio.h unistd.h
27244do
27245as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27246if eval "test \"\${$as_ac_Header+set}\" = set"; then
27247  echo "$as_me:$LINENO: checking for $ac_header" >&5
27248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27249if eval "test \"\${$as_ac_Header+set}\" = set"; then
27250  echo $ECHO_N "(cached) $ECHO_C" >&6
27251fi
27252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27254else
27255  # Is the header compilable?
27256echo "$as_me:$LINENO: checking $ac_header usability" >&5
27257echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27258cat >conftest.$ac_ext <<_ACEOF
27259/* confdefs.h.  */
27260_ACEOF
27261cat confdefs.h >>conftest.$ac_ext
27262cat >>conftest.$ac_ext <<_ACEOF
27263/* end confdefs.h.  */
27264$ac_includes_default
27265#include <$ac_header>
27266_ACEOF
27267rm -f conftest.$ac_objext
27268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27269  (eval $ac_compile) 2>conftest.er1
27270  ac_status=$?
27271  grep -v '^ *+' conftest.er1 >conftest.err
27272  rm -f conftest.er1
27273  cat conftest.err >&5
27274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275  (exit $ac_status); } &&
27276	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27278  (eval $ac_try) 2>&5
27279  ac_status=$?
27280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281  (exit $ac_status); }; } &&
27282	 { ac_try='test -s conftest.$ac_objext'
27283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27284  (eval $ac_try) 2>&5
27285  ac_status=$?
27286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287  (exit $ac_status); }; }; then
27288  ac_header_compiler=yes
27289else
27290  echo "$as_me: failed program was:" >&5
27291sed 's/^/| /' conftest.$ac_ext >&5
27292
27293ac_header_compiler=no
27294fi
27295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27296echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27297echo "${ECHO_T}$ac_header_compiler" >&6
27298
27299# Is the header present?
27300echo "$as_me:$LINENO: checking $ac_header presence" >&5
27301echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27302cat >conftest.$ac_ext <<_ACEOF
27303/* confdefs.h.  */
27304_ACEOF
27305cat confdefs.h >>conftest.$ac_ext
27306cat >>conftest.$ac_ext <<_ACEOF
27307/* end confdefs.h.  */
27308#include <$ac_header>
27309_ACEOF
27310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27311  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27312  ac_status=$?
27313  grep -v '^ *+' conftest.er1 >conftest.err
27314  rm -f conftest.er1
27315  cat conftest.err >&5
27316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317  (exit $ac_status); } >/dev/null; then
27318  if test -s conftest.err; then
27319    ac_cpp_err=$ac_c_preproc_warn_flag
27320    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27321  else
27322    ac_cpp_err=
27323  fi
27324else
27325  ac_cpp_err=yes
27326fi
27327if test -z "$ac_cpp_err"; then
27328  ac_header_preproc=yes
27329else
27330  echo "$as_me: failed program was:" >&5
27331sed 's/^/| /' conftest.$ac_ext >&5
27332
27333  ac_header_preproc=no
27334fi
27335rm -f conftest.err conftest.$ac_ext
27336echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27337echo "${ECHO_T}$ac_header_preproc" >&6
27338
27339# So?  What about this header?
27340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27341  yes:no: )
27342    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27343echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27344    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27345echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27346    ac_header_preproc=yes
27347    ;;
27348  no:yes:* )
27349    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27350echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27351    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27352echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27353    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27354echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27355    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27356echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27357    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27358echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27359    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27360echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27361    (
27362      cat <<\_ASBOX
27363## ---------------------------------- ##
27364## Report this to poincare@ikezoe.net ##
27365## ---------------------------------- ##
27366_ASBOX
27367    ) |
27368      sed "s/^/$as_me: WARNING:     /" >&2
27369    ;;
27370esac
27371echo "$as_me:$LINENO: checking for $ac_header" >&5
27372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27373if eval "test \"\${$as_ac_Header+set}\" = set"; then
27374  echo $ECHO_N "(cached) $ECHO_C" >&6
27375else
27376  eval "$as_ac_Header=\$ac_header_preproc"
27377fi
27378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27380
27381fi
27382if test `eval echo '${'$as_ac_Header'}'` = yes; then
27383  cat >>confdefs.h <<_ACEOF
27384#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27385_ACEOF
27386
27387fi
27388
27389done
27390
27391
27392
27393
27394
27395for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
27396do
27397as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27398if eval "test \"\${$as_ac_Header+set}\" = set"; then
27399  echo "$as_me:$LINENO: checking for $ac_header" >&5
27400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27401if eval "test \"\${$as_ac_Header+set}\" = set"; then
27402  echo $ECHO_N "(cached) $ECHO_C" >&6
27403fi
27404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27405echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27406else
27407  # Is the header compilable?
27408echo "$as_me:$LINENO: checking $ac_header usability" >&5
27409echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27410cat >conftest.$ac_ext <<_ACEOF
27411/* confdefs.h.  */
27412_ACEOF
27413cat confdefs.h >>conftest.$ac_ext
27414cat >>conftest.$ac_ext <<_ACEOF
27415/* end confdefs.h.  */
27416$ac_includes_default
27417#include <$ac_header>
27418_ACEOF
27419rm -f conftest.$ac_objext
27420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27421  (eval $ac_compile) 2>conftest.er1
27422  ac_status=$?
27423  grep -v '^ *+' conftest.er1 >conftest.err
27424  rm -f conftest.er1
27425  cat conftest.err >&5
27426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427  (exit $ac_status); } &&
27428	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27430  (eval $ac_try) 2>&5
27431  ac_status=$?
27432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433  (exit $ac_status); }; } &&
27434	 { ac_try='test -s conftest.$ac_objext'
27435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27436  (eval $ac_try) 2>&5
27437  ac_status=$?
27438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439  (exit $ac_status); }; }; then
27440  ac_header_compiler=yes
27441else
27442  echo "$as_me: failed program was:" >&5
27443sed 's/^/| /' conftest.$ac_ext >&5
27444
27445ac_header_compiler=no
27446fi
27447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27448echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27449echo "${ECHO_T}$ac_header_compiler" >&6
27450
27451# Is the header present?
27452echo "$as_me:$LINENO: checking $ac_header presence" >&5
27453echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27454cat >conftest.$ac_ext <<_ACEOF
27455/* confdefs.h.  */
27456_ACEOF
27457cat confdefs.h >>conftest.$ac_ext
27458cat >>conftest.$ac_ext <<_ACEOF
27459/* end confdefs.h.  */
27460#include <$ac_header>
27461_ACEOF
27462if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27463  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27464  ac_status=$?
27465  grep -v '^ *+' conftest.er1 >conftest.err
27466  rm -f conftest.er1
27467  cat conftest.err >&5
27468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469  (exit $ac_status); } >/dev/null; then
27470  if test -s conftest.err; then
27471    ac_cpp_err=$ac_c_preproc_warn_flag
27472    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27473  else
27474    ac_cpp_err=
27475  fi
27476else
27477  ac_cpp_err=yes
27478fi
27479if test -z "$ac_cpp_err"; then
27480  ac_header_preproc=yes
27481else
27482  echo "$as_me: failed program was:" >&5
27483sed 's/^/| /' conftest.$ac_ext >&5
27484
27485  ac_header_preproc=no
27486fi
27487rm -f conftest.err conftest.$ac_ext
27488echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27489echo "${ECHO_T}$ac_header_preproc" >&6
27490
27491# So?  What about this header?
27492case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27493  yes:no: )
27494    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27495echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27496    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27497echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27498    ac_header_preproc=yes
27499    ;;
27500  no:yes:* )
27501    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27502echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27503    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27504echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27505    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27506echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27507    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27508echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27509    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27510echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27511    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27512echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27513    (
27514      cat <<\_ASBOX
27515## ---------------------------------- ##
27516## Report this to poincare@ikezoe.net ##
27517## ---------------------------------- ##
27518_ASBOX
27519    ) |
27520      sed "s/^/$as_me: WARNING:     /" >&2
27521    ;;
27522esac
27523echo "$as_me:$LINENO: checking for $ac_header" >&5
27524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27525if eval "test \"\${$as_ac_Header+set}\" = set"; then
27526  echo $ECHO_N "(cached) $ECHO_C" >&6
27527else
27528  eval "$as_ac_Header=\$ac_header_preproc"
27529fi
27530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27531echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27532
27533fi
27534if test `eval echo '${'$as_ac_Header'}'` = yes; then
27535  cat >>confdefs.h <<_ACEOF
27536#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27537_ACEOF
27538
27539fi
27540
27541done
27542
27543
27544
27545for ac_header in string.h strings.h
27546do
27547as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27548if eval "test \"\${$as_ac_Header+set}\" = set"; then
27549  echo "$as_me:$LINENO: checking for $ac_header" >&5
27550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27551if eval "test \"\${$as_ac_Header+set}\" = set"; then
27552  echo $ECHO_N "(cached) $ECHO_C" >&6
27553fi
27554echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27555echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27556else
27557  # Is the header compilable?
27558echo "$as_me:$LINENO: checking $ac_header usability" >&5
27559echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27560cat >conftest.$ac_ext <<_ACEOF
27561/* confdefs.h.  */
27562_ACEOF
27563cat confdefs.h >>conftest.$ac_ext
27564cat >>conftest.$ac_ext <<_ACEOF
27565/* end confdefs.h.  */
27566$ac_includes_default
27567#include <$ac_header>
27568_ACEOF
27569rm -f conftest.$ac_objext
27570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27571  (eval $ac_compile) 2>conftest.er1
27572  ac_status=$?
27573  grep -v '^ *+' conftest.er1 >conftest.err
27574  rm -f conftest.er1
27575  cat conftest.err >&5
27576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27577  (exit $ac_status); } &&
27578	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27580  (eval $ac_try) 2>&5
27581  ac_status=$?
27582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583  (exit $ac_status); }; } &&
27584	 { ac_try='test -s conftest.$ac_objext'
27585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27586  (eval $ac_try) 2>&5
27587  ac_status=$?
27588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589  (exit $ac_status); }; }; then
27590  ac_header_compiler=yes
27591else
27592  echo "$as_me: failed program was:" >&5
27593sed 's/^/| /' conftest.$ac_ext >&5
27594
27595ac_header_compiler=no
27596fi
27597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27598echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27599echo "${ECHO_T}$ac_header_compiler" >&6
27600
27601# Is the header present?
27602echo "$as_me:$LINENO: checking $ac_header presence" >&5
27603echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27604cat >conftest.$ac_ext <<_ACEOF
27605/* confdefs.h.  */
27606_ACEOF
27607cat confdefs.h >>conftest.$ac_ext
27608cat >>conftest.$ac_ext <<_ACEOF
27609/* end confdefs.h.  */
27610#include <$ac_header>
27611_ACEOF
27612if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27613  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27614  ac_status=$?
27615  grep -v '^ *+' conftest.er1 >conftest.err
27616  rm -f conftest.er1
27617  cat conftest.err >&5
27618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619  (exit $ac_status); } >/dev/null; then
27620  if test -s conftest.err; then
27621    ac_cpp_err=$ac_c_preproc_warn_flag
27622    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27623  else
27624    ac_cpp_err=
27625  fi
27626else
27627  ac_cpp_err=yes
27628fi
27629if test -z "$ac_cpp_err"; then
27630  ac_header_preproc=yes
27631else
27632  echo "$as_me: failed program was:" >&5
27633sed 's/^/| /' conftest.$ac_ext >&5
27634
27635  ac_header_preproc=no
27636fi
27637rm -f conftest.err conftest.$ac_ext
27638echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27639echo "${ECHO_T}$ac_header_preproc" >&6
27640
27641# So?  What about this header?
27642case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27643  yes:no: )
27644    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27645echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27646    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27647echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27648    ac_header_preproc=yes
27649    ;;
27650  no:yes:* )
27651    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27652echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27653    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27654echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27655    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27656echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27657    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27658echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27659    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27660echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27661    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27662echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27663    (
27664      cat <<\_ASBOX
27665## ---------------------------------- ##
27666## Report this to poincare@ikezoe.net ##
27667## ---------------------------------- ##
27668_ASBOX
27669    ) |
27670      sed "s/^/$as_me: WARNING:     /" >&2
27671    ;;
27672esac
27673echo "$as_me:$LINENO: checking for $ac_header" >&5
27674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27675if eval "test \"\${$as_ac_Header+set}\" = set"; then
27676  echo $ECHO_N "(cached) $ECHO_C" >&6
27677else
27678  eval "$as_ac_Header=\$ac_header_preproc"
27679fi
27680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27681echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27682
27683fi
27684if test `eval echo '${'$as_ac_Header'}'` = yes; then
27685  cat >>confdefs.h <<_ACEOF
27686#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27687_ACEOF
27688 break
27689fi
27690
27691done
27692
27693
27694
27695
27696for ac_func in strchr index
27697do
27698as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27699echo "$as_me:$LINENO: checking for $ac_func" >&5
27700echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27701if eval "test \"\${$as_ac_var+set}\" = set"; then
27702  echo $ECHO_N "(cached) $ECHO_C" >&6
27703else
27704  cat >conftest.$ac_ext <<_ACEOF
27705/* confdefs.h.  */
27706_ACEOF
27707cat confdefs.h >>conftest.$ac_ext
27708cat >>conftest.$ac_ext <<_ACEOF
27709/* end confdefs.h.  */
27710/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27711   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27712#define $ac_func innocuous_$ac_func
27713
27714/* System header to define __stub macros and hopefully few prototypes,
27715    which can conflict with char $ac_func (); below.
27716    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27717    <limits.h> exists even on freestanding compilers.  */
27718
27719#ifdef __STDC__
27720# include <limits.h>
27721#else
27722# include <assert.h>
27723#endif
27724
27725#undef $ac_func
27726
27727/* Override any gcc2 internal prototype to avoid an error.  */
27728#ifdef __cplusplus
27729extern "C"
27730{
27731#endif
27732/* We use char because int might match the return type of a gcc2
27733   builtin and then its argument prototype would still apply.  */
27734char $ac_func ();
27735/* The GNU C library defines this for functions which it implements
27736    to always fail with ENOSYS.  Some functions are actually named
27737    something starting with __ and the normal name is an alias.  */
27738#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27739choke me
27740#else
27741char (*f) () = $ac_func;
27742#endif
27743#ifdef __cplusplus
27744}
27745#endif
27746
27747int
27748main ()
27749{
27750return f != $ac_func;
27751  ;
27752  return 0;
27753}
27754_ACEOF
27755rm -f conftest.$ac_objext conftest$ac_exeext
27756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27757  (eval $ac_link) 2>conftest.er1
27758  ac_status=$?
27759  grep -v '^ *+' conftest.er1 >conftest.err
27760  rm -f conftest.er1
27761  cat conftest.err >&5
27762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763  (exit $ac_status); } &&
27764	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27766  (eval $ac_try) 2>&5
27767  ac_status=$?
27768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769  (exit $ac_status); }; } &&
27770	 { ac_try='test -s conftest$ac_exeext'
27771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27772  (eval $ac_try) 2>&5
27773  ac_status=$?
27774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775  (exit $ac_status); }; }; then
27776  eval "$as_ac_var=yes"
27777else
27778  echo "$as_me: failed program was:" >&5
27779sed 's/^/| /' conftest.$ac_ext >&5
27780
27781eval "$as_ac_var=no"
27782fi
27783rm -f conftest.err conftest.$ac_objext \
27784      conftest$ac_exeext conftest.$ac_ext
27785fi
27786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27787echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27788if test `eval echo '${'$as_ac_var'}'` = yes; then
27789  cat >>confdefs.h <<_ACEOF
27790#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27791_ACEOF
27792 break
27793fi
27794done
27795
27796
27797
27798for ac_func in strrchr rindex
27799do
27800as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27801echo "$as_me:$LINENO: checking for $ac_func" >&5
27802echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27803if eval "test \"\${$as_ac_var+set}\" = set"; then
27804  echo $ECHO_N "(cached) $ECHO_C" >&6
27805else
27806  cat >conftest.$ac_ext <<_ACEOF
27807/* confdefs.h.  */
27808_ACEOF
27809cat confdefs.h >>conftest.$ac_ext
27810cat >>conftest.$ac_ext <<_ACEOF
27811/* end confdefs.h.  */
27812/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27813   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27814#define $ac_func innocuous_$ac_func
27815
27816/* System header to define __stub macros and hopefully few prototypes,
27817    which can conflict with char $ac_func (); below.
27818    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27819    <limits.h> exists even on freestanding compilers.  */
27820
27821#ifdef __STDC__
27822# include <limits.h>
27823#else
27824# include <assert.h>
27825#endif
27826
27827#undef $ac_func
27828
27829/* Override any gcc2 internal prototype to avoid an error.  */
27830#ifdef __cplusplus
27831extern "C"
27832{
27833#endif
27834/* We use char because int might match the return type of a gcc2
27835   builtin and then its argument prototype would still apply.  */
27836char $ac_func ();
27837/* The GNU C library defines this for functions which it implements
27838    to always fail with ENOSYS.  Some functions are actually named
27839    something starting with __ and the normal name is an alias.  */
27840#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27841choke me
27842#else
27843char (*f) () = $ac_func;
27844#endif
27845#ifdef __cplusplus
27846}
27847#endif
27848
27849int
27850main ()
27851{
27852return f != $ac_func;
27853  ;
27854  return 0;
27855}
27856_ACEOF
27857rm -f conftest.$ac_objext conftest$ac_exeext
27858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27859  (eval $ac_link) 2>conftest.er1
27860  ac_status=$?
27861  grep -v '^ *+' conftest.er1 >conftest.err
27862  rm -f conftest.er1
27863  cat conftest.err >&5
27864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865  (exit $ac_status); } &&
27866	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27868  (eval $ac_try) 2>&5
27869  ac_status=$?
27870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871  (exit $ac_status); }; } &&
27872	 { ac_try='test -s conftest$ac_exeext'
27873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27874  (eval $ac_try) 2>&5
27875  ac_status=$?
27876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877  (exit $ac_status); }; }; then
27878  eval "$as_ac_var=yes"
27879else
27880  echo "$as_me: failed program was:" >&5
27881sed 's/^/| /' conftest.$ac_ext >&5
27882
27883eval "$as_ac_var=no"
27884fi
27885rm -f conftest.err conftest.$ac_objext \
27886      conftest$ac_exeext conftest.$ac_ext
27887fi
27888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27889echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27890if test `eval echo '${'$as_ac_var'}'` = yes; then
27891  cat >>confdefs.h <<_ACEOF
27892#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27893_ACEOF
27894 break
27895fi
27896done
27897
27898
27899
27900for ac_func in memcpy bcopy
27901do
27902as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27903echo "$as_me:$LINENO: checking for $ac_func" >&5
27904echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27905if eval "test \"\${$as_ac_var+set}\" = set"; then
27906  echo $ECHO_N "(cached) $ECHO_C" >&6
27907else
27908  cat >conftest.$ac_ext <<_ACEOF
27909/* confdefs.h.  */
27910_ACEOF
27911cat confdefs.h >>conftest.$ac_ext
27912cat >>conftest.$ac_ext <<_ACEOF
27913/* end confdefs.h.  */
27914/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27915   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27916#define $ac_func innocuous_$ac_func
27917
27918/* System header to define __stub macros and hopefully few prototypes,
27919    which can conflict with char $ac_func (); below.
27920    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27921    <limits.h> exists even on freestanding compilers.  */
27922
27923#ifdef __STDC__
27924# include <limits.h>
27925#else
27926# include <assert.h>
27927#endif
27928
27929#undef $ac_func
27930
27931/* Override any gcc2 internal prototype to avoid an error.  */
27932#ifdef __cplusplus
27933extern "C"
27934{
27935#endif
27936/* We use char because int might match the return type of a gcc2
27937   builtin and then its argument prototype would still apply.  */
27938char $ac_func ();
27939/* The GNU C library defines this for functions which it implements
27940    to always fail with ENOSYS.  Some functions are actually named
27941    something starting with __ and the normal name is an alias.  */
27942#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27943choke me
27944#else
27945char (*f) () = $ac_func;
27946#endif
27947#ifdef __cplusplus
27948}
27949#endif
27950
27951int
27952main ()
27953{
27954return f != $ac_func;
27955  ;
27956  return 0;
27957}
27958_ACEOF
27959rm -f conftest.$ac_objext conftest$ac_exeext
27960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27961  (eval $ac_link) 2>conftest.er1
27962  ac_status=$?
27963  grep -v '^ *+' conftest.er1 >conftest.err
27964  rm -f conftest.er1
27965  cat conftest.err >&5
27966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967  (exit $ac_status); } &&
27968	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27970  (eval $ac_try) 2>&5
27971  ac_status=$?
27972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973  (exit $ac_status); }; } &&
27974	 { ac_try='test -s conftest$ac_exeext'
27975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27976  (eval $ac_try) 2>&5
27977  ac_status=$?
27978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979  (exit $ac_status); }; }; then
27980  eval "$as_ac_var=yes"
27981else
27982  echo "$as_me: failed program was:" >&5
27983sed 's/^/| /' conftest.$ac_ext >&5
27984
27985eval "$as_ac_var=no"
27986fi
27987rm -f conftest.err conftest.$ac_objext \
27988      conftest$ac_exeext conftest.$ac_ext
27989fi
27990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27991echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27992if test `eval echo '${'$as_ac_var'}'` = yes; then
27993  cat >>confdefs.h <<_ACEOF
27994#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27995_ACEOF
27996 break
27997fi
27998done
27999
28000
28001
28002for ac_func in memmove strcmp
28003do
28004as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28005echo "$as_me:$LINENO: checking for $ac_func" >&5
28006echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28007if eval "test \"\${$as_ac_var+set}\" = set"; then
28008  echo $ECHO_N "(cached) $ECHO_C" >&6
28009else
28010  cat >conftest.$ac_ext <<_ACEOF
28011/* confdefs.h.  */
28012_ACEOF
28013cat confdefs.h >>conftest.$ac_ext
28014cat >>conftest.$ac_ext <<_ACEOF
28015/* end confdefs.h.  */
28016/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28017   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28018#define $ac_func innocuous_$ac_func
28019
28020/* System header to define __stub macros and hopefully few prototypes,
28021    which can conflict with char $ac_func (); below.
28022    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28023    <limits.h> exists even on freestanding compilers.  */
28024
28025#ifdef __STDC__
28026# include <limits.h>
28027#else
28028# include <assert.h>
28029#endif
28030
28031#undef $ac_func
28032
28033/* Override any gcc2 internal prototype to avoid an error.  */
28034#ifdef __cplusplus
28035extern "C"
28036{
28037#endif
28038/* We use char because int might match the return type of a gcc2
28039   builtin and then its argument prototype would still apply.  */
28040char $ac_func ();
28041/* The GNU C library defines this for functions which it implements
28042    to always fail with ENOSYS.  Some functions are actually named
28043    something starting with __ and the normal name is an alias.  */
28044#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28045choke me
28046#else
28047char (*f) () = $ac_func;
28048#endif
28049#ifdef __cplusplus
28050}
28051#endif
28052
28053int
28054main ()
28055{
28056return f != $ac_func;
28057  ;
28058  return 0;
28059}
28060_ACEOF
28061rm -f conftest.$ac_objext conftest$ac_exeext
28062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28063  (eval $ac_link) 2>conftest.er1
28064  ac_status=$?
28065  grep -v '^ *+' conftest.er1 >conftest.err
28066  rm -f conftest.er1
28067  cat conftest.err >&5
28068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069  (exit $ac_status); } &&
28070	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28072  (eval $ac_try) 2>&5
28073  ac_status=$?
28074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075  (exit $ac_status); }; } &&
28076	 { ac_try='test -s conftest$ac_exeext'
28077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28078  (eval $ac_try) 2>&5
28079  ac_status=$?
28080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081  (exit $ac_status); }; }; then
28082  eval "$as_ac_var=yes"
28083else
28084  echo "$as_me: failed program was:" >&5
28085sed 's/^/| /' conftest.$ac_ext >&5
28086
28087eval "$as_ac_var=no"
28088fi
28089rm -f conftest.err conftest.$ac_objext \
28090      conftest$ac_exeext conftest.$ac_ext
28091fi
28092echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28093echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28094if test `eval echo '${'$as_ac_var'}'` = yes; then
28095  cat >>confdefs.h <<_ACEOF
28096#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28097_ACEOF
28098
28099fi
28100done
28101
28102
28103
28104
28105for ac_func in closedir opendir readdir
28106do
28107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28108echo "$as_me:$LINENO: checking for $ac_func" >&5
28109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28110if eval "test \"\${$as_ac_var+set}\" = set"; then
28111  echo $ECHO_N "(cached) $ECHO_C" >&6
28112else
28113  cat >conftest.$ac_ext <<_ACEOF
28114/* confdefs.h.  */
28115_ACEOF
28116cat confdefs.h >>conftest.$ac_ext
28117cat >>conftest.$ac_ext <<_ACEOF
28118/* end confdefs.h.  */
28119/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28120   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28121#define $ac_func innocuous_$ac_func
28122
28123/* System header to define __stub macros and hopefully few prototypes,
28124    which can conflict with char $ac_func (); below.
28125    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28126    <limits.h> exists even on freestanding compilers.  */
28127
28128#ifdef __STDC__
28129# include <limits.h>
28130#else
28131# include <assert.h>
28132#endif
28133
28134#undef $ac_func
28135
28136/* Override any gcc2 internal prototype to avoid an error.  */
28137#ifdef __cplusplus
28138extern "C"
28139{
28140#endif
28141/* We use char because int might match the return type of a gcc2
28142   builtin and then its argument prototype would still apply.  */
28143char $ac_func ();
28144/* The GNU C library defines this for functions which it implements
28145    to always fail with ENOSYS.  Some functions are actually named
28146    something starting with __ and the normal name is an alias.  */
28147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28148choke me
28149#else
28150char (*f) () = $ac_func;
28151#endif
28152#ifdef __cplusplus
28153}
28154#endif
28155
28156int
28157main ()
28158{
28159return f != $ac_func;
28160  ;
28161  return 0;
28162}
28163_ACEOF
28164rm -f conftest.$ac_objext conftest$ac_exeext
28165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28166  (eval $ac_link) 2>conftest.er1
28167  ac_status=$?
28168  grep -v '^ *+' conftest.er1 >conftest.err
28169  rm -f conftest.er1
28170  cat conftest.err >&5
28171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172  (exit $ac_status); } &&
28173	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28175  (eval $ac_try) 2>&5
28176  ac_status=$?
28177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178  (exit $ac_status); }; } &&
28179	 { ac_try='test -s conftest$ac_exeext'
28180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28181  (eval $ac_try) 2>&5
28182  ac_status=$?
28183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184  (exit $ac_status); }; }; then
28185  eval "$as_ac_var=yes"
28186else
28187  echo "$as_me: failed program was:" >&5
28188sed 's/^/| /' conftest.$ac_ext >&5
28189
28190eval "$as_ac_var=no"
28191fi
28192rm -f conftest.err conftest.$ac_objext \
28193      conftest$ac_exeext conftest.$ac_ext
28194fi
28195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28196echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28197if test `eval echo '${'$as_ac_var'}'` = yes; then
28198  cat >>confdefs.h <<_ACEOF
28199#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28200_ACEOF
28201
28202fi
28203done
28204
28205
28206
28207
28208# Checks for programs.
28209ac_ext=cc
28210ac_cpp='$CXXCPP $CPPFLAGS'
28211ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28212ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28213ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28214if test -n "$ac_tool_prefix"; then
28215  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
28216  do
28217    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28218set dummy $ac_tool_prefix$ac_prog; ac_word=$2
28219echo "$as_me:$LINENO: checking for $ac_word" >&5
28220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28221if test "${ac_cv_prog_CXX+set}" = set; then
28222  echo $ECHO_N "(cached) $ECHO_C" >&6
28223else
28224  if test -n "$CXX"; then
28225  ac_cv_prog_CXX="$CXX" # Let the user override the test.
28226else
28227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28228for as_dir in $PATH
28229do
28230  IFS=$as_save_IFS
28231  test -z "$as_dir" && as_dir=.
28232  for ac_exec_ext in '' $ac_executable_extensions; do
28233  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28234    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
28235    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28236    break 2
28237  fi
28238done
28239done
28240
28241fi
28242fi
28243CXX=$ac_cv_prog_CXX
28244if test -n "$CXX"; then
28245  echo "$as_me:$LINENO: result: $CXX" >&5
28246echo "${ECHO_T}$CXX" >&6
28247else
28248  echo "$as_me:$LINENO: result: no" >&5
28249echo "${ECHO_T}no" >&6
28250fi
28251
28252    test -n "$CXX" && break
28253  done
28254fi
28255if test -z "$CXX"; then
28256  ac_ct_CXX=$CXX
28257  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
28258do
28259  # Extract the first word of "$ac_prog", so it can be a program name with args.
28260set dummy $ac_prog; ac_word=$2
28261echo "$as_me:$LINENO: checking for $ac_word" >&5
28262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28263if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
28264  echo $ECHO_N "(cached) $ECHO_C" >&6
28265else
28266  if test -n "$ac_ct_CXX"; then
28267  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
28268else
28269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28270for as_dir in $PATH
28271do
28272  IFS=$as_save_IFS
28273  test -z "$as_dir" && as_dir=.
28274  for ac_exec_ext in '' $ac_executable_extensions; do
28275  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28276    ac_cv_prog_ac_ct_CXX="$ac_prog"
28277    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28278    break 2
28279  fi
28280done
28281done
28282
28283fi
28284fi
28285ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
28286if test -n "$ac_ct_CXX"; then
28287  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
28288echo "${ECHO_T}$ac_ct_CXX" >&6
28289else
28290  echo "$as_me:$LINENO: result: no" >&5
28291echo "${ECHO_T}no" >&6
28292fi
28293
28294  test -n "$ac_ct_CXX" && break
28295done
28296test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
28297
28298  CXX=$ac_ct_CXX
28299fi
28300
28301
28302# Provide some information about the compiler.
28303echo "$as_me:$LINENO:" \
28304     "checking for C++ compiler version" >&5
28305ac_compiler=`set X $ac_compile; echo $2`
28306{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
28307  (eval $ac_compiler --version </dev/null >&5) 2>&5
28308  ac_status=$?
28309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310  (exit $ac_status); }
28311{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
28312  (eval $ac_compiler -v </dev/null >&5) 2>&5
28313  ac_status=$?
28314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315  (exit $ac_status); }
28316{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
28317  (eval $ac_compiler -V </dev/null >&5) 2>&5
28318  ac_status=$?
28319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320  (exit $ac_status); }
28321
28322echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
28323echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
28324if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
28325  echo $ECHO_N "(cached) $ECHO_C" >&6
28326else
28327  cat >conftest.$ac_ext <<_ACEOF
28328/* confdefs.h.  */
28329_ACEOF
28330cat confdefs.h >>conftest.$ac_ext
28331cat >>conftest.$ac_ext <<_ACEOF
28332/* end confdefs.h.  */
28333
28334int
28335main ()
28336{
28337#ifndef __GNUC__
28338       choke me
28339#endif
28340
28341  ;
28342  return 0;
28343}
28344_ACEOF
28345rm -f conftest.$ac_objext
28346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28347  (eval $ac_compile) 2>conftest.er1
28348  ac_status=$?
28349  grep -v '^ *+' conftest.er1 >conftest.err
28350  rm -f conftest.er1
28351  cat conftest.err >&5
28352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353  (exit $ac_status); } &&
28354	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
28355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28356  (eval $ac_try) 2>&5
28357  ac_status=$?
28358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359  (exit $ac_status); }; } &&
28360	 { ac_try='test -s conftest.$ac_objext'
28361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28362  (eval $ac_try) 2>&5
28363  ac_status=$?
28364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28365  (exit $ac_status); }; }; then
28366  ac_compiler_gnu=yes
28367else
28368  echo "$as_me: failed program was:" >&5
28369sed 's/^/| /' conftest.$ac_ext >&5
28370
28371ac_compiler_gnu=no
28372fi
28373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28374ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
28375
28376fi
28377echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
28378echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
28379GXX=`test $ac_compiler_gnu = yes && echo yes`
28380ac_test_CXXFLAGS=${CXXFLAGS+set}
28381ac_save_CXXFLAGS=$CXXFLAGS
28382CXXFLAGS="-g"
28383echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
28384echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
28385if test "${ac_cv_prog_cxx_g+set}" = set; then
28386  echo $ECHO_N "(cached) $ECHO_C" >&6
28387else
28388  cat >conftest.$ac_ext <<_ACEOF
28389/* confdefs.h.  */
28390_ACEOF
28391cat confdefs.h >>conftest.$ac_ext
28392cat >>conftest.$ac_ext <<_ACEOF
28393/* end confdefs.h.  */
28394
28395int
28396main ()
28397{
28398
28399  ;
28400  return 0;
28401}
28402_ACEOF
28403rm -f conftest.$ac_objext
28404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28405  (eval $ac_compile) 2>conftest.er1
28406  ac_status=$?
28407  grep -v '^ *+' conftest.er1 >conftest.err
28408  rm -f conftest.er1
28409  cat conftest.err >&5
28410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411  (exit $ac_status); } &&
28412	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
28413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28414  (eval $ac_try) 2>&5
28415  ac_status=$?
28416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417  (exit $ac_status); }; } &&
28418	 { ac_try='test -s conftest.$ac_objext'
28419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28420  (eval $ac_try) 2>&5
28421  ac_status=$?
28422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423  (exit $ac_status); }; }; then
28424  ac_cv_prog_cxx_g=yes
28425else
28426  echo "$as_me: failed program was:" >&5
28427sed 's/^/| /' conftest.$ac_ext >&5
28428
28429ac_cv_prog_cxx_g=no
28430fi
28431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28432fi
28433echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
28434echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
28435if test "$ac_test_CXXFLAGS" = set; then
28436  CXXFLAGS=$ac_save_CXXFLAGS
28437elif test $ac_cv_prog_cxx_g = yes; then
28438  if test "$GXX" = yes; then
28439    CXXFLAGS="-g -O2"
28440  else
28441    CXXFLAGS="-g"
28442  fi
28443else
28444  if test "$GXX" = yes; then
28445    CXXFLAGS="-O2"
28446  else
28447    CXXFLAGS=
28448  fi
28449fi
28450for ac_declaration in \
28451   '' \
28452   'extern "C" void std::exit (int) throw (); using std::exit;' \
28453   'extern "C" void std::exit (int); using std::exit;' \
28454   'extern "C" void exit (int) throw ();' \
28455   'extern "C" void exit (int);' \
28456   'void exit (int);'
28457do
28458  cat >conftest.$ac_ext <<_ACEOF
28459/* confdefs.h.  */
28460_ACEOF
28461cat confdefs.h >>conftest.$ac_ext
28462cat >>conftest.$ac_ext <<_ACEOF
28463/* end confdefs.h.  */
28464$ac_declaration
28465#include <stdlib.h>
28466int
28467main ()
28468{
28469exit (42);
28470  ;
28471  return 0;
28472}
28473_ACEOF
28474rm -f conftest.$ac_objext
28475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28476  (eval $ac_compile) 2>conftest.er1
28477  ac_status=$?
28478  grep -v '^ *+' conftest.er1 >conftest.err
28479  rm -f conftest.er1
28480  cat conftest.err >&5
28481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482  (exit $ac_status); } &&
28483	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
28484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28485  (eval $ac_try) 2>&5
28486  ac_status=$?
28487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28488  (exit $ac_status); }; } &&
28489	 { ac_try='test -s conftest.$ac_objext'
28490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28491  (eval $ac_try) 2>&5
28492  ac_status=$?
28493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494  (exit $ac_status); }; }; then
28495  :
28496else
28497  echo "$as_me: failed program was:" >&5
28498sed 's/^/| /' conftest.$ac_ext >&5
28499
28500continue
28501fi
28502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28503  cat >conftest.$ac_ext <<_ACEOF
28504/* confdefs.h.  */
28505_ACEOF
28506cat confdefs.h >>conftest.$ac_ext
28507cat >>conftest.$ac_ext <<_ACEOF
28508/* end confdefs.h.  */
28509$ac_declaration
28510int
28511main ()
28512{
28513exit (42);
28514  ;
28515  return 0;
28516}
28517_ACEOF
28518rm -f conftest.$ac_objext
28519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28520  (eval $ac_compile) 2>conftest.er1
28521  ac_status=$?
28522  grep -v '^ *+' conftest.er1 >conftest.err
28523  rm -f conftest.er1
28524  cat conftest.err >&5
28525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526  (exit $ac_status); } &&
28527	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
28528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28529  (eval $ac_try) 2>&5
28530  ac_status=$?
28531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532  (exit $ac_status); }; } &&
28533	 { ac_try='test -s conftest.$ac_objext'
28534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28535  (eval $ac_try) 2>&5
28536  ac_status=$?
28537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538  (exit $ac_status); }; }; then
28539  break
28540else
28541  echo "$as_me: failed program was:" >&5
28542sed 's/^/| /' conftest.$ac_ext >&5
28543
28544fi
28545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28546done
28547rm -f conftest*
28548if test -n "$ac_declaration"; then
28549  echo '#ifdef __cplusplus' >>confdefs.h
28550  echo $ac_declaration      >>confdefs.h
28551  echo '#endif'             >>confdefs.h
28552fi
28553
28554ac_ext=c
28555ac_cpp='$CPP $CPPFLAGS'
28556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28558ac_compiler_gnu=$ac_cv_c_compiler_gnu
28559
28560depcc="$CXX"  am_compiler_list=
28561
28562echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
28563echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
28564if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
28565  echo $ECHO_N "(cached) $ECHO_C" >&6
28566else
28567  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
28568  # We make a subdir and do the tests there.  Otherwise we can end up
28569  # making bogus files that we don't know about and never remove.  For
28570  # instance it was reported that on HP-UX the gcc test will end up
28571  # making a dummy file named `D' -- because `-MD' means `put the output
28572  # in D'.
28573  mkdir conftest.dir
28574  # Copy depcomp to subdir because otherwise we won't find it if we're
28575  # using a relative directory.
28576  cp "$am_depcomp" conftest.dir
28577  cd conftest.dir
28578  # We will build objects and dependencies in a subdirectory because
28579  # it helps to detect inapplicable dependency modes.  For instance
28580  # both Tru64's cc and ICC support -MD to output dependencies as a
28581  # side effect of compilation, but ICC will put the dependencies in
28582  # the current directory while Tru64 will put them in the object
28583  # directory.
28584  mkdir sub
28585
28586  am_cv_CXX_dependencies_compiler_type=none
28587  if test "$am_compiler_list" = ""; then
28588     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
28589  fi
28590  for depmode in $am_compiler_list; do
28591    # Setup a source with many dependencies, because some compilers
28592    # like to wrap large dependency lists on column 80 (with \), and
28593    # we should not choose a depcomp mode which is confused by this.
28594    #
28595    # We need to recreate these files for each test, as the compiler may
28596    # overwrite some of them when testing with obscure command lines.
28597    # This happens at least with the AIX C compiler.
28598    : > sub/conftest.c
28599    for i in 1 2 3 4 5 6; do
28600      echo '#include "conftst'$i'.h"' >> sub/conftest.c
28601      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
28602      # Solaris 8's {/usr,}/bin/sh.
28603      touch sub/conftst$i.h
28604    done
28605    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
28606
28607    case $depmode in
28608    nosideeffect)
28609      # after this tag, mechanisms are not by side-effect, so they'll
28610      # only be used when explicitly requested
28611      if test "x$enable_dependency_tracking" = xyes; then
28612	continue
28613      else
28614	break
28615      fi
28616      ;;
28617    none) break ;;
28618    esac
28619    # We check with `-c' and `-o' for the sake of the "dashmstdout"
28620    # mode.  It turns out that the SunPro C++ compiler does not properly
28621    # handle `-M -o', and we need to detect this.
28622    if depmode=$depmode \
28623       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
28624       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
28625       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
28626         >/dev/null 2>conftest.err &&
28627       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
28628       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
28629       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
28630      # icc doesn't choke on unknown options, it will just issue warnings
28631      # or remarks (even with -Werror).  So we grep stderr for any message
28632      # that says an option was ignored or not supported.
28633      # When given -MP, icc 7.0 and 7.1 complain thusly:
28634      #   icc: Command line warning: ignoring option '-M'; no argument required
28635      # The diagnosis changed in icc 8.0:
28636      #   icc: Command line remark: option '-MP' not supported
28637      if (grep 'ignoring option' conftest.err ||
28638          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
28639        am_cv_CXX_dependencies_compiler_type=$depmode
28640        break
28641      fi
28642    fi
28643  done
28644
28645  cd ..
28646  rm -rf conftest.dir
28647else
28648  am_cv_CXX_dependencies_compiler_type=none
28649fi
28650
28651fi
28652echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
28653echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
28654CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
28655
28656
28657
28658if
28659  test "x$enable_dependency_tracking" != xno \
28660  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
28661  am__fastdepCXX_TRUE=
28662  am__fastdepCXX_FALSE='#'
28663else
28664  am__fastdepCXX_TRUE='#'
28665  am__fastdepCXX_FALSE=
28666fi
28667
28668
28669ac_ext=c
28670ac_cpp='$CPP $CPPFLAGS'
28671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28673ac_compiler_gnu=$ac_cv_c_compiler_gnu
28674if test -n "$ac_tool_prefix"; then
28675  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
28676set dummy ${ac_tool_prefix}gcc; ac_word=$2
28677echo "$as_me:$LINENO: checking for $ac_word" >&5
28678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28679if test "${ac_cv_prog_CC+set}" = set; then
28680  echo $ECHO_N "(cached) $ECHO_C" >&6
28681else
28682  if test -n "$CC"; then
28683  ac_cv_prog_CC="$CC" # Let the user override the test.
28684else
28685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28686for as_dir in $PATH
28687do
28688  IFS=$as_save_IFS
28689  test -z "$as_dir" && as_dir=.
28690  for ac_exec_ext in '' $ac_executable_extensions; do
28691  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28692    ac_cv_prog_CC="${ac_tool_prefix}gcc"
28693    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28694    break 2
28695  fi
28696done
28697done
28698
28699fi
28700fi
28701CC=$ac_cv_prog_CC
28702if test -n "$CC"; then
28703  echo "$as_me:$LINENO: result: $CC" >&5
28704echo "${ECHO_T}$CC" >&6
28705else
28706  echo "$as_me:$LINENO: result: no" >&5
28707echo "${ECHO_T}no" >&6
28708fi
28709
28710fi
28711if test -z "$ac_cv_prog_CC"; then
28712  ac_ct_CC=$CC
28713  # Extract the first word of "gcc", so it can be a program name with args.
28714set dummy gcc; ac_word=$2
28715echo "$as_me:$LINENO: checking for $ac_word" >&5
28716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28717if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
28718  echo $ECHO_N "(cached) $ECHO_C" >&6
28719else
28720  if test -n "$ac_ct_CC"; then
28721  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
28722else
28723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28724for as_dir in $PATH
28725do
28726  IFS=$as_save_IFS
28727  test -z "$as_dir" && as_dir=.
28728  for ac_exec_ext in '' $ac_executable_extensions; do
28729  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28730    ac_cv_prog_ac_ct_CC="gcc"
28731    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28732    break 2
28733  fi
28734done
28735done
28736
28737fi
28738fi
28739ac_ct_CC=$ac_cv_prog_ac_ct_CC
28740if test -n "$ac_ct_CC"; then
28741  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
28742echo "${ECHO_T}$ac_ct_CC" >&6
28743else
28744  echo "$as_me:$LINENO: result: no" >&5
28745echo "${ECHO_T}no" >&6
28746fi
28747
28748  CC=$ac_ct_CC
28749else
28750  CC="$ac_cv_prog_CC"
28751fi
28752
28753if test -z "$CC"; then
28754  if test -n "$ac_tool_prefix"; then
28755  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
28756set dummy ${ac_tool_prefix}cc; ac_word=$2
28757echo "$as_me:$LINENO: checking for $ac_word" >&5
28758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28759if test "${ac_cv_prog_CC+set}" = set; then
28760  echo $ECHO_N "(cached) $ECHO_C" >&6
28761else
28762  if test -n "$CC"; then
28763  ac_cv_prog_CC="$CC" # Let the user override the test.
28764else
28765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28766for as_dir in $PATH
28767do
28768  IFS=$as_save_IFS
28769  test -z "$as_dir" && as_dir=.
28770  for ac_exec_ext in '' $ac_executable_extensions; do
28771  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28772    ac_cv_prog_CC="${ac_tool_prefix}cc"
28773    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28774    break 2
28775  fi
28776done
28777done
28778
28779fi
28780fi
28781CC=$ac_cv_prog_CC
28782if test -n "$CC"; then
28783  echo "$as_me:$LINENO: result: $CC" >&5
28784echo "${ECHO_T}$CC" >&6
28785else
28786  echo "$as_me:$LINENO: result: no" >&5
28787echo "${ECHO_T}no" >&6
28788fi
28789
28790fi
28791if test -z "$ac_cv_prog_CC"; then
28792  ac_ct_CC=$CC
28793  # Extract the first word of "cc", so it can be a program name with args.
28794set dummy cc; ac_word=$2
28795echo "$as_me:$LINENO: checking for $ac_word" >&5
28796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28797if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
28798  echo $ECHO_N "(cached) $ECHO_C" >&6
28799else
28800  if test -n "$ac_ct_CC"; then
28801  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
28802else
28803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28804for as_dir in $PATH
28805do
28806  IFS=$as_save_IFS
28807  test -z "$as_dir" && as_dir=.
28808  for ac_exec_ext in '' $ac_executable_extensions; do
28809  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28810    ac_cv_prog_ac_ct_CC="cc"
28811    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28812    break 2
28813  fi
28814done
28815done
28816
28817fi
28818fi
28819ac_ct_CC=$ac_cv_prog_ac_ct_CC
28820if test -n "$ac_ct_CC"; then
28821  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
28822echo "${ECHO_T}$ac_ct_CC" >&6
28823else
28824  echo "$as_me:$LINENO: result: no" >&5
28825echo "${ECHO_T}no" >&6
28826fi
28827
28828  CC=$ac_ct_CC
28829else
28830  CC="$ac_cv_prog_CC"
28831fi
28832
28833fi
28834if test -z "$CC"; then
28835  # Extract the first word of "cc", so it can be a program name with args.
28836set dummy cc; ac_word=$2
28837echo "$as_me:$LINENO: checking for $ac_word" >&5
28838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28839if test "${ac_cv_prog_CC+set}" = set; then
28840  echo $ECHO_N "(cached) $ECHO_C" >&6
28841else
28842  if test -n "$CC"; then
28843  ac_cv_prog_CC="$CC" # Let the user override the test.
28844else
28845  ac_prog_rejected=no
28846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28847for as_dir in $PATH
28848do
28849  IFS=$as_save_IFS
28850  test -z "$as_dir" && as_dir=.
28851  for ac_exec_ext in '' $ac_executable_extensions; do
28852  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28853    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
28854       ac_prog_rejected=yes
28855       continue
28856     fi
28857    ac_cv_prog_CC="cc"
28858    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28859    break 2
28860  fi
28861done
28862done
28863
28864if test $ac_prog_rejected = yes; then
28865  # We found a bogon in the path, so make sure we never use it.
28866  set dummy $ac_cv_prog_CC
28867  shift
28868  if test $# != 0; then
28869    # We chose a different compiler from the bogus one.
28870    # However, it has the same basename, so the bogon will be chosen
28871    # first if we set CC to just the basename; use the full file name.
28872    shift
28873    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
28874  fi
28875fi
28876fi
28877fi
28878CC=$ac_cv_prog_CC
28879if test -n "$CC"; then
28880  echo "$as_me:$LINENO: result: $CC" >&5
28881echo "${ECHO_T}$CC" >&6
28882else
28883  echo "$as_me:$LINENO: result: no" >&5
28884echo "${ECHO_T}no" >&6
28885fi
28886
28887fi
28888if test -z "$CC"; then
28889  if test -n "$ac_tool_prefix"; then
28890  for ac_prog in cl
28891  do
28892    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28893set dummy $ac_tool_prefix$ac_prog; ac_word=$2
28894echo "$as_me:$LINENO: checking for $ac_word" >&5
28895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28896if test "${ac_cv_prog_CC+set}" = set; then
28897  echo $ECHO_N "(cached) $ECHO_C" >&6
28898else
28899  if test -n "$CC"; then
28900  ac_cv_prog_CC="$CC" # Let the user override the test.
28901else
28902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28903for as_dir in $PATH
28904do
28905  IFS=$as_save_IFS
28906  test -z "$as_dir" && as_dir=.
28907  for ac_exec_ext in '' $ac_executable_extensions; do
28908  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28909    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
28910    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28911    break 2
28912  fi
28913done
28914done
28915
28916fi
28917fi
28918CC=$ac_cv_prog_CC
28919if test -n "$CC"; then
28920  echo "$as_me:$LINENO: result: $CC" >&5
28921echo "${ECHO_T}$CC" >&6
28922else
28923  echo "$as_me:$LINENO: result: no" >&5
28924echo "${ECHO_T}no" >&6
28925fi
28926
28927    test -n "$CC" && break
28928  done
28929fi
28930if test -z "$CC"; then
28931  ac_ct_CC=$CC
28932  for ac_prog in cl
28933do
28934  # Extract the first word of "$ac_prog", so it can be a program name with args.
28935set dummy $ac_prog; ac_word=$2
28936echo "$as_me:$LINENO: checking for $ac_word" >&5
28937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28938if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
28939  echo $ECHO_N "(cached) $ECHO_C" >&6
28940else
28941  if test -n "$ac_ct_CC"; then
28942  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
28943else
28944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28945for as_dir in $PATH
28946do
28947  IFS=$as_save_IFS
28948  test -z "$as_dir" && as_dir=.
28949  for ac_exec_ext in '' $ac_executable_extensions; do
28950  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28951    ac_cv_prog_ac_ct_CC="$ac_prog"
28952    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28953    break 2
28954  fi
28955done
28956done
28957
28958fi
28959fi
28960ac_ct_CC=$ac_cv_prog_ac_ct_CC
28961if test -n "$ac_ct_CC"; then
28962  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
28963echo "${ECHO_T}$ac_ct_CC" >&6
28964else
28965  echo "$as_me:$LINENO: result: no" >&5
28966echo "${ECHO_T}no" >&6
28967fi
28968
28969  test -n "$ac_ct_CC" && break
28970done
28971
28972  CC=$ac_ct_CC
28973fi
28974
28975fi
28976
28977
28978test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
28979See \`config.log' for more details." >&5
28980echo "$as_me: error: no acceptable C compiler found in \$PATH
28981See \`config.log' for more details." >&2;}
28982   { (exit 1); exit 1; }; }
28983
28984# Provide some information about the compiler.
28985echo "$as_me:$LINENO:" \
28986     "checking for C compiler version" >&5
28987ac_compiler=`set X $ac_compile; echo $2`
28988{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
28989  (eval $ac_compiler --version </dev/null >&5) 2>&5
28990  ac_status=$?
28991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992  (exit $ac_status); }
28993{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
28994  (eval $ac_compiler -v </dev/null >&5) 2>&5
28995  ac_status=$?
28996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997  (exit $ac_status); }
28998{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
28999  (eval $ac_compiler -V </dev/null >&5) 2>&5
29000  ac_status=$?
29001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002  (exit $ac_status); }
29003
29004echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
29005echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
29006if test "${ac_cv_c_compiler_gnu+set}" = set; then
29007  echo $ECHO_N "(cached) $ECHO_C" >&6
29008else
29009  cat >conftest.$ac_ext <<_ACEOF
29010/* confdefs.h.  */
29011_ACEOF
29012cat confdefs.h >>conftest.$ac_ext
29013cat >>conftest.$ac_ext <<_ACEOF
29014/* end confdefs.h.  */
29015
29016int
29017main ()
29018{
29019#ifndef __GNUC__
29020       choke me
29021#endif
29022
29023  ;
29024  return 0;
29025}
29026_ACEOF
29027rm -f conftest.$ac_objext
29028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29029  (eval $ac_compile) 2>conftest.er1
29030  ac_status=$?
29031  grep -v '^ *+' conftest.er1 >conftest.err
29032  rm -f conftest.er1
29033  cat conftest.err >&5
29034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035  (exit $ac_status); } &&
29036	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29038  (eval $ac_try) 2>&5
29039  ac_status=$?
29040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041  (exit $ac_status); }; } &&
29042	 { ac_try='test -s conftest.$ac_objext'
29043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29044  (eval $ac_try) 2>&5
29045  ac_status=$?
29046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29047  (exit $ac_status); }; }; then
29048  ac_compiler_gnu=yes
29049else
29050  echo "$as_me: failed program was:" >&5
29051sed 's/^/| /' conftest.$ac_ext >&5
29052
29053ac_compiler_gnu=no
29054fi
29055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29056ac_cv_c_compiler_gnu=$ac_compiler_gnu
29057
29058fi
29059echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
29060echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
29061GCC=`test $ac_compiler_gnu = yes && echo yes`
29062ac_test_CFLAGS=${CFLAGS+set}
29063ac_save_CFLAGS=$CFLAGS
29064CFLAGS="-g"
29065echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
29066echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
29067if test "${ac_cv_prog_cc_g+set}" = set; then
29068  echo $ECHO_N "(cached) $ECHO_C" >&6
29069else
29070  cat >conftest.$ac_ext <<_ACEOF
29071/* confdefs.h.  */
29072_ACEOF
29073cat confdefs.h >>conftest.$ac_ext
29074cat >>conftest.$ac_ext <<_ACEOF
29075/* end confdefs.h.  */
29076
29077int
29078main ()
29079{
29080
29081  ;
29082  return 0;
29083}
29084_ACEOF
29085rm -f conftest.$ac_objext
29086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29087  (eval $ac_compile) 2>conftest.er1
29088  ac_status=$?
29089  grep -v '^ *+' conftest.er1 >conftest.err
29090  rm -f conftest.er1
29091  cat conftest.err >&5
29092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093  (exit $ac_status); } &&
29094	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29096  (eval $ac_try) 2>&5
29097  ac_status=$?
29098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099  (exit $ac_status); }; } &&
29100	 { ac_try='test -s conftest.$ac_objext'
29101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29102  (eval $ac_try) 2>&5
29103  ac_status=$?
29104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105  (exit $ac_status); }; }; then
29106  ac_cv_prog_cc_g=yes
29107else
29108  echo "$as_me: failed program was:" >&5
29109sed 's/^/| /' conftest.$ac_ext >&5
29110
29111ac_cv_prog_cc_g=no
29112fi
29113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29114fi
29115echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
29116echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
29117if test "$ac_test_CFLAGS" = set; then
29118  CFLAGS=$ac_save_CFLAGS
29119elif test $ac_cv_prog_cc_g = yes; then
29120  if test "$GCC" = yes; then
29121    CFLAGS="-g -O2"
29122  else
29123    CFLAGS="-g"
29124  fi
29125else
29126  if test "$GCC" = yes; then
29127    CFLAGS="-O2"
29128  else
29129    CFLAGS=
29130  fi
29131fi
29132echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
29133echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
29134if test "${ac_cv_prog_cc_stdc+set}" = set; then
29135  echo $ECHO_N "(cached) $ECHO_C" >&6
29136else
29137  ac_cv_prog_cc_stdc=no
29138ac_save_CC=$CC
29139cat >conftest.$ac_ext <<_ACEOF
29140/* confdefs.h.  */
29141_ACEOF
29142cat confdefs.h >>conftest.$ac_ext
29143cat >>conftest.$ac_ext <<_ACEOF
29144/* end confdefs.h.  */
29145#include <stdarg.h>
29146#include <stdio.h>
29147#include <sys/types.h>
29148#include <sys/stat.h>
29149/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
29150struct buf { int x; };
29151FILE * (*rcsopen) (struct buf *, struct stat *, int);
29152static char *e (p, i)
29153     char **p;
29154     int i;
29155{
29156  return p[i];
29157}
29158static char *f (char * (*g) (char **, int), char **p, ...)
29159{
29160  char *s;
29161  va_list v;
29162  va_start (v,p);
29163  s = g (p, va_arg (v,int));
29164  va_end (v);
29165  return s;
29166}
29167
29168/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
29169   function prototypes and stuff, but not '\xHH' hex character constants.
29170   These don't provoke an error unfortunately, instead are silently treated
29171   as 'x'.  The following induces an error, until -std1 is added to get
29172   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
29173   array size at least.  It's necessary to write '\x00'==0 to get something
29174   that's true only with -std1.  */
29175int osf4_cc_array ['\x00' == 0 ? 1 : -1];
29176
29177int test (int i, double x);
29178struct s1 {int (*f) (int a);};
29179struct s2 {int (*f) (double a);};
29180int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
29181int argc;
29182char **argv;
29183int
29184main ()
29185{
29186return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
29187  ;
29188  return 0;
29189}
29190_ACEOF
29191# Don't try gcc -ansi; that turns off useful extensions and
29192# breaks some systems' header files.
29193# AIX			-qlanglvl=ansi
29194# Ultrix and OSF/1	-std1
29195# HP-UX 10.20 and later	-Ae
29196# HP-UX older versions	-Aa -D_HPUX_SOURCE
29197# SVR4			-Xc -D__EXTENSIONS__
29198for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
29199do
29200  CC="$ac_save_CC $ac_arg"
29201  rm -f conftest.$ac_objext
29202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29203  (eval $ac_compile) 2>conftest.er1
29204  ac_status=$?
29205  grep -v '^ *+' conftest.er1 >conftest.err
29206  rm -f conftest.er1
29207  cat conftest.err >&5
29208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29209  (exit $ac_status); } &&
29210	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29212  (eval $ac_try) 2>&5
29213  ac_status=$?
29214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215  (exit $ac_status); }; } &&
29216	 { ac_try='test -s conftest.$ac_objext'
29217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29218  (eval $ac_try) 2>&5
29219  ac_status=$?
29220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221  (exit $ac_status); }; }; then
29222  ac_cv_prog_cc_stdc=$ac_arg
29223break
29224else
29225  echo "$as_me: failed program was:" >&5
29226sed 's/^/| /' conftest.$ac_ext >&5
29227
29228fi
29229rm -f conftest.err conftest.$ac_objext
29230done
29231rm -f conftest.$ac_ext conftest.$ac_objext
29232CC=$ac_save_CC
29233
29234fi
29235
29236case "x$ac_cv_prog_cc_stdc" in
29237  x|xno)
29238    echo "$as_me:$LINENO: result: none needed" >&5
29239echo "${ECHO_T}none needed" >&6 ;;
29240  *)
29241    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
29242echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
29243    CC="$CC $ac_cv_prog_cc_stdc" ;;
29244esac
29245
29246# Some people use a C++ compiler to compile C.  Since we use `exit',
29247# in C++ we need to declare it.  In case someone uses the same compiler
29248# for both compiling C and C++ we need to have the C++ compiler decide
29249# the declaration of exit, since it's the most demanding environment.
29250cat >conftest.$ac_ext <<_ACEOF
29251#ifndef __cplusplus
29252  choke me
29253#endif
29254_ACEOF
29255rm -f conftest.$ac_objext
29256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29257  (eval $ac_compile) 2>conftest.er1
29258  ac_status=$?
29259  grep -v '^ *+' conftest.er1 >conftest.err
29260  rm -f conftest.er1
29261  cat conftest.err >&5
29262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263  (exit $ac_status); } &&
29264	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29266  (eval $ac_try) 2>&5
29267  ac_status=$?
29268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269  (exit $ac_status); }; } &&
29270	 { ac_try='test -s conftest.$ac_objext'
29271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29272  (eval $ac_try) 2>&5
29273  ac_status=$?
29274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29275  (exit $ac_status); }; }; then
29276  for ac_declaration in \
29277   '' \
29278   'extern "C" void std::exit (int) throw (); using std::exit;' \
29279   'extern "C" void std::exit (int); using std::exit;' \
29280   'extern "C" void exit (int) throw ();' \
29281   'extern "C" void exit (int);' \
29282   'void exit (int);'
29283do
29284  cat >conftest.$ac_ext <<_ACEOF
29285/* confdefs.h.  */
29286_ACEOF
29287cat confdefs.h >>conftest.$ac_ext
29288cat >>conftest.$ac_ext <<_ACEOF
29289/* end confdefs.h.  */
29290$ac_declaration
29291#include <stdlib.h>
29292int
29293main ()
29294{
29295exit (42);
29296  ;
29297  return 0;
29298}
29299_ACEOF
29300rm -f conftest.$ac_objext
29301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29302  (eval $ac_compile) 2>conftest.er1
29303  ac_status=$?
29304  grep -v '^ *+' conftest.er1 >conftest.err
29305  rm -f conftest.er1
29306  cat conftest.err >&5
29307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308  (exit $ac_status); } &&
29309	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29311  (eval $ac_try) 2>&5
29312  ac_status=$?
29313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314  (exit $ac_status); }; } &&
29315	 { ac_try='test -s conftest.$ac_objext'
29316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29317  (eval $ac_try) 2>&5
29318  ac_status=$?
29319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29320  (exit $ac_status); }; }; then
29321  :
29322else
29323  echo "$as_me: failed program was:" >&5
29324sed 's/^/| /' conftest.$ac_ext >&5
29325
29326continue
29327fi
29328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29329  cat >conftest.$ac_ext <<_ACEOF
29330/* confdefs.h.  */
29331_ACEOF
29332cat confdefs.h >>conftest.$ac_ext
29333cat >>conftest.$ac_ext <<_ACEOF
29334/* end confdefs.h.  */
29335$ac_declaration
29336int
29337main ()
29338{
29339exit (42);
29340  ;
29341  return 0;
29342}
29343_ACEOF
29344rm -f conftest.$ac_objext
29345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29346  (eval $ac_compile) 2>conftest.er1
29347  ac_status=$?
29348  grep -v '^ *+' conftest.er1 >conftest.err
29349  rm -f conftest.er1
29350  cat conftest.err >&5
29351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352  (exit $ac_status); } &&
29353	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
29354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29355  (eval $ac_try) 2>&5
29356  ac_status=$?
29357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29358  (exit $ac_status); }; } &&
29359	 { ac_try='test -s conftest.$ac_objext'
29360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29361  (eval $ac_try) 2>&5
29362  ac_status=$?
29363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364  (exit $ac_status); }; }; then
29365  break
29366else
29367  echo "$as_me: failed program was:" >&5
29368sed 's/^/| /' conftest.$ac_ext >&5
29369
29370fi
29371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29372done
29373rm -f conftest*
29374if test -n "$ac_declaration"; then
29375  echo '#ifdef __cplusplus' >>confdefs.h
29376  echo $ac_declaration      >>confdefs.h
29377  echo '#endif'             >>confdefs.h
29378fi
29379
29380else
29381  echo "$as_me: failed program was:" >&5
29382sed 's/^/| /' conftest.$ac_ext >&5
29383
29384fi
29385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29386ac_ext=c
29387ac_cpp='$CPP $CPPFLAGS'
29388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29390ac_compiler_gnu=$ac_cv_c_compiler_gnu
29391
29392depcc="$CC"   am_compiler_list=
29393
29394echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
29395echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
29396if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
29397  echo $ECHO_N "(cached) $ECHO_C" >&6
29398else
29399  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
29400  # We make a subdir and do the tests there.  Otherwise we can end up
29401  # making bogus files that we don't know about and never remove.  For
29402  # instance it was reported that on HP-UX the gcc test will end up
29403  # making a dummy file named `D' -- because `-MD' means `put the output
29404  # in D'.
29405  mkdir conftest.dir
29406  # Copy depcomp to subdir because otherwise we won't find it if we're
29407  # using a relative directory.
29408  cp "$am_depcomp" conftest.dir
29409  cd conftest.dir
29410  # We will build objects and dependencies in a subdirectory because
29411  # it helps to detect inapplicable dependency modes.  For instance
29412  # both Tru64's cc and ICC support -MD to output dependencies as a
29413  # side effect of compilation, but ICC will put the dependencies in
29414  # the current directory while Tru64 will put them in the object
29415  # directory.
29416  mkdir sub
29417
29418  am_cv_CC_dependencies_compiler_type=none
29419  if test "$am_compiler_list" = ""; then
29420     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
29421  fi
29422  for depmode in $am_compiler_list; do
29423    # Setup a source with many dependencies, because some compilers
29424    # like to wrap large dependency lists on column 80 (with \), and
29425    # we should not choose a depcomp mode which is confused by this.
29426    #
29427    # We need to recreate these files for each test, as the compiler may
29428    # overwrite some of them when testing with obscure command lines.
29429    # This happens at least with the AIX C compiler.
29430    : > sub/conftest.c
29431    for i in 1 2 3 4 5 6; do
29432      echo '#include "conftst'$i'.h"' >> sub/conftest.c
29433      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
29434      # Solaris 8's {/usr,}/bin/sh.
29435      touch sub/conftst$i.h
29436    done
29437    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
29438
29439    case $depmode in
29440    nosideeffect)
29441      # after this tag, mechanisms are not by side-effect, so they'll
29442      # only be used when explicitly requested
29443      if test "x$enable_dependency_tracking" = xyes; then
29444	continue
29445      else
29446	break
29447      fi
29448      ;;
29449    none) break ;;
29450    esac
29451    # We check with `-c' and `-o' for the sake of the "dashmstdout"
29452    # mode.  It turns out that the SunPro C++ compiler does not properly
29453    # handle `-M -o', and we need to detect this.
29454    if depmode=$depmode \
29455       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
29456       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
29457       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
29458         >/dev/null 2>conftest.err &&
29459       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
29460       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
29461       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
29462      # icc doesn't choke on unknown options, it will just issue warnings
29463      # or remarks (even with -Werror).  So we grep stderr for any message
29464      # that says an option was ignored or not supported.
29465      # When given -MP, icc 7.0 and 7.1 complain thusly:
29466      #   icc: Command line warning: ignoring option '-M'; no argument required
29467      # The diagnosis changed in icc 8.0:
29468      #   icc: Command line remark: option '-MP' not supported
29469      if (grep 'ignoring option' conftest.err ||
29470          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
29471        am_cv_CC_dependencies_compiler_type=$depmode
29472        break
29473      fi
29474    fi
29475  done
29476
29477  cd ..
29478  rm -rf conftest.dir
29479else
29480  am_cv_CC_dependencies_compiler_type=none
29481fi
29482
29483fi
29484echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
29485echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
29486CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
29487
29488
29489
29490if
29491  test "x$enable_dependency_tracking" != xno \
29492  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
29493  am__fastdepCC_TRUE=
29494  am__fastdepCC_FALSE='#'
29495else
29496  am__fastdepCC_TRUE='#'
29497  am__fastdepCC_FALSE=
29498fi
29499
29500
29501ac_ext=cc
29502ac_cpp='$CXXCPP $CPPFLAGS'
29503ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29504ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29505ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29506
29507
29508echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
29509echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
29510if test "${ac_cv_c_const+set}" = set; then
29511  echo $ECHO_N "(cached) $ECHO_C" >&6
29512else
29513  cat >conftest.$ac_ext <<_ACEOF
29514/* confdefs.h.  */
29515_ACEOF
29516cat confdefs.h >>conftest.$ac_ext
29517cat >>conftest.$ac_ext <<_ACEOF
29518/* end confdefs.h.  */
29519
29520int
29521main ()
29522{
29523/* FIXME: Include the comments suggested by Paul. */
29524#ifndef __cplusplus
29525  /* Ultrix mips cc rejects this.  */
29526  typedef int charset[2];
29527  const charset x;
29528  /* SunOS 4.1.1 cc rejects this.  */
29529  char const *const *ccp;
29530  char **p;
29531  /* NEC SVR4.0.2 mips cc rejects this.  */
29532  struct point {int x, y;};
29533  static struct point const zero = {0,0};
29534  /* AIX XL C 1.02.0.0 rejects this.
29535     It does not let you subtract one const X* pointer from another in
29536     an arm of an if-expression whose if-part is not a constant
29537     expression */
29538  const char *g = "string";
29539  ccp = &g + (g ? g-g : 0);
29540  /* HPUX 7.0 cc rejects these. */
29541  ++ccp;
29542  p = (char**) ccp;
29543  ccp = (char const *const *) p;
29544  { /* SCO 3.2v4 cc rejects this.  */
29545    char *t;
29546    char const *s = 0 ? (char *) 0 : (char const *) 0;
29547
29548    *t++ = 0;
29549  }
29550  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
29551    int x[] = {25, 17};
29552    const int *foo = &x[0];
29553    ++foo;
29554  }
29555  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
29556    typedef const int *iptr;
29557    iptr p = 0;
29558    ++p;
29559  }
29560  { /* AIX XL C 1.02.0.0 rejects this saying
29561       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
29562    struct s { int j; const int *ap[3]; };
29563    struct s *b; b->j = 5;
29564  }
29565  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
29566    const int foo = 10;
29567  }
29568#endif
29569
29570  ;
29571  return 0;
29572}
29573_ACEOF
29574rm -f conftest.$ac_objext
29575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29576  (eval $ac_compile) 2>conftest.er1
29577  ac_status=$?
29578  grep -v '^ *+' conftest.er1 >conftest.err
29579  rm -f conftest.er1
29580  cat conftest.err >&5
29581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29582  (exit $ac_status); } &&
29583	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
29584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29585  (eval $ac_try) 2>&5
29586  ac_status=$?
29587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29588  (exit $ac_status); }; } &&
29589	 { ac_try='test -s conftest.$ac_objext'
29590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29591  (eval $ac_try) 2>&5
29592  ac_status=$?
29593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29594  (exit $ac_status); }; }; then
29595  ac_cv_c_const=yes
29596else
29597  echo "$as_me: failed program was:" >&5
29598sed 's/^/| /' conftest.$ac_ext >&5
29599
29600ac_cv_c_const=no
29601fi
29602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29603fi
29604echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
29605echo "${ECHO_T}$ac_cv_c_const" >&6
29606if test $ac_cv_c_const = no; then
29607
29608cat >>confdefs.h <<\_ACEOF
29609#define const
29610_ACEOF
29611
29612fi
29613
29614echo "$as_me:$LINENO: checking for size_t" >&5
29615echo $ECHO_N "checking for size_t... $ECHO_C" >&6
29616if test "${ac_cv_type_size_t+set}" = set; then
29617  echo $ECHO_N "(cached) $ECHO_C" >&6
29618else
29619  cat >conftest.$ac_ext <<_ACEOF
29620/* confdefs.h.  */
29621_ACEOF
29622cat confdefs.h >>conftest.$ac_ext
29623cat >>conftest.$ac_ext <<_ACEOF
29624/* end confdefs.h.  */
29625$ac_includes_default
29626int
29627main ()
29628{
29629if ((size_t *) 0)
29630  return 0;
29631if (sizeof (size_t))
29632  return 0;
29633  ;
29634  return 0;
29635}
29636_ACEOF
29637rm -f conftest.$ac_objext
29638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29639  (eval $ac_compile) 2>conftest.er1
29640  ac_status=$?
29641  grep -v '^ *+' conftest.er1 >conftest.err
29642  rm -f conftest.er1
29643  cat conftest.err >&5
29644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29645  (exit $ac_status); } &&
29646	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
29647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29648  (eval $ac_try) 2>&5
29649  ac_status=$?
29650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651  (exit $ac_status); }; } &&
29652	 { ac_try='test -s conftest.$ac_objext'
29653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29654  (eval $ac_try) 2>&5
29655  ac_status=$?
29656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657  (exit $ac_status); }; }; then
29658  ac_cv_type_size_t=yes
29659else
29660  echo "$as_me: failed program was:" >&5
29661sed 's/^/| /' conftest.$ac_ext >&5
29662
29663ac_cv_type_size_t=no
29664fi
29665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29666fi
29667echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29668echo "${ECHO_T}$ac_cv_type_size_t" >&6
29669if test $ac_cv_type_size_t = yes; then
29670  :
29671else
29672
29673cat >>confdefs.h <<_ACEOF
29674#define size_t unsigned
29675_ACEOF
29676
29677fi
29678
29679
29680# Checks for libraries.
29681
29682SCIM_VERSION=0.99.8
29683
29684
29685
29686if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29687	if test -n "$ac_tool_prefix"; then
29688  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29689set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29690echo "$as_me:$LINENO: checking for $ac_word" >&5
29691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29692if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29693  echo $ECHO_N "(cached) $ECHO_C" >&6
29694else
29695  case $PKG_CONFIG in
29696  [\\/]* | ?:[\\/]*)
29697  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29698  ;;
29699  *)
29700  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29701for as_dir in $PATH
29702do
29703  IFS=$as_save_IFS
29704  test -z "$as_dir" && as_dir=.
29705  for ac_exec_ext in '' $ac_executable_extensions; do
29706  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29707    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29708    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29709    break 2
29710  fi
29711done
29712done
29713
29714  ;;
29715esac
29716fi
29717PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29718
29719if test -n "$PKG_CONFIG"; then
29720  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29721echo "${ECHO_T}$PKG_CONFIG" >&6
29722else
29723  echo "$as_me:$LINENO: result: no" >&5
29724echo "${ECHO_T}no" >&6
29725fi
29726
29727fi
29728if test -z "$ac_cv_path_PKG_CONFIG"; then
29729  ac_pt_PKG_CONFIG=$PKG_CONFIG
29730  # Extract the first word of "pkg-config", so it can be a program name with args.
29731set dummy pkg-config; ac_word=$2
29732echo "$as_me:$LINENO: checking for $ac_word" >&5
29733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29734if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29735  echo $ECHO_N "(cached) $ECHO_C" >&6
29736else
29737  case $ac_pt_PKG_CONFIG in
29738  [\\/]* | ?:[\\/]*)
29739  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29740  ;;
29741  *)
29742  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29743for as_dir in $PATH
29744do
29745  IFS=$as_save_IFS
29746  test -z "$as_dir" && as_dir=.
29747  for ac_exec_ext in '' $ac_executable_extensions; do
29748  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29749    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29751    break 2
29752  fi
29753done
29754done
29755
29756  ;;
29757esac
29758fi
29759ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29760
29761if test -n "$ac_pt_PKG_CONFIG"; then
29762  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29763echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
29764else
29765  echo "$as_me:$LINENO: result: no" >&5
29766echo "${ECHO_T}no" >&6
29767fi
29768
29769  PKG_CONFIG=$ac_pt_PKG_CONFIG
29770else
29771  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29772fi
29773
29774fi
29775if test -n "$PKG_CONFIG"; then
29776	_pkg_min_version=0.9.0
29777	echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29778echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29779	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29780		echo "$as_me:$LINENO: result: yes" >&5
29781echo "${ECHO_T}yes" >&6
29782	else
29783		echo "$as_me:$LINENO: result: no" >&5
29784echo "${ECHO_T}no" >&6
29785		PKG_CONFIG=""
29786	fi
29787
29788fi
29789
29790pkg_failed=no
29791echo "$as_me:$LINENO: checking for SCIM" >&5
29792echo $ECHO_N "checking for SCIM... $ECHO_C" >&6
29793
29794if test -n "$PKG_CONFIG"; then
29795        if test -n "$PKG_CONFIG" && \
29796    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim >= \$SCIM_VERSION\"") >&5
29797  ($PKG_CONFIG --exists --print-errors "scim >= $SCIM_VERSION") 2>&5
29798  ac_status=$?
29799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29800  (exit $ac_status); }; then
29801  pkg_cv_SCIM_CFLAGS=`$PKG_CONFIG --cflags "scim >= $SCIM_VERSION" 2>/dev/null`
29802else
29803  pkg_failed=yes
29804fi
29805else
29806	pkg_failed=untried
29807fi
29808if test -n "$PKG_CONFIG"; then
29809        if test -n "$PKG_CONFIG" && \
29810    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim >= \$SCIM_VERSION\"") >&5
29811  ($PKG_CONFIG --exists --print-errors "scim >= $SCIM_VERSION") 2>&5
29812  ac_status=$?
29813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814  (exit $ac_status); }; then
29815  pkg_cv_SCIM_LIBS=`$PKG_CONFIG --libs "scim >= $SCIM_VERSION" 2>/dev/null`
29816else
29817  pkg_failed=yes
29818fi
29819else
29820	pkg_failed=untried
29821fi
29822
29823if test $pkg_failed = yes; then
29824	SCIM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "scim >= $SCIM_VERSION"`
29825	# Put the nasty error message in config.log where it belongs
29826	echo "$SCIM_PKG_ERRORS" 1>&5
29827
29828	{ { echo "$as_me:$LINENO: error: Package requirements (scim >= $SCIM_VERSION) were not met.
29829Consider adjusting the PKG_CONFIG_PATH environment variable if you
29830installed software in a non-standard prefix.
29831
29832Alternatively you may set the SCIM_CFLAGS and SCIM_LIBS environment variables
29833to avoid the need to call pkg-config.  See the pkg-config man page for
29834more details." >&5
29835echo "$as_me: error: Package requirements (scim >= $SCIM_VERSION) were not met.
29836Consider adjusting the PKG_CONFIG_PATH environment variable if you
29837installed software in a non-standard prefix.
29838
29839Alternatively you may set the SCIM_CFLAGS and SCIM_LIBS environment variables
29840to avoid the need to call pkg-config.  See the pkg-config man page for
29841more details." >&2;}
29842   { (exit 1); exit 1; }; }
29843elif test $pkg_failed = untried; then
29844	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
29845is in your PATH or set the PKG_CONFIG environment variable to the full
29846path to pkg-config.
29847
29848Alternatively you may set the SCIM_CFLAGS and SCIM_LIBS environment variables
29849to avoid the need to call pkg-config.  See the pkg-config man page for
29850more details.
29851
29852To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
29853See \`config.log' for more details." >&5
29854echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
29855is in your PATH or set the PKG_CONFIG environment variable to the full
29856path to pkg-config.
29857
29858Alternatively you may set the SCIM_CFLAGS and SCIM_LIBS environment variables
29859to avoid the need to call pkg-config.  See the pkg-config man page for
29860more details.
29861
29862To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
29863See \`config.log' for more details." >&2;}
29864   { (exit 1); exit 1; }; }
29865else
29866	SCIM_CFLAGS=$pkg_cv_SCIM_CFLAGS
29867	SCIM_LIBS=$pkg_cv_SCIM_LIBS
29868        echo "$as_me:$LINENO: result: yes" >&5
29869echo "${ECHO_T}yes" >&6
29870	:
29871fi
29872
29873# Check if we should build setup module
29874
29875pkg_failed=no
29876echo "$as_me:$LINENO: checking for SCIM_GTKUTILS" >&5
29877echo $ECHO_N "checking for SCIM_GTKUTILS... $ECHO_C" >&6
29878
29879if test -n "$PKG_CONFIG"; then
29880        if test -n "$PKG_CONFIG" && \
29881    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim-gtkutils >= \$SCIM_VERSION\"") >&5
29882  ($PKG_CONFIG --exists --print-errors "scim-gtkutils >= $SCIM_VERSION") 2>&5
29883  ac_status=$?
29884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885  (exit $ac_status); }; then
29886  pkg_cv_SCIM_GTKUTILS_CFLAGS=`$PKG_CONFIG --cflags "scim-gtkutils >= $SCIM_VERSION" 2>/dev/null`
29887else
29888  pkg_failed=yes
29889fi
29890else
29891	pkg_failed=untried
29892fi
29893if test -n "$PKG_CONFIG"; then
29894        if test -n "$PKG_CONFIG" && \
29895    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim-gtkutils >= \$SCIM_VERSION\"") >&5
29896  ($PKG_CONFIG --exists --print-errors "scim-gtkutils >= $SCIM_VERSION") 2>&5
29897  ac_status=$?
29898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29899  (exit $ac_status); }; then
29900  pkg_cv_SCIM_GTKUTILS_LIBS=`$PKG_CONFIG --libs "scim-gtkutils >= $SCIM_VERSION" 2>/dev/null`
29901else
29902  pkg_failed=yes
29903fi
29904else
29905	pkg_failed=untried
29906fi
29907
29908if test $pkg_failed = yes; then
29909	SCIM_GTKUTILS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "scim-gtkutils >= $SCIM_VERSION"`
29910	# Put the nasty error message in config.log where it belongs
29911	echo "$SCIM_GTKUTILS_PKG_ERRORS" 1>&5
29912
29913	SCIM_HAS_GTKUTILS=no
29914elif test $pkg_failed = untried; then
29915	SCIM_HAS_GTKUTILS=no
29916else
29917	SCIM_GTKUTILS_CFLAGS=$pkg_cv_SCIM_GTKUTILS_CFLAGS
29918	SCIM_GTKUTILS_LIBS=$pkg_cv_SCIM_GTKUTILS_LIBS
29919        echo "$as_me:$LINENO: result: yes" >&5
29920echo "${ECHO_T}yes" >&6
29921	SCIM_HAS_GTKUTILS=yes
29922fi
29923
29924
29925
29926
29927
29928
29929if test "$SCIM_HAS_GTKUTILS" = "yes"; then
29930  SCIM_BUILD_SETUP_TRUE=
29931  SCIM_BUILD_SETUP_FALSE='#'
29932else
29933  SCIM_BUILD_SETUP_TRUE='#'
29934  SCIM_BUILD_SETUP_FALSE=
29935fi
29936
29937
29938if test "$SCIM_HAS_GTKUTILS" = "yes"; then
29939  SCIM_BUILD_SETUP=1
29940else
29941  SCIM_BUILD_SETUP=0
29942fi
29943
29944
29945
29946# Checks for header files.
29947
29948echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29949echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
29950if test "${ac_cv_header_stdc+set}" = set; then
29951  echo $ECHO_N "(cached) $ECHO_C" >&6
29952else
29953  cat >conftest.$ac_ext <<_ACEOF
29954/* confdefs.h.  */
29955_ACEOF
29956cat confdefs.h >>conftest.$ac_ext
29957cat >>conftest.$ac_ext <<_ACEOF
29958/* end confdefs.h.  */
29959#include <stdlib.h>
29960#include <stdarg.h>
29961#include <string.h>
29962#include <float.h>
29963
29964int
29965main ()
29966{
29967
29968  ;
29969  return 0;
29970}
29971_ACEOF
29972rm -f conftest.$ac_objext
29973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29974  (eval $ac_compile) 2>conftest.er1
29975  ac_status=$?
29976  grep -v '^ *+' conftest.er1 >conftest.err
29977  rm -f conftest.er1
29978  cat conftest.err >&5
29979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980  (exit $ac_status); } &&
29981	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
29982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29983  (eval $ac_try) 2>&5
29984  ac_status=$?
29985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986  (exit $ac_status); }; } &&
29987	 { ac_try='test -s conftest.$ac_objext'
29988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29989  (eval $ac_try) 2>&5
29990  ac_status=$?
29991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992  (exit $ac_status); }; }; then
29993  ac_cv_header_stdc=yes
29994else
29995  echo "$as_me: failed program was:" >&5
29996sed 's/^/| /' conftest.$ac_ext >&5
29997
29998ac_cv_header_stdc=no
29999fi
30000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30001
30002if test $ac_cv_header_stdc = yes; then
30003  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30004  cat >conftest.$ac_ext <<_ACEOF
30005/* confdefs.h.  */
30006_ACEOF
30007cat confdefs.h >>conftest.$ac_ext
30008cat >>conftest.$ac_ext <<_ACEOF
30009/* end confdefs.h.  */
30010#include <string.h>
30011
30012_ACEOF
30013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30014  $EGREP "memchr" >/dev/null 2>&1; then
30015  :
30016else
30017  ac_cv_header_stdc=no
30018fi
30019rm -f conftest*
30020
30021fi
30022
30023if test $ac_cv_header_stdc = yes; then
30024  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30025  cat >conftest.$ac_ext <<_ACEOF
30026/* confdefs.h.  */
30027_ACEOF
30028cat confdefs.h >>conftest.$ac_ext
30029cat >>conftest.$ac_ext <<_ACEOF
30030/* end confdefs.h.  */
30031#include <stdlib.h>
30032
30033_ACEOF
30034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30035  $EGREP "free" >/dev/null 2>&1; then
30036  :
30037else
30038  ac_cv_header_stdc=no
30039fi
30040rm -f conftest*
30041
30042fi
30043
30044if test $ac_cv_header_stdc = yes; then
30045  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30046  if test "$cross_compiling" = yes; then
30047  :
30048else
30049  cat >conftest.$ac_ext <<_ACEOF
30050/* confdefs.h.  */
30051_ACEOF
30052cat confdefs.h >>conftest.$ac_ext
30053cat >>conftest.$ac_ext <<_ACEOF
30054/* end confdefs.h.  */
30055#include <ctype.h>
30056#if ((' ' & 0x0FF) == 0x020)
30057# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30058# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30059#else
30060# define ISLOWER(c) \
30061		   (('a' <= (c) && (c) <= 'i') \
30062		     || ('j' <= (c) && (c) <= 'r') \
30063		     || ('s' <= (c) && (c) <= 'z'))
30064# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30065#endif
30066
30067#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30068int
30069main ()
30070{
30071  int i;
30072  for (i = 0; i < 256; i++)
30073    if (XOR (islower (i), ISLOWER (i))
30074	|| toupper (i) != TOUPPER (i))
30075      exit(2);
30076  exit (0);
30077}
30078_ACEOF
30079rm -f conftest$ac_exeext
30080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30081  (eval $ac_link) 2>&5
30082  ac_status=$?
30083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30084  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30086  (eval $ac_try) 2>&5
30087  ac_status=$?
30088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089  (exit $ac_status); }; }; then
30090  :
30091else
30092  echo "$as_me: program exited with status $ac_status" >&5
30093echo "$as_me: failed program was:" >&5
30094sed 's/^/| /' conftest.$ac_ext >&5
30095
30096( exit $ac_status )
30097ac_cv_header_stdc=no
30098fi
30099rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30100fi
30101fi
30102fi
30103echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30104echo "${ECHO_T}$ac_cv_header_stdc" >&6
30105if test $ac_cv_header_stdc = yes; then
30106
30107cat >>confdefs.h <<\_ACEOF
30108#define STDC_HEADERS 1
30109_ACEOF
30110
30111fi
30112
30113# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30114# for constant arguments.  Useless!
30115echo "$as_me:$LINENO: checking for working alloca.h" >&5
30116echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
30117if test "${ac_cv_working_alloca_h+set}" = set; then
30118  echo $ECHO_N "(cached) $ECHO_C" >&6
30119else
30120  cat >conftest.$ac_ext <<_ACEOF
30121/* confdefs.h.  */
30122_ACEOF
30123cat confdefs.h >>conftest.$ac_ext
30124cat >>conftest.$ac_ext <<_ACEOF
30125/* end confdefs.h.  */
30126#include <alloca.h>
30127int
30128main ()
30129{
30130char *p = (char *) alloca (2 * sizeof (int));
30131  ;
30132  return 0;
30133}
30134_ACEOF
30135rm -f conftest.$ac_objext conftest$ac_exeext
30136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30137  (eval $ac_link) 2>conftest.er1
30138  ac_status=$?
30139  grep -v '^ *+' conftest.er1 >conftest.err
30140  rm -f conftest.er1
30141  cat conftest.err >&5
30142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30143  (exit $ac_status); } &&
30144	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
30145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30146  (eval $ac_try) 2>&5
30147  ac_status=$?
30148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30149  (exit $ac_status); }; } &&
30150	 { ac_try='test -s conftest$ac_exeext'
30151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30152  (eval $ac_try) 2>&5
30153  ac_status=$?
30154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155  (exit $ac_status); }; }; then
30156  ac_cv_working_alloca_h=yes
30157else
30158  echo "$as_me: failed program was:" >&5
30159sed 's/^/| /' conftest.$ac_ext >&5
30160
30161ac_cv_working_alloca_h=no
30162fi
30163rm -f conftest.err conftest.$ac_objext \
30164      conftest$ac_exeext conftest.$ac_ext
30165fi
30166echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30167echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
30168if test $ac_cv_working_alloca_h = yes; then
30169
30170cat >>confdefs.h <<\_ACEOF
30171#define HAVE_ALLOCA_H 1
30172_ACEOF
30173
30174fi
30175
30176echo "$as_me:$LINENO: checking for alloca" >&5
30177echo $ECHO_N "checking for alloca... $ECHO_C" >&6
30178if test "${ac_cv_func_alloca_works+set}" = set; then
30179  echo $ECHO_N "(cached) $ECHO_C" >&6
30180else
30181  cat >conftest.$ac_ext <<_ACEOF
30182/* confdefs.h.  */
30183_ACEOF
30184cat confdefs.h >>conftest.$ac_ext
30185cat >>conftest.$ac_ext <<_ACEOF
30186/* end confdefs.h.  */
30187#ifdef __GNUC__
30188# define alloca __builtin_alloca
30189#else
30190# ifdef _MSC_VER
30191#  include <malloc.h>
30192#  define alloca _alloca
30193# else
30194#  if HAVE_ALLOCA_H
30195#   include <alloca.h>
30196#  else
30197#   ifdef _AIX
30198 #pragma alloca
30199#   else
30200#    ifndef alloca /* predefined by HP cc +Olibcalls */
30201char *alloca ();
30202#    endif
30203#   endif
30204#  endif
30205# endif
30206#endif
30207
30208int
30209main ()
30210{
30211char *p = (char *) alloca (1);
30212  ;
30213  return 0;
30214}
30215_ACEOF
30216rm -f conftest.$ac_objext conftest$ac_exeext
30217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30218  (eval $ac_link) 2>conftest.er1
30219  ac_status=$?
30220  grep -v '^ *+' conftest.er1 >conftest.err
30221  rm -f conftest.er1
30222  cat conftest.err >&5
30223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30224  (exit $ac_status); } &&
30225	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
30226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30227  (eval $ac_try) 2>&5
30228  ac_status=$?
30229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30230  (exit $ac_status); }; } &&
30231	 { ac_try='test -s conftest$ac_exeext'
30232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30233  (eval $ac_try) 2>&5
30234  ac_status=$?
30235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30236  (exit $ac_status); }; }; then
30237  ac_cv_func_alloca_works=yes
30238else
30239  echo "$as_me: failed program was:" >&5
30240sed 's/^/| /' conftest.$ac_ext >&5
30241
30242ac_cv_func_alloca_works=no
30243fi
30244rm -f conftest.err conftest.$ac_objext \
30245      conftest$ac_exeext conftest.$ac_ext
30246fi
30247echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30248echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
30249
30250if test $ac_cv_func_alloca_works = yes; then
30251
30252cat >>confdefs.h <<\_ACEOF
30253#define HAVE_ALLOCA 1
30254_ACEOF
30255
30256else
30257  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30258# that cause trouble.  Some versions do not even contain alloca or
30259# contain a buggy version.  If you still want to use their alloca,
30260# use ar to extract alloca.o from them instead of compiling alloca.c.
30261
30262ALLOCA=alloca.$ac_objext
30263
30264cat >>confdefs.h <<\_ACEOF
30265#define C_ALLOCA 1
30266_ACEOF
30267
30268
30269echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30270echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
30271if test "${ac_cv_os_cray+set}" = set; then
30272  echo $ECHO_N "(cached) $ECHO_C" >&6
30273else
30274  cat >conftest.$ac_ext <<_ACEOF
30275/* confdefs.h.  */
30276_ACEOF
30277cat confdefs.h >>conftest.$ac_ext
30278cat >>conftest.$ac_ext <<_ACEOF
30279/* end confdefs.h.  */
30280#if defined(CRAY) && ! defined(CRAY2)
30281webecray
30282#else
30283wenotbecray
30284#endif
30285
30286_ACEOF
30287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30288  $EGREP "webecray" >/dev/null 2>&1; then
30289  ac_cv_os_cray=yes
30290else
30291  ac_cv_os_cray=no
30292fi
30293rm -f conftest*
30294
30295fi
30296echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30297echo "${ECHO_T}$ac_cv_os_cray" >&6
30298if test $ac_cv_os_cray = yes; then
30299  for ac_func in _getb67 GETB67 getb67; do
30300    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30301echo "$as_me:$LINENO: checking for $ac_func" >&5
30302echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30303if eval "test \"\${$as_ac_var+set}\" = set"; then
30304  echo $ECHO_N "(cached) $ECHO_C" >&6
30305else
30306  cat >conftest.$ac_ext <<_ACEOF
30307/* confdefs.h.  */
30308_ACEOF
30309cat confdefs.h >>conftest.$ac_ext
30310cat >>conftest.$ac_ext <<_ACEOF
30311/* end confdefs.h.  */
30312/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30313   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30314#define $ac_func innocuous_$ac_func
30315
30316/* System header to define __stub macros and hopefully few prototypes,
30317    which can conflict with char $ac_func (); below.
30318    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30319    <limits.h> exists even on freestanding compilers.  */
30320
30321#ifdef __STDC__
30322# include <limits.h>
30323#else
30324# include <assert.h>
30325#endif
30326
30327#undef $ac_func
30328
30329/* Override any gcc2 internal prototype to avoid an error.  */
30330#ifdef __cplusplus
30331extern "C"
30332{
30333#endif
30334/* We use char because int might match the return type of a gcc2
30335   builtin and then its argument prototype would still apply.  */
30336char $ac_func ();
30337/* The GNU C library defines this for functions which it implements
30338    to always fail with ENOSYS.  Some functions are actually named
30339    something starting with __ and the normal name is an alias.  */
30340#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30341choke me
30342#else
30343char (*f) () = $ac_func;
30344#endif
30345#ifdef __cplusplus
30346}
30347#endif
30348
30349int
30350main ()
30351{
30352return f != $ac_func;
30353  ;
30354  return 0;
30355}
30356_ACEOF
30357rm -f conftest.$ac_objext conftest$ac_exeext
30358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30359  (eval $ac_link) 2>conftest.er1
30360  ac_status=$?
30361  grep -v '^ *+' conftest.er1 >conftest.err
30362  rm -f conftest.er1
30363  cat conftest.err >&5
30364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365  (exit $ac_status); } &&
30366	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
30367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30368  (eval $ac_try) 2>&5
30369  ac_status=$?
30370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371  (exit $ac_status); }; } &&
30372	 { ac_try='test -s conftest$ac_exeext'
30373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30374  (eval $ac_try) 2>&5
30375  ac_status=$?
30376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377  (exit $ac_status); }; }; then
30378  eval "$as_ac_var=yes"
30379else
30380  echo "$as_me: failed program was:" >&5
30381sed 's/^/| /' conftest.$ac_ext >&5
30382
30383eval "$as_ac_var=no"
30384fi
30385rm -f conftest.err conftest.$ac_objext \
30386      conftest$ac_exeext conftest.$ac_ext
30387fi
30388echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30389echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30390if test `eval echo '${'$as_ac_var'}'` = yes; then
30391
30392cat >>confdefs.h <<_ACEOF
30393#define CRAY_STACKSEG_END $ac_func
30394_ACEOF
30395
30396    break
30397fi
30398
30399  done
30400fi
30401
30402echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30403echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
30404if test "${ac_cv_c_stack_direction+set}" = set; then
30405  echo $ECHO_N "(cached) $ECHO_C" >&6
30406else
30407  if test "$cross_compiling" = yes; then
30408  ac_cv_c_stack_direction=0
30409else
30410  cat >conftest.$ac_ext <<_ACEOF
30411/* confdefs.h.  */
30412_ACEOF
30413cat confdefs.h >>conftest.$ac_ext
30414cat >>conftest.$ac_ext <<_ACEOF
30415/* end confdefs.h.  */
30416int
30417find_stack_direction ()
30418{
30419  static char *addr = 0;
30420  auto char dummy;
30421  if (addr == 0)
30422    {
30423      addr = &dummy;
30424      return find_stack_direction ();
30425    }
30426  else
30427    return (&dummy > addr) ? 1 : -1;
30428}
30429
30430int
30431main ()
30432{
30433  exit (find_stack_direction () < 0);
30434}
30435_ACEOF
30436rm -f conftest$ac_exeext
30437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30438  (eval $ac_link) 2>&5
30439  ac_status=$?
30440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30441  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30443  (eval $ac_try) 2>&5
30444  ac_status=$?
30445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30446  (exit $ac_status); }; }; then
30447  ac_cv_c_stack_direction=1
30448else
30449  echo "$as_me: program exited with status $ac_status" >&5
30450echo "$as_me: failed program was:" >&5
30451sed 's/^/| /' conftest.$ac_ext >&5
30452
30453( exit $ac_status )
30454ac_cv_c_stack_direction=-1
30455fi
30456rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30457fi
30458fi
30459echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30460echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
30461
30462cat >>confdefs.h <<_ACEOF
30463#define STACK_DIRECTION $ac_cv_c_stack_direction
30464_ACEOF
30465
30466
30467fi
30468
30469
30470
30471
30472
30473
30474
30475
30476
30477
30478
30479
30480
30481
30482
30483
30484
30485
30486
30487for ac_header in argz.h fcntl.h float.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h stddef.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/param.h unistd.h wchar.h
30488do
30489as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30490if eval "test \"\${$as_ac_Header+set}\" = set"; then
30491  echo "$as_me:$LINENO: checking for $ac_header" >&5
30492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30493if eval "test \"\${$as_ac_Header+set}\" = set"; then
30494  echo $ECHO_N "(cached) $ECHO_C" >&6
30495fi
30496echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30497echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30498else
30499  # Is the header compilable?
30500echo "$as_me:$LINENO: checking $ac_header usability" >&5
30501echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30502cat >conftest.$ac_ext <<_ACEOF
30503/* confdefs.h.  */
30504_ACEOF
30505cat confdefs.h >>conftest.$ac_ext
30506cat >>conftest.$ac_ext <<_ACEOF
30507/* end confdefs.h.  */
30508$ac_includes_default
30509#include <$ac_header>
30510_ACEOF
30511rm -f conftest.$ac_objext
30512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30513  (eval $ac_compile) 2>conftest.er1
30514  ac_status=$?
30515  grep -v '^ *+' conftest.er1 >conftest.err
30516  rm -f conftest.er1
30517  cat conftest.err >&5
30518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519  (exit $ac_status); } &&
30520	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
30521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30522  (eval $ac_try) 2>&5
30523  ac_status=$?
30524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525  (exit $ac_status); }; } &&
30526	 { ac_try='test -s conftest.$ac_objext'
30527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30528  (eval $ac_try) 2>&5
30529  ac_status=$?
30530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531  (exit $ac_status); }; }; then
30532  ac_header_compiler=yes
30533else
30534  echo "$as_me: failed program was:" >&5
30535sed 's/^/| /' conftest.$ac_ext >&5
30536
30537ac_header_compiler=no
30538fi
30539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30540echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30541echo "${ECHO_T}$ac_header_compiler" >&6
30542
30543# Is the header present?
30544echo "$as_me:$LINENO: checking $ac_header presence" >&5
30545echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30546cat >conftest.$ac_ext <<_ACEOF
30547/* confdefs.h.  */
30548_ACEOF
30549cat confdefs.h >>conftest.$ac_ext
30550cat >>conftest.$ac_ext <<_ACEOF
30551/* end confdefs.h.  */
30552#include <$ac_header>
30553_ACEOF
30554if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30555  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30556  ac_status=$?
30557  grep -v '^ *+' conftest.er1 >conftest.err
30558  rm -f conftest.er1
30559  cat conftest.err >&5
30560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561  (exit $ac_status); } >/dev/null; then
30562  if test -s conftest.err; then
30563    ac_cpp_err=$ac_cxx_preproc_warn_flag
30564    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
30565  else
30566    ac_cpp_err=
30567  fi
30568else
30569  ac_cpp_err=yes
30570fi
30571if test -z "$ac_cpp_err"; then
30572  ac_header_preproc=yes
30573else
30574  echo "$as_me: failed program was:" >&5
30575sed 's/^/| /' conftest.$ac_ext >&5
30576
30577  ac_header_preproc=no
30578fi
30579rm -f conftest.err conftest.$ac_ext
30580echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30581echo "${ECHO_T}$ac_header_preproc" >&6
30582
30583# So?  What about this header?
30584case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
30585  yes:no: )
30586    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30587echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30588    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30589echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30590    ac_header_preproc=yes
30591    ;;
30592  no:yes:* )
30593    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30594echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30595    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30596echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30597    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30598echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30599    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30600echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30601    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30602echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30603    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30604echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30605    (
30606      cat <<\_ASBOX
30607## ---------------------------------- ##
30608## Report this to poincare@ikezoe.net ##
30609## ---------------------------------- ##
30610_ASBOX
30611    ) |
30612      sed "s/^/$as_me: WARNING:     /" >&2
30613    ;;
30614esac
30615echo "$as_me:$LINENO: checking for $ac_header" >&5
30616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30617if eval "test \"\${$as_ac_Header+set}\" = set"; then
30618  echo $ECHO_N "(cached) $ECHO_C" >&6
30619else
30620  eval "$as_ac_Header=\$ac_header_preproc"
30621fi
30622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30623echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30624
30625fi
30626if test `eval echo '${'$as_ac_Header'}'` = yes; then
30627  cat >>confdefs.h <<_ACEOF
30628#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30629_ACEOF
30630
30631fi
30632
30633done
30634
30635
30636# Checks for library functions.
30637
30638
30639# Checks for Canna Library
30640if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then
30641  echo "$as_me:$LINENO: checking for canna/jrkanji.h" >&5
30642echo $ECHO_N "checking for canna/jrkanji.h... $ECHO_C" >&6
30643if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then
30644  echo $ECHO_N "(cached) $ECHO_C" >&6
30645fi
30646echo "$as_me:$LINENO: result: $ac_cv_header_canna_jrkanji_h" >&5
30647echo "${ECHO_T}$ac_cv_header_canna_jrkanji_h" >&6
30648else
30649  # Is the header compilable?
30650echo "$as_me:$LINENO: checking canna/jrkanji.h usability" >&5
30651echo $ECHO_N "checking canna/jrkanji.h usability... $ECHO_C" >&6
30652cat >conftest.$ac_ext <<_ACEOF
30653/* confdefs.h.  */
30654_ACEOF
30655cat confdefs.h >>conftest.$ac_ext
30656cat >>conftest.$ac_ext <<_ACEOF
30657/* end confdefs.h.  */
30658$ac_includes_default
30659#include <canna/jrkanji.h>
30660_ACEOF
30661rm -f conftest.$ac_objext
30662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30663  (eval $ac_compile) 2>conftest.er1
30664  ac_status=$?
30665  grep -v '^ *+' conftest.er1 >conftest.err
30666  rm -f conftest.er1
30667  cat conftest.err >&5
30668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669  (exit $ac_status); } &&
30670	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
30671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30672  (eval $ac_try) 2>&5
30673  ac_status=$?
30674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675  (exit $ac_status); }; } &&
30676	 { ac_try='test -s conftest.$ac_objext'
30677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30678  (eval $ac_try) 2>&5
30679  ac_status=$?
30680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30681  (exit $ac_status); }; }; then
30682  ac_header_compiler=yes
30683else
30684  echo "$as_me: failed program was:" >&5
30685sed 's/^/| /' conftest.$ac_ext >&5
30686
30687ac_header_compiler=no
30688fi
30689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30690echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30691echo "${ECHO_T}$ac_header_compiler" >&6
30692
30693# Is the header present?
30694echo "$as_me:$LINENO: checking canna/jrkanji.h presence" >&5
30695echo $ECHO_N "checking canna/jrkanji.h presence... $ECHO_C" >&6
30696cat >conftest.$ac_ext <<_ACEOF
30697/* confdefs.h.  */
30698_ACEOF
30699cat confdefs.h >>conftest.$ac_ext
30700cat >>conftest.$ac_ext <<_ACEOF
30701/* end confdefs.h.  */
30702#include <canna/jrkanji.h>
30703_ACEOF
30704if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30705  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30706  ac_status=$?
30707  grep -v '^ *+' conftest.er1 >conftest.err
30708  rm -f conftest.er1
30709  cat conftest.err >&5
30710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711  (exit $ac_status); } >/dev/null; then
30712  if test -s conftest.err; then
30713    ac_cpp_err=$ac_cxx_preproc_warn_flag
30714    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
30715  else
30716    ac_cpp_err=
30717  fi
30718else
30719  ac_cpp_err=yes
30720fi
30721if test -z "$ac_cpp_err"; then
30722  ac_header_preproc=yes
30723else
30724  echo "$as_me: failed program was:" >&5
30725sed 's/^/| /' conftest.$ac_ext >&5
30726
30727  ac_header_preproc=no
30728fi
30729rm -f conftest.err conftest.$ac_ext
30730echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30731echo "${ECHO_T}$ac_header_preproc" >&6
30732
30733# So?  What about this header?
30734case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
30735  yes:no: )
30736    { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: accepted by the compiler, rejected by the preprocessor!" >&5
30737echo "$as_me: WARNING: canna/jrkanji.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30738    { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: proceeding with the compiler's result" >&5
30739echo "$as_me: WARNING: canna/jrkanji.h: proceeding with the compiler's result" >&2;}
30740    ac_header_preproc=yes
30741    ;;
30742  no:yes:* )
30743    { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: present but cannot be compiled" >&5
30744echo "$as_me: WARNING: canna/jrkanji.h: present but cannot be compiled" >&2;}
30745    { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h:     check for missing prerequisite headers?" >&5
30746echo "$as_me: WARNING: canna/jrkanji.h:     check for missing prerequisite headers?" >&2;}
30747    { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: see the Autoconf documentation" >&5
30748echo "$as_me: WARNING: canna/jrkanji.h: see the Autoconf documentation" >&2;}
30749    { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h:     section \"Present But Cannot Be Compiled\"" >&5
30750echo "$as_me: WARNING: canna/jrkanji.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30751    { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: proceeding with the preprocessor's result" >&5
30752echo "$as_me: WARNING: canna/jrkanji.h: proceeding with the preprocessor's result" >&2;}
30753    { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: in the future, the compiler will take precedence" >&5
30754echo "$as_me: WARNING: canna/jrkanji.h: in the future, the compiler will take precedence" >&2;}
30755    (
30756      cat <<\_ASBOX
30757## ---------------------------------- ##
30758## Report this to poincare@ikezoe.net ##
30759## ---------------------------------- ##
30760_ASBOX
30761    ) |
30762      sed "s/^/$as_me: WARNING:     /" >&2
30763    ;;
30764esac
30765echo "$as_me:$LINENO: checking for canna/jrkanji.h" >&5
30766echo $ECHO_N "checking for canna/jrkanji.h... $ECHO_C" >&6
30767if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then
30768  echo $ECHO_N "(cached) $ECHO_C" >&6
30769else
30770  ac_cv_header_canna_jrkanji_h=$ac_header_preproc
30771fi
30772echo "$as_me:$LINENO: result: $ac_cv_header_canna_jrkanji_h" >&5
30773echo "${ECHO_T}$ac_cv_header_canna_jrkanji_h" >&6
30774
30775fi
30776if test $ac_cv_header_canna_jrkanji_h = yes; then
30777  :
30778else
30779  { { echo "$as_me:$LINENO: error: canna/jrkanji.h was not found." >&5
30780echo "$as_me: error: canna/jrkanji.h was not found." >&2;}
30781   { (exit 1); exit 1; }; }
30782fi
30783
30784
30785echo "$as_me:$LINENO: checking for jrKanjiControl in -lcanna" >&5
30786echo $ECHO_N "checking for jrKanjiControl in -lcanna... $ECHO_C" >&6
30787if test "${ac_cv_lib_canna_jrKanjiControl+set}" = set; then
30788  echo $ECHO_N "(cached) $ECHO_C" >&6
30789else
30790  ac_check_lib_save_LIBS=$LIBS
30791LIBS="-lcanna  $LIBS"
30792cat >conftest.$ac_ext <<_ACEOF
30793/* confdefs.h.  */
30794_ACEOF
30795cat confdefs.h >>conftest.$ac_ext
30796cat >>conftest.$ac_ext <<_ACEOF
30797/* end confdefs.h.  */
30798
30799/* Override any gcc2 internal prototype to avoid an error.  */
30800#ifdef __cplusplus
30801extern "C"
30802#endif
30803/* We use char because int might match the return type of a gcc2
30804   builtin and then its argument prototype would still apply.  */
30805char jrKanjiControl ();
30806int
30807main ()
30808{
30809jrKanjiControl ();
30810  ;
30811  return 0;
30812}
30813_ACEOF
30814rm -f conftest.$ac_objext conftest$ac_exeext
30815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30816  (eval $ac_link) 2>conftest.er1
30817  ac_status=$?
30818  grep -v '^ *+' conftest.er1 >conftest.err
30819  rm -f conftest.er1
30820  cat conftest.err >&5
30821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30822  (exit $ac_status); } &&
30823	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
30824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30825  (eval $ac_try) 2>&5
30826  ac_status=$?
30827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30828  (exit $ac_status); }; } &&
30829	 { ac_try='test -s conftest$ac_exeext'
30830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30831  (eval $ac_try) 2>&5
30832  ac_status=$?
30833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834  (exit $ac_status); }; }; then
30835  ac_cv_lib_canna_jrKanjiControl=yes
30836else
30837  echo "$as_me: failed program was:" >&5
30838sed 's/^/| /' conftest.$ac_ext >&5
30839
30840ac_cv_lib_canna_jrKanjiControl=no
30841fi
30842rm -f conftest.err conftest.$ac_objext \
30843      conftest$ac_exeext conftest.$ac_ext
30844LIBS=$ac_check_lib_save_LIBS
30845fi
30846echo "$as_me:$LINENO: result: $ac_cv_lib_canna_jrKanjiControl" >&5
30847echo "${ECHO_T}$ac_cv_lib_canna_jrKanjiControl" >&6
30848if test $ac_cv_lib_canna_jrKanjiControl = yes; then
30849  CANNA_LIBS="-lcanna"
30850else
30851  { { echo "$as_me:$LINENO: error: Cannot find Canna Library" >&5
30852echo "$as_me: error: Cannot find Canna Library" >&2;}
30853   { (exit 1); exit 1; }; }
30854fi
30855
30856
30857
30858
30859# libtool option to control which symbols are exported
30860# right now, symbols starting with _ are not exported
30861LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[^_].*"'
30862
30863
30864# Extra args.
30865# Check whether --enable-debug or --disable-debug was given.
30866if test "${enable_debug+set}" = set; then
30867  enableval="$enable_debug"
30868  case "${enableval}" in
30869	       yes) debug=yes ;;
30870	       no)  debug=no ;;
30871	       *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
30872echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
30873   { (exit 1); exit 1; }; } ;;
30874       	      esac
30875else
30876  debug=no
30877fi;
30878
30879if test "x$debug" = "xyes"; then
30880  test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
30881  test "$cppflags_set" = set || CPPFLAGS="$CXXFLAGS -g"
30882  SCIM_DEBUG_FLAGS="-DENABLE_DEBUG=1"
30883else
30884  SCIM_DEBUG_FLAGS=""
30885fi
30886
30887
30888SCIM_ICONDIR=`$PKG_CONFIG --variable=icondir scim`
30889SCIM_MODULEDIR=`$PKG_CONFIG --variable=moduledir scim`
30890
30891if test "x$SCIM_ICONDIR" = "x"; then
30892  SCIM_ICONDIR=${datadir}/scim/icons
30893fi
30894
30895if test "x$SCIM_MODULEDIR" = "x"; then
30896  SCIM_MODULEDIR=${libdir}/scim-1.0
30897fi
30898
30899
30900
30901
30902                                                            ac_config_files="$ac_config_files Makefile intl/Makefile po/Makefile.in m4/Makefile src/Makefile data/Makefile"
30903
30904
30905cat >confcache <<\_ACEOF
30906# This file is a shell script that caches the results of configure
30907# tests run on this system so they can be shared between configure
30908# scripts and configure runs, see configure's option --config-cache.
30909# It is not useful on other systems.  If it contains results you don't
30910# want to keep, you may remove or edit it.
30911#
30912# config.status only pays attention to the cache file if you give it
30913# the --recheck option to rerun configure.
30914#
30915# `ac_cv_env_foo' variables (set or unset) will be overridden when
30916# loading this file, other *unset* `ac_cv_foo' will be assigned the
30917# following values.
30918
30919_ACEOF
30920
30921# The following way of writing the cache mishandles newlines in values,
30922# but we know of no workaround that is simple, portable, and efficient.
30923# So, don't put newlines in cache variables' values.
30924# Ultrix sh set writes to stderr and can't be redirected directly,
30925# and sets the high bit in the cache file unless we assign to the vars.
30926{
30927  (set) 2>&1 |
30928    case `(ac_space=' '; set | grep ac_space) 2>&1` in
30929    *ac_space=\ *)
30930      # `set' does not quote correctly, so add quotes (double-quote
30931      # substitution turns \\\\ into \\, and sed turns \\ into \).
30932      sed -n \
30933	"s/'/'\\\\''/g;
30934	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30935      ;;
30936    *)
30937      # `set' quotes correctly as required by POSIX, so do not add quotes.
30938      sed -n \
30939	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30940      ;;
30941    esac;
30942} |
30943  sed '
30944     t clear
30945     : clear
30946     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30947     t end
30948     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30949     : end' >>confcache
30950if diff $cache_file confcache >/dev/null 2>&1; then :; else
30951  if test -w $cache_file; then
30952    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30953    cat confcache >$cache_file
30954  else
30955    echo "not updating unwritable cache $cache_file"
30956  fi
30957fi
30958rm -f confcache
30959
30960test "x$prefix" = xNONE && prefix=$ac_default_prefix
30961# Let make expand exec_prefix.
30962test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30963
30964# VPATH may cause trouble with some makes, so we remove $(srcdir),
30965# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30966# trailing colons and then remove the whole line if VPATH becomes empty
30967# (actually we leave an empty line to preserve line numbers).
30968if test "x$srcdir" = x.; then
30969  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
30970s/:*\$(srcdir):*/:/;
30971s/:*\${srcdir}:*/:/;
30972s/:*@srcdir@:*/:/;
30973s/^\([^=]*=[	 ]*\):*/\1/;
30974s/:*$//;
30975s/^[^=]*=[	 ]*$//;
30976}'
30977fi
30978
30979DEFS=-DHAVE_CONFIG_H
30980
30981ac_libobjs=
30982ac_ltlibobjs=
30983for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30984  # 1. Remove the extension, and $U if already installed.
30985  ac_i=`echo "$ac_i" |
30986	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30987  # 2. Add them.
30988  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30989  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30990done
30991LIBOBJS=$ac_libobjs
30992
30993LTLIBOBJS=$ac_ltlibobjs
30994
30995
30996if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30997  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30998Usually this means the macro was only invoked conditionally." >&5
30999echo "$as_me: error: conditional \"AMDEP\" was never defined.
31000Usually this means the macro was only invoked conditionally." >&2;}
31001   { (exit 1); exit 1; }; }
31002fi
31003if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31004  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
31005Usually this means the macro was only invoked conditionally." >&5
31006echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
31007Usually this means the macro was only invoked conditionally." >&2;}
31008   { (exit 1); exit 1; }; }
31009fi
31010if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31011  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
31012Usually this means the macro was only invoked conditionally." >&5
31013echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
31014Usually this means the macro was only invoked conditionally." >&2;}
31015   { (exit 1); exit 1; }; }
31016fi
31017if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31018  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31019Usually this means the macro was only invoked conditionally." >&5
31020echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31021Usually this means the macro was only invoked conditionally." >&2;}
31022   { (exit 1); exit 1; }; }
31023fi
31024if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31025  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31026Usually this means the macro was only invoked conditionally." >&5
31027echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31028Usually this means the macro was only invoked conditionally." >&2;}
31029   { (exit 1); exit 1; }; }
31030fi
31031if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31032  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
31033Usually this means the macro was only invoked conditionally." >&5
31034echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
31035Usually this means the macro was only invoked conditionally." >&2;}
31036   { (exit 1); exit 1; }; }
31037fi
31038if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31039  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
31040Usually this means the macro was only invoked conditionally." >&5
31041echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
31042Usually this means the macro was only invoked conditionally." >&2;}
31043   { (exit 1); exit 1; }; }
31044fi
31045if test -z "${SCIM_BUILD_SETUP_TRUE}" && test -z "${SCIM_BUILD_SETUP_FALSE}"; then
31046  { { echo "$as_me:$LINENO: error: conditional \"SCIM_BUILD_SETUP\" was never defined.
31047Usually this means the macro was only invoked conditionally." >&5
31048echo "$as_me: error: conditional \"SCIM_BUILD_SETUP\" was never defined.
31049Usually this means the macro was only invoked conditionally." >&2;}
31050   { (exit 1); exit 1; }; }
31051fi
31052
31053: ${CONFIG_STATUS=./config.status}
31054ac_clean_files_save=$ac_clean_files
31055ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31056{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31057echo "$as_me: creating $CONFIG_STATUS" >&6;}
31058cat >$CONFIG_STATUS <<_ACEOF
31059#! $SHELL
31060# Generated by $as_me.
31061# Run this file to recreate the current configuration.
31062# Compiler output produced by configure, useful for debugging
31063# configure, is in config.log if it exists.
31064
31065debug=false
31066ac_cs_recheck=false
31067ac_cs_silent=false
31068SHELL=\${CONFIG_SHELL-$SHELL}
31069_ACEOF
31070
31071cat >>$CONFIG_STATUS <<\_ACEOF
31072## --------------------- ##
31073## M4sh Initialization.  ##
31074## --------------------- ##
31075
31076# Be Bourne compatible
31077if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31078  emulate sh
31079  NULLCMD=:
31080  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31081  # is contrary to our usage.  Disable this feature.
31082  alias -g '${1+"$@"}'='"$@"'
31083elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31084  set -o posix
31085fi
31086DUALCASE=1; export DUALCASE # for MKS sh
31087
31088# Support unset when possible.
31089if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31090  as_unset=unset
31091else
31092  as_unset=false
31093fi
31094
31095
31096# Work around bugs in pre-3.0 UWIN ksh.
31097$as_unset ENV MAIL MAILPATH
31098PS1='$ '
31099PS2='> '
31100PS4='+ '
31101
31102# NLS nuisances.
31103for as_var in \
31104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31106  LC_TELEPHONE LC_TIME
31107do
31108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31109    eval $as_var=C; export $as_var
31110  else
31111    $as_unset $as_var
31112  fi
31113done
31114
31115# Required to use basename.
31116if expr a : '\(a\)' >/dev/null 2>&1; then
31117  as_expr=expr
31118else
31119  as_expr=false
31120fi
31121
31122if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31123  as_basename=basename
31124else
31125  as_basename=false
31126fi
31127
31128
31129# Name of the executable.
31130as_me=`$as_basename "$0" ||
31131$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31132	 X"$0" : 'X\(//\)$' \| \
31133	 X"$0" : 'X\(/\)$' \| \
31134	 .     : '\(.\)' 2>/dev/null ||
31135echo X/"$0" |
31136    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31137  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
31138  	  /^X\/\(\/\).*/{ s//\1/; q; }
31139  	  s/.*/./; q'`
31140
31141
31142# PATH needs CR, and LINENO needs CR and PATH.
31143# Avoid depending upon Character Ranges.
31144as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31145as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31146as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31147as_cr_digits='0123456789'
31148as_cr_alnum=$as_cr_Letters$as_cr_digits
31149
31150# The user is always right.
31151if test "${PATH_SEPARATOR+set}" != set; then
31152  echo "#! /bin/sh" >conf$$.sh
31153  echo  "exit 0"   >>conf$$.sh
31154  chmod +x conf$$.sh
31155  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31156    PATH_SEPARATOR=';'
31157  else
31158    PATH_SEPARATOR=:
31159  fi
31160  rm -f conf$$.sh
31161fi
31162
31163
31164  as_lineno_1=$LINENO
31165  as_lineno_2=$LINENO
31166  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31167  test "x$as_lineno_1" != "x$as_lineno_2" &&
31168  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
31169  # Find who we are.  Look in the path if we contain no path at all
31170  # relative or not.
31171  case $0 in
31172    *[\\/]* ) as_myself=$0 ;;
31173    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31174for as_dir in $PATH
31175do
31176  IFS=$as_save_IFS
31177  test -z "$as_dir" && as_dir=.
31178  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31179done
31180
31181       ;;
31182  esac
31183  # We did not find ourselves, most probably we were run as `sh COMMAND'
31184  # in which case we are not to be found in the path.
31185  if test "x$as_myself" = x; then
31186    as_myself=$0
31187  fi
31188  if test ! -f "$as_myself"; then
31189    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31190echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31191   { (exit 1); exit 1; }; }
31192  fi
31193  case $CONFIG_SHELL in
31194  '')
31195    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31197do
31198  IFS=$as_save_IFS
31199  test -z "$as_dir" && as_dir=.
31200  for as_base in sh bash ksh sh5; do
31201	 case $as_dir in
31202	 /*)
31203	   if ("$as_dir/$as_base" -c '
31204  as_lineno_1=$LINENO
31205  as_lineno_2=$LINENO
31206  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31207  test "x$as_lineno_1" != "x$as_lineno_2" &&
31208  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
31209	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31210	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31211	     CONFIG_SHELL=$as_dir/$as_base
31212	     export CONFIG_SHELL
31213	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31214	   fi;;
31215	 esac
31216       done
31217done
31218;;
31219  esac
31220
31221  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31222  # uniformly replaced by the line number.  The first 'sed' inserts a
31223  # line-number line before each line; the second 'sed' does the real
31224  # work.  The second script uses 'N' to pair each line-number line
31225  # with the numbered line, and appends trailing '-' during
31226  # substitution so that $LINENO is not a special case at line end.
31227  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31228  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
31229  sed '=' <$as_myself |
31230    sed '
31231      N
31232      s,$,-,
31233      : loop
31234      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31235      t loop
31236      s,-$,,
31237      s,^['$as_cr_digits']*\n,,
31238    ' >$as_me.lineno &&
31239  chmod +x $as_me.lineno ||
31240    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31241echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31242   { (exit 1); exit 1; }; }
31243
31244  # Don't try to exec as it changes $[0], causing all sort of problems
31245  # (the dirname of $[0] is not the place where we might find the
31246  # original and so on.  Autoconf is especially sensible to this).
31247  . ./$as_me.lineno
31248  # Exit status is that of the last command.
31249  exit
31250}
31251
31252
31253case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31254  *c*,-n*) ECHO_N= ECHO_C='
31255' ECHO_T='	' ;;
31256  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31257  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
31258esac
31259
31260if expr a : '\(a\)' >/dev/null 2>&1; then
31261  as_expr=expr
31262else
31263  as_expr=false
31264fi
31265
31266rm -f conf$$ conf$$.exe conf$$.file
31267echo >conf$$.file
31268if ln -s conf$$.file conf$$ 2>/dev/null; then
31269  # We could just check for DJGPP; but this test a) works b) is more generic
31270  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31271  if test -f conf$$.exe; then
31272    # Don't use ln at all; we don't have any links
31273    as_ln_s='cp -p'
31274  else
31275    as_ln_s='ln -s'
31276  fi
31277elif ln conf$$.file conf$$ 2>/dev/null; then
31278  as_ln_s=ln
31279else
31280  as_ln_s='cp -p'
31281fi
31282rm -f conf$$ conf$$.exe conf$$.file
31283
31284if mkdir -p . 2>/dev/null; then
31285  as_mkdir_p=:
31286else
31287  test -d ./-p && rmdir ./-p
31288  as_mkdir_p=false
31289fi
31290
31291as_executable_p="test -f"
31292
31293# Sed expression to map a string onto a valid CPP name.
31294as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31295
31296# Sed expression to map a string onto a valid variable name.
31297as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31298
31299
31300# IFS
31301# We need space, tab and new line, in precisely that order.
31302as_nl='
31303'
31304IFS=" 	$as_nl"
31305
31306# CDPATH.
31307$as_unset CDPATH
31308
31309exec 6>&1
31310
31311# Open the log real soon, to keep \$[0] and so on meaningful, and to
31312# report actual input values of CONFIG_FILES etc. instead of their
31313# values after options handling.  Logging --version etc. is OK.
31314exec 5>>config.log
31315{
31316  echo
31317  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31318## Running $as_me. ##
31319_ASBOX
31320} >&5
31321cat >&5 <<_CSEOF
31322
31323This file was extended by scim-canna $as_me 1.0.0, which was
31324generated by GNU Autoconf 2.59.  Invocation command line was
31325
31326  CONFIG_FILES    = $CONFIG_FILES
31327  CONFIG_HEADERS  = $CONFIG_HEADERS
31328  CONFIG_LINKS    = $CONFIG_LINKS
31329  CONFIG_COMMANDS = $CONFIG_COMMANDS
31330  $ $0 $@
31331
31332_CSEOF
31333echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31334echo >&5
31335_ACEOF
31336
31337# Files that config.status was made for.
31338if test -n "$ac_config_files"; then
31339  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31340fi
31341
31342if test -n "$ac_config_headers"; then
31343  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31344fi
31345
31346if test -n "$ac_config_links"; then
31347  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31348fi
31349
31350if test -n "$ac_config_commands"; then
31351  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31352fi
31353
31354cat >>$CONFIG_STATUS <<\_ACEOF
31355
31356ac_cs_usage="\
31357\`$as_me' instantiates files from templates according to the
31358current configuration.
31359
31360Usage: $0 [OPTIONS] [FILE]...
31361
31362  -h, --help       print this help, then exit
31363  -V, --version    print version number, then exit
31364  -q, --quiet      do not print progress messages
31365  -d, --debug      don't remove temporary files
31366      --recheck    update $as_me by reconfiguring in the same conditions
31367  --file=FILE[:TEMPLATE]
31368		   instantiate the configuration file FILE
31369  --header=FILE[:TEMPLATE]
31370		   instantiate the configuration header FILE
31371
31372Configuration files:
31373$config_files
31374
31375Configuration headers:
31376$config_headers
31377
31378Configuration commands:
31379$config_commands
31380
31381Report bugs to <bug-autoconf@gnu.org>."
31382_ACEOF
31383
31384cat >>$CONFIG_STATUS <<_ACEOF
31385ac_cs_version="\\
31386scim-canna config.status 1.0.0
31387configured by $0, generated by GNU Autoconf 2.59,
31388  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31389
31390Copyright (C) 2003 Free Software Foundation, Inc.
31391This config.status script is free software; the Free Software Foundation
31392gives unlimited permission to copy, distribute and modify it."
31393srcdir=$srcdir
31394INSTALL="$INSTALL"
31395_ACEOF
31396
31397cat >>$CONFIG_STATUS <<\_ACEOF
31398# If no file are specified by the user, then we need to provide default
31399# value.  By we need to know if files were specified by the user.
31400ac_need_defaults=:
31401while test $# != 0
31402do
31403  case $1 in
31404  --*=*)
31405    ac_option=`expr "x$1" : 'x\([^=]*\)='`
31406    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31407    ac_shift=:
31408    ;;
31409  -*)
31410    ac_option=$1
31411    ac_optarg=$2
31412    ac_shift=shift
31413    ;;
31414  *) # This is not an option, so the user has probably given explicit
31415     # arguments.
31416     ac_option=$1
31417     ac_need_defaults=false;;
31418  esac
31419
31420  case $ac_option in
31421  # Handling of the options.
31422_ACEOF
31423cat >>$CONFIG_STATUS <<\_ACEOF
31424  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31425    ac_cs_recheck=: ;;
31426  --version | --vers* | -V )
31427    echo "$ac_cs_version"; exit 0 ;;
31428  --he | --h)
31429    # Conflict between --help and --header
31430    { { echo "$as_me:$LINENO: error: ambiguous option: $1
31431Try \`$0 --help' for more information." >&5
31432echo "$as_me: error: ambiguous option: $1
31433Try \`$0 --help' for more information." >&2;}
31434   { (exit 1); exit 1; }; };;
31435  --help | --hel | -h )
31436    echo "$ac_cs_usage"; exit 0 ;;
31437  --debug | --d* | -d )
31438    debug=: ;;
31439  --file | --fil | --fi | --f )
31440    $ac_shift
31441    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31442    ac_need_defaults=false;;
31443  --header | --heade | --head | --hea )
31444    $ac_shift
31445    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31446    ac_need_defaults=false;;
31447  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31448  | -silent | --silent | --silen | --sile | --sil | --si | --s)
31449    ac_cs_silent=: ;;
31450
31451  # This is an error.
31452  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31453Try \`$0 --help' for more information." >&5
31454echo "$as_me: error: unrecognized option: $1
31455Try \`$0 --help' for more information." >&2;}
31456   { (exit 1); exit 1; }; } ;;
31457
31458  *) ac_config_targets="$ac_config_targets $1" ;;
31459
31460  esac
31461  shift
31462done
31463
31464ac_configure_extra_args=
31465
31466if $ac_cs_silent; then
31467  exec 6>/dev/null
31468  ac_configure_extra_args="$ac_configure_extra_args --silent"
31469fi
31470
31471_ACEOF
31472cat >>$CONFIG_STATUS <<_ACEOF
31473if \$ac_cs_recheck; then
31474  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31475  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31476fi
31477
31478_ACEOF
31479
31480cat >>$CONFIG_STATUS <<_ACEOF
31481#
31482# INIT-COMMANDS section.
31483#
31484
31485# Capture the value of obsolete ALL_LINGUAS because we need it to compute
31486    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31487    # from automake.
31488    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31489    # Capture the value of LINGUAS because we need it to compute CATALOGS.
31490    LINGUAS="${LINGUAS-%UNSET%}"
31491
31492AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31493
31494_ACEOF
31495
31496
31497
31498cat >>$CONFIG_STATUS <<\_ACEOF
31499for ac_config_target in $ac_config_targets
31500do
31501  case "$ac_config_target" in
31502  # Handling of arguments.
31503  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31504  "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
31505  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31506  "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
31507  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31508  "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
31509  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31510  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31511  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
31512  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31513echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31514   { (exit 1); exit 1; }; };;
31515  esac
31516done
31517
31518# If the user did not use the arguments to specify the items to instantiate,
31519# then the envvar interface is used.  Set only those that are not.
31520# We use the long form for the default assignment because of an extremely
31521# bizarre bug on SunOS 4.1.3.
31522if $ac_need_defaults; then
31523  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31524  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31525  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31526fi
31527
31528# Have a temporary directory for convenience.  Make it in the build tree
31529# simply because there is no reason to put it here, and in addition,
31530# creating and moving files from /tmp can sometimes cause problems.
31531# Create a temporary directory, and hook for its removal unless debugging.
31532$debug ||
31533{
31534  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31535  trap '{ (exit 1); exit 1; }' 1 2 13 15
31536}
31537
31538# Create a (secure) tmp directory for tmp files.
31539
31540{
31541  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31542  test -n "$tmp" && test -d "$tmp"
31543}  ||
31544{
31545  tmp=./confstat$$-$RANDOM
31546  (umask 077 && mkdir $tmp)
31547} ||
31548{
31549   echo "$me: cannot create a temporary directory in ." >&2
31550   { (exit 1); exit 1; }
31551}
31552
31553_ACEOF
31554
31555cat >>$CONFIG_STATUS <<_ACEOF
31556
31557#
31558# CONFIG_FILES section.
31559#
31560
31561# No need to generate the scripts if there are no CONFIG_FILES.
31562# This happens for instance when ./config.status config.h
31563if test -n "\$CONFIG_FILES"; then
31564  # Protect against being on the right side of a sed subst in config.status.
31565  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31566   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31567s,@SHELL@,$SHELL,;t t
31568s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31569s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31570s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31571s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31572s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31573s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31574s,@exec_prefix@,$exec_prefix,;t t
31575s,@prefix@,$prefix,;t t
31576s,@program_transform_name@,$program_transform_name,;t t
31577s,@bindir@,$bindir,;t t
31578s,@sbindir@,$sbindir,;t t
31579s,@libexecdir@,$libexecdir,;t t
31580s,@datadir@,$datadir,;t t
31581s,@sysconfdir@,$sysconfdir,;t t
31582s,@sharedstatedir@,$sharedstatedir,;t t
31583s,@localstatedir@,$localstatedir,;t t
31584s,@libdir@,$libdir,;t t
31585s,@includedir@,$includedir,;t t
31586s,@oldincludedir@,$oldincludedir,;t t
31587s,@infodir@,$infodir,;t t
31588s,@mandir@,$mandir,;t t
31589s,@build_alias@,$build_alias,;t t
31590s,@host_alias@,$host_alias,;t t
31591s,@target_alias@,$target_alias,;t t
31592s,@DEFS@,$DEFS,;t t
31593s,@ECHO_C@,$ECHO_C,;t t
31594s,@ECHO_N@,$ECHO_N,;t t
31595s,@ECHO_T@,$ECHO_T,;t t
31596s,@LIBS@,$LIBS,;t t
31597s,@SCIM_CANNA_MAJOR_VERSION@,$SCIM_CANNA_MAJOR_VERSION,;t t
31598s,@SCIM_CANNA_MINOR_VERSION@,$SCIM_CANNA_MINOR_VERSION,;t t
31599s,@SCIM_CANNA_MICRO_VERSION@,$SCIM_CANNA_MICRO_VERSION,;t t
31600s,@SCIM_CANNA_VERSION@,$SCIM_CANNA_VERSION,;t t
31601s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31602s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31603s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31604s,@CYGPATH_W@,$CYGPATH_W,;t t
31605s,@PACKAGE@,$PACKAGE,;t t
31606s,@VERSION@,$VERSION,;t t
31607s,@ACLOCAL@,$ACLOCAL,;t t
31608s,@AUTOCONF@,$AUTOCONF,;t t
31609s,@AUTOMAKE@,$AUTOMAKE,;t t
31610s,@AUTOHEADER@,$AUTOHEADER,;t t
31611s,@MAKEINFO@,$MAKEINFO,;t t
31612s,@install_sh@,$install_sh,;t t
31613s,@STRIP@,$STRIP,;t t
31614s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31615s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
31616s,@mkdir_p@,$mkdir_p,;t t
31617s,@AWK@,$AWK,;t t
31618s,@SET_MAKE@,$SET_MAKE,;t t
31619s,@am__leading_dot@,$am__leading_dot,;t t
31620s,@AMTAR@,$AMTAR,;t t
31621s,@am__tar@,$am__tar,;t t
31622s,@am__untar@,$am__untar,;t t
31623s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
31624s,@USE_NLS@,$USE_NLS,;t t
31625s,@MSGFMT@,$MSGFMT,;t t
31626s,@GMSGFMT@,$GMSGFMT,;t t
31627s,@XGETTEXT@,$XGETTEXT,;t t
31628s,@MSGMERGE@,$MSGMERGE,;t t
31629s,@CC@,$CC,;t t
31630s,@CFLAGS@,$CFLAGS,;t t
31631s,@LDFLAGS@,$LDFLAGS,;t t
31632s,@CPPFLAGS@,$CPPFLAGS,;t t
31633s,@ac_ct_CC@,$ac_ct_CC,;t t
31634s,@EXEEXT@,$EXEEXT,;t t
31635s,@OBJEXT@,$OBJEXT,;t t
31636s,@DEPDIR@,$DEPDIR,;t t
31637s,@am__include@,$am__include,;t t
31638s,@am__quote@,$am__quote,;t t
31639s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
31640s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
31641s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
31642s,@CCDEPMODE@,$CCDEPMODE,;t t
31643s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
31644s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
31645s,@build@,$build,;t t
31646s,@build_cpu@,$build_cpu,;t t
31647s,@build_vendor@,$build_vendor,;t t
31648s,@build_os@,$build_os,;t t
31649s,@host@,$host,;t t
31650s,@host_cpu@,$host_cpu,;t t
31651s,@host_vendor@,$host_vendor,;t t
31652s,@host_os@,$host_os,;t t
31653s,@RANLIB@,$RANLIB,;t t
31654s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31655s,@CPP@,$CPP,;t t
31656s,@EGREP@,$EGREP,;t t
31657s,@ALLOCA@,$ALLOCA,;t t
31658s,@GLIBC21@,$GLIBC21,;t t
31659s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
31660s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
31661s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
31662s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
31663s,@LIBICONV@,$LIBICONV,;t t
31664s,@LTLIBICONV@,$LTLIBICONV,;t t
31665s,@INTLBISON@,$INTLBISON,;t t
31666s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
31667s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
31668s,@CATOBJEXT@,$CATOBJEXT,;t t
31669s,@DATADIRNAME@,$DATADIRNAME,;t t
31670s,@INSTOBJEXT@,$INSTOBJEXT,;t t
31671s,@GENCAT@,$GENCAT,;t t
31672s,@INTLOBJS@,$INTLOBJS,;t t
31673s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
31674s,@INTLLIBS@,$INTLLIBS,;t t
31675s,@LIBINTL@,$LIBINTL,;t t
31676s,@LTLIBINTL@,$LTLIBINTL,;t t
31677s,@POSUB@,$POSUB,;t t
31678s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
31679s,@LN_S@,$LN_S,;t t
31680s,@ECHO@,$ECHO,;t t
31681s,@AR@,$AR,;t t
31682s,@ac_ct_AR@,$ac_ct_AR,;t t
31683s,@CXX@,$CXX,;t t
31684s,@CXXFLAGS@,$CXXFLAGS,;t t
31685s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31686s,@CXXDEPMODE@,$CXXDEPMODE,;t t
31687s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
31688s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
31689s,@CXXCPP@,$CXXCPP,;t t
31690s,@F77@,$F77,;t t
31691s,@FFLAGS@,$FFLAGS,;t t
31692s,@ac_ct_F77@,$ac_ct_F77,;t t
31693s,@LIBTOOL@,$LIBTOOL,;t t
31694s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31695s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31696s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31697s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31698s,@LIBADD_DL@,$LIBADD_DL,;t t
31699s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
31700s,@PKG_CONFIG@,$PKG_CONFIG,;t t
31701s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
31702s,@SCIM_CFLAGS@,$SCIM_CFLAGS,;t t
31703s,@SCIM_LIBS@,$SCIM_LIBS,;t t
31704s,@SCIM_GTKUTILS_CFLAGS@,$SCIM_GTKUTILS_CFLAGS,;t t
31705s,@SCIM_GTKUTILS_LIBS@,$SCIM_GTKUTILS_LIBS,;t t
31706s,@SCIM_VERSION@,$SCIM_VERSION,;t t
31707s,@SCIM_BUILD_SETUP_TRUE@,$SCIM_BUILD_SETUP_TRUE,;t t
31708s,@SCIM_BUILD_SETUP_FALSE@,$SCIM_BUILD_SETUP_FALSE,;t t
31709s,@SCIM_BUILD_SETUP@,$SCIM_BUILD_SETUP,;t t
31710s,@ac_aux_dir@,$ac_aux_dir,;t t
31711s,@CANNA_LIBS@,$CANNA_LIBS,;t t
31712s,@CANNA_CFLAGS@,$CANNA_CFLAGS,;t t
31713s,@LIBTOOL_EXPORT_OPTIONS@,$LIBTOOL_EXPORT_OPTIONS,;t t
31714s,@SCIM_DEBUG_FLAGS@,$SCIM_DEBUG_FLAGS,;t t
31715s,@SCIM_ICONDIR@,$SCIM_ICONDIR,;t t
31716s,@SCIM_MODULEDIR@,$SCIM_MODULEDIR,;t t
31717s,@LIBOBJS@,$LIBOBJS,;t t
31718s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31719CEOF
31720
31721_ACEOF
31722
31723  cat >>$CONFIG_STATUS <<\_ACEOF
31724  # Split the substitutions into bite-sized pieces for seds with
31725  # small command number limits, like on Digital OSF/1 and HP-UX.
31726  ac_max_sed_lines=48
31727  ac_sed_frag=1 # Number of current file.
31728  ac_beg=1 # First line for current file.
31729  ac_end=$ac_max_sed_lines # Line after last line for current file.
31730  ac_more_lines=:
31731  ac_sed_cmds=
31732  while $ac_more_lines; do
31733    if test $ac_beg -gt 1; then
31734      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31735    else
31736      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31737    fi
31738    if test ! -s $tmp/subs.frag; then
31739      ac_more_lines=false
31740    else
31741      # The purpose of the label and of the branching condition is to
31742      # speed up the sed processing (if there are no `@' at all, there
31743      # is no need to browse any of the substitutions).
31744      # These are the two extra sed commands mentioned above.
31745      (echo ':t
31746  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31747      if test -z "$ac_sed_cmds"; then
31748	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31749      else
31750	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31751      fi
31752      ac_sed_frag=`expr $ac_sed_frag + 1`
31753      ac_beg=$ac_end
31754      ac_end=`expr $ac_end + $ac_max_sed_lines`
31755    fi
31756  done
31757  if test -z "$ac_sed_cmds"; then
31758    ac_sed_cmds=cat
31759  fi
31760fi # test -n "$CONFIG_FILES"
31761
31762_ACEOF
31763cat >>$CONFIG_STATUS <<\_ACEOF
31764for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31765  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31766  case $ac_file in
31767  - | *:- | *:-:* ) # input from stdin
31768	cat >$tmp/stdin
31769	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31770	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31771  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31772	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31773  * )   ac_file_in=$ac_file.in ;;
31774  esac
31775
31776  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31777  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31778$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31779	 X"$ac_file" : 'X\(//\)[^/]' \| \
31780	 X"$ac_file" : 'X\(//\)$' \| \
31781	 X"$ac_file" : 'X\(/\)' \| \
31782	 .     : '\(.\)' 2>/dev/null ||
31783echo X"$ac_file" |
31784    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31785  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31786  	  /^X\(\/\/\)$/{ s//\1/; q; }
31787  	  /^X\(\/\).*/{ s//\1/; q; }
31788  	  s/.*/./; q'`
31789  { if $as_mkdir_p; then
31790    mkdir -p "$ac_dir"
31791  else
31792    as_dir="$ac_dir"
31793    as_dirs=
31794    while test ! -d "$as_dir"; do
31795      as_dirs="$as_dir $as_dirs"
31796      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31797$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31798	 X"$as_dir" : 'X\(//\)[^/]' \| \
31799	 X"$as_dir" : 'X\(//\)$' \| \
31800	 X"$as_dir" : 'X\(/\)' \| \
31801	 .     : '\(.\)' 2>/dev/null ||
31802echo X"$as_dir" |
31803    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31804  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31805  	  /^X\(\/\/\)$/{ s//\1/; q; }
31806  	  /^X\(\/\).*/{ s//\1/; q; }
31807  	  s/.*/./; q'`
31808    done
31809    test ! -n "$as_dirs" || mkdir $as_dirs
31810  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31811echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31812   { (exit 1); exit 1; }; }; }
31813
31814  ac_builddir=.
31815
31816if test "$ac_dir" != .; then
31817  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31818  # A "../" for each directory in $ac_dir_suffix.
31819  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31820else
31821  ac_dir_suffix= ac_top_builddir=
31822fi
31823
31824case $srcdir in
31825  .)  # No --srcdir option.  We are building in place.
31826    ac_srcdir=.
31827    if test -z "$ac_top_builddir"; then
31828       ac_top_srcdir=.
31829    else
31830       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31831    fi ;;
31832  [\\/]* | ?:[\\/]* )  # Absolute path.
31833    ac_srcdir=$srcdir$ac_dir_suffix;
31834    ac_top_srcdir=$srcdir ;;
31835  *) # Relative path.
31836    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31837    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31838esac
31839
31840# Do not use `cd foo && pwd` to compute absolute paths, because
31841# the directories may not exist.
31842case `pwd` in
31843.) ac_abs_builddir="$ac_dir";;
31844*)
31845  case "$ac_dir" in
31846  .) ac_abs_builddir=`pwd`;;
31847  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31848  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31849  esac;;
31850esac
31851case $ac_abs_builddir in
31852.) ac_abs_top_builddir=${ac_top_builddir}.;;
31853*)
31854  case ${ac_top_builddir}. in
31855  .) ac_abs_top_builddir=$ac_abs_builddir;;
31856  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31857  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31858  esac;;
31859esac
31860case $ac_abs_builddir in
31861.) ac_abs_srcdir=$ac_srcdir;;
31862*)
31863  case $ac_srcdir in
31864  .) ac_abs_srcdir=$ac_abs_builddir;;
31865  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31866  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31867  esac;;
31868esac
31869case $ac_abs_builddir in
31870.) ac_abs_top_srcdir=$ac_top_srcdir;;
31871*)
31872  case $ac_top_srcdir in
31873  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31874  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31875  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31876  esac;;
31877esac
31878
31879
31880  case $INSTALL in
31881  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31882  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31883  esac
31884
31885  # Let's still pretend it is `configure' which instantiates (i.e., don't
31886  # use $as_me), people would be surprised to read:
31887  #    /* config.h.  Generated by config.status.  */
31888  if test x"$ac_file" = x-; then
31889    configure_input=
31890  else
31891    configure_input="$ac_file.  "
31892  fi
31893  configure_input=$configure_input"Generated from `echo $ac_file_in |
31894				     sed 's,.*/,,'` by configure."
31895
31896  # First look for the input files in the build tree, otherwise in the
31897  # src tree.
31898  ac_file_inputs=`IFS=:
31899    for f in $ac_file_in; do
31900      case $f in
31901      -) echo $tmp/stdin ;;
31902      [\\/$]*)
31903	 # Absolute (can't be DOS-style, as IFS=:)
31904	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31905echo "$as_me: error: cannot find input file: $f" >&2;}
31906   { (exit 1); exit 1; }; }
31907	 echo "$f";;
31908      *) # Relative
31909	 if test -f "$f"; then
31910	   # Build tree
31911	   echo "$f"
31912	 elif test -f "$srcdir/$f"; then
31913	   # Source tree
31914	   echo "$srcdir/$f"
31915	 else
31916	   # /dev/null tree
31917	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31918echo "$as_me: error: cannot find input file: $f" >&2;}
31919   { (exit 1); exit 1; }; }
31920	 fi;;
31921      esac
31922    done` || { (exit 1); exit 1; }
31923
31924  if test x"$ac_file" != x-; then
31925    { echo "$as_me:$LINENO: creating $ac_file" >&5
31926echo "$as_me: creating $ac_file" >&6;}
31927    rm -f "$ac_file"
31928  fi
31929_ACEOF
31930cat >>$CONFIG_STATUS <<_ACEOF
31931  sed "$ac_vpsub
31932$extrasub
31933_ACEOF
31934cat >>$CONFIG_STATUS <<\_ACEOF
31935:t
31936/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31937s,@configure_input@,$configure_input,;t t
31938s,@srcdir@,$ac_srcdir,;t t
31939s,@abs_srcdir@,$ac_abs_srcdir,;t t
31940s,@top_srcdir@,$ac_top_srcdir,;t t
31941s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31942s,@builddir@,$ac_builddir,;t t
31943s,@abs_builddir@,$ac_abs_builddir,;t t
31944s,@top_builddir@,$ac_top_builddir,;t t
31945s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31946s,@INSTALL@,$ac_INSTALL,;t t
31947" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31948  rm -f $tmp/stdin
31949  if test x"$ac_file" != x-; then
31950    mv $tmp/out $ac_file
31951  else
31952    cat $tmp/out
31953    rm -f $tmp/out
31954  fi
31955
31956done
31957_ACEOF
31958cat >>$CONFIG_STATUS <<\_ACEOF
31959
31960#
31961# CONFIG_HEADER section.
31962#
31963
31964# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31965# NAME is the cpp macro being defined and VALUE is the value it is being given.
31966#
31967# ac_d sets the value in "#define NAME VALUE" lines.
31968ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
31969ac_dB='[	 ].*$,\1#\2'
31970ac_dC=' '
31971ac_dD=',;t'
31972# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31973ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
31974ac_uB='$,\1#\2define\3'
31975ac_uC=' '
31976ac_uD=',;t'
31977
31978for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31979  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31980  case $ac_file in
31981  - | *:- | *:-:* ) # input from stdin
31982	cat >$tmp/stdin
31983	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31984	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31985  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31986	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31987  * )   ac_file_in=$ac_file.in ;;
31988  esac
31989
31990  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31991echo "$as_me: creating $ac_file" >&6;}
31992
31993  # First look for the input files in the build tree, otherwise in the
31994  # src tree.
31995  ac_file_inputs=`IFS=:
31996    for f in $ac_file_in; do
31997      case $f in
31998      -) echo $tmp/stdin ;;
31999      [\\/$]*)
32000	 # Absolute (can't be DOS-style, as IFS=:)
32001	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32002echo "$as_me: error: cannot find input file: $f" >&2;}
32003   { (exit 1); exit 1; }; }
32004	 # Do quote $f, to prevent DOS paths from being IFS'd.
32005	 echo "$f";;
32006      *) # Relative
32007	 if test -f "$f"; then
32008	   # Build tree
32009	   echo "$f"
32010	 elif test -f "$srcdir/$f"; then
32011	   # Source tree
32012	   echo "$srcdir/$f"
32013	 else
32014	   # /dev/null tree
32015	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32016echo "$as_me: error: cannot find input file: $f" >&2;}
32017   { (exit 1); exit 1; }; }
32018	 fi;;
32019      esac
32020    done` || { (exit 1); exit 1; }
32021  # Remove the trailing spaces.
32022  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
32023
32024_ACEOF
32025
32026# Transform confdefs.h into two sed scripts, `conftest.defines' and
32027# `conftest.undefs', that substitutes the proper values into
32028# config.h.in to produce config.h.  The first handles `#define'
32029# templates, and the second `#undef' templates.
32030# And first: Protect against being on the right side of a sed subst in
32031# config.status.  Protect against being in an unquoted here document
32032# in config.status.
32033rm -f conftest.defines conftest.undefs
32034# Using a here document instead of a string reduces the quoting nightmare.
32035# Putting comments in sed scripts is not portable.
32036#
32037# `end' is used to avoid that the second main sed command (meant for
32038# 0-ary CPP macros) applies to n-ary macro definitions.
32039# See the Autoconf documentation for `clear'.
32040cat >confdef2sed.sed <<\_ACEOF
32041s/[\\&,]/\\&/g
32042s,[\\$`],\\&,g
32043t clear
32044: clear
32045s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32046t end
32047s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32048: end
32049_ACEOF
32050# If some macros were called several times there might be several times
32051# the same #defines, which is useless.  Nevertheless, we may not want to
32052# sort them, since we want the *last* AC-DEFINE to be honored.
32053uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32054sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32055rm -f confdef2sed.sed
32056
32057# This sed command replaces #undef with comments.  This is necessary, for
32058# example, in the case of _POSIX_SOURCE, which is predefined and required
32059# on some systems where configure will not decide to define it.
32060cat >>conftest.undefs <<\_ACEOF
32061s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32062_ACEOF
32063
32064# Break up conftest.defines because some shells have a limit on the size
32065# of here documents, and old seds have small limits too (100 cmds).
32066echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32067echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32068echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32069echo '  :' >>$CONFIG_STATUS
32070rm -f conftest.tail
32071while grep . conftest.defines >/dev/null
32072do
32073  # Write a limited-size here document to $tmp/defines.sed.
32074  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32075  # Speed up: don't consider the non `#define' lines.
32076  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
32077  # Work around the forget-to-reset-the-flag bug.
32078  echo 't clr' >>$CONFIG_STATUS
32079  echo ': clr' >>$CONFIG_STATUS
32080  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32081  echo 'CEOF
32082  sed -f $tmp/defines.sed $tmp/in >$tmp/out
32083  rm -f $tmp/in
32084  mv $tmp/out $tmp/in
32085' >>$CONFIG_STATUS
32086  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32087  rm -f conftest.defines
32088  mv conftest.tail conftest.defines
32089done
32090rm -f conftest.defines
32091echo '  fi # grep' >>$CONFIG_STATUS
32092echo >>$CONFIG_STATUS
32093
32094# Break up conftest.undefs because some shells have a limit on the size
32095# of here documents, and old seds have small limits too (100 cmds).
32096echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
32097rm -f conftest.tail
32098while grep . conftest.undefs >/dev/null
32099do
32100  # Write a limited-size here document to $tmp/undefs.sed.
32101  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32102  # Speed up: don't consider the non `#undef'
32103  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
32104  # Work around the forget-to-reset-the-flag bug.
32105  echo 't clr' >>$CONFIG_STATUS
32106  echo ': clr' >>$CONFIG_STATUS
32107  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32108  echo 'CEOF
32109  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32110  rm -f $tmp/in
32111  mv $tmp/out $tmp/in
32112' >>$CONFIG_STATUS
32113  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32114  rm -f conftest.undefs
32115  mv conftest.tail conftest.undefs
32116done
32117rm -f conftest.undefs
32118
32119cat >>$CONFIG_STATUS <<\_ACEOF
32120  # Let's still pretend it is `configure' which instantiates (i.e., don't
32121  # use $as_me), people would be surprised to read:
32122  #    /* config.h.  Generated by config.status.  */
32123  if test x"$ac_file" = x-; then
32124    echo "/* Generated by configure.  */" >$tmp/config.h
32125  else
32126    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
32127  fi
32128  cat $tmp/in >>$tmp/config.h
32129  rm -f $tmp/in
32130  if test x"$ac_file" != x-; then
32131    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32132      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32133echo "$as_me: $ac_file is unchanged" >&6;}
32134    else
32135      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32136$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32137	 X"$ac_file" : 'X\(//\)[^/]' \| \
32138	 X"$ac_file" : 'X\(//\)$' \| \
32139	 X"$ac_file" : 'X\(/\)' \| \
32140	 .     : '\(.\)' 2>/dev/null ||
32141echo X"$ac_file" |
32142    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32143  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32144  	  /^X\(\/\/\)$/{ s//\1/; q; }
32145  	  /^X\(\/\).*/{ s//\1/; q; }
32146  	  s/.*/./; q'`
32147      { if $as_mkdir_p; then
32148    mkdir -p "$ac_dir"
32149  else
32150    as_dir="$ac_dir"
32151    as_dirs=
32152    while test ! -d "$as_dir"; do
32153      as_dirs="$as_dir $as_dirs"
32154      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32155$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32156	 X"$as_dir" : 'X\(//\)[^/]' \| \
32157	 X"$as_dir" : 'X\(//\)$' \| \
32158	 X"$as_dir" : 'X\(/\)' \| \
32159	 .     : '\(.\)' 2>/dev/null ||
32160echo X"$as_dir" |
32161    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32162  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32163  	  /^X\(\/\/\)$/{ s//\1/; q; }
32164  	  /^X\(\/\).*/{ s//\1/; q; }
32165  	  s/.*/./; q'`
32166    done
32167    test ! -n "$as_dirs" || mkdir $as_dirs
32168  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32169echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32170   { (exit 1); exit 1; }; }; }
32171
32172      rm -f $ac_file
32173      mv $tmp/config.h $ac_file
32174    fi
32175  else
32176    cat $tmp/config.h
32177    rm -f $tmp/config.h
32178  fi
32179# Compute $ac_file's index in $config_headers.
32180_am_stamp_count=1
32181for _am_header in $config_headers :; do
32182  case $_am_header in
32183    $ac_file | $ac_file:* )
32184      break ;;
32185    * )
32186      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32187  esac
32188done
32189echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
32190$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32191	 X$ac_file : 'X\(//\)[^/]' \| \
32192	 X$ac_file : 'X\(//\)$' \| \
32193	 X$ac_file : 'X\(/\)' \| \
32194	 .     : '\(.\)' 2>/dev/null ||
32195echo X$ac_file |
32196    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32197  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32198  	  /^X\(\/\/\)$/{ s//\1/; q; }
32199  	  /^X\(\/\).*/{ s//\1/; q; }
32200  	  s/.*/./; q'`/stamp-h$_am_stamp_count
32201done
32202_ACEOF
32203cat >>$CONFIG_STATUS <<\_ACEOF
32204
32205#
32206# CONFIG_COMMANDS section.
32207#
32208for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32209  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32210  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32211  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32212$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32213	 X"$ac_dest" : 'X\(//\)[^/]' \| \
32214	 X"$ac_dest" : 'X\(//\)$' \| \
32215	 X"$ac_dest" : 'X\(/\)' \| \
32216	 .     : '\(.\)' 2>/dev/null ||
32217echo X"$ac_dest" |
32218    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32219  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32220  	  /^X\(\/\/\)$/{ s//\1/; q; }
32221  	  /^X\(\/\).*/{ s//\1/; q; }
32222  	  s/.*/./; q'`
32223  { if $as_mkdir_p; then
32224    mkdir -p "$ac_dir"
32225  else
32226    as_dir="$ac_dir"
32227    as_dirs=
32228    while test ! -d "$as_dir"; do
32229      as_dirs="$as_dir $as_dirs"
32230      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32231$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32232	 X"$as_dir" : 'X\(//\)[^/]' \| \
32233	 X"$as_dir" : 'X\(//\)$' \| \
32234	 X"$as_dir" : 'X\(/\)' \| \
32235	 .     : '\(.\)' 2>/dev/null ||
32236echo X"$as_dir" |
32237    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32238  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32239  	  /^X\(\/\/\)$/{ s//\1/; q; }
32240  	  /^X\(\/\).*/{ s//\1/; q; }
32241  	  s/.*/./; q'`
32242    done
32243    test ! -n "$as_dirs" || mkdir $as_dirs
32244  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32245echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32246   { (exit 1); exit 1; }; }; }
32247
32248  ac_builddir=.
32249
32250if test "$ac_dir" != .; then
32251  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32252  # A "../" for each directory in $ac_dir_suffix.
32253  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32254else
32255  ac_dir_suffix= ac_top_builddir=
32256fi
32257
32258case $srcdir in
32259  .)  # No --srcdir option.  We are building in place.
32260    ac_srcdir=.
32261    if test -z "$ac_top_builddir"; then
32262       ac_top_srcdir=.
32263    else
32264       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32265    fi ;;
32266  [\\/]* | ?:[\\/]* )  # Absolute path.
32267    ac_srcdir=$srcdir$ac_dir_suffix;
32268    ac_top_srcdir=$srcdir ;;
32269  *) # Relative path.
32270    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32271    ac_top_srcdir=$ac_top_builddir$srcdir ;;
32272esac
32273
32274# Do not use `cd foo && pwd` to compute absolute paths, because
32275# the directories may not exist.
32276case `pwd` in
32277.) ac_abs_builddir="$ac_dir";;
32278*)
32279  case "$ac_dir" in
32280  .) ac_abs_builddir=`pwd`;;
32281  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32282  *) ac_abs_builddir=`pwd`/"$ac_dir";;
32283  esac;;
32284esac
32285case $ac_abs_builddir in
32286.) ac_abs_top_builddir=${ac_top_builddir}.;;
32287*)
32288  case ${ac_top_builddir}. in
32289  .) ac_abs_top_builddir=$ac_abs_builddir;;
32290  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32291  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32292  esac;;
32293esac
32294case $ac_abs_builddir in
32295.) ac_abs_srcdir=$ac_srcdir;;
32296*)
32297  case $ac_srcdir in
32298  .) ac_abs_srcdir=$ac_abs_builddir;;
32299  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32300  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32301  esac;;
32302esac
32303case $ac_abs_builddir in
32304.) ac_abs_top_srcdir=$ac_top_srcdir;;
32305*)
32306  case $ac_top_srcdir in
32307  .) ac_abs_top_srcdir=$ac_abs_builddir;;
32308  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32309  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32310  esac;;
32311esac
32312
32313
32314  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32315echo "$as_me: executing $ac_dest commands" >&6;}
32316  case $ac_dest in
32317    default-1 )
32318    for ac_file in $CONFIG_FILES; do
32319      # Support "outfile[:infile[:infile...]]"
32320      case "$ac_file" in
32321        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32322      esac
32323      # PO directories have a Makefile.in generated from Makefile.in.in.
32324      case "$ac_file" in */Makefile.in)
32325        # Adjust a relative srcdir.
32326        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32327        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32328        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32329        # In autoconf-2.13 it is called $ac_given_srcdir.
32330        # In autoconf-2.50 it is called $srcdir.
32331        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32332        case "$ac_given_srcdir" in
32333          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32334          /*) top_srcdir="$ac_given_srcdir" ;;
32335          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32336        esac
32337        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32338          rm -f "$ac_dir/POTFILES"
32339          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32340          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32341          POMAKEFILEDEPS="POTFILES.in"
32342          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32343          # on $ac_dir but don't depend on user-specified configuration
32344          # parameters.
32345          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32346            # The LINGUAS file contains the set of available languages.
32347            if test -n "$OBSOLETE_ALL_LINGUAS"; then
32348              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32349            fi
32350            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32351            # Hide the ALL_LINGUAS assigment from automake.
32352            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32353            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32354          else
32355            # The set of available languages was given in configure.in.
32356            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32357          fi
32358          # Compute POFILES
32359          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32360          # Compute UPDATEPOFILES
32361          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32362          # Compute DUMMYPOFILES
32363          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32364          # Compute GMOFILES
32365          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32366          case "$ac_given_srcdir" in
32367            .) srcdirpre= ;;
32368            *) srcdirpre='$(srcdir)/' ;;
32369          esac
32370          POFILES=
32371          UPDATEPOFILES=
32372          DUMMYPOFILES=
32373          GMOFILES=
32374          for lang in $ALL_LINGUAS; do
32375            POFILES="$POFILES $srcdirpre$lang.po"
32376            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32377            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32378            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32379          done
32380          # CATALOGS depends on both $ac_dir and the user's LINGUAS
32381          # environment variable.
32382          INST_LINGUAS=
32383          if test -n "$ALL_LINGUAS"; then
32384            for presentlang in $ALL_LINGUAS; do
32385              useit=no
32386              if test "%UNSET%" != "$LINGUAS"; then
32387                desiredlanguages="$LINGUAS"
32388              else
32389                desiredlanguages="$ALL_LINGUAS"
32390              fi
32391              for desiredlang in $desiredlanguages; do
32392                # Use the presentlang catalog if desiredlang is
32393                #   a. equal to presentlang, or
32394                #   b. a variant of presentlang (because in this case,
32395                #      presentlang can be used as a fallback for messages
32396                #      which are not translated in the desiredlang catalog).
32397                case "$desiredlang" in
32398                  "$presentlang"*) useit=yes;;
32399                esac
32400              done
32401              if test $useit = yes; then
32402                INST_LINGUAS="$INST_LINGUAS $presentlang"
32403              fi
32404            done
32405          fi
32406          CATALOGS=
32407          if test -n "$INST_LINGUAS"; then
32408            for lang in $INST_LINGUAS; do
32409              CATALOGS="$CATALOGS $lang.gmo"
32410            done
32411          fi
32412          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32413          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"
32414          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32415            if test -f "$f"; then
32416              case "$f" in
32417                *.orig | *.bak | *~) ;;
32418                *) cat "$f" >> "$ac_dir/Makefile" ;;
32419              esac
32420            fi
32421          done
32422        fi
32423        ;;
32424      esac
32425    done ;;
32426    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
32427  # Strip MF so we end up with the name of the file.
32428  mf=`echo "$mf" | sed -e 's/:.*$//'`
32429  # Check whether this is an Automake generated Makefile or not.
32430  # We used to match only the files named `Makefile.in', but
32431  # some people rename them; so instead we look at the file content.
32432  # Grep'ing the first line is not enough: some people post-process
32433  # each Makefile.in and add a new line on top of each file to say so.
32434  # So let's grep whole file.
32435  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
32436    dirpart=`(dirname "$mf") 2>/dev/null ||
32437$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32438	 X"$mf" : 'X\(//\)[^/]' \| \
32439	 X"$mf" : 'X\(//\)$' \| \
32440	 X"$mf" : 'X\(/\)' \| \
32441	 .     : '\(.\)' 2>/dev/null ||
32442echo X"$mf" |
32443    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32444  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32445  	  /^X\(\/\/\)$/{ s//\1/; q; }
32446  	  /^X\(\/\).*/{ s//\1/; q; }
32447  	  s/.*/./; q'`
32448  else
32449    continue
32450  fi
32451  # Extract the definition of DEPDIR, am__include, and am__quote
32452  # from the Makefile without running `make'.
32453  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32454  test -z "$DEPDIR" && continue
32455  am__include=`sed -n 's/^am__include = //p' < "$mf"`
32456  test -z "am__include" && continue
32457  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32458  # When using ansi2knr, U may be empty or an underscore; expand it
32459  U=`sed -n 's/^U = //p' < "$mf"`
32460  # Find all dependency output files, they are included files with
32461  # $(DEPDIR) in their names.  We invoke sed twice because it is the
32462  # simplest approach to changing $(DEPDIR) to its actual value in the
32463  # expansion.
32464  for file in `sed -n "
32465    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32466       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
32467    # Make sure the directory exists.
32468    test -f "$dirpart/$file" && continue
32469    fdir=`(dirname "$file") 2>/dev/null ||
32470$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32471	 X"$file" : 'X\(//\)[^/]' \| \
32472	 X"$file" : 'X\(//\)$' \| \
32473	 X"$file" : 'X\(/\)' \| \
32474	 .     : '\(.\)' 2>/dev/null ||
32475echo X"$file" |
32476    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32477  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32478  	  /^X\(\/\/\)$/{ s//\1/; q; }
32479  	  /^X\(\/\).*/{ s//\1/; q; }
32480  	  s/.*/./; q'`
32481    { if $as_mkdir_p; then
32482    mkdir -p $dirpart/$fdir
32483  else
32484    as_dir=$dirpart/$fdir
32485    as_dirs=
32486    while test ! -d "$as_dir"; do
32487      as_dirs="$as_dir $as_dirs"
32488      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32489$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32490	 X"$as_dir" : 'X\(//\)[^/]' \| \
32491	 X"$as_dir" : 'X\(//\)$' \| \
32492	 X"$as_dir" : 'X\(/\)' \| \
32493	 .     : '\(.\)' 2>/dev/null ||
32494echo X"$as_dir" |
32495    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32496  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32497  	  /^X\(\/\/\)$/{ s//\1/; q; }
32498  	  /^X\(\/\).*/{ s//\1/; q; }
32499  	  s/.*/./; q'`
32500    done
32501    test ! -n "$as_dirs" || mkdir $as_dirs
32502  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
32503echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
32504   { (exit 1); exit 1; }; }; }
32505
32506    # echo "creating $dirpart/$file"
32507    echo '# dummy' > "$dirpart/$file"
32508  done
32509done
32510 ;;
32511  esac
32512done
32513_ACEOF
32514
32515cat >>$CONFIG_STATUS <<\_ACEOF
32516
32517{ (exit 0); exit 0; }
32518_ACEOF
32519chmod +x $CONFIG_STATUS
32520ac_clean_files=$ac_clean_files_save
32521
32522
32523# configure is writing to config.log, and then calls config.status.
32524# config.status does its own redirection, appending to config.log.
32525# Unfortunately, on DOS this fails, as config.log is still kept open
32526# by configure, so config.status won't be able to write to it; its
32527# output is simply discarded.  So we exec the FD to /dev/null,
32528# effectively closing config.log, so it can be properly (re)opened and
32529# appended to by config.status.  When coming back to configure, we
32530# need to make the FD available again.
32531if test "$no_create" != yes; then
32532  ac_cs_success=:
32533  ac_config_status_args=
32534  test "$silent" = yes &&
32535    ac_config_status_args="$ac_config_status_args --quiet"
32536  exec 5>/dev/null
32537  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32538  exec 5>>config.log
32539  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32540  # would make configure fail if this is the last instruction.
32541  $ac_cs_success || { (exit 1); exit 1; }
32542fi
32543
32544