1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.54 for gdbm 1.8.3.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21  set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
40do
41  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42    eval $as_var=C; export $as_var
43  else
44    $as_unset $as_var
45  fi
46done
47
48# Required to use basename.
49if expr a : '\(a\)' >/dev/null 2>&1; then
50  as_expr=expr
51else
52  as_expr=false
53fi
54
55if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56  as_basename=basename
57else
58  as_basename=false
59fi
60
61
62# Name of the executable.
63as_me=`$as_basename "$0" ||
64$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65	 X"$0" : 'X\(//\)$' \| \
66	 X"$0" : 'X\(/\)$' \| \
67	 .     : '\(.\)' 2>/dev/null ||
68echo X/"$0" |
69    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
71  	  /^X\/\(\/\).*/{ s//\1/; q; }
72  	  s/.*/./; q'`
73
74
75# PATH needs CR, and LINENO needs CR and PATH.
76# Avoid depending upon Character Ranges.
77as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80as_cr_digits='0123456789'
81as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83# The user is always right.
84if test "${PATH_SEPARATOR+set}" != set; then
85  echo "#! /bin/sh" >conftest.sh
86  echo  "exit 0"   >>conftest.sh
87  chmod +x conftest.sh
88  if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
89    PATH_SEPARATOR=';'
90  else
91    PATH_SEPARATOR=:
92  fi
93  rm -f conftest.sh
94fi
95
96
97  as_lineno_1=$LINENO
98  as_lineno_2=$LINENO
99  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100  test "x$as_lineno_1" != "x$as_lineno_2" &&
101  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102  # Find who we are.  Look in the path if we contain no path at all
103  # relative or not.
104  case $0 in
105    *[\\/]* ) as_myself=$0 ;;
106    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107for as_dir in $PATH
108do
109  IFS=$as_save_IFS
110  test -z "$as_dir" && as_dir=.
111  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112done
113
114       ;;
115  esac
116  # We did not find ourselves, most probably we were run as `sh COMMAND'
117  # in which case we are not to be found in the path.
118  if test "x$as_myself" = x; then
119    as_myself=$0
120  fi
121  if test ! -f "$as_myself"; then
122    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123   { (exit 1); exit 1; }; }
124  fi
125  case $CONFIG_SHELL in
126  '')
127    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129do
130  IFS=$as_save_IFS
131  test -z "$as_dir" && as_dir=.
132  for as_base in sh bash ksh sh5; do
133	 case $as_dir in
134	 /*)
135	   if ("$as_dir/$as_base" -c '
136  as_lineno_1=$LINENO
137  as_lineno_2=$LINENO
138  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139  test "x$as_lineno_1" != "x$as_lineno_2" &&
140  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143	     CONFIG_SHELL=$as_dir/$as_base
144	     export CONFIG_SHELL
145	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146	   fi;;
147	 esac
148       done
149done
150;;
151  esac
152
153  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154  # uniformly replaced by the line number.  The first 'sed' inserts a
155  # line-number line before each line; the second 'sed' does the real
156  # work.  The second script uses 'N' to pair each line-number line
157  # with the numbered line, and appends trailing '-' during
158  # substitution so that $LINENO is not a special case at line end.
159  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
161  sed '=' <$as_myself |
162    sed '
163      N
164      s,$,-,
165      : loop
166      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167      t loop
168      s,-$,,
169      s,^['$as_cr_digits']*\n,,
170    ' >$as_me.lineno &&
171  chmod +x $as_me.lineno ||
172    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173   { (exit 1); exit 1; }; }
174
175  # Don't try to exec as it changes $[0], causing all sort of problems
176  # (the dirname of $[0] is not the place where we might find the
177  # original and so on.  Autoconf is especially sensible to this).
178  . ./$as_me.lineno
179  # Exit status is that of the last command.
180  exit
181}
182
183
184case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185  *c*,-n*) ECHO_N= ECHO_C='
186' ECHO_T='	' ;;
187  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
189esac
190
191if expr a : '\(a\)' >/dev/null 2>&1; then
192  as_expr=expr
193else
194  as_expr=false
195fi
196
197rm -f conf$$ conf$$.exe conf$$.file
198echo >conf$$.file
199if ln -s conf$$.file conf$$ 2>/dev/null; then
200  # We could just check for DJGPP; but this test a) works b) is more generic
201  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202  if test -f conf$$.exe; then
203    # Don't use ln at all; we don't have any links
204    as_ln_s='cp -p'
205  else
206    as_ln_s='ln -s'
207  fi
208elif ln conf$$.file conf$$ 2>/dev/null; then
209  as_ln_s=ln
210else
211  as_ln_s='cp -p'
212fi
213rm -f conf$$ conf$$.exe conf$$.file
214
215if mkdir -p . 2>/dev/null; then
216  as_mkdir_p=:
217else
218  as_mkdir_p=false
219fi
220
221as_executable_p="test -f"
222
223# Sed expression to map a string onto a valid CPP name.
224as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
225
226# Sed expression to map a string onto a valid variable name.
227as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
228
229
230# IFS
231# We need space, tab and new line, in precisely that order.
232as_nl='
233'
234IFS=" 	$as_nl"
235
236# CDPATH.
237$as_unset CDPATH
238
239
240# Find the correct PATH separator.  Usually this is `:', but
241# DJGPP uses `;' like DOS.
242if test "X${PATH_SEPARATOR+set}" != Xset; then
243  UNAME=${UNAME-`uname 2>/dev/null`}
244  case X$UNAME in
245    *-DOS) lt_cv_sys_path_separator=';' ;;
246    *)     lt_cv_sys_path_separator=':' ;;
247  esac
248  PATH_SEPARATOR=$lt_cv_sys_path_separator
249fi
250
251
252# Check that we are running under the correct shell.
253SHELL=${CONFIG_SHELL-/bin/sh}
254
255case X$ECHO in
256X*--fallback-echo)
257  # Remove one level of quotation (which was required for Make).
258  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
259  ;;
260esac
261
262echo=${ECHO-echo}
263if test "X$1" = X--no-reexec; then
264  # Discard the --no-reexec flag, and continue.
265  shift
266elif test "X$1" = X--fallback-echo; then
267  # Avoid inline document here, it may be left over
268  :
269elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
270  # Yippee, $echo works!
271  :
272else
273  # Restart under the correct shell.
274  exec $SHELL "$0" --no-reexec ${1+"$@"}
275fi
276
277if test "X$1" = X--fallback-echo; then
278  # used as fallback echo
279  shift
280  cat <<EOF
281
282EOF
283  exit 0
284fi
285
286# The HP-UX ksh and POSIX shell print the target directory to stdout
287# if CDPATH is set.
288if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
289
290if test -z "$ECHO"; then
291if test "X${echo_test_string+set}" != Xset; then
292# find a string as large as possible, as long as the shell can cope with it
293  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
294    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
295    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
296       echo_test_string="`eval $cmd`" &&
297       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298    then
299      break
300    fi
301  done
302fi
303
304if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
305   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
306   test "X$echo_testing_string" = "X$echo_test_string"; then
307  :
308else
309  # The Solaris, AIX, and Digital Unix default echo programs unquote
310  # backslashes.  This makes it impossible to quote backslashes using
311  #   echo "$something" | sed 's/\\/\\\\/g'
312  #
313  # So, first we look for a working echo in the user's PATH.
314
315  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
316  for dir in $PATH /usr/ucb; do
317    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
318       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
319       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
320       test "X$echo_testing_string" = "X$echo_test_string"; then
321      echo="$dir/echo"
322      break
323    fi
324  done
325  IFS="$save_ifs"
326
327  if test "X$echo" = Xecho; then
328    # We didn't find a better echo, so look for alternatives.
329    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
330       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
331       test "X$echo_testing_string" = "X$echo_test_string"; then
332      # This shell has a builtin print -r that does the trick.
333      echo='print -r'
334    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
335	 test "X$CONFIG_SHELL" != X/bin/ksh; then
336      # If we have ksh, try running configure again with it.
337      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
338      export ORIGINAL_CONFIG_SHELL
339      CONFIG_SHELL=/bin/ksh
340      export CONFIG_SHELL
341      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
342    else
343      # Try using printf.
344      echo='printf %s\n'
345      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
346	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
347	 test "X$echo_testing_string" = "X$echo_test_string"; then
348	# Cool, printf works
349	:
350      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
351	   test "X$echo_testing_string" = 'X\t' &&
352	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
353	   test "X$echo_testing_string" = "X$echo_test_string"; then
354	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
355	export CONFIG_SHELL
356	SHELL="$CONFIG_SHELL"
357	export SHELL
358	echo="$CONFIG_SHELL $0 --fallback-echo"
359      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
360	   test "X$echo_testing_string" = 'X\t' &&
361	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
362	   test "X$echo_testing_string" = "X$echo_test_string"; then
363	echo="$CONFIG_SHELL $0 --fallback-echo"
364      else
365	# maybe with a smaller string...
366	prev=:
367
368	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
369	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370	  then
371	    break
372	  fi
373	  prev="$cmd"
374	done
375
376	if test "$prev" != 'sed 50q "$0"'; then
377	  echo_test_string=`eval $prev`
378	  export echo_test_string
379	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
380	else
381	  # Oops.  We lost completely, so just stick with echo.
382	  echo=echo
383	fi
384      fi
385    fi
386  fi
387fi
388fi
389
390# Copy echo and quote the copy suitably for passing to libtool from
391# the Makefile, instead of quoting the original, which is used later.
392ECHO=$echo
393if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
394   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395fi
396
397
398
399# Name of the host.
400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401# so uname gets run too.
402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404exec 6>&1
405
406#
407# Initializations.
408#
409ac_default_prefix=/usr/local
410ac_config_libobj_dir=.
411cross_compiling=no
412subdirs=
413MFLAGS=
414MAKEFLAGS=
415SHELL=${CONFIG_SHELL-/bin/sh}
416
417# Maximum number of lines to put in a shell here document.
418# This variable seems obsolete.  It should probably be removed, and
419# only ac_max_sed_lines should be used.
420: ${ac_max_here_lines=38}
421
422# Identity of this package.
423PACKAGE_NAME='gdbm'
424PACKAGE_TARNAME='gdbm'
425PACKAGE_VERSION='1.8.3'
426PACKAGE_STRING='gdbm 1.8.3'
427PACKAGE_BUGREPORT=''
428
429ac_unique_file="gdbmdefs.h"
430# Factoring default headers for most tests.
431ac_includes_default="\
432#include <stdio.h>
433#if HAVE_SYS_TYPES_H
434# include <sys/types.h>
435#endif
436#if HAVE_SYS_STAT_H
437# include <sys/stat.h>
438#endif
439#if STDC_HEADERS
440# include <stdlib.h>
441# include <stddef.h>
442#else
443# if HAVE_STDLIB_H
444#  include <stdlib.h>
445# endif
446#endif
447#if HAVE_STRING_H
448# if !STDC_HEADERS && HAVE_MEMORY_H
449#  include <memory.h>
450# endif
451# include <string.h>
452#endif
453#if HAVE_STRINGS_H
454# include <strings.h>
455#endif
456#if HAVE_INTTYPES_H
457# include <inttypes.h>
458#else
459# if HAVE_STDINT_H
460#  include <stdint.h>
461# endif
462#endif
463#if HAVE_UNISTD_H
464# include <unistd.h>
465#endif"
466
467ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP EGREP LIBTOOL LIBOBJS LTLIBOBJS'
468ac_subst_files=''
469
470# Initialize some variables set by options.
471ac_init_help=
472ac_init_version=false
473# The variables have the same names as the options, with
474# dashes changed to underlines.
475cache_file=/dev/null
476exec_prefix=NONE
477no_create=
478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
486verbose=
487x_includes=NONE
488x_libraries=NONE
489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
508ac_prev=
509for ac_option
510do
511  # If the previous option needs an argument, assign it.
512  if test -n "$ac_prev"; then
513    eval "$ac_prev=\$ac_option"
514    ac_prev=
515    continue
516  fi
517
518  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520  # Accept the important Cygnus configure options, so we can diagnose typos.
521
522  case $ac_option in
523
524  -bindir | --bindir | --bindi | --bind | --bin | --bi)
525    ac_prev=bindir ;;
526  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527    bindir=$ac_optarg ;;
528
529  -build | --build | --buil | --bui | --bu)
530    ac_prev=build_alias ;;
531  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532    build_alias=$ac_optarg ;;
533
534  -cache-file | --cache-file | --cache-fil | --cache-fi \
535  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536    ac_prev=cache_file ;;
537  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539    cache_file=$ac_optarg ;;
540
541  --config-cache | -C)
542    cache_file=config.cache ;;
543
544  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545    ac_prev=datadir ;;
546  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547  | --da=*)
548    datadir=$ac_optarg ;;
549
550  -disable-* | --disable-*)
551    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552    # Reject names that are not valid shell variable names.
553    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555   { (exit 1); exit 1; }; }
556    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557    eval "enable_$ac_feature=no" ;;
558
559  -enable-* | --enable-*)
560    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561    # Reject names that are not valid shell variable names.
562    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564   { (exit 1); exit 1; }; }
565    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566    case $ac_option in
567      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568      *) ac_optarg=yes ;;
569    esac
570    eval "enable_$ac_feature='$ac_optarg'" ;;
571
572  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574  | --exec | --exe | --ex)
575    ac_prev=exec_prefix ;;
576  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578  | --exec=* | --exe=* | --ex=*)
579    exec_prefix=$ac_optarg ;;
580
581  -gas | --gas | --ga | --g)
582    # Obsolete; use --with-gas.
583    with_gas=yes ;;
584
585  -help | --help | --hel | --he | -h)
586    ac_init_help=long ;;
587  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588    ac_init_help=recursive ;;
589  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590    ac_init_help=short ;;
591
592  -host | --host | --hos | --ho)
593    ac_prev=host_alias ;;
594  -host=* | --host=* | --hos=* | --ho=*)
595    host_alias=$ac_optarg ;;
596
597  -includedir | --includedir | --includedi | --included | --include \
598  | --includ | --inclu | --incl | --inc)
599    ac_prev=includedir ;;
600  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601  | --includ=* | --inclu=* | --incl=* | --inc=*)
602    includedir=$ac_optarg ;;
603
604  -infodir | --infodir | --infodi | --infod | --info | --inf)
605    ac_prev=infodir ;;
606  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607    infodir=$ac_optarg ;;
608
609  -libdir | --libdir | --libdi | --libd)
610    ac_prev=libdir ;;
611  -libdir=* | --libdir=* | --libdi=* | --libd=*)
612    libdir=$ac_optarg ;;
613
614  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615  | --libexe | --libex | --libe)
616    ac_prev=libexecdir ;;
617  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618  | --libexe=* | --libex=* | --libe=*)
619    libexecdir=$ac_optarg ;;
620
621  -localstatedir | --localstatedir | --localstatedi | --localstated \
622  | --localstate | --localstat | --localsta | --localst \
623  | --locals | --local | --loca | --loc | --lo)
624    ac_prev=localstatedir ;;
625  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628    localstatedir=$ac_optarg ;;
629
630  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631    ac_prev=mandir ;;
632  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633    mandir=$ac_optarg ;;
634
635  -nfp | --nfp | --nf)
636    # Obsolete; use --without-fp.
637    with_fp=no ;;
638
639  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640  | --no-cr | --no-c | -n)
641    no_create=yes ;;
642
643  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645    no_recursion=yes ;;
646
647  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649  | --oldin | --oldi | --old | --ol | --o)
650    ac_prev=oldincludedir ;;
651  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654    oldincludedir=$ac_optarg ;;
655
656  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657    ac_prev=prefix ;;
658  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659    prefix=$ac_optarg ;;
660
661  -program-prefix | --program-prefix | --program-prefi | --program-pref \
662  | --program-pre | --program-pr | --program-p)
663    ac_prev=program_prefix ;;
664  -program-prefix=* | --program-prefix=* | --program-prefi=* \
665  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666    program_prefix=$ac_optarg ;;
667
668  -program-suffix | --program-suffix | --program-suffi | --program-suff \
669  | --program-suf | --program-su | --program-s)
670    ac_prev=program_suffix ;;
671  -program-suffix=* | --program-suffix=* | --program-suffi=* \
672  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673    program_suffix=$ac_optarg ;;
674
675  -program-transform-name | --program-transform-name \
676  | --program-transform-nam | --program-transform-na \
677  | --program-transform-n | --program-transform- \
678  | --program-transform | --program-transfor \
679  | --program-transfo | --program-transf \
680  | --program-trans | --program-tran \
681  | --progr-tra | --program-tr | --program-t)
682    ac_prev=program_transform_name ;;
683  -program-transform-name=* | --program-transform-name=* \
684  | --program-transform-nam=* | --program-transform-na=* \
685  | --program-transform-n=* | --program-transform-=* \
686  | --program-transform=* | --program-transfor=* \
687  | --program-transfo=* | --program-transf=* \
688  | --program-trans=* | --program-tran=* \
689  | --progr-tra=* | --program-tr=* | --program-t=*)
690    program_transform_name=$ac_optarg ;;
691
692  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693  | -silent | --silent | --silen | --sile | --sil)
694    silent=yes ;;
695
696  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697    ac_prev=sbindir ;;
698  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699  | --sbi=* | --sb=*)
700    sbindir=$ac_optarg ;;
701
702  -sharedstatedir | --sharedstatedir | --sharedstatedi \
703  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704  | --sharedst | --shareds | --shared | --share | --shar \
705  | --sha | --sh)
706    ac_prev=sharedstatedir ;;
707  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710  | --sha=* | --sh=*)
711    sharedstatedir=$ac_optarg ;;
712
713  -site | --site | --sit)
714    ac_prev=site ;;
715  -site=* | --site=* | --sit=*)
716    site=$ac_optarg ;;
717
718  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719    ac_prev=srcdir ;;
720  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721    srcdir=$ac_optarg ;;
722
723  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724  | --syscon | --sysco | --sysc | --sys | --sy)
725    ac_prev=sysconfdir ;;
726  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728    sysconfdir=$ac_optarg ;;
729
730  -target | --target | --targe | --targ | --tar | --ta | --t)
731    ac_prev=target_alias ;;
732  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733    target_alias=$ac_optarg ;;
734
735  -v | -verbose | --verbose | --verbos | --verbo | --verb)
736    verbose=yes ;;
737
738  -version | --version | --versio | --versi | --vers | -V)
739    ac_init_version=: ;;
740
741  -with-* | --with-*)
742    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743    # Reject names that are not valid shell variable names.
744    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745      { echo "$as_me: error: invalid package name: $ac_package" >&2
746   { (exit 1); exit 1; }; }
747    ac_package=`echo $ac_package| sed 's/-/_/g'`
748    case $ac_option in
749      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750      *) ac_optarg=yes ;;
751    esac
752    eval "with_$ac_package='$ac_optarg'" ;;
753
754  -without-* | --without-*)
755    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756    # Reject names that are not valid shell variable names.
757    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758      { echo "$as_me: error: invalid package name: $ac_package" >&2
759   { (exit 1); exit 1; }; }
760    ac_package=`echo $ac_package | sed 's/-/_/g'`
761    eval "with_$ac_package=no" ;;
762
763  --x)
764    # Obsolete; use --with-x.
765    with_x=yes ;;
766
767  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768  | --x-incl | --x-inc | --x-in | --x-i)
769    ac_prev=x_includes ;;
770  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772    x_includes=$ac_optarg ;;
773
774  -x-libraries | --x-libraries | --x-librarie | --x-librari \
775  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776    ac_prev=x_libraries ;;
777  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779    x_libraries=$ac_optarg ;;
780
781  -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783   { (exit 1); exit 1; }; }
784    ;;
785
786  *=*)
787    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788    # Reject names that are not valid shell variable names.
789    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791   { (exit 1); exit 1; }; }
792    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793    eval "$ac_envvar='$ac_optarg'"
794    export $ac_envvar ;;
795
796  *)
797    # FIXME: should be removed in autoconf 3.0.
798    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802    ;;
803
804  esac
805done
806
807if test -n "$ac_prev"; then
808  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809  { echo "$as_me: error: missing argument to $ac_option" >&2
810   { (exit 1); exit 1; }; }
811fi
812
813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816  eval ac_val=$`echo $ac_var`
817  case $ac_val in
818    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820   { (exit 1); exit 1; }; };;
821  esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826              localstatedir libdir includedir oldincludedir infodir mandir
827do
828  eval ac_val=$`echo $ac_var`
829  case $ac_val in
830    [\\/$]* | ?:[\\/]* ) ;;
831    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832   { (exit 1); exit 1; }; };;
833  esac
834done
835
836# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845  if test "x$build_alias" = x; then
846    cross_compiling=maybe
847    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848    If a cross compiler is detected then cross compile mode will be used." >&2
849  elif test "x$build_alias" != "x$host_alias"; then
850    cross_compiling=yes
851  fi
852fi
853
854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
858
859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862  ac_srcdir_defaulted=yes
863  # Try the directory containing this script, then its parent.
864  ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866         X"$0" : 'X\(//\)[^/]' \| \
867         X"$0" : 'X\(//\)$' \| \
868         X"$0" : 'X\(/\)' \| \
869         .     : '\(.\)' 2>/dev/null ||
870echo X"$0" |
871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873  	  /^X\(\/\/\)$/{ s//\1/; q; }
874  	  /^X\(\/\).*/{ s//\1/; q; }
875  	  s/.*/./; q'`
876  srcdir=$ac_confdir
877  if test ! -r $srcdir/$ac_unique_file; then
878    srcdir=..
879  fi
880else
881  ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884  if test "$ac_srcdir_defaulted" = yes; then
885    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886   { (exit 1); exit 1; }; }
887  else
888    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889   { (exit 1); exit 1; }; }
890  fi
891fi
892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894   { (exit 1); exit 1; }; }
895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CC_set=${CC+set}
909ac_env_CC_value=$CC
910ac_cv_env_CC_set=${CC+set}
911ac_cv_env_CC_value=$CC
912ac_env_CFLAGS_set=${CFLAGS+set}
913ac_env_CFLAGS_value=$CFLAGS
914ac_cv_env_CFLAGS_set=${CFLAGS+set}
915ac_cv_env_CFLAGS_value=$CFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924ac_env_CPP_set=${CPP+set}
925ac_env_CPP_value=$CPP
926ac_cv_env_CPP_set=${CPP+set}
927ac_cv_env_CPP_value=$CPP
928
929#
930# Report the --help message.
931#
932if test "$ac_init_help" = "long"; then
933  # Omit some internal or obsolete options to make the list less imposing.
934  # This message is too long to be a string in the A/UX 3.1 sh.
935  cat <<_ACEOF
936\`configure' configures gdbm 1.8.3 to adapt to many kinds of systems.
937
938Usage: $0 [OPTION]... [VAR=VALUE]...
939
940To assign environment variables (e.g., CC, CFLAGS...), specify them as
941VAR=VALUE.  See below for descriptions of some of the useful variables.
942
943Defaults for the options are specified in brackets.
944
945Configuration:
946  -h, --help              display this help and exit
947      --help=short        display options specific to this package
948      --help=recursive    display the short help of all the included packages
949  -V, --version           display version information and exit
950  -q, --quiet, --silent   do not print \`checking...' messages
951      --cache-file=FILE   cache test results in FILE [disabled]
952  -C, --config-cache      alias for \`--cache-file=config.cache'
953  -n, --no-create         do not create output files
954      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
955
956_ACEOF
957
958  cat <<_ACEOF
959Installation directories:
960  --prefix=PREFIX         install architecture-independent files in PREFIX
961                          [$ac_default_prefix]
962  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
963                          [PREFIX]
964
965By default, \`make install' will install all the files in
966\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
967an installation prefix other than \`$ac_default_prefix' using \`--prefix',
968for instance \`--prefix=\$HOME'.
969
970For better control, use the options below.
971
972Fine tuning of the installation directories:
973  --bindir=DIR           user executables [EPREFIX/bin]
974  --sbindir=DIR          system admin executables [EPREFIX/sbin]
975  --libexecdir=DIR       program executables [EPREFIX/libexec]
976  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
977  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
978  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
979  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
980  --libdir=DIR           object code libraries [EPREFIX/lib]
981  --includedir=DIR       C header files [PREFIX/include]
982  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
983  --infodir=DIR          info documentation [PREFIX/info]
984  --mandir=DIR           man documentation [PREFIX/man]
985_ACEOF
986
987  cat <<\_ACEOF
988
989System types:
990  --build=BUILD     configure for building on BUILD [guessed]
991  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
992_ACEOF
993fi
994
995if test -n "$ac_init_help"; then
996  case $ac_init_help in
997     short | recursive ) echo "Configuration of gdbm 1.8.3:";;
998   esac
999  cat <<\_ACEOF
1000
1001Optional Features:
1002  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1003  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1004  --enable-shared=PKGS  build shared libraries default=yes
1005  --enable-static=PKGS  build static libraries default=yes
1006  --enable-fast-install=PKGS  optimize for fast installation default=yes
1007  --disable-libtool-lock  avoid locking (might break parallel builds)
1008
1009Optional Packages:
1010  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1011  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1012  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1013  --with-pic              try to use only PIC/non-PIC objects default=use both
1014
1015Some influential environment variables:
1016  CC          C compiler command
1017  CFLAGS      C compiler flags
1018  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1019              nonstandard directory <lib dir>
1020  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1021              headers in a nonstandard directory <include dir>
1022  CPP         C preprocessor
1023
1024Use these variables to override the choices made by `configure' or to help
1025it to find libraries and programs with nonstandard names/locations.
1026
1027_ACEOF
1028fi
1029
1030if test "$ac_init_help" = "recursive"; then
1031  # If there are subdirs, report their specific --help.
1032  ac_popdir=`pwd`
1033  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1034    test -d $ac_dir || continue
1035    ac_builddir=.
1036
1037if test "$ac_dir" != .; then
1038  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1039  # A "../" for each directory in $ac_dir_suffix.
1040  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1041else
1042  ac_dir_suffix= ac_top_builddir=
1043fi
1044
1045case $srcdir in
1046  .)  # No --srcdir option.  We are building in place.
1047    ac_srcdir=.
1048    if test -z "$ac_top_builddir"; then
1049       ac_top_srcdir=.
1050    else
1051       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1052    fi ;;
1053  [\\/]* | ?:[\\/]* )  # Absolute path.
1054    ac_srcdir=$srcdir$ac_dir_suffix;
1055    ac_top_srcdir=$srcdir ;;
1056  *) # Relative path.
1057    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1058    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1059esac
1060# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1061# absolute.
1062ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1063ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1064ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1065ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1066
1067    cd $ac_dir
1068    # Check for guested configure; otherwise get Cygnus style configure.
1069    if test -f $ac_srcdir/configure.gnu; then
1070      echo
1071      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1072    elif test -f $ac_srcdir/configure; then
1073      echo
1074      $SHELL $ac_srcdir/configure  --help=recursive
1075    elif test -f $ac_srcdir/configure.ac ||
1076           test -f $ac_srcdir/configure.in; then
1077      echo
1078      $ac_configure --help
1079    else
1080      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1081    fi
1082    cd $ac_popdir
1083  done
1084fi
1085
1086test -n "$ac_init_help" && exit 0
1087if $ac_init_version; then
1088  cat <<\_ACEOF
1089gdbm configure 1.8.3
1090generated by GNU Autoconf 2.54
1091
1092Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1093Free Software Foundation, Inc.
1094This configure script is free software; the Free Software Foundation
1095gives unlimited permission to copy, distribute and modify it.
1096_ACEOF
1097  exit 0
1098fi
1099exec 5>config.log
1100cat >&5 <<_ACEOF
1101This file contains any messages produced by compilers while
1102running configure, to aid debugging if configure makes a mistake.
1103
1104It was created by gdbm $as_me 1.8.3, which was
1105generated by GNU Autoconf 2.54.  Invocation command line was
1106
1107  $ $0 $@
1108
1109_ACEOF
1110{
1111cat <<_ASUNAME
1112## --------- ##
1113## Platform. ##
1114## --------- ##
1115
1116hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1117uname -m = `(uname -m) 2>/dev/null || echo unknown`
1118uname -r = `(uname -r) 2>/dev/null || echo unknown`
1119uname -s = `(uname -s) 2>/dev/null || echo unknown`
1120uname -v = `(uname -v) 2>/dev/null || echo unknown`
1121
1122/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1123/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1124
1125/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1126/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1127/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1128hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1129/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1130/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1131/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1132
1133_ASUNAME
1134
1135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1136for as_dir in $PATH
1137do
1138  IFS=$as_save_IFS
1139  test -z "$as_dir" && as_dir=.
1140  echo "PATH: $as_dir"
1141done
1142
1143} >&5
1144
1145cat >&5 <<_ACEOF
1146
1147
1148## ----------- ##
1149## Core tests. ##
1150## ----------- ##
1151
1152_ACEOF
1153
1154
1155# Keep a trace of the command line.
1156# Strip out --no-create and --no-recursion so they do not pile up.
1157# Also quote any args containing shell meta-characters.
1158ac_configure_args=
1159ac_sep=
1160for ac_arg
1161do
1162  case $ac_arg in
1163  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164  | --no-cr | --no-c | -n ) continue ;;
1165  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167    continue ;;
1168  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1169    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1170  esac
1171  ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1172  # Get rid of the leading space.
1173  ac_sep=" "
1174done
1175
1176# When interrupted or exit'd, cleanup temporary files, and complete
1177# config.log.  We remove comments because anyway the quotes in there
1178# would cause problems or look ugly.
1179# WARNING: Be sure not to use single quotes in there, as some shells,
1180# such as our DU 5.0 friend, will then `close' the trap.
1181trap 'exit_status=$?
1182  # Save into config.log some information that might help in debugging.
1183  {
1184    echo
1185
1186    cat <<\_ASBOX
1187## ---------------- ##
1188## Cache variables. ##
1189## ---------------- ##
1190_ASBOX
1191    echo
1192    # The following way of writing the cache mishandles newlines in values,
1193{
1194  (set) 2>&1 |
1195    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1196    *ac_space=\ *)
1197      sed -n \
1198        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1199    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1200      ;;
1201    *)
1202      sed -n \
1203        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1204      ;;
1205    esac;
1206}
1207    echo
1208
1209    cat <<\_ASBOX
1210## ----------------- ##
1211## Output variables. ##
1212## ----------------- ##
1213_ASBOX
1214    echo
1215    for ac_var in $ac_subst_vars
1216    do
1217      eval ac_val=$`echo $ac_var`
1218      echo "$ac_var='"'"'$ac_val'"'"'"
1219    done | sort
1220    echo
1221
1222    if test -n "$ac_subst_files"; then
1223      cat <<\_ASBOX
1224## ------------- ##
1225## Output files. ##
1226## ------------- ##
1227_ASBOX
1228      echo
1229      for ac_var in $ac_subst_files
1230      do
1231	eval ac_val=$`echo $ac_var`
1232        echo "$ac_var='"'"'$ac_val'"'"'"
1233      done | sort
1234      echo
1235    fi
1236
1237    if test -s confdefs.h; then
1238      cat <<\_ASBOX
1239## ----------- ##
1240## confdefs.h. ##
1241## ----------- ##
1242_ASBOX
1243      echo
1244      sed "/^$/d" confdefs.h | sort
1245      echo
1246    fi
1247    test "$ac_signal" != 0 &&
1248      echo "$as_me: caught signal $ac_signal"
1249    echo "$as_me: exit $exit_status"
1250  } >&5
1251  rm -f core core.* *.core &&
1252  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1253    exit $exit_status
1254     ' 0
1255for ac_signal in 1 2 13 15; do
1256  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1257done
1258ac_signal=0
1259
1260# confdefs.h avoids OS command line length limits that DEFS can exceed.
1261rm -rf conftest* confdefs.h
1262# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1263echo >confdefs.h
1264
1265# Predefined preprocessor variables.
1266
1267cat >>confdefs.h <<_ACEOF
1268#define PACKAGE_NAME "$PACKAGE_NAME"
1269_ACEOF
1270
1271
1272cat >>confdefs.h <<_ACEOF
1273#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1274_ACEOF
1275
1276
1277cat >>confdefs.h <<_ACEOF
1278#define PACKAGE_VERSION "$PACKAGE_VERSION"
1279_ACEOF
1280
1281
1282cat >>confdefs.h <<_ACEOF
1283#define PACKAGE_STRING "$PACKAGE_STRING"
1284_ACEOF
1285
1286
1287cat >>confdefs.h <<_ACEOF
1288#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1289_ACEOF
1290
1291
1292# Let the site file select an alternate cache file if it wants to.
1293# Prefer explicitly selected file to automatically selected ones.
1294if test -z "$CONFIG_SITE"; then
1295  if test "x$prefix" != xNONE; then
1296    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1297  else
1298    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1299  fi
1300fi
1301for ac_site_file in $CONFIG_SITE; do
1302  if test -r "$ac_site_file"; then
1303    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1304echo "$as_me: loading site script $ac_site_file" >&6;}
1305    sed 's/^/| /' "$ac_site_file" >&5
1306    . "$ac_site_file"
1307  fi
1308done
1309
1310if test -r "$cache_file"; then
1311  # Some versions of bash will fail to source /dev/null (special
1312  # files actually), so we avoid doing that.
1313  if test -f "$cache_file"; then
1314    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1315echo "$as_me: loading cache $cache_file" >&6;}
1316    case $cache_file in
1317      [\\/]* | ?:[\\/]* ) . $cache_file;;
1318      *)                      . ./$cache_file;;
1319    esac
1320  fi
1321else
1322  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1323echo "$as_me: creating cache $cache_file" >&6;}
1324  >$cache_file
1325fi
1326
1327# Check that the precious variables saved in the cache have kept the same
1328# value.
1329ac_cache_corrupted=false
1330for ac_var in `(set) 2>&1 |
1331               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1332  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1333  eval ac_new_set=\$ac_env_${ac_var}_set
1334  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1335  eval ac_new_val="\$ac_env_${ac_var}_value"
1336  case $ac_old_set,$ac_new_set in
1337    set,)
1338      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1339echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1340      ac_cache_corrupted=: ;;
1341    ,set)
1342      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1343echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1344      ac_cache_corrupted=: ;;
1345    ,);;
1346    *)
1347      if test "x$ac_old_val" != "x$ac_new_val"; then
1348        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1349echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1350        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1351echo "$as_me:   former value:  $ac_old_val" >&2;}
1352        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1353echo "$as_me:   current value: $ac_new_val" >&2;}
1354        ac_cache_corrupted=:
1355      fi;;
1356  esac
1357  # Pass precious variables to config.status.
1358  if test "$ac_new_set" = set; then
1359    case $ac_new_val in
1360    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1361      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1362    *) ac_arg=$ac_var=$ac_new_val ;;
1363    esac
1364    case " $ac_configure_args " in
1365      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1366      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1367    esac
1368  fi
1369done
1370if $ac_cache_corrupted; then
1371  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1372echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1373  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1374echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1375   { (exit 1); exit 1; }; }
1376fi
1377
1378ac_ext=c
1379ac_cpp='$CPP $CPPFLAGS'
1380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1382ac_compiler_gnu=$ac_cv_c_compiler_gnu
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412          ac_config_headers="$ac_config_headers autoconf.h"
1413
1414ac_ext=c
1415ac_cpp='$CPP $CPPFLAGS'
1416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1418ac_compiler_gnu=$ac_cv_c_compiler_gnu
1419if test -n "$ac_tool_prefix"; then
1420  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1421set dummy ${ac_tool_prefix}gcc; ac_word=$2
1422echo "$as_me:$LINENO: checking for $ac_word" >&5
1423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1424if test "${ac_cv_prog_CC+set}" = set; then
1425  echo $ECHO_N "(cached) $ECHO_C" >&6
1426else
1427  if test -n "$CC"; then
1428  ac_cv_prog_CC="$CC" # Let the user override the test.
1429else
1430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431for as_dir in $PATH
1432do
1433  IFS=$as_save_IFS
1434  test -z "$as_dir" && as_dir=.
1435  for ac_exec_ext in '' $ac_executable_extensions; do
1436  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1437    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1438    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1439    break 2
1440  fi
1441done
1442done
1443
1444fi
1445fi
1446CC=$ac_cv_prog_CC
1447if test -n "$CC"; then
1448  echo "$as_me:$LINENO: result: $CC" >&5
1449echo "${ECHO_T}$CC" >&6
1450else
1451  echo "$as_me:$LINENO: result: no" >&5
1452echo "${ECHO_T}no" >&6
1453fi
1454
1455fi
1456if test -z "$ac_cv_prog_CC"; then
1457  ac_ct_CC=$CC
1458  # Extract the first word of "gcc", so it can be a program name with args.
1459set dummy gcc; ac_word=$2
1460echo "$as_me:$LINENO: checking for $ac_word" >&5
1461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1462if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1463  echo $ECHO_N "(cached) $ECHO_C" >&6
1464else
1465  if test -n "$ac_ct_CC"; then
1466  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1467else
1468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1469for as_dir in $PATH
1470do
1471  IFS=$as_save_IFS
1472  test -z "$as_dir" && as_dir=.
1473  for ac_exec_ext in '' $ac_executable_extensions; do
1474  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1475    ac_cv_prog_ac_ct_CC="gcc"
1476    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1477    break 2
1478  fi
1479done
1480done
1481
1482fi
1483fi
1484ac_ct_CC=$ac_cv_prog_ac_ct_CC
1485if test -n "$ac_ct_CC"; then
1486  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1487echo "${ECHO_T}$ac_ct_CC" >&6
1488else
1489  echo "$as_me:$LINENO: result: no" >&5
1490echo "${ECHO_T}no" >&6
1491fi
1492
1493  CC=$ac_ct_CC
1494else
1495  CC="$ac_cv_prog_CC"
1496fi
1497
1498if test -z "$CC"; then
1499  if test -n "$ac_tool_prefix"; then
1500  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1501set dummy ${ac_tool_prefix}cc; ac_word=$2
1502echo "$as_me:$LINENO: checking for $ac_word" >&5
1503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504if test "${ac_cv_prog_CC+set}" = set; then
1505  echo $ECHO_N "(cached) $ECHO_C" >&6
1506else
1507  if test -n "$CC"; then
1508  ac_cv_prog_CC="$CC" # Let the user override the test.
1509else
1510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511for as_dir in $PATH
1512do
1513  IFS=$as_save_IFS
1514  test -z "$as_dir" && as_dir=.
1515  for ac_exec_ext in '' $ac_executable_extensions; do
1516  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517    ac_cv_prog_CC="${ac_tool_prefix}cc"
1518    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519    break 2
1520  fi
1521done
1522done
1523
1524fi
1525fi
1526CC=$ac_cv_prog_CC
1527if test -n "$CC"; then
1528  echo "$as_me:$LINENO: result: $CC" >&5
1529echo "${ECHO_T}$CC" >&6
1530else
1531  echo "$as_me:$LINENO: result: no" >&5
1532echo "${ECHO_T}no" >&6
1533fi
1534
1535fi
1536if test -z "$ac_cv_prog_CC"; then
1537  ac_ct_CC=$CC
1538  # Extract the first word of "cc", so it can be a program name with args.
1539set dummy cc; ac_word=$2
1540echo "$as_me:$LINENO: checking for $ac_word" >&5
1541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1543  echo $ECHO_N "(cached) $ECHO_C" >&6
1544else
1545  if test -n "$ac_ct_CC"; then
1546  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1547else
1548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549for as_dir in $PATH
1550do
1551  IFS=$as_save_IFS
1552  test -z "$as_dir" && as_dir=.
1553  for ac_exec_ext in '' $ac_executable_extensions; do
1554  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1555    ac_cv_prog_ac_ct_CC="cc"
1556    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557    break 2
1558  fi
1559done
1560done
1561
1562fi
1563fi
1564ac_ct_CC=$ac_cv_prog_ac_ct_CC
1565if test -n "$ac_ct_CC"; then
1566  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1567echo "${ECHO_T}$ac_ct_CC" >&6
1568else
1569  echo "$as_me:$LINENO: result: no" >&5
1570echo "${ECHO_T}no" >&6
1571fi
1572
1573  CC=$ac_ct_CC
1574else
1575  CC="$ac_cv_prog_CC"
1576fi
1577
1578fi
1579if test -z "$CC"; then
1580  # Extract the first word of "cc", so it can be a program name with args.
1581set dummy cc; ac_word=$2
1582echo "$as_me:$LINENO: checking for $ac_word" >&5
1583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1584if test "${ac_cv_prog_CC+set}" = set; then
1585  echo $ECHO_N "(cached) $ECHO_C" >&6
1586else
1587  if test -n "$CC"; then
1588  ac_cv_prog_CC="$CC" # Let the user override the test.
1589else
1590  ac_prog_rejected=no
1591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1592for as_dir in $PATH
1593do
1594  IFS=$as_save_IFS
1595  test -z "$as_dir" && as_dir=.
1596  for ac_exec_ext in '' $ac_executable_extensions; do
1597  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1599       ac_prog_rejected=yes
1600       continue
1601     fi
1602    ac_cv_prog_CC="cc"
1603    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1604    break 2
1605  fi
1606done
1607done
1608
1609if test $ac_prog_rejected = yes; then
1610  # We found a bogon in the path, so make sure we never use it.
1611  set dummy $ac_cv_prog_CC
1612  shift
1613  if test $# != 0; then
1614    # We chose a different compiler from the bogus one.
1615    # However, it has the same basename, so the bogon will be chosen
1616    # first if we set CC to just the basename; use the full file name.
1617    shift
1618    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1619  fi
1620fi
1621fi
1622fi
1623CC=$ac_cv_prog_CC
1624if test -n "$CC"; then
1625  echo "$as_me:$LINENO: result: $CC" >&5
1626echo "${ECHO_T}$CC" >&6
1627else
1628  echo "$as_me:$LINENO: result: no" >&5
1629echo "${ECHO_T}no" >&6
1630fi
1631
1632fi
1633if test -z "$CC"; then
1634  if test -n "$ac_tool_prefix"; then
1635  for ac_prog in cl
1636  do
1637    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1638set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1639echo "$as_me:$LINENO: checking for $ac_word" >&5
1640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641if test "${ac_cv_prog_CC+set}" = set; then
1642  echo $ECHO_N "(cached) $ECHO_C" >&6
1643else
1644  if test -n "$CC"; then
1645  ac_cv_prog_CC="$CC" # Let the user override the test.
1646else
1647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648for as_dir in $PATH
1649do
1650  IFS=$as_save_IFS
1651  test -z "$as_dir" && as_dir=.
1652  for ac_exec_ext in '' $ac_executable_extensions; do
1653  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1655    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656    break 2
1657  fi
1658done
1659done
1660
1661fi
1662fi
1663CC=$ac_cv_prog_CC
1664if test -n "$CC"; then
1665  echo "$as_me:$LINENO: result: $CC" >&5
1666echo "${ECHO_T}$CC" >&6
1667else
1668  echo "$as_me:$LINENO: result: no" >&5
1669echo "${ECHO_T}no" >&6
1670fi
1671
1672    test -n "$CC" && break
1673  done
1674fi
1675if test -z "$CC"; then
1676  ac_ct_CC=$CC
1677  for ac_prog in cl
1678do
1679  # Extract the first word of "$ac_prog", so it can be a program name with args.
1680set dummy $ac_prog; ac_word=$2
1681echo "$as_me:$LINENO: checking for $ac_word" >&5
1682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1684  echo $ECHO_N "(cached) $ECHO_C" >&6
1685else
1686  if test -n "$ac_ct_CC"; then
1687  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1688else
1689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690for as_dir in $PATH
1691do
1692  IFS=$as_save_IFS
1693  test -z "$as_dir" && as_dir=.
1694  for ac_exec_ext in '' $ac_executable_extensions; do
1695  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696    ac_cv_prog_ac_ct_CC="$ac_prog"
1697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698    break 2
1699  fi
1700done
1701done
1702
1703fi
1704fi
1705ac_ct_CC=$ac_cv_prog_ac_ct_CC
1706if test -n "$ac_ct_CC"; then
1707  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1708echo "${ECHO_T}$ac_ct_CC" >&6
1709else
1710  echo "$as_me:$LINENO: result: no" >&5
1711echo "${ECHO_T}no" >&6
1712fi
1713
1714  test -n "$ac_ct_CC" && break
1715done
1716
1717  CC=$ac_ct_CC
1718fi
1719
1720fi
1721
1722
1723test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1724echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1725   { (exit 1); exit 1; }; }
1726
1727# Provide some information about the compiler.
1728echo "$as_me:$LINENO:" \
1729     "checking for C compiler version" >&5
1730ac_compiler=`set X $ac_compile; echo $2`
1731{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1732  (eval $ac_compiler --version </dev/null >&5) 2>&5
1733  ac_status=$?
1734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1735  (exit $ac_status); }
1736{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1737  (eval $ac_compiler -v </dev/null >&5) 2>&5
1738  ac_status=$?
1739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1740  (exit $ac_status); }
1741{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1742  (eval $ac_compiler -V </dev/null >&5) 2>&5
1743  ac_status=$?
1744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1745  (exit $ac_status); }
1746
1747cat >conftest.$ac_ext <<_ACEOF
1748#line $LINENO "configure"
1749#include "confdefs.h"
1750
1751int
1752main ()
1753{
1754
1755  ;
1756  return 0;
1757}
1758_ACEOF
1759ac_clean_files_save=$ac_clean_files
1760ac_clean_files="$ac_clean_files a.out a.exe"
1761# Try to create an executable without -o first, disregard a.out.
1762# It will help us diagnose broken compilers, and finding out an intuition
1763# of exeext.
1764echo "$as_me:$LINENO: checking for C compiler default output" >&5
1765echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1766ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1767if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1768  (eval $ac_link_default) 2>&5
1769  ac_status=$?
1770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1771  (exit $ac_status); }; then
1772  # Find the output, starting from the most likely.  This scheme is
1773# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1774# resort.
1775
1776# Be careful to initialize this variable, since it used to be cached.
1777# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1778ac_cv_exeext=
1779for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1780  test -f "$ac_file" || continue
1781  case $ac_file in
1782    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1783    a.out ) # We found the default executable, but exeext='' is most
1784            # certainly right.
1785            break;;
1786    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1787          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1788          export ac_cv_exeext
1789          break;;
1790    * ) break;;
1791  esac
1792done
1793else
1794  echo "$as_me: failed program was:" >&5
1795cat conftest.$ac_ext >&5
1796{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1797check \`config.log' for details." >&5
1798echo "$as_me: error: C compiler cannot create executables
1799check \`config.log' for details." >&2;}
1800   { (exit 77); exit 77; }; }
1801fi
1802
1803ac_exeext=$ac_cv_exeext
1804echo "$as_me:$LINENO: result: $ac_file" >&5
1805echo "${ECHO_T}$ac_file" >&6
1806
1807# Check the compiler produces executables we can run.  If not, either
1808# the compiler is broken, or we cross compile.
1809echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1810echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1811# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1812# If not cross compiling, check that we can run a simple program.
1813if test "$cross_compiling" != yes; then
1814  if { ac_try='./$ac_file'
1815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1816  (eval $ac_try) 2>&5
1817  ac_status=$?
1818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819  (exit $ac_status); }; }; then
1820    cross_compiling=no
1821  else
1822    if test "$cross_compiling" = maybe; then
1823	cross_compiling=yes
1824    else
1825	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1826If you meant to cross compile, use \`--host'." >&5
1827echo "$as_me: error: cannot run C compiled programs.
1828If you meant to cross compile, use \`--host'." >&2;}
1829   { (exit 1); exit 1; }; }
1830    fi
1831  fi
1832fi
1833echo "$as_me:$LINENO: result: yes" >&5
1834echo "${ECHO_T}yes" >&6
1835
1836rm -f a.out a.exe conftest$ac_cv_exeext
1837ac_clean_files=$ac_clean_files_save
1838# Check the compiler produces executables we can run.  If not, either
1839# the compiler is broken, or we cross compile.
1840echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1841echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1842echo "$as_me:$LINENO: result: $cross_compiling" >&5
1843echo "${ECHO_T}$cross_compiling" >&6
1844
1845echo "$as_me:$LINENO: checking for suffix of executables" >&5
1846echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1848  (eval $ac_link) 2>&5
1849  ac_status=$?
1850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851  (exit $ac_status); }; then
1852  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1853# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1854# work properly (i.e., refer to `conftest.exe'), while it won't with
1855# `rm'.
1856for ac_file in conftest.exe conftest conftest.*; do
1857  test -f "$ac_file" || continue
1858  case $ac_file in
1859    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1860    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1861          export ac_cv_exeext
1862          break;;
1863    * ) break;;
1864  esac
1865done
1866else
1867  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1868echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1869   { (exit 1); exit 1; }; }
1870fi
1871
1872rm -f conftest$ac_cv_exeext
1873echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1874echo "${ECHO_T}$ac_cv_exeext" >&6
1875
1876rm -f conftest.$ac_ext
1877EXEEXT=$ac_cv_exeext
1878ac_exeext=$EXEEXT
1879echo "$as_me:$LINENO: checking for suffix of object files" >&5
1880echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1881if test "${ac_cv_objext+set}" = set; then
1882  echo $ECHO_N "(cached) $ECHO_C" >&6
1883else
1884  cat >conftest.$ac_ext <<_ACEOF
1885#line $LINENO "configure"
1886#include "confdefs.h"
1887
1888int
1889main ()
1890{
1891
1892  ;
1893  return 0;
1894}
1895_ACEOF
1896rm -f conftest.o conftest.obj
1897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1898  (eval $ac_compile) 2>&5
1899  ac_status=$?
1900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1901  (exit $ac_status); }; then
1902  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1903  case $ac_file in
1904    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1905    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1906       break;;
1907  esac
1908done
1909else
1910  echo "$as_me: failed program was:" >&5
1911cat conftest.$ac_ext >&5
1912{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1913echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1914   { (exit 1); exit 1; }; }
1915fi
1916
1917rm -f conftest.$ac_cv_objext conftest.$ac_ext
1918fi
1919echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1920echo "${ECHO_T}$ac_cv_objext" >&6
1921OBJEXT=$ac_cv_objext
1922ac_objext=$OBJEXT
1923echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1924echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1925if test "${ac_cv_c_compiler_gnu+set}" = set; then
1926  echo $ECHO_N "(cached) $ECHO_C" >&6
1927else
1928  cat >conftest.$ac_ext <<_ACEOF
1929#line $LINENO "configure"
1930#include "confdefs.h"
1931
1932int
1933main ()
1934{
1935#ifndef __GNUC__
1936       choke me
1937#endif
1938
1939  ;
1940  return 0;
1941}
1942_ACEOF
1943rm -f conftest.$ac_objext
1944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1945  (eval $ac_compile) 2>&5
1946  ac_status=$?
1947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948  (exit $ac_status); } &&
1949         { ac_try='test -s conftest.$ac_objext'
1950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1951  (eval $ac_try) 2>&5
1952  ac_status=$?
1953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954  (exit $ac_status); }; }; then
1955  ac_compiler_gnu=yes
1956else
1957  echo "$as_me: failed program was:" >&5
1958cat conftest.$ac_ext >&5
1959ac_compiler_gnu=no
1960fi
1961rm -f conftest.$ac_objext conftest.$ac_ext
1962ac_cv_c_compiler_gnu=$ac_compiler_gnu
1963
1964fi
1965echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1966echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1967GCC=`test $ac_compiler_gnu = yes && echo yes`
1968ac_test_CFLAGS=${CFLAGS+set}
1969ac_save_CFLAGS=$CFLAGS
1970CFLAGS="-g"
1971echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1972echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1973if test "${ac_cv_prog_cc_g+set}" = set; then
1974  echo $ECHO_N "(cached) $ECHO_C" >&6
1975else
1976  cat >conftest.$ac_ext <<_ACEOF
1977#line $LINENO "configure"
1978#include "confdefs.h"
1979
1980int
1981main ()
1982{
1983
1984  ;
1985  return 0;
1986}
1987_ACEOF
1988rm -f conftest.$ac_objext
1989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990  (eval $ac_compile) 2>&5
1991  ac_status=$?
1992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993  (exit $ac_status); } &&
1994         { ac_try='test -s conftest.$ac_objext'
1995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1996  (eval $ac_try) 2>&5
1997  ac_status=$?
1998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999  (exit $ac_status); }; }; then
2000  ac_cv_prog_cc_g=yes
2001else
2002  echo "$as_me: failed program was:" >&5
2003cat conftest.$ac_ext >&5
2004ac_cv_prog_cc_g=no
2005fi
2006rm -f conftest.$ac_objext conftest.$ac_ext
2007fi
2008echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2009echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2010if test "$ac_test_CFLAGS" = set; then
2011  CFLAGS=$ac_save_CFLAGS
2012elif test $ac_cv_prog_cc_g = yes; then
2013  if test "$GCC" = yes; then
2014    CFLAGS="-g -O2"
2015  else
2016    CFLAGS="-g"
2017  fi
2018else
2019  if test "$GCC" = yes; then
2020    CFLAGS="-O2"
2021  else
2022    CFLAGS=
2023  fi
2024fi
2025echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2026echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2027if test "${ac_cv_prog_cc_stdc+set}" = set; then
2028  echo $ECHO_N "(cached) $ECHO_C" >&6
2029else
2030  ac_cv_prog_cc_stdc=no
2031ac_save_CC=$CC
2032cat >conftest.$ac_ext <<_ACEOF
2033#line $LINENO "configure"
2034#include "confdefs.h"
2035#include <stdarg.h>
2036#include <stdio.h>
2037#include <sys/types.h>
2038#include <sys/stat.h>
2039/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2040struct buf { int x; };
2041FILE * (*rcsopen) (struct buf *, struct stat *, int);
2042static char *e (p, i)
2043     char **p;
2044     int i;
2045{
2046  return p[i];
2047}
2048static char *f (char * (*g) (char **, int), char **p, ...)
2049{
2050  char *s;
2051  va_list v;
2052  va_start (v,p);
2053  s = g (p, va_arg (v,int));
2054  va_end (v);
2055  return s;
2056}
2057int test (int i, double x);
2058struct s1 {int (*f) (int a);};
2059struct s2 {int (*f) (double a);};
2060int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2061int argc;
2062char **argv;
2063int
2064main ()
2065{
2066return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2067  ;
2068  return 0;
2069}
2070_ACEOF
2071# Don't try gcc -ansi; that turns off useful extensions and
2072# breaks some systems' header files.
2073# AIX			-qlanglvl=ansi
2074# Ultrix and OSF/1	-std1
2075# HP-UX 10.20 and later	-Ae
2076# HP-UX older versions	-Aa -D_HPUX_SOURCE
2077# SVR4			-Xc -D__EXTENSIONS__
2078for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2079do
2080  CC="$ac_save_CC $ac_arg"
2081  rm -f conftest.$ac_objext
2082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083  (eval $ac_compile) 2>&5
2084  ac_status=$?
2085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086  (exit $ac_status); } &&
2087         { ac_try='test -s conftest.$ac_objext'
2088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089  (eval $ac_try) 2>&5
2090  ac_status=$?
2091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092  (exit $ac_status); }; }; then
2093  ac_cv_prog_cc_stdc=$ac_arg
2094break
2095else
2096  echo "$as_me: failed program was:" >&5
2097cat conftest.$ac_ext >&5
2098fi
2099rm -f conftest.$ac_objext
2100done
2101rm -f conftest.$ac_ext conftest.$ac_objext
2102CC=$ac_save_CC
2103
2104fi
2105
2106case "x$ac_cv_prog_cc_stdc" in
2107  x|xno)
2108    echo "$as_me:$LINENO: result: none needed" >&5
2109echo "${ECHO_T}none needed" >&6 ;;
2110  *)
2111    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2112echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2113    CC="$CC $ac_cv_prog_cc_stdc" ;;
2114esac
2115
2116# Some people use a C++ compiler to compile C.  Since we use `exit',
2117# in C++ we need to declare it.  In case someone uses the same compiler
2118# for both compiling C and C++ we need to have the C++ compiler decide
2119# the declaration of exit, since it's the most demanding environment.
2120cat >conftest.$ac_ext <<_ACEOF
2121#ifndef __cplusplus
2122  choke me
2123#endif
2124_ACEOF
2125rm -f conftest.$ac_objext
2126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2127  (eval $ac_compile) 2>&5
2128  ac_status=$?
2129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130  (exit $ac_status); } &&
2131         { ac_try='test -s conftest.$ac_objext'
2132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2133  (eval $ac_try) 2>&5
2134  ac_status=$?
2135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136  (exit $ac_status); }; }; then
2137  for ac_declaration in \
2138   ''\
2139   '#include <stdlib.h>' \
2140   'extern "C" void std::exit (int) throw (); using std::exit;' \
2141   'extern "C" void std::exit (int); using std::exit;' \
2142   'extern "C" void exit (int) throw ();' \
2143   'extern "C" void exit (int);' \
2144   'void exit (int);'
2145do
2146  cat >conftest.$ac_ext <<_ACEOF
2147#line $LINENO "configure"
2148#include "confdefs.h"
2149#include <stdlib.h>
2150$ac_declaration
2151int
2152main ()
2153{
2154exit (42);
2155  ;
2156  return 0;
2157}
2158_ACEOF
2159rm -f conftest.$ac_objext
2160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161  (eval $ac_compile) 2>&5
2162  ac_status=$?
2163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164  (exit $ac_status); } &&
2165         { ac_try='test -s conftest.$ac_objext'
2166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2167  (eval $ac_try) 2>&5
2168  ac_status=$?
2169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170  (exit $ac_status); }; }; then
2171  :
2172else
2173  echo "$as_me: failed program was:" >&5
2174cat conftest.$ac_ext >&5
2175continue
2176fi
2177rm -f conftest.$ac_objext conftest.$ac_ext
2178  cat >conftest.$ac_ext <<_ACEOF
2179#line $LINENO "configure"
2180#include "confdefs.h"
2181$ac_declaration
2182int
2183main ()
2184{
2185exit (42);
2186  ;
2187  return 0;
2188}
2189_ACEOF
2190rm -f conftest.$ac_objext
2191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2192  (eval $ac_compile) 2>&5
2193  ac_status=$?
2194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195  (exit $ac_status); } &&
2196         { ac_try='test -s conftest.$ac_objext'
2197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2198  (eval $ac_try) 2>&5
2199  ac_status=$?
2200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201  (exit $ac_status); }; }; then
2202  break
2203else
2204  echo "$as_me: failed program was:" >&5
2205cat conftest.$ac_ext >&5
2206fi
2207rm -f conftest.$ac_objext conftest.$ac_ext
2208done
2209rm -f conftest*
2210if test -n "$ac_declaration"; then
2211  echo '#ifdef __cplusplus' >>confdefs.h
2212  echo $ac_declaration      >>confdefs.h
2213  echo '#endif'             >>confdefs.h
2214fi
2215
2216else
2217  echo "$as_me: failed program was:" >&5
2218cat conftest.$ac_ext >&5
2219fi
2220rm -f conftest.$ac_objext conftest.$ac_ext
2221ac_ext=c
2222ac_cpp='$CPP $CPPFLAGS'
2223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2225ac_compiler_gnu=$ac_cv_c_compiler_gnu
2226
2227ac_ext=c
2228ac_cpp='$CPP $CPPFLAGS'
2229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2231ac_compiler_gnu=$ac_cv_c_compiler_gnu
2232echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2233echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2234# On Suns, sometimes $CPP names a directory.
2235if test -n "$CPP" && test -d "$CPP"; then
2236  CPP=
2237fi
2238if test -z "$CPP"; then
2239  if test "${ac_cv_prog_CPP+set}" = set; then
2240  echo $ECHO_N "(cached) $ECHO_C" >&6
2241else
2242      # Double quotes because CPP needs to be expanded
2243    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2244    do
2245      ac_preproc_ok=false
2246for ac_c_preproc_warn_flag in '' yes
2247do
2248  # Use a header file that comes with gcc, so configuring glibc
2249  # with a fresh cross-compiler works.
2250  # On the NeXT, cc -E runs the code through the compiler's parser,
2251  # not just through cpp. "Syntax error" is here to catch this case.
2252  cat >conftest.$ac_ext <<_ACEOF
2253#line $LINENO "configure"
2254#include "confdefs.h"
2255#include <assert.h>
2256                     Syntax error
2257_ACEOF
2258if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2259  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2260  ac_status=$?
2261  grep -v '^ *+' conftest.er1 >conftest.err
2262  rm -f conftest.er1
2263  cat conftest.err >&5
2264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265  (exit $ac_status); } >/dev/null; then
2266  if test -s conftest.err; then
2267    ac_cpp_err=$ac_c_preproc_warn_flag
2268  else
2269    ac_cpp_err=
2270  fi
2271else
2272  ac_cpp_err=yes
2273fi
2274if test -z "$ac_cpp_err"; then
2275  :
2276else
2277  echo "$as_me: failed program was:" >&5
2278  cat conftest.$ac_ext >&5
2279  # Broken: fails on valid input.
2280continue
2281fi
2282rm -f conftest.err conftest.$ac_ext
2283
2284  # OK, works on sane cases.  Now check whether non-existent headers
2285  # can be detected and how.
2286  cat >conftest.$ac_ext <<_ACEOF
2287#line $LINENO "configure"
2288#include "confdefs.h"
2289#include <ac_nonexistent.h>
2290_ACEOF
2291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2292  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2293  ac_status=$?
2294  grep -v '^ *+' conftest.er1 >conftest.err
2295  rm -f conftest.er1
2296  cat conftest.err >&5
2297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298  (exit $ac_status); } >/dev/null; then
2299  if test -s conftest.err; then
2300    ac_cpp_err=$ac_c_preproc_warn_flag
2301  else
2302    ac_cpp_err=
2303  fi
2304else
2305  ac_cpp_err=yes
2306fi
2307if test -z "$ac_cpp_err"; then
2308  # Broken: success on invalid input.
2309continue
2310else
2311  echo "$as_me: failed program was:" >&5
2312  cat conftest.$ac_ext >&5
2313  # Passes both tests.
2314ac_preproc_ok=:
2315break
2316fi
2317rm -f conftest.err conftest.$ac_ext
2318
2319done
2320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2321rm -f conftest.err conftest.$ac_ext
2322if $ac_preproc_ok; then
2323  break
2324fi
2325
2326    done
2327    ac_cv_prog_CPP=$CPP
2328
2329fi
2330  CPP=$ac_cv_prog_CPP
2331else
2332  ac_cv_prog_CPP=$CPP
2333fi
2334echo "$as_me:$LINENO: result: $CPP" >&5
2335echo "${ECHO_T}$CPP" >&6
2336ac_preproc_ok=false
2337for ac_c_preproc_warn_flag in '' yes
2338do
2339  # Use a header file that comes with gcc, so configuring glibc
2340  # with a fresh cross-compiler works.
2341  # On the NeXT, cc -E runs the code through the compiler's parser,
2342  # not just through cpp. "Syntax error" is here to catch this case.
2343  cat >conftest.$ac_ext <<_ACEOF
2344#line $LINENO "configure"
2345#include "confdefs.h"
2346#include <assert.h>
2347                     Syntax error
2348_ACEOF
2349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2350  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2351  ac_status=$?
2352  grep -v '^ *+' conftest.er1 >conftest.err
2353  rm -f conftest.er1
2354  cat conftest.err >&5
2355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356  (exit $ac_status); } >/dev/null; then
2357  if test -s conftest.err; then
2358    ac_cpp_err=$ac_c_preproc_warn_flag
2359  else
2360    ac_cpp_err=
2361  fi
2362else
2363  ac_cpp_err=yes
2364fi
2365if test -z "$ac_cpp_err"; then
2366  :
2367else
2368  echo "$as_me: failed program was:" >&5
2369  cat conftest.$ac_ext >&5
2370  # Broken: fails on valid input.
2371continue
2372fi
2373rm -f conftest.err conftest.$ac_ext
2374
2375  # OK, works on sane cases.  Now check whether non-existent headers
2376  # can be detected and how.
2377  cat >conftest.$ac_ext <<_ACEOF
2378#line $LINENO "configure"
2379#include "confdefs.h"
2380#include <ac_nonexistent.h>
2381_ACEOF
2382if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2383  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2384  ac_status=$?
2385  grep -v '^ *+' conftest.er1 >conftest.err
2386  rm -f conftest.er1
2387  cat conftest.err >&5
2388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389  (exit $ac_status); } >/dev/null; then
2390  if test -s conftest.err; then
2391    ac_cpp_err=$ac_c_preproc_warn_flag
2392  else
2393    ac_cpp_err=
2394  fi
2395else
2396  ac_cpp_err=yes
2397fi
2398if test -z "$ac_cpp_err"; then
2399  # Broken: success on invalid input.
2400continue
2401else
2402  echo "$as_me: failed program was:" >&5
2403  cat conftest.$ac_ext >&5
2404  # Passes both tests.
2405ac_preproc_ok=:
2406break
2407fi
2408rm -f conftest.err conftest.$ac_ext
2409
2410done
2411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2412rm -f conftest.err conftest.$ac_ext
2413if $ac_preproc_ok; then
2414  :
2415else
2416  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2417echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2418   { (exit 1); exit 1; }; }
2419fi
2420
2421ac_ext=c
2422ac_cpp='$CPP $CPPFLAGS'
2423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2425ac_compiler_gnu=$ac_cv_c_compiler_gnu
2426
2427ac_aux_dir=
2428for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2429  if test -f $ac_dir/install-sh; then
2430    ac_aux_dir=$ac_dir
2431    ac_install_sh="$ac_aux_dir/install-sh -c"
2432    break
2433  elif test -f $ac_dir/install.sh; then
2434    ac_aux_dir=$ac_dir
2435    ac_install_sh="$ac_aux_dir/install.sh -c"
2436    break
2437  elif test -f $ac_dir/shtool; then
2438    ac_aux_dir=$ac_dir
2439    ac_install_sh="$ac_aux_dir/shtool install -c"
2440    break
2441  fi
2442done
2443if test -z "$ac_aux_dir"; then
2444  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2445echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2446   { (exit 1); exit 1; }; }
2447fi
2448ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2449ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2450ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2451
2452# Find a good install program.  We prefer a C program (faster),
2453# so one script is as good as another.  But avoid the broken or
2454# incompatible versions:
2455# SysV /etc/install, /usr/sbin/install
2456# SunOS /usr/etc/install
2457# IRIX /sbin/install
2458# AIX /bin/install
2459# AmigaOS /C/install, which installs bootblocks on floppy discs
2460# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2461# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2462# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2463# ./install, which can be erroneously created by make from ./install.sh.
2464echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2465echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2466if test -z "$INSTALL"; then
2467if test "${ac_cv_path_install+set}" = set; then
2468  echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471for as_dir in $PATH
2472do
2473  IFS=$as_save_IFS
2474  test -z "$as_dir" && as_dir=.
2475  # Account for people who put trailing slashes in PATH elements.
2476case $as_dir/ in
2477  ./ | .// | /cC/* | \
2478  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2479  /usr/ucb/* ) ;;
2480  *)
2481    # OSF1 and SCO ODT 3.0 have their own names for install.
2482    # Don't use installbsd from OSF since it installs stuff as root
2483    # by default.
2484    for ac_prog in ginstall scoinst install; do
2485      for ac_exec_ext in '' $ac_executable_extensions; do
2486        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2487          if test $ac_prog = install &&
2488            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2489            # AIX install.  It has an incompatible calling convention.
2490            :
2491          elif test $ac_prog = install &&
2492            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2493            # program-specific install script used by HP pwplus--don't use.
2494            :
2495          else
2496            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2497            break 3
2498          fi
2499        fi
2500      done
2501    done
2502    ;;
2503esac
2504done
2505
2506
2507fi
2508  if test "${ac_cv_path_install+set}" = set; then
2509    INSTALL=$ac_cv_path_install
2510  else
2511    # As a last resort, use the slow shell script.  We don't cache a
2512    # path for INSTALL within a source directory, because that will
2513    # break other packages using the cache if that directory is
2514    # removed, or if the path is relative.
2515    INSTALL=$ac_install_sh
2516  fi
2517fi
2518echo "$as_me:$LINENO: result: $INSTALL" >&5
2519echo "${ECHO_T}$INSTALL" >&6
2520
2521# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2522# It thinks the first close brace ends the variable substitution.
2523test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2524
2525test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2526
2527test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2528
2529# Check whether --enable-shared or --disable-shared was given.
2530if test "${enable_shared+set}" = set; then
2531  enableval="$enable_shared"
2532  p=${PACKAGE-default}
2533case $enableval in
2534yes) enable_shared=yes ;;
2535no) enable_shared=no ;;
2536*)
2537  enable_shared=no
2538  # Look at the argument we got.  We use all the common list separators.
2539  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2540  for pkg in $enableval; do
2541    if test "X$pkg" = "X$p"; then
2542      enable_shared=yes
2543    fi
2544  done
2545  IFS="$ac_save_ifs"
2546  ;;
2547esac
2548else
2549  enable_shared=yes
2550fi;
2551# Check whether --enable-static or --disable-static was given.
2552if test "${enable_static+set}" = set; then
2553  enableval="$enable_static"
2554  p=${PACKAGE-default}
2555case $enableval in
2556yes) enable_static=yes ;;
2557no) enable_static=no ;;
2558*)
2559  enable_static=no
2560  # Look at the argument we got.  We use all the common list separators.
2561  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2562  for pkg in $enableval; do
2563    if test "X$pkg" = "X$p"; then
2564      enable_static=yes
2565    fi
2566  done
2567  IFS="$ac_save_ifs"
2568  ;;
2569esac
2570else
2571  enable_static=yes
2572fi;
2573# Check whether --enable-fast-install or --disable-fast-install was given.
2574if test "${enable_fast_install+set}" = set; then
2575  enableval="$enable_fast_install"
2576  p=${PACKAGE-default}
2577case $enableval in
2578yes) enable_fast_install=yes ;;
2579no) enable_fast_install=no ;;
2580*)
2581  enable_fast_install=no
2582  # Look at the argument we got.  We use all the common list separators.
2583  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2584  for pkg in $enableval; do
2585    if test "X$pkg" = "X$p"; then
2586      enable_fast_install=yes
2587    fi
2588  done
2589  IFS="$ac_save_ifs"
2590  ;;
2591esac
2592else
2593  enable_fast_install=yes
2594fi;
2595# Make sure we can run config.sub.
2596$ac_config_sub sun4 >/dev/null 2>&1 ||
2597  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2598echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2599   { (exit 1); exit 1; }; }
2600
2601echo "$as_me:$LINENO: checking build system type" >&5
2602echo $ECHO_N "checking build system type... $ECHO_C" >&6
2603if test "${ac_cv_build+set}" = set; then
2604  echo $ECHO_N "(cached) $ECHO_C" >&6
2605else
2606  ac_cv_build_alias=$build_alias
2607test -z "$ac_cv_build_alias" &&
2608  ac_cv_build_alias=`$ac_config_guess`
2609test -z "$ac_cv_build_alias" &&
2610  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2611echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2612   { (exit 1); exit 1; }; }
2613ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2614  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2615echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2616   { (exit 1); exit 1; }; }
2617
2618fi
2619echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2620echo "${ECHO_T}$ac_cv_build" >&6
2621build=$ac_cv_build
2622build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2623build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2624build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2625
2626
2627echo "$as_me:$LINENO: checking host system type" >&5
2628echo $ECHO_N "checking host system type... $ECHO_C" >&6
2629if test "${ac_cv_host+set}" = set; then
2630  echo $ECHO_N "(cached) $ECHO_C" >&6
2631else
2632  ac_cv_host_alias=$host_alias
2633test -z "$ac_cv_host_alias" &&
2634  ac_cv_host_alias=$ac_cv_build_alias
2635ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2636  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2637echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2638   { (exit 1); exit 1; }; }
2639
2640fi
2641echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2642echo "${ECHO_T}$ac_cv_host" >&6
2643host=$ac_cv_host
2644host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2645host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2646host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2647
2648
2649# Find the correct PATH separator.  Usually this is `:', but
2650# DJGPP uses `;' like DOS.
2651if test "X${PATH_SEPARATOR+set}" != Xset; then
2652  UNAME=${UNAME-`uname 2>/dev/null`}
2653  case X$UNAME in
2654    *-DOS) lt_cv_sys_path_separator=';' ;;
2655    *)     lt_cv_sys_path_separator=':' ;;
2656  esac
2657  PATH_SEPARATOR=$lt_cv_sys_path_separator
2658fi
2659
2660
2661# Check whether --with-gnu-ld or --without-gnu-ld was given.
2662if test "${with_gnu_ld+set}" = set; then
2663  withval="$with_gnu_ld"
2664  test "$withval" = no || with_gnu_ld=yes
2665else
2666  with_gnu_ld=no
2667fi;
2668ac_prog=ld
2669if test "$GCC" = yes; then
2670  # Check if gcc -print-prog-name=ld gives a path.
2671  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2672echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2673  case $host in
2674  *-*-mingw*)
2675    # gcc leaves a trailing carriage return which upsets mingw
2676    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2677  *)
2678    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2679  esac
2680  case $ac_prog in
2681    # Accept absolute paths.
2682    [\\/]* | [A-Za-z]:[\\/]*)
2683      re_direlt='/[^/][^/]*/\.\./'
2684      # Canonicalize the path of ld
2685      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2686      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2687	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2688      done
2689      test -z "$LD" && LD="$ac_prog"
2690      ;;
2691  "")
2692    # If it fails, then pretend we aren't using GCC.
2693    ac_prog=ld
2694    ;;
2695  *)
2696    # If it is relative, then search for the first ld in PATH.
2697    with_gnu_ld=unknown
2698    ;;
2699  esac
2700elif test "$with_gnu_ld" = yes; then
2701  echo "$as_me:$LINENO: checking for GNU ld" >&5
2702echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2703else
2704  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2705echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2706fi
2707if test "${lt_cv_path_LD+set}" = set; then
2708  echo $ECHO_N "(cached) $ECHO_C" >&6
2709else
2710  if test -z "$LD"; then
2711  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2712  for ac_dir in $PATH; do
2713    test -z "$ac_dir" && ac_dir=.
2714    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2715      lt_cv_path_LD="$ac_dir/$ac_prog"
2716      # Check to see if the program is GNU ld.  I'd rather use --version,
2717      # but apparently some GNU ld's only accept -v.
2718      # Break only if it was the GNU/non-GNU ld that we prefer.
2719      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2720	test "$with_gnu_ld" != no && break
2721      else
2722	test "$with_gnu_ld" != yes && break
2723      fi
2724    fi
2725  done
2726  IFS="$ac_save_ifs"
2727else
2728  lt_cv_path_LD="$LD" # Let the user override the test with a path.
2729fi
2730fi
2731
2732LD="$lt_cv_path_LD"
2733if test -n "$LD"; then
2734  echo "$as_me:$LINENO: result: $LD" >&5
2735echo "${ECHO_T}$LD" >&6
2736else
2737  echo "$as_me:$LINENO: result: no" >&5
2738echo "${ECHO_T}no" >&6
2739fi
2740test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2741echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2742   { (exit 1); exit 1; }; }
2743echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2744echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2745if test "${lt_cv_prog_gnu_ld+set}" = set; then
2746  echo $ECHO_N "(cached) $ECHO_C" >&6
2747else
2748  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2749if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2750  lt_cv_prog_gnu_ld=yes
2751else
2752  lt_cv_prog_gnu_ld=no
2753fi
2754fi
2755echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2756echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2757with_gnu_ld=$lt_cv_prog_gnu_ld
2758
2759
2760echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2761echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2762if test "${lt_cv_ld_reload_flag+set}" = set; then
2763  echo $ECHO_N "(cached) $ECHO_C" >&6
2764else
2765  lt_cv_ld_reload_flag='-r'
2766fi
2767echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2768echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2769reload_flag=$lt_cv_ld_reload_flag
2770test -n "$reload_flag" && reload_flag=" $reload_flag"
2771
2772echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2773echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2774if test "${lt_cv_path_NM+set}" = set; then
2775  echo $ECHO_N "(cached) $ECHO_C" >&6
2776else
2777  if test -n "$NM"; then
2778  # Let the user override the test.
2779  lt_cv_path_NM="$NM"
2780else
2781  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2782  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2783    test -z "$ac_dir" && ac_dir=.
2784    tmp_nm=$ac_dir/${ac_tool_prefix}nm
2785    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2786      # Check to see if the nm accepts a BSD-compat flag.
2787      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2788      #   nm: unknown option "B" ignored
2789      # Tru64's nm complains that /dev/null is an invalid object file
2790      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2791	lt_cv_path_NM="$tmp_nm -B"
2792	break
2793      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2794	lt_cv_path_NM="$tmp_nm -p"
2795	break
2796      else
2797	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2798	continue # so that we can try to find one that supports BSD flags
2799      fi
2800    fi
2801  done
2802  IFS="$ac_save_ifs"
2803  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2804fi
2805fi
2806
2807NM="$lt_cv_path_NM"
2808echo "$as_me:$LINENO: result: $NM" >&5
2809echo "${ECHO_T}$NM" >&6
2810
2811echo "$as_me:$LINENO: checking whether ln -s works" >&5
2812echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2813LN_S=$as_ln_s
2814if test "$LN_S" = "ln -s"; then
2815  echo "$as_me:$LINENO: result: yes" >&5
2816echo "${ECHO_T}yes" >&6
2817else
2818  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2819echo "${ECHO_T}no, using $LN_S" >&6
2820fi
2821
2822echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2823echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2824if test "${lt_cv_deplibs_check_method+set}" = set; then
2825  echo $ECHO_N "(cached) $ECHO_C" >&6
2826else
2827  lt_cv_file_magic_cmd='$MAGIC_CMD'
2828lt_cv_file_magic_test_file=
2829lt_cv_deplibs_check_method='unknown'
2830# Need to set the preceding variable on all platforms that support
2831# interlibrary dependencies.
2832# 'none' -- dependencies not supported.
2833# `unknown' -- same as none, but documents that we really don't know.
2834# 'pass_all' -- all dependencies passed with no checks.
2835# 'test_compile' -- check by making test program.
2836# 'file_magic [[regex]]' -- check by looking for files in library path
2837# which responds to the $file_magic_cmd with a given egrep regex.
2838# If you have `file' or equivalent on your system and you're not sure
2839# whether `pass_all' will *always* work, you probably want this one.
2840
2841case $host_os in
2842aix4* | aix5*)
2843  lt_cv_deplibs_check_method=pass_all
2844  ;;
2845
2846beos*)
2847  lt_cv_deplibs_check_method=pass_all
2848  ;;
2849
2850bsdi4*)
2851  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2852  lt_cv_file_magic_cmd='/usr/bin/file -L'
2853  lt_cv_file_magic_test_file=/shlib/libc.so
2854  ;;
2855
2856cygwin* | mingw* | pw32*)
2857  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2858  lt_cv_file_magic_cmd='$OBJDUMP -f'
2859  ;;
2860
2861darwin* | rhapsody*)
2862  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2863  lt_cv_file_magic_cmd='/usr/bin/file -L'
2864  case "$host_os" in
2865  rhapsody* | darwin1.[012])
2866    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2867    ;;
2868  *) # Darwin 1.3 on
2869    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2870    ;;
2871  esac
2872  ;;
2873
2874freebsd*)
2875  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2876    case $host_cpu in
2877    i*86 )
2878      # Not sure whether the presence of OpenBSD here was a mistake.
2879      # Let's accept both of them until this is cleared up.
2880      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2881      lt_cv_file_magic_cmd=/usr/bin/file
2882      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2883      ;;
2884    esac
2885  else
2886    lt_cv_deplibs_check_method=pass_all
2887  fi
2888  ;;
2889
2890gnu*)
2891  lt_cv_deplibs_check_method=pass_all
2892  ;;
2893
2894hpux10.20*|hpux11*)
2895  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2896  lt_cv_file_magic_cmd=/usr/bin/file
2897  lt_cv_file_magic_test_file=/usr/lib/libc.sl
2898  ;;
2899
2900irix5* | irix6*)
2901  case $host_os in
2902  irix5*)
2903    # this will be overridden with pass_all, but let us keep it just in case
2904    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2905    ;;
2906  *)
2907    case $LD in
2908    *-32|*"-32 ") libmagic=32-bit;;
2909    *-n32|*"-n32 ") libmagic=N32;;
2910    *-64|*"-64 ") libmagic=64-bit;;
2911    *) libmagic=never-match;;
2912    esac
2913    # this will be overridden with pass_all, but let us keep it just in case
2914    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2915    ;;
2916  esac
2917  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2918  lt_cv_deplibs_check_method=pass_all
2919  ;;
2920
2921# This must be Linux ELF.
2922linux-gnu*)
2923  case $host_cpu in
2924  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2925    lt_cv_deplibs_check_method=pass_all ;;
2926  *)
2927    # glibc up to 2.1.1 does not perform some relocations on ARM
2928    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2929  esac
2930  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2931  ;;
2932
2933netbsd*)
2934  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2935    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2936  else
2937    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2938  fi
2939  ;;
2940
2941newos6*)
2942  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2943  lt_cv_file_magic_cmd=/usr/bin/file
2944  lt_cv_file_magic_test_file=/usr/lib/libnls.so
2945  ;;
2946
2947openbsd*)
2948  lt_cv_file_magic_cmd=/usr/bin/file
2949  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2950  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2951    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2952  else
2953    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2954  fi
2955  ;;
2956
2957osf3* | osf4* | osf5*)
2958  # this will be overridden with pass_all, but let us keep it just in case
2959  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2960  lt_cv_file_magic_test_file=/shlib/libc.so
2961  lt_cv_deplibs_check_method=pass_all
2962  ;;
2963
2964sco3.2v5*)
2965  lt_cv_deplibs_check_method=pass_all
2966  ;;
2967
2968solaris*)
2969  lt_cv_deplibs_check_method=pass_all
2970  lt_cv_file_magic_test_file=/lib/libc.so
2971  ;;
2972
2973sysv5uw[78]* | sysv4*uw2*)
2974  lt_cv_deplibs_check_method=pass_all
2975  ;;
2976
2977sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2978  case $host_vendor in
2979  motorola)
2980    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]'
2981    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2982    ;;
2983  ncr)
2984    lt_cv_deplibs_check_method=pass_all
2985    ;;
2986  sequent)
2987    lt_cv_file_magic_cmd='/bin/file'
2988    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2989    ;;
2990  sni)
2991    lt_cv_file_magic_cmd='/bin/file'
2992    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2993    lt_cv_file_magic_test_file=/lib/libc.so
2994    ;;
2995  esac
2996  ;;
2997esac
2998
2999fi
3000echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3001echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3002file_magic_cmd=$lt_cv_file_magic_cmd
3003deplibs_check_method=$lt_cv_deplibs_check_method
3004
3005
3006
3007
3008
3009
3010
3011
3012# Check for command to grab the raw symbol name followed by C symbol from nm.
3013echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3014echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3015if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3016  echo $ECHO_N "(cached) $ECHO_C" >&6
3017else
3018
3019# These are sane defaults that work on at least a few old systems.
3020# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3021
3022# Character class describing NM global symbol codes.
3023symcode='[BCDEGRST]'
3024
3025# Regexp to match symbols that can be accessed directly from C.
3026sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3027
3028# Transform the above into a raw symbol and a C symbol.
3029symxfrm='\1 \2\3 \3'
3030
3031# Transform an extracted symbol line into a proper C declaration
3032lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3033
3034# Transform an extracted symbol line into symbol name and symbol address
3035lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3036
3037# Define system-specific variables.
3038case $host_os in
3039aix*)
3040  symcode='[BCDT]'
3041  ;;
3042cygwin* | mingw* | pw32*)
3043  symcode='[ABCDGISTW]'
3044  ;;
3045hpux*) # Its linker distinguishes data from code symbols
3046  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3047  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3048  ;;
3049irix*)
3050  symcode='[BCDEGRST]'
3051  ;;
3052solaris* | sysv5*)
3053  symcode='[BDT]'
3054  ;;
3055sysv4)
3056  symcode='[DFNSTU]'
3057  ;;
3058esac
3059
3060# Handle CRLF in mingw tool chain
3061opt_cr=
3062case $host_os in
3063mingw*)
3064  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3065  ;;
3066esac
3067
3068# If we're using GNU nm, then use its standard symbol codes.
3069if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3070  symcode='[ABCDGISTW]'
3071fi
3072
3073# Try without a prefix undercore, then with it.
3074for ac_symprfx in "" "_"; do
3075
3076  # Write the raw and C identifiers.
3077lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3078
3079  # Check to see that the pipe works correctly.
3080  pipe_works=no
3081  rm -f conftest*
3082  cat > conftest.$ac_ext <<EOF
3083#ifdef __cplusplus
3084extern "C" {
3085#endif
3086char nm_test_var;
3087void nm_test_func(){}
3088#ifdef __cplusplus
3089}
3090#endif
3091int main(){nm_test_var='a';nm_test_func();return(0);}
3092EOF
3093
3094  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3095  (eval $ac_compile) 2>&5
3096  ac_status=$?
3097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098  (exit $ac_status); }; then
3099    # Now try to grab the symbols.
3100    nlist=conftest.nm
3101    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3102  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3103  ac_status=$?
3104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105  (exit $ac_status); } && test -s "$nlist"; then
3106      # Try sorting and uniquifying the output.
3107      if sort "$nlist" | uniq > "$nlist"T; then
3108	mv -f "$nlist"T "$nlist"
3109      else
3110	rm -f "$nlist"T
3111      fi
3112
3113      # Make sure that we snagged all the symbols we need.
3114      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3115	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3116	  cat <<EOF > conftest.$ac_ext
3117#ifdef __cplusplus
3118extern "C" {
3119#endif
3120
3121EOF
3122	  # Now generate the symbol file.
3123	  eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3124
3125	  cat <<EOF >> conftest.$ac_ext
3126#if defined (__STDC__) && __STDC__
3127# define lt_ptr void *
3128#else
3129# define lt_ptr char *
3130# define const
3131#endif
3132
3133/* The mapping between symbol names and symbols. */
3134const struct {
3135  const char *name;
3136  lt_ptr address;
3137}
3138lt_preloaded_symbols[] =
3139{
3140EOF
3141	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3142	  cat <<\EOF >> conftest.$ac_ext
3143  {0, (lt_ptr) 0}
3144};
3145
3146#ifdef __cplusplus
3147}
3148#endif
3149EOF
3150	  # Now try linking the two files.
3151	  mv conftest.$ac_objext conftstm.$ac_objext
3152	  save_LIBS="$LIBS"
3153	  save_CFLAGS="$CFLAGS"
3154	  LIBS="conftstm.$ac_objext"
3155	  CFLAGS="$CFLAGS$no_builtin_flag"
3156	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3157  (eval $ac_link) 2>&5
3158  ac_status=$?
3159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160  (exit $ac_status); } && test -s conftest; then
3161	    pipe_works=yes
3162	  fi
3163	  LIBS="$save_LIBS"
3164	  CFLAGS="$save_CFLAGS"
3165	else
3166	  echo "cannot find nm_test_func in $nlist" >&5
3167	fi
3168      else
3169	echo "cannot find nm_test_var in $nlist" >&5
3170      fi
3171    else
3172      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3173    fi
3174  else
3175    echo "$progname: failed program was:" >&5
3176    cat conftest.$ac_ext >&5
3177  fi
3178  rm -f conftest* conftst*
3179
3180  # Do not use the global_symbol_pipe unless it works.
3181  if test "$pipe_works" = yes; then
3182    break
3183  else
3184    lt_cv_sys_global_symbol_pipe=
3185  fi
3186done
3187
3188fi
3189
3190global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3191if test -z "$lt_cv_sys_global_symbol_pipe"; then
3192  global_symbol_to_cdecl=
3193  global_symbol_to_c_name_address=
3194else
3195  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3196  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3197fi
3198if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3199then
3200  echo "$as_me:$LINENO: result: failed" >&5
3201echo "${ECHO_T}failed" >&6
3202else
3203  echo "$as_me:$LINENO: result: ok" >&5
3204echo "${ECHO_T}ok" >&6
3205fi
3206
3207
3208echo "$as_me:$LINENO: checking for egrep" >&5
3209echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3210if test "${ac_cv_prog_egrep+set}" = set; then
3211  echo $ECHO_N "(cached) $ECHO_C" >&6
3212else
3213  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3214    then ac_cv_prog_egrep='grep -E'
3215    else ac_cv_prog_egrep='egrep'
3216    fi
3217fi
3218echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3219echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3220 EGREP=$ac_cv_prog_egrep
3221
3222
3223echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3224echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3225if test "${ac_cv_header_stdc+set}" = set; then
3226  echo $ECHO_N "(cached) $ECHO_C" >&6
3227else
3228  cat >conftest.$ac_ext <<_ACEOF
3229#line $LINENO "configure"
3230#include "confdefs.h"
3231#include <stdlib.h>
3232#include <stdarg.h>
3233#include <string.h>
3234#include <float.h>
3235
3236_ACEOF
3237if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3238  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3239  ac_status=$?
3240  grep -v '^ *+' conftest.er1 >conftest.err
3241  rm -f conftest.er1
3242  cat conftest.err >&5
3243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244  (exit $ac_status); } >/dev/null; then
3245  if test -s conftest.err; then
3246    ac_cpp_err=$ac_c_preproc_warn_flag
3247  else
3248    ac_cpp_err=
3249  fi
3250else
3251  ac_cpp_err=yes
3252fi
3253if test -z "$ac_cpp_err"; then
3254  ac_cv_header_stdc=yes
3255else
3256  echo "$as_me: failed program was:" >&5
3257  cat conftest.$ac_ext >&5
3258  ac_cv_header_stdc=no
3259fi
3260rm -f conftest.err conftest.$ac_ext
3261
3262if test $ac_cv_header_stdc = yes; then
3263  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3264  cat >conftest.$ac_ext <<_ACEOF
3265#line $LINENO "configure"
3266#include "confdefs.h"
3267#include <string.h>
3268
3269_ACEOF
3270if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3271  $EGREP "memchr" >/dev/null 2>&1; then
3272  :
3273else
3274  ac_cv_header_stdc=no
3275fi
3276rm -f conftest*
3277
3278fi
3279
3280if test $ac_cv_header_stdc = yes; then
3281  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3282  cat >conftest.$ac_ext <<_ACEOF
3283#line $LINENO "configure"
3284#include "confdefs.h"
3285#include <stdlib.h>
3286
3287_ACEOF
3288if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3289  $EGREP "free" >/dev/null 2>&1; then
3290  :
3291else
3292  ac_cv_header_stdc=no
3293fi
3294rm -f conftest*
3295
3296fi
3297
3298if test $ac_cv_header_stdc = yes; then
3299  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3300  if test "$cross_compiling" = yes; then
3301  :
3302else
3303  cat >conftest.$ac_ext <<_ACEOF
3304#line $LINENO "configure"
3305#include "confdefs.h"
3306#include <ctype.h>
3307#if ((' ' & 0x0FF) == 0x020)
3308# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3309# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3310#else
3311# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3312                     || ('j' <= (c) && (c) <= 'r') \
3313                     || ('s' <= (c) && (c) <= 'z'))
3314# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3315#endif
3316
3317#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3318int
3319main ()
3320{
3321  int i;
3322  for (i = 0; i < 256; i++)
3323    if (XOR (islower (i), ISLOWER (i))
3324        || toupper (i) != TOUPPER (i))
3325      exit(2);
3326  exit (0);
3327}
3328_ACEOF
3329rm -f conftest$ac_exeext
3330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3331  (eval $ac_link) 2>&5
3332  ac_status=$?
3333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336  (eval $ac_try) 2>&5
3337  ac_status=$?
3338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339  (exit $ac_status); }; }; then
3340  :
3341else
3342  echo "$as_me: program exited with status $ac_status" >&5
3343echo "$as_me: failed program was:" >&5
3344cat conftest.$ac_ext >&5
3345( exit $ac_status )
3346ac_cv_header_stdc=no
3347fi
3348rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3349fi
3350fi
3351fi
3352echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3353echo "${ECHO_T}$ac_cv_header_stdc" >&6
3354if test $ac_cv_header_stdc = yes; then
3355
3356cat >>confdefs.h <<\_ACEOF
3357#define STDC_HEADERS 1
3358_ACEOF
3359
3360fi
3361
3362# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3373                  inttypes.h stdint.h unistd.h
3374do
3375as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3376echo "$as_me:$LINENO: checking for $ac_header" >&5
3377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3378if eval "test \"\${$as_ac_Header+set}\" = set"; then
3379  echo $ECHO_N "(cached) $ECHO_C" >&6
3380else
3381  cat >conftest.$ac_ext <<_ACEOF
3382#line $LINENO "configure"
3383#include "confdefs.h"
3384$ac_includes_default
3385
3386#include <$ac_header>
3387_ACEOF
3388rm -f conftest.$ac_objext
3389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3390  (eval $ac_compile) 2>&5
3391  ac_status=$?
3392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393  (exit $ac_status); } &&
3394         { ac_try='test -s conftest.$ac_objext'
3395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396  (eval $ac_try) 2>&5
3397  ac_status=$?
3398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399  (exit $ac_status); }; }; then
3400  eval "$as_ac_Header=yes"
3401else
3402  echo "$as_me: failed program was:" >&5
3403cat conftest.$ac_ext >&5
3404eval "$as_ac_Header=no"
3405fi
3406rm -f conftest.$ac_objext conftest.$ac_ext
3407fi
3408echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3409echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3410if test `eval echo '${'$as_ac_Header'}'` = yes; then
3411  cat >>confdefs.h <<_ACEOF
3412#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3413_ACEOF
3414
3415fi
3416
3417done
3418
3419
3420
3421for ac_header in dlfcn.h
3422do
3423as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3424if eval "test \"\${$as_ac_Header+set}\" = set"; then
3425  echo "$as_me:$LINENO: checking for $ac_header" >&5
3426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3427if eval "test \"\${$as_ac_Header+set}\" = set"; then
3428  echo $ECHO_N "(cached) $ECHO_C" >&6
3429fi
3430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3431echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3432else
3433  # Is the header compilable?
3434echo "$as_me:$LINENO: checking $ac_header usability" >&5
3435echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3436cat >conftest.$ac_ext <<_ACEOF
3437#line $LINENO "configure"
3438#include "confdefs.h"
3439$ac_includes_default
3440#include <$ac_header>
3441_ACEOF
3442rm -f conftest.$ac_objext
3443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3444  (eval $ac_compile) 2>&5
3445  ac_status=$?
3446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447  (exit $ac_status); } &&
3448         { ac_try='test -s conftest.$ac_objext'
3449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450  (eval $ac_try) 2>&5
3451  ac_status=$?
3452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453  (exit $ac_status); }; }; then
3454  ac_header_compiler=yes
3455else
3456  echo "$as_me: failed program was:" >&5
3457cat conftest.$ac_ext >&5
3458ac_header_compiler=no
3459fi
3460rm -f conftest.$ac_objext conftest.$ac_ext
3461echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3462echo "${ECHO_T}$ac_header_compiler" >&6
3463
3464# Is the header present?
3465echo "$as_me:$LINENO: checking $ac_header presence" >&5
3466echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3467cat >conftest.$ac_ext <<_ACEOF
3468#line $LINENO "configure"
3469#include "confdefs.h"
3470#include <$ac_header>
3471_ACEOF
3472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3473  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3474  ac_status=$?
3475  grep -v '^ *+' conftest.er1 >conftest.err
3476  rm -f conftest.er1
3477  cat conftest.err >&5
3478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479  (exit $ac_status); } >/dev/null; then
3480  if test -s conftest.err; then
3481    ac_cpp_err=$ac_c_preproc_warn_flag
3482  else
3483    ac_cpp_err=
3484  fi
3485else
3486  ac_cpp_err=yes
3487fi
3488if test -z "$ac_cpp_err"; then
3489  ac_header_preproc=yes
3490else
3491  echo "$as_me: failed program was:" >&5
3492  cat conftest.$ac_ext >&5
3493  ac_header_preproc=no
3494fi
3495rm -f conftest.err conftest.$ac_ext
3496echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3497echo "${ECHO_T}$ac_header_preproc" >&6
3498
3499# So?  What about this header?
3500case $ac_header_compiler:$ac_header_preproc in
3501  yes:no )
3502    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3503echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3504    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3505echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3506  no:yes )
3507    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3508echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3509    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3510echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3511    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3512echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3513esac
3514echo "$as_me:$LINENO: checking for $ac_header" >&5
3515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3516if eval "test \"\${$as_ac_Header+set}\" = set"; then
3517  echo $ECHO_N "(cached) $ECHO_C" >&6
3518else
3519  eval "$as_ac_Header=$ac_header_preproc"
3520fi
3521echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3522echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3523
3524fi
3525if test `eval echo '${'$as_ac_Header'}'` = yes; then
3526  cat >>confdefs.h <<_ACEOF
3527#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3528_ACEOF
3529
3530fi
3531
3532done
3533
3534
3535
3536
3537
3538# Only perform the check for file, if the check method requires it
3539case $deplibs_check_method in
3540file_magic*)
3541  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3542    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3543echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3544if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3545  echo $ECHO_N "(cached) $ECHO_C" >&6
3546else
3547  case $MAGIC_CMD in
3548  /*)
3549  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3550  ;;
3551  ?:/*)
3552  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3553  ;;
3554  *)
3555  ac_save_MAGIC_CMD="$MAGIC_CMD"
3556  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3557  ac_dummy="/usr/bin:$PATH"
3558  for ac_dir in $ac_dummy; do
3559    test -z "$ac_dir" && ac_dir=.
3560    if test -f $ac_dir/${ac_tool_prefix}file; then
3561      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3562      if test -n "$file_magic_test_file"; then
3563	case $deplibs_check_method in
3564	"file_magic "*)
3565	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3566	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3567	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3568	    egrep "$file_magic_regex" > /dev/null; then
3569	    :
3570	  else
3571	    cat <<EOF 1>&2
3572
3573*** Warning: the command libtool uses to detect shared libraries,
3574*** $file_magic_cmd, produces output that libtool cannot recognize.
3575*** The result is that libtool may fail to recognize shared libraries
3576*** as such.  This will affect the creation of libtool libraries that
3577*** depend on shared libraries, but programs linked with such libtool
3578*** libraries will work regardless of this problem.  Nevertheless, you
3579*** may want to report the problem to your system manager and/or to
3580*** bug-libtool@gnu.org
3581
3582EOF
3583	  fi ;;
3584	esac
3585      fi
3586      break
3587    fi
3588  done
3589  IFS="$ac_save_ifs"
3590  MAGIC_CMD="$ac_save_MAGIC_CMD"
3591  ;;
3592esac
3593fi
3594
3595MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3596if test -n "$MAGIC_CMD"; then
3597  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3598echo "${ECHO_T}$MAGIC_CMD" >&6
3599else
3600  echo "$as_me:$LINENO: result: no" >&5
3601echo "${ECHO_T}no" >&6
3602fi
3603
3604if test -z "$lt_cv_path_MAGIC_CMD"; then
3605  if test -n "$ac_tool_prefix"; then
3606    echo "$as_me:$LINENO: checking for file" >&5
3607echo $ECHO_N "checking for file... $ECHO_C" >&6
3608if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3609  echo $ECHO_N "(cached) $ECHO_C" >&6
3610else
3611  case $MAGIC_CMD in
3612  /*)
3613  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3614  ;;
3615  ?:/*)
3616  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3617  ;;
3618  *)
3619  ac_save_MAGIC_CMD="$MAGIC_CMD"
3620  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3621  ac_dummy="/usr/bin:$PATH"
3622  for ac_dir in $ac_dummy; do
3623    test -z "$ac_dir" && ac_dir=.
3624    if test -f $ac_dir/file; then
3625      lt_cv_path_MAGIC_CMD="$ac_dir/file"
3626      if test -n "$file_magic_test_file"; then
3627	case $deplibs_check_method in
3628	"file_magic "*)
3629	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3630	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3631	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3632	    egrep "$file_magic_regex" > /dev/null; then
3633	    :
3634	  else
3635	    cat <<EOF 1>&2
3636
3637*** Warning: the command libtool uses to detect shared libraries,
3638*** $file_magic_cmd, produces output that libtool cannot recognize.
3639*** The result is that libtool may fail to recognize shared libraries
3640*** as such.  This will affect the creation of libtool libraries that
3641*** depend on shared libraries, but programs linked with such libtool
3642*** libraries will work regardless of this problem.  Nevertheless, you
3643*** may want to report the problem to your system manager and/or to
3644*** bug-libtool@gnu.org
3645
3646EOF
3647	  fi ;;
3648	esac
3649      fi
3650      break
3651    fi
3652  done
3653  IFS="$ac_save_ifs"
3654  MAGIC_CMD="$ac_save_MAGIC_CMD"
3655  ;;
3656esac
3657fi
3658
3659MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3660if test -n "$MAGIC_CMD"; then
3661  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3662echo "${ECHO_T}$MAGIC_CMD" >&6
3663else
3664  echo "$as_me:$LINENO: result: no" >&5
3665echo "${ECHO_T}no" >&6
3666fi
3667
3668  else
3669    MAGIC_CMD=:
3670  fi
3671fi
3672
3673  fi
3674  ;;
3675esac
3676
3677if test -n "$ac_tool_prefix"; then
3678  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3679set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3680echo "$as_me:$LINENO: checking for $ac_word" >&5
3681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3682if test "${ac_cv_prog_RANLIB+set}" = set; then
3683  echo $ECHO_N "(cached) $ECHO_C" >&6
3684else
3685  if test -n "$RANLIB"; then
3686  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3687else
3688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689for as_dir in $PATH
3690do
3691  IFS=$as_save_IFS
3692  test -z "$as_dir" && as_dir=.
3693  for ac_exec_ext in '' $ac_executable_extensions; do
3694  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3696    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3697    break 2
3698  fi
3699done
3700done
3701
3702fi
3703fi
3704RANLIB=$ac_cv_prog_RANLIB
3705if test -n "$RANLIB"; then
3706  echo "$as_me:$LINENO: result: $RANLIB" >&5
3707echo "${ECHO_T}$RANLIB" >&6
3708else
3709  echo "$as_me:$LINENO: result: no" >&5
3710echo "${ECHO_T}no" >&6
3711fi
3712
3713fi
3714if test -z "$ac_cv_prog_RANLIB"; then
3715  ac_ct_RANLIB=$RANLIB
3716  # Extract the first word of "ranlib", so it can be a program name with args.
3717set dummy ranlib; ac_word=$2
3718echo "$as_me:$LINENO: checking for $ac_word" >&5
3719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3720if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3721  echo $ECHO_N "(cached) $ECHO_C" >&6
3722else
3723  if test -n "$ac_ct_RANLIB"; then
3724  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3725else
3726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727for as_dir in $PATH
3728do
3729  IFS=$as_save_IFS
3730  test -z "$as_dir" && as_dir=.
3731  for ac_exec_ext in '' $ac_executable_extensions; do
3732  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733    ac_cv_prog_ac_ct_RANLIB="ranlib"
3734    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735    break 2
3736  fi
3737done
3738done
3739
3740  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3741fi
3742fi
3743ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3744if test -n "$ac_ct_RANLIB"; then
3745  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3746echo "${ECHO_T}$ac_ct_RANLIB" >&6
3747else
3748  echo "$as_me:$LINENO: result: no" >&5
3749echo "${ECHO_T}no" >&6
3750fi
3751
3752  RANLIB=$ac_ct_RANLIB
3753else
3754  RANLIB="$ac_cv_prog_RANLIB"
3755fi
3756
3757if test -n "$ac_tool_prefix"; then
3758  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3759set dummy ${ac_tool_prefix}strip; ac_word=$2
3760echo "$as_me:$LINENO: checking for $ac_word" >&5
3761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3762if test "${ac_cv_prog_STRIP+set}" = set; then
3763  echo $ECHO_N "(cached) $ECHO_C" >&6
3764else
3765  if test -n "$STRIP"; then
3766  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3767else
3768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769for as_dir in $PATH
3770do
3771  IFS=$as_save_IFS
3772  test -z "$as_dir" && as_dir=.
3773  for ac_exec_ext in '' $ac_executable_extensions; do
3774  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3775    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3776    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3777    break 2
3778  fi
3779done
3780done
3781
3782fi
3783fi
3784STRIP=$ac_cv_prog_STRIP
3785if test -n "$STRIP"; then
3786  echo "$as_me:$LINENO: result: $STRIP" >&5
3787echo "${ECHO_T}$STRIP" >&6
3788else
3789  echo "$as_me:$LINENO: result: no" >&5
3790echo "${ECHO_T}no" >&6
3791fi
3792
3793fi
3794if test -z "$ac_cv_prog_STRIP"; then
3795  ac_ct_STRIP=$STRIP
3796  # Extract the first word of "strip", so it can be a program name with args.
3797set dummy strip; ac_word=$2
3798echo "$as_me:$LINENO: checking for $ac_word" >&5
3799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3800if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3801  echo $ECHO_N "(cached) $ECHO_C" >&6
3802else
3803  if test -n "$ac_ct_STRIP"; then
3804  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3805else
3806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807for as_dir in $PATH
3808do
3809  IFS=$as_save_IFS
3810  test -z "$as_dir" && as_dir=.
3811  for ac_exec_ext in '' $ac_executable_extensions; do
3812  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3813    ac_cv_prog_ac_ct_STRIP="strip"
3814    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3815    break 2
3816  fi
3817done
3818done
3819
3820  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3821fi
3822fi
3823ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3824if test -n "$ac_ct_STRIP"; then
3825  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3826echo "${ECHO_T}$ac_ct_STRIP" >&6
3827else
3828  echo "$as_me:$LINENO: result: no" >&5
3829echo "${ECHO_T}no" >&6
3830fi
3831
3832  STRIP=$ac_ct_STRIP
3833else
3834  STRIP="$ac_cv_prog_STRIP"
3835fi
3836
3837
3838enable_dlopen=no
3839enable_win32_dll=no
3840
3841# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3842if test "${enable_libtool_lock+set}" = set; then
3843  enableval="$enable_libtool_lock"
3844
3845fi;
3846test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3847
3848# Some flags need to be propagated to the compiler or linker for good
3849# libtool support.
3850case $host in
3851*-*-irix6*)
3852  # Find out which ABI we are using.
3853  echo '#line 3853 "configure"' > conftest.$ac_ext
3854  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3855  (eval $ac_compile) 2>&5
3856  ac_status=$?
3857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858  (exit $ac_status); }; then
3859    case `/usr/bin/file conftest.$ac_objext` in
3860    *32-bit*)
3861      LD="${LD-ld} -32"
3862      ;;
3863    *N32*)
3864      LD="${LD-ld} -n32"
3865      ;;
3866    *64-bit*)
3867      LD="${LD-ld} -64"
3868      ;;
3869    esac
3870  fi
3871  rm -rf conftest*
3872  ;;
3873
3874*-*-sco3.2v5*)
3875  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3876  SAVE_CFLAGS="$CFLAGS"
3877  CFLAGS="$CFLAGS -belf"
3878  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3879echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3880if test "${lt_cv_cc_needs_belf+set}" = set; then
3881  echo $ECHO_N "(cached) $ECHO_C" >&6
3882else
3883
3884
3885     ac_ext=c
3886ac_cpp='$CPP $CPPFLAGS'
3887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890
3891     cat >conftest.$ac_ext <<_ACEOF
3892#line $LINENO "configure"
3893#include "confdefs.h"
3894
3895int
3896main ()
3897{
3898
3899  ;
3900  return 0;
3901}
3902_ACEOF
3903rm -f conftest.$ac_objext conftest$ac_exeext
3904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3905  (eval $ac_link) 2>&5
3906  ac_status=$?
3907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908  (exit $ac_status); } &&
3909         { ac_try='test -s conftest$ac_exeext'
3910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911  (eval $ac_try) 2>&5
3912  ac_status=$?
3913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914  (exit $ac_status); }; }; then
3915  lt_cv_cc_needs_belf=yes
3916else
3917  echo "$as_me: failed program was:" >&5
3918cat conftest.$ac_ext >&5
3919lt_cv_cc_needs_belf=no
3920fi
3921rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3922     ac_ext=c
3923ac_cpp='$CPP $CPPFLAGS'
3924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927
3928fi
3929echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3930echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3931  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3932    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3933    CFLAGS="$SAVE_CFLAGS"
3934  fi
3935  ;;
3936
3937
3938esac
3939
3940# Sed substitution that helps us do robust quoting.  It backslashifies
3941# metacharacters that are still active within double-quoted strings.
3942Xsed='sed -e s/^X//'
3943sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3944
3945# Same as above, but do not quote variable references.
3946double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3947
3948# Sed substitution to delay expansion of an escaped shell variable in a
3949# double_quote_subst'ed string.
3950delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3951
3952# Constants:
3953rm="rm -f"
3954
3955# Global variables:
3956default_ofile=libtool
3957can_build_shared=yes
3958
3959# All known linkers require a `.a' archive for static linking (except M$VC,
3960# which needs '.lib').
3961libext=a
3962ltmain="$ac_aux_dir/ltmain.sh"
3963ofile="$default_ofile"
3964with_gnu_ld="$lt_cv_prog_gnu_ld"
3965need_locks="$enable_libtool_lock"
3966
3967old_CC="$CC"
3968old_CFLAGS="$CFLAGS"
3969
3970# Set sane defaults for various variables
3971test -z "$AR" && AR=ar
3972test -z "$AR_FLAGS" && AR_FLAGS=cru
3973test -z "$AS" && AS=as
3974test -z "$CC" && CC=cc
3975test -z "$DLLTOOL" && DLLTOOL=dlltool
3976test -z "$LD" && LD=ld
3977test -z "$LN_S" && LN_S="ln -s"
3978test -z "$MAGIC_CMD" && MAGIC_CMD=file
3979test -z "$NM" && NM=nm
3980test -z "$OBJDUMP" && OBJDUMP=objdump
3981test -z "$RANLIB" && RANLIB=:
3982test -z "$STRIP" && STRIP=:
3983test -z "$ac_objext" && ac_objext=o
3984
3985if test x"$host" != x"$build"; then
3986  ac_tool_prefix=${host_alias}-
3987else
3988  ac_tool_prefix=
3989fi
3990
3991# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3992case $host_os in
3993linux-gnu*) ;;
3994linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3995esac
3996
3997case $host_os in
3998aix3*)
3999  # AIX sometimes has problems with the GCC collect2 program.  For some
4000  # reason, if we set the COLLECT_NAMES environment variable, the problems
4001  # vanish in a puff of smoke.
4002  if test "X${COLLECT_NAMES+set}" != Xset; then
4003    COLLECT_NAMES=
4004    export COLLECT_NAMES
4005  fi
4006  ;;
4007esac
4008
4009# Determine commands to create old-style static archives.
4010old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4011old_postinstall_cmds='chmod 644 $oldlib'
4012old_postuninstall_cmds=
4013
4014if test -n "$RANLIB"; then
4015  case $host_os in
4016  openbsd*)
4017    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4018    ;;
4019  *)
4020    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4021    ;;
4022  esac
4023  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4024fi
4025
4026# Allow CC to be a program name with arguments.
4027set dummy $CC
4028compiler="$2"
4029
4030## FIXME: this should be a separate macro
4031##
4032echo "$as_me:$LINENO: checking for objdir" >&5
4033echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4034rm -f .libs 2>/dev/null
4035mkdir .libs 2>/dev/null
4036if test -d .libs; then
4037  objdir=.libs
4038else
4039  # MS-DOS does not allow filenames that begin with a dot.
4040  objdir=_libs
4041fi
4042rmdir .libs 2>/dev/null
4043echo "$as_me:$LINENO: result: $objdir" >&5
4044echo "${ECHO_T}$objdir" >&6
4045##
4046## END FIXME
4047
4048
4049## FIXME: this should be a separate macro
4050##
4051
4052# Check whether --with-pic or --without-pic was given.
4053if test "${with_pic+set}" = set; then
4054  withval="$with_pic"
4055  pic_mode="$withval"
4056else
4057  pic_mode=default
4058fi;
4059test -z "$pic_mode" && pic_mode=default
4060
4061# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4062# in isolation, and that seeing it set (from the cache) indicates that
4063# the associated values are set (in the cache) correctly too.
4064echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4065echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4066if test "${lt_cv_prog_cc_pic+set}" = set; then
4067  echo $ECHO_N "(cached) $ECHO_C" >&6
4068else
4069   lt_cv_prog_cc_pic=
4070  lt_cv_prog_cc_shlib=
4071  lt_cv_prog_cc_wl=
4072  lt_cv_prog_cc_static=
4073  lt_cv_prog_cc_no_builtin=
4074  lt_cv_prog_cc_can_build_shared=$can_build_shared
4075
4076  if test "$GCC" = yes; then
4077    lt_cv_prog_cc_wl='-Wl,'
4078    lt_cv_prog_cc_static='-static'
4079
4080    case $host_os in
4081    aix*)
4082      # Below there is a dirty hack to force normal static linking with -ldl
4083      # The problem is because libdl dynamically linked with both libc and
4084      # libC (AIX C++ library), which obviously doesn't included in libraries
4085      # list by gcc. This cause undefined symbols with -static flags.
4086      # This hack allows C programs to be linked with "-static -ldl", but
4087      # not sure about C++ programs.
4088      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4089      ;;
4090    amigaos*)
4091      # FIXME: we need at least 68020 code to build shared libraries, but
4092      # adding the `-m68020' flag to GCC prevents building anything better,
4093      # like `-m68040'.
4094      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4095      ;;
4096    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4097      # PIC is the default for these OSes.
4098      ;;
4099    darwin* | rhapsody*)
4100      # PIC is the default on this platform
4101      # Common symbols not allowed in MH_DYLIB files
4102      lt_cv_prog_cc_pic='-fno-common'
4103      ;;
4104    cygwin* | mingw* | pw32* | os2*)
4105      # This hack is so that the source file can tell whether it is being
4106      # built for inclusion in a dll (and should export symbols for example).
4107      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4108      ;;
4109    sysv4*MP*)
4110      if test -d /usr/nec; then
4111	 lt_cv_prog_cc_pic=-Kconform_pic
4112      fi
4113      ;;
4114    *)
4115      lt_cv_prog_cc_pic='-fPIC'
4116      ;;
4117    esac
4118  else
4119    # PORTME Check for PIC flags for the system compiler.
4120    case $host_os in
4121    aix3* | aix4* | aix5*)
4122      lt_cv_prog_cc_wl='-Wl,'
4123      # All AIX code is PIC.
4124      if test "$host_cpu" = ia64; then
4125	# AIX 5 now supports IA64 processor
4126	lt_cv_prog_cc_static='-Bstatic'
4127      else
4128	lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4129      fi
4130      ;;
4131
4132    hpux9* | hpux10* | hpux11*)
4133      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4134      lt_cv_prog_cc_wl='-Wl,'
4135      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4136      lt_cv_prog_cc_pic='+Z'
4137      ;;
4138
4139    irix5* | irix6*)
4140      lt_cv_prog_cc_wl='-Wl,'
4141      lt_cv_prog_cc_static='-non_shared'
4142      # PIC (with -KPIC) is the default.
4143      ;;
4144
4145    cygwin* | mingw* | pw32* | os2*)
4146      # This hack is so that the source file can tell whether it is being
4147      # built for inclusion in a dll (and should export symbols for example).
4148      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4149      ;;
4150
4151    newsos6)
4152      lt_cv_prog_cc_pic='-KPIC'
4153      lt_cv_prog_cc_static='-Bstatic'
4154      ;;
4155
4156    osf3* | osf4* | osf5*)
4157      # All OSF/1 code is PIC.
4158      lt_cv_prog_cc_wl='-Wl,'
4159      lt_cv_prog_cc_static='-non_shared'
4160      ;;
4161
4162    sco3.2v5*)
4163      lt_cv_prog_cc_pic='-Kpic'
4164      lt_cv_prog_cc_static='-dn'
4165      lt_cv_prog_cc_shlib='-belf'
4166      ;;
4167
4168    solaris*)
4169      lt_cv_prog_cc_pic='-KPIC'
4170      lt_cv_prog_cc_static='-Bstatic'
4171      lt_cv_prog_cc_wl='-Wl,'
4172      ;;
4173
4174    sunos4*)
4175      lt_cv_prog_cc_pic='-PIC'
4176      lt_cv_prog_cc_static='-Bstatic'
4177      lt_cv_prog_cc_wl='-Qoption ld '
4178      ;;
4179
4180    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4181      lt_cv_prog_cc_pic='-KPIC'
4182      lt_cv_prog_cc_static='-Bstatic'
4183      if test "x$host_vendor" = xsni; then
4184	lt_cv_prog_cc_wl='-LD'
4185      else
4186	lt_cv_prog_cc_wl='-Wl,'
4187      fi
4188      ;;
4189
4190    uts4*)
4191      lt_cv_prog_cc_pic='-pic'
4192      lt_cv_prog_cc_static='-Bstatic'
4193      ;;
4194
4195    sysv4*MP*)
4196      if test -d /usr/nec ;then
4197	lt_cv_prog_cc_pic='-Kconform_pic'
4198	lt_cv_prog_cc_static='-Bstatic'
4199      fi
4200      ;;
4201
4202    *)
4203      lt_cv_prog_cc_can_build_shared=no
4204      ;;
4205    esac
4206  fi
4207
4208fi
4209
4210if test -z "$lt_cv_prog_cc_pic"; then
4211  echo "$as_me:$LINENO: result: none" >&5
4212echo "${ECHO_T}none" >&6
4213else
4214  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4215echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4216
4217  # Check to make sure the pic_flag actually works.
4218  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4219echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4220  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4221  echo $ECHO_N "(cached) $ECHO_C" >&6
4222else
4223      save_CFLAGS="$CFLAGS"
4224    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4225    cat >conftest.$ac_ext <<_ACEOF
4226#line $LINENO "configure"
4227#include "confdefs.h"
4228
4229int
4230main ()
4231{
4232
4233  ;
4234  return 0;
4235}
4236_ACEOF
4237rm -f conftest.$ac_objext
4238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4239  (eval $ac_compile) 2>&5
4240  ac_status=$?
4241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242  (exit $ac_status); } &&
4243         { ac_try='test -s conftest.$ac_objext'
4244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245  (eval $ac_try) 2>&5
4246  ac_status=$?
4247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248  (exit $ac_status); }; }; then
4249        case $host_os in
4250      hpux9* | hpux10* | hpux11*)
4251	# On HP-UX, both CC and GCC only warn that PIC is supported... then
4252	# they create non-PIC objects.  So, if there were any warnings, we
4253	# assume that PIC is not supported.
4254	if test -s conftest.err; then
4255	  lt_cv_prog_cc_pic_works=no
4256	else
4257	  lt_cv_prog_cc_pic_works=yes
4258	fi
4259	;;
4260      *)
4261	lt_cv_prog_cc_pic_works=yes
4262	;;
4263      esac
4264
4265else
4266  echo "$as_me: failed program was:" >&5
4267cat conftest.$ac_ext >&5
4268      lt_cv_prog_cc_pic_works=no
4269
4270fi
4271rm -f conftest.$ac_objext conftest.$ac_ext
4272    CFLAGS="$save_CFLAGS"
4273
4274fi
4275
4276
4277  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4278    lt_cv_prog_cc_pic=
4279    lt_cv_prog_cc_can_build_shared=no
4280  else
4281    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4282  fi
4283
4284  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4285echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4286fi
4287##
4288## END FIXME
4289
4290# Check for any special shared library compilation flags.
4291if test -n "$lt_cv_prog_cc_shlib"; then
4292  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4293echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4294  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$lt_cv_prog_cc_shlib[ 	]" >/dev/null; then :
4295  else
4296   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4297echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4298    lt_cv_prog_cc_can_build_shared=no
4299  fi
4300fi
4301
4302## FIXME: this should be a separate macro
4303##
4304echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4305echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4306if test "${lt_cv_prog_cc_static_works+set}" = set; then
4307  echo $ECHO_N "(cached) $ECHO_C" >&6
4308else
4309    lt_cv_prog_cc_static_works=no
4310  save_LDFLAGS="$LDFLAGS"
4311  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4312  cat >conftest.$ac_ext <<_ACEOF
4313#line $LINENO "configure"
4314#include "confdefs.h"
4315
4316int
4317main ()
4318{
4319
4320  ;
4321  return 0;
4322}
4323_ACEOF
4324rm -f conftest.$ac_objext conftest$ac_exeext
4325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4326  (eval $ac_link) 2>&5
4327  ac_status=$?
4328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329  (exit $ac_status); } &&
4330         { ac_try='test -s conftest$ac_exeext'
4331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332  (eval $ac_try) 2>&5
4333  ac_status=$?
4334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335  (exit $ac_status); }; }; then
4336  lt_cv_prog_cc_static_works=yes
4337else
4338  echo "$as_me: failed program was:" >&5
4339cat conftest.$ac_ext >&5
4340fi
4341rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4342  LDFLAGS="$save_LDFLAGS"
4343
4344fi
4345
4346
4347# Belt *and* braces to stop my trousers falling down:
4348test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4349echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4350echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4351
4352pic_flag="$lt_cv_prog_cc_pic"
4353special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4354wl="$lt_cv_prog_cc_wl"
4355link_static_flag="$lt_cv_prog_cc_static"
4356no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4357can_build_shared="$lt_cv_prog_cc_can_build_shared"
4358##
4359## END FIXME
4360
4361
4362## FIXME: this should be a separate macro
4363##
4364# Check to see if options -o and -c are simultaneously supported by compiler
4365echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4366echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4367if test "${lt_cv_compiler_c_o+set}" = set; then
4368  echo $ECHO_N "(cached) $ECHO_C" >&6
4369else
4370
4371$rm -r conftest 2>/dev/null
4372mkdir conftest
4373cd conftest
4374echo "int some_variable = 0;" > conftest.$ac_ext
4375mkdir out
4376# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4377# that will create temporary files in the current directory regardless of
4378# the output directory.  Thus, making CWD read-only will cause this test
4379# to fail, enabling locking or at least warning the user not to do parallel
4380# builds.
4381chmod -w .
4382save_CFLAGS="$CFLAGS"
4383CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4384compiler_c_o=no
4385if { (eval echo configure:4385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4386  # The compiler can only warn and ignore the option if not recognized
4387  # So say no if there are warnings
4388  if test -s out/conftest.err; then
4389    lt_cv_compiler_c_o=no
4390  else
4391    lt_cv_compiler_c_o=yes
4392  fi
4393else
4394  # Append any errors to the config.log.
4395  cat out/conftest.err 1>&5
4396  lt_cv_compiler_c_o=no
4397fi
4398CFLAGS="$save_CFLAGS"
4399chmod u+w .
4400$rm conftest* out/*
4401rmdir out
4402cd ..
4403rmdir conftest
4404$rm -r conftest 2>/dev/null
4405
4406fi
4407
4408compiler_c_o=$lt_cv_compiler_c_o
4409echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4410echo "${ECHO_T}$compiler_c_o" >&6
4411
4412if test x"$compiler_c_o" = x"yes"; then
4413  # Check to see if we can write to a .lo
4414  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4415echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4416  if test "${lt_cv_compiler_o_lo+set}" = set; then
4417  echo $ECHO_N "(cached) $ECHO_C" >&6
4418else
4419
4420  lt_cv_compiler_o_lo=no
4421  save_CFLAGS="$CFLAGS"
4422  CFLAGS="$CFLAGS -c -o conftest.lo"
4423  save_objext="$ac_objext"
4424  ac_objext=lo
4425  cat >conftest.$ac_ext <<_ACEOF
4426#line $LINENO "configure"
4427#include "confdefs.h"
4428
4429int
4430main ()
4431{
4432int some_variable = 0;
4433  ;
4434  return 0;
4435}
4436_ACEOF
4437rm -f conftest.$ac_objext
4438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439  (eval $ac_compile) 2>&5
4440  ac_status=$?
4441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442  (exit $ac_status); } &&
4443         { ac_try='test -s conftest.$ac_objext'
4444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445  (eval $ac_try) 2>&5
4446  ac_status=$?
4447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448  (exit $ac_status); }; }; then
4449      # The compiler can only warn and ignore the option if not recognized
4450    # So say no if there are warnings
4451    if test -s conftest.err; then
4452      lt_cv_compiler_o_lo=no
4453    else
4454      lt_cv_compiler_o_lo=yes
4455    fi
4456
4457else
4458  echo "$as_me: failed program was:" >&5
4459cat conftest.$ac_ext >&5
4460fi
4461rm -f conftest.$ac_objext conftest.$ac_ext
4462  ac_objext="$save_objext"
4463  CFLAGS="$save_CFLAGS"
4464
4465fi
4466
4467  compiler_o_lo=$lt_cv_compiler_o_lo
4468  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4469echo "${ECHO_T}$compiler_o_lo" >&6
4470else
4471  compiler_o_lo=no
4472fi
4473##
4474## END FIXME
4475
4476## FIXME: this should be a separate macro
4477##
4478# Check to see if we can do hard links to lock some files if needed
4479hard_links="nottested"
4480if test "$compiler_c_o" = no && test "$need_locks" != no; then
4481  # do not overwrite the value of need_locks provided by the user
4482  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4483echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4484  hard_links=yes
4485  $rm conftest*
4486  ln conftest.a conftest.b 2>/dev/null && hard_links=no
4487  touch conftest.a
4488  ln conftest.a conftest.b 2>&5 || hard_links=no
4489  ln conftest.a conftest.b 2>/dev/null && hard_links=no
4490  echo "$as_me:$LINENO: result: $hard_links" >&5
4491echo "${ECHO_T}$hard_links" >&6
4492  if test "$hard_links" = no; then
4493    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4494echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4495    need_locks=warn
4496  fi
4497else
4498  need_locks=no
4499fi
4500##
4501## END FIXME
4502
4503## FIXME: this should be a separate macro
4504##
4505if test "$GCC" = yes; then
4506  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4507  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4508echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4509  echo "int some_variable = 0;" > conftest.$ac_ext
4510  save_CFLAGS="$CFLAGS"
4511  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4512  compiler_rtti_exceptions=no
4513  cat >conftest.$ac_ext <<_ACEOF
4514#line $LINENO "configure"
4515#include "confdefs.h"
4516
4517int
4518main ()
4519{
4520int some_variable = 0;
4521  ;
4522  return 0;
4523}
4524_ACEOF
4525rm -f conftest.$ac_objext
4526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4527  (eval $ac_compile) 2>&5
4528  ac_status=$?
4529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530  (exit $ac_status); } &&
4531         { ac_try='test -s conftest.$ac_objext'
4532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533  (eval $ac_try) 2>&5
4534  ac_status=$?
4535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536  (exit $ac_status); }; }; then
4537      # The compiler can only warn and ignore the option if not recognized
4538    # So say no if there are warnings
4539    if test -s conftest.err; then
4540      compiler_rtti_exceptions=no
4541    else
4542      compiler_rtti_exceptions=yes
4543    fi
4544
4545else
4546  echo "$as_me: failed program was:" >&5
4547cat conftest.$ac_ext >&5
4548fi
4549rm -f conftest.$ac_objext conftest.$ac_ext
4550  CFLAGS="$save_CFLAGS"
4551  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4552echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4553
4554  if test "$compiler_rtti_exceptions" = "yes"; then
4555    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4556  else
4557    no_builtin_flag=' -fno-builtin'
4558  fi
4559fi
4560##
4561## END FIXME
4562
4563## FIXME: this should be a separate macro
4564##
4565# See if the linker supports building shared libraries.
4566echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4567echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4568
4569allow_undefined_flag=
4570no_undefined_flag=
4571need_lib_prefix=unknown
4572need_version=unknown
4573# when you set need_version to no, make sure it does not cause -set_version
4574# flags to be left without arguments
4575archive_cmds=
4576archive_expsym_cmds=
4577old_archive_from_new_cmds=
4578old_archive_from_expsyms_cmds=
4579export_dynamic_flag_spec=
4580whole_archive_flag_spec=
4581thread_safe_flag_spec=
4582hardcode_into_libs=no
4583hardcode_libdir_flag_spec=
4584hardcode_libdir_separator=
4585hardcode_direct=no
4586hardcode_minus_L=no
4587hardcode_shlibpath_var=unsupported
4588runpath_var=
4589link_all_deplibs=unknown
4590always_export_symbols=no
4591export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4592# include_expsyms should be a list of space-separated symbols to be *always*
4593# included in the symbol list
4594include_expsyms=
4595# exclude_expsyms can be an egrep regular expression of symbols to exclude
4596# it will be wrapped by ` (' and `)$', so one must not match beginning or
4597# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4598# as well as any symbol that contains `d'.
4599exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4600# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4601# platforms (ab)use it in PIC code, but their linkers get confused if
4602# the symbol is explicitly referenced.  Since portable code cannot
4603# rely on this symbol name, it's probably fine to never include it in
4604# preloaded symbol tables.
4605extract_expsyms_cmds=
4606
4607case $host_os in
4608cygwin* | mingw* | pw32*)
4609  # FIXME: the MSVC++ port hasn't been tested in a loooong time
4610  # When not using gcc, we currently assume that we are using
4611  # Microsoft Visual C++.
4612  if test "$GCC" != yes; then
4613    with_gnu_ld=no
4614  fi
4615  ;;
4616openbsd*)
4617  with_gnu_ld=no
4618  ;;
4619esac
4620
4621ld_shlibs=yes
4622if test "$with_gnu_ld" = yes; then
4623  # If archive_cmds runs LD, not CC, wlarc should be empty
4624  wlarc='${wl}'
4625
4626  # See if GNU ld supports shared libraries.
4627  case $host_os in
4628  aix3* | aix4* | aix5*)
4629    # On AIX, the GNU linker is very broken
4630    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4631    ld_shlibs=no
4632    cat <<EOF 1>&2
4633
4634*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4635*** to be unable to reliably create shared libraries on AIX.
4636*** Therefore, libtool is disabling shared libraries support.  If you
4637*** really care for shared libraries, you may want to modify your PATH
4638*** so that a non-GNU linker is found, and then restart.
4639
4640EOF
4641    ;;
4642
4643  amigaos*)
4644    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)'
4645    hardcode_libdir_flag_spec='-L$libdir'
4646    hardcode_minus_L=yes
4647
4648    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4649    # that the semantics of dynamic libraries on AmigaOS, at least up
4650    # to version 4, is to share data among multiple programs linked
4651    # with the same dynamic library.  Since this doesn't match the
4652    # behavior of shared libraries on other platforms, we can use
4653    # them.
4654    ld_shlibs=no
4655    ;;
4656
4657  beos*)
4658    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4659      allow_undefined_flag=unsupported
4660      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4661      # support --undefined.  This deserves some investigation.  FIXME
4662      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4663    else
4664      ld_shlibs=no
4665    fi
4666    ;;
4667
4668  cygwin* | mingw* | pw32*)
4669    # hardcode_libdir_flag_spec is actually meaningless, as there is
4670    # no search path for DLLs.
4671    hardcode_libdir_flag_spec='-L$libdir'
4672    allow_undefined_flag=unsupported
4673    always_export_symbols=yes
4674
4675    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4676      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4677      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4678      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4679      else $CC -o impgen impgen.c ; fi)~
4680      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4681
4682    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4683
4684    # cygwin and mingw dlls have different entry points and sets of symbols
4685    # to exclude.
4686    # FIXME: what about values for MSVC?
4687    dll_entry=__cygwin_dll_entry@12
4688    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4689    case $host_os in
4690    mingw*)
4691      # mingw values
4692      dll_entry=_DllMainCRTStartup@12
4693      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4694      ;;
4695    esac
4696
4697    # mingw and cygwin differ, and it's simplest to just exclude the union
4698    # of the two symbol sets.
4699    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4700
4701    # recent cygwin and mingw systems supply a stub DllMain which the user
4702    # can override, but on older systems we have to supply one (in ltdll.c)
4703    if test "x$lt_cv_need_dllmain" = "xyes"; then
4704      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4705      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
4706	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4707    else
4708      ltdll_obj=
4709      ltdll_cmds=
4710    fi
4711
4712    # Extract the symbol export list from an `--export-all' def file,
4713    # then regenerate the def file from the symbol export list, so that
4714    # the compiled dll only exports the symbol export list.
4715    # Be careful not to strip the DATA tag left be newer dlltools.
4716    export_symbols_cmds="$ltdll_cmds"'
4717      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4718      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4719
4720    # If the export-symbols file already is a .def file (1st line
4721    # is EXPORTS), use it as is.
4722    # If DATA tags from a recent dlltool are present, honour them!
4723    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4724	cp $export_symbols $output_objdir/$soname-def;
4725      else
4726	echo EXPORTS > $output_objdir/$soname-def;
4727	_lt_hint=1;
4728	cat $export_symbols | while read symbol; do
4729	 set dummy \$symbol;
4730	 case \$# in
4731	   2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4732	   *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4733	 esac;
4734	 _lt_hint=`expr 1 + \$_lt_hint`;
4735	done;
4736      fi~
4737      '"$ltdll_cmds"'
4738      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4739      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4740      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4741      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4742      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4743    ;;
4744
4745  netbsd*)
4746    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4747      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4748      wlarc=
4749    else
4750      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4751      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4752    fi
4753    ;;
4754
4755  solaris* | sysv5*)
4756    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4757      ld_shlibs=no
4758      cat <<EOF 1>&2
4759
4760*** Warning: The releases 2.8.* of the GNU linker cannot reliably
4761*** create shared libraries on Solaris systems.  Therefore, libtool
4762*** is disabling shared libraries support.  We urge you to upgrade GNU
4763*** binutils to release 2.9.1 or newer.  Another option is to modify
4764*** your PATH or compiler configuration so that the native linker is
4765*** used, and then restart.
4766
4767EOF
4768    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4769      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4770      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4771    else
4772      ld_shlibs=no
4773    fi
4774    ;;
4775
4776  sunos4*)
4777    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4778    wlarc=
4779    hardcode_direct=yes
4780    hardcode_shlibpath_var=no
4781    ;;
4782
4783  *)
4784    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4785      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4786      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4787    else
4788      ld_shlibs=no
4789    fi
4790    ;;
4791  esac
4792
4793  if test "$ld_shlibs" = yes; then
4794    runpath_var=LD_RUN_PATH
4795    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4796    export_dynamic_flag_spec='${wl}--export-dynamic'
4797    case $host_os in
4798    cygwin* | mingw* | pw32*)
4799      # dlltool doesn't understand --whole-archive et. al.
4800      whole_archive_flag_spec=
4801      ;;
4802    *)
4803      # ancient GNU ld didn't support --whole-archive et. al.
4804      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4805	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4806      else
4807	whole_archive_flag_spec=
4808      fi
4809      ;;
4810    esac
4811  fi
4812else
4813  # PORTME fill in a description of your system's linker (not GNU ld)
4814  case $host_os in
4815  aix3*)
4816    allow_undefined_flag=unsupported
4817    always_export_symbols=yes
4818    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'
4819    # Note: this linker hardcodes the directories in LIBPATH if there
4820    # are no directories specified by -L.
4821    hardcode_minus_L=yes
4822    if test "$GCC" = yes && test -z "$link_static_flag"; then
4823      # Neither direct hardcoding nor static linking is supported with a
4824      # broken collect2.
4825      hardcode_direct=unsupported
4826    fi
4827    ;;
4828
4829  aix4* | aix5*)
4830    if test "$host_cpu" = ia64; then
4831      # On IA64, the linker does run time linking by default, so we don't
4832      # have to do anything special.
4833      aix_use_runtimelinking=no
4834      exp_sym_flag='-Bexport'
4835      no_entry_flag=""
4836    else
4837      aix_use_runtimelinking=no
4838
4839      # Test if we are trying to use run time linking or normal
4840      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4841      # need to do runtime linking.
4842      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4843	for ld_flag in $LDFLAGS; do
4844	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4845	    aix_use_runtimelinking=yes
4846	    break
4847	  fi
4848	done
4849      esac
4850
4851      exp_sym_flag='-bexport'
4852      no_entry_flag='-bnoentry'
4853    fi
4854
4855    # When large executables or shared objects are built, AIX ld can
4856    # have problems creating the table of contents.  If linking a library
4857    # or program results in "error TOC overflow" add -mminimal-toc to
4858    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
4859    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4860
4861    hardcode_direct=yes
4862    archive_cmds=''
4863    hardcode_libdir_separator=':'
4864    if test "$GCC" = yes; then
4865      case $host_os in aix4.[012]|aix4.[012].*)
4866	collect2name=`${CC} -print-prog-name=collect2`
4867	if test -f "$collect2name" && \
4868	  strings "$collect2name" | grep resolve_lib_name >/dev/null
4869	then
4870	  # We have reworked collect2
4871	  hardcode_direct=yes
4872	else
4873	  # We have old collect2
4874	  hardcode_direct=unsupported
4875	  # It fails to find uninstalled libraries when the uninstalled
4876	  # path is not listed in the libpath.  Setting hardcode_minus_L
4877	  # to unsupported forces relinking
4878	  hardcode_minus_L=yes
4879	  hardcode_libdir_flag_spec='-L$libdir'
4880	  hardcode_libdir_separator=
4881	fi
4882      esac
4883
4884      shared_flag='-shared'
4885    else
4886      # not using gcc
4887      if test "$host_cpu" = ia64; then
4888	shared_flag='${wl}-G'
4889      else
4890	if test "$aix_use_runtimelinking" = yes; then
4891	  shared_flag='${wl}-G'
4892	else
4893	  shared_flag='${wl}-bM:SRE'
4894	fi
4895      fi
4896    fi
4897
4898    # It seems that -bexpall can do strange things, so it is better to
4899    # generate a list of symbols to export.
4900    always_export_symbols=yes
4901    if test "$aix_use_runtimelinking" = yes; then
4902      # Warning - without using the other runtime loading flags (-brtl),
4903      # -berok will link without error, but may produce a broken library.
4904      allow_undefined_flag='-berok'
4905      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4906      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"
4907    else
4908      if test "$host_cpu" = ia64; then
4909	hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4910	allow_undefined_flag="-z nodefs"
4911	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4912      else
4913	hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4914	# Warning - without using the other run time loading flags,
4915	# -berok will link without error, but may produce a broken library.
4916	allow_undefined_flag='${wl}-berok'
4917	# This is a bit strange, but is similar to how AIX traditionally builds
4918	# it's shared libraries.
4919	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
4920      fi
4921    fi
4922    ;;
4923
4924  amigaos*)
4925    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)'
4926    hardcode_libdir_flag_spec='-L$libdir'
4927    hardcode_minus_L=yes
4928    # see comment about different semantics on the GNU ld section
4929    ld_shlibs=no
4930    ;;
4931
4932  cygwin* | mingw* | pw32*)
4933    # When not using gcc, we currently assume that we are using
4934    # Microsoft Visual C++.
4935    # hardcode_libdir_flag_spec is actually meaningless, as there is
4936    # no search path for DLLs.
4937    hardcode_libdir_flag_spec=' '
4938    allow_undefined_flag=unsupported
4939    # Tell ltmain to make .lib files, not .a files.
4940    libext=lib
4941    # FIXME: Setting linknames here is a bad hack.
4942    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4943    # The linker will automatically build a .lib file if we build a DLL.
4944    old_archive_from_new_cmds='true'
4945    # FIXME: Should let the user specify the lib program.
4946    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4947    fix_srcfile_path='`cygpath -w "$srcfile"`'
4948    ;;
4949
4950  darwin* | rhapsody*)
4951    case "$host_os" in
4952    rhapsody* | darwin1.[012])
4953      allow_undefined_flag='-undefined suppress'
4954      ;;
4955    *) # Darwin 1.3 on
4956      allow_undefined_flag='-flat_namespace -undefined suppress'
4957      ;;
4958    esac
4959    # FIXME: Relying on posixy $() will cause problems for
4960    #        cross-compilation, but unfortunately the echo tests do not
4961    #        yet detect zsh echo's removal of \ escapes.
4962    archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
4963    # We need to add '_' to the symbols in $export_symbols first
4964    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4965    hardcode_direct=yes
4966    hardcode_shlibpath_var=no
4967    whole_archive_flag_spec='-all_load $convenience'
4968    ;;
4969
4970  freebsd1*)
4971    ld_shlibs=no
4972    ;;
4973
4974  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4975  # support.  Future versions do this automatically, but an explicit c++rt0.o
4976  # does not break anything, and helps significantly (at the cost of a little
4977  # extra space).
4978  freebsd2.2*)
4979    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4980    hardcode_libdir_flag_spec='-R$libdir'
4981    hardcode_direct=yes
4982    hardcode_shlibpath_var=no
4983    ;;
4984
4985  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4986  freebsd2*)
4987    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4988    hardcode_direct=yes
4989    hardcode_minus_L=yes
4990    hardcode_shlibpath_var=no
4991    ;;
4992
4993  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4994  freebsd*)
4995    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4996    hardcode_libdir_flag_spec='-R$libdir'
4997    hardcode_direct=yes
4998    hardcode_shlibpath_var=no
4999    ;;
5000
5001  hpux9* | hpux10* | hpux11*)
5002    case $host_os in
5003    hpux9*) 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' ;;
5004    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5005    esac
5006    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5007    hardcode_libdir_separator=:
5008    hardcode_direct=yes
5009    hardcode_minus_L=yes # Not in the search PATH, but as the default
5010			 # location of the library.
5011    export_dynamic_flag_spec='${wl}-E'
5012    ;;
5013
5014  irix5* | irix6*)
5015    if test "$GCC" = yes; then
5016      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'
5017    else
5018      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'
5019    fi
5020    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5021    hardcode_libdir_separator=:
5022    link_all_deplibs=yes
5023    ;;
5024
5025  netbsd*)
5026    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5027      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5028    else
5029      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5030    fi
5031    hardcode_libdir_flag_spec='-R$libdir'
5032    hardcode_direct=yes
5033    hardcode_shlibpath_var=no
5034    ;;
5035
5036  newsos6)
5037    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5038    hardcode_direct=yes
5039    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5040    hardcode_libdir_separator=:
5041    hardcode_shlibpath_var=no
5042    ;;
5043
5044  openbsd*)
5045    hardcode_direct=yes
5046    hardcode_shlibpath_var=no
5047    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5048      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5049      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5050      export_dynamic_flag_spec='${wl}-E'
5051    else
5052      case "$host_os" in
5053      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5054	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5055	hardcode_libdir_flag_spec='-R$libdir'
5056        ;;
5057      *)
5058        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5059        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5060        ;;
5061      esac
5062    fi
5063    ;;
5064
5065  os2*)
5066    hardcode_libdir_flag_spec='-L$libdir'
5067    hardcode_minus_L=yes
5068    allow_undefined_flag=unsupported
5069    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'
5070    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5071    ;;
5072
5073  osf3*)
5074    if test "$GCC" = yes; then
5075      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5076      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'
5077    else
5078      allow_undefined_flag=' -expect_unresolved \*'
5079      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'
5080    fi
5081    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5082    hardcode_libdir_separator=:
5083    ;;
5084
5085  osf4* | osf5*)	# as osf3* with the addition of -msym flag
5086    if test "$GCC" = yes; then
5087      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5088      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'
5089      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5090    else
5091      allow_undefined_flag=' -expect_unresolved \*'
5092      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'
5093      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5094      $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'
5095
5096      #Both c and cxx compiler support -rpath directly
5097      hardcode_libdir_flag_spec='-rpath $libdir'
5098    fi
5099    hardcode_libdir_separator=:
5100    ;;
5101
5102  sco3.2v5*)
5103    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5104    hardcode_shlibpath_var=no
5105    runpath_var=LD_RUN_PATH
5106    hardcode_runpath_var=yes
5107    export_dynamic_flag_spec='${wl}-Bexport'
5108    ;;
5109
5110  solaris*)
5111    # gcc --version < 3.0 without binutils cannot create self contained
5112    # shared libraries reliably, requiring libgcc.a to resolve some of
5113    # the object symbols generated in some cases.  Libraries that use
5114    # assert need libgcc.a to resolve __eprintf, for example.  Linking
5115    # a copy of libgcc.a into every shared library to guarantee resolving
5116    # such symbols causes other problems:  According to Tim Van Holder
5117    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5118    # (to the application) exception stack for one thing.
5119    no_undefined_flag=' -z defs'
5120    if test "$GCC" = yes; then
5121      case `$CC --version 2>/dev/null` in
5122      [12].*)
5123	cat <<EOF 1>&2
5124
5125*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5126*** create self contained shared libraries on Solaris systems, without
5127*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5128*** -no-undefined support, which will at least allow you to build shared
5129*** libraries.  However, you may find that when you link such libraries
5130*** into an application without using GCC, you have to manually add
5131*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5132*** upgrade to a newer version of GCC.  Another option is to rebuild your
5133*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5134
5135EOF
5136        no_undefined_flag=
5137	;;
5138      esac
5139    fi
5140    # $CC -shared without GNU ld will not create a library from C++
5141    # object files and a static libstdc++, better avoid it by now
5142    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5143    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5144		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5145    hardcode_libdir_flag_spec='-R$libdir'
5146    hardcode_shlibpath_var=no
5147    case $host_os in
5148    solaris2.[0-5] | solaris2.[0-5].*) ;;
5149    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5150      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5151    esac
5152    link_all_deplibs=yes
5153    ;;
5154
5155  sunos4*)
5156    if test "x$host_vendor" = xsequent; then
5157      # Use $CC to link under sequent, because it throws in some extra .o
5158      # files that make .init and .fini sections work.
5159      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5160    else
5161      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5162    fi
5163    hardcode_libdir_flag_spec='-L$libdir'
5164    hardcode_direct=yes
5165    hardcode_minus_L=yes
5166    hardcode_shlibpath_var=no
5167    ;;
5168
5169  sysv4)
5170    if test "x$host_vendor" = xsno; then
5171      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5172      hardcode_direct=yes # is this really true???
5173    else
5174      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5175      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5176    fi
5177    runpath_var='LD_RUN_PATH'
5178    hardcode_shlibpath_var=no
5179    ;;
5180
5181  sysv4.3*)
5182    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5183    hardcode_shlibpath_var=no
5184    export_dynamic_flag_spec='-Bexport'
5185    ;;
5186
5187  sysv5*)
5188    no_undefined_flag=' -z text'
5189    # $CC -shared without GNU ld will not create a library from C++
5190    # object files and a static libstdc++, better avoid it by now
5191    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5192    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5193		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5194    hardcode_libdir_flag_spec=
5195    hardcode_shlibpath_var=no
5196    runpath_var='LD_RUN_PATH'
5197    ;;
5198
5199  uts4*)
5200    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5201    hardcode_libdir_flag_spec='-L$libdir'
5202    hardcode_shlibpath_var=no
5203    ;;
5204
5205  dgux*)
5206    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5207    hardcode_libdir_flag_spec='-L$libdir'
5208    hardcode_shlibpath_var=no
5209    ;;
5210
5211  sysv4*MP*)
5212    if test -d /usr/nec; then
5213      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5214      hardcode_shlibpath_var=no
5215      runpath_var=LD_RUN_PATH
5216      hardcode_runpath_var=yes
5217      ld_shlibs=yes
5218    fi
5219    ;;
5220
5221  sysv4.2uw2*)
5222    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5223    hardcode_direct=yes
5224    hardcode_minus_L=no
5225    hardcode_shlibpath_var=no
5226    hardcode_runpath_var=yes
5227    runpath_var=LD_RUN_PATH
5228    ;;
5229
5230  sysv5uw7* | unixware7*)
5231    no_undefined_flag='${wl}-z ${wl}text'
5232    if test "$GCC" = yes; then
5233      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5234    else
5235      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5236    fi
5237    runpath_var='LD_RUN_PATH'
5238    hardcode_shlibpath_var=no
5239    ;;
5240
5241  *)
5242    ld_shlibs=no
5243    ;;
5244  esac
5245fi
5246echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5247echo "${ECHO_T}$ld_shlibs" >&6
5248test "$ld_shlibs" = no && can_build_shared=no
5249##
5250## END FIXME
5251
5252## FIXME: this should be a separate macro
5253##
5254# Check hardcoding attributes.
5255echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5256echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5257hardcode_action=
5258if test -n "$hardcode_libdir_flag_spec" || \
5259   test -n "$runpath_var"; then
5260
5261  # We can hardcode non-existant directories.
5262  if test "$hardcode_direct" != no &&
5263     # If the only mechanism to avoid hardcoding is shlibpath_var, we
5264     # have to relink, otherwise we might link with an installed library
5265     # when we should be linking with a yet-to-be-installed one
5266     ## test "$hardcode_shlibpath_var" != no &&
5267     test "$hardcode_minus_L" != no; then
5268    # Linking always hardcodes the temporary library directory.
5269    hardcode_action=relink
5270  else
5271    # We can link without hardcoding, and we can hardcode nonexisting dirs.
5272    hardcode_action=immediate
5273  fi
5274else
5275  # We cannot hardcode anything, or else we can only hardcode existing
5276  # directories.
5277  hardcode_action=unsupported
5278fi
5279echo "$as_me:$LINENO: result: $hardcode_action" >&5
5280echo "${ECHO_T}$hardcode_action" >&6
5281##
5282## END FIXME
5283
5284## FIXME: this should be a separate macro
5285##
5286striplib=
5287old_striplib=
5288echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5289echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5290if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5291  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5292  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5293  echo "$as_me:$LINENO: result: yes" >&5
5294echo "${ECHO_T}yes" >&6
5295else
5296  echo "$as_me:$LINENO: result: no" >&5
5297echo "${ECHO_T}no" >&6
5298fi
5299##
5300## END FIXME
5301
5302reload_cmds='$LD$reload_flag -o $output$reload_objs'
5303test -z "$deplibs_check_method" && deplibs_check_method=unknown
5304
5305## FIXME: this should be a separate macro
5306##
5307# PORTME Fill in your ld.so characteristics
5308echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5309echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5310library_names_spec=
5311libname_spec='lib$name'
5312soname_spec=
5313postinstall_cmds=
5314postuninstall_cmds=
5315finish_cmds=
5316finish_eval=
5317shlibpath_var=
5318shlibpath_overrides_runpath=unknown
5319version_type=none
5320dynamic_linker="$host_os ld.so"
5321sys_lib_dlsearch_path_spec="/lib /usr/lib"
5322sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5323
5324case $host_os in
5325aix3*)
5326  version_type=linux
5327  library_names_spec='${libname}${release}.so$versuffix $libname.a'
5328  shlibpath_var=LIBPATH
5329
5330  # AIX has no versioning support, so we append a major version to the name.
5331  soname_spec='${libname}${release}.so$major'
5332  ;;
5333
5334aix4* | aix5*)
5335  version_type=linux
5336  if test "$host_cpu" = ia64; then
5337    # AIX 5 supports IA64
5338    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5339    shlibpath_var=LD_LIBRARY_PATH
5340  else
5341    # With GCC up to 2.95.x, collect2 would create an import file
5342    # for dependence libraries.  The import file would start with
5343    # the line `#! .'.  This would cause the generated library to
5344    # depend on `.', always an invalid library.  This was fixed in
5345    # development snapshots of GCC prior to 3.0.
5346    case $host_os in
5347      aix4 | aix4.[01] | aix4.[01].*)
5348	if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5349	     echo ' yes '
5350	     echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5351	  :
5352	else
5353	  can_build_shared=no
5354	fi
5355	;;
5356    esac
5357    # AIX (on Power*) has no versioning support, so currently we can
5358    # not hardcode correct soname into executable. Probably we can
5359    # add versioning support to collect2, so additional links can
5360    # be useful in future.
5361    if test "$aix_use_runtimelinking" = yes; then
5362      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5363      # instead of lib<name>.a to let people know that these are not
5364      # typical AIX shared libraries.
5365      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5366    else
5367      # We preserve .a as extension for shared libraries through AIX4.2
5368      # and later when we are not doing run time linking.
5369      library_names_spec='${libname}${release}.a $libname.a'
5370      soname_spec='${libname}${release}.so$major'
5371    fi
5372    shlibpath_var=LIBPATH
5373  fi
5374  ;;
5375
5376amigaos*)
5377  library_names_spec='$libname.ixlibrary $libname.a'
5378  # Create ${libname}_ixlibrary.a entries in /sys/libs.
5379  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'
5380  ;;
5381
5382beos*)
5383  library_names_spec='${libname}.so'
5384  dynamic_linker="$host_os ld.so"
5385  shlibpath_var=LIBRARY_PATH
5386  ;;
5387
5388bsdi4*)
5389  version_type=linux
5390  need_version=no
5391  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5392  soname_spec='${libname}${release}.so$major'
5393  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5394  shlibpath_var=LD_LIBRARY_PATH
5395  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5396  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5397  export_dynamic_flag_spec=-rdynamic
5398  # the default ld.so.conf also contains /usr/contrib/lib and
5399  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5400  # libtool to hard-code these into programs
5401  ;;
5402
5403cygwin* | mingw* | pw32*)
5404  version_type=windows
5405  need_version=no
5406  need_lib_prefix=no
5407  case $GCC,$host_os in
5408  yes,cygwin*)
5409    library_names_spec='$libname.dll.a'
5410    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5411    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5412      dldir=$destdir/`dirname \$dlpath`~
5413      test -d \$dldir || mkdir -p \$dldir~
5414      $install_prog .libs/$dlname \$dldir/$dlname'
5415    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5416      dlpath=$dir/\$dldll~
5417       $rm \$dlpath'
5418    ;;
5419  yes,mingw*)
5420    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5421    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5422    ;;
5423  yes,pw32*)
5424    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5425    ;;
5426  *)
5427    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5428    ;;
5429  esac
5430  dynamic_linker='Win32 ld.exe'
5431  # FIXME: first we should search . and the directory the executable is in
5432  shlibpath_var=PATH
5433  ;;
5434
5435darwin* | rhapsody*)
5436  dynamic_linker="$host_os dyld"
5437  version_type=darwin
5438  need_lib_prefix=no
5439  need_version=no
5440  # FIXME: Relying on posixy $() will cause problems for
5441  #        cross-compilation, but unfortunately the echo tests do not
5442  #        yet detect zsh echo's removal of \ escapes.
5443  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5444  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5445  shlibpath_overrides_runpath=yes
5446  shlibpath_var=DYLD_LIBRARY_PATH
5447  ;;
5448
5449freebsd1*)
5450  dynamic_linker=no
5451  ;;
5452
5453freebsd*)
5454  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5455  version_type=freebsd-$objformat
5456  case $version_type in
5457    freebsd-elf*)
5458      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5459      need_version=no
5460      need_lib_prefix=no
5461      ;;
5462    freebsd-*)
5463      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5464      need_version=yes
5465      ;;
5466  esac
5467  shlibpath_var=LD_LIBRARY_PATH
5468  case $host_os in
5469  freebsd2*)
5470    shlibpath_overrides_runpath=yes
5471    ;;
5472  *)
5473    shlibpath_overrides_runpath=no
5474    hardcode_into_libs=yes
5475    ;;
5476  esac
5477  ;;
5478
5479gnu*)
5480  version_type=linux
5481  need_lib_prefix=no
5482  need_version=no
5483  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5484  soname_spec='${libname}${release}.so$major'
5485  shlibpath_var=LD_LIBRARY_PATH
5486  hardcode_into_libs=yes
5487  ;;
5488
5489hpux9* | hpux10* | hpux11*)
5490  # Give a soname corresponding to the major version so that dld.sl refuses to
5491  # link against other versions.
5492  dynamic_linker="$host_os dld.sl"
5493  version_type=sunos
5494  need_lib_prefix=no
5495  need_version=no
5496  shlibpath_var=SHLIB_PATH
5497  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5498  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5499  soname_spec='${libname}${release}.sl$major'
5500  # HP-UX runs *really* slowly unless shared libraries are mode 555.
5501  postinstall_cmds='chmod 555 $lib'
5502  ;;
5503
5504irix5* | irix6*)
5505  version_type=irix
5506  need_lib_prefix=no
5507  need_version=no
5508  soname_spec='${libname}${release}.so$major'
5509  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5510  case $host_os in
5511  irix5*)
5512    libsuff= shlibsuff=
5513    ;;
5514  *)
5515    case $LD in # libtool.m4 will add one of these switches to LD
5516    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5517    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5518    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5519    *) libsuff= shlibsuff= libmagic=never-match;;
5520    esac
5521    ;;
5522  esac
5523  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5524  shlibpath_overrides_runpath=no
5525  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5526  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5527  ;;
5528
5529# No shared lib support for Linux oldld, aout, or coff.
5530linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5531  dynamic_linker=no
5532  ;;
5533
5534# This must be Linux ELF.
5535linux-gnu*)
5536  version_type=linux
5537  need_lib_prefix=no
5538  need_version=no
5539  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5540  soname_spec='${libname}${release}.so$major'
5541  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5542  shlibpath_var=LD_LIBRARY_PATH
5543  shlibpath_overrides_runpath=no
5544  # This implies no fast_install, which is unacceptable.
5545  # Some rework will be needed to allow for fast_install
5546  # before this can be enabled.
5547  hardcode_into_libs=yes
5548
5549  # We used to test for /lib/ld.so.1 and disable shared libraries on
5550  # powerpc, because MkLinux only supported shared libraries with the
5551  # GNU dynamic linker.  Since this was broken with cross compilers,
5552  # most powerpc-linux boxes support dynamic linking these days and
5553  # people can always --disable-shared, the test was removed, and we
5554  # assume the GNU/Linux dynamic linker is in use.
5555  dynamic_linker='GNU/Linux ld.so'
5556  ;;
5557
5558netbsd*)
5559  version_type=sunos
5560  need_lib_prefix=no
5561  need_version=no
5562  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5563    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5564    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5565    dynamic_linker='NetBSD (a.out) ld.so'
5566  else
5567    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5568    soname_spec='${libname}${release}.so$major'
5569    dynamic_linker='NetBSD ld.elf_so'
5570  fi
5571  shlibpath_var=LD_LIBRARY_PATH
5572  shlibpath_overrides_runpath=yes
5573  hardcode_into_libs=yes
5574  ;;
5575
5576newsos6)
5577  version_type=linux
5578  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5579  shlibpath_var=LD_LIBRARY_PATH
5580  shlibpath_overrides_runpath=yes
5581  ;;
5582
5583openbsd*)
5584  version_type=sunos
5585  need_lib_prefix=no
5586  need_version=no
5587  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5588    case "$host_os" in
5589    openbsd2.[89] | openbsd2.[89].*)
5590      shlibpath_overrides_runpath=no
5591      ;;
5592    *)
5593      shlibpath_overrides_runpath=yes
5594      ;;
5595    esac
5596  else
5597    shlibpath_overrides_runpath=yes
5598  fi
5599  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5600  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5601  shlibpath_var=LD_LIBRARY_PATH
5602  ;;
5603
5604os2*)
5605  libname_spec='$name'
5606  need_lib_prefix=no
5607  library_names_spec='$libname.dll $libname.a'
5608  dynamic_linker='OS/2 ld.exe'
5609  shlibpath_var=LIBPATH
5610  ;;
5611
5612osf3* | osf4* | osf5*)
5613  version_type=osf
5614  need_version=no
5615  soname_spec='${libname}${release}.so'
5616  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5617  shlibpath_var=LD_LIBRARY_PATH
5618  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5619  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5620  ;;
5621
5622sco3.2v5*)
5623  version_type=osf
5624  soname_spec='${libname}${release}.so$major'
5625  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5626  shlibpath_var=LD_LIBRARY_PATH
5627  ;;
5628
5629solaris*)
5630  version_type=linux
5631  need_lib_prefix=no
5632  need_version=no
5633  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5634  soname_spec='${libname}${release}.so$major'
5635  shlibpath_var=LD_LIBRARY_PATH
5636  shlibpath_overrides_runpath=yes
5637  hardcode_into_libs=yes
5638  # ldd complains unless libraries are executable
5639  postinstall_cmds='chmod +x $lib'
5640  ;;
5641
5642sunos4*)
5643  version_type=sunos
5644  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5645  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5646  shlibpath_var=LD_LIBRARY_PATH
5647  shlibpath_overrides_runpath=yes
5648  if test "$with_gnu_ld" = yes; then
5649    need_lib_prefix=no
5650  fi
5651  need_version=yes
5652  ;;
5653
5654sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5655  version_type=linux
5656  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5657  soname_spec='${libname}${release}.so$major'
5658  shlibpath_var=LD_LIBRARY_PATH
5659  case $host_vendor in
5660    sni)
5661      shlibpath_overrides_runpath=no
5662      ;;
5663    motorola)
5664      need_lib_prefix=no
5665      need_version=no
5666      shlibpath_overrides_runpath=no
5667      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5668      ;;
5669  esac
5670  ;;
5671
5672uts4*)
5673  version_type=linux
5674  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5675  soname_spec='${libname}${release}.so$major'
5676  shlibpath_var=LD_LIBRARY_PATH
5677  ;;
5678
5679dgux*)
5680  version_type=linux
5681  need_lib_prefix=no
5682  need_version=no
5683  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5684  soname_spec='${libname}${release}.so$major'
5685  shlibpath_var=LD_LIBRARY_PATH
5686  ;;
5687
5688sysv4*MP*)
5689  if test -d /usr/nec ;then
5690    version_type=linux
5691    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5692    soname_spec='$libname.so.$major'
5693    shlibpath_var=LD_LIBRARY_PATH
5694  fi
5695  ;;
5696
5697*)
5698  dynamic_linker=no
5699  ;;
5700esac
5701echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5702echo "${ECHO_T}$dynamic_linker" >&6
5703test "$dynamic_linker" = no && can_build_shared=no
5704##
5705## END FIXME
5706
5707## FIXME: this should be a separate macro
5708##
5709# Report the final consequences.
5710echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
5711echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5712echo "$as_me:$LINENO: result: $can_build_shared" >&5
5713echo "${ECHO_T}$can_build_shared" >&6
5714##
5715## END FIXME
5716
5717## FIXME: this should be a separate macro
5718##
5719echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5720echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5721test "$can_build_shared" = "no" && enable_shared=no
5722
5723# On AIX, shared libraries and static libraries use the same namespace, and
5724# are all built from PIC.
5725case "$host_os" in
5726aix3*)
5727  test "$enable_shared" = yes && enable_static=no
5728  if test -n "$RANLIB"; then
5729    archive_cmds="$archive_cmds~\$RANLIB \$lib"
5730    postinstall_cmds='$RANLIB $lib'
5731  fi
5732  ;;
5733
5734aix4*)
5735  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5736    test "$enable_shared" = yes && enable_static=no
5737  fi
5738  ;;
5739esac
5740echo "$as_me:$LINENO: result: $enable_shared" >&5
5741echo "${ECHO_T}$enable_shared" >&6
5742##
5743## END FIXME
5744
5745## FIXME: this should be a separate macro
5746##
5747echo "$as_me:$LINENO: checking whether to build static libraries" >&5
5748echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5749# Make sure either enable_shared or enable_static is yes.
5750test "$enable_shared" = yes || enable_static=yes
5751echo "$as_me:$LINENO: result: $enable_static" >&5
5752echo "${ECHO_T}$enable_static" >&6
5753##
5754## END FIXME
5755
5756if test "$hardcode_action" = relink; then
5757  # Fast installation is not supported
5758  enable_fast_install=no
5759elif test "$shlibpath_overrides_runpath" = yes ||
5760     test "$enable_shared" = no; then
5761  # Fast installation is not necessary
5762  enable_fast_install=needless
5763fi
5764
5765variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5766if test "$GCC" = yes; then
5767  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5768fi
5769
5770if test "x$enable_dlopen" != xyes; then
5771  enable_dlopen=unknown
5772  enable_dlopen_self=unknown
5773  enable_dlopen_self_static=unknown
5774else
5775  lt_cv_dlopen=no
5776  lt_cv_dlopen_libs=
5777
5778  case $host_os in
5779  beos*)
5780    lt_cv_dlopen="load_add_on"
5781    lt_cv_dlopen_libs=
5782    lt_cv_dlopen_self=yes
5783    ;;
5784
5785  cygwin* | mingw* | pw32*)
5786    lt_cv_dlopen="LoadLibrary"
5787    lt_cv_dlopen_libs=
5788   ;;
5789
5790  *)
5791    echo "$as_me:$LINENO: checking for shl_load" >&5
5792echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5793if test "${ac_cv_func_shl_load+set}" = set; then
5794  echo $ECHO_N "(cached) $ECHO_C" >&6
5795else
5796  cat >conftest.$ac_ext <<_ACEOF
5797#line $LINENO "configure"
5798#include "confdefs.h"
5799/* System header to define __stub macros and hopefully few prototypes,
5800    which can conflict with char shl_load (); below.  */
5801#include <assert.h>
5802/* Override any gcc2 internal prototype to avoid an error.  */
5803#ifdef __cplusplus
5804extern "C"
5805#endif
5806/* We use char because int might match the return type of a gcc2
5807   builtin and then its argument prototype would still apply.  */
5808char shl_load ();
5809char (*f) ();
5810
5811int
5812main ()
5813{
5814/* The GNU C library defines this for functions which it implements
5815    to always fail with ENOSYS.  Some functions are actually named
5816    something starting with __ and the normal name is an alias.  */
5817#if defined (__stub_shl_load) || defined (__stub___shl_load)
5818choke me
5819#else
5820f = shl_load;
5821#endif
5822
5823  ;
5824  return 0;
5825}
5826_ACEOF
5827rm -f conftest.$ac_objext conftest$ac_exeext
5828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5829  (eval $ac_link) 2>&5
5830  ac_status=$?
5831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832  (exit $ac_status); } &&
5833         { ac_try='test -s conftest$ac_exeext'
5834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835  (eval $ac_try) 2>&5
5836  ac_status=$?
5837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838  (exit $ac_status); }; }; then
5839  ac_cv_func_shl_load=yes
5840else
5841  echo "$as_me: failed program was:" >&5
5842cat conftest.$ac_ext >&5
5843ac_cv_func_shl_load=no
5844fi
5845rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5846fi
5847echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
5848echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5849if test $ac_cv_func_shl_load = yes; then
5850  lt_cv_dlopen="shl_load"
5851else
5852  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
5853echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5854if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5855  echo $ECHO_N "(cached) $ECHO_C" >&6
5856else
5857  ac_check_lib_save_LIBS=$LIBS
5858LIBS="-ldld  $LIBS"
5859cat >conftest.$ac_ext <<_ACEOF
5860#line $LINENO "configure"
5861#include "confdefs.h"
5862
5863/* Override any gcc2 internal prototype to avoid an error.  */
5864#ifdef __cplusplus
5865extern "C"
5866#endif
5867/* We use char because int might match the return type of a gcc2
5868   builtin and then its argument prototype would still apply.  */
5869char shl_load ();
5870int
5871main ()
5872{
5873shl_load ();
5874  ;
5875  return 0;
5876}
5877_ACEOF
5878rm -f conftest.$ac_objext conftest$ac_exeext
5879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5880  (eval $ac_link) 2>&5
5881  ac_status=$?
5882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883  (exit $ac_status); } &&
5884         { ac_try='test -s conftest$ac_exeext'
5885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886  (eval $ac_try) 2>&5
5887  ac_status=$?
5888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889  (exit $ac_status); }; }; then
5890  ac_cv_lib_dld_shl_load=yes
5891else
5892  echo "$as_me: failed program was:" >&5
5893cat conftest.$ac_ext >&5
5894ac_cv_lib_dld_shl_load=no
5895fi
5896rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5897LIBS=$ac_check_lib_save_LIBS
5898fi
5899echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
5900echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5901if test $ac_cv_lib_dld_shl_load = yes; then
5902  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5903else
5904  echo "$as_me:$LINENO: checking for dlopen" >&5
5905echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5906if test "${ac_cv_func_dlopen+set}" = set; then
5907  echo $ECHO_N "(cached) $ECHO_C" >&6
5908else
5909  cat >conftest.$ac_ext <<_ACEOF
5910#line $LINENO "configure"
5911#include "confdefs.h"
5912/* System header to define __stub macros and hopefully few prototypes,
5913    which can conflict with char dlopen (); below.  */
5914#include <assert.h>
5915/* Override any gcc2 internal prototype to avoid an error.  */
5916#ifdef __cplusplus
5917extern "C"
5918#endif
5919/* We use char because int might match the return type of a gcc2
5920   builtin and then its argument prototype would still apply.  */
5921char dlopen ();
5922char (*f) ();
5923
5924int
5925main ()
5926{
5927/* The GNU C library defines this for functions which it implements
5928    to always fail with ENOSYS.  Some functions are actually named
5929    something starting with __ and the normal name is an alias.  */
5930#if defined (__stub_dlopen) || defined (__stub___dlopen)
5931choke me
5932#else
5933f = dlopen;
5934#endif
5935
5936  ;
5937  return 0;
5938}
5939_ACEOF
5940rm -f conftest.$ac_objext conftest$ac_exeext
5941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5942  (eval $ac_link) 2>&5
5943  ac_status=$?
5944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945  (exit $ac_status); } &&
5946         { ac_try='test -s conftest$ac_exeext'
5947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948  (eval $ac_try) 2>&5
5949  ac_status=$?
5950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951  (exit $ac_status); }; }; then
5952  ac_cv_func_dlopen=yes
5953else
5954  echo "$as_me: failed program was:" >&5
5955cat conftest.$ac_ext >&5
5956ac_cv_func_dlopen=no
5957fi
5958rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5959fi
5960echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
5961echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5962if test $ac_cv_func_dlopen = yes; then
5963  lt_cv_dlopen="dlopen"
5964else
5965  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5966echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5967if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5968  echo $ECHO_N "(cached) $ECHO_C" >&6
5969else
5970  ac_check_lib_save_LIBS=$LIBS
5971LIBS="-ldl  $LIBS"
5972cat >conftest.$ac_ext <<_ACEOF
5973#line $LINENO "configure"
5974#include "confdefs.h"
5975
5976/* Override any gcc2 internal prototype to avoid an error.  */
5977#ifdef __cplusplus
5978extern "C"
5979#endif
5980/* We use char because int might match the return type of a gcc2
5981   builtin and then its argument prototype would still apply.  */
5982char dlopen ();
5983int
5984main ()
5985{
5986dlopen ();
5987  ;
5988  return 0;
5989}
5990_ACEOF
5991rm -f conftest.$ac_objext conftest$ac_exeext
5992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5993  (eval $ac_link) 2>&5
5994  ac_status=$?
5995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996  (exit $ac_status); } &&
5997         { ac_try='test -s conftest$ac_exeext'
5998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999  (eval $ac_try) 2>&5
6000  ac_status=$?
6001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002  (exit $ac_status); }; }; then
6003  ac_cv_lib_dl_dlopen=yes
6004else
6005  echo "$as_me: failed program was:" >&5
6006cat conftest.$ac_ext >&5
6007ac_cv_lib_dl_dlopen=no
6008fi
6009rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6010LIBS=$ac_check_lib_save_LIBS
6011fi
6012echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6013echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6014if test $ac_cv_lib_dl_dlopen = yes; then
6015  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6016else
6017  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6018echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6019if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6020  echo $ECHO_N "(cached) $ECHO_C" >&6
6021else
6022  ac_check_lib_save_LIBS=$LIBS
6023LIBS="-lsvld  $LIBS"
6024cat >conftest.$ac_ext <<_ACEOF
6025#line $LINENO "configure"
6026#include "confdefs.h"
6027
6028/* Override any gcc2 internal prototype to avoid an error.  */
6029#ifdef __cplusplus
6030extern "C"
6031#endif
6032/* We use char because int might match the return type of a gcc2
6033   builtin and then its argument prototype would still apply.  */
6034char dlopen ();
6035int
6036main ()
6037{
6038dlopen ();
6039  ;
6040  return 0;
6041}
6042_ACEOF
6043rm -f conftest.$ac_objext conftest$ac_exeext
6044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6045  (eval $ac_link) 2>&5
6046  ac_status=$?
6047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048  (exit $ac_status); } &&
6049         { ac_try='test -s conftest$ac_exeext'
6050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051  (eval $ac_try) 2>&5
6052  ac_status=$?
6053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054  (exit $ac_status); }; }; then
6055  ac_cv_lib_svld_dlopen=yes
6056else
6057  echo "$as_me: failed program was:" >&5
6058cat conftest.$ac_ext >&5
6059ac_cv_lib_svld_dlopen=no
6060fi
6061rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6062LIBS=$ac_check_lib_save_LIBS
6063fi
6064echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6065echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6066if test $ac_cv_lib_svld_dlopen = yes; then
6067  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6068else
6069  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6070echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6071if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6072  echo $ECHO_N "(cached) $ECHO_C" >&6
6073else
6074  ac_check_lib_save_LIBS=$LIBS
6075LIBS="-ldld  $LIBS"
6076cat >conftest.$ac_ext <<_ACEOF
6077#line $LINENO "configure"
6078#include "confdefs.h"
6079
6080/* Override any gcc2 internal prototype to avoid an error.  */
6081#ifdef __cplusplus
6082extern "C"
6083#endif
6084/* We use char because int might match the return type of a gcc2
6085   builtin and then its argument prototype would still apply.  */
6086char dld_link ();
6087int
6088main ()
6089{
6090dld_link ();
6091  ;
6092  return 0;
6093}
6094_ACEOF
6095rm -f conftest.$ac_objext conftest$ac_exeext
6096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6097  (eval $ac_link) 2>&5
6098  ac_status=$?
6099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100  (exit $ac_status); } &&
6101         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6107  ac_cv_lib_dld_dld_link=yes
6108else
6109  echo "$as_me: failed program was:" >&5
6110cat conftest.$ac_ext >&5
6111ac_cv_lib_dld_dld_link=no
6112fi
6113rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6114LIBS=$ac_check_lib_save_LIBS
6115fi
6116echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6117echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6118if test $ac_cv_lib_dld_dld_link = yes; then
6119  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6120fi
6121
6122
6123fi
6124
6125
6126fi
6127
6128
6129fi
6130
6131
6132fi
6133
6134
6135fi
6136
6137    ;;
6138  esac
6139
6140  if test "x$lt_cv_dlopen" != xno; then
6141    enable_dlopen=yes
6142  else
6143    enable_dlopen=no
6144  fi
6145
6146  case $lt_cv_dlopen in
6147  dlopen)
6148    save_CPPFLAGS="$CPPFLAGS"
6149        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6150
6151    save_LDFLAGS="$LDFLAGS"
6152    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6153
6154    save_LIBS="$LIBS"
6155    LIBS="$lt_cv_dlopen_libs $LIBS"
6156
6157    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6158echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6159if test "${lt_cv_dlopen_self+set}" = set; then
6160  echo $ECHO_N "(cached) $ECHO_C" >&6
6161else
6162  	  if test "$cross_compiling" = yes; then :
6163  lt_cv_dlopen_self=cross
6164else
6165    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6166  lt_status=$lt_dlunknown
6167  cat > conftest.$ac_ext <<EOF
6168#line 6168 "configure"
6169#include "confdefs.h"
6170
6171#if HAVE_DLFCN_H
6172#include <dlfcn.h>
6173#endif
6174
6175#include <stdio.h>
6176
6177#ifdef RTLD_GLOBAL
6178#  define LT_DLGLOBAL		RTLD_GLOBAL
6179#else
6180#  ifdef DL_GLOBAL
6181#    define LT_DLGLOBAL		DL_GLOBAL
6182#  else
6183#    define LT_DLGLOBAL		0
6184#  endif
6185#endif
6186
6187/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6188   find out it does not work in some platform. */
6189#ifndef LT_DLLAZY_OR_NOW
6190#  ifdef RTLD_LAZY
6191#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
6192#  else
6193#    ifdef DL_LAZY
6194#      define LT_DLLAZY_OR_NOW		DL_LAZY
6195#    else
6196#      ifdef RTLD_NOW
6197#        define LT_DLLAZY_OR_NOW	RTLD_NOW
6198#      else
6199#        ifdef DL_NOW
6200#          define LT_DLLAZY_OR_NOW	DL_NOW
6201#        else
6202#          define LT_DLLAZY_OR_NOW	0
6203#        endif
6204#      endif
6205#    endif
6206#  endif
6207#endif
6208
6209#ifdef __cplusplus
6210extern "C" void exit (int);
6211#endif
6212
6213void fnord() { int i=42;}
6214int main ()
6215{
6216  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6217  int status = $lt_dlunknown;
6218
6219  if (self)
6220    {
6221      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6222      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6223      /* dlclose (self); */
6224    }
6225
6226    exit (status);
6227}
6228EOF
6229  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6230  (eval $ac_link) 2>&5
6231  ac_status=$?
6232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6234    (./conftest; exit; ) 2>/dev/null
6235    lt_status=$?
6236    case x$lt_status in
6237      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6238      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6239      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6240    esac
6241  else :
6242    # compilation failed
6243    lt_cv_dlopen_self=no
6244  fi
6245fi
6246rm -fr conftest*
6247
6248
6249fi
6250echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6251echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6252
6253    if test "x$lt_cv_dlopen_self" = xyes; then
6254      LDFLAGS="$LDFLAGS $link_static_flag"
6255      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6256echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6257if test "${lt_cv_dlopen_self_static+set}" = set; then
6258  echo $ECHO_N "(cached) $ECHO_C" >&6
6259else
6260  	  if test "$cross_compiling" = yes; then :
6261  lt_cv_dlopen_self_static=cross
6262else
6263    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6264  lt_status=$lt_dlunknown
6265  cat > conftest.$ac_ext <<EOF
6266#line 6266 "configure"
6267#include "confdefs.h"
6268
6269#if HAVE_DLFCN_H
6270#include <dlfcn.h>
6271#endif
6272
6273#include <stdio.h>
6274
6275#ifdef RTLD_GLOBAL
6276#  define LT_DLGLOBAL		RTLD_GLOBAL
6277#else
6278#  ifdef DL_GLOBAL
6279#    define LT_DLGLOBAL		DL_GLOBAL
6280#  else
6281#    define LT_DLGLOBAL		0
6282#  endif
6283#endif
6284
6285/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6286   find out it does not work in some platform. */
6287#ifndef LT_DLLAZY_OR_NOW
6288#  ifdef RTLD_LAZY
6289#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
6290#  else
6291#    ifdef DL_LAZY
6292#      define LT_DLLAZY_OR_NOW		DL_LAZY
6293#    else
6294#      ifdef RTLD_NOW
6295#        define LT_DLLAZY_OR_NOW	RTLD_NOW
6296#      else
6297#        ifdef DL_NOW
6298#          define LT_DLLAZY_OR_NOW	DL_NOW
6299#        else
6300#          define LT_DLLAZY_OR_NOW	0
6301#        endif
6302#      endif
6303#    endif
6304#  endif
6305#endif
6306
6307#ifdef __cplusplus
6308extern "C" void exit (int);
6309#endif
6310
6311void fnord() { int i=42;}
6312int main ()
6313{
6314  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6315  int status = $lt_dlunknown;
6316
6317  if (self)
6318    {
6319      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6320      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6321      /* dlclose (self); */
6322    }
6323
6324    exit (status);
6325}
6326EOF
6327  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6328  (eval $ac_link) 2>&5
6329  ac_status=$?
6330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6332    (./conftest; exit; ) 2>/dev/null
6333    lt_status=$?
6334    case x$lt_status in
6335      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6336      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6337      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6338    esac
6339  else :
6340    # compilation failed
6341    lt_cv_dlopen_self_static=no
6342  fi
6343fi
6344rm -fr conftest*
6345
6346
6347fi
6348echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6349echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6350    fi
6351
6352    CPPFLAGS="$save_CPPFLAGS"
6353    LDFLAGS="$save_LDFLAGS"
6354    LIBS="$save_LIBS"
6355    ;;
6356  esac
6357
6358  case $lt_cv_dlopen_self in
6359  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6360  *) enable_dlopen_self=unknown ;;
6361  esac
6362
6363  case $lt_cv_dlopen_self_static in
6364  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6365  *) enable_dlopen_self_static=unknown ;;
6366  esac
6367fi
6368
6369
6370## FIXME: this should be a separate macro
6371##
6372if test "$enable_shared" = yes && test "$GCC" = yes; then
6373  case $archive_cmds in
6374  *'~'*)
6375    # FIXME: we may have to deal with multi-command sequences.
6376    ;;
6377  '$CC '*)
6378    # Test whether the compiler implicitly links with -lc since on some
6379    # systems, -lgcc has to come before -lc. If gcc already passes -lc
6380    # to ld, don't add -lc before -lgcc.
6381    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6382echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6383    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6384  echo $ECHO_N "(cached) $ECHO_C" >&6
6385else
6386  $rm conftest*
6387    echo 'static int dummy;' > conftest.$ac_ext
6388
6389    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6390  (eval $ac_compile) 2>&5
6391  ac_status=$?
6392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393  (exit $ac_status); }; then
6394      soname=conftest
6395      lib=conftest
6396      libobjs=conftest.$ac_objext
6397      deplibs=
6398      wl=$lt_cv_prog_cc_wl
6399      compiler_flags=-v
6400      linker_flags=-v
6401      verstring=
6402      output_objdir=.
6403      libname=conftest
6404      save_allow_undefined_flag=$allow_undefined_flag
6405      allow_undefined_flag=
6406      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6407  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6408  ac_status=$?
6409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410  (exit $ac_status); }
6411      then
6412	lt_cv_archive_cmds_need_lc=no
6413      else
6414	lt_cv_archive_cmds_need_lc=yes
6415      fi
6416      allow_undefined_flag=$save_allow_undefined_flag
6417    else
6418      cat conftest.err 1>&5
6419    fi
6420fi
6421
6422    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6423echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6424    ;;
6425  esac
6426fi
6427need_lc=${lt_cv_archive_cmds_need_lc-yes}
6428##
6429## END FIXME
6430
6431## FIXME: this should be a separate macro
6432##
6433# The second clause should only fire when bootstrapping the
6434# libtool distribution, otherwise you forgot to ship ltmain.sh
6435# with your package, and you will get complaints that there are
6436# no rules to generate ltmain.sh.
6437if test -f "$ltmain"; then
6438  :
6439else
6440  # If there is no Makefile yet, we rely on a make rule to execute
6441  # `config.status --recheck' to rerun these tests and create the
6442  # libtool script then.
6443  test -f Makefile && make "$ltmain"
6444fi
6445
6446if test -f "$ltmain"; then
6447  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6448  $rm -f "${ofile}T"
6449
6450  echo creating $ofile
6451
6452  # Now quote all the things that may contain metacharacters while being
6453  # careful not to overquote the AC_SUBSTed values.  We take copies of the
6454  # variables and quote the copies for generation of the libtool script.
6455  for var in echo old_CC old_CFLAGS \
6456    AR AR_FLAGS CC LD LN_S NM SHELL \
6457    reload_flag reload_cmds wl \
6458    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6459    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6460    library_names_spec soname_spec \
6461    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6462    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6463    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6464    old_striplib striplib file_magic_cmd export_symbols_cmds \
6465    deplibs_check_method allow_undefined_flag no_undefined_flag \
6466    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6467    global_symbol_to_c_name_address \
6468    hardcode_libdir_flag_spec hardcode_libdir_separator  \
6469    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6470    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6471
6472    case $var in
6473    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6474    old_postinstall_cmds | old_postuninstall_cmds | \
6475    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6476    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6477    postinstall_cmds | postuninstall_cmds | \
6478    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6479      # Double-quote double-evaled strings.
6480      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6481      ;;
6482    *)
6483      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6484      ;;
6485    esac
6486  done
6487
6488  cat <<__EOF__ > "${ofile}T"
6489#! $SHELL
6490
6491# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6492# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6493# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6494#
6495# Copyright (C) 1996-2000 Free Software Foundation, Inc.
6496# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6497#
6498# This program is free software; you can redistribute it and/or modify
6499# it under the terms of the GNU General Public License as published by
6500# the Free Software Foundation; either version 2 of the License, or
6501# (at your option) any later version.
6502#
6503# This program is distributed in the hope that it will be useful, but
6504# WITHOUT ANY WARRANTY; without even the implied warranty of
6505# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
6506# General Public License for more details.
6507#
6508# You should have received a copy of the GNU General Public License
6509# along with this program; if not, write to the Free Software
6510# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6511#
6512# As a special exception to the GNU General Public License, if you
6513# distribute this file as part of a program that contains a
6514# configuration script generated by Autoconf, you may include it under
6515# the same distribution terms that you use for the rest of that program.
6516
6517# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6518Xsed="sed -e s/^X//"
6519
6520# The HP-UX ksh and POSIX shell print the target directory to stdout
6521# if CDPATH is set.
6522if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6523
6524# ### BEGIN LIBTOOL CONFIG
6525
6526# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6527
6528# Shell to use when invoking shell scripts.
6529SHELL=$lt_SHELL
6530
6531# Whether or not to build shared libraries.
6532build_libtool_libs=$enable_shared
6533
6534# Whether or not to build static libraries.
6535build_old_libs=$enable_static
6536
6537# Whether or not to add -lc for building shared libraries.
6538build_libtool_need_lc=$need_lc
6539
6540# Whether or not to optimize for fast installation.
6541fast_install=$enable_fast_install
6542
6543# The host system.
6544host_alias=$host_alias
6545host=$host
6546
6547# An echo program that does not interpret backslashes.
6548echo=$lt_echo
6549
6550# The archiver.
6551AR=$lt_AR
6552AR_FLAGS=$lt_AR_FLAGS
6553
6554# The default C compiler.
6555CC=$lt_CC
6556
6557# Is the compiler the GNU C compiler?
6558with_gcc=$GCC
6559
6560# The linker used to build libraries.
6561LD=$lt_LD
6562
6563# Whether we need hard or soft links.
6564LN_S=$lt_LN_S
6565
6566# A BSD-compatible nm program.
6567NM=$lt_NM
6568
6569# A symbol stripping program
6570STRIP=$STRIP
6571
6572# Used to examine libraries when file_magic_cmd begins "file"
6573MAGIC_CMD=$MAGIC_CMD
6574
6575# Used on cygwin: DLL creation program.
6576DLLTOOL="$DLLTOOL"
6577
6578# Used on cygwin: object dumper.
6579OBJDUMP="$OBJDUMP"
6580
6581# Used on cygwin: assembler.
6582AS="$AS"
6583
6584# The name of the directory that contains temporary libtool files.
6585objdir=$objdir
6586
6587# How to create reloadable object files.
6588reload_flag=$lt_reload_flag
6589reload_cmds=$lt_reload_cmds
6590
6591# How to pass a linker flag through the compiler.
6592wl=$lt_wl
6593
6594# Object file suffix (normally "o").
6595objext="$ac_objext"
6596
6597# Old archive suffix (normally "a").
6598libext="$libext"
6599
6600# Executable file suffix (normally "").
6601exeext="$exeext"
6602
6603# Additional compiler flags for building library objects.
6604pic_flag=$lt_pic_flag
6605pic_mode=$pic_mode
6606
6607# Does compiler simultaneously support -c and -o options?
6608compiler_c_o=$lt_compiler_c_o
6609
6610# Can we write directly to a .lo ?
6611compiler_o_lo=$lt_compiler_o_lo
6612
6613# Must we lock files when doing compilation ?
6614need_locks=$lt_need_locks
6615
6616# Do we need the lib prefix for modules?
6617need_lib_prefix=$need_lib_prefix
6618
6619# Do we need a version for libraries?
6620need_version=$need_version
6621
6622# Whether dlopen is supported.
6623dlopen_support=$enable_dlopen
6624
6625# Whether dlopen of programs is supported.
6626dlopen_self=$enable_dlopen_self
6627
6628# Whether dlopen of statically linked programs is supported.
6629dlopen_self_static=$enable_dlopen_self_static
6630
6631# Compiler flag to prevent dynamic linking.
6632link_static_flag=$lt_link_static_flag
6633
6634# Compiler flag to turn off builtin functions.
6635no_builtin_flag=$lt_no_builtin_flag
6636
6637# Compiler flag to allow reflexive dlopens.
6638export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6639
6640# Compiler flag to generate shared objects directly from archives.
6641whole_archive_flag_spec=$lt_whole_archive_flag_spec
6642
6643# Compiler flag to generate thread-safe objects.
6644thread_safe_flag_spec=$lt_thread_safe_flag_spec
6645
6646# Library versioning type.
6647version_type=$version_type
6648
6649# Format of library name prefix.
6650libname_spec=$lt_libname_spec
6651
6652# List of archive names.  First name is the real one, the rest are links.
6653# The last name is the one that the linker finds with -lNAME.
6654library_names_spec=$lt_library_names_spec
6655
6656# The coded name of the library, if different from the real name.
6657soname_spec=$lt_soname_spec
6658
6659# Commands used to build and install an old-style archive.
6660RANLIB=$lt_RANLIB
6661old_archive_cmds=$lt_old_archive_cmds
6662old_postinstall_cmds=$lt_old_postinstall_cmds
6663old_postuninstall_cmds=$lt_old_postuninstall_cmds
6664
6665# Create an old-style archive from a shared archive.
6666old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6667
6668# Create a temporary old-style archive to link instead of a shared archive.
6669old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6670
6671# Commands used to build and install a shared archive.
6672archive_cmds=$lt_archive_cmds
6673archive_expsym_cmds=$lt_archive_expsym_cmds
6674postinstall_cmds=$lt_postinstall_cmds
6675postuninstall_cmds=$lt_postuninstall_cmds
6676
6677# Commands to strip libraries.
6678old_striplib=$lt_old_striplib
6679striplib=$lt_striplib
6680
6681# Method to check whether dependent libraries are shared objects.
6682deplibs_check_method=$lt_deplibs_check_method
6683
6684# Command to use when deplibs_check_method == file_magic.
6685file_magic_cmd=$lt_file_magic_cmd
6686
6687# Flag that allows shared libraries with undefined symbols to be built.
6688allow_undefined_flag=$lt_allow_undefined_flag
6689
6690# Flag that forces no undefined symbols.
6691no_undefined_flag=$lt_no_undefined_flag
6692
6693# Commands used to finish a libtool library installation in a directory.
6694finish_cmds=$lt_finish_cmds
6695
6696# Same as above, but a single script fragment to be evaled but not shown.
6697finish_eval=$lt_finish_eval
6698
6699# Take the output of nm and produce a listing of raw symbols and C names.
6700global_symbol_pipe=$lt_global_symbol_pipe
6701
6702# Transform the output of nm in a proper C declaration
6703global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6704
6705# Transform the output of nm in a C name address pair
6706global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6707
6708# This is the shared library runtime path variable.
6709runpath_var=$runpath_var
6710
6711# This is the shared library path variable.
6712shlibpath_var=$shlibpath_var
6713
6714# Is shlibpath searched before the hard-coded library search path?
6715shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6716
6717# How to hardcode a shared library path into an executable.
6718hardcode_action=$hardcode_action
6719
6720# Whether we should hardcode library paths into libraries.
6721hardcode_into_libs=$hardcode_into_libs
6722
6723# Flag to hardcode \$libdir into a binary during linking.
6724# This must work even if \$libdir does not exist.
6725hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6726
6727# Whether we need a single -rpath flag with a separated argument.
6728hardcode_libdir_separator=$lt_hardcode_libdir_separator
6729
6730# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6731# resulting binary.
6732hardcode_direct=$hardcode_direct
6733
6734# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6735# resulting binary.
6736hardcode_minus_L=$hardcode_minus_L
6737
6738# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6739# the resulting binary.
6740hardcode_shlibpath_var=$hardcode_shlibpath_var
6741
6742# Variables whose values should be saved in libtool wrapper scripts and
6743# restored at relink time.
6744variables_saved_for_relink="$variables_saved_for_relink"
6745
6746# Whether libtool must link a program against all its dependency libraries.
6747link_all_deplibs=$link_all_deplibs
6748
6749# Compile-time system search path for libraries
6750sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6751
6752# Run-time system search path for libraries
6753sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6754
6755# Fix the shell variable \$srcfile for the compiler.
6756fix_srcfile_path="$fix_srcfile_path"
6757
6758# Set to yes if exported symbols are required.
6759always_export_symbols=$always_export_symbols
6760
6761# The commands to list exported symbols.
6762export_symbols_cmds=$lt_export_symbols_cmds
6763
6764# The commands to extract the exported symbol list from a shared archive.
6765extract_expsyms_cmds=$lt_extract_expsyms_cmds
6766
6767# Symbols that should not be listed in the preloaded symbols.
6768exclude_expsyms=$lt_exclude_expsyms
6769
6770# Symbols that must always be exported.
6771include_expsyms=$lt_include_expsyms
6772
6773# ### END LIBTOOL CONFIG
6774
6775__EOF__
6776
6777  case $host_os in
6778  aix3*)
6779    cat <<\EOF >> "${ofile}T"
6780
6781# AIX sometimes has problems with the GCC collect2 program.  For some
6782# reason, if we set the COLLECT_NAMES environment variable, the problems
6783# vanish in a puff of smoke.
6784if test "X${COLLECT_NAMES+set}" != Xset; then
6785  COLLECT_NAMES=
6786  export COLLECT_NAMES
6787fi
6788EOF
6789    ;;
6790  esac
6791
6792  case $host_os in
6793  cygwin* | mingw* | pw32* | os2*)
6794    cat <<'EOF' >> "${ofile}T"
6795      # This is a source program that is used to create dlls on Windows
6796      # Don't remove nor modify the starting and closing comments
6797# /* ltdll.c starts here */
6798# #define WIN32_LEAN_AND_MEAN
6799# #include <windows.h>
6800# #undef WIN32_LEAN_AND_MEAN
6801# #include <stdio.h>
6802#
6803# #ifndef __CYGWIN__
6804# #  ifdef __CYGWIN32__
6805# #    define __CYGWIN__ __CYGWIN32__
6806# #  endif
6807# #endif
6808#
6809# #ifdef __cplusplus
6810# extern "C" {
6811# #endif
6812# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6813# #ifdef __cplusplus
6814# }
6815# #endif
6816#
6817# #ifdef __CYGWIN__
6818# #include <cygwin/cygwin_dll.h>
6819# DECLARE_CYGWIN_DLL( DllMain );
6820# #endif
6821# HINSTANCE __hDllInstance_base;
6822#
6823# BOOL APIENTRY
6824# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6825# {
6826#   __hDllInstance_base = hInst;
6827#   return TRUE;
6828# }
6829# /* ltdll.c ends here */
6830	# This is a source program that is used to create import libraries
6831	# on Windows for dlls which lack them. Don't remove nor modify the
6832	# starting and closing comments
6833# /* impgen.c starts here */
6834# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
6835#
6836#  This file is part of GNU libtool.
6837#
6838#  This program is free software; you can redistribute it and/or modify
6839#  it under the terms of the GNU General Public License as published by
6840#  the Free Software Foundation; either version 2 of the License, or
6841#  (at your option) any later version.
6842#
6843#  This program is distributed in the hope that it will be useful,
6844#  but WITHOUT ANY WARRANTY; without even the implied warranty of
6845#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6846#  GNU General Public License for more details.
6847#
6848#  You should have received a copy of the GNU General Public License
6849#  along with this program; if not, write to the Free Software
6850#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6851#  */
6852#
6853# #include <stdio.h>		/* for printf() */
6854# #include <unistd.h>		/* for open(), lseek(), read() */
6855# #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
6856# #include <string.h>		/* for strdup() */
6857#
6858# /* O_BINARY isn't required (or even defined sometimes) under Unix */
6859# #ifndef O_BINARY
6860# #define O_BINARY 0
6861# #endif
6862#
6863# static unsigned int
6864# pe_get16 (fd, offset)
6865#      int fd;
6866#      int offset;
6867# {
6868#   unsigned char b[2];
6869#   lseek (fd, offset, SEEK_SET);
6870#   read (fd, b, 2);
6871#   return b[0] + (b[1]<<8);
6872# }
6873#
6874# static unsigned int
6875# pe_get32 (fd, offset)
6876#     int fd;
6877#     int offset;
6878# {
6879#   unsigned char b[4];
6880#   lseek (fd, offset, SEEK_SET);
6881#   read (fd, b, 4);
6882#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6883# }
6884#
6885# static unsigned int
6886# pe_as32 (ptr)
6887#      void *ptr;
6888# {
6889#   unsigned char *b = ptr;
6890#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6891# }
6892#
6893# int
6894# main (argc, argv)
6895#     int argc;
6896#     char *argv[];
6897# {
6898#     int dll;
6899#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6900#     unsigned long export_rva, export_size, nsections, secptr, expptr;
6901#     unsigned long name_rvas, nexp;
6902#     unsigned char *expdata, *erva;
6903#     char *filename, *dll_name;
6904#
6905#     filename = argv[1];
6906#
6907#     dll = open(filename, O_RDONLY|O_BINARY);
6908#     if (dll < 1)
6909# 	return 1;
6910#
6911#     dll_name = filename;
6912#
6913#     for (i=0; filename[i]; i++)
6914# 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
6915# 	    dll_name = filename + i +1;
6916#
6917#     pe_header_offset = pe_get32 (dll, 0x3c);
6918#     opthdr_ofs = pe_header_offset + 4 + 20;
6919#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
6920#
6921#     if (num_entries < 1) /* no exports */
6922# 	return 1;
6923#
6924#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
6925#     export_size = pe_get32 (dll, opthdr_ofs + 100);
6926#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6927#     secptr = (pe_header_offset + 4 + 20 +
6928# 	      pe_get16 (dll, pe_header_offset + 4 + 16));
6929#
6930#     expptr = 0;
6931#     for (i = 0; i < nsections; i++)
6932#     {
6933# 	char sname[8];
6934# 	unsigned long secptr1 = secptr + 40 * i;
6935# 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6936# 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6937# 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6938# 	lseek(dll, secptr1, SEEK_SET);
6939# 	read(dll, sname, 8);
6940# 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
6941# 	{
6942# 	    expptr = fptr + (export_rva - vaddr);
6943# 	    if (export_rva + export_size > vaddr + vsize)
6944# 		export_size = vsize - (export_rva - vaddr);
6945# 	    break;
6946# 	}
6947#     }
6948#
6949#     expdata = (unsigned char*)malloc(export_size);
6950#     lseek (dll, expptr, SEEK_SET);
6951#     read (dll, expdata, export_size);
6952#     erva = expdata - export_rva;
6953#
6954#     nexp = pe_as32 (expdata+24);
6955#     name_rvas = pe_as32 (expdata+32);
6956#
6957#     printf ("EXPORTS\n");
6958#     for (i = 0; i<nexp; i++)
6959#     {
6960# 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6961# 	printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6962#     }
6963#
6964#     return 0;
6965# }
6966# /* impgen.c ends here */
6967
6968EOF
6969    ;;
6970  esac
6971
6972  # We use sed instead of cat because bash on DJGPP gets confused if
6973  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
6974  # text mode, it properly converts lines to CR/LF.  This bash problem
6975  # is reportedly fixed, but why not run on old versions too?
6976  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
6977
6978  mv -f "${ofile}T" "$ofile" || \
6979    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6980  chmod +x "$ofile"
6981fi
6982##
6983## END FIXME
6984
6985
6986
6987
6988
6989# This can be used to rebuild libtool when needed
6990LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6991
6992# Always use our own libtool.
6993LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6994
6995# Prevent multiple expansion
6996
6997
6998echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6999echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7000if test "${ac_cv_c_const+set}" = set; then
7001  echo $ECHO_N "(cached) $ECHO_C" >&6
7002else
7003  cat >conftest.$ac_ext <<_ACEOF
7004#line $LINENO "configure"
7005#include "confdefs.h"
7006
7007int
7008main ()
7009{
7010/* FIXME: Include the comments suggested by Paul. */
7011#ifndef __cplusplus
7012  /* Ultrix mips cc rejects this.  */
7013  typedef int charset[2];
7014  const charset x;
7015  /* SunOS 4.1.1 cc rejects this.  */
7016  char const *const *ccp;
7017  char **p;
7018  /* NEC SVR4.0.2 mips cc rejects this.  */
7019  struct point {int x, y;};
7020  static struct point const zero = {0,0};
7021  /* AIX XL C 1.02.0.0 rejects this.
7022     It does not let you subtract one const X* pointer from another in
7023     an arm of an if-expression whose if-part is not a constant
7024     expression */
7025  const char *g = "string";
7026  ccp = &g + (g ? g-g : 0);
7027  /* HPUX 7.0 cc rejects these. */
7028  ++ccp;
7029  p = (char**) ccp;
7030  ccp = (char const *const *) p;
7031  { /* SCO 3.2v4 cc rejects this.  */
7032    char *t;
7033    char const *s = 0 ? (char *) 0 : (char const *) 0;
7034
7035    *t++ = 0;
7036  }
7037  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7038    int x[] = {25, 17};
7039    const int *foo = &x[0];
7040    ++foo;
7041  }
7042  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7043    typedef const int *iptr;
7044    iptr p = 0;
7045    ++p;
7046  }
7047  { /* AIX XL C 1.02.0.0 rejects this saying
7048       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7049    struct s { int j; const int *ap[3]; };
7050    struct s *b; b->j = 5;
7051  }
7052  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7053    const int foo = 10;
7054  }
7055#endif
7056
7057  ;
7058  return 0;
7059}
7060_ACEOF
7061rm -f conftest.$ac_objext
7062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7063  (eval $ac_compile) 2>&5
7064  ac_status=$?
7065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066  (exit $ac_status); } &&
7067         { ac_try='test -s conftest.$ac_objext'
7068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069  (eval $ac_try) 2>&5
7070  ac_status=$?
7071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072  (exit $ac_status); }; }; then
7073  ac_cv_c_const=yes
7074else
7075  echo "$as_me: failed program was:" >&5
7076cat conftest.$ac_ext >&5
7077ac_cv_c_const=no
7078fi
7079rm -f conftest.$ac_objext conftest.$ac_ext
7080fi
7081echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7082echo "${ECHO_T}$ac_cv_c_const" >&6
7083if test $ac_cv_c_const = no; then
7084
7085cat >>confdefs.h <<\_ACEOF
7086#define const
7087_ACEOF
7088
7089fi
7090
7091
7092
7093
7094
7095
7096
7097
7098for ac_header in stdlib.h string.h sys/file.h unistd.h fcntl.h sys/types.h memory.y
7099do
7100as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7101if eval "test \"\${$as_ac_Header+set}\" = set"; then
7102  echo "$as_me:$LINENO: checking for $ac_header" >&5
7103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7104if eval "test \"\${$as_ac_Header+set}\" = set"; then
7105  echo $ECHO_N "(cached) $ECHO_C" >&6
7106fi
7107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7109else
7110  # Is the header compilable?
7111echo "$as_me:$LINENO: checking $ac_header usability" >&5
7112echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7113cat >conftest.$ac_ext <<_ACEOF
7114#line $LINENO "configure"
7115#include "confdefs.h"
7116$ac_includes_default
7117#include <$ac_header>
7118_ACEOF
7119rm -f conftest.$ac_objext
7120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7121  (eval $ac_compile) 2>&5
7122  ac_status=$?
7123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124  (exit $ac_status); } &&
7125         { ac_try='test -s conftest.$ac_objext'
7126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127  (eval $ac_try) 2>&5
7128  ac_status=$?
7129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130  (exit $ac_status); }; }; then
7131  ac_header_compiler=yes
7132else
7133  echo "$as_me: failed program was:" >&5
7134cat conftest.$ac_ext >&5
7135ac_header_compiler=no
7136fi
7137rm -f conftest.$ac_objext conftest.$ac_ext
7138echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7139echo "${ECHO_T}$ac_header_compiler" >&6
7140
7141# Is the header present?
7142echo "$as_me:$LINENO: checking $ac_header presence" >&5
7143echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7144cat >conftest.$ac_ext <<_ACEOF
7145#line $LINENO "configure"
7146#include "confdefs.h"
7147#include <$ac_header>
7148_ACEOF
7149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7150  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7151  ac_status=$?
7152  grep -v '^ *+' conftest.er1 >conftest.err
7153  rm -f conftest.er1
7154  cat conftest.err >&5
7155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156  (exit $ac_status); } >/dev/null; then
7157  if test -s conftest.err; then
7158    ac_cpp_err=$ac_c_preproc_warn_flag
7159  else
7160    ac_cpp_err=
7161  fi
7162else
7163  ac_cpp_err=yes
7164fi
7165if test -z "$ac_cpp_err"; then
7166  ac_header_preproc=yes
7167else
7168  echo "$as_me: failed program was:" >&5
7169  cat conftest.$ac_ext >&5
7170  ac_header_preproc=no
7171fi
7172rm -f conftest.err conftest.$ac_ext
7173echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7174echo "${ECHO_T}$ac_header_preproc" >&6
7175
7176# So?  What about this header?
7177case $ac_header_compiler:$ac_header_preproc in
7178  yes:no )
7179    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7180echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7181    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7182echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7183  no:yes )
7184    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7185echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7186    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7187echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7188    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7189echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7190esac
7191echo "$as_me:$LINENO: checking for $ac_header" >&5
7192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7193if eval "test \"\${$as_ac_Header+set}\" = set"; then
7194  echo $ECHO_N "(cached) $ECHO_C" >&6
7195else
7196  eval "$as_ac_Header=$ac_header_preproc"
7197fi
7198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7199echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7200
7201fi
7202if test `eval echo '${'$as_ac_Header'}'` = yes; then
7203  cat >>confdefs.h <<_ACEOF
7204#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7205_ACEOF
7206
7207fi
7208
7209done
7210
7211
7212echo "$as_me:$LINENO: checking for main in -ldbm" >&5
7213echo $ECHO_N "checking for main in -ldbm... $ECHO_C" >&6
7214if test "${ac_cv_lib_dbm_main+set}" = set; then
7215  echo $ECHO_N "(cached) $ECHO_C" >&6
7216else
7217  ac_check_lib_save_LIBS=$LIBS
7218LIBS="-ldbm  $LIBS"
7219cat >conftest.$ac_ext <<_ACEOF
7220#line $LINENO "configure"
7221#include "confdefs.h"
7222
7223
7224int
7225main ()
7226{
7227main ();
7228  ;
7229  return 0;
7230}
7231_ACEOF
7232rm -f conftest.$ac_objext conftest$ac_exeext
7233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7234  (eval $ac_link) 2>&5
7235  ac_status=$?
7236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237  (exit $ac_status); } &&
7238         { ac_try='test -s conftest$ac_exeext'
7239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240  (eval $ac_try) 2>&5
7241  ac_status=$?
7242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243  (exit $ac_status); }; }; then
7244  ac_cv_lib_dbm_main=yes
7245else
7246  echo "$as_me: failed program was:" >&5
7247cat conftest.$ac_ext >&5
7248ac_cv_lib_dbm_main=no
7249fi
7250rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7251LIBS=$ac_check_lib_save_LIBS
7252fi
7253echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_main" >&5
7254echo "${ECHO_T}$ac_cv_lib_dbm_main" >&6
7255if test $ac_cv_lib_dbm_main = yes; then
7256  cat >>confdefs.h <<_ACEOF
7257#define HAVE_LIBDBM 1
7258_ACEOF
7259
7260  LIBS="-ldbm $LIBS"
7261
7262fi
7263
7264
7265echo "$as_me:$LINENO: checking for main in -lndbm" >&5
7266echo $ECHO_N "checking for main in -lndbm... $ECHO_C" >&6
7267if test "${ac_cv_lib_ndbm_main+set}" = set; then
7268  echo $ECHO_N "(cached) $ECHO_C" >&6
7269else
7270  ac_check_lib_save_LIBS=$LIBS
7271LIBS="-lndbm  $LIBS"
7272cat >conftest.$ac_ext <<_ACEOF
7273#line $LINENO "configure"
7274#include "confdefs.h"
7275
7276
7277int
7278main ()
7279{
7280main ();
7281  ;
7282  return 0;
7283}
7284_ACEOF
7285rm -f conftest.$ac_objext conftest$ac_exeext
7286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7287  (eval $ac_link) 2>&5
7288  ac_status=$?
7289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290  (exit $ac_status); } &&
7291         { ac_try='test -s conftest$ac_exeext'
7292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293  (eval $ac_try) 2>&5
7294  ac_status=$?
7295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296  (exit $ac_status); }; }; then
7297  ac_cv_lib_ndbm_main=yes
7298else
7299  echo "$as_me: failed program was:" >&5
7300cat conftest.$ac_ext >&5
7301ac_cv_lib_ndbm_main=no
7302fi
7303rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7304LIBS=$ac_check_lib_save_LIBS
7305fi
7306echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_main" >&5
7307echo "${ECHO_T}$ac_cv_lib_ndbm_main" >&6
7308if test $ac_cv_lib_ndbm_main = yes; then
7309  cat >>confdefs.h <<_ACEOF
7310#define HAVE_LIBNDBM 1
7311_ACEOF
7312
7313  LIBS="-lndbm $LIBS"
7314
7315fi
7316
7317
7318
7319
7320
7321
7322for ac_func in rename ftruncate flock bcopy fsync
7323do
7324as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7325echo "$as_me:$LINENO: checking for $ac_func" >&5
7326echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7327if eval "test \"\${$as_ac_var+set}\" = set"; then
7328  echo $ECHO_N "(cached) $ECHO_C" >&6
7329else
7330  cat >conftest.$ac_ext <<_ACEOF
7331#line $LINENO "configure"
7332#include "confdefs.h"
7333/* System header to define __stub macros and hopefully few prototypes,
7334    which can conflict with char $ac_func (); below.  */
7335#include <assert.h>
7336/* Override any gcc2 internal prototype to avoid an error.  */
7337#ifdef __cplusplus
7338extern "C"
7339#endif
7340/* We use char because int might match the return type of a gcc2
7341   builtin and then its argument prototype would still apply.  */
7342char $ac_func ();
7343char (*f) ();
7344
7345int
7346main ()
7347{
7348/* The GNU C library defines this for functions which it implements
7349    to always fail with ENOSYS.  Some functions are actually named
7350    something starting with __ and the normal name is an alias.  */
7351#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7352choke me
7353#else
7354f = $ac_func;
7355#endif
7356
7357  ;
7358  return 0;
7359}
7360_ACEOF
7361rm -f conftest.$ac_objext conftest$ac_exeext
7362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7363  (eval $ac_link) 2>&5
7364  ac_status=$?
7365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366  (exit $ac_status); } &&
7367         { ac_try='test -s conftest$ac_exeext'
7368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369  (eval $ac_try) 2>&5
7370  ac_status=$?
7371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372  (exit $ac_status); }; }; then
7373  eval "$as_ac_var=yes"
7374else
7375  echo "$as_me: failed program was:" >&5
7376cat conftest.$ac_ext >&5
7377eval "$as_ac_var=no"
7378fi
7379rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7380fi
7381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7382echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7383if test `eval echo '${'$as_ac_var'}'` = yes; then
7384  cat >>confdefs.h <<_ACEOF
7385#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7386_ACEOF
7387
7388fi
7389done
7390
7391
7392for ac_func in getopt
7393do
7394as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7395echo "$as_me:$LINENO: checking for $ac_func" >&5
7396echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7397if eval "test \"\${$as_ac_var+set}\" = set"; then
7398  echo $ECHO_N "(cached) $ECHO_C" >&6
7399else
7400  cat >conftest.$ac_ext <<_ACEOF
7401#line $LINENO "configure"
7402#include "confdefs.h"
7403/* System header to define __stub macros and hopefully few prototypes,
7404    which can conflict with char $ac_func (); below.  */
7405#include <assert.h>
7406/* Override any gcc2 internal prototype to avoid an error.  */
7407#ifdef __cplusplus
7408extern "C"
7409#endif
7410/* We use char because int might match the return type of a gcc2
7411   builtin and then its argument prototype would still apply.  */
7412char $ac_func ();
7413char (*f) ();
7414
7415int
7416main ()
7417{
7418/* The GNU C library defines this for functions which it implements
7419    to always fail with ENOSYS.  Some functions are actually named
7420    something starting with __ and the normal name is an alias.  */
7421#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7422choke me
7423#else
7424f = $ac_func;
7425#endif
7426
7427  ;
7428  return 0;
7429}
7430_ACEOF
7431rm -f conftest.$ac_objext conftest$ac_exeext
7432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7433  (eval $ac_link) 2>&5
7434  ac_status=$?
7435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436  (exit $ac_status); } &&
7437         { ac_try='test -s conftest$ac_exeext'
7438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7439  (eval $ac_try) 2>&5
7440  ac_status=$?
7441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442  (exit $ac_status); }; }; then
7443  eval "$as_ac_var=yes"
7444else
7445  echo "$as_me: failed program was:" >&5
7446cat conftest.$ac_ext >&5
7447eval "$as_ac_var=no"
7448fi
7449rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7450fi
7451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7452echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7453if test `eval echo '${'$as_ac_var'}'` = yes; then
7454  cat >>confdefs.h <<_ACEOF
7455#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7456_ACEOF
7457
7458else
7459  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
7460fi
7461done
7462
7463
7464echo "$as_me:$LINENO: checking for off_t" >&5
7465echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7466if test "${ac_cv_type_off_t+set}" = set; then
7467  echo $ECHO_N "(cached) $ECHO_C" >&6
7468else
7469  cat >conftest.$ac_ext <<_ACEOF
7470#line $LINENO "configure"
7471#include "confdefs.h"
7472$ac_includes_default
7473int
7474main ()
7475{
7476if ((off_t *) 0)
7477  return 0;
7478if (sizeof (off_t))
7479  return 0;
7480  ;
7481  return 0;
7482}
7483_ACEOF
7484rm -f conftest.$ac_objext
7485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7486  (eval $ac_compile) 2>&5
7487  ac_status=$?
7488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489  (exit $ac_status); } &&
7490         { ac_try='test -s conftest.$ac_objext'
7491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492  (eval $ac_try) 2>&5
7493  ac_status=$?
7494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495  (exit $ac_status); }; }; then
7496  ac_cv_type_off_t=yes
7497else
7498  echo "$as_me: failed program was:" >&5
7499cat conftest.$ac_ext >&5
7500ac_cv_type_off_t=no
7501fi
7502rm -f conftest.$ac_objext conftest.$ac_ext
7503fi
7504echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7505echo "${ECHO_T}$ac_cv_type_off_t" >&6
7506if test $ac_cv_type_off_t = yes; then
7507  :
7508else
7509
7510cat >>confdefs.h <<_ACEOF
7511#define off_t long
7512_ACEOF
7513
7514fi
7515
7516echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
7517echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
7518if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
7519  echo $ECHO_N "(cached) $ECHO_C" >&6
7520else
7521  cat >conftest.$ac_ext <<_ACEOF
7522#line $LINENO "configure"
7523#include "confdefs.h"
7524$ac_includes_default
7525int
7526main ()
7527{
7528static struct stat ac_aggr;
7529if (ac_aggr.st_blksize)
7530return 0;
7531  ;
7532  return 0;
7533}
7534_ACEOF
7535rm -f conftest.$ac_objext
7536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7537  (eval $ac_compile) 2>&5
7538  ac_status=$?
7539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540  (exit $ac_status); } &&
7541         { ac_try='test -s conftest.$ac_objext'
7542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543  (eval $ac_try) 2>&5
7544  ac_status=$?
7545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546  (exit $ac_status); }; }; then
7547  ac_cv_member_struct_stat_st_blksize=yes
7548else
7549  echo "$as_me: failed program was:" >&5
7550cat conftest.$ac_ext >&5
7551cat >conftest.$ac_ext <<_ACEOF
7552#line $LINENO "configure"
7553#include "confdefs.h"
7554$ac_includes_default
7555int
7556main ()
7557{
7558static struct stat ac_aggr;
7559if (sizeof ac_aggr.st_blksize)
7560return 0;
7561  ;
7562  return 0;
7563}
7564_ACEOF
7565rm -f conftest.$ac_objext
7566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7567  (eval $ac_compile) 2>&5
7568  ac_status=$?
7569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570  (exit $ac_status); } &&
7571         { ac_try='test -s conftest.$ac_objext'
7572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573  (eval $ac_try) 2>&5
7574  ac_status=$?
7575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576  (exit $ac_status); }; }; then
7577  ac_cv_member_struct_stat_st_blksize=yes
7578else
7579  echo "$as_me: failed program was:" >&5
7580cat conftest.$ac_ext >&5
7581ac_cv_member_struct_stat_st_blksize=no
7582fi
7583rm -f conftest.$ac_objext conftest.$ac_ext
7584fi
7585rm -f conftest.$ac_objext conftest.$ac_ext
7586fi
7587echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
7588echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
7589if test $ac_cv_member_struct_stat_st_blksize = yes; then
7590
7591cat >>confdefs.h <<_ACEOF
7592#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7593_ACEOF
7594
7595
7596fi
7597
7598          ac_config_files="$ac_config_files Makefile"
7599
7600cat >confcache <<\_ACEOF
7601# This file is a shell script that caches the results of configure
7602# tests run on this system so they can be shared between configure
7603# scripts and configure runs, see configure's option --config-cache.
7604# It is not useful on other systems.  If it contains results you don't
7605# want to keep, you may remove or edit it.
7606#
7607# config.status only pays attention to the cache file if you give it
7608# the --recheck option to rerun configure.
7609#
7610# `ac_cv_env_foo' variables (set or unset) will be overridden when
7611# loading this file, other *unset* `ac_cv_foo' will be assigned the
7612# following values.
7613
7614_ACEOF
7615
7616# The following way of writing the cache mishandles newlines in values,
7617# but we know of no workaround that is simple, portable, and efficient.
7618# So, don't put newlines in cache variables' values.
7619# Ultrix sh set writes to stderr and can't be redirected directly,
7620# and sets the high bit in the cache file unless we assign to the vars.
7621{
7622  (set) 2>&1 |
7623    case `(ac_space=' '; set | grep ac_space) 2>&1` in
7624    *ac_space=\ *)
7625      # `set' does not quote correctly, so add quotes (double-quote
7626      # substitution turns \\\\ into \\, and sed turns \\ into \).
7627      sed -n \
7628        "s/'/'\\\\''/g;
7629    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7630      ;;
7631    *)
7632      # `set' quotes correctly as required by POSIX, so do not add quotes.
7633      sed -n \
7634        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7635      ;;
7636    esac;
7637} |
7638  sed '
7639     t clear
7640     : clear
7641     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7642     t end
7643     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7644     : end' >>confcache
7645if cmp -s $cache_file confcache; then :; else
7646  if test -w $cache_file; then
7647    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7648    cat confcache >$cache_file
7649  else
7650    echo "not updating unwritable cache $cache_file"
7651  fi
7652fi
7653rm -f confcache
7654
7655test "x$prefix" = xNONE && prefix=$ac_default_prefix
7656# Let make expand exec_prefix.
7657test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7658
7659# VPATH may cause trouble with some makes, so we remove $(srcdir),
7660# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7661# trailing colons and then remove the whole line if VPATH becomes empty
7662# (actually we leave an empty line to preserve line numbers).
7663if test "x$srcdir" = x.; then
7664  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
7665s/:*\$(srcdir):*/:/;
7666s/:*\${srcdir}:*/:/;
7667s/:*@srcdir@:*/:/;
7668s/^\([^=]*=[ 	]*\):*/\1/;
7669s/:*$//;
7670s/^[^=]*=[ 	]*$//;
7671}'
7672fi
7673
7674DEFS=-DHAVE_CONFIG_H
7675
7676ac_libobjs=
7677ac_ltlibobjs=
7678for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7679  # 1. Remove the extension, and $U if already installed.
7680  ac_i=`echo "$ac_i" |
7681         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7682  # 2. Add them.
7683  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7684  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7685done
7686LIBOBJS=$ac_libobjs
7687
7688LTLIBOBJS=$ac_ltlibobjs
7689
7690
7691
7692: ${CONFIG_STATUS=./config.status}
7693ac_clean_files_save=$ac_clean_files
7694ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7695{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7696echo "$as_me: creating $CONFIG_STATUS" >&6;}
7697cat >$CONFIG_STATUS <<_ACEOF
7698#! $SHELL
7699# Generated by $as_me.
7700# Run this file to recreate the current configuration.
7701# Compiler output produced by configure, useful for debugging
7702# configure, is in config.log if it exists.
7703
7704debug=false
7705SHELL=\${CONFIG_SHELL-$SHELL}
7706_ACEOF
7707
7708cat >>$CONFIG_STATUS <<\_ACEOF
7709## --------------------- ##
7710## M4sh Initialization.  ##
7711## --------------------- ##
7712
7713# Be Bourne compatible
7714if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7715  emulate sh
7716  NULLCMD=:
7717  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7718  # is contrary to our usage.  Disable this feature.
7719  alias -g '${1+"$@"}'='"$@"'
7720elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7721  set -o posix
7722fi
7723
7724# Support unset when possible.
7725if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7726  as_unset=unset
7727else
7728  as_unset=false
7729fi
7730
7731
7732# Work around bugs in pre-3.0 UWIN ksh.
7733$as_unset ENV MAIL MAILPATH
7734PS1='$ '
7735PS2='> '
7736PS4='+ '
7737
7738# NLS nuisances.
7739for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
7740do
7741  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7742    eval $as_var=C; export $as_var
7743  else
7744    $as_unset $as_var
7745  fi
7746done
7747
7748# Required to use basename.
7749if expr a : '\(a\)' >/dev/null 2>&1; then
7750  as_expr=expr
7751else
7752  as_expr=false
7753fi
7754
7755if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7756  as_basename=basename
7757else
7758  as_basename=false
7759fi
7760
7761
7762# Name of the executable.
7763as_me=`$as_basename "$0" ||
7764$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7765	 X"$0" : 'X\(//\)$' \| \
7766	 X"$0" : 'X\(/\)$' \| \
7767	 .     : '\(.\)' 2>/dev/null ||
7768echo X/"$0" |
7769    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7770  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
7771  	  /^X\/\(\/\).*/{ s//\1/; q; }
7772  	  s/.*/./; q'`
7773
7774
7775# PATH needs CR, and LINENO needs CR and PATH.
7776# Avoid depending upon Character Ranges.
7777as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7778as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7779as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7780as_cr_digits='0123456789'
7781as_cr_alnum=$as_cr_Letters$as_cr_digits
7782
7783# The user is always right.
7784if test "${PATH_SEPARATOR+set}" != set; then
7785  echo "#! /bin/sh" >conftest.sh
7786  echo  "exit 0"   >>conftest.sh
7787  chmod +x conftest.sh
7788  if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
7789    PATH_SEPARATOR=';'
7790  else
7791    PATH_SEPARATOR=:
7792  fi
7793  rm -f conftest.sh
7794fi
7795
7796
7797  as_lineno_1=$LINENO
7798  as_lineno_2=$LINENO
7799  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7800  test "x$as_lineno_1" != "x$as_lineno_2" &&
7801  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7802  # Find who we are.  Look in the path if we contain no path at all
7803  # relative or not.
7804  case $0 in
7805    *[\\/]* ) as_myself=$0 ;;
7806    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807for as_dir in $PATH
7808do
7809  IFS=$as_save_IFS
7810  test -z "$as_dir" && as_dir=.
7811  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7812done
7813
7814       ;;
7815  esac
7816  # We did not find ourselves, most probably we were run as `sh COMMAND'
7817  # in which case we are not to be found in the path.
7818  if test "x$as_myself" = x; then
7819    as_myself=$0
7820  fi
7821  if test ! -f "$as_myself"; then
7822    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7823echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7824   { (exit 1); exit 1; }; }
7825  fi
7826  case $CONFIG_SHELL in
7827  '')
7828    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7830do
7831  IFS=$as_save_IFS
7832  test -z "$as_dir" && as_dir=.
7833  for as_base in sh bash ksh sh5; do
7834	 case $as_dir in
7835	 /*)
7836	   if ("$as_dir/$as_base" -c '
7837  as_lineno_1=$LINENO
7838  as_lineno_2=$LINENO
7839  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7840  test "x$as_lineno_1" != "x$as_lineno_2" &&
7841  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7842	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7843	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7844	     CONFIG_SHELL=$as_dir/$as_base
7845	     export CONFIG_SHELL
7846	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7847	   fi;;
7848	 esac
7849       done
7850done
7851;;
7852  esac
7853
7854  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7855  # uniformly replaced by the line number.  The first 'sed' inserts a
7856  # line-number line before each line; the second 'sed' does the real
7857  # work.  The second script uses 'N' to pair each line-number line
7858  # with the numbered line, and appends trailing '-' during
7859  # substitution so that $LINENO is not a special case at line end.
7860  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7861  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7862  sed '=' <$as_myself |
7863    sed '
7864      N
7865      s,$,-,
7866      : loop
7867      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7868      t loop
7869      s,-$,,
7870      s,^['$as_cr_digits']*\n,,
7871    ' >$as_me.lineno &&
7872  chmod +x $as_me.lineno ||
7873    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7874echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7875   { (exit 1); exit 1; }; }
7876
7877  # Don't try to exec as it changes $[0], causing all sort of problems
7878  # (the dirname of $[0] is not the place where we might find the
7879  # original and so on.  Autoconf is especially sensible to this).
7880  . ./$as_me.lineno
7881  # Exit status is that of the last command.
7882  exit
7883}
7884
7885
7886case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7887  *c*,-n*) ECHO_N= ECHO_C='
7888' ECHO_T='	' ;;
7889  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7890  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7891esac
7892
7893if expr a : '\(a\)' >/dev/null 2>&1; then
7894  as_expr=expr
7895else
7896  as_expr=false
7897fi
7898
7899rm -f conf$$ conf$$.exe conf$$.file
7900echo >conf$$.file
7901if ln -s conf$$.file conf$$ 2>/dev/null; then
7902  # We could just check for DJGPP; but this test a) works b) is more generic
7903  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7904  if test -f conf$$.exe; then
7905    # Don't use ln at all; we don't have any links
7906    as_ln_s='cp -p'
7907  else
7908    as_ln_s='ln -s'
7909  fi
7910elif ln conf$$.file conf$$ 2>/dev/null; then
7911  as_ln_s=ln
7912else
7913  as_ln_s='cp -p'
7914fi
7915rm -f conf$$ conf$$.exe conf$$.file
7916
7917if mkdir -p . 2>/dev/null; then
7918  as_mkdir_p=:
7919else
7920  as_mkdir_p=false
7921fi
7922
7923as_executable_p="test -f"
7924
7925# Sed expression to map a string onto a valid CPP name.
7926as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7927
7928# Sed expression to map a string onto a valid variable name.
7929as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7930
7931
7932# IFS
7933# We need space, tab and new line, in precisely that order.
7934as_nl='
7935'
7936IFS=" 	$as_nl"
7937
7938# CDPATH.
7939$as_unset CDPATH
7940
7941exec 6>&1
7942
7943# Open the log real soon, to keep \$[0] and so on meaningful, and to
7944# report actual input values of CONFIG_FILES etc. instead of their
7945# values after options handling.  Logging --version etc. is OK.
7946exec 5>>config.log
7947{
7948  echo
7949  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7950## Running $as_me. ##
7951_ASBOX
7952} >&5
7953cat >&5 <<_CSEOF
7954
7955This file was extended by gdbm $as_me 1.8.3, which was
7956generated by GNU Autoconf 2.54.  Invocation command line was
7957
7958  CONFIG_FILES    = $CONFIG_FILES
7959  CONFIG_HEADERS  = $CONFIG_HEADERS
7960  CONFIG_LINKS    = $CONFIG_LINKS
7961  CONFIG_COMMANDS = $CONFIG_COMMANDS
7962  $ $0 $@
7963
7964_CSEOF
7965echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7966echo >&5
7967_ACEOF
7968
7969# Files that config.status was made for.
7970if test -n "$ac_config_files"; then
7971  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7972fi
7973
7974if test -n "$ac_config_headers"; then
7975  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7976fi
7977
7978if test -n "$ac_config_links"; then
7979  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7980fi
7981
7982if test -n "$ac_config_commands"; then
7983  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7984fi
7985
7986cat >>$CONFIG_STATUS <<\_ACEOF
7987
7988ac_cs_usage="\
7989\`$as_me' instantiates files from templates according to the
7990current configuration.
7991
7992Usage: $0 [OPTIONS] [FILE]...
7993
7994  -h, --help       print this help, then exit
7995  -V, --version    print version number, then exit
7996  -d, --debug      don't remove temporary files
7997      --recheck    update $as_me by reconfiguring in the same conditions
7998  --file=FILE[:TEMPLATE]
7999                   instantiate the configuration file FILE
8000  --header=FILE[:TEMPLATE]
8001                   instantiate the configuration header FILE
8002
8003Configuration files:
8004$config_files
8005
8006Configuration headers:
8007$config_headers
8008
8009Report bugs to <bug-autoconf@gnu.org>."
8010_ACEOF
8011
8012cat >>$CONFIG_STATUS <<_ACEOF
8013ac_cs_version="\\
8014gdbm config.status 1.8.3
8015configured by $0, generated by GNU Autoconf 2.54,
8016  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8017
8018Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8019Free Software Foundation, Inc.
8020This config.status script is free software; the Free Software Foundation
8021gives unlimited permission to copy, distribute and modify it."
8022srcdir=$srcdir
8023INSTALL="$INSTALL"
8024_ACEOF
8025
8026cat >>$CONFIG_STATUS <<\_ACEOF
8027# If no file are specified by the user, then we need to provide default
8028# value.  By we need to know if files were specified by the user.
8029ac_need_defaults=:
8030while test $# != 0
8031do
8032  case $1 in
8033  --*=*)
8034    ac_option=`expr "x$1" : 'x\([^=]*\)='`
8035    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8036    ac_shift=:
8037    ;;
8038  -*)
8039    ac_option=$1
8040    ac_optarg=$2
8041    ac_shift=shift
8042    ;;
8043  *) # This is not an option, so the user has probably given explicit
8044     # arguments.
8045     ac_option=$1
8046     ac_need_defaults=false;;
8047  esac
8048
8049  case $ac_option in
8050  # Handling of the options.
8051_ACEOF
8052cat >>$CONFIG_STATUS <<_ACEOF
8053  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8054    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8055    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8056_ACEOF
8057cat >>$CONFIG_STATUS <<\_ACEOF
8058  --version | --vers* | -V )
8059    echo "$ac_cs_version"; exit 0 ;;
8060  --he | --h)
8061    # Conflict between --help and --header
8062    { { echo "$as_me:$LINENO: error: ambiguous option: $1
8063Try \`$0 --help' for more information." >&5
8064echo "$as_me: error: ambiguous option: $1
8065Try \`$0 --help' for more information." >&2;}
8066   { (exit 1); exit 1; }; };;
8067  --help | --hel | -h )
8068    echo "$ac_cs_usage"; exit 0 ;;
8069  --debug | --d* | -d )
8070    debug=: ;;
8071  --file | --fil | --fi | --f )
8072    $ac_shift
8073    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8074    ac_need_defaults=false;;
8075  --header | --heade | --head | --hea )
8076    $ac_shift
8077    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8078    ac_need_defaults=false;;
8079
8080  # This is an error.
8081  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8082Try \`$0 --help' for more information." >&5
8083echo "$as_me: error: unrecognized option: $1
8084Try \`$0 --help' for more information." >&2;}
8085   { (exit 1); exit 1; }; } ;;
8086
8087  *) ac_config_targets="$ac_config_targets $1" ;;
8088
8089  esac
8090  shift
8091done
8092
8093_ACEOF
8094
8095
8096
8097
8098
8099cat >>$CONFIG_STATUS <<\_ACEOF
8100for ac_config_target in $ac_config_targets
8101do
8102  case "$ac_config_target" in
8103  # Handling of arguments.
8104  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8105  "autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS autoconf.h" ;;
8106  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8107echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8108   { (exit 1); exit 1; }; };;
8109  esac
8110done
8111
8112# If the user did not use the arguments to specify the items to instantiate,
8113# then the envvar interface is used.  Set only those that are not.
8114# We use the long form for the default assignment because of an extremely
8115# bizarre bug on SunOS 4.1.3.
8116if $ac_need_defaults; then
8117  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8118  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8119fi
8120
8121# Create a temporary directory, and hook for its removal unless debugging.
8122$debug ||
8123{
8124  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8125  trap '{ (exit 1); exit 1; }' 1 2 13 15
8126}
8127
8128# Create a (secure) tmp directory for tmp files.
8129: ${TMPDIR=/tmp}
8130{
8131  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8132  test -n "$tmp" && test -d "$tmp"
8133}  ||
8134{
8135  tmp=$TMPDIR/cs$$-$RANDOM
8136  (umask 077 && mkdir $tmp)
8137} ||
8138{
8139   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8140   { (exit 1); exit 1; }
8141}
8142
8143_ACEOF
8144
8145cat >>$CONFIG_STATUS <<_ACEOF
8146
8147#
8148# CONFIG_FILES section.
8149#
8150
8151# No need to generate the scripts if there are no CONFIG_FILES.
8152# This happens for instance when ./config.status config.h
8153if test -n "\$CONFIG_FILES"; then
8154  # Protect against being on the right side of a sed subst in config.status.
8155  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8156   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8157s,@SHELL@,$SHELL,;t t
8158s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8159s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8160s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8161s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8162s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8163s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8164s,@exec_prefix@,$exec_prefix,;t t
8165s,@prefix@,$prefix,;t t
8166s,@program_transform_name@,$program_transform_name,;t t
8167s,@bindir@,$bindir,;t t
8168s,@sbindir@,$sbindir,;t t
8169s,@libexecdir@,$libexecdir,;t t
8170s,@datadir@,$datadir,;t t
8171s,@sysconfdir@,$sysconfdir,;t t
8172s,@sharedstatedir@,$sharedstatedir,;t t
8173s,@localstatedir@,$localstatedir,;t t
8174s,@libdir@,$libdir,;t t
8175s,@includedir@,$includedir,;t t
8176s,@oldincludedir@,$oldincludedir,;t t
8177s,@infodir@,$infodir,;t t
8178s,@mandir@,$mandir,;t t
8179s,@build_alias@,$build_alias,;t t
8180s,@host_alias@,$host_alias,;t t
8181s,@target_alias@,$target_alias,;t t
8182s,@DEFS@,$DEFS,;t t
8183s,@ECHO_C@,$ECHO_C,;t t
8184s,@ECHO_N@,$ECHO_N,;t t
8185s,@ECHO_T@,$ECHO_T,;t t
8186s,@LIBS@,$LIBS,;t t
8187s,@CC@,$CC,;t t
8188s,@CFLAGS@,$CFLAGS,;t t
8189s,@LDFLAGS@,$LDFLAGS,;t t
8190s,@CPPFLAGS@,$CPPFLAGS,;t t
8191s,@ac_ct_CC@,$ac_ct_CC,;t t
8192s,@EXEEXT@,$EXEEXT,;t t
8193s,@OBJEXT@,$OBJEXT,;t t
8194s,@CPP@,$CPP,;t t
8195s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8196s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8197s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8198s,@build@,$build,;t t
8199s,@build_cpu@,$build_cpu,;t t
8200s,@build_vendor@,$build_vendor,;t t
8201s,@build_os@,$build_os,;t t
8202s,@host@,$host,;t t
8203s,@host_cpu@,$host_cpu,;t t
8204s,@host_vendor@,$host_vendor,;t t
8205s,@host_os@,$host_os,;t t
8206s,@LN_S@,$LN_S,;t t
8207s,@ECHO@,$ECHO,;t t
8208s,@RANLIB@,$RANLIB,;t t
8209s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8210s,@STRIP@,$STRIP,;t t
8211s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8212s,@EGREP@,$EGREP,;t t
8213s,@LIBTOOL@,$LIBTOOL,;t t
8214s,@LIBOBJS@,$LIBOBJS,;t t
8215s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8216CEOF
8217
8218_ACEOF
8219
8220  cat >>$CONFIG_STATUS <<\_ACEOF
8221  # Split the substitutions into bite-sized pieces for seds with
8222  # small command number limits, like on Digital OSF/1 and HP-UX.
8223  ac_max_sed_lines=48
8224  ac_sed_frag=1 # Number of current file.
8225  ac_beg=1 # First line for current file.
8226  ac_end=$ac_max_sed_lines # Line after last line for current file.
8227  ac_more_lines=:
8228  ac_sed_cmds=
8229  while $ac_more_lines; do
8230    if test $ac_beg -gt 1; then
8231      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8232    else
8233      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8234    fi
8235    if test ! -s $tmp/subs.frag; then
8236      ac_more_lines=false
8237    else
8238      # The purpose of the label and of the branching condition is to
8239      # speed up the sed processing (if there are no `@' at all, there
8240      # is no need to browse any of the substitutions).
8241      # These are the two extra sed commands mentioned above.
8242      (echo ':t
8243  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8244      if test -z "$ac_sed_cmds"; then
8245  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8246      else
8247  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8248      fi
8249      ac_sed_frag=`expr $ac_sed_frag + 1`
8250      ac_beg=$ac_end
8251      ac_end=`expr $ac_end + $ac_max_sed_lines`
8252    fi
8253  done
8254  if test -z "$ac_sed_cmds"; then
8255    ac_sed_cmds=cat
8256  fi
8257fi # test -n "$CONFIG_FILES"
8258
8259_ACEOF
8260cat >>$CONFIG_STATUS <<\_ACEOF
8261for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8262  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8263  case $ac_file in
8264  - | *:- | *:-:* ) # input from stdin
8265        cat >$tmp/stdin
8266        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8267        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8268  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8269        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8270  * )   ac_file_in=$ac_file.in ;;
8271  esac
8272
8273  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8274  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8275$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8276         X"$ac_file" : 'X\(//\)[^/]' \| \
8277         X"$ac_file" : 'X\(//\)$' \| \
8278         X"$ac_file" : 'X\(/\)' \| \
8279         .     : '\(.\)' 2>/dev/null ||
8280echo X"$ac_file" |
8281    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8282  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8283  	  /^X\(\/\/\)$/{ s//\1/; q; }
8284  	  /^X\(\/\).*/{ s//\1/; q; }
8285  	  s/.*/./; q'`
8286  { if $as_mkdir_p; then
8287    mkdir -p "$ac_dir"
8288  else
8289    as_dir="$ac_dir"
8290    as_dirs=
8291    while test ! -d "$as_dir"; do
8292      as_dirs="$as_dir $as_dirs"
8293      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8295         X"$as_dir" : 'X\(//\)[^/]' \| \
8296         X"$as_dir" : 'X\(//\)$' \| \
8297         X"$as_dir" : 'X\(/\)' \| \
8298         .     : '\(.\)' 2>/dev/null ||
8299echo X"$as_dir" |
8300    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8301  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8302  	  /^X\(\/\/\)$/{ s//\1/; q; }
8303  	  /^X\(\/\).*/{ s//\1/; q; }
8304  	  s/.*/./; q'`
8305    done
8306    test ! -n "$as_dirs" || mkdir $as_dirs
8307  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8308echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8309   { (exit 1); exit 1; }; }; }
8310
8311  ac_builddir=.
8312
8313if test "$ac_dir" != .; then
8314  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8315  # A "../" for each directory in $ac_dir_suffix.
8316  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8317else
8318  ac_dir_suffix= ac_top_builddir=
8319fi
8320
8321case $srcdir in
8322  .)  # No --srcdir option.  We are building in place.
8323    ac_srcdir=.
8324    if test -z "$ac_top_builddir"; then
8325       ac_top_srcdir=.
8326    else
8327       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8328    fi ;;
8329  [\\/]* | ?:[\\/]* )  # Absolute path.
8330    ac_srcdir=$srcdir$ac_dir_suffix;
8331    ac_top_srcdir=$srcdir ;;
8332  *) # Relative path.
8333    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8334    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8335esac
8336# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8337# absolute.
8338ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8339ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8340ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8341ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8342
8343
8344  case $INSTALL in
8345  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8346  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8347  esac
8348
8349  if test x"$ac_file" != x-; then
8350    { echo "$as_me:$LINENO: creating $ac_file" >&5
8351echo "$as_me: creating $ac_file" >&6;}
8352    rm -f "$ac_file"
8353  fi
8354  # Let's still pretend it is `configure' which instantiates (i.e., don't
8355  # use $as_me), people would be surprised to read:
8356  #    /* config.h.  Generated by config.status.  */
8357  if test x"$ac_file" = x-; then
8358    configure_input=
8359  else
8360    configure_input="$ac_file.  "
8361  fi
8362  configure_input=$configure_input"Generated from `echo $ac_file_in |
8363                                     sed 's,.*/,,'` by configure."
8364
8365  # First look for the input files in the build tree, otherwise in the
8366  # src tree.
8367  ac_file_inputs=`IFS=:
8368    for f in $ac_file_in; do
8369      case $f in
8370      -) echo $tmp/stdin ;;
8371      [\\/$]*)
8372         # Absolute (can't be DOS-style, as IFS=:)
8373         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8374echo "$as_me: error: cannot find input file: $f" >&2;}
8375   { (exit 1); exit 1; }; }
8376         echo $f;;
8377      *) # Relative
8378         if test -f "$f"; then
8379           # Build tree
8380           echo $f
8381         elif test -f "$srcdir/$f"; then
8382           # Source tree
8383           echo $srcdir/$f
8384         else
8385           # /dev/null tree
8386           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8387echo "$as_me: error: cannot find input file: $f" >&2;}
8388   { (exit 1); exit 1; }; }
8389         fi;;
8390      esac
8391    done` || { (exit 1); exit 1; }
8392_ACEOF
8393cat >>$CONFIG_STATUS <<_ACEOF
8394  sed "$ac_vpsub
8395$extrasub
8396_ACEOF
8397cat >>$CONFIG_STATUS <<\_ACEOF
8398:t
8399/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8400s,@configure_input@,$configure_input,;t t
8401s,@srcdir@,$ac_srcdir,;t t
8402s,@abs_srcdir@,$ac_abs_srcdir,;t t
8403s,@top_srcdir@,$ac_top_srcdir,;t t
8404s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8405s,@builddir@,$ac_builddir,;t t
8406s,@abs_builddir@,$ac_abs_builddir,;t t
8407s,@top_builddir@,$ac_top_builddir,;t t
8408s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8409s,@INSTALL@,$ac_INSTALL,;t t
8410" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8411  rm -f $tmp/stdin
8412  if test x"$ac_file" != x-; then
8413    mv $tmp/out $ac_file
8414  else
8415    cat $tmp/out
8416    rm -f $tmp/out
8417  fi
8418
8419done
8420_ACEOF
8421cat >>$CONFIG_STATUS <<\_ACEOF
8422
8423#
8424# CONFIG_HEADER section.
8425#
8426
8427# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8428# NAME is the cpp macro being defined and VALUE is the value it is being given.
8429#
8430# ac_d sets the value in "#define NAME VALUE" lines.
8431ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
8432ac_dB='[ 	].*$,\1#\2'
8433ac_dC=' '
8434ac_dD=',;t'
8435# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8436ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
8437ac_uB='$,\1#\2define\3'
8438ac_uC=' '
8439ac_uD=',;t'
8440
8441for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8442  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8443  case $ac_file in
8444  - | *:- | *:-:* ) # input from stdin
8445        cat >$tmp/stdin
8446        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8447        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8448  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8449        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8450  * )   ac_file_in=$ac_file.in ;;
8451  esac
8452
8453  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8454echo "$as_me: creating $ac_file" >&6;}
8455
8456  # First look for the input files in the build tree, otherwise in the
8457  # src tree.
8458  ac_file_inputs=`IFS=:
8459    for f in $ac_file_in; do
8460      case $f in
8461      -) echo $tmp/stdin ;;
8462      [\\/$]*)
8463         # Absolute (can't be DOS-style, as IFS=:)
8464         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8465echo "$as_me: error: cannot find input file: $f" >&2;}
8466   { (exit 1); exit 1; }; }
8467         echo $f;;
8468      *) # Relative
8469         if test -f "$f"; then
8470           # Build tree
8471           echo $f
8472         elif test -f "$srcdir/$f"; then
8473           # Source tree
8474           echo $srcdir/$f
8475         else
8476           # /dev/null tree
8477           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8478echo "$as_me: error: cannot find input file: $f" >&2;}
8479   { (exit 1); exit 1; }; }
8480         fi;;
8481      esac
8482    done` || { (exit 1); exit 1; }
8483  # Remove the trailing spaces.
8484  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
8485
8486_ACEOF
8487
8488# Transform confdefs.h into two sed scripts, `conftest.defines' and
8489# `conftest.undefs', that substitutes the proper values into
8490# config.h.in to produce config.h.  The first handles `#define'
8491# templates, and the second `#undef' templates.
8492# And first: Protect against being on the right side of a sed subst in
8493# config.status.  Protect against being in an unquoted here document
8494# in config.status.
8495rm -f conftest.defines conftest.undefs
8496# Using a here document instead of a string reduces the quoting nightmare.
8497# Putting comments in sed scripts is not portable.
8498#
8499# `end' is used to avoid that the second main sed command (meant for
8500# 0-ary CPP macros) applies to n-ary macro definitions.
8501# See the Autoconf documentation for `clear'.
8502cat >confdef2sed.sed <<\_ACEOF
8503s/[\\&,]/\\&/g
8504s,[\\$`],\\&,g
8505t clear
8506: clear
8507s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8508t end
8509s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8510: end
8511_ACEOF
8512# If some macros were called several times there might be several times
8513# the same #defines, which is useless.  Nevertheless, we may not want to
8514# sort them, since we want the *last* AC-DEFINE to be honored.
8515uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8516sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8517rm -f confdef2sed.sed
8518
8519# This sed command replaces #undef with comments.  This is necessary, for
8520# example, in the case of _POSIX_SOURCE, which is predefined and required
8521# on some systems where configure will not decide to define it.
8522cat >>conftest.undefs <<\_ACEOF
8523s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8524_ACEOF
8525
8526# Break up conftest.defines because some shells have a limit on the size
8527# of here documents, and old seds have small limits too (100 cmds).
8528echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8529echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8530echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8531echo '  :' >>$CONFIG_STATUS
8532rm -f conftest.tail
8533while grep . conftest.defines >/dev/null
8534do
8535  # Write a limited-size here document to $tmp/defines.sed.
8536  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8537  # Speed up: don't consider the non `#define' lines.
8538  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
8539  # Work around the forget-to-reset-the-flag bug.
8540  echo 't clr' >>$CONFIG_STATUS
8541  echo ': clr' >>$CONFIG_STATUS
8542  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8543  echo 'CEOF
8544  sed -f $tmp/defines.sed $tmp/in >$tmp/out
8545  rm -f $tmp/in
8546  mv $tmp/out $tmp/in
8547' >>$CONFIG_STATUS
8548  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8549  rm -f conftest.defines
8550  mv conftest.tail conftest.defines
8551done
8552rm -f conftest.defines
8553echo '  fi # grep' >>$CONFIG_STATUS
8554echo >>$CONFIG_STATUS
8555
8556# Break up conftest.undefs because some shells have a limit on the size
8557# of here documents, and old seds have small limits too (100 cmds).
8558echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
8559rm -f conftest.tail
8560while grep . conftest.undefs >/dev/null
8561do
8562  # Write a limited-size here document to $tmp/undefs.sed.
8563  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8564  # Speed up: don't consider the non `#undef'
8565  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
8566  # Work around the forget-to-reset-the-flag bug.
8567  echo 't clr' >>$CONFIG_STATUS
8568  echo ': clr' >>$CONFIG_STATUS
8569  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8570  echo 'CEOF
8571  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8572  rm -f $tmp/in
8573  mv $tmp/out $tmp/in
8574' >>$CONFIG_STATUS
8575  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8576  rm -f conftest.undefs
8577  mv conftest.tail conftest.undefs
8578done
8579rm -f conftest.undefs
8580
8581cat >>$CONFIG_STATUS <<\_ACEOF
8582  # Let's still pretend it is `configure' which instantiates (i.e., don't
8583  # use $as_me), people would be surprised to read:
8584  #    /* config.h.  Generated by config.status.  */
8585  if test x"$ac_file" = x-; then
8586    echo "/* Generated by configure.  */" >$tmp/config.h
8587  else
8588    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8589  fi
8590  cat $tmp/in >>$tmp/config.h
8591  rm -f $tmp/in
8592  if test x"$ac_file" != x-; then
8593    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8594      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8595echo "$as_me: $ac_file is unchanged" >&6;}
8596    else
8597      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8598$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8599         X"$ac_file" : 'X\(//\)[^/]' \| \
8600         X"$ac_file" : 'X\(//\)$' \| \
8601         X"$ac_file" : 'X\(/\)' \| \
8602         .     : '\(.\)' 2>/dev/null ||
8603echo X"$ac_file" |
8604    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8605  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8606  	  /^X\(\/\/\)$/{ s//\1/; q; }
8607  	  /^X\(\/\).*/{ s//\1/; q; }
8608  	  s/.*/./; q'`
8609      { if $as_mkdir_p; then
8610    mkdir -p "$ac_dir"
8611  else
8612    as_dir="$ac_dir"
8613    as_dirs=
8614    while test ! -d "$as_dir"; do
8615      as_dirs="$as_dir $as_dirs"
8616      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8617$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8618         X"$as_dir" : 'X\(//\)[^/]' \| \
8619         X"$as_dir" : 'X\(//\)$' \| \
8620         X"$as_dir" : 'X\(/\)' \| \
8621         .     : '\(.\)' 2>/dev/null ||
8622echo X"$as_dir" |
8623    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8624  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8625  	  /^X\(\/\/\)$/{ s//\1/; q; }
8626  	  /^X\(\/\).*/{ s//\1/; q; }
8627  	  s/.*/./; q'`
8628    done
8629    test ! -n "$as_dirs" || mkdir $as_dirs
8630  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8631echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8632   { (exit 1); exit 1; }; }; }
8633
8634      rm -f $ac_file
8635      mv $tmp/config.h $ac_file
8636    fi
8637  else
8638    cat $tmp/config.h
8639    rm -f $tmp/config.h
8640  fi
8641done
8642_ACEOF
8643
8644cat >>$CONFIG_STATUS <<\_ACEOF
8645
8646{ (exit 0); exit 0; }
8647_ACEOF
8648chmod +x $CONFIG_STATUS
8649ac_clean_files=$ac_clean_files_save
8650
8651
8652# configure is writing to config.log, and then calls config.status.
8653# config.status does its own redirection, appending to config.log.
8654# Unfortunately, on DOS this fails, as config.log is still kept open
8655# by configure, so config.status won't be able to write to it; its
8656# output is simply discarded.  So we exec the FD to /dev/null,
8657# effectively closing config.log, so it can be properly (re)opened and
8658# appended to by config.status.  When coming back to configure, we
8659# need to make the FD available again.
8660if test "$no_create" != yes; then
8661  ac_cs_success=:
8662  exec 5>/dev/null
8663  $SHELL $CONFIG_STATUS || ac_cs_success=false
8664  exec 5>>config.log
8665  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8666  # would make configure fail if this is the last instruction.
8667  $ac_cs_success || { (exit 1); exit 1; }
8668fi
8669
8670