1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for Berkeley DB 4.7.25.
4#
5# Report bugs to <Oracle Technology Network Berkeley DB forum>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\/\)$/{
143	    s//\1/
144	    q
145	  }
146	  /^X\/\(\/\).*/{
147	    s//\1/
148	    q
149	  }
150	  s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229	 /*)
230	   for as_base in sh bash ksh sh5; do
231	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232	   done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239	 # Try only shells that exist, to save several forks.
240	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261	       as_have_required=yes
262	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536	case $1 in
537        -*)set "./$1";;
538	esac;
539	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540	???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560  # Remove one level of quotation (which was required for Make).
561  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562  ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567  # Discard the --no-reexec flag, and continue.
568  shift
569elif test "X$1" = X--fallback-echo; then
570  # Avoid inline document here, it may be left over
571  :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573  # Yippee, $echo works!
574  :
575else
576  # Restart under the correct shell.
577  exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581  # used as fallback echo
582  shift
583  cat <<EOF
584$*
585EOF
586  exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599       echo_test_string=`eval $cmd` &&
600       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601    then
602      break
603    fi
604  done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609   test "X$echo_testing_string" = "X$echo_test_string"; then
610  :
611else
612  # The Solaris, AIX, and Digital Unix default echo programs unquote
613  # backslashes.  This makes it impossible to quote backslashes using
614  #   echo "$something" | sed 's/\\/\\\\/g'
615  #
616  # So, first we look for a working echo in the user's PATH.
617
618  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619  for dir in $PATH /usr/ucb; do
620    IFS="$lt_save_ifs"
621    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624       test "X$echo_testing_string" = "X$echo_test_string"; then
625      echo="$dir/echo"
626      break
627    fi
628  done
629  IFS="$lt_save_ifs"
630
631  if test "X$echo" = Xecho; then
632    # We didn't find a better echo, so look for alternatives.
633    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635       test "X$echo_testing_string" = "X$echo_test_string"; then
636      # This shell has a builtin print -r that does the trick.
637      echo='print -r'
638    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639	 test "X$CONFIG_SHELL" != X/bin/ksh; then
640      # If we have ksh, try running configure again with it.
641      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642      export ORIGINAL_CONFIG_SHELL
643      CONFIG_SHELL=/bin/ksh
644      export CONFIG_SHELL
645      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646    else
647      # Try using printf.
648      echo='printf %s\n'
649      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651	 test "X$echo_testing_string" = "X$echo_test_string"; then
652	# Cool, printf works
653	:
654      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655	   test "X$echo_testing_string" = 'X\t' &&
656	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657	   test "X$echo_testing_string" = "X$echo_test_string"; then
658	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659	export CONFIG_SHELL
660	SHELL="$CONFIG_SHELL"
661	export SHELL
662	echo="$CONFIG_SHELL $0 --fallback-echo"
663      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664	   test "X$echo_testing_string" = 'X\t' &&
665	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666	   test "X$echo_testing_string" = "X$echo_test_string"; then
667	echo="$CONFIG_SHELL $0 --fallback-echo"
668      else
669	# maybe with a smaller string...
670	prev=:
671
672	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674	  then
675	    break
676	  fi
677	  prev="$cmd"
678	done
679
680	if test "$prev" != 'sed 50q "$0"'; then
681	  echo_test_string=`eval $prev`
682	  export echo_test_string
683	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684	else
685	  # Oops.  We lost completely, so just stick with echo.
686	  echo=echo
687	fi
688      fi
689    fi
690  fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
708exec 7<&0 </dev/null 6>&1
709
710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
719ac_clean_files=
720ac_config_libobj_dir=.
721LIBOBJS=
722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
728# Identity of this package.
729PACKAGE_NAME='Berkeley DB'
730PACKAGE_TARNAME='db-4.7.25'
731PACKAGE_VERSION='4.7.25'
732PACKAGE_STRING='Berkeley DB 4.7.25'
733PACKAGE_BUGREPORT='Oracle Technology Network Berkeley DB forum'
734
735ac_unique_file="../db/db.c"
736ac_default_prefix=/usr/local/BerkeleyDB.4.7
737# Factoring default headers for most tests.
738ac_includes_default="\
739#include <stdio.h>
740#ifdef HAVE_SYS_TYPES_H
741# include <sys/types.h>
742#endif
743#ifdef HAVE_SYS_STAT_H
744# include <sys/stat.h>
745#endif
746#ifdef STDC_HEADERS
747# include <stdlib.h>
748# include <stddef.h>
749#else
750# ifdef HAVE_STDLIB_H
751#  include <stdlib.h>
752# endif
753#endif
754#ifdef HAVE_STRING_H
755# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756#  include <memory.h>
757# endif
758# include <string.h>
759#endif
760#ifdef HAVE_STRINGS_H
761# include <strings.h>
762#endif
763#ifdef HAVE_INTTYPES_H
764# include <inttypes.h>
765#endif
766#ifdef HAVE_STDINT_H
767# include <stdint.h>
768#endif
769#ifdef HAVE_UNISTD_H
770# include <unistd.h>
771#endif"
772
773ac_subst_vars='SHELL
774PATH_SEPARATOR
775PACKAGE_NAME
776PACKAGE_TARNAME
777PACKAGE_VERSION
778PACKAGE_STRING
779PACKAGE_BUGREPORT
780exec_prefix
781prefix
782program_transform_name
783bindir
784sbindir
785libexecdir
786datarootdir
787datadir
788sysconfdir
789sharedstatedir
790localstatedir
791includedir
792oldincludedir
793docdir
794infodir
795htmldir
796dvidir
797pdfdir
798psdir
799libdir
800localedir
801mandir
802DEFS
803ECHO_C
804ECHO_N
805ECHO_T
806LIBS
807build_alias
808host_alias
809target_alias
810build
811build_cpu
812build_vendor
813build_os
814host
815host_cpu
816host_vendor
817host_os
818ADDITIONAL_INCS
819ADDITIONAL_LANG
820ADDITIONAL_OBJS
821ADDITIONAL_PROGS
822BUILD_TARGET
823CFLAGS
824CONFIGURATION_ARGS
825CONFIGURATION_PATH
826CPPFLAGS
827CRYPTO_OBJS
828CXX
829CXXFLAGS
830DB_CONST
831DB_PROTO1
832DB_PROTO2
833DEFAULT_LIB
834DEFAULT_LIB_CXX
835INSTALLER
836INSTALL_LIBS
837INSTALL_TARGET
838JAR
839JAVACFLAGS
840LDFLAGS
841LIBCSO_LIBS
842LIBJSO_LIBS
843LIBSO_LIBS
844LIBTOOL
845LIBTSO_LIBS
846LIBTSO_MODSUFFIX
847LIBTSO_MODULE
848LIBXSO_LIBS
849MAKEFILE_CC
850MAKEFILE_CCLINK
851MAKEFILE_CXX
852MAKEFILE_CXXLINK
853MAKEFILE_SOLINK
854MAKEFILE_XSOLINK
855OSDIR
856POSTLINK
857REPLACEMENT_OBJS
858RPC_CLIENT_OBJS
859RPC_SERVER_H
860SOFLAGS
861SWIGCFLAGS
862TEST_LIBS
863db_int_def
864o
865platform_header
866platform_footer
867DB_VERSION_MAJOR
868DB_VERSION_MINOR
869DB_VERSION_PATCH
870DB_VERSION_STRING
871DB_VERSION_UNIQUE_NAME
872CHMOD
873CP
874KILL
875LN
876MKDIR
877RM
878RPCGEN
879db_cv_path_sh
880INSTALL_PROGRAM
881INSTALL_SCRIPT
882INSTALL_DATA
883CC
884ac_ct_CC
885EXEEXT
886OBJEXT
887CCC
888ac_ct_CXX
889CXXCPP
890cxx_have_stdheaders
891GREP
892EGREP
893LN_S
894ECHO
895AR
896RANLIB
897STRIP
898CPP
899F77
900FFLAGS
901ac_ct_F77
902SOSUFFIX
903MODSUFFIX
904JMODSUFFIX
905JAVAC
906JAVA
907uudecode
908_ACJNI_JAVAC
909inttypes_h_decl
910stdint_h_decl
911stddef_h_decl
912unistd_h_decl
913u_char_decl
914u_short_decl
915u_int_decl
916u_long_decl
917u_int8_decl
918u_int16_decl
919int16_decl
920u_int32_decl
921int32_decl
922u_int64_decl
923int64_decl
924FILE_t_decl
925off_t_decl
926pid_t_decl
927size_t_decl
928time_t_decl
929ssize_t_decl
930uintmax_t_decl
931uintptr_t_decl
932thread_h_decl
933db_threadid_t_decl
934LIBOBJS
935TCL_BIN_DIR
936TCL_INCLUDE_SPEC
937TCL_LIB_FILE
938TCL_SRC_DIR
939TCL_TCLSH
940INT64_FMT
941UINT64_FMT
942db_seq_decl
943LTLIBOBJS'
944ac_subst_files=''
945      ac_precious_vars='build_alias
946host_alias
947target_alias
948CC
949CFLAGS
950LDFLAGS
951LIBS
952CPPFLAGS
953CXX
954CXXFLAGS
955CCC
956CXXCPP
957CPP
958F77
959FFLAGS'
960
961
962# Initialize some variables set by options.
963ac_init_help=
964ac_init_version=false
965# The variables have the same names as the options, with
966# dashes changed to underlines.
967cache_file=/dev/null
968exec_prefix=NONE
969no_create=
970no_recursion=
971prefix=NONE
972program_prefix=NONE
973program_suffix=NONE
974program_transform_name=s,x,x,
975silent=
976site=
977srcdir=
978verbose=
979x_includes=NONE
980x_libraries=NONE
981
982# Installation directory options.
983# These are left unexpanded so users can "make install exec_prefix=/foo"
984# and all the variables that are supposed to be based on exec_prefix
985# by default will actually change.
986# Use braces instead of parens because sh, perl, etc. also accept them.
987# (The list follows the same order as the GNU Coding Standards.)
988bindir='${exec_prefix}/bin'
989sbindir='${exec_prefix}/sbin'
990libexecdir='${exec_prefix}/libexec'
991datarootdir='${prefix}/share'
992datadir='${datarootdir}'
993sysconfdir='${prefix}/etc'
994sharedstatedir='${prefix}/com'
995localstatedir='${prefix}/var'
996includedir='${prefix}/include'
997oldincludedir='/usr/include'
998docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
999infodir='${datarootdir}/info'
1000htmldir='${docdir}'
1001dvidir='${docdir}'
1002pdfdir='${docdir}'
1003psdir='${docdir}'
1004libdir='${exec_prefix}/lib'
1005localedir='${datarootdir}/locale'
1006mandir='${datarootdir}/man'
1007
1008ac_prev=
1009ac_dashdash=
1010for ac_option
1011do
1012  # If the previous option needs an argument, assign it.
1013  if test -n "$ac_prev"; then
1014    eval $ac_prev=\$ac_option
1015    ac_prev=
1016    continue
1017  fi
1018
1019  case $ac_option in
1020  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1021  *)	ac_optarg=yes ;;
1022  esac
1023
1024  # Accept the important Cygnus configure options, so we can diagnose typos.
1025
1026  case $ac_dashdash$ac_option in
1027  --)
1028    ac_dashdash=yes ;;
1029
1030  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031    ac_prev=bindir ;;
1032  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033    bindir=$ac_optarg ;;
1034
1035  -build | --build | --buil | --bui | --bu)
1036    ac_prev=build_alias ;;
1037  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038    build_alias=$ac_optarg ;;
1039
1040  -cache-file | --cache-file | --cache-fil | --cache-fi \
1041  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042    ac_prev=cache_file ;;
1043  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045    cache_file=$ac_optarg ;;
1046
1047  --config-cache | -C)
1048    cache_file=config.cache ;;
1049
1050  -datadir | --datadir | --datadi | --datad)
1051    ac_prev=datadir ;;
1052  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1053    datadir=$ac_optarg ;;
1054
1055  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056  | --dataroo | --dataro | --datar)
1057    ac_prev=datarootdir ;;
1058  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060    datarootdir=$ac_optarg ;;
1061
1062  -disable-* | --disable-*)
1063    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064    # Reject names that are not valid shell variable names.
1065    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1067   { (exit 1); exit 1; }; }
1068    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1069    eval enable_$ac_feature=no ;;
1070
1071  -docdir | --docdir | --docdi | --doc | --do)
1072    ac_prev=docdir ;;
1073  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074    docdir=$ac_optarg ;;
1075
1076  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077    ac_prev=dvidir ;;
1078  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079    dvidir=$ac_optarg ;;
1080
1081  -enable-* | --enable-*)
1082    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083    # Reject names that are not valid shell variable names.
1084    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1085      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1086   { (exit 1); exit 1; }; }
1087    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1088    eval enable_$ac_feature=\$ac_optarg ;;
1089
1090  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092  | --exec | --exe | --ex)
1093    ac_prev=exec_prefix ;;
1094  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096  | --exec=* | --exe=* | --ex=*)
1097    exec_prefix=$ac_optarg ;;
1098
1099  -gas | --gas | --ga | --g)
1100    # Obsolete; use --with-gas.
1101    with_gas=yes ;;
1102
1103  -help | --help | --hel | --he | -h)
1104    ac_init_help=long ;;
1105  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106    ac_init_help=recursive ;;
1107  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108    ac_init_help=short ;;
1109
1110  -host | --host | --hos | --ho)
1111    ac_prev=host_alias ;;
1112  -host=* | --host=* | --hos=* | --ho=*)
1113    host_alias=$ac_optarg ;;
1114
1115  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116    ac_prev=htmldir ;;
1117  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118  | --ht=*)
1119    htmldir=$ac_optarg ;;
1120
1121  -includedir | --includedir | --includedi | --included | --include \
1122  | --includ | --inclu | --incl | --inc)
1123    ac_prev=includedir ;;
1124  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125  | --includ=* | --inclu=* | --incl=* | --inc=*)
1126    includedir=$ac_optarg ;;
1127
1128  -infodir | --infodir | --infodi | --infod | --info | --inf)
1129    ac_prev=infodir ;;
1130  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131    infodir=$ac_optarg ;;
1132
1133  -libdir | --libdir | --libdi | --libd)
1134    ac_prev=libdir ;;
1135  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136    libdir=$ac_optarg ;;
1137
1138  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139  | --libexe | --libex | --libe)
1140    ac_prev=libexecdir ;;
1141  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142  | --libexe=* | --libex=* | --libe=*)
1143    libexecdir=$ac_optarg ;;
1144
1145  -localedir | --localedir | --localedi | --localed | --locale)
1146    ac_prev=localedir ;;
1147  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148    localedir=$ac_optarg ;;
1149
1150  -localstatedir | --localstatedir | --localstatedi | --localstated \
1151  | --localstate | --localstat | --localsta | --localst | --locals)
1152    ac_prev=localstatedir ;;
1153  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155    localstatedir=$ac_optarg ;;
1156
1157  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158    ac_prev=mandir ;;
1159  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160    mandir=$ac_optarg ;;
1161
1162  -nfp | --nfp | --nf)
1163    # Obsolete; use --without-fp.
1164    with_fp=no ;;
1165
1166  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167  | --no-cr | --no-c | -n)
1168    no_create=yes ;;
1169
1170  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172    no_recursion=yes ;;
1173
1174  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176  | --oldin | --oldi | --old | --ol | --o)
1177    ac_prev=oldincludedir ;;
1178  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181    oldincludedir=$ac_optarg ;;
1182
1183  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184    ac_prev=prefix ;;
1185  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186    prefix=$ac_optarg ;;
1187
1188  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189  | --program-pre | --program-pr | --program-p)
1190    ac_prev=program_prefix ;;
1191  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193    program_prefix=$ac_optarg ;;
1194
1195  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196  | --program-suf | --program-su | --program-s)
1197    ac_prev=program_suffix ;;
1198  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200    program_suffix=$ac_optarg ;;
1201
1202  -program-transform-name | --program-transform-name \
1203  | --program-transform-nam | --program-transform-na \
1204  | --program-transform-n | --program-transform- \
1205  | --program-transform | --program-transfor \
1206  | --program-transfo | --program-transf \
1207  | --program-trans | --program-tran \
1208  | --progr-tra | --program-tr | --program-t)
1209    ac_prev=program_transform_name ;;
1210  -program-transform-name=* | --program-transform-name=* \
1211  | --program-transform-nam=* | --program-transform-na=* \
1212  | --program-transform-n=* | --program-transform-=* \
1213  | --program-transform=* | --program-transfor=* \
1214  | --program-transfo=* | --program-transf=* \
1215  | --program-trans=* | --program-tran=* \
1216  | --progr-tra=* | --program-tr=* | --program-t=*)
1217    program_transform_name=$ac_optarg ;;
1218
1219  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220    ac_prev=pdfdir ;;
1221  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222    pdfdir=$ac_optarg ;;
1223
1224  -psdir | --psdir | --psdi | --psd | --ps)
1225    ac_prev=psdir ;;
1226  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227    psdir=$ac_optarg ;;
1228
1229  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230  | -silent | --silent | --silen | --sile | --sil)
1231    silent=yes ;;
1232
1233  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234    ac_prev=sbindir ;;
1235  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236  | --sbi=* | --sb=*)
1237    sbindir=$ac_optarg ;;
1238
1239  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241  | --sharedst | --shareds | --shared | --share | --shar \
1242  | --sha | --sh)
1243    ac_prev=sharedstatedir ;;
1244  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247  | --sha=* | --sh=*)
1248    sharedstatedir=$ac_optarg ;;
1249
1250  -site | --site | --sit)
1251    ac_prev=site ;;
1252  -site=* | --site=* | --sit=*)
1253    site=$ac_optarg ;;
1254
1255  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256    ac_prev=srcdir ;;
1257  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258    srcdir=$ac_optarg ;;
1259
1260  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261  | --syscon | --sysco | --sysc | --sys | --sy)
1262    ac_prev=sysconfdir ;;
1263  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265    sysconfdir=$ac_optarg ;;
1266
1267  -target | --target | --targe | --targ | --tar | --ta | --t)
1268    ac_prev=target_alias ;;
1269  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270    target_alias=$ac_optarg ;;
1271
1272  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273    verbose=yes ;;
1274
1275  -version | --version | --versio | --versi | --vers | -V)
1276    ac_init_version=: ;;
1277
1278  -with-* | --with-*)
1279    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280    # Reject names that are not valid shell variable names.
1281    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282      { echo "$as_me: error: invalid package name: $ac_package" >&2
1283   { (exit 1); exit 1; }; }
1284    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1285    eval with_$ac_package=\$ac_optarg ;;
1286
1287  -without-* | --without-*)
1288    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289    # Reject names that are not valid shell variable names.
1290    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291      { echo "$as_me: error: invalid package name: $ac_package" >&2
1292   { (exit 1); exit 1; }; }
1293    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1294    eval with_$ac_package=no ;;
1295
1296  --x)
1297    # Obsolete; use --with-x.
1298    with_x=yes ;;
1299
1300  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1301  | --x-incl | --x-inc | --x-in | --x-i)
1302    ac_prev=x_includes ;;
1303  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1304  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1305    x_includes=$ac_optarg ;;
1306
1307  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1308  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1309    ac_prev=x_libraries ;;
1310  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1311  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1312    x_libraries=$ac_optarg ;;
1313
1314  -*) { echo "$as_me: error: unrecognized option: $ac_option
1315Try \`$0 --help' for more information." >&2
1316   { (exit 1); exit 1; }; }
1317    ;;
1318
1319  *=*)
1320    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1321    # Reject names that are not valid shell variable names.
1322    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1323      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1324   { (exit 1); exit 1; }; }
1325    eval $ac_envvar=\$ac_optarg
1326    export $ac_envvar ;;
1327
1328  *)
1329    # FIXME: should be removed in autoconf 3.0.
1330    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1331    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1332      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1333    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1334    ;;
1335
1336  esac
1337done
1338
1339if test -n "$ac_prev"; then
1340  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1341  { echo "$as_me: error: missing argument to $ac_option" >&2
1342   { (exit 1); exit 1; }; }
1343fi
1344
1345# Be sure to have absolute directory names.
1346for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347		datadir sysconfdir sharedstatedir localstatedir includedir \
1348		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349		libdir localedir mandir
1350do
1351  eval ac_val=\$$ac_var
1352  case $ac_val in
1353    [\\/$]* | ?:[\\/]* )  continue;;
1354    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355  esac
1356  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1357   { (exit 1); exit 1; }; }
1358done
1359
1360# There might be people who depend on the old broken behavior: `$host'
1361# used to hold the argument of --host etc.
1362# FIXME: To remove some day.
1363build=$build_alias
1364host=$host_alias
1365target=$target_alias
1366
1367# FIXME: To remove some day.
1368if test "x$host_alias" != x; then
1369  if test "x$build_alias" = x; then
1370    cross_compiling=maybe
1371    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1372    If a cross compiler is detected then cross compile mode will be used." >&2
1373  elif test "x$build_alias" != "x$host_alias"; then
1374    cross_compiling=yes
1375  fi
1376fi
1377
1378ac_tool_prefix=
1379test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380
1381test "$silent" = yes && exec 6>/dev/null
1382
1383
1384ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385ac_ls_di=`ls -di .` &&
1386ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387  { echo "$as_me: error: Working directory cannot be determined" >&2
1388   { (exit 1); exit 1; }; }
1389test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390  { echo "$as_me: error: pwd does not report name of working directory" >&2
1391   { (exit 1); exit 1; }; }
1392
1393
1394# Find the source files, if location was not specified.
1395if test -z "$srcdir"; then
1396  ac_srcdir_defaulted=yes
1397  # Try the directory containing this script, then the parent directory.
1398  ac_confdir=`$as_dirname -- "$0" ||
1399$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1400	 X"$0" : 'X\(//\)[^/]' \| \
1401	 X"$0" : 'X\(//\)$' \| \
1402	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1403echo X"$0" |
1404    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1405	    s//\1/
1406	    q
1407	  }
1408	  /^X\(\/\/\)[^/].*/{
1409	    s//\1/
1410	    q
1411	  }
1412	  /^X\(\/\/\)$/{
1413	    s//\1/
1414	    q
1415	  }
1416	  /^X\(\/\).*/{
1417	    s//\1/
1418	    q
1419	  }
1420	  s/.*/./; q'`
1421  srcdir=$ac_confdir
1422  if test ! -r "$srcdir/$ac_unique_file"; then
1423    srcdir=..
1424  fi
1425else
1426  ac_srcdir_defaulted=no
1427fi
1428if test ! -r "$srcdir/$ac_unique_file"; then
1429  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1430  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1431   { (exit 1); exit 1; }; }
1432fi
1433ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434ac_abs_confdir=`(
1435	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1436   { (exit 1); exit 1; }; }
1437	pwd)`
1438# When building in place, set srcdir=.
1439if test "$ac_abs_confdir" = "$ac_pwd"; then
1440  srcdir=.
1441fi
1442# Remove unnecessary trailing slashes from srcdir.
1443# Double slashes in file names in object file debugging info
1444# mess up M-x gdb in Emacs.
1445case $srcdir in
1446*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447esac
1448for ac_var in $ac_precious_vars; do
1449  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450  eval ac_env_${ac_var}_value=\$${ac_var}
1451  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1453done
1454
1455#
1456# Report the --help message.
1457#
1458if test "$ac_init_help" = "long"; then
1459  # Omit some internal or obsolete options to make the list less imposing.
1460  # This message is too long to be a string in the A/UX 3.1 sh.
1461  cat <<_ACEOF
1462\`configure' configures Berkeley DB 4.7.25 to adapt to many kinds of systems.
1463
1464Usage: $0 [OPTION]... [VAR=VALUE]...
1465
1466To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467VAR=VALUE.  See below for descriptions of some of the useful variables.
1468
1469Defaults for the options are specified in brackets.
1470
1471Configuration:
1472  -h, --help              display this help and exit
1473      --help=short        display options specific to this package
1474      --help=recursive    display the short help of all the included packages
1475  -V, --version           display version information and exit
1476  -q, --quiet, --silent   do not print \`checking...' messages
1477      --cache-file=FILE   cache test results in FILE [disabled]
1478  -C, --config-cache      alias for \`--cache-file=config.cache'
1479  -n, --no-create         do not create output files
1480      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1481
1482Installation directories:
1483  --prefix=PREFIX         install architecture-independent files in PREFIX
1484			  [$ac_default_prefix]
1485  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1486			  [PREFIX]
1487
1488By default, \`make install' will install all the files in
1489\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1490an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491for instance \`--prefix=\$HOME'.
1492
1493For better control, use the options below.
1494
1495Fine tuning of the installation directories:
1496  --bindir=DIR           user executables [EPREFIX/bin]
1497  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1498  --libexecdir=DIR       program executables [EPREFIX/libexec]
1499  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1500  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1501  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1502  --libdir=DIR           object code libraries [EPREFIX/lib]
1503  --includedir=DIR       C header files [PREFIX/include]
1504  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1505  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1506  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1507  --infodir=DIR          info documentation [DATAROOTDIR/info]
1508  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1509  --mandir=DIR           man documentation [DATAROOTDIR/man]
1510  --docdir=DIR           documentation root [DATAROOTDIR/doc/db-4.7.25]
1511  --htmldir=DIR          html documentation [DOCDIR]
1512  --dvidir=DIR           dvi documentation [DOCDIR]
1513  --pdfdir=DIR           pdf documentation [DOCDIR]
1514  --psdir=DIR            ps documentation [DOCDIR]
1515_ACEOF
1516
1517  cat <<\_ACEOF
1518
1519Program names:
1520  --program-prefix=PREFIX            prepend PREFIX to installed program names
1521  --program-suffix=SUFFIX            append SUFFIX to installed program names
1522  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1523
1524System types:
1525  --build=BUILD     configure for building on BUILD [guessed]
1526  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1527_ACEOF
1528fi
1529
1530if test -n "$ac_init_help"; then
1531  case $ac_init_help in
1532     short | recursive ) echo "Configuration of Berkeley DB 4.7.25:";;
1533   esac
1534  cat <<\_ACEOF
1535
1536Optional Features:
1537  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1538  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1539  --disable-bigfile       Obsolete; use --disable-largefile instead.
1540  --disable-cryptography  Do not build database cryptography support.
1541  --disable-hash          Do not build Hash access method.
1542  --disable-mutexsupport  Do not build any mutex support.
1543  --disable-queue         Do not build Queue access method.
1544  --disable-replication   Do not build database replication support.
1545  --disable-statistics    Do not build statistics support.
1546  --disable-verify        Do not build database verification support.
1547  --enable-compat185      Build DB 1.85 compatibility API.
1548  --enable-cxx            Build C++ API.
1549  --enable-debug          Build a debugging version.
1550  --enable-debug_rop      Build a version that logs read operations.
1551  --enable-debug_wop      Build a version that logs write operations.
1552  --enable-diagnostic     Build a version with run-time diagnostics.
1553  --enable-dump185        Build db_dump185(1) to dump 1.85 databases.
1554  --enable-java           Build Java API.
1555  --enable-mingw          Build Berkeley DB for MinGW.
1556  --enable-o_direct       Enable the O_DIRECT flag for direct I/O.
1557  --enable-posixmutexes   Force use of POSIX standard mutexes.
1558  --enable-pthread_self   Obsolete; use --enable-pthread_api instead.
1559  --enable-pthread_api    Configure Berkeley DB for POSIX pthread API.
1560  --enable-rpc            Build RPC client/server.
1561  --enable-smallbuild     Build small footprint version of the library.
1562  --enable-tcl            Build Tcl API.
1563  --enable-test           Configure to run the test suite.
1564  --enable-uimutexes      Force use of Unix International mutexes.
1565  --enable-umrw           Mask harmless uninitialized memory read/writes.
1566  --enable-shared[=PKGS]  build shared libraries [default=yes]
1567  --enable-static[=PKGS]  build static libraries [default=yes]
1568  --enable-fast-install[=PKGS]
1569                          optimize for fast installation [default=yes]
1570  --disable-libtool-lock  avoid locking (might break parallel builds)
1571  --disable-largefile     omit support for large files
1572
1573Optional Packages:
1574  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1575  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1576  --with-mutex=MUTEX      Select non-default mutex implementation.
1577  --with-mutexalign=ALIGNMENT
1578                          Obsolete; use DbEnv::mutex_set_align instead.
1579  --with-tcl=DIR          Directory location of tclConfig.sh.
1580  --with-uniquename=NAME  Build a uniquely named library.
1581  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1582  --with-pic              try to use only PIC/non-PIC objects [default=use
1583                          both]
1584  --with-tags[=TAGS]      include additional configurations [automatic]
1585
1586Some influential environment variables:
1587  CC          C compiler command
1588  CFLAGS      C compiler flags
1589  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1590              nonstandard directory <lib dir>
1591  LIBS        libraries to pass to the linker, e.g. -l<library>
1592  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1593              you have headers in a nonstandard directory <include dir>
1594  CXX         C++ compiler command
1595  CXXFLAGS    C++ compiler flags
1596  CXXCPP      C++ preprocessor
1597  CPP         C preprocessor
1598  F77         Fortran 77 compiler command
1599  FFLAGS      Fortran 77 compiler flags
1600
1601Use these variables to override the choices made by `configure' or to help
1602it to find libraries and programs with nonstandard names/locations.
1603
1604Report bugs to <Oracle Technology Network Berkeley DB forum>.
1605_ACEOF
1606ac_status=$?
1607fi
1608
1609if test "$ac_init_help" = "recursive"; then
1610  # If there are subdirs, report their specific --help.
1611  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1612    test -d "$ac_dir" || continue
1613    ac_builddir=.
1614
1615case "$ac_dir" in
1616.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617*)
1618  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1619  # A ".." for each directory in $ac_dir_suffix.
1620  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1621  case $ac_top_builddir_sub in
1622  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624  esac ;;
1625esac
1626ac_abs_top_builddir=$ac_pwd
1627ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628# for backward compatibility:
1629ac_top_builddir=$ac_top_build_prefix
1630
1631case $srcdir in
1632  .)  # We are building in place.
1633    ac_srcdir=.
1634    ac_top_srcdir=$ac_top_builddir_sub
1635    ac_abs_top_srcdir=$ac_pwd ;;
1636  [\\/]* | ?:[\\/]* )  # Absolute name.
1637    ac_srcdir=$srcdir$ac_dir_suffix;
1638    ac_top_srcdir=$srcdir
1639    ac_abs_top_srcdir=$srcdir ;;
1640  *) # Relative name.
1641    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642    ac_top_srcdir=$ac_top_build_prefix$srcdir
1643    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1644esac
1645ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1646
1647    cd "$ac_dir" || { ac_status=$?; continue; }
1648    # Check for guested configure.
1649    if test -f "$ac_srcdir/configure.gnu"; then
1650      echo &&
1651      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652    elif test -f "$ac_srcdir/configure"; then
1653      echo &&
1654      $SHELL "$ac_srcdir/configure" --help=recursive
1655    else
1656      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1657    fi || ac_status=$?
1658    cd "$ac_pwd" || { ac_status=$?; break; }
1659  done
1660fi
1661
1662test -n "$ac_init_help" && exit $ac_status
1663if $ac_init_version; then
1664  cat <<\_ACEOF
1665Berkeley DB configure 4.7.25
1666generated by GNU Autoconf 2.61
1667
1668Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16692002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1670This configure script is free software; the Free Software Foundation
1671gives unlimited permission to copy, distribute and modify it.
1672_ACEOF
1673  exit
1674fi
1675cat >config.log <<_ACEOF
1676This file contains any messages produced by compilers while
1677running configure, to aid debugging if configure makes a mistake.
1678
1679It was created by Berkeley DB $as_me 4.7.25, which was
1680generated by GNU Autoconf 2.61.  Invocation command line was
1681
1682  $ $0 $@
1683
1684_ACEOF
1685exec 5>>config.log
1686{
1687cat <<_ASUNAME
1688## --------- ##
1689## Platform. ##
1690## --------- ##
1691
1692hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1693uname -m = `(uname -m) 2>/dev/null || echo unknown`
1694uname -r = `(uname -r) 2>/dev/null || echo unknown`
1695uname -s = `(uname -s) 2>/dev/null || echo unknown`
1696uname -v = `(uname -v) 2>/dev/null || echo unknown`
1697
1698/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1699/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1700
1701/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1702/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1703/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1704/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1705/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1706/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1707/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1708
1709_ASUNAME
1710
1711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712for as_dir in $PATH
1713do
1714  IFS=$as_save_IFS
1715  test -z "$as_dir" && as_dir=.
1716  echo "PATH: $as_dir"
1717done
1718IFS=$as_save_IFS
1719
1720} >&5
1721
1722cat >&5 <<_ACEOF
1723
1724
1725## ----------- ##
1726## Core tests. ##
1727## ----------- ##
1728
1729_ACEOF
1730
1731
1732# Keep a trace of the command line.
1733# Strip out --no-create and --no-recursion so they do not pile up.
1734# Strip out --silent because we don't want to record it for future runs.
1735# Also quote any args containing shell meta-characters.
1736# Make two passes to allow for proper duplicate-argument suppression.
1737ac_configure_args=
1738ac_configure_args0=
1739ac_configure_args1=
1740ac_must_keep_next=false
1741for ac_pass in 1 2
1742do
1743  for ac_arg
1744  do
1745    case $ac_arg in
1746    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1747    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1748    | -silent | --silent | --silen | --sile | --sil)
1749      continue ;;
1750    *\'*)
1751      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1752    esac
1753    case $ac_pass in
1754    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1755    2)
1756      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1757      if test $ac_must_keep_next = true; then
1758	ac_must_keep_next=false # Got value, back to normal.
1759      else
1760	case $ac_arg in
1761	  *=* | --config-cache | -C | -disable-* | --disable-* \
1762	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1763	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1764	  | -with-* | --with-* | -without-* | --without-* | --x)
1765	    case "$ac_configure_args0 " in
1766	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1767	    esac
1768	    ;;
1769	  -* ) ac_must_keep_next=true ;;
1770	esac
1771      fi
1772      ac_configure_args="$ac_configure_args '$ac_arg'"
1773      ;;
1774    esac
1775  done
1776done
1777$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1778$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1779
1780# When interrupted or exit'd, cleanup temporary files, and complete
1781# config.log.  We remove comments because anyway the quotes in there
1782# would cause problems or look ugly.
1783# WARNING: Use '\'' to represent an apostrophe within the trap.
1784# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1785trap 'exit_status=$?
1786  # Save into config.log some information that might help in debugging.
1787  {
1788    echo
1789
1790    cat <<\_ASBOX
1791## ---------------- ##
1792## Cache variables. ##
1793## ---------------- ##
1794_ASBOX
1795    echo
1796    # The following way of writing the cache mishandles newlines in values,
1797(
1798  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1799    eval ac_val=\$$ac_var
1800    case $ac_val in #(
1801    *${as_nl}*)
1802      case $ac_var in #(
1803      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1804echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1805      esac
1806      case $ac_var in #(
1807      _ | IFS | as_nl) ;; #(
1808      *) $as_unset $ac_var ;;
1809      esac ;;
1810    esac
1811  done
1812  (set) 2>&1 |
1813    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1814    *${as_nl}ac_space=\ *)
1815      sed -n \
1816	"s/'\''/'\''\\\\'\'''\''/g;
1817	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1818      ;; #(
1819    *)
1820      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1821      ;;
1822    esac |
1823    sort
1824)
1825    echo
1826
1827    cat <<\_ASBOX
1828## ----------------- ##
1829## Output variables. ##
1830## ----------------- ##
1831_ASBOX
1832    echo
1833    for ac_var in $ac_subst_vars
1834    do
1835      eval ac_val=\$$ac_var
1836      case $ac_val in
1837      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838      esac
1839      echo "$ac_var='\''$ac_val'\''"
1840    done | sort
1841    echo
1842
1843    if test -n "$ac_subst_files"; then
1844      cat <<\_ASBOX
1845## ------------------- ##
1846## File substitutions. ##
1847## ------------------- ##
1848_ASBOX
1849      echo
1850      for ac_var in $ac_subst_files
1851      do
1852	eval ac_val=\$$ac_var
1853	case $ac_val in
1854	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855	esac
1856	echo "$ac_var='\''$ac_val'\''"
1857      done | sort
1858      echo
1859    fi
1860
1861    if test -s confdefs.h; then
1862      cat <<\_ASBOX
1863## ----------- ##
1864## confdefs.h. ##
1865## ----------- ##
1866_ASBOX
1867      echo
1868      cat confdefs.h
1869      echo
1870    fi
1871    test "$ac_signal" != 0 &&
1872      echo "$as_me: caught signal $ac_signal"
1873    echo "$as_me: exit $exit_status"
1874  } >&5
1875  rm -f core *.core core.conftest.* &&
1876    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1877    exit $exit_status
1878' 0
1879for ac_signal in 1 2 13 15; do
1880  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1881done
1882ac_signal=0
1883
1884# confdefs.h avoids OS command line length limits that DEFS can exceed.
1885rm -f -r conftest* confdefs.h
1886
1887# Predefined preprocessor variables.
1888
1889cat >>confdefs.h <<_ACEOF
1890#define PACKAGE_NAME "$PACKAGE_NAME"
1891_ACEOF
1892
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_VERSION "$PACKAGE_VERSION"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_STRING "$PACKAGE_STRING"
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1911_ACEOF
1912
1913
1914# Let the site file select an alternate cache file if it wants to.
1915# Prefer explicitly selected file to automatically selected ones.
1916if test -n "$CONFIG_SITE"; then
1917  set x "$CONFIG_SITE"
1918elif test "x$prefix" != xNONE; then
1919  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1920else
1921  set x "$ac_default_prefix/share/config.site" \
1922	"$ac_default_prefix/etc/config.site"
1923fi
1924shift
1925for ac_site_file
1926do
1927  if test -r "$ac_site_file"; then
1928    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1929echo "$as_me: loading site script $ac_site_file" >&6;}
1930    sed 's/^/| /' "$ac_site_file" >&5
1931    . "$ac_site_file"
1932  fi
1933done
1934
1935if test -r "$cache_file"; then
1936  # Some versions of bash will fail to source /dev/null (special
1937  # files actually), so we avoid doing that.
1938  if test -f "$cache_file"; then
1939    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1940echo "$as_me: loading cache $cache_file" >&6;}
1941    case $cache_file in
1942      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1943      *)                      . "./$cache_file";;
1944    esac
1945  fi
1946else
1947  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1948echo "$as_me: creating cache $cache_file" >&6;}
1949  >$cache_file
1950fi
1951
1952# Check that the precious variables saved in the cache have kept the same
1953# value.
1954ac_cache_corrupted=false
1955for ac_var in $ac_precious_vars; do
1956  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1957  eval ac_new_set=\$ac_env_${ac_var}_set
1958  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1959  eval ac_new_val=\$ac_env_${ac_var}_value
1960  case $ac_old_set,$ac_new_set in
1961    set,)
1962      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1963echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1964      ac_cache_corrupted=: ;;
1965    ,set)
1966      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1967echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1968      ac_cache_corrupted=: ;;
1969    ,);;
1970    *)
1971      if test "x$ac_old_val" != "x$ac_new_val"; then
1972	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1973echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1974	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1975echo "$as_me:   former value:  $ac_old_val" >&2;}
1976	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1977echo "$as_me:   current value: $ac_new_val" >&2;}
1978	ac_cache_corrupted=:
1979      fi;;
1980  esac
1981  # Pass precious variables to config.status.
1982  if test "$ac_new_set" = set; then
1983    case $ac_new_val in
1984    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1985    *) ac_arg=$ac_var=$ac_new_val ;;
1986    esac
1987    case " $ac_configure_args " in
1988      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1989      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1990    esac
1991  fi
1992done
1993if $ac_cache_corrupted; then
1994  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1995echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1996  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1997echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1998   { (exit 1); exit 1; }; }
1999fi
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025ac_ext=c
2026ac_cpp='$CPP $CPPFLAGS'
2027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2029ac_compiler_gnu=$ac_cv_c_compiler_gnu
2030
2031
2032
2033ac_config_headers="$ac_config_headers db_config.h:config.hin"
2034
2035
2036# Configure setup.
2037ac_aux_dir=
2038for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2039  if test -f "$ac_dir/install-sh"; then
2040    ac_aux_dir=$ac_dir
2041    ac_install_sh="$ac_aux_dir/install-sh -c"
2042    break
2043  elif test -f "$ac_dir/install.sh"; then
2044    ac_aux_dir=$ac_dir
2045    ac_install_sh="$ac_aux_dir/install.sh -c"
2046    break
2047  elif test -f "$ac_dir/shtool"; then
2048    ac_aux_dir=$ac_dir
2049    ac_install_sh="$ac_aux_dir/shtool install -c"
2050    break
2051  fi
2052done
2053if test -z "$ac_aux_dir"; then
2054  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2055echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2056   { (exit 1); exit 1; }; }
2057fi
2058
2059# These three variables are undocumented and unsupported,
2060# and are intended to be withdrawn in a future Autoconf release.
2061# They can cause serious problems if a builder's source tree is in a directory
2062# whose full name contains unusual characters.
2063ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2064ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2065ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2066
2067
2068# Make sure we can run config.sub.
2069$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2070  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2071echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2072   { (exit 1); exit 1; }; }
2073
2074{ echo "$as_me:$LINENO: checking build system type" >&5
2075echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2076if test "${ac_cv_build+set}" = set; then
2077  echo $ECHO_N "(cached) $ECHO_C" >&6
2078else
2079  ac_build_alias=$build_alias
2080test "x$ac_build_alias" = x &&
2081  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2082test "x$ac_build_alias" = x &&
2083  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2084echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2085   { (exit 1); exit 1; }; }
2086ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2087  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2088echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2089   { (exit 1); exit 1; }; }
2090
2091fi
2092{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2093echo "${ECHO_T}$ac_cv_build" >&6; }
2094case $ac_cv_build in
2095*-*-*) ;;
2096*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2097echo "$as_me: error: invalid value of canonical build" >&2;}
2098   { (exit 1); exit 1; }; };;
2099esac
2100build=$ac_cv_build
2101ac_save_IFS=$IFS; IFS='-'
2102set x $ac_cv_build
2103shift
2104build_cpu=$1
2105build_vendor=$2
2106shift; shift
2107# Remember, the first character of IFS is used to create $*,
2108# except with old shells:
2109build_os=$*
2110IFS=$ac_save_IFS
2111case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2112
2113
2114{ echo "$as_me:$LINENO: checking host system type" >&5
2115echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2116if test "${ac_cv_host+set}" = set; then
2117  echo $ECHO_N "(cached) $ECHO_C" >&6
2118else
2119  if test "x$host_alias" = x; then
2120  ac_cv_host=$ac_cv_build
2121else
2122  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2123    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2124echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2125   { (exit 1); exit 1; }; }
2126fi
2127
2128fi
2129{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2130echo "${ECHO_T}$ac_cv_host" >&6; }
2131case $ac_cv_host in
2132*-*-*) ;;
2133*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2134echo "$as_me: error: invalid value of canonical host" >&2;}
2135   { (exit 1); exit 1; }; };;
2136esac
2137host=$ac_cv_host
2138ac_save_IFS=$IFS; IFS='-'
2139set x $ac_cv_host
2140shift
2141host_cpu=$1
2142host_vendor=$2
2143shift; shift
2144# Remember, the first character of IFS is used to create $*,
2145# except with old shells:
2146host_os=$*
2147IFS=$ac_save_IFS
2148case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2149
2150
2151test "$program_prefix" != NONE &&
2152  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2153# Use a double $ so make ignores it.
2154test "$program_suffix" != NONE &&
2155  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2156# Double any \ or $.  echo might interpret backslashes.
2157# By default was `s,x,x', remove it if useless.
2158cat <<\_ACEOF >conftest.sed
2159s/[\\$]/&&/g;s/;s,x,x,$//
2160_ACEOF
2161program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2162rm -f conftest.sed
2163
2164
2165# Don't build in the top-level or dist directories.
2166{ echo "$as_me:$LINENO: checking if building in the top-level or dist directories" >&5
2167echo $ECHO_N "checking if building in the top-level or dist directories... $ECHO_C" >&6; }
2168if  test -d db_archive -o -f configure.ac  ; then
2169	{ echo "$as_me:$LINENO: result: yes" >&5
2170echo "${ECHO_T}yes" >&6; }
2171	{ { echo "$as_me:$LINENO: error: \
2172Berkeley DB should not be built in the top-level or \"dist\" directories. \
2173Change directory to the build_unix directory and run ../dist/configure \
2174from there." >&5
2175echo "$as_me: error: \
2176Berkeley DB should not be built in the top-level or \"dist\" directories. \
2177Change directory to the build_unix directory and run ../dist/configure \
2178from there." >&2;}
2179   { (exit 1); exit 1; }; }
2180
2181fi
2182{ echo "$as_me:$LINENO: result: no" >&5
2183echo "${ECHO_T}no" >&6; }
2184
2185# Substitution variables.
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236# The Windows public header has two extra symbols we need to remove.
2237
2238
2239
2240# Set the default installation location.
2241
2242
2243# Configure the version information.
2244
2245DB_VERSION_MAJOR="4"
2246
2247DB_VERSION_MINOR="7"
2248
2249DB_VERSION_PATCH="25"
2250
2251DB_VERSION_STRING='"Berkeley DB 4.7.25: (May 15, 2008)"'
2252
2253
2254# Process all options before using them.
2255
2256
2257# --enable-bigfile was the configuration option that Berkeley DB used before
2258# autoconf 2.50 was released (which had --enable-largefile integrated in).
2259# Check whether --enable-bigfile was given.
2260if test "${enable_bigfile+set}" = set; then
2261  enableval=$enable_bigfile; { { echo "$as_me:$LINENO: error: --enable-bigfile no longer supported, use --enable-largefile" >&5
2262echo "$as_me: error: --enable-bigfile no longer supported, use --enable-largefile" >&2;}
2263   { (exit 1); exit 1; }; }
2264fi
2265
2266
2267{ echo "$as_me:$LINENO: checking if --disable-cryptography option specified" >&5
2268echo $ECHO_N "checking if --disable-cryptography option specified... $ECHO_C" >&6; }
2269# Check whether --enable-cryptography was given.
2270if test "${enable_cryptography+set}" = set; then
2271  enableval=$enable_cryptography;
2272else
2273  enableval="yes"
2274fi
2275
2276db_cv_build_cryptography="$enableval"
2277case "$enableval" in
2278 no) { echo "$as_me:$LINENO: result: yes" >&5
2279echo "${ECHO_T}yes" >&6; };;
2280yes) { echo "$as_me:$LINENO: result: no" >&5
2281echo "${ECHO_T}no" >&6; };;
2282esac
2283
2284{ echo "$as_me:$LINENO: checking if --disable-hash option specified" >&5
2285echo $ECHO_N "checking if --disable-hash option specified... $ECHO_C" >&6; }
2286# Check whether --enable-hash was given.
2287if test "${enable_hash+set}" = set; then
2288  enableval=$enable_hash;
2289else
2290  enableval="yes"
2291fi
2292
2293db_cv_build_hash="$enableval"
2294case "$enableval" in
2295 no) { echo "$as_me:$LINENO: result: yes" >&5
2296echo "${ECHO_T}yes" >&6; };;
2297yes) { echo "$as_me:$LINENO: result: no" >&5
2298echo "${ECHO_T}no" >&6; };;
2299esac
2300
2301{ echo "$as_me:$LINENO: checking if --disable-mutexsupport option specified" >&5
2302echo $ECHO_N "checking if --disable-mutexsupport option specified... $ECHO_C" >&6; }
2303# Check whether --enable-mutexsupport was given.
2304if test "${enable_mutexsupport+set}" = set; then
2305  enableval=$enable_mutexsupport;
2306else
2307  enableval="yes"
2308fi
2309
2310db_cv_build_mutexsupport="$enableval"
2311case "$enableval" in
2312 no) { echo "$as_me:$LINENO: result: yes" >&5
2313echo "${ECHO_T}yes" >&6; };;
2314yes) { echo "$as_me:$LINENO: result: no" >&5
2315echo "${ECHO_T}no" >&6; };;
2316esac
2317
2318{ echo "$as_me:$LINENO: checking if --disable-queue option specified" >&5
2319echo $ECHO_N "checking if --disable-queue option specified... $ECHO_C" >&6; }
2320# Check whether --enable-queue was given.
2321if test "${enable_queue+set}" = set; then
2322  enableval=$enable_queue;
2323else
2324  enableval="yes"
2325fi
2326
2327db_cv_build_queue="$enableval"
2328case "$enableval" in
2329 no) { echo "$as_me:$LINENO: result: yes" >&5
2330echo "${ECHO_T}yes" >&6; };;
2331yes) { echo "$as_me:$LINENO: result: no" >&5
2332echo "${ECHO_T}no" >&6; };;
2333esac
2334
2335{ echo "$as_me:$LINENO: checking if --disable-replication option specified" >&5
2336echo $ECHO_N "checking if --disable-replication option specified... $ECHO_C" >&6; }
2337# Check whether --enable-replication was given.
2338if test "${enable_replication+set}" = set; then
2339  enableval=$enable_replication;
2340else
2341  enableval="yes"
2342fi
2343
2344db_cv_build_replication="$enableval"
2345case "$enableval" in
2346 no) { echo "$as_me:$LINENO: result: yes" >&5
2347echo "${ECHO_T}yes" >&6; };;
2348yes) { echo "$as_me:$LINENO: result: no" >&5
2349echo "${ECHO_T}no" >&6; };;
2350esac
2351
2352{ echo "$as_me:$LINENO: checking if --disable-statistics option specified" >&5
2353echo $ECHO_N "checking if --disable-statistics option specified... $ECHO_C" >&6; }
2354# Check whether --enable-statistics was given.
2355if test "${enable_statistics+set}" = set; then
2356  enableval=$enable_statistics;
2357else
2358  enableval="yes"
2359fi
2360
2361db_cv_build_statistics="$enableval"
2362case "$enableval" in
2363 no) { echo "$as_me:$LINENO: result: yes" >&5
2364echo "${ECHO_T}yes" >&6; };;
2365yes) { echo "$as_me:$LINENO: result: no" >&5
2366echo "${ECHO_T}no" >&6; };;
2367esac
2368
2369{ echo "$as_me:$LINENO: checking if --disable-verify option specified" >&5
2370echo $ECHO_N "checking if --disable-verify option specified... $ECHO_C" >&6; }
2371# Check whether --enable-verify was given.
2372if test "${enable_verify+set}" = set; then
2373  enableval=$enable_verify;
2374else
2375  enableval="yes"
2376fi
2377
2378db_cv_build_verify="$enableval"
2379case "$enableval" in
2380 no) { echo "$as_me:$LINENO: result: yes" >&5
2381echo "${ECHO_T}yes" >&6; };;
2382yes) { echo "$as_me:$LINENO: result: no" >&5
2383echo "${ECHO_T}no" >&6; };;
2384esac
2385
2386{ echo "$as_me:$LINENO: checking if --enable-compat185 option specified" >&5
2387echo $ECHO_N "checking if --enable-compat185 option specified... $ECHO_C" >&6; }
2388# Check whether --enable-compat185 was given.
2389if test "${enable_compat185+set}" = set; then
2390  enableval=$enable_compat185; db_cv_compat185="$enable_compat185"
2391else
2392  db_cv_compat185="no"
2393fi
2394
2395{ echo "$as_me:$LINENO: result: $db_cv_compat185" >&5
2396echo "${ECHO_T}$db_cv_compat185" >&6; }
2397
2398{ echo "$as_me:$LINENO: checking if --enable-cxx option specified" >&5
2399echo $ECHO_N "checking if --enable-cxx option specified... $ECHO_C" >&6; }
2400# Check whether --enable-cxx was given.
2401if test "${enable_cxx+set}" = set; then
2402  enableval=$enable_cxx; db_cv_cxx="$enable_cxx"
2403else
2404  db_cv_cxx="no"
2405fi
2406
2407{ echo "$as_me:$LINENO: result: $db_cv_cxx" >&5
2408echo "${ECHO_T}$db_cv_cxx" >&6; }
2409
2410{ echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
2411echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6; }
2412# Check whether --enable-debug was given.
2413if test "${enable_debug+set}" = set; then
2414  enableval=$enable_debug; db_cv_debug="$enable_debug"
2415else
2416  db_cv_debug="no"
2417fi
2418
2419{ echo "$as_me:$LINENO: result: $db_cv_debug" >&5
2420echo "${ECHO_T}$db_cv_debug" >&6; }
2421
2422{ echo "$as_me:$LINENO: checking if --enable-debug_rop option specified" >&5
2423echo $ECHO_N "checking if --enable-debug_rop option specified... $ECHO_C" >&6; }
2424# Check whether --enable-debug_rop was given.
2425if test "${enable_debug_rop+set}" = set; then
2426  enableval=$enable_debug_rop; db_cv_debug_rop="$enable_debug_rop"
2427else
2428  db_cv_debug_rop="no"
2429fi
2430
2431{ echo "$as_me:$LINENO: result: $db_cv_debug_rop" >&5
2432echo "${ECHO_T}$db_cv_debug_rop" >&6; }
2433
2434{ echo "$as_me:$LINENO: checking if --enable-debug_wop option specified" >&5
2435echo $ECHO_N "checking if --enable-debug_wop option specified... $ECHO_C" >&6; }
2436# Check whether --enable-debug_wop was given.
2437if test "${enable_debug_wop+set}" = set; then
2438  enableval=$enable_debug_wop; db_cv_debug_wop="$enable_debug_wop"
2439else
2440  db_cv_debug_wop="no"
2441fi
2442
2443{ echo "$as_me:$LINENO: result: $db_cv_debug_wop" >&5
2444echo "${ECHO_T}$db_cv_debug_wop" >&6; }
2445
2446{ echo "$as_me:$LINENO: checking if --enable-diagnostic option specified" >&5
2447echo $ECHO_N "checking if --enable-diagnostic option specified... $ECHO_C" >&6; }
2448# Check whether --enable-diagnostic was given.
2449if test "${enable_diagnostic+set}" = set; then
2450  enableval=$enable_diagnostic; db_cv_diagnostic="$enable_diagnostic"
2451else
2452  db_cv_diagnostic="no"
2453fi
2454
2455if test "$db_cv_diagnostic" = "yes"; then
2456	{ echo "$as_me:$LINENO: result: $db_cv_diagnostic" >&5
2457echo "${ECHO_T}$db_cv_diagnostic" >&6; }
2458fi
2459if test "$db_cv_diagnostic" = "no" -a "$db_cv_debug_rop" = "yes"; then
2460	db_cv_diagnostic="yes"
2461	{ echo "$as_me:$LINENO: result: by --enable-debug_rop" >&5
2462echo "${ECHO_T}by --enable-debug_rop" >&6; }
2463fi
2464if test "$db_cv_diagnostic" = "no" -a "$db_cv_debug_wop" = "yes"; then
2465	db_cv_diagnostic="yes"
2466	{ echo "$as_me:$LINENO: result: by --enable-debug_wop" >&5
2467echo "${ECHO_T}by --enable-debug_wop" >&6; }
2468fi
2469if test "$db_cv_diagnostic" = "no"; then
2470	{ echo "$as_me:$LINENO: result: $db_cv_diagnostic" >&5
2471echo "${ECHO_T}$db_cv_diagnostic" >&6; }
2472fi
2473
2474{ echo "$as_me:$LINENO: checking if --enable-dump185 option specified" >&5
2475echo $ECHO_N "checking if --enable-dump185 option specified... $ECHO_C" >&6; }
2476# Check whether --enable-dump185 was given.
2477if test "${enable_dump185+set}" = set; then
2478  enableval=$enable_dump185; db_cv_dump185="$enable_dump185"
2479else
2480  db_cv_dump185="no"
2481fi
2482
2483{ echo "$as_me:$LINENO: result: $db_cv_dump185" >&5
2484echo "${ECHO_T}$db_cv_dump185" >&6; }
2485
2486{ echo "$as_me:$LINENO: checking if --enable-java option specified" >&5
2487echo $ECHO_N "checking if --enable-java option specified... $ECHO_C" >&6; }
2488# Check whether --enable-java was given.
2489if test "${enable_java+set}" = set; then
2490  enableval=$enable_java; db_cv_java="$enable_java"
2491else
2492  db_cv_java="no"
2493fi
2494
2495{ echo "$as_me:$LINENO: result: $db_cv_java" >&5
2496echo "${ECHO_T}$db_cv_java" >&6; }
2497
2498{ echo "$as_me:$LINENO: checking if --enable-mingw option specified" >&5
2499echo $ECHO_N "checking if --enable-mingw option specified... $ECHO_C" >&6; }
2500# Check whether --enable-mingw was given.
2501if test "${enable_mingw+set}" = set; then
2502  enableval=$enable_mingw; db_cv_mingw="$enable_mingw"
2503else
2504  db_cv_mingw="no"
2505fi
2506
2507{ echo "$as_me:$LINENO: result: $db_cv_mingw" >&5
2508echo "${ECHO_T}$db_cv_mingw" >&6; }
2509
2510{ echo "$as_me:$LINENO: checking if --enable-o_direct option specified" >&5
2511echo $ECHO_N "checking if --enable-o_direct option specified... $ECHO_C" >&6; }
2512# Check whether --enable-o_direct was given.
2513if test "${enable_o_direct+set}" = set; then
2514  enableval=$enable_o_direct; db_cv_o_direct="$enable_o_direct"
2515else
2516  db_cv_o_direct="no"
2517fi
2518
2519{ echo "$as_me:$LINENO: result: $db_cv_o_direct" >&5
2520echo "${ECHO_T}$db_cv_o_direct" >&6; }
2521
2522{ echo "$as_me:$LINENO: checking if --enable-posixmutexes option specified" >&5
2523echo $ECHO_N "checking if --enable-posixmutexes option specified... $ECHO_C" >&6; }
2524# Check whether --enable-posixmutexes was given.
2525if test "${enable_posixmutexes+set}" = set; then
2526  enableval=$enable_posixmutexes; db_cv_posixmutexes="$enable_posixmutexes"
2527else
2528  db_cv_posixmutexes="no"
2529fi
2530
2531{ echo "$as_me:$LINENO: result: $db_cv_posixmutexes" >&5
2532echo "${ECHO_T}$db_cv_posixmutexes" >&6; }
2533
2534# Check whether --enable-pthread_self was given.
2535if test "${enable_pthread_self+set}" = set; then
2536  enableval=$enable_pthread_self; { { echo "$as_me:$LINENO: error: --enable-pthread_self no longer supported, use --enable-pthread_api" >&5
2537echo "$as_me: error: --enable-pthread_self no longer supported, use --enable-pthread_api" >&2;}
2538   { (exit 1); exit 1; }; }
2539fi
2540
2541
2542{ echo "$as_me:$LINENO: checking if --enable-pthread_api option specified" >&5
2543echo $ECHO_N "checking if --enable-pthread_api option specified... $ECHO_C" >&6; }
2544# Check whether --enable-pthread_api was given.
2545if test "${enable_pthread_api+set}" = set; then
2546  enableval=$enable_pthread_api; db_cv_pthread_api="$enable_pthread_api"
2547else
2548  db_cv_pthread_api="no"
2549fi
2550
2551# POSIX mutexes implies other POSIX APIs.
2552if test "$db_cv_posixmutexes" != "no"; then
2553	db_cv_pthread_api="yes"
2554fi
2555{ echo "$as_me:$LINENO: result: $db_cv_pthread_api" >&5
2556echo "${ECHO_T}$db_cv_pthread_api" >&6; }
2557
2558
2559if test "$db_cv_pthread_api" = "yes"; then
2560	cat >>confdefs.h <<\_ACEOF
2561#define HAVE_PTHREAD_API 1
2562_ACEOF
2563
2564fi
2565
2566{ echo "$as_me:$LINENO: checking if --enable-rpc option specified" >&5
2567echo $ECHO_N "checking if --enable-rpc option specified... $ECHO_C" >&6; }
2568# Check whether --enable-rpc was given.
2569if test "${enable_rpc+set}" = set; then
2570  enableval=$enable_rpc; db_cv_rpc="$enable_rpc"
2571else
2572  db_cv_rpc="no"
2573fi
2574
2575{ echo "$as_me:$LINENO: result: $db_cv_rpc" >&5
2576echo "${ECHO_T}$db_cv_rpc" >&6; }
2577
2578{ echo "$as_me:$LINENO: checking if --enable-smallbuild option specified" >&5
2579echo $ECHO_N "checking if --enable-smallbuild option specified... $ECHO_C" >&6; }
2580# Check whether --enable-smallbuild was given.
2581if test "${enable_smallbuild+set}" = set; then
2582  enableval=$enable_smallbuild; db_cv_smallbuild="$enable_smallbuild"
2583else
2584  db_cv_smallbuild="no"
2585fi
2586
2587if test "$db_cv_smallbuild" = "yes"; then
2588	db_cv_build_cryptography="no"
2589	db_cv_build_hash="no"
2590	db_cv_build_queue="no"
2591	db_cv_build_replication="no"
2592	db_cv_build_statistics="no"
2593	db_cv_build_verify="no"
2594fi
2595{ echo "$as_me:$LINENO: result: $db_cv_smallbuild" >&5
2596echo "${ECHO_T}$db_cv_smallbuild" >&6; }
2597
2598{ echo "$as_me:$LINENO: checking if --enable-tcl option specified" >&5
2599echo $ECHO_N "checking if --enable-tcl option specified... $ECHO_C" >&6; }
2600# Check whether --enable-tcl was given.
2601if test "${enable_tcl+set}" = set; then
2602  enableval=$enable_tcl; db_cv_tcl="$enable_tcl"
2603else
2604  db_cv_tcl="no"
2605fi
2606
2607{ echo "$as_me:$LINENO: result: $db_cv_tcl" >&5
2608echo "${ECHO_T}$db_cv_tcl" >&6; }
2609
2610{ echo "$as_me:$LINENO: checking if --enable-test option specified" >&5
2611echo $ECHO_N "checking if --enable-test option specified... $ECHO_C" >&6; }
2612# Check whether --enable-test was given.
2613if test "${enable_test+set}" = set; then
2614  enableval=$enable_test; db_cv_test="$enable_test"
2615else
2616  db_cv_test="no"
2617fi
2618
2619{ echo "$as_me:$LINENO: result: $db_cv_test" >&5
2620echo "${ECHO_T}$db_cv_test" >&6; }
2621
2622{ echo "$as_me:$LINENO: checking if --enable-uimutexes option specified" >&5
2623echo $ECHO_N "checking if --enable-uimutexes option specified... $ECHO_C" >&6; }
2624# Check whether --enable-uimutexes was given.
2625if test "${enable_uimutexes+set}" = set; then
2626  enableval=$enable_uimutexes; db_cv_uimutexes="$enable_uimutexes"
2627else
2628  db_cv_uimutexes="no"
2629fi
2630
2631{ echo "$as_me:$LINENO: result: $db_cv_uimutexes" >&5
2632echo "${ECHO_T}$db_cv_uimutexes" >&6; }
2633
2634{ echo "$as_me:$LINENO: checking if --enable-umrw option specified" >&5
2635echo $ECHO_N "checking if --enable-umrw option specified... $ECHO_C" >&6; }
2636# Check whether --enable-umrw was given.
2637if test "${enable_umrw+set}" = set; then
2638  enableval=$enable_umrw; db_cv_umrw="$enable_umrw"
2639else
2640  db_cv_umrw="no"
2641fi
2642
2643{ echo "$as_me:$LINENO: result: $db_cv_umrw" >&5
2644echo "${ECHO_T}$db_cv_umrw" >&6; }
2645
2646{ echo "$as_me:$LINENO: checking if --with-mutex=MUTEX option specified" >&5
2647echo $ECHO_N "checking if --with-mutex=MUTEX option specified... $ECHO_C" >&6; }
2648
2649# Check whether --with-mutex was given.
2650if test "${with_mutex+set}" = set; then
2651  withval=$with_mutex; with_mutex="$withval"
2652else
2653  with_mutex="no"
2654fi
2655
2656if test "$with_mutex" = "yes"; then
2657	{ { echo "$as_me:$LINENO: error: --with-mutex requires a mutex name argument" >&5
2658echo "$as_me: error: --with-mutex requires a mutex name argument" >&2;}
2659   { (exit 1); exit 1; }; }
2660fi
2661if test "$with_mutex" != "no"; then
2662	db_cv_mutex="$with_mutex"
2663fi
2664{ echo "$as_me:$LINENO: result: $with_mutex" >&5
2665echo "${ECHO_T}$with_mutex" >&6; }
2666
2667# --with-mutexalign=ALIGNMENT was the configuration option that Berkeley DB
2668# used before the DbEnv::mutex_set_align method was added.
2669
2670# Check whether --with-mutexalign was given.
2671if test "${with_mutexalign+set}" = set; then
2672  withval=$with_mutexalign; { { echo "$as_me:$LINENO: error: --with-mutexalign no longer supported, use DbEnv::mutex_set_align" >&5
2673echo "$as_me: error: --with-mutexalign no longer supported, use DbEnv::mutex_set_align" >&2;}
2674   { (exit 1); exit 1; }; }
2675fi
2676
2677
2678{ echo "$as_me:$LINENO: checking if --with-tcl=DIR option specified" >&5
2679echo $ECHO_N "checking if --with-tcl=DIR option specified... $ECHO_C" >&6; }
2680
2681# Check whether --with-tcl was given.
2682if test "${with_tcl+set}" = set; then
2683  withval=$with_tcl; with_tclconfig="$withval"
2684else
2685  with_tclconfig="no"
2686fi
2687
2688{ echo "$as_me:$LINENO: result: $with_tclconfig" >&5
2689echo "${ECHO_T}$with_tclconfig" >&6; }
2690if test "$with_tclconfig" != "no"; then
2691	db_cv_tcl="yes"
2692fi
2693
2694{ echo "$as_me:$LINENO: checking if --with-uniquename=NAME option specified" >&5
2695echo $ECHO_N "checking if --with-uniquename=NAME option specified... $ECHO_C" >&6; }
2696
2697# Check whether --with-uniquename was given.
2698if test "${with_uniquename+set}" = set; then
2699  withval=$with_uniquename; with_uniquename="$withval"
2700else
2701  with_uniquename="no"
2702fi
2703
2704if test "$with_uniquename" = "no"; then
2705	db_cv_uniquename="no"
2706	DB_VERSION_UNIQUE_NAME=""
2707	{ echo "$as_me:$LINENO: result: $with_uniquename" >&5
2708echo "${ECHO_T}$with_uniquename" >&6; }
2709else
2710	db_cv_uniquename="yes"
2711	if test "$with_uniquename" = "yes"; then
2712		DB_VERSION_UNIQUE_NAME="_4007"
2713	else
2714		DB_VERSION_UNIQUE_NAME="$with_uniquename"
2715	fi
2716	{ echo "$as_me:$LINENO: result: $DB_VERSION_UNIQUE_NAME" >&5
2717echo "${ECHO_T}$DB_VERSION_UNIQUE_NAME" >&6; }
2718fi
2719
2720# Test requires Tcl
2721if test "$db_cv_test" = "yes"; then
2722	if test "$db_cv_tcl" = "no"; then
2723		{ { echo "$as_me:$LINENO: error: --enable-test requires --enable-tcl" >&5
2724echo "$as_me: error: --enable-test requires --enable-tcl" >&2;}
2725   { (exit 1); exit 1; }; }
2726	fi
2727fi
2728
2729# Set some #defines based on configuration options.
2730if test "$db_cv_diagnostic" = "yes"; then
2731	cat >>confdefs.h <<\_ACEOF
2732#define DIAGNOSTIC 1
2733_ACEOF
2734
2735
2736
2737fi
2738if test "$db_cv_debug_rop" = "yes"; then
2739	cat >>confdefs.h <<\_ACEOF
2740#define DEBUG_ROP 1
2741_ACEOF
2742
2743
2744
2745fi
2746if test "$db_cv_debug_wop" = "yes"; then
2747	cat >>confdefs.h <<\_ACEOF
2748#define DEBUG_WOP 1
2749_ACEOF
2750
2751
2752
2753fi
2754if test "$db_cv_umrw" = "yes"; then
2755	cat >>confdefs.h <<\_ACEOF
2756#define UMRW 1
2757_ACEOF
2758
2759
2760
2761
2762fi
2763if test "$db_cv_test" = "yes"; then
2764	cat >>confdefs.h <<\_ACEOF
2765#define CONFIG_TEST 1
2766_ACEOF
2767
2768
2769
2770fi
2771
2772
2773
2774cat >>confdefs.h <<\_ACEOF
2775#define HAVE_UPGRADE_SUPPORT 1
2776_ACEOF
2777
2778
2779# Check for programs used in building and installation.
2780
2781
2782if test -n "$ac_tool_prefix"; then
2783  # Extract the first word of "${ac_tool_prefix}chmod", so it can be a program name with args.
2784set dummy ${ac_tool_prefix}chmod; ac_word=$2
2785{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2787if test "${ac_cv_prog_CHMOD+set}" = set; then
2788  echo $ECHO_N "(cached) $ECHO_C" >&6
2789else
2790  if test -n "$CHMOD"; then
2791  ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
2792else
2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796  IFS=$as_save_IFS
2797  test -z "$as_dir" && as_dir=.
2798  for ac_exec_ext in '' $ac_executable_extensions; do
2799  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800    ac_cv_prog_CHMOD="${ac_tool_prefix}chmod"
2801    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802    break 2
2803  fi
2804done
2805done
2806IFS=$as_save_IFS
2807
2808fi
2809fi
2810CHMOD=$ac_cv_prog_CHMOD
2811if test -n "$CHMOD"; then
2812  { echo "$as_me:$LINENO: result: $CHMOD" >&5
2813echo "${ECHO_T}$CHMOD" >&6; }
2814else
2815  { echo "$as_me:$LINENO: result: no" >&5
2816echo "${ECHO_T}no" >&6; }
2817fi
2818
2819
2820fi
2821if test -z "$ac_cv_prog_CHMOD"; then
2822  ac_ct_CHMOD=$CHMOD
2823  # Extract the first word of "chmod", so it can be a program name with args.
2824set dummy chmod; ac_word=$2
2825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2827if test "${ac_cv_prog_ac_ct_CHMOD+set}" = set; then
2828  echo $ECHO_N "(cached) $ECHO_C" >&6
2829else
2830  if test -n "$ac_ct_CHMOD"; then
2831  ac_cv_prog_ac_ct_CHMOD="$ac_ct_CHMOD" # Let the user override the test.
2832else
2833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834for as_dir in $PATH
2835do
2836  IFS=$as_save_IFS
2837  test -z "$as_dir" && as_dir=.
2838  for ac_exec_ext in '' $ac_executable_extensions; do
2839  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840    ac_cv_prog_ac_ct_CHMOD="chmod"
2841    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842    break 2
2843  fi
2844done
2845done
2846IFS=$as_save_IFS
2847
2848fi
2849fi
2850ac_ct_CHMOD=$ac_cv_prog_ac_ct_CHMOD
2851if test -n "$ac_ct_CHMOD"; then
2852  { echo "$as_me:$LINENO: result: $ac_ct_CHMOD" >&5
2853echo "${ECHO_T}$ac_ct_CHMOD" >&6; }
2854else
2855  { echo "$as_me:$LINENO: result: no" >&5
2856echo "${ECHO_T}no" >&6; }
2857fi
2858
2859  if test "x$ac_ct_CHMOD" = x; then
2860    CHMOD="none"
2861  else
2862    case $cross_compiling:$ac_tool_warned in
2863yes:)
2864{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2865whose name does not start with the host triplet.  If you think this
2866configuration is useful to you, please write to autoconf@gnu.org." >&5
2867echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2868whose name does not start with the host triplet.  If you think this
2869configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2870ac_tool_warned=yes ;;
2871esac
2872    CHMOD=$ac_ct_CHMOD
2873  fi
2874else
2875  CHMOD="$ac_cv_prog_CHMOD"
2876fi
2877
2878test "$CHMOD" = "none" && { { echo "$as_me:$LINENO: error: No chmod utility found." >&5
2879echo "$as_me: error: No chmod utility found." >&2;}
2880   { (exit 1); exit 1; }; }
2881
2882if test -n "$ac_tool_prefix"; then
2883  # Extract the first word of "${ac_tool_prefix}cp", so it can be a program name with args.
2884set dummy ${ac_tool_prefix}cp; ac_word=$2
2885{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2887if test "${ac_cv_prog_CP+set}" = set; then
2888  echo $ECHO_N "(cached) $ECHO_C" >&6
2889else
2890  if test -n "$CP"; then
2891  ac_cv_prog_CP="$CP" # Let the user override the test.
2892else
2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894for as_dir in $PATH
2895do
2896  IFS=$as_save_IFS
2897  test -z "$as_dir" && as_dir=.
2898  for ac_exec_ext in '' $ac_executable_extensions; do
2899  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900    ac_cv_prog_CP="${ac_tool_prefix}cp"
2901    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902    break 2
2903  fi
2904done
2905done
2906IFS=$as_save_IFS
2907
2908fi
2909fi
2910CP=$ac_cv_prog_CP
2911if test -n "$CP"; then
2912  { echo "$as_me:$LINENO: result: $CP" >&5
2913echo "${ECHO_T}$CP" >&6; }
2914else
2915  { echo "$as_me:$LINENO: result: no" >&5
2916echo "${ECHO_T}no" >&6; }
2917fi
2918
2919
2920fi
2921if test -z "$ac_cv_prog_CP"; then
2922  ac_ct_CP=$CP
2923  # Extract the first word of "cp", so it can be a program name with args.
2924set dummy cp; ac_word=$2
2925{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2927if test "${ac_cv_prog_ac_ct_CP+set}" = set; then
2928  echo $ECHO_N "(cached) $ECHO_C" >&6
2929else
2930  if test -n "$ac_ct_CP"; then
2931  ac_cv_prog_ac_ct_CP="$ac_ct_CP" # Let the user override the test.
2932else
2933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934for as_dir in $PATH
2935do
2936  IFS=$as_save_IFS
2937  test -z "$as_dir" && as_dir=.
2938  for ac_exec_ext in '' $ac_executable_extensions; do
2939  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940    ac_cv_prog_ac_ct_CP="cp"
2941    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2942    break 2
2943  fi
2944done
2945done
2946IFS=$as_save_IFS
2947
2948fi
2949fi
2950ac_ct_CP=$ac_cv_prog_ac_ct_CP
2951if test -n "$ac_ct_CP"; then
2952  { echo "$as_me:$LINENO: result: $ac_ct_CP" >&5
2953echo "${ECHO_T}$ac_ct_CP" >&6; }
2954else
2955  { echo "$as_me:$LINENO: result: no" >&5
2956echo "${ECHO_T}no" >&6; }
2957fi
2958
2959  if test "x$ac_ct_CP" = x; then
2960    CP="none"
2961  else
2962    case $cross_compiling:$ac_tool_warned in
2963yes:)
2964{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2965whose name does not start with the host triplet.  If you think this
2966configuration is useful to you, please write to autoconf@gnu.org." >&5
2967echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2968whose name does not start with the host triplet.  If you think this
2969configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2970ac_tool_warned=yes ;;
2971esac
2972    CP=$ac_ct_CP
2973  fi
2974else
2975  CP="$ac_cv_prog_CP"
2976fi
2977
2978test "$CP" = "none" && { { echo "$as_me:$LINENO: error: No cp utility found." >&5
2979echo "$as_me: error: No cp utility found." >&2;}
2980   { (exit 1); exit 1; }; }
2981
2982# The Tcl test suite requires a kill utility.
2983if test "$db_cv_test" = "yes"; then
2984	if test -n "$ac_tool_prefix"; then
2985  # Extract the first word of "${ac_tool_prefix}kill", so it can be a program name with args.
2986set dummy ${ac_tool_prefix}kill; ac_word=$2
2987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2989if test "${ac_cv_prog_KILL+set}" = set; then
2990  echo $ECHO_N "(cached) $ECHO_C" >&6
2991else
2992  if test -n "$KILL"; then
2993  ac_cv_prog_KILL="$KILL" # Let the user override the test.
2994else
2995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996for as_dir in $PATH
2997do
2998  IFS=$as_save_IFS
2999  test -z "$as_dir" && as_dir=.
3000  for ac_exec_ext in '' $ac_executable_extensions; do
3001  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002    ac_cv_prog_KILL="${ac_tool_prefix}kill"
3003    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004    break 2
3005  fi
3006done
3007done
3008IFS=$as_save_IFS
3009
3010fi
3011fi
3012KILL=$ac_cv_prog_KILL
3013if test -n "$KILL"; then
3014  { echo "$as_me:$LINENO: result: $KILL" >&5
3015echo "${ECHO_T}$KILL" >&6; }
3016else
3017  { echo "$as_me:$LINENO: result: no" >&5
3018echo "${ECHO_T}no" >&6; }
3019fi
3020
3021
3022fi
3023if test -z "$ac_cv_prog_KILL"; then
3024  ac_ct_KILL=$KILL
3025  # Extract the first word of "kill", so it can be a program name with args.
3026set dummy kill; ac_word=$2
3027{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3029if test "${ac_cv_prog_ac_ct_KILL+set}" = set; then
3030  echo $ECHO_N "(cached) $ECHO_C" >&6
3031else
3032  if test -n "$ac_ct_KILL"; then
3033  ac_cv_prog_ac_ct_KILL="$ac_ct_KILL" # Let the user override the test.
3034else
3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038  IFS=$as_save_IFS
3039  test -z "$as_dir" && as_dir=.
3040  for ac_exec_ext in '' $ac_executable_extensions; do
3041  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042    ac_cv_prog_ac_ct_KILL="kill"
3043    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3044    break 2
3045  fi
3046done
3047done
3048IFS=$as_save_IFS
3049
3050fi
3051fi
3052ac_ct_KILL=$ac_cv_prog_ac_ct_KILL
3053if test -n "$ac_ct_KILL"; then
3054  { echo "$as_me:$LINENO: result: $ac_ct_KILL" >&5
3055echo "${ECHO_T}$ac_ct_KILL" >&6; }
3056else
3057  { echo "$as_me:$LINENO: result: no" >&5
3058echo "${ECHO_T}no" >&6; }
3059fi
3060
3061  if test "x$ac_ct_KILL" = x; then
3062    KILL="none"
3063  else
3064    case $cross_compiling:$ac_tool_warned in
3065yes:)
3066{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3067whose name does not start with the host triplet.  If you think this
3068configuration is useful to you, please write to autoconf@gnu.org." >&5
3069echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3070whose name does not start with the host triplet.  If you think this
3071configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3072ac_tool_warned=yes ;;
3073esac
3074    KILL=$ac_ct_KILL
3075  fi
3076else
3077  KILL="$ac_cv_prog_KILL"
3078fi
3079
3080	test "$KILL" = "none" && { { echo "$as_me:$LINENO: error: No kill utility found." >&5
3081echo "$as_me: error: No kill utility found." >&2;}
3082   { (exit 1); exit 1; }; }
3083fi
3084
3085if test -n "$ac_tool_prefix"; then
3086  # Extract the first word of "${ac_tool_prefix}ln", so it can be a program name with args.
3087set dummy ${ac_tool_prefix}ln; ac_word=$2
3088{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3090if test "${ac_cv_prog_LN+set}" = set; then
3091  echo $ECHO_N "(cached) $ECHO_C" >&6
3092else
3093  if test -n "$LN"; then
3094  ac_cv_prog_LN="$LN" # Let the user override the test.
3095else
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH
3098do
3099  IFS=$as_save_IFS
3100  test -z "$as_dir" && as_dir=.
3101  for ac_exec_ext in '' $ac_executable_extensions; do
3102  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3103    ac_cv_prog_LN="${ac_tool_prefix}ln"
3104    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3105    break 2
3106  fi
3107done
3108done
3109IFS=$as_save_IFS
3110
3111fi
3112fi
3113LN=$ac_cv_prog_LN
3114if test -n "$LN"; then
3115  { echo "$as_me:$LINENO: result: $LN" >&5
3116echo "${ECHO_T}$LN" >&6; }
3117else
3118  { echo "$as_me:$LINENO: result: no" >&5
3119echo "${ECHO_T}no" >&6; }
3120fi
3121
3122
3123fi
3124if test -z "$ac_cv_prog_LN"; then
3125  ac_ct_LN=$LN
3126  # Extract the first word of "ln", so it can be a program name with args.
3127set dummy ln; ac_word=$2
3128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3130if test "${ac_cv_prog_ac_ct_LN+set}" = set; then
3131  echo $ECHO_N "(cached) $ECHO_C" >&6
3132else
3133  if test -n "$ac_ct_LN"; then
3134  ac_cv_prog_ac_ct_LN="$ac_ct_LN" # Let the user override the test.
3135else
3136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137for as_dir in $PATH
3138do
3139  IFS=$as_save_IFS
3140  test -z "$as_dir" && as_dir=.
3141  for ac_exec_ext in '' $ac_executable_extensions; do
3142  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3143    ac_cv_prog_ac_ct_LN="ln"
3144    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3145    break 2
3146  fi
3147done
3148done
3149IFS=$as_save_IFS
3150
3151fi
3152fi
3153ac_ct_LN=$ac_cv_prog_ac_ct_LN
3154if test -n "$ac_ct_LN"; then
3155  { echo "$as_me:$LINENO: result: $ac_ct_LN" >&5
3156echo "${ECHO_T}$ac_ct_LN" >&6; }
3157else
3158  { echo "$as_me:$LINENO: result: no" >&5
3159echo "${ECHO_T}no" >&6; }
3160fi
3161
3162  if test "x$ac_ct_LN" = x; then
3163    LN="none"
3164  else
3165    case $cross_compiling:$ac_tool_warned in
3166yes:)
3167{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3168whose name does not start with the host triplet.  If you think this
3169configuration is useful to you, please write to autoconf@gnu.org." >&5
3170echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3171whose name does not start with the host triplet.  If you think this
3172configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3173ac_tool_warned=yes ;;
3174esac
3175    LN=$ac_ct_LN
3176  fi
3177else
3178  LN="$ac_cv_prog_LN"
3179fi
3180
3181test "$LN" = "none" && { { echo "$as_me:$LINENO: error: No ln utility found." >&5
3182echo "$as_me: error: No ln utility found." >&2;}
3183   { (exit 1); exit 1; }; }
3184
3185if test -n "$ac_tool_prefix"; then
3186  # Extract the first word of "${ac_tool_prefix}mkdir", so it can be a program name with args.
3187set dummy ${ac_tool_prefix}mkdir; ac_word=$2
3188{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3190if test "${ac_cv_prog_MKDIR+set}" = set; then
3191  echo $ECHO_N "(cached) $ECHO_C" >&6
3192else
3193  if test -n "$MKDIR"; then
3194  ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
3195else
3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in $PATH
3198do
3199  IFS=$as_save_IFS
3200  test -z "$as_dir" && as_dir=.
3201  for ac_exec_ext in '' $ac_executable_extensions; do
3202  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3203    ac_cv_prog_MKDIR="${ac_tool_prefix}mkdir"
3204    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205    break 2
3206  fi
3207done
3208done
3209IFS=$as_save_IFS
3210
3211fi
3212fi
3213MKDIR=$ac_cv_prog_MKDIR
3214if test -n "$MKDIR"; then
3215  { echo "$as_me:$LINENO: result: $MKDIR" >&5
3216echo "${ECHO_T}$MKDIR" >&6; }
3217else
3218  { echo "$as_me:$LINENO: result: no" >&5
3219echo "${ECHO_T}no" >&6; }
3220fi
3221
3222
3223fi
3224if test -z "$ac_cv_prog_MKDIR"; then
3225  ac_ct_MKDIR=$MKDIR
3226  # Extract the first word of "mkdir", so it can be a program name with args.
3227set dummy mkdir; ac_word=$2
3228{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3230if test "${ac_cv_prog_ac_ct_MKDIR+set}" = set; then
3231  echo $ECHO_N "(cached) $ECHO_C" >&6
3232else
3233  if test -n "$ac_ct_MKDIR"; then
3234  ac_cv_prog_ac_ct_MKDIR="$ac_ct_MKDIR" # Let the user override the test.
3235else
3236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237for as_dir in $PATH
3238do
3239  IFS=$as_save_IFS
3240  test -z "$as_dir" && as_dir=.
3241  for ac_exec_ext in '' $ac_executable_extensions; do
3242  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243    ac_cv_prog_ac_ct_MKDIR="mkdir"
3244    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3245    break 2
3246  fi
3247done
3248done
3249IFS=$as_save_IFS
3250
3251fi
3252fi
3253ac_ct_MKDIR=$ac_cv_prog_ac_ct_MKDIR
3254if test -n "$ac_ct_MKDIR"; then
3255  { echo "$as_me:$LINENO: result: $ac_ct_MKDIR" >&5
3256echo "${ECHO_T}$ac_ct_MKDIR" >&6; }
3257else
3258  { echo "$as_me:$LINENO: result: no" >&5
3259echo "${ECHO_T}no" >&6; }
3260fi
3261
3262  if test "x$ac_ct_MKDIR" = x; then
3263    MKDIR="none"
3264  else
3265    case $cross_compiling:$ac_tool_warned in
3266yes:)
3267{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3268whose name does not start with the host triplet.  If you think this
3269configuration is useful to you, please write to autoconf@gnu.org." >&5
3270echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3271whose name does not start with the host triplet.  If you think this
3272configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3273ac_tool_warned=yes ;;
3274esac
3275    MKDIR=$ac_ct_MKDIR
3276  fi
3277else
3278  MKDIR="$ac_cv_prog_MKDIR"
3279fi
3280
3281test "$MKDIR" = "none" && { { echo "$as_me:$LINENO: error: No mkdir utility found." >&5
3282echo "$as_me: error: No mkdir utility found." >&2;}
3283   { (exit 1); exit 1; }; }
3284
3285if test -n "$ac_tool_prefix"; then
3286  # Extract the first word of "${ac_tool_prefix}rm", so it can be a program name with args.
3287set dummy ${ac_tool_prefix}rm; ac_word=$2
3288{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3290if test "${ac_cv_prog_RM+set}" = set; then
3291  echo $ECHO_N "(cached) $ECHO_C" >&6
3292else
3293  if test -n "$RM"; then
3294  ac_cv_prog_RM="$RM" # Let the user override the test.
3295else
3296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297for as_dir in $PATH
3298do
3299  IFS=$as_save_IFS
3300  test -z "$as_dir" && as_dir=.
3301  for ac_exec_ext in '' $ac_executable_extensions; do
3302  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303    ac_cv_prog_RM="${ac_tool_prefix}rm"
3304    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305    break 2
3306  fi
3307done
3308done
3309IFS=$as_save_IFS
3310
3311fi
3312fi
3313RM=$ac_cv_prog_RM
3314if test -n "$RM"; then
3315  { echo "$as_me:$LINENO: result: $RM" >&5
3316echo "${ECHO_T}$RM" >&6; }
3317else
3318  { echo "$as_me:$LINENO: result: no" >&5
3319echo "${ECHO_T}no" >&6; }
3320fi
3321
3322
3323fi
3324if test -z "$ac_cv_prog_RM"; then
3325  ac_ct_RM=$RM
3326  # Extract the first word of "rm", so it can be a program name with args.
3327set dummy rm; ac_word=$2
3328{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3330if test "${ac_cv_prog_ac_ct_RM+set}" = set; then
3331  echo $ECHO_N "(cached) $ECHO_C" >&6
3332else
3333  if test -n "$ac_ct_RM"; then
3334  ac_cv_prog_ac_ct_RM="$ac_ct_RM" # Let the user override the test.
3335else
3336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337for as_dir in $PATH
3338do
3339  IFS=$as_save_IFS
3340  test -z "$as_dir" && as_dir=.
3341  for ac_exec_ext in '' $ac_executable_extensions; do
3342  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3343    ac_cv_prog_ac_ct_RM="rm"
3344    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3345    break 2
3346  fi
3347done
3348done
3349IFS=$as_save_IFS
3350
3351fi
3352fi
3353ac_ct_RM=$ac_cv_prog_ac_ct_RM
3354if test -n "$ac_ct_RM"; then
3355  { echo "$as_me:$LINENO: result: $ac_ct_RM" >&5
3356echo "${ECHO_T}$ac_ct_RM" >&6; }
3357else
3358  { echo "$as_me:$LINENO: result: no" >&5
3359echo "${ECHO_T}no" >&6; }
3360fi
3361
3362  if test "x$ac_ct_RM" = x; then
3363    RM="none"
3364  else
3365    case $cross_compiling:$ac_tool_warned in
3366yes:)
3367{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3368whose name does not start with the host triplet.  If you think this
3369configuration is useful to you, please write to autoconf@gnu.org." >&5
3370echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3371whose name does not start with the host triplet.  If you think this
3372configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3373ac_tool_warned=yes ;;
3374esac
3375    RM=$ac_ct_RM
3376  fi
3377else
3378  RM="$ac_cv_prog_RM"
3379fi
3380
3381test "$RM" = "none" && { { echo "$as_me:$LINENO: error: No rm utility found." >&5
3382echo "$as_me: error: No rm utility found." >&2;}
3383   { (exit 1); exit 1; }; }
3384
3385if test "$db_cv_rpc" = "yes"; then
3386	if test -n "$ac_tool_prefix"; then
3387  # Extract the first word of "${ac_tool_prefix}rpcgen", so it can be a program name with args.
3388set dummy ${ac_tool_prefix}rpcgen; ac_word=$2
3389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3391if test "${ac_cv_prog_RPCGEN+set}" = set; then
3392  echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394  if test -n "$RPCGEN"; then
3395  ac_cv_prog_RPCGEN="$RPCGEN" # Let the user override the test.
3396else
3397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398for as_dir in $PATH
3399do
3400  IFS=$as_save_IFS
3401  test -z "$as_dir" && as_dir=.
3402  for ac_exec_ext in '' $ac_executable_extensions; do
3403  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3404    ac_cv_prog_RPCGEN="${ac_tool_prefix}rpcgen"
3405    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406    break 2
3407  fi
3408done
3409done
3410IFS=$as_save_IFS
3411
3412fi
3413fi
3414RPCGEN=$ac_cv_prog_RPCGEN
3415if test -n "$RPCGEN"; then
3416  { echo "$as_me:$LINENO: result: $RPCGEN" >&5
3417echo "${ECHO_T}$RPCGEN" >&6; }
3418else
3419  { echo "$as_me:$LINENO: result: no" >&5
3420echo "${ECHO_T}no" >&6; }
3421fi
3422
3423
3424fi
3425if test -z "$ac_cv_prog_RPCGEN"; then
3426  ac_ct_RPCGEN=$RPCGEN
3427  # Extract the first word of "rpcgen", so it can be a program name with args.
3428set dummy rpcgen; ac_word=$2
3429{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3431if test "${ac_cv_prog_ac_ct_RPCGEN+set}" = set; then
3432  echo $ECHO_N "(cached) $ECHO_C" >&6
3433else
3434  if test -n "$ac_ct_RPCGEN"; then
3435  ac_cv_prog_ac_ct_RPCGEN="$ac_ct_RPCGEN" # Let the user override the test.
3436else
3437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438for as_dir in $PATH
3439do
3440  IFS=$as_save_IFS
3441  test -z "$as_dir" && as_dir=.
3442  for ac_exec_ext in '' $ac_executable_extensions; do
3443  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3444    ac_cv_prog_ac_ct_RPCGEN="rpcgen"
3445    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3446    break 2
3447  fi
3448done
3449done
3450IFS=$as_save_IFS
3451
3452fi
3453fi
3454ac_ct_RPCGEN=$ac_cv_prog_ac_ct_RPCGEN
3455if test -n "$ac_ct_RPCGEN"; then
3456  { echo "$as_me:$LINENO: result: $ac_ct_RPCGEN" >&5
3457echo "${ECHO_T}$ac_ct_RPCGEN" >&6; }
3458else
3459  { echo "$as_me:$LINENO: result: no" >&5
3460echo "${ECHO_T}no" >&6; }
3461fi
3462
3463  if test "x$ac_ct_RPCGEN" = x; then
3464    RPCGEN="none"
3465  else
3466    case $cross_compiling:$ac_tool_warned in
3467yes:)
3468{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3469whose name does not start with the host triplet.  If you think this
3470configuration is useful to you, please write to autoconf@gnu.org." >&5
3471echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3472whose name does not start with the host triplet.  If you think this
3473configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3474ac_tool_warned=yes ;;
3475esac
3476    RPCGEN=$ac_ct_RPCGEN
3477  fi
3478else
3479  RPCGEN="$ac_cv_prog_RPCGEN"
3480fi
3481
3482	test "$RPCGEN" = "none" && { { echo "$as_me:$LINENO: error: No rpcgen utility found." >&5
3483echo "$as_me: error: No rpcgen utility found." >&2;}
3484   { (exit 1); exit 1; }; }
3485fi
3486
3487# We need a complete path for sh, because some make utility implementations get
3488# upset if SHELL is set to just the command name.  Don't use the SHELL variable
3489# here because the user likely has the SHELL variable set to something other
3490# than the Bourne shell, which is what Make wants.
3491if test -n "$ac_tool_prefix"; then
3492  # Extract the first word of "${ac_tool_prefix}sh", so it can be a program name with args.
3493set dummy ${ac_tool_prefix}sh; ac_word=$2
3494{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3496if test "${ac_cv_path_db_cv_path_sh+set}" = set; then
3497  echo $ECHO_N "(cached) $ECHO_C" >&6
3498else
3499  case $db_cv_path_sh in
3500  [\\/]* | ?:[\\/]*)
3501  ac_cv_path_db_cv_path_sh="$db_cv_path_sh" # Let the user override the test with a path.
3502  ;;
3503  *)
3504  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505for as_dir in $PATH
3506do
3507  IFS=$as_save_IFS
3508  test -z "$as_dir" && as_dir=.
3509  for ac_exec_ext in '' $ac_executable_extensions; do
3510  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511    ac_cv_path_db_cv_path_sh="$as_dir/$ac_word$ac_exec_ext"
3512    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3513    break 2
3514  fi
3515done
3516done
3517IFS=$as_save_IFS
3518
3519  ;;
3520esac
3521fi
3522db_cv_path_sh=$ac_cv_path_db_cv_path_sh
3523if test -n "$db_cv_path_sh"; then
3524  { echo "$as_me:$LINENO: result: $db_cv_path_sh" >&5
3525echo "${ECHO_T}$db_cv_path_sh" >&6; }
3526else
3527  { echo "$as_me:$LINENO: result: no" >&5
3528echo "${ECHO_T}no" >&6; }
3529fi
3530
3531
3532fi
3533if test -z "$ac_cv_path_db_cv_path_sh"; then
3534  ac_pt_db_cv_path_sh=$db_cv_path_sh
3535  # Extract the first word of "sh", so it can be a program name with args.
3536set dummy sh; ac_word=$2
3537{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3539if test "${ac_cv_path_ac_pt_db_cv_path_sh+set}" = set; then
3540  echo $ECHO_N "(cached) $ECHO_C" >&6
3541else
3542  case $ac_pt_db_cv_path_sh in
3543  [\\/]* | ?:[\\/]*)
3544  ac_cv_path_ac_pt_db_cv_path_sh="$ac_pt_db_cv_path_sh" # Let the user override the test with a path.
3545  ;;
3546  *)
3547  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548for as_dir in $PATH
3549do
3550  IFS=$as_save_IFS
3551  test -z "$as_dir" && as_dir=.
3552  for ac_exec_ext in '' $ac_executable_extensions; do
3553  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3554    ac_cv_path_ac_pt_db_cv_path_sh="$as_dir/$ac_word$ac_exec_ext"
3555    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3556    break 2
3557  fi
3558done
3559done
3560IFS=$as_save_IFS
3561
3562  ;;
3563esac
3564fi
3565ac_pt_db_cv_path_sh=$ac_cv_path_ac_pt_db_cv_path_sh
3566if test -n "$ac_pt_db_cv_path_sh"; then
3567  { echo "$as_me:$LINENO: result: $ac_pt_db_cv_path_sh" >&5
3568echo "${ECHO_T}$ac_pt_db_cv_path_sh" >&6; }
3569else
3570  { echo "$as_me:$LINENO: result: no" >&5
3571echo "${ECHO_T}no" >&6; }
3572fi
3573
3574  if test "x$ac_pt_db_cv_path_sh" = x; then
3575    db_cv_path_sh="none"
3576  else
3577    case $cross_compiling:$ac_tool_warned in
3578yes:)
3579{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3580whose name does not start with the host triplet.  If you think this
3581configuration is useful to you, please write to autoconf@gnu.org." >&5
3582echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3583whose name does not start with the host triplet.  If you think this
3584configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3585ac_tool_warned=yes ;;
3586esac
3587    db_cv_path_sh=$ac_pt_db_cv_path_sh
3588  fi
3589else
3590  db_cv_path_sh="$ac_cv_path_db_cv_path_sh"
3591fi
3592
3593test "$db_cv_path_sh" = "none" && { { echo "$as_me:$LINENO: error: No sh utility found." >&5
3594echo "$as_me: error: No sh utility found." >&2;}
3595   { (exit 1); exit 1; }; }
3596
3597# Don't strip the binaries if --enable-debug was specified.
3598if test "$db_cv_debug" = yes; then
3599	STRIP=":"
3600fi
3601# Find a good install program.  We prefer a C program (faster),
3602# so one script is as good as another.  But avoid the broken or
3603# incompatible versions:
3604# SysV /etc/install, /usr/sbin/install
3605# SunOS /usr/etc/install
3606# IRIX /sbin/install
3607# AIX /bin/install
3608# AmigaOS /C/install, which installs bootblocks on floppy discs
3609# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3610# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3611# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3612# OS/2's system install, which has a completely different semantic
3613# ./install, which can be erroneously created by make from ./install.sh.
3614{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3615echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3616if test -z "$INSTALL"; then
3617if test "${ac_cv_path_install+set}" = set; then
3618  echo $ECHO_N "(cached) $ECHO_C" >&6
3619else
3620  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621for as_dir in $PATH
3622do
3623  IFS=$as_save_IFS
3624  test -z "$as_dir" && as_dir=.
3625  # Account for people who put trailing slashes in PATH elements.
3626case $as_dir/ in
3627  ./ | .// | /cC/* | \
3628  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3629  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3630  /usr/ucb/* ) ;;
3631  *)
3632    # OSF1 and SCO ODT 3.0 have their own names for install.
3633    # Don't use installbsd from OSF since it installs stuff as root
3634    # by default.
3635    for ac_prog in ginstall scoinst install; do
3636      for ac_exec_ext in '' $ac_executable_extensions; do
3637	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3638	  if test $ac_prog = install &&
3639	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3640	    # AIX install.  It has an incompatible calling convention.
3641	    :
3642	  elif test $ac_prog = install &&
3643	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3644	    # program-specific install script used by HP pwplus--don't use.
3645	    :
3646	  else
3647	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3648	    break 3
3649	  fi
3650	fi
3651      done
3652    done
3653    ;;
3654esac
3655done
3656IFS=$as_save_IFS
3657
3658
3659fi
3660  if test "${ac_cv_path_install+set}" = set; then
3661    INSTALL=$ac_cv_path_install
3662  else
3663    # As a last resort, use the slow shell script.  Don't cache a
3664    # value for INSTALL within a source directory, because that will
3665    # break other packages using the cache if that directory is
3666    # removed, or if the value is a relative name.
3667    INSTALL=$ac_install_sh
3668  fi
3669fi
3670{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3671echo "${ECHO_T}$INSTALL" >&6; }
3672
3673# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3674# It thinks the first close brace ends the variable substitution.
3675test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3676
3677test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3678
3679test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3680
3681
3682BUILD_TARGET="library_build"
3683INSTALL_TARGET="library_install"
3684
3685# Respect the environment LIBS settings
3686LIBSO_LIBS="$LIBS"
3687
3688# This is where we handle stuff that autoconf can't handle: compiler,
3689# preprocessor and load flags, libraries that the standard tests don't
3690# look for.
3691#
3692# There are additional libraries we need for some compiler/architecture
3693# combinations.
3694#
3695# Some architectures require DB to be compiled with special flags and/or
3696# libraries for threaded applications
3697#
3698# The makefile CC may be different than the CC used in config testing,
3699# because the makefile CC may be set to use $(LIBTOOL).
3700#
3701# Don't override anything if it's already set from the environment.
3702optimize_debug="-O"
3703case "$host_os" in
3704aix4.3.*|aix5*)
3705	case "$host_os" in
3706	aix4.3.*)
3707		CPPFLAGS="$CPPFLAGS -D_LINUX_SOURCE_COMPAT";;
3708	esac
3709	# Trying to optimize too aggressively on AIX leads to problems, the
3710	# compiler (xlc 8.0) seems to reorder code when it shouldn't.
3711	optimize_debug="-O0"
3712	CC=${CC-"xlc_r"}
3713	CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
3714	LDFLAGS="$LDFLAGS -Wl,-brtl";;
3715bsdi3*)	CC=${CC-"shlicc2"}
3716	LIBSO_LIBS="$LIBSO_LIBS -lipc";;
3717cygwin*)
3718	CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_REENTRANT";;
3719freebsd*)
3720	CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
3721	LDFLAGS="$LDFLAGS -pthread";;
3722gnu*|k*bsd*-gnu|linux*)
3723	CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_REENTRANT";;
3724hpux*)	CPPFLAGS="$CPPFLAGS -D_REENTRANT";;
3725irix*)	optimize_debug="-O2"
3726	CPPFLAGS="$CPPFLAGS -D_SGI_MP_SOURCE";;
3727mpeix*)	CPPFLAGS="$CPPFLAGS -D_POSIX_SOURCE -D_SOCKET_SOURCE"
3728	LIBSO_LIBS="$LIBSO_LIBS -lsocket -lsvipc";;
3729osf*)	CPPFLAGS="$CPPFLAGS -pthread";;
3730*qnx*)	qnx_build="yes"
3731	cat >>confdefs.h <<\_ACEOF
3732#define HAVE_QNX 1
3733_ACEOF
3734
3735
3736;;
3737solaris*)
3738	CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS ";;
3739esac
3740
3741# If the user wants a debugging environment, change any compiler optimization
3742# flags to -g.  We used to add -g to the -O compiler flags, but compilers are
3743# good enough at code re-organization that debugging with -O no longer works.
3744# If you want to compile with a different set of flags, specify CFLAGS in the
3745# environment before configuring.
3746if test "$db_cv_debug" = "yes"; then
3747	cat >>confdefs.h <<\_ACEOF
3748#define DEBUG 1
3749_ACEOF
3750
3751
3752
3753
3754	optimize_debug="-g"
3755fi
3756
3757# Set CFLAGS/CXXFLAGS.  We MUST set the flags before we call autoconf
3758# compiler configuration macros, because if we don't, they set CFLAGS
3759# to no optimization and -g, which isn't what we want.
3760CFLAGS=${CFLAGS-$optimize_debug}
3761CXXFLAGS=${CXXFLAGS-"$CFLAGS"}
3762
3763# The default compiler is cc (NOT gcc), the default CFLAGS is as specified
3764# above, NOT what is set by AC_PROG_CC, as it won't set optimization flags
3765# for any compiler other than gcc.
3766ac_ext=c
3767ac_cpp='$CPP $CPPFLAGS'
3768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771if test -n "$ac_tool_prefix"; then
3772  for ac_prog in cc gcc
3773  do
3774    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3775set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3776{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3778if test "${ac_cv_prog_CC+set}" = set; then
3779  echo $ECHO_N "(cached) $ECHO_C" >&6
3780else
3781  if test -n "$CC"; then
3782  ac_cv_prog_CC="$CC" # Let the user override the test.
3783else
3784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785for as_dir in $PATH
3786do
3787  IFS=$as_save_IFS
3788  test -z "$as_dir" && as_dir=.
3789  for ac_exec_ext in '' $ac_executable_extensions; do
3790  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3791    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3792    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3793    break 2
3794  fi
3795done
3796done
3797IFS=$as_save_IFS
3798
3799fi
3800fi
3801CC=$ac_cv_prog_CC
3802if test -n "$CC"; then
3803  { echo "$as_me:$LINENO: result: $CC" >&5
3804echo "${ECHO_T}$CC" >&6; }
3805else
3806  { echo "$as_me:$LINENO: result: no" >&5
3807echo "${ECHO_T}no" >&6; }
3808fi
3809
3810
3811    test -n "$CC" && break
3812  done
3813fi
3814if test -z "$CC"; then
3815  ac_ct_CC=$CC
3816  for ac_prog in cc gcc
3817do
3818  # Extract the first word of "$ac_prog", so it can be a program name with args.
3819set dummy $ac_prog; ac_word=$2
3820{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3822if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3823  echo $ECHO_N "(cached) $ECHO_C" >&6
3824else
3825  if test -n "$ac_ct_CC"; then
3826  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3827else
3828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829for as_dir in $PATH
3830do
3831  IFS=$as_save_IFS
3832  test -z "$as_dir" && as_dir=.
3833  for ac_exec_ext in '' $ac_executable_extensions; do
3834  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835    ac_cv_prog_ac_ct_CC="$ac_prog"
3836    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3837    break 2
3838  fi
3839done
3840done
3841IFS=$as_save_IFS
3842
3843fi
3844fi
3845ac_ct_CC=$ac_cv_prog_ac_ct_CC
3846if test -n "$ac_ct_CC"; then
3847  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3848echo "${ECHO_T}$ac_ct_CC" >&6; }
3849else
3850  { echo "$as_me:$LINENO: result: no" >&5
3851echo "${ECHO_T}no" >&6; }
3852fi
3853
3854
3855  test -n "$ac_ct_CC" && break
3856done
3857
3858  if test "x$ac_ct_CC" = x; then
3859    CC=""
3860  else
3861    case $cross_compiling:$ac_tool_warned in
3862yes:)
3863{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3864whose name does not start with the host triplet.  If you think this
3865configuration is useful to you, please write to autoconf@gnu.org." >&5
3866echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3867whose name does not start with the host triplet.  If you think this
3868configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3869ac_tool_warned=yes ;;
3870esac
3871    CC=$ac_ct_CC
3872  fi
3873fi
3874
3875
3876test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3877See \`config.log' for more details." >&5
3878echo "$as_me: error: no acceptable C compiler found in \$PATH
3879See \`config.log' for more details." >&2;}
3880   { (exit 1); exit 1; }; }
3881
3882# Provide some information about the compiler.
3883echo "$as_me:$LINENO: checking for C compiler version" >&5
3884ac_compiler=`set X $ac_compile; echo $2`
3885{ (ac_try="$ac_compiler --version >&5"
3886case "(($ac_try" in
3887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888  *) ac_try_echo=$ac_try;;
3889esac
3890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3891  (eval "$ac_compiler --version >&5") 2>&5
3892  ac_status=$?
3893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894  (exit $ac_status); }
3895{ (ac_try="$ac_compiler -v >&5"
3896case "(($ac_try" in
3897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898  *) ac_try_echo=$ac_try;;
3899esac
3900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901  (eval "$ac_compiler -v >&5") 2>&5
3902  ac_status=$?
3903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904  (exit $ac_status); }
3905{ (ac_try="$ac_compiler -V >&5"
3906case "(($ac_try" in
3907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908  *) ac_try_echo=$ac_try;;
3909esac
3910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3911  (eval "$ac_compiler -V >&5") 2>&5
3912  ac_status=$?
3913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914  (exit $ac_status); }
3915
3916cat >conftest.$ac_ext <<_ACEOF
3917/* confdefs.h.  */
3918_ACEOF
3919cat confdefs.h >>conftest.$ac_ext
3920cat >>conftest.$ac_ext <<_ACEOF
3921/* end confdefs.h.  */
3922
3923int
3924main ()
3925{
3926
3927  ;
3928  return 0;
3929}
3930_ACEOF
3931ac_clean_files_save=$ac_clean_files
3932ac_clean_files="$ac_clean_files a.out a.exe b.out"
3933# Try to create an executable without -o first, disregard a.out.
3934# It will help us diagnose broken compilers, and finding out an intuition
3935# of exeext.
3936{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3937echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3938ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3939#
3940# List of possible output files, starting from the most likely.
3941# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3942# only as a last resort.  b.out is created by i960 compilers.
3943ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3944#
3945# The IRIX 6 linker writes into existing files which may not be
3946# executable, retaining their permissions.  Remove them first so a
3947# subsequent execution test works.
3948ac_rmfiles=
3949for ac_file in $ac_files
3950do
3951  case $ac_file in
3952    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3953    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3954  esac
3955done
3956rm -f $ac_rmfiles
3957
3958if { (ac_try="$ac_link_default"
3959case "(($ac_try" in
3960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961  *) ac_try_echo=$ac_try;;
3962esac
3963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964  (eval "$ac_link_default") 2>&5
3965  ac_status=$?
3966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967  (exit $ac_status); }; then
3968  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3969# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3970# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3971# so that the user can short-circuit this test for compilers unknown to
3972# Autoconf.
3973for ac_file in $ac_files ''
3974do
3975  test -f "$ac_file" || continue
3976  case $ac_file in
3977    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3978	;;
3979    [ab].out )
3980	# We found the default executable, but exeext='' is most
3981	# certainly right.
3982	break;;
3983    *.* )
3984        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3985	then :; else
3986	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3987	fi
3988	# We set ac_cv_exeext here because the later test for it is not
3989	# safe: cross compilers may not add the suffix if given an `-o'
3990	# argument, so we may need to know it at that point already.
3991	# Even if this section looks crufty: it has the advantage of
3992	# actually working.
3993	break;;
3994    * )
3995	break;;
3996  esac
3997done
3998test "$ac_cv_exeext" = no && ac_cv_exeext=
3999
4000else
4001  ac_file=''
4002fi
4003
4004{ echo "$as_me:$LINENO: result: $ac_file" >&5
4005echo "${ECHO_T}$ac_file" >&6; }
4006if test -z "$ac_file"; then
4007  echo "$as_me: failed program was:" >&5
4008sed 's/^/| /' conftest.$ac_ext >&5
4009
4010{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
4011See \`config.log' for more details." >&5
4012echo "$as_me: error: C compiler cannot create executables
4013See \`config.log' for more details." >&2;}
4014   { (exit 77); exit 77; }; }
4015fi
4016
4017ac_exeext=$ac_cv_exeext
4018
4019# Check that the compiler produces executables we can run.  If not, either
4020# the compiler is broken, or we cross compile.
4021{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4022echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
4023# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4024# If not cross compiling, check that we can run a simple program.
4025if test "$cross_compiling" != yes; then
4026  if { ac_try='./$ac_file'
4027  { (case "(($ac_try" in
4028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029  *) ac_try_echo=$ac_try;;
4030esac
4031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032  (eval "$ac_try") 2>&5
4033  ac_status=$?
4034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035  (exit $ac_status); }; }; then
4036    cross_compiling=no
4037  else
4038    if test "$cross_compiling" = maybe; then
4039	cross_compiling=yes
4040    else
4041	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4042If you meant to cross compile, use \`--host'.
4043See \`config.log' for more details." >&5
4044echo "$as_me: error: cannot run C compiled programs.
4045If you meant to cross compile, use \`--host'.
4046See \`config.log' for more details." >&2;}
4047   { (exit 1); exit 1; }; }
4048    fi
4049  fi
4050fi
4051{ echo "$as_me:$LINENO: result: yes" >&5
4052echo "${ECHO_T}yes" >&6; }
4053
4054rm -f a.out a.exe conftest$ac_cv_exeext b.out
4055ac_clean_files=$ac_clean_files_save
4056# Check that the compiler produces executables we can run.  If not, either
4057# the compiler is broken, or we cross compile.
4058{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4059echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
4060{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
4061echo "${ECHO_T}$cross_compiling" >&6; }
4062
4063{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
4064echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
4065if { (ac_try="$ac_link"
4066case "(($ac_try" in
4067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068  *) ac_try_echo=$ac_try;;
4069esac
4070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071  (eval "$ac_link") 2>&5
4072  ac_status=$?
4073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074  (exit $ac_status); }; then
4075  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4076# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4077# work properly (i.e., refer to `conftest.exe'), while it won't with
4078# `rm'.
4079for ac_file in conftest.exe conftest conftest.*; do
4080  test -f "$ac_file" || continue
4081  case $ac_file in
4082    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4083    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4084	  break;;
4085    * ) break;;
4086  esac
4087done
4088else
4089  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4090See \`config.log' for more details." >&5
4091echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4092See \`config.log' for more details." >&2;}
4093   { (exit 1); exit 1; }; }
4094fi
4095
4096rm -f conftest$ac_cv_exeext
4097{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4098echo "${ECHO_T}$ac_cv_exeext" >&6; }
4099
4100rm -f conftest.$ac_ext
4101EXEEXT=$ac_cv_exeext
4102ac_exeext=$EXEEXT
4103{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
4104echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
4105if test "${ac_cv_objext+set}" = set; then
4106  echo $ECHO_N "(cached) $ECHO_C" >&6
4107else
4108  cat >conftest.$ac_ext <<_ACEOF
4109/* confdefs.h.  */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h.  */
4114
4115int
4116main ()
4117{
4118
4119  ;
4120  return 0;
4121}
4122_ACEOF
4123rm -f conftest.o conftest.obj
4124if { (ac_try="$ac_compile"
4125case "(($ac_try" in
4126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127  *) ac_try_echo=$ac_try;;
4128esac
4129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130  (eval "$ac_compile") 2>&5
4131  ac_status=$?
4132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133  (exit $ac_status); }; then
4134  for ac_file in conftest.o conftest.obj conftest.*; do
4135  test -f "$ac_file" || continue;
4136  case $ac_file in
4137    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
4138    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4139       break;;
4140  esac
4141done
4142else
4143  echo "$as_me: failed program was:" >&5
4144sed 's/^/| /' conftest.$ac_ext >&5
4145
4146{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4147See \`config.log' for more details." >&5
4148echo "$as_me: error: cannot compute suffix of object files: cannot compile
4149See \`config.log' for more details." >&2;}
4150   { (exit 1); exit 1; }; }
4151fi
4152
4153rm -f conftest.$ac_cv_objext conftest.$ac_ext
4154fi
4155{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4156echo "${ECHO_T}$ac_cv_objext" >&6; }
4157OBJEXT=$ac_cv_objext
4158ac_objext=$OBJEXT
4159{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4160echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4161if test "${ac_cv_c_compiler_gnu+set}" = set; then
4162  echo $ECHO_N "(cached) $ECHO_C" >&6
4163else
4164  cat >conftest.$ac_ext <<_ACEOF
4165/* confdefs.h.  */
4166_ACEOF
4167cat confdefs.h >>conftest.$ac_ext
4168cat >>conftest.$ac_ext <<_ACEOF
4169/* end confdefs.h.  */
4170
4171int
4172main ()
4173{
4174#ifndef __GNUC__
4175       choke me
4176#endif
4177
4178  ;
4179  return 0;
4180}
4181_ACEOF
4182rm -f conftest.$ac_objext
4183if { (ac_try="$ac_compile"
4184case "(($ac_try" in
4185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186  *) ac_try_echo=$ac_try;;
4187esac
4188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189  (eval "$ac_compile") 2>conftest.er1
4190  ac_status=$?
4191  grep -v '^ *+' conftest.er1 >conftest.err
4192  rm -f conftest.er1
4193  cat conftest.err >&5
4194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195  (exit $ac_status); } && {
4196	 test -z "$ac_c_werror_flag" ||
4197	 test ! -s conftest.err
4198       } && test -s conftest.$ac_objext; then
4199  ac_compiler_gnu=yes
4200else
4201  echo "$as_me: failed program was:" >&5
4202sed 's/^/| /' conftest.$ac_ext >&5
4203
4204	ac_compiler_gnu=no
4205fi
4206
4207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208ac_cv_c_compiler_gnu=$ac_compiler_gnu
4209
4210fi
4211{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4212echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4213GCC=`test $ac_compiler_gnu = yes && echo yes`
4214ac_test_CFLAGS=${CFLAGS+set}
4215ac_save_CFLAGS=$CFLAGS
4216{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4217echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4218if test "${ac_cv_prog_cc_g+set}" = set; then
4219  echo $ECHO_N "(cached) $ECHO_C" >&6
4220else
4221  ac_save_c_werror_flag=$ac_c_werror_flag
4222   ac_c_werror_flag=yes
4223   ac_cv_prog_cc_g=no
4224   CFLAGS="-g"
4225   cat >conftest.$ac_ext <<_ACEOF
4226/* confdefs.h.  */
4227_ACEOF
4228cat confdefs.h >>conftest.$ac_ext
4229cat >>conftest.$ac_ext <<_ACEOF
4230/* end confdefs.h.  */
4231
4232int
4233main ()
4234{
4235
4236  ;
4237  return 0;
4238}
4239_ACEOF
4240rm -f conftest.$ac_objext
4241if { (ac_try="$ac_compile"
4242case "(($ac_try" in
4243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244  *) ac_try_echo=$ac_try;;
4245esac
4246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247  (eval "$ac_compile") 2>conftest.er1
4248  ac_status=$?
4249  grep -v '^ *+' conftest.er1 >conftest.err
4250  rm -f conftest.er1
4251  cat conftest.err >&5
4252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253  (exit $ac_status); } && {
4254	 test -z "$ac_c_werror_flag" ||
4255	 test ! -s conftest.err
4256       } && test -s conftest.$ac_objext; then
4257  ac_cv_prog_cc_g=yes
4258else
4259  echo "$as_me: failed program was:" >&5
4260sed 's/^/| /' conftest.$ac_ext >&5
4261
4262	CFLAGS=""
4263      cat >conftest.$ac_ext <<_ACEOF
4264/* confdefs.h.  */
4265_ACEOF
4266cat confdefs.h >>conftest.$ac_ext
4267cat >>conftest.$ac_ext <<_ACEOF
4268/* end confdefs.h.  */
4269
4270int
4271main ()
4272{
4273
4274  ;
4275  return 0;
4276}
4277_ACEOF
4278rm -f conftest.$ac_objext
4279if { (ac_try="$ac_compile"
4280case "(($ac_try" in
4281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282  *) ac_try_echo=$ac_try;;
4283esac
4284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285  (eval "$ac_compile") 2>conftest.er1
4286  ac_status=$?
4287  grep -v '^ *+' conftest.er1 >conftest.err
4288  rm -f conftest.er1
4289  cat conftest.err >&5
4290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291  (exit $ac_status); } && {
4292	 test -z "$ac_c_werror_flag" ||
4293	 test ! -s conftest.err
4294       } && test -s conftest.$ac_objext; then
4295  :
4296else
4297  echo "$as_me: failed program was:" >&5
4298sed 's/^/| /' conftest.$ac_ext >&5
4299
4300	ac_c_werror_flag=$ac_save_c_werror_flag
4301	 CFLAGS="-g"
4302	 cat >conftest.$ac_ext <<_ACEOF
4303/* confdefs.h.  */
4304_ACEOF
4305cat confdefs.h >>conftest.$ac_ext
4306cat >>conftest.$ac_ext <<_ACEOF
4307/* end confdefs.h.  */
4308
4309int
4310main ()
4311{
4312
4313  ;
4314  return 0;
4315}
4316_ACEOF
4317rm -f conftest.$ac_objext
4318if { (ac_try="$ac_compile"
4319case "(($ac_try" in
4320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321  *) ac_try_echo=$ac_try;;
4322esac
4323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324  (eval "$ac_compile") 2>conftest.er1
4325  ac_status=$?
4326  grep -v '^ *+' conftest.er1 >conftest.err
4327  rm -f conftest.er1
4328  cat conftest.err >&5
4329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330  (exit $ac_status); } && {
4331	 test -z "$ac_c_werror_flag" ||
4332	 test ! -s conftest.err
4333       } && test -s conftest.$ac_objext; then
4334  ac_cv_prog_cc_g=yes
4335else
4336  echo "$as_me: failed program was:" >&5
4337sed 's/^/| /' conftest.$ac_ext >&5
4338
4339
4340fi
4341
4342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343fi
4344
4345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346fi
4347
4348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349   ac_c_werror_flag=$ac_save_c_werror_flag
4350fi
4351{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4352echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4353if test "$ac_test_CFLAGS" = set; then
4354  CFLAGS=$ac_save_CFLAGS
4355elif test $ac_cv_prog_cc_g = yes; then
4356  if test "$GCC" = yes; then
4357    CFLAGS="-g -O2"
4358  else
4359    CFLAGS="-g"
4360  fi
4361else
4362  if test "$GCC" = yes; then
4363    CFLAGS="-O2"
4364  else
4365    CFLAGS=
4366  fi
4367fi
4368{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4369echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4370if test "${ac_cv_prog_cc_c89+set}" = set; then
4371  echo $ECHO_N "(cached) $ECHO_C" >&6
4372else
4373  ac_cv_prog_cc_c89=no
4374ac_save_CC=$CC
4375cat >conftest.$ac_ext <<_ACEOF
4376/* confdefs.h.  */
4377_ACEOF
4378cat confdefs.h >>conftest.$ac_ext
4379cat >>conftest.$ac_ext <<_ACEOF
4380/* end confdefs.h.  */
4381#include <stdarg.h>
4382#include <stdio.h>
4383#include <sys/types.h>
4384#include <sys/stat.h>
4385/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4386struct buf { int x; };
4387FILE * (*rcsopen) (struct buf *, struct stat *, int);
4388static char *e (p, i)
4389     char **p;
4390     int i;
4391{
4392  return p[i];
4393}
4394static char *f (char * (*g) (char **, int), char **p, ...)
4395{
4396  char *s;
4397  va_list v;
4398  va_start (v,p);
4399  s = g (p, va_arg (v,int));
4400  va_end (v);
4401  return s;
4402}
4403
4404/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4405   function prototypes and stuff, but not '\xHH' hex character constants.
4406   These don't provoke an error unfortunately, instead are silently treated
4407   as 'x'.  The following induces an error, until -std is added to get
4408   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4409   array size at least.  It's necessary to write '\x00'==0 to get something
4410   that's true only with -std.  */
4411int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4412
4413/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4414   inside strings and character constants.  */
4415#define FOO(x) 'x'
4416int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4417
4418int test (int i, double x);
4419struct s1 {int (*f) (int a);};
4420struct s2 {int (*f) (double a);};
4421int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4422int argc;
4423char **argv;
4424int
4425main ()
4426{
4427return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4428  ;
4429  return 0;
4430}
4431_ACEOF
4432for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4433	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4434do
4435  CC="$ac_save_CC $ac_arg"
4436  rm -f conftest.$ac_objext
4437if { (ac_try="$ac_compile"
4438case "(($ac_try" in
4439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440  *) ac_try_echo=$ac_try;;
4441esac
4442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443  (eval "$ac_compile") 2>conftest.er1
4444  ac_status=$?
4445  grep -v '^ *+' conftest.er1 >conftest.err
4446  rm -f conftest.er1
4447  cat conftest.err >&5
4448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449  (exit $ac_status); } && {
4450	 test -z "$ac_c_werror_flag" ||
4451	 test ! -s conftest.err
4452       } && test -s conftest.$ac_objext; then
4453  ac_cv_prog_cc_c89=$ac_arg
4454else
4455  echo "$as_me: failed program was:" >&5
4456sed 's/^/| /' conftest.$ac_ext >&5
4457
4458
4459fi
4460
4461rm -f core conftest.err conftest.$ac_objext
4462  test "x$ac_cv_prog_cc_c89" != "xno" && break
4463done
4464rm -f conftest.$ac_ext
4465CC=$ac_save_CC
4466
4467fi
4468# AC_CACHE_VAL
4469case "x$ac_cv_prog_cc_c89" in
4470  x)
4471    { echo "$as_me:$LINENO: result: none needed" >&5
4472echo "${ECHO_T}none needed" >&6; } ;;
4473  xno)
4474    { echo "$as_me:$LINENO: result: unsupported" >&5
4475echo "${ECHO_T}unsupported" >&6; } ;;
4476  *)
4477    CC="$CC $ac_cv_prog_cc_c89"
4478    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4479echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4480esac
4481
4482
4483ac_ext=c
4484ac_cpp='$CPP $CPPFLAGS'
4485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487ac_compiler_gnu=$ac_cv_c_compiler_gnu
4488
4489
4490# We know what compiler we're going to use, now.  Set per-compiler flags.
4491if test "$GCC" = "yes"; then
4492	# Use -O3 if we're using gcc, unless we're doing a small build, in
4493	# which case we use -Os alone.  The code size for -O3 is quite a
4494	# bit larger than -O2: a compromise is "-Os -finline-functions",
4495	# it's smaller and explicitly inlining the functions helps Berkeley
4496	# DB.
4497	CFLAGS="$CFLAGS "
4498	if test "$db_cv_smallbuild" = "yes"; then
4499		CFLAGS=`echo "$CFLAGS" | sed 's/-O /-Os /g'`
4500	else
4501		CFLAGS=`echo "$CFLAGS" | sed 's/-O /-O3 /g'`
4502	fi
4503else
4504	case "$host_os" in
4505	hpux11.0*)	;;
4506	hpux11*)	CPPFLAGS="$CPPFLAGS -mt";;
4507	esac
4508fi
4509
4510# Check for "const" and "inline" keywords.
4511
4512{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4513echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4514if test "${ac_cv_c_const+set}" = set; then
4515  echo $ECHO_N "(cached) $ECHO_C" >&6
4516else
4517  cat >conftest.$ac_ext <<_ACEOF
4518/* confdefs.h.  */
4519_ACEOF
4520cat confdefs.h >>conftest.$ac_ext
4521cat >>conftest.$ac_ext <<_ACEOF
4522/* end confdefs.h.  */
4523
4524int
4525main ()
4526{
4527/* FIXME: Include the comments suggested by Paul. */
4528#ifndef __cplusplus
4529  /* Ultrix mips cc rejects this.  */
4530  typedef int charset[2];
4531  const charset cs;
4532  /* SunOS 4.1.1 cc rejects this.  */
4533  char const *const *pcpcc;
4534  char **ppc;
4535  /* NEC SVR4.0.2 mips cc rejects this.  */
4536  struct point {int x, y;};
4537  static struct point const zero = {0,0};
4538  /* AIX XL C 1.02.0.0 rejects this.
4539     It does not let you subtract one const X* pointer from another in
4540     an arm of an if-expression whose if-part is not a constant
4541     expression */
4542  const char *g = "string";
4543  pcpcc = &g + (g ? g-g : 0);
4544  /* HPUX 7.0 cc rejects these. */
4545  ++pcpcc;
4546  ppc = (char**) pcpcc;
4547  pcpcc = (char const *const *) ppc;
4548  { /* SCO 3.2v4 cc rejects this.  */
4549    char *t;
4550    char const *s = 0 ? (char *) 0 : (char const *) 0;
4551
4552    *t++ = 0;
4553    if (s) return 0;
4554  }
4555  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4556    int x[] = {25, 17};
4557    const int *foo = &x[0];
4558    ++foo;
4559  }
4560  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4561    typedef const int *iptr;
4562    iptr p = 0;
4563    ++p;
4564  }
4565  { /* AIX XL C 1.02.0.0 rejects this saying
4566       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4567    struct s { int j; const int *ap[3]; };
4568    struct s *b; b->j = 5;
4569  }
4570  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4571    const int foo = 10;
4572    if (!foo) return 0;
4573  }
4574  return !cs[0] && !zero.x;
4575#endif
4576
4577  ;
4578  return 0;
4579}
4580_ACEOF
4581rm -f conftest.$ac_objext
4582if { (ac_try="$ac_compile"
4583case "(($ac_try" in
4584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585  *) ac_try_echo=$ac_try;;
4586esac
4587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4588  (eval "$ac_compile") 2>conftest.er1
4589  ac_status=$?
4590  grep -v '^ *+' conftest.er1 >conftest.err
4591  rm -f conftest.er1
4592  cat conftest.err >&5
4593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594  (exit $ac_status); } && {
4595	 test -z "$ac_c_werror_flag" ||
4596	 test ! -s conftest.err
4597       } && test -s conftest.$ac_objext; then
4598  ac_cv_c_const=yes
4599else
4600  echo "$as_me: failed program was:" >&5
4601sed 's/^/| /' conftest.$ac_ext >&5
4602
4603	ac_cv_c_const=no
4604fi
4605
4606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607fi
4608{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4609echo "${ECHO_T}$ac_cv_c_const" >&6; }
4610if test $ac_cv_c_const = no; then
4611
4612cat >>confdefs.h <<\_ACEOF
4613#define const
4614_ACEOF
4615
4616fi
4617
4618{ echo "$as_me:$LINENO: checking for inline" >&5
4619echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4620if test "${ac_cv_c_inline+set}" = set; then
4621  echo $ECHO_N "(cached) $ECHO_C" >&6
4622else
4623  ac_cv_c_inline=no
4624for ac_kw in inline __inline__ __inline; do
4625  cat >conftest.$ac_ext <<_ACEOF
4626/* confdefs.h.  */
4627_ACEOF
4628cat confdefs.h >>conftest.$ac_ext
4629cat >>conftest.$ac_ext <<_ACEOF
4630/* end confdefs.h.  */
4631#ifndef __cplusplus
4632typedef int foo_t;
4633static $ac_kw foo_t static_foo () {return 0; }
4634$ac_kw foo_t foo () {return 0; }
4635#endif
4636
4637_ACEOF
4638rm -f conftest.$ac_objext
4639if { (ac_try="$ac_compile"
4640case "(($ac_try" in
4641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642  *) ac_try_echo=$ac_try;;
4643esac
4644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645  (eval "$ac_compile") 2>conftest.er1
4646  ac_status=$?
4647  grep -v '^ *+' conftest.er1 >conftest.err
4648  rm -f conftest.er1
4649  cat conftest.err >&5
4650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651  (exit $ac_status); } && {
4652	 test -z "$ac_c_werror_flag" ||
4653	 test ! -s conftest.err
4654       } && test -s conftest.$ac_objext; then
4655  ac_cv_c_inline=$ac_kw
4656else
4657  echo "$as_me: failed program was:" >&5
4658sed 's/^/| /' conftest.$ac_ext >&5
4659
4660
4661fi
4662
4663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664  test "$ac_cv_c_inline" != no && break
4665done
4666
4667fi
4668{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4669echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4670
4671
4672case $ac_cv_c_inline in
4673  inline | yes) ;;
4674  *)
4675    case $ac_cv_c_inline in
4676      no) ac_val=;;
4677      *) ac_val=$ac_cv_c_inline;;
4678    esac
4679    cat >>confdefs.h <<_ACEOF
4680#ifndef __cplusplus
4681#define inline $ac_val
4682#endif
4683_ACEOF
4684    ;;
4685esac
4686
4687
4688# We use prototypes and the keyword "const" in db.h which doesn't include
4689# db_config.h, so we have to figure out what to do there.
4690#
4691# There is an autoconf AC_C_PROTOTYPES macro, but as all it does is define
4692# db_config.h variables, it doesn't help us.
4693#
4694# We don't have much choice, we look at internal autoconf variables.
4695if test "$ac_cv_c_const" != "yes"; then
4696	DB_CONST="#define const"
4697fi
4698
4699# Clear __P, some other systems use it too.
4700DB_PROTO1="#undef __P"
4701if test "$ac_cv_prog_cc_c89" = "no"; then
4702	DB_PROTO2="#define	__P(protos)	()"
4703else
4704	DB_PROTO2="#define	__P(protos)	protos"
4705fi
4706
4707# Because of shared library building, the ${CC} used for config tests
4708# may be different than the ${CC} we want to put in the Makefile.
4709# The latter is known as ${MAKEFILE_CC} in this script.
4710MAKEFILE_CC="${CC}"
4711MAKEFILE_CCLINK="${CC}"
4712MAKEFILE_CXX="nocxx"
4713MAKEFILE_CXXLINK="nocxx"
4714
4715# See if we need the C++ compiler at all.  If so, we'd like to find one that
4716# interoperates with the C compiler we chose.  Since we prefered cc over gcc,
4717# we'll also prefer the vendor's compiler over g++/gcc.  If we're wrong, the
4718# user can set CC and CXX in their environment before running configure.
4719#
4720# AC_PROG_CXX sets CXX, but it uses $CXX and $CCC (in that order) as its
4721# first choices.
4722if test "$db_cv_cxx" = "yes"; then
4723	if test "$GCC" != "yes"; then
4724		case "$host_os" in
4725		aix*)		if test -n "$ac_tool_prefix"; then
4726  # Extract the first word of "${ac_tool_prefix}xlC_r", so it can be a program name with args.
4727set dummy ${ac_tool_prefix}xlC_r; ac_word=$2
4728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4730if test "${ac_cv_prog_CCC+set}" = set; then
4731  echo $ECHO_N "(cached) $ECHO_C" >&6
4732else
4733  if test -n "$CCC"; then
4734  ac_cv_prog_CCC="$CCC" # Let the user override the test.
4735else
4736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737for as_dir in $PATH
4738do
4739  IFS=$as_save_IFS
4740  test -z "$as_dir" && as_dir=.
4741  for ac_exec_ext in '' $ac_executable_extensions; do
4742  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4743    ac_cv_prog_CCC="${ac_tool_prefix}xlC_r"
4744    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745    break 2
4746  fi
4747done
4748done
4749IFS=$as_save_IFS
4750
4751fi
4752fi
4753CCC=$ac_cv_prog_CCC
4754if test -n "$CCC"; then
4755  { echo "$as_me:$LINENO: result: $CCC" >&5
4756echo "${ECHO_T}$CCC" >&6; }
4757else
4758  { echo "$as_me:$LINENO: result: no" >&5
4759echo "${ECHO_T}no" >&6; }
4760fi
4761
4762
4763fi
4764if test -z "$ac_cv_prog_CCC"; then
4765  ac_ct_CCC=$CCC
4766  # Extract the first word of "xlC_r", so it can be a program name with args.
4767set dummy xlC_r; ac_word=$2
4768{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4770if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
4771  echo $ECHO_N "(cached) $ECHO_C" >&6
4772else
4773  if test -n "$ac_ct_CCC"; then
4774  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
4775else
4776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777for as_dir in $PATH
4778do
4779  IFS=$as_save_IFS
4780  test -z "$as_dir" && as_dir=.
4781  for ac_exec_ext in '' $ac_executable_extensions; do
4782  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783    ac_cv_prog_ac_ct_CCC="xlC_r"
4784    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4785    break 2
4786  fi
4787done
4788done
4789IFS=$as_save_IFS
4790
4791fi
4792fi
4793ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
4794if test -n "$ac_ct_CCC"; then
4795  { echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
4796echo "${ECHO_T}$ac_ct_CCC" >&6; }
4797else
4798  { echo "$as_me:$LINENO: result: no" >&5
4799echo "${ECHO_T}no" >&6; }
4800fi
4801
4802  if test "x$ac_ct_CCC" = x; then
4803    CCC=""
4804  else
4805    case $cross_compiling:$ac_tool_warned in
4806yes:)
4807{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4808whose name does not start with the host triplet.  If you think this
4809configuration is useful to you, please write to autoconf@gnu.org." >&5
4810echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4811whose name does not start with the host triplet.  If you think this
4812configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4813ac_tool_warned=yes ;;
4814esac
4815    CCC=$ac_ct_CCC
4816  fi
4817else
4818  CCC="$ac_cv_prog_CCC"
4819fi
4820
4821				LIBXSO_LIBS="-lC_r $LIBXSO_LIBS"
4822				LIBSO_LIBS="-lC_r $LIBSO_LIBS";;
4823		hpux*)		if test -n "$ac_tool_prefix"; then
4824  # Extract the first word of "${ac_tool_prefix}aCC", so it can be a program name with args.
4825set dummy ${ac_tool_prefix}aCC; ac_word=$2
4826{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4828if test "${ac_cv_prog_CCC+set}" = set; then
4829  echo $ECHO_N "(cached) $ECHO_C" >&6
4830else
4831  if test -n "$CCC"; then
4832  ac_cv_prog_CCC="$CCC" # Let the user override the test.
4833else
4834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835for as_dir in $PATH
4836do
4837  IFS=$as_save_IFS
4838  test -z "$as_dir" && as_dir=.
4839  for ac_exec_ext in '' $ac_executable_extensions; do
4840  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841    ac_cv_prog_CCC="${ac_tool_prefix}aCC"
4842    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843    break 2
4844  fi
4845done
4846done
4847IFS=$as_save_IFS
4848
4849fi
4850fi
4851CCC=$ac_cv_prog_CCC
4852if test -n "$CCC"; then
4853  { echo "$as_me:$LINENO: result: $CCC" >&5
4854echo "${ECHO_T}$CCC" >&6; }
4855else
4856  { echo "$as_me:$LINENO: result: no" >&5
4857echo "${ECHO_T}no" >&6; }
4858fi
4859
4860
4861fi
4862if test -z "$ac_cv_prog_CCC"; then
4863  ac_ct_CCC=$CCC
4864  # Extract the first word of "aCC", so it can be a program name with args.
4865set dummy aCC; ac_word=$2
4866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4868if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
4869  echo $ECHO_N "(cached) $ECHO_C" >&6
4870else
4871  if test -n "$ac_ct_CCC"; then
4872  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
4873else
4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH
4876do
4877  IFS=$as_save_IFS
4878  test -z "$as_dir" && as_dir=.
4879  for ac_exec_ext in '' $ac_executable_extensions; do
4880  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881    ac_cv_prog_ac_ct_CCC="aCC"
4882    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883    break 2
4884  fi
4885done
4886done
4887IFS=$as_save_IFS
4888
4889fi
4890fi
4891ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
4892if test -n "$ac_ct_CCC"; then
4893  { echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
4894echo "${ECHO_T}$ac_ct_CCC" >&6; }
4895else
4896  { echo "$as_me:$LINENO: result: no" >&5
4897echo "${ECHO_T}no" >&6; }
4898fi
4899
4900  if test "x$ac_ct_CCC" = x; then
4901    CCC=""
4902  else
4903    case $cross_compiling:$ac_tool_warned in
4904yes:)
4905{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4906whose name does not start with the host triplet.  If you think this
4907configuration is useful to you, please write to autoconf@gnu.org." >&5
4908echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4909whose name does not start with the host triplet.  If you think this
4910configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4911ac_tool_warned=yes ;;
4912esac
4913    CCC=$ac_ct_CCC
4914  fi
4915else
4916  CCC="$ac_cv_prog_CCC"
4917fi
4918;;
4919		irix*)		if test -n "$ac_tool_prefix"; then
4920  # Extract the first word of "${ac_tool_prefix}CC", so it can be a program name with args.
4921set dummy ${ac_tool_prefix}CC; ac_word=$2
4922{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4924if test "${ac_cv_prog_CCC+set}" = set; then
4925  echo $ECHO_N "(cached) $ECHO_C" >&6
4926else
4927  if test -n "$CCC"; then
4928  ac_cv_prog_CCC="$CCC" # Let the user override the test.
4929else
4930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931for as_dir in $PATH
4932do
4933  IFS=$as_save_IFS
4934  test -z "$as_dir" && as_dir=.
4935  for ac_exec_ext in '' $ac_executable_extensions; do
4936  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4937    ac_cv_prog_CCC="${ac_tool_prefix}CC"
4938    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4939    break 2
4940  fi
4941done
4942done
4943IFS=$as_save_IFS
4944
4945fi
4946fi
4947CCC=$ac_cv_prog_CCC
4948if test -n "$CCC"; then
4949  { echo "$as_me:$LINENO: result: $CCC" >&5
4950echo "${ECHO_T}$CCC" >&6; }
4951else
4952  { echo "$as_me:$LINENO: result: no" >&5
4953echo "${ECHO_T}no" >&6; }
4954fi
4955
4956
4957fi
4958if test -z "$ac_cv_prog_CCC"; then
4959  ac_ct_CCC=$CCC
4960  # Extract the first word of "CC", so it can be a program name with args.
4961set dummy CC; ac_word=$2
4962{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4964if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
4965  echo $ECHO_N "(cached) $ECHO_C" >&6
4966else
4967  if test -n "$ac_ct_CCC"; then
4968  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
4969else
4970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971for as_dir in $PATH
4972do
4973  IFS=$as_save_IFS
4974  test -z "$as_dir" && as_dir=.
4975  for ac_exec_ext in '' $ac_executable_extensions; do
4976  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977    ac_cv_prog_ac_ct_CCC="CC"
4978    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4979    break 2
4980  fi
4981done
4982done
4983IFS=$as_save_IFS
4984
4985fi
4986fi
4987ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
4988if test -n "$ac_ct_CCC"; then
4989  { echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
4990echo "${ECHO_T}$ac_ct_CCC" >&6; }
4991else
4992  { echo "$as_me:$LINENO: result: no" >&5
4993echo "${ECHO_T}no" >&6; }
4994fi
4995
4996  if test "x$ac_ct_CCC" = x; then
4997    CCC=""
4998  else
4999    case $cross_compiling:$ac_tool_warned in
5000yes:)
5001{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5002whose name does not start with the host triplet.  If you think this
5003configuration is useful to you, please write to autoconf@gnu.org." >&5
5004echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5005whose name does not start with the host triplet.  If you think this
5006configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5007ac_tool_warned=yes ;;
5008esac
5009    CCC=$ac_ct_CCC
5010  fi
5011else
5012  CCC="$ac_cv_prog_CCC"
5013fi
5014;;
5015		osf*)		if test -n "$ac_tool_prefix"; then
5016  # Extract the first word of "${ac_tool_prefix}cxx", so it can be a program name with args.
5017set dummy ${ac_tool_prefix}cxx; ac_word=$2
5018{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5020if test "${ac_cv_prog_CCC+set}" = set; then
5021  echo $ECHO_N "(cached) $ECHO_C" >&6
5022else
5023  if test -n "$CCC"; then
5024  ac_cv_prog_CCC="$CCC" # Let the user override the test.
5025else
5026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027for as_dir in $PATH
5028do
5029  IFS=$as_save_IFS
5030  test -z "$as_dir" && as_dir=.
5031  for ac_exec_ext in '' $ac_executable_extensions; do
5032  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5033    ac_cv_prog_CCC="${ac_tool_prefix}cxx"
5034    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035    break 2
5036  fi
5037done
5038done
5039IFS=$as_save_IFS
5040
5041fi
5042fi
5043CCC=$ac_cv_prog_CCC
5044if test -n "$CCC"; then
5045  { echo "$as_me:$LINENO: result: $CCC" >&5
5046echo "${ECHO_T}$CCC" >&6; }
5047else
5048  { echo "$as_me:$LINENO: result: no" >&5
5049echo "${ECHO_T}no" >&6; }
5050fi
5051
5052
5053fi
5054if test -z "$ac_cv_prog_CCC"; then
5055  ac_ct_CCC=$CCC
5056  # Extract the first word of "cxx", so it can be a program name with args.
5057set dummy cxx; ac_word=$2
5058{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5060if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
5061  echo $ECHO_N "(cached) $ECHO_C" >&6
5062else
5063  if test -n "$ac_ct_CCC"; then
5064  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
5065else
5066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067for as_dir in $PATH
5068do
5069  IFS=$as_save_IFS
5070  test -z "$as_dir" && as_dir=.
5071  for ac_exec_ext in '' $ac_executable_extensions; do
5072  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5073    ac_cv_prog_ac_ct_CCC="cxx"
5074    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075    break 2
5076  fi
5077done
5078done
5079IFS=$as_save_IFS
5080
5081fi
5082fi
5083ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
5084if test -n "$ac_ct_CCC"; then
5085  { echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
5086echo "${ECHO_T}$ac_ct_CCC" >&6; }
5087else
5088  { echo "$as_me:$LINENO: result: no" >&5
5089echo "${ECHO_T}no" >&6; }
5090fi
5091
5092  if test "x$ac_ct_CCC" = x; then
5093    CCC=""
5094  else
5095    case $cross_compiling:$ac_tool_warned in
5096yes:)
5097{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5098whose name does not start with the host triplet.  If you think this
5099configuration is useful to you, please write to autoconf@gnu.org." >&5
5100echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5101whose name does not start with the host triplet.  If you think this
5102configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5103ac_tool_warned=yes ;;
5104esac
5105    CCC=$ac_ct_CCC
5106  fi
5107else
5108  CCC="$ac_cv_prog_CCC"
5109fi
5110
5111				CXXFLAGS="$CXXFLAGS -D__USE_STD_IOSTREAM"
5112				test -d /usr/include.dtk &&
5113				    CXXFLAGS="$CXXFLAGS -I/usr/include.dtk";;
5114		solaris*)	if test -n "$ac_tool_prefix"; then
5115  # Extract the first word of "${ac_tool_prefix}CC", so it can be a program name with args.
5116set dummy ${ac_tool_prefix}CC; ac_word=$2
5117{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5119if test "${ac_cv_prog_CCC+set}" = set; then
5120  echo $ECHO_N "(cached) $ECHO_C" >&6
5121else
5122  if test -n "$CCC"; then
5123  ac_cv_prog_CCC="$CCC" # Let the user override the test.
5124else
5125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126for as_dir in $PATH
5127do
5128  IFS=$as_save_IFS
5129  test -z "$as_dir" && as_dir=.
5130  for ac_exec_ext in '' $ac_executable_extensions; do
5131  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5132    ac_cv_prog_CCC="${ac_tool_prefix}CC"
5133    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5134    break 2
5135  fi
5136done
5137done
5138IFS=$as_save_IFS
5139
5140fi
5141fi
5142CCC=$ac_cv_prog_CCC
5143if test -n "$CCC"; then
5144  { echo "$as_me:$LINENO: result: $CCC" >&5
5145echo "${ECHO_T}$CCC" >&6; }
5146else
5147  { echo "$as_me:$LINENO: result: no" >&5
5148echo "${ECHO_T}no" >&6; }
5149fi
5150
5151
5152fi
5153if test -z "$ac_cv_prog_CCC"; then
5154  ac_ct_CCC=$CCC
5155  # Extract the first word of "CC", so it can be a program name with args.
5156set dummy CC; ac_word=$2
5157{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5159if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
5160  echo $ECHO_N "(cached) $ECHO_C" >&6
5161else
5162  if test -n "$ac_ct_CCC"; then
5163  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
5164else
5165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166for as_dir in $PATH
5167do
5168  IFS=$as_save_IFS
5169  test -z "$as_dir" && as_dir=.
5170  for ac_exec_ext in '' $ac_executable_extensions; do
5171  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5172    ac_cv_prog_ac_ct_CCC="CC"
5173    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174    break 2
5175  fi
5176done
5177done
5178IFS=$as_save_IFS
5179
5180fi
5181fi
5182ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
5183if test -n "$ac_ct_CCC"; then
5184  { echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
5185echo "${ECHO_T}$ac_ct_CCC" >&6; }
5186else
5187  { echo "$as_me:$LINENO: result: no" >&5
5188echo "${ECHO_T}no" >&6; }
5189fi
5190
5191  if test "x$ac_ct_CCC" = x; then
5192    CCC=""
5193  else
5194    case $cross_compiling:$ac_tool_warned in
5195yes:)
5196{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5197whose name does not start with the host triplet.  If you think this
5198configuration is useful to you, please write to autoconf@gnu.org." >&5
5199echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5200whose name does not start with the host triplet.  If you think this
5201configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5202ac_tool_warned=yes ;;
5203esac
5204    CCC=$ac_ct_CCC
5205  fi
5206else
5207  CCC="$ac_cv_prog_CCC"
5208fi
5209;;
5210		esac
5211	fi
5212	ac_ext=cpp
5213ac_cpp='$CXXCPP $CPPFLAGS'
5214ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5217if test -z "$CXX"; then
5218  if test -n "$CCC"; then
5219    CXX=$CCC
5220  else
5221    if test -n "$ac_tool_prefix"; then
5222  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5223  do
5224    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5225set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5226{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5228if test "${ac_cv_prog_CXX+set}" = set; then
5229  echo $ECHO_N "(cached) $ECHO_C" >&6
5230else
5231  if test -n "$CXX"; then
5232  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5233else
5234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235for as_dir in $PATH
5236do
5237  IFS=$as_save_IFS
5238  test -z "$as_dir" && as_dir=.
5239  for ac_exec_ext in '' $ac_executable_extensions; do
5240  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5242    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243    break 2
5244  fi
5245done
5246done
5247IFS=$as_save_IFS
5248
5249fi
5250fi
5251CXX=$ac_cv_prog_CXX
5252if test -n "$CXX"; then
5253  { echo "$as_me:$LINENO: result: $CXX" >&5
5254echo "${ECHO_T}$CXX" >&6; }
5255else
5256  { echo "$as_me:$LINENO: result: no" >&5
5257echo "${ECHO_T}no" >&6; }
5258fi
5259
5260
5261    test -n "$CXX" && break
5262  done
5263fi
5264if test -z "$CXX"; then
5265  ac_ct_CXX=$CXX
5266  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5267do
5268  # Extract the first word of "$ac_prog", so it can be a program name with args.
5269set dummy $ac_prog; ac_word=$2
5270{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5272if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5273  echo $ECHO_N "(cached) $ECHO_C" >&6
5274else
5275  if test -n "$ac_ct_CXX"; then
5276  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5277else
5278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279for as_dir in $PATH
5280do
5281  IFS=$as_save_IFS
5282  test -z "$as_dir" && as_dir=.
5283  for ac_exec_ext in '' $ac_executable_extensions; do
5284  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5285    ac_cv_prog_ac_ct_CXX="$ac_prog"
5286    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287    break 2
5288  fi
5289done
5290done
5291IFS=$as_save_IFS
5292
5293fi
5294fi
5295ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5296if test -n "$ac_ct_CXX"; then
5297  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5298echo "${ECHO_T}$ac_ct_CXX" >&6; }
5299else
5300  { echo "$as_me:$LINENO: result: no" >&5
5301echo "${ECHO_T}no" >&6; }
5302fi
5303
5304
5305  test -n "$ac_ct_CXX" && break
5306done
5307
5308  if test "x$ac_ct_CXX" = x; then
5309    CXX="g++"
5310  else
5311    case $cross_compiling:$ac_tool_warned in
5312yes:)
5313{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5314whose name does not start with the host triplet.  If you think this
5315configuration is useful to you, please write to autoconf@gnu.org." >&5
5316echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5317whose name does not start with the host triplet.  If you think this
5318configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5319ac_tool_warned=yes ;;
5320esac
5321    CXX=$ac_ct_CXX
5322  fi
5323fi
5324
5325  fi
5326fi
5327# Provide some information about the compiler.
5328echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5329ac_compiler=`set X $ac_compile; echo $2`
5330{ (ac_try="$ac_compiler --version >&5"
5331case "(($ac_try" in
5332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333  *) ac_try_echo=$ac_try;;
5334esac
5335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336  (eval "$ac_compiler --version >&5") 2>&5
5337  ac_status=$?
5338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339  (exit $ac_status); }
5340{ (ac_try="$ac_compiler -v >&5"
5341case "(($ac_try" in
5342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343  *) ac_try_echo=$ac_try;;
5344esac
5345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346  (eval "$ac_compiler -v >&5") 2>&5
5347  ac_status=$?
5348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349  (exit $ac_status); }
5350{ (ac_try="$ac_compiler -V >&5"
5351case "(($ac_try" in
5352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353  *) ac_try_echo=$ac_try;;
5354esac
5355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356  (eval "$ac_compiler -V >&5") 2>&5
5357  ac_status=$?
5358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359  (exit $ac_status); }
5360
5361{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5362echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5363if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5364  echo $ECHO_N "(cached) $ECHO_C" >&6
5365else
5366  cat >conftest.$ac_ext <<_ACEOF
5367/* confdefs.h.  */
5368_ACEOF
5369cat confdefs.h >>conftest.$ac_ext
5370cat >>conftest.$ac_ext <<_ACEOF
5371/* end confdefs.h.  */
5372
5373int
5374main ()
5375{
5376#ifndef __GNUC__
5377       choke me
5378#endif
5379
5380  ;
5381  return 0;
5382}
5383_ACEOF
5384rm -f conftest.$ac_objext
5385if { (ac_try="$ac_compile"
5386case "(($ac_try" in
5387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388  *) ac_try_echo=$ac_try;;
5389esac
5390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5391  (eval "$ac_compile") 2>conftest.er1
5392  ac_status=$?
5393  grep -v '^ *+' conftest.er1 >conftest.err
5394  rm -f conftest.er1
5395  cat conftest.err >&5
5396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397  (exit $ac_status); } && {
5398	 test -z "$ac_cxx_werror_flag" ||
5399	 test ! -s conftest.err
5400       } && test -s conftest.$ac_objext; then
5401  ac_compiler_gnu=yes
5402else
5403  echo "$as_me: failed program was:" >&5
5404sed 's/^/| /' conftest.$ac_ext >&5
5405
5406	ac_compiler_gnu=no
5407fi
5408
5409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5410ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5411
5412fi
5413{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5414echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5415GXX=`test $ac_compiler_gnu = yes && echo yes`
5416ac_test_CXXFLAGS=${CXXFLAGS+set}
5417ac_save_CXXFLAGS=$CXXFLAGS
5418{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5419echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5420if test "${ac_cv_prog_cxx_g+set}" = set; then
5421  echo $ECHO_N "(cached) $ECHO_C" >&6
5422else
5423  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5424   ac_cxx_werror_flag=yes
5425   ac_cv_prog_cxx_g=no
5426   CXXFLAGS="-g"
5427   cat >conftest.$ac_ext <<_ACEOF
5428/* confdefs.h.  */
5429_ACEOF
5430cat confdefs.h >>conftest.$ac_ext
5431cat >>conftest.$ac_ext <<_ACEOF
5432/* end confdefs.h.  */
5433
5434int
5435main ()
5436{
5437
5438  ;
5439  return 0;
5440}
5441_ACEOF
5442rm -f conftest.$ac_objext
5443if { (ac_try="$ac_compile"
5444case "(($ac_try" in
5445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446  *) ac_try_echo=$ac_try;;
5447esac
5448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449  (eval "$ac_compile") 2>conftest.er1
5450  ac_status=$?
5451  grep -v '^ *+' conftest.er1 >conftest.err
5452  rm -f conftest.er1
5453  cat conftest.err >&5
5454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455  (exit $ac_status); } && {
5456	 test -z "$ac_cxx_werror_flag" ||
5457	 test ! -s conftest.err
5458       } && test -s conftest.$ac_objext; then
5459  ac_cv_prog_cxx_g=yes
5460else
5461  echo "$as_me: failed program was:" >&5
5462sed 's/^/| /' conftest.$ac_ext >&5
5463
5464	CXXFLAGS=""
5465      cat >conftest.$ac_ext <<_ACEOF
5466/* confdefs.h.  */
5467_ACEOF
5468cat confdefs.h >>conftest.$ac_ext
5469cat >>conftest.$ac_ext <<_ACEOF
5470/* end confdefs.h.  */
5471
5472int
5473main ()
5474{
5475
5476  ;
5477  return 0;
5478}
5479_ACEOF
5480rm -f conftest.$ac_objext
5481if { (ac_try="$ac_compile"
5482case "(($ac_try" in
5483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484  *) ac_try_echo=$ac_try;;
5485esac
5486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487  (eval "$ac_compile") 2>conftest.er1
5488  ac_status=$?
5489  grep -v '^ *+' conftest.er1 >conftest.err
5490  rm -f conftest.er1
5491  cat conftest.err >&5
5492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493  (exit $ac_status); } && {
5494	 test -z "$ac_cxx_werror_flag" ||
5495	 test ! -s conftest.err
5496       } && test -s conftest.$ac_objext; then
5497  :
5498else
5499  echo "$as_me: failed program was:" >&5
5500sed 's/^/| /' conftest.$ac_ext >&5
5501
5502	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5503	 CXXFLAGS="-g"
5504	 cat >conftest.$ac_ext <<_ACEOF
5505/* confdefs.h.  */
5506_ACEOF
5507cat confdefs.h >>conftest.$ac_ext
5508cat >>conftest.$ac_ext <<_ACEOF
5509/* end confdefs.h.  */
5510
5511int
5512main ()
5513{
5514
5515  ;
5516  return 0;
5517}
5518_ACEOF
5519rm -f conftest.$ac_objext
5520if { (ac_try="$ac_compile"
5521case "(($ac_try" in
5522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523  *) ac_try_echo=$ac_try;;
5524esac
5525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526  (eval "$ac_compile") 2>conftest.er1
5527  ac_status=$?
5528  grep -v '^ *+' conftest.er1 >conftest.err
5529  rm -f conftest.er1
5530  cat conftest.err >&5
5531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532  (exit $ac_status); } && {
5533	 test -z "$ac_cxx_werror_flag" ||
5534	 test ! -s conftest.err
5535       } && test -s conftest.$ac_objext; then
5536  ac_cv_prog_cxx_g=yes
5537else
5538  echo "$as_me: failed program was:" >&5
5539sed 's/^/| /' conftest.$ac_ext >&5
5540
5541
5542fi
5543
5544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5545fi
5546
5547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548fi
5549
5550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5552fi
5553{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5554echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5555if test "$ac_test_CXXFLAGS" = set; then
5556  CXXFLAGS=$ac_save_CXXFLAGS
5557elif test $ac_cv_prog_cxx_g = yes; then
5558  if test "$GXX" = yes; then
5559    CXXFLAGS="-g -O2"
5560  else
5561    CXXFLAGS="-g"
5562  fi
5563else
5564  if test "$GXX" = yes; then
5565    CXXFLAGS="-O2"
5566  else
5567    CXXFLAGS=
5568  fi
5569fi
5570ac_ext=c
5571ac_cpp='$CPP $CPPFLAGS'
5572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5574ac_compiler_gnu=$ac_cv_c_compiler_gnu
5575
5576	###### WORKAROUND: SEE SR #7938
5577	ac_ext=cpp
5578ac_cpp='$CXXCPP $CPPFLAGS'
5579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5582{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5583echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5584if test -z "$CXXCPP"; then
5585  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5586  echo $ECHO_N "(cached) $ECHO_C" >&6
5587else
5588      # Double quotes because CXXCPP needs to be expanded
5589    for CXXCPP in "$CXX -E" "/lib/cpp"
5590    do
5591      ac_preproc_ok=false
5592for ac_cxx_preproc_warn_flag in '' yes
5593do
5594  # Use a header file that comes with gcc, so configuring glibc
5595  # with a fresh cross-compiler works.
5596  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5597  # <limits.h> exists even on freestanding compilers.
5598  # On the NeXT, cc -E runs the code through the compiler's parser,
5599  # not just through cpp. "Syntax error" is here to catch this case.
5600  cat >conftest.$ac_ext <<_ACEOF
5601/* confdefs.h.  */
5602_ACEOF
5603cat confdefs.h >>conftest.$ac_ext
5604cat >>conftest.$ac_ext <<_ACEOF
5605/* end confdefs.h.  */
5606#ifdef __STDC__
5607# include <limits.h>
5608#else
5609# include <assert.h>
5610#endif
5611		     Syntax error
5612_ACEOF
5613if { (ac_try="$ac_cpp conftest.$ac_ext"
5614case "(($ac_try" in
5615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616  *) ac_try_echo=$ac_try;;
5617esac
5618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5620  ac_status=$?
5621  grep -v '^ *+' conftest.er1 >conftest.err
5622  rm -f conftest.er1
5623  cat conftest.err >&5
5624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625  (exit $ac_status); } >/dev/null && {
5626	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5627	 test ! -s conftest.err
5628       }; then
5629  :
5630else
5631  echo "$as_me: failed program was:" >&5
5632sed 's/^/| /' conftest.$ac_ext >&5
5633
5634  # Broken: fails on valid input.
5635continue
5636fi
5637
5638rm -f conftest.err conftest.$ac_ext
5639
5640  # OK, works on sane cases.  Now check whether nonexistent headers
5641  # can be detected and how.
5642  cat >conftest.$ac_ext <<_ACEOF
5643/* confdefs.h.  */
5644_ACEOF
5645cat confdefs.h >>conftest.$ac_ext
5646cat >>conftest.$ac_ext <<_ACEOF
5647/* end confdefs.h.  */
5648#include <ac_nonexistent.h>
5649_ACEOF
5650if { (ac_try="$ac_cpp conftest.$ac_ext"
5651case "(($ac_try" in
5652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653  *) ac_try_echo=$ac_try;;
5654esac
5655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5657  ac_status=$?
5658  grep -v '^ *+' conftest.er1 >conftest.err
5659  rm -f conftest.er1
5660  cat conftest.err >&5
5661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662  (exit $ac_status); } >/dev/null && {
5663	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5664	 test ! -s conftest.err
5665       }; then
5666  # Broken: success on invalid input.
5667continue
5668else
5669  echo "$as_me: failed program was:" >&5
5670sed 's/^/| /' conftest.$ac_ext >&5
5671
5672  # Passes both tests.
5673ac_preproc_ok=:
5674break
5675fi
5676
5677rm -f conftest.err conftest.$ac_ext
5678
5679done
5680# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5681rm -f conftest.err conftest.$ac_ext
5682if $ac_preproc_ok; then
5683  break
5684fi
5685
5686    done
5687    ac_cv_prog_CXXCPP=$CXXCPP
5688
5689fi
5690  CXXCPP=$ac_cv_prog_CXXCPP
5691else
5692  ac_cv_prog_CXXCPP=$CXXCPP
5693fi
5694{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5695echo "${ECHO_T}$CXXCPP" >&6; }
5696ac_preproc_ok=false
5697for ac_cxx_preproc_warn_flag in '' yes
5698do
5699  # Use a header file that comes with gcc, so configuring glibc
5700  # with a fresh cross-compiler works.
5701  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5702  # <limits.h> exists even on freestanding compilers.
5703  # On the NeXT, cc -E runs the code through the compiler's parser,
5704  # not just through cpp. "Syntax error" is here to catch this case.
5705  cat >conftest.$ac_ext <<_ACEOF
5706/* confdefs.h.  */
5707_ACEOF
5708cat confdefs.h >>conftest.$ac_ext
5709cat >>conftest.$ac_ext <<_ACEOF
5710/* end confdefs.h.  */
5711#ifdef __STDC__
5712# include <limits.h>
5713#else
5714# include <assert.h>
5715#endif
5716		     Syntax error
5717_ACEOF
5718if { (ac_try="$ac_cpp conftest.$ac_ext"
5719case "(($ac_try" in
5720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721  *) ac_try_echo=$ac_try;;
5722esac
5723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5725  ac_status=$?
5726  grep -v '^ *+' conftest.er1 >conftest.err
5727  rm -f conftest.er1
5728  cat conftest.err >&5
5729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730  (exit $ac_status); } >/dev/null && {
5731	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5732	 test ! -s conftest.err
5733       }; then
5734  :
5735else
5736  echo "$as_me: failed program was:" >&5
5737sed 's/^/| /' conftest.$ac_ext >&5
5738
5739  # Broken: fails on valid input.
5740continue
5741fi
5742
5743rm -f conftest.err conftest.$ac_ext
5744
5745  # OK, works on sane cases.  Now check whether nonexistent headers
5746  # can be detected and how.
5747  cat >conftest.$ac_ext <<_ACEOF
5748/* confdefs.h.  */
5749_ACEOF
5750cat confdefs.h >>conftest.$ac_ext
5751cat >>conftest.$ac_ext <<_ACEOF
5752/* end confdefs.h.  */
5753#include <ac_nonexistent.h>
5754_ACEOF
5755if { (ac_try="$ac_cpp conftest.$ac_ext"
5756case "(($ac_try" in
5757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758  *) ac_try_echo=$ac_try;;
5759esac
5760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5762  ac_status=$?
5763  grep -v '^ *+' conftest.er1 >conftest.err
5764  rm -f conftest.er1
5765  cat conftest.err >&5
5766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767  (exit $ac_status); } >/dev/null && {
5768	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5769	 test ! -s conftest.err
5770       }; then
5771  # Broken: success on invalid input.
5772continue
5773else
5774  echo "$as_me: failed program was:" >&5
5775sed 's/^/| /' conftest.$ac_ext >&5
5776
5777  # Passes both tests.
5778ac_preproc_ok=:
5779break
5780fi
5781
5782rm -f conftest.err conftest.$ac_ext
5783
5784done
5785# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5786rm -f conftest.err conftest.$ac_ext
5787if $ac_preproc_ok; then
5788  :
5789else
5790  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5791See \`config.log' for more details." >&5
5792echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5793See \`config.log' for more details." >&2;}
5794   { (exit 1); exit 1; }; }
5795fi
5796
5797ac_ext=c
5798ac_cpp='$CPP $CPPFLAGS'
5799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5801ac_compiler_gnu=$ac_cv_c_compiler_gnu
5802
5803	###############################
5804
5805
5806
5807{ echo "$as_me:$LINENO: checking whether C++ supports the ISO C++ standard includes" >&5
5808echo $ECHO_N "checking whether C++ supports the ISO C++ standard includes... $ECHO_C" >&6; }
5809if test "${db_cv_cxx_have_stdheaders+set}" = set; then
5810  echo $ECHO_N "(cached) $ECHO_C" >&6
5811else
5812
5813 ac_ext=cpp
5814ac_cpp='$CXXCPP $CPPFLAGS'
5815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5818
5819 cat >conftest.$ac_ext <<_ACEOF
5820/* confdefs.h.  */
5821_ACEOF
5822cat confdefs.h >>conftest.$ac_ext
5823cat >>conftest.$ac_ext <<_ACEOF
5824/* end confdefs.h.  */
5825#include <iostream>
5826
5827int
5828main ()
5829{
5830std::ostream *o; return 0;
5831  ;
5832  return 0;
5833}
5834_ACEOF
5835rm -f conftest.$ac_objext
5836if { (ac_try="$ac_compile"
5837case "(($ac_try" in
5838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839  *) ac_try_echo=$ac_try;;
5840esac
5841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842  (eval "$ac_compile") 2>conftest.er1
5843  ac_status=$?
5844  grep -v '^ *+' conftest.er1 >conftest.err
5845  rm -f conftest.er1
5846  cat conftest.err >&5
5847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848  (exit $ac_status); } && {
5849	 test -z "$ac_cxx_werror_flag" ||
5850	 test ! -s conftest.err
5851       } && test -s conftest.$ac_objext; then
5852  db_cv_cxx_have_stdheaders=yes
5853else
5854  echo "$as_me: failed program was:" >&5
5855sed 's/^/| /' conftest.$ac_ext >&5
5856
5857	db_cv_cxx_have_stdheaders=no
5858fi
5859
5860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 ac_ext=c
5862ac_cpp='$CPP $CPPFLAGS'
5863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5865ac_compiler_gnu=$ac_cv_c_compiler_gnu
5866
5867
5868fi
5869{ echo "$as_me:$LINENO: result: $db_cv_cxx_have_stdheaders" >&5
5870echo "${ECHO_T}$db_cv_cxx_have_stdheaders" >&6; }
5871if test "$db_cv_cxx_have_stdheaders" = yes; then
5872	cxx_have_stdheaders="#define	HAVE_CXX_STDHEADERS 1"
5873fi
5874	MAKEFILE_CXX="${CXX}"
5875	MAKEFILE_CXXLINK="${CXX}"
5876fi
5877
5878# Do some gcc specific configuration.
5879
5880{ echo "$as_me:$LINENO: checking whether we are using gcc version 2.96" >&5
5881echo $ECHO_N "checking whether we are using gcc version 2.96... $ECHO_C" >&6; }
5882if test "${db_cv_gcc_2_96+set}" = set; then
5883  echo $ECHO_N "(cached) $ECHO_C" >&6
5884else
5885
5886db_cv_gcc_2_96=no
5887if test "$GCC" = "yes"; then
5888	GCC_VERSION=`${MAKEFILE_CC} --version`
5889	case ${GCC_VERSION} in
5890	2.96*)
5891		db_cv_gcc_2_96=yes;;
5892	esac
5893fi
5894fi
5895{ echo "$as_me:$LINENO: result: $db_cv_gcc_2_96" >&5
5896echo "${ECHO_T}$db_cv_gcc_2_96" >&6; }
5897if test "$db_cv_gcc_2_96" = "yes"; then
5898	CFLAGS=`echo "$CFLAGS" | sed 's/-O2/-O/'`
5899	CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2/-O/'`
5900	{ echo "$as_me:$LINENO: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&5
5901echo "$as_me: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&2;}
5902	{ echo "$as_me:$LINENO: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&5
5903echo "$as_me: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&2;}
5904fi
5905
5906{ echo "$as_me:$LINENO: checking whether g++ requires -fhandle-exceptions" >&5
5907echo $ECHO_N "checking whether g++ requires -fhandle-exceptions... $ECHO_C" >&6; }
5908if test "${db_cv_gxx_except+set}" = set; then
5909  echo $ECHO_N "(cached) $ECHO_C" >&6
5910else
5911
5912db_cv_gxx_except=no;
5913if test "$GXX" = "yes"; then
5914	GXX_VERSION=`${MAKEFILE_CXX} --version`
5915	case ${GXX_VERSION} in
5916	1.*|2.[01234567].*|*-1.*|*-2.[01234567].*)
5917		db_cv_gxx_except=yes;;
5918	esac
5919fi
5920fi
5921{ echo "$as_me:$LINENO: result: $db_cv_gxx_except" >&5
5922echo "${ECHO_T}$db_cv_gxx_except" >&6; }
5923if test "$db_cv_gxx_except" = "yes"; then
5924	CXXFLAGS="$CXXFLAGS -fhandle-exceptions"
5925fi
5926
5927# We need the -Kthread/-pthread flag when compiling on SCO/Caldera's UnixWare
5928# and OpenUNIX releases.  We can't make the test until we know which compiler
5929# we're using.
5930case "$host_os" in
5931sysv5UnixWare*|sysv5OpenUNIX8*)
5932	if test "$GCC" == "yes"; then
5933		CPPFLAGS="$CPPFLAGS -pthread"
5934		LDFLAGS="$LDFLAGS -pthread"
5935	else
5936		CPPFLAGS="$CPPFLAGS -Kthread"
5937		LDFLAGS="$LDFLAGS -Kthread"
5938	fi;;
5939esac
5940
5941# Export our compiler preferences for the libtool configuration.
5942export CC CCC
5943CCC=CXX
5944
5945# Libtool configuration.
5946# Check whether --enable-shared was given.
5947if test "${enable_shared+set}" = set; then
5948  enableval=$enable_shared; p=${PACKAGE-default}
5949    case $enableval in
5950    yes) enable_shared=yes ;;
5951    no) enable_shared=no ;;
5952    *)
5953      enable_shared=no
5954      # Look at the argument we got.  We use all the common list separators.
5955      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5956      for pkg in $enableval; do
5957	IFS="$lt_save_ifs"
5958	if test "X$pkg" = "X$p"; then
5959	  enable_shared=yes
5960	fi
5961      done
5962      IFS="$lt_save_ifs"
5963      ;;
5964    esac
5965else
5966  enable_shared=yes
5967fi
5968
5969
5970# Check whether --enable-static was given.
5971if test "${enable_static+set}" = set; then
5972  enableval=$enable_static; p=${PACKAGE-default}
5973    case $enableval in
5974    yes) enable_static=yes ;;
5975    no) enable_static=no ;;
5976    *)
5977     enable_static=no
5978      # Look at the argument we got.  We use all the common list separators.
5979      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5980      for pkg in $enableval; do
5981	IFS="$lt_save_ifs"
5982	if test "X$pkg" = "X$p"; then
5983	  enable_static=yes
5984	fi
5985      done
5986      IFS="$lt_save_ifs"
5987      ;;
5988    esac
5989else
5990  enable_static=yes
5991fi
5992
5993
5994# Check whether --enable-fast-install was given.
5995if test "${enable_fast_install+set}" = set; then
5996  enableval=$enable_fast_install; p=${PACKAGE-default}
5997    case $enableval in
5998    yes) enable_fast_install=yes ;;
5999    no) enable_fast_install=no ;;
6000    *)
6001      enable_fast_install=no
6002      # Look at the argument we got.  We use all the common list separators.
6003      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6004      for pkg in $enableval; do
6005	IFS="$lt_save_ifs"
6006	if test "X$pkg" = "X$p"; then
6007	  enable_fast_install=yes
6008	fi
6009      done
6010      IFS="$lt_save_ifs"
6011      ;;
6012    esac
6013else
6014  enable_fast_install=yes
6015fi
6016
6017
6018{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6019echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6020if test "${lt_cv_path_SED+set}" = set; then
6021  echo $ECHO_N "(cached) $ECHO_C" >&6
6022else
6023  # Loop through the user's path and test for sed and gsed.
6024# Then use that list of sed's as ones to test for truncation.
6025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026for as_dir in $PATH
6027do
6028  IFS=$as_save_IFS
6029  test -z "$as_dir" && as_dir=.
6030  for lt_ac_prog in sed gsed; do
6031    for ac_exec_ext in '' $ac_executable_extensions; do
6032      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6033        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6034      fi
6035    done
6036  done
6037done
6038lt_ac_max=0
6039lt_ac_count=0
6040# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6041# along with /bin/sed that truncates output.
6042for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6043  test ! -f $lt_ac_sed && continue
6044  cat /dev/null > conftest.in
6045  lt_ac_count=0
6046  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6047  # Check for GNU sed and select it if it is found.
6048  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6049    lt_cv_path_SED=$lt_ac_sed
6050    break
6051  fi
6052  while true; do
6053    cat conftest.in conftest.in >conftest.tmp
6054    mv conftest.tmp conftest.in
6055    cp conftest.in conftest.nl
6056    echo >>conftest.nl
6057    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6058    cmp -s conftest.out conftest.nl || break
6059    # 10000 chars as input seems more than enough
6060    test $lt_ac_count -gt 10 && break
6061    lt_ac_count=`expr $lt_ac_count + 1`
6062    if test $lt_ac_count -gt $lt_ac_max; then
6063      lt_ac_max=$lt_ac_count
6064      lt_cv_path_SED=$lt_ac_sed
6065    fi
6066  done
6067done
6068
6069fi
6070
6071SED=$lt_cv_path_SED
6072{ echo "$as_me:$LINENO: result: $SED" >&5
6073echo "${ECHO_T}$SED" >&6; }
6074
6075{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6076echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6077if test "${ac_cv_path_GREP+set}" = set; then
6078  echo $ECHO_N "(cached) $ECHO_C" >&6
6079else
6080  # Extract the first word of "grep ggrep" to use in msg output
6081if test -z "$GREP"; then
6082set dummy grep ggrep; ac_prog_name=$2
6083if test "${ac_cv_path_GREP+set}" = set; then
6084  echo $ECHO_N "(cached) $ECHO_C" >&6
6085else
6086  ac_path_GREP_found=false
6087# Loop through the user's path and test for each of PROGNAME-LIST
6088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6090do
6091  IFS=$as_save_IFS
6092  test -z "$as_dir" && as_dir=.
6093  for ac_prog in grep ggrep; do
6094  for ac_exec_ext in '' $ac_executable_extensions; do
6095    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6096    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6097    # Check for GNU ac_path_GREP and select it if it is found.
6098  # Check for GNU $ac_path_GREP
6099case `"$ac_path_GREP" --version 2>&1` in
6100*GNU*)
6101  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6102*)
6103  ac_count=0
6104  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6105  while :
6106  do
6107    cat "conftest.in" "conftest.in" >"conftest.tmp"
6108    mv "conftest.tmp" "conftest.in"
6109    cp "conftest.in" "conftest.nl"
6110    echo 'GREP' >> "conftest.nl"
6111    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6112    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6113    ac_count=`expr $ac_count + 1`
6114    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6115      # Best one so far, save it but keep looking for a better one
6116      ac_cv_path_GREP="$ac_path_GREP"
6117      ac_path_GREP_max=$ac_count
6118    fi
6119    # 10*(2^10) chars as input seems more than enough
6120    test $ac_count -gt 10 && break
6121  done
6122  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6123esac
6124
6125
6126    $ac_path_GREP_found && break 3
6127  done
6128done
6129
6130done
6131IFS=$as_save_IFS
6132
6133
6134fi
6135
6136GREP="$ac_cv_path_GREP"
6137if test -z "$GREP"; then
6138  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6139echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6140   { (exit 1); exit 1; }; }
6141fi
6142
6143else
6144  ac_cv_path_GREP=$GREP
6145fi
6146
6147
6148fi
6149{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6150echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6151 GREP="$ac_cv_path_GREP"
6152
6153
6154{ echo "$as_me:$LINENO: checking for egrep" >&5
6155echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6156if test "${ac_cv_path_EGREP+set}" = set; then
6157  echo $ECHO_N "(cached) $ECHO_C" >&6
6158else
6159  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6160   then ac_cv_path_EGREP="$GREP -E"
6161   else
6162     # Extract the first word of "egrep" to use in msg output
6163if test -z "$EGREP"; then
6164set dummy egrep; ac_prog_name=$2
6165if test "${ac_cv_path_EGREP+set}" = set; then
6166  echo $ECHO_N "(cached) $ECHO_C" >&6
6167else
6168  ac_path_EGREP_found=false
6169# Loop through the user's path and test for each of PROGNAME-LIST
6170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6172do
6173  IFS=$as_save_IFS
6174  test -z "$as_dir" && as_dir=.
6175  for ac_prog in egrep; do
6176  for ac_exec_ext in '' $ac_executable_extensions; do
6177    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6178    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6179    # Check for GNU ac_path_EGREP and select it if it is found.
6180  # Check for GNU $ac_path_EGREP
6181case `"$ac_path_EGREP" --version 2>&1` in
6182*GNU*)
6183  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6184*)
6185  ac_count=0
6186  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6187  while :
6188  do
6189    cat "conftest.in" "conftest.in" >"conftest.tmp"
6190    mv "conftest.tmp" "conftest.in"
6191    cp "conftest.in" "conftest.nl"
6192    echo 'EGREP' >> "conftest.nl"
6193    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6194    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6195    ac_count=`expr $ac_count + 1`
6196    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6197      # Best one so far, save it but keep looking for a better one
6198      ac_cv_path_EGREP="$ac_path_EGREP"
6199      ac_path_EGREP_max=$ac_count
6200    fi
6201    # 10*(2^10) chars as input seems more than enough
6202    test $ac_count -gt 10 && break
6203  done
6204  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6205esac
6206
6207
6208    $ac_path_EGREP_found && break 3
6209  done
6210done
6211
6212done
6213IFS=$as_save_IFS
6214
6215
6216fi
6217
6218EGREP="$ac_cv_path_EGREP"
6219if test -z "$EGREP"; then
6220  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6221echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6222   { (exit 1); exit 1; }; }
6223fi
6224
6225else
6226  ac_cv_path_EGREP=$EGREP
6227fi
6228
6229
6230   fi
6231fi
6232{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6233echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6234 EGREP="$ac_cv_path_EGREP"
6235
6236
6237
6238# Check whether --with-gnu-ld was given.
6239if test "${with_gnu_ld+set}" = set; then
6240  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6241else
6242  with_gnu_ld=no
6243fi
6244
6245ac_prog=ld
6246if test "$GCC" = yes; then
6247  # Check if gcc -print-prog-name=ld gives a path.
6248  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6249echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6250  case $host in
6251  *-*-mingw*)
6252    # gcc leaves a trailing carriage return which upsets mingw
6253    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6254  *)
6255    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6256  esac
6257  case $ac_prog in
6258    # Accept absolute paths.
6259    [\\/]* | ?:[\\/]*)
6260      re_direlt='/[^/][^/]*/\.\./'
6261      # Canonicalize the pathname of ld
6262      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6263      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6264	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6265      done
6266      test -z "$LD" && LD="$ac_prog"
6267      ;;
6268  "")
6269    # If it fails, then pretend we aren't using GCC.
6270    ac_prog=ld
6271    ;;
6272  *)
6273    # If it is relative, then search for the first ld in PATH.
6274    with_gnu_ld=unknown
6275    ;;
6276  esac
6277elif test "$with_gnu_ld" = yes; then
6278  { echo "$as_me:$LINENO: checking for GNU ld" >&5
6279echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6280else
6281  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6282echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6283fi
6284if test "${lt_cv_path_LD+set}" = set; then
6285  echo $ECHO_N "(cached) $ECHO_C" >&6
6286else
6287  if test -z "$LD"; then
6288  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6289  for ac_dir in $PATH; do
6290    IFS="$lt_save_ifs"
6291    test -z "$ac_dir" && ac_dir=.
6292    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6293      lt_cv_path_LD="$ac_dir/$ac_prog"
6294      # Check to see if the program is GNU ld.  I'd rather use --version,
6295      # but apparently some variants of GNU ld only accept -v.
6296      # Break only if it was the GNU/non-GNU ld that we prefer.
6297      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6298      *GNU* | *'with BFD'*)
6299	test "$with_gnu_ld" != no && break
6300	;;
6301      *)
6302	test "$with_gnu_ld" != yes && break
6303	;;
6304      esac
6305    fi
6306  done
6307  IFS="$lt_save_ifs"
6308else
6309  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6310fi
6311fi
6312
6313LD="$lt_cv_path_LD"
6314if test -n "$LD"; then
6315  { echo "$as_me:$LINENO: result: $LD" >&5
6316echo "${ECHO_T}$LD" >&6; }
6317else
6318  { echo "$as_me:$LINENO: result: no" >&5
6319echo "${ECHO_T}no" >&6; }
6320fi
6321test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6322echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6323   { (exit 1); exit 1; }; }
6324{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6325echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6326if test "${lt_cv_prog_gnu_ld+set}" = set; then
6327  echo $ECHO_N "(cached) $ECHO_C" >&6
6328else
6329  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6330case `$LD -v 2>&1 </dev/null` in
6331*GNU* | *'with BFD'*)
6332  lt_cv_prog_gnu_ld=yes
6333  ;;
6334*)
6335  lt_cv_prog_gnu_ld=no
6336  ;;
6337esac
6338fi
6339{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6340echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6341with_gnu_ld=$lt_cv_prog_gnu_ld
6342
6343
6344{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6345echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6346if test "${lt_cv_ld_reload_flag+set}" = set; then
6347  echo $ECHO_N "(cached) $ECHO_C" >&6
6348else
6349  lt_cv_ld_reload_flag='-r'
6350fi
6351{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6352echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6353reload_flag=$lt_cv_ld_reload_flag
6354case $reload_flag in
6355"" | " "*) ;;
6356*) reload_flag=" $reload_flag" ;;
6357esac
6358reload_cmds='$LD$reload_flag -o $output$reload_objs'
6359case $host_os in
6360  darwin*)
6361    if test "$GCC" = yes; then
6362      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6363    else
6364      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6365    fi
6366    ;;
6367esac
6368
6369{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6370echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6371if test "${lt_cv_path_NM+set}" = set; then
6372  echo $ECHO_N "(cached) $ECHO_C" >&6
6373else
6374  if test -n "$NM"; then
6375  # Let the user override the test.
6376  lt_cv_path_NM="$NM"
6377else
6378  lt_nm_to_check="${ac_tool_prefix}nm"
6379  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6380    lt_nm_to_check="$lt_nm_to_check nm"
6381  fi
6382  for lt_tmp_nm in $lt_nm_to_check; do
6383    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6384    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6385      IFS="$lt_save_ifs"
6386      test -z "$ac_dir" && ac_dir=.
6387      tmp_nm="$ac_dir/$lt_tmp_nm"
6388      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6389	# Check to see if the nm accepts a BSD-compat flag.
6390	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6391	#   nm: unknown option "B" ignored
6392	# Tru64's nm complains that /dev/null is an invalid object file
6393	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6394	*/dev/null* | *'Invalid file or object type'*)
6395	  lt_cv_path_NM="$tmp_nm -B"
6396	  break
6397	  ;;
6398	*)
6399	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6400	  */dev/null*)
6401	    lt_cv_path_NM="$tmp_nm -p"
6402	    break
6403	    ;;
6404	  *)
6405	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6406	    continue # so that we can try to find one that supports BSD flags
6407	    ;;
6408	  esac
6409	  ;;
6410	esac
6411      fi
6412    done
6413    IFS="$lt_save_ifs"
6414  done
6415  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6416fi
6417fi
6418{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6419echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6420NM="$lt_cv_path_NM"
6421
6422{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6423echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6424LN_S=$as_ln_s
6425if test "$LN_S" = "ln -s"; then
6426  { echo "$as_me:$LINENO: result: yes" >&5
6427echo "${ECHO_T}yes" >&6; }
6428else
6429  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6430echo "${ECHO_T}no, using $LN_S" >&6; }
6431fi
6432
6433{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6434echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6435if test "${lt_cv_deplibs_check_method+set}" = set; then
6436  echo $ECHO_N "(cached) $ECHO_C" >&6
6437else
6438  lt_cv_file_magic_cmd='$MAGIC_CMD'
6439lt_cv_file_magic_test_file=
6440lt_cv_deplibs_check_method='unknown'
6441# Need to set the preceding variable on all platforms that support
6442# interlibrary dependencies.
6443# 'none' -- dependencies not supported.
6444# `unknown' -- same as none, but documents that we really don't know.
6445# 'pass_all' -- all dependencies passed with no checks.
6446# 'test_compile' -- check by making test program.
6447# 'file_magic [[regex]]' -- check by looking for files in library path
6448# which responds to the $file_magic_cmd with a given extended regex.
6449# If you have `file' or equivalent on your system and you're not sure
6450# whether `pass_all' will *always* work, you probably want this one.
6451
6452case $host_os in
6453aix4* | aix5*)
6454  lt_cv_deplibs_check_method=pass_all
6455  ;;
6456
6457beos*)
6458  lt_cv_deplibs_check_method=pass_all
6459  ;;
6460
6461bsdi[45]*)
6462  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6463  lt_cv_file_magic_cmd='/usr/bin/file -L'
6464  lt_cv_file_magic_test_file=/shlib/libc.so
6465  ;;
6466
6467cygwin*)
6468  # func_win32_libid is a shell function defined in ltmain.sh
6469  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6470  lt_cv_file_magic_cmd='func_win32_libid'
6471  ;;
6472
6473mingw* | pw32*)
6474  # Base MSYS/MinGW do not provide the 'file' command needed by
6475  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6476  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6477  lt_cv_file_magic_cmd='$OBJDUMP -f'
6478  ;;
6479
6480darwin* | rhapsody*)
6481  lt_cv_deplibs_check_method=pass_all
6482  ;;
6483
6484freebsd* | kfreebsd*-gnu | dragonfly*)
6485  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6486    case $host_cpu in
6487    i*86 )
6488      # Not sure whether the presence of OpenBSD here was a mistake.
6489      # Let's accept both of them until this is cleared up.
6490      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6491      lt_cv_file_magic_cmd=/usr/bin/file
6492      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6493      ;;
6494    esac
6495  else
6496    lt_cv_deplibs_check_method=pass_all
6497  fi
6498  ;;
6499
6500gnu*)
6501  lt_cv_deplibs_check_method=pass_all
6502  ;;
6503
6504hpux10.20* | hpux11*)
6505  lt_cv_file_magic_cmd=/usr/bin/file
6506  case $host_cpu in
6507  ia64*)
6508    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6509    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6510    ;;
6511  hppa*64*)
6512    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6513    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6514    ;;
6515  *)
6516    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6517    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6518    ;;
6519  esac
6520  ;;
6521
6522interix3*)
6523  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6524  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6525  ;;
6526
6527irix5* | irix6* | nonstopux*)
6528  case $LD in
6529  *-32|*"-32 ") libmagic=32-bit;;
6530  *-n32|*"-n32 ") libmagic=N32;;
6531  *-64|*"-64 ") libmagic=64-bit;;
6532  *) libmagic=never-match;;
6533  esac
6534  lt_cv_deplibs_check_method=pass_all
6535  ;;
6536
6537# This must be Linux ELF.
6538linux*)
6539  lt_cv_deplibs_check_method=pass_all
6540  ;;
6541
6542netbsd*)
6543  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6544    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6545  else
6546    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6547  fi
6548  ;;
6549
6550newos6*)
6551  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6552  lt_cv_file_magic_cmd=/usr/bin/file
6553  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6554  ;;
6555
6556nto-qnx*)
6557  lt_cv_deplibs_check_method=unknown
6558  ;;
6559
6560openbsd*)
6561  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6562    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6563  else
6564    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6565  fi
6566  ;;
6567
6568osf3* | osf4* | osf5*)
6569  lt_cv_deplibs_check_method=pass_all
6570  ;;
6571
6572solaris*)
6573  lt_cv_deplibs_check_method=pass_all
6574  ;;
6575
6576sysv4 | sysv4.3*)
6577  case $host_vendor in
6578  motorola)
6579    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]'
6580    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6581    ;;
6582  ncr)
6583    lt_cv_deplibs_check_method=pass_all
6584    ;;
6585  sequent)
6586    lt_cv_file_magic_cmd='/bin/file'
6587    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6588    ;;
6589  sni)
6590    lt_cv_file_magic_cmd='/bin/file'
6591    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6592    lt_cv_file_magic_test_file=/lib/libc.so
6593    ;;
6594  siemens)
6595    lt_cv_deplibs_check_method=pass_all
6596    ;;
6597  pc)
6598    lt_cv_deplibs_check_method=pass_all
6599    ;;
6600  esac
6601  ;;
6602
6603sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6604  lt_cv_deplibs_check_method=pass_all
6605  ;;
6606esac
6607
6608fi
6609{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6610echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6611file_magic_cmd=$lt_cv_file_magic_cmd
6612deplibs_check_method=$lt_cv_deplibs_check_method
6613test -z "$deplibs_check_method" && deplibs_check_method=unknown
6614
6615
6616
6617
6618# If no C compiler was specified, use CC.
6619LTCC=${LTCC-"$CC"}
6620
6621# If no C compiler flags were specified, use CFLAGS.
6622LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6623
6624# Allow CC to be a program name with arguments.
6625compiler=$CC
6626
6627# Check whether --enable-libtool-lock was given.
6628if test "${enable_libtool_lock+set}" = set; then
6629  enableval=$enable_libtool_lock;
6630fi
6631
6632test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6633
6634# Some flags need to be propagated to the compiler or linker for good
6635# libtool support.
6636case $host in
6637ia64-*-hpux*)
6638  # Find out which ABI we are using.
6639  echo 'int i;' > conftest.$ac_ext
6640  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6641  (eval $ac_compile) 2>&5
6642  ac_status=$?
6643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644  (exit $ac_status); }; then
6645    case `/usr/bin/file conftest.$ac_objext` in
6646    *ELF-32*)
6647      HPUX_IA64_MODE="32"
6648      ;;
6649    *ELF-64*)
6650      HPUX_IA64_MODE="64"
6651      ;;
6652    esac
6653  fi
6654  rm -rf conftest*
6655  ;;
6656*-*-irix6*)
6657  # Find out which ABI we are using.
6658  echo '#line 6658 "configure"' > conftest.$ac_ext
6659  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6660  (eval $ac_compile) 2>&5
6661  ac_status=$?
6662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663  (exit $ac_status); }; then
6664   if test "$lt_cv_prog_gnu_ld" = yes; then
6665    case `/usr/bin/file conftest.$ac_objext` in
6666    *32-bit*)
6667      LD="${LD-ld} -melf32bsmip"
6668      ;;
6669    *N32*)
6670      LD="${LD-ld} -melf32bmipn32"
6671      ;;
6672    *64-bit*)
6673      LD="${LD-ld} -melf64bmip"
6674      ;;
6675    esac
6676   else
6677    case `/usr/bin/file conftest.$ac_objext` in
6678    *32-bit*)
6679      LD="${LD-ld} -32"
6680      ;;
6681    *N32*)
6682      LD="${LD-ld} -n32"
6683      ;;
6684    *64-bit*)
6685      LD="${LD-ld} -64"
6686      ;;
6687    esac
6688   fi
6689  fi
6690  rm -rf conftest*
6691  ;;
6692
6693x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6694  # Find out which ABI we are using.
6695  echo 'int i;' > conftest.$ac_ext
6696  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6697  (eval $ac_compile) 2>&5
6698  ac_status=$?
6699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700  (exit $ac_status); }; then
6701    case `/usr/bin/file conftest.o` in
6702    *32-bit*)
6703      case $host in
6704        x86_64-*linux*)
6705          LD="${LD-ld} -m elf_i386"
6706          ;;
6707        ppc64-*linux*|powerpc64-*linux*)
6708          LD="${LD-ld} -m elf32ppclinux"
6709          ;;
6710        s390x-*linux*)
6711          LD="${LD-ld} -m elf_s390"
6712          ;;
6713        sparc64-*linux*)
6714          LD="${LD-ld} -m elf32_sparc"
6715          ;;
6716      esac
6717      ;;
6718    *64-bit*)
6719      case $host in
6720        x86_64-*linux*)
6721          LD="${LD-ld} -m elf_x86_64"
6722          ;;
6723        ppc*-*linux*|powerpc*-*linux*)
6724          LD="${LD-ld} -m elf64ppc"
6725          ;;
6726        s390*-*linux*)
6727          LD="${LD-ld} -m elf64_s390"
6728          ;;
6729        sparc*-*linux*)
6730          LD="${LD-ld} -m elf64_sparc"
6731          ;;
6732      esac
6733      ;;
6734    esac
6735  fi
6736  rm -rf conftest*
6737  ;;
6738
6739*-*-sco3.2v5*)
6740  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6741  SAVE_CFLAGS="$CFLAGS"
6742  CFLAGS="$CFLAGS -belf"
6743  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6744echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6745if test "${lt_cv_cc_needs_belf+set}" = set; then
6746  echo $ECHO_N "(cached) $ECHO_C" >&6
6747else
6748  ac_ext=c
6749ac_cpp='$CPP $CPPFLAGS'
6750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6752ac_compiler_gnu=$ac_cv_c_compiler_gnu
6753
6754     cat >conftest.$ac_ext <<_ACEOF
6755/* confdefs.h.  */
6756_ACEOF
6757cat confdefs.h >>conftest.$ac_ext
6758cat >>conftest.$ac_ext <<_ACEOF
6759/* end confdefs.h.  */
6760
6761int
6762main ()
6763{
6764
6765  ;
6766  return 0;
6767}
6768_ACEOF
6769rm -f conftest.$ac_objext conftest$ac_exeext
6770if { (ac_try="$ac_link"
6771case "(($ac_try" in
6772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773  *) ac_try_echo=$ac_try;;
6774esac
6775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6776  (eval "$ac_link") 2>conftest.er1
6777  ac_status=$?
6778  grep -v '^ *+' conftest.er1 >conftest.err
6779  rm -f conftest.er1
6780  cat conftest.err >&5
6781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782  (exit $ac_status); } && {
6783	 test -z "$ac_c_werror_flag" ||
6784	 test ! -s conftest.err
6785       } && test -s conftest$ac_exeext &&
6786       $as_test_x conftest$ac_exeext; then
6787  lt_cv_cc_needs_belf=yes
6788else
6789  echo "$as_me: failed program was:" >&5
6790sed 's/^/| /' conftest.$ac_ext >&5
6791
6792	lt_cv_cc_needs_belf=no
6793fi
6794
6795rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6796      conftest$ac_exeext conftest.$ac_ext
6797     ac_ext=c
6798ac_cpp='$CPP $CPPFLAGS'
6799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6801ac_compiler_gnu=$ac_cv_c_compiler_gnu
6802
6803fi
6804{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6805echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6806  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6807    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6808    CFLAGS="$SAVE_CFLAGS"
6809  fi
6810  ;;
6811sparc*-*solaris*)
6812  # Find out which ABI we are using.
6813  echo 'int i;' > conftest.$ac_ext
6814  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6815  (eval $ac_compile) 2>&5
6816  ac_status=$?
6817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818  (exit $ac_status); }; then
6819    case `/usr/bin/file conftest.o` in
6820    *64-bit*)
6821      case $lt_cv_prog_gnu_ld in
6822      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6823      *)    LD="${LD-ld} -64" ;;
6824      esac
6825      ;;
6826    esac
6827  fi
6828  rm -rf conftest*
6829  ;;
6830
6831
6832esac
6833
6834need_locks="$enable_libtool_lock"
6835
6836
6837ac_ext=c
6838ac_cpp='$CPP $CPPFLAGS'
6839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6841ac_compiler_gnu=$ac_cv_c_compiler_gnu
6842{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6843echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6844# On Suns, sometimes $CPP names a directory.
6845if test -n "$CPP" && test -d "$CPP"; then
6846  CPP=
6847fi
6848if test -z "$CPP"; then
6849  if test "${ac_cv_prog_CPP+set}" = set; then
6850  echo $ECHO_N "(cached) $ECHO_C" >&6
6851else
6852      # Double quotes because CPP needs to be expanded
6853    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6854    do
6855      ac_preproc_ok=false
6856for ac_c_preproc_warn_flag in '' yes
6857do
6858  # Use a header file that comes with gcc, so configuring glibc
6859  # with a fresh cross-compiler works.
6860  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6861  # <limits.h> exists even on freestanding compilers.
6862  # On the NeXT, cc -E runs the code through the compiler's parser,
6863  # not just through cpp. "Syntax error" is here to catch this case.
6864  cat >conftest.$ac_ext <<_ACEOF
6865/* confdefs.h.  */
6866_ACEOF
6867cat confdefs.h >>conftest.$ac_ext
6868cat >>conftest.$ac_ext <<_ACEOF
6869/* end confdefs.h.  */
6870#ifdef __STDC__
6871# include <limits.h>
6872#else
6873# include <assert.h>
6874#endif
6875		     Syntax error
6876_ACEOF
6877if { (ac_try="$ac_cpp conftest.$ac_ext"
6878case "(($ac_try" in
6879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6880  *) ac_try_echo=$ac_try;;
6881esac
6882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6883  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6884  ac_status=$?
6885  grep -v '^ *+' conftest.er1 >conftest.err
6886  rm -f conftest.er1
6887  cat conftest.err >&5
6888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889  (exit $ac_status); } >/dev/null && {
6890	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6891	 test ! -s conftest.err
6892       }; then
6893  :
6894else
6895  echo "$as_me: failed program was:" >&5
6896sed 's/^/| /' conftest.$ac_ext >&5
6897
6898  # Broken: fails on valid input.
6899continue
6900fi
6901
6902rm -f conftest.err conftest.$ac_ext
6903
6904  # OK, works on sane cases.  Now check whether nonexistent headers
6905  # can be detected and how.
6906  cat >conftest.$ac_ext <<_ACEOF
6907/* confdefs.h.  */
6908_ACEOF
6909cat confdefs.h >>conftest.$ac_ext
6910cat >>conftest.$ac_ext <<_ACEOF
6911/* end confdefs.h.  */
6912#include <ac_nonexistent.h>
6913_ACEOF
6914if { (ac_try="$ac_cpp conftest.$ac_ext"
6915case "(($ac_try" in
6916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6917  *) ac_try_echo=$ac_try;;
6918esac
6919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6920  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6921  ac_status=$?
6922  grep -v '^ *+' conftest.er1 >conftest.err
6923  rm -f conftest.er1
6924  cat conftest.err >&5
6925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926  (exit $ac_status); } >/dev/null && {
6927	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6928	 test ! -s conftest.err
6929       }; then
6930  # Broken: success on invalid input.
6931continue
6932else
6933  echo "$as_me: failed program was:" >&5
6934sed 's/^/| /' conftest.$ac_ext >&5
6935
6936  # Passes both tests.
6937ac_preproc_ok=:
6938break
6939fi
6940
6941rm -f conftest.err conftest.$ac_ext
6942
6943done
6944# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6945rm -f conftest.err conftest.$ac_ext
6946if $ac_preproc_ok; then
6947  break
6948fi
6949
6950    done
6951    ac_cv_prog_CPP=$CPP
6952
6953fi
6954  CPP=$ac_cv_prog_CPP
6955else
6956  ac_cv_prog_CPP=$CPP
6957fi
6958{ echo "$as_me:$LINENO: result: $CPP" >&5
6959echo "${ECHO_T}$CPP" >&6; }
6960ac_preproc_ok=false
6961for ac_c_preproc_warn_flag in '' yes
6962do
6963  # Use a header file that comes with gcc, so configuring glibc
6964  # with a fresh cross-compiler works.
6965  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6966  # <limits.h> exists even on freestanding compilers.
6967  # On the NeXT, cc -E runs the code through the compiler's parser,
6968  # not just through cpp. "Syntax error" is here to catch this case.
6969  cat >conftest.$ac_ext <<_ACEOF
6970/* confdefs.h.  */
6971_ACEOF
6972cat confdefs.h >>conftest.$ac_ext
6973cat >>conftest.$ac_ext <<_ACEOF
6974/* end confdefs.h.  */
6975#ifdef __STDC__
6976# include <limits.h>
6977#else
6978# include <assert.h>
6979#endif
6980		     Syntax error
6981_ACEOF
6982if { (ac_try="$ac_cpp conftest.$ac_ext"
6983case "(($ac_try" in
6984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985  *) ac_try_echo=$ac_try;;
6986esac
6987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6988  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6989  ac_status=$?
6990  grep -v '^ *+' conftest.er1 >conftest.err
6991  rm -f conftest.er1
6992  cat conftest.err >&5
6993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994  (exit $ac_status); } >/dev/null && {
6995	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6996	 test ! -s conftest.err
6997       }; then
6998  :
6999else
7000  echo "$as_me: failed program was:" >&5
7001sed 's/^/| /' conftest.$ac_ext >&5
7002
7003  # Broken: fails on valid input.
7004continue
7005fi
7006
7007rm -f conftest.err conftest.$ac_ext
7008
7009  # OK, works on sane cases.  Now check whether nonexistent headers
7010  # can be detected and how.
7011  cat >conftest.$ac_ext <<_ACEOF
7012/* confdefs.h.  */
7013_ACEOF
7014cat confdefs.h >>conftest.$ac_ext
7015cat >>conftest.$ac_ext <<_ACEOF
7016/* end confdefs.h.  */
7017#include <ac_nonexistent.h>
7018_ACEOF
7019if { (ac_try="$ac_cpp conftest.$ac_ext"
7020case "(($ac_try" in
7021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7022  *) ac_try_echo=$ac_try;;
7023esac
7024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7025  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7026  ac_status=$?
7027  grep -v '^ *+' conftest.er1 >conftest.err
7028  rm -f conftest.er1
7029  cat conftest.err >&5
7030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031  (exit $ac_status); } >/dev/null && {
7032	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7033	 test ! -s conftest.err
7034       }; then
7035  # Broken: success on invalid input.
7036continue
7037else
7038  echo "$as_me: failed program was:" >&5
7039sed 's/^/| /' conftest.$ac_ext >&5
7040
7041  # Passes both tests.
7042ac_preproc_ok=:
7043break
7044fi
7045
7046rm -f conftest.err conftest.$ac_ext
7047
7048done
7049# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7050rm -f conftest.err conftest.$ac_ext
7051if $ac_preproc_ok; then
7052  :
7053else
7054  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7055See \`config.log' for more details." >&5
7056echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7057See \`config.log' for more details." >&2;}
7058   { (exit 1); exit 1; }; }
7059fi
7060
7061ac_ext=c
7062ac_cpp='$CPP $CPPFLAGS'
7063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7065ac_compiler_gnu=$ac_cv_c_compiler_gnu
7066
7067
7068{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7069echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7070if test "${ac_cv_header_stdc+set}" = set; then
7071  echo $ECHO_N "(cached) $ECHO_C" >&6
7072else
7073  cat >conftest.$ac_ext <<_ACEOF
7074/* confdefs.h.  */
7075_ACEOF
7076cat confdefs.h >>conftest.$ac_ext
7077cat >>conftest.$ac_ext <<_ACEOF
7078/* end confdefs.h.  */
7079#include <stdlib.h>
7080#include <stdarg.h>
7081#include <string.h>
7082#include <float.h>
7083
7084int
7085main ()
7086{
7087
7088  ;
7089  return 0;
7090}
7091_ACEOF
7092rm -f conftest.$ac_objext
7093if { (ac_try="$ac_compile"
7094case "(($ac_try" in
7095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7096  *) ac_try_echo=$ac_try;;
7097esac
7098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7099  (eval "$ac_compile") 2>conftest.er1
7100  ac_status=$?
7101  grep -v '^ *+' conftest.er1 >conftest.err
7102  rm -f conftest.er1
7103  cat conftest.err >&5
7104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105  (exit $ac_status); } && {
7106	 test -z "$ac_c_werror_flag" ||
7107	 test ! -s conftest.err
7108       } && test -s conftest.$ac_objext; then
7109  ac_cv_header_stdc=yes
7110else
7111  echo "$as_me: failed program was:" >&5
7112sed 's/^/| /' conftest.$ac_ext >&5
7113
7114	ac_cv_header_stdc=no
7115fi
7116
7117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7118
7119if test $ac_cv_header_stdc = yes; then
7120  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7121  cat >conftest.$ac_ext <<_ACEOF
7122/* confdefs.h.  */
7123_ACEOF
7124cat confdefs.h >>conftest.$ac_ext
7125cat >>conftest.$ac_ext <<_ACEOF
7126/* end confdefs.h.  */
7127#include <string.h>
7128
7129_ACEOF
7130if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7131  $EGREP "memchr" >/dev/null 2>&1; then
7132  :
7133else
7134  ac_cv_header_stdc=no
7135fi
7136rm -f conftest*
7137
7138fi
7139
7140if test $ac_cv_header_stdc = yes; then
7141  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7142  cat >conftest.$ac_ext <<_ACEOF
7143/* confdefs.h.  */
7144_ACEOF
7145cat confdefs.h >>conftest.$ac_ext
7146cat >>conftest.$ac_ext <<_ACEOF
7147/* end confdefs.h.  */
7148#include <stdlib.h>
7149
7150_ACEOF
7151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7152  $EGREP "free" >/dev/null 2>&1; then
7153  :
7154else
7155  ac_cv_header_stdc=no
7156fi
7157rm -f conftest*
7158
7159fi
7160
7161if test $ac_cv_header_stdc = yes; then
7162  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7163  if test "$cross_compiling" = yes; then
7164  :
7165else
7166  cat >conftest.$ac_ext <<_ACEOF
7167/* confdefs.h.  */
7168_ACEOF
7169cat confdefs.h >>conftest.$ac_ext
7170cat >>conftest.$ac_ext <<_ACEOF
7171/* end confdefs.h.  */
7172#include <ctype.h>
7173#include <stdlib.h>
7174#if ((' ' & 0x0FF) == 0x020)
7175# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7176# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7177#else
7178# define ISLOWER(c) \
7179		   (('a' <= (c) && (c) <= 'i') \
7180		     || ('j' <= (c) && (c) <= 'r') \
7181		     || ('s' <= (c) && (c) <= 'z'))
7182# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7183#endif
7184
7185#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7186int
7187main ()
7188{
7189  int i;
7190  for (i = 0; i < 256; i++)
7191    if (XOR (islower (i), ISLOWER (i))
7192	|| toupper (i) != TOUPPER (i))
7193      return 2;
7194  return 0;
7195}
7196_ACEOF
7197rm -f conftest$ac_exeext
7198if { (ac_try="$ac_link"
7199case "(($ac_try" in
7200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7201  *) ac_try_echo=$ac_try;;
7202esac
7203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7204  (eval "$ac_link") 2>&5
7205  ac_status=$?
7206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7208  { (case "(($ac_try" in
7209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7210  *) ac_try_echo=$ac_try;;
7211esac
7212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7213  (eval "$ac_try") 2>&5
7214  ac_status=$?
7215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216  (exit $ac_status); }; }; then
7217  :
7218else
7219  echo "$as_me: program exited with status $ac_status" >&5
7220echo "$as_me: failed program was:" >&5
7221sed 's/^/| /' conftest.$ac_ext >&5
7222
7223( exit $ac_status )
7224ac_cv_header_stdc=no
7225fi
7226rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7227fi
7228
7229
7230fi
7231fi
7232{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7233echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7234if test $ac_cv_header_stdc = yes; then
7235
7236cat >>confdefs.h <<\_ACEOF
7237#define STDC_HEADERS 1
7238_ACEOF
7239
7240fi
7241
7242# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7253		  inttypes.h stdint.h unistd.h
7254do
7255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7256{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7259  echo $ECHO_N "(cached) $ECHO_C" >&6
7260else
7261  cat >conftest.$ac_ext <<_ACEOF
7262/* confdefs.h.  */
7263_ACEOF
7264cat confdefs.h >>conftest.$ac_ext
7265cat >>conftest.$ac_ext <<_ACEOF
7266/* end confdefs.h.  */
7267$ac_includes_default
7268
7269#include <$ac_header>
7270_ACEOF
7271rm -f conftest.$ac_objext
7272if { (ac_try="$ac_compile"
7273case "(($ac_try" in
7274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7275  *) ac_try_echo=$ac_try;;
7276esac
7277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7278  (eval "$ac_compile") 2>conftest.er1
7279  ac_status=$?
7280  grep -v '^ *+' conftest.er1 >conftest.err
7281  rm -f conftest.er1
7282  cat conftest.err >&5
7283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284  (exit $ac_status); } && {
7285	 test -z "$ac_c_werror_flag" ||
7286	 test ! -s conftest.err
7287       } && test -s conftest.$ac_objext; then
7288  eval "$as_ac_Header=yes"
7289else
7290  echo "$as_me: failed program was:" >&5
7291sed 's/^/| /' conftest.$ac_ext >&5
7292
7293	eval "$as_ac_Header=no"
7294fi
7295
7296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7297fi
7298ac_res=`eval echo '${'$as_ac_Header'}'`
7299	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7300echo "${ECHO_T}$ac_res" >&6; }
7301if test `eval echo '${'$as_ac_Header'}'` = yes; then
7302  cat >>confdefs.h <<_ACEOF
7303#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7304_ACEOF
7305
7306fi
7307
7308done
7309
7310
7311
7312for ac_header in dlfcn.h
7313do
7314as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7316  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7319  echo $ECHO_N "(cached) $ECHO_C" >&6
7320fi
7321ac_res=`eval echo '${'$as_ac_Header'}'`
7322	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7323echo "${ECHO_T}$ac_res" >&6; }
7324else
7325  # Is the header compilable?
7326{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7327echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7328cat >conftest.$ac_ext <<_ACEOF
7329/* confdefs.h.  */
7330_ACEOF
7331cat confdefs.h >>conftest.$ac_ext
7332cat >>conftest.$ac_ext <<_ACEOF
7333/* end confdefs.h.  */
7334$ac_includes_default
7335#include <$ac_header>
7336_ACEOF
7337rm -f conftest.$ac_objext
7338if { (ac_try="$ac_compile"
7339case "(($ac_try" in
7340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341  *) ac_try_echo=$ac_try;;
7342esac
7343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7344  (eval "$ac_compile") 2>conftest.er1
7345  ac_status=$?
7346  grep -v '^ *+' conftest.er1 >conftest.err
7347  rm -f conftest.er1
7348  cat conftest.err >&5
7349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350  (exit $ac_status); } && {
7351	 test -z "$ac_c_werror_flag" ||
7352	 test ! -s conftest.err
7353       } && test -s conftest.$ac_objext; then
7354  ac_header_compiler=yes
7355else
7356  echo "$as_me: failed program was:" >&5
7357sed 's/^/| /' conftest.$ac_ext >&5
7358
7359	ac_header_compiler=no
7360fi
7361
7362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7363{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7364echo "${ECHO_T}$ac_header_compiler" >&6; }
7365
7366# Is the header present?
7367{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7368echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7369cat >conftest.$ac_ext <<_ACEOF
7370/* confdefs.h.  */
7371_ACEOF
7372cat confdefs.h >>conftest.$ac_ext
7373cat >>conftest.$ac_ext <<_ACEOF
7374/* end confdefs.h.  */
7375#include <$ac_header>
7376_ACEOF
7377if { (ac_try="$ac_cpp conftest.$ac_ext"
7378case "(($ac_try" in
7379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7380  *) ac_try_echo=$ac_try;;
7381esac
7382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7383  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7384  ac_status=$?
7385  grep -v '^ *+' conftest.er1 >conftest.err
7386  rm -f conftest.er1
7387  cat conftest.err >&5
7388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389  (exit $ac_status); } >/dev/null && {
7390	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7391	 test ! -s conftest.err
7392       }; then
7393  ac_header_preproc=yes
7394else
7395  echo "$as_me: failed program was:" >&5
7396sed 's/^/| /' conftest.$ac_ext >&5
7397
7398  ac_header_preproc=no
7399fi
7400
7401rm -f conftest.err conftest.$ac_ext
7402{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7403echo "${ECHO_T}$ac_header_preproc" >&6; }
7404
7405# So?  What about this header?
7406case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7407  yes:no: )
7408    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7409echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7410    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7411echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7412    ac_header_preproc=yes
7413    ;;
7414  no:yes:* )
7415    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7416echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7417    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7418echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7419    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7420echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7421    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7422echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7423    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7424echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7425    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7426echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7427    ( cat <<\_ASBOX
7428## ---------------------------------------------------------- ##
7429## Report this to Oracle Technology Network Berkeley DB forum ##
7430## ---------------------------------------------------------- ##
7431_ASBOX
7432     ) | sed "s/^/$as_me: WARNING:     /" >&2
7433    ;;
7434esac
7435{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7437if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7438  echo $ECHO_N "(cached) $ECHO_C" >&6
7439else
7440  eval "$as_ac_Header=\$ac_header_preproc"
7441fi
7442ac_res=`eval echo '${'$as_ac_Header'}'`
7443	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7444echo "${ECHO_T}$ac_res" >&6; }
7445
7446fi
7447if test `eval echo '${'$as_ac_Header'}'` = yes; then
7448  cat >>confdefs.h <<_ACEOF
7449#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7450_ACEOF
7451
7452fi
7453
7454done
7455
7456
7457
7458if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7459    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7460    (test "X$CXX" != "Xg++"))) ; then
7461  ac_ext=cpp
7462ac_cpp='$CXXCPP $CPPFLAGS'
7463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7466{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7467echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7468if test -z "$CXXCPP"; then
7469  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7470  echo $ECHO_N "(cached) $ECHO_C" >&6
7471else
7472      # Double quotes because CXXCPP needs to be expanded
7473    for CXXCPP in "$CXX -E" "/lib/cpp"
7474    do
7475      ac_preproc_ok=false
7476for ac_cxx_preproc_warn_flag in '' yes
7477do
7478  # Use a header file that comes with gcc, so configuring glibc
7479  # with a fresh cross-compiler works.
7480  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7481  # <limits.h> exists even on freestanding compilers.
7482  # On the NeXT, cc -E runs the code through the compiler's parser,
7483  # not just through cpp. "Syntax error" is here to catch this case.
7484  cat >conftest.$ac_ext <<_ACEOF
7485/* confdefs.h.  */
7486_ACEOF
7487cat confdefs.h >>conftest.$ac_ext
7488cat >>conftest.$ac_ext <<_ACEOF
7489/* end confdefs.h.  */
7490#ifdef __STDC__
7491# include <limits.h>
7492#else
7493# include <assert.h>
7494#endif
7495		     Syntax error
7496_ACEOF
7497if { (ac_try="$ac_cpp conftest.$ac_ext"
7498case "(($ac_try" in
7499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500  *) ac_try_echo=$ac_try;;
7501esac
7502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7503  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7504  ac_status=$?
7505  grep -v '^ *+' conftest.er1 >conftest.err
7506  rm -f conftest.er1
7507  cat conftest.err >&5
7508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509  (exit $ac_status); } >/dev/null && {
7510	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7511	 test ! -s conftest.err
7512       }; then
7513  :
7514else
7515  echo "$as_me: failed program was:" >&5
7516sed 's/^/| /' conftest.$ac_ext >&5
7517
7518  # Broken: fails on valid input.
7519continue
7520fi
7521
7522rm -f conftest.err conftest.$ac_ext
7523
7524  # OK, works on sane cases.  Now check whether nonexistent headers
7525  # can be detected and how.
7526  cat >conftest.$ac_ext <<_ACEOF
7527/* confdefs.h.  */
7528_ACEOF
7529cat confdefs.h >>conftest.$ac_ext
7530cat >>conftest.$ac_ext <<_ACEOF
7531/* end confdefs.h.  */
7532#include <ac_nonexistent.h>
7533_ACEOF
7534if { (ac_try="$ac_cpp conftest.$ac_ext"
7535case "(($ac_try" in
7536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537  *) ac_try_echo=$ac_try;;
7538esac
7539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7541  ac_status=$?
7542  grep -v '^ *+' conftest.er1 >conftest.err
7543  rm -f conftest.er1
7544  cat conftest.err >&5
7545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546  (exit $ac_status); } >/dev/null && {
7547	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7548	 test ! -s conftest.err
7549       }; then
7550  # Broken: success on invalid input.
7551continue
7552else
7553  echo "$as_me: failed program was:" >&5
7554sed 's/^/| /' conftest.$ac_ext >&5
7555
7556  # Passes both tests.
7557ac_preproc_ok=:
7558break
7559fi
7560
7561rm -f conftest.err conftest.$ac_ext
7562
7563done
7564# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7565rm -f conftest.err conftest.$ac_ext
7566if $ac_preproc_ok; then
7567  break
7568fi
7569
7570    done
7571    ac_cv_prog_CXXCPP=$CXXCPP
7572
7573fi
7574  CXXCPP=$ac_cv_prog_CXXCPP
7575else
7576  ac_cv_prog_CXXCPP=$CXXCPP
7577fi
7578{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
7579echo "${ECHO_T}$CXXCPP" >&6; }
7580ac_preproc_ok=false
7581for ac_cxx_preproc_warn_flag in '' yes
7582do
7583  # Use a header file that comes with gcc, so configuring glibc
7584  # with a fresh cross-compiler works.
7585  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7586  # <limits.h> exists even on freestanding compilers.
7587  # On the NeXT, cc -E runs the code through the compiler's parser,
7588  # not just through cpp. "Syntax error" is here to catch this case.
7589  cat >conftest.$ac_ext <<_ACEOF
7590/* confdefs.h.  */
7591_ACEOF
7592cat confdefs.h >>conftest.$ac_ext
7593cat >>conftest.$ac_ext <<_ACEOF
7594/* end confdefs.h.  */
7595#ifdef __STDC__
7596# include <limits.h>
7597#else
7598# include <assert.h>
7599#endif
7600		     Syntax error
7601_ACEOF
7602if { (ac_try="$ac_cpp conftest.$ac_ext"
7603case "(($ac_try" in
7604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605  *) ac_try_echo=$ac_try;;
7606esac
7607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7608  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7609  ac_status=$?
7610  grep -v '^ *+' conftest.er1 >conftest.err
7611  rm -f conftest.er1
7612  cat conftest.err >&5
7613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614  (exit $ac_status); } >/dev/null && {
7615	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7616	 test ! -s conftest.err
7617       }; then
7618  :
7619else
7620  echo "$as_me: failed program was:" >&5
7621sed 's/^/| /' conftest.$ac_ext >&5
7622
7623  # Broken: fails on valid input.
7624continue
7625fi
7626
7627rm -f conftest.err conftest.$ac_ext
7628
7629  # OK, works on sane cases.  Now check whether nonexistent headers
7630  # can be detected and how.
7631  cat >conftest.$ac_ext <<_ACEOF
7632/* confdefs.h.  */
7633_ACEOF
7634cat confdefs.h >>conftest.$ac_ext
7635cat >>conftest.$ac_ext <<_ACEOF
7636/* end confdefs.h.  */
7637#include <ac_nonexistent.h>
7638_ACEOF
7639if { (ac_try="$ac_cpp conftest.$ac_ext"
7640case "(($ac_try" in
7641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7642  *) ac_try_echo=$ac_try;;
7643esac
7644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7645  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7646  ac_status=$?
7647  grep -v '^ *+' conftest.er1 >conftest.err
7648  rm -f conftest.er1
7649  cat conftest.err >&5
7650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651  (exit $ac_status); } >/dev/null && {
7652	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7653	 test ! -s conftest.err
7654       }; then
7655  # Broken: success on invalid input.
7656continue
7657else
7658  echo "$as_me: failed program was:" >&5
7659sed 's/^/| /' conftest.$ac_ext >&5
7660
7661  # Passes both tests.
7662ac_preproc_ok=:
7663break
7664fi
7665
7666rm -f conftest.err conftest.$ac_ext
7667
7668done
7669# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7670rm -f conftest.err conftest.$ac_ext
7671if $ac_preproc_ok; then
7672  :
7673else
7674  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7675See \`config.log' for more details." >&5
7676echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7677See \`config.log' for more details." >&2;}
7678   { (exit 1); exit 1; }; }
7679fi
7680
7681ac_ext=cpp
7682ac_cpp='$CXXCPP $CPPFLAGS'
7683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7686
7687fi
7688
7689ac_ext=f
7690ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7691ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7692ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7693if test -n "$ac_tool_prefix"; then
7694  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7695  do
7696    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7697set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7700if test "${ac_cv_prog_F77+set}" = set; then
7701  echo $ECHO_N "(cached) $ECHO_C" >&6
7702else
7703  if test -n "$F77"; then
7704  ac_cv_prog_F77="$F77" # Let the user override the test.
7705else
7706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707for as_dir in $PATH
7708do
7709  IFS=$as_save_IFS
7710  test -z "$as_dir" && as_dir=.
7711  for ac_exec_ext in '' $ac_executable_extensions; do
7712  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7713    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7714    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7715    break 2
7716  fi
7717done
7718done
7719IFS=$as_save_IFS
7720
7721fi
7722fi
7723F77=$ac_cv_prog_F77
7724if test -n "$F77"; then
7725  { echo "$as_me:$LINENO: result: $F77" >&5
7726echo "${ECHO_T}$F77" >&6; }
7727else
7728  { echo "$as_me:$LINENO: result: no" >&5
7729echo "${ECHO_T}no" >&6; }
7730fi
7731
7732
7733    test -n "$F77" && break
7734  done
7735fi
7736if test -z "$F77"; then
7737  ac_ct_F77=$F77
7738  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7739do
7740  # Extract the first word of "$ac_prog", so it can be a program name with args.
7741set dummy $ac_prog; ac_word=$2
7742{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7744if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7745  echo $ECHO_N "(cached) $ECHO_C" >&6
7746else
7747  if test -n "$ac_ct_F77"; then
7748  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7749else
7750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751for as_dir in $PATH
7752do
7753  IFS=$as_save_IFS
7754  test -z "$as_dir" && as_dir=.
7755  for ac_exec_ext in '' $ac_executable_extensions; do
7756  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7757    ac_cv_prog_ac_ct_F77="$ac_prog"
7758    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759    break 2
7760  fi
7761done
7762done
7763IFS=$as_save_IFS
7764
7765fi
7766fi
7767ac_ct_F77=$ac_cv_prog_ac_ct_F77
7768if test -n "$ac_ct_F77"; then
7769  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7770echo "${ECHO_T}$ac_ct_F77" >&6; }
7771else
7772  { echo "$as_me:$LINENO: result: no" >&5
7773echo "${ECHO_T}no" >&6; }
7774fi
7775
7776
7777  test -n "$ac_ct_F77" && break
7778done
7779
7780  if test "x$ac_ct_F77" = x; then
7781    F77=""
7782  else
7783    case $cross_compiling:$ac_tool_warned in
7784yes:)
7785{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7786whose name does not start with the host triplet.  If you think this
7787configuration is useful to you, please write to autoconf@gnu.org." >&5
7788echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7789whose name does not start with the host triplet.  If you think this
7790configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7791ac_tool_warned=yes ;;
7792esac
7793    F77=$ac_ct_F77
7794  fi
7795fi
7796
7797
7798# Provide some information about the compiler.
7799echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7800ac_compiler=`set X $ac_compile; echo $2`
7801{ (ac_try="$ac_compiler --version >&5"
7802case "(($ac_try" in
7803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804  *) ac_try_echo=$ac_try;;
7805esac
7806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7807  (eval "$ac_compiler --version >&5") 2>&5
7808  ac_status=$?
7809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810  (exit $ac_status); }
7811{ (ac_try="$ac_compiler -v >&5"
7812case "(($ac_try" in
7813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7814  *) ac_try_echo=$ac_try;;
7815esac
7816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7817  (eval "$ac_compiler -v >&5") 2>&5
7818  ac_status=$?
7819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820  (exit $ac_status); }
7821{ (ac_try="$ac_compiler -V >&5"
7822case "(($ac_try" in
7823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824  *) ac_try_echo=$ac_try;;
7825esac
7826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827  (eval "$ac_compiler -V >&5") 2>&5
7828  ac_status=$?
7829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830  (exit $ac_status); }
7831rm -f a.out
7832
7833# If we don't use `.F' as extension, the preprocessor is not run on the
7834# input file.  (Note that this only needs to work for GNU compilers.)
7835ac_save_ext=$ac_ext
7836ac_ext=F
7837{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7838echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7839if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7840  echo $ECHO_N "(cached) $ECHO_C" >&6
7841else
7842  cat >conftest.$ac_ext <<_ACEOF
7843      program main
7844#ifndef __GNUC__
7845       choke me
7846#endif
7847
7848      end
7849_ACEOF
7850rm -f conftest.$ac_objext
7851if { (ac_try="$ac_compile"
7852case "(($ac_try" in
7853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854  *) ac_try_echo=$ac_try;;
7855esac
7856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857  (eval "$ac_compile") 2>conftest.er1
7858  ac_status=$?
7859  grep -v '^ *+' conftest.er1 >conftest.err
7860  rm -f conftest.er1
7861  cat conftest.err >&5
7862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863  (exit $ac_status); } && {
7864	 test -z "$ac_f77_werror_flag" ||
7865	 test ! -s conftest.err
7866       } && test -s conftest.$ac_objext; then
7867  ac_compiler_gnu=yes
7868else
7869  echo "$as_me: failed program was:" >&5
7870sed 's/^/| /' conftest.$ac_ext >&5
7871
7872	ac_compiler_gnu=no
7873fi
7874
7875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7876ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7877
7878fi
7879{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7880echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7881ac_ext=$ac_save_ext
7882ac_test_FFLAGS=${FFLAGS+set}
7883ac_save_FFLAGS=$FFLAGS
7884FFLAGS=
7885{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7886echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7887if test "${ac_cv_prog_f77_g+set}" = set; then
7888  echo $ECHO_N "(cached) $ECHO_C" >&6
7889else
7890  FFLAGS=-g
7891cat >conftest.$ac_ext <<_ACEOF
7892      program main
7893
7894      end
7895_ACEOF
7896rm -f conftest.$ac_objext
7897if { (ac_try="$ac_compile"
7898case "(($ac_try" in
7899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900  *) ac_try_echo=$ac_try;;
7901esac
7902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7903  (eval "$ac_compile") 2>conftest.er1
7904  ac_status=$?
7905  grep -v '^ *+' conftest.er1 >conftest.err
7906  rm -f conftest.er1
7907  cat conftest.err >&5
7908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909  (exit $ac_status); } && {
7910	 test -z "$ac_f77_werror_flag" ||
7911	 test ! -s conftest.err
7912       } && test -s conftest.$ac_objext; then
7913  ac_cv_prog_f77_g=yes
7914else
7915  echo "$as_me: failed program was:" >&5
7916sed 's/^/| /' conftest.$ac_ext >&5
7917
7918	ac_cv_prog_f77_g=no
7919fi
7920
7921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7922
7923fi
7924{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7925echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7926if test "$ac_test_FFLAGS" = set; then
7927  FFLAGS=$ac_save_FFLAGS
7928elif test $ac_cv_prog_f77_g = yes; then
7929  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7930    FFLAGS="-g -O2"
7931  else
7932    FFLAGS="-g"
7933  fi
7934else
7935  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7936    FFLAGS="-O2"
7937  else
7938    FFLAGS=
7939  fi
7940fi
7941
7942G77=`test $ac_compiler_gnu = yes && echo yes`
7943ac_ext=c
7944ac_cpp='$CPP $CPPFLAGS'
7945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7947ac_compiler_gnu=$ac_cv_c_compiler_gnu
7948
7949
7950
7951# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7952
7953# find the maximum length of command line arguments
7954{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7955echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7956if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7957  echo $ECHO_N "(cached) $ECHO_C" >&6
7958else
7959    i=0
7960  teststring="ABCD"
7961
7962  case $build_os in
7963  msdosdjgpp*)
7964    # On DJGPP, this test can blow up pretty badly due to problems in libc
7965    # (any single argument exceeding 2000 bytes causes a buffer overrun
7966    # during glob expansion).  Even if it were fixed, the result of this
7967    # check would be larger than it should be.
7968    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7969    ;;
7970
7971  gnu*)
7972    # Under GNU Hurd, this test is not required because there is
7973    # no limit to the length of command line arguments.
7974    # Libtool will interpret -1 as no limit whatsoever
7975    lt_cv_sys_max_cmd_len=-1;
7976    ;;
7977
7978  cygwin* | mingw*)
7979    # On Win9x/ME, this test blows up -- it succeeds, but takes
7980    # about 5 minutes as the teststring grows exponentially.
7981    # Worse, since 9x/ME are not pre-emptively multitasking,
7982    # you end up with a "frozen" computer, even though with patience
7983    # the test eventually succeeds (with a max line length of 256k).
7984    # Instead, let's just punt: use the minimum linelength reported by
7985    # all of the supported platforms: 8192 (on NT/2K/XP).
7986    lt_cv_sys_max_cmd_len=8192;
7987    ;;
7988
7989  amigaos*)
7990    # On AmigaOS with pdksh, this test takes hours, literally.
7991    # So we just punt and use a minimum line length of 8192.
7992    lt_cv_sys_max_cmd_len=8192;
7993    ;;
7994
7995  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7996    # This has been around since 386BSD, at least.  Likely further.
7997    if test -x /sbin/sysctl; then
7998      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7999    elif test -x /usr/sbin/sysctl; then
8000      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8001    else
8002      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8003    fi
8004    # And add a safety zone
8005    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8006    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8007    ;;
8008
8009  interix*)
8010    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8011    lt_cv_sys_max_cmd_len=196608
8012    ;;
8013
8014  osf*)
8015    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8016    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8017    # nice to cause kernel panics so lets avoid the loop below.
8018    # First set a reasonable default.
8019    lt_cv_sys_max_cmd_len=16384
8020    #
8021    if test -x /sbin/sysconfig; then
8022      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8023        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8024      esac
8025    fi
8026    ;;
8027  sco3.2v5*)
8028    lt_cv_sys_max_cmd_len=102400
8029    ;;
8030  sysv5* | sco5v6* | sysv4.2uw2*)
8031    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8032    if test -n "$kargmax"; then
8033      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
8034    else
8035      lt_cv_sys_max_cmd_len=32768
8036    fi
8037    ;;
8038  *)
8039    # If test is not a shell built-in, we'll probably end up computing a
8040    # maximum length that is only half of the actual maximum length, but
8041    # we can't tell.
8042    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8043    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8044	       = "XX$teststring") >/dev/null 2>&1 &&
8045	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
8046	    lt_cv_sys_max_cmd_len=$new_result &&
8047	    test $i != 17 # 1/2 MB should be enough
8048    do
8049      i=`expr $i + 1`
8050      teststring=$teststring$teststring
8051    done
8052    teststring=
8053    # Add a significant safety factor because C++ compilers can tack on massive
8054    # amounts of additional arguments before passing them to the linker.
8055    # It appears as though 1/2 is a usable value.
8056    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8057    ;;
8058  esac
8059
8060fi
8061
8062if test -n $lt_cv_sys_max_cmd_len ; then
8063  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8064echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
8065else
8066  { echo "$as_me:$LINENO: result: none" >&5
8067echo "${ECHO_T}none" >&6; }
8068fi
8069
8070
8071
8072
8073# Check for command to grab the raw symbol name followed by C symbol from nm.
8074{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8075echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8076if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8077  echo $ECHO_N "(cached) $ECHO_C" >&6
8078else
8079
8080# These are sane defaults that work on at least a few old systems.
8081# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8082
8083# Character class describing NM global symbol codes.
8084symcode='[BCDEGRST]'
8085
8086# Regexp to match symbols that can be accessed directly from C.
8087sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8088
8089# Transform an extracted symbol line into a proper C declaration
8090lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8091
8092# Transform an extracted symbol line into symbol name and symbol address
8093lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8094
8095# Define system-specific variables.
8096case $host_os in
8097aix*)
8098  symcode='[BCDT]'
8099  ;;
8100cygwin* | mingw* | pw32*)
8101  symcode='[ABCDGISTW]'
8102  ;;
8103hpux*) # Its linker distinguishes data from code symbols
8104  if test "$host_cpu" = ia64; then
8105    symcode='[ABCDEGRST]'
8106  fi
8107  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8108  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8109  ;;
8110linux*)
8111  if test "$host_cpu" = ia64; then
8112    symcode='[ABCDGIRSTW]'
8113    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8114    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8115  fi
8116  ;;
8117irix* | nonstopux*)
8118  symcode='[BCDEGRST]'
8119  ;;
8120osf*)
8121  symcode='[BCDEGQRST]'
8122  ;;
8123solaris*)
8124  symcode='[BDRT]'
8125  ;;
8126sco3.2v5*)
8127  symcode='[DT]'
8128  ;;
8129sysv4.2uw2*)
8130  symcode='[DT]'
8131  ;;
8132sysv5* | sco5v6* | unixware* | OpenUNIX*)
8133  symcode='[ABDT]'
8134  ;;
8135sysv4)
8136  symcode='[DFNSTU]'
8137  ;;
8138esac
8139
8140# Handle CRLF in mingw tool chain
8141opt_cr=
8142case $build_os in
8143mingw*)
8144  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8145  ;;
8146esac
8147
8148# If we're using GNU nm, then use its standard symbol codes.
8149case `$NM -V 2>&1` in
8150*GNU* | *'with BFD'*)
8151  symcode='[ABCDGIRSTW]' ;;
8152esac
8153
8154# Try without a prefix undercore, then with it.
8155for ac_symprfx in "" "_"; do
8156
8157  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8158  symxfrm="\\1 $ac_symprfx\\2 \\2"
8159
8160  # Write the raw and C identifiers.
8161  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8162
8163  # Check to see that the pipe works correctly.
8164  pipe_works=no
8165
8166  rm -f conftest*
8167  cat > conftest.$ac_ext <<EOF
8168#ifdef __cplusplus
8169extern "C" {
8170#endif
8171char nm_test_var;
8172void nm_test_func(){}
8173#ifdef __cplusplus
8174}
8175#endif
8176int main(){nm_test_var='a';nm_test_func();return(0);}
8177EOF
8178
8179  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180  (eval $ac_compile) 2>&5
8181  ac_status=$?
8182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183  (exit $ac_status); }; then
8184    # Now try to grab the symbols.
8185    nlist=conftest.nm
8186    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8187  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8188  ac_status=$?
8189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190  (exit $ac_status); } && test -s "$nlist"; then
8191      # Try sorting and uniquifying the output.
8192      if sort "$nlist" | uniq > "$nlist"T; then
8193	mv -f "$nlist"T "$nlist"
8194      else
8195	rm -f "$nlist"T
8196      fi
8197
8198      # Make sure that we snagged all the symbols we need.
8199      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8200	if grep ' nm_test_func$' "$nlist" >/dev/null; then
8201	  cat <<EOF > conftest.$ac_ext
8202#ifdef __cplusplus
8203extern "C" {
8204#endif
8205
8206EOF
8207	  # Now generate the symbol file.
8208	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8209
8210	  cat <<EOF >> conftest.$ac_ext
8211#if defined (__STDC__) && __STDC__
8212# define lt_ptr_t void *
8213#else
8214# define lt_ptr_t char *
8215# define const
8216#endif
8217
8218/* The mapping between symbol names and symbols. */
8219const struct {
8220  const char *name;
8221  lt_ptr_t address;
8222}
8223lt_preloaded_symbols[] =
8224{
8225EOF
8226	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8227	  cat <<\EOF >> conftest.$ac_ext
8228  {0, (lt_ptr_t) 0}
8229};
8230
8231#ifdef __cplusplus
8232}
8233#endif
8234EOF
8235	  # Now try linking the two files.
8236	  mv conftest.$ac_objext conftstm.$ac_objext
8237	  lt_save_LIBS="$LIBS"
8238	  lt_save_CFLAGS="$CFLAGS"
8239	  LIBS="conftstm.$ac_objext"
8240	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8241	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8242  (eval $ac_link) 2>&5
8243  ac_status=$?
8244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8246	    pipe_works=yes
8247	  fi
8248	  LIBS="$lt_save_LIBS"
8249	  CFLAGS="$lt_save_CFLAGS"
8250	else
8251	  echo "cannot find nm_test_func in $nlist" >&5
8252	fi
8253      else
8254	echo "cannot find nm_test_var in $nlist" >&5
8255      fi
8256    else
8257      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8258    fi
8259  else
8260    echo "$progname: failed program was:" >&5
8261    cat conftest.$ac_ext >&5
8262  fi
8263  rm -f conftest* conftst*
8264
8265  # Do not use the global_symbol_pipe unless it works.
8266  if test "$pipe_works" = yes; then
8267    break
8268  else
8269    lt_cv_sys_global_symbol_pipe=
8270  fi
8271done
8272
8273fi
8274
8275if test -z "$lt_cv_sys_global_symbol_pipe"; then
8276  lt_cv_sys_global_symbol_to_cdecl=
8277fi
8278if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8279  { echo "$as_me:$LINENO: result: failed" >&5
8280echo "${ECHO_T}failed" >&6; }
8281else
8282  { echo "$as_me:$LINENO: result: ok" >&5
8283echo "${ECHO_T}ok" >&6; }
8284fi
8285
8286{ echo "$as_me:$LINENO: checking for objdir" >&5
8287echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8288if test "${lt_cv_objdir+set}" = set; then
8289  echo $ECHO_N "(cached) $ECHO_C" >&6
8290else
8291  rm -f .libs 2>/dev/null
8292mkdir .libs 2>/dev/null
8293if test -d .libs; then
8294  lt_cv_objdir=.libs
8295else
8296  # MS-DOS does not allow filenames that begin with a dot.
8297  lt_cv_objdir=_libs
8298fi
8299rmdir .libs 2>/dev/null
8300fi
8301{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8302echo "${ECHO_T}$lt_cv_objdir" >&6; }
8303objdir=$lt_cv_objdir
8304
8305
8306
8307
8308
8309case $host_os in
8310aix3*)
8311  # AIX sometimes has problems with the GCC collect2 program.  For some
8312  # reason, if we set the COLLECT_NAMES environment variable, the problems
8313  # vanish in a puff of smoke.
8314  if test "X${COLLECT_NAMES+set}" != Xset; then
8315    COLLECT_NAMES=
8316    export COLLECT_NAMES
8317  fi
8318  ;;
8319esac
8320
8321# Sed substitution that helps us do robust quoting.  It backslashifies
8322# metacharacters that are still active within double-quoted strings.
8323Xsed='sed -e 1s/^X//'
8324sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8325
8326# Same as above, but do not quote variable references.
8327double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8328
8329# Sed substitution to delay expansion of an escaped shell variable in a
8330# double_quote_subst'ed string.
8331delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8332
8333# Sed substitution to avoid accidental globbing in evaled expressions
8334no_glob_subst='s/\*/\\\*/g'
8335
8336# Constants:
8337rm="rm -f"
8338
8339# Global variables:
8340default_ofile=libtool
8341can_build_shared=yes
8342
8343# All known linkers require a `.a' archive for static linking (except MSVC,
8344# which needs '.lib').
8345libext=a
8346ltmain="$ac_aux_dir/ltmain.sh"
8347ofile="$default_ofile"
8348with_gnu_ld="$lt_cv_prog_gnu_ld"
8349
8350if test -n "$ac_tool_prefix"; then
8351  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8352set dummy ${ac_tool_prefix}ar; ac_word=$2
8353{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8355if test "${ac_cv_prog_AR+set}" = set; then
8356  echo $ECHO_N "(cached) $ECHO_C" >&6
8357else
8358  if test -n "$AR"; then
8359  ac_cv_prog_AR="$AR" # Let the user override the test.
8360else
8361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362for as_dir in $PATH
8363do
8364  IFS=$as_save_IFS
8365  test -z "$as_dir" && as_dir=.
8366  for ac_exec_ext in '' $ac_executable_extensions; do
8367  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8368    ac_cv_prog_AR="${ac_tool_prefix}ar"
8369    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8370    break 2
8371  fi
8372done
8373done
8374IFS=$as_save_IFS
8375
8376fi
8377fi
8378AR=$ac_cv_prog_AR
8379if test -n "$AR"; then
8380  { echo "$as_me:$LINENO: result: $AR" >&5
8381echo "${ECHO_T}$AR" >&6; }
8382else
8383  { echo "$as_me:$LINENO: result: no" >&5
8384echo "${ECHO_T}no" >&6; }
8385fi
8386
8387
8388fi
8389if test -z "$ac_cv_prog_AR"; then
8390  ac_ct_AR=$AR
8391  # Extract the first word of "ar", so it can be a program name with args.
8392set dummy ar; ac_word=$2
8393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8395if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8396  echo $ECHO_N "(cached) $ECHO_C" >&6
8397else
8398  if test -n "$ac_ct_AR"; then
8399  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8400else
8401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402for as_dir in $PATH
8403do
8404  IFS=$as_save_IFS
8405  test -z "$as_dir" && as_dir=.
8406  for ac_exec_ext in '' $ac_executable_extensions; do
8407  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8408    ac_cv_prog_ac_ct_AR="ar"
8409    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8410    break 2
8411  fi
8412done
8413done
8414IFS=$as_save_IFS
8415
8416fi
8417fi
8418ac_ct_AR=$ac_cv_prog_ac_ct_AR
8419if test -n "$ac_ct_AR"; then
8420  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8421echo "${ECHO_T}$ac_ct_AR" >&6; }
8422else
8423  { echo "$as_me:$LINENO: result: no" >&5
8424echo "${ECHO_T}no" >&6; }
8425fi
8426
8427  if test "x$ac_ct_AR" = x; then
8428    AR="false"
8429  else
8430    case $cross_compiling:$ac_tool_warned in
8431yes:)
8432{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8433whose name does not start with the host triplet.  If you think this
8434configuration is useful to you, please write to autoconf@gnu.org." >&5
8435echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8436whose name does not start with the host triplet.  If you think this
8437configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8438ac_tool_warned=yes ;;
8439esac
8440    AR=$ac_ct_AR
8441  fi
8442else
8443  AR="$ac_cv_prog_AR"
8444fi
8445
8446if test -n "$ac_tool_prefix"; then
8447  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8448set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8449{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8451if test "${ac_cv_prog_RANLIB+set}" = set; then
8452  echo $ECHO_N "(cached) $ECHO_C" >&6
8453else
8454  if test -n "$RANLIB"; then
8455  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8456else
8457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458for as_dir in $PATH
8459do
8460  IFS=$as_save_IFS
8461  test -z "$as_dir" && as_dir=.
8462  for ac_exec_ext in '' $ac_executable_extensions; do
8463  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8464    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8465    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8466    break 2
8467  fi
8468done
8469done
8470IFS=$as_save_IFS
8471
8472fi
8473fi
8474RANLIB=$ac_cv_prog_RANLIB
8475if test -n "$RANLIB"; then
8476  { echo "$as_me:$LINENO: result: $RANLIB" >&5
8477echo "${ECHO_T}$RANLIB" >&6; }
8478else
8479  { echo "$as_me:$LINENO: result: no" >&5
8480echo "${ECHO_T}no" >&6; }
8481fi
8482
8483
8484fi
8485if test -z "$ac_cv_prog_RANLIB"; then
8486  ac_ct_RANLIB=$RANLIB
8487  # Extract the first word of "ranlib", so it can be a program name with args.
8488set dummy ranlib; ac_word=$2
8489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8491if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8492  echo $ECHO_N "(cached) $ECHO_C" >&6
8493else
8494  if test -n "$ac_ct_RANLIB"; then
8495  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8496else
8497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498for as_dir in $PATH
8499do
8500  IFS=$as_save_IFS
8501  test -z "$as_dir" && as_dir=.
8502  for ac_exec_ext in '' $ac_executable_extensions; do
8503  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8504    ac_cv_prog_ac_ct_RANLIB="ranlib"
8505    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8506    break 2
8507  fi
8508done
8509done
8510IFS=$as_save_IFS
8511
8512fi
8513fi
8514ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8515if test -n "$ac_ct_RANLIB"; then
8516  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8517echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8518else
8519  { echo "$as_me:$LINENO: result: no" >&5
8520echo "${ECHO_T}no" >&6; }
8521fi
8522
8523  if test "x$ac_ct_RANLIB" = x; then
8524    RANLIB=":"
8525  else
8526    case $cross_compiling:$ac_tool_warned in
8527yes:)
8528{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8529whose name does not start with the host triplet.  If you think this
8530configuration is useful to you, please write to autoconf@gnu.org." >&5
8531echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8532whose name does not start with the host triplet.  If you think this
8533configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8534ac_tool_warned=yes ;;
8535esac
8536    RANLIB=$ac_ct_RANLIB
8537  fi
8538else
8539  RANLIB="$ac_cv_prog_RANLIB"
8540fi
8541
8542if test -n "$ac_tool_prefix"; then
8543  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8544set dummy ${ac_tool_prefix}strip; ac_word=$2
8545{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8547if test "${ac_cv_prog_STRIP+set}" = set; then
8548  echo $ECHO_N "(cached) $ECHO_C" >&6
8549else
8550  if test -n "$STRIP"; then
8551  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8552else
8553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8554for as_dir in $PATH
8555do
8556  IFS=$as_save_IFS
8557  test -z "$as_dir" && as_dir=.
8558  for ac_exec_ext in '' $ac_executable_extensions; do
8559  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8560    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8561    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8562    break 2
8563  fi
8564done
8565done
8566IFS=$as_save_IFS
8567
8568fi
8569fi
8570STRIP=$ac_cv_prog_STRIP
8571if test -n "$STRIP"; then
8572  { echo "$as_me:$LINENO: result: $STRIP" >&5
8573echo "${ECHO_T}$STRIP" >&6; }
8574else
8575  { echo "$as_me:$LINENO: result: no" >&5
8576echo "${ECHO_T}no" >&6; }
8577fi
8578
8579
8580fi
8581if test -z "$ac_cv_prog_STRIP"; then
8582  ac_ct_STRIP=$STRIP
8583  # Extract the first word of "strip", so it can be a program name with args.
8584set dummy strip; ac_word=$2
8585{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8587if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8588  echo $ECHO_N "(cached) $ECHO_C" >&6
8589else
8590  if test -n "$ac_ct_STRIP"; then
8591  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8592else
8593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594for as_dir in $PATH
8595do
8596  IFS=$as_save_IFS
8597  test -z "$as_dir" && as_dir=.
8598  for ac_exec_ext in '' $ac_executable_extensions; do
8599  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8600    ac_cv_prog_ac_ct_STRIP="strip"
8601    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8602    break 2
8603  fi
8604done
8605done
8606IFS=$as_save_IFS
8607
8608fi
8609fi
8610ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8611if test -n "$ac_ct_STRIP"; then
8612  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8613echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8614else
8615  { echo "$as_me:$LINENO: result: no" >&5
8616echo "${ECHO_T}no" >&6; }
8617fi
8618
8619  if test "x$ac_ct_STRIP" = x; then
8620    STRIP=":"
8621  else
8622    case $cross_compiling:$ac_tool_warned in
8623yes:)
8624{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8625whose name does not start with the host triplet.  If you think this
8626configuration is useful to you, please write to autoconf@gnu.org." >&5
8627echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8628whose name does not start with the host triplet.  If you think this
8629configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8630ac_tool_warned=yes ;;
8631esac
8632    STRIP=$ac_ct_STRIP
8633  fi
8634else
8635  STRIP="$ac_cv_prog_STRIP"
8636fi
8637
8638
8639old_CC="$CC"
8640old_CFLAGS="$CFLAGS"
8641
8642# Set sane defaults for various variables
8643test -z "$AR" && AR=ar
8644test -z "$AR_FLAGS" && AR_FLAGS=cru
8645test -z "$AS" && AS=as
8646test -z "$CC" && CC=cc
8647test -z "$LTCC" && LTCC=$CC
8648test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8649test -z "$DLLTOOL" && DLLTOOL=dlltool
8650test -z "$LD" && LD=ld
8651test -z "$LN_S" && LN_S="ln -s"
8652test -z "$MAGIC_CMD" && MAGIC_CMD=file
8653test -z "$NM" && NM=nm
8654test -z "$SED" && SED=sed
8655test -z "$OBJDUMP" && OBJDUMP=objdump
8656test -z "$RANLIB" && RANLIB=:
8657test -z "$STRIP" && STRIP=:
8658test -z "$ac_objext" && ac_objext=o
8659
8660# Determine commands to create old-style static archives.
8661old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8662old_postinstall_cmds='chmod 644 $oldlib'
8663old_postuninstall_cmds=
8664
8665if test -n "$RANLIB"; then
8666  case $host_os in
8667  openbsd*)
8668    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8669    ;;
8670  *)
8671    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8672    ;;
8673  esac
8674  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8675fi
8676
8677for cc_temp in $compiler""; do
8678  case $cc_temp in
8679    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8680    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8681    \-*) ;;
8682    *) break;;
8683  esac
8684done
8685cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8686
8687
8688# Only perform the check for file, if the check method requires it
8689case $deplibs_check_method in
8690file_magic*)
8691  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8692    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8693echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8694if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8695  echo $ECHO_N "(cached) $ECHO_C" >&6
8696else
8697  case $MAGIC_CMD in
8698[\\/*] |  ?:[\\/]*)
8699  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8700  ;;
8701*)
8702  lt_save_MAGIC_CMD="$MAGIC_CMD"
8703  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8704  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8705  for ac_dir in $ac_dummy; do
8706    IFS="$lt_save_ifs"
8707    test -z "$ac_dir" && ac_dir=.
8708    if test -f $ac_dir/${ac_tool_prefix}file; then
8709      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8710      if test -n "$file_magic_test_file"; then
8711	case $deplibs_check_method in
8712	"file_magic "*)
8713	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8714	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8715	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8716	    $EGREP "$file_magic_regex" > /dev/null; then
8717	    :
8718	  else
8719	    cat <<EOF 1>&2
8720
8721*** Warning: the command libtool uses to detect shared libraries,
8722*** $file_magic_cmd, produces output that libtool cannot recognize.
8723*** The result is that libtool may fail to recognize shared libraries
8724*** as such.  This will affect the creation of libtool libraries that
8725*** depend on shared libraries, but programs linked with such libtool
8726*** libraries will work regardless of this problem.  Nevertheless, you
8727*** may want to report the problem to your system manager and/or to
8728*** bug-libtool@gnu.org
8729
8730EOF
8731	  fi ;;
8732	esac
8733      fi
8734      break
8735    fi
8736  done
8737  IFS="$lt_save_ifs"
8738  MAGIC_CMD="$lt_save_MAGIC_CMD"
8739  ;;
8740esac
8741fi
8742
8743MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8744if test -n "$MAGIC_CMD"; then
8745  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8746echo "${ECHO_T}$MAGIC_CMD" >&6; }
8747else
8748  { echo "$as_me:$LINENO: result: no" >&5
8749echo "${ECHO_T}no" >&6; }
8750fi
8751
8752if test -z "$lt_cv_path_MAGIC_CMD"; then
8753  if test -n "$ac_tool_prefix"; then
8754    { echo "$as_me:$LINENO: checking for file" >&5
8755echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8756if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8757  echo $ECHO_N "(cached) $ECHO_C" >&6
8758else
8759  case $MAGIC_CMD in
8760[\\/*] |  ?:[\\/]*)
8761  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8762  ;;
8763*)
8764  lt_save_MAGIC_CMD="$MAGIC_CMD"
8765  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8766  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8767  for ac_dir in $ac_dummy; do
8768    IFS="$lt_save_ifs"
8769    test -z "$ac_dir" && ac_dir=.
8770    if test -f $ac_dir/file; then
8771      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8772      if test -n "$file_magic_test_file"; then
8773	case $deplibs_check_method in
8774	"file_magic "*)
8775	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8776	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8777	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8778	    $EGREP "$file_magic_regex" > /dev/null; then
8779	    :
8780	  else
8781	    cat <<EOF 1>&2
8782
8783*** Warning: the command libtool uses to detect shared libraries,
8784*** $file_magic_cmd, produces output that libtool cannot recognize.
8785*** The result is that libtool may fail to recognize shared libraries
8786*** as such.  This will affect the creation of libtool libraries that
8787*** depend on shared libraries, but programs linked with such libtool
8788*** libraries will work regardless of this problem.  Nevertheless, you
8789*** may want to report the problem to your system manager and/or to
8790*** bug-libtool@gnu.org
8791
8792EOF
8793	  fi ;;
8794	esac
8795      fi
8796      break
8797    fi
8798  done
8799  IFS="$lt_save_ifs"
8800  MAGIC_CMD="$lt_save_MAGIC_CMD"
8801  ;;
8802esac
8803fi
8804
8805MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8806if test -n "$MAGIC_CMD"; then
8807  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8808echo "${ECHO_T}$MAGIC_CMD" >&6; }
8809else
8810  { echo "$as_me:$LINENO: result: no" >&5
8811echo "${ECHO_T}no" >&6; }
8812fi
8813
8814  else
8815    MAGIC_CMD=:
8816  fi
8817fi
8818
8819  fi
8820  ;;
8821esac
8822
8823enable_dlopen=no
8824enable_win32_dll=no
8825
8826# Check whether --enable-libtool-lock was given.
8827if test "${enable_libtool_lock+set}" = set; then
8828  enableval=$enable_libtool_lock;
8829fi
8830
8831test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8832
8833
8834# Check whether --with-pic was given.
8835if test "${with_pic+set}" = set; then
8836  withval=$with_pic; pic_mode="$withval"
8837else
8838  pic_mode=default
8839fi
8840
8841test -z "$pic_mode" && pic_mode=default
8842
8843# Use C for the default configuration in the libtool script
8844tagname=
8845lt_save_CC="$CC"
8846ac_ext=c
8847ac_cpp='$CPP $CPPFLAGS'
8848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8850ac_compiler_gnu=$ac_cv_c_compiler_gnu
8851
8852
8853# Source file extension for C test sources.
8854ac_ext=c
8855
8856# Object file extension for compiled C test sources.
8857objext=o
8858objext=$objext
8859
8860# Code to be used in simple compile tests
8861lt_simple_compile_test_code="int some_variable = 0;\n"
8862
8863# Code to be used in simple link tests
8864lt_simple_link_test_code='int main(){return(0);}\n'
8865
8866
8867# If no C compiler was specified, use CC.
8868LTCC=${LTCC-"$CC"}
8869
8870# If no C compiler flags were specified, use CFLAGS.
8871LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8872
8873# Allow CC to be a program name with arguments.
8874compiler=$CC
8875
8876
8877# save warnings/boilerplate of simple test code
8878ac_outfile=conftest.$ac_objext
8879printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8880eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8881_lt_compiler_boilerplate=`cat conftest.err`
8882$rm conftest*
8883
8884ac_outfile=conftest.$ac_objext
8885printf "$lt_simple_link_test_code" >conftest.$ac_ext
8886eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8887_lt_linker_boilerplate=`cat conftest.err`
8888$rm conftest*
8889
8890
8891## CAVEAT EMPTOR:
8892## There is no encapsulation within the following macros, do not change
8893## the running order or otherwise move them around unless you know exactly
8894## what you are doing...
8895
8896lt_prog_compiler_no_builtin_flag=
8897
8898if test "$GCC" = yes; then
8899  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8900
8901
8902{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8903echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8904if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8905  echo $ECHO_N "(cached) $ECHO_C" >&6
8906else
8907  lt_cv_prog_compiler_rtti_exceptions=no
8908  ac_outfile=conftest.$ac_objext
8909   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8910   lt_compiler_flag="-fno-rtti -fno-exceptions"
8911   # Insert the option either (1) after the last *FLAGS variable, or
8912   # (2) before a word containing "conftest.", or (3) at the end.
8913   # Note that $ac_compile itself does not contain backslashes and begins
8914   # with a dollar sign (not a hyphen), so the echo should work correctly.
8915   # The option is referenced via a variable to avoid confusing sed.
8916   lt_compile=`echo "$ac_compile" | $SED \
8917   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8918   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8919   -e 's:$: $lt_compiler_flag:'`
8920   (eval echo "\"\$as_me:8920: $lt_compile\"" >&5)
8921   (eval "$lt_compile" 2>conftest.err)
8922   ac_status=$?
8923   cat conftest.err >&5
8924   echo "$as_me:8924: \$? = $ac_status" >&5
8925   if (exit $ac_status) && test -s "$ac_outfile"; then
8926     # The compiler can only warn and ignore the option if not recognized
8927     # So say no if there are warnings other than the usual output.
8928     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8929     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8930     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8931       lt_cv_prog_compiler_rtti_exceptions=yes
8932     fi
8933   fi
8934   $rm conftest*
8935
8936fi
8937{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8938echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8939
8940if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8941    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8942else
8943    :
8944fi
8945
8946fi
8947
8948lt_prog_compiler_wl=
8949lt_prog_compiler_pic=
8950lt_prog_compiler_static=
8951
8952{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8953echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8954
8955  if test "$GCC" = yes; then
8956    lt_prog_compiler_wl='-Wl,'
8957    lt_prog_compiler_static='-static'
8958
8959    case $host_os in
8960      aix*)
8961      # All AIX code is PIC.
8962      if test "$host_cpu" = ia64; then
8963	# AIX 5 now supports IA64 processor
8964	lt_prog_compiler_static='-Bstatic'
8965      fi
8966      ;;
8967
8968    amigaos*)
8969      # FIXME: we need at least 68020 code to build shared libraries, but
8970      # adding the `-m68020' flag to GCC prevents building anything better,
8971      # like `-m68040'.
8972      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8973      ;;
8974
8975    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8976      # PIC is the default for these OSes.
8977      ;;
8978
8979    mingw* | pw32* | os2*)
8980      # This hack is so that the source file can tell whether it is being
8981      # built for inclusion in a dll (and should export symbols for example).
8982      lt_prog_compiler_pic='-DDLL_EXPORT'
8983      ;;
8984
8985    darwin* | rhapsody*)
8986      # PIC is the default on this platform
8987      # Common symbols not allowed in MH_DYLIB files
8988      lt_prog_compiler_pic='-fno-common'
8989      ;;
8990
8991    interix3*)
8992      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8993      # Instead, we relocate shared libraries at runtime.
8994      ;;
8995
8996    msdosdjgpp*)
8997      # Just because we use GCC doesn't mean we suddenly get shared libraries
8998      # on systems that don't support them.
8999      lt_prog_compiler_can_build_shared=no
9000      enable_shared=no
9001      ;;
9002
9003    sysv4*MP*)
9004      if test -d /usr/nec; then
9005	lt_prog_compiler_pic=-Kconform_pic
9006      fi
9007      ;;
9008
9009    hpux*)
9010      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9011      # not for PA HP-UX.
9012      case $host_cpu in
9013      hppa*64*|ia64*)
9014	# +Z the default
9015	;;
9016      *)
9017	lt_prog_compiler_pic='-fPIC'
9018	;;
9019      esac
9020      ;;
9021
9022    *)
9023      lt_prog_compiler_pic='-fPIC'
9024      ;;
9025    esac
9026  else
9027    # PORTME Check for flag to pass linker flags through the system compiler.
9028    case $host_os in
9029    aix*)
9030      lt_prog_compiler_wl='-Wl,'
9031      if test "$host_cpu" = ia64; then
9032	# AIX 5 now supports IA64 processor
9033	lt_prog_compiler_static='-Bstatic'
9034      else
9035	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9036      fi
9037      ;;
9038      darwin*)
9039        # PIC is the default on this platform
9040        # Common symbols not allowed in MH_DYLIB files
9041       case $cc_basename in
9042         xlc*)
9043         lt_prog_compiler_pic='-qnocommon'
9044         lt_prog_compiler_wl='-Wl,'
9045         ;;
9046       esac
9047       ;;
9048
9049    mingw* | pw32* | os2*)
9050      # This hack is so that the source file can tell whether it is being
9051      # built for inclusion in a dll (and should export symbols for example).
9052      lt_prog_compiler_pic='-DDLL_EXPORT'
9053      ;;
9054
9055    hpux9* | hpux10* | hpux11*)
9056      lt_prog_compiler_wl='-Wl,'
9057      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9058      # not for PA HP-UX.
9059      case $host_cpu in
9060      hppa*64*|ia64*)
9061	# +Z the default
9062	;;
9063      *)
9064	lt_prog_compiler_pic='+Z'
9065	;;
9066      esac
9067      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9068      lt_prog_compiler_static='${wl}-a ${wl}archive'
9069      ;;
9070
9071    irix5* | irix6* | nonstopux*)
9072      lt_prog_compiler_wl='-Wl,'
9073      # PIC (with -KPIC) is the default.
9074      lt_prog_compiler_static='-non_shared'
9075      ;;
9076
9077    newsos6)
9078      lt_prog_compiler_pic='-KPIC'
9079      lt_prog_compiler_static='-Bstatic'
9080      ;;
9081
9082    linux*)
9083      case $cc_basename in
9084      icc* | ecc*)
9085	lt_prog_compiler_wl='-Wl,'
9086	lt_prog_compiler_pic='-KPIC'
9087	lt_prog_compiler_static='-static'
9088        ;;
9089      pgcc* | pgf77* | pgf90* | pgf95*)
9090        # Portland Group compilers (*not* the Pentium gcc compiler,
9091	# which looks to be a dead project)
9092	lt_prog_compiler_wl='-Wl,'
9093	lt_prog_compiler_pic='-fpic'
9094	lt_prog_compiler_static='-Bstatic'
9095        ;;
9096      ccc*)
9097        lt_prog_compiler_wl='-Wl,'
9098        # All Alpha code is PIC.
9099        lt_prog_compiler_static='-non_shared'
9100        ;;
9101      esac
9102      ;;
9103
9104    osf3* | osf4* | osf5*)
9105      lt_prog_compiler_wl='-Wl,'
9106      # All OSF/1 code is PIC.
9107      lt_prog_compiler_static='-non_shared'
9108      ;;
9109
9110    solaris*)
9111      lt_prog_compiler_pic='-KPIC'
9112      lt_prog_compiler_static='-Bstatic'
9113      case $cc_basename in
9114      f77* | f90* | f95*)
9115	lt_prog_compiler_wl='-Qoption ld ';;
9116      *)
9117	lt_prog_compiler_wl='-Wl,';;
9118      esac
9119      ;;
9120
9121    sunos4*)
9122      lt_prog_compiler_wl='-Qoption ld '
9123      lt_prog_compiler_pic='-PIC'
9124      lt_prog_compiler_static='-Bstatic'
9125      ;;
9126
9127    sysv4 | sysv4.2uw2* | sysv4.3*)
9128      lt_prog_compiler_wl='-Wl,'
9129      lt_prog_compiler_pic='-KPIC'
9130      lt_prog_compiler_static='-Bstatic'
9131      ;;
9132
9133    sysv4*MP*)
9134      if test -d /usr/nec ;then
9135	lt_prog_compiler_pic='-Kconform_pic'
9136	lt_prog_compiler_static='-Bstatic'
9137      fi
9138      ;;
9139
9140    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9141      lt_prog_compiler_wl='-Wl,'
9142      lt_prog_compiler_pic='-KPIC'
9143      lt_prog_compiler_static='-Bstatic'
9144      ;;
9145
9146    unicos*)
9147      lt_prog_compiler_wl='-Wl,'
9148      lt_prog_compiler_can_build_shared=no
9149      ;;
9150
9151    uts4*)
9152      lt_prog_compiler_pic='-pic'
9153      lt_prog_compiler_static='-Bstatic'
9154      ;;
9155
9156    *)
9157      lt_prog_compiler_can_build_shared=no
9158      ;;
9159    esac
9160  fi
9161
9162{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9163echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9164
9165#
9166# Check to make sure the PIC flag actually works.
9167#
9168if test -n "$lt_prog_compiler_pic"; then
9169
9170{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9171echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9172if test "${lt_prog_compiler_pic_works+set}" = set; then
9173  echo $ECHO_N "(cached) $ECHO_C" >&6
9174else
9175  lt_prog_compiler_pic_works=no
9176  ac_outfile=conftest.$ac_objext
9177   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9178   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9179   # Insert the option either (1) after the last *FLAGS variable, or
9180   # (2) before a word containing "conftest.", or (3) at the end.
9181   # Note that $ac_compile itself does not contain backslashes and begins
9182   # with a dollar sign (not a hyphen), so the echo should work correctly.
9183   # The option is referenced via a variable to avoid confusing sed.
9184   lt_compile=`echo "$ac_compile" | $SED \
9185   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9186   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9187   -e 's:$: $lt_compiler_flag:'`
9188   (eval echo "\"\$as_me:9188: $lt_compile\"" >&5)
9189   (eval "$lt_compile" 2>conftest.err)
9190   ac_status=$?
9191   cat conftest.err >&5
9192   echo "$as_me:9192: \$? = $ac_status" >&5
9193   if (exit $ac_status) && test -s "$ac_outfile"; then
9194     # The compiler can only warn and ignore the option if not recognized
9195     # So say no if there are warnings other than the usual output.
9196     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9197     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9198     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9199       lt_prog_compiler_pic_works=yes
9200     fi
9201   fi
9202   $rm conftest*
9203
9204fi
9205{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9206echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9207
9208if test x"$lt_prog_compiler_pic_works" = xyes; then
9209    case $lt_prog_compiler_pic in
9210     "" | " "*) ;;
9211     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9212     esac
9213else
9214    lt_prog_compiler_pic=
9215     lt_prog_compiler_can_build_shared=no
9216fi
9217
9218fi
9219case $host_os in
9220  # For platforms which do not support PIC, -DPIC is meaningless:
9221  *djgpp*)
9222    lt_prog_compiler_pic=
9223    ;;
9224  *)
9225    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9226    ;;
9227esac
9228
9229#
9230# Check to make sure the static flag actually works.
9231#
9232wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9233{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9234echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9235if test "${lt_prog_compiler_static_works+set}" = set; then
9236  echo $ECHO_N "(cached) $ECHO_C" >&6
9237else
9238  lt_prog_compiler_static_works=no
9239   save_LDFLAGS="$LDFLAGS"
9240   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9241   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9242   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9243     # The linker can only warn and ignore the option if not recognized
9244     # So say no if there are warnings
9245     if test -s conftest.err; then
9246       # Append any errors to the config.log.
9247       cat conftest.err 1>&5
9248       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9249       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9250       if diff conftest.exp conftest.er2 >/dev/null; then
9251         lt_prog_compiler_static_works=yes
9252       fi
9253     else
9254       lt_prog_compiler_static_works=yes
9255     fi
9256   fi
9257   $rm conftest*
9258   LDFLAGS="$save_LDFLAGS"
9259
9260fi
9261{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9262echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9263
9264if test x"$lt_prog_compiler_static_works" = xyes; then
9265    :
9266else
9267    lt_prog_compiler_static=
9268fi
9269
9270
9271{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9272echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9273if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9274  echo $ECHO_N "(cached) $ECHO_C" >&6
9275else
9276  lt_cv_prog_compiler_c_o=no
9277   $rm -r conftest 2>/dev/null
9278   mkdir conftest
9279   cd conftest
9280   mkdir out
9281   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9282
9283   lt_compiler_flag="-o out/conftest2.$ac_objext"
9284   # Insert the option either (1) after the last *FLAGS variable, or
9285   # (2) before a word containing "conftest.", or (3) at the end.
9286   # Note that $ac_compile itself does not contain backslashes and begins
9287   # with a dollar sign (not a hyphen), so the echo should work correctly.
9288   lt_compile=`echo "$ac_compile" | $SED \
9289   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9290   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9291   -e 's:$: $lt_compiler_flag:'`
9292   (eval echo "\"\$as_me:9292: $lt_compile\"" >&5)
9293   (eval "$lt_compile" 2>out/conftest.err)
9294   ac_status=$?
9295   cat out/conftest.err >&5
9296   echo "$as_me:9296: \$? = $ac_status" >&5
9297   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9298   then
9299     # The compiler can only warn and ignore the option if not recognized
9300     # So say no if there are warnings
9301     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9302     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9303     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9304       lt_cv_prog_compiler_c_o=yes
9305     fi
9306   fi
9307   chmod u+w . 2>&5
9308   $rm conftest*
9309   # SGI C++ compiler will create directory out/ii_files/ for
9310   # template instantiation
9311   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9312   $rm out/* && rmdir out
9313   cd ..
9314   rmdir conftest
9315   $rm conftest*
9316
9317fi
9318{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9319echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9320
9321
9322hard_links="nottested"
9323if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9324  # do not overwrite the value of need_locks provided by the user
9325  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9326echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9327  hard_links=yes
9328  $rm conftest*
9329  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9330  touch conftest.a
9331  ln conftest.a conftest.b 2>&5 || hard_links=no
9332  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9333  { echo "$as_me:$LINENO: result: $hard_links" >&5
9334echo "${ECHO_T}$hard_links" >&6; }
9335  if test "$hard_links" = no; then
9336    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9337echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9338    need_locks=warn
9339  fi
9340else
9341  need_locks=no
9342fi
9343
9344{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9345echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9346
9347  runpath_var=
9348  allow_undefined_flag=
9349  enable_shared_with_static_runtimes=no
9350  archive_cmds=
9351  archive_expsym_cmds=
9352  old_archive_From_new_cmds=
9353  old_archive_from_expsyms_cmds=
9354  export_dynamic_flag_spec=
9355  whole_archive_flag_spec=
9356  thread_safe_flag_spec=
9357  hardcode_libdir_flag_spec=
9358  hardcode_libdir_flag_spec_ld=
9359  hardcode_libdir_separator=
9360  hardcode_direct=no
9361  hardcode_minus_L=no
9362  hardcode_shlibpath_var=unsupported
9363  link_all_deplibs=unknown
9364  hardcode_automatic=no
9365  module_cmds=
9366  module_expsym_cmds=
9367  always_export_symbols=no
9368  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9369  # include_expsyms should be a list of space-separated symbols to be *always*
9370  # included in the symbol list
9371  include_expsyms=
9372  # exclude_expsyms can be an extended regexp of symbols to exclude
9373  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9374  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9375  # as well as any symbol that contains `d'.
9376  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9377  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9378  # platforms (ab)use it in PIC code, but their linkers get confused if
9379  # the symbol is explicitly referenced.  Since portable code cannot
9380  # rely on this symbol name, it's probably fine to never include it in
9381  # preloaded symbol tables.
9382  extract_expsyms_cmds=
9383  # Just being paranoid about ensuring that cc_basename is set.
9384  for cc_temp in $compiler""; do
9385  case $cc_temp in
9386    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9387    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9388    \-*) ;;
9389    *) break;;
9390  esac
9391done
9392cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9393
9394  case $host_os in
9395  cygwin* | mingw* | pw32*)
9396    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9397    # When not using gcc, we currently assume that we are using
9398    # Microsoft Visual C++.
9399    if test "$GCC" != yes; then
9400      with_gnu_ld=no
9401    fi
9402    ;;
9403  interix*)
9404    # we just hope/assume this is gcc and not c89 (= MSVC++)
9405    with_gnu_ld=yes
9406    ;;
9407  openbsd*)
9408    with_gnu_ld=no
9409    ;;
9410  esac
9411
9412  ld_shlibs=yes
9413  if test "$with_gnu_ld" = yes; then
9414    # If archive_cmds runs LD, not CC, wlarc should be empty
9415    wlarc='${wl}'
9416
9417    # Set some defaults for GNU ld with shared library support. These
9418    # are reset later if shared libraries are not supported. Putting them
9419    # here allows them to be overridden if necessary.
9420    runpath_var=LD_RUN_PATH
9421    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9422    export_dynamic_flag_spec='${wl}--export-dynamic'
9423    # ancient GNU ld didn't support --whole-archive et. al.
9424    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9425	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9426      else
9427  	whole_archive_flag_spec=
9428    fi
9429    supports_anon_versioning=no
9430    case `$LD -v 2>/dev/null` in
9431      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9432      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9433      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9434      *\ 2.11.*) ;; # other 2.11 versions
9435      *) supports_anon_versioning=yes ;;
9436    esac
9437
9438    # See if GNU ld supports shared libraries.
9439    case $host_os in
9440    aix3* | aix4* | aix5*)
9441      # On AIX/PPC, the GNU linker is very broken
9442      if test "$host_cpu" != ia64; then
9443	ld_shlibs=no
9444	cat <<EOF 1>&2
9445
9446*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9447*** to be unable to reliably create shared libraries on AIX.
9448*** Therefore, libtool is disabling shared libraries support.  If you
9449*** really care for shared libraries, you may want to modify your PATH
9450*** so that a non-GNU linker is found, and then restart.
9451
9452EOF
9453      fi
9454      ;;
9455
9456    amigaos*)
9457      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)'
9458      hardcode_libdir_flag_spec='-L$libdir'
9459      hardcode_minus_L=yes
9460
9461      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9462      # that the semantics of dynamic libraries on AmigaOS, at least up
9463      # to version 4, is to share data among multiple programs linked
9464      # with the same dynamic library.  Since this doesn't match the
9465      # behavior of shared libraries on other platforms, we can't use
9466      # them.
9467      ld_shlibs=no
9468      ;;
9469
9470    beos*)
9471      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9472	allow_undefined_flag=unsupported
9473	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9474	# support --undefined.  This deserves some investigation.  FIXME
9475	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9476      else
9477	ld_shlibs=no
9478      fi
9479      ;;
9480
9481    cygwin* | mingw* | pw32*)
9482      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9483      # as there is no search path for DLLs.
9484      hardcode_libdir_flag_spec='-L$libdir'
9485      allow_undefined_flag=unsupported
9486      always_export_symbols=no
9487      enable_shared_with_static_runtimes=yes
9488      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9489
9490      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9491        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9492	# If the export-symbols file already is a .def file (1st line
9493	# is EXPORTS), use it as is; otherwise, prepend...
9494	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9495	  cp $export_symbols $output_objdir/$soname.def;
9496	else
9497	  echo EXPORTS > $output_objdir/$soname.def;
9498	  cat $export_symbols >> $output_objdir/$soname.def;
9499	fi~
9500	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9501      else
9502	ld_shlibs=no
9503      fi
9504      ;;
9505
9506    interix3*)
9507      hardcode_direct=no
9508      hardcode_shlibpath_var=no
9509      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9510      export_dynamic_flag_spec='${wl}-E'
9511      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9512      # Instead, shared libraries are loaded at an image base (0x10000000 by
9513      # default) and relocated if they conflict, which is a slow very memory
9514      # consuming and fragmenting process.  To avoid this, we pick a random,
9515      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9516      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9517      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9518      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9519      ;;
9520
9521    linux*)
9522      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9523	tmp_addflag=
9524	case $cc_basename,$host_cpu in
9525	pgcc*)				# Portland Group C compiler
9526	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9527	  tmp_addflag=' $pic_flag'
9528	  ;;
9529	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9530	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9531	  tmp_addflag=' $pic_flag -Mnomain' ;;
9532	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
9533	  tmp_addflag=' -i_dynamic' ;;
9534	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9535	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9536	ifc* | ifort*)			# Intel Fortran compiler
9537	  tmp_addflag=' -nofor_main' ;;
9538	esac
9539	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9540
9541	if test $supports_anon_versioning = yes; then
9542	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9543  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9544  $echo "local: *; };" >> $output_objdir/$libname.ver~
9545	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9546	fi
9547      else
9548	ld_shlibs=no
9549      fi
9550      ;;
9551
9552    netbsd*)
9553      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9554	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9555	wlarc=
9556      else
9557	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9558	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9559      fi
9560      ;;
9561
9562    solaris*)
9563      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9564	ld_shlibs=no
9565	cat <<EOF 1>&2
9566
9567*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9568*** create shared libraries on Solaris systems.  Therefore, libtool
9569*** is disabling shared libraries support.  We urge you to upgrade GNU
9570*** binutils to release 2.9.1 or newer.  Another option is to modify
9571*** your PATH or compiler configuration so that the native linker is
9572*** used, and then restart.
9573
9574EOF
9575      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9576	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9577	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9578      else
9579	ld_shlibs=no
9580      fi
9581      ;;
9582
9583    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9584      case `$LD -v 2>&1` in
9585        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9586	ld_shlibs=no
9587	cat <<_LT_EOF 1>&2
9588
9589*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9590*** reliably create shared libraries on SCO systems.  Therefore, libtool
9591*** is disabling shared libraries support.  We urge you to upgrade GNU
9592*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9593*** your PATH or compiler configuration so that the native linker is
9594*** used, and then restart.
9595
9596_LT_EOF
9597	;;
9598	*)
9599	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9600	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9601	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9602	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9603	  else
9604	    ld_shlibs=no
9605	  fi
9606	;;
9607      esac
9608      ;;
9609
9610    sunos4*)
9611      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9612      wlarc=
9613      hardcode_direct=yes
9614      hardcode_shlibpath_var=no
9615      ;;
9616
9617    *)
9618      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9619	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9620	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9621      else
9622	ld_shlibs=no
9623      fi
9624      ;;
9625    esac
9626
9627    if test "$ld_shlibs" = no; then
9628      runpath_var=
9629      hardcode_libdir_flag_spec=
9630      export_dynamic_flag_spec=
9631      whole_archive_flag_spec=
9632    fi
9633  else
9634    # PORTME fill in a description of your system's linker (not GNU ld)
9635    case $host_os in
9636    aix3*)
9637      allow_undefined_flag=unsupported
9638      always_export_symbols=yes
9639      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'
9640      # Note: this linker hardcodes the directories in LIBPATH if there
9641      # are no directories specified by -L.
9642      hardcode_minus_L=yes
9643      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9644	# Neither direct hardcoding nor static linking is supported with a
9645	# broken collect2.
9646	hardcode_direct=unsupported
9647      fi
9648      ;;
9649
9650    aix4* | aix5*)
9651      if test "$host_cpu" = ia64; then
9652	# On IA64, the linker does run time linking by default, so we don't
9653	# have to do anything special.
9654	aix_use_runtimelinking=no
9655	exp_sym_flag='-Bexport'
9656	no_entry_flag=""
9657      else
9658	# If we're using GNU nm, then we don't want the "-C" option.
9659	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9660	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9661	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9662	else
9663	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9664	fi
9665	aix_use_runtimelinking=no
9666
9667	# Test if we are trying to use run time linking or normal
9668	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9669	# need to do runtime linking.
9670	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9671	  for ld_flag in $LDFLAGS; do
9672  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9673  	    aix_use_runtimelinking=yes
9674  	    break
9675  	  fi
9676	  done
9677	  ;;
9678	esac
9679
9680	exp_sym_flag='-bexport'
9681	no_entry_flag='-bnoentry'
9682      fi
9683
9684      # When large executables or shared objects are built, AIX ld can
9685      # have problems creating the table of contents.  If linking a library
9686      # or program results in "error TOC overflow" add -mminimal-toc to
9687      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9688      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9689
9690      archive_cmds=''
9691      hardcode_direct=yes
9692      hardcode_libdir_separator=':'
9693      link_all_deplibs=yes
9694
9695      if test "$GCC" = yes; then
9696	case $host_os in aix4.[012]|aix4.[012].*)
9697	# We only want to do this on AIX 4.2 and lower, the check
9698	# below for broken collect2 doesn't work under 4.3+
9699	  collect2name=`${CC} -print-prog-name=collect2`
9700	  if test -f "$collect2name" && \
9701  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9702	  then
9703  	  # We have reworked collect2
9704  	  hardcode_direct=yes
9705	  else
9706  	  # We have old collect2
9707  	  hardcode_direct=unsupported
9708  	  # It fails to find uninstalled libraries when the uninstalled
9709  	  # path is not listed in the libpath.  Setting hardcode_minus_L
9710  	  # to unsupported forces relinking
9711  	  hardcode_minus_L=yes
9712  	  hardcode_libdir_flag_spec='-L$libdir'
9713  	  hardcode_libdir_separator=
9714	  fi
9715	  ;;
9716	esac
9717	shared_flag='-shared'
9718	if test "$aix_use_runtimelinking" = yes; then
9719	  shared_flag="$shared_flag "'${wl}-G'
9720	fi
9721      else
9722	# not using gcc
9723	if test "$host_cpu" = ia64; then
9724  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9725  	# chokes on -Wl,-G. The following line is correct:
9726	  shared_flag='-G'
9727	else
9728	  if test "$aix_use_runtimelinking" = yes; then
9729	    shared_flag='${wl}-G'
9730	  else
9731	    shared_flag='${wl}-bM:SRE'
9732	  fi
9733	fi
9734      fi
9735
9736      # It seems that -bexpall does not export symbols beginning with
9737      # underscore (_), so it is better to generate a list of symbols to export.
9738      always_export_symbols=yes
9739      if test "$aix_use_runtimelinking" = yes; then
9740	# Warning - without using the other runtime loading flags (-brtl),
9741	# -berok will link without error, but may produce a broken library.
9742	allow_undefined_flag='-berok'
9743       # Determine the default libpath from the value encoded in an empty executable.
9744       cat >conftest.$ac_ext <<_ACEOF
9745/* confdefs.h.  */
9746_ACEOF
9747cat confdefs.h >>conftest.$ac_ext
9748cat >>conftest.$ac_ext <<_ACEOF
9749/* end confdefs.h.  */
9750
9751int
9752main ()
9753{
9754
9755  ;
9756  return 0;
9757}
9758_ACEOF
9759rm -f conftest.$ac_objext conftest$ac_exeext
9760if { (ac_try="$ac_link"
9761case "(($ac_try" in
9762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763  *) ac_try_echo=$ac_try;;
9764esac
9765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766  (eval "$ac_link") 2>conftest.er1
9767  ac_status=$?
9768  grep -v '^ *+' conftest.er1 >conftest.err
9769  rm -f conftest.er1
9770  cat conftest.err >&5
9771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772  (exit $ac_status); } && {
9773	 test -z "$ac_c_werror_flag" ||
9774	 test ! -s conftest.err
9775       } && test -s conftest$ac_exeext &&
9776       $as_test_x conftest$ac_exeext; then
9777
9778aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9779}'`
9780# Check for a 64-bit object if we didn't find anything.
9781if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9782}'`; fi
9783else
9784  echo "$as_me: failed program was:" >&5
9785sed 's/^/| /' conftest.$ac_ext >&5
9786
9787
9788fi
9789
9790rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9791      conftest$ac_exeext conftest.$ac_ext
9792if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9793
9794       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9795	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9796       else
9797	if test "$host_cpu" = ia64; then
9798	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9799	  allow_undefined_flag="-z nodefs"
9800	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9801	else
9802	 # Determine the default libpath from the value encoded in an empty executable.
9803	 cat >conftest.$ac_ext <<_ACEOF
9804/* confdefs.h.  */
9805_ACEOF
9806cat confdefs.h >>conftest.$ac_ext
9807cat >>conftest.$ac_ext <<_ACEOF
9808/* end confdefs.h.  */
9809
9810int
9811main ()
9812{
9813
9814  ;
9815  return 0;
9816}
9817_ACEOF
9818rm -f conftest.$ac_objext conftest$ac_exeext
9819if { (ac_try="$ac_link"
9820case "(($ac_try" in
9821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822  *) ac_try_echo=$ac_try;;
9823esac
9824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825  (eval "$ac_link") 2>conftest.er1
9826  ac_status=$?
9827  grep -v '^ *+' conftest.er1 >conftest.err
9828  rm -f conftest.er1
9829  cat conftest.err >&5
9830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831  (exit $ac_status); } && {
9832	 test -z "$ac_c_werror_flag" ||
9833	 test ! -s conftest.err
9834       } && test -s conftest$ac_exeext &&
9835       $as_test_x conftest$ac_exeext; then
9836
9837aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9838}'`
9839# Check for a 64-bit object if we didn't find anything.
9840if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9841}'`; fi
9842else
9843  echo "$as_me: failed program was:" >&5
9844sed 's/^/| /' conftest.$ac_ext >&5
9845
9846
9847fi
9848
9849rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9850      conftest$ac_exeext conftest.$ac_ext
9851if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9852
9853	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9854	  # Warning - without using the other run time loading flags,
9855	  # -berok will link without error, but may produce a broken library.
9856	  no_undefined_flag=' ${wl}-bernotok'
9857	  allow_undefined_flag=' ${wl}-berok'
9858	  # Exported symbols can be pulled into shared objects from archives
9859	  whole_archive_flag_spec='$convenience'
9860	  archive_cmds_need_lc=yes
9861	  # This is similar to how AIX traditionally builds its shared libraries.
9862	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9863	fi
9864      fi
9865      ;;
9866
9867    amigaos*)
9868      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)'
9869      hardcode_libdir_flag_spec='-L$libdir'
9870      hardcode_minus_L=yes
9871      # see comment about different semantics on the GNU ld section
9872      ld_shlibs=no
9873      ;;
9874
9875    bsdi[45]*)
9876      export_dynamic_flag_spec=-rdynamic
9877      ;;
9878
9879    cygwin* | mingw* | pw32*)
9880      # When not using gcc, we currently assume that we are using
9881      # Microsoft Visual C++.
9882      # hardcode_libdir_flag_spec is actually meaningless, as there is
9883      # no search path for DLLs.
9884      hardcode_libdir_flag_spec=' '
9885      allow_undefined_flag=unsupported
9886      # Tell ltmain to make .lib files, not .a files.
9887      libext=lib
9888      # Tell ltmain to make .dll files, not .so files.
9889      shrext_cmds=".dll"
9890      # FIXME: Setting linknames here is a bad hack.
9891      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9892      # The linker will automatically build a .lib file if we build a DLL.
9893      old_archive_From_new_cmds='true'
9894      # FIXME: Should let the user specify the lib program.
9895      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9896      fix_srcfile_path='`cygpath -w "$srcfile"`'
9897      enable_shared_with_static_runtimes=yes
9898      ;;
9899
9900    darwin* | rhapsody*)
9901      case $host_os in
9902        rhapsody* | darwin1.[012])
9903         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9904         ;;
9905       *) # Darwin 1.3 on
9906         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9907           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9908         else
9909           case ${MACOSX_DEPLOYMENT_TARGET} in
9910             10.[012])
9911               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9912               ;;
9913             10.*)
9914               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9915               ;;
9916           esac
9917         fi
9918         ;;
9919      esac
9920      archive_cmds_need_lc=no
9921      hardcode_direct=no
9922      hardcode_automatic=yes
9923      hardcode_shlibpath_var=unsupported
9924      whole_archive_flag_spec=''
9925      link_all_deplibs=yes
9926    if test "$GCC" = yes ; then
9927    	output_verbose_link_cmd='echo'
9928        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9929      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9930      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9931      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9932      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9933    else
9934      case $cc_basename in
9935        xlc*)
9936         output_verbose_link_cmd='echo'
9937         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9938         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9939          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9940         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9941          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9942          ;;
9943       *)
9944         ld_shlibs=no
9945          ;;
9946      esac
9947    fi
9948      ;;
9949
9950    dgux*)
9951      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9952      hardcode_libdir_flag_spec='-L$libdir'
9953      hardcode_shlibpath_var=no
9954      ;;
9955
9956    freebsd1*)
9957      ld_shlibs=no
9958      ;;
9959
9960    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9961    # support.  Future versions do this automatically, but an explicit c++rt0.o
9962    # does not break anything, and helps significantly (at the cost of a little
9963    # extra space).
9964    freebsd2.2*)
9965      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9966      hardcode_libdir_flag_spec='-R$libdir'
9967      hardcode_direct=yes
9968      hardcode_shlibpath_var=no
9969      ;;
9970
9971    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9972    freebsd2*)
9973      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9974      hardcode_direct=yes
9975      hardcode_minus_L=yes
9976      hardcode_shlibpath_var=no
9977      ;;
9978
9979    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9980    freebsd* | kfreebsd*-gnu | dragonfly*)
9981      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9982      hardcode_libdir_flag_spec='-R$libdir'
9983      hardcode_direct=yes
9984      hardcode_shlibpath_var=no
9985      ;;
9986
9987    hpux9*)
9988      if test "$GCC" = yes; then
9989	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9990      else
9991	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'
9992      fi
9993      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9994      hardcode_libdir_separator=:
9995      hardcode_direct=yes
9996
9997      # hardcode_minus_L: Not really in the search PATH,
9998      # but as the default location of the library.
9999      hardcode_minus_L=yes
10000      export_dynamic_flag_spec='${wl}-E'
10001      ;;
10002
10003    hpux10*)
10004      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10005	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10006      else
10007	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10008      fi
10009      if test "$with_gnu_ld" = no; then
10010	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10011	hardcode_libdir_separator=:
10012
10013	hardcode_direct=yes
10014	export_dynamic_flag_spec='${wl}-E'
10015
10016	# hardcode_minus_L: Not really in the search PATH,
10017	# but as the default location of the library.
10018	hardcode_minus_L=yes
10019      fi
10020      ;;
10021
10022    hpux11*)
10023      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10024	case $host_cpu in
10025	hppa*64*)
10026	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10027	  ;;
10028	ia64*)
10029	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10030	  ;;
10031	*)
10032	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10033	  ;;
10034	esac
10035      else
10036	case $host_cpu in
10037	hppa*64*)
10038	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10039	  ;;
10040	ia64*)
10041	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10042	  ;;
10043	*)
10044	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10045	  ;;
10046	esac
10047      fi
10048      if test "$with_gnu_ld" = no; then
10049	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10050	hardcode_libdir_separator=:
10051
10052	case $host_cpu in
10053	hppa*64*|ia64*)
10054	  hardcode_libdir_flag_spec_ld='+b $libdir'
10055	  hardcode_direct=no
10056	  hardcode_shlibpath_var=no
10057	  ;;
10058	*)
10059	  hardcode_direct=yes
10060	  export_dynamic_flag_spec='${wl}-E'
10061
10062	  # hardcode_minus_L: Not really in the search PATH,
10063	  # but as the default location of the library.
10064	  hardcode_minus_L=yes
10065	  ;;
10066	esac
10067      fi
10068      ;;
10069
10070    irix5* | irix6* | nonstopux*)
10071      if test "$GCC" = yes; then
10072	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'
10073      else
10074	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'
10075	hardcode_libdir_flag_spec_ld='-rpath $libdir'
10076      fi
10077      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10078      hardcode_libdir_separator=:
10079      link_all_deplibs=yes
10080      ;;
10081
10082    netbsd*)
10083      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10084	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10085      else
10086	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10087      fi
10088      hardcode_libdir_flag_spec='-R$libdir'
10089      hardcode_direct=yes
10090      hardcode_shlibpath_var=no
10091      ;;
10092
10093    newsos6)
10094      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10095      hardcode_direct=yes
10096      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10097      hardcode_libdir_separator=:
10098      hardcode_shlibpath_var=no
10099      ;;
10100
10101    openbsd*)
10102      hardcode_direct=yes
10103      hardcode_shlibpath_var=no
10104      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10105	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10106	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10107	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10108	export_dynamic_flag_spec='${wl}-E'
10109      else
10110       case $host_os in
10111	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10112	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10113	   hardcode_libdir_flag_spec='-R$libdir'
10114	   ;;
10115	 *)
10116	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10117	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10118	   ;;
10119       esac
10120      fi
10121      ;;
10122
10123    os2*)
10124      hardcode_libdir_flag_spec='-L$libdir'
10125      hardcode_minus_L=yes
10126      allow_undefined_flag=unsupported
10127      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'
10128      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10129      ;;
10130
10131    osf3*)
10132      if test "$GCC" = yes; then
10133	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10134	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'
10135      else
10136	allow_undefined_flag=' -expect_unresolved \*'
10137	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'
10138      fi
10139      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10140      hardcode_libdir_separator=:
10141      ;;
10142
10143    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10144      if test "$GCC" = yes; then
10145	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10146	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'
10147	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10148      else
10149	allow_undefined_flag=' -expect_unresolved \*'
10150	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'
10151	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10152	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
10153
10154	# Both c and cxx compiler support -rpath directly
10155	hardcode_libdir_flag_spec='-rpath $libdir'
10156      fi
10157      hardcode_libdir_separator=:
10158      ;;
10159
10160    solaris*)
10161      no_undefined_flag=' -z text'
10162      if test "$GCC" = yes; then
10163	wlarc='${wl}'
10164	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10165	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10166	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10167      else
10168	wlarc=''
10169	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10171  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10172      fi
10173      hardcode_libdir_flag_spec='-R$libdir'
10174      hardcode_shlibpath_var=no
10175      case $host_os in
10176      solaris2.[0-5] | solaris2.[0-5].*) ;;
10177      *)
10178 	# The compiler driver will combine linker options so we
10179 	# cannot just pass the convience library names through
10180 	# without $wl, iff we do not link with $LD.
10181 	# Luckily, gcc supports the same syntax we need for Sun Studio.
10182 	# Supported since Solaris 2.6 (maybe 2.5.1?)
10183 	case $wlarc in
10184 	'')
10185 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10186 	*)
10187 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
10188 	esac ;;
10189      esac
10190      link_all_deplibs=yes
10191      ;;
10192
10193    sunos4*)
10194      if test "x$host_vendor" = xsequent; then
10195	# Use $CC to link under sequent, because it throws in some extra .o
10196	# files that make .init and .fini sections work.
10197	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10198      else
10199	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10200      fi
10201      hardcode_libdir_flag_spec='-L$libdir'
10202      hardcode_direct=yes
10203      hardcode_minus_L=yes
10204      hardcode_shlibpath_var=no
10205      ;;
10206
10207    sysv4)
10208      case $host_vendor in
10209	sni)
10210	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10211	  hardcode_direct=yes # is this really true???
10212	;;
10213	siemens)
10214	  ## LD is ld it makes a PLAMLIB
10215	  ## CC just makes a GrossModule.
10216	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10217	  reload_cmds='$CC -r -o $output$reload_objs'
10218	  hardcode_direct=no
10219        ;;
10220	motorola)
10221	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10222	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10223	;;
10224      esac
10225      runpath_var='LD_RUN_PATH'
10226      hardcode_shlibpath_var=no
10227      ;;
10228
10229    sysv4.3*)
10230      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10231      hardcode_shlibpath_var=no
10232      export_dynamic_flag_spec='-Bexport'
10233      ;;
10234
10235    sysv4*MP*)
10236      if test -d /usr/nec; then
10237	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10238	hardcode_shlibpath_var=no
10239	runpath_var=LD_RUN_PATH
10240	hardcode_runpath_var=yes
10241	ld_shlibs=yes
10242      fi
10243      ;;
10244
10245    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10246      no_undefined_flag='${wl}-z,text'
10247      archive_cmds_need_lc=no
10248      hardcode_shlibpath_var=no
10249      runpath_var='LD_RUN_PATH'
10250
10251      if test "$GCC" = yes; then
10252	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10253	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10254      else
10255	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10256	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10257      fi
10258      ;;
10259
10260    sysv5* | sco3.2v5* | sco5v6*)
10261      # Note: We can NOT use -z defs as we might desire, because we do not
10262      # link with -lc, and that would cause any symbols used from libc to
10263      # always be unresolved, which means just about no library would
10264      # ever link correctly.  If we're not using GNU ld we use -z text
10265      # though, which does catch some bad symbols but isn't as heavy-handed
10266      # as -z defs.
10267      no_undefined_flag='${wl}-z,text'
10268      allow_undefined_flag='${wl}-z,nodefs'
10269      archive_cmds_need_lc=no
10270      hardcode_shlibpath_var=no
10271      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10272      hardcode_libdir_separator=':'
10273      link_all_deplibs=yes
10274      export_dynamic_flag_spec='${wl}-Bexport'
10275      runpath_var='LD_RUN_PATH'
10276
10277      if test "$GCC" = yes; then
10278	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10279	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10280      else
10281	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10282	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10283      fi
10284      ;;
10285
10286    uts4*)
10287      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10288      hardcode_libdir_flag_spec='-L$libdir'
10289      hardcode_shlibpath_var=no
10290      ;;
10291
10292    *)
10293      ld_shlibs=no
10294      ;;
10295    esac
10296  fi
10297
10298{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10299echo "${ECHO_T}$ld_shlibs" >&6; }
10300test "$ld_shlibs" = no && can_build_shared=no
10301
10302#
10303# Do we need to explicitly link libc?
10304#
10305case "x$archive_cmds_need_lc" in
10306x|xyes)
10307  # Assume -lc should be added
10308  archive_cmds_need_lc=yes
10309
10310  if test "$enable_shared" = yes && test "$GCC" = yes; then
10311    case $archive_cmds in
10312    *'~'*)
10313      # FIXME: we may have to deal with multi-command sequences.
10314      ;;
10315    '$CC '*)
10316      # Test whether the compiler implicitly links with -lc since on some
10317      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10318      # to ld, don't add -lc before -lgcc.
10319      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10320echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10321      $rm conftest*
10322      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10323
10324      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10325  (eval $ac_compile) 2>&5
10326  ac_status=$?
10327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328  (exit $ac_status); } 2>conftest.err; then
10329        soname=conftest
10330        lib=conftest
10331        libobjs=conftest.$ac_objext
10332        deplibs=
10333        wl=$lt_prog_compiler_wl
10334	pic_flag=$lt_prog_compiler_pic
10335        compiler_flags=-v
10336        linker_flags=-v
10337        verstring=
10338        output_objdir=.
10339        libname=conftest
10340        lt_save_allow_undefined_flag=$allow_undefined_flag
10341        allow_undefined_flag=
10342        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10343  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10344  ac_status=$?
10345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346  (exit $ac_status); }
10347        then
10348	  archive_cmds_need_lc=no
10349        else
10350	  archive_cmds_need_lc=yes
10351        fi
10352        allow_undefined_flag=$lt_save_allow_undefined_flag
10353      else
10354        cat conftest.err 1>&5
10355      fi
10356      $rm conftest*
10357      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10358echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10359      ;;
10360    esac
10361  fi
10362  ;;
10363esac
10364
10365{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10366echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10367library_names_spec=
10368libname_spec='lib$name'
10369soname_spec=
10370shrext_cmds=".so"
10371postinstall_cmds=
10372postuninstall_cmds=
10373finish_cmds=
10374finish_eval=
10375shlibpath_var=
10376shlibpath_overrides_runpath=unknown
10377version_type=none
10378dynamic_linker="$host_os ld.so"
10379sys_lib_dlsearch_path_spec="/lib /usr/lib"
10380if test "$GCC" = yes; then
10381  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10382  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10383    # if the path contains ";" then we assume it to be the separator
10384    # otherwise default to the standard path separator (i.e. ":") - it is
10385    # assumed that no part of a normal pathname contains ";" but that should
10386    # okay in the real world where ";" in dirpaths is itself problematic.
10387    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10388  else
10389    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10390  fi
10391else
10392  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10393fi
10394need_lib_prefix=unknown
10395hardcode_into_libs=no
10396
10397# when you set need_version to no, make sure it does not cause -set_version
10398# flags to be left without arguments
10399need_version=unknown
10400
10401case $host_os in
10402aix3*)
10403  version_type=linux
10404  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10405  shlibpath_var=LIBPATH
10406
10407  # AIX 3 has no versioning support, so we append a major version to the name.
10408  soname_spec='${libname}${release}${shared_ext}$major'
10409  ;;
10410
10411aix4* | aix5*)
10412  version_type=linux
10413  need_lib_prefix=no
10414  need_version=no
10415  hardcode_into_libs=yes
10416  if test "$host_cpu" = ia64; then
10417    # AIX 5 supports IA64
10418    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10419    shlibpath_var=LD_LIBRARY_PATH
10420  else
10421    # With GCC up to 2.95.x, collect2 would create an import file
10422    # for dependence libraries.  The import file would start with
10423    # the line `#! .'.  This would cause the generated library to
10424    # depend on `.', always an invalid library.  This was fixed in
10425    # development snapshots of GCC prior to 3.0.
10426    case $host_os in
10427      aix4 | aix4.[01] | aix4.[01].*)
10428      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10429	   echo ' yes '
10430	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10431	:
10432      else
10433	can_build_shared=no
10434      fi
10435      ;;
10436    esac
10437    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10438    # soname into executable. Probably we can add versioning support to
10439    # collect2, so additional links can be useful in future.
10440    if test "$aix_use_runtimelinking" = yes; then
10441      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10442      # instead of lib<name>.a to let people know that these are not
10443      # typical AIX shared libraries.
10444      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10445    else
10446      # We preserve .a as extension for shared libraries through AIX4.2
10447      # and later when we are not doing run time linking.
10448      library_names_spec='${libname}${release}.a $libname.a'
10449      soname_spec='${libname}${release}${shared_ext}$major'
10450    fi
10451    shlibpath_var=LIBPATH
10452  fi
10453  ;;
10454
10455amigaos*)
10456  library_names_spec='$libname.ixlibrary $libname.a'
10457  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10458  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'
10459  ;;
10460
10461beos*)
10462  library_names_spec='${libname}${shared_ext}'
10463  dynamic_linker="$host_os ld.so"
10464  shlibpath_var=LIBRARY_PATH
10465  ;;
10466
10467bsdi[45]*)
10468  version_type=linux
10469  need_version=no
10470  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471  soname_spec='${libname}${release}${shared_ext}$major'
10472  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10473  shlibpath_var=LD_LIBRARY_PATH
10474  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10475  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10476  # the default ld.so.conf also contains /usr/contrib/lib and
10477  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10478  # libtool to hard-code these into programs
10479  ;;
10480
10481cygwin* | mingw* | pw32*)
10482  version_type=windows
10483  shrext_cmds=".dll"
10484  need_version=no
10485  need_lib_prefix=no
10486
10487  case $GCC,$host_os in
10488  yes,cygwin* | yes,mingw* | yes,pw32*)
10489    library_names_spec='$libname.dll.a'
10490    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10491    postinstall_cmds='base_file=`basename \${file}`~
10492      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10493      dldir=$destdir/`dirname \$dlpath`~
10494      test -d \$dldir || mkdir -p \$dldir~
10495      $install_prog $dir/$dlname \$dldir/$dlname~
10496      chmod a+x \$dldir/$dlname'
10497    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10498      dlpath=$dir/\$dldll~
10499       $rm \$dlpath'
10500    shlibpath_overrides_runpath=yes
10501
10502    case $host_os in
10503    cygwin*)
10504      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10505      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10506      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10507      ;;
10508    mingw*)
10509      # MinGW DLLs use traditional 'lib' prefix
10510      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10511      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10512      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10513        # It is most probably a Windows format PATH printed by
10514        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10515        # path with ; separators, and with drive letters. We can handle the
10516        # drive letters (cygwin fileutils understands them), so leave them,
10517        # especially as we might pass files found there to a mingw objdump,
10518        # which wouldn't understand a cygwinified path. Ahh.
10519        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10520      else
10521        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10522      fi
10523      ;;
10524    pw32*)
10525      # pw32 DLLs use 'pw' prefix rather than 'lib'
10526      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10527      ;;
10528    esac
10529    ;;
10530
10531  *)
10532    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10533    ;;
10534  esac
10535  dynamic_linker='Win32 ld.exe'
10536  # FIXME: first we should search . and the directory the executable is in
10537  shlibpath_var=PATH
10538  ;;
10539
10540darwin* | rhapsody*)
10541  dynamic_linker="$host_os dyld"
10542  version_type=darwin
10543  need_lib_prefix=no
10544  need_version=no
10545  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10546  soname_spec='${libname}${release}${major}$shared_ext'
10547  shlibpath_overrides_runpath=yes
10548  shlibpath_var=DYLD_LIBRARY_PATH
10549  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10550  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10551  if test "$GCC" = yes; then
10552    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10553  else
10554    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10555  fi
10556  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10557  ;;
10558
10559dgux*)
10560  version_type=linux
10561  need_lib_prefix=no
10562  need_version=no
10563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10564  soname_spec='${libname}${release}${shared_ext}$major'
10565  shlibpath_var=LD_LIBRARY_PATH
10566  ;;
10567
10568freebsd1*)
10569  dynamic_linker=no
10570  ;;
10571
10572kfreebsd*-gnu)
10573  version_type=linux
10574  need_lib_prefix=no
10575  need_version=no
10576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10577  soname_spec='${libname}${release}${shared_ext}$major'
10578  shlibpath_var=LD_LIBRARY_PATH
10579  shlibpath_overrides_runpath=no
10580  hardcode_into_libs=yes
10581  dynamic_linker='GNU ld.so'
10582  ;;
10583
10584freebsd* | dragonfly*)
10585  # DragonFly does not have aout.  When/if they implement a new
10586  # versioning mechanism, adjust this.
10587  if test -x /usr/bin/objformat; then
10588    objformat=`/usr/bin/objformat`
10589  else
10590    case $host_os in
10591    freebsd[123]*) objformat=aout ;;
10592    *) objformat=elf ;;
10593    esac
10594  fi
10595  version_type=freebsd-$objformat
10596  case $version_type in
10597    freebsd-elf*)
10598      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10599      need_version=no
10600      need_lib_prefix=no
10601      ;;
10602    freebsd-*)
10603      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10604      need_version=yes
10605      ;;
10606  esac
10607  shlibpath_var=LD_LIBRARY_PATH
10608  case $host_os in
10609  freebsd2*)
10610    shlibpath_overrides_runpath=yes
10611    ;;
10612  freebsd3.[01]* | freebsdelf3.[01]*)
10613    shlibpath_overrides_runpath=yes
10614    hardcode_into_libs=yes
10615    ;;
10616  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10617  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10618    shlibpath_overrides_runpath=no
10619    hardcode_into_libs=yes
10620    ;;
10621  freebsd*) # from 4.6 on
10622    shlibpath_overrides_runpath=yes
10623    hardcode_into_libs=yes
10624    ;;
10625  esac
10626  ;;
10627
10628gnu*)
10629  version_type=linux
10630  need_lib_prefix=no
10631  need_version=no
10632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10633  soname_spec='${libname}${release}${shared_ext}$major'
10634  shlibpath_var=LD_LIBRARY_PATH
10635  hardcode_into_libs=yes
10636  ;;
10637
10638hpux9* | hpux10* | hpux11*)
10639  # Give a soname corresponding to the major version so that dld.sl refuses to
10640  # link against other versions.
10641  version_type=sunos
10642  need_lib_prefix=no
10643  need_version=no
10644  case $host_cpu in
10645  ia64*)
10646    shrext_cmds='.so'
10647    hardcode_into_libs=yes
10648    dynamic_linker="$host_os dld.so"
10649    shlibpath_var=LD_LIBRARY_PATH
10650    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10651    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652    soname_spec='${libname}${release}${shared_ext}$major'
10653    if test "X$HPUX_IA64_MODE" = X32; then
10654      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10655    else
10656      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10657    fi
10658    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10659    ;;
10660   hppa*64*)
10661     shrext_cmds='.sl'
10662     hardcode_into_libs=yes
10663     dynamic_linker="$host_os dld.sl"
10664     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10665     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10666     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10667     soname_spec='${libname}${release}${shared_ext}$major'
10668     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10669     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10670     ;;
10671   *)
10672    shrext_cmds='.sl'
10673    dynamic_linker="$host_os dld.sl"
10674    shlibpath_var=SHLIB_PATH
10675    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10676    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677    soname_spec='${libname}${release}${shared_ext}$major'
10678    ;;
10679  esac
10680  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10681  postinstall_cmds='chmod 555 $lib'
10682  ;;
10683
10684interix3*)
10685  version_type=linux
10686  need_lib_prefix=no
10687  need_version=no
10688  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10689  soname_spec='${libname}${release}${shared_ext}$major'
10690  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10691  shlibpath_var=LD_LIBRARY_PATH
10692  shlibpath_overrides_runpath=no
10693  hardcode_into_libs=yes
10694  ;;
10695
10696irix5* | irix6* | nonstopux*)
10697  case $host_os in
10698    nonstopux*) version_type=nonstopux ;;
10699    *)
10700	if test "$lt_cv_prog_gnu_ld" = yes; then
10701		version_type=linux
10702	else
10703		version_type=irix
10704	fi ;;
10705  esac
10706  need_lib_prefix=no
10707  need_version=no
10708  soname_spec='${libname}${release}${shared_ext}$major'
10709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10710  case $host_os in
10711  irix5* | nonstopux*)
10712    libsuff= shlibsuff=
10713    ;;
10714  *)
10715    case $LD in # libtool.m4 will add one of these switches to LD
10716    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10717      libsuff= shlibsuff= libmagic=32-bit;;
10718    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10719      libsuff=32 shlibsuff=N32 libmagic=N32;;
10720    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10721      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10722    *) libsuff= shlibsuff= libmagic=never-match;;
10723    esac
10724    ;;
10725  esac
10726  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10727  shlibpath_overrides_runpath=no
10728  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10729  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10730  hardcode_into_libs=yes
10731  ;;
10732
10733# No shared lib support for Linux oldld, aout, or coff.
10734linux*oldld* | linux*aout* | linux*coff*)
10735  dynamic_linker=no
10736  ;;
10737
10738# This must be Linux ELF.
10739linux*)
10740  version_type=linux
10741  need_lib_prefix=no
10742  need_version=no
10743  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744  soname_spec='${libname}${release}${shared_ext}$major'
10745  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10746  shlibpath_var=LD_LIBRARY_PATH
10747  shlibpath_overrides_runpath=no
10748  # This implies no fast_install, which is unacceptable.
10749  # Some rework will be needed to allow for fast_install
10750  # before this can be enabled.
10751  hardcode_into_libs=yes
10752
10753  # Append ld.so.conf contents to the search path
10754  if test -f /etc/ld.so.conf; then
10755    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10756    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10757  fi
10758
10759  # We used to test for /lib/ld.so.1 and disable shared libraries on
10760  # powerpc, because MkLinux only supported shared libraries with the
10761  # GNU dynamic linker.  Since this was broken with cross compilers,
10762  # most powerpc-linux boxes support dynamic linking these days and
10763  # people can always --disable-shared, the test was removed, and we
10764  # assume the GNU/Linux dynamic linker is in use.
10765  dynamic_linker='GNU/Linux ld.so'
10766  ;;
10767
10768knetbsd*-gnu)
10769  version_type=linux
10770  need_lib_prefix=no
10771  need_version=no
10772  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10773  soname_spec='${libname}${release}${shared_ext}$major'
10774  shlibpath_var=LD_LIBRARY_PATH
10775  shlibpath_overrides_runpath=no
10776  hardcode_into_libs=yes
10777  dynamic_linker='GNU ld.so'
10778  ;;
10779
10780netbsd*)
10781  version_type=sunos
10782  need_lib_prefix=no
10783  need_version=no
10784  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10785    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10786    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10787    dynamic_linker='NetBSD (a.out) ld.so'
10788  else
10789    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10790    soname_spec='${libname}${release}${shared_ext}$major'
10791    dynamic_linker='NetBSD ld.elf_so'
10792  fi
10793  shlibpath_var=LD_LIBRARY_PATH
10794  shlibpath_overrides_runpath=yes
10795  hardcode_into_libs=yes
10796  ;;
10797
10798newsos6)
10799  version_type=linux
10800  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10801  shlibpath_var=LD_LIBRARY_PATH
10802  shlibpath_overrides_runpath=yes
10803  ;;
10804
10805nto-qnx*)
10806  version_type=linux
10807  need_lib_prefix=no
10808  need_version=no
10809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810  soname_spec='${libname}${release}${shared_ext}$major'
10811  shlibpath_var=LD_LIBRARY_PATH
10812  shlibpath_overrides_runpath=yes
10813  ;;
10814
10815openbsd*)
10816  version_type=sunos
10817  sys_lib_dlsearch_path_spec="/usr/lib"
10818  need_lib_prefix=no
10819  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10820  case $host_os in
10821    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10822    *)                         need_version=no  ;;
10823  esac
10824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10825  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10826  shlibpath_var=LD_LIBRARY_PATH
10827  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10828    case $host_os in
10829      openbsd2.[89] | openbsd2.[89].*)
10830	shlibpath_overrides_runpath=no
10831	;;
10832      *)
10833	shlibpath_overrides_runpath=yes
10834	;;
10835      esac
10836  else
10837    shlibpath_overrides_runpath=yes
10838  fi
10839  ;;
10840
10841os2*)
10842  libname_spec='$name'
10843  shrext_cmds=".dll"
10844  need_lib_prefix=no
10845  library_names_spec='$libname${shared_ext} $libname.a'
10846  dynamic_linker='OS/2 ld.exe'
10847  shlibpath_var=LIBPATH
10848  ;;
10849
10850osf3* | osf4* | osf5*)
10851  version_type=osf
10852  need_lib_prefix=no
10853  need_version=no
10854  soname_spec='${libname}${release}${shared_ext}$major'
10855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10856  shlibpath_var=LD_LIBRARY_PATH
10857  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10858  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10859  ;;
10860
10861solaris*)
10862  version_type=linux
10863  need_lib_prefix=no
10864  need_version=no
10865  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866  soname_spec='${libname}${release}${shared_ext}$major'
10867  shlibpath_var=LD_LIBRARY_PATH
10868  shlibpath_overrides_runpath=yes
10869  hardcode_into_libs=yes
10870  # ldd complains unless libraries are executable
10871  postinstall_cmds='chmod +x $lib'
10872  ;;
10873
10874sunos4*)
10875  version_type=sunos
10876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10877  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10878  shlibpath_var=LD_LIBRARY_PATH
10879  shlibpath_overrides_runpath=yes
10880  if test "$with_gnu_ld" = yes; then
10881    need_lib_prefix=no
10882  fi
10883  need_version=yes
10884  ;;
10885
10886sysv4 | sysv4.3*)
10887  version_type=linux
10888  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10889  soname_spec='${libname}${release}${shared_ext}$major'
10890  shlibpath_var=LD_LIBRARY_PATH
10891  case $host_vendor in
10892    sni)
10893      shlibpath_overrides_runpath=no
10894      need_lib_prefix=no
10895      export_dynamic_flag_spec='${wl}-Blargedynsym'
10896      runpath_var=LD_RUN_PATH
10897      ;;
10898    siemens)
10899      need_lib_prefix=no
10900      ;;
10901    motorola)
10902      need_lib_prefix=no
10903      need_version=no
10904      shlibpath_overrides_runpath=no
10905      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10906      ;;
10907  esac
10908  ;;
10909
10910sysv4*MP*)
10911  if test -d /usr/nec ;then
10912    version_type=linux
10913    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10914    soname_spec='$libname${shared_ext}.$major'
10915    shlibpath_var=LD_LIBRARY_PATH
10916  fi
10917  ;;
10918
10919sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10920  version_type=freebsd-elf
10921  need_lib_prefix=no
10922  need_version=no
10923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10924  soname_spec='${libname}${release}${shared_ext}$major'
10925  shlibpath_var=LD_LIBRARY_PATH
10926  hardcode_into_libs=yes
10927  if test "$with_gnu_ld" = yes; then
10928    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10929    shlibpath_overrides_runpath=no
10930  else
10931    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10932    shlibpath_overrides_runpath=yes
10933    case $host_os in
10934      sco3.2v5*)
10935        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10936	;;
10937    esac
10938  fi
10939  sys_lib_dlsearch_path_spec='/usr/lib'
10940  ;;
10941
10942uts4*)
10943  version_type=linux
10944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945  soname_spec='${libname}${release}${shared_ext}$major'
10946  shlibpath_var=LD_LIBRARY_PATH
10947  ;;
10948
10949*)
10950  dynamic_linker=no
10951  ;;
10952esac
10953{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10954echo "${ECHO_T}$dynamic_linker" >&6; }
10955test "$dynamic_linker" = no && can_build_shared=no
10956
10957variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10958if test "$GCC" = yes; then
10959  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10960fi
10961
10962{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10963echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10964hardcode_action=
10965if test -n "$hardcode_libdir_flag_spec" || \
10966   test -n "$runpath_var" || \
10967   test "X$hardcode_automatic" = "Xyes" ; then
10968
10969  # We can hardcode non-existant directories.
10970  if test "$hardcode_direct" != no &&
10971     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10972     # have to relink, otherwise we might link with an installed library
10973     # when we should be linking with a yet-to-be-installed one
10974     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10975     test "$hardcode_minus_L" != no; then
10976    # Linking always hardcodes the temporary library directory.
10977    hardcode_action=relink
10978  else
10979    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10980    hardcode_action=immediate
10981  fi
10982else
10983  # We cannot hardcode anything, or else we can only hardcode existing
10984  # directories.
10985  hardcode_action=unsupported
10986fi
10987{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10988echo "${ECHO_T}$hardcode_action" >&6; }
10989
10990if test "$hardcode_action" = relink; then
10991  # Fast installation is not supported
10992  enable_fast_install=no
10993elif test "$shlibpath_overrides_runpath" = yes ||
10994     test "$enable_shared" = no; then
10995  # Fast installation is not necessary
10996  enable_fast_install=needless
10997fi
10998
10999striplib=
11000old_striplib=
11001{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11002echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11003if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11004  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11005  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11006  { echo "$as_me:$LINENO: result: yes" >&5
11007echo "${ECHO_T}yes" >&6; }
11008else
11009# FIXME - insert some real tests, host_os isn't really good enough
11010  case $host_os in
11011   darwin*)
11012       if test -n "$STRIP" ; then
11013         striplib="$STRIP -x"
11014         { echo "$as_me:$LINENO: result: yes" >&5
11015echo "${ECHO_T}yes" >&6; }
11016       else
11017  { echo "$as_me:$LINENO: result: no" >&5
11018echo "${ECHO_T}no" >&6; }
11019fi
11020       ;;
11021   *)
11022  { echo "$as_me:$LINENO: result: no" >&5
11023echo "${ECHO_T}no" >&6; }
11024    ;;
11025  esac
11026fi
11027
11028if test "x$enable_dlopen" != xyes; then
11029  enable_dlopen=unknown
11030  enable_dlopen_self=unknown
11031  enable_dlopen_self_static=unknown
11032else
11033  lt_cv_dlopen=no
11034  lt_cv_dlopen_libs=
11035
11036  case $host_os in
11037  beos*)
11038    lt_cv_dlopen="load_add_on"
11039    lt_cv_dlopen_libs=
11040    lt_cv_dlopen_self=yes
11041    ;;
11042
11043  mingw* | pw32*)
11044    lt_cv_dlopen="LoadLibrary"
11045    lt_cv_dlopen_libs=
11046   ;;
11047
11048  cygwin*)
11049    lt_cv_dlopen="dlopen"
11050    lt_cv_dlopen_libs=
11051   ;;
11052
11053  darwin*)
11054  # if libdl is installed we need to link against it
11055    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11056echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11057if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11058  echo $ECHO_N "(cached) $ECHO_C" >&6
11059else
11060  ac_check_lib_save_LIBS=$LIBS
11061LIBS="-ldl  $LIBS"
11062cat >conftest.$ac_ext <<_ACEOF
11063/* confdefs.h.  */
11064_ACEOF
11065cat confdefs.h >>conftest.$ac_ext
11066cat >>conftest.$ac_ext <<_ACEOF
11067/* end confdefs.h.  */
11068
11069/* Override any GCC internal prototype to avoid an error.
11070   Use char because int might match the return type of a GCC
11071   builtin and then its argument prototype would still apply.  */
11072#ifdef __cplusplus
11073extern "C"
11074#endif
11075char dlopen ();
11076int
11077main ()
11078{
11079return dlopen ();
11080  ;
11081  return 0;
11082}
11083_ACEOF
11084rm -f conftest.$ac_objext conftest$ac_exeext
11085if { (ac_try="$ac_link"
11086case "(($ac_try" in
11087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088  *) ac_try_echo=$ac_try;;
11089esac
11090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091  (eval "$ac_link") 2>conftest.er1
11092  ac_status=$?
11093  grep -v '^ *+' conftest.er1 >conftest.err
11094  rm -f conftest.er1
11095  cat conftest.err >&5
11096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097  (exit $ac_status); } && {
11098	 test -z "$ac_c_werror_flag" ||
11099	 test ! -s conftest.err
11100       } && test -s conftest$ac_exeext &&
11101       $as_test_x conftest$ac_exeext; then
11102  ac_cv_lib_dl_dlopen=yes
11103else
11104  echo "$as_me: failed program was:" >&5
11105sed 's/^/| /' conftest.$ac_ext >&5
11106
11107	ac_cv_lib_dl_dlopen=no
11108fi
11109
11110rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11111      conftest$ac_exeext conftest.$ac_ext
11112LIBS=$ac_check_lib_save_LIBS
11113fi
11114{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11115echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11116if test $ac_cv_lib_dl_dlopen = yes; then
11117  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11118else
11119
11120    lt_cv_dlopen="dyld"
11121    lt_cv_dlopen_libs=
11122    lt_cv_dlopen_self=yes
11123
11124fi
11125
11126   ;;
11127
11128  *)
11129    { echo "$as_me:$LINENO: checking for shl_load" >&5
11130echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11131if test "${ac_cv_func_shl_load+set}" = set; then
11132  echo $ECHO_N "(cached) $ECHO_C" >&6
11133else
11134  cat >conftest.$ac_ext <<_ACEOF
11135/* confdefs.h.  */
11136_ACEOF
11137cat confdefs.h >>conftest.$ac_ext
11138cat >>conftest.$ac_ext <<_ACEOF
11139/* end confdefs.h.  */
11140/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11141   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11142#define shl_load innocuous_shl_load
11143
11144/* System header to define __stub macros and hopefully few prototypes,
11145    which can conflict with char shl_load (); below.
11146    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11147    <limits.h> exists even on freestanding compilers.  */
11148
11149#ifdef __STDC__
11150# include <limits.h>
11151#else
11152# include <assert.h>
11153#endif
11154
11155#undef shl_load
11156
11157/* Override any GCC internal prototype to avoid an error.
11158   Use char because int might match the return type of a GCC
11159   builtin and then its argument prototype would still apply.  */
11160#ifdef __cplusplus
11161extern "C"
11162#endif
11163char shl_load ();
11164/* The GNU C library defines this for functions which it implements
11165    to always fail with ENOSYS.  Some functions are actually named
11166    something starting with __ and the normal name is an alias.  */
11167#if defined __stub_shl_load || defined __stub___shl_load
11168choke me
11169#endif
11170
11171int
11172main ()
11173{
11174return shl_load ();
11175  ;
11176  return 0;
11177}
11178_ACEOF
11179rm -f conftest.$ac_objext conftest$ac_exeext
11180if { (ac_try="$ac_link"
11181case "(($ac_try" in
11182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183  *) ac_try_echo=$ac_try;;
11184esac
11185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186  (eval "$ac_link") 2>conftest.er1
11187  ac_status=$?
11188  grep -v '^ *+' conftest.er1 >conftest.err
11189  rm -f conftest.er1
11190  cat conftest.err >&5
11191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192  (exit $ac_status); } && {
11193	 test -z "$ac_c_werror_flag" ||
11194	 test ! -s conftest.err
11195       } && test -s conftest$ac_exeext &&
11196       $as_test_x conftest$ac_exeext; then
11197  ac_cv_func_shl_load=yes
11198else
11199  echo "$as_me: failed program was:" >&5
11200sed 's/^/| /' conftest.$ac_ext >&5
11201
11202	ac_cv_func_shl_load=no
11203fi
11204
11205rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11206      conftest$ac_exeext conftest.$ac_ext
11207fi
11208{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11209echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11210if test $ac_cv_func_shl_load = yes; then
11211  lt_cv_dlopen="shl_load"
11212else
11213  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11214echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11215if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11216  echo $ECHO_N "(cached) $ECHO_C" >&6
11217else
11218  ac_check_lib_save_LIBS=$LIBS
11219LIBS="-ldld  $LIBS"
11220cat >conftest.$ac_ext <<_ACEOF
11221/* confdefs.h.  */
11222_ACEOF
11223cat confdefs.h >>conftest.$ac_ext
11224cat >>conftest.$ac_ext <<_ACEOF
11225/* end confdefs.h.  */
11226
11227/* Override any GCC internal prototype to avoid an error.
11228   Use char because int might match the return type of a GCC
11229   builtin and then its argument prototype would still apply.  */
11230#ifdef __cplusplus
11231extern "C"
11232#endif
11233char shl_load ();
11234int
11235main ()
11236{
11237return shl_load ();
11238  ;
11239  return 0;
11240}
11241_ACEOF
11242rm -f conftest.$ac_objext conftest$ac_exeext
11243if { (ac_try="$ac_link"
11244case "(($ac_try" in
11245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246  *) ac_try_echo=$ac_try;;
11247esac
11248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249  (eval "$ac_link") 2>conftest.er1
11250  ac_status=$?
11251  grep -v '^ *+' conftest.er1 >conftest.err
11252  rm -f conftest.er1
11253  cat conftest.err >&5
11254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255  (exit $ac_status); } && {
11256	 test -z "$ac_c_werror_flag" ||
11257	 test ! -s conftest.err
11258       } && test -s conftest$ac_exeext &&
11259       $as_test_x conftest$ac_exeext; then
11260  ac_cv_lib_dld_shl_load=yes
11261else
11262  echo "$as_me: failed program was:" >&5
11263sed 's/^/| /' conftest.$ac_ext >&5
11264
11265	ac_cv_lib_dld_shl_load=no
11266fi
11267
11268rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11269      conftest$ac_exeext conftest.$ac_ext
11270LIBS=$ac_check_lib_save_LIBS
11271fi
11272{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11273echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11274if test $ac_cv_lib_dld_shl_load = yes; then
11275  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11276else
11277  { echo "$as_me:$LINENO: checking for dlopen" >&5
11278echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11279if test "${ac_cv_func_dlopen+set}" = set; then
11280  echo $ECHO_N "(cached) $ECHO_C" >&6
11281else
11282  cat >conftest.$ac_ext <<_ACEOF
11283/* confdefs.h.  */
11284_ACEOF
11285cat confdefs.h >>conftest.$ac_ext
11286cat >>conftest.$ac_ext <<_ACEOF
11287/* end confdefs.h.  */
11288/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11289   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11290#define dlopen innocuous_dlopen
11291
11292/* System header to define __stub macros and hopefully few prototypes,
11293    which can conflict with char dlopen (); below.
11294    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11295    <limits.h> exists even on freestanding compilers.  */
11296
11297#ifdef __STDC__
11298# include <limits.h>
11299#else
11300# include <assert.h>
11301#endif
11302
11303#undef dlopen
11304
11305/* Override any GCC internal prototype to avoid an error.
11306   Use char because int might match the return type of a GCC
11307   builtin and then its argument prototype would still apply.  */
11308#ifdef __cplusplus
11309extern "C"
11310#endif
11311char dlopen ();
11312/* The GNU C library defines this for functions which it implements
11313    to always fail with ENOSYS.  Some functions are actually named
11314    something starting with __ and the normal name is an alias.  */
11315#if defined __stub_dlopen || defined __stub___dlopen
11316choke me
11317#endif
11318
11319int
11320main ()
11321{
11322return dlopen ();
11323  ;
11324  return 0;
11325}
11326_ACEOF
11327rm -f conftest.$ac_objext conftest$ac_exeext
11328if { (ac_try="$ac_link"
11329case "(($ac_try" in
11330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331  *) ac_try_echo=$ac_try;;
11332esac
11333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334  (eval "$ac_link") 2>conftest.er1
11335  ac_status=$?
11336  grep -v '^ *+' conftest.er1 >conftest.err
11337  rm -f conftest.er1
11338  cat conftest.err >&5
11339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340  (exit $ac_status); } && {
11341	 test -z "$ac_c_werror_flag" ||
11342	 test ! -s conftest.err
11343       } && test -s conftest$ac_exeext &&
11344       $as_test_x conftest$ac_exeext; then
11345  ac_cv_func_dlopen=yes
11346else
11347  echo "$as_me: failed program was:" >&5
11348sed 's/^/| /' conftest.$ac_ext >&5
11349
11350	ac_cv_func_dlopen=no
11351fi
11352
11353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11354      conftest$ac_exeext conftest.$ac_ext
11355fi
11356{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11357echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11358if test $ac_cv_func_dlopen = yes; then
11359  lt_cv_dlopen="dlopen"
11360else
11361  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11362echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11363if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11364  echo $ECHO_N "(cached) $ECHO_C" >&6
11365else
11366  ac_check_lib_save_LIBS=$LIBS
11367LIBS="-ldl  $LIBS"
11368cat >conftest.$ac_ext <<_ACEOF
11369/* confdefs.h.  */
11370_ACEOF
11371cat confdefs.h >>conftest.$ac_ext
11372cat >>conftest.$ac_ext <<_ACEOF
11373/* end confdefs.h.  */
11374
11375/* Override any GCC internal prototype to avoid an error.
11376   Use char because int might match the return type of a GCC
11377   builtin and then its argument prototype would still apply.  */
11378#ifdef __cplusplus
11379extern "C"
11380#endif
11381char dlopen ();
11382int
11383main ()
11384{
11385return dlopen ();
11386  ;
11387  return 0;
11388}
11389_ACEOF
11390rm -f conftest.$ac_objext conftest$ac_exeext
11391if { (ac_try="$ac_link"
11392case "(($ac_try" in
11393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394  *) ac_try_echo=$ac_try;;
11395esac
11396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11397  (eval "$ac_link") 2>conftest.er1
11398  ac_status=$?
11399  grep -v '^ *+' conftest.er1 >conftest.err
11400  rm -f conftest.er1
11401  cat conftest.err >&5
11402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403  (exit $ac_status); } && {
11404	 test -z "$ac_c_werror_flag" ||
11405	 test ! -s conftest.err
11406       } && test -s conftest$ac_exeext &&
11407       $as_test_x conftest$ac_exeext; then
11408  ac_cv_lib_dl_dlopen=yes
11409else
11410  echo "$as_me: failed program was:" >&5
11411sed 's/^/| /' conftest.$ac_ext >&5
11412
11413	ac_cv_lib_dl_dlopen=no
11414fi
11415
11416rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11417      conftest$ac_exeext conftest.$ac_ext
11418LIBS=$ac_check_lib_save_LIBS
11419fi
11420{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11421echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11422if test $ac_cv_lib_dl_dlopen = yes; then
11423  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11424else
11425  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11426echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11427if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11428  echo $ECHO_N "(cached) $ECHO_C" >&6
11429else
11430  ac_check_lib_save_LIBS=$LIBS
11431LIBS="-lsvld  $LIBS"
11432cat >conftest.$ac_ext <<_ACEOF
11433/* confdefs.h.  */
11434_ACEOF
11435cat confdefs.h >>conftest.$ac_ext
11436cat >>conftest.$ac_ext <<_ACEOF
11437/* end confdefs.h.  */
11438
11439/* Override any GCC internal prototype to avoid an error.
11440   Use char because int might match the return type of a GCC
11441   builtin and then its argument prototype would still apply.  */
11442#ifdef __cplusplus
11443extern "C"
11444#endif
11445char dlopen ();
11446int
11447main ()
11448{
11449return dlopen ();
11450  ;
11451  return 0;
11452}
11453_ACEOF
11454rm -f conftest.$ac_objext conftest$ac_exeext
11455if { (ac_try="$ac_link"
11456case "(($ac_try" in
11457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458  *) ac_try_echo=$ac_try;;
11459esac
11460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461  (eval "$ac_link") 2>conftest.er1
11462  ac_status=$?
11463  grep -v '^ *+' conftest.er1 >conftest.err
11464  rm -f conftest.er1
11465  cat conftest.err >&5
11466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467  (exit $ac_status); } && {
11468	 test -z "$ac_c_werror_flag" ||
11469	 test ! -s conftest.err
11470       } && test -s conftest$ac_exeext &&
11471       $as_test_x conftest$ac_exeext; then
11472  ac_cv_lib_svld_dlopen=yes
11473else
11474  echo "$as_me: failed program was:" >&5
11475sed 's/^/| /' conftest.$ac_ext >&5
11476
11477	ac_cv_lib_svld_dlopen=no
11478fi
11479
11480rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11481      conftest$ac_exeext conftest.$ac_ext
11482LIBS=$ac_check_lib_save_LIBS
11483fi
11484{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11485echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11486if test $ac_cv_lib_svld_dlopen = yes; then
11487  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11488else
11489  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11490echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11491if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11492  echo $ECHO_N "(cached) $ECHO_C" >&6
11493else
11494  ac_check_lib_save_LIBS=$LIBS
11495LIBS="-ldld  $LIBS"
11496cat >conftest.$ac_ext <<_ACEOF
11497/* confdefs.h.  */
11498_ACEOF
11499cat confdefs.h >>conftest.$ac_ext
11500cat >>conftest.$ac_ext <<_ACEOF
11501/* end confdefs.h.  */
11502
11503/* Override any GCC internal prototype to avoid an error.
11504   Use char because int might match the return type of a GCC
11505   builtin and then its argument prototype would still apply.  */
11506#ifdef __cplusplus
11507extern "C"
11508#endif
11509char dld_link ();
11510int
11511main ()
11512{
11513return dld_link ();
11514  ;
11515  return 0;
11516}
11517_ACEOF
11518rm -f conftest.$ac_objext conftest$ac_exeext
11519if { (ac_try="$ac_link"
11520case "(($ac_try" in
11521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522  *) ac_try_echo=$ac_try;;
11523esac
11524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525  (eval "$ac_link") 2>conftest.er1
11526  ac_status=$?
11527  grep -v '^ *+' conftest.er1 >conftest.err
11528  rm -f conftest.er1
11529  cat conftest.err >&5
11530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531  (exit $ac_status); } && {
11532	 test -z "$ac_c_werror_flag" ||
11533	 test ! -s conftest.err
11534       } && test -s conftest$ac_exeext &&
11535       $as_test_x conftest$ac_exeext; then
11536  ac_cv_lib_dld_dld_link=yes
11537else
11538  echo "$as_me: failed program was:" >&5
11539sed 's/^/| /' conftest.$ac_ext >&5
11540
11541	ac_cv_lib_dld_dld_link=no
11542fi
11543
11544rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11545      conftest$ac_exeext conftest.$ac_ext
11546LIBS=$ac_check_lib_save_LIBS
11547fi
11548{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11549echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11550if test $ac_cv_lib_dld_dld_link = yes; then
11551  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11552fi
11553
11554
11555fi
11556
11557
11558fi
11559
11560
11561fi
11562
11563
11564fi
11565
11566
11567fi
11568
11569    ;;
11570  esac
11571
11572  if test "x$lt_cv_dlopen" != xno; then
11573    enable_dlopen=yes
11574  else
11575    enable_dlopen=no
11576  fi
11577
11578  case $lt_cv_dlopen in
11579  dlopen)
11580    save_CPPFLAGS="$CPPFLAGS"
11581    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11582
11583    save_LDFLAGS="$LDFLAGS"
11584    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11585
11586    save_LIBS="$LIBS"
11587    LIBS="$lt_cv_dlopen_libs $LIBS"
11588
11589    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11590echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11591if test "${lt_cv_dlopen_self+set}" = set; then
11592  echo $ECHO_N "(cached) $ECHO_C" >&6
11593else
11594  	  if test "$cross_compiling" = yes; then :
11595  lt_cv_dlopen_self=cross
11596else
11597  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11598  lt_status=$lt_dlunknown
11599  cat > conftest.$ac_ext <<EOF
11600#line 11600 "configure"
11601#include "confdefs.h"
11602
11603#if HAVE_DLFCN_H
11604#include <dlfcn.h>
11605#endif
11606
11607#include <stdio.h>
11608
11609#ifdef RTLD_GLOBAL
11610#  define LT_DLGLOBAL		RTLD_GLOBAL
11611#else
11612#  ifdef DL_GLOBAL
11613#    define LT_DLGLOBAL		DL_GLOBAL
11614#  else
11615#    define LT_DLGLOBAL		0
11616#  endif
11617#endif
11618
11619/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11620   find out it does not work in some platform. */
11621#ifndef LT_DLLAZY_OR_NOW
11622#  ifdef RTLD_LAZY
11623#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11624#  else
11625#    ifdef DL_LAZY
11626#      define LT_DLLAZY_OR_NOW		DL_LAZY
11627#    else
11628#      ifdef RTLD_NOW
11629#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11630#      else
11631#        ifdef DL_NOW
11632#          define LT_DLLAZY_OR_NOW	DL_NOW
11633#        else
11634#          define LT_DLLAZY_OR_NOW	0
11635#        endif
11636#      endif
11637#    endif
11638#  endif
11639#endif
11640
11641#ifdef __cplusplus
11642extern "C" void exit (int);
11643#endif
11644
11645void fnord() { int i=42;}
11646int main ()
11647{
11648  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11649  int status = $lt_dlunknown;
11650
11651  if (self)
11652    {
11653      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11654      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11655      /* dlclose (self); */
11656    }
11657  else
11658    puts (dlerror ());
11659
11660    exit (status);
11661}
11662EOF
11663  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11664  (eval $ac_link) 2>&5
11665  ac_status=$?
11666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11668    (./conftest; exit; ) >&5 2>/dev/null
11669    lt_status=$?
11670    case x$lt_status in
11671      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11672      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11673      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11674    esac
11675  else :
11676    # compilation failed
11677    lt_cv_dlopen_self=no
11678  fi
11679fi
11680rm -fr conftest*
11681
11682
11683fi
11684{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11685echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11686
11687    if test "x$lt_cv_dlopen_self" = xyes; then
11688      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11689      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11690echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11691if test "${lt_cv_dlopen_self_static+set}" = set; then
11692  echo $ECHO_N "(cached) $ECHO_C" >&6
11693else
11694  	  if test "$cross_compiling" = yes; then :
11695  lt_cv_dlopen_self_static=cross
11696else
11697  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11698  lt_status=$lt_dlunknown
11699  cat > conftest.$ac_ext <<EOF
11700#line 11700 "configure"
11701#include "confdefs.h"
11702
11703#if HAVE_DLFCN_H
11704#include <dlfcn.h>
11705#endif
11706
11707#include <stdio.h>
11708
11709#ifdef RTLD_GLOBAL
11710#  define LT_DLGLOBAL		RTLD_GLOBAL
11711#else
11712#  ifdef DL_GLOBAL
11713#    define LT_DLGLOBAL		DL_GLOBAL
11714#  else
11715#    define LT_DLGLOBAL		0
11716#  endif
11717#endif
11718
11719/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11720   find out it does not work in some platform. */
11721#ifndef LT_DLLAZY_OR_NOW
11722#  ifdef RTLD_LAZY
11723#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11724#  else
11725#    ifdef DL_LAZY
11726#      define LT_DLLAZY_OR_NOW		DL_LAZY
11727#    else
11728#      ifdef RTLD_NOW
11729#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11730#      else
11731#        ifdef DL_NOW
11732#          define LT_DLLAZY_OR_NOW	DL_NOW
11733#        else
11734#          define LT_DLLAZY_OR_NOW	0
11735#        endif
11736#      endif
11737#    endif
11738#  endif
11739#endif
11740
11741#ifdef __cplusplus
11742extern "C" void exit (int);
11743#endif
11744
11745void fnord() { int i=42;}
11746int main ()
11747{
11748  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11749  int status = $lt_dlunknown;
11750
11751  if (self)
11752    {
11753      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11754      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11755      /* dlclose (self); */
11756    }
11757  else
11758    puts (dlerror ());
11759
11760    exit (status);
11761}
11762EOF
11763  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11764  (eval $ac_link) 2>&5
11765  ac_status=$?
11766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11768    (./conftest; exit; ) >&5 2>/dev/null
11769    lt_status=$?
11770    case x$lt_status in
11771      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11772      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11773      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11774    esac
11775  else :
11776    # compilation failed
11777    lt_cv_dlopen_self_static=no
11778  fi
11779fi
11780rm -fr conftest*
11781
11782
11783fi
11784{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11785echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11786    fi
11787
11788    CPPFLAGS="$save_CPPFLAGS"
11789    LDFLAGS="$save_LDFLAGS"
11790    LIBS="$save_LIBS"
11791    ;;
11792  esac
11793
11794  case $lt_cv_dlopen_self in
11795  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11796  *) enable_dlopen_self=unknown ;;
11797  esac
11798
11799  case $lt_cv_dlopen_self_static in
11800  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11801  *) enable_dlopen_self_static=unknown ;;
11802  esac
11803fi
11804
11805
11806# Report which library types will actually be built
11807{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11808echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11809{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11810echo "${ECHO_T}$can_build_shared" >&6; }
11811
11812{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11813echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11814test "$can_build_shared" = "no" && enable_shared=no
11815
11816# On AIX, shared libraries and static libraries use the same namespace, and
11817# are all built from PIC.
11818case $host_os in
11819aix3*)
11820  test "$enable_shared" = yes && enable_static=no
11821  if test -n "$RANLIB"; then
11822    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11823    postinstall_cmds='$RANLIB $lib'
11824  fi
11825  ;;
11826
11827aix4* | aix5*)
11828  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11829    test "$enable_shared" = yes && enable_static=no
11830  fi
11831    ;;
11832esac
11833{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11834echo "${ECHO_T}$enable_shared" >&6; }
11835
11836{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11837echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11838# Make sure either enable_shared or enable_static is yes.
11839test "$enable_shared" = yes || enable_static=yes
11840{ echo "$as_me:$LINENO: result: $enable_static" >&5
11841echo "${ECHO_T}$enable_static" >&6; }
11842
11843# The else clause should only fire when bootstrapping the
11844# libtool distribution, otherwise you forgot to ship ltmain.sh
11845# with your package, and you will get complaints that there are
11846# no rules to generate ltmain.sh.
11847if test -f "$ltmain"; then
11848  # See if we are running on zsh, and set the options which allow our commands through
11849  # without removal of \ escapes.
11850  if test -n "${ZSH_VERSION+set}" ; then
11851    setopt NO_GLOB_SUBST
11852  fi
11853  # Now quote all the things that may contain metacharacters while being
11854  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11855  # variables and quote the copies for generation of the libtool script.
11856  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11857    SED SHELL STRIP \
11858    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11859    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11860    deplibs_check_method reload_flag reload_cmds need_locks \
11861    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11862    lt_cv_sys_global_symbol_to_c_name_address \
11863    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11864    old_postinstall_cmds old_postuninstall_cmds \
11865    compiler \
11866    CC \
11867    LD \
11868    lt_prog_compiler_wl \
11869    lt_prog_compiler_pic \
11870    lt_prog_compiler_static \
11871    lt_prog_compiler_no_builtin_flag \
11872    export_dynamic_flag_spec \
11873    thread_safe_flag_spec \
11874    whole_archive_flag_spec \
11875    enable_shared_with_static_runtimes \
11876    old_archive_cmds \
11877    old_archive_from_new_cmds \
11878    predep_objects \
11879    postdep_objects \
11880    predeps \
11881    postdeps \
11882    compiler_lib_search_path \
11883    archive_cmds \
11884    archive_expsym_cmds \
11885    postinstall_cmds \
11886    postuninstall_cmds \
11887    old_archive_from_expsyms_cmds \
11888    allow_undefined_flag \
11889    no_undefined_flag \
11890    export_symbols_cmds \
11891    hardcode_libdir_flag_spec \
11892    hardcode_libdir_flag_spec_ld \
11893    hardcode_libdir_separator \
11894    hardcode_automatic \
11895    module_cmds \
11896    module_expsym_cmds \
11897    lt_cv_prog_compiler_c_o \
11898    exclude_expsyms \
11899    include_expsyms; do
11900
11901    case $var in
11902    old_archive_cmds | \
11903    old_archive_from_new_cmds | \
11904    archive_cmds | \
11905    archive_expsym_cmds | \
11906    module_cmds | \
11907    module_expsym_cmds | \
11908    old_archive_from_expsyms_cmds | \
11909    export_symbols_cmds | \
11910    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11911    postinstall_cmds | postuninstall_cmds | \
11912    old_postinstall_cmds | old_postuninstall_cmds | \
11913    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11914      # Double-quote double-evaled strings.
11915      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11916      ;;
11917    *)
11918      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11919      ;;
11920    esac
11921  done
11922
11923  case $lt_echo in
11924  *'\$0 --fallback-echo"')
11925    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11926    ;;
11927  esac
11928
11929cfgfile="${ofile}T"
11930  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11931  $rm -f "$cfgfile"
11932  { echo "$as_me:$LINENO: creating $ofile" >&5
11933echo "$as_me: creating $ofile" >&6;}
11934
11935  cat <<__EOF__ >> "$cfgfile"
11936#! $SHELL
11937
11938# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11939# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11940# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11941#
11942# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11943# Free Software Foundation, Inc.
11944#
11945# This file is part of GNU Libtool:
11946# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11947#
11948# This program is free software; you can redistribute it and/or modify
11949# it under the terms of the GNU General Public License as published by
11950# the Free Software Foundation; either version 2 of the License, or
11951# (at your option) any later version.
11952#
11953# This program is distributed in the hope that it will be useful, but
11954# WITHOUT ANY WARRANTY; without even the implied warranty of
11955# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11956# General Public License for more details.
11957#
11958# You should have received a copy of the GNU General Public License
11959# along with this program; if not, write to the Free Software
11960# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11961#
11962# As a special exception to the GNU General Public License, if you
11963# distribute this file as part of a program that contains a
11964# configuration script generated by Autoconf, you may include it under
11965# the same distribution terms that you use for the rest of that program.
11966
11967# A sed program that does not truncate output.
11968SED=$lt_SED
11969
11970# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11971Xsed="$SED -e 1s/^X//"
11972
11973# The HP-UX ksh and POSIX shell print the target directory to stdout
11974# if CDPATH is set.
11975(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11976
11977# The names of the tagged configurations supported by this script.
11978available_tags=
11979
11980# ### BEGIN LIBTOOL CONFIG
11981
11982# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11983
11984# Shell to use when invoking shell scripts.
11985SHELL=$lt_SHELL
11986
11987# Whether or not to build shared libraries.
11988build_libtool_libs=$enable_shared
11989
11990# Whether or not to build static libraries.
11991build_old_libs=$enable_static
11992
11993# Whether or not to add -lc for building shared libraries.
11994build_libtool_need_lc=$archive_cmds_need_lc
11995
11996# Whether or not to disallow shared libs when runtime libs are static
11997allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11998
11999# Whether or not to optimize for fast installation.
12000fast_install=$enable_fast_install
12001
12002# The host system.
12003host_alias=$host_alias
12004host=$host
12005host_os=$host_os
12006
12007# The build system.
12008build_alias=$build_alias
12009build=$build
12010build_os=$build_os
12011
12012# An echo program that does not interpret backslashes.
12013echo=$lt_echo
12014
12015# The archiver.
12016AR=$lt_AR
12017AR_FLAGS=$lt_AR_FLAGS
12018
12019# A C compiler.
12020LTCC=$lt_LTCC
12021
12022# LTCC compiler flags.
12023LTCFLAGS=$lt_LTCFLAGS
12024
12025# A language-specific compiler.
12026CC=$lt_compiler
12027
12028# Is the compiler the GNU C compiler?
12029with_gcc=$GCC
12030
12031# An ERE matcher.
12032EGREP=$lt_EGREP
12033
12034# The linker used to build libraries.
12035LD=$lt_LD
12036
12037# Whether we need hard or soft links.
12038LN_S=$lt_LN_S
12039
12040# A BSD-compatible nm program.
12041NM=$lt_NM
12042
12043# A symbol stripping program
12044STRIP=$lt_STRIP
12045
12046# Used to examine libraries when file_magic_cmd begins "file"
12047MAGIC_CMD=$MAGIC_CMD
12048
12049# Used on cygwin: DLL creation program.
12050DLLTOOL="$DLLTOOL"
12051
12052# Used on cygwin: object dumper.
12053OBJDUMP="$OBJDUMP"
12054
12055# Used on cygwin: assembler.
12056AS="$AS"
12057
12058# The name of the directory that contains temporary libtool files.
12059objdir=$objdir
12060
12061# How to create reloadable object files.
12062reload_flag=$lt_reload_flag
12063reload_cmds=$lt_reload_cmds
12064
12065# How to pass a linker flag through the compiler.
12066wl=$lt_lt_prog_compiler_wl
12067
12068# Object file suffix (normally "o").
12069objext="$ac_objext"
12070
12071# Old archive suffix (normally "a").
12072libext="$libext"
12073
12074# Shared library suffix (normally ".so").
12075shrext_cmds='$shrext_cmds'
12076
12077# Executable file suffix (normally "").
12078exeext="$exeext"
12079
12080# Additional compiler flags for building library objects.
12081pic_flag=$lt_lt_prog_compiler_pic
12082pic_mode=$pic_mode
12083
12084# What is the maximum length of a command?
12085max_cmd_len=$lt_cv_sys_max_cmd_len
12086
12087# Does compiler simultaneously support -c and -o options?
12088compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12089
12090# Must we lock files when doing compilation?
12091need_locks=$lt_need_locks
12092
12093# Do we need the lib prefix for modules?
12094need_lib_prefix=$need_lib_prefix
12095
12096# Do we need a version for libraries?
12097need_version=$need_version
12098
12099# Whether dlopen is supported.
12100dlopen_support=$enable_dlopen
12101
12102# Whether dlopen of programs is supported.
12103dlopen_self=$enable_dlopen_self
12104
12105# Whether dlopen of statically linked programs is supported.
12106dlopen_self_static=$enable_dlopen_self_static
12107
12108# Compiler flag to prevent dynamic linking.
12109link_static_flag=$lt_lt_prog_compiler_static
12110
12111# Compiler flag to turn off builtin functions.
12112no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12113
12114# Compiler flag to allow reflexive dlopens.
12115export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12116
12117# Compiler flag to generate shared objects directly from archives.
12118whole_archive_flag_spec=$lt_whole_archive_flag_spec
12119
12120# Compiler flag to generate thread-safe objects.
12121thread_safe_flag_spec=$lt_thread_safe_flag_spec
12122
12123# Library versioning type.
12124version_type=$version_type
12125
12126# Format of library name prefix.
12127libname_spec=$lt_libname_spec
12128
12129# List of archive names.  First name is the real one, the rest are links.
12130# The last name is the one that the linker finds with -lNAME.
12131library_names_spec=$lt_library_names_spec
12132
12133# The coded name of the library, if different from the real name.
12134soname_spec=$lt_soname_spec
12135
12136# Commands used to build and install an old-style archive.
12137RANLIB=$lt_RANLIB
12138old_archive_cmds=$lt_old_archive_cmds
12139old_postinstall_cmds=$lt_old_postinstall_cmds
12140old_postuninstall_cmds=$lt_old_postuninstall_cmds
12141
12142# Create an old-style archive from a shared archive.
12143old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12144
12145# Create a temporary old-style archive to link instead of a shared archive.
12146old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12147
12148# Commands used to build and install a shared archive.
12149archive_cmds=$lt_archive_cmds
12150archive_expsym_cmds=$lt_archive_expsym_cmds
12151postinstall_cmds=$lt_postinstall_cmds
12152postuninstall_cmds=$lt_postuninstall_cmds
12153
12154# Commands used to build a loadable module (assumed same as above if empty)
12155module_cmds=$lt_module_cmds
12156module_expsym_cmds=$lt_module_expsym_cmds
12157
12158# Commands to strip libraries.
12159old_striplib=$lt_old_striplib
12160striplib=$lt_striplib
12161
12162# Dependencies to place before the objects being linked to create a
12163# shared library.
12164predep_objects=$lt_predep_objects
12165
12166# Dependencies to place after the objects being linked to create a
12167# shared library.
12168postdep_objects=$lt_postdep_objects
12169
12170# Dependencies to place before the objects being linked to create a
12171# shared library.
12172predeps=$lt_predeps
12173
12174# Dependencies to place after the objects being linked to create a
12175# shared library.
12176postdeps=$lt_postdeps
12177
12178# The library search path used internally by the compiler when linking
12179# a shared library.
12180compiler_lib_search_path=$lt_compiler_lib_search_path
12181
12182# Method to check whether dependent libraries are shared objects.
12183deplibs_check_method=$lt_deplibs_check_method
12184
12185# Command to use when deplibs_check_method == file_magic.
12186file_magic_cmd=$lt_file_magic_cmd
12187
12188# Flag that allows shared libraries with undefined symbols to be built.
12189allow_undefined_flag=$lt_allow_undefined_flag
12190
12191# Flag that forces no undefined symbols.
12192no_undefined_flag=$lt_no_undefined_flag
12193
12194# Commands used to finish a libtool library installation in a directory.
12195finish_cmds=$lt_finish_cmds
12196
12197# Same as above, but a single script fragment to be evaled but not shown.
12198finish_eval=$lt_finish_eval
12199
12200# Take the output of nm and produce a listing of raw symbols and C names.
12201global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12202
12203# Transform the output of nm in a proper C declaration
12204global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12205
12206# Transform the output of nm in a C name address pair
12207global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12208
12209# This is the shared library runtime path variable.
12210runpath_var=$runpath_var
12211
12212# This is the shared library path variable.
12213shlibpath_var=$shlibpath_var
12214
12215# Is shlibpath searched before the hard-coded library search path?
12216shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12217
12218# How to hardcode a shared library path into an executable.
12219hardcode_action=$hardcode_action
12220
12221# Whether we should hardcode library paths into libraries.
12222hardcode_into_libs=$hardcode_into_libs
12223
12224# Flag to hardcode \$libdir into a binary during linking.
12225# This must work even if \$libdir does not exist.
12226hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12227
12228# If ld is used when linking, flag to hardcode \$libdir into
12229# a binary during linking. This must work even if \$libdir does
12230# not exist.
12231hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12232
12233# Whether we need a single -rpath flag with a separated argument.
12234hardcode_libdir_separator=$lt_hardcode_libdir_separator
12235
12236# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12237# resulting binary.
12238hardcode_direct=$hardcode_direct
12239
12240# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12241# resulting binary.
12242hardcode_minus_L=$hardcode_minus_L
12243
12244# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12245# the resulting binary.
12246hardcode_shlibpath_var=$hardcode_shlibpath_var
12247
12248# Set to yes if building a shared library automatically hardcodes DIR into the library
12249# and all subsequent libraries and executables linked against it.
12250hardcode_automatic=$hardcode_automatic
12251
12252# Variables whose values should be saved in libtool wrapper scripts and
12253# restored at relink time.
12254variables_saved_for_relink="$variables_saved_for_relink"
12255
12256# Whether libtool must link a program against all its dependency libraries.
12257link_all_deplibs=$link_all_deplibs
12258
12259# Compile-time system search path for libraries
12260sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12261
12262# Run-time system search path for libraries
12263sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12264
12265# Fix the shell variable \$srcfile for the compiler.
12266fix_srcfile_path="$fix_srcfile_path"
12267
12268# Set to yes if exported symbols are required.
12269always_export_symbols=$always_export_symbols
12270
12271# The commands to list exported symbols.
12272export_symbols_cmds=$lt_export_symbols_cmds
12273
12274# The commands to extract the exported symbol list from a shared archive.
12275extract_expsyms_cmds=$lt_extract_expsyms_cmds
12276
12277# Symbols that should not be listed in the preloaded symbols.
12278exclude_expsyms=$lt_exclude_expsyms
12279
12280# Symbols that must always be exported.
12281include_expsyms=$lt_include_expsyms
12282
12283# ### END LIBTOOL CONFIG
12284
12285__EOF__
12286
12287
12288  case $host_os in
12289  aix3*)
12290    cat <<\EOF >> "$cfgfile"
12291
12292# AIX sometimes has problems with the GCC collect2 program.  For some
12293# reason, if we set the COLLECT_NAMES environment variable, the problems
12294# vanish in a puff of smoke.
12295if test "X${COLLECT_NAMES+set}" != Xset; then
12296  COLLECT_NAMES=
12297  export COLLECT_NAMES
12298fi
12299EOF
12300    ;;
12301  esac
12302
12303  # We use sed instead of cat because bash on DJGPP gets confused if
12304  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12305  # text mode, it properly converts lines to CR/LF.  This bash problem
12306  # is reportedly fixed, but why not run on old versions too?
12307  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12308
12309  mv -f "$cfgfile" "$ofile" || \
12310    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12311  chmod +x "$ofile"
12312
12313else
12314  # If there is no Makefile yet, we rely on a make rule to execute
12315  # `config.status --recheck' to rerun these tests and create the
12316  # libtool script then.
12317  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12318  if test -f "$ltmain_in"; then
12319    test -f Makefile && make "$ltmain"
12320  fi
12321fi
12322
12323
12324ac_ext=c
12325ac_cpp='$CPP $CPPFLAGS'
12326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12328ac_compiler_gnu=$ac_cv_c_compiler_gnu
12329
12330CC="$lt_save_CC"
12331
12332
12333# Check whether --with-tags was given.
12334if test "${with_tags+set}" = set; then
12335  withval=$with_tags; tagnames="$withval"
12336fi
12337
12338
12339if test -f "$ltmain" && test -n "$tagnames"; then
12340  if test ! -f "${ofile}"; then
12341    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12342echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12343  fi
12344
12345  if test -z "$LTCC"; then
12346    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12347    if test -z "$LTCC"; then
12348      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12349echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12350    else
12351      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12352echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12353    fi
12354  fi
12355  if test -z "$LTCFLAGS"; then
12356    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12357  fi
12358
12359  # Extract list of available tagged configurations in $ofile.
12360  # Note that this assumes the entire list is on one line.
12361  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12362
12363  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12364  for tagname in $tagnames; do
12365    IFS="$lt_save_ifs"
12366    # Check whether tagname contains only valid characters
12367    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12368    "") ;;
12369    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12370echo "$as_me: error: invalid tag name: $tagname" >&2;}
12371   { (exit 1); exit 1; }; }
12372	;;
12373    esac
12374
12375    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12376    then
12377      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12378echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12379   { (exit 1); exit 1; }; }
12380    fi
12381
12382    # Update the list of available tags.
12383    if test -n "$tagname"; then
12384      echo appending configuration tag \"$tagname\" to $ofile
12385
12386      case $tagname in
12387      CXX)
12388	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12389	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12390	    (test "X$CXX" != "Xg++"))) ; then
12391	  ac_ext=cpp
12392ac_cpp='$CXXCPP $CPPFLAGS'
12393ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12394ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12395ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12396
12397
12398
12399
12400archive_cmds_need_lc_CXX=no
12401allow_undefined_flag_CXX=
12402always_export_symbols_CXX=no
12403archive_expsym_cmds_CXX=
12404export_dynamic_flag_spec_CXX=
12405hardcode_direct_CXX=no
12406hardcode_libdir_flag_spec_CXX=
12407hardcode_libdir_flag_spec_ld_CXX=
12408hardcode_libdir_separator_CXX=
12409hardcode_minus_L_CXX=no
12410hardcode_shlibpath_var_CXX=unsupported
12411hardcode_automatic_CXX=no
12412module_cmds_CXX=
12413module_expsym_cmds_CXX=
12414link_all_deplibs_CXX=unknown
12415old_archive_cmds_CXX=$old_archive_cmds
12416no_undefined_flag_CXX=
12417whole_archive_flag_spec_CXX=
12418enable_shared_with_static_runtimes_CXX=no
12419
12420# Dependencies to place before and after the object being linked:
12421predep_objects_CXX=
12422postdep_objects_CXX=
12423predeps_CXX=
12424postdeps_CXX=
12425compiler_lib_search_path_CXX=
12426
12427# Source file extension for C++ test sources.
12428ac_ext=cpp
12429
12430# Object file extension for compiled C++ test sources.
12431objext=o
12432objext_CXX=$objext
12433
12434# Code to be used in simple compile tests
12435lt_simple_compile_test_code="int some_variable = 0;\n"
12436
12437# Code to be used in simple link tests
12438lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12439
12440# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12441
12442# If no C compiler was specified, use CC.
12443LTCC=${LTCC-"$CC"}
12444
12445# If no C compiler flags were specified, use CFLAGS.
12446LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12447
12448# Allow CC to be a program name with arguments.
12449compiler=$CC
12450
12451
12452# save warnings/boilerplate of simple test code
12453ac_outfile=conftest.$ac_objext
12454printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12455eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12456_lt_compiler_boilerplate=`cat conftest.err`
12457$rm conftest*
12458
12459ac_outfile=conftest.$ac_objext
12460printf "$lt_simple_link_test_code" >conftest.$ac_ext
12461eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12462_lt_linker_boilerplate=`cat conftest.err`
12463$rm conftest*
12464
12465
12466# Allow CC to be a program name with arguments.
12467lt_save_CC=$CC
12468lt_save_LD=$LD
12469lt_save_GCC=$GCC
12470GCC=$GXX
12471lt_save_with_gnu_ld=$with_gnu_ld
12472lt_save_path_LD=$lt_cv_path_LD
12473if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12474  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12475else
12476  $as_unset lt_cv_prog_gnu_ld
12477fi
12478if test -n "${lt_cv_path_LDCXX+set}"; then
12479  lt_cv_path_LD=$lt_cv_path_LDCXX
12480else
12481  $as_unset lt_cv_path_LD
12482fi
12483test -z "${LDCXX+set}" || LD=$LDCXX
12484CC=${CXX-"c++"}
12485compiler=$CC
12486compiler_CXX=$CC
12487for cc_temp in $compiler""; do
12488  case $cc_temp in
12489    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12490    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12491    \-*) ;;
12492    *) break;;
12493  esac
12494done
12495cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12496
12497
12498# We don't want -fno-exception wen compiling C++ code, so set the
12499# no_builtin_flag separately
12500if test "$GXX" = yes; then
12501  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12502else
12503  lt_prog_compiler_no_builtin_flag_CXX=
12504fi
12505
12506if test "$GXX" = yes; then
12507  # Set up default GNU C++ configuration
12508
12509
12510# Check whether --with-gnu-ld was given.
12511if test "${with_gnu_ld+set}" = set; then
12512  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12513else
12514  with_gnu_ld=no
12515fi
12516
12517ac_prog=ld
12518if test "$GCC" = yes; then
12519  # Check if gcc -print-prog-name=ld gives a path.
12520  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12521echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12522  case $host in
12523  *-*-mingw*)
12524    # gcc leaves a trailing carriage return which upsets mingw
12525    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12526  *)
12527    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12528  esac
12529  case $ac_prog in
12530    # Accept absolute paths.
12531    [\\/]* | ?:[\\/]*)
12532      re_direlt='/[^/][^/]*/\.\./'
12533      # Canonicalize the pathname of ld
12534      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12535      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12536	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12537      done
12538      test -z "$LD" && LD="$ac_prog"
12539      ;;
12540  "")
12541    # If it fails, then pretend we aren't using GCC.
12542    ac_prog=ld
12543    ;;
12544  *)
12545    # If it is relative, then search for the first ld in PATH.
12546    with_gnu_ld=unknown
12547    ;;
12548  esac
12549elif test "$with_gnu_ld" = yes; then
12550  { echo "$as_me:$LINENO: checking for GNU ld" >&5
12551echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12552else
12553  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12554echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12555fi
12556if test "${lt_cv_path_LD+set}" = set; then
12557  echo $ECHO_N "(cached) $ECHO_C" >&6
12558else
12559  if test -z "$LD"; then
12560  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12561  for ac_dir in $PATH; do
12562    IFS="$lt_save_ifs"
12563    test -z "$ac_dir" && ac_dir=.
12564    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12565      lt_cv_path_LD="$ac_dir/$ac_prog"
12566      # Check to see if the program is GNU ld.  I'd rather use --version,
12567      # but apparently some variants of GNU ld only accept -v.
12568      # Break only if it was the GNU/non-GNU ld that we prefer.
12569      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12570      *GNU* | *'with BFD'*)
12571	test "$with_gnu_ld" != no && break
12572	;;
12573      *)
12574	test "$with_gnu_ld" != yes && break
12575	;;
12576      esac
12577    fi
12578  done
12579  IFS="$lt_save_ifs"
12580else
12581  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12582fi
12583fi
12584
12585LD="$lt_cv_path_LD"
12586if test -n "$LD"; then
12587  { echo "$as_me:$LINENO: result: $LD" >&5
12588echo "${ECHO_T}$LD" >&6; }
12589else
12590  { echo "$as_me:$LINENO: result: no" >&5
12591echo "${ECHO_T}no" >&6; }
12592fi
12593test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12594echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12595   { (exit 1); exit 1; }; }
12596{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12597echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12598if test "${lt_cv_prog_gnu_ld+set}" = set; then
12599  echo $ECHO_N "(cached) $ECHO_C" >&6
12600else
12601  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12602case `$LD -v 2>&1 </dev/null` in
12603*GNU* | *'with BFD'*)
12604  lt_cv_prog_gnu_ld=yes
12605  ;;
12606*)
12607  lt_cv_prog_gnu_ld=no
12608  ;;
12609esac
12610fi
12611{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12612echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12613with_gnu_ld=$lt_cv_prog_gnu_ld
12614
12615
12616
12617  # Check if GNU C++ uses GNU ld as the underlying linker, since the
12618  # archiving commands below assume that GNU ld is being used.
12619  if test "$with_gnu_ld" = yes; then
12620    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12621    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12622
12623    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12624    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12625
12626    # If archive_cmds runs LD, not CC, wlarc should be empty
12627    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12628    #     investigate it a little bit more. (MM)
12629    wlarc='${wl}'
12630
12631    # ancient GNU ld didn't support --whole-archive et. al.
12632    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12633	grep 'no-whole-archive' > /dev/null; then
12634      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12635    else
12636      whole_archive_flag_spec_CXX=
12637    fi
12638  else
12639    with_gnu_ld=no
12640    wlarc=
12641
12642    # A generic and very simple default shared library creation
12643    # command for GNU C++ for the case where it uses the native
12644    # linker, instead of GNU ld.  If possible, this setting should
12645    # overridden to take advantage of the native linker features on
12646    # the platform it is being used on.
12647    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12648  fi
12649
12650  # Commands to make compiler produce verbose output that lists
12651  # what "hidden" libraries, object files and flags are used when
12652  # linking a shared library.
12653  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12654
12655else
12656  GXX=no
12657  with_gnu_ld=no
12658  wlarc=
12659fi
12660
12661# PORTME: fill in a description of your system's C++ link characteristics
12662{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12663echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12664ld_shlibs_CXX=yes
12665case $host_os in
12666  aix3*)
12667    # FIXME: insert proper C++ library support
12668    ld_shlibs_CXX=no
12669    ;;
12670  aix4* | aix5*)
12671    if test "$host_cpu" = ia64; then
12672      # On IA64, the linker does run time linking by default, so we don't
12673      # have to do anything special.
12674      aix_use_runtimelinking=no
12675      exp_sym_flag='-Bexport'
12676      no_entry_flag=""
12677    else
12678      aix_use_runtimelinking=no
12679
12680      # Test if we are trying to use run time linking or normal
12681      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12682      # need to do runtime linking.
12683      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12684	for ld_flag in $LDFLAGS; do
12685	  case $ld_flag in
12686	  *-brtl*)
12687	    aix_use_runtimelinking=yes
12688	    break
12689	    ;;
12690	  esac
12691	done
12692	;;
12693      esac
12694
12695      exp_sym_flag='-bexport'
12696      no_entry_flag='-bnoentry'
12697    fi
12698
12699    # When large executables or shared objects are built, AIX ld can
12700    # have problems creating the table of contents.  If linking a library
12701    # or program results in "error TOC overflow" add -mminimal-toc to
12702    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12703    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12704
12705    archive_cmds_CXX=''
12706    hardcode_direct_CXX=yes
12707    hardcode_libdir_separator_CXX=':'
12708    link_all_deplibs_CXX=yes
12709
12710    if test "$GXX" = yes; then
12711      case $host_os in aix4.[012]|aix4.[012].*)
12712      # We only want to do this on AIX 4.2 and lower, the check
12713      # below for broken collect2 doesn't work under 4.3+
12714	collect2name=`${CC} -print-prog-name=collect2`
12715	if test -f "$collect2name" && \
12716	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12717	then
12718	  # We have reworked collect2
12719	  hardcode_direct_CXX=yes
12720	else
12721	  # We have old collect2
12722	  hardcode_direct_CXX=unsupported
12723	  # It fails to find uninstalled libraries when the uninstalled
12724	  # path is not listed in the libpath.  Setting hardcode_minus_L
12725	  # to unsupported forces relinking
12726	  hardcode_minus_L_CXX=yes
12727	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12728	  hardcode_libdir_separator_CXX=
12729	fi
12730	;;
12731      esac
12732      shared_flag='-shared'
12733      if test "$aix_use_runtimelinking" = yes; then
12734	shared_flag="$shared_flag "'${wl}-G'
12735      fi
12736    else
12737      # not using gcc
12738      if test "$host_cpu" = ia64; then
12739	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12740	# chokes on -Wl,-G. The following line is correct:
12741	shared_flag='-G'
12742      else
12743	if test "$aix_use_runtimelinking" = yes; then
12744	  shared_flag='${wl}-G'
12745	else
12746	  shared_flag='${wl}-bM:SRE'
12747	fi
12748      fi
12749    fi
12750
12751    # It seems that -bexpall does not export symbols beginning with
12752    # underscore (_), so it is better to generate a list of symbols to export.
12753    always_export_symbols_CXX=yes
12754    if test "$aix_use_runtimelinking" = yes; then
12755      # Warning - without using the other runtime loading flags (-brtl),
12756      # -berok will link without error, but may produce a broken library.
12757      allow_undefined_flag_CXX='-berok'
12758      # Determine the default libpath from the value encoded in an empty executable.
12759      cat >conftest.$ac_ext <<_ACEOF
12760/* confdefs.h.  */
12761_ACEOF
12762cat confdefs.h >>conftest.$ac_ext
12763cat >>conftest.$ac_ext <<_ACEOF
12764/* end confdefs.h.  */
12765
12766int
12767main ()
12768{
12769
12770  ;
12771  return 0;
12772}
12773_ACEOF
12774rm -f conftest.$ac_objext conftest$ac_exeext
12775if { (ac_try="$ac_link"
12776case "(($ac_try" in
12777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778  *) ac_try_echo=$ac_try;;
12779esac
12780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781  (eval "$ac_link") 2>conftest.er1
12782  ac_status=$?
12783  grep -v '^ *+' conftest.er1 >conftest.err
12784  rm -f conftest.er1
12785  cat conftest.err >&5
12786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787  (exit $ac_status); } && {
12788	 test -z "$ac_cxx_werror_flag" ||
12789	 test ! -s conftest.err
12790       } && test -s conftest$ac_exeext &&
12791       $as_test_x conftest$ac_exeext; then
12792
12793aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12794}'`
12795# Check for a 64-bit object if we didn't find anything.
12796if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12797}'`; fi
12798else
12799  echo "$as_me: failed program was:" >&5
12800sed 's/^/| /' conftest.$ac_ext >&5
12801
12802
12803fi
12804
12805rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12806      conftest$ac_exeext conftest.$ac_ext
12807if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12808
12809      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12810
12811      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12812     else
12813      if test "$host_cpu" = ia64; then
12814	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12815	allow_undefined_flag_CXX="-z nodefs"
12816	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12817      else
12818	# Determine the default libpath from the value encoded in an empty executable.
12819	cat >conftest.$ac_ext <<_ACEOF
12820/* confdefs.h.  */
12821_ACEOF
12822cat confdefs.h >>conftest.$ac_ext
12823cat >>conftest.$ac_ext <<_ACEOF
12824/* end confdefs.h.  */
12825
12826int
12827main ()
12828{
12829
12830  ;
12831  return 0;
12832}
12833_ACEOF
12834rm -f conftest.$ac_objext conftest$ac_exeext
12835if { (ac_try="$ac_link"
12836case "(($ac_try" in
12837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12838  *) ac_try_echo=$ac_try;;
12839esac
12840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12841  (eval "$ac_link") 2>conftest.er1
12842  ac_status=$?
12843  grep -v '^ *+' conftest.er1 >conftest.err
12844  rm -f conftest.er1
12845  cat conftest.err >&5
12846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847  (exit $ac_status); } && {
12848	 test -z "$ac_cxx_werror_flag" ||
12849	 test ! -s conftest.err
12850       } && test -s conftest$ac_exeext &&
12851       $as_test_x conftest$ac_exeext; then
12852
12853aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12854}'`
12855# Check for a 64-bit object if we didn't find anything.
12856if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12857}'`; fi
12858else
12859  echo "$as_me: failed program was:" >&5
12860sed 's/^/| /' conftest.$ac_ext >&5
12861
12862
12863fi
12864
12865rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12866      conftest$ac_exeext conftest.$ac_ext
12867if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12868
12869	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12870	# Warning - without using the other run time loading flags,
12871	# -berok will link without error, but may produce a broken library.
12872	no_undefined_flag_CXX=' ${wl}-bernotok'
12873	allow_undefined_flag_CXX=' ${wl}-berok'
12874	# Exported symbols can be pulled into shared objects from archives
12875	whole_archive_flag_spec_CXX='$convenience'
12876	archive_cmds_need_lc_CXX=yes
12877	# This is similar to how AIX traditionally builds its shared libraries.
12878	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12879      fi
12880    fi
12881    ;;
12882
12883  beos*)
12884    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12885      allow_undefined_flag_CXX=unsupported
12886      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12887      # support --undefined.  This deserves some investigation.  FIXME
12888      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12889    else
12890      ld_shlibs_CXX=no
12891    fi
12892    ;;
12893
12894  chorus*)
12895    case $cc_basename in
12896      *)
12897	# FIXME: insert proper C++ library support
12898	ld_shlibs_CXX=no
12899	;;
12900    esac
12901    ;;
12902
12903  cygwin* | mingw* | pw32*)
12904    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12905    # as there is no search path for DLLs.
12906    hardcode_libdir_flag_spec_CXX='-L$libdir'
12907    allow_undefined_flag_CXX=unsupported
12908    always_export_symbols_CXX=no
12909    enable_shared_with_static_runtimes_CXX=yes
12910
12911    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12912      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12913      # If the export-symbols file already is a .def file (1st line
12914      # is EXPORTS), use it as is; otherwise, prepend...
12915      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12916	cp $export_symbols $output_objdir/$soname.def;
12917      else
12918	echo EXPORTS > $output_objdir/$soname.def;
12919	cat $export_symbols >> $output_objdir/$soname.def;
12920      fi~
12921      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12922    else
12923      ld_shlibs_CXX=no
12924    fi
12925  ;;
12926      darwin* | rhapsody*)
12927        case $host_os in
12928        rhapsody* | darwin1.[012])
12929         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12930         ;;
12931       *) # Darwin 1.3 on
12932         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12933           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12934         else
12935           case ${MACOSX_DEPLOYMENT_TARGET} in
12936             10.[012])
12937               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12938               ;;
12939             10.*)
12940               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12941               ;;
12942           esac
12943         fi
12944         ;;
12945        esac
12946      archive_cmds_need_lc_CXX=no
12947      hardcode_direct_CXX=no
12948      hardcode_automatic_CXX=yes
12949      hardcode_shlibpath_var_CXX=unsupported
12950      whole_archive_flag_spec_CXX=''
12951      link_all_deplibs_CXX=yes
12952
12953    if test "$GXX" = yes ; then
12954      lt_int_apple_cc_single_mod=no
12955      output_verbose_link_cmd='echo'
12956      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12957       lt_int_apple_cc_single_mod=yes
12958      fi
12959      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12960       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12961      else
12962          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12963        fi
12964        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12965        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12966          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12967            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12968          else
12969            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12970          fi
12971            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12972      else
12973      case $cc_basename in
12974        xlc*)
12975         output_verbose_link_cmd='echo'
12976          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12977          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12978          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12979          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12980          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12981          ;;
12982       *)
12983         ld_shlibs_CXX=no
12984          ;;
12985      esac
12986      fi
12987        ;;
12988
12989  dgux*)
12990    case $cc_basename in
12991      ec++*)
12992	# FIXME: insert proper C++ library support
12993	ld_shlibs_CXX=no
12994	;;
12995      ghcx*)
12996	# Green Hills C++ Compiler
12997	# FIXME: insert proper C++ library support
12998	ld_shlibs_CXX=no
12999	;;
13000      *)
13001	# FIXME: insert proper C++ library support
13002	ld_shlibs_CXX=no
13003	;;
13004    esac
13005    ;;
13006  freebsd[12]*)
13007    # C++ shared libraries reported to be fairly broken before switch to ELF
13008    ld_shlibs_CXX=no
13009    ;;
13010  freebsd-elf*)
13011    archive_cmds_need_lc_CXX=no
13012    ;;
13013  freebsd* | kfreebsd*-gnu | dragonfly*)
13014    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13015    # conventions
13016    ld_shlibs_CXX=yes
13017    ;;
13018  gnu*)
13019    ;;
13020  hpux9*)
13021    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13022    hardcode_libdir_separator_CXX=:
13023    export_dynamic_flag_spec_CXX='${wl}-E'
13024    hardcode_direct_CXX=yes
13025    hardcode_minus_L_CXX=yes # Not in the search PATH,
13026				# but as the default
13027				# location of the library.
13028
13029    case $cc_basename in
13030    CC*)
13031      # FIXME: insert proper C++ library support
13032      ld_shlibs_CXX=no
13033      ;;
13034    aCC*)
13035      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13036      # Commands to make compiler produce verbose output that lists
13037      # what "hidden" libraries, object files and flags are used when
13038      # linking a shared library.
13039      #
13040      # There doesn't appear to be a way to prevent this compiler from
13041      # explicitly linking system object files so we need to strip them
13042      # from the output so that they don't get included in the library
13043      # dependencies.
13044      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13045      ;;
13046    *)
13047      if test "$GXX" = yes; then
13048        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13049      else
13050        # FIXME: insert proper C++ library support
13051        ld_shlibs_CXX=no
13052      fi
13053      ;;
13054    esac
13055    ;;
13056  hpux10*|hpux11*)
13057    if test $with_gnu_ld = no; then
13058      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13059      hardcode_libdir_separator_CXX=:
13060
13061      case $host_cpu in
13062      hppa*64*|ia64*)
13063	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13064        ;;
13065      *)
13066	export_dynamic_flag_spec_CXX='${wl}-E'
13067        ;;
13068      esac
13069    fi
13070    case $host_cpu in
13071    hppa*64*|ia64*)
13072      hardcode_direct_CXX=no
13073      hardcode_shlibpath_var_CXX=no
13074      ;;
13075    *)
13076      hardcode_direct_CXX=yes
13077      hardcode_minus_L_CXX=yes # Not in the search PATH,
13078					      # but as the default
13079					      # location of the library.
13080      ;;
13081    esac
13082
13083    case $cc_basename in
13084      CC*)
13085	# FIXME: insert proper C++ library support
13086	ld_shlibs_CXX=no
13087	;;
13088      aCC*)
13089	case $host_cpu in
13090	hppa*64*)
13091	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13092	  ;;
13093	ia64*)
13094	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13095	  ;;
13096	*)
13097	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13098	  ;;
13099	esac
13100	# Commands to make compiler produce verbose output that lists
13101	# what "hidden" libraries, object files and flags are used when
13102	# linking a shared library.
13103	#
13104	# There doesn't appear to be a way to prevent this compiler from
13105	# explicitly linking system object files so we need to strip them
13106	# from the output so that they don't get included in the library
13107	# dependencies.
13108	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13109	;;
13110      *)
13111	if test "$GXX" = yes; then
13112	  if test $with_gnu_ld = no; then
13113	    case $host_cpu in
13114	    hppa*64*)
13115	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13116	      ;;
13117	    ia64*)
13118	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13119	      ;;
13120	    *)
13121	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13122	      ;;
13123	    esac
13124	  fi
13125	else
13126	  # FIXME: insert proper C++ library support
13127	  ld_shlibs_CXX=no
13128	fi
13129	;;
13130    esac
13131    ;;
13132  interix3*)
13133    hardcode_direct_CXX=no
13134    hardcode_shlibpath_var_CXX=no
13135    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13136    export_dynamic_flag_spec_CXX='${wl}-E'
13137    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13138    # Instead, shared libraries are loaded at an image base (0x10000000 by
13139    # default) and relocated if they conflict, which is a slow very memory
13140    # consuming and fragmenting process.  To avoid this, we pick a random,
13141    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13142    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13143    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13144    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13145    ;;
13146  irix5* | irix6*)
13147    case $cc_basename in
13148      CC*)
13149	# SGI C++
13150	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13151
13152	# Archives containing C++ object files must be created using
13153	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13154	# necessary to make sure instantiated templates are included
13155	# in the archive.
13156	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13157	;;
13158      *)
13159	if test "$GXX" = yes; then
13160	  if test "$with_gnu_ld" = no; then
13161	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13162	  else
13163	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
13164	  fi
13165	fi
13166	link_all_deplibs_CXX=yes
13167	;;
13168    esac
13169    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13170    hardcode_libdir_separator_CXX=:
13171    ;;
13172  linux*)
13173    case $cc_basename in
13174      KCC*)
13175	# Kuck and Associates, Inc. (KAI) C++ Compiler
13176
13177	# KCC will only create a shared library if the output file
13178	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13179	# to its proper name (with version) after linking.
13180	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13181	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13182	# Commands to make compiler produce verbose output that lists
13183	# what "hidden" libraries, object files and flags are used when
13184	# linking a shared library.
13185	#
13186	# There doesn't appear to be a way to prevent this compiler from
13187	# explicitly linking system object files so we need to strip them
13188	# from the output so that they don't get included in the library
13189	# dependencies.
13190	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13191
13192	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13193	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13194
13195	# Archives containing C++ object files must be created using
13196	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13197	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13198	;;
13199      icpc*)
13200	# Intel C++
13201	with_gnu_ld=yes
13202	# version 8.0 and above of icpc choke on multiply defined symbols
13203	# if we add $predep_objects and $postdep_objects, however 7.1 and
13204	# earlier do not add the objects themselves.
13205	case `$CC -V 2>&1` in
13206	*"Version 7."*)
13207  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13208  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13209	  ;;
13210	*)  # Version 8.0 or newer
13211	  tmp_idyn=
13212	  case $host_cpu in
13213	    ia64*) tmp_idyn=' -i_dynamic';;
13214	  esac
13215  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13216	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13217	  ;;
13218	esac
13219	archive_cmds_need_lc_CXX=no
13220	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13221	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13222	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13223	;;
13224      pgCC*)
13225        # Portland Group C++ compiler
13226	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13227  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13228
13229	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13230	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13231	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13232        ;;
13233      cxx*)
13234	# Compaq C++
13235	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13236	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13237
13238	runpath_var=LD_RUN_PATH
13239	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13240	hardcode_libdir_separator_CXX=:
13241
13242	# Commands to make compiler produce verbose output that lists
13243	# what "hidden" libraries, object files and flags are used when
13244	# linking a shared library.
13245	#
13246	# There doesn't appear to be a way to prevent this compiler from
13247	# explicitly linking system object files so we need to strip them
13248	# from the output so that they don't get included in the library
13249	# dependencies.
13250	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13251	;;
13252    esac
13253    ;;
13254  lynxos*)
13255    # FIXME: insert proper C++ library support
13256    ld_shlibs_CXX=no
13257    ;;
13258  m88k*)
13259    # FIXME: insert proper C++ library support
13260    ld_shlibs_CXX=no
13261    ;;
13262  mvs*)
13263    case $cc_basename in
13264      cxx*)
13265	# FIXME: insert proper C++ library support
13266	ld_shlibs_CXX=no
13267	;;
13268      *)
13269	# FIXME: insert proper C++ library support
13270	ld_shlibs_CXX=no
13271	;;
13272    esac
13273    ;;
13274  netbsd*)
13275    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13276      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13277      wlarc=
13278      hardcode_libdir_flag_spec_CXX='-R$libdir'
13279      hardcode_direct_CXX=yes
13280      hardcode_shlibpath_var_CXX=no
13281    fi
13282    # Workaround some broken pre-1.5 toolchains
13283    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13284    ;;
13285  openbsd2*)
13286    # C++ shared libraries are fairly broken
13287    ld_shlibs_CXX=no
13288    ;;
13289  openbsd*)
13290    hardcode_direct_CXX=yes
13291    hardcode_shlibpath_var_CXX=no
13292    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13293    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13294    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13295      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13296      export_dynamic_flag_spec_CXX='${wl}-E'
13297      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13298    fi
13299    output_verbose_link_cmd='echo'
13300    ;;
13301  osf3*)
13302    case $cc_basename in
13303      KCC*)
13304	# Kuck and Associates, Inc. (KAI) C++ Compiler
13305
13306	# KCC will only create a shared library if the output file
13307	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13308	# to its proper name (with version) after linking.
13309	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13310
13311	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13312	hardcode_libdir_separator_CXX=:
13313
13314	# Archives containing C++ object files must be created using
13315	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13316	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13317
13318	;;
13319      RCC*)
13320	# Rational C++ 2.4.1
13321	# FIXME: insert proper C++ library support
13322	ld_shlibs_CXX=no
13323	;;
13324      cxx*)
13325	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13326	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13327
13328	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13329	hardcode_libdir_separator_CXX=:
13330
13331	# Commands to make compiler produce verbose output that lists
13332	# what "hidden" libraries, object files and flags are used when
13333	# linking a shared library.
13334	#
13335	# There doesn't appear to be a way to prevent this compiler from
13336	# explicitly linking system object files so we need to strip them
13337	# from the output so that they don't get included in the library
13338	# dependencies.
13339	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13340	;;
13341      *)
13342	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13343	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13344	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13345
13346	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13347	  hardcode_libdir_separator_CXX=:
13348
13349	  # Commands to make compiler produce verbose output that lists
13350	  # what "hidden" libraries, object files and flags are used when
13351	  # linking a shared library.
13352	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13353
13354	else
13355	  # FIXME: insert proper C++ library support
13356	  ld_shlibs_CXX=no
13357	fi
13358	;;
13359    esac
13360    ;;
13361  osf4* | osf5*)
13362    case $cc_basename in
13363      KCC*)
13364	# Kuck and Associates, Inc. (KAI) C++ Compiler
13365
13366	# KCC will only create a shared library if the output file
13367	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13368	# to its proper name (with version) after linking.
13369	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13370
13371	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13372	hardcode_libdir_separator_CXX=:
13373
13374	# Archives containing C++ object files must be created using
13375	# the KAI C++ compiler.
13376	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13377	;;
13378      RCC*)
13379	# Rational C++ 2.4.1
13380	# FIXME: insert proper C++ library support
13381	ld_shlibs_CXX=no
13382	;;
13383      cxx*)
13384	allow_undefined_flag_CXX=' -expect_unresolved \*'
13385	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13386	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13387	  echo "-hidden">> $lib.exp~
13388	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
13389	  $rm $lib.exp'
13390
13391	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13392	hardcode_libdir_separator_CXX=:
13393
13394	# Commands to make compiler produce verbose output that lists
13395	# what "hidden" libraries, object files and flags are used when
13396	# linking a shared library.
13397	#
13398	# There doesn't appear to be a way to prevent this compiler from
13399	# explicitly linking system object files so we need to strip them
13400	# from the output so that they don't get included in the library
13401	# dependencies.
13402	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13403	;;
13404      *)
13405	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13406	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13407	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13408
13409	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13410	  hardcode_libdir_separator_CXX=:
13411
13412	  # Commands to make compiler produce verbose output that lists
13413	  # what "hidden" libraries, object files and flags are used when
13414	  # linking a shared library.
13415	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13416
13417	else
13418	  # FIXME: insert proper C++ library support
13419	  ld_shlibs_CXX=no
13420	fi
13421	;;
13422    esac
13423    ;;
13424  psos*)
13425    # FIXME: insert proper C++ library support
13426    ld_shlibs_CXX=no
13427    ;;
13428  sunos4*)
13429    case $cc_basename in
13430      CC*)
13431	# Sun C++ 4.x
13432	# FIXME: insert proper C++ library support
13433	ld_shlibs_CXX=no
13434	;;
13435      lcc*)
13436	# Lucid
13437	# FIXME: insert proper C++ library support
13438	ld_shlibs_CXX=no
13439	;;
13440      *)
13441	# FIXME: insert proper C++ library support
13442	ld_shlibs_CXX=no
13443	;;
13444    esac
13445    ;;
13446  solaris*)
13447    case $cc_basename in
13448      CC*)
13449	# Sun C++ 4.2, 5.x and Centerline C++
13450        archive_cmds_need_lc_CXX=yes
13451	no_undefined_flag_CXX=' -zdefs'
13452	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13453	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13454	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13455
13456	hardcode_libdir_flag_spec_CXX='-R$libdir'
13457	hardcode_shlibpath_var_CXX=no
13458	case $host_os in
13459	  solaris2.[0-5] | solaris2.[0-5].*) ;;
13460	  *)
13461	    # The C++ compiler is used as linker so we must use $wl
13462	    # flag to pass the commands to the underlying system
13463	    # linker. We must also pass each convience library through
13464	    # to the system linker between allextract/defaultextract.
13465	    # The C++ compiler will combine linker options so we
13466	    # cannot just pass the convience library names through
13467	    # without $wl.
13468	    # Supported since Solaris 2.6 (maybe 2.5.1?)
13469	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13470	    ;;
13471	esac
13472	link_all_deplibs_CXX=yes
13473
13474	output_verbose_link_cmd='echo'
13475
13476	# Archives containing C++ object files must be created using
13477	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
13478	# necessary to make sure instantiated templates are included
13479	# in the archive.
13480	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13481	;;
13482      gcx*)
13483	# Green Hills C++ Compiler
13484	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13485
13486	# The C++ compiler must be used to create the archive.
13487	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13488	;;
13489      *)
13490	# GNU C++ compiler with Solaris linker
13491	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13492	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13493	  if $CC --version | grep -v '^2\.7' > /dev/null; then
13494	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13495	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13496		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13497
13498	    # Commands to make compiler produce verbose output that lists
13499	    # what "hidden" libraries, object files and flags are used when
13500	    # linking a shared library.
13501	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13502	  else
13503	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
13504	    # platform.
13505	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13506	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13507		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13508
13509	    # Commands to make compiler produce verbose output that lists
13510	    # what "hidden" libraries, object files and flags are used when
13511	    # linking a shared library.
13512	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13513	  fi
13514
13515	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13516	fi
13517	;;
13518    esac
13519    ;;
13520  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13521    no_undefined_flag_CXX='${wl}-z,text'
13522    archive_cmds_need_lc_CXX=no
13523    hardcode_shlibpath_var_CXX=no
13524    runpath_var='LD_RUN_PATH'
13525
13526    case $cc_basename in
13527      CC*)
13528	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13529	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13530	;;
13531      *)
13532	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13533	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13534	;;
13535    esac
13536    ;;
13537  sysv5* | sco3.2v5* | sco5v6*)
13538    # Note: We can NOT use -z defs as we might desire, because we do not
13539    # link with -lc, and that would cause any symbols used from libc to
13540    # always be unresolved, which means just about no library would
13541    # ever link correctly.  If we're not using GNU ld we use -z text
13542    # though, which does catch some bad symbols but isn't as heavy-handed
13543    # as -z defs.
13544    # For security reasons, it is highly recommended that you always
13545    # use absolute paths for naming shared libraries, and exclude the
13546    # DT_RUNPATH tag from executables and libraries.  But doing so
13547    # requires that you compile everything twice, which is a pain.
13548    # So that behaviour is only enabled if SCOABSPATH is set to a
13549    # non-empty value in the environment.  Most likely only useful for
13550    # creating official distributions of packages.
13551    # This is a hack until libtool officially supports absolute path
13552    # names for shared libraries.
13553    no_undefined_flag_CXX='${wl}-z,text'
13554    allow_undefined_flag_CXX='${wl}-z,nodefs'
13555    archive_cmds_need_lc_CXX=no
13556    hardcode_shlibpath_var_CXX=no
13557    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13558    hardcode_libdir_separator_CXX=':'
13559    link_all_deplibs_CXX=yes
13560    export_dynamic_flag_spec_CXX='${wl}-Bexport'
13561    runpath_var='LD_RUN_PATH'
13562
13563    case $cc_basename in
13564      CC*)
13565	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13566	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13567	;;
13568      *)
13569	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13570	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13571	;;
13572    esac
13573    ;;
13574  tandem*)
13575    case $cc_basename in
13576      NCC*)
13577	# NonStop-UX NCC 3.20
13578	# FIXME: insert proper C++ library support
13579	ld_shlibs_CXX=no
13580	;;
13581      *)
13582	# FIXME: insert proper C++ library support
13583	ld_shlibs_CXX=no
13584	;;
13585    esac
13586    ;;
13587  vxworks*)
13588    # FIXME: insert proper C++ library support
13589    ld_shlibs_CXX=no
13590    ;;
13591  *)
13592    # FIXME: insert proper C++ library support
13593    ld_shlibs_CXX=no
13594    ;;
13595esac
13596{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13597echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13598test "$ld_shlibs_CXX" = no && can_build_shared=no
13599
13600GCC_CXX="$GXX"
13601LD_CXX="$LD"
13602
13603## CAVEAT EMPTOR:
13604## There is no encapsulation within the following macros, do not change
13605## the running order or otherwise move them around unless you know exactly
13606## what you are doing...
13607
13608cat > conftest.$ac_ext <<EOF
13609class Foo
13610{
13611public:
13612  Foo (void) { a = 0; }
13613private:
13614  int a;
13615};
13616EOF
13617
13618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13619  (eval $ac_compile) 2>&5
13620  ac_status=$?
13621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622  (exit $ac_status); }; then
13623  # Parse the compiler output and extract the necessary
13624  # objects, libraries and library flags.
13625
13626  # Sentinel used to keep track of whether or not we are before
13627  # the conftest object file.
13628  pre_test_object_deps_done=no
13629
13630  # The `*' in the case matches for architectures that use `case' in
13631  # $output_verbose_cmd can trigger glob expansion during the loop
13632  # eval without this substitution.
13633  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13634
13635  for p in `eval $output_verbose_link_cmd`; do
13636    case $p in
13637
13638    -L* | -R* | -l*)
13639       # Some compilers place space between "-{L,R}" and the path.
13640       # Remove the space.
13641       if test $p = "-L" \
13642	  || test $p = "-R"; then
13643	 prev=$p
13644	 continue
13645       else
13646	 prev=
13647       fi
13648
13649       if test "$pre_test_object_deps_done" = no; then
13650	 case $p in
13651	 -L* | -R*)
13652	   # Internal compiler library paths should come after those
13653	   # provided the user.  The postdeps already come after the
13654	   # user supplied libs so there is no need to process them.
13655	   if test -z "$compiler_lib_search_path_CXX"; then
13656	     compiler_lib_search_path_CXX="${prev}${p}"
13657	   else
13658	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13659	   fi
13660	   ;;
13661	 # The "-l" case would never come before the object being
13662	 # linked, so don't bother handling this case.
13663	 esac
13664       else
13665	 if test -z "$postdeps_CXX"; then
13666	   postdeps_CXX="${prev}${p}"
13667	 else
13668	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13669	 fi
13670       fi
13671       ;;
13672
13673    *.$objext)
13674       # This assumes that the test object file only shows up
13675       # once in the compiler output.
13676       if test "$p" = "conftest.$objext"; then
13677	 pre_test_object_deps_done=yes
13678	 continue
13679       fi
13680
13681       if test "$pre_test_object_deps_done" = no; then
13682	 if test -z "$predep_objects_CXX"; then
13683	   predep_objects_CXX="$p"
13684	 else
13685	   predep_objects_CXX="$predep_objects_CXX $p"
13686	 fi
13687       else
13688	 if test -z "$postdep_objects_CXX"; then
13689	   postdep_objects_CXX="$p"
13690	 else
13691	   postdep_objects_CXX="$postdep_objects_CXX $p"
13692	 fi
13693       fi
13694       ;;
13695
13696    *) ;; # Ignore the rest.
13697
13698    esac
13699  done
13700
13701  # Clean up.
13702  rm -f a.out a.exe
13703else
13704  echo "libtool.m4: error: problem compiling CXX test program"
13705fi
13706
13707$rm -f confest.$objext
13708
13709# PORTME: override above test on systems where it is broken
13710case $host_os in
13711interix3*)
13712  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13713  # hack all around it, let's just trust "g++" to DTRT.
13714  predep_objects_CXX=
13715  postdep_objects_CXX=
13716  postdeps_CXX=
13717  ;;
13718
13719solaris*)
13720  case $cc_basename in
13721  CC*)
13722    # Adding this requires a known-good setup of shared libraries for
13723    # Sun compiler versions before 5.6, else PIC objects from an old
13724    # archive will be linked into the output, leading to subtle bugs.
13725    postdeps_CXX='-lCstd -lCrun'
13726    ;;
13727  esac
13728  ;;
13729esac
13730
13731
13732case " $postdeps_CXX " in
13733*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13734esac
13735
13736lt_prog_compiler_wl_CXX=
13737lt_prog_compiler_pic_CXX=
13738lt_prog_compiler_static_CXX=
13739
13740{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13741echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13742
13743  # C++ specific cases for pic, static, wl, etc.
13744  if test "$GXX" = yes; then
13745    lt_prog_compiler_wl_CXX='-Wl,'
13746    lt_prog_compiler_static_CXX='-static'
13747
13748    case $host_os in
13749    aix*)
13750      # All AIX code is PIC.
13751      if test "$host_cpu" = ia64; then
13752	# AIX 5 now supports IA64 processor
13753	lt_prog_compiler_static_CXX='-Bstatic'
13754      fi
13755      ;;
13756    amigaos*)
13757      # FIXME: we need at least 68020 code to build shared libraries, but
13758      # adding the `-m68020' flag to GCC prevents building anything better,
13759      # like `-m68040'.
13760      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13761      ;;
13762    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13763      # PIC is the default for these OSes.
13764      ;;
13765    mingw* | os2* | pw32*)
13766      # This hack is so that the source file can tell whether it is being
13767      # built for inclusion in a dll (and should export symbols for example).
13768      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13769      ;;
13770    darwin* | rhapsody*)
13771      # PIC is the default on this platform
13772      # Common symbols not allowed in MH_DYLIB files
13773      lt_prog_compiler_pic_CXX='-fno-common'
13774      ;;
13775    *djgpp*)
13776      # DJGPP does not support shared libraries at all
13777      lt_prog_compiler_pic_CXX=
13778      ;;
13779    interix3*)
13780      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13781      # Instead, we relocate shared libraries at runtime.
13782      ;;
13783    sysv4*MP*)
13784      if test -d /usr/nec; then
13785	lt_prog_compiler_pic_CXX=-Kconform_pic
13786      fi
13787      ;;
13788    hpux*)
13789      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13790      # not for PA HP-UX.
13791      case $host_cpu in
13792      hppa*64*|ia64*)
13793	;;
13794      *)
13795	lt_prog_compiler_pic_CXX='-fPIC'
13796	;;
13797      esac
13798      ;;
13799    *)
13800      lt_prog_compiler_pic_CXX='-fPIC'
13801      ;;
13802    esac
13803  else
13804    case $host_os in
13805      aix4* | aix5*)
13806	# All AIX code is PIC.
13807	if test "$host_cpu" = ia64; then
13808	  # AIX 5 now supports IA64 processor
13809	  lt_prog_compiler_static_CXX='-Bstatic'
13810	else
13811	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13812	fi
13813	;;
13814      chorus*)
13815	case $cc_basename in
13816	cxch68*)
13817	  # Green Hills C++ Compiler
13818	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13819	  ;;
13820	esac
13821	;;
13822       darwin*)
13823         # PIC is the default on this platform
13824         # Common symbols not allowed in MH_DYLIB files
13825         case $cc_basename in
13826           xlc*)
13827           lt_prog_compiler_pic_CXX='-qnocommon'
13828           lt_prog_compiler_wl_CXX='-Wl,'
13829           ;;
13830         esac
13831       ;;
13832      dgux*)
13833	case $cc_basename in
13834	  ec++*)
13835	    lt_prog_compiler_pic_CXX='-KPIC'
13836	    ;;
13837	  ghcx*)
13838	    # Green Hills C++ Compiler
13839	    lt_prog_compiler_pic_CXX='-pic'
13840	    ;;
13841	  *)
13842	    ;;
13843	esac
13844	;;
13845      freebsd* | kfreebsd*-gnu | dragonfly*)
13846	# FreeBSD uses GNU C++
13847	;;
13848      hpux9* | hpux10* | hpux11*)
13849	case $cc_basename in
13850	  CC*)
13851	    lt_prog_compiler_wl_CXX='-Wl,'
13852	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13853	    if test "$host_cpu" != ia64; then
13854	      lt_prog_compiler_pic_CXX='+Z'
13855	    fi
13856	    ;;
13857	  aCC*)
13858	    lt_prog_compiler_wl_CXX='-Wl,'
13859	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13860	    case $host_cpu in
13861	    hppa*64*|ia64*)
13862	      # +Z the default
13863	      ;;
13864	    *)
13865	      lt_prog_compiler_pic_CXX='+Z'
13866	      ;;
13867	    esac
13868	    ;;
13869	  *)
13870	    ;;
13871	esac
13872	;;
13873      interix*)
13874	# This is c89, which is MS Visual C++ (no shared libs)
13875	# Anyone wants to do a port?
13876	;;
13877      irix5* | irix6* | nonstopux*)
13878	case $cc_basename in
13879	  CC*)
13880	    lt_prog_compiler_wl_CXX='-Wl,'
13881	    lt_prog_compiler_static_CXX='-non_shared'
13882	    # CC pic flag -KPIC is the default.
13883	    ;;
13884	  *)
13885	    ;;
13886	esac
13887	;;
13888      linux*)
13889	case $cc_basename in
13890	  KCC*)
13891	    # KAI C++ Compiler
13892	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13893	    lt_prog_compiler_pic_CXX='-fPIC'
13894	    ;;
13895	  icpc* | ecpc*)
13896	    # Intel C++
13897	    lt_prog_compiler_wl_CXX='-Wl,'
13898	    lt_prog_compiler_pic_CXX='-KPIC'
13899	    lt_prog_compiler_static_CXX='-static'
13900	    ;;
13901	  pgCC*)
13902	    # Portland Group C++ compiler.
13903	    lt_prog_compiler_wl_CXX='-Wl,'
13904	    lt_prog_compiler_pic_CXX='-fpic'
13905	    lt_prog_compiler_static_CXX='-Bstatic'
13906	    ;;
13907	  cxx*)
13908	    # Compaq C++
13909	    # Make sure the PIC flag is empty.  It appears that all Alpha
13910	    # Linux and Compaq Tru64 Unix objects are PIC.
13911	    lt_prog_compiler_pic_CXX=
13912	    lt_prog_compiler_static_CXX='-non_shared'
13913	    ;;
13914	  *)
13915	    ;;
13916	esac
13917	;;
13918      lynxos*)
13919	;;
13920      m88k*)
13921	;;
13922      mvs*)
13923	case $cc_basename in
13924	  cxx*)
13925	    lt_prog_compiler_pic_CXX='-W c,exportall'
13926	    ;;
13927	  *)
13928	    ;;
13929	esac
13930	;;
13931      netbsd*)
13932	;;
13933      osf3* | osf4* | osf5*)
13934	case $cc_basename in
13935	  KCC*)
13936	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13937	    ;;
13938	  RCC*)
13939	    # Rational C++ 2.4.1
13940	    lt_prog_compiler_pic_CXX='-pic'
13941	    ;;
13942	  cxx*)
13943	    # Digital/Compaq C++
13944	    lt_prog_compiler_wl_CXX='-Wl,'
13945	    # Make sure the PIC flag is empty.  It appears that all Alpha
13946	    # Linux and Compaq Tru64 Unix objects are PIC.
13947	    lt_prog_compiler_pic_CXX=
13948	    lt_prog_compiler_static_CXX='-non_shared'
13949	    ;;
13950	  *)
13951	    ;;
13952	esac
13953	;;
13954      psos*)
13955	;;
13956      solaris*)
13957	case $cc_basename in
13958	  CC*)
13959	    # Sun C++ 4.2, 5.x and Centerline C++
13960	    lt_prog_compiler_pic_CXX='-KPIC'
13961	    lt_prog_compiler_static_CXX='-Bstatic'
13962	    lt_prog_compiler_wl_CXX='-Qoption ld '
13963	    ;;
13964	  gcx*)
13965	    # Green Hills C++ Compiler
13966	    lt_prog_compiler_pic_CXX='-PIC'
13967	    ;;
13968	  *)
13969	    ;;
13970	esac
13971	;;
13972      sunos4*)
13973	case $cc_basename in
13974	  CC*)
13975	    # Sun C++ 4.x
13976	    lt_prog_compiler_pic_CXX='-pic'
13977	    lt_prog_compiler_static_CXX='-Bstatic'
13978	    ;;
13979	  lcc*)
13980	    # Lucid
13981	    lt_prog_compiler_pic_CXX='-pic'
13982	    ;;
13983	  *)
13984	    ;;
13985	esac
13986	;;
13987      tandem*)
13988	case $cc_basename in
13989	  NCC*)
13990	    # NonStop-UX NCC 3.20
13991	    lt_prog_compiler_pic_CXX='-KPIC'
13992	    ;;
13993	  *)
13994	    ;;
13995	esac
13996	;;
13997      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13998	case $cc_basename in
13999	  CC*)
14000	    lt_prog_compiler_wl_CXX='-Wl,'
14001	    lt_prog_compiler_pic_CXX='-KPIC'
14002	    lt_prog_compiler_static_CXX='-Bstatic'
14003	    ;;
14004	esac
14005	;;
14006      vxworks*)
14007	;;
14008      *)
14009	lt_prog_compiler_can_build_shared_CXX=no
14010	;;
14011    esac
14012  fi
14013
14014{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14015echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14016
14017#
14018# Check to make sure the PIC flag actually works.
14019#
14020if test -n "$lt_prog_compiler_pic_CXX"; then
14021
14022{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14023echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14024if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14025  echo $ECHO_N "(cached) $ECHO_C" >&6
14026else
14027  lt_prog_compiler_pic_works_CXX=no
14028  ac_outfile=conftest.$ac_objext
14029   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14030   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14031   # Insert the option either (1) after the last *FLAGS variable, or
14032   # (2) before a word containing "conftest.", or (3) at the end.
14033   # Note that $ac_compile itself does not contain backslashes and begins
14034   # with a dollar sign (not a hyphen), so the echo should work correctly.
14035   # The option is referenced via a variable to avoid confusing sed.
14036   lt_compile=`echo "$ac_compile" | $SED \
14037   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14038   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14039   -e 's:$: $lt_compiler_flag:'`
14040   (eval echo "\"\$as_me:14040: $lt_compile\"" >&5)
14041   (eval "$lt_compile" 2>conftest.err)
14042   ac_status=$?
14043   cat conftest.err >&5
14044   echo "$as_me:14044: \$? = $ac_status" >&5
14045   if (exit $ac_status) && test -s "$ac_outfile"; then
14046     # The compiler can only warn and ignore the option if not recognized
14047     # So say no if there are warnings other than the usual output.
14048     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14049     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14050     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14051       lt_prog_compiler_pic_works_CXX=yes
14052     fi
14053   fi
14054   $rm conftest*
14055
14056fi
14057{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14058echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14059
14060if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14061    case $lt_prog_compiler_pic_CXX in
14062     "" | " "*) ;;
14063     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14064     esac
14065else
14066    lt_prog_compiler_pic_CXX=
14067     lt_prog_compiler_can_build_shared_CXX=no
14068fi
14069
14070fi
14071case $host_os in
14072  # For platforms which do not support PIC, -DPIC is meaningless:
14073  *djgpp*)
14074    lt_prog_compiler_pic_CXX=
14075    ;;
14076  *)
14077    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14078    ;;
14079esac
14080
14081#
14082# Check to make sure the static flag actually works.
14083#
14084wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14085{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14086echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14087if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14088  echo $ECHO_N "(cached) $ECHO_C" >&6
14089else
14090  lt_prog_compiler_static_works_CXX=no
14091   save_LDFLAGS="$LDFLAGS"
14092   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14093   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14094   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14095     # The linker can only warn and ignore the option if not recognized
14096     # So say no if there are warnings
14097     if test -s conftest.err; then
14098       # Append any errors to the config.log.
14099       cat conftest.err 1>&5
14100       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14101       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14102       if diff conftest.exp conftest.er2 >/dev/null; then
14103         lt_prog_compiler_static_works_CXX=yes
14104       fi
14105     else
14106       lt_prog_compiler_static_works_CXX=yes
14107     fi
14108   fi
14109   $rm conftest*
14110   LDFLAGS="$save_LDFLAGS"
14111
14112fi
14113{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14114echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14115
14116if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14117    :
14118else
14119    lt_prog_compiler_static_CXX=
14120fi
14121
14122
14123{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14124echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14125if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14126  echo $ECHO_N "(cached) $ECHO_C" >&6
14127else
14128  lt_cv_prog_compiler_c_o_CXX=no
14129   $rm -r conftest 2>/dev/null
14130   mkdir conftest
14131   cd conftest
14132   mkdir out
14133   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14134
14135   lt_compiler_flag="-o out/conftest2.$ac_objext"
14136   # Insert the option either (1) after the last *FLAGS variable, or
14137   # (2) before a word containing "conftest.", or (3) at the end.
14138   # Note that $ac_compile itself does not contain backslashes and begins
14139   # with a dollar sign (not a hyphen), so the echo should work correctly.
14140   lt_compile=`echo "$ac_compile" | $SED \
14141   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14142   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14143   -e 's:$: $lt_compiler_flag:'`
14144   (eval echo "\"\$as_me:14144: $lt_compile\"" >&5)
14145   (eval "$lt_compile" 2>out/conftest.err)
14146   ac_status=$?
14147   cat out/conftest.err >&5
14148   echo "$as_me:14148: \$? = $ac_status" >&5
14149   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14150   then
14151     # The compiler can only warn and ignore the option if not recognized
14152     # So say no if there are warnings
14153     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14154     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14155     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14156       lt_cv_prog_compiler_c_o_CXX=yes
14157     fi
14158   fi
14159   chmod u+w . 2>&5
14160   $rm conftest*
14161   # SGI C++ compiler will create directory out/ii_files/ for
14162   # template instantiation
14163   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14164   $rm out/* && rmdir out
14165   cd ..
14166   rmdir conftest
14167   $rm conftest*
14168
14169fi
14170{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14171echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14172
14173
14174hard_links="nottested"
14175if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14176  # do not overwrite the value of need_locks provided by the user
14177  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14178echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14179  hard_links=yes
14180  $rm conftest*
14181  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14182  touch conftest.a
14183  ln conftest.a conftest.b 2>&5 || hard_links=no
14184  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14185  { echo "$as_me:$LINENO: result: $hard_links" >&5
14186echo "${ECHO_T}$hard_links" >&6; }
14187  if test "$hard_links" = no; then
14188    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14189echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14190    need_locks=warn
14191  fi
14192else
14193  need_locks=no
14194fi
14195
14196{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14197echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14198
14199  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14200  case $host_os in
14201  aix4* | aix5*)
14202    # If we're using GNU nm, then we don't want the "-C" option.
14203    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14204    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14205      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14206    else
14207      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14208    fi
14209    ;;
14210  pw32*)
14211    export_symbols_cmds_CXX="$ltdll_cmds"
14212  ;;
14213  cygwin* | mingw*)
14214    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14215  ;;
14216  *)
14217    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14218  ;;
14219  esac
14220
14221{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14222echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14223test "$ld_shlibs_CXX" = no && can_build_shared=no
14224
14225#
14226# Do we need to explicitly link libc?
14227#
14228case "x$archive_cmds_need_lc_CXX" in
14229x|xyes)
14230  # Assume -lc should be added
14231  archive_cmds_need_lc_CXX=yes
14232
14233  if test "$enable_shared" = yes && test "$GCC" = yes; then
14234    case $archive_cmds_CXX in
14235    *'~'*)
14236      # FIXME: we may have to deal with multi-command sequences.
14237      ;;
14238    '$CC '*)
14239      # Test whether the compiler implicitly links with -lc since on some
14240      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14241      # to ld, don't add -lc before -lgcc.
14242      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14243echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14244      $rm conftest*
14245      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14246
14247      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14248  (eval $ac_compile) 2>&5
14249  ac_status=$?
14250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251  (exit $ac_status); } 2>conftest.err; then
14252        soname=conftest
14253        lib=conftest
14254        libobjs=conftest.$ac_objext
14255        deplibs=
14256        wl=$lt_prog_compiler_wl_CXX
14257	pic_flag=$lt_prog_compiler_pic_CXX
14258        compiler_flags=-v
14259        linker_flags=-v
14260        verstring=
14261        output_objdir=.
14262        libname=conftest
14263        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14264        allow_undefined_flag_CXX=
14265        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14266  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14267  ac_status=$?
14268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269  (exit $ac_status); }
14270        then
14271	  archive_cmds_need_lc_CXX=no
14272        else
14273	  archive_cmds_need_lc_CXX=yes
14274        fi
14275        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14276      else
14277        cat conftest.err 1>&5
14278      fi
14279      $rm conftest*
14280      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14281echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14282      ;;
14283    esac
14284  fi
14285  ;;
14286esac
14287
14288{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14289echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14290library_names_spec=
14291libname_spec='lib$name'
14292soname_spec=
14293shrext_cmds=".so"
14294postinstall_cmds=
14295postuninstall_cmds=
14296finish_cmds=
14297finish_eval=
14298shlibpath_var=
14299shlibpath_overrides_runpath=unknown
14300version_type=none
14301dynamic_linker="$host_os ld.so"
14302sys_lib_dlsearch_path_spec="/lib /usr/lib"
14303if test "$GCC" = yes; then
14304  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14305  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14306    # if the path contains ";" then we assume it to be the separator
14307    # otherwise default to the standard path separator (i.e. ":") - it is
14308    # assumed that no part of a normal pathname contains ";" but that should
14309    # okay in the real world where ";" in dirpaths is itself problematic.
14310    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14311  else
14312    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14313  fi
14314else
14315  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14316fi
14317need_lib_prefix=unknown
14318hardcode_into_libs=no
14319
14320# when you set need_version to no, make sure it does not cause -set_version
14321# flags to be left without arguments
14322need_version=unknown
14323
14324case $host_os in
14325aix3*)
14326  version_type=linux
14327  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14328  shlibpath_var=LIBPATH
14329
14330  # AIX 3 has no versioning support, so we append a major version to the name.
14331  soname_spec='${libname}${release}${shared_ext}$major'
14332  ;;
14333
14334aix4* | aix5*)
14335  version_type=linux
14336  need_lib_prefix=no
14337  need_version=no
14338  hardcode_into_libs=yes
14339  if test "$host_cpu" = ia64; then
14340    # AIX 5 supports IA64
14341    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14342    shlibpath_var=LD_LIBRARY_PATH
14343  else
14344    # With GCC up to 2.95.x, collect2 would create an import file
14345    # for dependence libraries.  The import file would start with
14346    # the line `#! .'.  This would cause the generated library to
14347    # depend on `.', always an invalid library.  This was fixed in
14348    # development snapshots of GCC prior to 3.0.
14349    case $host_os in
14350      aix4 | aix4.[01] | aix4.[01].*)
14351      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14352	   echo ' yes '
14353	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14354	:
14355      else
14356	can_build_shared=no
14357      fi
14358      ;;
14359    esac
14360    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14361    # soname into executable. Probably we can add versioning support to
14362    # collect2, so additional links can be useful in future.
14363    if test "$aix_use_runtimelinking" = yes; then
14364      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14365      # instead of lib<name>.a to let people know that these are not
14366      # typical AIX shared libraries.
14367      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14368    else
14369      # We preserve .a as extension for shared libraries through AIX4.2
14370      # and later when we are not doing run time linking.
14371      library_names_spec='${libname}${release}.a $libname.a'
14372      soname_spec='${libname}${release}${shared_ext}$major'
14373    fi
14374    shlibpath_var=LIBPATH
14375  fi
14376  ;;
14377
14378amigaos*)
14379  library_names_spec='$libname.ixlibrary $libname.a'
14380  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14381  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'
14382  ;;
14383
14384beos*)
14385  library_names_spec='${libname}${shared_ext}'
14386  dynamic_linker="$host_os ld.so"
14387  shlibpath_var=LIBRARY_PATH
14388  ;;
14389
14390bsdi[45]*)
14391  version_type=linux
14392  need_version=no
14393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14394  soname_spec='${libname}${release}${shared_ext}$major'
14395  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14396  shlibpath_var=LD_LIBRARY_PATH
14397  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14398  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14399  # the default ld.so.conf also contains /usr/contrib/lib and
14400  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14401  # libtool to hard-code these into programs
14402  ;;
14403
14404cygwin* | mingw* | pw32*)
14405  version_type=windows
14406  shrext_cmds=".dll"
14407  need_version=no
14408  need_lib_prefix=no
14409
14410  case $GCC,$host_os in
14411  yes,cygwin* | yes,mingw* | yes,pw32*)
14412    library_names_spec='$libname.dll.a'
14413    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14414    postinstall_cmds='base_file=`basename \${file}`~
14415      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14416      dldir=$destdir/`dirname \$dlpath`~
14417      test -d \$dldir || mkdir -p \$dldir~
14418      $install_prog $dir/$dlname \$dldir/$dlname~
14419      chmod a+x \$dldir/$dlname'
14420    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14421      dlpath=$dir/\$dldll~
14422       $rm \$dlpath'
14423    shlibpath_overrides_runpath=yes
14424
14425    case $host_os in
14426    cygwin*)
14427      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14428      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14429      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14430      ;;
14431    mingw*)
14432      # MinGW DLLs use traditional 'lib' prefix
14433      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14434      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14435      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14436        # It is most probably a Windows format PATH printed by
14437        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14438        # path with ; separators, and with drive letters. We can handle the
14439        # drive letters (cygwin fileutils understands them), so leave them,
14440        # especially as we might pass files found there to a mingw objdump,
14441        # which wouldn't understand a cygwinified path. Ahh.
14442        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14443      else
14444        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14445      fi
14446      ;;
14447    pw32*)
14448      # pw32 DLLs use 'pw' prefix rather than 'lib'
14449      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14450      ;;
14451    esac
14452    ;;
14453
14454  *)
14455    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14456    ;;
14457  esac
14458  dynamic_linker='Win32 ld.exe'
14459  # FIXME: first we should search . and the directory the executable is in
14460  shlibpath_var=PATH
14461  ;;
14462
14463darwin* | rhapsody*)
14464  dynamic_linker="$host_os dyld"
14465  version_type=darwin
14466  need_lib_prefix=no
14467  need_version=no
14468  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14469  soname_spec='${libname}${release}${major}$shared_ext'
14470  shlibpath_overrides_runpath=yes
14471  shlibpath_var=DYLD_LIBRARY_PATH
14472  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14473  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14474  if test "$GCC" = yes; then
14475    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14476  else
14477    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14478  fi
14479  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14480  ;;
14481
14482dgux*)
14483  version_type=linux
14484  need_lib_prefix=no
14485  need_version=no
14486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14487  soname_spec='${libname}${release}${shared_ext}$major'
14488  shlibpath_var=LD_LIBRARY_PATH
14489  ;;
14490
14491freebsd1*)
14492  dynamic_linker=no
14493  ;;
14494
14495kfreebsd*-gnu)
14496  version_type=linux
14497  need_lib_prefix=no
14498  need_version=no
14499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14500  soname_spec='${libname}${release}${shared_ext}$major'
14501  shlibpath_var=LD_LIBRARY_PATH
14502  shlibpath_overrides_runpath=no
14503  hardcode_into_libs=yes
14504  dynamic_linker='GNU ld.so'
14505  ;;
14506
14507freebsd* | dragonfly*)
14508  # DragonFly does not have aout.  When/if they implement a new
14509  # versioning mechanism, adjust this.
14510  if test -x /usr/bin/objformat; then
14511    objformat=`/usr/bin/objformat`
14512  else
14513    case $host_os in
14514    freebsd[123]*) objformat=aout ;;
14515    *) objformat=elf ;;
14516    esac
14517  fi
14518  version_type=freebsd-$objformat
14519  case $version_type in
14520    freebsd-elf*)
14521      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14522      need_version=no
14523      need_lib_prefix=no
14524      ;;
14525    freebsd-*)
14526      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14527      need_version=yes
14528      ;;
14529  esac
14530  shlibpath_var=LD_LIBRARY_PATH
14531  case $host_os in
14532  freebsd2*)
14533    shlibpath_overrides_runpath=yes
14534    ;;
14535  freebsd3.[01]* | freebsdelf3.[01]*)
14536    shlibpath_overrides_runpath=yes
14537    hardcode_into_libs=yes
14538    ;;
14539  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14540  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14541    shlibpath_overrides_runpath=no
14542    hardcode_into_libs=yes
14543    ;;
14544  freebsd*) # from 4.6 on
14545    shlibpath_overrides_runpath=yes
14546    hardcode_into_libs=yes
14547    ;;
14548  esac
14549  ;;
14550
14551gnu*)
14552  version_type=linux
14553  need_lib_prefix=no
14554  need_version=no
14555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14556  soname_spec='${libname}${release}${shared_ext}$major'
14557  shlibpath_var=LD_LIBRARY_PATH
14558  hardcode_into_libs=yes
14559  ;;
14560
14561hpux9* | hpux10* | hpux11*)
14562  # Give a soname corresponding to the major version so that dld.sl refuses to
14563  # link against other versions.
14564  version_type=sunos
14565  need_lib_prefix=no
14566  need_version=no
14567  case $host_cpu in
14568  ia64*)
14569    shrext_cmds='.so'
14570    hardcode_into_libs=yes
14571    dynamic_linker="$host_os dld.so"
14572    shlibpath_var=LD_LIBRARY_PATH
14573    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14574    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14575    soname_spec='${libname}${release}${shared_ext}$major'
14576    if test "X$HPUX_IA64_MODE" = X32; then
14577      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14578    else
14579      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14580    fi
14581    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14582    ;;
14583   hppa*64*)
14584     shrext_cmds='.sl'
14585     hardcode_into_libs=yes
14586     dynamic_linker="$host_os dld.sl"
14587     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14588     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14589     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14590     soname_spec='${libname}${release}${shared_ext}$major'
14591     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14592     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14593     ;;
14594   *)
14595    shrext_cmds='.sl'
14596    dynamic_linker="$host_os dld.sl"
14597    shlibpath_var=SHLIB_PATH
14598    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14599    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14600    soname_spec='${libname}${release}${shared_ext}$major'
14601    ;;
14602  esac
14603  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14604  postinstall_cmds='chmod 555 $lib'
14605  ;;
14606
14607interix3*)
14608  version_type=linux
14609  need_lib_prefix=no
14610  need_version=no
14611  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14612  soname_spec='${libname}${release}${shared_ext}$major'
14613  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14614  shlibpath_var=LD_LIBRARY_PATH
14615  shlibpath_overrides_runpath=no
14616  hardcode_into_libs=yes
14617  ;;
14618
14619irix5* | irix6* | nonstopux*)
14620  case $host_os in
14621    nonstopux*) version_type=nonstopux ;;
14622    *)
14623	if test "$lt_cv_prog_gnu_ld" = yes; then
14624		version_type=linux
14625	else
14626		version_type=irix
14627	fi ;;
14628  esac
14629  need_lib_prefix=no
14630  need_version=no
14631  soname_spec='${libname}${release}${shared_ext}$major'
14632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14633  case $host_os in
14634  irix5* | nonstopux*)
14635    libsuff= shlibsuff=
14636    ;;
14637  *)
14638    case $LD in # libtool.m4 will add one of these switches to LD
14639    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14640      libsuff= shlibsuff= libmagic=32-bit;;
14641    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14642      libsuff=32 shlibsuff=N32 libmagic=N32;;
14643    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14644      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14645    *) libsuff= shlibsuff= libmagic=never-match;;
14646    esac
14647    ;;
14648  esac
14649  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14650  shlibpath_overrides_runpath=no
14651  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14652  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14653  hardcode_into_libs=yes
14654  ;;
14655
14656# No shared lib support for Linux oldld, aout, or coff.
14657linux*oldld* | linux*aout* | linux*coff*)
14658  dynamic_linker=no
14659  ;;
14660
14661# This must be Linux ELF.
14662linux*)
14663  version_type=linux
14664  need_lib_prefix=no
14665  need_version=no
14666  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14667  soname_spec='${libname}${release}${shared_ext}$major'
14668  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14669  shlibpath_var=LD_LIBRARY_PATH
14670  shlibpath_overrides_runpath=no
14671  # This implies no fast_install, which is unacceptable.
14672  # Some rework will be needed to allow for fast_install
14673  # before this can be enabled.
14674  hardcode_into_libs=yes
14675
14676  # Append ld.so.conf contents to the search path
14677  if test -f /etc/ld.so.conf; then
14678    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14679    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14680  fi
14681
14682  # We used to test for /lib/ld.so.1 and disable shared libraries on
14683  # powerpc, because MkLinux only supported shared libraries with the
14684  # GNU dynamic linker.  Since this was broken with cross compilers,
14685  # most powerpc-linux boxes support dynamic linking these days and
14686  # people can always --disable-shared, the test was removed, and we
14687  # assume the GNU/Linux dynamic linker is in use.
14688  dynamic_linker='GNU/Linux ld.so'
14689  ;;
14690
14691knetbsd*-gnu)
14692  version_type=linux
14693  need_lib_prefix=no
14694  need_version=no
14695  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14696  soname_spec='${libname}${release}${shared_ext}$major'
14697  shlibpath_var=LD_LIBRARY_PATH
14698  shlibpath_overrides_runpath=no
14699  hardcode_into_libs=yes
14700  dynamic_linker='GNU ld.so'
14701  ;;
14702
14703netbsd*)
14704  version_type=sunos
14705  need_lib_prefix=no
14706  need_version=no
14707  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14708    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14709    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14710    dynamic_linker='NetBSD (a.out) ld.so'
14711  else
14712    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14713    soname_spec='${libname}${release}${shared_ext}$major'
14714    dynamic_linker='NetBSD ld.elf_so'
14715  fi
14716  shlibpath_var=LD_LIBRARY_PATH
14717  shlibpath_overrides_runpath=yes
14718  hardcode_into_libs=yes
14719  ;;
14720
14721newsos6)
14722  version_type=linux
14723  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14724  shlibpath_var=LD_LIBRARY_PATH
14725  shlibpath_overrides_runpath=yes
14726  ;;
14727
14728nto-qnx*)
14729  version_type=linux
14730  need_lib_prefix=no
14731  need_version=no
14732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14733  soname_spec='${libname}${release}${shared_ext}$major'
14734  shlibpath_var=LD_LIBRARY_PATH
14735  shlibpath_overrides_runpath=yes
14736  ;;
14737
14738openbsd*)
14739  version_type=sunos
14740  sys_lib_dlsearch_path_spec="/usr/lib"
14741  need_lib_prefix=no
14742  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14743  case $host_os in
14744    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14745    *)                         need_version=no  ;;
14746  esac
14747  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14748  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14749  shlibpath_var=LD_LIBRARY_PATH
14750  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14751    case $host_os in
14752      openbsd2.[89] | openbsd2.[89].*)
14753	shlibpath_overrides_runpath=no
14754	;;
14755      *)
14756	shlibpath_overrides_runpath=yes
14757	;;
14758      esac
14759  else
14760    shlibpath_overrides_runpath=yes
14761  fi
14762  ;;
14763
14764os2*)
14765  libname_spec='$name'
14766  shrext_cmds=".dll"
14767  need_lib_prefix=no
14768  library_names_spec='$libname${shared_ext} $libname.a'
14769  dynamic_linker='OS/2 ld.exe'
14770  shlibpath_var=LIBPATH
14771  ;;
14772
14773osf3* | osf4* | osf5*)
14774  version_type=osf
14775  need_lib_prefix=no
14776  need_version=no
14777  soname_spec='${libname}${release}${shared_ext}$major'
14778  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14779  shlibpath_var=LD_LIBRARY_PATH
14780  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14781  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14782  ;;
14783
14784solaris*)
14785  version_type=linux
14786  need_lib_prefix=no
14787  need_version=no
14788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789  soname_spec='${libname}${release}${shared_ext}$major'
14790  shlibpath_var=LD_LIBRARY_PATH
14791  shlibpath_overrides_runpath=yes
14792  hardcode_into_libs=yes
14793  # ldd complains unless libraries are executable
14794  postinstall_cmds='chmod +x $lib'
14795  ;;
14796
14797sunos4*)
14798  version_type=sunos
14799  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14800  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14801  shlibpath_var=LD_LIBRARY_PATH
14802  shlibpath_overrides_runpath=yes
14803  if test "$with_gnu_ld" = yes; then
14804    need_lib_prefix=no
14805  fi
14806  need_version=yes
14807  ;;
14808
14809sysv4 | sysv4.3*)
14810  version_type=linux
14811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14812  soname_spec='${libname}${release}${shared_ext}$major'
14813  shlibpath_var=LD_LIBRARY_PATH
14814  case $host_vendor in
14815    sni)
14816      shlibpath_overrides_runpath=no
14817      need_lib_prefix=no
14818      export_dynamic_flag_spec='${wl}-Blargedynsym'
14819      runpath_var=LD_RUN_PATH
14820      ;;
14821    siemens)
14822      need_lib_prefix=no
14823      ;;
14824    motorola)
14825      need_lib_prefix=no
14826      need_version=no
14827      shlibpath_overrides_runpath=no
14828      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14829      ;;
14830  esac
14831  ;;
14832
14833sysv4*MP*)
14834  if test -d /usr/nec ;then
14835    version_type=linux
14836    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14837    soname_spec='$libname${shared_ext}.$major'
14838    shlibpath_var=LD_LIBRARY_PATH
14839  fi
14840  ;;
14841
14842sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14843  version_type=freebsd-elf
14844  need_lib_prefix=no
14845  need_version=no
14846  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14847  soname_spec='${libname}${release}${shared_ext}$major'
14848  shlibpath_var=LD_LIBRARY_PATH
14849  hardcode_into_libs=yes
14850  if test "$with_gnu_ld" = yes; then
14851    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14852    shlibpath_overrides_runpath=no
14853  else
14854    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14855    shlibpath_overrides_runpath=yes
14856    case $host_os in
14857      sco3.2v5*)
14858        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14859	;;
14860    esac
14861  fi
14862  sys_lib_dlsearch_path_spec='/usr/lib'
14863  ;;
14864
14865uts4*)
14866  version_type=linux
14867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14868  soname_spec='${libname}${release}${shared_ext}$major'
14869  shlibpath_var=LD_LIBRARY_PATH
14870  ;;
14871
14872*)
14873  dynamic_linker=no
14874  ;;
14875esac
14876{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14877echo "${ECHO_T}$dynamic_linker" >&6; }
14878test "$dynamic_linker" = no && can_build_shared=no
14879
14880variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14881if test "$GCC" = yes; then
14882  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14883fi
14884
14885{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14886echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14887hardcode_action_CXX=
14888if test -n "$hardcode_libdir_flag_spec_CXX" || \
14889   test -n "$runpath_var_CXX" || \
14890   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14891
14892  # We can hardcode non-existant directories.
14893  if test "$hardcode_direct_CXX" != no &&
14894     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14895     # have to relink, otherwise we might link with an installed library
14896     # when we should be linking with a yet-to-be-installed one
14897     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14898     test "$hardcode_minus_L_CXX" != no; then
14899    # Linking always hardcodes the temporary library directory.
14900    hardcode_action_CXX=relink
14901  else
14902    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14903    hardcode_action_CXX=immediate
14904  fi
14905else
14906  # We cannot hardcode anything, or else we can only hardcode existing
14907  # directories.
14908  hardcode_action_CXX=unsupported
14909fi
14910{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14911echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14912
14913if test "$hardcode_action_CXX" = relink; then
14914  # Fast installation is not supported
14915  enable_fast_install=no
14916elif test "$shlibpath_overrides_runpath" = yes ||
14917     test "$enable_shared" = no; then
14918  # Fast installation is not necessary
14919  enable_fast_install=needless
14920fi
14921
14922
14923# The else clause should only fire when bootstrapping the
14924# libtool distribution, otherwise you forgot to ship ltmain.sh
14925# with your package, and you will get complaints that there are
14926# no rules to generate ltmain.sh.
14927if test -f "$ltmain"; then
14928  # See if we are running on zsh, and set the options which allow our commands through
14929  # without removal of \ escapes.
14930  if test -n "${ZSH_VERSION+set}" ; then
14931    setopt NO_GLOB_SUBST
14932  fi
14933  # Now quote all the things that may contain metacharacters while being
14934  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14935  # variables and quote the copies for generation of the libtool script.
14936  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14937    SED SHELL STRIP \
14938    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14939    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14940    deplibs_check_method reload_flag reload_cmds need_locks \
14941    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14942    lt_cv_sys_global_symbol_to_c_name_address \
14943    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14944    old_postinstall_cmds old_postuninstall_cmds \
14945    compiler_CXX \
14946    CC_CXX \
14947    LD_CXX \
14948    lt_prog_compiler_wl_CXX \
14949    lt_prog_compiler_pic_CXX \
14950    lt_prog_compiler_static_CXX \
14951    lt_prog_compiler_no_builtin_flag_CXX \
14952    export_dynamic_flag_spec_CXX \
14953    thread_safe_flag_spec_CXX \
14954    whole_archive_flag_spec_CXX \
14955    enable_shared_with_static_runtimes_CXX \
14956    old_archive_cmds_CXX \
14957    old_archive_from_new_cmds_CXX \
14958    predep_objects_CXX \
14959    postdep_objects_CXX \
14960    predeps_CXX \
14961    postdeps_CXX \
14962    compiler_lib_search_path_CXX \
14963    archive_cmds_CXX \
14964    archive_expsym_cmds_CXX \
14965    postinstall_cmds_CXX \
14966    postuninstall_cmds_CXX \
14967    old_archive_from_expsyms_cmds_CXX \
14968    allow_undefined_flag_CXX \
14969    no_undefined_flag_CXX \
14970    export_symbols_cmds_CXX \
14971    hardcode_libdir_flag_spec_CXX \
14972    hardcode_libdir_flag_spec_ld_CXX \
14973    hardcode_libdir_separator_CXX \
14974    hardcode_automatic_CXX \
14975    module_cmds_CXX \
14976    module_expsym_cmds_CXX \
14977    lt_cv_prog_compiler_c_o_CXX \
14978    exclude_expsyms_CXX \
14979    include_expsyms_CXX; do
14980
14981    case $var in
14982    old_archive_cmds_CXX | \
14983    old_archive_from_new_cmds_CXX | \
14984    archive_cmds_CXX | \
14985    archive_expsym_cmds_CXX | \
14986    module_cmds_CXX | \
14987    module_expsym_cmds_CXX | \
14988    old_archive_from_expsyms_cmds_CXX | \
14989    export_symbols_cmds_CXX | \
14990    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14991    postinstall_cmds | postuninstall_cmds | \
14992    old_postinstall_cmds | old_postuninstall_cmds | \
14993    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14994      # Double-quote double-evaled strings.
14995      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14996      ;;
14997    *)
14998      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14999      ;;
15000    esac
15001  done
15002
15003  case $lt_echo in
15004  *'\$0 --fallback-echo"')
15005    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15006    ;;
15007  esac
15008
15009cfgfile="$ofile"
15010
15011  cat <<__EOF__ >> "$cfgfile"
15012# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15013
15014# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15015
15016# Shell to use when invoking shell scripts.
15017SHELL=$lt_SHELL
15018
15019# Whether or not to build shared libraries.
15020build_libtool_libs=$enable_shared
15021
15022# Whether or not to build static libraries.
15023build_old_libs=$enable_static
15024
15025# Whether or not to add -lc for building shared libraries.
15026build_libtool_need_lc=$archive_cmds_need_lc_CXX
15027
15028# Whether or not to disallow shared libs when runtime libs are static
15029allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15030
15031# Whether or not to optimize for fast installation.
15032fast_install=$enable_fast_install
15033
15034# The host system.
15035host_alias=$host_alias
15036host=$host
15037host_os=$host_os
15038
15039# The build system.
15040build_alias=$build_alias
15041build=$build
15042build_os=$build_os
15043
15044# An echo program that does not interpret backslashes.
15045echo=$lt_echo
15046
15047# The archiver.
15048AR=$lt_AR
15049AR_FLAGS=$lt_AR_FLAGS
15050
15051# A C compiler.
15052LTCC=$lt_LTCC
15053
15054# LTCC compiler flags.
15055LTCFLAGS=$lt_LTCFLAGS
15056
15057# A language-specific compiler.
15058CC=$lt_compiler_CXX
15059
15060# Is the compiler the GNU C compiler?
15061with_gcc=$GCC_CXX
15062
15063# An ERE matcher.
15064EGREP=$lt_EGREP
15065
15066# The linker used to build libraries.
15067LD=$lt_LD_CXX
15068
15069# Whether we need hard or soft links.
15070LN_S=$lt_LN_S
15071
15072# A BSD-compatible nm program.
15073NM=$lt_NM
15074
15075# A symbol stripping program
15076STRIP=$lt_STRIP
15077
15078# Used to examine libraries when file_magic_cmd begins "file"
15079MAGIC_CMD=$MAGIC_CMD
15080
15081# Used on cygwin: DLL creation program.
15082DLLTOOL="$DLLTOOL"
15083
15084# Used on cygwin: object dumper.
15085OBJDUMP="$OBJDUMP"
15086
15087# Used on cygwin: assembler.
15088AS="$AS"
15089
15090# The name of the directory that contains temporary libtool files.
15091objdir=$objdir
15092
15093# How to create reloadable object files.
15094reload_flag=$lt_reload_flag
15095reload_cmds=$lt_reload_cmds
15096
15097# How to pass a linker flag through the compiler.
15098wl=$lt_lt_prog_compiler_wl_CXX
15099
15100# Object file suffix (normally "o").
15101objext="$ac_objext"
15102
15103# Old archive suffix (normally "a").
15104libext="$libext"
15105
15106# Shared library suffix (normally ".so").
15107shrext_cmds='$shrext_cmds'
15108
15109# Executable file suffix (normally "").
15110exeext="$exeext"
15111
15112# Additional compiler flags for building library objects.
15113pic_flag=$lt_lt_prog_compiler_pic_CXX
15114pic_mode=$pic_mode
15115
15116# What is the maximum length of a command?
15117max_cmd_len=$lt_cv_sys_max_cmd_len
15118
15119# Does compiler simultaneously support -c and -o options?
15120compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15121
15122# Must we lock files when doing compilation?
15123need_locks=$lt_need_locks
15124
15125# Do we need the lib prefix for modules?
15126need_lib_prefix=$need_lib_prefix
15127
15128# Do we need a version for libraries?
15129need_version=$need_version
15130
15131# Whether dlopen is supported.
15132dlopen_support=$enable_dlopen
15133
15134# Whether dlopen of programs is supported.
15135dlopen_self=$enable_dlopen_self
15136
15137# Whether dlopen of statically linked programs is supported.
15138dlopen_self_static=$enable_dlopen_self_static
15139
15140# Compiler flag to prevent dynamic linking.
15141link_static_flag=$lt_lt_prog_compiler_static_CXX
15142
15143# Compiler flag to turn off builtin functions.
15144no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15145
15146# Compiler flag to allow reflexive dlopens.
15147export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15148
15149# Compiler flag to generate shared objects directly from archives.
15150whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15151
15152# Compiler flag to generate thread-safe objects.
15153thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15154
15155# Library versioning type.
15156version_type=$version_type
15157
15158# Format of library name prefix.
15159libname_spec=$lt_libname_spec
15160
15161# List of archive names.  First name is the real one, the rest are links.
15162# The last name is the one that the linker finds with -lNAME.
15163library_names_spec=$lt_library_names_spec
15164
15165# The coded name of the library, if different from the real name.
15166soname_spec=$lt_soname_spec
15167
15168# Commands used to build and install an old-style archive.
15169RANLIB=$lt_RANLIB
15170old_archive_cmds=$lt_old_archive_cmds_CXX
15171old_postinstall_cmds=$lt_old_postinstall_cmds
15172old_postuninstall_cmds=$lt_old_postuninstall_cmds
15173
15174# Create an old-style archive from a shared archive.
15175old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15176
15177# Create a temporary old-style archive to link instead of a shared archive.
15178old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15179
15180# Commands used to build and install a shared archive.
15181archive_cmds=$lt_archive_cmds_CXX
15182archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15183postinstall_cmds=$lt_postinstall_cmds
15184postuninstall_cmds=$lt_postuninstall_cmds
15185
15186# Commands used to build a loadable module (assumed same as above if empty)
15187module_cmds=$lt_module_cmds_CXX
15188module_expsym_cmds=$lt_module_expsym_cmds_CXX
15189
15190# Commands to strip libraries.
15191old_striplib=$lt_old_striplib
15192striplib=$lt_striplib
15193
15194# Dependencies to place before the objects being linked to create a
15195# shared library.
15196predep_objects=$lt_predep_objects_CXX
15197
15198# Dependencies to place after the objects being linked to create a
15199# shared library.
15200postdep_objects=$lt_postdep_objects_CXX
15201
15202# Dependencies to place before the objects being linked to create a
15203# shared library.
15204predeps=$lt_predeps_CXX
15205
15206# Dependencies to place after the objects being linked to create a
15207# shared library.
15208postdeps=$lt_postdeps_CXX
15209
15210# The library search path used internally by the compiler when linking
15211# a shared library.
15212compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15213
15214# Method to check whether dependent libraries are shared objects.
15215deplibs_check_method=$lt_deplibs_check_method
15216
15217# Command to use when deplibs_check_method == file_magic.
15218file_magic_cmd=$lt_file_magic_cmd
15219
15220# Flag that allows shared libraries with undefined symbols to be built.
15221allow_undefined_flag=$lt_allow_undefined_flag_CXX
15222
15223# Flag that forces no undefined symbols.
15224no_undefined_flag=$lt_no_undefined_flag_CXX
15225
15226# Commands used to finish a libtool library installation in a directory.
15227finish_cmds=$lt_finish_cmds
15228
15229# Same as above, but a single script fragment to be evaled but not shown.
15230finish_eval=$lt_finish_eval
15231
15232# Take the output of nm and produce a listing of raw symbols and C names.
15233global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15234
15235# Transform the output of nm in a proper C declaration
15236global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15237
15238# Transform the output of nm in a C name address pair
15239global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15240
15241# This is the shared library runtime path variable.
15242runpath_var=$runpath_var
15243
15244# This is the shared library path variable.
15245shlibpath_var=$shlibpath_var
15246
15247# Is shlibpath searched before the hard-coded library search path?
15248shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15249
15250# How to hardcode a shared library path into an executable.
15251hardcode_action=$hardcode_action_CXX
15252
15253# Whether we should hardcode library paths into libraries.
15254hardcode_into_libs=$hardcode_into_libs
15255
15256# Flag to hardcode \$libdir into a binary during linking.
15257# This must work even if \$libdir does not exist.
15258hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15259
15260# If ld is used when linking, flag to hardcode \$libdir into
15261# a binary during linking. This must work even if \$libdir does
15262# not exist.
15263hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15264
15265# Whether we need a single -rpath flag with a separated argument.
15266hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15267
15268# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15269# resulting binary.
15270hardcode_direct=$hardcode_direct_CXX
15271
15272# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15273# resulting binary.
15274hardcode_minus_L=$hardcode_minus_L_CXX
15275
15276# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15277# the resulting binary.
15278hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15279
15280# Set to yes if building a shared library automatically hardcodes DIR into the library
15281# and all subsequent libraries and executables linked against it.
15282hardcode_automatic=$hardcode_automatic_CXX
15283
15284# Variables whose values should be saved in libtool wrapper scripts and
15285# restored at relink time.
15286variables_saved_for_relink="$variables_saved_for_relink"
15287
15288# Whether libtool must link a program against all its dependency libraries.
15289link_all_deplibs=$link_all_deplibs_CXX
15290
15291# Compile-time system search path for libraries
15292sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15293
15294# Run-time system search path for libraries
15295sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15296
15297# Fix the shell variable \$srcfile for the compiler.
15298fix_srcfile_path="$fix_srcfile_path_CXX"
15299
15300# Set to yes if exported symbols are required.
15301always_export_symbols=$always_export_symbols_CXX
15302
15303# The commands to list exported symbols.
15304export_symbols_cmds=$lt_export_symbols_cmds_CXX
15305
15306# The commands to extract the exported symbol list from a shared archive.
15307extract_expsyms_cmds=$lt_extract_expsyms_cmds
15308
15309# Symbols that should not be listed in the preloaded symbols.
15310exclude_expsyms=$lt_exclude_expsyms_CXX
15311
15312# Symbols that must always be exported.
15313include_expsyms=$lt_include_expsyms_CXX
15314
15315# ### END LIBTOOL TAG CONFIG: $tagname
15316
15317__EOF__
15318
15319
15320else
15321  # If there is no Makefile yet, we rely on a make rule to execute
15322  # `config.status --recheck' to rerun these tests and create the
15323  # libtool script then.
15324  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15325  if test -f "$ltmain_in"; then
15326    test -f Makefile && make "$ltmain"
15327  fi
15328fi
15329
15330
15331ac_ext=c
15332ac_cpp='$CPP $CPPFLAGS'
15333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15335ac_compiler_gnu=$ac_cv_c_compiler_gnu
15336
15337CC=$lt_save_CC
15338LDCXX=$LD
15339LD=$lt_save_LD
15340GCC=$lt_save_GCC
15341with_gnu_ldcxx=$with_gnu_ld
15342with_gnu_ld=$lt_save_with_gnu_ld
15343lt_cv_path_LDCXX=$lt_cv_path_LD
15344lt_cv_path_LD=$lt_save_path_LD
15345lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15346lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15347
15348	else
15349	  tagname=""
15350	fi
15351	;;
15352
15353      F77)
15354	if test -n "$F77" && test "X$F77" != "Xno"; then
15355
15356ac_ext=f
15357ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15358ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15359ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15360
15361
15362archive_cmds_need_lc_F77=no
15363allow_undefined_flag_F77=
15364always_export_symbols_F77=no
15365archive_expsym_cmds_F77=
15366export_dynamic_flag_spec_F77=
15367hardcode_direct_F77=no
15368hardcode_libdir_flag_spec_F77=
15369hardcode_libdir_flag_spec_ld_F77=
15370hardcode_libdir_separator_F77=
15371hardcode_minus_L_F77=no
15372hardcode_automatic_F77=no
15373module_cmds_F77=
15374module_expsym_cmds_F77=
15375link_all_deplibs_F77=unknown
15376old_archive_cmds_F77=$old_archive_cmds
15377no_undefined_flag_F77=
15378whole_archive_flag_spec_F77=
15379enable_shared_with_static_runtimes_F77=no
15380
15381# Source file extension for f77 test sources.
15382ac_ext=f
15383
15384# Object file extension for compiled f77 test sources.
15385objext=o
15386objext_F77=$objext
15387
15388# Code to be used in simple compile tests
15389lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15390
15391# Code to be used in simple link tests
15392lt_simple_link_test_code="      program t\n      end\n"
15393
15394# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15395
15396# If no C compiler was specified, use CC.
15397LTCC=${LTCC-"$CC"}
15398
15399# If no C compiler flags were specified, use CFLAGS.
15400LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15401
15402# Allow CC to be a program name with arguments.
15403compiler=$CC
15404
15405
15406# save warnings/boilerplate of simple test code
15407ac_outfile=conftest.$ac_objext
15408printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15409eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15410_lt_compiler_boilerplate=`cat conftest.err`
15411$rm conftest*
15412
15413ac_outfile=conftest.$ac_objext
15414printf "$lt_simple_link_test_code" >conftest.$ac_ext
15415eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15416_lt_linker_boilerplate=`cat conftest.err`
15417$rm conftest*
15418
15419
15420# Allow CC to be a program name with arguments.
15421lt_save_CC="$CC"
15422CC=${F77-"f77"}
15423compiler=$CC
15424compiler_F77=$CC
15425for cc_temp in $compiler""; do
15426  case $cc_temp in
15427    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15428    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15429    \-*) ;;
15430    *) break;;
15431  esac
15432done
15433cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15434
15435
15436{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15437echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15438{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
15439echo "${ECHO_T}$can_build_shared" >&6; }
15440
15441{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15442echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15443test "$can_build_shared" = "no" && enable_shared=no
15444
15445# On AIX, shared libraries and static libraries use the same namespace, and
15446# are all built from PIC.
15447case $host_os in
15448aix3*)
15449  test "$enable_shared" = yes && enable_static=no
15450  if test -n "$RANLIB"; then
15451    archive_cmds="$archive_cmds~\$RANLIB \$lib"
15452    postinstall_cmds='$RANLIB $lib'
15453  fi
15454  ;;
15455aix4* | aix5*)
15456  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15457    test "$enable_shared" = yes && enable_static=no
15458  fi
15459  ;;
15460esac
15461{ echo "$as_me:$LINENO: result: $enable_shared" >&5
15462echo "${ECHO_T}$enable_shared" >&6; }
15463
15464{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15465echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15466# Make sure either enable_shared or enable_static is yes.
15467test "$enable_shared" = yes || enable_static=yes
15468{ echo "$as_me:$LINENO: result: $enable_static" >&5
15469echo "${ECHO_T}$enable_static" >&6; }
15470
15471GCC_F77="$G77"
15472LD_F77="$LD"
15473
15474lt_prog_compiler_wl_F77=
15475lt_prog_compiler_pic_F77=
15476lt_prog_compiler_static_F77=
15477
15478{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15479echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15480
15481  if test "$GCC" = yes; then
15482    lt_prog_compiler_wl_F77='-Wl,'
15483    lt_prog_compiler_static_F77='-static'
15484
15485    case $host_os in
15486      aix*)
15487      # All AIX code is PIC.
15488      if test "$host_cpu" = ia64; then
15489	# AIX 5 now supports IA64 processor
15490	lt_prog_compiler_static_F77='-Bstatic'
15491      fi
15492      ;;
15493
15494    amigaos*)
15495      # FIXME: we need at least 68020 code to build shared libraries, but
15496      # adding the `-m68020' flag to GCC prevents building anything better,
15497      # like `-m68040'.
15498      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15499      ;;
15500
15501    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15502      # PIC is the default for these OSes.
15503      ;;
15504
15505    mingw* | pw32* | os2*)
15506      # This hack is so that the source file can tell whether it is being
15507      # built for inclusion in a dll (and should export symbols for example).
15508      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15509      ;;
15510
15511    darwin* | rhapsody*)
15512      # PIC is the default on this platform
15513      # Common symbols not allowed in MH_DYLIB files
15514      lt_prog_compiler_pic_F77='-fno-common'
15515      ;;
15516
15517    interix3*)
15518      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15519      # Instead, we relocate shared libraries at runtime.
15520      ;;
15521
15522    msdosdjgpp*)
15523      # Just because we use GCC doesn't mean we suddenly get shared libraries
15524      # on systems that don't support them.
15525      lt_prog_compiler_can_build_shared_F77=no
15526      enable_shared=no
15527      ;;
15528
15529    sysv4*MP*)
15530      if test -d /usr/nec; then
15531	lt_prog_compiler_pic_F77=-Kconform_pic
15532      fi
15533      ;;
15534
15535    hpux*)
15536      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15537      # not for PA HP-UX.
15538      case $host_cpu in
15539      hppa*64*|ia64*)
15540	# +Z the default
15541	;;
15542      *)
15543	lt_prog_compiler_pic_F77='-fPIC'
15544	;;
15545      esac
15546      ;;
15547
15548    *)
15549      lt_prog_compiler_pic_F77='-fPIC'
15550      ;;
15551    esac
15552  else
15553    # PORTME Check for flag to pass linker flags through the system compiler.
15554    case $host_os in
15555    aix*)
15556      lt_prog_compiler_wl_F77='-Wl,'
15557      if test "$host_cpu" = ia64; then
15558	# AIX 5 now supports IA64 processor
15559	lt_prog_compiler_static_F77='-Bstatic'
15560      else
15561	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15562      fi
15563      ;;
15564      darwin*)
15565        # PIC is the default on this platform
15566        # Common symbols not allowed in MH_DYLIB files
15567       case $cc_basename in
15568         xlc*)
15569         lt_prog_compiler_pic_F77='-qnocommon'
15570         lt_prog_compiler_wl_F77='-Wl,'
15571         ;;
15572       esac
15573       ;;
15574
15575    mingw* | pw32* | os2*)
15576      # This hack is so that the source file can tell whether it is being
15577      # built for inclusion in a dll (and should export symbols for example).
15578      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15579      ;;
15580
15581    hpux9* | hpux10* | hpux11*)
15582      lt_prog_compiler_wl_F77='-Wl,'
15583      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15584      # not for PA HP-UX.
15585      case $host_cpu in
15586      hppa*64*|ia64*)
15587	# +Z the default
15588	;;
15589      *)
15590	lt_prog_compiler_pic_F77='+Z'
15591	;;
15592      esac
15593      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15594      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15595      ;;
15596
15597    irix5* | irix6* | nonstopux*)
15598      lt_prog_compiler_wl_F77='-Wl,'
15599      # PIC (with -KPIC) is the default.
15600      lt_prog_compiler_static_F77='-non_shared'
15601      ;;
15602
15603    newsos6)
15604      lt_prog_compiler_pic_F77='-KPIC'
15605      lt_prog_compiler_static_F77='-Bstatic'
15606      ;;
15607
15608    linux*)
15609      case $cc_basename in
15610      icc* | ecc*)
15611	lt_prog_compiler_wl_F77='-Wl,'
15612	lt_prog_compiler_pic_F77='-KPIC'
15613	lt_prog_compiler_static_F77='-static'
15614        ;;
15615      pgcc* | pgf77* | pgf90* | pgf95*)
15616        # Portland Group compilers (*not* the Pentium gcc compiler,
15617	# which looks to be a dead project)
15618	lt_prog_compiler_wl_F77='-Wl,'
15619	lt_prog_compiler_pic_F77='-fpic'
15620	lt_prog_compiler_static_F77='-Bstatic'
15621        ;;
15622      ccc*)
15623        lt_prog_compiler_wl_F77='-Wl,'
15624        # All Alpha code is PIC.
15625        lt_prog_compiler_static_F77='-non_shared'
15626        ;;
15627      esac
15628      ;;
15629
15630    osf3* | osf4* | osf5*)
15631      lt_prog_compiler_wl_F77='-Wl,'
15632      # All OSF/1 code is PIC.
15633      lt_prog_compiler_static_F77='-non_shared'
15634      ;;
15635
15636    solaris*)
15637      lt_prog_compiler_pic_F77='-KPIC'
15638      lt_prog_compiler_static_F77='-Bstatic'
15639      case $cc_basename in
15640      f77* | f90* | f95*)
15641	lt_prog_compiler_wl_F77='-Qoption ld ';;
15642      *)
15643	lt_prog_compiler_wl_F77='-Wl,';;
15644      esac
15645      ;;
15646
15647    sunos4*)
15648      lt_prog_compiler_wl_F77='-Qoption ld '
15649      lt_prog_compiler_pic_F77='-PIC'
15650      lt_prog_compiler_static_F77='-Bstatic'
15651      ;;
15652
15653    sysv4 | sysv4.2uw2* | sysv4.3*)
15654      lt_prog_compiler_wl_F77='-Wl,'
15655      lt_prog_compiler_pic_F77='-KPIC'
15656      lt_prog_compiler_static_F77='-Bstatic'
15657      ;;
15658
15659    sysv4*MP*)
15660      if test -d /usr/nec ;then
15661	lt_prog_compiler_pic_F77='-Kconform_pic'
15662	lt_prog_compiler_static_F77='-Bstatic'
15663      fi
15664      ;;
15665
15666    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15667      lt_prog_compiler_wl_F77='-Wl,'
15668      lt_prog_compiler_pic_F77='-KPIC'
15669      lt_prog_compiler_static_F77='-Bstatic'
15670      ;;
15671
15672    unicos*)
15673      lt_prog_compiler_wl_F77='-Wl,'
15674      lt_prog_compiler_can_build_shared_F77=no
15675      ;;
15676
15677    uts4*)
15678      lt_prog_compiler_pic_F77='-pic'
15679      lt_prog_compiler_static_F77='-Bstatic'
15680      ;;
15681
15682    *)
15683      lt_prog_compiler_can_build_shared_F77=no
15684      ;;
15685    esac
15686  fi
15687
15688{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15689echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15690
15691#
15692# Check to make sure the PIC flag actually works.
15693#
15694if test -n "$lt_prog_compiler_pic_F77"; then
15695
15696{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15697echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15698if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15699  echo $ECHO_N "(cached) $ECHO_C" >&6
15700else
15701  lt_prog_compiler_pic_works_F77=no
15702  ac_outfile=conftest.$ac_objext
15703   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15704   lt_compiler_flag="$lt_prog_compiler_pic_F77"
15705   # Insert the option either (1) after the last *FLAGS variable, or
15706   # (2) before a word containing "conftest.", or (3) at the end.
15707   # Note that $ac_compile itself does not contain backslashes and begins
15708   # with a dollar sign (not a hyphen), so the echo should work correctly.
15709   # The option is referenced via a variable to avoid confusing sed.
15710   lt_compile=`echo "$ac_compile" | $SED \
15711   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15712   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15713   -e 's:$: $lt_compiler_flag:'`
15714   (eval echo "\"\$as_me:15714: $lt_compile\"" >&5)
15715   (eval "$lt_compile" 2>conftest.err)
15716   ac_status=$?
15717   cat conftest.err >&5
15718   echo "$as_me:15718: \$? = $ac_status" >&5
15719   if (exit $ac_status) && test -s "$ac_outfile"; then
15720     # The compiler can only warn and ignore the option if not recognized
15721     # So say no if there are warnings other than the usual output.
15722     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15723     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15724     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15725       lt_prog_compiler_pic_works_F77=yes
15726     fi
15727   fi
15728   $rm conftest*
15729
15730fi
15731{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15732echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15733
15734if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15735    case $lt_prog_compiler_pic_F77 in
15736     "" | " "*) ;;
15737     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15738     esac
15739else
15740    lt_prog_compiler_pic_F77=
15741     lt_prog_compiler_can_build_shared_F77=no
15742fi
15743
15744fi
15745case $host_os in
15746  # For platforms which do not support PIC, -DPIC is meaningless:
15747  *djgpp*)
15748    lt_prog_compiler_pic_F77=
15749    ;;
15750  *)
15751    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15752    ;;
15753esac
15754
15755#
15756# Check to make sure the static flag actually works.
15757#
15758wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15759{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15760echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15761if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15762  echo $ECHO_N "(cached) $ECHO_C" >&6
15763else
15764  lt_prog_compiler_static_works_F77=no
15765   save_LDFLAGS="$LDFLAGS"
15766   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15767   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15768   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15769     # The linker can only warn and ignore the option if not recognized
15770     # So say no if there are warnings
15771     if test -s conftest.err; then
15772       # Append any errors to the config.log.
15773       cat conftest.err 1>&5
15774       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15775       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15776       if diff conftest.exp conftest.er2 >/dev/null; then
15777         lt_prog_compiler_static_works_F77=yes
15778       fi
15779     else
15780       lt_prog_compiler_static_works_F77=yes
15781     fi
15782   fi
15783   $rm conftest*
15784   LDFLAGS="$save_LDFLAGS"
15785
15786fi
15787{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15788echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15789
15790if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15791    :
15792else
15793    lt_prog_compiler_static_F77=
15794fi
15795
15796
15797{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15798echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15799if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15800  echo $ECHO_N "(cached) $ECHO_C" >&6
15801else
15802  lt_cv_prog_compiler_c_o_F77=no
15803   $rm -r conftest 2>/dev/null
15804   mkdir conftest
15805   cd conftest
15806   mkdir out
15807   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15808
15809   lt_compiler_flag="-o out/conftest2.$ac_objext"
15810   # Insert the option either (1) after the last *FLAGS variable, or
15811   # (2) before a word containing "conftest.", or (3) at the end.
15812   # Note that $ac_compile itself does not contain backslashes and begins
15813   # with a dollar sign (not a hyphen), so the echo should work correctly.
15814   lt_compile=`echo "$ac_compile" | $SED \
15815   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15816   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15817   -e 's:$: $lt_compiler_flag:'`
15818   (eval echo "\"\$as_me:15818: $lt_compile\"" >&5)
15819   (eval "$lt_compile" 2>out/conftest.err)
15820   ac_status=$?
15821   cat out/conftest.err >&5
15822   echo "$as_me:15822: \$? = $ac_status" >&5
15823   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15824   then
15825     # The compiler can only warn and ignore the option if not recognized
15826     # So say no if there are warnings
15827     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15828     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15829     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15830       lt_cv_prog_compiler_c_o_F77=yes
15831     fi
15832   fi
15833   chmod u+w . 2>&5
15834   $rm conftest*
15835   # SGI C++ compiler will create directory out/ii_files/ for
15836   # template instantiation
15837   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15838   $rm out/* && rmdir out
15839   cd ..
15840   rmdir conftest
15841   $rm conftest*
15842
15843fi
15844{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15845echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15846
15847
15848hard_links="nottested"
15849if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15850  # do not overwrite the value of need_locks provided by the user
15851  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15852echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15853  hard_links=yes
15854  $rm conftest*
15855  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15856  touch conftest.a
15857  ln conftest.a conftest.b 2>&5 || hard_links=no
15858  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15859  { echo "$as_me:$LINENO: result: $hard_links" >&5
15860echo "${ECHO_T}$hard_links" >&6; }
15861  if test "$hard_links" = no; then
15862    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15863echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15864    need_locks=warn
15865  fi
15866else
15867  need_locks=no
15868fi
15869
15870{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15871echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15872
15873  runpath_var=
15874  allow_undefined_flag_F77=
15875  enable_shared_with_static_runtimes_F77=no
15876  archive_cmds_F77=
15877  archive_expsym_cmds_F77=
15878  old_archive_From_new_cmds_F77=
15879  old_archive_from_expsyms_cmds_F77=
15880  export_dynamic_flag_spec_F77=
15881  whole_archive_flag_spec_F77=
15882  thread_safe_flag_spec_F77=
15883  hardcode_libdir_flag_spec_F77=
15884  hardcode_libdir_flag_spec_ld_F77=
15885  hardcode_libdir_separator_F77=
15886  hardcode_direct_F77=no
15887  hardcode_minus_L_F77=no
15888  hardcode_shlibpath_var_F77=unsupported
15889  link_all_deplibs_F77=unknown
15890  hardcode_automatic_F77=no
15891  module_cmds_F77=
15892  module_expsym_cmds_F77=
15893  always_export_symbols_F77=no
15894  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15895  # include_expsyms should be a list of space-separated symbols to be *always*
15896  # included in the symbol list
15897  include_expsyms_F77=
15898  # exclude_expsyms can be an extended regexp of symbols to exclude
15899  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15900  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15901  # as well as any symbol that contains `d'.
15902  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15903  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15904  # platforms (ab)use it in PIC code, but their linkers get confused if
15905  # the symbol is explicitly referenced.  Since portable code cannot
15906  # rely on this symbol name, it's probably fine to never include it in
15907  # preloaded symbol tables.
15908  extract_expsyms_cmds=
15909  # Just being paranoid about ensuring that cc_basename is set.
15910  for cc_temp in $compiler""; do
15911  case $cc_temp in
15912    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15913    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15914    \-*) ;;
15915    *) break;;
15916  esac
15917done
15918cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15919
15920  case $host_os in
15921  cygwin* | mingw* | pw32*)
15922    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15923    # When not using gcc, we currently assume that we are using
15924    # Microsoft Visual C++.
15925    if test "$GCC" != yes; then
15926      with_gnu_ld=no
15927    fi
15928    ;;
15929  interix*)
15930    # we just hope/assume this is gcc and not c89 (= MSVC++)
15931    with_gnu_ld=yes
15932    ;;
15933  openbsd*)
15934    with_gnu_ld=no
15935    ;;
15936  esac
15937
15938  ld_shlibs_F77=yes
15939  if test "$with_gnu_ld" = yes; then
15940    # If archive_cmds runs LD, not CC, wlarc should be empty
15941    wlarc='${wl}'
15942
15943    # Set some defaults for GNU ld with shared library support. These
15944    # are reset later if shared libraries are not supported. Putting them
15945    # here allows them to be overridden if necessary.
15946    runpath_var=LD_RUN_PATH
15947    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15948    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15949    # ancient GNU ld didn't support --whole-archive et. al.
15950    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15951	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15952      else
15953  	whole_archive_flag_spec_F77=
15954    fi
15955    supports_anon_versioning=no
15956    case `$LD -v 2>/dev/null` in
15957      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15958      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15959      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15960      *\ 2.11.*) ;; # other 2.11 versions
15961      *) supports_anon_versioning=yes ;;
15962    esac
15963
15964    # See if GNU ld supports shared libraries.
15965    case $host_os in
15966    aix3* | aix4* | aix5*)
15967      # On AIX/PPC, the GNU linker is very broken
15968      if test "$host_cpu" != ia64; then
15969	ld_shlibs_F77=no
15970	cat <<EOF 1>&2
15971
15972*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15973*** to be unable to reliably create shared libraries on AIX.
15974*** Therefore, libtool is disabling shared libraries support.  If you
15975*** really care for shared libraries, you may want to modify your PATH
15976*** so that a non-GNU linker is found, and then restart.
15977
15978EOF
15979      fi
15980      ;;
15981
15982    amigaos*)
15983      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15984      hardcode_libdir_flag_spec_F77='-L$libdir'
15985      hardcode_minus_L_F77=yes
15986
15987      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15988      # that the semantics of dynamic libraries on AmigaOS, at least up
15989      # to version 4, is to share data among multiple programs linked
15990      # with the same dynamic library.  Since this doesn't match the
15991      # behavior of shared libraries on other platforms, we can't use
15992      # them.
15993      ld_shlibs_F77=no
15994      ;;
15995
15996    beos*)
15997      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15998	allow_undefined_flag_F77=unsupported
15999	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16000	# support --undefined.  This deserves some investigation.  FIXME
16001	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16002      else
16003	ld_shlibs_F77=no
16004      fi
16005      ;;
16006
16007    cygwin* | mingw* | pw32*)
16008      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16009      # as there is no search path for DLLs.
16010      hardcode_libdir_flag_spec_F77='-L$libdir'
16011      allow_undefined_flag_F77=unsupported
16012      always_export_symbols_F77=no
16013      enable_shared_with_static_runtimes_F77=yes
16014      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16015
16016      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16017        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16018	# If the export-symbols file already is a .def file (1st line
16019	# is EXPORTS), use it as is; otherwise, prepend...
16020	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16021	  cp $export_symbols $output_objdir/$soname.def;
16022	else
16023	  echo EXPORTS > $output_objdir/$soname.def;
16024	  cat $export_symbols >> $output_objdir/$soname.def;
16025	fi~
16026	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16027      else
16028	ld_shlibs_F77=no
16029      fi
16030      ;;
16031
16032    interix3*)
16033      hardcode_direct_F77=no
16034      hardcode_shlibpath_var_F77=no
16035      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16036      export_dynamic_flag_spec_F77='${wl}-E'
16037      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16038      # Instead, shared libraries are loaded at an image base (0x10000000 by
16039      # default) and relocated if they conflict, which is a slow very memory
16040      # consuming and fragmenting process.  To avoid this, we pick a random,
16041      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16042      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16043      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16044      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16045      ;;
16046
16047    linux*)
16048      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16049	tmp_addflag=
16050	case $cc_basename,$host_cpu in
16051	pgcc*)				# Portland Group C compiler
16052	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16053	  tmp_addflag=' $pic_flag'
16054	  ;;
16055	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16056	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16057	  tmp_addflag=' $pic_flag -Mnomain' ;;
16058	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16059	  tmp_addflag=' -i_dynamic' ;;
16060	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16061	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16062	ifc* | ifort*)			# Intel Fortran compiler
16063	  tmp_addflag=' -nofor_main' ;;
16064	esac
16065	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16066
16067	if test $supports_anon_versioning = yes; then
16068	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16069  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16070  $echo "local: *; };" >> $output_objdir/$libname.ver~
16071	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16072	fi
16073      else
16074	ld_shlibs_F77=no
16075      fi
16076      ;;
16077
16078    netbsd*)
16079      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16080	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16081	wlarc=
16082      else
16083	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16084	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16085      fi
16086      ;;
16087
16088    solaris*)
16089      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16090	ld_shlibs_F77=no
16091	cat <<EOF 1>&2
16092
16093*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16094*** create shared libraries on Solaris systems.  Therefore, libtool
16095*** is disabling shared libraries support.  We urge you to upgrade GNU
16096*** binutils to release 2.9.1 or newer.  Another option is to modify
16097*** your PATH or compiler configuration so that the native linker is
16098*** used, and then restart.
16099
16100EOF
16101      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16102	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16103	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16104      else
16105	ld_shlibs_F77=no
16106      fi
16107      ;;
16108
16109    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16110      case `$LD -v 2>&1` in
16111        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16112	ld_shlibs_F77=no
16113	cat <<_LT_EOF 1>&2
16114
16115*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16116*** reliably create shared libraries on SCO systems.  Therefore, libtool
16117*** is disabling shared libraries support.  We urge you to upgrade GNU
16118*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16119*** your PATH or compiler configuration so that the native linker is
16120*** used, and then restart.
16121
16122_LT_EOF
16123	;;
16124	*)
16125	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16126	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16127	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16128	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16129	  else
16130	    ld_shlibs_F77=no
16131	  fi
16132	;;
16133      esac
16134      ;;
16135
16136    sunos4*)
16137      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16138      wlarc=
16139      hardcode_direct_F77=yes
16140      hardcode_shlibpath_var_F77=no
16141      ;;
16142
16143    *)
16144      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16145	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16146	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16147      else
16148	ld_shlibs_F77=no
16149      fi
16150      ;;
16151    esac
16152
16153    if test "$ld_shlibs_F77" = no; then
16154      runpath_var=
16155      hardcode_libdir_flag_spec_F77=
16156      export_dynamic_flag_spec_F77=
16157      whole_archive_flag_spec_F77=
16158    fi
16159  else
16160    # PORTME fill in a description of your system's linker (not GNU ld)
16161    case $host_os in
16162    aix3*)
16163      allow_undefined_flag_F77=unsupported
16164      always_export_symbols_F77=yes
16165      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16166      # Note: this linker hardcodes the directories in LIBPATH if there
16167      # are no directories specified by -L.
16168      hardcode_minus_L_F77=yes
16169      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16170	# Neither direct hardcoding nor static linking is supported with a
16171	# broken collect2.
16172	hardcode_direct_F77=unsupported
16173      fi
16174      ;;
16175
16176    aix4* | aix5*)
16177      if test "$host_cpu" = ia64; then
16178	# On IA64, the linker does run time linking by default, so we don't
16179	# have to do anything special.
16180	aix_use_runtimelinking=no
16181	exp_sym_flag='-Bexport'
16182	no_entry_flag=""
16183      else
16184	# If we're using GNU nm, then we don't want the "-C" option.
16185	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16186	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16187	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16188	else
16189	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16190	fi
16191	aix_use_runtimelinking=no
16192
16193	# Test if we are trying to use run time linking or normal
16194	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16195	# need to do runtime linking.
16196	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16197	  for ld_flag in $LDFLAGS; do
16198  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16199  	    aix_use_runtimelinking=yes
16200  	    break
16201  	  fi
16202	  done
16203	  ;;
16204	esac
16205
16206	exp_sym_flag='-bexport'
16207	no_entry_flag='-bnoentry'
16208      fi
16209
16210      # When large executables or shared objects are built, AIX ld can
16211      # have problems creating the table of contents.  If linking a library
16212      # or program results in "error TOC overflow" add -mminimal-toc to
16213      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16214      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16215
16216      archive_cmds_F77=''
16217      hardcode_direct_F77=yes
16218      hardcode_libdir_separator_F77=':'
16219      link_all_deplibs_F77=yes
16220
16221      if test "$GCC" = yes; then
16222	case $host_os in aix4.[012]|aix4.[012].*)
16223	# We only want to do this on AIX 4.2 and lower, the check
16224	# below for broken collect2 doesn't work under 4.3+
16225	  collect2name=`${CC} -print-prog-name=collect2`
16226	  if test -f "$collect2name" && \
16227  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16228	  then
16229  	  # We have reworked collect2
16230  	  hardcode_direct_F77=yes
16231	  else
16232  	  # We have old collect2
16233  	  hardcode_direct_F77=unsupported
16234  	  # It fails to find uninstalled libraries when the uninstalled
16235  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16236  	  # to unsupported forces relinking
16237  	  hardcode_minus_L_F77=yes
16238  	  hardcode_libdir_flag_spec_F77='-L$libdir'
16239  	  hardcode_libdir_separator_F77=
16240	  fi
16241	  ;;
16242	esac
16243	shared_flag='-shared'
16244	if test "$aix_use_runtimelinking" = yes; then
16245	  shared_flag="$shared_flag "'${wl}-G'
16246	fi
16247      else
16248	# not using gcc
16249	if test "$host_cpu" = ia64; then
16250  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16251  	# chokes on -Wl,-G. The following line is correct:
16252	  shared_flag='-G'
16253	else
16254	  if test "$aix_use_runtimelinking" = yes; then
16255	    shared_flag='${wl}-G'
16256	  else
16257	    shared_flag='${wl}-bM:SRE'
16258	  fi
16259	fi
16260      fi
16261
16262      # It seems that -bexpall does not export symbols beginning with
16263      # underscore (_), so it is better to generate a list of symbols to export.
16264      always_export_symbols_F77=yes
16265      if test "$aix_use_runtimelinking" = yes; then
16266	# Warning - without using the other runtime loading flags (-brtl),
16267	# -berok will link without error, but may produce a broken library.
16268	allow_undefined_flag_F77='-berok'
16269       # Determine the default libpath from the value encoded in an empty executable.
16270       cat >conftest.$ac_ext <<_ACEOF
16271      program main
16272
16273      end
16274_ACEOF
16275rm -f conftest.$ac_objext conftest$ac_exeext
16276if { (ac_try="$ac_link"
16277case "(($ac_try" in
16278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16279  *) ac_try_echo=$ac_try;;
16280esac
16281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16282  (eval "$ac_link") 2>conftest.er1
16283  ac_status=$?
16284  grep -v '^ *+' conftest.er1 >conftest.err
16285  rm -f conftest.er1
16286  cat conftest.err >&5
16287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288  (exit $ac_status); } && {
16289	 test -z "$ac_f77_werror_flag" ||
16290	 test ! -s conftest.err
16291       } && test -s conftest$ac_exeext &&
16292       $as_test_x conftest$ac_exeext; then
16293
16294aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16295}'`
16296# Check for a 64-bit object if we didn't find anything.
16297if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16298}'`; fi
16299else
16300  echo "$as_me: failed program was:" >&5
16301sed 's/^/| /' conftest.$ac_ext >&5
16302
16303
16304fi
16305
16306rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16307      conftest$ac_exeext conftest.$ac_ext
16308if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16309
16310       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16311	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16312       else
16313	if test "$host_cpu" = ia64; then
16314	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16315	  allow_undefined_flag_F77="-z nodefs"
16316	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16317	else
16318	 # Determine the default libpath from the value encoded in an empty executable.
16319	 cat >conftest.$ac_ext <<_ACEOF
16320      program main
16321
16322      end
16323_ACEOF
16324rm -f conftest.$ac_objext conftest$ac_exeext
16325if { (ac_try="$ac_link"
16326case "(($ac_try" in
16327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328  *) ac_try_echo=$ac_try;;
16329esac
16330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331  (eval "$ac_link") 2>conftest.er1
16332  ac_status=$?
16333  grep -v '^ *+' conftest.er1 >conftest.err
16334  rm -f conftest.er1
16335  cat conftest.err >&5
16336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337  (exit $ac_status); } && {
16338	 test -z "$ac_f77_werror_flag" ||
16339	 test ! -s conftest.err
16340       } && test -s conftest$ac_exeext &&
16341       $as_test_x conftest$ac_exeext; then
16342
16343aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16344}'`
16345# Check for a 64-bit object if we didn't find anything.
16346if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16347}'`; fi
16348else
16349  echo "$as_me: failed program was:" >&5
16350sed 's/^/| /' conftest.$ac_ext >&5
16351
16352
16353fi
16354
16355rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16356      conftest$ac_exeext conftest.$ac_ext
16357if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16358
16359	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16360	  # Warning - without using the other run time loading flags,
16361	  # -berok will link without error, but may produce a broken library.
16362	  no_undefined_flag_F77=' ${wl}-bernotok'
16363	  allow_undefined_flag_F77=' ${wl}-berok'
16364	  # Exported symbols can be pulled into shared objects from archives
16365	  whole_archive_flag_spec_F77='$convenience'
16366	  archive_cmds_need_lc_F77=yes
16367	  # This is similar to how AIX traditionally builds its shared libraries.
16368	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16369	fi
16370      fi
16371      ;;
16372
16373    amigaos*)
16374      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16375      hardcode_libdir_flag_spec_F77='-L$libdir'
16376      hardcode_minus_L_F77=yes
16377      # see comment about different semantics on the GNU ld section
16378      ld_shlibs_F77=no
16379      ;;
16380
16381    bsdi[45]*)
16382      export_dynamic_flag_spec_F77=-rdynamic
16383      ;;
16384
16385    cygwin* | mingw* | pw32*)
16386      # When not using gcc, we currently assume that we are using
16387      # Microsoft Visual C++.
16388      # hardcode_libdir_flag_spec is actually meaningless, as there is
16389      # no search path for DLLs.
16390      hardcode_libdir_flag_spec_F77=' '
16391      allow_undefined_flag_F77=unsupported
16392      # Tell ltmain to make .lib files, not .a files.
16393      libext=lib
16394      # Tell ltmain to make .dll files, not .so files.
16395      shrext_cmds=".dll"
16396      # FIXME: Setting linknames here is a bad hack.
16397      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16398      # The linker will automatically build a .lib file if we build a DLL.
16399      old_archive_From_new_cmds_F77='true'
16400      # FIXME: Should let the user specify the lib program.
16401      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16402      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16403      enable_shared_with_static_runtimes_F77=yes
16404      ;;
16405
16406    darwin* | rhapsody*)
16407      case $host_os in
16408        rhapsody* | darwin1.[012])
16409         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16410         ;;
16411       *) # Darwin 1.3 on
16412         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16413           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16414         else
16415           case ${MACOSX_DEPLOYMENT_TARGET} in
16416             10.[012])
16417               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16418               ;;
16419             10.*)
16420               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16421               ;;
16422           esac
16423         fi
16424         ;;
16425      esac
16426      archive_cmds_need_lc_F77=no
16427      hardcode_direct_F77=no
16428      hardcode_automatic_F77=yes
16429      hardcode_shlibpath_var_F77=unsupported
16430      whole_archive_flag_spec_F77=''
16431      link_all_deplibs_F77=yes
16432    if test "$GCC" = yes ; then
16433    	output_verbose_link_cmd='echo'
16434        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16435      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16436      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16437      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16438      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16439    else
16440      case $cc_basename in
16441        xlc*)
16442         output_verbose_link_cmd='echo'
16443         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16444         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16445          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16446         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16447          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16448          ;;
16449       *)
16450         ld_shlibs_F77=no
16451          ;;
16452      esac
16453    fi
16454      ;;
16455
16456    dgux*)
16457      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16458      hardcode_libdir_flag_spec_F77='-L$libdir'
16459      hardcode_shlibpath_var_F77=no
16460      ;;
16461
16462    freebsd1*)
16463      ld_shlibs_F77=no
16464      ;;
16465
16466    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16467    # support.  Future versions do this automatically, but an explicit c++rt0.o
16468    # does not break anything, and helps significantly (at the cost of a little
16469    # extra space).
16470    freebsd2.2*)
16471      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16472      hardcode_libdir_flag_spec_F77='-R$libdir'
16473      hardcode_direct_F77=yes
16474      hardcode_shlibpath_var_F77=no
16475      ;;
16476
16477    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16478    freebsd2*)
16479      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16480      hardcode_direct_F77=yes
16481      hardcode_minus_L_F77=yes
16482      hardcode_shlibpath_var_F77=no
16483      ;;
16484
16485    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16486    freebsd* | kfreebsd*-gnu | dragonfly*)
16487      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16488      hardcode_libdir_flag_spec_F77='-R$libdir'
16489      hardcode_direct_F77=yes
16490      hardcode_shlibpath_var_F77=no
16491      ;;
16492
16493    hpux9*)
16494      if test "$GCC" = yes; then
16495	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16496      else
16497	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16498      fi
16499      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16500      hardcode_libdir_separator_F77=:
16501      hardcode_direct_F77=yes
16502
16503      # hardcode_minus_L: Not really in the search PATH,
16504      # but as the default location of the library.
16505      hardcode_minus_L_F77=yes
16506      export_dynamic_flag_spec_F77='${wl}-E'
16507      ;;
16508
16509    hpux10*)
16510      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16511	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16512      else
16513	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16514      fi
16515      if test "$with_gnu_ld" = no; then
16516	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16517	hardcode_libdir_separator_F77=:
16518
16519	hardcode_direct_F77=yes
16520	export_dynamic_flag_spec_F77='${wl}-E'
16521
16522	# hardcode_minus_L: Not really in the search PATH,
16523	# but as the default location of the library.
16524	hardcode_minus_L_F77=yes
16525      fi
16526      ;;
16527
16528    hpux11*)
16529      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16530	case $host_cpu in
16531	hppa*64*)
16532	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16533	  ;;
16534	ia64*)
16535	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16536	  ;;
16537	*)
16538	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16539	  ;;
16540	esac
16541      else
16542	case $host_cpu in
16543	hppa*64*)
16544	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16545	  ;;
16546	ia64*)
16547	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16548	  ;;
16549	*)
16550	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16551	  ;;
16552	esac
16553      fi
16554      if test "$with_gnu_ld" = no; then
16555	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16556	hardcode_libdir_separator_F77=:
16557
16558	case $host_cpu in
16559	hppa*64*|ia64*)
16560	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16561	  hardcode_direct_F77=no
16562	  hardcode_shlibpath_var_F77=no
16563	  ;;
16564	*)
16565	  hardcode_direct_F77=yes
16566	  export_dynamic_flag_spec_F77='${wl}-E'
16567
16568	  # hardcode_minus_L: Not really in the search PATH,
16569	  # but as the default location of the library.
16570	  hardcode_minus_L_F77=yes
16571	  ;;
16572	esac
16573      fi
16574      ;;
16575
16576    irix5* | irix6* | nonstopux*)
16577      if test "$GCC" = yes; then
16578	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16579      else
16580	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16581	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16582      fi
16583      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16584      hardcode_libdir_separator_F77=:
16585      link_all_deplibs_F77=yes
16586      ;;
16587
16588    netbsd*)
16589      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16590	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16591      else
16592	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16593      fi
16594      hardcode_libdir_flag_spec_F77='-R$libdir'
16595      hardcode_direct_F77=yes
16596      hardcode_shlibpath_var_F77=no
16597      ;;
16598
16599    newsos6)
16600      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16601      hardcode_direct_F77=yes
16602      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16603      hardcode_libdir_separator_F77=:
16604      hardcode_shlibpath_var_F77=no
16605      ;;
16606
16607    openbsd*)
16608      hardcode_direct_F77=yes
16609      hardcode_shlibpath_var_F77=no
16610      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16611	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16612	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16613	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16614	export_dynamic_flag_spec_F77='${wl}-E'
16615      else
16616       case $host_os in
16617	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16618	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16619	   hardcode_libdir_flag_spec_F77='-R$libdir'
16620	   ;;
16621	 *)
16622	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16623	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16624	   ;;
16625       esac
16626      fi
16627      ;;
16628
16629    os2*)
16630      hardcode_libdir_flag_spec_F77='-L$libdir'
16631      hardcode_minus_L_F77=yes
16632      allow_undefined_flag_F77=unsupported
16633      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16634      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16635      ;;
16636
16637    osf3*)
16638      if test "$GCC" = yes; then
16639	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16640	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16641      else
16642	allow_undefined_flag_F77=' -expect_unresolved \*'
16643	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16644      fi
16645      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16646      hardcode_libdir_separator_F77=:
16647      ;;
16648
16649    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16650      if test "$GCC" = yes; then
16651	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16652	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16653	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16654      else
16655	allow_undefined_flag_F77=' -expect_unresolved \*'
16656	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16657	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16658	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16659
16660	# Both c and cxx compiler support -rpath directly
16661	hardcode_libdir_flag_spec_F77='-rpath $libdir'
16662      fi
16663      hardcode_libdir_separator_F77=:
16664      ;;
16665
16666    solaris*)
16667      no_undefined_flag_F77=' -z text'
16668      if test "$GCC" = yes; then
16669	wlarc='${wl}'
16670	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16671	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16672	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16673      else
16674	wlarc=''
16675	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16676	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16677  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16678      fi
16679      hardcode_libdir_flag_spec_F77='-R$libdir'
16680      hardcode_shlibpath_var_F77=no
16681      case $host_os in
16682      solaris2.[0-5] | solaris2.[0-5].*) ;;
16683      *)
16684 	# The compiler driver will combine linker options so we
16685 	# cannot just pass the convience library names through
16686 	# without $wl, iff we do not link with $LD.
16687 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16688 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16689 	case $wlarc in
16690 	'')
16691 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16692 	*)
16693 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16694 	esac ;;
16695      esac
16696      link_all_deplibs_F77=yes
16697      ;;
16698
16699    sunos4*)
16700      if test "x$host_vendor" = xsequent; then
16701	# Use $CC to link under sequent, because it throws in some extra .o
16702	# files that make .init and .fini sections work.
16703	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16704      else
16705	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16706      fi
16707      hardcode_libdir_flag_spec_F77='-L$libdir'
16708      hardcode_direct_F77=yes
16709      hardcode_minus_L_F77=yes
16710      hardcode_shlibpath_var_F77=no
16711      ;;
16712
16713    sysv4)
16714      case $host_vendor in
16715	sni)
16716	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16717	  hardcode_direct_F77=yes # is this really true???
16718	;;
16719	siemens)
16720	  ## LD is ld it makes a PLAMLIB
16721	  ## CC just makes a GrossModule.
16722	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16723	  reload_cmds_F77='$CC -r -o $output$reload_objs'
16724	  hardcode_direct_F77=no
16725        ;;
16726	motorola)
16727	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16728	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16729	;;
16730      esac
16731      runpath_var='LD_RUN_PATH'
16732      hardcode_shlibpath_var_F77=no
16733      ;;
16734
16735    sysv4.3*)
16736      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16737      hardcode_shlibpath_var_F77=no
16738      export_dynamic_flag_spec_F77='-Bexport'
16739      ;;
16740
16741    sysv4*MP*)
16742      if test -d /usr/nec; then
16743	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16744	hardcode_shlibpath_var_F77=no
16745	runpath_var=LD_RUN_PATH
16746	hardcode_runpath_var=yes
16747	ld_shlibs_F77=yes
16748      fi
16749      ;;
16750
16751    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16752      no_undefined_flag_F77='${wl}-z,text'
16753      archive_cmds_need_lc_F77=no
16754      hardcode_shlibpath_var_F77=no
16755      runpath_var='LD_RUN_PATH'
16756
16757      if test "$GCC" = yes; then
16758	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16759	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16760      else
16761	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16762	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16763      fi
16764      ;;
16765
16766    sysv5* | sco3.2v5* | sco5v6*)
16767      # Note: We can NOT use -z defs as we might desire, because we do not
16768      # link with -lc, and that would cause any symbols used from libc to
16769      # always be unresolved, which means just about no library would
16770      # ever link correctly.  If we're not using GNU ld we use -z text
16771      # though, which does catch some bad symbols but isn't as heavy-handed
16772      # as -z defs.
16773      no_undefined_flag_F77='${wl}-z,text'
16774      allow_undefined_flag_F77='${wl}-z,nodefs'
16775      archive_cmds_need_lc_F77=no
16776      hardcode_shlibpath_var_F77=no
16777      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16778      hardcode_libdir_separator_F77=':'
16779      link_all_deplibs_F77=yes
16780      export_dynamic_flag_spec_F77='${wl}-Bexport'
16781      runpath_var='LD_RUN_PATH'
16782
16783      if test "$GCC" = yes; then
16784	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16785	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16786      else
16787	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16788	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16789      fi
16790      ;;
16791
16792    uts4*)
16793      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16794      hardcode_libdir_flag_spec_F77='-L$libdir'
16795      hardcode_shlibpath_var_F77=no
16796      ;;
16797
16798    *)
16799      ld_shlibs_F77=no
16800      ;;
16801    esac
16802  fi
16803
16804{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16805echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16806test "$ld_shlibs_F77" = no && can_build_shared=no
16807
16808#
16809# Do we need to explicitly link libc?
16810#
16811case "x$archive_cmds_need_lc_F77" in
16812x|xyes)
16813  # Assume -lc should be added
16814  archive_cmds_need_lc_F77=yes
16815
16816  if test "$enable_shared" = yes && test "$GCC" = yes; then
16817    case $archive_cmds_F77 in
16818    *'~'*)
16819      # FIXME: we may have to deal with multi-command sequences.
16820      ;;
16821    '$CC '*)
16822      # Test whether the compiler implicitly links with -lc since on some
16823      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16824      # to ld, don't add -lc before -lgcc.
16825      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16826echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16827      $rm conftest*
16828      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16829
16830      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16831  (eval $ac_compile) 2>&5
16832  ac_status=$?
16833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834  (exit $ac_status); } 2>conftest.err; then
16835        soname=conftest
16836        lib=conftest
16837        libobjs=conftest.$ac_objext
16838        deplibs=
16839        wl=$lt_prog_compiler_wl_F77
16840	pic_flag=$lt_prog_compiler_pic_F77
16841        compiler_flags=-v
16842        linker_flags=-v
16843        verstring=
16844        output_objdir=.
16845        libname=conftest
16846        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16847        allow_undefined_flag_F77=
16848        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16849  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16850  ac_status=$?
16851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852  (exit $ac_status); }
16853        then
16854	  archive_cmds_need_lc_F77=no
16855        else
16856	  archive_cmds_need_lc_F77=yes
16857        fi
16858        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16859      else
16860        cat conftest.err 1>&5
16861      fi
16862      $rm conftest*
16863      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16864echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16865      ;;
16866    esac
16867  fi
16868  ;;
16869esac
16870
16871{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16872echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16873library_names_spec=
16874libname_spec='lib$name'
16875soname_spec=
16876shrext_cmds=".so"
16877postinstall_cmds=
16878postuninstall_cmds=
16879finish_cmds=
16880finish_eval=
16881shlibpath_var=
16882shlibpath_overrides_runpath=unknown
16883version_type=none
16884dynamic_linker="$host_os ld.so"
16885sys_lib_dlsearch_path_spec="/lib /usr/lib"
16886if test "$GCC" = yes; then
16887  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16888  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16889    # if the path contains ";" then we assume it to be the separator
16890    # otherwise default to the standard path separator (i.e. ":") - it is
16891    # assumed that no part of a normal pathname contains ";" but that should
16892    # okay in the real world where ";" in dirpaths is itself problematic.
16893    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16894  else
16895    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16896  fi
16897else
16898  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16899fi
16900need_lib_prefix=unknown
16901hardcode_into_libs=no
16902
16903# when you set need_version to no, make sure it does not cause -set_version
16904# flags to be left without arguments
16905need_version=unknown
16906
16907case $host_os in
16908aix3*)
16909  version_type=linux
16910  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16911  shlibpath_var=LIBPATH
16912
16913  # AIX 3 has no versioning support, so we append a major version to the name.
16914  soname_spec='${libname}${release}${shared_ext}$major'
16915  ;;
16916
16917aix4* | aix5*)
16918  version_type=linux
16919  need_lib_prefix=no
16920  need_version=no
16921  hardcode_into_libs=yes
16922  if test "$host_cpu" = ia64; then
16923    # AIX 5 supports IA64
16924    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16925    shlibpath_var=LD_LIBRARY_PATH
16926  else
16927    # With GCC up to 2.95.x, collect2 would create an import file
16928    # for dependence libraries.  The import file would start with
16929    # the line `#! .'.  This would cause the generated library to
16930    # depend on `.', always an invalid library.  This was fixed in
16931    # development snapshots of GCC prior to 3.0.
16932    case $host_os in
16933      aix4 | aix4.[01] | aix4.[01].*)
16934      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16935	   echo ' yes '
16936	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16937	:
16938      else
16939	can_build_shared=no
16940      fi
16941      ;;
16942    esac
16943    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16944    # soname into executable. Probably we can add versioning support to
16945    # collect2, so additional links can be useful in future.
16946    if test "$aix_use_runtimelinking" = yes; then
16947      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16948      # instead of lib<name>.a to let people know that these are not
16949      # typical AIX shared libraries.
16950      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16951    else
16952      # We preserve .a as extension for shared libraries through AIX4.2
16953      # and later when we are not doing run time linking.
16954      library_names_spec='${libname}${release}.a $libname.a'
16955      soname_spec='${libname}${release}${shared_ext}$major'
16956    fi
16957    shlibpath_var=LIBPATH
16958  fi
16959  ;;
16960
16961amigaos*)
16962  library_names_spec='$libname.ixlibrary $libname.a'
16963  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16964  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'
16965  ;;
16966
16967beos*)
16968  library_names_spec='${libname}${shared_ext}'
16969  dynamic_linker="$host_os ld.so"
16970  shlibpath_var=LIBRARY_PATH
16971  ;;
16972
16973bsdi[45]*)
16974  version_type=linux
16975  need_version=no
16976  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16977  soname_spec='${libname}${release}${shared_ext}$major'
16978  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16979  shlibpath_var=LD_LIBRARY_PATH
16980  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16981  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16982  # the default ld.so.conf also contains /usr/contrib/lib and
16983  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16984  # libtool to hard-code these into programs
16985  ;;
16986
16987cygwin* | mingw* | pw32*)
16988  version_type=windows
16989  shrext_cmds=".dll"
16990  need_version=no
16991  need_lib_prefix=no
16992
16993  case $GCC,$host_os in
16994  yes,cygwin* | yes,mingw* | yes,pw32*)
16995    library_names_spec='$libname.dll.a'
16996    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16997    postinstall_cmds='base_file=`basename \${file}`~
16998      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16999      dldir=$destdir/`dirname \$dlpath`~
17000      test -d \$dldir || mkdir -p \$dldir~
17001      $install_prog $dir/$dlname \$dldir/$dlname~
17002      chmod a+x \$dldir/$dlname'
17003    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17004      dlpath=$dir/\$dldll~
17005       $rm \$dlpath'
17006    shlibpath_overrides_runpath=yes
17007
17008    case $host_os in
17009    cygwin*)
17010      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17011      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17012      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17013      ;;
17014    mingw*)
17015      # MinGW DLLs use traditional 'lib' prefix
17016      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17017      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17018      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17019        # It is most probably a Windows format PATH printed by
17020        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17021        # path with ; separators, and with drive letters. We can handle the
17022        # drive letters (cygwin fileutils understands them), so leave them,
17023        # especially as we might pass files found there to a mingw objdump,
17024        # which wouldn't understand a cygwinified path. Ahh.
17025        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17026      else
17027        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17028      fi
17029      ;;
17030    pw32*)
17031      # pw32 DLLs use 'pw' prefix rather than 'lib'
17032      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17033      ;;
17034    esac
17035    ;;
17036
17037  *)
17038    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17039    ;;
17040  esac
17041  dynamic_linker='Win32 ld.exe'
17042  # FIXME: first we should search . and the directory the executable is in
17043  shlibpath_var=PATH
17044  ;;
17045
17046darwin* | rhapsody*)
17047  dynamic_linker="$host_os dyld"
17048  version_type=darwin
17049  need_lib_prefix=no
17050  need_version=no
17051  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17052  soname_spec='${libname}${release}${major}$shared_ext'
17053  shlibpath_overrides_runpath=yes
17054  shlibpath_var=DYLD_LIBRARY_PATH
17055  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17056  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17057  if test "$GCC" = yes; then
17058    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17059  else
17060    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17061  fi
17062  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17063  ;;
17064
17065dgux*)
17066  version_type=linux
17067  need_lib_prefix=no
17068  need_version=no
17069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17070  soname_spec='${libname}${release}${shared_ext}$major'
17071  shlibpath_var=LD_LIBRARY_PATH
17072  ;;
17073
17074freebsd1*)
17075  dynamic_linker=no
17076  ;;
17077
17078kfreebsd*-gnu)
17079  version_type=linux
17080  need_lib_prefix=no
17081  need_version=no
17082  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17083  soname_spec='${libname}${release}${shared_ext}$major'
17084  shlibpath_var=LD_LIBRARY_PATH
17085  shlibpath_overrides_runpath=no
17086  hardcode_into_libs=yes
17087  dynamic_linker='GNU ld.so'
17088  ;;
17089
17090freebsd* | dragonfly*)
17091  # DragonFly does not have aout.  When/if they implement a new
17092  # versioning mechanism, adjust this.
17093  if test -x /usr/bin/objformat; then
17094    objformat=`/usr/bin/objformat`
17095  else
17096    case $host_os in
17097    freebsd[123]*) objformat=aout ;;
17098    *) objformat=elf ;;
17099    esac
17100  fi
17101  version_type=freebsd-$objformat
17102  case $version_type in
17103    freebsd-elf*)
17104      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17105      need_version=no
17106      need_lib_prefix=no
17107      ;;
17108    freebsd-*)
17109      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17110      need_version=yes
17111      ;;
17112  esac
17113  shlibpath_var=LD_LIBRARY_PATH
17114  case $host_os in
17115  freebsd2*)
17116    shlibpath_overrides_runpath=yes
17117    ;;
17118  freebsd3.[01]* | freebsdelf3.[01]*)
17119    shlibpath_overrides_runpath=yes
17120    hardcode_into_libs=yes
17121    ;;
17122  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17123  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17124    shlibpath_overrides_runpath=no
17125    hardcode_into_libs=yes
17126    ;;
17127  freebsd*) # from 4.6 on
17128    shlibpath_overrides_runpath=yes
17129    hardcode_into_libs=yes
17130    ;;
17131  esac
17132  ;;
17133
17134gnu*)
17135  version_type=linux
17136  need_lib_prefix=no
17137  need_version=no
17138  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17139  soname_spec='${libname}${release}${shared_ext}$major'
17140  shlibpath_var=LD_LIBRARY_PATH
17141  hardcode_into_libs=yes
17142  ;;
17143
17144hpux9* | hpux10* | hpux11*)
17145  # Give a soname corresponding to the major version so that dld.sl refuses to
17146  # link against other versions.
17147  version_type=sunos
17148  need_lib_prefix=no
17149  need_version=no
17150  case $host_cpu in
17151  ia64*)
17152    shrext_cmds='.so'
17153    hardcode_into_libs=yes
17154    dynamic_linker="$host_os dld.so"
17155    shlibpath_var=LD_LIBRARY_PATH
17156    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17157    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17158    soname_spec='${libname}${release}${shared_ext}$major'
17159    if test "X$HPUX_IA64_MODE" = X32; then
17160      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17161    else
17162      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17163    fi
17164    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17165    ;;
17166   hppa*64*)
17167     shrext_cmds='.sl'
17168     hardcode_into_libs=yes
17169     dynamic_linker="$host_os dld.sl"
17170     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17171     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17172     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17173     soname_spec='${libname}${release}${shared_ext}$major'
17174     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17175     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17176     ;;
17177   *)
17178    shrext_cmds='.sl'
17179    dynamic_linker="$host_os dld.sl"
17180    shlibpath_var=SHLIB_PATH
17181    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17182    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17183    soname_spec='${libname}${release}${shared_ext}$major'
17184    ;;
17185  esac
17186  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17187  postinstall_cmds='chmod 555 $lib'
17188  ;;
17189
17190interix3*)
17191  version_type=linux
17192  need_lib_prefix=no
17193  need_version=no
17194  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17195  soname_spec='${libname}${release}${shared_ext}$major'
17196  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17197  shlibpath_var=LD_LIBRARY_PATH
17198  shlibpath_overrides_runpath=no
17199  hardcode_into_libs=yes
17200  ;;
17201
17202irix5* | irix6* | nonstopux*)
17203  case $host_os in
17204    nonstopux*) version_type=nonstopux ;;
17205    *)
17206	if test "$lt_cv_prog_gnu_ld" = yes; then
17207		version_type=linux
17208	else
17209		version_type=irix
17210	fi ;;
17211  esac
17212  need_lib_prefix=no
17213  need_version=no
17214  soname_spec='${libname}${release}${shared_ext}$major'
17215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17216  case $host_os in
17217  irix5* | nonstopux*)
17218    libsuff= shlibsuff=
17219    ;;
17220  *)
17221    case $LD in # libtool.m4 will add one of these switches to LD
17222    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17223      libsuff= shlibsuff= libmagic=32-bit;;
17224    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17225      libsuff=32 shlibsuff=N32 libmagic=N32;;
17226    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17227      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17228    *) libsuff= shlibsuff= libmagic=never-match;;
17229    esac
17230    ;;
17231  esac
17232  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17233  shlibpath_overrides_runpath=no
17234  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17235  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17236  hardcode_into_libs=yes
17237  ;;
17238
17239# No shared lib support for Linux oldld, aout, or coff.
17240linux*oldld* | linux*aout* | linux*coff*)
17241  dynamic_linker=no
17242  ;;
17243
17244# This must be Linux ELF.
17245linux*)
17246  version_type=linux
17247  need_lib_prefix=no
17248  need_version=no
17249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17250  soname_spec='${libname}${release}${shared_ext}$major'
17251  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17252  shlibpath_var=LD_LIBRARY_PATH
17253  shlibpath_overrides_runpath=no
17254  # This implies no fast_install, which is unacceptable.
17255  # Some rework will be needed to allow for fast_install
17256  # before this can be enabled.
17257  hardcode_into_libs=yes
17258
17259  # Append ld.so.conf contents to the search path
17260  if test -f /etc/ld.so.conf; then
17261    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17262    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17263  fi
17264
17265  # We used to test for /lib/ld.so.1 and disable shared libraries on
17266  # powerpc, because MkLinux only supported shared libraries with the
17267  # GNU dynamic linker.  Since this was broken with cross compilers,
17268  # most powerpc-linux boxes support dynamic linking these days and
17269  # people can always --disable-shared, the test was removed, and we
17270  # assume the GNU/Linux dynamic linker is in use.
17271  dynamic_linker='GNU/Linux ld.so'
17272  ;;
17273
17274knetbsd*-gnu)
17275  version_type=linux
17276  need_lib_prefix=no
17277  need_version=no
17278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17279  soname_spec='${libname}${release}${shared_ext}$major'
17280  shlibpath_var=LD_LIBRARY_PATH
17281  shlibpath_overrides_runpath=no
17282  hardcode_into_libs=yes
17283  dynamic_linker='GNU ld.so'
17284  ;;
17285
17286netbsd*)
17287  version_type=sunos
17288  need_lib_prefix=no
17289  need_version=no
17290  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17291    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17292    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17293    dynamic_linker='NetBSD (a.out) ld.so'
17294  else
17295    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17296    soname_spec='${libname}${release}${shared_ext}$major'
17297    dynamic_linker='NetBSD ld.elf_so'
17298  fi
17299  shlibpath_var=LD_LIBRARY_PATH
17300  shlibpath_overrides_runpath=yes
17301  hardcode_into_libs=yes
17302  ;;
17303
17304newsos6)
17305  version_type=linux
17306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17307  shlibpath_var=LD_LIBRARY_PATH
17308  shlibpath_overrides_runpath=yes
17309  ;;
17310
17311nto-qnx*)
17312  version_type=linux
17313  need_lib_prefix=no
17314  need_version=no
17315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17316  soname_spec='${libname}${release}${shared_ext}$major'
17317  shlibpath_var=LD_LIBRARY_PATH
17318  shlibpath_overrides_runpath=yes
17319  ;;
17320
17321openbsd*)
17322  version_type=sunos
17323  sys_lib_dlsearch_path_spec="/usr/lib"
17324  need_lib_prefix=no
17325  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17326  case $host_os in
17327    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17328    *)                         need_version=no  ;;
17329  esac
17330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17331  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17332  shlibpath_var=LD_LIBRARY_PATH
17333  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17334    case $host_os in
17335      openbsd2.[89] | openbsd2.[89].*)
17336	shlibpath_overrides_runpath=no
17337	;;
17338      *)
17339	shlibpath_overrides_runpath=yes
17340	;;
17341      esac
17342  else
17343    shlibpath_overrides_runpath=yes
17344  fi
17345  ;;
17346
17347os2*)
17348  libname_spec='$name'
17349  shrext_cmds=".dll"
17350  need_lib_prefix=no
17351  library_names_spec='$libname${shared_ext} $libname.a'
17352  dynamic_linker='OS/2 ld.exe'
17353  shlibpath_var=LIBPATH
17354  ;;
17355
17356osf3* | osf4* | osf5*)
17357  version_type=osf
17358  need_lib_prefix=no
17359  need_version=no
17360  soname_spec='${libname}${release}${shared_ext}$major'
17361  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17362  shlibpath_var=LD_LIBRARY_PATH
17363  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17364  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17365  ;;
17366
17367solaris*)
17368  version_type=linux
17369  need_lib_prefix=no
17370  need_version=no
17371  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372  soname_spec='${libname}${release}${shared_ext}$major'
17373  shlibpath_var=LD_LIBRARY_PATH
17374  shlibpath_overrides_runpath=yes
17375  hardcode_into_libs=yes
17376  # ldd complains unless libraries are executable
17377  postinstall_cmds='chmod +x $lib'
17378  ;;
17379
17380sunos4*)
17381  version_type=sunos
17382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17383  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17384  shlibpath_var=LD_LIBRARY_PATH
17385  shlibpath_overrides_runpath=yes
17386  if test "$with_gnu_ld" = yes; then
17387    need_lib_prefix=no
17388  fi
17389  need_version=yes
17390  ;;
17391
17392sysv4 | sysv4.3*)
17393  version_type=linux
17394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17395  soname_spec='${libname}${release}${shared_ext}$major'
17396  shlibpath_var=LD_LIBRARY_PATH
17397  case $host_vendor in
17398    sni)
17399      shlibpath_overrides_runpath=no
17400      need_lib_prefix=no
17401      export_dynamic_flag_spec='${wl}-Blargedynsym'
17402      runpath_var=LD_RUN_PATH
17403      ;;
17404    siemens)
17405      need_lib_prefix=no
17406      ;;
17407    motorola)
17408      need_lib_prefix=no
17409      need_version=no
17410      shlibpath_overrides_runpath=no
17411      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17412      ;;
17413  esac
17414  ;;
17415
17416sysv4*MP*)
17417  if test -d /usr/nec ;then
17418    version_type=linux
17419    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17420    soname_spec='$libname${shared_ext}.$major'
17421    shlibpath_var=LD_LIBRARY_PATH
17422  fi
17423  ;;
17424
17425sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17426  version_type=freebsd-elf
17427  need_lib_prefix=no
17428  need_version=no
17429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17430  soname_spec='${libname}${release}${shared_ext}$major'
17431  shlibpath_var=LD_LIBRARY_PATH
17432  hardcode_into_libs=yes
17433  if test "$with_gnu_ld" = yes; then
17434    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17435    shlibpath_overrides_runpath=no
17436  else
17437    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17438    shlibpath_overrides_runpath=yes
17439    case $host_os in
17440      sco3.2v5*)
17441        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17442	;;
17443    esac
17444  fi
17445  sys_lib_dlsearch_path_spec='/usr/lib'
17446  ;;
17447
17448uts4*)
17449  version_type=linux
17450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17451  soname_spec='${libname}${release}${shared_ext}$major'
17452  shlibpath_var=LD_LIBRARY_PATH
17453  ;;
17454
17455*)
17456  dynamic_linker=no
17457  ;;
17458esac
17459{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17460echo "${ECHO_T}$dynamic_linker" >&6; }
17461test "$dynamic_linker" = no && can_build_shared=no
17462
17463variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17464if test "$GCC" = yes; then
17465  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17466fi
17467
17468{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17469echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17470hardcode_action_F77=
17471if test -n "$hardcode_libdir_flag_spec_F77" || \
17472   test -n "$runpath_var_F77" || \
17473   test "X$hardcode_automatic_F77" = "Xyes" ; then
17474
17475  # We can hardcode non-existant directories.
17476  if test "$hardcode_direct_F77" != no &&
17477     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17478     # have to relink, otherwise we might link with an installed library
17479     # when we should be linking with a yet-to-be-installed one
17480     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17481     test "$hardcode_minus_L_F77" != no; then
17482    # Linking always hardcodes the temporary library directory.
17483    hardcode_action_F77=relink
17484  else
17485    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17486    hardcode_action_F77=immediate
17487  fi
17488else
17489  # We cannot hardcode anything, or else we can only hardcode existing
17490  # directories.
17491  hardcode_action_F77=unsupported
17492fi
17493{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17494echo "${ECHO_T}$hardcode_action_F77" >&6; }
17495
17496if test "$hardcode_action_F77" = relink; then
17497  # Fast installation is not supported
17498  enable_fast_install=no
17499elif test "$shlibpath_overrides_runpath" = yes ||
17500     test "$enable_shared" = no; then
17501  # Fast installation is not necessary
17502  enable_fast_install=needless
17503fi
17504
17505
17506# The else clause should only fire when bootstrapping the
17507# libtool distribution, otherwise you forgot to ship ltmain.sh
17508# with your package, and you will get complaints that there are
17509# no rules to generate ltmain.sh.
17510if test -f "$ltmain"; then
17511  # See if we are running on zsh, and set the options which allow our commands through
17512  # without removal of \ escapes.
17513  if test -n "${ZSH_VERSION+set}" ; then
17514    setopt NO_GLOB_SUBST
17515  fi
17516  # Now quote all the things that may contain metacharacters while being
17517  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17518  # variables and quote the copies for generation of the libtool script.
17519  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17520    SED SHELL STRIP \
17521    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17522    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17523    deplibs_check_method reload_flag reload_cmds need_locks \
17524    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17525    lt_cv_sys_global_symbol_to_c_name_address \
17526    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17527    old_postinstall_cmds old_postuninstall_cmds \
17528    compiler_F77 \
17529    CC_F77 \
17530    LD_F77 \
17531    lt_prog_compiler_wl_F77 \
17532    lt_prog_compiler_pic_F77 \
17533    lt_prog_compiler_static_F77 \
17534    lt_prog_compiler_no_builtin_flag_F77 \
17535    export_dynamic_flag_spec_F77 \
17536    thread_safe_flag_spec_F77 \
17537    whole_archive_flag_spec_F77 \
17538    enable_shared_with_static_runtimes_F77 \
17539    old_archive_cmds_F77 \
17540    old_archive_from_new_cmds_F77 \
17541    predep_objects_F77 \
17542    postdep_objects_F77 \
17543    predeps_F77 \
17544    postdeps_F77 \
17545    compiler_lib_search_path_F77 \
17546    archive_cmds_F77 \
17547    archive_expsym_cmds_F77 \
17548    postinstall_cmds_F77 \
17549    postuninstall_cmds_F77 \
17550    old_archive_from_expsyms_cmds_F77 \
17551    allow_undefined_flag_F77 \
17552    no_undefined_flag_F77 \
17553    export_symbols_cmds_F77 \
17554    hardcode_libdir_flag_spec_F77 \
17555    hardcode_libdir_flag_spec_ld_F77 \
17556    hardcode_libdir_separator_F77 \
17557    hardcode_automatic_F77 \
17558    module_cmds_F77 \
17559    module_expsym_cmds_F77 \
17560    lt_cv_prog_compiler_c_o_F77 \
17561    exclude_expsyms_F77 \
17562    include_expsyms_F77; do
17563
17564    case $var in
17565    old_archive_cmds_F77 | \
17566    old_archive_from_new_cmds_F77 | \
17567    archive_cmds_F77 | \
17568    archive_expsym_cmds_F77 | \
17569    module_cmds_F77 | \
17570    module_expsym_cmds_F77 | \
17571    old_archive_from_expsyms_cmds_F77 | \
17572    export_symbols_cmds_F77 | \
17573    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17574    postinstall_cmds | postuninstall_cmds | \
17575    old_postinstall_cmds | old_postuninstall_cmds | \
17576    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17577      # Double-quote double-evaled strings.
17578      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17579      ;;
17580    *)
17581      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17582      ;;
17583    esac
17584  done
17585
17586  case $lt_echo in
17587  *'\$0 --fallback-echo"')
17588    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17589    ;;
17590  esac
17591
17592cfgfile="$ofile"
17593
17594  cat <<__EOF__ >> "$cfgfile"
17595# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17596
17597# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17598
17599# Shell to use when invoking shell scripts.
17600SHELL=$lt_SHELL
17601
17602# Whether or not to build shared libraries.
17603build_libtool_libs=$enable_shared
17604
17605# Whether or not to build static libraries.
17606build_old_libs=$enable_static
17607
17608# Whether or not to add -lc for building shared libraries.
17609build_libtool_need_lc=$archive_cmds_need_lc_F77
17610
17611# Whether or not to disallow shared libs when runtime libs are static
17612allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17613
17614# Whether or not to optimize for fast installation.
17615fast_install=$enable_fast_install
17616
17617# The host system.
17618host_alias=$host_alias
17619host=$host
17620host_os=$host_os
17621
17622# The build system.
17623build_alias=$build_alias
17624build=$build
17625build_os=$build_os
17626
17627# An echo program that does not interpret backslashes.
17628echo=$lt_echo
17629
17630# The archiver.
17631AR=$lt_AR
17632AR_FLAGS=$lt_AR_FLAGS
17633
17634# A C compiler.
17635LTCC=$lt_LTCC
17636
17637# LTCC compiler flags.
17638LTCFLAGS=$lt_LTCFLAGS
17639
17640# A language-specific compiler.
17641CC=$lt_compiler_F77
17642
17643# Is the compiler the GNU C compiler?
17644with_gcc=$GCC_F77
17645
17646# An ERE matcher.
17647EGREP=$lt_EGREP
17648
17649# The linker used to build libraries.
17650LD=$lt_LD_F77
17651
17652# Whether we need hard or soft links.
17653LN_S=$lt_LN_S
17654
17655# A BSD-compatible nm program.
17656NM=$lt_NM
17657
17658# A symbol stripping program
17659STRIP=$lt_STRIP
17660
17661# Used to examine libraries when file_magic_cmd begins "file"
17662MAGIC_CMD=$MAGIC_CMD
17663
17664# Used on cygwin: DLL creation program.
17665DLLTOOL="$DLLTOOL"
17666
17667# Used on cygwin: object dumper.
17668OBJDUMP="$OBJDUMP"
17669
17670# Used on cygwin: assembler.
17671AS="$AS"
17672
17673# The name of the directory that contains temporary libtool files.
17674objdir=$objdir
17675
17676# How to create reloadable object files.
17677reload_flag=$lt_reload_flag
17678reload_cmds=$lt_reload_cmds
17679
17680# How to pass a linker flag through the compiler.
17681wl=$lt_lt_prog_compiler_wl_F77
17682
17683# Object file suffix (normally "o").
17684objext="$ac_objext"
17685
17686# Old archive suffix (normally "a").
17687libext="$libext"
17688
17689# Shared library suffix (normally ".so").
17690shrext_cmds='$shrext_cmds'
17691
17692# Executable file suffix (normally "").
17693exeext="$exeext"
17694
17695# Additional compiler flags for building library objects.
17696pic_flag=$lt_lt_prog_compiler_pic_F77
17697pic_mode=$pic_mode
17698
17699# What is the maximum length of a command?
17700max_cmd_len=$lt_cv_sys_max_cmd_len
17701
17702# Does compiler simultaneously support -c and -o options?
17703compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17704
17705# Must we lock files when doing compilation?
17706need_locks=$lt_need_locks
17707
17708# Do we need the lib prefix for modules?
17709need_lib_prefix=$need_lib_prefix
17710
17711# Do we need a version for libraries?
17712need_version=$need_version
17713
17714# Whether dlopen is supported.
17715dlopen_support=$enable_dlopen
17716
17717# Whether dlopen of programs is supported.
17718dlopen_self=$enable_dlopen_self
17719
17720# Whether dlopen of statically linked programs is supported.
17721dlopen_self_static=$enable_dlopen_self_static
17722
17723# Compiler flag to prevent dynamic linking.
17724link_static_flag=$lt_lt_prog_compiler_static_F77
17725
17726# Compiler flag to turn off builtin functions.
17727no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17728
17729# Compiler flag to allow reflexive dlopens.
17730export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17731
17732# Compiler flag to generate shared objects directly from archives.
17733whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17734
17735# Compiler flag to generate thread-safe objects.
17736thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17737
17738# Library versioning type.
17739version_type=$version_type
17740
17741# Format of library name prefix.
17742libname_spec=$lt_libname_spec
17743
17744# List of archive names.  First name is the real one, the rest are links.
17745# The last name is the one that the linker finds with -lNAME.
17746library_names_spec=$lt_library_names_spec
17747
17748# The coded name of the library, if different from the real name.
17749soname_spec=$lt_soname_spec
17750
17751# Commands used to build and install an old-style archive.
17752RANLIB=$lt_RANLIB
17753old_archive_cmds=$lt_old_archive_cmds_F77
17754old_postinstall_cmds=$lt_old_postinstall_cmds
17755old_postuninstall_cmds=$lt_old_postuninstall_cmds
17756
17757# Create an old-style archive from a shared archive.
17758old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17759
17760# Create a temporary old-style archive to link instead of a shared archive.
17761old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17762
17763# Commands used to build and install a shared archive.
17764archive_cmds=$lt_archive_cmds_F77
17765archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17766postinstall_cmds=$lt_postinstall_cmds
17767postuninstall_cmds=$lt_postuninstall_cmds
17768
17769# Commands used to build a loadable module (assumed same as above if empty)
17770module_cmds=$lt_module_cmds_F77
17771module_expsym_cmds=$lt_module_expsym_cmds_F77
17772
17773# Commands to strip libraries.
17774old_striplib=$lt_old_striplib
17775striplib=$lt_striplib
17776
17777# Dependencies to place before the objects being linked to create a
17778# shared library.
17779predep_objects=$lt_predep_objects_F77
17780
17781# Dependencies to place after the objects being linked to create a
17782# shared library.
17783postdep_objects=$lt_postdep_objects_F77
17784
17785# Dependencies to place before the objects being linked to create a
17786# shared library.
17787predeps=$lt_predeps_F77
17788
17789# Dependencies to place after the objects being linked to create a
17790# shared library.
17791postdeps=$lt_postdeps_F77
17792
17793# The library search path used internally by the compiler when linking
17794# a shared library.
17795compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17796
17797# Method to check whether dependent libraries are shared objects.
17798deplibs_check_method=$lt_deplibs_check_method
17799
17800# Command to use when deplibs_check_method == file_magic.
17801file_magic_cmd=$lt_file_magic_cmd
17802
17803# Flag that allows shared libraries with undefined symbols to be built.
17804allow_undefined_flag=$lt_allow_undefined_flag_F77
17805
17806# Flag that forces no undefined symbols.
17807no_undefined_flag=$lt_no_undefined_flag_F77
17808
17809# Commands used to finish a libtool library installation in a directory.
17810finish_cmds=$lt_finish_cmds
17811
17812# Same as above, but a single script fragment to be evaled but not shown.
17813finish_eval=$lt_finish_eval
17814
17815# Take the output of nm and produce a listing of raw symbols and C names.
17816global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17817
17818# Transform the output of nm in a proper C declaration
17819global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17820
17821# Transform the output of nm in a C name address pair
17822global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17823
17824# This is the shared library runtime path variable.
17825runpath_var=$runpath_var
17826
17827# This is the shared library path variable.
17828shlibpath_var=$shlibpath_var
17829
17830# Is shlibpath searched before the hard-coded library search path?
17831shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17832
17833# How to hardcode a shared library path into an executable.
17834hardcode_action=$hardcode_action_F77
17835
17836# Whether we should hardcode library paths into libraries.
17837hardcode_into_libs=$hardcode_into_libs
17838
17839# Flag to hardcode \$libdir into a binary during linking.
17840# This must work even if \$libdir does not exist.
17841hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17842
17843# If ld is used when linking, flag to hardcode \$libdir into
17844# a binary during linking. This must work even if \$libdir does
17845# not exist.
17846hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17847
17848# Whether we need a single -rpath flag with a separated argument.
17849hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17850
17851# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17852# resulting binary.
17853hardcode_direct=$hardcode_direct_F77
17854
17855# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17856# resulting binary.
17857hardcode_minus_L=$hardcode_minus_L_F77
17858
17859# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17860# the resulting binary.
17861hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17862
17863# Set to yes if building a shared library automatically hardcodes DIR into the library
17864# and all subsequent libraries and executables linked against it.
17865hardcode_automatic=$hardcode_automatic_F77
17866
17867# Variables whose values should be saved in libtool wrapper scripts and
17868# restored at relink time.
17869variables_saved_for_relink="$variables_saved_for_relink"
17870
17871# Whether libtool must link a program against all its dependency libraries.
17872link_all_deplibs=$link_all_deplibs_F77
17873
17874# Compile-time system search path for libraries
17875sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17876
17877# Run-time system search path for libraries
17878sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17879
17880# Fix the shell variable \$srcfile for the compiler.
17881fix_srcfile_path="$fix_srcfile_path_F77"
17882
17883# Set to yes if exported symbols are required.
17884always_export_symbols=$always_export_symbols_F77
17885
17886# The commands to list exported symbols.
17887export_symbols_cmds=$lt_export_symbols_cmds_F77
17888
17889# The commands to extract the exported symbol list from a shared archive.
17890extract_expsyms_cmds=$lt_extract_expsyms_cmds
17891
17892# Symbols that should not be listed in the preloaded symbols.
17893exclude_expsyms=$lt_exclude_expsyms_F77
17894
17895# Symbols that must always be exported.
17896include_expsyms=$lt_include_expsyms_F77
17897
17898# ### END LIBTOOL TAG CONFIG: $tagname
17899
17900__EOF__
17901
17902
17903else
17904  # If there is no Makefile yet, we rely on a make rule to execute
17905  # `config.status --recheck' to rerun these tests and create the
17906  # libtool script then.
17907  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17908  if test -f "$ltmain_in"; then
17909    test -f Makefile && make "$ltmain"
17910  fi
17911fi
17912
17913
17914ac_ext=c
17915ac_cpp='$CPP $CPPFLAGS'
17916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17918ac_compiler_gnu=$ac_cv_c_compiler_gnu
17919
17920CC="$lt_save_CC"
17921
17922	else
17923	  tagname=""
17924	fi
17925	;;
17926
17927      GCJ)
17928	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17929
17930
17931# Source file extension for Java test sources.
17932ac_ext=java
17933
17934# Object file extension for compiled Java test sources.
17935objext=o
17936objext_GCJ=$objext
17937
17938# Code to be used in simple compile tests
17939lt_simple_compile_test_code="class foo {}\n"
17940
17941# Code to be used in simple link tests
17942lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17943
17944# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17945
17946# If no C compiler was specified, use CC.
17947LTCC=${LTCC-"$CC"}
17948
17949# If no C compiler flags were specified, use CFLAGS.
17950LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17951
17952# Allow CC to be a program name with arguments.
17953compiler=$CC
17954
17955
17956# save warnings/boilerplate of simple test code
17957ac_outfile=conftest.$ac_objext
17958printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17959eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17960_lt_compiler_boilerplate=`cat conftest.err`
17961$rm conftest*
17962
17963ac_outfile=conftest.$ac_objext
17964printf "$lt_simple_link_test_code" >conftest.$ac_ext
17965eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17966_lt_linker_boilerplate=`cat conftest.err`
17967$rm conftest*
17968
17969
17970# Allow CC to be a program name with arguments.
17971lt_save_CC="$CC"
17972CC=${GCJ-"gcj"}
17973compiler=$CC
17974compiler_GCJ=$CC
17975for cc_temp in $compiler""; do
17976  case $cc_temp in
17977    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17978    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17979    \-*) ;;
17980    *) break;;
17981  esac
17982done
17983cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17984
17985
17986# GCJ did not exist at the time GCC didn't implicitly link libc in.
17987archive_cmds_need_lc_GCJ=no
17988
17989old_archive_cmds_GCJ=$old_archive_cmds
17990
17991## CAVEAT EMPTOR:
17992## There is no encapsulation within the following macros, do not change
17993## the running order or otherwise move them around unless you know exactly
17994## what you are doing...
17995
17996lt_prog_compiler_no_builtin_flag_GCJ=
17997
17998if test "$GCC" = yes; then
17999  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18000
18001
18002{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18003echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18004if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18005  echo $ECHO_N "(cached) $ECHO_C" >&6
18006else
18007  lt_cv_prog_compiler_rtti_exceptions=no
18008  ac_outfile=conftest.$ac_objext
18009   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18010   lt_compiler_flag="-fno-rtti -fno-exceptions"
18011   # Insert the option either (1) after the last *FLAGS variable, or
18012   # (2) before a word containing "conftest.", or (3) at the end.
18013   # Note that $ac_compile itself does not contain backslashes and begins
18014   # with a dollar sign (not a hyphen), so the echo should work correctly.
18015   # The option is referenced via a variable to avoid confusing sed.
18016   lt_compile=`echo "$ac_compile" | $SED \
18017   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18018   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18019   -e 's:$: $lt_compiler_flag:'`
18020   (eval echo "\"\$as_me:18020: $lt_compile\"" >&5)
18021   (eval "$lt_compile" 2>conftest.err)
18022   ac_status=$?
18023   cat conftest.err >&5
18024   echo "$as_me:18024: \$? = $ac_status" >&5
18025   if (exit $ac_status) && test -s "$ac_outfile"; then
18026     # The compiler can only warn and ignore the option if not recognized
18027     # So say no if there are warnings other than the usual output.
18028     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18029     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18030     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18031       lt_cv_prog_compiler_rtti_exceptions=yes
18032     fi
18033   fi
18034   $rm conftest*
18035
18036fi
18037{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18038echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18039
18040if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18041    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18042else
18043    :
18044fi
18045
18046fi
18047
18048lt_prog_compiler_wl_GCJ=
18049lt_prog_compiler_pic_GCJ=
18050lt_prog_compiler_static_GCJ=
18051
18052{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18053echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18054
18055  if test "$GCC" = yes; then
18056    lt_prog_compiler_wl_GCJ='-Wl,'
18057    lt_prog_compiler_static_GCJ='-static'
18058
18059    case $host_os in
18060      aix*)
18061      # All AIX code is PIC.
18062      if test "$host_cpu" = ia64; then
18063	# AIX 5 now supports IA64 processor
18064	lt_prog_compiler_static_GCJ='-Bstatic'
18065      fi
18066      ;;
18067
18068    amigaos*)
18069      # FIXME: we need at least 68020 code to build shared libraries, but
18070      # adding the `-m68020' flag to GCC prevents building anything better,
18071      # like `-m68040'.
18072      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18073      ;;
18074
18075    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18076      # PIC is the default for these OSes.
18077      ;;
18078
18079    mingw* | pw32* | os2*)
18080      # This hack is so that the source file can tell whether it is being
18081      # built for inclusion in a dll (and should export symbols for example).
18082      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18083      ;;
18084
18085    darwin* | rhapsody*)
18086      # PIC is the default on this platform
18087      # Common symbols not allowed in MH_DYLIB files
18088      lt_prog_compiler_pic_GCJ='-fno-common'
18089      ;;
18090
18091    interix3*)
18092      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18093      # Instead, we relocate shared libraries at runtime.
18094      ;;
18095
18096    msdosdjgpp*)
18097      # Just because we use GCC doesn't mean we suddenly get shared libraries
18098      # on systems that don't support them.
18099      lt_prog_compiler_can_build_shared_GCJ=no
18100      enable_shared=no
18101      ;;
18102
18103    sysv4*MP*)
18104      if test -d /usr/nec; then
18105	lt_prog_compiler_pic_GCJ=-Kconform_pic
18106      fi
18107      ;;
18108
18109    hpux*)
18110      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18111      # not for PA HP-UX.
18112      case $host_cpu in
18113      hppa*64*|ia64*)
18114	# +Z the default
18115	;;
18116      *)
18117	lt_prog_compiler_pic_GCJ='-fPIC'
18118	;;
18119      esac
18120      ;;
18121
18122    *)
18123      lt_prog_compiler_pic_GCJ='-fPIC'
18124      ;;
18125    esac
18126  else
18127    # PORTME Check for flag to pass linker flags through the system compiler.
18128    case $host_os in
18129    aix*)
18130      lt_prog_compiler_wl_GCJ='-Wl,'
18131      if test "$host_cpu" = ia64; then
18132	# AIX 5 now supports IA64 processor
18133	lt_prog_compiler_static_GCJ='-Bstatic'
18134      else
18135	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18136      fi
18137      ;;
18138      darwin*)
18139        # PIC is the default on this platform
18140        # Common symbols not allowed in MH_DYLIB files
18141       case $cc_basename in
18142         xlc*)
18143         lt_prog_compiler_pic_GCJ='-qnocommon'
18144         lt_prog_compiler_wl_GCJ='-Wl,'
18145         ;;
18146       esac
18147       ;;
18148
18149    mingw* | pw32* | os2*)
18150      # This hack is so that the source file can tell whether it is being
18151      # built for inclusion in a dll (and should export symbols for example).
18152      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18153      ;;
18154
18155    hpux9* | hpux10* | hpux11*)
18156      lt_prog_compiler_wl_GCJ='-Wl,'
18157      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18158      # not for PA HP-UX.
18159      case $host_cpu in
18160      hppa*64*|ia64*)
18161	# +Z the default
18162	;;
18163      *)
18164	lt_prog_compiler_pic_GCJ='+Z'
18165	;;
18166      esac
18167      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18168      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18169      ;;
18170
18171    irix5* | irix6* | nonstopux*)
18172      lt_prog_compiler_wl_GCJ='-Wl,'
18173      # PIC (with -KPIC) is the default.
18174      lt_prog_compiler_static_GCJ='-non_shared'
18175      ;;
18176
18177    newsos6)
18178      lt_prog_compiler_pic_GCJ='-KPIC'
18179      lt_prog_compiler_static_GCJ='-Bstatic'
18180      ;;
18181
18182    linux*)
18183      case $cc_basename in
18184      icc* | ecc*)
18185	lt_prog_compiler_wl_GCJ='-Wl,'
18186	lt_prog_compiler_pic_GCJ='-KPIC'
18187	lt_prog_compiler_static_GCJ='-static'
18188        ;;
18189      pgcc* | pgf77* | pgf90* | pgf95*)
18190        # Portland Group compilers (*not* the Pentium gcc compiler,
18191	# which looks to be a dead project)
18192	lt_prog_compiler_wl_GCJ='-Wl,'
18193	lt_prog_compiler_pic_GCJ='-fpic'
18194	lt_prog_compiler_static_GCJ='-Bstatic'
18195        ;;
18196      ccc*)
18197        lt_prog_compiler_wl_GCJ='-Wl,'
18198        # All Alpha code is PIC.
18199        lt_prog_compiler_static_GCJ='-non_shared'
18200        ;;
18201      esac
18202      ;;
18203
18204    osf3* | osf4* | osf5*)
18205      lt_prog_compiler_wl_GCJ='-Wl,'
18206      # All OSF/1 code is PIC.
18207      lt_prog_compiler_static_GCJ='-non_shared'
18208      ;;
18209
18210    solaris*)
18211      lt_prog_compiler_pic_GCJ='-KPIC'
18212      lt_prog_compiler_static_GCJ='-Bstatic'
18213      case $cc_basename in
18214      f77* | f90* | f95*)
18215	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18216      *)
18217	lt_prog_compiler_wl_GCJ='-Wl,';;
18218      esac
18219      ;;
18220
18221    sunos4*)
18222      lt_prog_compiler_wl_GCJ='-Qoption ld '
18223      lt_prog_compiler_pic_GCJ='-PIC'
18224      lt_prog_compiler_static_GCJ='-Bstatic'
18225      ;;
18226
18227    sysv4 | sysv4.2uw2* | sysv4.3*)
18228      lt_prog_compiler_wl_GCJ='-Wl,'
18229      lt_prog_compiler_pic_GCJ='-KPIC'
18230      lt_prog_compiler_static_GCJ='-Bstatic'
18231      ;;
18232
18233    sysv4*MP*)
18234      if test -d /usr/nec ;then
18235	lt_prog_compiler_pic_GCJ='-Kconform_pic'
18236	lt_prog_compiler_static_GCJ='-Bstatic'
18237      fi
18238      ;;
18239
18240    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18241      lt_prog_compiler_wl_GCJ='-Wl,'
18242      lt_prog_compiler_pic_GCJ='-KPIC'
18243      lt_prog_compiler_static_GCJ='-Bstatic'
18244      ;;
18245
18246    unicos*)
18247      lt_prog_compiler_wl_GCJ='-Wl,'
18248      lt_prog_compiler_can_build_shared_GCJ=no
18249      ;;
18250
18251    uts4*)
18252      lt_prog_compiler_pic_GCJ='-pic'
18253      lt_prog_compiler_static_GCJ='-Bstatic'
18254      ;;
18255
18256    *)
18257      lt_prog_compiler_can_build_shared_GCJ=no
18258      ;;
18259    esac
18260  fi
18261
18262{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18263echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18264
18265#
18266# Check to make sure the PIC flag actually works.
18267#
18268if test -n "$lt_prog_compiler_pic_GCJ"; then
18269
18270{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18271echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18272if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18273  echo $ECHO_N "(cached) $ECHO_C" >&6
18274else
18275  lt_prog_compiler_pic_works_GCJ=no
18276  ac_outfile=conftest.$ac_objext
18277   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18278   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18279   # Insert the option either (1) after the last *FLAGS variable, or
18280   # (2) before a word containing "conftest.", or (3) at the end.
18281   # Note that $ac_compile itself does not contain backslashes and begins
18282   # with a dollar sign (not a hyphen), so the echo should work correctly.
18283   # The option is referenced via a variable to avoid confusing sed.
18284   lt_compile=`echo "$ac_compile" | $SED \
18285   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18286   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18287   -e 's:$: $lt_compiler_flag:'`
18288   (eval echo "\"\$as_me:18288: $lt_compile\"" >&5)
18289   (eval "$lt_compile" 2>conftest.err)
18290   ac_status=$?
18291   cat conftest.err >&5
18292   echo "$as_me:18292: \$? = $ac_status" >&5
18293   if (exit $ac_status) && test -s "$ac_outfile"; then
18294     # The compiler can only warn and ignore the option if not recognized
18295     # So say no if there are warnings other than the usual output.
18296     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18297     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18298     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18299       lt_prog_compiler_pic_works_GCJ=yes
18300     fi
18301   fi
18302   $rm conftest*
18303
18304fi
18305{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18306echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18307
18308if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18309    case $lt_prog_compiler_pic_GCJ in
18310     "" | " "*) ;;
18311     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18312     esac
18313else
18314    lt_prog_compiler_pic_GCJ=
18315     lt_prog_compiler_can_build_shared_GCJ=no
18316fi
18317
18318fi
18319case $host_os in
18320  # For platforms which do not support PIC, -DPIC is meaningless:
18321  *djgpp*)
18322    lt_prog_compiler_pic_GCJ=
18323    ;;
18324  *)
18325    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18326    ;;
18327esac
18328
18329#
18330# Check to make sure the static flag actually works.
18331#
18332wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18333{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18334echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18335if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18336  echo $ECHO_N "(cached) $ECHO_C" >&6
18337else
18338  lt_prog_compiler_static_works_GCJ=no
18339   save_LDFLAGS="$LDFLAGS"
18340   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18341   printf "$lt_simple_link_test_code" > conftest.$ac_ext
18342   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18343     # The linker can only warn and ignore the option if not recognized
18344     # So say no if there are warnings
18345     if test -s conftest.err; then
18346       # Append any errors to the config.log.
18347       cat conftest.err 1>&5
18348       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18349       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18350       if diff conftest.exp conftest.er2 >/dev/null; then
18351         lt_prog_compiler_static_works_GCJ=yes
18352       fi
18353     else
18354       lt_prog_compiler_static_works_GCJ=yes
18355     fi
18356   fi
18357   $rm conftest*
18358   LDFLAGS="$save_LDFLAGS"
18359
18360fi
18361{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18362echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18363
18364if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18365    :
18366else
18367    lt_prog_compiler_static_GCJ=
18368fi
18369
18370
18371{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18372echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18373if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18374  echo $ECHO_N "(cached) $ECHO_C" >&6
18375else
18376  lt_cv_prog_compiler_c_o_GCJ=no
18377   $rm -r conftest 2>/dev/null
18378   mkdir conftest
18379   cd conftest
18380   mkdir out
18381   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18382
18383   lt_compiler_flag="-o out/conftest2.$ac_objext"
18384   # Insert the option either (1) after the last *FLAGS variable, or
18385   # (2) before a word containing "conftest.", or (3) at the end.
18386   # Note that $ac_compile itself does not contain backslashes and begins
18387   # with a dollar sign (not a hyphen), so the echo should work correctly.
18388   lt_compile=`echo "$ac_compile" | $SED \
18389   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18390   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18391   -e 's:$: $lt_compiler_flag:'`
18392   (eval echo "\"\$as_me:18392: $lt_compile\"" >&5)
18393   (eval "$lt_compile" 2>out/conftest.err)
18394   ac_status=$?
18395   cat out/conftest.err >&5
18396   echo "$as_me:18396: \$? = $ac_status" >&5
18397   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18398   then
18399     # The compiler can only warn and ignore the option if not recognized
18400     # So say no if there are warnings
18401     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18402     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18403     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18404       lt_cv_prog_compiler_c_o_GCJ=yes
18405     fi
18406   fi
18407   chmod u+w . 2>&5
18408   $rm conftest*
18409   # SGI C++ compiler will create directory out/ii_files/ for
18410   # template instantiation
18411   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18412   $rm out/* && rmdir out
18413   cd ..
18414   rmdir conftest
18415   $rm conftest*
18416
18417fi
18418{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18419echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18420
18421
18422hard_links="nottested"
18423if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18424  # do not overwrite the value of need_locks provided by the user
18425  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18426echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18427  hard_links=yes
18428  $rm conftest*
18429  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18430  touch conftest.a
18431  ln conftest.a conftest.b 2>&5 || hard_links=no
18432  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18433  { echo "$as_me:$LINENO: result: $hard_links" >&5
18434echo "${ECHO_T}$hard_links" >&6; }
18435  if test "$hard_links" = no; then
18436    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18437echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18438    need_locks=warn
18439  fi
18440else
18441  need_locks=no
18442fi
18443
18444{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18445echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18446
18447  runpath_var=
18448  allow_undefined_flag_GCJ=
18449  enable_shared_with_static_runtimes_GCJ=no
18450  archive_cmds_GCJ=
18451  archive_expsym_cmds_GCJ=
18452  old_archive_From_new_cmds_GCJ=
18453  old_archive_from_expsyms_cmds_GCJ=
18454  export_dynamic_flag_spec_GCJ=
18455  whole_archive_flag_spec_GCJ=
18456  thread_safe_flag_spec_GCJ=
18457  hardcode_libdir_flag_spec_GCJ=
18458  hardcode_libdir_flag_spec_ld_GCJ=
18459  hardcode_libdir_separator_GCJ=
18460  hardcode_direct_GCJ=no
18461  hardcode_minus_L_GCJ=no
18462  hardcode_shlibpath_var_GCJ=unsupported
18463  link_all_deplibs_GCJ=unknown
18464  hardcode_automatic_GCJ=no
18465  module_cmds_GCJ=
18466  module_expsym_cmds_GCJ=
18467  always_export_symbols_GCJ=no
18468  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18469  # include_expsyms should be a list of space-separated symbols to be *always*
18470  # included in the symbol list
18471  include_expsyms_GCJ=
18472  # exclude_expsyms can be an extended regexp of symbols to exclude
18473  # it will be wrapped by ` (' and `)$', so one must not match beginning or
18474  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18475  # as well as any symbol that contains `d'.
18476  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18477  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18478  # platforms (ab)use it in PIC code, but their linkers get confused if
18479  # the symbol is explicitly referenced.  Since portable code cannot
18480  # rely on this symbol name, it's probably fine to never include it in
18481  # preloaded symbol tables.
18482  extract_expsyms_cmds=
18483  # Just being paranoid about ensuring that cc_basename is set.
18484  for cc_temp in $compiler""; do
18485  case $cc_temp in
18486    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18487    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18488    \-*) ;;
18489    *) break;;
18490  esac
18491done
18492cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18493
18494  case $host_os in
18495  cygwin* | mingw* | pw32*)
18496    # FIXME: the MSVC++ port hasn't been tested in a loooong time
18497    # When not using gcc, we currently assume that we are using
18498    # Microsoft Visual C++.
18499    if test "$GCC" != yes; then
18500      with_gnu_ld=no
18501    fi
18502    ;;
18503  interix*)
18504    # we just hope/assume this is gcc and not c89 (= MSVC++)
18505    with_gnu_ld=yes
18506    ;;
18507  openbsd*)
18508    with_gnu_ld=no
18509    ;;
18510  esac
18511
18512  ld_shlibs_GCJ=yes
18513  if test "$with_gnu_ld" = yes; then
18514    # If archive_cmds runs LD, not CC, wlarc should be empty
18515    wlarc='${wl}'
18516
18517    # Set some defaults for GNU ld with shared library support. These
18518    # are reset later if shared libraries are not supported. Putting them
18519    # here allows them to be overridden if necessary.
18520    runpath_var=LD_RUN_PATH
18521    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18522    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18523    # ancient GNU ld didn't support --whole-archive et. al.
18524    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18525	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18526      else
18527  	whole_archive_flag_spec_GCJ=
18528    fi
18529    supports_anon_versioning=no
18530    case `$LD -v 2>/dev/null` in
18531      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18532      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18533      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18534      *\ 2.11.*) ;; # other 2.11 versions
18535      *) supports_anon_versioning=yes ;;
18536    esac
18537
18538    # See if GNU ld supports shared libraries.
18539    case $host_os in
18540    aix3* | aix4* | aix5*)
18541      # On AIX/PPC, the GNU linker is very broken
18542      if test "$host_cpu" != ia64; then
18543	ld_shlibs_GCJ=no
18544	cat <<EOF 1>&2
18545
18546*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18547*** to be unable to reliably create shared libraries on AIX.
18548*** Therefore, libtool is disabling shared libraries support.  If you
18549*** really care for shared libraries, you may want to modify your PATH
18550*** so that a non-GNU linker is found, and then restart.
18551
18552EOF
18553      fi
18554      ;;
18555
18556    amigaos*)
18557      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18558      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18559      hardcode_minus_L_GCJ=yes
18560
18561      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18562      # that the semantics of dynamic libraries on AmigaOS, at least up
18563      # to version 4, is to share data among multiple programs linked
18564      # with the same dynamic library.  Since this doesn't match the
18565      # behavior of shared libraries on other platforms, we can't use
18566      # them.
18567      ld_shlibs_GCJ=no
18568      ;;
18569
18570    beos*)
18571      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18572	allow_undefined_flag_GCJ=unsupported
18573	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18574	# support --undefined.  This deserves some investigation.  FIXME
18575	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18576      else
18577	ld_shlibs_GCJ=no
18578      fi
18579      ;;
18580
18581    cygwin* | mingw* | pw32*)
18582      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18583      # as there is no search path for DLLs.
18584      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18585      allow_undefined_flag_GCJ=unsupported
18586      always_export_symbols_GCJ=no
18587      enable_shared_with_static_runtimes_GCJ=yes
18588      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18589
18590      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18591        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18592	# If the export-symbols file already is a .def file (1st line
18593	# is EXPORTS), use it as is; otherwise, prepend...
18594	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18595	  cp $export_symbols $output_objdir/$soname.def;
18596	else
18597	  echo EXPORTS > $output_objdir/$soname.def;
18598	  cat $export_symbols >> $output_objdir/$soname.def;
18599	fi~
18600	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18601      else
18602	ld_shlibs_GCJ=no
18603      fi
18604      ;;
18605
18606    interix3*)
18607      hardcode_direct_GCJ=no
18608      hardcode_shlibpath_var_GCJ=no
18609      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18610      export_dynamic_flag_spec_GCJ='${wl}-E'
18611      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18612      # Instead, shared libraries are loaded at an image base (0x10000000 by
18613      # default) and relocated if they conflict, which is a slow very memory
18614      # consuming and fragmenting process.  To avoid this, we pick a random,
18615      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18616      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18617      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18618      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18619      ;;
18620
18621    linux*)
18622      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18623	tmp_addflag=
18624	case $cc_basename,$host_cpu in
18625	pgcc*)				# Portland Group C compiler
18626	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18627	  tmp_addflag=' $pic_flag'
18628	  ;;
18629	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
18630	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18631	  tmp_addflag=' $pic_flag -Mnomain' ;;
18632	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
18633	  tmp_addflag=' -i_dynamic' ;;
18634	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
18635	  tmp_addflag=' -i_dynamic -nofor_main' ;;
18636	ifc* | ifort*)			# Intel Fortran compiler
18637	  tmp_addflag=' -nofor_main' ;;
18638	esac
18639	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18640
18641	if test $supports_anon_versioning = yes; then
18642	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18643  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18644  $echo "local: *; };" >> $output_objdir/$libname.ver~
18645	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18646	fi
18647      else
18648	ld_shlibs_GCJ=no
18649      fi
18650      ;;
18651
18652    netbsd*)
18653      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18654	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18655	wlarc=
18656      else
18657	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18658	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18659      fi
18660      ;;
18661
18662    solaris*)
18663      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18664	ld_shlibs_GCJ=no
18665	cat <<EOF 1>&2
18666
18667*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18668*** create shared libraries on Solaris systems.  Therefore, libtool
18669*** is disabling shared libraries support.  We urge you to upgrade GNU
18670*** binutils to release 2.9.1 or newer.  Another option is to modify
18671*** your PATH or compiler configuration so that the native linker is
18672*** used, and then restart.
18673
18674EOF
18675      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18676	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18677	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18678      else
18679	ld_shlibs_GCJ=no
18680      fi
18681      ;;
18682
18683    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18684      case `$LD -v 2>&1` in
18685        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18686	ld_shlibs_GCJ=no
18687	cat <<_LT_EOF 1>&2
18688
18689*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18690*** reliably create shared libraries on SCO systems.  Therefore, libtool
18691*** is disabling shared libraries support.  We urge you to upgrade GNU
18692*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18693*** your PATH or compiler configuration so that the native linker is
18694*** used, and then restart.
18695
18696_LT_EOF
18697	;;
18698	*)
18699	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18700	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18701	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18702	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18703	  else
18704	    ld_shlibs_GCJ=no
18705	  fi
18706	;;
18707      esac
18708      ;;
18709
18710    sunos4*)
18711      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18712      wlarc=
18713      hardcode_direct_GCJ=yes
18714      hardcode_shlibpath_var_GCJ=no
18715      ;;
18716
18717    *)
18718      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18719	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18720	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18721      else
18722	ld_shlibs_GCJ=no
18723      fi
18724      ;;
18725    esac
18726
18727    if test "$ld_shlibs_GCJ" = no; then
18728      runpath_var=
18729      hardcode_libdir_flag_spec_GCJ=
18730      export_dynamic_flag_spec_GCJ=
18731      whole_archive_flag_spec_GCJ=
18732    fi
18733  else
18734    # PORTME fill in a description of your system's linker (not GNU ld)
18735    case $host_os in
18736    aix3*)
18737      allow_undefined_flag_GCJ=unsupported
18738      always_export_symbols_GCJ=yes
18739      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18740      # Note: this linker hardcodes the directories in LIBPATH if there
18741      # are no directories specified by -L.
18742      hardcode_minus_L_GCJ=yes
18743      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18744	# Neither direct hardcoding nor static linking is supported with a
18745	# broken collect2.
18746	hardcode_direct_GCJ=unsupported
18747      fi
18748      ;;
18749
18750    aix4* | aix5*)
18751      if test "$host_cpu" = ia64; then
18752	# On IA64, the linker does run time linking by default, so we don't
18753	# have to do anything special.
18754	aix_use_runtimelinking=no
18755	exp_sym_flag='-Bexport'
18756	no_entry_flag=""
18757      else
18758	# If we're using GNU nm, then we don't want the "-C" option.
18759	# -C means demangle to AIX nm, but means don't demangle with GNU nm
18760	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18761	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18762	else
18763	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18764	fi
18765	aix_use_runtimelinking=no
18766
18767	# Test if we are trying to use run time linking or normal
18768	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18769	# need to do runtime linking.
18770	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18771	  for ld_flag in $LDFLAGS; do
18772  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18773  	    aix_use_runtimelinking=yes
18774  	    break
18775  	  fi
18776	  done
18777	  ;;
18778	esac
18779
18780	exp_sym_flag='-bexport'
18781	no_entry_flag='-bnoentry'
18782      fi
18783
18784      # When large executables or shared objects are built, AIX ld can
18785      # have problems creating the table of contents.  If linking a library
18786      # or program results in "error TOC overflow" add -mminimal-toc to
18787      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18788      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18789
18790      archive_cmds_GCJ=''
18791      hardcode_direct_GCJ=yes
18792      hardcode_libdir_separator_GCJ=':'
18793      link_all_deplibs_GCJ=yes
18794
18795      if test "$GCC" = yes; then
18796	case $host_os in aix4.[012]|aix4.[012].*)
18797	# We only want to do this on AIX 4.2 and lower, the check
18798	# below for broken collect2 doesn't work under 4.3+
18799	  collect2name=`${CC} -print-prog-name=collect2`
18800	  if test -f "$collect2name" && \
18801  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18802	  then
18803  	  # We have reworked collect2
18804  	  hardcode_direct_GCJ=yes
18805	  else
18806  	  # We have old collect2
18807  	  hardcode_direct_GCJ=unsupported
18808  	  # It fails to find uninstalled libraries when the uninstalled
18809  	  # path is not listed in the libpath.  Setting hardcode_minus_L
18810  	  # to unsupported forces relinking
18811  	  hardcode_minus_L_GCJ=yes
18812  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
18813  	  hardcode_libdir_separator_GCJ=
18814	  fi
18815	  ;;
18816	esac
18817	shared_flag='-shared'
18818	if test "$aix_use_runtimelinking" = yes; then
18819	  shared_flag="$shared_flag "'${wl}-G'
18820	fi
18821      else
18822	# not using gcc
18823	if test "$host_cpu" = ia64; then
18824  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18825  	# chokes on -Wl,-G. The following line is correct:
18826	  shared_flag='-G'
18827	else
18828	  if test "$aix_use_runtimelinking" = yes; then
18829	    shared_flag='${wl}-G'
18830	  else
18831	    shared_flag='${wl}-bM:SRE'
18832	  fi
18833	fi
18834      fi
18835
18836      # It seems that -bexpall does not export symbols beginning with
18837      # underscore (_), so it is better to generate a list of symbols to export.
18838      always_export_symbols_GCJ=yes
18839      if test "$aix_use_runtimelinking" = yes; then
18840	# Warning - without using the other runtime loading flags (-brtl),
18841	# -berok will link without error, but may produce a broken library.
18842	allow_undefined_flag_GCJ='-berok'
18843       # Determine the default libpath from the value encoded in an empty executable.
18844       cat >conftest.$ac_ext <<_ACEOF
18845/* confdefs.h.  */
18846_ACEOF
18847cat confdefs.h >>conftest.$ac_ext
18848cat >>conftest.$ac_ext <<_ACEOF
18849/* end confdefs.h.  */
18850
18851int
18852main ()
18853{
18854
18855  ;
18856  return 0;
18857}
18858_ACEOF
18859rm -f conftest.$ac_objext conftest$ac_exeext
18860if { (ac_try="$ac_link"
18861case "(($ac_try" in
18862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18863  *) ac_try_echo=$ac_try;;
18864esac
18865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18866  (eval "$ac_link") 2>conftest.er1
18867  ac_status=$?
18868  grep -v '^ *+' conftest.er1 >conftest.err
18869  rm -f conftest.er1
18870  cat conftest.err >&5
18871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872  (exit $ac_status); } && {
18873	 test -z "$ac_c_werror_flag" ||
18874	 test ! -s conftest.err
18875       } && test -s conftest$ac_exeext &&
18876       $as_test_x conftest$ac_exeext; then
18877
18878aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18879}'`
18880# Check for a 64-bit object if we didn't find anything.
18881if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18882}'`; fi
18883else
18884  echo "$as_me: failed program was:" >&5
18885sed 's/^/| /' conftest.$ac_ext >&5
18886
18887
18888fi
18889
18890rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18891      conftest$ac_exeext conftest.$ac_ext
18892if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18893
18894       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18895	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18896       else
18897	if test "$host_cpu" = ia64; then
18898	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18899	  allow_undefined_flag_GCJ="-z nodefs"
18900	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18901	else
18902	 # Determine the default libpath from the value encoded in an empty executable.
18903	 cat >conftest.$ac_ext <<_ACEOF
18904/* confdefs.h.  */
18905_ACEOF
18906cat confdefs.h >>conftest.$ac_ext
18907cat >>conftest.$ac_ext <<_ACEOF
18908/* end confdefs.h.  */
18909
18910int
18911main ()
18912{
18913
18914  ;
18915  return 0;
18916}
18917_ACEOF
18918rm -f conftest.$ac_objext conftest$ac_exeext
18919if { (ac_try="$ac_link"
18920case "(($ac_try" in
18921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922  *) ac_try_echo=$ac_try;;
18923esac
18924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18925  (eval "$ac_link") 2>conftest.er1
18926  ac_status=$?
18927  grep -v '^ *+' conftest.er1 >conftest.err
18928  rm -f conftest.er1
18929  cat conftest.err >&5
18930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931  (exit $ac_status); } && {
18932	 test -z "$ac_c_werror_flag" ||
18933	 test ! -s conftest.err
18934       } && test -s conftest$ac_exeext &&
18935       $as_test_x conftest$ac_exeext; then
18936
18937aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18938}'`
18939# Check for a 64-bit object if we didn't find anything.
18940if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18941}'`; fi
18942else
18943  echo "$as_me: failed program was:" >&5
18944sed 's/^/| /' conftest.$ac_ext >&5
18945
18946
18947fi
18948
18949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18950      conftest$ac_exeext conftest.$ac_ext
18951if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18952
18953	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18954	  # Warning - without using the other run time loading flags,
18955	  # -berok will link without error, but may produce a broken library.
18956	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18957	  allow_undefined_flag_GCJ=' ${wl}-berok'
18958	  # Exported symbols can be pulled into shared objects from archives
18959	  whole_archive_flag_spec_GCJ='$convenience'
18960	  archive_cmds_need_lc_GCJ=yes
18961	  # This is similar to how AIX traditionally builds its shared libraries.
18962	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18963	fi
18964      fi
18965      ;;
18966
18967    amigaos*)
18968      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18969      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18970      hardcode_minus_L_GCJ=yes
18971      # see comment about different semantics on the GNU ld section
18972      ld_shlibs_GCJ=no
18973      ;;
18974
18975    bsdi[45]*)
18976      export_dynamic_flag_spec_GCJ=-rdynamic
18977      ;;
18978
18979    cygwin* | mingw* | pw32*)
18980      # When not using gcc, we currently assume that we are using
18981      # Microsoft Visual C++.
18982      # hardcode_libdir_flag_spec is actually meaningless, as there is
18983      # no search path for DLLs.
18984      hardcode_libdir_flag_spec_GCJ=' '
18985      allow_undefined_flag_GCJ=unsupported
18986      # Tell ltmain to make .lib files, not .a files.
18987      libext=lib
18988      # Tell ltmain to make .dll files, not .so files.
18989      shrext_cmds=".dll"
18990      # FIXME: Setting linknames here is a bad hack.
18991      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18992      # The linker will automatically build a .lib file if we build a DLL.
18993      old_archive_From_new_cmds_GCJ='true'
18994      # FIXME: Should let the user specify the lib program.
18995      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18996      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18997      enable_shared_with_static_runtimes_GCJ=yes
18998      ;;
18999
19000    darwin* | rhapsody*)
19001      case $host_os in
19002        rhapsody* | darwin1.[012])
19003         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19004         ;;
19005       *) # Darwin 1.3 on
19006         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19007           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19008         else
19009           case ${MACOSX_DEPLOYMENT_TARGET} in
19010             10.[012])
19011               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19012               ;;
19013             10.*)
19014               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19015               ;;
19016           esac
19017         fi
19018         ;;
19019      esac
19020      archive_cmds_need_lc_GCJ=no
19021      hardcode_direct_GCJ=no
19022      hardcode_automatic_GCJ=yes
19023      hardcode_shlibpath_var_GCJ=unsupported
19024      whole_archive_flag_spec_GCJ=''
19025      link_all_deplibs_GCJ=yes
19026    if test "$GCC" = yes ; then
19027    	output_verbose_link_cmd='echo'
19028        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19029      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19030      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19031      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19032      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19033    else
19034      case $cc_basename in
19035        xlc*)
19036         output_verbose_link_cmd='echo'
19037         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19038         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19039          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19040         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19041          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19042          ;;
19043       *)
19044         ld_shlibs_GCJ=no
19045          ;;
19046      esac
19047    fi
19048      ;;
19049
19050    dgux*)
19051      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19052      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19053      hardcode_shlibpath_var_GCJ=no
19054      ;;
19055
19056    freebsd1*)
19057      ld_shlibs_GCJ=no
19058      ;;
19059
19060    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19061    # support.  Future versions do this automatically, but an explicit c++rt0.o
19062    # does not break anything, and helps significantly (at the cost of a little
19063    # extra space).
19064    freebsd2.2*)
19065      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19066      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19067      hardcode_direct_GCJ=yes
19068      hardcode_shlibpath_var_GCJ=no
19069      ;;
19070
19071    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19072    freebsd2*)
19073      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19074      hardcode_direct_GCJ=yes
19075      hardcode_minus_L_GCJ=yes
19076      hardcode_shlibpath_var_GCJ=no
19077      ;;
19078
19079    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19080    freebsd* | kfreebsd*-gnu | dragonfly*)
19081      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19082      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19083      hardcode_direct_GCJ=yes
19084      hardcode_shlibpath_var_GCJ=no
19085      ;;
19086
19087    hpux9*)
19088      if test "$GCC" = yes; then
19089	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19090      else
19091	archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19092      fi
19093      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19094      hardcode_libdir_separator_GCJ=:
19095      hardcode_direct_GCJ=yes
19096
19097      # hardcode_minus_L: Not really in the search PATH,
19098      # but as the default location of the library.
19099      hardcode_minus_L_GCJ=yes
19100      export_dynamic_flag_spec_GCJ='${wl}-E'
19101      ;;
19102
19103    hpux10*)
19104      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19105	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19106      else
19107	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19108      fi
19109      if test "$with_gnu_ld" = no; then
19110	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19111	hardcode_libdir_separator_GCJ=:
19112
19113	hardcode_direct_GCJ=yes
19114	export_dynamic_flag_spec_GCJ='${wl}-E'
19115
19116	# hardcode_minus_L: Not really in the search PATH,
19117	# but as the default location of the library.
19118	hardcode_minus_L_GCJ=yes
19119      fi
19120      ;;
19121
19122    hpux11*)
19123      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19124	case $host_cpu in
19125	hppa*64*)
19126	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19127	  ;;
19128	ia64*)
19129	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19130	  ;;
19131	*)
19132	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19133	  ;;
19134	esac
19135      else
19136	case $host_cpu in
19137	hppa*64*)
19138	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19139	  ;;
19140	ia64*)
19141	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19142	  ;;
19143	*)
19144	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19145	  ;;
19146	esac
19147      fi
19148      if test "$with_gnu_ld" = no; then
19149	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19150	hardcode_libdir_separator_GCJ=:
19151
19152	case $host_cpu in
19153	hppa*64*|ia64*)
19154	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19155	  hardcode_direct_GCJ=no
19156	  hardcode_shlibpath_var_GCJ=no
19157	  ;;
19158	*)
19159	  hardcode_direct_GCJ=yes
19160	  export_dynamic_flag_spec_GCJ='${wl}-E'
19161
19162	  # hardcode_minus_L: Not really in the search PATH,
19163	  # but as the default location of the library.
19164	  hardcode_minus_L_GCJ=yes
19165	  ;;
19166	esac
19167      fi
19168      ;;
19169
19170    irix5* | irix6* | nonstopux*)
19171      if test "$GCC" = yes; then
19172	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19173      else
19174	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19175	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19176      fi
19177      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19178      hardcode_libdir_separator_GCJ=:
19179      link_all_deplibs_GCJ=yes
19180      ;;
19181
19182    netbsd*)
19183      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19184	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19185      else
19186	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19187      fi
19188      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19189      hardcode_direct_GCJ=yes
19190      hardcode_shlibpath_var_GCJ=no
19191      ;;
19192
19193    newsos6)
19194      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19195      hardcode_direct_GCJ=yes
19196      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19197      hardcode_libdir_separator_GCJ=:
19198      hardcode_shlibpath_var_GCJ=no
19199      ;;
19200
19201    openbsd*)
19202      hardcode_direct_GCJ=yes
19203      hardcode_shlibpath_var_GCJ=no
19204      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19205	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19206	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19207	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19208	export_dynamic_flag_spec_GCJ='${wl}-E'
19209      else
19210       case $host_os in
19211	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19212	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19213	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
19214	   ;;
19215	 *)
19216	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19217	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19218	   ;;
19219       esac
19220      fi
19221      ;;
19222
19223    os2*)
19224      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19225      hardcode_minus_L_GCJ=yes
19226      allow_undefined_flag_GCJ=unsupported
19227      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
19228      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19229      ;;
19230
19231    osf3*)
19232      if test "$GCC" = yes; then
19233	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19234	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19235      else
19236	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19237	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19238      fi
19239      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19240      hardcode_libdir_separator_GCJ=:
19241      ;;
19242
19243    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19244      if test "$GCC" = yes; then
19245	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19246	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19247	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19248      else
19249	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19250	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19251	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19252	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
19253
19254	# Both c and cxx compiler support -rpath directly
19255	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19256      fi
19257      hardcode_libdir_separator_GCJ=:
19258      ;;
19259
19260    solaris*)
19261      no_undefined_flag_GCJ=' -z text'
19262      if test "$GCC" = yes; then
19263	wlarc='${wl}'
19264	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19265	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19266	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19267      else
19268	wlarc=''
19269	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19270	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19271  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19272      fi
19273      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19274      hardcode_shlibpath_var_GCJ=no
19275      case $host_os in
19276      solaris2.[0-5] | solaris2.[0-5].*) ;;
19277      *)
19278 	# The compiler driver will combine linker options so we
19279 	# cannot just pass the convience library names through
19280 	# without $wl, iff we do not link with $LD.
19281 	# Luckily, gcc supports the same syntax we need for Sun Studio.
19282 	# Supported since Solaris 2.6 (maybe 2.5.1?)
19283 	case $wlarc in
19284 	'')
19285 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19286 	*)
19287 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19288 	esac ;;
19289      esac
19290      link_all_deplibs_GCJ=yes
19291      ;;
19292
19293    sunos4*)
19294      if test "x$host_vendor" = xsequent; then
19295	# Use $CC to link under sequent, because it throws in some extra .o
19296	# files that make .init and .fini sections work.
19297	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19298      else
19299	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19300      fi
19301      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19302      hardcode_direct_GCJ=yes
19303      hardcode_minus_L_GCJ=yes
19304      hardcode_shlibpath_var_GCJ=no
19305      ;;
19306
19307    sysv4)
19308      case $host_vendor in
19309	sni)
19310	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19311	  hardcode_direct_GCJ=yes # is this really true???
19312	;;
19313	siemens)
19314	  ## LD is ld it makes a PLAMLIB
19315	  ## CC just makes a GrossModule.
19316	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19317	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19318	  hardcode_direct_GCJ=no
19319        ;;
19320	motorola)
19321	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19322	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19323	;;
19324      esac
19325      runpath_var='LD_RUN_PATH'
19326      hardcode_shlibpath_var_GCJ=no
19327      ;;
19328
19329    sysv4.3*)
19330      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19331      hardcode_shlibpath_var_GCJ=no
19332      export_dynamic_flag_spec_GCJ='-Bexport'
19333      ;;
19334
19335    sysv4*MP*)
19336      if test -d /usr/nec; then
19337	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19338	hardcode_shlibpath_var_GCJ=no
19339	runpath_var=LD_RUN_PATH
19340	hardcode_runpath_var=yes
19341	ld_shlibs_GCJ=yes
19342      fi
19343      ;;
19344
19345    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19346      no_undefined_flag_GCJ='${wl}-z,text'
19347      archive_cmds_need_lc_GCJ=no
19348      hardcode_shlibpath_var_GCJ=no
19349      runpath_var='LD_RUN_PATH'
19350
19351      if test "$GCC" = yes; then
19352	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19353	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19354      else
19355	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19356	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19357      fi
19358      ;;
19359
19360    sysv5* | sco3.2v5* | sco5v6*)
19361      # Note: We can NOT use -z defs as we might desire, because we do not
19362      # link with -lc, and that would cause any symbols used from libc to
19363      # always be unresolved, which means just about no library would
19364      # ever link correctly.  If we're not using GNU ld we use -z text
19365      # though, which does catch some bad symbols but isn't as heavy-handed
19366      # as -z defs.
19367      no_undefined_flag_GCJ='${wl}-z,text'
19368      allow_undefined_flag_GCJ='${wl}-z,nodefs'
19369      archive_cmds_need_lc_GCJ=no
19370      hardcode_shlibpath_var_GCJ=no
19371      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19372      hardcode_libdir_separator_GCJ=':'
19373      link_all_deplibs_GCJ=yes
19374      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19375      runpath_var='LD_RUN_PATH'
19376
19377      if test "$GCC" = yes; then
19378	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19379	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19380      else
19381	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19382	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19383      fi
19384      ;;
19385
19386    uts4*)
19387      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19388      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19389      hardcode_shlibpath_var_GCJ=no
19390      ;;
19391
19392    *)
19393      ld_shlibs_GCJ=no
19394      ;;
19395    esac
19396  fi
19397
19398{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19399echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19400test "$ld_shlibs_GCJ" = no && can_build_shared=no
19401
19402#
19403# Do we need to explicitly link libc?
19404#
19405case "x$archive_cmds_need_lc_GCJ" in
19406x|xyes)
19407  # Assume -lc should be added
19408  archive_cmds_need_lc_GCJ=yes
19409
19410  if test "$enable_shared" = yes && test "$GCC" = yes; then
19411    case $archive_cmds_GCJ in
19412    *'~'*)
19413      # FIXME: we may have to deal with multi-command sequences.
19414      ;;
19415    '$CC '*)
19416      # Test whether the compiler implicitly links with -lc since on some
19417      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19418      # to ld, don't add -lc before -lgcc.
19419      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19420echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19421      $rm conftest*
19422      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19423
19424      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19425  (eval $ac_compile) 2>&5
19426  ac_status=$?
19427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428  (exit $ac_status); } 2>conftest.err; then
19429        soname=conftest
19430        lib=conftest
19431        libobjs=conftest.$ac_objext
19432        deplibs=
19433        wl=$lt_prog_compiler_wl_GCJ
19434	pic_flag=$lt_prog_compiler_pic_GCJ
19435        compiler_flags=-v
19436        linker_flags=-v
19437        verstring=
19438        output_objdir=.
19439        libname=conftest
19440        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19441        allow_undefined_flag_GCJ=
19442        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19443  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19444  ac_status=$?
19445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446  (exit $ac_status); }
19447        then
19448	  archive_cmds_need_lc_GCJ=no
19449        else
19450	  archive_cmds_need_lc_GCJ=yes
19451        fi
19452        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19453      else
19454        cat conftest.err 1>&5
19455      fi
19456      $rm conftest*
19457      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19458echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19459      ;;
19460    esac
19461  fi
19462  ;;
19463esac
19464
19465{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19466echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19467library_names_spec=
19468libname_spec='lib$name'
19469soname_spec=
19470shrext_cmds=".so"
19471postinstall_cmds=
19472postuninstall_cmds=
19473finish_cmds=
19474finish_eval=
19475shlibpath_var=
19476shlibpath_overrides_runpath=unknown
19477version_type=none
19478dynamic_linker="$host_os ld.so"
19479sys_lib_dlsearch_path_spec="/lib /usr/lib"
19480if test "$GCC" = yes; then
19481  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19482  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19483    # if the path contains ";" then we assume it to be the separator
19484    # otherwise default to the standard path separator (i.e. ":") - it is
19485    # assumed that no part of a normal pathname contains ";" but that should
19486    # okay in the real world where ";" in dirpaths is itself problematic.
19487    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19488  else
19489    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19490  fi
19491else
19492  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19493fi
19494need_lib_prefix=unknown
19495hardcode_into_libs=no
19496
19497# when you set need_version to no, make sure it does not cause -set_version
19498# flags to be left without arguments
19499need_version=unknown
19500
19501case $host_os in
19502aix3*)
19503  version_type=linux
19504  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19505  shlibpath_var=LIBPATH
19506
19507  # AIX 3 has no versioning support, so we append a major version to the name.
19508  soname_spec='${libname}${release}${shared_ext}$major'
19509  ;;
19510
19511aix4* | aix5*)
19512  version_type=linux
19513  need_lib_prefix=no
19514  need_version=no
19515  hardcode_into_libs=yes
19516  if test "$host_cpu" = ia64; then
19517    # AIX 5 supports IA64
19518    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19519    shlibpath_var=LD_LIBRARY_PATH
19520  else
19521    # With GCC up to 2.95.x, collect2 would create an import file
19522    # for dependence libraries.  The import file would start with
19523    # the line `#! .'.  This would cause the generated library to
19524    # depend on `.', always an invalid library.  This was fixed in
19525    # development snapshots of GCC prior to 3.0.
19526    case $host_os in
19527      aix4 | aix4.[01] | aix4.[01].*)
19528      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19529	   echo ' yes '
19530	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19531	:
19532      else
19533	can_build_shared=no
19534      fi
19535      ;;
19536    esac
19537    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19538    # soname into executable. Probably we can add versioning support to
19539    # collect2, so additional links can be useful in future.
19540    if test "$aix_use_runtimelinking" = yes; then
19541      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19542      # instead of lib<name>.a to let people know that these are not
19543      # typical AIX shared libraries.
19544      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19545    else
19546      # We preserve .a as extension for shared libraries through AIX4.2
19547      # and later when we are not doing run time linking.
19548      library_names_spec='${libname}${release}.a $libname.a'
19549      soname_spec='${libname}${release}${shared_ext}$major'
19550    fi
19551    shlibpath_var=LIBPATH
19552  fi
19553  ;;
19554
19555amigaos*)
19556  library_names_spec='$libname.ixlibrary $libname.a'
19557  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19558  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'
19559  ;;
19560
19561beos*)
19562  library_names_spec='${libname}${shared_ext}'
19563  dynamic_linker="$host_os ld.so"
19564  shlibpath_var=LIBRARY_PATH
19565  ;;
19566
19567bsdi[45]*)
19568  version_type=linux
19569  need_version=no
19570  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19571  soname_spec='${libname}${release}${shared_ext}$major'
19572  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19573  shlibpath_var=LD_LIBRARY_PATH
19574  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19575  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19576  # the default ld.so.conf also contains /usr/contrib/lib and
19577  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19578  # libtool to hard-code these into programs
19579  ;;
19580
19581cygwin* | mingw* | pw32*)
19582  version_type=windows
19583  shrext_cmds=".dll"
19584  need_version=no
19585  need_lib_prefix=no
19586
19587  case $GCC,$host_os in
19588  yes,cygwin* | yes,mingw* | yes,pw32*)
19589    library_names_spec='$libname.dll.a'
19590    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19591    postinstall_cmds='base_file=`basename \${file}`~
19592      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19593      dldir=$destdir/`dirname \$dlpath`~
19594      test -d \$dldir || mkdir -p \$dldir~
19595      $install_prog $dir/$dlname \$dldir/$dlname~
19596      chmod a+x \$dldir/$dlname'
19597    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19598      dlpath=$dir/\$dldll~
19599       $rm \$dlpath'
19600    shlibpath_overrides_runpath=yes
19601
19602    case $host_os in
19603    cygwin*)
19604      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19605      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19606      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19607      ;;
19608    mingw*)
19609      # MinGW DLLs use traditional 'lib' prefix
19610      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19611      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19612      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19613        # It is most probably a Windows format PATH printed by
19614        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19615        # path with ; separators, and with drive letters. We can handle the
19616        # drive letters (cygwin fileutils understands them), so leave them,
19617        # especially as we might pass files found there to a mingw objdump,
19618        # which wouldn't understand a cygwinified path. Ahh.
19619        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19620      else
19621        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19622      fi
19623      ;;
19624    pw32*)
19625      # pw32 DLLs use 'pw' prefix rather than 'lib'
19626      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19627      ;;
19628    esac
19629    ;;
19630
19631  *)
19632    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19633    ;;
19634  esac
19635  dynamic_linker='Win32 ld.exe'
19636  # FIXME: first we should search . and the directory the executable is in
19637  shlibpath_var=PATH
19638  ;;
19639
19640darwin* | rhapsody*)
19641  dynamic_linker="$host_os dyld"
19642  version_type=darwin
19643  need_lib_prefix=no
19644  need_version=no
19645  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19646  soname_spec='${libname}${release}${major}$shared_ext'
19647  shlibpath_overrides_runpath=yes
19648  shlibpath_var=DYLD_LIBRARY_PATH
19649  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19650  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19651  if test "$GCC" = yes; then
19652    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19653  else
19654    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19655  fi
19656  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19657  ;;
19658
19659dgux*)
19660  version_type=linux
19661  need_lib_prefix=no
19662  need_version=no
19663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19664  soname_spec='${libname}${release}${shared_ext}$major'
19665  shlibpath_var=LD_LIBRARY_PATH
19666  ;;
19667
19668freebsd1*)
19669  dynamic_linker=no
19670  ;;
19671
19672kfreebsd*-gnu)
19673  version_type=linux
19674  need_lib_prefix=no
19675  need_version=no
19676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19677  soname_spec='${libname}${release}${shared_ext}$major'
19678  shlibpath_var=LD_LIBRARY_PATH
19679  shlibpath_overrides_runpath=no
19680  hardcode_into_libs=yes
19681  dynamic_linker='GNU ld.so'
19682  ;;
19683
19684freebsd* | dragonfly*)
19685  # DragonFly does not have aout.  When/if they implement a new
19686  # versioning mechanism, adjust this.
19687  if test -x /usr/bin/objformat; then
19688    objformat=`/usr/bin/objformat`
19689  else
19690    case $host_os in
19691    freebsd[123]*) objformat=aout ;;
19692    *) objformat=elf ;;
19693    esac
19694  fi
19695  version_type=freebsd-$objformat
19696  case $version_type in
19697    freebsd-elf*)
19698      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19699      need_version=no
19700      need_lib_prefix=no
19701      ;;
19702    freebsd-*)
19703      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19704      need_version=yes
19705      ;;
19706  esac
19707  shlibpath_var=LD_LIBRARY_PATH
19708  case $host_os in
19709  freebsd2*)
19710    shlibpath_overrides_runpath=yes
19711    ;;
19712  freebsd3.[01]* | freebsdelf3.[01]*)
19713    shlibpath_overrides_runpath=yes
19714    hardcode_into_libs=yes
19715    ;;
19716  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19717  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19718    shlibpath_overrides_runpath=no
19719    hardcode_into_libs=yes
19720    ;;
19721  freebsd*) # from 4.6 on
19722    shlibpath_overrides_runpath=yes
19723    hardcode_into_libs=yes
19724    ;;
19725  esac
19726  ;;
19727
19728gnu*)
19729  version_type=linux
19730  need_lib_prefix=no
19731  need_version=no
19732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19733  soname_spec='${libname}${release}${shared_ext}$major'
19734  shlibpath_var=LD_LIBRARY_PATH
19735  hardcode_into_libs=yes
19736  ;;
19737
19738hpux9* | hpux10* | hpux11*)
19739  # Give a soname corresponding to the major version so that dld.sl refuses to
19740  # link against other versions.
19741  version_type=sunos
19742  need_lib_prefix=no
19743  need_version=no
19744  case $host_cpu in
19745  ia64*)
19746    shrext_cmds='.so'
19747    hardcode_into_libs=yes
19748    dynamic_linker="$host_os dld.so"
19749    shlibpath_var=LD_LIBRARY_PATH
19750    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19751    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19752    soname_spec='${libname}${release}${shared_ext}$major'
19753    if test "X$HPUX_IA64_MODE" = X32; then
19754      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19755    else
19756      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19757    fi
19758    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19759    ;;
19760   hppa*64*)
19761     shrext_cmds='.sl'
19762     hardcode_into_libs=yes
19763     dynamic_linker="$host_os dld.sl"
19764     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19765     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19766     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19767     soname_spec='${libname}${release}${shared_ext}$major'
19768     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19769     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19770     ;;
19771   *)
19772    shrext_cmds='.sl'
19773    dynamic_linker="$host_os dld.sl"
19774    shlibpath_var=SHLIB_PATH
19775    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19776    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19777    soname_spec='${libname}${release}${shared_ext}$major'
19778    ;;
19779  esac
19780  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19781  postinstall_cmds='chmod 555 $lib'
19782  ;;
19783
19784interix3*)
19785  version_type=linux
19786  need_lib_prefix=no
19787  need_version=no
19788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19789  soname_spec='${libname}${release}${shared_ext}$major'
19790  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19791  shlibpath_var=LD_LIBRARY_PATH
19792  shlibpath_overrides_runpath=no
19793  hardcode_into_libs=yes
19794  ;;
19795
19796irix5* | irix6* | nonstopux*)
19797  case $host_os in
19798    nonstopux*) version_type=nonstopux ;;
19799    *)
19800	if test "$lt_cv_prog_gnu_ld" = yes; then
19801		version_type=linux
19802	else
19803		version_type=irix
19804	fi ;;
19805  esac
19806  need_lib_prefix=no
19807  need_version=no
19808  soname_spec='${libname}${release}${shared_ext}$major'
19809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19810  case $host_os in
19811  irix5* | nonstopux*)
19812    libsuff= shlibsuff=
19813    ;;
19814  *)
19815    case $LD in # libtool.m4 will add one of these switches to LD
19816    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19817      libsuff= shlibsuff= libmagic=32-bit;;
19818    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19819      libsuff=32 shlibsuff=N32 libmagic=N32;;
19820    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19821      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19822    *) libsuff= shlibsuff= libmagic=never-match;;
19823    esac
19824    ;;
19825  esac
19826  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19827  shlibpath_overrides_runpath=no
19828  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19829  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19830  hardcode_into_libs=yes
19831  ;;
19832
19833# No shared lib support for Linux oldld, aout, or coff.
19834linux*oldld* | linux*aout* | linux*coff*)
19835  dynamic_linker=no
19836  ;;
19837
19838# This must be Linux ELF.
19839linux*)
19840  version_type=linux
19841  need_lib_prefix=no
19842  need_version=no
19843  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19844  soname_spec='${libname}${release}${shared_ext}$major'
19845  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19846  shlibpath_var=LD_LIBRARY_PATH
19847  shlibpath_overrides_runpath=no
19848  # This implies no fast_install, which is unacceptable.
19849  # Some rework will be needed to allow for fast_install
19850  # before this can be enabled.
19851  hardcode_into_libs=yes
19852
19853  # Append ld.so.conf contents to the search path
19854  if test -f /etc/ld.so.conf; then
19855    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19856    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19857  fi
19858
19859  # We used to test for /lib/ld.so.1 and disable shared libraries on
19860  # powerpc, because MkLinux only supported shared libraries with the
19861  # GNU dynamic linker.  Since this was broken with cross compilers,
19862  # most powerpc-linux boxes support dynamic linking these days and
19863  # people can always --disable-shared, the test was removed, and we
19864  # assume the GNU/Linux dynamic linker is in use.
19865  dynamic_linker='GNU/Linux ld.so'
19866  ;;
19867
19868knetbsd*-gnu)
19869  version_type=linux
19870  need_lib_prefix=no
19871  need_version=no
19872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19873  soname_spec='${libname}${release}${shared_ext}$major'
19874  shlibpath_var=LD_LIBRARY_PATH
19875  shlibpath_overrides_runpath=no
19876  hardcode_into_libs=yes
19877  dynamic_linker='GNU ld.so'
19878  ;;
19879
19880netbsd*)
19881  version_type=sunos
19882  need_lib_prefix=no
19883  need_version=no
19884  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19885    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19886    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19887    dynamic_linker='NetBSD (a.out) ld.so'
19888  else
19889    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19890    soname_spec='${libname}${release}${shared_ext}$major'
19891    dynamic_linker='NetBSD ld.elf_so'
19892  fi
19893  shlibpath_var=LD_LIBRARY_PATH
19894  shlibpath_overrides_runpath=yes
19895  hardcode_into_libs=yes
19896  ;;
19897
19898newsos6)
19899  version_type=linux
19900  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19901  shlibpath_var=LD_LIBRARY_PATH
19902  shlibpath_overrides_runpath=yes
19903  ;;
19904
19905nto-qnx*)
19906  version_type=linux
19907  need_lib_prefix=no
19908  need_version=no
19909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19910  soname_spec='${libname}${release}${shared_ext}$major'
19911  shlibpath_var=LD_LIBRARY_PATH
19912  shlibpath_overrides_runpath=yes
19913  ;;
19914
19915openbsd*)
19916  version_type=sunos
19917  sys_lib_dlsearch_path_spec="/usr/lib"
19918  need_lib_prefix=no
19919  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19920  case $host_os in
19921    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19922    *)                         need_version=no  ;;
19923  esac
19924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19925  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19926  shlibpath_var=LD_LIBRARY_PATH
19927  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19928    case $host_os in
19929      openbsd2.[89] | openbsd2.[89].*)
19930	shlibpath_overrides_runpath=no
19931	;;
19932      *)
19933	shlibpath_overrides_runpath=yes
19934	;;
19935      esac
19936  else
19937    shlibpath_overrides_runpath=yes
19938  fi
19939  ;;
19940
19941os2*)
19942  libname_spec='$name'
19943  shrext_cmds=".dll"
19944  need_lib_prefix=no
19945  library_names_spec='$libname${shared_ext} $libname.a'
19946  dynamic_linker='OS/2 ld.exe'
19947  shlibpath_var=LIBPATH
19948  ;;
19949
19950osf3* | osf4* | osf5*)
19951  version_type=osf
19952  need_lib_prefix=no
19953  need_version=no
19954  soname_spec='${libname}${release}${shared_ext}$major'
19955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19956  shlibpath_var=LD_LIBRARY_PATH
19957  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19958  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19959  ;;
19960
19961solaris*)
19962  version_type=linux
19963  need_lib_prefix=no
19964  need_version=no
19965  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19966  soname_spec='${libname}${release}${shared_ext}$major'
19967  shlibpath_var=LD_LIBRARY_PATH
19968  shlibpath_overrides_runpath=yes
19969  hardcode_into_libs=yes
19970  # ldd complains unless libraries are executable
19971  postinstall_cmds='chmod +x $lib'
19972  ;;
19973
19974sunos4*)
19975  version_type=sunos
19976  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19977  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19978  shlibpath_var=LD_LIBRARY_PATH
19979  shlibpath_overrides_runpath=yes
19980  if test "$with_gnu_ld" = yes; then
19981    need_lib_prefix=no
19982  fi
19983  need_version=yes
19984  ;;
19985
19986sysv4 | sysv4.3*)
19987  version_type=linux
19988  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19989  soname_spec='${libname}${release}${shared_ext}$major'
19990  shlibpath_var=LD_LIBRARY_PATH
19991  case $host_vendor in
19992    sni)
19993      shlibpath_overrides_runpath=no
19994      need_lib_prefix=no
19995      export_dynamic_flag_spec='${wl}-Blargedynsym'
19996      runpath_var=LD_RUN_PATH
19997      ;;
19998    siemens)
19999      need_lib_prefix=no
20000      ;;
20001    motorola)
20002      need_lib_prefix=no
20003      need_version=no
20004      shlibpath_overrides_runpath=no
20005      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20006      ;;
20007  esac
20008  ;;
20009
20010sysv4*MP*)
20011  if test -d /usr/nec ;then
20012    version_type=linux
20013    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20014    soname_spec='$libname${shared_ext}.$major'
20015    shlibpath_var=LD_LIBRARY_PATH
20016  fi
20017  ;;
20018
20019sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20020  version_type=freebsd-elf
20021  need_lib_prefix=no
20022  need_version=no
20023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20024  soname_spec='${libname}${release}${shared_ext}$major'
20025  shlibpath_var=LD_LIBRARY_PATH
20026  hardcode_into_libs=yes
20027  if test "$with_gnu_ld" = yes; then
20028    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20029    shlibpath_overrides_runpath=no
20030  else
20031    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20032    shlibpath_overrides_runpath=yes
20033    case $host_os in
20034      sco3.2v5*)
20035        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20036	;;
20037    esac
20038  fi
20039  sys_lib_dlsearch_path_spec='/usr/lib'
20040  ;;
20041
20042uts4*)
20043  version_type=linux
20044  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20045  soname_spec='${libname}${release}${shared_ext}$major'
20046  shlibpath_var=LD_LIBRARY_PATH
20047  ;;
20048
20049*)
20050  dynamic_linker=no
20051  ;;
20052esac
20053{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20054echo "${ECHO_T}$dynamic_linker" >&6; }
20055test "$dynamic_linker" = no && can_build_shared=no
20056
20057variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20058if test "$GCC" = yes; then
20059  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20060fi
20061
20062{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20063echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20064hardcode_action_GCJ=
20065if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20066   test -n "$runpath_var_GCJ" || \
20067   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20068
20069  # We can hardcode non-existant directories.
20070  if test "$hardcode_direct_GCJ" != no &&
20071     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20072     # have to relink, otherwise we might link with an installed library
20073     # when we should be linking with a yet-to-be-installed one
20074     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20075     test "$hardcode_minus_L_GCJ" != no; then
20076    # Linking always hardcodes the temporary library directory.
20077    hardcode_action_GCJ=relink
20078  else
20079    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20080    hardcode_action_GCJ=immediate
20081  fi
20082else
20083  # We cannot hardcode anything, or else we can only hardcode existing
20084  # directories.
20085  hardcode_action_GCJ=unsupported
20086fi
20087{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20088echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20089
20090if test "$hardcode_action_GCJ" = relink; then
20091  # Fast installation is not supported
20092  enable_fast_install=no
20093elif test "$shlibpath_overrides_runpath" = yes ||
20094     test "$enable_shared" = no; then
20095  # Fast installation is not necessary
20096  enable_fast_install=needless
20097fi
20098
20099
20100# The else clause should only fire when bootstrapping the
20101# libtool distribution, otherwise you forgot to ship ltmain.sh
20102# with your package, and you will get complaints that there are
20103# no rules to generate ltmain.sh.
20104if test -f "$ltmain"; then
20105  # See if we are running on zsh, and set the options which allow our commands through
20106  # without removal of \ escapes.
20107  if test -n "${ZSH_VERSION+set}" ; then
20108    setopt NO_GLOB_SUBST
20109  fi
20110  # Now quote all the things that may contain metacharacters while being
20111  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20112  # variables and quote the copies for generation of the libtool script.
20113  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20114    SED SHELL STRIP \
20115    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20116    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20117    deplibs_check_method reload_flag reload_cmds need_locks \
20118    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20119    lt_cv_sys_global_symbol_to_c_name_address \
20120    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20121    old_postinstall_cmds old_postuninstall_cmds \
20122    compiler_GCJ \
20123    CC_GCJ \
20124    LD_GCJ \
20125    lt_prog_compiler_wl_GCJ \
20126    lt_prog_compiler_pic_GCJ \
20127    lt_prog_compiler_static_GCJ \
20128    lt_prog_compiler_no_builtin_flag_GCJ \
20129    export_dynamic_flag_spec_GCJ \
20130    thread_safe_flag_spec_GCJ \
20131    whole_archive_flag_spec_GCJ \
20132    enable_shared_with_static_runtimes_GCJ \
20133    old_archive_cmds_GCJ \
20134    old_archive_from_new_cmds_GCJ \
20135    predep_objects_GCJ \
20136    postdep_objects_GCJ \
20137    predeps_GCJ \
20138    postdeps_GCJ \
20139    compiler_lib_search_path_GCJ \
20140    archive_cmds_GCJ \
20141    archive_expsym_cmds_GCJ \
20142    postinstall_cmds_GCJ \
20143    postuninstall_cmds_GCJ \
20144    old_archive_from_expsyms_cmds_GCJ \
20145    allow_undefined_flag_GCJ \
20146    no_undefined_flag_GCJ \
20147    export_symbols_cmds_GCJ \
20148    hardcode_libdir_flag_spec_GCJ \
20149    hardcode_libdir_flag_spec_ld_GCJ \
20150    hardcode_libdir_separator_GCJ \
20151    hardcode_automatic_GCJ \
20152    module_cmds_GCJ \
20153    module_expsym_cmds_GCJ \
20154    lt_cv_prog_compiler_c_o_GCJ \
20155    exclude_expsyms_GCJ \
20156    include_expsyms_GCJ; do
20157
20158    case $var in
20159    old_archive_cmds_GCJ | \
20160    old_archive_from_new_cmds_GCJ | \
20161    archive_cmds_GCJ | \
20162    archive_expsym_cmds_GCJ | \
20163    module_cmds_GCJ | \
20164    module_expsym_cmds_GCJ | \
20165    old_archive_from_expsyms_cmds_GCJ | \
20166    export_symbols_cmds_GCJ | \
20167    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20168    postinstall_cmds | postuninstall_cmds | \
20169    old_postinstall_cmds | old_postuninstall_cmds | \
20170    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20171      # Double-quote double-evaled strings.
20172      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20173      ;;
20174    *)
20175      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20176      ;;
20177    esac
20178  done
20179
20180  case $lt_echo in
20181  *'\$0 --fallback-echo"')
20182    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20183    ;;
20184  esac
20185
20186cfgfile="$ofile"
20187
20188  cat <<__EOF__ >> "$cfgfile"
20189# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20190
20191# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20192
20193# Shell to use when invoking shell scripts.
20194SHELL=$lt_SHELL
20195
20196# Whether or not to build shared libraries.
20197build_libtool_libs=$enable_shared
20198
20199# Whether or not to build static libraries.
20200build_old_libs=$enable_static
20201
20202# Whether or not to add -lc for building shared libraries.
20203build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20204
20205# Whether or not to disallow shared libs when runtime libs are static
20206allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20207
20208# Whether or not to optimize for fast installation.
20209fast_install=$enable_fast_install
20210
20211# The host system.
20212host_alias=$host_alias
20213host=$host
20214host_os=$host_os
20215
20216# The build system.
20217build_alias=$build_alias
20218build=$build
20219build_os=$build_os
20220
20221# An echo program that does not interpret backslashes.
20222echo=$lt_echo
20223
20224# The archiver.
20225AR=$lt_AR
20226AR_FLAGS=$lt_AR_FLAGS
20227
20228# A C compiler.
20229LTCC=$lt_LTCC
20230
20231# LTCC compiler flags.
20232LTCFLAGS=$lt_LTCFLAGS
20233
20234# A language-specific compiler.
20235CC=$lt_compiler_GCJ
20236
20237# Is the compiler the GNU C compiler?
20238with_gcc=$GCC_GCJ
20239
20240# An ERE matcher.
20241EGREP=$lt_EGREP
20242
20243# The linker used to build libraries.
20244LD=$lt_LD_GCJ
20245
20246# Whether we need hard or soft links.
20247LN_S=$lt_LN_S
20248
20249# A BSD-compatible nm program.
20250NM=$lt_NM
20251
20252# A symbol stripping program
20253STRIP=$lt_STRIP
20254
20255# Used to examine libraries when file_magic_cmd begins "file"
20256MAGIC_CMD=$MAGIC_CMD
20257
20258# Used on cygwin: DLL creation program.
20259DLLTOOL="$DLLTOOL"
20260
20261# Used on cygwin: object dumper.
20262OBJDUMP="$OBJDUMP"
20263
20264# Used on cygwin: assembler.
20265AS="$AS"
20266
20267# The name of the directory that contains temporary libtool files.
20268objdir=$objdir
20269
20270# How to create reloadable object files.
20271reload_flag=$lt_reload_flag
20272reload_cmds=$lt_reload_cmds
20273
20274# How to pass a linker flag through the compiler.
20275wl=$lt_lt_prog_compiler_wl_GCJ
20276
20277# Object file suffix (normally "o").
20278objext="$ac_objext"
20279
20280# Old archive suffix (normally "a").
20281libext="$libext"
20282
20283# Shared library suffix (normally ".so").
20284shrext_cmds='$shrext_cmds'
20285
20286# Executable file suffix (normally "").
20287exeext="$exeext"
20288
20289# Additional compiler flags for building library objects.
20290pic_flag=$lt_lt_prog_compiler_pic_GCJ
20291pic_mode=$pic_mode
20292
20293# What is the maximum length of a command?
20294max_cmd_len=$lt_cv_sys_max_cmd_len
20295
20296# Does compiler simultaneously support -c and -o options?
20297compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20298
20299# Must we lock files when doing compilation?
20300need_locks=$lt_need_locks
20301
20302# Do we need the lib prefix for modules?
20303need_lib_prefix=$need_lib_prefix
20304
20305# Do we need a version for libraries?
20306need_version=$need_version
20307
20308# Whether dlopen is supported.
20309dlopen_support=$enable_dlopen
20310
20311# Whether dlopen of programs is supported.
20312dlopen_self=$enable_dlopen_self
20313
20314# Whether dlopen of statically linked programs is supported.
20315dlopen_self_static=$enable_dlopen_self_static
20316
20317# Compiler flag to prevent dynamic linking.
20318link_static_flag=$lt_lt_prog_compiler_static_GCJ
20319
20320# Compiler flag to turn off builtin functions.
20321no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20322
20323# Compiler flag to allow reflexive dlopens.
20324export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20325
20326# Compiler flag to generate shared objects directly from archives.
20327whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20328
20329# Compiler flag to generate thread-safe objects.
20330thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20331
20332# Library versioning type.
20333version_type=$version_type
20334
20335# Format of library name prefix.
20336libname_spec=$lt_libname_spec
20337
20338# List of archive names.  First name is the real one, the rest are links.
20339# The last name is the one that the linker finds with -lNAME.
20340library_names_spec=$lt_library_names_spec
20341
20342# The coded name of the library, if different from the real name.
20343soname_spec=$lt_soname_spec
20344
20345# Commands used to build and install an old-style archive.
20346RANLIB=$lt_RANLIB
20347old_archive_cmds=$lt_old_archive_cmds_GCJ
20348old_postinstall_cmds=$lt_old_postinstall_cmds
20349old_postuninstall_cmds=$lt_old_postuninstall_cmds
20350
20351# Create an old-style archive from a shared archive.
20352old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20353
20354# Create a temporary old-style archive to link instead of a shared archive.
20355old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20356
20357# Commands used to build and install a shared archive.
20358archive_cmds=$lt_archive_cmds_GCJ
20359archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20360postinstall_cmds=$lt_postinstall_cmds
20361postuninstall_cmds=$lt_postuninstall_cmds
20362
20363# Commands used to build a loadable module (assumed same as above if empty)
20364module_cmds=$lt_module_cmds_GCJ
20365module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20366
20367# Commands to strip libraries.
20368old_striplib=$lt_old_striplib
20369striplib=$lt_striplib
20370
20371# Dependencies to place before the objects being linked to create a
20372# shared library.
20373predep_objects=$lt_predep_objects_GCJ
20374
20375# Dependencies to place after the objects being linked to create a
20376# shared library.
20377postdep_objects=$lt_postdep_objects_GCJ
20378
20379# Dependencies to place before the objects being linked to create a
20380# shared library.
20381predeps=$lt_predeps_GCJ
20382
20383# Dependencies to place after the objects being linked to create a
20384# shared library.
20385postdeps=$lt_postdeps_GCJ
20386
20387# The library search path used internally by the compiler when linking
20388# a shared library.
20389compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20390
20391# Method to check whether dependent libraries are shared objects.
20392deplibs_check_method=$lt_deplibs_check_method
20393
20394# Command to use when deplibs_check_method == file_magic.
20395file_magic_cmd=$lt_file_magic_cmd
20396
20397# Flag that allows shared libraries with undefined symbols to be built.
20398allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20399
20400# Flag that forces no undefined symbols.
20401no_undefined_flag=$lt_no_undefined_flag_GCJ
20402
20403# Commands used to finish a libtool library installation in a directory.
20404finish_cmds=$lt_finish_cmds
20405
20406# Same as above, but a single script fragment to be evaled but not shown.
20407finish_eval=$lt_finish_eval
20408
20409# Take the output of nm and produce a listing of raw symbols and C names.
20410global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20411
20412# Transform the output of nm in a proper C declaration
20413global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20414
20415# Transform the output of nm in a C name address pair
20416global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20417
20418# This is the shared library runtime path variable.
20419runpath_var=$runpath_var
20420
20421# This is the shared library path variable.
20422shlibpath_var=$shlibpath_var
20423
20424# Is shlibpath searched before the hard-coded library search path?
20425shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20426
20427# How to hardcode a shared library path into an executable.
20428hardcode_action=$hardcode_action_GCJ
20429
20430# Whether we should hardcode library paths into libraries.
20431hardcode_into_libs=$hardcode_into_libs
20432
20433# Flag to hardcode \$libdir into a binary during linking.
20434# This must work even if \$libdir does not exist.
20435hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20436
20437# If ld is used when linking, flag to hardcode \$libdir into
20438# a binary during linking. This must work even if \$libdir does
20439# not exist.
20440hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20441
20442# Whether we need a single -rpath flag with a separated argument.
20443hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20444
20445# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20446# resulting binary.
20447hardcode_direct=$hardcode_direct_GCJ
20448
20449# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20450# resulting binary.
20451hardcode_minus_L=$hardcode_minus_L_GCJ
20452
20453# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20454# the resulting binary.
20455hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20456
20457# Set to yes if building a shared library automatically hardcodes DIR into the library
20458# and all subsequent libraries and executables linked against it.
20459hardcode_automatic=$hardcode_automatic_GCJ
20460
20461# Variables whose values should be saved in libtool wrapper scripts and
20462# restored at relink time.
20463variables_saved_for_relink="$variables_saved_for_relink"
20464
20465# Whether libtool must link a program against all its dependency libraries.
20466link_all_deplibs=$link_all_deplibs_GCJ
20467
20468# Compile-time system search path for libraries
20469sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20470
20471# Run-time system search path for libraries
20472sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20473
20474# Fix the shell variable \$srcfile for the compiler.
20475fix_srcfile_path="$fix_srcfile_path_GCJ"
20476
20477# Set to yes if exported symbols are required.
20478always_export_symbols=$always_export_symbols_GCJ
20479
20480# The commands to list exported symbols.
20481export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20482
20483# The commands to extract the exported symbol list from a shared archive.
20484extract_expsyms_cmds=$lt_extract_expsyms_cmds
20485
20486# Symbols that should not be listed in the preloaded symbols.
20487exclude_expsyms=$lt_exclude_expsyms_GCJ
20488
20489# Symbols that must always be exported.
20490include_expsyms=$lt_include_expsyms_GCJ
20491
20492# ### END LIBTOOL TAG CONFIG: $tagname
20493
20494__EOF__
20495
20496
20497else
20498  # If there is no Makefile yet, we rely on a make rule to execute
20499  # `config.status --recheck' to rerun these tests and create the
20500  # libtool script then.
20501  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20502  if test -f "$ltmain_in"; then
20503    test -f Makefile && make "$ltmain"
20504  fi
20505fi
20506
20507
20508ac_ext=c
20509ac_cpp='$CPP $CPPFLAGS'
20510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20512ac_compiler_gnu=$ac_cv_c_compiler_gnu
20513
20514CC="$lt_save_CC"
20515
20516	else
20517	  tagname=""
20518	fi
20519	;;
20520
20521      RC)
20522
20523
20524# Source file extension for RC test sources.
20525ac_ext=rc
20526
20527# Object file extension for compiled RC test sources.
20528objext=o
20529objext_RC=$objext
20530
20531# Code to be used in simple compile tests
20532lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20533
20534# Code to be used in simple link tests
20535lt_simple_link_test_code="$lt_simple_compile_test_code"
20536
20537# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20538
20539# If no C compiler was specified, use CC.
20540LTCC=${LTCC-"$CC"}
20541
20542# If no C compiler flags were specified, use CFLAGS.
20543LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20544
20545# Allow CC to be a program name with arguments.
20546compiler=$CC
20547
20548
20549# save warnings/boilerplate of simple test code
20550ac_outfile=conftest.$ac_objext
20551printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20552eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20553_lt_compiler_boilerplate=`cat conftest.err`
20554$rm conftest*
20555
20556ac_outfile=conftest.$ac_objext
20557printf "$lt_simple_link_test_code" >conftest.$ac_ext
20558eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20559_lt_linker_boilerplate=`cat conftest.err`
20560$rm conftest*
20561
20562
20563# Allow CC to be a program name with arguments.
20564lt_save_CC="$CC"
20565CC=${RC-"windres"}
20566compiler=$CC
20567compiler_RC=$CC
20568for cc_temp in $compiler""; do
20569  case $cc_temp in
20570    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20571    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20572    \-*) ;;
20573    *) break;;
20574  esac
20575done
20576cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20577
20578lt_cv_prog_compiler_c_o_RC=yes
20579
20580# The else clause should only fire when bootstrapping the
20581# libtool distribution, otherwise you forgot to ship ltmain.sh
20582# with your package, and you will get complaints that there are
20583# no rules to generate ltmain.sh.
20584if test -f "$ltmain"; then
20585  # See if we are running on zsh, and set the options which allow our commands through
20586  # without removal of \ escapes.
20587  if test -n "${ZSH_VERSION+set}" ; then
20588    setopt NO_GLOB_SUBST
20589  fi
20590  # Now quote all the things that may contain metacharacters while being
20591  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20592  # variables and quote the copies for generation of the libtool script.
20593  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20594    SED SHELL STRIP \
20595    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20596    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20597    deplibs_check_method reload_flag reload_cmds need_locks \
20598    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20599    lt_cv_sys_global_symbol_to_c_name_address \
20600    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20601    old_postinstall_cmds old_postuninstall_cmds \
20602    compiler_RC \
20603    CC_RC \
20604    LD_RC \
20605    lt_prog_compiler_wl_RC \
20606    lt_prog_compiler_pic_RC \
20607    lt_prog_compiler_static_RC \
20608    lt_prog_compiler_no_builtin_flag_RC \
20609    export_dynamic_flag_spec_RC \
20610    thread_safe_flag_spec_RC \
20611    whole_archive_flag_spec_RC \
20612    enable_shared_with_static_runtimes_RC \
20613    old_archive_cmds_RC \
20614    old_archive_from_new_cmds_RC \
20615    predep_objects_RC \
20616    postdep_objects_RC \
20617    predeps_RC \
20618    postdeps_RC \
20619    compiler_lib_search_path_RC \
20620    archive_cmds_RC \
20621    archive_expsym_cmds_RC \
20622    postinstall_cmds_RC \
20623    postuninstall_cmds_RC \
20624    old_archive_from_expsyms_cmds_RC \
20625    allow_undefined_flag_RC \
20626    no_undefined_flag_RC \
20627    export_symbols_cmds_RC \
20628    hardcode_libdir_flag_spec_RC \
20629    hardcode_libdir_flag_spec_ld_RC \
20630    hardcode_libdir_separator_RC \
20631    hardcode_automatic_RC \
20632    module_cmds_RC \
20633    module_expsym_cmds_RC \
20634    lt_cv_prog_compiler_c_o_RC \
20635    exclude_expsyms_RC \
20636    include_expsyms_RC; do
20637
20638    case $var in
20639    old_archive_cmds_RC | \
20640    old_archive_from_new_cmds_RC | \
20641    archive_cmds_RC | \
20642    archive_expsym_cmds_RC | \
20643    module_cmds_RC | \
20644    module_expsym_cmds_RC | \
20645    old_archive_from_expsyms_cmds_RC | \
20646    export_symbols_cmds_RC | \
20647    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20648    postinstall_cmds | postuninstall_cmds | \
20649    old_postinstall_cmds | old_postuninstall_cmds | \
20650    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20651      # Double-quote double-evaled strings.
20652      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20653      ;;
20654    *)
20655      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20656      ;;
20657    esac
20658  done
20659
20660  case $lt_echo in
20661  *'\$0 --fallback-echo"')
20662    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20663    ;;
20664  esac
20665
20666cfgfile="$ofile"
20667
20668  cat <<__EOF__ >> "$cfgfile"
20669# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20670
20671# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20672
20673# Shell to use when invoking shell scripts.
20674SHELL=$lt_SHELL
20675
20676# Whether or not to build shared libraries.
20677build_libtool_libs=$enable_shared
20678
20679# Whether or not to build static libraries.
20680build_old_libs=$enable_static
20681
20682# Whether or not to add -lc for building shared libraries.
20683build_libtool_need_lc=$archive_cmds_need_lc_RC
20684
20685# Whether or not to disallow shared libs when runtime libs are static
20686allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20687
20688# Whether or not to optimize for fast installation.
20689fast_install=$enable_fast_install
20690
20691# The host system.
20692host_alias=$host_alias
20693host=$host
20694host_os=$host_os
20695
20696# The build system.
20697build_alias=$build_alias
20698build=$build
20699build_os=$build_os
20700
20701# An echo program that does not interpret backslashes.
20702echo=$lt_echo
20703
20704# The archiver.
20705AR=$lt_AR
20706AR_FLAGS=$lt_AR_FLAGS
20707
20708# A C compiler.
20709LTCC=$lt_LTCC
20710
20711# LTCC compiler flags.
20712LTCFLAGS=$lt_LTCFLAGS
20713
20714# A language-specific compiler.
20715CC=$lt_compiler_RC
20716
20717# Is the compiler the GNU C compiler?
20718with_gcc=$GCC_RC
20719
20720# An ERE matcher.
20721EGREP=$lt_EGREP
20722
20723# The linker used to build libraries.
20724LD=$lt_LD_RC
20725
20726# Whether we need hard or soft links.
20727LN_S=$lt_LN_S
20728
20729# A BSD-compatible nm program.
20730NM=$lt_NM
20731
20732# A symbol stripping program
20733STRIP=$lt_STRIP
20734
20735# Used to examine libraries when file_magic_cmd begins "file"
20736MAGIC_CMD=$MAGIC_CMD
20737
20738# Used on cygwin: DLL creation program.
20739DLLTOOL="$DLLTOOL"
20740
20741# Used on cygwin: object dumper.
20742OBJDUMP="$OBJDUMP"
20743
20744# Used on cygwin: assembler.
20745AS="$AS"
20746
20747# The name of the directory that contains temporary libtool files.
20748objdir=$objdir
20749
20750# How to create reloadable object files.
20751reload_flag=$lt_reload_flag
20752reload_cmds=$lt_reload_cmds
20753
20754# How to pass a linker flag through the compiler.
20755wl=$lt_lt_prog_compiler_wl_RC
20756
20757# Object file suffix (normally "o").
20758objext="$ac_objext"
20759
20760# Old archive suffix (normally "a").
20761libext="$libext"
20762
20763# Shared library suffix (normally ".so").
20764shrext_cmds='$shrext_cmds'
20765
20766# Executable file suffix (normally "").
20767exeext="$exeext"
20768
20769# Additional compiler flags for building library objects.
20770pic_flag=$lt_lt_prog_compiler_pic_RC
20771pic_mode=$pic_mode
20772
20773# What is the maximum length of a command?
20774max_cmd_len=$lt_cv_sys_max_cmd_len
20775
20776# Does compiler simultaneously support -c and -o options?
20777compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20778
20779# Must we lock files when doing compilation?
20780need_locks=$lt_need_locks
20781
20782# Do we need the lib prefix for modules?
20783need_lib_prefix=$need_lib_prefix
20784
20785# Do we need a version for libraries?
20786need_version=$need_version
20787
20788# Whether dlopen is supported.
20789dlopen_support=$enable_dlopen
20790
20791# Whether dlopen of programs is supported.
20792dlopen_self=$enable_dlopen_self
20793
20794# Whether dlopen of statically linked programs is supported.
20795dlopen_self_static=$enable_dlopen_self_static
20796
20797# Compiler flag to prevent dynamic linking.
20798link_static_flag=$lt_lt_prog_compiler_static_RC
20799
20800# Compiler flag to turn off builtin functions.
20801no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20802
20803# Compiler flag to allow reflexive dlopens.
20804export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20805
20806# Compiler flag to generate shared objects directly from archives.
20807whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20808
20809# Compiler flag to generate thread-safe objects.
20810thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20811
20812# Library versioning type.
20813version_type=$version_type
20814
20815# Format of library name prefix.
20816libname_spec=$lt_libname_spec
20817
20818# List of archive names.  First name is the real one, the rest are links.
20819# The last name is the one that the linker finds with -lNAME.
20820library_names_spec=$lt_library_names_spec
20821
20822# The coded name of the library, if different from the real name.
20823soname_spec=$lt_soname_spec
20824
20825# Commands used to build and install an old-style archive.
20826RANLIB=$lt_RANLIB
20827old_archive_cmds=$lt_old_archive_cmds_RC
20828old_postinstall_cmds=$lt_old_postinstall_cmds
20829old_postuninstall_cmds=$lt_old_postuninstall_cmds
20830
20831# Create an old-style archive from a shared archive.
20832old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20833
20834# Create a temporary old-style archive to link instead of a shared archive.
20835old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20836
20837# Commands used to build and install a shared archive.
20838archive_cmds=$lt_archive_cmds_RC
20839archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20840postinstall_cmds=$lt_postinstall_cmds
20841postuninstall_cmds=$lt_postuninstall_cmds
20842
20843# Commands used to build a loadable module (assumed same as above if empty)
20844module_cmds=$lt_module_cmds_RC
20845module_expsym_cmds=$lt_module_expsym_cmds_RC
20846
20847# Commands to strip libraries.
20848old_striplib=$lt_old_striplib
20849striplib=$lt_striplib
20850
20851# Dependencies to place before the objects being linked to create a
20852# shared library.
20853predep_objects=$lt_predep_objects_RC
20854
20855# Dependencies to place after the objects being linked to create a
20856# shared library.
20857postdep_objects=$lt_postdep_objects_RC
20858
20859# Dependencies to place before the objects being linked to create a
20860# shared library.
20861predeps=$lt_predeps_RC
20862
20863# Dependencies to place after the objects being linked to create a
20864# shared library.
20865postdeps=$lt_postdeps_RC
20866
20867# The library search path used internally by the compiler when linking
20868# a shared library.
20869compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20870
20871# Method to check whether dependent libraries are shared objects.
20872deplibs_check_method=$lt_deplibs_check_method
20873
20874# Command to use when deplibs_check_method == file_magic.
20875file_magic_cmd=$lt_file_magic_cmd
20876
20877# Flag that allows shared libraries with undefined symbols to be built.
20878allow_undefined_flag=$lt_allow_undefined_flag_RC
20879
20880# Flag that forces no undefined symbols.
20881no_undefined_flag=$lt_no_undefined_flag_RC
20882
20883# Commands used to finish a libtool library installation in a directory.
20884finish_cmds=$lt_finish_cmds
20885
20886# Same as above, but a single script fragment to be evaled but not shown.
20887finish_eval=$lt_finish_eval
20888
20889# Take the output of nm and produce a listing of raw symbols and C names.
20890global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20891
20892# Transform the output of nm in a proper C declaration
20893global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20894
20895# Transform the output of nm in a C name address pair
20896global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20897
20898# This is the shared library runtime path variable.
20899runpath_var=$runpath_var
20900
20901# This is the shared library path variable.
20902shlibpath_var=$shlibpath_var
20903
20904# Is shlibpath searched before the hard-coded library search path?
20905shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20906
20907# How to hardcode a shared library path into an executable.
20908hardcode_action=$hardcode_action_RC
20909
20910# Whether we should hardcode library paths into libraries.
20911hardcode_into_libs=$hardcode_into_libs
20912
20913# Flag to hardcode \$libdir into a binary during linking.
20914# This must work even if \$libdir does not exist.
20915hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20916
20917# If ld is used when linking, flag to hardcode \$libdir into
20918# a binary during linking. This must work even if \$libdir does
20919# not exist.
20920hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20921
20922# Whether we need a single -rpath flag with a separated argument.
20923hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20924
20925# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20926# resulting binary.
20927hardcode_direct=$hardcode_direct_RC
20928
20929# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20930# resulting binary.
20931hardcode_minus_L=$hardcode_minus_L_RC
20932
20933# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20934# the resulting binary.
20935hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20936
20937# Set to yes if building a shared library automatically hardcodes DIR into the library
20938# and all subsequent libraries and executables linked against it.
20939hardcode_automatic=$hardcode_automatic_RC
20940
20941# Variables whose values should be saved in libtool wrapper scripts and
20942# restored at relink time.
20943variables_saved_for_relink="$variables_saved_for_relink"
20944
20945# Whether libtool must link a program against all its dependency libraries.
20946link_all_deplibs=$link_all_deplibs_RC
20947
20948# Compile-time system search path for libraries
20949sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20950
20951# Run-time system search path for libraries
20952sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20953
20954# Fix the shell variable \$srcfile for the compiler.
20955fix_srcfile_path="$fix_srcfile_path_RC"
20956
20957# Set to yes if exported symbols are required.
20958always_export_symbols=$always_export_symbols_RC
20959
20960# The commands to list exported symbols.
20961export_symbols_cmds=$lt_export_symbols_cmds_RC
20962
20963# The commands to extract the exported symbol list from a shared archive.
20964extract_expsyms_cmds=$lt_extract_expsyms_cmds
20965
20966# Symbols that should not be listed in the preloaded symbols.
20967exclude_expsyms=$lt_exclude_expsyms_RC
20968
20969# Symbols that must always be exported.
20970include_expsyms=$lt_include_expsyms_RC
20971
20972# ### END LIBTOOL TAG CONFIG: $tagname
20973
20974__EOF__
20975
20976
20977else
20978  # If there is no Makefile yet, we rely on a make rule to execute
20979  # `config.status --recheck' to rerun these tests and create the
20980  # libtool script then.
20981  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20982  if test -f "$ltmain_in"; then
20983    test -f Makefile && make "$ltmain"
20984  fi
20985fi
20986
20987
20988ac_ext=c
20989ac_cpp='$CPP $CPPFLAGS'
20990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20992ac_compiler_gnu=$ac_cv_c_compiler_gnu
20993
20994CC="$lt_save_CC"
20995
20996	;;
20997
20998      *)
20999	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21000echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21001   { (exit 1); exit 1; }; }
21002	;;
21003      esac
21004
21005      # Append the new tag name to the list of available tags.
21006      if test -n "$tagname" ; then
21007      available_tags="$available_tags $tagname"
21008    fi
21009    fi
21010  done
21011  IFS="$lt_save_ifs"
21012
21013  # Now substitute the updated list of available tags.
21014  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21015    mv "${ofile}T" "$ofile"
21016    chmod +x "$ofile"
21017  else
21018    rm -f "${ofile}T"
21019    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21020echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21021   { (exit 1); exit 1; }; }
21022  fi
21023fi
21024
21025
21026
21027# This can be used to rebuild libtool when needed
21028LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21029
21030# Always use our own libtool.
21031LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21032
21033# Prevent multiple expansion
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055SOFLAGS="-rpath \$(libdir)"
21056LIBTOOL_PROG="${SHELL} ./libtool"
21057
21058# Set SOSUFFIX and friends
21059
21060	{ echo "$as_me:$LINENO: checking SOSUFFIX from libtool" >&5
21061echo $ECHO_N "checking SOSUFFIX from libtool... $ECHO_C" >&6; }
21062	module=no
21063
21064	versuffix=""
21065	release=""
21066	libname=libfoo
21067	eval _SOSUFFIX=\"$shrext_cmds\"
21068	if test "$_SOSUFFIX" = "" ; then
21069		_SOSUFFIX=".so"
21070		if test `$LIBTOOL_PROG --config | grep build_libtool_libs | grep no` 2>/dev/null; then
21071			if test "$_SOSUFFIX_MESSAGE" = ""; then
21072				_SOSUFFIX_MESSAGE=yes
21073        			{ echo "$as_me:$LINENO: WARNING: libtool may not know about this architecture." >&5
21074echo "$as_me: WARNING: libtool may not know about this architecture." >&2;}
21075               			{ echo "$as_me:$LINENO: WARNING: assuming $_SUFFIX suffix for dynamic libraries." >&5
21076echo "$as_me: WARNING: assuming $_SUFFIX suffix for dynamic libraries." >&2;}
21077			fi
21078        	fi
21079        fi
21080
21081        SOSUFFIX=$_SOSUFFIX
21082	{ echo "$as_me:$LINENO: result: $SOSUFFIX" >&5
21083echo "${ECHO_T}$SOSUFFIX" >&6; }
21084
21085
21086
21087	{ echo "$as_me:$LINENO: checking MODSUFFIX from libtool" >&5
21088echo $ECHO_N "checking MODSUFFIX from libtool... $ECHO_C" >&6; }
21089	module=yes
21090
21091	versuffix=""
21092	release=""
21093	libname=libfoo
21094	eval _SOSUFFIX=\"$shrext_cmds\"
21095	if test "$_SOSUFFIX" = "" ; then
21096		_SOSUFFIX=".so"
21097		if test `$LIBTOOL_PROG --config | grep build_libtool_libs | grep no` 2>/dev/null; then
21098			if test "$_SOSUFFIX_MESSAGE" = ""; then
21099				_SOSUFFIX_MESSAGE=yes
21100        			{ echo "$as_me:$LINENO: WARNING: libtool may not know about this architecture." >&5
21101echo "$as_me: WARNING: libtool may not know about this architecture." >&2;}
21102               			{ echo "$as_me:$LINENO: WARNING: assuming $_SUFFIX suffix for dynamic libraries." >&5
21103echo "$as_me: WARNING: assuming $_SUFFIX suffix for dynamic libraries." >&2;}
21104			fi
21105        	fi
21106        fi
21107
21108        MODSUFFIX=$_SOSUFFIX
21109	{ echo "$as_me:$LINENO: result: $MODSUFFIX" >&5
21110echo "${ECHO_T}$MODSUFFIX" >&6; }
21111
21112
21113
21114	{ echo "$as_me:$LINENO: checking JMODSUFFIX from libtool" >&5
21115echo $ECHO_N "checking JMODSUFFIX from libtool... $ECHO_C" >&6; }
21116	module=yes
21117
21118	versuffix=""
21119	release=""
21120	libname=libfoo
21121	eval _SOSUFFIX=\"$shrext_cmds\"
21122	if test "$_SOSUFFIX" = "" ; then
21123		_SOSUFFIX=".so"
21124		if test `$LIBTOOL_PROG --config | grep build_libtool_libs | grep no` 2>/dev/null; then
21125			if test "$_SOSUFFIX_MESSAGE" = ""; then
21126				_SOSUFFIX_MESSAGE=yes
21127        			{ echo "$as_me:$LINENO: WARNING: libtool may not know about this architecture." >&5
21128echo "$as_me: WARNING: libtool may not know about this architecture." >&2;}
21129               			{ echo "$as_me:$LINENO: WARNING: assuming $_SUFFIX suffix for dynamic libraries." >&5
21130echo "$as_me: WARNING: assuming $_SUFFIX suffix for dynamic libraries." >&2;}
21131			fi
21132        	fi
21133        fi
21134
21135	if test `uname` = "Darwin"; then
21136	    JMODSUFFIX=".jnilib"
21137	else
21138            JMODSUFFIX=$_SOSUFFIX
21139	fi
21140	{ echo "$as_me:$LINENO: result: $JMODSUFFIX" >&5
21141echo "${ECHO_T}$JMODSUFFIX" >&6; }
21142
21143
21144
21145INSTALLER="\$(LIBTOOL) --mode=install cp -p"
21146
21147MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${MAKEFILE_CC}"
21148MAKEFILE_SOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK} -avoid-version"
21149MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK}"
21150MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${MAKEFILE_CXX}"
21151MAKEFILE_XSOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK} -avoid-version"
21152MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK}"
21153
21154LIBTOOL="\$(SHELL) ./libtool"
21155
21156case "$host_os" in
21157cygwin* | mingw*)
21158	MAKEFILE_SOLINK="$MAKEFILE_SOLINK -no-undefined"
21159	MAKEFILE_XSOLINK="$MAKEFILE_XSOLINK -no-undefined";;
21160esac
21161
21162# Configure for shared libraries, static libraries, or both.  If both are
21163# configured, build the utilities and example programs with shared versions.
21164#
21165# $o is set to ".o" or ".lo", and is the file suffix used in the Makefile
21166# instead of .o
21167if test `$LIBTOOL_PROG --config |
21168    grep build_libtool_libs | grep no` 2>/dev/null; then
21169	enable_shared="no"
21170else
21171	enable_shared="yes"
21172fi
21173if test `$LIBTOOL_PROG --config |
21174    grep build_old_libs | grep no` 2>/dev/null; then
21175	enable_static="no"
21176else
21177	enable_static="yes"
21178fi
21179
21180case "$host_os" in
21181    darwin*)
21182        LIBTSO_MODULE=""
21183        LIBTSO_MODSUFFIX=".dylib";;
21184    *qnx*)
21185        LIBTSO_MODULE=""
21186        LIBTSO_MODSUFFIX=$MODSUFFIX;;
21187    *)
21188        LIBTSO_MODULE="-module"
21189        LIBTSO_MODSUFFIX=$MODSUFFIX;;
21190esac
21191
21192# C API.
21193if test "$enable_shared" = "no"; then
21194	DEFAULT_LIB="\$(libdb_version)"
21195	POSTLINK=": "
21196	o=".o"
21197else
21198	DEFAULT_LIB="\$(libso_target)"
21199	POSTLINK="\$(LIBTOOL) --mode=execute true"
21200	o=".lo"
21201fi
21202INSTALL_LIBS="$DEFAULT_LIB"
21203if test "$enable_static" = "yes"; then
21204	INSTALL_LIBS="$INSTALL_LIBS \$(libdb)"
21205fi
21206
21207# Optional C++ API.
21208if test "$db_cv_cxx" = "yes"; then
21209	if test "$enable_shared" = "no"; then
21210		DEFAULT_LIB_CXX="\$(libcxx_version)"
21211	fi
21212	if test "$enable_shared" = "yes"; then
21213		DEFAULT_LIB_CXX="\$(libxso_target)"
21214	fi
21215	INSTALL_LIBS="$INSTALL_LIBS $DEFAULT_LIB_CXX"
21216	if test "$enable_static" = "yes"; then
21217		INSTALL_LIBS="$INSTALL_LIBS \$(libcxx)"
21218	fi
21219fi
21220
21221# Optional Java API.
21222if test "$db_cv_java" = "yes"; then
21223	# Java requires shared libraries.
21224	if test "$enable_shared" = "no"; then
21225		{ { echo "$as_me:$LINENO: error: Java requires shared libraries" >&5
21226echo "$as_me: error: Java requires shared libraries" >&2;}
21227   { (exit 1); exit 1; }; }
21228	fi
21229
21230        # A classpath that includes . is needed to check for Java
21231	# Since Cygwin uses Windows' javac, we need Windows path separators
21232	case "$host_os" in
21233	cygwin*)	CLASSPATH=".;$CLASSPATH";;
21234	*)		CLASSPATH=".:$CLASSPATH";;
21235	esac
21236	export CLASSPATH
21237
21238if test "x$JAVAPREFIX" = x; then
21239        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
21240do
21241  # Extract the first word of "$ac_prog", so it can be a program name with args.
21242set dummy $ac_prog; ac_word=$2
21243{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21245if test "${ac_cv_prog_JAVAC+set}" = set; then
21246  echo $ECHO_N "(cached) $ECHO_C" >&6
21247else
21248  if test -n "$JAVAC"; then
21249  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
21250else
21251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21252for as_dir in $PATH
21253do
21254  IFS=$as_save_IFS
21255  test -z "$as_dir" && as_dir=.
21256  for ac_exec_ext in '' $ac_executable_extensions; do
21257  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21258    ac_cv_prog_JAVAC="$ac_prog"
21259    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21260    break 2
21261  fi
21262done
21263done
21264IFS=$as_save_IFS
21265
21266fi
21267fi
21268JAVAC=$ac_cv_prog_JAVAC
21269if test -n "$JAVAC"; then
21270  { echo "$as_me:$LINENO: result: $JAVAC" >&5
21271echo "${ECHO_T}$JAVAC" >&6; }
21272else
21273  { echo "$as_me:$LINENO: result: no" >&5
21274echo "${ECHO_T}no" >&6; }
21275fi
21276
21277
21278  test -n "$JAVAC" && break
21279done
21280
21281else
21282        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
21283do
21284  # Extract the first word of "$ac_prog", so it can be a program name with args.
21285set dummy $ac_prog; ac_word=$2
21286{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21288if test "${ac_cv_prog_JAVAC+set}" = set; then
21289  echo $ECHO_N "(cached) $ECHO_C" >&6
21290else
21291  if test -n "$JAVAC"; then
21292  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
21293else
21294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21295for as_dir in $PATH
21296do
21297  IFS=$as_save_IFS
21298  test -z "$as_dir" && as_dir=.
21299  for ac_exec_ext in '' $ac_executable_extensions; do
21300  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21301    ac_cv_prog_JAVAC="$ac_prog"
21302    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21303    break 2
21304  fi
21305done
21306done
21307IFS=$as_save_IFS
21308
21309fi
21310fi
21311JAVAC=$ac_cv_prog_JAVAC
21312if test -n "$JAVAC"; then
21313  { echo "$as_me:$LINENO: result: $JAVAC" >&5
21314echo "${ECHO_T}$JAVAC" >&6; }
21315else
21316  { echo "$as_me:$LINENO: result: no" >&5
21317echo "${ECHO_T}no" >&6; }
21318fi
21319
21320
21321  test -n "$JAVAC" && break
21322done
21323test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
21324
21325fi
21326test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: no acceptable Java compiler found in \$PATH" >&5
21327echo "$as_me: error: no acceptable Java compiler found in \$PATH" >&2;}
21328   { (exit 1); exit 1; }; }
21329
21330{ echo "$as_me:$LINENO: checking if $JAVAC works" >&5
21331echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6; }
21332if test "${ac_cv_prog_javac_works+set}" = set; then
21333  echo $ECHO_N "(cached) $ECHO_C" >&6
21334else
21335
21336JAVA_TEST=Test.java
21337CLASS_TEST=Test.class
21338cat << \EOF > $JAVA_TEST
21339/* #line 21339 "configure" */
21340public class Test {
21341}
21342EOF
21343if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
21344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21345  (eval $ac_try) 2>&5
21346  ac_status=$?
21347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348  (exit $ac_status); }; } >/dev/null 2>&1; then
21349  ac_cv_prog_javac_works=yes
21350else
21351  { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
21352echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
21353   { (exit 1); exit 1; }; }
21354  echo "configure: failed program was:" >&5
21355  cat $JAVA_TEST >&5
21356fi
21357rm -f $JAVA_TEST $CLASS_TEST
21358
21359fi
21360{ echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
21361echo "${ECHO_T}$ac_cv_prog_javac_works" >&6; }
21362
21363
21364
21365if test "x$JAVAPREFIX" = x; then
21366        test "x$JAR" = x && for ac_prog in jar$EXEEXT
21367do
21368  # Extract the first word of "$ac_prog", so it can be a program name with args.
21369set dummy $ac_prog; ac_word=$2
21370{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21372if test "${ac_cv_prog_JAR+set}" = set; then
21373  echo $ECHO_N "(cached) $ECHO_C" >&6
21374else
21375  if test -n "$JAR"; then
21376  ac_cv_prog_JAR="$JAR" # Let the user override the test.
21377else
21378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21379for as_dir in $PATH
21380do
21381  IFS=$as_save_IFS
21382  test -z "$as_dir" && as_dir=.
21383  for ac_exec_ext in '' $ac_executable_extensions; do
21384  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21385    ac_cv_prog_JAR="$ac_prog"
21386    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21387    break 2
21388  fi
21389done
21390done
21391IFS=$as_save_IFS
21392
21393fi
21394fi
21395JAR=$ac_cv_prog_JAR
21396if test -n "$JAR"; then
21397  { echo "$as_me:$LINENO: result: $JAR" >&5
21398echo "${ECHO_T}$JAR" >&6; }
21399else
21400  { echo "$as_me:$LINENO: result: no" >&5
21401echo "${ECHO_T}no" >&6; }
21402fi
21403
21404
21405  test -n "$JAR" && break
21406done
21407
21408else
21409        test "x$JAR" = x && for ac_prog in jar
21410do
21411  # Extract the first word of "$ac_prog", so it can be a program name with args.
21412set dummy $ac_prog; ac_word=$2
21413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21415if test "${ac_cv_prog_JAR+set}" = set; then
21416  echo $ECHO_N "(cached) $ECHO_C" >&6
21417else
21418  if test -n "$JAR"; then
21419  ac_cv_prog_JAR="$JAR" # Let the user override the test.
21420else
21421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21422for as_dir in $PATH
21423do
21424  IFS=$as_save_IFS
21425  test -z "$as_dir" && as_dir=.
21426  for ac_exec_ext in '' $ac_executable_extensions; do
21427  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21428    ac_cv_prog_JAR="$ac_prog"
21429    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21430    break 2
21431  fi
21432done
21433done
21434IFS=$as_save_IFS
21435
21436fi
21437fi
21438JAR=$ac_cv_prog_JAR
21439if test -n "$JAR"; then
21440  { echo "$as_me:$LINENO: result: $JAR" >&5
21441echo "${ECHO_T}$JAR" >&6; }
21442else
21443  { echo "$as_me:$LINENO: result: no" >&5
21444echo "${ECHO_T}no" >&6; }
21445fi
21446
21447
21448  test -n "$JAR" && break
21449done
21450test -n "$JAR" || JAR="$JAVAPREFIX"
21451
21452fi
21453test "x$JAR" = x && { { echo "$as_me:$LINENO: error: no acceptable jar program found in \$PATH" >&5
21454echo "$as_me: error: no acceptable jar program found in \$PATH" >&2;}
21455   { (exit 1); exit 1; }; }
21456
21457
21458if test x$JAVAPREFIX = x; then
21459        test x$JAVA = x && for ac_prog in java$EXEEXT kaffe$EXEEXT
21460do
21461  # Extract the first word of "$ac_prog", so it can be a program name with args.
21462set dummy $ac_prog; ac_word=$2
21463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21465if test "${ac_cv_prog_JAVA+set}" = set; then
21466  echo $ECHO_N "(cached) $ECHO_C" >&6
21467else
21468  if test -n "$JAVA"; then
21469  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
21470else
21471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21472for as_dir in $PATH
21473do
21474  IFS=$as_save_IFS
21475  test -z "$as_dir" && as_dir=.
21476  for ac_exec_ext in '' $ac_executable_extensions; do
21477  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21478    ac_cv_prog_JAVA="$ac_prog"
21479    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21480    break 2
21481  fi
21482done
21483done
21484IFS=$as_save_IFS
21485
21486fi
21487fi
21488JAVA=$ac_cv_prog_JAVA
21489if test -n "$JAVA"; then
21490  { echo "$as_me:$LINENO: result: $JAVA" >&5
21491echo "${ECHO_T}$JAVA" >&6; }
21492else
21493  { echo "$as_me:$LINENO: result: no" >&5
21494echo "${ECHO_T}no" >&6; }
21495fi
21496
21497
21498  test -n "$JAVA" && break
21499done
21500
21501else
21502        test x$JAVA = x && for ac_prog in java$EXEEXT kaffe$EXEEXT
21503do
21504  # Extract the first word of "$ac_prog", so it can be a program name with args.
21505set dummy $ac_prog; ac_word=$2
21506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21508if test "${ac_cv_prog_JAVA+set}" = set; then
21509  echo $ECHO_N "(cached) $ECHO_C" >&6
21510else
21511  if test -n "$JAVA"; then
21512  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
21513else
21514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21515for as_dir in $PATH
21516do
21517  IFS=$as_save_IFS
21518  test -z "$as_dir" && as_dir=.
21519  for ac_exec_ext in '' $ac_executable_extensions; do
21520  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21521    ac_cv_prog_JAVA="$ac_prog"
21522    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21523    break 2
21524  fi
21525done
21526done
21527IFS=$as_save_IFS
21528
21529fi
21530fi
21531JAVA=$ac_cv_prog_JAVA
21532if test -n "$JAVA"; then
21533  { echo "$as_me:$LINENO: result: $JAVA" >&5
21534echo "${ECHO_T}$JAVA" >&6; }
21535else
21536  { echo "$as_me:$LINENO: result: no" >&5
21537echo "${ECHO_T}no" >&6; }
21538fi
21539
21540
21541  test -n "$JAVA" && break
21542done
21543test -n "$JAVA" || JAVA="$JAVAPREFIX"
21544
21545fi
21546test x$JAVA = x && { { echo "$as_me:$LINENO: error: no acceptable Java virtual machine found in \$PATH" >&5
21547echo "$as_me: error: no acceptable Java virtual machine found in \$PATH" >&2;}
21548   { (exit 1); exit 1; }; }
21549
21550# Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
21551set dummy uudecode$EXEEXT; ac_word=$2
21552{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21554if test "${ac_cv_prog_uudecode+set}" = set; then
21555  echo $ECHO_N "(cached) $ECHO_C" >&6
21556else
21557  if test -n "$uudecode"; then
21558  ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
21559else
21560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21561for as_dir in $PATH
21562do
21563  IFS=$as_save_IFS
21564  test -z "$as_dir" && as_dir=.
21565  for ac_exec_ext in '' $ac_executable_extensions; do
21566  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21567    ac_cv_prog_uudecode="yes"
21568    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21569    break 2
21570  fi
21571done
21572done
21573IFS=$as_save_IFS
21574
21575fi
21576fi
21577uudecode=$ac_cv_prog_uudecode
21578if test -n "$uudecode"; then
21579  { echo "$as_me:$LINENO: result: $uudecode" >&5
21580echo "${ECHO_T}$uudecode" >&6; }
21581else
21582  { echo "$as_me:$LINENO: result: no" >&5
21583echo "${ECHO_T}no" >&6; }
21584fi
21585
21586
21587if test x$uudecode = xyes; then
21588{ echo "$as_me:$LINENO: checking if uudecode can decode base 64 file" >&5
21589echo $ECHO_N "checking if uudecode can decode base 64 file... $ECHO_C" >&6; }
21590if test "${ac_cv_prog_uudecode_base64+set}" = set; then
21591  echo $ECHO_N "(cached) $ECHO_C" >&6
21592else
21593
21594cat << \EOF > Test.uue
21595begin-base64 644 Test.class
21596yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
21597bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
21598bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
21599YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
21600aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
21601AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
21602AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
21603====
21604EOF
21605if uudecode$EXEEXT Test.uue; then
21606        ac_cv_prog_uudecode_base64=yes
21607else
21608        echo "configure: 21608: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
21609        echo "configure: failed file was:" >&5
21610        cat Test.uue >&5
21611        ac_cv_prog_uudecode_base64=no
21612fi
21613rm -f Test.uue
21614fi
21615{ echo "$as_me:$LINENO: result: $ac_cv_prog_uudecode_base64" >&5
21616echo "${ECHO_T}$ac_cv_prog_uudecode_base64" >&6; }
21617fi
21618if test x$ac_cv_prog_uudecode_base64 != xyes; then
21619        rm -f Test.class
21620        { echo "$as_me:$LINENO: WARNING: I have to compile Test.class from scratch" >&5
21621echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
21622        if test x$ac_cv_prog_javac_works = xno; then
21623                { { echo "$as_me:$LINENO: error: Cannot compile java source. $JAVAC does not work properly" >&5
21624echo "$as_me: error: Cannot compile java source. $JAVAC does not work properly" >&2;}
21625   { (exit 1); exit 1; }; }
21626        fi
21627        if test x$ac_cv_prog_javac_works = x; then
21628
21629if test "x$JAVAPREFIX" = x; then
21630        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
21631do
21632  # Extract the first word of "$ac_prog", so it can be a program name with args.
21633set dummy $ac_prog; ac_word=$2
21634{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21636if test "${ac_cv_prog_JAVAC+set}" = set; then
21637  echo $ECHO_N "(cached) $ECHO_C" >&6
21638else
21639  if test -n "$JAVAC"; then
21640  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
21641else
21642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21643for as_dir in $PATH
21644do
21645  IFS=$as_save_IFS
21646  test -z "$as_dir" && as_dir=.
21647  for ac_exec_ext in '' $ac_executable_extensions; do
21648  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21649    ac_cv_prog_JAVAC="$ac_prog"
21650    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21651    break 2
21652  fi
21653done
21654done
21655IFS=$as_save_IFS
21656
21657fi
21658fi
21659JAVAC=$ac_cv_prog_JAVAC
21660if test -n "$JAVAC"; then
21661  { echo "$as_me:$LINENO: result: $JAVAC" >&5
21662echo "${ECHO_T}$JAVAC" >&6; }
21663else
21664  { echo "$as_me:$LINENO: result: no" >&5
21665echo "${ECHO_T}no" >&6; }
21666fi
21667
21668
21669  test -n "$JAVAC" && break
21670done
21671
21672else
21673        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
21674do
21675  # Extract the first word of "$ac_prog", so it can be a program name with args.
21676set dummy $ac_prog; ac_word=$2
21677{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21679if test "${ac_cv_prog_JAVAC+set}" = set; then
21680  echo $ECHO_N "(cached) $ECHO_C" >&6
21681else
21682  if test -n "$JAVAC"; then
21683  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
21684else
21685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21686for as_dir in $PATH
21687do
21688  IFS=$as_save_IFS
21689  test -z "$as_dir" && as_dir=.
21690  for ac_exec_ext in '' $ac_executable_extensions; do
21691  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21692    ac_cv_prog_JAVAC="$ac_prog"
21693    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21694    break 2
21695  fi
21696done
21697done
21698IFS=$as_save_IFS
21699
21700fi
21701fi
21702JAVAC=$ac_cv_prog_JAVAC
21703if test -n "$JAVAC"; then
21704  { echo "$as_me:$LINENO: result: $JAVAC" >&5
21705echo "${ECHO_T}$JAVAC" >&6; }
21706else
21707  { echo "$as_me:$LINENO: result: no" >&5
21708echo "${ECHO_T}no" >&6; }
21709fi
21710
21711
21712  test -n "$JAVAC" && break
21713done
21714test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
21715
21716fi
21717test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: no acceptable Java compiler found in \$PATH" >&5
21718echo "$as_me: error: no acceptable Java compiler found in \$PATH" >&2;}
21719   { (exit 1); exit 1; }; }
21720
21721{ echo "$as_me:$LINENO: checking if $JAVAC works" >&5
21722echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6; }
21723if test "${ac_cv_prog_javac_works+set}" = set; then
21724  echo $ECHO_N "(cached) $ECHO_C" >&6
21725else
21726
21727JAVA_TEST=Test.java
21728CLASS_TEST=Test.class
21729cat << \EOF > $JAVA_TEST
21730/* #line 21730 "configure" */
21731public class Test {
21732}
21733EOF
21734if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
21735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21736  (eval $ac_try) 2>&5
21737  ac_status=$?
21738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739  (exit $ac_status); }; } >/dev/null 2>&1; then
21740  ac_cv_prog_javac_works=yes
21741else
21742  { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
21743echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
21744   { (exit 1); exit 1; }; }
21745  echo "configure: failed program was:" >&5
21746  cat $JAVA_TEST >&5
21747fi
21748rm -f $JAVA_TEST $CLASS_TEST
21749
21750fi
21751{ echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
21752echo "${ECHO_T}$ac_cv_prog_javac_works" >&6; }
21753
21754
21755        fi
21756fi
21757{ echo "$as_me:$LINENO: checking if $JAVA works" >&5
21758echo $ECHO_N "checking if $JAVA works... $ECHO_C" >&6; }
21759if test "${ac_cv_prog_java_works+set}" = set; then
21760  echo $ECHO_N "(cached) $ECHO_C" >&6
21761else
21762
21763JAVA_TEST=Test.java
21764CLASS_TEST=Test.class
21765TEST=Test
21766cat << \EOF > $JAVA_TEST
21767/* [#]line 21767 "configure" */
21768public class Test {
21769public static void main (String args[]) {
21770        System.exit (0);
21771} }
21772EOF
21773if test x$ac_cv_prog_uudecode_base64 != xyes; then
21774        if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
21775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21776  (eval $ac_try) 2>&5
21777  ac_status=$?
21778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779  (exit $ac_status); }; } && test -s $CLASS_TEST; then
21780                :
21781        else
21782          echo "configure: failed program was:" >&5
21783          cat $JAVA_TEST >&5
21784          { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
21785echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
21786   { (exit 1); exit 1; }; }
21787        fi
21788fi
21789if { ac_try='$JAVA $JAVAFLAGS $TEST'
21790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791  (eval $ac_try) 2>&5
21792  ac_status=$?
21793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794  (exit $ac_status); }; } >/dev/null 2>&1; then
21795  ac_cv_prog_java_works=yes
21796else
21797  echo "configure: failed program was:" >&5
21798  cat $JAVA_TEST >&5
21799  { { echo "$as_me:$LINENO: error: The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" >&5
21800echo "$as_me: error: The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" >&2;}
21801   { (exit 1); exit 1; }; }
21802fi
21803rm -fr $JAVA_TEST $CLASS_TEST Test.uue
21804
21805fi
21806{ echo "$as_me:$LINENO: result: $ac_cv_prog_java_works" >&5
21807echo "${ECHO_T}$ac_cv_prog_java_works" >&6; }
21808
21809
21810
21811
21812
21813JNI_INCLUDE_DIRS=""
21814
21815test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: '$JAVAC' undefined" >&5
21816echo "$as_me: error: '$JAVAC' undefined" >&2;}
21817   { (exit 1); exit 1; }; }
21818# Extract the first word of "$JAVAC", so it can be a program name with args.
21819set dummy $JAVAC; ac_word=$2
21820{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21822if test "${ac_cv_path__ACJNI_JAVAC+set}" = set; then
21823  echo $ECHO_N "(cached) $ECHO_C" >&6
21824else
21825  case $_ACJNI_JAVAC in
21826  [\\/]* | ?:[\\/]*)
21827  ac_cv_path__ACJNI_JAVAC="$_ACJNI_JAVAC" # Let the user override the test with a path.
21828  ;;
21829  *)
21830  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21831for as_dir in $PATH
21832do
21833  IFS=$as_save_IFS
21834  test -z "$as_dir" && as_dir=.
21835  for ac_exec_ext in '' $ac_executable_extensions; do
21836  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21837    ac_cv_path__ACJNI_JAVAC="$as_dir/$ac_word$ac_exec_ext"
21838    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21839    break 2
21840  fi
21841done
21842done
21843IFS=$as_save_IFS
21844
21845  test -z "$ac_cv_path__ACJNI_JAVAC" && ac_cv_path__ACJNI_JAVAC="$JAVAC"
21846  ;;
21847esac
21848fi
21849_ACJNI_JAVAC=$ac_cv_path__ACJNI_JAVAC
21850if test -n "$_ACJNI_JAVAC"; then
21851  { echo "$as_me:$LINENO: result: $_ACJNI_JAVAC" >&5
21852echo "${ECHO_T}$_ACJNI_JAVAC" >&6; }
21853else
21854  { echo "$as_me:$LINENO: result: no" >&5
21855echo "${ECHO_T}no" >&6; }
21856fi
21857
21858
21859test ! -x "$_ACJNI_JAVAC" && { { echo "$as_me:$LINENO: error: $JAVAC could not be found in path" >&5
21860echo "$as_me: error: $JAVAC could not be found in path" >&2;}
21861   { (exit 1); exit 1; }; }
21862{ echo "$as_me:$LINENO: checking absolute path of $JAVAC" >&5
21863echo $ECHO_N "checking absolute path of $JAVAC... $ECHO_C" >&6; }
21864case "$_ACJNI_JAVAC" in
21865/*)	{ echo "$as_me:$LINENO: result: $_ACJNI_JAVAC" >&5
21866echo "${ECHO_T}$_ACJNI_JAVAC" >&6; };;
21867*)	{ { echo "$as_me:$LINENO: error: $_ACJNI_JAVAC is not an absolute path name" >&5
21868echo "$as_me: error: $_ACJNI_JAVAC is not an absolute path name" >&2;}
21869   { (exit 1); exit 1; }; };;
21870esac
21871
21872
21873# find the include directory relative to the javac executable
21874_cur=""$_ACJNI_JAVAC""
21875while ls -ld "$_cur" 2>/dev/null | grep " -> " >/dev/null; do
21876	{ echo "$as_me:$LINENO: checking symlink for $_cur" >&5
21877echo $ECHO_N "checking symlink for $_cur... $ECHO_C" >&6; }
21878	_slink=`ls -ld "$_cur" | sed 's/.* -> //'`
21879	case "$_slink" in
21880	/*) _cur="$_slink";;
21881	# 'X' avoids triggering unwanted echo options.
21882	*) _cur=`echo "X$_cur" | sed -e 's/^X//' -e 's:[^/]*$::'`"$_slink";;
21883	esac
21884	{ echo "$as_me:$LINENO: result: $_cur" >&5
21885echo "${ECHO_T}$_cur" >&6; }
21886done
21887_ACJNI_FOLLOWED="$_cur"
21888
21889_JTOPDIR=`echo "$_ACJNI_FOLLOWED" | sed -e 's://*:/:g' -e 's:/[^/]*$::'`
21890case "$host_os" in
21891	darwin*)	_JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'`
21892			_JINC="$_JTOPDIR/Headers";;
21893	*)		_JINC="$_JTOPDIR/include";;
21894esac
21895
21896# If we find jni.h in /usr/include, then it's not a java-only tree, so
21897# don't add /usr/include or subdirectories to the list of includes.
21898# An extra -I/usr/include can foul things up with newer gcc's.
21899#
21900# If we don't find jni.h, just keep going.  Hopefully javac knows where
21901# to find its include files, even if we can't.
21902if test -r "$_JINC/jni.h"; then
21903	if test "$_JINC" != "/usr/include"; then
21904		JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JINC"
21905	fi
21906else
21907	_JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'`
21908	if test -r "$_JTOPDIR/include/jni.h"; then
21909		if test "$_JTOPDIR" != "/usr"; then
21910			JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include"
21911		fi
21912	fi
21913fi
21914
21915# get the likely subdirectories for system specific java includes
21916if test "$_JTOPDIR" != "/usr"; then
21917	case "$host_os" in
21918	aix*)		_JNI_INC_SUBDIRS="aix";;
21919	bsdi*)		_JNI_INC_SUBDIRS="bsdos";;
21920	cygwin*)	_JNI_INC_SUBDIRS="win32";;
21921	freebsd*)	_JNI_INC_SUBDIRS="freebsd";;
21922	hp*)		_JNI_INC_SUBDIRS="hp-ux";;
21923	linux*)		_JNI_INC_SUBDIRS="linux genunix";;
21924	osf*)		_JNI_INC_SUBDIRS="alpha";;
21925	solaris*)	_JNI_INC_SUBDIRS="solaris";;
21926	*)		_JNI_INC_SUBDIRS="genunix";;
21927	esac
21928fi
21929
21930# add any subdirectories that are present
21931for _JINCSUBDIR in $_JNI_INC_SUBDIRS
21932do
21933	if test -d "$_JTOPDIR/include/$_JINCSUBDIR"; then
21934		JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include/$_JINCSUBDIR"
21935	fi
21936done
21937
21938
21939	{ echo "$as_me:$LINENO: checking java version" >&5
21940echo $ECHO_N "checking java version... $ECHO_C" >&6; }
21941        case "$JAVA" in
21942	*kaffe* )
21943		JAVA_VERSION=`$JAVA -version 2>&1 |
21944			sed -e '/Java Version:/!d' -e 's/.*Java Version: \([^ 	]*\)[ 	]*/\1/'` ;;
21945	* )	JAVA_VERSION=`$JAVA -version 2>&1 |
21946        	       	sed -e '/ version /!d' -e 's/.*"\(.*\)".*/\1/'` ;;
21947	esac
21948	{ echo "$as_me:$LINENO: result: $JAVA_VERSION" >&5
21949echo "${ECHO_T}$JAVA_VERSION" >&6; }
21950	case "$JAVA_VERSION" in
21951	1.[3456789]* | 1.[1-9][0-9]* | [23456789]* ) ;;
21952	* )
21953		{ { echo "$as_me:$LINENO: error: Java version 1.3 or higher required, got $JAVA_VERSION" >&5
21954echo "$as_me: error: Java version 1.3 or higher required, got $JAVA_VERSION" >&2;}
21955   { (exit 1); exit 1; }; } ;;
21956	esac
21957
21958	# Because of the code that SWIG generates to cast between pointers and
21959	# integers, we need to add the flag "-fno-strict-aliasing" to the gcc
21960	# command line when compiling the JNI code.  This is documented in
21961	# [#14953] and at http://www.swig.org/Doc1.3/Java.html
21962	if test ${GCC} = "yes"; then
21963		SWIGCFLAGS="-fno-strict-aliasing"
21964	fi
21965
21966	for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS
21967	do
21968		CPPFLAGS="$CPPFLAGS -I$JNI_INCLUDE_DIR"
21969	done
21970
21971	ADDITIONAL_LANG="$ADDITIONAL_LANG java"
21972	INSTALL_LIBS="$INSTALL_LIBS \$(libjso_target)"
21973else
21974	JAVAC=nojavac
21975fi
21976
21977# MinGW support.
21978if test "$db_cv_mingw" = "yes"; then
21979	OSDIR=os_windows
21980	PATH_SEPARATOR="\\\\/:"
21981
21982	cat >>confdefs.h <<\_ACEOF
21983#define DB_WIN32 1
21984_ACEOF
21985
21986	cat >>confdefs.h <<\_ACEOF
21987#define STDC_HEADERS 1
21988_ACEOF
21989
21990else
21991	OSDIR=os
21992	PATH_SEPARATOR="/"
21993	cat >>confdefs.h <<\_ACEOF
21994#define HAVE_SYSTEM_INCLUDE_FILES 1
21995_ACEOF
21996
21997fi
21998
21999# Checks for include files, structures, C types.
22000{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22001echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
22002if test "${ac_cv_header_stat_broken+set}" = set; then
22003  echo $ECHO_N "(cached) $ECHO_C" >&6
22004else
22005  cat >conftest.$ac_ext <<_ACEOF
22006/* confdefs.h.  */
22007_ACEOF
22008cat confdefs.h >>conftest.$ac_ext
22009cat >>conftest.$ac_ext <<_ACEOF
22010/* end confdefs.h.  */
22011#include <sys/types.h>
22012#include <sys/stat.h>
22013
22014#if defined S_ISBLK && defined S_IFDIR
22015extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22016#endif
22017
22018#if defined S_ISBLK && defined S_IFCHR
22019extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22020#endif
22021
22022#if defined S_ISLNK && defined S_IFREG
22023extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22024#endif
22025
22026#if defined S_ISSOCK && defined S_IFREG
22027extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22028#endif
22029
22030_ACEOF
22031rm -f conftest.$ac_objext
22032if { (ac_try="$ac_compile"
22033case "(($ac_try" in
22034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035  *) ac_try_echo=$ac_try;;
22036esac
22037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038  (eval "$ac_compile") 2>conftest.er1
22039  ac_status=$?
22040  grep -v '^ *+' conftest.er1 >conftest.err
22041  rm -f conftest.er1
22042  cat conftest.err >&5
22043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044  (exit $ac_status); } && {
22045	 test -z "$ac_c_werror_flag" ||
22046	 test ! -s conftest.err
22047       } && test -s conftest.$ac_objext; then
22048  ac_cv_header_stat_broken=no
22049else
22050  echo "$as_me: failed program was:" >&5
22051sed 's/^/| /' conftest.$ac_ext >&5
22052
22053	ac_cv_header_stat_broken=yes
22054fi
22055
22056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22057fi
22058{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22059echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
22060if test $ac_cv_header_stat_broken = yes; then
22061
22062cat >>confdefs.h <<\_ACEOF
22063#define STAT_MACROS_BROKEN 1
22064_ACEOF
22065
22066fi
22067
22068{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22069echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22070if test "${ac_cv_header_time+set}" = set; then
22071  echo $ECHO_N "(cached) $ECHO_C" >&6
22072else
22073  cat >conftest.$ac_ext <<_ACEOF
22074/* confdefs.h.  */
22075_ACEOF
22076cat confdefs.h >>conftest.$ac_ext
22077cat >>conftest.$ac_ext <<_ACEOF
22078/* end confdefs.h.  */
22079#include <sys/types.h>
22080#include <sys/time.h>
22081#include <time.h>
22082
22083int
22084main ()
22085{
22086if ((struct tm *) 0)
22087return 0;
22088  ;
22089  return 0;
22090}
22091_ACEOF
22092rm -f conftest.$ac_objext
22093if { (ac_try="$ac_compile"
22094case "(($ac_try" in
22095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22096  *) ac_try_echo=$ac_try;;
22097esac
22098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22099  (eval "$ac_compile") 2>conftest.er1
22100  ac_status=$?
22101  grep -v '^ *+' conftest.er1 >conftest.err
22102  rm -f conftest.er1
22103  cat conftest.err >&5
22104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105  (exit $ac_status); } && {
22106	 test -z "$ac_c_werror_flag" ||
22107	 test ! -s conftest.err
22108       } && test -s conftest.$ac_objext; then
22109  ac_cv_header_time=yes
22110else
22111  echo "$as_me: failed program was:" >&5
22112sed 's/^/| /' conftest.$ac_ext >&5
22113
22114	ac_cv_header_time=no
22115fi
22116
22117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22118fi
22119{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22120echo "${ECHO_T}$ac_cv_header_time" >&6; }
22121if test $ac_cv_header_time = yes; then
22122
22123cat >>confdefs.h <<\_ACEOF
22124#define TIME_WITH_SYS_TIME 1
22125_ACEOF
22126
22127fi
22128
22129
22130
22131
22132
22133
22134ac_header_dirent=no
22135for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22136  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22137{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22138echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22140  echo $ECHO_N "(cached) $ECHO_C" >&6
22141else
22142  cat >conftest.$ac_ext <<_ACEOF
22143/* confdefs.h.  */
22144_ACEOF
22145cat confdefs.h >>conftest.$ac_ext
22146cat >>conftest.$ac_ext <<_ACEOF
22147/* end confdefs.h.  */
22148#include <sys/types.h>
22149#include <$ac_hdr>
22150
22151int
22152main ()
22153{
22154if ((DIR *) 0)
22155return 0;
22156  ;
22157  return 0;
22158}
22159_ACEOF
22160rm -f conftest.$ac_objext
22161if { (ac_try="$ac_compile"
22162case "(($ac_try" in
22163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22164  *) ac_try_echo=$ac_try;;
22165esac
22166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22167  (eval "$ac_compile") 2>conftest.er1
22168  ac_status=$?
22169  grep -v '^ *+' conftest.er1 >conftest.err
22170  rm -f conftest.er1
22171  cat conftest.err >&5
22172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173  (exit $ac_status); } && {
22174	 test -z "$ac_c_werror_flag" ||
22175	 test ! -s conftest.err
22176       } && test -s conftest.$ac_objext; then
22177  eval "$as_ac_Header=yes"
22178else
22179  echo "$as_me: failed program was:" >&5
22180sed 's/^/| /' conftest.$ac_ext >&5
22181
22182	eval "$as_ac_Header=no"
22183fi
22184
22185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22186fi
22187ac_res=`eval echo '${'$as_ac_Header'}'`
22188	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22189echo "${ECHO_T}$ac_res" >&6; }
22190if test `eval echo '${'$as_ac_Header'}'` = yes; then
22191  cat >>confdefs.h <<_ACEOF
22192#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22193_ACEOF
22194
22195ac_header_dirent=$ac_hdr; break
22196fi
22197
22198done
22199# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22200if test $ac_header_dirent = dirent.h; then
22201  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22202echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22203if test "${ac_cv_search_opendir+set}" = set; then
22204  echo $ECHO_N "(cached) $ECHO_C" >&6
22205else
22206  ac_func_search_save_LIBS=$LIBS
22207cat >conftest.$ac_ext <<_ACEOF
22208/* confdefs.h.  */
22209_ACEOF
22210cat confdefs.h >>conftest.$ac_ext
22211cat >>conftest.$ac_ext <<_ACEOF
22212/* end confdefs.h.  */
22213
22214/* Override any GCC internal prototype to avoid an error.
22215   Use char because int might match the return type of a GCC
22216   builtin and then its argument prototype would still apply.  */
22217#ifdef __cplusplus
22218extern "C"
22219#endif
22220char opendir ();
22221int
22222main ()
22223{
22224return opendir ();
22225  ;
22226  return 0;
22227}
22228_ACEOF
22229for ac_lib in '' dir; do
22230  if test -z "$ac_lib"; then
22231    ac_res="none required"
22232  else
22233    ac_res=-l$ac_lib
22234    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22235  fi
22236  rm -f conftest.$ac_objext conftest$ac_exeext
22237if { (ac_try="$ac_link"
22238case "(($ac_try" in
22239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22240  *) ac_try_echo=$ac_try;;
22241esac
22242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22243  (eval "$ac_link") 2>conftest.er1
22244  ac_status=$?
22245  grep -v '^ *+' conftest.er1 >conftest.err
22246  rm -f conftest.er1
22247  cat conftest.err >&5
22248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249  (exit $ac_status); } && {
22250	 test -z "$ac_c_werror_flag" ||
22251	 test ! -s conftest.err
22252       } && test -s conftest$ac_exeext &&
22253       $as_test_x conftest$ac_exeext; then
22254  ac_cv_search_opendir=$ac_res
22255else
22256  echo "$as_me: failed program was:" >&5
22257sed 's/^/| /' conftest.$ac_ext >&5
22258
22259
22260fi
22261
22262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22263      conftest$ac_exeext
22264  if test "${ac_cv_search_opendir+set}" = set; then
22265  break
22266fi
22267done
22268if test "${ac_cv_search_opendir+set}" = set; then
22269  :
22270else
22271  ac_cv_search_opendir=no
22272fi
22273rm conftest.$ac_ext
22274LIBS=$ac_func_search_save_LIBS
22275fi
22276{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22277echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22278ac_res=$ac_cv_search_opendir
22279if test "$ac_res" != no; then
22280  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22281
22282fi
22283
22284else
22285  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22286echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22287if test "${ac_cv_search_opendir+set}" = set; then
22288  echo $ECHO_N "(cached) $ECHO_C" >&6
22289else
22290  ac_func_search_save_LIBS=$LIBS
22291cat >conftest.$ac_ext <<_ACEOF
22292/* confdefs.h.  */
22293_ACEOF
22294cat confdefs.h >>conftest.$ac_ext
22295cat >>conftest.$ac_ext <<_ACEOF
22296/* end confdefs.h.  */
22297
22298/* Override any GCC internal prototype to avoid an error.
22299   Use char because int might match the return type of a GCC
22300   builtin and then its argument prototype would still apply.  */
22301#ifdef __cplusplus
22302extern "C"
22303#endif
22304char opendir ();
22305int
22306main ()
22307{
22308return opendir ();
22309  ;
22310  return 0;
22311}
22312_ACEOF
22313for ac_lib in '' x; do
22314  if test -z "$ac_lib"; then
22315    ac_res="none required"
22316  else
22317    ac_res=-l$ac_lib
22318    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22319  fi
22320  rm -f conftest.$ac_objext conftest$ac_exeext
22321if { (ac_try="$ac_link"
22322case "(($ac_try" in
22323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324  *) ac_try_echo=$ac_try;;
22325esac
22326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22327  (eval "$ac_link") 2>conftest.er1
22328  ac_status=$?
22329  grep -v '^ *+' conftest.er1 >conftest.err
22330  rm -f conftest.er1
22331  cat conftest.err >&5
22332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333  (exit $ac_status); } && {
22334	 test -z "$ac_c_werror_flag" ||
22335	 test ! -s conftest.err
22336       } && test -s conftest$ac_exeext &&
22337       $as_test_x conftest$ac_exeext; then
22338  ac_cv_search_opendir=$ac_res
22339else
22340  echo "$as_me: failed program was:" >&5
22341sed 's/^/| /' conftest.$ac_ext >&5
22342
22343
22344fi
22345
22346rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22347      conftest$ac_exeext
22348  if test "${ac_cv_search_opendir+set}" = set; then
22349  break
22350fi
22351done
22352if test "${ac_cv_search_opendir+set}" = set; then
22353  :
22354else
22355  ac_cv_search_opendir=no
22356fi
22357rm conftest.$ac_ext
22358LIBS=$ac_func_search_save_LIBS
22359fi
22360{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22361echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22362ac_res=$ac_cv_search_opendir
22363if test "$ac_res" != no; then
22364  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22365
22366fi
22367
22368fi
22369
22370
22371
22372
22373
22374for ac_header in execinfo.h sys/select.h sys/socket.h sys/time.h
22375do
22376as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22377if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22378  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22380if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22381  echo $ECHO_N "(cached) $ECHO_C" >&6
22382fi
22383ac_res=`eval echo '${'$as_ac_Header'}'`
22384	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22385echo "${ECHO_T}$ac_res" >&6; }
22386else
22387  # Is the header compilable?
22388{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22389echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22390cat >conftest.$ac_ext <<_ACEOF
22391/* confdefs.h.  */
22392_ACEOF
22393cat confdefs.h >>conftest.$ac_ext
22394cat >>conftest.$ac_ext <<_ACEOF
22395/* end confdefs.h.  */
22396$ac_includes_default
22397#include <$ac_header>
22398_ACEOF
22399rm -f conftest.$ac_objext
22400if { (ac_try="$ac_compile"
22401case "(($ac_try" in
22402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403  *) ac_try_echo=$ac_try;;
22404esac
22405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406  (eval "$ac_compile") 2>conftest.er1
22407  ac_status=$?
22408  grep -v '^ *+' conftest.er1 >conftest.err
22409  rm -f conftest.er1
22410  cat conftest.err >&5
22411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412  (exit $ac_status); } && {
22413	 test -z "$ac_c_werror_flag" ||
22414	 test ! -s conftest.err
22415       } && test -s conftest.$ac_objext; then
22416  ac_header_compiler=yes
22417else
22418  echo "$as_me: failed program was:" >&5
22419sed 's/^/| /' conftest.$ac_ext >&5
22420
22421	ac_header_compiler=no
22422fi
22423
22424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22425{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22426echo "${ECHO_T}$ac_header_compiler" >&6; }
22427
22428# Is the header present?
22429{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22430echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22431cat >conftest.$ac_ext <<_ACEOF
22432/* confdefs.h.  */
22433_ACEOF
22434cat confdefs.h >>conftest.$ac_ext
22435cat >>conftest.$ac_ext <<_ACEOF
22436/* end confdefs.h.  */
22437#include <$ac_header>
22438_ACEOF
22439if { (ac_try="$ac_cpp conftest.$ac_ext"
22440case "(($ac_try" in
22441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22442  *) ac_try_echo=$ac_try;;
22443esac
22444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22445  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22446  ac_status=$?
22447  grep -v '^ *+' conftest.er1 >conftest.err
22448  rm -f conftest.er1
22449  cat conftest.err >&5
22450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451  (exit $ac_status); } >/dev/null && {
22452	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22453	 test ! -s conftest.err
22454       }; then
22455  ac_header_preproc=yes
22456else
22457  echo "$as_me: failed program was:" >&5
22458sed 's/^/| /' conftest.$ac_ext >&5
22459
22460  ac_header_preproc=no
22461fi
22462
22463rm -f conftest.err conftest.$ac_ext
22464{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22465echo "${ECHO_T}$ac_header_preproc" >&6; }
22466
22467# So?  What about this header?
22468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22469  yes:no: )
22470    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22471echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22472    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22473echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22474    ac_header_preproc=yes
22475    ;;
22476  no:yes:* )
22477    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22478echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22479    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22480echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22481    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22482echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22483    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22484echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22485    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22486echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22487    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22488echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22489    ( cat <<\_ASBOX
22490## ---------------------------------------------------------- ##
22491## Report this to Oracle Technology Network Berkeley DB forum ##
22492## ---------------------------------------------------------- ##
22493_ASBOX
22494     ) | sed "s/^/$as_me: WARNING:     /" >&2
22495    ;;
22496esac
22497{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22500  echo $ECHO_N "(cached) $ECHO_C" >&6
22501else
22502  eval "$as_ac_Header=\$ac_header_preproc"
22503fi
22504ac_res=`eval echo '${'$as_ac_Header'}'`
22505	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22506echo "${ECHO_T}$ac_res" >&6; }
22507
22508fi
22509if test `eval echo '${'$as_ac_Header'}'` = yes; then
22510  cat >>confdefs.h <<_ACEOF
22511#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22512_ACEOF
22513
22514fi
22515
22516done
22517
22518{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
22519echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
22520if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
22521  echo $ECHO_N "(cached) $ECHO_C" >&6
22522else
22523  cat >conftest.$ac_ext <<_ACEOF
22524/* confdefs.h.  */
22525_ACEOF
22526cat confdefs.h >>conftest.$ac_ext
22527cat >>conftest.$ac_ext <<_ACEOF
22528/* end confdefs.h.  */
22529$ac_includes_default
22530int
22531main ()
22532{
22533static struct stat ac_aggr;
22534if (ac_aggr.st_blksize)
22535return 0;
22536  ;
22537  return 0;
22538}
22539_ACEOF
22540rm -f conftest.$ac_objext
22541if { (ac_try="$ac_compile"
22542case "(($ac_try" in
22543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22544  *) ac_try_echo=$ac_try;;
22545esac
22546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22547  (eval "$ac_compile") 2>conftest.er1
22548  ac_status=$?
22549  grep -v '^ *+' conftest.er1 >conftest.err
22550  rm -f conftest.er1
22551  cat conftest.err >&5
22552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553  (exit $ac_status); } && {
22554	 test -z "$ac_c_werror_flag" ||
22555	 test ! -s conftest.err
22556       } && test -s conftest.$ac_objext; then
22557  ac_cv_member_struct_stat_st_blksize=yes
22558else
22559  echo "$as_me: failed program was:" >&5
22560sed 's/^/| /' conftest.$ac_ext >&5
22561
22562	cat >conftest.$ac_ext <<_ACEOF
22563/* confdefs.h.  */
22564_ACEOF
22565cat confdefs.h >>conftest.$ac_ext
22566cat >>conftest.$ac_ext <<_ACEOF
22567/* end confdefs.h.  */
22568$ac_includes_default
22569int
22570main ()
22571{
22572static struct stat ac_aggr;
22573if (sizeof ac_aggr.st_blksize)
22574return 0;
22575  ;
22576  return 0;
22577}
22578_ACEOF
22579rm -f conftest.$ac_objext
22580if { (ac_try="$ac_compile"
22581case "(($ac_try" in
22582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22583  *) ac_try_echo=$ac_try;;
22584esac
22585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22586  (eval "$ac_compile") 2>conftest.er1
22587  ac_status=$?
22588  grep -v '^ *+' conftest.er1 >conftest.err
22589  rm -f conftest.er1
22590  cat conftest.err >&5
22591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592  (exit $ac_status); } && {
22593	 test -z "$ac_c_werror_flag" ||
22594	 test ! -s conftest.err
22595       } && test -s conftest.$ac_objext; then
22596  ac_cv_member_struct_stat_st_blksize=yes
22597else
22598  echo "$as_me: failed program was:" >&5
22599sed 's/^/| /' conftest.$ac_ext >&5
22600
22601	ac_cv_member_struct_stat_st_blksize=no
22602fi
22603
22604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22605fi
22606
22607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22608fi
22609{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
22610echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
22611if test $ac_cv_member_struct_stat_st_blksize = yes; then
22612
22613cat >>confdefs.h <<_ACEOF
22614#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22615_ACEOF
22616
22617
22618fi
22619
22620
22621
22622# db.h includes <sys/types.h> and <stdio.h>, not the other default includes
22623# autoconf usually includes.  For that reason, we specify a set of includes
22624# for all type checking tests. [#5060]
22625#
22626# C99 says types should be in <stdint.h>; include <stdint.h> if it exists.
22627#
22628# Some systems have types in <stddef.h>; include <stddef.h> if it exists.
22629#
22630# IBM's OS/390 and z/OS releases have types in <inttypes.h> not also found
22631# in <sys/types.h>; include <inttypes.h> if it exists.
22632db_includes="#include <sys/types.h>"
22633
22634if test "${ac_cv_header_inttypes_h+set}" = set; then
22635  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
22636echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
22637if test "${ac_cv_header_inttypes_h+set}" = set; then
22638  echo $ECHO_N "(cached) $ECHO_C" >&6
22639fi
22640{ echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
22641echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
22642else
22643  # Is the header compilable?
22644{ echo "$as_me:$LINENO: checking inttypes.h usability" >&5
22645echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; }
22646cat >conftest.$ac_ext <<_ACEOF
22647/* confdefs.h.  */
22648_ACEOF
22649cat confdefs.h >>conftest.$ac_ext
22650cat >>conftest.$ac_ext <<_ACEOF
22651/* end confdefs.h.  */
22652$ac_includes_default
22653#include <inttypes.h>
22654_ACEOF
22655rm -f conftest.$ac_objext
22656if { (ac_try="$ac_compile"
22657case "(($ac_try" in
22658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22659  *) ac_try_echo=$ac_try;;
22660esac
22661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22662  (eval "$ac_compile") 2>conftest.er1
22663  ac_status=$?
22664  grep -v '^ *+' conftest.er1 >conftest.err
22665  rm -f conftest.er1
22666  cat conftest.err >&5
22667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668  (exit $ac_status); } && {
22669	 test -z "$ac_c_werror_flag" ||
22670	 test ! -s conftest.err
22671       } && test -s conftest.$ac_objext; then
22672  ac_header_compiler=yes
22673else
22674  echo "$as_me: failed program was:" >&5
22675sed 's/^/| /' conftest.$ac_ext >&5
22676
22677	ac_header_compiler=no
22678fi
22679
22680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22681{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22682echo "${ECHO_T}$ac_header_compiler" >&6; }
22683
22684# Is the header present?
22685{ echo "$as_me:$LINENO: checking inttypes.h presence" >&5
22686echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; }
22687cat >conftest.$ac_ext <<_ACEOF
22688/* confdefs.h.  */
22689_ACEOF
22690cat confdefs.h >>conftest.$ac_ext
22691cat >>conftest.$ac_ext <<_ACEOF
22692/* end confdefs.h.  */
22693#include <inttypes.h>
22694_ACEOF
22695if { (ac_try="$ac_cpp conftest.$ac_ext"
22696case "(($ac_try" in
22697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22698  *) ac_try_echo=$ac_try;;
22699esac
22700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22701  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22702  ac_status=$?
22703  grep -v '^ *+' conftest.er1 >conftest.err
22704  rm -f conftest.er1
22705  cat conftest.err >&5
22706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707  (exit $ac_status); } >/dev/null && {
22708	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22709	 test ! -s conftest.err
22710       }; then
22711  ac_header_preproc=yes
22712else
22713  echo "$as_me: failed program was:" >&5
22714sed 's/^/| /' conftest.$ac_ext >&5
22715
22716  ac_header_preproc=no
22717fi
22718
22719rm -f conftest.err conftest.$ac_ext
22720{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22721echo "${ECHO_T}$ac_header_preproc" >&6; }
22722
22723# So?  What about this header?
22724case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22725  yes:no: )
22726    { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
22727echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22728    { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
22729echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
22730    ac_header_preproc=yes
22731    ;;
22732  no:yes:* )
22733    { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
22734echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
22735    { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
22736echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
22737    { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
22738echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
22739    { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
22740echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22741    { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
22742echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
22743    { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
22744echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
22745    ( cat <<\_ASBOX
22746## ---------------------------------------------------------- ##
22747## Report this to Oracle Technology Network Berkeley DB forum ##
22748## ---------------------------------------------------------- ##
22749_ASBOX
22750     ) | sed "s/^/$as_me: WARNING:     /" >&2
22751    ;;
22752esac
22753{ echo "$as_me:$LINENO: checking for inttypes.h" >&5
22754echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
22755if test "${ac_cv_header_inttypes_h+set}" = set; then
22756  echo $ECHO_N "(cached) $ECHO_C" >&6
22757else
22758  ac_cv_header_inttypes_h=$ac_header_preproc
22759fi
22760{ echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
22761echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
22762
22763fi
22764if test $ac_cv_header_inttypes_h = yes; then
22765
22766	db_includes="$db_includes
22767#include <inttypes.h>"
22768	inttypes_h_decl="#include <inttypes.h>"
22769fi
22770
22771
22772
22773# IRIX has stdint.h that is only available when using c99 (i.e. __c99
22774# is defined). Problem with having it in a public header is that a c++
22775# compiler cannot #include <db.h> if db.h #includes stdint.h, so we
22776# need to check that stdint.h is available for all cases.  Also the
22777# IRIX compiler does not exit with a non-zero exit code when it sees
22778# #error, so we actually need to use the header for the compiler to fail.
22779
22780{ echo "$as_me:$LINENO: checking for stdint.h" >&5
22781echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
22782cat >conftest.$ac_ext <<_ACEOF
22783#include <stdint.h>
22784  int main() {
22785  uint_least8_t x=0;
22786  return x;
22787  }
22788_ACEOF
22789rm -f conftest.$ac_objext
22790if { (ac_try="$ac_compile"
22791case "(($ac_try" in
22792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793  *) ac_try_echo=$ac_try;;
22794esac
22795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22796  (eval "$ac_compile") 2>conftest.er1
22797  ac_status=$?
22798  grep -v '^ *+' conftest.er1 >conftest.err
22799  rm -f conftest.er1
22800  cat conftest.err >&5
22801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802  (exit $ac_status); } && {
22803	 test -z "$ac_c_werror_flag" ||
22804	 test ! -s conftest.err
22805       } && test -s conftest.$ac_objext; then
22806  { echo "$as_me:$LINENO: result: yes" >&5
22807echo "${ECHO_T}yes" >&6; }
22808if test "$db_cv_cxx" = "yes"; then
22809  { echo "$as_me:$LINENO: checking if stdint.h can be used by C++" >&5
22810echo $ECHO_N "checking if stdint.h can be used by C++... $ECHO_C" >&6; }
22811  ac_ext=cpp
22812ac_cpp='$CXXCPP $CPPFLAGS'
22813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22816
22817  cat >conftest.$ac_ext <<_ACEOF
22818#include <stdint.h>
22819    int main() {
22820    uint_least8_t x=0;
22821    return x;
22822  }
22823_ACEOF
22824rm -f conftest.$ac_objext
22825if { (ac_try="$ac_compile"
22826case "(($ac_try" in
22827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22828  *) ac_try_echo=$ac_try;;
22829esac
22830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22831  (eval "$ac_compile") 2>conftest.er1
22832  ac_status=$?
22833  grep -v '^ *+' conftest.er1 >conftest.err
22834  rm -f conftest.er1
22835  cat conftest.err >&5
22836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837  (exit $ac_status); } && {
22838	 test -z "$ac_cxx_werror_flag" ||
22839	 test ! -s conftest.err
22840       } && test -s conftest.$ac_objext; then
22841  { echo "$as_me:$LINENO: result: yes" >&5
22842echo "${ECHO_T}yes" >&6; }
22843    stdint_h_decl="#include <stdint.h>"
22844    db_includes="$db_includes
22845#include <stdint.h>"
22846
22847else
22848  echo "$as_me: failed program was:" >&5
22849sed 's/^/| /' conftest.$ac_ext >&5
22850
22851	{ echo "$as_me:$LINENO: result: no" >&5
22852echo "${ECHO_T}no" >&6; }
22853    stdint_h_decl="#ifndef __cplusplus
22854#include <stdint.h>
22855#endif"
22856	db_includes="$db_includes
22857#ifndef __cplusplus
22858#include <stdint.h>
22859#endif"
22860
22861fi
22862
22863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22864    ac_ext=c
22865ac_cpp='$CPP $CPPFLAGS'
22866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22868ac_compiler_gnu=$ac_cv_c_compiler_gnu
22869
22870else
22871    stdint_h_decl="#include <stdint.h>"
22872    db_includes="$db_includes
22873#include <stdint.h>"
22874fi
22875else
22876  echo "$as_me: failed program was:" >&5
22877sed 's/^/| /' conftest.$ac_ext >&5
22878
22879	{ echo "$as_me:$LINENO: result: no" >&5
22880echo "${ECHO_T}no" >&6; }
22881fi
22882
22883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22884
22885
22886if test "${ac_cv_header_stddef_h+set}" = set; then
22887  { echo "$as_me:$LINENO: checking for stddef.h" >&5
22888echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
22889if test "${ac_cv_header_stddef_h+set}" = set; then
22890  echo $ECHO_N "(cached) $ECHO_C" >&6
22891fi
22892{ echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
22893echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
22894else
22895  # Is the header compilable?
22896{ echo "$as_me:$LINENO: checking stddef.h usability" >&5
22897echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6; }
22898cat >conftest.$ac_ext <<_ACEOF
22899/* confdefs.h.  */
22900_ACEOF
22901cat confdefs.h >>conftest.$ac_ext
22902cat >>conftest.$ac_ext <<_ACEOF
22903/* end confdefs.h.  */
22904$ac_includes_default
22905#include <stddef.h>
22906_ACEOF
22907rm -f conftest.$ac_objext
22908if { (ac_try="$ac_compile"
22909case "(($ac_try" in
22910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22911  *) ac_try_echo=$ac_try;;
22912esac
22913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22914  (eval "$ac_compile") 2>conftest.er1
22915  ac_status=$?
22916  grep -v '^ *+' conftest.er1 >conftest.err
22917  rm -f conftest.er1
22918  cat conftest.err >&5
22919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920  (exit $ac_status); } && {
22921	 test -z "$ac_c_werror_flag" ||
22922	 test ! -s conftest.err
22923       } && test -s conftest.$ac_objext; then
22924  ac_header_compiler=yes
22925else
22926  echo "$as_me: failed program was:" >&5
22927sed 's/^/| /' conftest.$ac_ext >&5
22928
22929	ac_header_compiler=no
22930fi
22931
22932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22933{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22934echo "${ECHO_T}$ac_header_compiler" >&6; }
22935
22936# Is the header present?
22937{ echo "$as_me:$LINENO: checking stddef.h presence" >&5
22938echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6; }
22939cat >conftest.$ac_ext <<_ACEOF
22940/* confdefs.h.  */
22941_ACEOF
22942cat confdefs.h >>conftest.$ac_ext
22943cat >>conftest.$ac_ext <<_ACEOF
22944/* end confdefs.h.  */
22945#include <stddef.h>
22946_ACEOF
22947if { (ac_try="$ac_cpp conftest.$ac_ext"
22948case "(($ac_try" in
22949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22950  *) ac_try_echo=$ac_try;;
22951esac
22952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22953  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22954  ac_status=$?
22955  grep -v '^ *+' conftest.er1 >conftest.err
22956  rm -f conftest.er1
22957  cat conftest.err >&5
22958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959  (exit $ac_status); } >/dev/null && {
22960	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22961	 test ! -s conftest.err
22962       }; then
22963  ac_header_preproc=yes
22964else
22965  echo "$as_me: failed program was:" >&5
22966sed 's/^/| /' conftest.$ac_ext >&5
22967
22968  ac_header_preproc=no
22969fi
22970
22971rm -f conftest.err conftest.$ac_ext
22972{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22973echo "${ECHO_T}$ac_header_preproc" >&6; }
22974
22975# So?  What about this header?
22976case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22977  yes:no: )
22978    { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
22979echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22980    { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
22981echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
22982    ac_header_preproc=yes
22983    ;;
22984  no:yes:* )
22985    { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
22986echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
22987    { echo "$as_me:$LINENO: WARNING: stddef.h:     check for missing prerequisite headers?" >&5
22988echo "$as_me: WARNING: stddef.h:     check for missing prerequisite headers?" >&2;}
22989    { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
22990echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
22991    { echo "$as_me:$LINENO: WARNING: stddef.h:     section \"Present But Cannot Be Compiled\"" >&5
22992echo "$as_me: WARNING: stddef.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22993    { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
22994echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
22995    { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
22996echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
22997    ( cat <<\_ASBOX
22998## ---------------------------------------------------------- ##
22999## Report this to Oracle Technology Network Berkeley DB forum ##
23000## ---------------------------------------------------------- ##
23001_ASBOX
23002     ) | sed "s/^/$as_me: WARNING:     /" >&2
23003    ;;
23004esac
23005{ echo "$as_me:$LINENO: checking for stddef.h" >&5
23006echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6; }
23007if test "${ac_cv_header_stddef_h+set}" = set; then
23008  echo $ECHO_N "(cached) $ECHO_C" >&6
23009else
23010  ac_cv_header_stddef_h=$ac_header_preproc
23011fi
23012{ echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
23013echo "${ECHO_T}$ac_cv_header_stddef_h" >&6; }
23014
23015fi
23016if test $ac_cv_header_stddef_h = yes; then
23017
23018	db_includes="$db_includes
23019#include <stddef.h>"
23020	stddef_h_decl="#include <stddef.h>"
23021fi
23022
23023
23024
23025if test "${ac_cv_header_unistd_h+set}" = set; then
23026  { echo "$as_me:$LINENO: checking for unistd.h" >&5
23027echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; }
23028if test "${ac_cv_header_unistd_h+set}" = set; then
23029  echo $ECHO_N "(cached) $ECHO_C" >&6
23030fi
23031{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
23032echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; }
23033else
23034  # Is the header compilable?
23035{ echo "$as_me:$LINENO: checking unistd.h usability" >&5
23036echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6; }
23037cat >conftest.$ac_ext <<_ACEOF
23038/* confdefs.h.  */
23039_ACEOF
23040cat confdefs.h >>conftest.$ac_ext
23041cat >>conftest.$ac_ext <<_ACEOF
23042/* end confdefs.h.  */
23043$ac_includes_default
23044#include <unistd.h>
23045_ACEOF
23046rm -f conftest.$ac_objext
23047if { (ac_try="$ac_compile"
23048case "(($ac_try" in
23049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23050  *) ac_try_echo=$ac_try;;
23051esac
23052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23053  (eval "$ac_compile") 2>conftest.er1
23054  ac_status=$?
23055  grep -v '^ *+' conftest.er1 >conftest.err
23056  rm -f conftest.er1
23057  cat conftest.err >&5
23058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059  (exit $ac_status); } && {
23060	 test -z "$ac_c_werror_flag" ||
23061	 test ! -s conftest.err
23062       } && test -s conftest.$ac_objext; then
23063  ac_header_compiler=yes
23064else
23065  echo "$as_me: failed program was:" >&5
23066sed 's/^/| /' conftest.$ac_ext >&5
23067
23068	ac_header_compiler=no
23069fi
23070
23071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23072{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23073echo "${ECHO_T}$ac_header_compiler" >&6; }
23074
23075# Is the header present?
23076{ echo "$as_me:$LINENO: checking unistd.h presence" >&5
23077echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6; }
23078cat >conftest.$ac_ext <<_ACEOF
23079/* confdefs.h.  */
23080_ACEOF
23081cat confdefs.h >>conftest.$ac_ext
23082cat >>conftest.$ac_ext <<_ACEOF
23083/* end confdefs.h.  */
23084#include <unistd.h>
23085_ACEOF
23086if { (ac_try="$ac_cpp conftest.$ac_ext"
23087case "(($ac_try" in
23088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23089  *) ac_try_echo=$ac_try;;
23090esac
23091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23092  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23093  ac_status=$?
23094  grep -v '^ *+' conftest.er1 >conftest.err
23095  rm -f conftest.er1
23096  cat conftest.err >&5
23097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098  (exit $ac_status); } >/dev/null && {
23099	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23100	 test ! -s conftest.err
23101       }; then
23102  ac_header_preproc=yes
23103else
23104  echo "$as_me: failed program was:" >&5
23105sed 's/^/| /' conftest.$ac_ext >&5
23106
23107  ac_header_preproc=no
23108fi
23109
23110rm -f conftest.err conftest.$ac_ext
23111{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23112echo "${ECHO_T}$ac_header_preproc" >&6; }
23113
23114# So?  What about this header?
23115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23116  yes:no: )
23117    { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
23118echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23119    { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
23120echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
23121    ac_header_preproc=yes
23122    ;;
23123  no:yes:* )
23124    { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
23125echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
23126    { echo "$as_me:$LINENO: WARNING: unistd.h:     check for missing prerequisite headers?" >&5
23127echo "$as_me: WARNING: unistd.h:     check for missing prerequisite headers?" >&2;}
23128    { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
23129echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
23130    { echo "$as_me:$LINENO: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&5
23131echo "$as_me: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23132    { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
23133echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
23134    { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
23135echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
23136    ( cat <<\_ASBOX
23137## ---------------------------------------------------------- ##
23138## Report this to Oracle Technology Network Berkeley DB forum ##
23139## ---------------------------------------------------------- ##
23140_ASBOX
23141     ) | sed "s/^/$as_me: WARNING:     /" >&2
23142    ;;
23143esac
23144{ echo "$as_me:$LINENO: checking for unistd.h" >&5
23145echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; }
23146if test "${ac_cv_header_unistd_h+set}" = set; then
23147  echo $ECHO_N "(cached) $ECHO_C" >&6
23148else
23149  ac_cv_header_unistd_h=$ac_header_preproc
23150fi
23151{ echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
23152echo "${ECHO_T}$ac_cv_header_unistd_h" >&6; }
23153
23154fi
23155if test $ac_cv_header_unistd_h = yes; then
23156
23157	db_includes="$db_includes
23158#include <unistd.h>"
23159	unistd_h_decl="#include <unistd.h>"
23160fi
23161
23162
23163db_includes="$db_includes
23164#include <stdio.h>"
23165
23166# We need to know the sizes of various objects on this system.
23167{ echo "$as_me:$LINENO: checking for char" >&5
23168echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23169if test "${ac_cv_type_char+set}" = set; then
23170  echo $ECHO_N "(cached) $ECHO_C" >&6
23171else
23172  cat >conftest.$ac_ext <<_ACEOF
23173/* confdefs.h.  */
23174_ACEOF
23175cat confdefs.h >>conftest.$ac_ext
23176cat >>conftest.$ac_ext <<_ACEOF
23177/* end confdefs.h.  */
23178$db_includes
23179
23180typedef char ac__type_new_;
23181int
23182main ()
23183{
23184if ((ac__type_new_ *) 0)
23185  return 0;
23186if (sizeof (ac__type_new_))
23187  return 0;
23188  ;
23189  return 0;
23190}
23191_ACEOF
23192rm -f conftest.$ac_objext
23193if { (ac_try="$ac_compile"
23194case "(($ac_try" in
23195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23196  *) ac_try_echo=$ac_try;;
23197esac
23198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23199  (eval "$ac_compile") 2>conftest.er1
23200  ac_status=$?
23201  grep -v '^ *+' conftest.er1 >conftest.err
23202  rm -f conftest.er1
23203  cat conftest.err >&5
23204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205  (exit $ac_status); } && {
23206	 test -z "$ac_c_werror_flag" ||
23207	 test ! -s conftest.err
23208       } && test -s conftest.$ac_objext; then
23209  ac_cv_type_char=yes
23210else
23211  echo "$as_me: failed program was:" >&5
23212sed 's/^/| /' conftest.$ac_ext >&5
23213
23214	ac_cv_type_char=no
23215fi
23216
23217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23218fi
23219{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23220echo "${ECHO_T}$ac_cv_type_char" >&6; }
23221
23222# The cast to long int works around a bug in the HP C Compiler
23223# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23224# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23225# This bug is HP SR number 8606223364.
23226{ echo "$as_me:$LINENO: checking size of char" >&5
23227echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23228if test "${ac_cv_sizeof_char+set}" = set; then
23229  echo $ECHO_N "(cached) $ECHO_C" >&6
23230else
23231  if test "$cross_compiling" = yes; then
23232  # Depending upon the size, compute the lo and hi bounds.
23233cat >conftest.$ac_ext <<_ACEOF
23234/* confdefs.h.  */
23235_ACEOF
23236cat confdefs.h >>conftest.$ac_ext
23237cat >>conftest.$ac_ext <<_ACEOF
23238/* end confdefs.h.  */
23239$db_includes
23240
23241   typedef char ac__type_sizeof_;
23242int
23243main ()
23244{
23245static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23246test_array [0] = 0
23247
23248  ;
23249  return 0;
23250}
23251_ACEOF
23252rm -f conftest.$ac_objext
23253if { (ac_try="$ac_compile"
23254case "(($ac_try" in
23255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23256  *) ac_try_echo=$ac_try;;
23257esac
23258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23259  (eval "$ac_compile") 2>conftest.er1
23260  ac_status=$?
23261  grep -v '^ *+' conftest.er1 >conftest.err
23262  rm -f conftest.er1
23263  cat conftest.err >&5
23264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265  (exit $ac_status); } && {
23266	 test -z "$ac_c_werror_flag" ||
23267	 test ! -s conftest.err
23268       } && test -s conftest.$ac_objext; then
23269  ac_lo=0 ac_mid=0
23270  while :; do
23271    cat >conftest.$ac_ext <<_ACEOF
23272/* confdefs.h.  */
23273_ACEOF
23274cat confdefs.h >>conftest.$ac_ext
23275cat >>conftest.$ac_ext <<_ACEOF
23276/* end confdefs.h.  */
23277$db_includes
23278
23279   typedef char ac__type_sizeof_;
23280int
23281main ()
23282{
23283static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23284test_array [0] = 0
23285
23286  ;
23287  return 0;
23288}
23289_ACEOF
23290rm -f conftest.$ac_objext
23291if { (ac_try="$ac_compile"
23292case "(($ac_try" in
23293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23294  *) ac_try_echo=$ac_try;;
23295esac
23296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23297  (eval "$ac_compile") 2>conftest.er1
23298  ac_status=$?
23299  grep -v '^ *+' conftest.er1 >conftest.err
23300  rm -f conftest.er1
23301  cat conftest.err >&5
23302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303  (exit $ac_status); } && {
23304	 test -z "$ac_c_werror_flag" ||
23305	 test ! -s conftest.err
23306       } && test -s conftest.$ac_objext; then
23307  ac_hi=$ac_mid; break
23308else
23309  echo "$as_me: failed program was:" >&5
23310sed 's/^/| /' conftest.$ac_ext >&5
23311
23312	ac_lo=`expr $ac_mid + 1`
23313			if test $ac_lo -le $ac_mid; then
23314			  ac_lo= ac_hi=
23315			  break
23316			fi
23317			ac_mid=`expr 2 '*' $ac_mid + 1`
23318fi
23319
23320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23321  done
23322else
23323  echo "$as_me: failed program was:" >&5
23324sed 's/^/| /' conftest.$ac_ext >&5
23325
23326	cat >conftest.$ac_ext <<_ACEOF
23327/* confdefs.h.  */
23328_ACEOF
23329cat confdefs.h >>conftest.$ac_ext
23330cat >>conftest.$ac_ext <<_ACEOF
23331/* end confdefs.h.  */
23332$db_includes
23333
23334   typedef char ac__type_sizeof_;
23335int
23336main ()
23337{
23338static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23339test_array [0] = 0
23340
23341  ;
23342  return 0;
23343}
23344_ACEOF
23345rm -f conftest.$ac_objext
23346if { (ac_try="$ac_compile"
23347case "(($ac_try" in
23348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23349  *) ac_try_echo=$ac_try;;
23350esac
23351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23352  (eval "$ac_compile") 2>conftest.er1
23353  ac_status=$?
23354  grep -v '^ *+' conftest.er1 >conftest.err
23355  rm -f conftest.er1
23356  cat conftest.err >&5
23357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358  (exit $ac_status); } && {
23359	 test -z "$ac_c_werror_flag" ||
23360	 test ! -s conftest.err
23361       } && test -s conftest.$ac_objext; then
23362  ac_hi=-1 ac_mid=-1
23363  while :; do
23364    cat >conftest.$ac_ext <<_ACEOF
23365/* confdefs.h.  */
23366_ACEOF
23367cat confdefs.h >>conftest.$ac_ext
23368cat >>conftest.$ac_ext <<_ACEOF
23369/* end confdefs.h.  */
23370$db_includes
23371
23372   typedef char ac__type_sizeof_;
23373int
23374main ()
23375{
23376static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23377test_array [0] = 0
23378
23379  ;
23380  return 0;
23381}
23382_ACEOF
23383rm -f conftest.$ac_objext
23384if { (ac_try="$ac_compile"
23385case "(($ac_try" in
23386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23387  *) ac_try_echo=$ac_try;;
23388esac
23389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23390  (eval "$ac_compile") 2>conftest.er1
23391  ac_status=$?
23392  grep -v '^ *+' conftest.er1 >conftest.err
23393  rm -f conftest.er1
23394  cat conftest.err >&5
23395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396  (exit $ac_status); } && {
23397	 test -z "$ac_c_werror_flag" ||
23398	 test ! -s conftest.err
23399       } && test -s conftest.$ac_objext; then
23400  ac_lo=$ac_mid; break
23401else
23402  echo "$as_me: failed program was:" >&5
23403sed 's/^/| /' conftest.$ac_ext >&5
23404
23405	ac_hi=`expr '(' $ac_mid ')' - 1`
23406			if test $ac_mid -le $ac_hi; then
23407			  ac_lo= ac_hi=
23408			  break
23409			fi
23410			ac_mid=`expr 2 '*' $ac_mid`
23411fi
23412
23413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23414  done
23415else
23416  echo "$as_me: failed program was:" >&5
23417sed 's/^/| /' conftest.$ac_ext >&5
23418
23419	ac_lo= ac_hi=
23420fi
23421
23422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23423fi
23424
23425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23426# Binary search between lo and hi bounds.
23427while test "x$ac_lo" != "x$ac_hi"; do
23428  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23429  cat >conftest.$ac_ext <<_ACEOF
23430/* confdefs.h.  */
23431_ACEOF
23432cat confdefs.h >>conftest.$ac_ext
23433cat >>conftest.$ac_ext <<_ACEOF
23434/* end confdefs.h.  */
23435$db_includes
23436
23437   typedef char ac__type_sizeof_;
23438int
23439main ()
23440{
23441static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23442test_array [0] = 0
23443
23444  ;
23445  return 0;
23446}
23447_ACEOF
23448rm -f conftest.$ac_objext
23449if { (ac_try="$ac_compile"
23450case "(($ac_try" in
23451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23452  *) ac_try_echo=$ac_try;;
23453esac
23454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23455  (eval "$ac_compile") 2>conftest.er1
23456  ac_status=$?
23457  grep -v '^ *+' conftest.er1 >conftest.err
23458  rm -f conftest.er1
23459  cat conftest.err >&5
23460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461  (exit $ac_status); } && {
23462	 test -z "$ac_c_werror_flag" ||
23463	 test ! -s conftest.err
23464       } && test -s conftest.$ac_objext; then
23465  ac_hi=$ac_mid
23466else
23467  echo "$as_me: failed program was:" >&5
23468sed 's/^/| /' conftest.$ac_ext >&5
23469
23470	ac_lo=`expr '(' $ac_mid ')' + 1`
23471fi
23472
23473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23474done
23475case $ac_lo in
23476?*) ac_cv_sizeof_char=$ac_lo;;
23477'') if test "$ac_cv_type_char" = yes; then
23478     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23479See \`config.log' for more details." >&5
23480echo "$as_me: error: cannot compute sizeof (char)
23481See \`config.log' for more details." >&2;}
23482   { (exit 77); exit 77; }; }
23483   else
23484     ac_cv_sizeof_char=0
23485   fi ;;
23486esac
23487else
23488  cat >conftest.$ac_ext <<_ACEOF
23489/* confdefs.h.  */
23490_ACEOF
23491cat confdefs.h >>conftest.$ac_ext
23492cat >>conftest.$ac_ext <<_ACEOF
23493/* end confdefs.h.  */
23494$db_includes
23495
23496   typedef char ac__type_sizeof_;
23497static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23498static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23499#include <stdio.h>
23500#include <stdlib.h>
23501int
23502main ()
23503{
23504
23505  FILE *f = fopen ("conftest.val", "w");
23506  if (! f)
23507    return 1;
23508  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23509    {
23510      long int i = longval ();
23511      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23512	return 1;
23513      fprintf (f, "%ld\n", i);
23514    }
23515  else
23516    {
23517      unsigned long int i = ulongval ();
23518      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23519	return 1;
23520      fprintf (f, "%lu\n", i);
23521    }
23522  return ferror (f) || fclose (f) != 0;
23523
23524  ;
23525  return 0;
23526}
23527_ACEOF
23528rm -f conftest$ac_exeext
23529if { (ac_try="$ac_link"
23530case "(($ac_try" in
23531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23532  *) ac_try_echo=$ac_try;;
23533esac
23534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23535  (eval "$ac_link") 2>&5
23536  ac_status=$?
23537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23539  { (case "(($ac_try" in
23540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23541  *) ac_try_echo=$ac_try;;
23542esac
23543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23544  (eval "$ac_try") 2>&5
23545  ac_status=$?
23546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547  (exit $ac_status); }; }; then
23548  ac_cv_sizeof_char=`cat conftest.val`
23549else
23550  echo "$as_me: program exited with status $ac_status" >&5
23551echo "$as_me: failed program was:" >&5
23552sed 's/^/| /' conftest.$ac_ext >&5
23553
23554( exit $ac_status )
23555if test "$ac_cv_type_char" = yes; then
23556     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23557See \`config.log' for more details." >&5
23558echo "$as_me: error: cannot compute sizeof (char)
23559See \`config.log' for more details." >&2;}
23560   { (exit 77); exit 77; }; }
23561   else
23562     ac_cv_sizeof_char=0
23563   fi
23564fi
23565rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23566fi
23567rm -f conftest.val
23568fi
23569{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23570echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23571
23572
23573
23574cat >>confdefs.h <<_ACEOF
23575#define SIZEOF_CHAR $ac_cv_sizeof_char
23576_ACEOF
23577
23578
23579{ echo "$as_me:$LINENO: checking for unsigned char" >&5
23580echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6; }
23581if test "${ac_cv_type_unsigned_char+set}" = set; then
23582  echo $ECHO_N "(cached) $ECHO_C" >&6
23583else
23584  cat >conftest.$ac_ext <<_ACEOF
23585/* confdefs.h.  */
23586_ACEOF
23587cat confdefs.h >>conftest.$ac_ext
23588cat >>conftest.$ac_ext <<_ACEOF
23589/* end confdefs.h.  */
23590$db_includes
23591
23592typedef unsigned char ac__type_new_;
23593int
23594main ()
23595{
23596if ((ac__type_new_ *) 0)
23597  return 0;
23598if (sizeof (ac__type_new_))
23599  return 0;
23600  ;
23601  return 0;
23602}
23603_ACEOF
23604rm -f conftest.$ac_objext
23605if { (ac_try="$ac_compile"
23606case "(($ac_try" in
23607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608  *) ac_try_echo=$ac_try;;
23609esac
23610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611  (eval "$ac_compile") 2>conftest.er1
23612  ac_status=$?
23613  grep -v '^ *+' conftest.er1 >conftest.err
23614  rm -f conftest.er1
23615  cat conftest.err >&5
23616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617  (exit $ac_status); } && {
23618	 test -z "$ac_c_werror_flag" ||
23619	 test ! -s conftest.err
23620       } && test -s conftest.$ac_objext; then
23621  ac_cv_type_unsigned_char=yes
23622else
23623  echo "$as_me: failed program was:" >&5
23624sed 's/^/| /' conftest.$ac_ext >&5
23625
23626	ac_cv_type_unsigned_char=no
23627fi
23628
23629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23630fi
23631{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
23632echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6; }
23633
23634# The cast to long int works around a bug in the HP C Compiler
23635# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23636# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23637# This bug is HP SR number 8606223364.
23638{ echo "$as_me:$LINENO: checking size of unsigned char" >&5
23639echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6; }
23640if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
23641  echo $ECHO_N "(cached) $ECHO_C" >&6
23642else
23643  if test "$cross_compiling" = yes; then
23644  # Depending upon the size, compute the lo and hi bounds.
23645cat >conftest.$ac_ext <<_ACEOF
23646/* confdefs.h.  */
23647_ACEOF
23648cat confdefs.h >>conftest.$ac_ext
23649cat >>conftest.$ac_ext <<_ACEOF
23650/* end confdefs.h.  */
23651$db_includes
23652
23653   typedef unsigned char ac__type_sizeof_;
23654int
23655main ()
23656{
23657static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23658test_array [0] = 0
23659
23660  ;
23661  return 0;
23662}
23663_ACEOF
23664rm -f conftest.$ac_objext
23665if { (ac_try="$ac_compile"
23666case "(($ac_try" in
23667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668  *) ac_try_echo=$ac_try;;
23669esac
23670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23671  (eval "$ac_compile") 2>conftest.er1
23672  ac_status=$?
23673  grep -v '^ *+' conftest.er1 >conftest.err
23674  rm -f conftest.er1
23675  cat conftest.err >&5
23676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677  (exit $ac_status); } && {
23678	 test -z "$ac_c_werror_flag" ||
23679	 test ! -s conftest.err
23680       } && test -s conftest.$ac_objext; then
23681  ac_lo=0 ac_mid=0
23682  while :; do
23683    cat >conftest.$ac_ext <<_ACEOF
23684/* confdefs.h.  */
23685_ACEOF
23686cat confdefs.h >>conftest.$ac_ext
23687cat >>conftest.$ac_ext <<_ACEOF
23688/* end confdefs.h.  */
23689$db_includes
23690
23691   typedef unsigned char ac__type_sizeof_;
23692int
23693main ()
23694{
23695static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23696test_array [0] = 0
23697
23698  ;
23699  return 0;
23700}
23701_ACEOF
23702rm -f conftest.$ac_objext
23703if { (ac_try="$ac_compile"
23704case "(($ac_try" in
23705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23706  *) ac_try_echo=$ac_try;;
23707esac
23708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23709  (eval "$ac_compile") 2>conftest.er1
23710  ac_status=$?
23711  grep -v '^ *+' conftest.er1 >conftest.err
23712  rm -f conftest.er1
23713  cat conftest.err >&5
23714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715  (exit $ac_status); } && {
23716	 test -z "$ac_c_werror_flag" ||
23717	 test ! -s conftest.err
23718       } && test -s conftest.$ac_objext; then
23719  ac_hi=$ac_mid; break
23720else
23721  echo "$as_me: failed program was:" >&5
23722sed 's/^/| /' conftest.$ac_ext >&5
23723
23724	ac_lo=`expr $ac_mid + 1`
23725			if test $ac_lo -le $ac_mid; then
23726			  ac_lo= ac_hi=
23727			  break
23728			fi
23729			ac_mid=`expr 2 '*' $ac_mid + 1`
23730fi
23731
23732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23733  done
23734else
23735  echo "$as_me: failed program was:" >&5
23736sed 's/^/| /' conftest.$ac_ext >&5
23737
23738	cat >conftest.$ac_ext <<_ACEOF
23739/* confdefs.h.  */
23740_ACEOF
23741cat confdefs.h >>conftest.$ac_ext
23742cat >>conftest.$ac_ext <<_ACEOF
23743/* end confdefs.h.  */
23744$db_includes
23745
23746   typedef unsigned char ac__type_sizeof_;
23747int
23748main ()
23749{
23750static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23751test_array [0] = 0
23752
23753  ;
23754  return 0;
23755}
23756_ACEOF
23757rm -f conftest.$ac_objext
23758if { (ac_try="$ac_compile"
23759case "(($ac_try" in
23760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23761  *) ac_try_echo=$ac_try;;
23762esac
23763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23764  (eval "$ac_compile") 2>conftest.er1
23765  ac_status=$?
23766  grep -v '^ *+' conftest.er1 >conftest.err
23767  rm -f conftest.er1
23768  cat conftest.err >&5
23769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770  (exit $ac_status); } && {
23771	 test -z "$ac_c_werror_flag" ||
23772	 test ! -s conftest.err
23773       } && test -s conftest.$ac_objext; then
23774  ac_hi=-1 ac_mid=-1
23775  while :; do
23776    cat >conftest.$ac_ext <<_ACEOF
23777/* confdefs.h.  */
23778_ACEOF
23779cat confdefs.h >>conftest.$ac_ext
23780cat >>conftest.$ac_ext <<_ACEOF
23781/* end confdefs.h.  */
23782$db_includes
23783
23784   typedef unsigned char ac__type_sizeof_;
23785int
23786main ()
23787{
23788static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23789test_array [0] = 0
23790
23791  ;
23792  return 0;
23793}
23794_ACEOF
23795rm -f conftest.$ac_objext
23796if { (ac_try="$ac_compile"
23797case "(($ac_try" in
23798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23799  *) ac_try_echo=$ac_try;;
23800esac
23801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23802  (eval "$ac_compile") 2>conftest.er1
23803  ac_status=$?
23804  grep -v '^ *+' conftest.er1 >conftest.err
23805  rm -f conftest.er1
23806  cat conftest.err >&5
23807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808  (exit $ac_status); } && {
23809	 test -z "$ac_c_werror_flag" ||
23810	 test ! -s conftest.err
23811       } && test -s conftest.$ac_objext; then
23812  ac_lo=$ac_mid; break
23813else
23814  echo "$as_me: failed program was:" >&5
23815sed 's/^/| /' conftest.$ac_ext >&5
23816
23817	ac_hi=`expr '(' $ac_mid ')' - 1`
23818			if test $ac_mid -le $ac_hi; then
23819			  ac_lo= ac_hi=
23820			  break
23821			fi
23822			ac_mid=`expr 2 '*' $ac_mid`
23823fi
23824
23825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23826  done
23827else
23828  echo "$as_me: failed program was:" >&5
23829sed 's/^/| /' conftest.$ac_ext >&5
23830
23831	ac_lo= ac_hi=
23832fi
23833
23834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23835fi
23836
23837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23838# Binary search between lo and hi bounds.
23839while test "x$ac_lo" != "x$ac_hi"; do
23840  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23841  cat >conftest.$ac_ext <<_ACEOF
23842/* confdefs.h.  */
23843_ACEOF
23844cat confdefs.h >>conftest.$ac_ext
23845cat >>conftest.$ac_ext <<_ACEOF
23846/* end confdefs.h.  */
23847$db_includes
23848
23849   typedef unsigned char ac__type_sizeof_;
23850int
23851main ()
23852{
23853static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23854test_array [0] = 0
23855
23856  ;
23857  return 0;
23858}
23859_ACEOF
23860rm -f conftest.$ac_objext
23861if { (ac_try="$ac_compile"
23862case "(($ac_try" in
23863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23864  *) ac_try_echo=$ac_try;;
23865esac
23866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23867  (eval "$ac_compile") 2>conftest.er1
23868  ac_status=$?
23869  grep -v '^ *+' conftest.er1 >conftest.err
23870  rm -f conftest.er1
23871  cat conftest.err >&5
23872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873  (exit $ac_status); } && {
23874	 test -z "$ac_c_werror_flag" ||
23875	 test ! -s conftest.err
23876       } && test -s conftest.$ac_objext; then
23877  ac_hi=$ac_mid
23878else
23879  echo "$as_me: failed program was:" >&5
23880sed 's/^/| /' conftest.$ac_ext >&5
23881
23882	ac_lo=`expr '(' $ac_mid ')' + 1`
23883fi
23884
23885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23886done
23887case $ac_lo in
23888?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
23889'') if test "$ac_cv_type_unsigned_char" = yes; then
23890     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
23891See \`config.log' for more details." >&5
23892echo "$as_me: error: cannot compute sizeof (unsigned char)
23893See \`config.log' for more details." >&2;}
23894   { (exit 77); exit 77; }; }
23895   else
23896     ac_cv_sizeof_unsigned_char=0
23897   fi ;;
23898esac
23899else
23900  cat >conftest.$ac_ext <<_ACEOF
23901/* confdefs.h.  */
23902_ACEOF
23903cat confdefs.h >>conftest.$ac_ext
23904cat >>conftest.$ac_ext <<_ACEOF
23905/* end confdefs.h.  */
23906$db_includes
23907
23908   typedef unsigned char ac__type_sizeof_;
23909static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23910static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23911#include <stdio.h>
23912#include <stdlib.h>
23913int
23914main ()
23915{
23916
23917  FILE *f = fopen ("conftest.val", "w");
23918  if (! f)
23919    return 1;
23920  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23921    {
23922      long int i = longval ();
23923      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23924	return 1;
23925      fprintf (f, "%ld\n", i);
23926    }
23927  else
23928    {
23929      unsigned long int i = ulongval ();
23930      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23931	return 1;
23932      fprintf (f, "%lu\n", i);
23933    }
23934  return ferror (f) || fclose (f) != 0;
23935
23936  ;
23937  return 0;
23938}
23939_ACEOF
23940rm -f conftest$ac_exeext
23941if { (ac_try="$ac_link"
23942case "(($ac_try" in
23943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23944  *) ac_try_echo=$ac_try;;
23945esac
23946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23947  (eval "$ac_link") 2>&5
23948  ac_status=$?
23949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23951  { (case "(($ac_try" in
23952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23953  *) ac_try_echo=$ac_try;;
23954esac
23955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23956  (eval "$ac_try") 2>&5
23957  ac_status=$?
23958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959  (exit $ac_status); }; }; then
23960  ac_cv_sizeof_unsigned_char=`cat conftest.val`
23961else
23962  echo "$as_me: program exited with status $ac_status" >&5
23963echo "$as_me: failed program was:" >&5
23964sed 's/^/| /' conftest.$ac_ext >&5
23965
23966( exit $ac_status )
23967if test "$ac_cv_type_unsigned_char" = yes; then
23968     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
23969See \`config.log' for more details." >&5
23970echo "$as_me: error: cannot compute sizeof (unsigned char)
23971See \`config.log' for more details." >&2;}
23972   { (exit 77); exit 77; }; }
23973   else
23974     ac_cv_sizeof_unsigned_char=0
23975   fi
23976fi
23977rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23978fi
23979rm -f conftest.val
23980fi
23981{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
23982echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
23983
23984
23985
23986cat >>confdefs.h <<_ACEOF
23987#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
23988_ACEOF
23989
23990
23991{ echo "$as_me:$LINENO: checking for short" >&5
23992echo $ECHO_N "checking for short... $ECHO_C" >&6; }
23993if test "${ac_cv_type_short+set}" = set; then
23994  echo $ECHO_N "(cached) $ECHO_C" >&6
23995else
23996  cat >conftest.$ac_ext <<_ACEOF
23997/* confdefs.h.  */
23998_ACEOF
23999cat confdefs.h >>conftest.$ac_ext
24000cat >>conftest.$ac_ext <<_ACEOF
24001/* end confdefs.h.  */
24002$db_includes
24003
24004typedef short ac__type_new_;
24005int
24006main ()
24007{
24008if ((ac__type_new_ *) 0)
24009  return 0;
24010if (sizeof (ac__type_new_))
24011  return 0;
24012  ;
24013  return 0;
24014}
24015_ACEOF
24016rm -f conftest.$ac_objext
24017if { (ac_try="$ac_compile"
24018case "(($ac_try" in
24019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24020  *) ac_try_echo=$ac_try;;
24021esac
24022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24023  (eval "$ac_compile") 2>conftest.er1
24024  ac_status=$?
24025  grep -v '^ *+' conftest.er1 >conftest.err
24026  rm -f conftest.er1
24027  cat conftest.err >&5
24028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029  (exit $ac_status); } && {
24030	 test -z "$ac_c_werror_flag" ||
24031	 test ! -s conftest.err
24032       } && test -s conftest.$ac_objext; then
24033  ac_cv_type_short=yes
24034else
24035  echo "$as_me: failed program was:" >&5
24036sed 's/^/| /' conftest.$ac_ext >&5
24037
24038	ac_cv_type_short=no
24039fi
24040
24041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24042fi
24043{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
24044echo "${ECHO_T}$ac_cv_type_short" >&6; }
24045
24046# The cast to long int works around a bug in the HP C Compiler
24047# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24048# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24049# This bug is HP SR number 8606223364.
24050{ echo "$as_me:$LINENO: checking size of short" >&5
24051echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
24052if test "${ac_cv_sizeof_short+set}" = set; then
24053  echo $ECHO_N "(cached) $ECHO_C" >&6
24054else
24055  if test "$cross_compiling" = yes; then
24056  # Depending upon the size, compute the lo and hi bounds.
24057cat >conftest.$ac_ext <<_ACEOF
24058/* confdefs.h.  */
24059_ACEOF
24060cat confdefs.h >>conftest.$ac_ext
24061cat >>conftest.$ac_ext <<_ACEOF
24062/* end confdefs.h.  */
24063$db_includes
24064
24065   typedef short ac__type_sizeof_;
24066int
24067main ()
24068{
24069static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24070test_array [0] = 0
24071
24072  ;
24073  return 0;
24074}
24075_ACEOF
24076rm -f conftest.$ac_objext
24077if { (ac_try="$ac_compile"
24078case "(($ac_try" in
24079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24080  *) ac_try_echo=$ac_try;;
24081esac
24082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24083  (eval "$ac_compile") 2>conftest.er1
24084  ac_status=$?
24085  grep -v '^ *+' conftest.er1 >conftest.err
24086  rm -f conftest.er1
24087  cat conftest.err >&5
24088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089  (exit $ac_status); } && {
24090	 test -z "$ac_c_werror_flag" ||
24091	 test ! -s conftest.err
24092       } && test -s conftest.$ac_objext; then
24093  ac_lo=0 ac_mid=0
24094  while :; do
24095    cat >conftest.$ac_ext <<_ACEOF
24096/* confdefs.h.  */
24097_ACEOF
24098cat confdefs.h >>conftest.$ac_ext
24099cat >>conftest.$ac_ext <<_ACEOF
24100/* end confdefs.h.  */
24101$db_includes
24102
24103   typedef short ac__type_sizeof_;
24104int
24105main ()
24106{
24107static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24108test_array [0] = 0
24109
24110  ;
24111  return 0;
24112}
24113_ACEOF
24114rm -f conftest.$ac_objext
24115if { (ac_try="$ac_compile"
24116case "(($ac_try" in
24117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24118  *) ac_try_echo=$ac_try;;
24119esac
24120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24121  (eval "$ac_compile") 2>conftest.er1
24122  ac_status=$?
24123  grep -v '^ *+' conftest.er1 >conftest.err
24124  rm -f conftest.er1
24125  cat conftest.err >&5
24126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127  (exit $ac_status); } && {
24128	 test -z "$ac_c_werror_flag" ||
24129	 test ! -s conftest.err
24130       } && test -s conftest.$ac_objext; then
24131  ac_hi=$ac_mid; break
24132else
24133  echo "$as_me: failed program was:" >&5
24134sed 's/^/| /' conftest.$ac_ext >&5
24135
24136	ac_lo=`expr $ac_mid + 1`
24137			if test $ac_lo -le $ac_mid; then
24138			  ac_lo= ac_hi=
24139			  break
24140			fi
24141			ac_mid=`expr 2 '*' $ac_mid + 1`
24142fi
24143
24144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24145  done
24146else
24147  echo "$as_me: failed program was:" >&5
24148sed 's/^/| /' conftest.$ac_ext >&5
24149
24150	cat >conftest.$ac_ext <<_ACEOF
24151/* confdefs.h.  */
24152_ACEOF
24153cat confdefs.h >>conftest.$ac_ext
24154cat >>conftest.$ac_ext <<_ACEOF
24155/* end confdefs.h.  */
24156$db_includes
24157
24158   typedef short ac__type_sizeof_;
24159int
24160main ()
24161{
24162static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24163test_array [0] = 0
24164
24165  ;
24166  return 0;
24167}
24168_ACEOF
24169rm -f conftest.$ac_objext
24170if { (ac_try="$ac_compile"
24171case "(($ac_try" in
24172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24173  *) ac_try_echo=$ac_try;;
24174esac
24175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24176  (eval "$ac_compile") 2>conftest.er1
24177  ac_status=$?
24178  grep -v '^ *+' conftest.er1 >conftest.err
24179  rm -f conftest.er1
24180  cat conftest.err >&5
24181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24182  (exit $ac_status); } && {
24183	 test -z "$ac_c_werror_flag" ||
24184	 test ! -s conftest.err
24185       } && test -s conftest.$ac_objext; then
24186  ac_hi=-1 ac_mid=-1
24187  while :; do
24188    cat >conftest.$ac_ext <<_ACEOF
24189/* confdefs.h.  */
24190_ACEOF
24191cat confdefs.h >>conftest.$ac_ext
24192cat >>conftest.$ac_ext <<_ACEOF
24193/* end confdefs.h.  */
24194$db_includes
24195
24196   typedef short ac__type_sizeof_;
24197int
24198main ()
24199{
24200static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24201test_array [0] = 0
24202
24203  ;
24204  return 0;
24205}
24206_ACEOF
24207rm -f conftest.$ac_objext
24208if { (ac_try="$ac_compile"
24209case "(($ac_try" in
24210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24211  *) ac_try_echo=$ac_try;;
24212esac
24213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24214  (eval "$ac_compile") 2>conftest.er1
24215  ac_status=$?
24216  grep -v '^ *+' conftest.er1 >conftest.err
24217  rm -f conftest.er1
24218  cat conftest.err >&5
24219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220  (exit $ac_status); } && {
24221	 test -z "$ac_c_werror_flag" ||
24222	 test ! -s conftest.err
24223       } && test -s conftest.$ac_objext; then
24224  ac_lo=$ac_mid; break
24225else
24226  echo "$as_me: failed program was:" >&5
24227sed 's/^/| /' conftest.$ac_ext >&5
24228
24229	ac_hi=`expr '(' $ac_mid ')' - 1`
24230			if test $ac_mid -le $ac_hi; then
24231			  ac_lo= ac_hi=
24232			  break
24233			fi
24234			ac_mid=`expr 2 '*' $ac_mid`
24235fi
24236
24237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24238  done
24239else
24240  echo "$as_me: failed program was:" >&5
24241sed 's/^/| /' conftest.$ac_ext >&5
24242
24243	ac_lo= ac_hi=
24244fi
24245
24246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24247fi
24248
24249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24250# Binary search between lo and hi bounds.
24251while test "x$ac_lo" != "x$ac_hi"; do
24252  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24253  cat >conftest.$ac_ext <<_ACEOF
24254/* confdefs.h.  */
24255_ACEOF
24256cat confdefs.h >>conftest.$ac_ext
24257cat >>conftest.$ac_ext <<_ACEOF
24258/* end confdefs.h.  */
24259$db_includes
24260
24261   typedef short ac__type_sizeof_;
24262int
24263main ()
24264{
24265static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24266test_array [0] = 0
24267
24268  ;
24269  return 0;
24270}
24271_ACEOF
24272rm -f conftest.$ac_objext
24273if { (ac_try="$ac_compile"
24274case "(($ac_try" in
24275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24276  *) ac_try_echo=$ac_try;;
24277esac
24278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24279  (eval "$ac_compile") 2>conftest.er1
24280  ac_status=$?
24281  grep -v '^ *+' conftest.er1 >conftest.err
24282  rm -f conftest.er1
24283  cat conftest.err >&5
24284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24285  (exit $ac_status); } && {
24286	 test -z "$ac_c_werror_flag" ||
24287	 test ! -s conftest.err
24288       } && test -s conftest.$ac_objext; then
24289  ac_hi=$ac_mid
24290else
24291  echo "$as_me: failed program was:" >&5
24292sed 's/^/| /' conftest.$ac_ext >&5
24293
24294	ac_lo=`expr '(' $ac_mid ')' + 1`
24295fi
24296
24297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24298done
24299case $ac_lo in
24300?*) ac_cv_sizeof_short=$ac_lo;;
24301'') if test "$ac_cv_type_short" = yes; then
24302     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
24303See \`config.log' for more details." >&5
24304echo "$as_me: error: cannot compute sizeof (short)
24305See \`config.log' for more details." >&2;}
24306   { (exit 77); exit 77; }; }
24307   else
24308     ac_cv_sizeof_short=0
24309   fi ;;
24310esac
24311else
24312  cat >conftest.$ac_ext <<_ACEOF
24313/* confdefs.h.  */
24314_ACEOF
24315cat confdefs.h >>conftest.$ac_ext
24316cat >>conftest.$ac_ext <<_ACEOF
24317/* end confdefs.h.  */
24318$db_includes
24319
24320   typedef short ac__type_sizeof_;
24321static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24322static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24323#include <stdio.h>
24324#include <stdlib.h>
24325int
24326main ()
24327{
24328
24329  FILE *f = fopen ("conftest.val", "w");
24330  if (! f)
24331    return 1;
24332  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24333    {
24334      long int i = longval ();
24335      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24336	return 1;
24337      fprintf (f, "%ld\n", i);
24338    }
24339  else
24340    {
24341      unsigned long int i = ulongval ();
24342      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24343	return 1;
24344      fprintf (f, "%lu\n", i);
24345    }
24346  return ferror (f) || fclose (f) != 0;
24347
24348  ;
24349  return 0;
24350}
24351_ACEOF
24352rm -f conftest$ac_exeext
24353if { (ac_try="$ac_link"
24354case "(($ac_try" in
24355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24356  *) ac_try_echo=$ac_try;;
24357esac
24358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24359  (eval "$ac_link") 2>&5
24360  ac_status=$?
24361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24363  { (case "(($ac_try" in
24364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24365  *) ac_try_echo=$ac_try;;
24366esac
24367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24368  (eval "$ac_try") 2>&5
24369  ac_status=$?
24370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371  (exit $ac_status); }; }; then
24372  ac_cv_sizeof_short=`cat conftest.val`
24373else
24374  echo "$as_me: program exited with status $ac_status" >&5
24375echo "$as_me: failed program was:" >&5
24376sed 's/^/| /' conftest.$ac_ext >&5
24377
24378( exit $ac_status )
24379if test "$ac_cv_type_short" = yes; then
24380     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
24381See \`config.log' for more details." >&5
24382echo "$as_me: error: cannot compute sizeof (short)
24383See \`config.log' for more details." >&2;}
24384   { (exit 77); exit 77; }; }
24385   else
24386     ac_cv_sizeof_short=0
24387   fi
24388fi
24389rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24390fi
24391rm -f conftest.val
24392fi
24393{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
24394echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
24395
24396
24397
24398cat >>confdefs.h <<_ACEOF
24399#define SIZEOF_SHORT $ac_cv_sizeof_short
24400_ACEOF
24401
24402
24403{ echo "$as_me:$LINENO: checking for unsigned short" >&5
24404echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
24405if test "${ac_cv_type_unsigned_short+set}" = set; then
24406  echo $ECHO_N "(cached) $ECHO_C" >&6
24407else
24408  cat >conftest.$ac_ext <<_ACEOF
24409/* confdefs.h.  */
24410_ACEOF
24411cat confdefs.h >>conftest.$ac_ext
24412cat >>conftest.$ac_ext <<_ACEOF
24413/* end confdefs.h.  */
24414$db_includes
24415
24416typedef unsigned short ac__type_new_;
24417int
24418main ()
24419{
24420if ((ac__type_new_ *) 0)
24421  return 0;
24422if (sizeof (ac__type_new_))
24423  return 0;
24424  ;
24425  return 0;
24426}
24427_ACEOF
24428rm -f conftest.$ac_objext
24429if { (ac_try="$ac_compile"
24430case "(($ac_try" in
24431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24432  *) ac_try_echo=$ac_try;;
24433esac
24434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24435  (eval "$ac_compile") 2>conftest.er1
24436  ac_status=$?
24437  grep -v '^ *+' conftest.er1 >conftest.err
24438  rm -f conftest.er1
24439  cat conftest.err >&5
24440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441  (exit $ac_status); } && {
24442	 test -z "$ac_c_werror_flag" ||
24443	 test ! -s conftest.err
24444       } && test -s conftest.$ac_objext; then
24445  ac_cv_type_unsigned_short=yes
24446else
24447  echo "$as_me: failed program was:" >&5
24448sed 's/^/| /' conftest.$ac_ext >&5
24449
24450	ac_cv_type_unsigned_short=no
24451fi
24452
24453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24454fi
24455{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
24456echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }
24457
24458# The cast to long int works around a bug in the HP C Compiler
24459# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24460# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24461# This bug is HP SR number 8606223364.
24462{ echo "$as_me:$LINENO: checking size of unsigned short" >&5
24463echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
24464if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
24465  echo $ECHO_N "(cached) $ECHO_C" >&6
24466else
24467  if test "$cross_compiling" = yes; then
24468  # Depending upon the size, compute the lo and hi bounds.
24469cat >conftest.$ac_ext <<_ACEOF
24470/* confdefs.h.  */
24471_ACEOF
24472cat confdefs.h >>conftest.$ac_ext
24473cat >>conftest.$ac_ext <<_ACEOF
24474/* end confdefs.h.  */
24475$db_includes
24476
24477   typedef unsigned short ac__type_sizeof_;
24478int
24479main ()
24480{
24481static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24482test_array [0] = 0
24483
24484  ;
24485  return 0;
24486}
24487_ACEOF
24488rm -f conftest.$ac_objext
24489if { (ac_try="$ac_compile"
24490case "(($ac_try" in
24491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24492  *) ac_try_echo=$ac_try;;
24493esac
24494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24495  (eval "$ac_compile") 2>conftest.er1
24496  ac_status=$?
24497  grep -v '^ *+' conftest.er1 >conftest.err
24498  rm -f conftest.er1
24499  cat conftest.err >&5
24500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24501  (exit $ac_status); } && {
24502	 test -z "$ac_c_werror_flag" ||
24503	 test ! -s conftest.err
24504       } && test -s conftest.$ac_objext; then
24505  ac_lo=0 ac_mid=0
24506  while :; do
24507    cat >conftest.$ac_ext <<_ACEOF
24508/* confdefs.h.  */
24509_ACEOF
24510cat confdefs.h >>conftest.$ac_ext
24511cat >>conftest.$ac_ext <<_ACEOF
24512/* end confdefs.h.  */
24513$db_includes
24514
24515   typedef unsigned short ac__type_sizeof_;
24516int
24517main ()
24518{
24519static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24520test_array [0] = 0
24521
24522  ;
24523  return 0;
24524}
24525_ACEOF
24526rm -f conftest.$ac_objext
24527if { (ac_try="$ac_compile"
24528case "(($ac_try" in
24529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24530  *) ac_try_echo=$ac_try;;
24531esac
24532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24533  (eval "$ac_compile") 2>conftest.er1
24534  ac_status=$?
24535  grep -v '^ *+' conftest.er1 >conftest.err
24536  rm -f conftest.er1
24537  cat conftest.err >&5
24538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24539  (exit $ac_status); } && {
24540	 test -z "$ac_c_werror_flag" ||
24541	 test ! -s conftest.err
24542       } && test -s conftest.$ac_objext; then
24543  ac_hi=$ac_mid; break
24544else
24545  echo "$as_me: failed program was:" >&5
24546sed 's/^/| /' conftest.$ac_ext >&5
24547
24548	ac_lo=`expr $ac_mid + 1`
24549			if test $ac_lo -le $ac_mid; then
24550			  ac_lo= ac_hi=
24551			  break
24552			fi
24553			ac_mid=`expr 2 '*' $ac_mid + 1`
24554fi
24555
24556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24557  done
24558else
24559  echo "$as_me: failed program was:" >&5
24560sed 's/^/| /' conftest.$ac_ext >&5
24561
24562	cat >conftest.$ac_ext <<_ACEOF
24563/* confdefs.h.  */
24564_ACEOF
24565cat confdefs.h >>conftest.$ac_ext
24566cat >>conftest.$ac_ext <<_ACEOF
24567/* end confdefs.h.  */
24568$db_includes
24569
24570   typedef unsigned short ac__type_sizeof_;
24571int
24572main ()
24573{
24574static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24575test_array [0] = 0
24576
24577  ;
24578  return 0;
24579}
24580_ACEOF
24581rm -f conftest.$ac_objext
24582if { (ac_try="$ac_compile"
24583case "(($ac_try" in
24584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24585  *) ac_try_echo=$ac_try;;
24586esac
24587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24588  (eval "$ac_compile") 2>conftest.er1
24589  ac_status=$?
24590  grep -v '^ *+' conftest.er1 >conftest.err
24591  rm -f conftest.er1
24592  cat conftest.err >&5
24593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594  (exit $ac_status); } && {
24595	 test -z "$ac_c_werror_flag" ||
24596	 test ! -s conftest.err
24597       } && test -s conftest.$ac_objext; then
24598  ac_hi=-1 ac_mid=-1
24599  while :; do
24600    cat >conftest.$ac_ext <<_ACEOF
24601/* confdefs.h.  */
24602_ACEOF
24603cat confdefs.h >>conftest.$ac_ext
24604cat >>conftest.$ac_ext <<_ACEOF
24605/* end confdefs.h.  */
24606$db_includes
24607
24608   typedef unsigned short ac__type_sizeof_;
24609int
24610main ()
24611{
24612static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24613test_array [0] = 0
24614
24615  ;
24616  return 0;
24617}
24618_ACEOF
24619rm -f conftest.$ac_objext
24620if { (ac_try="$ac_compile"
24621case "(($ac_try" in
24622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24623  *) ac_try_echo=$ac_try;;
24624esac
24625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24626  (eval "$ac_compile") 2>conftest.er1
24627  ac_status=$?
24628  grep -v '^ *+' conftest.er1 >conftest.err
24629  rm -f conftest.er1
24630  cat conftest.err >&5
24631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632  (exit $ac_status); } && {
24633	 test -z "$ac_c_werror_flag" ||
24634	 test ! -s conftest.err
24635       } && test -s conftest.$ac_objext; then
24636  ac_lo=$ac_mid; break
24637else
24638  echo "$as_me: failed program was:" >&5
24639sed 's/^/| /' conftest.$ac_ext >&5
24640
24641	ac_hi=`expr '(' $ac_mid ')' - 1`
24642			if test $ac_mid -le $ac_hi; then
24643			  ac_lo= ac_hi=
24644			  break
24645			fi
24646			ac_mid=`expr 2 '*' $ac_mid`
24647fi
24648
24649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24650  done
24651else
24652  echo "$as_me: failed program was:" >&5
24653sed 's/^/| /' conftest.$ac_ext >&5
24654
24655	ac_lo= ac_hi=
24656fi
24657
24658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24659fi
24660
24661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24662# Binary search between lo and hi bounds.
24663while test "x$ac_lo" != "x$ac_hi"; do
24664  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24665  cat >conftest.$ac_ext <<_ACEOF
24666/* confdefs.h.  */
24667_ACEOF
24668cat confdefs.h >>conftest.$ac_ext
24669cat >>conftest.$ac_ext <<_ACEOF
24670/* end confdefs.h.  */
24671$db_includes
24672
24673   typedef unsigned short ac__type_sizeof_;
24674int
24675main ()
24676{
24677static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24678test_array [0] = 0
24679
24680  ;
24681  return 0;
24682}
24683_ACEOF
24684rm -f conftest.$ac_objext
24685if { (ac_try="$ac_compile"
24686case "(($ac_try" in
24687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24688  *) ac_try_echo=$ac_try;;
24689esac
24690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24691  (eval "$ac_compile") 2>conftest.er1
24692  ac_status=$?
24693  grep -v '^ *+' conftest.er1 >conftest.err
24694  rm -f conftest.er1
24695  cat conftest.err >&5
24696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24697  (exit $ac_status); } && {
24698	 test -z "$ac_c_werror_flag" ||
24699	 test ! -s conftest.err
24700       } && test -s conftest.$ac_objext; then
24701  ac_hi=$ac_mid
24702else
24703  echo "$as_me: failed program was:" >&5
24704sed 's/^/| /' conftest.$ac_ext >&5
24705
24706	ac_lo=`expr '(' $ac_mid ')' + 1`
24707fi
24708
24709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24710done
24711case $ac_lo in
24712?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
24713'') if test "$ac_cv_type_unsigned_short" = yes; then
24714     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
24715See \`config.log' for more details." >&5
24716echo "$as_me: error: cannot compute sizeof (unsigned short)
24717See \`config.log' for more details." >&2;}
24718   { (exit 77); exit 77; }; }
24719   else
24720     ac_cv_sizeof_unsigned_short=0
24721   fi ;;
24722esac
24723else
24724  cat >conftest.$ac_ext <<_ACEOF
24725/* confdefs.h.  */
24726_ACEOF
24727cat confdefs.h >>conftest.$ac_ext
24728cat >>conftest.$ac_ext <<_ACEOF
24729/* end confdefs.h.  */
24730$db_includes
24731
24732   typedef unsigned short ac__type_sizeof_;
24733static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24734static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24735#include <stdio.h>
24736#include <stdlib.h>
24737int
24738main ()
24739{
24740
24741  FILE *f = fopen ("conftest.val", "w");
24742  if (! f)
24743    return 1;
24744  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24745    {
24746      long int i = longval ();
24747      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24748	return 1;
24749      fprintf (f, "%ld\n", i);
24750    }
24751  else
24752    {
24753      unsigned long int i = ulongval ();
24754      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24755	return 1;
24756      fprintf (f, "%lu\n", i);
24757    }
24758  return ferror (f) || fclose (f) != 0;
24759
24760  ;
24761  return 0;
24762}
24763_ACEOF
24764rm -f conftest$ac_exeext
24765if { (ac_try="$ac_link"
24766case "(($ac_try" in
24767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24768  *) ac_try_echo=$ac_try;;
24769esac
24770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24771  (eval "$ac_link") 2>&5
24772  ac_status=$?
24773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24775  { (case "(($ac_try" in
24776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24777  *) ac_try_echo=$ac_try;;
24778esac
24779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24780  (eval "$ac_try") 2>&5
24781  ac_status=$?
24782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783  (exit $ac_status); }; }; then
24784  ac_cv_sizeof_unsigned_short=`cat conftest.val`
24785else
24786  echo "$as_me: program exited with status $ac_status" >&5
24787echo "$as_me: failed program was:" >&5
24788sed 's/^/| /' conftest.$ac_ext >&5
24789
24790( exit $ac_status )
24791if test "$ac_cv_type_unsigned_short" = yes; then
24792     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
24793See \`config.log' for more details." >&5
24794echo "$as_me: error: cannot compute sizeof (unsigned short)
24795See \`config.log' for more details." >&2;}
24796   { (exit 77); exit 77; }; }
24797   else
24798     ac_cv_sizeof_unsigned_short=0
24799   fi
24800fi
24801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24802fi
24803rm -f conftest.val
24804fi
24805{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
24806echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
24807
24808
24809
24810cat >>confdefs.h <<_ACEOF
24811#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24812_ACEOF
24813
24814
24815{ echo "$as_me:$LINENO: checking for int" >&5
24816echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24817if test "${ac_cv_type_int+set}" = set; then
24818  echo $ECHO_N "(cached) $ECHO_C" >&6
24819else
24820  cat >conftest.$ac_ext <<_ACEOF
24821/* confdefs.h.  */
24822_ACEOF
24823cat confdefs.h >>conftest.$ac_ext
24824cat >>conftest.$ac_ext <<_ACEOF
24825/* end confdefs.h.  */
24826$db_includes
24827
24828typedef int ac__type_new_;
24829int
24830main ()
24831{
24832if ((ac__type_new_ *) 0)
24833  return 0;
24834if (sizeof (ac__type_new_))
24835  return 0;
24836  ;
24837  return 0;
24838}
24839_ACEOF
24840rm -f conftest.$ac_objext
24841if { (ac_try="$ac_compile"
24842case "(($ac_try" in
24843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24844  *) ac_try_echo=$ac_try;;
24845esac
24846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24847  (eval "$ac_compile") 2>conftest.er1
24848  ac_status=$?
24849  grep -v '^ *+' conftest.er1 >conftest.err
24850  rm -f conftest.er1
24851  cat conftest.err >&5
24852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853  (exit $ac_status); } && {
24854	 test -z "$ac_c_werror_flag" ||
24855	 test ! -s conftest.err
24856       } && test -s conftest.$ac_objext; then
24857  ac_cv_type_int=yes
24858else
24859  echo "$as_me: failed program was:" >&5
24860sed 's/^/| /' conftest.$ac_ext >&5
24861
24862	ac_cv_type_int=no
24863fi
24864
24865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24866fi
24867{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24868echo "${ECHO_T}$ac_cv_type_int" >&6; }
24869
24870# The cast to long int works around a bug in the HP C Compiler
24871# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24872# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24873# This bug is HP SR number 8606223364.
24874{ echo "$as_me:$LINENO: checking size of int" >&5
24875echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24876if test "${ac_cv_sizeof_int+set}" = set; then
24877  echo $ECHO_N "(cached) $ECHO_C" >&6
24878else
24879  if test "$cross_compiling" = yes; then
24880  # Depending upon the size, compute the lo and hi bounds.
24881cat >conftest.$ac_ext <<_ACEOF
24882/* confdefs.h.  */
24883_ACEOF
24884cat confdefs.h >>conftest.$ac_ext
24885cat >>conftest.$ac_ext <<_ACEOF
24886/* end confdefs.h.  */
24887$db_includes
24888
24889   typedef int ac__type_sizeof_;
24890int
24891main ()
24892{
24893static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24894test_array [0] = 0
24895
24896  ;
24897  return 0;
24898}
24899_ACEOF
24900rm -f conftest.$ac_objext
24901if { (ac_try="$ac_compile"
24902case "(($ac_try" in
24903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24904  *) ac_try_echo=$ac_try;;
24905esac
24906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24907  (eval "$ac_compile") 2>conftest.er1
24908  ac_status=$?
24909  grep -v '^ *+' conftest.er1 >conftest.err
24910  rm -f conftest.er1
24911  cat conftest.err >&5
24912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913  (exit $ac_status); } && {
24914	 test -z "$ac_c_werror_flag" ||
24915	 test ! -s conftest.err
24916       } && test -s conftest.$ac_objext; then
24917  ac_lo=0 ac_mid=0
24918  while :; do
24919    cat >conftest.$ac_ext <<_ACEOF
24920/* confdefs.h.  */
24921_ACEOF
24922cat confdefs.h >>conftest.$ac_ext
24923cat >>conftest.$ac_ext <<_ACEOF
24924/* end confdefs.h.  */
24925$db_includes
24926
24927   typedef int ac__type_sizeof_;
24928int
24929main ()
24930{
24931static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24932test_array [0] = 0
24933
24934  ;
24935  return 0;
24936}
24937_ACEOF
24938rm -f conftest.$ac_objext
24939if { (ac_try="$ac_compile"
24940case "(($ac_try" in
24941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24942  *) ac_try_echo=$ac_try;;
24943esac
24944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24945  (eval "$ac_compile") 2>conftest.er1
24946  ac_status=$?
24947  grep -v '^ *+' conftest.er1 >conftest.err
24948  rm -f conftest.er1
24949  cat conftest.err >&5
24950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951  (exit $ac_status); } && {
24952	 test -z "$ac_c_werror_flag" ||
24953	 test ! -s conftest.err
24954       } && test -s conftest.$ac_objext; then
24955  ac_hi=$ac_mid; break
24956else
24957  echo "$as_me: failed program was:" >&5
24958sed 's/^/| /' conftest.$ac_ext >&5
24959
24960	ac_lo=`expr $ac_mid + 1`
24961			if test $ac_lo -le $ac_mid; then
24962			  ac_lo= ac_hi=
24963			  break
24964			fi
24965			ac_mid=`expr 2 '*' $ac_mid + 1`
24966fi
24967
24968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24969  done
24970else
24971  echo "$as_me: failed program was:" >&5
24972sed 's/^/| /' conftest.$ac_ext >&5
24973
24974	cat >conftest.$ac_ext <<_ACEOF
24975/* confdefs.h.  */
24976_ACEOF
24977cat confdefs.h >>conftest.$ac_ext
24978cat >>conftest.$ac_ext <<_ACEOF
24979/* end confdefs.h.  */
24980$db_includes
24981
24982   typedef int ac__type_sizeof_;
24983int
24984main ()
24985{
24986static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24987test_array [0] = 0
24988
24989  ;
24990  return 0;
24991}
24992_ACEOF
24993rm -f conftest.$ac_objext
24994if { (ac_try="$ac_compile"
24995case "(($ac_try" in
24996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24997  *) ac_try_echo=$ac_try;;
24998esac
24999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25000  (eval "$ac_compile") 2>conftest.er1
25001  ac_status=$?
25002  grep -v '^ *+' conftest.er1 >conftest.err
25003  rm -f conftest.er1
25004  cat conftest.err >&5
25005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006  (exit $ac_status); } && {
25007	 test -z "$ac_c_werror_flag" ||
25008	 test ! -s conftest.err
25009       } && test -s conftest.$ac_objext; then
25010  ac_hi=-1 ac_mid=-1
25011  while :; do
25012    cat >conftest.$ac_ext <<_ACEOF
25013/* confdefs.h.  */
25014_ACEOF
25015cat confdefs.h >>conftest.$ac_ext
25016cat >>conftest.$ac_ext <<_ACEOF
25017/* end confdefs.h.  */
25018$db_includes
25019
25020   typedef int ac__type_sizeof_;
25021int
25022main ()
25023{
25024static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25025test_array [0] = 0
25026
25027  ;
25028  return 0;
25029}
25030_ACEOF
25031rm -f conftest.$ac_objext
25032if { (ac_try="$ac_compile"
25033case "(($ac_try" in
25034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25035  *) ac_try_echo=$ac_try;;
25036esac
25037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25038  (eval "$ac_compile") 2>conftest.er1
25039  ac_status=$?
25040  grep -v '^ *+' conftest.er1 >conftest.err
25041  rm -f conftest.er1
25042  cat conftest.err >&5
25043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044  (exit $ac_status); } && {
25045	 test -z "$ac_c_werror_flag" ||
25046	 test ! -s conftest.err
25047       } && test -s conftest.$ac_objext; then
25048  ac_lo=$ac_mid; break
25049else
25050  echo "$as_me: failed program was:" >&5
25051sed 's/^/| /' conftest.$ac_ext >&5
25052
25053	ac_hi=`expr '(' $ac_mid ')' - 1`
25054			if test $ac_mid -le $ac_hi; then
25055			  ac_lo= ac_hi=
25056			  break
25057			fi
25058			ac_mid=`expr 2 '*' $ac_mid`
25059fi
25060
25061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25062  done
25063else
25064  echo "$as_me: failed program was:" >&5
25065sed 's/^/| /' conftest.$ac_ext >&5
25066
25067	ac_lo= ac_hi=
25068fi
25069
25070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25071fi
25072
25073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25074# Binary search between lo and hi bounds.
25075while test "x$ac_lo" != "x$ac_hi"; do
25076  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25077  cat >conftest.$ac_ext <<_ACEOF
25078/* confdefs.h.  */
25079_ACEOF
25080cat confdefs.h >>conftest.$ac_ext
25081cat >>conftest.$ac_ext <<_ACEOF
25082/* end confdefs.h.  */
25083$db_includes
25084
25085   typedef int ac__type_sizeof_;
25086int
25087main ()
25088{
25089static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25090test_array [0] = 0
25091
25092  ;
25093  return 0;
25094}
25095_ACEOF
25096rm -f conftest.$ac_objext
25097if { (ac_try="$ac_compile"
25098case "(($ac_try" in
25099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25100  *) ac_try_echo=$ac_try;;
25101esac
25102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25103  (eval "$ac_compile") 2>conftest.er1
25104  ac_status=$?
25105  grep -v '^ *+' conftest.er1 >conftest.err
25106  rm -f conftest.er1
25107  cat conftest.err >&5
25108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109  (exit $ac_status); } && {
25110	 test -z "$ac_c_werror_flag" ||
25111	 test ! -s conftest.err
25112       } && test -s conftest.$ac_objext; then
25113  ac_hi=$ac_mid
25114else
25115  echo "$as_me: failed program was:" >&5
25116sed 's/^/| /' conftest.$ac_ext >&5
25117
25118	ac_lo=`expr '(' $ac_mid ')' + 1`
25119fi
25120
25121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25122done
25123case $ac_lo in
25124?*) ac_cv_sizeof_int=$ac_lo;;
25125'') if test "$ac_cv_type_int" = yes; then
25126     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
25127See \`config.log' for more details." >&5
25128echo "$as_me: error: cannot compute sizeof (int)
25129See \`config.log' for more details." >&2;}
25130   { (exit 77); exit 77; }; }
25131   else
25132     ac_cv_sizeof_int=0
25133   fi ;;
25134esac
25135else
25136  cat >conftest.$ac_ext <<_ACEOF
25137/* confdefs.h.  */
25138_ACEOF
25139cat confdefs.h >>conftest.$ac_ext
25140cat >>conftest.$ac_ext <<_ACEOF
25141/* end confdefs.h.  */
25142$db_includes
25143
25144   typedef int ac__type_sizeof_;
25145static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25146static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25147#include <stdio.h>
25148#include <stdlib.h>
25149int
25150main ()
25151{
25152
25153  FILE *f = fopen ("conftest.val", "w");
25154  if (! f)
25155    return 1;
25156  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25157    {
25158      long int i = longval ();
25159      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25160	return 1;
25161      fprintf (f, "%ld\n", i);
25162    }
25163  else
25164    {
25165      unsigned long int i = ulongval ();
25166      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25167	return 1;
25168      fprintf (f, "%lu\n", i);
25169    }
25170  return ferror (f) || fclose (f) != 0;
25171
25172  ;
25173  return 0;
25174}
25175_ACEOF
25176rm -f conftest$ac_exeext
25177if { (ac_try="$ac_link"
25178case "(($ac_try" in
25179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25180  *) ac_try_echo=$ac_try;;
25181esac
25182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25183  (eval "$ac_link") 2>&5
25184  ac_status=$?
25185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25186  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25187  { (case "(($ac_try" in
25188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25189  *) ac_try_echo=$ac_try;;
25190esac
25191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25192  (eval "$ac_try") 2>&5
25193  ac_status=$?
25194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195  (exit $ac_status); }; }; then
25196  ac_cv_sizeof_int=`cat conftest.val`
25197else
25198  echo "$as_me: program exited with status $ac_status" >&5
25199echo "$as_me: failed program was:" >&5
25200sed 's/^/| /' conftest.$ac_ext >&5
25201
25202( exit $ac_status )
25203if test "$ac_cv_type_int" = yes; then
25204     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
25205See \`config.log' for more details." >&5
25206echo "$as_me: error: cannot compute sizeof (int)
25207See \`config.log' for more details." >&2;}
25208   { (exit 77); exit 77; }; }
25209   else
25210     ac_cv_sizeof_int=0
25211   fi
25212fi
25213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25214fi
25215rm -f conftest.val
25216fi
25217{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
25218echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
25219
25220
25221
25222cat >>confdefs.h <<_ACEOF
25223#define SIZEOF_INT $ac_cv_sizeof_int
25224_ACEOF
25225
25226
25227{ echo "$as_me:$LINENO: checking for unsigned int" >&5
25228echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
25229if test "${ac_cv_type_unsigned_int+set}" = set; then
25230  echo $ECHO_N "(cached) $ECHO_C" >&6
25231else
25232  cat >conftest.$ac_ext <<_ACEOF
25233/* confdefs.h.  */
25234_ACEOF
25235cat confdefs.h >>conftest.$ac_ext
25236cat >>conftest.$ac_ext <<_ACEOF
25237/* end confdefs.h.  */
25238$db_includes
25239
25240typedef unsigned int ac__type_new_;
25241int
25242main ()
25243{
25244if ((ac__type_new_ *) 0)
25245  return 0;
25246if (sizeof (ac__type_new_))
25247  return 0;
25248  ;
25249  return 0;
25250}
25251_ACEOF
25252rm -f conftest.$ac_objext
25253if { (ac_try="$ac_compile"
25254case "(($ac_try" in
25255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25256  *) ac_try_echo=$ac_try;;
25257esac
25258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25259  (eval "$ac_compile") 2>conftest.er1
25260  ac_status=$?
25261  grep -v '^ *+' conftest.er1 >conftest.err
25262  rm -f conftest.er1
25263  cat conftest.err >&5
25264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265  (exit $ac_status); } && {
25266	 test -z "$ac_c_werror_flag" ||
25267	 test ! -s conftest.err
25268       } && test -s conftest.$ac_objext; then
25269  ac_cv_type_unsigned_int=yes
25270else
25271  echo "$as_me: failed program was:" >&5
25272sed 's/^/| /' conftest.$ac_ext >&5
25273
25274	ac_cv_type_unsigned_int=no
25275fi
25276
25277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25278fi
25279{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
25280echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
25281
25282# The cast to long int works around a bug in the HP C Compiler
25283# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25284# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25285# This bug is HP SR number 8606223364.
25286{ echo "$as_me:$LINENO: checking size of unsigned int" >&5
25287echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
25288if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
25289  echo $ECHO_N "(cached) $ECHO_C" >&6
25290else
25291  if test "$cross_compiling" = yes; then
25292  # Depending upon the size, compute the lo and hi bounds.
25293cat >conftest.$ac_ext <<_ACEOF
25294/* confdefs.h.  */
25295_ACEOF
25296cat confdefs.h >>conftest.$ac_ext
25297cat >>conftest.$ac_ext <<_ACEOF
25298/* end confdefs.h.  */
25299$db_includes
25300
25301   typedef unsigned int ac__type_sizeof_;
25302int
25303main ()
25304{
25305static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25306test_array [0] = 0
25307
25308  ;
25309  return 0;
25310}
25311_ACEOF
25312rm -f conftest.$ac_objext
25313if { (ac_try="$ac_compile"
25314case "(($ac_try" in
25315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25316  *) ac_try_echo=$ac_try;;
25317esac
25318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25319  (eval "$ac_compile") 2>conftest.er1
25320  ac_status=$?
25321  grep -v '^ *+' conftest.er1 >conftest.err
25322  rm -f conftest.er1
25323  cat conftest.err >&5
25324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325  (exit $ac_status); } && {
25326	 test -z "$ac_c_werror_flag" ||
25327	 test ! -s conftest.err
25328       } && test -s conftest.$ac_objext; then
25329  ac_lo=0 ac_mid=0
25330  while :; do
25331    cat >conftest.$ac_ext <<_ACEOF
25332/* confdefs.h.  */
25333_ACEOF
25334cat confdefs.h >>conftest.$ac_ext
25335cat >>conftest.$ac_ext <<_ACEOF
25336/* end confdefs.h.  */
25337$db_includes
25338
25339   typedef unsigned int ac__type_sizeof_;
25340int
25341main ()
25342{
25343static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25344test_array [0] = 0
25345
25346  ;
25347  return 0;
25348}
25349_ACEOF
25350rm -f conftest.$ac_objext
25351if { (ac_try="$ac_compile"
25352case "(($ac_try" in
25353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25354  *) ac_try_echo=$ac_try;;
25355esac
25356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25357  (eval "$ac_compile") 2>conftest.er1
25358  ac_status=$?
25359  grep -v '^ *+' conftest.er1 >conftest.err
25360  rm -f conftest.er1
25361  cat conftest.err >&5
25362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363  (exit $ac_status); } && {
25364	 test -z "$ac_c_werror_flag" ||
25365	 test ! -s conftest.err
25366       } && test -s conftest.$ac_objext; then
25367  ac_hi=$ac_mid; break
25368else
25369  echo "$as_me: failed program was:" >&5
25370sed 's/^/| /' conftest.$ac_ext >&5
25371
25372	ac_lo=`expr $ac_mid + 1`
25373			if test $ac_lo -le $ac_mid; then
25374			  ac_lo= ac_hi=
25375			  break
25376			fi
25377			ac_mid=`expr 2 '*' $ac_mid + 1`
25378fi
25379
25380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25381  done
25382else
25383  echo "$as_me: failed program was:" >&5
25384sed 's/^/| /' conftest.$ac_ext >&5
25385
25386	cat >conftest.$ac_ext <<_ACEOF
25387/* confdefs.h.  */
25388_ACEOF
25389cat confdefs.h >>conftest.$ac_ext
25390cat >>conftest.$ac_ext <<_ACEOF
25391/* end confdefs.h.  */
25392$db_includes
25393
25394   typedef unsigned int ac__type_sizeof_;
25395int
25396main ()
25397{
25398static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25399test_array [0] = 0
25400
25401  ;
25402  return 0;
25403}
25404_ACEOF
25405rm -f conftest.$ac_objext
25406if { (ac_try="$ac_compile"
25407case "(($ac_try" in
25408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25409  *) ac_try_echo=$ac_try;;
25410esac
25411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25412  (eval "$ac_compile") 2>conftest.er1
25413  ac_status=$?
25414  grep -v '^ *+' conftest.er1 >conftest.err
25415  rm -f conftest.er1
25416  cat conftest.err >&5
25417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418  (exit $ac_status); } && {
25419	 test -z "$ac_c_werror_flag" ||
25420	 test ! -s conftest.err
25421       } && test -s conftest.$ac_objext; then
25422  ac_hi=-1 ac_mid=-1
25423  while :; do
25424    cat >conftest.$ac_ext <<_ACEOF
25425/* confdefs.h.  */
25426_ACEOF
25427cat confdefs.h >>conftest.$ac_ext
25428cat >>conftest.$ac_ext <<_ACEOF
25429/* end confdefs.h.  */
25430$db_includes
25431
25432   typedef unsigned int ac__type_sizeof_;
25433int
25434main ()
25435{
25436static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25437test_array [0] = 0
25438
25439  ;
25440  return 0;
25441}
25442_ACEOF
25443rm -f conftest.$ac_objext
25444if { (ac_try="$ac_compile"
25445case "(($ac_try" in
25446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25447  *) ac_try_echo=$ac_try;;
25448esac
25449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25450  (eval "$ac_compile") 2>conftest.er1
25451  ac_status=$?
25452  grep -v '^ *+' conftest.er1 >conftest.err
25453  rm -f conftest.er1
25454  cat conftest.err >&5
25455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456  (exit $ac_status); } && {
25457	 test -z "$ac_c_werror_flag" ||
25458	 test ! -s conftest.err
25459       } && test -s conftest.$ac_objext; then
25460  ac_lo=$ac_mid; break
25461else
25462  echo "$as_me: failed program was:" >&5
25463sed 's/^/| /' conftest.$ac_ext >&5
25464
25465	ac_hi=`expr '(' $ac_mid ')' - 1`
25466			if test $ac_mid -le $ac_hi; then
25467			  ac_lo= ac_hi=
25468			  break
25469			fi
25470			ac_mid=`expr 2 '*' $ac_mid`
25471fi
25472
25473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25474  done
25475else
25476  echo "$as_me: failed program was:" >&5
25477sed 's/^/| /' conftest.$ac_ext >&5
25478
25479	ac_lo= ac_hi=
25480fi
25481
25482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25483fi
25484
25485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25486# Binary search between lo and hi bounds.
25487while test "x$ac_lo" != "x$ac_hi"; do
25488  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25489  cat >conftest.$ac_ext <<_ACEOF
25490/* confdefs.h.  */
25491_ACEOF
25492cat confdefs.h >>conftest.$ac_ext
25493cat >>conftest.$ac_ext <<_ACEOF
25494/* end confdefs.h.  */
25495$db_includes
25496
25497   typedef unsigned int ac__type_sizeof_;
25498int
25499main ()
25500{
25501static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25502test_array [0] = 0
25503
25504  ;
25505  return 0;
25506}
25507_ACEOF
25508rm -f conftest.$ac_objext
25509if { (ac_try="$ac_compile"
25510case "(($ac_try" in
25511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25512  *) ac_try_echo=$ac_try;;
25513esac
25514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25515  (eval "$ac_compile") 2>conftest.er1
25516  ac_status=$?
25517  grep -v '^ *+' conftest.er1 >conftest.err
25518  rm -f conftest.er1
25519  cat conftest.err >&5
25520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521  (exit $ac_status); } && {
25522	 test -z "$ac_c_werror_flag" ||
25523	 test ! -s conftest.err
25524       } && test -s conftest.$ac_objext; then
25525  ac_hi=$ac_mid
25526else
25527  echo "$as_me: failed program was:" >&5
25528sed 's/^/| /' conftest.$ac_ext >&5
25529
25530	ac_lo=`expr '(' $ac_mid ')' + 1`
25531fi
25532
25533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25534done
25535case $ac_lo in
25536?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
25537'') if test "$ac_cv_type_unsigned_int" = yes; then
25538     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
25539See \`config.log' for more details." >&5
25540echo "$as_me: error: cannot compute sizeof (unsigned int)
25541See \`config.log' for more details." >&2;}
25542   { (exit 77); exit 77; }; }
25543   else
25544     ac_cv_sizeof_unsigned_int=0
25545   fi ;;
25546esac
25547else
25548  cat >conftest.$ac_ext <<_ACEOF
25549/* confdefs.h.  */
25550_ACEOF
25551cat confdefs.h >>conftest.$ac_ext
25552cat >>conftest.$ac_ext <<_ACEOF
25553/* end confdefs.h.  */
25554$db_includes
25555
25556   typedef unsigned int ac__type_sizeof_;
25557static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25558static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25559#include <stdio.h>
25560#include <stdlib.h>
25561int
25562main ()
25563{
25564
25565  FILE *f = fopen ("conftest.val", "w");
25566  if (! f)
25567    return 1;
25568  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25569    {
25570      long int i = longval ();
25571      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25572	return 1;
25573      fprintf (f, "%ld\n", i);
25574    }
25575  else
25576    {
25577      unsigned long int i = ulongval ();
25578      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25579	return 1;
25580      fprintf (f, "%lu\n", i);
25581    }
25582  return ferror (f) || fclose (f) != 0;
25583
25584  ;
25585  return 0;
25586}
25587_ACEOF
25588rm -f conftest$ac_exeext
25589if { (ac_try="$ac_link"
25590case "(($ac_try" in
25591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25592  *) ac_try_echo=$ac_try;;
25593esac
25594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25595  (eval "$ac_link") 2>&5
25596  ac_status=$?
25597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25599  { (case "(($ac_try" in
25600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25601  *) ac_try_echo=$ac_try;;
25602esac
25603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25604  (eval "$ac_try") 2>&5
25605  ac_status=$?
25606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607  (exit $ac_status); }; }; then
25608  ac_cv_sizeof_unsigned_int=`cat conftest.val`
25609else
25610  echo "$as_me: program exited with status $ac_status" >&5
25611echo "$as_me: failed program was:" >&5
25612sed 's/^/| /' conftest.$ac_ext >&5
25613
25614( exit $ac_status )
25615if test "$ac_cv_type_unsigned_int" = yes; then
25616     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
25617See \`config.log' for more details." >&5
25618echo "$as_me: error: cannot compute sizeof (unsigned int)
25619See \`config.log' for more details." >&2;}
25620   { (exit 77); exit 77; }; }
25621   else
25622     ac_cv_sizeof_unsigned_int=0
25623   fi
25624fi
25625rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25626fi
25627rm -f conftest.val
25628fi
25629{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
25630echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
25631
25632
25633
25634cat >>confdefs.h <<_ACEOF
25635#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
25636_ACEOF
25637
25638
25639{ echo "$as_me:$LINENO: checking for long" >&5
25640echo $ECHO_N "checking for long... $ECHO_C" >&6; }
25641if test "${ac_cv_type_long+set}" = set; then
25642  echo $ECHO_N "(cached) $ECHO_C" >&6
25643else
25644  cat >conftest.$ac_ext <<_ACEOF
25645/* confdefs.h.  */
25646_ACEOF
25647cat confdefs.h >>conftest.$ac_ext
25648cat >>conftest.$ac_ext <<_ACEOF
25649/* end confdefs.h.  */
25650$db_includes
25651
25652typedef long ac__type_new_;
25653int
25654main ()
25655{
25656if ((ac__type_new_ *) 0)
25657  return 0;
25658if (sizeof (ac__type_new_))
25659  return 0;
25660  ;
25661  return 0;
25662}
25663_ACEOF
25664rm -f conftest.$ac_objext
25665if { (ac_try="$ac_compile"
25666case "(($ac_try" in
25667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25668  *) ac_try_echo=$ac_try;;
25669esac
25670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25671  (eval "$ac_compile") 2>conftest.er1
25672  ac_status=$?
25673  grep -v '^ *+' conftest.er1 >conftest.err
25674  rm -f conftest.er1
25675  cat conftest.err >&5
25676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677  (exit $ac_status); } && {
25678	 test -z "$ac_c_werror_flag" ||
25679	 test ! -s conftest.err
25680       } && test -s conftest.$ac_objext; then
25681  ac_cv_type_long=yes
25682else
25683  echo "$as_me: failed program was:" >&5
25684sed 's/^/| /' conftest.$ac_ext >&5
25685
25686	ac_cv_type_long=no
25687fi
25688
25689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25690fi
25691{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
25692echo "${ECHO_T}$ac_cv_type_long" >&6; }
25693
25694# The cast to long int works around a bug in the HP C Compiler
25695# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25696# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25697# This bug is HP SR number 8606223364.
25698{ echo "$as_me:$LINENO: checking size of long" >&5
25699echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
25700if test "${ac_cv_sizeof_long+set}" = set; then
25701  echo $ECHO_N "(cached) $ECHO_C" >&6
25702else
25703  if test "$cross_compiling" = yes; then
25704  # Depending upon the size, compute the lo and hi bounds.
25705cat >conftest.$ac_ext <<_ACEOF
25706/* confdefs.h.  */
25707_ACEOF
25708cat confdefs.h >>conftest.$ac_ext
25709cat >>conftest.$ac_ext <<_ACEOF
25710/* end confdefs.h.  */
25711$db_includes
25712
25713   typedef long ac__type_sizeof_;
25714int
25715main ()
25716{
25717static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25718test_array [0] = 0
25719
25720  ;
25721  return 0;
25722}
25723_ACEOF
25724rm -f conftest.$ac_objext
25725if { (ac_try="$ac_compile"
25726case "(($ac_try" in
25727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25728  *) ac_try_echo=$ac_try;;
25729esac
25730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25731  (eval "$ac_compile") 2>conftest.er1
25732  ac_status=$?
25733  grep -v '^ *+' conftest.er1 >conftest.err
25734  rm -f conftest.er1
25735  cat conftest.err >&5
25736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737  (exit $ac_status); } && {
25738	 test -z "$ac_c_werror_flag" ||
25739	 test ! -s conftest.err
25740       } && test -s conftest.$ac_objext; then
25741  ac_lo=0 ac_mid=0
25742  while :; do
25743    cat >conftest.$ac_ext <<_ACEOF
25744/* confdefs.h.  */
25745_ACEOF
25746cat confdefs.h >>conftest.$ac_ext
25747cat >>conftest.$ac_ext <<_ACEOF
25748/* end confdefs.h.  */
25749$db_includes
25750
25751   typedef long ac__type_sizeof_;
25752int
25753main ()
25754{
25755static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25756test_array [0] = 0
25757
25758  ;
25759  return 0;
25760}
25761_ACEOF
25762rm -f conftest.$ac_objext
25763if { (ac_try="$ac_compile"
25764case "(($ac_try" in
25765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25766  *) ac_try_echo=$ac_try;;
25767esac
25768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25769  (eval "$ac_compile") 2>conftest.er1
25770  ac_status=$?
25771  grep -v '^ *+' conftest.er1 >conftest.err
25772  rm -f conftest.er1
25773  cat conftest.err >&5
25774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775  (exit $ac_status); } && {
25776	 test -z "$ac_c_werror_flag" ||
25777	 test ! -s conftest.err
25778       } && test -s conftest.$ac_objext; then
25779  ac_hi=$ac_mid; break
25780else
25781  echo "$as_me: failed program was:" >&5
25782sed 's/^/| /' conftest.$ac_ext >&5
25783
25784	ac_lo=`expr $ac_mid + 1`
25785			if test $ac_lo -le $ac_mid; then
25786			  ac_lo= ac_hi=
25787			  break
25788			fi
25789			ac_mid=`expr 2 '*' $ac_mid + 1`
25790fi
25791
25792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25793  done
25794else
25795  echo "$as_me: failed program was:" >&5
25796sed 's/^/| /' conftest.$ac_ext >&5
25797
25798	cat >conftest.$ac_ext <<_ACEOF
25799/* confdefs.h.  */
25800_ACEOF
25801cat confdefs.h >>conftest.$ac_ext
25802cat >>conftest.$ac_ext <<_ACEOF
25803/* end confdefs.h.  */
25804$db_includes
25805
25806   typedef long ac__type_sizeof_;
25807int
25808main ()
25809{
25810static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25811test_array [0] = 0
25812
25813  ;
25814  return 0;
25815}
25816_ACEOF
25817rm -f conftest.$ac_objext
25818if { (ac_try="$ac_compile"
25819case "(($ac_try" in
25820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25821  *) ac_try_echo=$ac_try;;
25822esac
25823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25824  (eval "$ac_compile") 2>conftest.er1
25825  ac_status=$?
25826  grep -v '^ *+' conftest.er1 >conftest.err
25827  rm -f conftest.er1
25828  cat conftest.err >&5
25829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830  (exit $ac_status); } && {
25831	 test -z "$ac_c_werror_flag" ||
25832	 test ! -s conftest.err
25833       } && test -s conftest.$ac_objext; then
25834  ac_hi=-1 ac_mid=-1
25835  while :; do
25836    cat >conftest.$ac_ext <<_ACEOF
25837/* confdefs.h.  */
25838_ACEOF
25839cat confdefs.h >>conftest.$ac_ext
25840cat >>conftest.$ac_ext <<_ACEOF
25841/* end confdefs.h.  */
25842$db_includes
25843
25844   typedef long ac__type_sizeof_;
25845int
25846main ()
25847{
25848static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25849test_array [0] = 0
25850
25851  ;
25852  return 0;
25853}
25854_ACEOF
25855rm -f conftest.$ac_objext
25856if { (ac_try="$ac_compile"
25857case "(($ac_try" in
25858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25859  *) ac_try_echo=$ac_try;;
25860esac
25861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25862  (eval "$ac_compile") 2>conftest.er1
25863  ac_status=$?
25864  grep -v '^ *+' conftest.er1 >conftest.err
25865  rm -f conftest.er1
25866  cat conftest.err >&5
25867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868  (exit $ac_status); } && {
25869	 test -z "$ac_c_werror_flag" ||
25870	 test ! -s conftest.err
25871       } && test -s conftest.$ac_objext; then
25872  ac_lo=$ac_mid; break
25873else
25874  echo "$as_me: failed program was:" >&5
25875sed 's/^/| /' conftest.$ac_ext >&5
25876
25877	ac_hi=`expr '(' $ac_mid ')' - 1`
25878			if test $ac_mid -le $ac_hi; then
25879			  ac_lo= ac_hi=
25880			  break
25881			fi
25882			ac_mid=`expr 2 '*' $ac_mid`
25883fi
25884
25885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25886  done
25887else
25888  echo "$as_me: failed program was:" >&5
25889sed 's/^/| /' conftest.$ac_ext >&5
25890
25891	ac_lo= ac_hi=
25892fi
25893
25894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25895fi
25896
25897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25898# Binary search between lo and hi bounds.
25899while test "x$ac_lo" != "x$ac_hi"; do
25900  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25901  cat >conftest.$ac_ext <<_ACEOF
25902/* confdefs.h.  */
25903_ACEOF
25904cat confdefs.h >>conftest.$ac_ext
25905cat >>conftest.$ac_ext <<_ACEOF
25906/* end confdefs.h.  */
25907$db_includes
25908
25909   typedef long ac__type_sizeof_;
25910int
25911main ()
25912{
25913static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25914test_array [0] = 0
25915
25916  ;
25917  return 0;
25918}
25919_ACEOF
25920rm -f conftest.$ac_objext
25921if { (ac_try="$ac_compile"
25922case "(($ac_try" in
25923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25924  *) ac_try_echo=$ac_try;;
25925esac
25926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25927  (eval "$ac_compile") 2>conftest.er1
25928  ac_status=$?
25929  grep -v '^ *+' conftest.er1 >conftest.err
25930  rm -f conftest.er1
25931  cat conftest.err >&5
25932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933  (exit $ac_status); } && {
25934	 test -z "$ac_c_werror_flag" ||
25935	 test ! -s conftest.err
25936       } && test -s conftest.$ac_objext; then
25937  ac_hi=$ac_mid
25938else
25939  echo "$as_me: failed program was:" >&5
25940sed 's/^/| /' conftest.$ac_ext >&5
25941
25942	ac_lo=`expr '(' $ac_mid ')' + 1`
25943fi
25944
25945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25946done
25947case $ac_lo in
25948?*) ac_cv_sizeof_long=$ac_lo;;
25949'') if test "$ac_cv_type_long" = yes; then
25950     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25951See \`config.log' for more details." >&5
25952echo "$as_me: error: cannot compute sizeof (long)
25953See \`config.log' for more details." >&2;}
25954   { (exit 77); exit 77; }; }
25955   else
25956     ac_cv_sizeof_long=0
25957   fi ;;
25958esac
25959else
25960  cat >conftest.$ac_ext <<_ACEOF
25961/* confdefs.h.  */
25962_ACEOF
25963cat confdefs.h >>conftest.$ac_ext
25964cat >>conftest.$ac_ext <<_ACEOF
25965/* end confdefs.h.  */
25966$db_includes
25967
25968   typedef long ac__type_sizeof_;
25969static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25970static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25971#include <stdio.h>
25972#include <stdlib.h>
25973int
25974main ()
25975{
25976
25977  FILE *f = fopen ("conftest.val", "w");
25978  if (! f)
25979    return 1;
25980  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25981    {
25982      long int i = longval ();
25983      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25984	return 1;
25985      fprintf (f, "%ld\n", i);
25986    }
25987  else
25988    {
25989      unsigned long int i = ulongval ();
25990      if (i != ((long int) (sizeof (ac__type_sizeof_))))
25991	return 1;
25992      fprintf (f, "%lu\n", i);
25993    }
25994  return ferror (f) || fclose (f) != 0;
25995
25996  ;
25997  return 0;
25998}
25999_ACEOF
26000rm -f conftest$ac_exeext
26001if { (ac_try="$ac_link"
26002case "(($ac_try" in
26003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26004  *) ac_try_echo=$ac_try;;
26005esac
26006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26007  (eval "$ac_link") 2>&5
26008  ac_status=$?
26009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26011  { (case "(($ac_try" in
26012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26013  *) ac_try_echo=$ac_try;;
26014esac
26015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26016  (eval "$ac_try") 2>&5
26017  ac_status=$?
26018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019  (exit $ac_status); }; }; then
26020  ac_cv_sizeof_long=`cat conftest.val`
26021else
26022  echo "$as_me: program exited with status $ac_status" >&5
26023echo "$as_me: failed program was:" >&5
26024sed 's/^/| /' conftest.$ac_ext >&5
26025
26026( exit $ac_status )
26027if test "$ac_cv_type_long" = yes; then
26028     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26029See \`config.log' for more details." >&5
26030echo "$as_me: error: cannot compute sizeof (long)
26031See \`config.log' for more details." >&2;}
26032   { (exit 77); exit 77; }; }
26033   else
26034     ac_cv_sizeof_long=0
26035   fi
26036fi
26037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26038fi
26039rm -f conftest.val
26040fi
26041{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26042echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
26043
26044
26045
26046cat >>confdefs.h <<_ACEOF
26047#define SIZEOF_LONG $ac_cv_sizeof_long
26048_ACEOF
26049
26050
26051{ echo "$as_me:$LINENO: checking for unsigned long" >&5
26052echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
26053if test "${ac_cv_type_unsigned_long+set}" = set; then
26054  echo $ECHO_N "(cached) $ECHO_C" >&6
26055else
26056  cat >conftest.$ac_ext <<_ACEOF
26057/* confdefs.h.  */
26058_ACEOF
26059cat confdefs.h >>conftest.$ac_ext
26060cat >>conftest.$ac_ext <<_ACEOF
26061/* end confdefs.h.  */
26062$db_includes
26063
26064typedef unsigned long ac__type_new_;
26065int
26066main ()
26067{
26068if ((ac__type_new_ *) 0)
26069  return 0;
26070if (sizeof (ac__type_new_))
26071  return 0;
26072  ;
26073  return 0;
26074}
26075_ACEOF
26076rm -f conftest.$ac_objext
26077if { (ac_try="$ac_compile"
26078case "(($ac_try" in
26079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26080  *) ac_try_echo=$ac_try;;
26081esac
26082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26083  (eval "$ac_compile") 2>conftest.er1
26084  ac_status=$?
26085  grep -v '^ *+' conftest.er1 >conftest.err
26086  rm -f conftest.er1
26087  cat conftest.err >&5
26088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089  (exit $ac_status); } && {
26090	 test -z "$ac_c_werror_flag" ||
26091	 test ! -s conftest.err
26092       } && test -s conftest.$ac_objext; then
26093  ac_cv_type_unsigned_long=yes
26094else
26095  echo "$as_me: failed program was:" >&5
26096sed 's/^/| /' conftest.$ac_ext >&5
26097
26098	ac_cv_type_unsigned_long=no
26099fi
26100
26101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26102fi
26103{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
26104echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
26105
26106# The cast to long int works around a bug in the HP C Compiler
26107# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26108# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26109# This bug is HP SR number 8606223364.
26110{ echo "$as_me:$LINENO: checking size of unsigned long" >&5
26111echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
26112if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
26113  echo $ECHO_N "(cached) $ECHO_C" >&6
26114else
26115  if test "$cross_compiling" = yes; then
26116  # Depending upon the size, compute the lo and hi bounds.
26117cat >conftest.$ac_ext <<_ACEOF
26118/* confdefs.h.  */
26119_ACEOF
26120cat confdefs.h >>conftest.$ac_ext
26121cat >>conftest.$ac_ext <<_ACEOF
26122/* end confdefs.h.  */
26123$db_includes
26124
26125   typedef unsigned long ac__type_sizeof_;
26126int
26127main ()
26128{
26129static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26130test_array [0] = 0
26131
26132  ;
26133  return 0;
26134}
26135_ACEOF
26136rm -f conftest.$ac_objext
26137if { (ac_try="$ac_compile"
26138case "(($ac_try" in
26139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26140  *) ac_try_echo=$ac_try;;
26141esac
26142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26143  (eval "$ac_compile") 2>conftest.er1
26144  ac_status=$?
26145  grep -v '^ *+' conftest.er1 >conftest.err
26146  rm -f conftest.er1
26147  cat conftest.err >&5
26148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149  (exit $ac_status); } && {
26150	 test -z "$ac_c_werror_flag" ||
26151	 test ! -s conftest.err
26152       } && test -s conftest.$ac_objext; then
26153  ac_lo=0 ac_mid=0
26154  while :; do
26155    cat >conftest.$ac_ext <<_ACEOF
26156/* confdefs.h.  */
26157_ACEOF
26158cat confdefs.h >>conftest.$ac_ext
26159cat >>conftest.$ac_ext <<_ACEOF
26160/* end confdefs.h.  */
26161$db_includes
26162
26163   typedef unsigned long ac__type_sizeof_;
26164int
26165main ()
26166{
26167static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26168test_array [0] = 0
26169
26170  ;
26171  return 0;
26172}
26173_ACEOF
26174rm -f conftest.$ac_objext
26175if { (ac_try="$ac_compile"
26176case "(($ac_try" in
26177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26178  *) ac_try_echo=$ac_try;;
26179esac
26180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26181  (eval "$ac_compile") 2>conftest.er1
26182  ac_status=$?
26183  grep -v '^ *+' conftest.er1 >conftest.err
26184  rm -f conftest.er1
26185  cat conftest.err >&5
26186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187  (exit $ac_status); } && {
26188	 test -z "$ac_c_werror_flag" ||
26189	 test ! -s conftest.err
26190       } && test -s conftest.$ac_objext; then
26191  ac_hi=$ac_mid; break
26192else
26193  echo "$as_me: failed program was:" >&5
26194sed 's/^/| /' conftest.$ac_ext >&5
26195
26196	ac_lo=`expr $ac_mid + 1`
26197			if test $ac_lo -le $ac_mid; then
26198			  ac_lo= ac_hi=
26199			  break
26200			fi
26201			ac_mid=`expr 2 '*' $ac_mid + 1`
26202fi
26203
26204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26205  done
26206else
26207  echo "$as_me: failed program was:" >&5
26208sed 's/^/| /' conftest.$ac_ext >&5
26209
26210	cat >conftest.$ac_ext <<_ACEOF
26211/* confdefs.h.  */
26212_ACEOF
26213cat confdefs.h >>conftest.$ac_ext
26214cat >>conftest.$ac_ext <<_ACEOF
26215/* end confdefs.h.  */
26216$db_includes
26217
26218   typedef unsigned long ac__type_sizeof_;
26219int
26220main ()
26221{
26222static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26223test_array [0] = 0
26224
26225  ;
26226  return 0;
26227}
26228_ACEOF
26229rm -f conftest.$ac_objext
26230if { (ac_try="$ac_compile"
26231case "(($ac_try" in
26232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26233  *) ac_try_echo=$ac_try;;
26234esac
26235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26236  (eval "$ac_compile") 2>conftest.er1
26237  ac_status=$?
26238  grep -v '^ *+' conftest.er1 >conftest.err
26239  rm -f conftest.er1
26240  cat conftest.err >&5
26241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242  (exit $ac_status); } && {
26243	 test -z "$ac_c_werror_flag" ||
26244	 test ! -s conftest.err
26245       } && test -s conftest.$ac_objext; then
26246  ac_hi=-1 ac_mid=-1
26247  while :; do
26248    cat >conftest.$ac_ext <<_ACEOF
26249/* confdefs.h.  */
26250_ACEOF
26251cat confdefs.h >>conftest.$ac_ext
26252cat >>conftest.$ac_ext <<_ACEOF
26253/* end confdefs.h.  */
26254$db_includes
26255
26256   typedef unsigned long ac__type_sizeof_;
26257int
26258main ()
26259{
26260static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26261test_array [0] = 0
26262
26263  ;
26264  return 0;
26265}
26266_ACEOF
26267rm -f conftest.$ac_objext
26268if { (ac_try="$ac_compile"
26269case "(($ac_try" in
26270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26271  *) ac_try_echo=$ac_try;;
26272esac
26273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26274  (eval "$ac_compile") 2>conftest.er1
26275  ac_status=$?
26276  grep -v '^ *+' conftest.er1 >conftest.err
26277  rm -f conftest.er1
26278  cat conftest.err >&5
26279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26280  (exit $ac_status); } && {
26281	 test -z "$ac_c_werror_flag" ||
26282	 test ! -s conftest.err
26283       } && test -s conftest.$ac_objext; then
26284  ac_lo=$ac_mid; break
26285else
26286  echo "$as_me: failed program was:" >&5
26287sed 's/^/| /' conftest.$ac_ext >&5
26288
26289	ac_hi=`expr '(' $ac_mid ')' - 1`
26290			if test $ac_mid -le $ac_hi; then
26291			  ac_lo= ac_hi=
26292			  break
26293			fi
26294			ac_mid=`expr 2 '*' $ac_mid`
26295fi
26296
26297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26298  done
26299else
26300  echo "$as_me: failed program was:" >&5
26301sed 's/^/| /' conftest.$ac_ext >&5
26302
26303	ac_lo= ac_hi=
26304fi
26305
26306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26307fi
26308
26309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26310# Binary search between lo and hi bounds.
26311while test "x$ac_lo" != "x$ac_hi"; do
26312  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26313  cat >conftest.$ac_ext <<_ACEOF
26314/* confdefs.h.  */
26315_ACEOF
26316cat confdefs.h >>conftest.$ac_ext
26317cat >>conftest.$ac_ext <<_ACEOF
26318/* end confdefs.h.  */
26319$db_includes
26320
26321   typedef unsigned long ac__type_sizeof_;
26322int
26323main ()
26324{
26325static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26326test_array [0] = 0
26327
26328  ;
26329  return 0;
26330}
26331_ACEOF
26332rm -f conftest.$ac_objext
26333if { (ac_try="$ac_compile"
26334case "(($ac_try" in
26335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26336  *) ac_try_echo=$ac_try;;
26337esac
26338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26339  (eval "$ac_compile") 2>conftest.er1
26340  ac_status=$?
26341  grep -v '^ *+' conftest.er1 >conftest.err
26342  rm -f conftest.er1
26343  cat conftest.err >&5
26344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345  (exit $ac_status); } && {
26346	 test -z "$ac_c_werror_flag" ||
26347	 test ! -s conftest.err
26348       } && test -s conftest.$ac_objext; then
26349  ac_hi=$ac_mid
26350else
26351  echo "$as_me: failed program was:" >&5
26352sed 's/^/| /' conftest.$ac_ext >&5
26353
26354	ac_lo=`expr '(' $ac_mid ')' + 1`
26355fi
26356
26357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26358done
26359case $ac_lo in
26360?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
26361'') if test "$ac_cv_type_unsigned_long" = yes; then
26362     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
26363See \`config.log' for more details." >&5
26364echo "$as_me: error: cannot compute sizeof (unsigned long)
26365See \`config.log' for more details." >&2;}
26366   { (exit 77); exit 77; }; }
26367   else
26368     ac_cv_sizeof_unsigned_long=0
26369   fi ;;
26370esac
26371else
26372  cat >conftest.$ac_ext <<_ACEOF
26373/* confdefs.h.  */
26374_ACEOF
26375cat confdefs.h >>conftest.$ac_ext
26376cat >>conftest.$ac_ext <<_ACEOF
26377/* end confdefs.h.  */
26378$db_includes
26379
26380   typedef unsigned long ac__type_sizeof_;
26381static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26382static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26383#include <stdio.h>
26384#include <stdlib.h>
26385int
26386main ()
26387{
26388
26389  FILE *f = fopen ("conftest.val", "w");
26390  if (! f)
26391    return 1;
26392  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26393    {
26394      long int i = longval ();
26395      if (i != ((long int) (sizeof (ac__type_sizeof_))))
26396	return 1;
26397      fprintf (f, "%ld\n", i);
26398    }
26399  else
26400    {
26401      unsigned long int i = ulongval ();
26402      if (i != ((long int) (sizeof (ac__type_sizeof_))))
26403	return 1;
26404      fprintf (f, "%lu\n", i);
26405    }
26406  return ferror (f) || fclose (f) != 0;
26407
26408  ;
26409  return 0;
26410}
26411_ACEOF
26412rm -f conftest$ac_exeext
26413if { (ac_try="$ac_link"
26414case "(($ac_try" in
26415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26416  *) ac_try_echo=$ac_try;;
26417esac
26418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26419  (eval "$ac_link") 2>&5
26420  ac_status=$?
26421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26422  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26423  { (case "(($ac_try" in
26424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26425  *) ac_try_echo=$ac_try;;
26426esac
26427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26428  (eval "$ac_try") 2>&5
26429  ac_status=$?
26430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431  (exit $ac_status); }; }; then
26432  ac_cv_sizeof_unsigned_long=`cat conftest.val`
26433else
26434  echo "$as_me: program exited with status $ac_status" >&5
26435echo "$as_me: failed program was:" >&5
26436sed 's/^/| /' conftest.$ac_ext >&5
26437
26438( exit $ac_status )
26439if test "$ac_cv_type_unsigned_long" = yes; then
26440     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
26441See \`config.log' for more details." >&5
26442echo "$as_me: error: cannot compute sizeof (unsigned long)
26443See \`config.log' for more details." >&2;}
26444   { (exit 77); exit 77; }; }
26445   else
26446     ac_cv_sizeof_unsigned_long=0
26447   fi
26448fi
26449rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26450fi
26451rm -f conftest.val
26452fi
26453{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
26454echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
26455
26456
26457
26458cat >>confdefs.h <<_ACEOF
26459#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
26460_ACEOF
26461
26462
26463{ echo "$as_me:$LINENO: checking for long long" >&5
26464echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
26465if test "${ac_cv_type_long_long+set}" = set; then
26466  echo $ECHO_N "(cached) $ECHO_C" >&6
26467else
26468  cat >conftest.$ac_ext <<_ACEOF
26469/* confdefs.h.  */
26470_ACEOF
26471cat confdefs.h >>conftest.$ac_ext
26472cat >>conftest.$ac_ext <<_ACEOF
26473/* end confdefs.h.  */
26474$db_includes
26475
26476typedef long long ac__type_new_;
26477int
26478main ()
26479{
26480if ((ac__type_new_ *) 0)
26481  return 0;
26482if (sizeof (ac__type_new_))
26483  return 0;
26484  ;
26485  return 0;
26486}
26487_ACEOF
26488rm -f conftest.$ac_objext
26489if { (ac_try="$ac_compile"
26490case "(($ac_try" in
26491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26492  *) ac_try_echo=$ac_try;;
26493esac
26494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26495  (eval "$ac_compile") 2>conftest.er1
26496  ac_status=$?
26497  grep -v '^ *+' conftest.er1 >conftest.err
26498  rm -f conftest.er1
26499  cat conftest.err >&5
26500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501  (exit $ac_status); } && {
26502	 test -z "$ac_c_werror_flag" ||
26503	 test ! -s conftest.err
26504       } && test -s conftest.$ac_objext; then
26505  ac_cv_type_long_long=yes
26506else
26507  echo "$as_me: failed program was:" >&5
26508sed 's/^/| /' conftest.$ac_ext >&5
26509
26510	ac_cv_type_long_long=no
26511fi
26512
26513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26514fi
26515{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
26516echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
26517
26518# The cast to long int works around a bug in the HP C Compiler
26519# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26520# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26521# This bug is HP SR number 8606223364.
26522{ echo "$as_me:$LINENO: checking size of long long" >&5
26523echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
26524if test "${ac_cv_sizeof_long_long+set}" = set; then
26525  echo $ECHO_N "(cached) $ECHO_C" >&6
26526else
26527  if test "$cross_compiling" = yes; then
26528  # Depending upon the size, compute the lo and hi bounds.
26529cat >conftest.$ac_ext <<_ACEOF
26530/* confdefs.h.  */
26531_ACEOF
26532cat confdefs.h >>conftest.$ac_ext
26533cat >>conftest.$ac_ext <<_ACEOF
26534/* end confdefs.h.  */
26535$db_includes
26536
26537   typedef long long ac__type_sizeof_;
26538int
26539main ()
26540{
26541static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26542test_array [0] = 0
26543
26544  ;
26545  return 0;
26546}
26547_ACEOF
26548rm -f conftest.$ac_objext
26549if { (ac_try="$ac_compile"
26550case "(($ac_try" in
26551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26552  *) ac_try_echo=$ac_try;;
26553esac
26554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26555  (eval "$ac_compile") 2>conftest.er1
26556  ac_status=$?
26557  grep -v '^ *+' conftest.er1 >conftest.err
26558  rm -f conftest.er1
26559  cat conftest.err >&5
26560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561  (exit $ac_status); } && {
26562	 test -z "$ac_c_werror_flag" ||
26563	 test ! -s conftest.err
26564       } && test -s conftest.$ac_objext; then
26565  ac_lo=0 ac_mid=0
26566  while :; do
26567    cat >conftest.$ac_ext <<_ACEOF
26568/* confdefs.h.  */
26569_ACEOF
26570cat confdefs.h >>conftest.$ac_ext
26571cat >>conftest.$ac_ext <<_ACEOF
26572/* end confdefs.h.  */
26573$db_includes
26574
26575   typedef long long ac__type_sizeof_;
26576int
26577main ()
26578{
26579static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26580test_array [0] = 0
26581
26582  ;
26583  return 0;
26584}
26585_ACEOF
26586rm -f conftest.$ac_objext
26587if { (ac_try="$ac_compile"
26588case "(($ac_try" in
26589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26590  *) ac_try_echo=$ac_try;;
26591esac
26592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26593  (eval "$ac_compile") 2>conftest.er1
26594  ac_status=$?
26595  grep -v '^ *+' conftest.er1 >conftest.err
26596  rm -f conftest.er1
26597  cat conftest.err >&5
26598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26599  (exit $ac_status); } && {
26600	 test -z "$ac_c_werror_flag" ||
26601	 test ! -s conftest.err
26602       } && test -s conftest.$ac_objext; then
26603  ac_hi=$ac_mid; break
26604else
26605  echo "$as_me: failed program was:" >&5
26606sed 's/^/| /' conftest.$ac_ext >&5
26607
26608	ac_lo=`expr $ac_mid + 1`
26609			if test $ac_lo -le $ac_mid; then
26610			  ac_lo= ac_hi=
26611			  break
26612			fi
26613			ac_mid=`expr 2 '*' $ac_mid + 1`
26614fi
26615
26616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26617  done
26618else
26619  echo "$as_me: failed program was:" >&5
26620sed 's/^/| /' conftest.$ac_ext >&5
26621
26622	cat >conftest.$ac_ext <<_ACEOF
26623/* confdefs.h.  */
26624_ACEOF
26625cat confdefs.h >>conftest.$ac_ext
26626cat >>conftest.$ac_ext <<_ACEOF
26627/* end confdefs.h.  */
26628$db_includes
26629
26630   typedef long long ac__type_sizeof_;
26631int
26632main ()
26633{
26634static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26635test_array [0] = 0
26636
26637  ;
26638  return 0;
26639}
26640_ACEOF
26641rm -f conftest.$ac_objext
26642if { (ac_try="$ac_compile"
26643case "(($ac_try" in
26644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26645  *) ac_try_echo=$ac_try;;
26646esac
26647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26648  (eval "$ac_compile") 2>conftest.er1
26649  ac_status=$?
26650  grep -v '^ *+' conftest.er1 >conftest.err
26651  rm -f conftest.er1
26652  cat conftest.err >&5
26653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654  (exit $ac_status); } && {
26655	 test -z "$ac_c_werror_flag" ||
26656	 test ! -s conftest.err
26657       } && test -s conftest.$ac_objext; then
26658  ac_hi=-1 ac_mid=-1
26659  while :; do
26660    cat >conftest.$ac_ext <<_ACEOF
26661/* confdefs.h.  */
26662_ACEOF
26663cat confdefs.h >>conftest.$ac_ext
26664cat >>conftest.$ac_ext <<_ACEOF
26665/* end confdefs.h.  */
26666$db_includes
26667
26668   typedef long long ac__type_sizeof_;
26669int
26670main ()
26671{
26672static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26673test_array [0] = 0
26674
26675  ;
26676  return 0;
26677}
26678_ACEOF
26679rm -f conftest.$ac_objext
26680if { (ac_try="$ac_compile"
26681case "(($ac_try" in
26682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26683  *) ac_try_echo=$ac_try;;
26684esac
26685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26686  (eval "$ac_compile") 2>conftest.er1
26687  ac_status=$?
26688  grep -v '^ *+' conftest.er1 >conftest.err
26689  rm -f conftest.er1
26690  cat conftest.err >&5
26691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692  (exit $ac_status); } && {
26693	 test -z "$ac_c_werror_flag" ||
26694	 test ! -s conftest.err
26695       } && test -s conftest.$ac_objext; then
26696  ac_lo=$ac_mid; break
26697else
26698  echo "$as_me: failed program was:" >&5
26699sed 's/^/| /' conftest.$ac_ext >&5
26700
26701	ac_hi=`expr '(' $ac_mid ')' - 1`
26702			if test $ac_mid -le $ac_hi; then
26703			  ac_lo= ac_hi=
26704			  break
26705			fi
26706			ac_mid=`expr 2 '*' $ac_mid`
26707fi
26708
26709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26710  done
26711else
26712  echo "$as_me: failed program was:" >&5
26713sed 's/^/| /' conftest.$ac_ext >&5
26714
26715	ac_lo= ac_hi=
26716fi
26717
26718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26719fi
26720
26721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26722# Binary search between lo and hi bounds.
26723while test "x$ac_lo" != "x$ac_hi"; do
26724  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26725  cat >conftest.$ac_ext <<_ACEOF
26726/* confdefs.h.  */
26727_ACEOF
26728cat confdefs.h >>conftest.$ac_ext
26729cat >>conftest.$ac_ext <<_ACEOF
26730/* end confdefs.h.  */
26731$db_includes
26732
26733   typedef long long ac__type_sizeof_;
26734int
26735main ()
26736{
26737static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26738test_array [0] = 0
26739
26740  ;
26741  return 0;
26742}
26743_ACEOF
26744rm -f conftest.$ac_objext
26745if { (ac_try="$ac_compile"
26746case "(($ac_try" in
26747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26748  *) ac_try_echo=$ac_try;;
26749esac
26750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26751  (eval "$ac_compile") 2>conftest.er1
26752  ac_status=$?
26753  grep -v '^ *+' conftest.er1 >conftest.err
26754  rm -f conftest.er1
26755  cat conftest.err >&5
26756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757  (exit $ac_status); } && {
26758	 test -z "$ac_c_werror_flag" ||
26759	 test ! -s conftest.err
26760       } && test -s conftest.$ac_objext; then
26761  ac_hi=$ac_mid
26762else
26763  echo "$as_me: failed program was:" >&5
26764sed 's/^/| /' conftest.$ac_ext >&5
26765
26766	ac_lo=`expr '(' $ac_mid ')' + 1`
26767fi
26768
26769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26770done
26771case $ac_lo in
26772?*) ac_cv_sizeof_long_long=$ac_lo;;
26773'') if test "$ac_cv_type_long_long" = yes; then
26774     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
26775See \`config.log' for more details." >&5
26776echo "$as_me: error: cannot compute sizeof (long long)
26777See \`config.log' for more details." >&2;}
26778   { (exit 77); exit 77; }; }
26779   else
26780     ac_cv_sizeof_long_long=0
26781   fi ;;
26782esac
26783else
26784  cat >conftest.$ac_ext <<_ACEOF
26785/* confdefs.h.  */
26786_ACEOF
26787cat confdefs.h >>conftest.$ac_ext
26788cat >>conftest.$ac_ext <<_ACEOF
26789/* end confdefs.h.  */
26790$db_includes
26791
26792   typedef long long ac__type_sizeof_;
26793static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26794static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26795#include <stdio.h>
26796#include <stdlib.h>
26797int
26798main ()
26799{
26800
26801  FILE *f = fopen ("conftest.val", "w");
26802  if (! f)
26803    return 1;
26804  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26805    {
26806      long int i = longval ();
26807      if (i != ((long int) (sizeof (ac__type_sizeof_))))
26808	return 1;
26809      fprintf (f, "%ld\n", i);
26810    }
26811  else
26812    {
26813      unsigned long int i = ulongval ();
26814      if (i != ((long int) (sizeof (ac__type_sizeof_))))
26815	return 1;
26816      fprintf (f, "%lu\n", i);
26817    }
26818  return ferror (f) || fclose (f) != 0;
26819
26820  ;
26821  return 0;
26822}
26823_ACEOF
26824rm -f conftest$ac_exeext
26825if { (ac_try="$ac_link"
26826case "(($ac_try" in
26827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26828  *) ac_try_echo=$ac_try;;
26829esac
26830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26831  (eval "$ac_link") 2>&5
26832  ac_status=$?
26833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26834  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26835  { (case "(($ac_try" in
26836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26837  *) ac_try_echo=$ac_try;;
26838esac
26839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26840  (eval "$ac_try") 2>&5
26841  ac_status=$?
26842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843  (exit $ac_status); }; }; then
26844  ac_cv_sizeof_long_long=`cat conftest.val`
26845else
26846  echo "$as_me: program exited with status $ac_status" >&5
26847echo "$as_me: failed program was:" >&5
26848sed 's/^/| /' conftest.$ac_ext >&5
26849
26850( exit $ac_status )
26851if test "$ac_cv_type_long_long" = yes; then
26852     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
26853See \`config.log' for more details." >&5
26854echo "$as_me: error: cannot compute sizeof (long long)
26855See \`config.log' for more details." >&2;}
26856   { (exit 77); exit 77; }; }
26857   else
26858     ac_cv_sizeof_long_long=0
26859   fi
26860fi
26861rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26862fi
26863rm -f conftest.val
26864fi
26865{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
26866echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
26867
26868
26869
26870cat >>confdefs.h <<_ACEOF
26871#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
26872_ACEOF
26873
26874
26875{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
26876echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
26877if test "${ac_cv_type_unsigned_long_long+set}" = set; then
26878  echo $ECHO_N "(cached) $ECHO_C" >&6
26879else
26880  cat >conftest.$ac_ext <<_ACEOF
26881/* confdefs.h.  */
26882_ACEOF
26883cat confdefs.h >>conftest.$ac_ext
26884cat >>conftest.$ac_ext <<_ACEOF
26885/* end confdefs.h.  */
26886$db_includes
26887
26888typedef unsigned long long ac__type_new_;
26889int
26890main ()
26891{
26892if ((ac__type_new_ *) 0)
26893  return 0;
26894if (sizeof (ac__type_new_))
26895  return 0;
26896  ;
26897  return 0;
26898}
26899_ACEOF
26900rm -f conftest.$ac_objext
26901if { (ac_try="$ac_compile"
26902case "(($ac_try" in
26903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26904  *) ac_try_echo=$ac_try;;
26905esac
26906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26907  (eval "$ac_compile") 2>conftest.er1
26908  ac_status=$?
26909  grep -v '^ *+' conftest.er1 >conftest.err
26910  rm -f conftest.er1
26911  cat conftest.err >&5
26912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913  (exit $ac_status); } && {
26914	 test -z "$ac_c_werror_flag" ||
26915	 test ! -s conftest.err
26916       } && test -s conftest.$ac_objext; then
26917  ac_cv_type_unsigned_long_long=yes
26918else
26919  echo "$as_me: failed program was:" >&5
26920sed 's/^/| /' conftest.$ac_ext >&5
26921
26922	ac_cv_type_unsigned_long_long=no
26923fi
26924
26925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26926fi
26927{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
26928echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
26929
26930# The cast to long int works around a bug in the HP C Compiler
26931# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26932# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26933# This bug is HP SR number 8606223364.
26934{ echo "$as_me:$LINENO: checking size of unsigned long long" >&5
26935echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
26936if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
26937  echo $ECHO_N "(cached) $ECHO_C" >&6
26938else
26939  if test "$cross_compiling" = yes; then
26940  # Depending upon the size, compute the lo and hi bounds.
26941cat >conftest.$ac_ext <<_ACEOF
26942/* confdefs.h.  */
26943_ACEOF
26944cat confdefs.h >>conftest.$ac_ext
26945cat >>conftest.$ac_ext <<_ACEOF
26946/* end confdefs.h.  */
26947$db_includes
26948
26949   typedef unsigned long long ac__type_sizeof_;
26950int
26951main ()
26952{
26953static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26954test_array [0] = 0
26955
26956  ;
26957  return 0;
26958}
26959_ACEOF
26960rm -f conftest.$ac_objext
26961if { (ac_try="$ac_compile"
26962case "(($ac_try" in
26963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26964  *) ac_try_echo=$ac_try;;
26965esac
26966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26967  (eval "$ac_compile") 2>conftest.er1
26968  ac_status=$?
26969  grep -v '^ *+' conftest.er1 >conftest.err
26970  rm -f conftest.er1
26971  cat conftest.err >&5
26972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973  (exit $ac_status); } && {
26974	 test -z "$ac_c_werror_flag" ||
26975	 test ! -s conftest.err
26976       } && test -s conftest.$ac_objext; then
26977  ac_lo=0 ac_mid=0
26978  while :; do
26979    cat >conftest.$ac_ext <<_ACEOF
26980/* confdefs.h.  */
26981_ACEOF
26982cat confdefs.h >>conftest.$ac_ext
26983cat >>conftest.$ac_ext <<_ACEOF
26984/* end confdefs.h.  */
26985$db_includes
26986
26987   typedef unsigned long long ac__type_sizeof_;
26988int
26989main ()
26990{
26991static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26992test_array [0] = 0
26993
26994  ;
26995  return 0;
26996}
26997_ACEOF
26998rm -f conftest.$ac_objext
26999if { (ac_try="$ac_compile"
27000case "(($ac_try" in
27001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27002  *) ac_try_echo=$ac_try;;
27003esac
27004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27005  (eval "$ac_compile") 2>conftest.er1
27006  ac_status=$?
27007  grep -v '^ *+' conftest.er1 >conftest.err
27008  rm -f conftest.er1
27009  cat conftest.err >&5
27010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27011  (exit $ac_status); } && {
27012	 test -z "$ac_c_werror_flag" ||
27013	 test ! -s conftest.err
27014       } && test -s conftest.$ac_objext; then
27015  ac_hi=$ac_mid; break
27016else
27017  echo "$as_me: failed program was:" >&5
27018sed 's/^/| /' conftest.$ac_ext >&5
27019
27020	ac_lo=`expr $ac_mid + 1`
27021			if test $ac_lo -le $ac_mid; then
27022			  ac_lo= ac_hi=
27023			  break
27024			fi
27025			ac_mid=`expr 2 '*' $ac_mid + 1`
27026fi
27027
27028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27029  done
27030else
27031  echo "$as_me: failed program was:" >&5
27032sed 's/^/| /' conftest.$ac_ext >&5
27033
27034	cat >conftest.$ac_ext <<_ACEOF
27035/* confdefs.h.  */
27036_ACEOF
27037cat confdefs.h >>conftest.$ac_ext
27038cat >>conftest.$ac_ext <<_ACEOF
27039/* end confdefs.h.  */
27040$db_includes
27041
27042   typedef unsigned long long ac__type_sizeof_;
27043int
27044main ()
27045{
27046static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27047test_array [0] = 0
27048
27049  ;
27050  return 0;
27051}
27052_ACEOF
27053rm -f conftest.$ac_objext
27054if { (ac_try="$ac_compile"
27055case "(($ac_try" in
27056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27057  *) ac_try_echo=$ac_try;;
27058esac
27059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27060  (eval "$ac_compile") 2>conftest.er1
27061  ac_status=$?
27062  grep -v '^ *+' conftest.er1 >conftest.err
27063  rm -f conftest.er1
27064  cat conftest.err >&5
27065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066  (exit $ac_status); } && {
27067	 test -z "$ac_c_werror_flag" ||
27068	 test ! -s conftest.err
27069       } && test -s conftest.$ac_objext; then
27070  ac_hi=-1 ac_mid=-1
27071  while :; do
27072    cat >conftest.$ac_ext <<_ACEOF
27073/* confdefs.h.  */
27074_ACEOF
27075cat confdefs.h >>conftest.$ac_ext
27076cat >>conftest.$ac_ext <<_ACEOF
27077/* end confdefs.h.  */
27078$db_includes
27079
27080   typedef unsigned long long ac__type_sizeof_;
27081int
27082main ()
27083{
27084static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27085test_array [0] = 0
27086
27087  ;
27088  return 0;
27089}
27090_ACEOF
27091rm -f conftest.$ac_objext
27092if { (ac_try="$ac_compile"
27093case "(($ac_try" in
27094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27095  *) ac_try_echo=$ac_try;;
27096esac
27097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27098  (eval "$ac_compile") 2>conftest.er1
27099  ac_status=$?
27100  grep -v '^ *+' conftest.er1 >conftest.err
27101  rm -f conftest.er1
27102  cat conftest.err >&5
27103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104  (exit $ac_status); } && {
27105	 test -z "$ac_c_werror_flag" ||
27106	 test ! -s conftest.err
27107       } && test -s conftest.$ac_objext; then
27108  ac_lo=$ac_mid; break
27109else
27110  echo "$as_me: failed program was:" >&5
27111sed 's/^/| /' conftest.$ac_ext >&5
27112
27113	ac_hi=`expr '(' $ac_mid ')' - 1`
27114			if test $ac_mid -le $ac_hi; then
27115			  ac_lo= ac_hi=
27116			  break
27117			fi
27118			ac_mid=`expr 2 '*' $ac_mid`
27119fi
27120
27121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27122  done
27123else
27124  echo "$as_me: failed program was:" >&5
27125sed 's/^/| /' conftest.$ac_ext >&5
27126
27127	ac_lo= ac_hi=
27128fi
27129
27130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27131fi
27132
27133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27134# Binary search between lo and hi bounds.
27135while test "x$ac_lo" != "x$ac_hi"; do
27136  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27137  cat >conftest.$ac_ext <<_ACEOF
27138/* confdefs.h.  */
27139_ACEOF
27140cat confdefs.h >>conftest.$ac_ext
27141cat >>conftest.$ac_ext <<_ACEOF
27142/* end confdefs.h.  */
27143$db_includes
27144
27145   typedef unsigned long long ac__type_sizeof_;
27146int
27147main ()
27148{
27149static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27150test_array [0] = 0
27151
27152  ;
27153  return 0;
27154}
27155_ACEOF
27156rm -f conftest.$ac_objext
27157if { (ac_try="$ac_compile"
27158case "(($ac_try" in
27159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27160  *) ac_try_echo=$ac_try;;
27161esac
27162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27163  (eval "$ac_compile") 2>conftest.er1
27164  ac_status=$?
27165  grep -v '^ *+' conftest.er1 >conftest.err
27166  rm -f conftest.er1
27167  cat conftest.err >&5
27168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169  (exit $ac_status); } && {
27170	 test -z "$ac_c_werror_flag" ||
27171	 test ! -s conftest.err
27172       } && test -s conftest.$ac_objext; then
27173  ac_hi=$ac_mid
27174else
27175  echo "$as_me: failed program was:" >&5
27176sed 's/^/| /' conftest.$ac_ext >&5
27177
27178	ac_lo=`expr '(' $ac_mid ')' + 1`
27179fi
27180
27181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27182done
27183case $ac_lo in
27184?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
27185'') if test "$ac_cv_type_unsigned_long_long" = yes; then
27186     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
27187See \`config.log' for more details." >&5
27188echo "$as_me: error: cannot compute sizeof (unsigned long long)
27189See \`config.log' for more details." >&2;}
27190   { (exit 77); exit 77; }; }
27191   else
27192     ac_cv_sizeof_unsigned_long_long=0
27193   fi ;;
27194esac
27195else
27196  cat >conftest.$ac_ext <<_ACEOF
27197/* confdefs.h.  */
27198_ACEOF
27199cat confdefs.h >>conftest.$ac_ext
27200cat >>conftest.$ac_ext <<_ACEOF
27201/* end confdefs.h.  */
27202$db_includes
27203
27204   typedef unsigned long long ac__type_sizeof_;
27205static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27206static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27207#include <stdio.h>
27208#include <stdlib.h>
27209int
27210main ()
27211{
27212
27213  FILE *f = fopen ("conftest.val", "w");
27214  if (! f)
27215    return 1;
27216  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27217    {
27218      long int i = longval ();
27219      if (i != ((long int) (sizeof (ac__type_sizeof_))))
27220	return 1;
27221      fprintf (f, "%ld\n", i);
27222    }
27223  else
27224    {
27225      unsigned long int i = ulongval ();
27226      if (i != ((long int) (sizeof (ac__type_sizeof_))))
27227	return 1;
27228      fprintf (f, "%lu\n", i);
27229    }
27230  return ferror (f) || fclose (f) != 0;
27231
27232  ;
27233  return 0;
27234}
27235_ACEOF
27236rm -f conftest$ac_exeext
27237if { (ac_try="$ac_link"
27238case "(($ac_try" in
27239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27240  *) ac_try_echo=$ac_try;;
27241esac
27242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27243  (eval "$ac_link") 2>&5
27244  ac_status=$?
27245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27247  { (case "(($ac_try" in
27248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27249  *) ac_try_echo=$ac_try;;
27250esac
27251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27252  (eval "$ac_try") 2>&5
27253  ac_status=$?
27254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255  (exit $ac_status); }; }; then
27256  ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
27257else
27258  echo "$as_me: program exited with status $ac_status" >&5
27259echo "$as_me: failed program was:" >&5
27260sed 's/^/| /' conftest.$ac_ext >&5
27261
27262( exit $ac_status )
27263if test "$ac_cv_type_unsigned_long_long" = yes; then
27264     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
27265See \`config.log' for more details." >&5
27266echo "$as_me: error: cannot compute sizeof (unsigned long long)
27267See \`config.log' for more details." >&2;}
27268   { (exit 77); exit 77; }; }
27269   else
27270     ac_cv_sizeof_unsigned_long_long=0
27271   fi
27272fi
27273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27274fi
27275rm -f conftest.val
27276fi
27277{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
27278echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
27279
27280
27281
27282cat >>confdefs.h <<_ACEOF
27283#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
27284_ACEOF
27285
27286
27287{ echo "$as_me:$LINENO: checking for char *" >&5
27288echo $ECHO_N "checking for char *... $ECHO_C" >&6; }
27289if test "${ac_cv_type_char_p+set}" = set; then
27290  echo $ECHO_N "(cached) $ECHO_C" >&6
27291else
27292  cat >conftest.$ac_ext <<_ACEOF
27293/* confdefs.h.  */
27294_ACEOF
27295cat confdefs.h >>conftest.$ac_ext
27296cat >>conftest.$ac_ext <<_ACEOF
27297/* end confdefs.h.  */
27298$db_includes
27299
27300typedef char * ac__type_new_;
27301int
27302main ()
27303{
27304if ((ac__type_new_ *) 0)
27305  return 0;
27306if (sizeof (ac__type_new_))
27307  return 0;
27308  ;
27309  return 0;
27310}
27311_ACEOF
27312rm -f conftest.$ac_objext
27313if { (ac_try="$ac_compile"
27314case "(($ac_try" in
27315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27316  *) ac_try_echo=$ac_try;;
27317esac
27318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27319  (eval "$ac_compile") 2>conftest.er1
27320  ac_status=$?
27321  grep -v '^ *+' conftest.er1 >conftest.err
27322  rm -f conftest.er1
27323  cat conftest.err >&5
27324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325  (exit $ac_status); } && {
27326	 test -z "$ac_c_werror_flag" ||
27327	 test ! -s conftest.err
27328       } && test -s conftest.$ac_objext; then
27329  ac_cv_type_char_p=yes
27330else
27331  echo "$as_me: failed program was:" >&5
27332sed 's/^/| /' conftest.$ac_ext >&5
27333
27334	ac_cv_type_char_p=no
27335fi
27336
27337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27338fi
27339{ echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
27340echo "${ECHO_T}$ac_cv_type_char_p" >&6; }
27341
27342# The cast to long int works around a bug in the HP C Compiler
27343# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27344# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27345# This bug is HP SR number 8606223364.
27346{ echo "$as_me:$LINENO: checking size of char *" >&5
27347echo $ECHO_N "checking size of char *... $ECHO_C" >&6; }
27348if test "${ac_cv_sizeof_char_p+set}" = set; then
27349  echo $ECHO_N "(cached) $ECHO_C" >&6
27350else
27351  if test "$cross_compiling" = yes; then
27352  # Depending upon the size, compute the lo and hi bounds.
27353cat >conftest.$ac_ext <<_ACEOF
27354/* confdefs.h.  */
27355_ACEOF
27356cat confdefs.h >>conftest.$ac_ext
27357cat >>conftest.$ac_ext <<_ACEOF
27358/* end confdefs.h.  */
27359$db_includes
27360
27361   typedef char * ac__type_sizeof_;
27362int
27363main ()
27364{
27365static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27366test_array [0] = 0
27367
27368  ;
27369  return 0;
27370}
27371_ACEOF
27372rm -f conftest.$ac_objext
27373if { (ac_try="$ac_compile"
27374case "(($ac_try" in
27375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27376  *) ac_try_echo=$ac_try;;
27377esac
27378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27379  (eval "$ac_compile") 2>conftest.er1
27380  ac_status=$?
27381  grep -v '^ *+' conftest.er1 >conftest.err
27382  rm -f conftest.er1
27383  cat conftest.err >&5
27384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385  (exit $ac_status); } && {
27386	 test -z "$ac_c_werror_flag" ||
27387	 test ! -s conftest.err
27388       } && test -s conftest.$ac_objext; then
27389  ac_lo=0 ac_mid=0
27390  while :; do
27391    cat >conftest.$ac_ext <<_ACEOF
27392/* confdefs.h.  */
27393_ACEOF
27394cat confdefs.h >>conftest.$ac_ext
27395cat >>conftest.$ac_ext <<_ACEOF
27396/* end confdefs.h.  */
27397$db_includes
27398
27399   typedef char * ac__type_sizeof_;
27400int
27401main ()
27402{
27403static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27404test_array [0] = 0
27405
27406  ;
27407  return 0;
27408}
27409_ACEOF
27410rm -f conftest.$ac_objext
27411if { (ac_try="$ac_compile"
27412case "(($ac_try" in
27413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27414  *) ac_try_echo=$ac_try;;
27415esac
27416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27417  (eval "$ac_compile") 2>conftest.er1
27418  ac_status=$?
27419  grep -v '^ *+' conftest.er1 >conftest.err
27420  rm -f conftest.er1
27421  cat conftest.err >&5
27422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423  (exit $ac_status); } && {
27424	 test -z "$ac_c_werror_flag" ||
27425	 test ! -s conftest.err
27426       } && test -s conftest.$ac_objext; then
27427  ac_hi=$ac_mid; break
27428else
27429  echo "$as_me: failed program was:" >&5
27430sed 's/^/| /' conftest.$ac_ext >&5
27431
27432	ac_lo=`expr $ac_mid + 1`
27433			if test $ac_lo -le $ac_mid; then
27434			  ac_lo= ac_hi=
27435			  break
27436			fi
27437			ac_mid=`expr 2 '*' $ac_mid + 1`
27438fi
27439
27440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27441  done
27442else
27443  echo "$as_me: failed program was:" >&5
27444sed 's/^/| /' conftest.$ac_ext >&5
27445
27446	cat >conftest.$ac_ext <<_ACEOF
27447/* confdefs.h.  */
27448_ACEOF
27449cat confdefs.h >>conftest.$ac_ext
27450cat >>conftest.$ac_ext <<_ACEOF
27451/* end confdefs.h.  */
27452$db_includes
27453
27454   typedef char * ac__type_sizeof_;
27455int
27456main ()
27457{
27458static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27459test_array [0] = 0
27460
27461  ;
27462  return 0;
27463}
27464_ACEOF
27465rm -f conftest.$ac_objext
27466if { (ac_try="$ac_compile"
27467case "(($ac_try" in
27468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27469  *) ac_try_echo=$ac_try;;
27470esac
27471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27472  (eval "$ac_compile") 2>conftest.er1
27473  ac_status=$?
27474  grep -v '^ *+' conftest.er1 >conftest.err
27475  rm -f conftest.er1
27476  cat conftest.err >&5
27477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478  (exit $ac_status); } && {
27479	 test -z "$ac_c_werror_flag" ||
27480	 test ! -s conftest.err
27481       } && test -s conftest.$ac_objext; then
27482  ac_hi=-1 ac_mid=-1
27483  while :; do
27484    cat >conftest.$ac_ext <<_ACEOF
27485/* confdefs.h.  */
27486_ACEOF
27487cat confdefs.h >>conftest.$ac_ext
27488cat >>conftest.$ac_ext <<_ACEOF
27489/* end confdefs.h.  */
27490$db_includes
27491
27492   typedef char * ac__type_sizeof_;
27493int
27494main ()
27495{
27496static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27497test_array [0] = 0
27498
27499  ;
27500  return 0;
27501}
27502_ACEOF
27503rm -f conftest.$ac_objext
27504if { (ac_try="$ac_compile"
27505case "(($ac_try" in
27506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27507  *) ac_try_echo=$ac_try;;
27508esac
27509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27510  (eval "$ac_compile") 2>conftest.er1
27511  ac_status=$?
27512  grep -v '^ *+' conftest.er1 >conftest.err
27513  rm -f conftest.er1
27514  cat conftest.err >&5
27515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516  (exit $ac_status); } && {
27517	 test -z "$ac_c_werror_flag" ||
27518	 test ! -s conftest.err
27519       } && test -s conftest.$ac_objext; then
27520  ac_lo=$ac_mid; break
27521else
27522  echo "$as_me: failed program was:" >&5
27523sed 's/^/| /' conftest.$ac_ext >&5
27524
27525	ac_hi=`expr '(' $ac_mid ')' - 1`
27526			if test $ac_mid -le $ac_hi; then
27527			  ac_lo= ac_hi=
27528			  break
27529			fi
27530			ac_mid=`expr 2 '*' $ac_mid`
27531fi
27532
27533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27534  done
27535else
27536  echo "$as_me: failed program was:" >&5
27537sed 's/^/| /' conftest.$ac_ext >&5
27538
27539	ac_lo= ac_hi=
27540fi
27541
27542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27543fi
27544
27545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27546# Binary search between lo and hi bounds.
27547while test "x$ac_lo" != "x$ac_hi"; do
27548  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27549  cat >conftest.$ac_ext <<_ACEOF
27550/* confdefs.h.  */
27551_ACEOF
27552cat confdefs.h >>conftest.$ac_ext
27553cat >>conftest.$ac_ext <<_ACEOF
27554/* end confdefs.h.  */
27555$db_includes
27556
27557   typedef char * ac__type_sizeof_;
27558int
27559main ()
27560{
27561static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27562test_array [0] = 0
27563
27564  ;
27565  return 0;
27566}
27567_ACEOF
27568rm -f conftest.$ac_objext
27569if { (ac_try="$ac_compile"
27570case "(($ac_try" in
27571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27572  *) ac_try_echo=$ac_try;;
27573esac
27574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27575  (eval "$ac_compile") 2>conftest.er1
27576  ac_status=$?
27577  grep -v '^ *+' conftest.er1 >conftest.err
27578  rm -f conftest.er1
27579  cat conftest.err >&5
27580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581  (exit $ac_status); } && {
27582	 test -z "$ac_c_werror_flag" ||
27583	 test ! -s conftest.err
27584       } && test -s conftest.$ac_objext; then
27585  ac_hi=$ac_mid
27586else
27587  echo "$as_me: failed program was:" >&5
27588sed 's/^/| /' conftest.$ac_ext >&5
27589
27590	ac_lo=`expr '(' $ac_mid ')' + 1`
27591fi
27592
27593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27594done
27595case $ac_lo in
27596?*) ac_cv_sizeof_char_p=$ac_lo;;
27597'') if test "$ac_cv_type_char_p" = yes; then
27598     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
27599See \`config.log' for more details." >&5
27600echo "$as_me: error: cannot compute sizeof (char *)
27601See \`config.log' for more details." >&2;}
27602   { (exit 77); exit 77; }; }
27603   else
27604     ac_cv_sizeof_char_p=0
27605   fi ;;
27606esac
27607else
27608  cat >conftest.$ac_ext <<_ACEOF
27609/* confdefs.h.  */
27610_ACEOF
27611cat confdefs.h >>conftest.$ac_ext
27612cat >>conftest.$ac_ext <<_ACEOF
27613/* end confdefs.h.  */
27614$db_includes
27615
27616   typedef char * ac__type_sizeof_;
27617static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27618static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27619#include <stdio.h>
27620#include <stdlib.h>
27621int
27622main ()
27623{
27624
27625  FILE *f = fopen ("conftest.val", "w");
27626  if (! f)
27627    return 1;
27628  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27629    {
27630      long int i = longval ();
27631      if (i != ((long int) (sizeof (ac__type_sizeof_))))
27632	return 1;
27633      fprintf (f, "%ld\n", i);
27634    }
27635  else
27636    {
27637      unsigned long int i = ulongval ();
27638      if (i != ((long int) (sizeof (ac__type_sizeof_))))
27639	return 1;
27640      fprintf (f, "%lu\n", i);
27641    }
27642  return ferror (f) || fclose (f) != 0;
27643
27644  ;
27645  return 0;
27646}
27647_ACEOF
27648rm -f conftest$ac_exeext
27649if { (ac_try="$ac_link"
27650case "(($ac_try" in
27651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27652  *) ac_try_echo=$ac_try;;
27653esac
27654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27655  (eval "$ac_link") 2>&5
27656  ac_status=$?
27657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27659  { (case "(($ac_try" in
27660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27661  *) ac_try_echo=$ac_try;;
27662esac
27663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27664  (eval "$ac_try") 2>&5
27665  ac_status=$?
27666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667  (exit $ac_status); }; }; then
27668  ac_cv_sizeof_char_p=`cat conftest.val`
27669else
27670  echo "$as_me: program exited with status $ac_status" >&5
27671echo "$as_me: failed program was:" >&5
27672sed 's/^/| /' conftest.$ac_ext >&5
27673
27674( exit $ac_status )
27675if test "$ac_cv_type_char_p" = yes; then
27676     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
27677See \`config.log' for more details." >&5
27678echo "$as_me: error: cannot compute sizeof (char *)
27679See \`config.log' for more details." >&2;}
27680   { (exit 77); exit 77; }; }
27681   else
27682     ac_cv_sizeof_char_p=0
27683   fi
27684fi
27685rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27686fi
27687rm -f conftest.val
27688fi
27689{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
27690echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6; }
27691
27692
27693
27694cat >>confdefs.h <<_ACEOF
27695#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
27696_ACEOF
27697
27698
27699
27700# We look for u_char, u_short, u_int, u_long -- if we can't find them,
27701# we create our own.
27702
27703{ echo "$as_me:$LINENO: checking for u_char" >&5
27704echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
27705if test "${ac_cv_type_u_char+set}" = set; then
27706  echo $ECHO_N "(cached) $ECHO_C" >&6
27707else
27708  cat >conftest.$ac_ext <<_ACEOF
27709/* confdefs.h.  */
27710_ACEOF
27711cat confdefs.h >>conftest.$ac_ext
27712cat >>conftest.$ac_ext <<_ACEOF
27713/* end confdefs.h.  */
27714$db_includes
27715
27716typedef u_char ac__type_new_;
27717int
27718main ()
27719{
27720if ((ac__type_new_ *) 0)
27721  return 0;
27722if (sizeof (ac__type_new_))
27723  return 0;
27724  ;
27725  return 0;
27726}
27727_ACEOF
27728rm -f conftest.$ac_objext
27729if { (ac_try="$ac_compile"
27730case "(($ac_try" in
27731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27732  *) ac_try_echo=$ac_try;;
27733esac
27734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27735  (eval "$ac_compile") 2>conftest.er1
27736  ac_status=$?
27737  grep -v '^ *+' conftest.er1 >conftest.err
27738  rm -f conftest.er1
27739  cat conftest.err >&5
27740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741  (exit $ac_status); } && {
27742	 test -z "$ac_c_werror_flag" ||
27743	 test ! -s conftest.err
27744       } && test -s conftest.$ac_objext; then
27745  ac_cv_type_u_char=yes
27746else
27747  echo "$as_me: failed program was:" >&5
27748sed 's/^/| /' conftest.$ac_ext >&5
27749
27750	ac_cv_type_u_char=no
27751fi
27752
27753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27754fi
27755{ echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5
27756echo "${ECHO_T}$ac_cv_type_u_char" >&6; }
27757if test $ac_cv_type_u_char = yes; then
27758  :
27759else
27760  u_char_decl="typedef unsigned char u_char;"
27761fi
27762
27763
27764
27765{ echo "$as_me:$LINENO: checking for u_short" >&5
27766echo $ECHO_N "checking for u_short... $ECHO_C" >&6; }
27767if test "${ac_cv_type_u_short+set}" = set; then
27768  echo $ECHO_N "(cached) $ECHO_C" >&6
27769else
27770  cat >conftest.$ac_ext <<_ACEOF
27771/* confdefs.h.  */
27772_ACEOF
27773cat confdefs.h >>conftest.$ac_ext
27774cat >>conftest.$ac_ext <<_ACEOF
27775/* end confdefs.h.  */
27776$db_includes
27777
27778typedef u_short ac__type_new_;
27779int
27780main ()
27781{
27782if ((ac__type_new_ *) 0)
27783  return 0;
27784if (sizeof (ac__type_new_))
27785  return 0;
27786  ;
27787  return 0;
27788}
27789_ACEOF
27790rm -f conftest.$ac_objext
27791if { (ac_try="$ac_compile"
27792case "(($ac_try" in
27793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27794  *) ac_try_echo=$ac_try;;
27795esac
27796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27797  (eval "$ac_compile") 2>conftest.er1
27798  ac_status=$?
27799  grep -v '^ *+' conftest.er1 >conftest.err
27800  rm -f conftest.er1
27801  cat conftest.err >&5
27802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27803  (exit $ac_status); } && {
27804	 test -z "$ac_c_werror_flag" ||
27805	 test ! -s conftest.err
27806       } && test -s conftest.$ac_objext; then
27807  ac_cv_type_u_short=yes
27808else
27809  echo "$as_me: failed program was:" >&5
27810sed 's/^/| /' conftest.$ac_ext >&5
27811
27812	ac_cv_type_u_short=no
27813fi
27814
27815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27816fi
27817{ echo "$as_me:$LINENO: result: $ac_cv_type_u_short" >&5
27818echo "${ECHO_T}$ac_cv_type_u_short" >&6; }
27819if test $ac_cv_type_u_short = yes; then
27820  :
27821else
27822  u_short_decl="typedef unsigned short u_short;"
27823fi
27824
27825
27826
27827{ echo "$as_me:$LINENO: checking for u_int" >&5
27828echo $ECHO_N "checking for u_int... $ECHO_C" >&6; }
27829if test "${ac_cv_type_u_int+set}" = set; then
27830  echo $ECHO_N "(cached) $ECHO_C" >&6
27831else
27832  cat >conftest.$ac_ext <<_ACEOF
27833/* confdefs.h.  */
27834_ACEOF
27835cat confdefs.h >>conftest.$ac_ext
27836cat >>conftest.$ac_ext <<_ACEOF
27837/* end confdefs.h.  */
27838$db_includes
27839
27840typedef u_int ac__type_new_;
27841int
27842main ()
27843{
27844if ((ac__type_new_ *) 0)
27845  return 0;
27846if (sizeof (ac__type_new_))
27847  return 0;
27848  ;
27849  return 0;
27850}
27851_ACEOF
27852rm -f conftest.$ac_objext
27853if { (ac_try="$ac_compile"
27854case "(($ac_try" in
27855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27856  *) ac_try_echo=$ac_try;;
27857esac
27858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27859  (eval "$ac_compile") 2>conftest.er1
27860  ac_status=$?
27861  grep -v '^ *+' conftest.er1 >conftest.err
27862  rm -f conftest.er1
27863  cat conftest.err >&5
27864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865  (exit $ac_status); } && {
27866	 test -z "$ac_c_werror_flag" ||
27867	 test ! -s conftest.err
27868       } && test -s conftest.$ac_objext; then
27869  ac_cv_type_u_int=yes
27870else
27871  echo "$as_me: failed program was:" >&5
27872sed 's/^/| /' conftest.$ac_ext >&5
27873
27874	ac_cv_type_u_int=no
27875fi
27876
27877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27878fi
27879{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
27880echo "${ECHO_T}$ac_cv_type_u_int" >&6; }
27881if test $ac_cv_type_u_int = yes; then
27882  :
27883else
27884  u_int_decl="typedef unsigned int u_int;"
27885fi
27886
27887
27888
27889{ echo "$as_me:$LINENO: checking for u_long" >&5
27890echo $ECHO_N "checking for u_long... $ECHO_C" >&6; }
27891if test "${ac_cv_type_u_long+set}" = set; then
27892  echo $ECHO_N "(cached) $ECHO_C" >&6
27893else
27894  cat >conftest.$ac_ext <<_ACEOF
27895/* confdefs.h.  */
27896_ACEOF
27897cat confdefs.h >>conftest.$ac_ext
27898cat >>conftest.$ac_ext <<_ACEOF
27899/* end confdefs.h.  */
27900$db_includes
27901
27902typedef u_long ac__type_new_;
27903int
27904main ()
27905{
27906if ((ac__type_new_ *) 0)
27907  return 0;
27908if (sizeof (ac__type_new_))
27909  return 0;
27910  ;
27911  return 0;
27912}
27913_ACEOF
27914rm -f conftest.$ac_objext
27915if { (ac_try="$ac_compile"
27916case "(($ac_try" in
27917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27918  *) ac_try_echo=$ac_try;;
27919esac
27920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27921  (eval "$ac_compile") 2>conftest.er1
27922  ac_status=$?
27923  grep -v '^ *+' conftest.er1 >conftest.err
27924  rm -f conftest.er1
27925  cat conftest.err >&5
27926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27927  (exit $ac_status); } && {
27928	 test -z "$ac_c_werror_flag" ||
27929	 test ! -s conftest.err
27930       } && test -s conftest.$ac_objext; then
27931  ac_cv_type_u_long=yes
27932else
27933  echo "$as_me: failed program was:" >&5
27934sed 's/^/| /' conftest.$ac_ext >&5
27935
27936	ac_cv_type_u_long=no
27937fi
27938
27939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27940fi
27941{ echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
27942echo "${ECHO_T}$ac_cv_type_u_long" >&6; }
27943if test $ac_cv_type_u_long = yes; then
27944  :
27945else
27946  u_long_decl="typedef unsigned long u_long;"
27947fi
27948
27949
27950# We look for fixed-size variants of u_char, u_short, u_int, u_long as well.
27951
27952{ echo "$as_me:$LINENO: checking for u_int8_t" >&5
27953echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
27954if test "${ac_cv_type_u_int8_t+set}" = set; then
27955  echo $ECHO_N "(cached) $ECHO_C" >&6
27956else
27957  cat >conftest.$ac_ext <<_ACEOF
27958/* confdefs.h.  */
27959_ACEOF
27960cat confdefs.h >>conftest.$ac_ext
27961cat >>conftest.$ac_ext <<_ACEOF
27962/* end confdefs.h.  */
27963$db_includes
27964
27965typedef u_int8_t ac__type_new_;
27966int
27967main ()
27968{
27969if ((ac__type_new_ *) 0)
27970  return 0;
27971if (sizeof (ac__type_new_))
27972  return 0;
27973  ;
27974  return 0;
27975}
27976_ACEOF
27977rm -f conftest.$ac_objext
27978if { (ac_try="$ac_compile"
27979case "(($ac_try" in
27980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27981  *) ac_try_echo=$ac_try;;
27982esac
27983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27984  (eval "$ac_compile") 2>conftest.er1
27985  ac_status=$?
27986  grep -v '^ *+' conftest.er1 >conftest.err
27987  rm -f conftest.er1
27988  cat conftest.err >&5
27989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990  (exit $ac_status); } && {
27991	 test -z "$ac_c_werror_flag" ||
27992	 test ! -s conftest.err
27993       } && test -s conftest.$ac_objext; then
27994  ac_cv_type_u_int8_t=yes
27995else
27996  echo "$as_me: failed program was:" >&5
27997sed 's/^/| /' conftest.$ac_ext >&5
27998
27999	ac_cv_type_u_int8_t=no
28000fi
28001
28002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28003fi
28004{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
28005echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
28006if test $ac_cv_type_u_int8_t = yes; then
28007  :
28008else
28009
28010	case "1" in
28011	"$ac_cv_sizeof_unsigned_int")
28012		u_int8_decl="typedef unsigned int u_int8_t;";;
28013	"$ac_cv_sizeof_unsigned_char")
28014		u_int8_decl="typedef unsigned char u_int8_t;";;
28015	"$ac_cv_sizeof_unsigned_short")
28016		u_int8_decl="typedef unsigned short u_int8_t;";;
28017	"$ac_cv_sizeof_unsigned_long")
28018		u_int8_decl="typedef unsigned long u_int8_t;";;
28019	"$ac_cv_sizeof_unsigned_long_long")
28020		u_int8_decl="typedef unsigned long long u_int8_t;";;
28021	*)
28022		if test "" != "notfatal"; then
28023			{ { echo "$as_me:$LINENO: error: No unsigned 1-byte integral type" >&5
28024echo "$as_me: error: No unsigned 1-byte integral type" >&2;}
28025   { (exit 1); exit 1; }; }
28026		fi;;
28027	esac
28028fi
28029
28030
28031
28032{ echo "$as_me:$LINENO: checking for u_int16_t" >&5
28033echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
28034if test "${ac_cv_type_u_int16_t+set}" = set; then
28035  echo $ECHO_N "(cached) $ECHO_C" >&6
28036else
28037  cat >conftest.$ac_ext <<_ACEOF
28038/* confdefs.h.  */
28039_ACEOF
28040cat confdefs.h >>conftest.$ac_ext
28041cat >>conftest.$ac_ext <<_ACEOF
28042/* end confdefs.h.  */
28043$db_includes
28044
28045typedef u_int16_t ac__type_new_;
28046int
28047main ()
28048{
28049if ((ac__type_new_ *) 0)
28050  return 0;
28051if (sizeof (ac__type_new_))
28052  return 0;
28053  ;
28054  return 0;
28055}
28056_ACEOF
28057rm -f conftest.$ac_objext
28058if { (ac_try="$ac_compile"
28059case "(($ac_try" in
28060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28061  *) ac_try_echo=$ac_try;;
28062esac
28063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28064  (eval "$ac_compile") 2>conftest.er1
28065  ac_status=$?
28066  grep -v '^ *+' conftest.er1 >conftest.err
28067  rm -f conftest.er1
28068  cat conftest.err >&5
28069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070  (exit $ac_status); } && {
28071	 test -z "$ac_c_werror_flag" ||
28072	 test ! -s conftest.err
28073       } && test -s conftest.$ac_objext; then
28074  ac_cv_type_u_int16_t=yes
28075else
28076  echo "$as_me: failed program was:" >&5
28077sed 's/^/| /' conftest.$ac_ext >&5
28078
28079	ac_cv_type_u_int16_t=no
28080fi
28081
28082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28083fi
28084{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
28085echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
28086if test $ac_cv_type_u_int16_t = yes; then
28087  :
28088else
28089
28090	case "2" in
28091	"$ac_cv_sizeof_unsigned_int")
28092		u_int16_decl="typedef unsigned int u_int16_t;";;
28093	"$ac_cv_sizeof_unsigned_char")
28094		u_int16_decl="typedef unsigned char u_int16_t;";;
28095	"$ac_cv_sizeof_unsigned_short")
28096		u_int16_decl="typedef unsigned short u_int16_t;";;
28097	"$ac_cv_sizeof_unsigned_long")
28098		u_int16_decl="typedef unsigned long u_int16_t;";;
28099	"$ac_cv_sizeof_unsigned_long_long")
28100		u_int16_decl="typedef unsigned long long u_int16_t;";;
28101	*)
28102		if test "" != "notfatal"; then
28103			{ { echo "$as_me:$LINENO: error: No unsigned 2-byte integral type" >&5
28104echo "$as_me: error: No unsigned 2-byte integral type" >&2;}
28105   { (exit 1); exit 1; }; }
28106		fi;;
28107	esac
28108fi
28109
28110
28111
28112{ echo "$as_me:$LINENO: checking for int16_t" >&5
28113echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
28114if test "${ac_cv_type_int16_t+set}" = set; then
28115  echo $ECHO_N "(cached) $ECHO_C" >&6
28116else
28117  cat >conftest.$ac_ext <<_ACEOF
28118/* confdefs.h.  */
28119_ACEOF
28120cat confdefs.h >>conftest.$ac_ext
28121cat >>conftest.$ac_ext <<_ACEOF
28122/* end confdefs.h.  */
28123$db_includes
28124
28125typedef int16_t ac__type_new_;
28126int
28127main ()
28128{
28129if ((ac__type_new_ *) 0)
28130  return 0;
28131if (sizeof (ac__type_new_))
28132  return 0;
28133  ;
28134  return 0;
28135}
28136_ACEOF
28137rm -f conftest.$ac_objext
28138if { (ac_try="$ac_compile"
28139case "(($ac_try" in
28140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28141  *) ac_try_echo=$ac_try;;
28142esac
28143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28144  (eval "$ac_compile") 2>conftest.er1
28145  ac_status=$?
28146  grep -v '^ *+' conftest.er1 >conftest.err
28147  rm -f conftest.er1
28148  cat conftest.err >&5
28149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150  (exit $ac_status); } && {
28151	 test -z "$ac_c_werror_flag" ||
28152	 test ! -s conftest.err
28153       } && test -s conftest.$ac_objext; then
28154  ac_cv_type_int16_t=yes
28155else
28156  echo "$as_me: failed program was:" >&5
28157sed 's/^/| /' conftest.$ac_ext >&5
28158
28159	ac_cv_type_int16_t=no
28160fi
28161
28162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28163fi
28164{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
28165echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
28166if test $ac_cv_type_int16_t = yes; then
28167  :
28168else
28169
28170	case "2" in
28171	"$ac_cv_sizeof_int")
28172		int16_decl="typedef int int16_t;";;
28173	"$ac_cv_sizeof_char")
28174		int16_decl="typedef char int16_t;";;
28175	"$ac_cv_sizeof_short")
28176		int16_decl="typedef short int16_t;";;
28177	"$ac_cv_sizeof_long")
28178		int16_decl="typedef long int16_t;";;
28179	"$ac_cv_sizeof_long_long")
28180		int16_decl="typedef long long int16_t;";;
28181	*)
28182		if test "" != "notfatal"; then
28183			{ { echo "$as_me:$LINENO: error: No signed 2-byte integral type" >&5
28184echo "$as_me: error: No signed 2-byte integral type" >&2;}
28185   { (exit 1); exit 1; }; }
28186		fi;;
28187	esac
28188fi
28189
28190
28191
28192{ echo "$as_me:$LINENO: checking for u_int32_t" >&5
28193echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
28194if test "${ac_cv_type_u_int32_t+set}" = set; then
28195  echo $ECHO_N "(cached) $ECHO_C" >&6
28196else
28197  cat >conftest.$ac_ext <<_ACEOF
28198/* confdefs.h.  */
28199_ACEOF
28200cat confdefs.h >>conftest.$ac_ext
28201cat >>conftest.$ac_ext <<_ACEOF
28202/* end confdefs.h.  */
28203$db_includes
28204
28205typedef u_int32_t ac__type_new_;
28206int
28207main ()
28208{
28209if ((ac__type_new_ *) 0)
28210  return 0;
28211if (sizeof (ac__type_new_))
28212  return 0;
28213  ;
28214  return 0;
28215}
28216_ACEOF
28217rm -f conftest.$ac_objext
28218if { (ac_try="$ac_compile"
28219case "(($ac_try" in
28220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28221  *) ac_try_echo=$ac_try;;
28222esac
28223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28224  (eval "$ac_compile") 2>conftest.er1
28225  ac_status=$?
28226  grep -v '^ *+' conftest.er1 >conftest.err
28227  rm -f conftest.er1
28228  cat conftest.err >&5
28229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230  (exit $ac_status); } && {
28231	 test -z "$ac_c_werror_flag" ||
28232	 test ! -s conftest.err
28233       } && test -s conftest.$ac_objext; then
28234  ac_cv_type_u_int32_t=yes
28235else
28236  echo "$as_me: failed program was:" >&5
28237sed 's/^/| /' conftest.$ac_ext >&5
28238
28239	ac_cv_type_u_int32_t=no
28240fi
28241
28242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28243fi
28244{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
28245echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
28246if test $ac_cv_type_u_int32_t = yes; then
28247  :
28248else
28249
28250	case "4" in
28251	"$ac_cv_sizeof_unsigned_int")
28252		u_int32_decl="typedef unsigned int u_int32_t;";;
28253	"$ac_cv_sizeof_unsigned_char")
28254		u_int32_decl="typedef unsigned char u_int32_t;";;
28255	"$ac_cv_sizeof_unsigned_short")
28256		u_int32_decl="typedef unsigned short u_int32_t;";;
28257	"$ac_cv_sizeof_unsigned_long")
28258		u_int32_decl="typedef unsigned long u_int32_t;";;
28259	"$ac_cv_sizeof_unsigned_long_long")
28260		u_int32_decl="typedef unsigned long long u_int32_t;";;
28261	*)
28262		if test "" != "notfatal"; then
28263			{ { echo "$as_me:$LINENO: error: No unsigned 4-byte integral type" >&5
28264echo "$as_me: error: No unsigned 4-byte integral type" >&2;}
28265   { (exit 1); exit 1; }; }
28266		fi;;
28267	esac
28268fi
28269
28270
28271
28272{ echo "$as_me:$LINENO: checking for int32_t" >&5
28273echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
28274if test "${ac_cv_type_int32_t+set}" = set; then
28275  echo $ECHO_N "(cached) $ECHO_C" >&6
28276else
28277  cat >conftest.$ac_ext <<_ACEOF
28278/* confdefs.h.  */
28279_ACEOF
28280cat confdefs.h >>conftest.$ac_ext
28281cat >>conftest.$ac_ext <<_ACEOF
28282/* end confdefs.h.  */
28283$db_includes
28284
28285typedef int32_t ac__type_new_;
28286int
28287main ()
28288{
28289if ((ac__type_new_ *) 0)
28290  return 0;
28291if (sizeof (ac__type_new_))
28292  return 0;
28293  ;
28294  return 0;
28295}
28296_ACEOF
28297rm -f conftest.$ac_objext
28298if { (ac_try="$ac_compile"
28299case "(($ac_try" in
28300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28301  *) ac_try_echo=$ac_try;;
28302esac
28303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28304  (eval "$ac_compile") 2>conftest.er1
28305  ac_status=$?
28306  grep -v '^ *+' conftest.er1 >conftest.err
28307  rm -f conftest.er1
28308  cat conftest.err >&5
28309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310  (exit $ac_status); } && {
28311	 test -z "$ac_c_werror_flag" ||
28312	 test ! -s conftest.err
28313       } && test -s conftest.$ac_objext; then
28314  ac_cv_type_int32_t=yes
28315else
28316  echo "$as_me: failed program was:" >&5
28317sed 's/^/| /' conftest.$ac_ext >&5
28318
28319	ac_cv_type_int32_t=no
28320fi
28321
28322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28323fi
28324{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
28325echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
28326if test $ac_cv_type_int32_t = yes; then
28327  :
28328else
28329
28330	case "4" in
28331	"$ac_cv_sizeof_int")
28332		int32_decl="typedef int int32_t;";;
28333	"$ac_cv_sizeof_char")
28334		int32_decl="typedef char int32_t;";;
28335	"$ac_cv_sizeof_short")
28336		int32_decl="typedef short int32_t;";;
28337	"$ac_cv_sizeof_long")
28338		int32_decl="typedef long int32_t;";;
28339	"$ac_cv_sizeof_long_long")
28340		int32_decl="typedef long long int32_t;";;
28341	*)
28342		if test "" != "notfatal"; then
28343			{ { echo "$as_me:$LINENO: error: No signed 4-byte integral type" >&5
28344echo "$as_me: error: No signed 4-byte integral type" >&2;}
28345   { (exit 1); exit 1; }; }
28346		fi;;
28347	esac
28348fi
28349
28350
28351
28352{ echo "$as_me:$LINENO: checking for u_int64_t" >&5
28353echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
28354if test "${ac_cv_type_u_int64_t+set}" = set; then
28355  echo $ECHO_N "(cached) $ECHO_C" >&6
28356else
28357  cat >conftest.$ac_ext <<_ACEOF
28358/* confdefs.h.  */
28359_ACEOF
28360cat confdefs.h >>conftest.$ac_ext
28361cat >>conftest.$ac_ext <<_ACEOF
28362/* end confdefs.h.  */
28363$db_includes
28364
28365typedef u_int64_t ac__type_new_;
28366int
28367main ()
28368{
28369if ((ac__type_new_ *) 0)
28370  return 0;
28371if (sizeof (ac__type_new_))
28372  return 0;
28373  ;
28374  return 0;
28375}
28376_ACEOF
28377rm -f conftest.$ac_objext
28378if { (ac_try="$ac_compile"
28379case "(($ac_try" in
28380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28381  *) ac_try_echo=$ac_try;;
28382esac
28383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28384  (eval "$ac_compile") 2>conftest.er1
28385  ac_status=$?
28386  grep -v '^ *+' conftest.er1 >conftest.err
28387  rm -f conftest.er1
28388  cat conftest.err >&5
28389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390  (exit $ac_status); } && {
28391	 test -z "$ac_c_werror_flag" ||
28392	 test ! -s conftest.err
28393       } && test -s conftest.$ac_objext; then
28394  ac_cv_type_u_int64_t=yes
28395else
28396  echo "$as_me: failed program was:" >&5
28397sed 's/^/| /' conftest.$ac_ext >&5
28398
28399	ac_cv_type_u_int64_t=no
28400fi
28401
28402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28403fi
28404{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28405echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
28406if test $ac_cv_type_u_int64_t = yes; then
28407  :
28408else
28409
28410	case "8" in
28411	"$ac_cv_sizeof_unsigned_int")
28412		u_int64_decl="typedef unsigned int u_int64_t;";;
28413	"$ac_cv_sizeof_unsigned_char")
28414		u_int64_decl="typedef unsigned char u_int64_t;";;
28415	"$ac_cv_sizeof_unsigned_short")
28416		u_int64_decl="typedef unsigned short u_int64_t;";;
28417	"$ac_cv_sizeof_unsigned_long")
28418		u_int64_decl="typedef unsigned long u_int64_t;";;
28419	"$ac_cv_sizeof_unsigned_long_long")
28420		u_int64_decl="typedef unsigned long long u_int64_t;";;
28421	*)
28422		if test "notfatal" != "notfatal"; then
28423			{ { echo "$as_me:$LINENO: error: No unsigned 8-byte integral type" >&5
28424echo "$as_me: error: No unsigned 8-byte integral type" >&2;}
28425   { (exit 1); exit 1; }; }
28426		fi;;
28427	esac
28428fi
28429
28430
28431
28432{ echo "$as_me:$LINENO: checking for int64_t" >&5
28433echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
28434if test "${ac_cv_type_int64_t+set}" = set; then
28435  echo $ECHO_N "(cached) $ECHO_C" >&6
28436else
28437  cat >conftest.$ac_ext <<_ACEOF
28438/* confdefs.h.  */
28439_ACEOF
28440cat confdefs.h >>conftest.$ac_ext
28441cat >>conftest.$ac_ext <<_ACEOF
28442/* end confdefs.h.  */
28443$db_includes
28444
28445typedef int64_t ac__type_new_;
28446int
28447main ()
28448{
28449if ((ac__type_new_ *) 0)
28450  return 0;
28451if (sizeof (ac__type_new_))
28452  return 0;
28453  ;
28454  return 0;
28455}
28456_ACEOF
28457rm -f conftest.$ac_objext
28458if { (ac_try="$ac_compile"
28459case "(($ac_try" in
28460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28461  *) ac_try_echo=$ac_try;;
28462esac
28463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28464  (eval "$ac_compile") 2>conftest.er1
28465  ac_status=$?
28466  grep -v '^ *+' conftest.er1 >conftest.err
28467  rm -f conftest.er1
28468  cat conftest.err >&5
28469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28470  (exit $ac_status); } && {
28471	 test -z "$ac_c_werror_flag" ||
28472	 test ! -s conftest.err
28473       } && test -s conftest.$ac_objext; then
28474  ac_cv_type_int64_t=yes
28475else
28476  echo "$as_me: failed program was:" >&5
28477sed 's/^/| /' conftest.$ac_ext >&5
28478
28479	ac_cv_type_int64_t=no
28480fi
28481
28482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28483fi
28484{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28485echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
28486if test $ac_cv_type_int64_t = yes; then
28487  :
28488else
28489
28490	case "8" in
28491	"$ac_cv_sizeof_int")
28492		int64_decl="typedef int int64_t;";;
28493	"$ac_cv_sizeof_char")
28494		int64_decl="typedef char int64_t;";;
28495	"$ac_cv_sizeof_short")
28496		int64_decl="typedef short int64_t;";;
28497	"$ac_cv_sizeof_long")
28498		int64_decl="typedef long int64_t;";;
28499	"$ac_cv_sizeof_long_long")
28500		int64_decl="typedef long long int64_t;";;
28501	*)
28502		if test "notfatal" != "notfatal"; then
28503			{ { echo "$as_me:$LINENO: error: No signed 8-byte integral type" >&5
28504echo "$as_me: error: No signed 8-byte integral type" >&2;}
28505   { (exit 1); exit 1; }; }
28506		fi;;
28507	esac
28508fi
28509
28510
28511# No currently autoconf'd systems lack FILE, off_t pid_t, size_t, time_t.
28512#
28513# We require them, we don't try to substitute our own if we can't find them.
28514
28515{ echo "$as_me:$LINENO: checking for FILE *" >&5
28516echo $ECHO_N "checking for FILE *... $ECHO_C" >&6; }
28517if test "${ac_cv_type_FILE_p+set}" = set; then
28518  echo $ECHO_N "(cached) $ECHO_C" >&6
28519else
28520  cat >conftest.$ac_ext <<_ACEOF
28521/* confdefs.h.  */
28522_ACEOF
28523cat confdefs.h >>conftest.$ac_ext
28524cat >>conftest.$ac_ext <<_ACEOF
28525/* end confdefs.h.  */
28526$db_includes
28527
28528typedef FILE * ac__type_new_;
28529int
28530main ()
28531{
28532if ((ac__type_new_ *) 0)
28533  return 0;
28534if (sizeof (ac__type_new_))
28535  return 0;
28536  ;
28537  return 0;
28538}
28539_ACEOF
28540rm -f conftest.$ac_objext
28541if { (ac_try="$ac_compile"
28542case "(($ac_try" in
28543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28544  *) ac_try_echo=$ac_try;;
28545esac
28546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28547  (eval "$ac_compile") 2>conftest.er1
28548  ac_status=$?
28549  grep -v '^ *+' conftest.er1 >conftest.err
28550  rm -f conftest.er1
28551  cat conftest.err >&5
28552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553  (exit $ac_status); } && {
28554	 test -z "$ac_c_werror_flag" ||
28555	 test ! -s conftest.err
28556       } && test -s conftest.$ac_objext; then
28557  ac_cv_type_FILE_p=yes
28558else
28559  echo "$as_me: failed program was:" >&5
28560sed 's/^/| /' conftest.$ac_ext >&5
28561
28562	ac_cv_type_FILE_p=no
28563fi
28564
28565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28566fi
28567{ echo "$as_me:$LINENO: result: $ac_cv_type_FILE_p" >&5
28568echo "${ECHO_T}$ac_cv_type_FILE_p" >&6; }
28569if test $ac_cv_type_FILE_p = yes; then
28570  :
28571else
28572  { { echo "$as_me:$LINENO: error: No FILE type." >&5
28573echo "$as_me: error: No FILE type." >&2;}
28574   { (exit 1); exit 1; }; }
28575fi
28576
28577
28578{ echo "$as_me:$LINENO: checking for off_t" >&5
28579echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
28580if test "${ac_cv_type_off_t+set}" = set; then
28581  echo $ECHO_N "(cached) $ECHO_C" >&6
28582else
28583  cat >conftest.$ac_ext <<_ACEOF
28584/* confdefs.h.  */
28585_ACEOF
28586cat confdefs.h >>conftest.$ac_ext
28587cat >>conftest.$ac_ext <<_ACEOF
28588/* end confdefs.h.  */
28589$db_includes
28590
28591typedef off_t ac__type_new_;
28592int
28593main ()
28594{
28595if ((ac__type_new_ *) 0)
28596  return 0;
28597if (sizeof (ac__type_new_))
28598  return 0;
28599  ;
28600  return 0;
28601}
28602_ACEOF
28603rm -f conftest.$ac_objext
28604if { (ac_try="$ac_compile"
28605case "(($ac_try" in
28606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607  *) ac_try_echo=$ac_try;;
28608esac
28609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610  (eval "$ac_compile") 2>conftest.er1
28611  ac_status=$?
28612  grep -v '^ *+' conftest.er1 >conftest.err
28613  rm -f conftest.er1
28614  cat conftest.err >&5
28615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616  (exit $ac_status); } && {
28617	 test -z "$ac_c_werror_flag" ||
28618	 test ! -s conftest.err
28619       } && test -s conftest.$ac_objext; then
28620  ac_cv_type_off_t=yes
28621else
28622  echo "$as_me: failed program was:" >&5
28623sed 's/^/| /' conftest.$ac_ext >&5
28624
28625	ac_cv_type_off_t=no
28626fi
28627
28628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28629fi
28630{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28631echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
28632if test $ac_cv_type_off_t = yes; then
28633  :
28634else
28635  { { echo "$as_me:$LINENO: error: No off_t type." >&5
28636echo "$as_me: error: No off_t type." >&2;}
28637   { (exit 1); exit 1; }; }
28638fi
28639
28640
28641{ echo "$as_me:$LINENO: checking for pid_t" >&5
28642echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
28643if test "${ac_cv_type_pid_t+set}" = set; then
28644  echo $ECHO_N "(cached) $ECHO_C" >&6
28645else
28646  cat >conftest.$ac_ext <<_ACEOF
28647/* confdefs.h.  */
28648_ACEOF
28649cat confdefs.h >>conftest.$ac_ext
28650cat >>conftest.$ac_ext <<_ACEOF
28651/* end confdefs.h.  */
28652$db_includes
28653
28654typedef pid_t ac__type_new_;
28655int
28656main ()
28657{
28658if ((ac__type_new_ *) 0)
28659  return 0;
28660if (sizeof (ac__type_new_))
28661  return 0;
28662  ;
28663  return 0;
28664}
28665_ACEOF
28666rm -f conftest.$ac_objext
28667if { (ac_try="$ac_compile"
28668case "(($ac_try" in
28669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28670  *) ac_try_echo=$ac_try;;
28671esac
28672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28673  (eval "$ac_compile") 2>conftest.er1
28674  ac_status=$?
28675  grep -v '^ *+' conftest.er1 >conftest.err
28676  rm -f conftest.er1
28677  cat conftest.err >&5
28678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679  (exit $ac_status); } && {
28680	 test -z "$ac_c_werror_flag" ||
28681	 test ! -s conftest.err
28682       } && test -s conftest.$ac_objext; then
28683  ac_cv_type_pid_t=yes
28684else
28685  echo "$as_me: failed program was:" >&5
28686sed 's/^/| /' conftest.$ac_ext >&5
28687
28688	ac_cv_type_pid_t=no
28689fi
28690
28691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28692fi
28693{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28694echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
28695if test $ac_cv_type_pid_t = yes; then
28696  :
28697else
28698  { { echo "$as_me:$LINENO: error: No pid_t type." >&5
28699echo "$as_me: error: No pid_t type." >&2;}
28700   { (exit 1); exit 1; }; }
28701fi
28702
28703
28704{ echo "$as_me:$LINENO: checking for size_t" >&5
28705echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28706if test "${ac_cv_type_size_t+set}" = set; then
28707  echo $ECHO_N "(cached) $ECHO_C" >&6
28708else
28709  cat >conftest.$ac_ext <<_ACEOF
28710/* confdefs.h.  */
28711_ACEOF
28712cat confdefs.h >>conftest.$ac_ext
28713cat >>conftest.$ac_ext <<_ACEOF
28714/* end confdefs.h.  */
28715$db_includes
28716
28717typedef size_t ac__type_new_;
28718int
28719main ()
28720{
28721if ((ac__type_new_ *) 0)
28722  return 0;
28723if (sizeof (ac__type_new_))
28724  return 0;
28725  ;
28726  return 0;
28727}
28728_ACEOF
28729rm -f conftest.$ac_objext
28730if { (ac_try="$ac_compile"
28731case "(($ac_try" in
28732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28733  *) ac_try_echo=$ac_try;;
28734esac
28735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28736  (eval "$ac_compile") 2>conftest.er1
28737  ac_status=$?
28738  grep -v '^ *+' conftest.er1 >conftest.err
28739  rm -f conftest.er1
28740  cat conftest.err >&5
28741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742  (exit $ac_status); } && {
28743	 test -z "$ac_c_werror_flag" ||
28744	 test ! -s conftest.err
28745       } && test -s conftest.$ac_objext; then
28746  ac_cv_type_size_t=yes
28747else
28748  echo "$as_me: failed program was:" >&5
28749sed 's/^/| /' conftest.$ac_ext >&5
28750
28751	ac_cv_type_size_t=no
28752fi
28753
28754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28755fi
28756{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28757echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28758if test $ac_cv_type_size_t = yes; then
28759  :
28760else
28761  { { echo "$as_me:$LINENO: error: No size_t type." >&5
28762echo "$as_me: error: No size_t type." >&2;}
28763   { (exit 1); exit 1; }; }
28764fi
28765
28766
28767{ echo "$as_me:$LINENO: checking for time_t" >&5
28768echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
28769if test "${ac_cv_type_time_t+set}" = set; then
28770  echo $ECHO_N "(cached) $ECHO_C" >&6
28771else
28772  cat >conftest.$ac_ext <<_ACEOF
28773/* confdefs.h.  */
28774_ACEOF
28775cat confdefs.h >>conftest.$ac_ext
28776cat >>conftest.$ac_ext <<_ACEOF
28777/* end confdefs.h.  */
28778$db_includes
28779
28780typedef time_t ac__type_new_;
28781int
28782main ()
28783{
28784if ((ac__type_new_ *) 0)
28785  return 0;
28786if (sizeof (ac__type_new_))
28787  return 0;
28788  ;
28789  return 0;
28790}
28791_ACEOF
28792rm -f conftest.$ac_objext
28793if { (ac_try="$ac_compile"
28794case "(($ac_try" in
28795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28796  *) ac_try_echo=$ac_try;;
28797esac
28798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28799  (eval "$ac_compile") 2>conftest.er1
28800  ac_status=$?
28801  grep -v '^ *+' conftest.er1 >conftest.err
28802  rm -f conftest.er1
28803  cat conftest.err >&5
28804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805  (exit $ac_status); } && {
28806	 test -z "$ac_c_werror_flag" ||
28807	 test ! -s conftest.err
28808       } && test -s conftest.$ac_objext; then
28809  ac_cv_type_time_t=yes
28810else
28811  echo "$as_me: failed program was:" >&5
28812sed 's/^/| /' conftest.$ac_ext >&5
28813
28814	ac_cv_type_time_t=no
28815fi
28816
28817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28818fi
28819{ echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
28820echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
28821if test $ac_cv_type_time_t = yes; then
28822  :
28823else
28824  { { echo "$as_me:$LINENO: error: No time_t type." >&5
28825echo "$as_me: error: No time_t type." >&2;}
28826   { (exit 1); exit 1; }; }
28827fi
28828
28829
28830# Check for ssize_t -- if none exists, find a signed integral type that's
28831# the same size as a size_t.
28832{ echo "$as_me:$LINENO: checking for size_t" >&5
28833echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28834if test "${ac_cv_type_size_t+set}" = set; then
28835  echo $ECHO_N "(cached) $ECHO_C" >&6
28836else
28837  cat >conftest.$ac_ext <<_ACEOF
28838/* confdefs.h.  */
28839_ACEOF
28840cat confdefs.h >>conftest.$ac_ext
28841cat >>conftest.$ac_ext <<_ACEOF
28842/* end confdefs.h.  */
28843$db_includes
28844
28845typedef size_t ac__type_new_;
28846int
28847main ()
28848{
28849if ((ac__type_new_ *) 0)
28850  return 0;
28851if (sizeof (ac__type_new_))
28852  return 0;
28853  ;
28854  return 0;
28855}
28856_ACEOF
28857rm -f conftest.$ac_objext
28858if { (ac_try="$ac_compile"
28859case "(($ac_try" in
28860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28861  *) ac_try_echo=$ac_try;;
28862esac
28863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28864  (eval "$ac_compile") 2>conftest.er1
28865  ac_status=$?
28866  grep -v '^ *+' conftest.er1 >conftest.err
28867  rm -f conftest.er1
28868  cat conftest.err >&5
28869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28870  (exit $ac_status); } && {
28871	 test -z "$ac_c_werror_flag" ||
28872	 test ! -s conftest.err
28873       } && test -s conftest.$ac_objext; then
28874  ac_cv_type_size_t=yes
28875else
28876  echo "$as_me: failed program was:" >&5
28877sed 's/^/| /' conftest.$ac_ext >&5
28878
28879	ac_cv_type_size_t=no
28880fi
28881
28882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28883fi
28884{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28885echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28886
28887# The cast to long int works around a bug in the HP C Compiler
28888# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28889# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28890# This bug is HP SR number 8606223364.
28891{ echo "$as_me:$LINENO: checking size of size_t" >&5
28892echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
28893if test "${ac_cv_sizeof_size_t+set}" = set; then
28894  echo $ECHO_N "(cached) $ECHO_C" >&6
28895else
28896  if test "$cross_compiling" = yes; then
28897  # Depending upon the size, compute the lo and hi bounds.
28898cat >conftest.$ac_ext <<_ACEOF
28899/* confdefs.h.  */
28900_ACEOF
28901cat confdefs.h >>conftest.$ac_ext
28902cat >>conftest.$ac_ext <<_ACEOF
28903/* end confdefs.h.  */
28904$db_includes
28905
28906   typedef size_t ac__type_sizeof_;
28907int
28908main ()
28909{
28910static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28911test_array [0] = 0
28912
28913  ;
28914  return 0;
28915}
28916_ACEOF
28917rm -f conftest.$ac_objext
28918if { (ac_try="$ac_compile"
28919case "(($ac_try" in
28920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28921  *) ac_try_echo=$ac_try;;
28922esac
28923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28924  (eval "$ac_compile") 2>conftest.er1
28925  ac_status=$?
28926  grep -v '^ *+' conftest.er1 >conftest.err
28927  rm -f conftest.er1
28928  cat conftest.err >&5
28929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930  (exit $ac_status); } && {
28931	 test -z "$ac_c_werror_flag" ||
28932	 test ! -s conftest.err
28933       } && test -s conftest.$ac_objext; then
28934  ac_lo=0 ac_mid=0
28935  while :; do
28936    cat >conftest.$ac_ext <<_ACEOF
28937/* confdefs.h.  */
28938_ACEOF
28939cat confdefs.h >>conftest.$ac_ext
28940cat >>conftest.$ac_ext <<_ACEOF
28941/* end confdefs.h.  */
28942$db_includes
28943
28944   typedef size_t ac__type_sizeof_;
28945int
28946main ()
28947{
28948static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28949test_array [0] = 0
28950
28951  ;
28952  return 0;
28953}
28954_ACEOF
28955rm -f conftest.$ac_objext
28956if { (ac_try="$ac_compile"
28957case "(($ac_try" in
28958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28959  *) ac_try_echo=$ac_try;;
28960esac
28961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28962  (eval "$ac_compile") 2>conftest.er1
28963  ac_status=$?
28964  grep -v '^ *+' conftest.er1 >conftest.err
28965  rm -f conftest.er1
28966  cat conftest.err >&5
28967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968  (exit $ac_status); } && {
28969	 test -z "$ac_c_werror_flag" ||
28970	 test ! -s conftest.err
28971       } && test -s conftest.$ac_objext; then
28972  ac_hi=$ac_mid; break
28973else
28974  echo "$as_me: failed program was:" >&5
28975sed 's/^/| /' conftest.$ac_ext >&5
28976
28977	ac_lo=`expr $ac_mid + 1`
28978			if test $ac_lo -le $ac_mid; then
28979			  ac_lo= ac_hi=
28980			  break
28981			fi
28982			ac_mid=`expr 2 '*' $ac_mid + 1`
28983fi
28984
28985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28986  done
28987else
28988  echo "$as_me: failed program was:" >&5
28989sed 's/^/| /' conftest.$ac_ext >&5
28990
28991	cat >conftest.$ac_ext <<_ACEOF
28992/* confdefs.h.  */
28993_ACEOF
28994cat confdefs.h >>conftest.$ac_ext
28995cat >>conftest.$ac_ext <<_ACEOF
28996/* end confdefs.h.  */
28997$db_includes
28998
28999   typedef size_t ac__type_sizeof_;
29000int
29001main ()
29002{
29003static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29004test_array [0] = 0
29005
29006  ;
29007  return 0;
29008}
29009_ACEOF
29010rm -f conftest.$ac_objext
29011if { (ac_try="$ac_compile"
29012case "(($ac_try" in
29013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29014  *) ac_try_echo=$ac_try;;
29015esac
29016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29017  (eval "$ac_compile") 2>conftest.er1
29018  ac_status=$?
29019  grep -v '^ *+' conftest.er1 >conftest.err
29020  rm -f conftest.er1
29021  cat conftest.err >&5
29022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29023  (exit $ac_status); } && {
29024	 test -z "$ac_c_werror_flag" ||
29025	 test ! -s conftest.err
29026       } && test -s conftest.$ac_objext; then
29027  ac_hi=-1 ac_mid=-1
29028  while :; do
29029    cat >conftest.$ac_ext <<_ACEOF
29030/* confdefs.h.  */
29031_ACEOF
29032cat confdefs.h >>conftest.$ac_ext
29033cat >>conftest.$ac_ext <<_ACEOF
29034/* end confdefs.h.  */
29035$db_includes
29036
29037   typedef size_t ac__type_sizeof_;
29038int
29039main ()
29040{
29041static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29042test_array [0] = 0
29043
29044  ;
29045  return 0;
29046}
29047_ACEOF
29048rm -f conftest.$ac_objext
29049if { (ac_try="$ac_compile"
29050case "(($ac_try" in
29051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29052  *) ac_try_echo=$ac_try;;
29053esac
29054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29055  (eval "$ac_compile") 2>conftest.er1
29056  ac_status=$?
29057  grep -v '^ *+' conftest.er1 >conftest.err
29058  rm -f conftest.er1
29059  cat conftest.err >&5
29060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29061  (exit $ac_status); } && {
29062	 test -z "$ac_c_werror_flag" ||
29063	 test ! -s conftest.err
29064       } && test -s conftest.$ac_objext; then
29065  ac_lo=$ac_mid; break
29066else
29067  echo "$as_me: failed program was:" >&5
29068sed 's/^/| /' conftest.$ac_ext >&5
29069
29070	ac_hi=`expr '(' $ac_mid ')' - 1`
29071			if test $ac_mid -le $ac_hi; then
29072			  ac_lo= ac_hi=
29073			  break
29074			fi
29075			ac_mid=`expr 2 '*' $ac_mid`
29076fi
29077
29078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29079  done
29080else
29081  echo "$as_me: failed program was:" >&5
29082sed 's/^/| /' conftest.$ac_ext >&5
29083
29084	ac_lo= ac_hi=
29085fi
29086
29087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29088fi
29089
29090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29091# Binary search between lo and hi bounds.
29092while test "x$ac_lo" != "x$ac_hi"; do
29093  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29094  cat >conftest.$ac_ext <<_ACEOF
29095/* confdefs.h.  */
29096_ACEOF
29097cat confdefs.h >>conftest.$ac_ext
29098cat >>conftest.$ac_ext <<_ACEOF
29099/* end confdefs.h.  */
29100$db_includes
29101
29102   typedef size_t ac__type_sizeof_;
29103int
29104main ()
29105{
29106static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29107test_array [0] = 0
29108
29109  ;
29110  return 0;
29111}
29112_ACEOF
29113rm -f conftest.$ac_objext
29114if { (ac_try="$ac_compile"
29115case "(($ac_try" in
29116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29117  *) ac_try_echo=$ac_try;;
29118esac
29119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29120  (eval "$ac_compile") 2>conftest.er1
29121  ac_status=$?
29122  grep -v '^ *+' conftest.er1 >conftest.err
29123  rm -f conftest.er1
29124  cat conftest.err >&5
29125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29126  (exit $ac_status); } && {
29127	 test -z "$ac_c_werror_flag" ||
29128	 test ! -s conftest.err
29129       } && test -s conftest.$ac_objext; then
29130  ac_hi=$ac_mid
29131else
29132  echo "$as_me: failed program was:" >&5
29133sed 's/^/| /' conftest.$ac_ext >&5
29134
29135	ac_lo=`expr '(' $ac_mid ')' + 1`
29136fi
29137
29138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29139done
29140case $ac_lo in
29141?*) ac_cv_sizeof_size_t=$ac_lo;;
29142'') if test "$ac_cv_type_size_t" = yes; then
29143     { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29144See \`config.log' for more details." >&5
29145echo "$as_me: error: cannot compute sizeof (size_t)
29146See \`config.log' for more details." >&2;}
29147   { (exit 77); exit 77; }; }
29148   else
29149     ac_cv_sizeof_size_t=0
29150   fi ;;
29151esac
29152else
29153  cat >conftest.$ac_ext <<_ACEOF
29154/* confdefs.h.  */
29155_ACEOF
29156cat confdefs.h >>conftest.$ac_ext
29157cat >>conftest.$ac_ext <<_ACEOF
29158/* end confdefs.h.  */
29159$db_includes
29160
29161   typedef size_t ac__type_sizeof_;
29162static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29163static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29164#include <stdio.h>
29165#include <stdlib.h>
29166int
29167main ()
29168{
29169
29170  FILE *f = fopen ("conftest.val", "w");
29171  if (! f)
29172    return 1;
29173  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29174    {
29175      long int i = longval ();
29176      if (i != ((long int) (sizeof (ac__type_sizeof_))))
29177	return 1;
29178      fprintf (f, "%ld\n", i);
29179    }
29180  else
29181    {
29182      unsigned long int i = ulongval ();
29183      if (i != ((long int) (sizeof (ac__type_sizeof_))))
29184	return 1;
29185      fprintf (f, "%lu\n", i);
29186    }
29187  return ferror (f) || fclose (f) != 0;
29188
29189  ;
29190  return 0;
29191}
29192_ACEOF
29193rm -f conftest$ac_exeext
29194if { (ac_try="$ac_link"
29195case "(($ac_try" in
29196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29197  *) ac_try_echo=$ac_try;;
29198esac
29199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29200  (eval "$ac_link") 2>&5
29201  ac_status=$?
29202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29204  { (case "(($ac_try" in
29205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29206  *) ac_try_echo=$ac_try;;
29207esac
29208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29209  (eval "$ac_try") 2>&5
29210  ac_status=$?
29211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29212  (exit $ac_status); }; }; then
29213  ac_cv_sizeof_size_t=`cat conftest.val`
29214else
29215  echo "$as_me: program exited with status $ac_status" >&5
29216echo "$as_me: failed program was:" >&5
29217sed 's/^/| /' conftest.$ac_ext >&5
29218
29219( exit $ac_status )
29220if test "$ac_cv_type_size_t" = yes; then
29221     { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29222See \`config.log' for more details." >&5
29223echo "$as_me: error: cannot compute sizeof (size_t)
29224See \`config.log' for more details." >&2;}
29225   { (exit 77); exit 77; }; }
29226   else
29227     ac_cv_sizeof_size_t=0
29228   fi
29229fi
29230rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29231fi
29232rm -f conftest.val
29233fi
29234{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29235echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29236
29237
29238
29239cat >>confdefs.h <<_ACEOF
29240#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29241_ACEOF
29242
29243
29244
29245{ echo "$as_me:$LINENO: checking for ssize_t" >&5
29246echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
29247if test "${ac_cv_type_ssize_t+set}" = set; then
29248  echo $ECHO_N "(cached) $ECHO_C" >&6
29249else
29250  cat >conftest.$ac_ext <<_ACEOF
29251/* confdefs.h.  */
29252_ACEOF
29253cat confdefs.h >>conftest.$ac_ext
29254cat >>conftest.$ac_ext <<_ACEOF
29255/* end confdefs.h.  */
29256$db_includes
29257
29258typedef ssize_t ac__type_new_;
29259int
29260main ()
29261{
29262if ((ac__type_new_ *) 0)
29263  return 0;
29264if (sizeof (ac__type_new_))
29265  return 0;
29266  ;
29267  return 0;
29268}
29269_ACEOF
29270rm -f conftest.$ac_objext
29271if { (ac_try="$ac_compile"
29272case "(($ac_try" in
29273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29274  *) ac_try_echo=$ac_try;;
29275esac
29276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29277  (eval "$ac_compile") 2>conftest.er1
29278  ac_status=$?
29279  grep -v '^ *+' conftest.er1 >conftest.err
29280  rm -f conftest.er1
29281  cat conftest.err >&5
29282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283  (exit $ac_status); } && {
29284	 test -z "$ac_c_werror_flag" ||
29285	 test ! -s conftest.err
29286       } && test -s conftest.$ac_objext; then
29287  ac_cv_type_ssize_t=yes
29288else
29289  echo "$as_me: failed program was:" >&5
29290sed 's/^/| /' conftest.$ac_ext >&5
29291
29292	ac_cv_type_ssize_t=no
29293fi
29294
29295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29296fi
29297{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
29298echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
29299if test $ac_cv_type_ssize_t = yes; then
29300  :
29301else
29302
29303	case "$ac_cv_sizeof_size_t" in
29304	"$ac_cv_sizeof_int")
29305		ssize_t_decl="typedef int ssize_t;";;
29306	"$ac_cv_sizeof_char")
29307		ssize_t_decl="typedef char ssize_t;";;
29308	"$ac_cv_sizeof_short")
29309		ssize_t_decl="typedef short ssize_t;";;
29310	"$ac_cv_sizeof_long")
29311		ssize_t_decl="typedef long ssize_t;";;
29312	"$ac_cv_sizeof_long_long")
29313		ssize_t_decl="typedef long long ssize_t;";;
29314	*)
29315		if test "" != "notfatal"; then
29316			{ { echo "$as_me:$LINENO: error: No signed $ac_cv_sizeof_size_t-byte integral type" >&5
29317echo "$as_me: error: No signed $ac_cv_sizeof_size_t-byte integral type" >&2;}
29318   { (exit 1); exit 1; }; }
29319		fi;;
29320	esac
29321fi
29322
29323
29324# Check for uintmax_t -- if none exists, find the largest unsigned integral
29325# type available.
29326
29327{ echo "$as_me:$LINENO: checking for uintmax_t" >&5
29328echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
29329if test "${ac_cv_type_uintmax_t+set}" = set; then
29330  echo $ECHO_N "(cached) $ECHO_C" >&6
29331else
29332  cat >conftest.$ac_ext <<_ACEOF
29333/* confdefs.h.  */
29334_ACEOF
29335cat confdefs.h >>conftest.$ac_ext
29336cat >>conftest.$ac_ext <<_ACEOF
29337/* end confdefs.h.  */
29338$ac_includes_default
29339typedef uintmax_t ac__type_new_;
29340int
29341main ()
29342{
29343if ((ac__type_new_ *) 0)
29344  return 0;
29345if (sizeof (ac__type_new_))
29346  return 0;
29347  ;
29348  return 0;
29349}
29350_ACEOF
29351rm -f conftest.$ac_objext
29352if { (ac_try="$ac_compile"
29353case "(($ac_try" in
29354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29355  *) ac_try_echo=$ac_try;;
29356esac
29357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29358  (eval "$ac_compile") 2>conftest.er1
29359  ac_status=$?
29360  grep -v '^ *+' conftest.er1 >conftest.err
29361  rm -f conftest.er1
29362  cat conftest.err >&5
29363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364  (exit $ac_status); } && {
29365	 test -z "$ac_c_werror_flag" ||
29366	 test ! -s conftest.err
29367       } && test -s conftest.$ac_objext; then
29368  ac_cv_type_uintmax_t=yes
29369else
29370  echo "$as_me: failed program was:" >&5
29371sed 's/^/| /' conftest.$ac_ext >&5
29372
29373	ac_cv_type_uintmax_t=no
29374fi
29375
29376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29377fi
29378{ echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
29379echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; }
29380if test $ac_cv_type_uintmax_t = yes; then
29381  :
29382else
29383  { echo "$as_me:$LINENO: checking for unsigned long long" >&5
29384echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
29385if test "${ac_cv_type_unsigned_long_long+set}" = set; then
29386  echo $ECHO_N "(cached) $ECHO_C" >&6
29387else
29388  cat >conftest.$ac_ext <<_ACEOF
29389/* confdefs.h.  */
29390_ACEOF
29391cat confdefs.h >>conftest.$ac_ext
29392cat >>conftest.$ac_ext <<_ACEOF
29393/* end confdefs.h.  */
29394$db_includes
29395
29396typedef unsigned long long ac__type_new_;
29397int
29398main ()
29399{
29400if ((ac__type_new_ *) 0)
29401  return 0;
29402if (sizeof (ac__type_new_))
29403  return 0;
29404  ;
29405  return 0;
29406}
29407_ACEOF
29408rm -f conftest.$ac_objext
29409if { (ac_try="$ac_compile"
29410case "(($ac_try" in
29411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29412  *) ac_try_echo=$ac_try;;
29413esac
29414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29415  (eval "$ac_compile") 2>conftest.er1
29416  ac_status=$?
29417  grep -v '^ *+' conftest.er1 >conftest.err
29418  rm -f conftest.er1
29419  cat conftest.err >&5
29420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421  (exit $ac_status); } && {
29422	 test -z "$ac_c_werror_flag" ||
29423	 test ! -s conftest.err
29424       } && test -s conftest.$ac_objext; then
29425  ac_cv_type_unsigned_long_long=yes
29426else
29427  echo "$as_me: failed program was:" >&5
29428sed 's/^/| /' conftest.$ac_ext >&5
29429
29430	ac_cv_type_unsigned_long_long=no
29431fi
29432
29433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29434fi
29435{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
29436echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
29437if test $ac_cv_type_unsigned_long_long = yes; then
29438  uintmax_t_decl="typedef unsigned long long uintmax_t;"
29439else
29440  uintmax_t_decl="typedef unsigned long uintmax_t;"
29441fi
29442
29443fi
29444
29445
29446# Check for uintptr_t -- if none exists, find an integral type which is
29447# the same size as a pointer.
29448
29449{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
29450echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
29451if test "${ac_cv_type_uintptr_t+set}" = set; then
29452  echo $ECHO_N "(cached) $ECHO_C" >&6
29453else
29454  cat >conftest.$ac_ext <<_ACEOF
29455/* confdefs.h.  */
29456_ACEOF
29457cat confdefs.h >>conftest.$ac_ext
29458cat >>conftest.$ac_ext <<_ACEOF
29459/* end confdefs.h.  */
29460$ac_includes_default
29461typedef uintptr_t ac__type_new_;
29462int
29463main ()
29464{
29465if ((ac__type_new_ *) 0)
29466  return 0;
29467if (sizeof (ac__type_new_))
29468  return 0;
29469  ;
29470  return 0;
29471}
29472_ACEOF
29473rm -f conftest.$ac_objext
29474if { (ac_try="$ac_compile"
29475case "(($ac_try" in
29476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29477  *) ac_try_echo=$ac_try;;
29478esac
29479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29480  (eval "$ac_compile") 2>conftest.er1
29481  ac_status=$?
29482  grep -v '^ *+' conftest.er1 >conftest.err
29483  rm -f conftest.er1
29484  cat conftest.err >&5
29485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486  (exit $ac_status); } && {
29487	 test -z "$ac_c_werror_flag" ||
29488	 test ! -s conftest.err
29489       } && test -s conftest.$ac_objext; then
29490  ac_cv_type_uintptr_t=yes
29491else
29492  echo "$as_me: failed program was:" >&5
29493sed 's/^/| /' conftest.$ac_ext >&5
29494
29495	ac_cv_type_uintptr_t=no
29496fi
29497
29498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29499fi
29500{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
29501echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
29502if test $ac_cv_type_uintptr_t = yes; then
29503  :
29504else
29505
29506	case "$ac_cv_sizeof_char_p" in
29507	"$ac_cv_sizeof_unsigned_int")
29508		uintptr_t_decl="typedef unsigned int uintptr_t;";;
29509	"$ac_cv_sizeof_unsigned_char")
29510		uintptr_t_decl="typedef unsigned char uintptr_t;";;
29511	"$ac_cv_sizeof_unsigned_short")
29512		uintptr_t_decl="typedef unsigned short uintptr_t;";;
29513	"$ac_cv_sizeof_unsigned_long")
29514		uintptr_t_decl="typedef unsigned long uintptr_t;";;
29515	"$ac_cv_sizeof_unsigned_long_long")
29516		uintptr_t_decl="typedef unsigned long long uintptr_t;";;
29517	*)
29518		if test "" != "notfatal"; then
29519			{ { echo "$as_me:$LINENO: error: No unsigned $ac_cv_sizeof_char_p-byte integral type" >&5
29520echo "$as_me: error: No unsigned $ac_cv_sizeof_char_p-byte integral type" >&2;}
29521   { (exit 1); exit 1; }; }
29522		fi;;
29523	esac
29524fi
29525
29526
29527
29528   { echo "$as_me:$LINENO: checking for socklen_t" >&5
29529echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29530if test "${ac_cv_type_socklen_t+set}" = set; then
29531  echo $ECHO_N "(cached) $ECHO_C" >&6
29532else
29533  cat >conftest.$ac_ext <<_ACEOF
29534/* confdefs.h.  */
29535_ACEOF
29536cat confdefs.h >>conftest.$ac_ext
29537cat >>conftest.$ac_ext <<_ACEOF
29538/* end confdefs.h.  */
29539$db_includes
29540#ifdef HAVE_SYS_SOCKET_H
29541#include <sys/socket.h>
29542#endif
29543
29544typedef socklen_t ac__type_new_;
29545int
29546main ()
29547{
29548if ((ac__type_new_ *) 0)
29549  return 0;
29550if (sizeof (ac__type_new_))
29551  return 0;
29552  ;
29553  return 0;
29554}
29555_ACEOF
29556rm -f conftest.$ac_objext
29557if { (ac_try="$ac_compile"
29558case "(($ac_try" in
29559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29560  *) ac_try_echo=$ac_try;;
29561esac
29562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29563  (eval "$ac_compile") 2>conftest.er1
29564  ac_status=$?
29565  grep -v '^ *+' conftest.er1 >conftest.err
29566  rm -f conftest.er1
29567  cat conftest.err >&5
29568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569  (exit $ac_status); } && {
29570	 test -z "$ac_c_werror_flag" ||
29571	 test ! -s conftest.err
29572       } && test -s conftest.$ac_objext; then
29573  ac_cv_type_socklen_t=yes
29574else
29575  echo "$as_me: failed program was:" >&5
29576sed 's/^/| /' conftest.$ac_ext >&5
29577
29578	ac_cv_type_socklen_t=no
29579fi
29580
29581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29582fi
29583{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29584echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
29585if test $ac_cv_type_socklen_t = yes; then
29586  :
29587else
29588  { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
29589echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
29590      if test "${db_cv_socklen_t_equiv+set}" = set; then
29591  echo $ECHO_N "(cached) $ECHO_C" >&6
29592else
29593  # Systems have either "struct sockaddr *" or
29594	 # "void *" as the second argument to getpeername
29595	 db_cv_socklen_t_equiv=
29596	 for arg2 in "struct sockaddr" void; do
29597	   for t in int size_t "unsigned int" "long int" "unsigned long int"; do
29598	     cat >conftest.$ac_ext <<_ACEOF
29599/* confdefs.h.  */
29600_ACEOF
29601cat confdefs.h >>conftest.$ac_ext
29602cat >>conftest.$ac_ext <<_ACEOF
29603/* end confdefs.h.  */
29604$db_includes
29605#ifdef HAVE_SYS_SOCKET_H
29606#include <sys/socket.h>
29607#endif
29608		int getpeername (int, $arg2 *, $t *);
29609int
29610main ()
29611{
29612$t len;
29613		getpeername (0, 0, &len);
29614  ;
29615  return 0;
29616}
29617_ACEOF
29618rm -f conftest.$ac_objext
29619if { (ac_try="$ac_compile"
29620case "(($ac_try" in
29621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29622  *) ac_try_echo=$ac_try;;
29623esac
29624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29625  (eval "$ac_compile") 2>conftest.er1
29626  ac_status=$?
29627  grep -v '^ *+' conftest.er1 >conftest.err
29628  rm -f conftest.er1
29629  cat conftest.err >&5
29630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631  (exit $ac_status); } && {
29632	 test -z "$ac_c_werror_flag" ||
29633	 test ! -s conftest.err
29634       } && test -s conftest.$ac_objext; then
29635  db_cv_socklen_t_equiv="$t"
29636else
29637  echo "$as_me: failed program was:" >&5
29638sed 's/^/| /' conftest.$ac_ext >&5
29639
29640
29641fi
29642
29643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29644	     test "$db_cv_socklen_t_equiv" != "" && break
29645	   done
29646	   test "$db_cv_socklen_t_equiv" != "" && break
29647	 done
29648
29649fi
29650
29651      if test "$db_cv_socklen_t_equiv" = ""; then
29652	{ { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
29653echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
29654   { (exit 1); exit 1; }; }
29655      fi
29656      { echo "$as_me:$LINENO: result: $db_cv_socklen_t_equiv" >&5
29657echo "${ECHO_T}$db_cv_socklen_t_equiv" >&6; }
29658
29659cat >>confdefs.h <<_ACEOF
29660#define socklen_t $db_cv_socklen_t_equiv
29661_ACEOF
29662
29663fi
29664
29665
29666
29667{ echo "$as_me:$LINENO: checking for ANSI C exit success/failure values" >&5
29668echo $ECHO_N "checking for ANSI C exit success/failure values... $ECHO_C" >&6; }
29669if test "${db_cv_exit_defines+set}" = set; then
29670  echo $ECHO_N "(cached) $ECHO_C" >&6
29671else
29672
29673cat >conftest.$ac_ext <<_ACEOF
29674/* confdefs.h.  */
29675_ACEOF
29676cat confdefs.h >>conftest.$ac_ext
29677cat >>conftest.$ac_ext <<_ACEOF
29678/* end confdefs.h.  */
29679#include <stdlib.h>
29680int
29681main ()
29682{
29683return (EXIT_SUCCESS);
29684  ;
29685  return 0;
29686}
29687_ACEOF
29688rm -f conftest.$ac_objext
29689if { (ac_try="$ac_compile"
29690case "(($ac_try" in
29691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29692  *) ac_try_echo=$ac_try;;
29693esac
29694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29695  (eval "$ac_compile") 2>conftest.er1
29696  ac_status=$?
29697  grep -v '^ *+' conftest.er1 >conftest.err
29698  rm -f conftest.er1
29699  cat conftest.err >&5
29700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29701  (exit $ac_status); } && {
29702	 test -z "$ac_c_werror_flag" ||
29703	 test ! -s conftest.err
29704       } && test -s conftest.$ac_objext; then
29705  db_cv_exit_defines=yes
29706else
29707  echo "$as_me: failed program was:" >&5
29708sed 's/^/| /' conftest.$ac_ext >&5
29709
29710	db_cv_exit_defines=no
29711fi
29712
29713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29714fi
29715{ echo "$as_me:$LINENO: result: $db_cv_exit_defines" >&5
29716echo "${ECHO_T}$db_cv_exit_defines" >&6; }
29717if test "$db_cv_exit_defines" = "yes"; then
29718	cat >>confdefs.h <<\_ACEOF
29719#define HAVE_EXIT_SUCCESS 1
29720_ACEOF
29721
29722
29723
29724fi
29725
29726{ echo "$as_me:$LINENO: checking for getopt optreset variable" >&5
29727echo $ECHO_N "checking for getopt optreset variable... $ECHO_C" >&6; }
29728if test "${db_cv_optreset+set}" = set; then
29729  echo $ECHO_N "(cached) $ECHO_C" >&6
29730else
29731
29732cat >conftest.$ac_ext <<_ACEOF
29733/* confdefs.h.  */
29734_ACEOF
29735cat confdefs.h >>conftest.$ac_ext
29736cat >>conftest.$ac_ext <<_ACEOF
29737/* end confdefs.h.  */
29738#include <unistd.h>
29739int
29740main ()
29741{
29742extern int optreset; optreset = 1;
29743  ;
29744  return 0;
29745}
29746_ACEOF
29747rm -f conftest.$ac_objext conftest$ac_exeext
29748if { (ac_try="$ac_link"
29749case "(($ac_try" in
29750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29751  *) ac_try_echo=$ac_try;;
29752esac
29753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29754  (eval "$ac_link") 2>conftest.er1
29755  ac_status=$?
29756  grep -v '^ *+' conftest.er1 >conftest.err
29757  rm -f conftest.er1
29758  cat conftest.err >&5
29759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760  (exit $ac_status); } && {
29761	 test -z "$ac_c_werror_flag" ||
29762	 test ! -s conftest.err
29763       } && test -s conftest$ac_exeext &&
29764       $as_test_x conftest$ac_exeext; then
29765  db_cv_optreset=yes
29766else
29767  echo "$as_me: failed program was:" >&5
29768sed 's/^/| /' conftest.$ac_ext >&5
29769
29770	db_cv_optreset=no
29771fi
29772
29773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29774      conftest$ac_exeext conftest.$ac_ext
29775fi
29776{ echo "$as_me:$LINENO: result: $db_cv_optreset" >&5
29777echo "${ECHO_T}$db_cv_optreset" >&6; }
29778if test "$db_cv_optreset" = "yes"; then
29779	cat >>confdefs.h <<\_ACEOF
29780#define HAVE_GETOPT_OPTRESET 1
29781_ACEOF
29782
29783
29784
29785fi
29786
29787# Check for mutexes.
29788# We do this first because it changes $LIBSO_LIBS.
29789
29790
29791# Mutexes we don't test for, but want the #defines to exist for other ports.
29792
29793
29794
29795
29796
29797{ echo "$as_me:$LINENO: checking for mutexes" >&5
29798echo $ECHO_N "checking for mutexes... $ECHO_C" >&6; }
29799if test "${db_cv_mutex+set}" = set; then
29800  echo $ECHO_N "(cached) $ECHO_C" >&6
29801else
29802
29803
29804orig_libs=$LIBS
29805
29806db_cv_mutex=no
29807
29808# Mutexes can be disabled.
29809if test "$db_cv_build_mutexsupport" = no; then
29810	db_cv_mutex=disabled;
29811fi
29812
29813# User-specified Win32 mutexes (MinGW build)
29814if test "$db_cv_mingw" = yes; then
29815	db_cv_mutex=win32/gcc
29816fi
29817
29818if test "$db_cv_mutex" = no; then
29819	# User-specified POSIX or UI mutexes.
29820	#
29821	# There are two different reasons to specify mutexes: First, the
29822	# application is already using one type of mutex and doesn't want
29823	# to mix-and-match (for example, on Solaris, which has POSIX, UI
29824	# and LWP mutexes).  Second, the application's POSIX pthreads
29825	# mutexes don't support inter-process locking, but the application
29826	# wants to use them anyway (for example, some Linux and *BSD systems).
29827	#
29828	# Test for LWP threads before testing for UI/POSIX threads, we prefer
29829	# them on Solaris, for two reasons: a bug in SunOS 5.7 causes
29830	# applications to get pwrite, not pwrite64, if they load the C library
29831	# before the appropriate threads library, e.g., tclsh using dlopen to
29832	# load the DB library.  Second, LWP mutexes are faster than POSIX
29833	# pthread mutexes by some amount.
29834	#
29835	# Otherwise, test for POSIX threads before UI threads.  There are Linux
29836	# systems that support a UI compatibility mode, and applications are
29837	# more likely to be written for POSIX threads than UI threads.
29838
29839	if test "$db_cv_posixmutexes" = yes; then
29840		db_cv_mutex=posix_only;
29841	fi
29842	if test "$db_cv_uimutexes" = yes; then
29843		db_cv_mutex=ui_only;
29844	fi
29845
29846	# LWP threads: _lwp_XXX
29847	if test "$db_cv_mutex" = no; then
29848	cat >conftest.$ac_ext <<_ACEOF
29849/* confdefs.h.  */
29850_ACEOF
29851cat confdefs.h >>conftest.$ac_ext
29852cat >>conftest.$ac_ext <<_ACEOF
29853/* end confdefs.h.  */
29854
29855	#include <synch.h>
29856int
29857main ()
29858{
29859
29860		static lwp_mutex_t mi = SHAREDMUTEX;
29861		static lwp_cond_t ci = SHAREDCV;
29862		lwp_mutex_t mutex = mi;
29863		lwp_cond_t cond = ci;
29864		exit (
29865		_lwp_mutex_lock(&mutex) ||
29866		_lwp_mutex_unlock(&mutex));
29867
29868  ;
29869  return 0;
29870}
29871_ACEOF
29872rm -f conftest.$ac_objext conftest$ac_exeext
29873if { (ac_try="$ac_link"
29874case "(($ac_try" in
29875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29876  *) ac_try_echo=$ac_try;;
29877esac
29878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29879  (eval "$ac_link") 2>conftest.er1
29880  ac_status=$?
29881  grep -v '^ *+' conftest.er1 >conftest.err
29882  rm -f conftest.er1
29883  cat conftest.err >&5
29884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885  (exit $ac_status); } && {
29886	 test -z "$ac_c_werror_flag" ||
29887	 test ! -s conftest.err
29888       } && test -s conftest$ac_exeext &&
29889       $as_test_x conftest$ac_exeext; then
29890  db_cv_mutex=Solaris/lwp
29891else
29892  echo "$as_me: failed program was:" >&5
29893sed 's/^/| /' conftest.$ac_ext >&5
29894
29895
29896fi
29897
29898rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29899      conftest$ac_exeext conftest.$ac_ext
29900	fi
29901
29902	# POSIX.1 pthreads: pthread_XXX
29903	#
29904	# If the user specified we use POSIX pthreads mutexes, and we fail to
29905	# find the full interface, try and configure for just intra-process
29906	# support.
29907	if test "$db_cv_mutex" = no -o "$db_cv_mutex" = posix_only; then
29908		LIBS="$LIBS -lpthread"
29909
29910if test "$cross_compiling" = yes; then
29911  cat >conftest.$ac_ext <<_ACEOF
29912/* confdefs.h.  */
29913_ACEOF
29914cat confdefs.h >>conftest.$ac_ext
29915cat >>conftest.$ac_ext <<_ACEOF
29916/* end confdefs.h.  */
29917
29918#include <pthread.h>
29919int
29920main ()
29921{
29922
29923	pthread_cond_t cond;
29924	pthread_mutex_t mutex;
29925	pthread_condattr_t condattr;
29926	pthread_mutexattr_t mutexattr;
29927	exit (
29928	pthread_condattr_init(&condattr) ||
29929	pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
29930	pthread_mutexattr_init(&mutexattr) ||
29931	pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
29932	pthread_cond_init(&cond, &condattr) ||
29933	pthread_mutex_init(&mutex, &mutexattr) ||
29934	pthread_mutex_lock(&mutex) ||
29935	pthread_mutex_unlock(&mutex) ||
29936	pthread_mutex_destroy(&mutex) ||
29937	pthread_cond_destroy(&cond) ||
29938	pthread_condattr_destroy(&condattr) ||
29939	pthread_mutexattr_destroy(&mutexattr));
29940
29941  ;
29942  return 0;
29943}
29944_ACEOF
29945rm -f conftest.$ac_objext conftest$ac_exeext
29946if { (ac_try="$ac_link"
29947case "(($ac_try" in
29948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29949  *) ac_try_echo=$ac_try;;
29950esac
29951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29952  (eval "$ac_link") 2>conftest.er1
29953  ac_status=$?
29954  grep -v '^ *+' conftest.er1 >conftest.err
29955  rm -f conftest.er1
29956  cat conftest.err >&5
29957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29958  (exit $ac_status); } && {
29959	 test -z "$ac_c_werror_flag" ||
29960	 test ! -s conftest.err
29961       } && test -s conftest$ac_exeext &&
29962       $as_test_x conftest$ac_exeext; then
29963  db_cv_mutex="POSIX/pthreads/library"
29964else
29965  echo "$as_me: failed program was:" >&5
29966sed 's/^/| /' conftest.$ac_ext >&5
29967
29968
29969fi
29970
29971rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29972      conftest$ac_exeext conftest.$ac_ext
29973else
29974  cat >conftest.$ac_ext <<_ACEOF
29975/* confdefs.h.  */
29976_ACEOF
29977cat confdefs.h >>conftest.$ac_ext
29978cat >>conftest.$ac_ext <<_ACEOF
29979/* end confdefs.h.  */
29980
29981#include <pthread.h>
29982main() {
29983	pthread_cond_t cond;
29984	pthread_mutex_t mutex;
29985	pthread_condattr_t condattr;
29986	pthread_mutexattr_t mutexattr;
29987	exit (
29988	pthread_condattr_init(&condattr) ||
29989	pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
29990	pthread_mutexattr_init(&mutexattr) ||
29991	pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
29992	pthread_cond_init(&cond, &condattr) ||
29993	pthread_mutex_init(&mutex, &mutexattr) ||
29994	pthread_mutex_lock(&mutex) ||
29995	pthread_mutex_unlock(&mutex) ||
29996	pthread_mutex_destroy(&mutex) ||
29997	pthread_cond_destroy(&cond) ||
29998	pthread_condattr_destroy(&condattr) ||
29999	pthread_mutexattr_destroy(&mutexattr));
30000}
30001_ACEOF
30002rm -f conftest$ac_exeext
30003if { (ac_try="$ac_link"
30004case "(($ac_try" in
30005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30006  *) ac_try_echo=$ac_try;;
30007esac
30008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30009  (eval "$ac_link") 2>&5
30010  ac_status=$?
30011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30013  { (case "(($ac_try" in
30014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30015  *) ac_try_echo=$ac_try;;
30016esac
30017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30018  (eval "$ac_try") 2>&5
30019  ac_status=$?
30020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021  (exit $ac_status); }; }; then
30022  db_cv_mutex="POSIX/pthreads/library"
30023else
30024  echo "$as_me: program exited with status $ac_status" >&5
30025echo "$as_me: failed program was:" >&5
30026sed 's/^/| /' conftest.$ac_ext >&5
30027
30028fi
30029rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30030fi
30031
30032
30033		LIBS="$orig_libs"
30034	fi
30035	if test "$db_cv_mutex" = no -o "$db_cv_mutex" = posix_only; then
30036
30037if test "$cross_compiling" = yes; then
30038  cat >conftest.$ac_ext <<_ACEOF
30039/* confdefs.h.  */
30040_ACEOF
30041cat confdefs.h >>conftest.$ac_ext
30042cat >>conftest.$ac_ext <<_ACEOF
30043/* end confdefs.h.  */
30044
30045#include <pthread.h>
30046int
30047main ()
30048{
30049
30050	pthread_cond_t cond;
30051	pthread_mutex_t mutex;
30052	pthread_condattr_t condattr;
30053	pthread_mutexattr_t mutexattr;
30054	exit (
30055	pthread_condattr_init(&condattr) ||
30056	pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
30057	pthread_mutexattr_init(&mutexattr) ||
30058	pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
30059	pthread_cond_init(&cond, &condattr) ||
30060	pthread_mutex_init(&mutex, &mutexattr) ||
30061	pthread_mutex_lock(&mutex) ||
30062	pthread_mutex_unlock(&mutex) ||
30063	pthread_mutex_destroy(&mutex) ||
30064	pthread_cond_destroy(&cond) ||
30065	pthread_condattr_destroy(&condattr) ||
30066	pthread_mutexattr_destroy(&mutexattr));
30067
30068  ;
30069  return 0;
30070}
30071_ACEOF
30072rm -f conftest.$ac_objext conftest$ac_exeext
30073if { (ac_try="$ac_link"
30074case "(($ac_try" in
30075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30076  *) ac_try_echo=$ac_try;;
30077esac
30078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30079  (eval "$ac_link") 2>conftest.er1
30080  ac_status=$?
30081  grep -v '^ *+' conftest.er1 >conftest.err
30082  rm -f conftest.er1
30083  cat conftest.err >&5
30084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085  (exit $ac_status); } && {
30086	 test -z "$ac_c_werror_flag" ||
30087	 test ! -s conftest.err
30088       } && test -s conftest$ac_exeext &&
30089       $as_test_x conftest$ac_exeext; then
30090  db_cv_mutex="POSIX/pthreads"
30091else
30092  echo "$as_me: failed program was:" >&5
30093sed 's/^/| /' conftest.$ac_ext >&5
30094
30095
30096fi
30097
30098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30099      conftest$ac_exeext conftest.$ac_ext
30100else
30101  cat >conftest.$ac_ext <<_ACEOF
30102/* confdefs.h.  */
30103_ACEOF
30104cat confdefs.h >>conftest.$ac_ext
30105cat >>conftest.$ac_ext <<_ACEOF
30106/* end confdefs.h.  */
30107
30108#include <pthread.h>
30109main() {
30110	pthread_cond_t cond;
30111	pthread_mutex_t mutex;
30112	pthread_condattr_t condattr;
30113	pthread_mutexattr_t mutexattr;
30114	exit (
30115	pthread_condattr_init(&condattr) ||
30116	pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
30117	pthread_mutexattr_init(&mutexattr) ||
30118	pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
30119	pthread_cond_init(&cond, &condattr) ||
30120	pthread_mutex_init(&mutex, &mutexattr) ||
30121	pthread_mutex_lock(&mutex) ||
30122	pthread_mutex_unlock(&mutex) ||
30123	pthread_mutex_destroy(&mutex) ||
30124	pthread_cond_destroy(&cond) ||
30125	pthread_condattr_destroy(&condattr) ||
30126	pthread_mutexattr_destroy(&mutexattr));
30127}
30128_ACEOF
30129rm -f conftest$ac_exeext
30130if { (ac_try="$ac_link"
30131case "(($ac_try" in
30132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30133  *) ac_try_echo=$ac_try;;
30134esac
30135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30136  (eval "$ac_link") 2>&5
30137  ac_status=$?
30138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30139  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30140  { (case "(($ac_try" in
30141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30142  *) ac_try_echo=$ac_try;;
30143esac
30144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30145  (eval "$ac_try") 2>&5
30146  ac_status=$?
30147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30148  (exit $ac_status); }; }; then
30149  db_cv_mutex="POSIX/pthreads"
30150else
30151  echo "$as_me: program exited with status $ac_status" >&5
30152echo "$as_me: failed program was:" >&5
30153sed 's/^/| /' conftest.$ac_ext >&5
30154
30155fi
30156rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30157fi
30158
30159
30160	fi
30161	if test "$db_cv_mutex" = posix_only; then
30162
30163if test "$cross_compiling" = yes; then
30164  cat >conftest.$ac_ext <<_ACEOF
30165/* confdefs.h.  */
30166_ACEOF
30167cat confdefs.h >>conftest.$ac_ext
30168cat >>conftest.$ac_ext <<_ACEOF
30169/* end confdefs.h.  */
30170
30171#include <pthread.h>
30172int
30173main ()
30174{
30175
30176	pthread_cond_t cond;
30177	pthread_mutex_t mutex;
30178	pthread_condattr_t condattr;
30179	pthread_mutexattr_t mutexattr;
30180	exit (
30181	pthread_condattr_init(&condattr) ||
30182	pthread_mutexattr_init(&mutexattr) ||
30183	pthread_cond_init(&cond, &condattr) ||
30184	pthread_mutex_init(&mutex, &mutexattr) ||
30185	pthread_mutex_lock(&mutex) ||
30186	pthread_mutex_unlock(&mutex) ||
30187	pthread_mutex_destroy(&mutex) ||
30188	pthread_cond_destroy(&cond) ||
30189	pthread_condattr_destroy(&condattr) ||
30190	pthread_mutexattr_destroy(&mutexattr));
30191
30192  ;
30193  return 0;
30194}
30195_ACEOF
30196rm -f conftest.$ac_objext conftest$ac_exeext
30197if { (ac_try="$ac_link"
30198case "(($ac_try" in
30199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30200  *) ac_try_echo=$ac_try;;
30201esac
30202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30203  (eval "$ac_link") 2>conftest.er1
30204  ac_status=$?
30205  grep -v '^ *+' conftest.er1 >conftest.err
30206  rm -f conftest.er1
30207  cat conftest.err >&5
30208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209  (exit $ac_status); } && {
30210	 test -z "$ac_c_werror_flag" ||
30211	 test ! -s conftest.err
30212       } && test -s conftest$ac_exeext &&
30213       $as_test_x conftest$ac_exeext; then
30214  db_cv_mutex="POSIX/pthreads/private"
30215else
30216  echo "$as_me: failed program was:" >&5
30217sed 's/^/| /' conftest.$ac_ext >&5
30218
30219
30220fi
30221
30222rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30223      conftest$ac_exeext conftest.$ac_ext
30224else
30225  cat >conftest.$ac_ext <<_ACEOF
30226/* confdefs.h.  */
30227_ACEOF
30228cat confdefs.h >>conftest.$ac_ext
30229cat >>conftest.$ac_ext <<_ACEOF
30230/* end confdefs.h.  */
30231
30232#include <pthread.h>
30233main() {
30234	pthread_cond_t cond;
30235	pthread_mutex_t mutex;
30236	pthread_condattr_t condattr;
30237	pthread_mutexattr_t mutexattr;
30238	exit (
30239	pthread_condattr_init(&condattr) ||
30240	pthread_mutexattr_init(&mutexattr) ||
30241	pthread_cond_init(&cond, &condattr) ||
30242	pthread_mutex_init(&mutex, &mutexattr) ||
30243	pthread_mutex_lock(&mutex) ||
30244	pthread_mutex_unlock(&mutex) ||
30245	pthread_mutex_destroy(&mutex) ||
30246	pthread_cond_destroy(&cond) ||
30247	pthread_condattr_destroy(&condattr) ||
30248	pthread_mutexattr_destroy(&mutexattr));
30249}
30250_ACEOF
30251rm -f conftest$ac_exeext
30252if { (ac_try="$ac_link"
30253case "(($ac_try" in
30254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30255  *) ac_try_echo=$ac_try;;
30256esac
30257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30258  (eval "$ac_link") 2>&5
30259  ac_status=$?
30260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30261  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30262  { (case "(($ac_try" in
30263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30264  *) ac_try_echo=$ac_try;;
30265esac
30266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30267  (eval "$ac_try") 2>&5
30268  ac_status=$?
30269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30270  (exit $ac_status); }; }; then
30271  db_cv_mutex="POSIX/pthreads/private"
30272else
30273  echo "$as_me: program exited with status $ac_status" >&5
30274echo "$as_me: failed program was:" >&5
30275sed 's/^/| /' conftest.$ac_ext >&5
30276
30277fi
30278rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30279fi
30280
30281
30282	fi
30283	if test "$db_cv_mutex" = posix_only; then
30284		LIBS="$LIBS -lpthread"
30285
30286if test "$cross_compiling" = yes; then
30287  cat >conftest.$ac_ext <<_ACEOF
30288/* confdefs.h.  */
30289_ACEOF
30290cat confdefs.h >>conftest.$ac_ext
30291cat >>conftest.$ac_ext <<_ACEOF
30292/* end confdefs.h.  */
30293
30294#include <pthread.h>
30295int
30296main ()
30297{
30298
30299	pthread_cond_t cond;
30300	pthread_mutex_t mutex;
30301	pthread_condattr_t condattr;
30302	pthread_mutexattr_t mutexattr;
30303	exit (
30304	pthread_condattr_init(&condattr) ||
30305	pthread_mutexattr_init(&mutexattr) ||
30306	pthread_cond_init(&cond, &condattr) ||
30307	pthread_mutex_init(&mutex, &mutexattr) ||
30308	pthread_mutex_lock(&mutex) ||
30309	pthread_mutex_unlock(&mutex) ||
30310	pthread_mutex_destroy(&mutex) ||
30311	pthread_cond_destroy(&cond) ||
30312	pthread_condattr_destroy(&condattr) ||
30313	pthread_mutexattr_destroy(&mutexattr));
30314
30315  ;
30316  return 0;
30317}
30318_ACEOF
30319rm -f conftest.$ac_objext conftest$ac_exeext
30320if { (ac_try="$ac_link"
30321case "(($ac_try" in
30322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30323  *) ac_try_echo=$ac_try;;
30324esac
30325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30326  (eval "$ac_link") 2>conftest.er1
30327  ac_status=$?
30328  grep -v '^ *+' conftest.er1 >conftest.err
30329  rm -f conftest.er1
30330  cat conftest.err >&5
30331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332  (exit $ac_status); } && {
30333	 test -z "$ac_c_werror_flag" ||
30334	 test ! -s conftest.err
30335       } && test -s conftest$ac_exeext &&
30336       $as_test_x conftest$ac_exeext; then
30337  db_cv_mutex="POSIX/pthreads/library/private"
30338else
30339  echo "$as_me: failed program was:" >&5
30340sed 's/^/| /' conftest.$ac_ext >&5
30341
30342
30343fi
30344
30345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30346      conftest$ac_exeext conftest.$ac_ext
30347else
30348  cat >conftest.$ac_ext <<_ACEOF
30349/* confdefs.h.  */
30350_ACEOF
30351cat confdefs.h >>conftest.$ac_ext
30352cat >>conftest.$ac_ext <<_ACEOF
30353/* end confdefs.h.  */
30354
30355#include <pthread.h>
30356main() {
30357	pthread_cond_t cond;
30358	pthread_mutex_t mutex;
30359	pthread_condattr_t condattr;
30360	pthread_mutexattr_t mutexattr;
30361	exit (
30362	pthread_condattr_init(&condattr) ||
30363	pthread_mutexattr_init(&mutexattr) ||
30364	pthread_cond_init(&cond, &condattr) ||
30365	pthread_mutex_init(&mutex, &mutexattr) ||
30366	pthread_mutex_lock(&mutex) ||
30367	pthread_mutex_unlock(&mutex) ||
30368	pthread_mutex_destroy(&mutex) ||
30369	pthread_cond_destroy(&cond) ||
30370	pthread_condattr_destroy(&condattr) ||
30371	pthread_mutexattr_destroy(&mutexattr));
30372}
30373_ACEOF
30374rm -f conftest$ac_exeext
30375if { (ac_try="$ac_link"
30376case "(($ac_try" in
30377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30378  *) ac_try_echo=$ac_try;;
30379esac
30380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30381  (eval "$ac_link") 2>&5
30382  ac_status=$?
30383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30385  { (case "(($ac_try" in
30386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30387  *) ac_try_echo=$ac_try;;
30388esac
30389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30390  (eval "$ac_try") 2>&5
30391  ac_status=$?
30392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30393  (exit $ac_status); }; }; then
30394  db_cv_mutex="POSIX/pthreads/library/private"
30395else
30396  echo "$as_me: program exited with status $ac_status" >&5
30397echo "$as_me: failed program was:" >&5
30398sed 's/^/| /' conftest.$ac_ext >&5
30399
30400fi
30401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30402fi
30403
30404
30405		LIBS="$orig_libs"
30406	fi
30407	if test "$db_cv_mutex" = posix_only; then
30408		{ { echo "$as_me:$LINENO: error: unable to find POSIX 1003.1 mutex interfaces" >&5
30409echo "$as_me: error: unable to find POSIX 1003.1 mutex interfaces" >&2;}
30410   { (exit 1); exit 1; }; }
30411	fi
30412
30413	# UI threads: thr_XXX
30414	if test "$db_cv_mutex" = no -o "$db_cv_mutex" = ui_only; then
30415	LIBS="$LIBS -lthread"
30416	cat >conftest.$ac_ext <<_ACEOF
30417/* confdefs.h.  */
30418_ACEOF
30419cat confdefs.h >>conftest.$ac_ext
30420cat >>conftest.$ac_ext <<_ACEOF
30421/* end confdefs.h.  */
30422
30423	#include <thread.h>
30424	#include <synch.h>
30425int
30426main ()
30427{
30428
30429		mutex_t mutex;
30430		cond_t cond;
30431		int type = USYNC_PROCESS;
30432		exit (
30433		mutex_init(&mutex, type, NULL) ||
30434		cond_init(&cond, type, NULL) ||
30435		mutex_lock(&mutex) ||
30436		mutex_unlock(&mutex));
30437
30438  ;
30439  return 0;
30440}
30441_ACEOF
30442rm -f conftest.$ac_objext conftest$ac_exeext
30443if { (ac_try="$ac_link"
30444case "(($ac_try" in
30445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30446  *) ac_try_echo=$ac_try;;
30447esac
30448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30449  (eval "$ac_link") 2>conftest.er1
30450  ac_status=$?
30451  grep -v '^ *+' conftest.er1 >conftest.err
30452  rm -f conftest.er1
30453  cat conftest.err >&5
30454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30455  (exit $ac_status); } && {
30456	 test -z "$ac_c_werror_flag" ||
30457	 test ! -s conftest.err
30458       } && test -s conftest$ac_exeext &&
30459       $as_test_x conftest$ac_exeext; then
30460  db_cv_mutex=UI/threads/library
30461else
30462  echo "$as_me: failed program was:" >&5
30463sed 's/^/| /' conftest.$ac_ext >&5
30464
30465
30466fi
30467
30468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30469      conftest$ac_exeext conftest.$ac_ext
30470	LIBS="$orig_libs"
30471	fi
30472	if test "$db_cv_mutex" = no -o "$db_cv_mutex" = ui_only; then
30473	cat >conftest.$ac_ext <<_ACEOF
30474/* confdefs.h.  */
30475_ACEOF
30476cat confdefs.h >>conftest.$ac_ext
30477cat >>conftest.$ac_ext <<_ACEOF
30478/* end confdefs.h.  */
30479
30480	#include <thread.h>
30481	#include <synch.h>
30482int
30483main ()
30484{
30485
30486		mutex_t mutex;
30487		cond_t cond;
30488		int type = USYNC_PROCESS;
30489		exit (
30490		mutex_init(&mutex, type, NULL) ||
30491		cond_init(&cond, type, NULL) ||
30492		mutex_lock(&mutex) ||
30493		mutex_unlock(&mutex));
30494
30495  ;
30496  return 0;
30497}
30498_ACEOF
30499rm -f conftest.$ac_objext conftest$ac_exeext
30500if { (ac_try="$ac_link"
30501case "(($ac_try" in
30502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30503  *) ac_try_echo=$ac_try;;
30504esac
30505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30506  (eval "$ac_link") 2>conftest.er1
30507  ac_status=$?
30508  grep -v '^ *+' conftest.er1 >conftest.err
30509  rm -f conftest.er1
30510  cat conftest.err >&5
30511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30512  (exit $ac_status); } && {
30513	 test -z "$ac_c_werror_flag" ||
30514	 test ! -s conftest.err
30515       } && test -s conftest$ac_exeext &&
30516       $as_test_x conftest$ac_exeext; then
30517  db_cv_mutex=UI/threads
30518else
30519  echo "$as_me: failed program was:" >&5
30520sed 's/^/| /' conftest.$ac_ext >&5
30521
30522
30523fi
30524
30525rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30526      conftest$ac_exeext conftest.$ac_ext
30527	fi
30528	if test "$db_cv_mutex" = ui_only; then
30529		{ { echo "$as_me:$LINENO: error: unable to find UI mutex interfaces" >&5
30530echo "$as_me: error: unable to find UI mutex interfaces" >&2;}
30531   { (exit 1); exit 1; }; }
30532	fi
30533
30534	# We're done testing for pthreads-style mutexes.  Next, check for
30535	# test-and-set mutexes.  Check first for hybrid implementations,
30536	# because we check for them even if we've already found a
30537	# pthreads-style mutex and they're the most common architectures
30538	# anyway.
30539	#
30540	# x86/gcc: FreeBSD, NetBSD, BSD/OS, Linux
30541	cat >conftest.$ac_ext <<_ACEOF
30542/* confdefs.h.  */
30543_ACEOF
30544cat confdefs.h >>conftest.$ac_ext
30545cat >>conftest.$ac_ext <<_ACEOF
30546/* end confdefs.h.  */
30547
30548int
30549main ()
30550{
30551
30552	#if (defined(i386) || defined(__i386__)) && defined(__GNUC__)
30553		exit(0);
30554	#else
30555		FAIL TO COMPILE/LINK
30556	#endif
30557
30558  ;
30559  return 0;
30560}
30561_ACEOF
30562rm -f conftest.$ac_objext
30563if { (ac_try="$ac_compile"
30564case "(($ac_try" in
30565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30566  *) ac_try_echo=$ac_try;;
30567esac
30568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30569  (eval "$ac_compile") 2>conftest.er1
30570  ac_status=$?
30571  grep -v '^ *+' conftest.er1 >conftest.err
30572  rm -f conftest.er1
30573  cat conftest.err >&5
30574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575  (exit $ac_status); } && {
30576	 test -z "$ac_c_werror_flag" ||
30577	 test ! -s conftest.err
30578       } && test -s conftest.$ac_objext; then
30579  db_cv_mutex="$db_cv_mutex/x86/gcc-assembly"
30580else
30581  echo "$as_me: failed program was:" >&5
30582sed 's/^/| /' conftest.$ac_ext >&5
30583
30584
30585fi
30586
30587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30588
30589	# x86_64/gcc: FreeBSD, NetBSD, BSD/OS, Linux
30590	cat >conftest.$ac_ext <<_ACEOF
30591/* confdefs.h.  */
30592_ACEOF
30593cat confdefs.h >>conftest.$ac_ext
30594cat >>conftest.$ac_ext <<_ACEOF
30595/* end confdefs.h.  */
30596
30597int
30598main ()
30599{
30600
30601	#if (defined(x86_64) || defined(__x86_64__)) && defined(__GNUC__)
30602		exit(0);
30603	#else
30604		FAIL TO COMPILE/LINK
30605	#endif
30606
30607  ;
30608  return 0;
30609}
30610_ACEOF
30611rm -f conftest.$ac_objext
30612if { (ac_try="$ac_compile"
30613case "(($ac_try" in
30614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30615  *) ac_try_echo=$ac_try;;
30616esac
30617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30618  (eval "$ac_compile") 2>conftest.er1
30619  ac_status=$?
30620  grep -v '^ *+' conftest.er1 >conftest.err
30621  rm -f conftest.er1
30622  cat conftest.err >&5
30623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624  (exit $ac_status); } && {
30625	 test -z "$ac_c_werror_flag" ||
30626	 test ! -s conftest.err
30627       } && test -s conftest.$ac_objext; then
30628  db_cv_mutex="$db_cv_mutex/x86_64/gcc-assembly"
30629else
30630  echo "$as_me: failed program was:" >&5
30631sed 's/^/| /' conftest.$ac_ext >&5
30632
30633
30634fi
30635
30636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30637
30638	# Solaris is one of the systems where we can configure hybrid mutexes.
30639	# However, we require the membar_enter function for that, and only newer
30640	# Solaris releases have it.  Check to see if we can configure hybrids.
30641	cat >conftest.$ac_ext <<_ACEOF
30642/* confdefs.h.  */
30643_ACEOF
30644cat confdefs.h >>conftest.$ac_ext
30645cat >>conftest.$ac_ext <<_ACEOF
30646/* end confdefs.h.  */
30647
30648	#include <sys/atomic.h>
30649	#include <sys/machlock.h>
30650int
30651main ()
30652{
30653
30654		typedef lock_t tsl_t;
30655		lock_t x;
30656		_lock_try(&x);
30657		_lock_clear(&x);
30658		membar_enter();
30659
30660  ;
30661  return 0;
30662}
30663_ACEOF
30664rm -f conftest.$ac_objext conftest$ac_exeext
30665if { (ac_try="$ac_link"
30666case "(($ac_try" in
30667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30668  *) ac_try_echo=$ac_try;;
30669esac
30670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30671  (eval "$ac_link") 2>conftest.er1
30672  ac_status=$?
30673  grep -v '^ *+' conftest.er1 >conftest.err
30674  rm -f conftest.er1
30675  cat conftest.err >&5
30676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677  (exit $ac_status); } && {
30678	 test -z "$ac_c_werror_flag" ||
30679	 test ! -s conftest.err
30680       } && test -s conftest$ac_exeext &&
30681       $as_test_x conftest$ac_exeext; then
30682  db_cv_mutex="$db_cv_mutex/Solaris/_lock_try/membar"
30683else
30684  echo "$as_me: failed program was:" >&5
30685sed 's/^/| /' conftest.$ac_ext >&5
30686
30687
30688fi
30689
30690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30691      conftest$ac_exeext conftest.$ac_ext
30692
30693	# Sparc/gcc: SunOS, Solaris
30694	cat >conftest.$ac_ext <<_ACEOF
30695/* confdefs.h.  */
30696_ACEOF
30697cat confdefs.h >>conftest.$ac_ext
30698cat >>conftest.$ac_ext <<_ACEOF
30699/* end confdefs.h.  */
30700
30701int
30702main ()
30703{
30704
30705	#if defined(__sparc__) && defined(__GNUC__)
30706		exit(0);
30707	#else
30708		FAIL TO COMPILE/LINK
30709	#endif
30710
30711  ;
30712  return 0;
30713}
30714_ACEOF
30715rm -f conftest.$ac_objext
30716if { (ac_try="$ac_compile"
30717case "(($ac_try" in
30718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30719  *) ac_try_echo=$ac_try;;
30720esac
30721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30722  (eval "$ac_compile") 2>conftest.er1
30723  ac_status=$?
30724  grep -v '^ *+' conftest.er1 >conftest.err
30725  rm -f conftest.er1
30726  cat conftest.err >&5
30727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30728  (exit $ac_status); } && {
30729	 test -z "$ac_c_werror_flag" ||
30730	 test ! -s conftest.err
30731       } && test -s conftest.$ac_objext; then
30732  db_cv_mutex="$db_cv_mutex/Sparc/gcc-assembly"
30733else
30734  echo "$as_me: failed program was:" >&5
30735sed 's/^/| /' conftest.$ac_ext >&5
30736
30737
30738fi
30739
30740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30741
30742	# We're done testing for any hybrid mutex implementations.  If we did
30743	# not find a pthreads-style mutex, but did find a test-and-set mutex,
30744	# we set db_cv_mutex to "no/XXX" -- clean that up.
30745	db_cv_mutex=`echo $db_cv_mutex | sed 's/^no\///'`
30746fi
30747
30748# If we still don't have a mutex implementation yet, continue testing for a
30749# test-and-set mutex implementation.
30750
30751# _lock_try/_lock_clear: Solaris
30752# On Solaris systems without other mutex interfaces, DB uses the undocumented
30753# _lock_try _lock_clear function calls instead of either the sema_trywait(3T)
30754# or sema_wait(3T) function calls.  This is because of problems in those
30755# interfaces in some releases of the Solaris C library.
30756if test "$db_cv_mutex" = no; then
30757cat >conftest.$ac_ext <<_ACEOF
30758/* confdefs.h.  */
30759_ACEOF
30760cat confdefs.h >>conftest.$ac_ext
30761cat >>conftest.$ac_ext <<_ACEOF
30762/* end confdefs.h.  */
30763
30764#include <sys/atomic.h>
30765#include <sys/machlock.h>
30766int
30767main ()
30768{
30769
30770	typedef lock_t tsl_t;
30771	lock_t x;
30772	_lock_try(&x);
30773	_lock_clear(&x);
30774
30775  ;
30776  return 0;
30777}
30778_ACEOF
30779rm -f conftest.$ac_objext conftest$ac_exeext
30780if { (ac_try="$ac_link"
30781case "(($ac_try" in
30782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30783  *) ac_try_echo=$ac_try;;
30784esac
30785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30786  (eval "$ac_link") 2>conftest.er1
30787  ac_status=$?
30788  grep -v '^ *+' conftest.er1 >conftest.err
30789  rm -f conftest.er1
30790  cat conftest.err >&5
30791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30792  (exit $ac_status); } && {
30793	 test -z "$ac_c_werror_flag" ||
30794	 test ! -s conftest.err
30795       } && test -s conftest$ac_exeext &&
30796       $as_test_x conftest$ac_exeext; then
30797  db_cv_mutex=Solaris/_lock_try
30798else
30799  echo "$as_me: failed program was:" >&5
30800sed 's/^/| /' conftest.$ac_ext >&5
30801
30802
30803fi
30804
30805rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30806      conftest$ac_exeext conftest.$ac_ext
30807fi
30808
30809# msemaphore: HPPA only
30810# Try HPPA before general msem test, it needs special alignment.
30811if test "$db_cv_mutex" = no; then
30812cat >conftest.$ac_ext <<_ACEOF
30813/* confdefs.h.  */
30814_ACEOF
30815cat confdefs.h >>conftest.$ac_ext
30816cat >>conftest.$ac_ext <<_ACEOF
30817/* end confdefs.h.  */
30818
30819#include <sys/mman.h>
30820int
30821main ()
30822{
30823
30824#if defined(__hppa)
30825	typedef msemaphore tsl_t;
30826	msemaphore x;
30827	msem_init(&x, 0);
30828	msem_lock(&x, 0);
30829	msem_unlock(&x, 0);
30830	exit(0);
30831#else
30832	FAIL TO COMPILE/LINK
30833#endif
30834
30835  ;
30836  return 0;
30837}
30838_ACEOF
30839rm -f conftest.$ac_objext conftest$ac_exeext
30840if { (ac_try="$ac_link"
30841case "(($ac_try" in
30842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30843  *) ac_try_echo=$ac_try;;
30844esac
30845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30846  (eval "$ac_link") 2>conftest.er1
30847  ac_status=$?
30848  grep -v '^ *+' conftest.er1 >conftest.err
30849  rm -f conftest.er1
30850  cat conftest.err >&5
30851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30852  (exit $ac_status); } && {
30853	 test -z "$ac_c_werror_flag" ||
30854	 test ! -s conftest.err
30855       } && test -s conftest$ac_exeext &&
30856       $as_test_x conftest$ac_exeext; then
30857  db_cv_mutex=HP/msem_init
30858else
30859  echo "$as_me: failed program was:" >&5
30860sed 's/^/| /' conftest.$ac_ext >&5
30861
30862
30863fi
30864
30865rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30866      conftest$ac_exeext conftest.$ac_ext
30867fi
30868
30869# msemaphore: AIX, OSF/1
30870if test "$db_cv_mutex" = no; then
30871cat >conftest.$ac_ext <<_ACEOF
30872/* confdefs.h.  */
30873_ACEOF
30874cat confdefs.h >>conftest.$ac_ext
30875cat >>conftest.$ac_ext <<_ACEOF
30876/* end confdefs.h.  */
30877
30878#include <sys/types.h>
30879#include <sys/mman.h>
30880int
30881main ()
30882{
30883
30884	typedef msemaphore tsl_t;
30885	msemaphore x;
30886	msem_init(&x, 0);
30887	msem_lock(&x, 0);
30888	msem_unlock(&x, 0);
30889	exit(0);
30890
30891  ;
30892  return 0;
30893}
30894_ACEOF
30895rm -f conftest.$ac_objext conftest$ac_exeext
30896if { (ac_try="$ac_link"
30897case "(($ac_try" in
30898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30899  *) ac_try_echo=$ac_try;;
30900esac
30901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30902  (eval "$ac_link") 2>conftest.er1
30903  ac_status=$?
30904  grep -v '^ *+' conftest.er1 >conftest.err
30905  rm -f conftest.er1
30906  cat conftest.err >&5
30907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30908  (exit $ac_status); } && {
30909	 test -z "$ac_c_werror_flag" ||
30910	 test ! -s conftest.err
30911       } && test -s conftest$ac_exeext &&
30912       $as_test_x conftest$ac_exeext; then
30913  db_cv_mutex=UNIX/msem_init
30914else
30915  echo "$as_me: failed program was:" >&5
30916sed 's/^/| /' conftest.$ac_ext >&5
30917
30918
30919fi
30920
30921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30922      conftest$ac_exeext conftest.$ac_ext
30923fi
30924
30925# ReliantUNIX
30926if test "$db_cv_mutex" = no; then
30927LIBS="$LIBS -lmproc"
30928cat >conftest.$ac_ext <<_ACEOF
30929/* confdefs.h.  */
30930_ACEOF
30931cat confdefs.h >>conftest.$ac_ext
30932cat >>conftest.$ac_ext <<_ACEOF
30933/* end confdefs.h.  */
30934
30935#include <ulocks.h>
30936int
30937main ()
30938{
30939
30940	typedef spinlock_t tsl_t;
30941	spinlock_t x;
30942	initspin(&x, 1);
30943	cspinlock(&x);
30944	spinunlock(&x);
30945
30946  ;
30947  return 0;
30948}
30949_ACEOF
30950rm -f conftest.$ac_objext conftest$ac_exeext
30951if { (ac_try="$ac_link"
30952case "(($ac_try" in
30953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30954  *) ac_try_echo=$ac_try;;
30955esac
30956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30957  (eval "$ac_link") 2>conftest.er1
30958  ac_status=$?
30959  grep -v '^ *+' conftest.er1 >conftest.err
30960  rm -f conftest.er1
30961  cat conftest.err >&5
30962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963  (exit $ac_status); } && {
30964	 test -z "$ac_c_werror_flag" ||
30965	 test ! -s conftest.err
30966       } && test -s conftest$ac_exeext &&
30967       $as_test_x conftest$ac_exeext; then
30968  db_cv_mutex=ReliantUNIX/initspin
30969else
30970  echo "$as_me: failed program was:" >&5
30971sed 's/^/| /' conftest.$ac_ext >&5
30972
30973
30974fi
30975
30976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30977      conftest$ac_exeext conftest.$ac_ext
30978LIBS="$orig_libs"
30979fi
30980
30981# SCO: UnixWare has threads in libthread, but OpenServer doesn't.
30982if test "$db_cv_mutex" = no; then
30983cat >conftest.$ac_ext <<_ACEOF
30984/* confdefs.h.  */
30985_ACEOF
30986cat confdefs.h >>conftest.$ac_ext
30987cat >>conftest.$ac_ext <<_ACEOF
30988/* end confdefs.h.  */
30989
30990int
30991main ()
30992{
30993
30994#if defined(__USLC__)
30995	exit(0);
30996#else
30997	FAIL TO COMPILE/LINK
30998#endif
30999
31000  ;
31001  return 0;
31002}
31003_ACEOF
31004rm -f conftest.$ac_objext
31005if { (ac_try="$ac_compile"
31006case "(($ac_try" in
31007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31008  *) ac_try_echo=$ac_try;;
31009esac
31010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31011  (eval "$ac_compile") 2>conftest.er1
31012  ac_status=$?
31013  grep -v '^ *+' conftest.er1 >conftest.err
31014  rm -f conftest.er1
31015  cat conftest.err >&5
31016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017  (exit $ac_status); } && {
31018	 test -z "$ac_c_werror_flag" ||
31019	 test ! -s conftest.err
31020       } && test -s conftest.$ac_objext; then
31021  db_cv_mutex=SCO/x86/cc-assembly
31022else
31023  echo "$as_me: failed program was:" >&5
31024sed 's/^/| /' conftest.$ac_ext >&5
31025
31026
31027fi
31028
31029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31030fi
31031
31032# abilock_t: SGI
31033if test "$db_cv_mutex" = no; then
31034cat >conftest.$ac_ext <<_ACEOF
31035/* confdefs.h.  */
31036_ACEOF
31037cat confdefs.h >>conftest.$ac_ext
31038cat >>conftest.$ac_ext <<_ACEOF
31039/* end confdefs.h.  */
31040
31041#include <abi_mutex.h>
31042int
31043main ()
31044{
31045
31046	typedef abilock_t tsl_t;
31047	abilock_t x;
31048	init_lock(&x);
31049	acquire_lock(&x);
31050	release_lock(&x);
31051
31052  ;
31053  return 0;
31054}
31055_ACEOF
31056rm -f conftest.$ac_objext conftest$ac_exeext
31057if { (ac_try="$ac_link"
31058case "(($ac_try" in
31059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31060  *) ac_try_echo=$ac_try;;
31061esac
31062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31063  (eval "$ac_link") 2>conftest.er1
31064  ac_status=$?
31065  grep -v '^ *+' conftest.er1 >conftest.err
31066  rm -f conftest.er1
31067  cat conftest.err >&5
31068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069  (exit $ac_status); } && {
31070	 test -z "$ac_c_werror_flag" ||
31071	 test ! -s conftest.err
31072       } && test -s conftest$ac_exeext &&
31073       $as_test_x conftest$ac_exeext; then
31074  db_cv_mutex=SGI/init_lock
31075else
31076  echo "$as_me: failed program was:" >&5
31077sed 's/^/| /' conftest.$ac_ext >&5
31078
31079
31080fi
31081
31082rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31083      conftest$ac_exeext conftest.$ac_ext
31084fi
31085
31086# sema_t: Solaris
31087# The sema_XXX calls do not work on Solaris 5.5.  I see no reason to ever
31088# turn this test on, unless we find some other platform that uses the old
31089# POSIX.1 interfaces.
31090if test "$db_cv_mutex" = DOESNT_WORK; then
31091cat >conftest.$ac_ext <<_ACEOF
31092/* confdefs.h.  */
31093_ACEOF
31094cat confdefs.h >>conftest.$ac_ext
31095cat >>conftest.$ac_ext <<_ACEOF
31096/* end confdefs.h.  */
31097
31098#include <synch.h>
31099int
31100main ()
31101{
31102
31103	typedef sema_t tsl_t;
31104	sema_t x;
31105	sema_init(&x, 1, USYNC_PROCESS, NULL);
31106	sema_wait(&x);
31107	sema_post(&x);
31108
31109  ;
31110  return 0;
31111}
31112_ACEOF
31113rm -f conftest.$ac_objext conftest$ac_exeext
31114if { (ac_try="$ac_link"
31115case "(($ac_try" in
31116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31117  *) ac_try_echo=$ac_try;;
31118esac
31119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31120  (eval "$ac_link") 2>conftest.er1
31121  ac_status=$?
31122  grep -v '^ *+' conftest.er1 >conftest.err
31123  rm -f conftest.er1
31124  cat conftest.err >&5
31125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126  (exit $ac_status); } && {
31127	 test -z "$ac_c_werror_flag" ||
31128	 test ! -s conftest.err
31129       } && test -s conftest$ac_exeext &&
31130       $as_test_x conftest$ac_exeext; then
31131  db_cv_mutex=UNIX/sema_init
31132else
31133  echo "$as_me: failed program was:" >&5
31134sed 's/^/| /' conftest.$ac_ext >&5
31135
31136
31137fi
31138
31139rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31140      conftest$ac_exeext conftest.$ac_ext
31141fi
31142
31143# _check_lock/_clear_lock: AIX
31144if test "$db_cv_mutex" = no; then
31145cat >conftest.$ac_ext <<_ACEOF
31146/* confdefs.h.  */
31147_ACEOF
31148cat confdefs.h >>conftest.$ac_ext
31149cat >>conftest.$ac_ext <<_ACEOF
31150/* end confdefs.h.  */
31151
31152#include <sys/atomic_op.h>
31153int
31154main ()
31155{
31156
31157	int x;
31158	_check_lock(&x,0,1);
31159	_clear_lock(&x,0);
31160
31161  ;
31162  return 0;
31163}
31164_ACEOF
31165rm -f conftest.$ac_objext conftest$ac_exeext
31166if { (ac_try="$ac_link"
31167case "(($ac_try" in
31168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31169  *) ac_try_echo=$ac_try;;
31170esac
31171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31172  (eval "$ac_link") 2>conftest.er1
31173  ac_status=$?
31174  grep -v '^ *+' conftest.er1 >conftest.err
31175  rm -f conftest.er1
31176  cat conftest.err >&5
31177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31178  (exit $ac_status); } && {
31179	 test -z "$ac_c_werror_flag" ||
31180	 test ! -s conftest.err
31181       } && test -s conftest$ac_exeext &&
31182       $as_test_x conftest$ac_exeext; then
31183  db_cv_mutex=AIX/_check_lock
31184else
31185  echo "$as_me: failed program was:" >&5
31186sed 's/^/| /' conftest.$ac_ext >&5
31187
31188
31189fi
31190
31191rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31192      conftest$ac_exeext conftest.$ac_ext
31193fi
31194
31195# _spin_lock_try/_spin_unlock: Apple/Darwin
31196if test "$db_cv_mutex" = no; then
31197cat >conftest.$ac_ext <<_ACEOF
31198/* confdefs.h.  */
31199_ACEOF
31200cat confdefs.h >>conftest.$ac_ext
31201cat >>conftest.$ac_ext <<_ACEOF
31202/* end confdefs.h.  */
31203
31204int
31205main ()
31206{
31207
31208	int x;
31209	_spin_lock_try(&x);
31210	_spin_unlock(&x);
31211
31212  ;
31213  return 0;
31214}
31215_ACEOF
31216rm -f conftest.$ac_objext conftest$ac_exeext
31217if { (ac_try="$ac_link"
31218case "(($ac_try" in
31219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31220  *) ac_try_echo=$ac_try;;
31221esac
31222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31223  (eval "$ac_link") 2>conftest.er1
31224  ac_status=$?
31225  grep -v '^ *+' conftest.er1 >conftest.err
31226  rm -f conftest.er1
31227  cat conftest.err >&5
31228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229  (exit $ac_status); } && {
31230	 test -z "$ac_c_werror_flag" ||
31231	 test ! -s conftest.err
31232       } && test -s conftest$ac_exeext &&
31233       $as_test_x conftest$ac_exeext; then
31234  db_cv_mutex=Darwin/_spin_lock_try
31235else
31236  echo "$as_me: failed program was:" >&5
31237sed 's/^/| /' conftest.$ac_ext >&5
31238
31239
31240fi
31241
31242rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31243      conftest$ac_exeext conftest.$ac_ext
31244fi
31245
31246# Tru64/cc
31247if test "$db_cv_mutex" = no; then
31248cat >conftest.$ac_ext <<_ACEOF
31249/* confdefs.h.  */
31250_ACEOF
31251cat confdefs.h >>conftest.$ac_ext
31252cat >>conftest.$ac_ext <<_ACEOF
31253/* end confdefs.h.  */
31254
31255int
31256main ()
31257{
31258
31259#if defined(__alpha) && defined(__DECC)
31260	exit(0);
31261#else
31262	FAIL TO COMPILE/LINK
31263#endif
31264
31265  ;
31266  return 0;
31267}
31268_ACEOF
31269rm -f conftest.$ac_objext
31270if { (ac_try="$ac_compile"
31271case "(($ac_try" in
31272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31273  *) ac_try_echo=$ac_try;;
31274esac
31275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31276  (eval "$ac_compile") 2>conftest.er1
31277  ac_status=$?
31278  grep -v '^ *+' conftest.er1 >conftest.err
31279  rm -f conftest.er1
31280  cat conftest.err >&5
31281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31282  (exit $ac_status); } && {
31283	 test -z "$ac_c_werror_flag" ||
31284	 test ! -s conftest.err
31285       } && test -s conftest.$ac_objext; then
31286  db_cv_mutex=Tru64/cc-assembly
31287else
31288  echo "$as_me: failed program was:" >&5
31289sed 's/^/| /' conftest.$ac_ext >&5
31290
31291
31292fi
31293
31294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31295fi
31296
31297# Alpha/gcc
31298if test "$db_cv_mutex" = no; then
31299cat >conftest.$ac_ext <<_ACEOF
31300/* confdefs.h.  */
31301_ACEOF
31302cat confdefs.h >>conftest.$ac_ext
31303cat >>conftest.$ac_ext <<_ACEOF
31304/* end confdefs.h.  */
31305
31306int
31307main ()
31308{
31309
31310#if defined(__alpha) && defined(__GNUC__)
31311	exit(0);
31312#else
31313	FAIL TO COMPILE/LINK
31314#endif
31315
31316  ;
31317  return 0;
31318}
31319_ACEOF
31320rm -f conftest.$ac_objext
31321if { (ac_try="$ac_compile"
31322case "(($ac_try" in
31323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31324  *) ac_try_echo=$ac_try;;
31325esac
31326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31327  (eval "$ac_compile") 2>conftest.er1
31328  ac_status=$?
31329  grep -v '^ *+' conftest.er1 >conftest.err
31330  rm -f conftest.er1
31331  cat conftest.err >&5
31332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333  (exit $ac_status); } && {
31334	 test -z "$ac_c_werror_flag" ||
31335	 test ! -s conftest.err
31336       } && test -s conftest.$ac_objext; then
31337  db_cv_mutex=ALPHA/gcc-assembly
31338else
31339  echo "$as_me: failed program was:" >&5
31340sed 's/^/| /' conftest.$ac_ext >&5
31341
31342
31343fi
31344
31345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31346fi
31347
31348# ARM/gcc: Linux
31349if test "$db_cv_mutex" = no; then
31350cat >conftest.$ac_ext <<_ACEOF
31351/* confdefs.h.  */
31352_ACEOF
31353cat confdefs.h >>conftest.$ac_ext
31354cat >>conftest.$ac_ext <<_ACEOF
31355/* end confdefs.h.  */
31356
31357int
31358main ()
31359{
31360
31361#if defined(__arm__) && defined(__GNUC__)
31362	exit(0);
31363#else
31364	FAIL TO COMPILE/LINK
31365#endif
31366
31367  ;
31368  return 0;
31369}
31370_ACEOF
31371rm -f conftest.$ac_objext
31372if { (ac_try="$ac_compile"
31373case "(($ac_try" in
31374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31375  *) ac_try_echo=$ac_try;;
31376esac
31377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31378  (eval "$ac_compile") 2>conftest.er1
31379  ac_status=$?
31380  grep -v '^ *+' conftest.er1 >conftest.err
31381  rm -f conftest.er1
31382  cat conftest.err >&5
31383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31384  (exit $ac_status); } && {
31385	 test -z "$ac_c_werror_flag" ||
31386	 test ! -s conftest.err
31387       } && test -s conftest.$ac_objext; then
31388  db_cv_mutex=ARM/gcc-assembly
31389else
31390  echo "$as_me: failed program was:" >&5
31391sed 's/^/| /' conftest.$ac_ext >&5
31392
31393
31394fi
31395
31396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31397fi
31398
31399# MIPS/gcc: Linux
31400if test "$db_cv_mutex" = no; then
31401cat >conftest.$ac_ext <<_ACEOF
31402/* confdefs.h.  */
31403_ACEOF
31404cat confdefs.h >>conftest.$ac_ext
31405cat >>conftest.$ac_ext <<_ACEOF
31406/* end confdefs.h.  */
31407
31408int
31409main ()
31410{
31411
31412#if (defined(__mips) || defined(__mips__)) && defined(__GNUC__)
31413	exit(0);
31414#else
31415	FAIL TO COMPILE/LINK
31416#endif
31417
31418  ;
31419  return 0;
31420}
31421_ACEOF
31422rm -f conftest.$ac_objext
31423if { (ac_try="$ac_compile"
31424case "(($ac_try" in
31425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31426  *) ac_try_echo=$ac_try;;
31427esac
31428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31429  (eval "$ac_compile") 2>conftest.er1
31430  ac_status=$?
31431  grep -v '^ *+' conftest.er1 >conftest.err
31432  rm -f conftest.er1
31433  cat conftest.err >&5
31434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435  (exit $ac_status); } && {
31436	 test -z "$ac_c_werror_flag" ||
31437	 test ! -s conftest.err
31438       } && test -s conftest.$ac_objext; then
31439  db_cv_mutex=MIPS/gcc-assembly
31440else
31441  echo "$as_me: failed program was:" >&5
31442sed 's/^/| /' conftest.$ac_ext >&5
31443
31444
31445fi
31446
31447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31448fi
31449
31450# PaRisc/gcc: HP/UX
31451if test "$db_cv_mutex" = no; then
31452cat >conftest.$ac_ext <<_ACEOF
31453/* confdefs.h.  */
31454_ACEOF
31455cat confdefs.h >>conftest.$ac_ext
31456cat >>conftest.$ac_ext <<_ACEOF
31457/* end confdefs.h.  */
31458
31459int
31460main ()
31461{
31462
31463#if (defined(__hppa) || defined(__hppa__)) && defined(__GNUC__)
31464	exit(0);
31465#else
31466	FAIL TO COMPILE/LINK
31467#endif
31468
31469  ;
31470  return 0;
31471}
31472_ACEOF
31473rm -f conftest.$ac_objext
31474if { (ac_try="$ac_compile"
31475case "(($ac_try" in
31476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31477  *) ac_try_echo=$ac_try;;
31478esac
31479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31480  (eval "$ac_compile") 2>conftest.er1
31481  ac_status=$?
31482  grep -v '^ *+' conftest.er1 >conftest.err
31483  rm -f conftest.er1
31484  cat conftest.err >&5
31485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31486  (exit $ac_status); } && {
31487	 test -z "$ac_c_werror_flag" ||
31488	 test ! -s conftest.err
31489       } && test -s conftest.$ac_objext; then
31490  db_cv_mutex=HPPA/gcc-assembly
31491else
31492  echo "$as_me: failed program was:" >&5
31493sed 's/^/| /' conftest.$ac_ext >&5
31494
31495
31496fi
31497
31498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31499fi
31500
31501# PPC/gcc:
31502if test "$db_cv_mutex" = no; then
31503cat >conftest.$ac_ext <<_ACEOF
31504/* confdefs.h.  */
31505_ACEOF
31506cat confdefs.h >>conftest.$ac_ext
31507cat >>conftest.$ac_ext <<_ACEOF
31508/* end confdefs.h.  */
31509
31510int
31511main ()
31512{
31513
31514#if (defined(__powerpc__) || defined(__ppc__)) && defined(__GNUC__)
31515	exit(0);
31516#else
31517	FAIL TO COMPILE/LINK
31518#endif
31519
31520  ;
31521  return 0;
31522}
31523_ACEOF
31524rm -f conftest.$ac_objext
31525if { (ac_try="$ac_compile"
31526case "(($ac_try" in
31527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31528  *) ac_try_echo=$ac_try;;
31529esac
31530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31531  (eval "$ac_compile") 2>conftest.er1
31532  ac_status=$?
31533  grep -v '^ *+' conftest.er1 >conftest.err
31534  rm -f conftest.er1
31535  cat conftest.err >&5
31536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537  (exit $ac_status); } && {
31538	 test -z "$ac_c_werror_flag" ||
31539	 test ! -s conftest.err
31540       } && test -s conftest.$ac_objext; then
31541  db_cv_mutex=PPC/gcc-assembly
31542else
31543  echo "$as_me: failed program was:" >&5
31544sed 's/^/| /' conftest.$ac_ext >&5
31545
31546
31547fi
31548
31549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31550fi
31551
31552# 68K/gcc: SunOS
31553if test "$db_cv_mutex" = no; then
31554cat >conftest.$ac_ext <<_ACEOF
31555/* confdefs.h.  */
31556_ACEOF
31557cat confdefs.h >>conftest.$ac_ext
31558cat >>conftest.$ac_ext <<_ACEOF
31559/* end confdefs.h.  */
31560
31561int
31562main ()
31563{
31564
31565#if (defined(mc68020) || defined(sun3)) && defined(__GNUC__)
31566	exit(0);
31567#else
31568	FAIL TO COMPILE/LINK
31569#endif
31570
31571  ;
31572  return 0;
31573}
31574_ACEOF
31575rm -f conftest.$ac_objext
31576if { (ac_try="$ac_compile"
31577case "(($ac_try" in
31578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31579  *) ac_try_echo=$ac_try;;
31580esac
31581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31582  (eval "$ac_compile") 2>conftest.er1
31583  ac_status=$?
31584  grep -v '^ *+' conftest.er1 >conftest.err
31585  rm -f conftest.er1
31586  cat conftest.err >&5
31587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31588  (exit $ac_status); } && {
31589	 test -z "$ac_c_werror_flag" ||
31590	 test ! -s conftest.err
31591       } && test -s conftest.$ac_objext; then
31592  db_cv_mutex=68K/gcc-assembly
31593else
31594  echo "$as_me: failed program was:" >&5
31595sed 's/^/| /' conftest.$ac_ext >&5
31596
31597
31598fi
31599
31600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31601fi
31602
31603# S390/cc: IBM OS/390 Unix
31604if test "$db_cv_mutex" = no; then
31605cat >conftest.$ac_ext <<_ACEOF
31606/* confdefs.h.  */
31607_ACEOF
31608cat confdefs.h >>conftest.$ac_ext
31609cat >>conftest.$ac_ext <<_ACEOF
31610/* end confdefs.h.  */
31611
31612int
31613main ()
31614{
31615
31616#if defined(__MVS__) && defined(__IBMC__)
31617	exit(0);
31618#else
31619	FAIL TO COMPILE/LINK
31620#endif
31621
31622  ;
31623  return 0;
31624}
31625_ACEOF
31626rm -f conftest.$ac_objext
31627if { (ac_try="$ac_compile"
31628case "(($ac_try" in
31629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31630  *) ac_try_echo=$ac_try;;
31631esac
31632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31633  (eval "$ac_compile") 2>conftest.er1
31634  ac_status=$?
31635  grep -v '^ *+' conftest.er1 >conftest.err
31636  rm -f conftest.er1
31637  cat conftest.err >&5
31638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31639  (exit $ac_status); } && {
31640	 test -z "$ac_c_werror_flag" ||
31641	 test ! -s conftest.err
31642       } && test -s conftest.$ac_objext; then
31643  db_cv_mutex=S390/cc-assembly
31644else
31645  echo "$as_me: failed program was:" >&5
31646sed 's/^/| /' conftest.$ac_ext >&5
31647
31648
31649fi
31650
31651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31652fi
31653
31654# S390/gcc: Linux
31655if test "$db_cv_mutex" = no; then
31656cat >conftest.$ac_ext <<_ACEOF
31657/* confdefs.h.  */
31658_ACEOF
31659cat confdefs.h >>conftest.$ac_ext
31660cat >>conftest.$ac_ext <<_ACEOF
31661/* end confdefs.h.  */
31662
31663int
31664main ()
31665{
31666
31667#if defined(__s390__) && defined(__GNUC__)
31668	exit(0);
31669#else
31670	FAIL TO COMPILE/LINK
31671#endif
31672
31673  ;
31674  return 0;
31675}
31676_ACEOF
31677rm -f conftest.$ac_objext
31678if { (ac_try="$ac_compile"
31679case "(($ac_try" in
31680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31681  *) ac_try_echo=$ac_try;;
31682esac
31683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31684  (eval "$ac_compile") 2>conftest.er1
31685  ac_status=$?
31686  grep -v '^ *+' conftest.er1 >conftest.err
31687  rm -f conftest.er1
31688  cat conftest.err >&5
31689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690  (exit $ac_status); } && {
31691	 test -z "$ac_c_werror_flag" ||
31692	 test ! -s conftest.err
31693       } && test -s conftest.$ac_objext; then
31694  db_cv_mutex=S390/gcc-assembly
31695else
31696  echo "$as_me: failed program was:" >&5
31697sed 's/^/| /' conftest.$ac_ext >&5
31698
31699
31700fi
31701
31702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31703fi
31704
31705# ia64/gcc: Linux
31706if test "$db_cv_mutex" = no; then
31707cat >conftest.$ac_ext <<_ACEOF
31708/* confdefs.h.  */
31709_ACEOF
31710cat confdefs.h >>conftest.$ac_ext
31711cat >>conftest.$ac_ext <<_ACEOF
31712/* end confdefs.h.  */
31713
31714int
31715main ()
31716{
31717
31718#if defined(__ia64) && defined(__GNUC__)
31719	exit(0);
31720#else
31721	FAIL TO COMPILE/LINK
31722#endif
31723
31724  ;
31725  return 0;
31726}
31727_ACEOF
31728rm -f conftest.$ac_objext
31729if { (ac_try="$ac_compile"
31730case "(($ac_try" in
31731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31732  *) ac_try_echo=$ac_try;;
31733esac
31734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31735  (eval "$ac_compile") 2>conftest.er1
31736  ac_status=$?
31737  grep -v '^ *+' conftest.er1 >conftest.err
31738  rm -f conftest.er1
31739  cat conftest.err >&5
31740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741  (exit $ac_status); } && {
31742	 test -z "$ac_c_werror_flag" ||
31743	 test ! -s conftest.err
31744       } && test -s conftest.$ac_objext; then
31745  db_cv_mutex=ia64/gcc-assembly
31746else
31747  echo "$as_me: failed program was:" >&5
31748sed 's/^/| /' conftest.$ac_ext >&5
31749
31750
31751fi
31752
31753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31754fi
31755
31756# uts/cc: UTS
31757if test "$db_cv_mutex" = no; then
31758cat >conftest.$ac_ext <<_ACEOF
31759/* confdefs.h.  */
31760_ACEOF
31761cat confdefs.h >>conftest.$ac_ext
31762cat >>conftest.$ac_ext <<_ACEOF
31763/* end confdefs.h.  */
31764
31765int
31766main ()
31767{
31768
31769#if defined(_UTS)
31770	exit(0);
31771#else
31772	FAIL TO COMPILE/LINK
31773#endif
31774
31775  ;
31776  return 0;
31777}
31778_ACEOF
31779rm -f conftest.$ac_objext
31780if { (ac_try="$ac_compile"
31781case "(($ac_try" in
31782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31783  *) ac_try_echo=$ac_try;;
31784esac
31785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31786  (eval "$ac_compile") 2>conftest.er1
31787  ac_status=$?
31788  grep -v '^ *+' conftest.er1 >conftest.err
31789  rm -f conftest.er1
31790  cat conftest.err >&5
31791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31792  (exit $ac_status); } && {
31793	 test -z "$ac_c_werror_flag" ||
31794	 test ! -s conftest.err
31795       } && test -s conftest.$ac_objext; then
31796  db_cv_mutex=UTS/cc-assembly
31797else
31798  echo "$as_me: failed program was:" >&5
31799sed 's/^/| /' conftest.$ac_ext >&5
31800
31801
31802fi
31803
31804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31805fi
31806
31807# UNIX fcntl system call mutexes.
31808if test "$db_cv_mutex" = no; then
31809	db_cv_mutex=UNIX/fcntl
31810cat >conftest.$ac_ext <<_ACEOF
31811/* confdefs.h.  */
31812_ACEOF
31813cat confdefs.h >>conftest.$ac_ext
31814cat >>conftest.$ac_ext <<_ACEOF
31815/* end confdefs.h.  */
31816
31817#include <fcntl.h>
31818int
31819main ()
31820{
31821
31822	struct flock l;
31823	l.l_whence = SEEK_SET;
31824	l.l_start = 10;
31825	l.l_len = 1;
31826	l.l_type = F_WRLCK;
31827	fcntl(0, F_SETLK, &l);
31828
31829  ;
31830  return 0;
31831}
31832_ACEOF
31833rm -f conftest.$ac_objext conftest$ac_exeext
31834if { (ac_try="$ac_link"
31835case "(($ac_try" in
31836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31837  *) ac_try_echo=$ac_try;;
31838esac
31839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31840  (eval "$ac_link") 2>conftest.er1
31841  ac_status=$?
31842  grep -v '^ *+' conftest.er1 >conftest.err
31843  rm -f conftest.er1
31844  cat conftest.err >&5
31845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31846  (exit $ac_status); } && {
31847	 test -z "$ac_c_werror_flag" ||
31848	 test ! -s conftest.err
31849       } && test -s conftest$ac_exeext &&
31850       $as_test_x conftest$ac_exeext; then
31851  db_cv_mutex=UNIX/fcntl
31852else
31853  echo "$as_me: failed program was:" >&5
31854sed 's/^/| /' conftest.$ac_ext >&5
31855
31856
31857fi
31858
31859rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31860      conftest$ac_exeext conftest.$ac_ext
31861fi
31862
31863fi
31864{ echo "$as_me:$LINENO: result: $db_cv_mutex" >&5
31865echo "${ECHO_T}$db_cv_mutex" >&6; }
31866
31867# Configure a pthreads-style mutex implementation.
31868hybrid=pthread
31869case "$db_cv_mutex" in
31870POSIX/pthreads*)	ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
31871			cat >>confdefs.h <<\_ACEOF
31872#define HAVE_MUTEX_PTHREADS 1
31873_ACEOF
31874
31875
31876;;
31877POSIX/pthreads/private*)ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
31878			cat >>confdefs.h <<\_ACEOF
31879#define HAVE_MUTEX_PTHREADS 1
31880_ACEOF
31881
31882			cat >>confdefs.h <<\_ACEOF
31883#define HAVE_MUTEX_THREAD_ONLY 1
31884_ACEOF
31885
31886
31887;;
31888POSIX/pthreads/library*)ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
31889			cat >>confdefs.h <<\_ACEOF
31890#define HAVE_MUTEX_PTHREADS 1
31891_ACEOF
31892;;
31893POSIX/pthreads/library/private*)
31894			ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
31895			cat >>confdefs.h <<\_ACEOF
31896#define HAVE_MUTEX_PTHREADS 1
31897_ACEOF
31898
31899			cat >>confdefs.h <<\_ACEOF
31900#define HAVE_MUTEX_THREAD_ONLY 1
31901_ACEOF
31902;;
31903Solaris/lwp*)		ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
31904			cat >>confdefs.h <<\_ACEOF
31905#define HAVE_MUTEX_SOLARIS_LWP 1
31906_ACEOF
31907
31908
31909;;
31910UI/threads*)		ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
31911			cat >>confdefs.h <<\_ACEOF
31912#define HAVE_MUTEX_UI_THREADS 1
31913_ACEOF
31914
31915
31916;;
31917UI/threads/library*)	ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
31918			cat >>confdefs.h <<\_ACEOF
31919#define HAVE_MUTEX_UI_THREADS 1
31920_ACEOF
31921;;
31922*)			hybrid=no;;
31923esac
31924
31925# Configure a test-and-set mutex implementation.
31926case "$db_cv_mutex" in
3192768K/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
31928			cat >>confdefs.h <<\_ACEOF
31929#define HAVE_MUTEX_68K_GCC_ASSEMBLY 1
31930_ACEOF
31931
31932
31933;;
31934AIX/_check_lock)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
31935			cat >>confdefs.h <<\_ACEOF
31936#define HAVE_MUTEX_AIX_CHECK_LOCK 1
31937_ACEOF
31938
31939
31940;;
31941Darwin/_spin_lock_try)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
31942			cat >>confdefs.h <<\_ACEOF
31943#define HAVE_MUTEX_DARWIN_SPIN_LOCK_TRY 1
31944_ACEOF
31945
31946
31947;;
31948ALPHA/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
31949			cat >>confdefs.h <<\_ACEOF
31950#define HAVE_MUTEX_ALPHA_GCC_ASSEMBLY 1
31951_ACEOF
31952
31953
31954;;
31955ARM/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
31956			cat >>confdefs.h <<\_ACEOF
31957#define HAVE_MUTEX_ARM_GCC_ASSEMBLY 1
31958_ACEOF
31959
31960
31961;;
31962HP/msem_init)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
31963			cat >>confdefs.h <<\_ACEOF
31964#define HAVE_MUTEX_HPPA_MSEM_INIT 1
31965_ACEOF
31966
31967
31968;;
31969HPPA/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
31970			cat >>confdefs.h <<\_ACEOF
31971#define HAVE_MUTEX_HPPA_GCC_ASSEMBLY 1
31972_ACEOF
31973
31974
31975;;
31976ia64/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
31977			cat >>confdefs.h <<\_ACEOF
31978#define HAVE_MUTEX_IA64_GCC_ASSEMBLY 1
31979_ACEOF
31980
31981
31982;;
31983MIPS/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
31984			cat >>confdefs.h <<\_ACEOF
31985#define HAVE_MUTEX_MIPS_GCC_ASSEMBLY 1
31986_ACEOF
31987
31988
31989;;
31990PPC/gcc-assembly)
31991			ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
31992			cat >>confdefs.h <<\_ACEOF
31993#define HAVE_MUTEX_PPC_GCC_ASSEMBLY 1
31994_ACEOF
31995
31996
31997;;
31998ReliantUNIX/initspin)	LIBSO_LIBS="$LIBSO_LIBS -lmproc"
31999			ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
32000			cat >>confdefs.h <<\_ACEOF
32001#define HAVE_MUTEX_RELIANTUNIX_INITSPIN 1
32002_ACEOF
32003
32004
32005;;
32006S390/cc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
32007			cat >>confdefs.h <<\_ACEOF
32008#define HAVE_MUTEX_S390_CC_ASSEMBLY 1
32009_ACEOF
32010
32011
32012;;
32013S390/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
32014			cat >>confdefs.h <<\_ACEOF
32015#define HAVE_MUTEX_S390_GCC_ASSEMBLY 1
32016_ACEOF
32017
32018
32019;;
32020SCO/x86/cc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
32021			cat >>confdefs.h <<\_ACEOF
32022#define HAVE_MUTEX_SCO_X86_CC_ASSEMBLY 1
32023_ACEOF
32024
32025
32026;;
32027SGI/init_lock)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
32028			cat >>confdefs.h <<\_ACEOF
32029#define HAVE_MUTEX_SGI_INIT_LOCK 1
32030_ACEOF
32031
32032
32033;;
32034Solaris/_lock_try)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
32035			cat >>confdefs.h <<\_ACEOF
32036#define HAVE_MUTEX_SOLARIS_LOCK_TRY 1
32037_ACEOF
32038
32039
32040;;
32041*Solaris/_lock_try/membar)
32042			hybrid="$hybrid/tas"
32043			ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
32044			cat >>confdefs.h <<\_ACEOF
32045#define HAVE_MUTEX_SOLARIS_LOCK_TRY 1
32046_ACEOF
32047
32048
32049;;
32050*Sparc/gcc-assembly)	hybrid="$hybrid/tas"
32051			ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
32052			cat >>confdefs.h <<\_ACEOF
32053#define HAVE_MUTEX_SPARC_GCC_ASSEMBLY 1
32054_ACEOF
32055
32056
32057;;
32058Tru64/cc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
32059			cat >>confdefs.h <<\_ACEOF
32060#define HAVE_MUTEX_TRU64_CC_ASSEMBLY 1
32061_ACEOF
32062
32063
32064;;
32065UNIX/msem_init)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
32066			cat >>confdefs.h <<\_ACEOF
32067#define HAVE_MUTEX_MSEM_INIT 1
32068_ACEOF
32069
32070
32071;;
32072UNIX/sema_init)		ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
32073			cat >>confdefs.h <<\_ACEOF
32074#define HAVE_MUTEX_SEMA_INIT 1
32075_ACEOF
32076
32077
32078;;
32079UTS/cc-assembly)	ADDITIONAL_OBJS="uts4.cc${o} $ADDITIONAL_OBJS"
32080			cat >>confdefs.h <<\_ACEOF
32081#define HAVE_MUTEX_UTS_CC_ASSEMBLY 1
32082_ACEOF
32083
32084
32085;;
32086*x86/gcc-assembly)	hybrid="$hybrid/tas"
32087			ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
32088			cat >>confdefs.h <<\_ACEOF
32089#define HAVE_MUTEX_X86_GCC_ASSEMBLY 1
32090_ACEOF
32091
32092
32093;;
32094*x86_64/gcc-assembly)	hybrid="$hybrid/tas"
32095			ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
32096			cat >>confdefs.h <<\_ACEOF
32097#define HAVE_MUTEX_X86_64_GCC_ASSEMBLY 1
32098_ACEOF
32099
32100
32101;;
32102esac
32103
32104# Configure the remaining special cases.
32105case "$db_cv_mutex" in
32106UNIX/fcntl)		{ echo "$as_me:$LINENO: WARNING: NO FAST MUTEXES FOUND FOR THIS COMPILER/ARCHITECTURE." >&5
32107echo "$as_me: WARNING: NO FAST MUTEXES FOUND FOR THIS COMPILER/ARCHITECTURE." >&2;}
32108			ADDITIONAL_OBJS="mut_fcntl${o} $ADDITIONAL_OBJS"
32109			cat >>confdefs.h <<\_ACEOF
32110#define HAVE_MUTEX_FCNTL 1
32111_ACEOF
32112
32113
32114;;
32115win32)			ADDITIONAL_OBJS="mut_win32${o} $ADDITIONAL_OBJS"
32116			cat >>confdefs.h <<\_ACEOF
32117#define HAVE_MUTEX_WIN32 1
32118_ACEOF
32119
32120
32121;;
32122win32/gcc)		ADDITIONAL_OBJS="mut_win32${o} $ADDITIONAL_OBJS"
32123			cat >>confdefs.h <<\_ACEOF
32124#define HAVE_MUTEX_WIN32_GCC 1
32125_ACEOF
32126
32127
32128;;
32129esac
32130
32131# Mutexes may not have been found, or may have been disabled.
32132case "$db_cv_mutex" in
32133disabled)
32134	;;
32135*)
32136	# Test to see if mutexes have been found by checking the list of
32137	# additional objects for a mutex implementation.
32138	case "$ADDITIONAL_OBJS" in
32139	*mut_fcntl*|*mut_pthread*|*mut_tas*|*mut_win32*)
32140		cat >>confdefs.h <<\_ACEOF
32141#define HAVE_MUTEX_SUPPORT 1
32142_ACEOF
32143
32144
32145;;
32146	*)
32147		{ { echo "$as_me:$LINENO: error: Unable to find a mutex implementation" >&5
32148echo "$as_me: error: Unable to find a mutex implementation" >&2;}
32149   { (exit 1); exit 1; }; };;
32150	esac
32151esac
32152
32153# We may have found both a pthreads-style mutex implementation as well as a
32154# test-and-set, in which case configure for the hybrid.
32155if test "$hybrid" = pthread/tas; then
32156	cat >>confdefs.h <<\_ACEOF
32157#define HAVE_MUTEX_HYBRID 1
32158_ACEOF
32159
32160
32161
32162fi
32163
32164# The mutex selection may require specific declarations -- we fill in most of
32165# them above, but here are the common ones.
32166#
32167# The mutex selection may tell us what kind of thread package we're using,
32168# which we use to figure out the thread type.
32169#
32170# If we're configured for the POSIX pthread API, then force the thread ID type
32171# and include function, regardless of the mutex selection.  Ditto for the
32172# (default) Solaris lwp mutexes, because they don't have a way to return the
32173# thread ID.
32174#
32175# Try and link with a threads library if possible.  The problem is the Solaris
32176# C library has UI/POSIX interface stubs, but they're broken, configuring them
32177# for inter-process mutexes doesn't return an error, but it doesn't work either.
32178# For that reason always add -lpthread if we're using pthread calls or mutexes
32179# and there's a pthread library.
32180#
32181# We can't depend on any specific call existing (pthread_create, for example),
32182# as it may be #defined in an include file -- OSF/1 (Tru64) has this problem.
32183
32184
32185
32186db_threadid_t_decl=notset
32187
32188case "$db_cv_mutex" in
32189POSIX/pthread*|Solaris/lwp*)
32190	thread_h_decl="#include <pthread.h>"
32191	db_threadid_t_decl="typedef pthread_t db_threadid_t;"
32192	{ echo "$as_me:$LINENO: checking for main in -lpthread" >&5
32193echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
32194if test "${ac_cv_lib_pthread_main+set}" = set; then
32195  echo $ECHO_N "(cached) $ECHO_C" >&6
32196else
32197  ac_check_lib_save_LIBS=$LIBS
32198LIBS="-lpthread  $LIBS"
32199cat >conftest.$ac_ext <<_ACEOF
32200/* confdefs.h.  */
32201_ACEOF
32202cat confdefs.h >>conftest.$ac_ext
32203cat >>conftest.$ac_ext <<_ACEOF
32204/* end confdefs.h.  */
32205
32206
32207int
32208main ()
32209{
32210return main ();
32211  ;
32212  return 0;
32213}
32214_ACEOF
32215rm -f conftest.$ac_objext conftest$ac_exeext
32216if { (ac_try="$ac_link"
32217case "(($ac_try" in
32218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32219  *) ac_try_echo=$ac_try;;
32220esac
32221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32222  (eval "$ac_link") 2>conftest.er1
32223  ac_status=$?
32224  grep -v '^ *+' conftest.er1 >conftest.err
32225  rm -f conftest.er1
32226  cat conftest.err >&5
32227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32228  (exit $ac_status); } && {
32229	 test -z "$ac_c_werror_flag" ||
32230	 test ! -s conftest.err
32231       } && test -s conftest$ac_exeext &&
32232       $as_test_x conftest$ac_exeext; then
32233  ac_cv_lib_pthread_main=yes
32234else
32235  echo "$as_me: failed program was:" >&5
32236sed 's/^/| /' conftest.$ac_ext >&5
32237
32238	ac_cv_lib_pthread_main=no
32239fi
32240
32241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32242      conftest$ac_exeext conftest.$ac_ext
32243LIBS=$ac_check_lib_save_LIBS
32244fi
32245{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
32246echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
32247if test $ac_cv_lib_pthread_main = yes; then
32248  LIBSO_LIBS="$LIBSO_LIBS -lpthread"
32249fi
32250ac_cv_lib_pthread=ac_cv_lib_pthread_main
32251;;
32252UI/threads*)
32253	thread_h_decl="#include <thread.h>"
32254	db_threadid_t_decl="typedef thread_t db_threadid_t;"
32255	{ echo "$as_me:$LINENO: checking for main in -lthread" >&5
32256echo $ECHO_N "checking for main in -lthread... $ECHO_C" >&6; }
32257if test "${ac_cv_lib_thread_main+set}" = set; then
32258  echo $ECHO_N "(cached) $ECHO_C" >&6
32259else
32260  ac_check_lib_save_LIBS=$LIBS
32261LIBS="-lthread  $LIBS"
32262cat >conftest.$ac_ext <<_ACEOF
32263/* confdefs.h.  */
32264_ACEOF
32265cat confdefs.h >>conftest.$ac_ext
32266cat >>conftest.$ac_ext <<_ACEOF
32267/* end confdefs.h.  */
32268
32269
32270int
32271main ()
32272{
32273return main ();
32274  ;
32275  return 0;
32276}
32277_ACEOF
32278rm -f conftest.$ac_objext conftest$ac_exeext
32279if { (ac_try="$ac_link"
32280case "(($ac_try" in
32281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32282  *) ac_try_echo=$ac_try;;
32283esac
32284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32285  (eval "$ac_link") 2>conftest.er1
32286  ac_status=$?
32287  grep -v '^ *+' conftest.er1 >conftest.err
32288  rm -f conftest.er1
32289  cat conftest.err >&5
32290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291  (exit $ac_status); } && {
32292	 test -z "$ac_c_werror_flag" ||
32293	 test ! -s conftest.err
32294       } && test -s conftest$ac_exeext &&
32295       $as_test_x conftest$ac_exeext; then
32296  ac_cv_lib_thread_main=yes
32297else
32298  echo "$as_me: failed program was:" >&5
32299sed 's/^/| /' conftest.$ac_ext >&5
32300
32301	ac_cv_lib_thread_main=no
32302fi
32303
32304rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32305      conftest$ac_exeext conftest.$ac_ext
32306LIBS=$ac_check_lib_save_LIBS
32307fi
32308{ echo "$as_me:$LINENO: result: $ac_cv_lib_thread_main" >&5
32309echo "${ECHO_T}$ac_cv_lib_thread_main" >&6; }
32310if test $ac_cv_lib_thread_main = yes; then
32311  LIBSO_LIBS="$LIBSO_LIBS -lthread"
32312fi
32313ac_cv_lib_thread=ac_cv_lib_thread_main
32314;;
32315*)
32316	if test "$db_cv_pthread_api" = yes; then
32317		thread_h_decl="#include <pthread.h>"
32318		db_threadid_t_decl="typedef pthread_t db_threadid_t;"
32319		{ echo "$as_me:$LINENO: checking for main in -lpthread" >&5
32320echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
32321if test "${ac_cv_lib_pthread_main+set}" = set; then
32322  echo $ECHO_N "(cached) $ECHO_C" >&6
32323else
32324  ac_check_lib_save_LIBS=$LIBS
32325LIBS="-lpthread  $LIBS"
32326cat >conftest.$ac_ext <<_ACEOF
32327/* confdefs.h.  */
32328_ACEOF
32329cat confdefs.h >>conftest.$ac_ext
32330cat >>conftest.$ac_ext <<_ACEOF
32331/* end confdefs.h.  */
32332
32333
32334int
32335main ()
32336{
32337return main ();
32338  ;
32339  return 0;
32340}
32341_ACEOF
32342rm -f conftest.$ac_objext conftest$ac_exeext
32343if { (ac_try="$ac_link"
32344case "(($ac_try" in
32345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32346  *) ac_try_echo=$ac_try;;
32347esac
32348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32349  (eval "$ac_link") 2>conftest.er1
32350  ac_status=$?
32351  grep -v '^ *+' conftest.er1 >conftest.err
32352  rm -f conftest.er1
32353  cat conftest.err >&5
32354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355  (exit $ac_status); } && {
32356	 test -z "$ac_c_werror_flag" ||
32357	 test ! -s conftest.err
32358       } && test -s conftest$ac_exeext &&
32359       $as_test_x conftest$ac_exeext; then
32360  ac_cv_lib_pthread_main=yes
32361else
32362  echo "$as_me: failed program was:" >&5
32363sed 's/^/| /' conftest.$ac_ext >&5
32364
32365	ac_cv_lib_pthread_main=no
32366fi
32367
32368rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32369      conftest$ac_exeext conftest.$ac_ext
32370LIBS=$ac_check_lib_save_LIBS
32371fi
32372{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
32373echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
32374if test $ac_cv_lib_pthread_main = yes; then
32375  LIBSO_LIBS="$LIBSO_LIBS -lpthread"
32376fi
32377ac_cv_lib_pthread=ac_cv_lib_pthread_main
32378
32379	fi;;
32380esac
32381
32382# We need to know if the thread ID type will fit into an integral type and we
32383# can compare it for equality and generally treat it like an int, or if it's a
32384# non-integral type and we have to treat it like a structure or other untyped
32385# block of bytes.  For example, MVS typedef's pthread_t to a structure.
32386
32387
32388if test "$db_threadid_t_decl" = notset; then
32389	db_threadid_t_decl="typedef uintmax_t db_threadid_t;"
32390	cat >>confdefs.h <<\_ACEOF
32391#define HAVE_SIMPLE_THREAD_TYPE 1
32392_ACEOF
32393
32394else
32395	cat >conftest.$ac_ext <<_ACEOF
32396/* confdefs.h.  */
32397_ACEOF
32398cat confdefs.h >>conftest.$ac_ext
32399cat >>conftest.$ac_ext <<_ACEOF
32400/* end confdefs.h.  */
32401#include <sys/types.h>
32402	$thread_h_decl
32403int
32404main ()
32405{
32406
32407	$db_threadid_t_decl
32408	db_threadid_t a;
32409	a = 0;
32410
32411  ;
32412  return 0;
32413}
32414_ACEOF
32415rm -f conftest.$ac_objext
32416if { (ac_try="$ac_compile"
32417case "(($ac_try" in
32418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32419  *) ac_try_echo=$ac_try;;
32420esac
32421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32422  (eval "$ac_compile") 2>conftest.er1
32423  ac_status=$?
32424  grep -v '^ *+' conftest.er1 >conftest.err
32425  rm -f conftest.er1
32426  cat conftest.err >&5
32427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428  (exit $ac_status); } && {
32429	 test -z "$ac_c_werror_flag" ||
32430	 test ! -s conftest.err
32431       } && test -s conftest.$ac_objext; then
32432  cat >>confdefs.h <<\_ACEOF
32433#define HAVE_SIMPLE_THREAD_TYPE 1
32434_ACEOF
32435
32436else
32437  echo "$as_me: failed program was:" >&5
32438sed 's/^/| /' conftest.$ac_ext >&5
32439
32440
32441fi
32442
32443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32444fi
32445
32446# If we're building replication and configured with POSIX pthreads or were
32447# told to build using the POSIX API, build the replication manager framework.
32448db_cv_build_replication_mgr=no
32449if test "$db_cv_build_replication" = yes; then
32450
32451
32452	case "$db_cv_mutex" in
32453	POSIX/pthread*|Solaris/lwp)
32454		db_cv_build_replication_mgr=yes;;
32455	esac
32456	if test "$db_cv_pthread_api" = yes; then
32457		db_cv_build_replication_mgr=yes
32458	fi
32459
32460	if test "$db_cv_build_replication_mgr" = yes; then
32461		cat >>confdefs.h <<\_ACEOF
32462#define HAVE_REPLICATION_THREADS 1
32463_ACEOF
32464
32465
32466		# Solaris requires the socket and nsl libraries to build the
32467		# replication manager.  Don't add nsl regardless of the OS,
32468		# it causes RPC to fail on AIX 4.3.3.
32469		case "$host_os" in
32470		solaris*)
32471			{ echo "$as_me:$LINENO: checking for main in -lnsl" >&5
32472echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
32473if test "${ac_cv_lib_nsl_main+set}" = set; then
32474  echo $ECHO_N "(cached) $ECHO_C" >&6
32475else
32476  ac_check_lib_save_LIBS=$LIBS
32477LIBS="-lnsl  $LIBS"
32478cat >conftest.$ac_ext <<_ACEOF
32479/* confdefs.h.  */
32480_ACEOF
32481cat confdefs.h >>conftest.$ac_ext
32482cat >>conftest.$ac_ext <<_ACEOF
32483/* end confdefs.h.  */
32484
32485
32486int
32487main ()
32488{
32489return main ();
32490  ;
32491  return 0;
32492}
32493_ACEOF
32494rm -f conftest.$ac_objext conftest$ac_exeext
32495if { (ac_try="$ac_link"
32496case "(($ac_try" in
32497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32498  *) ac_try_echo=$ac_try;;
32499esac
32500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32501  (eval "$ac_link") 2>conftest.er1
32502  ac_status=$?
32503  grep -v '^ *+' conftest.er1 >conftest.err
32504  rm -f conftest.er1
32505  cat conftest.err >&5
32506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507  (exit $ac_status); } && {
32508	 test -z "$ac_c_werror_flag" ||
32509	 test ! -s conftest.err
32510       } && test -s conftest$ac_exeext &&
32511       $as_test_x conftest$ac_exeext; then
32512  ac_cv_lib_nsl_main=yes
32513else
32514  echo "$as_me: failed program was:" >&5
32515sed 's/^/| /' conftest.$ac_ext >&5
32516
32517	ac_cv_lib_nsl_main=no
32518fi
32519
32520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32521      conftest$ac_exeext conftest.$ac_ext
32522LIBS=$ac_check_lib_save_LIBS
32523fi
32524{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
32525echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
32526if test $ac_cv_lib_nsl_main = yes; then
32527  LIBSO_LIBS="$LIBSO_LIBS -lnsl"
32528fi
32529ac_cv_lib_nsl=ac_cv_lib_nsl_main
32530
32531			{ echo "$as_me:$LINENO: checking for main in -lsocket" >&5
32532echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
32533if test "${ac_cv_lib_socket_main+set}" = set; then
32534  echo $ECHO_N "(cached) $ECHO_C" >&6
32535else
32536  ac_check_lib_save_LIBS=$LIBS
32537LIBS="-lsocket  $LIBS"
32538cat >conftest.$ac_ext <<_ACEOF
32539/* confdefs.h.  */
32540_ACEOF
32541cat confdefs.h >>conftest.$ac_ext
32542cat >>conftest.$ac_ext <<_ACEOF
32543/* end confdefs.h.  */
32544
32545
32546int
32547main ()
32548{
32549return main ();
32550  ;
32551  return 0;
32552}
32553_ACEOF
32554rm -f conftest.$ac_objext conftest$ac_exeext
32555if { (ac_try="$ac_link"
32556case "(($ac_try" in
32557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32558  *) ac_try_echo=$ac_try;;
32559esac
32560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32561  (eval "$ac_link") 2>conftest.er1
32562  ac_status=$?
32563  grep -v '^ *+' conftest.er1 >conftest.err
32564  rm -f conftest.er1
32565  cat conftest.err >&5
32566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567  (exit $ac_status); } && {
32568	 test -z "$ac_c_werror_flag" ||
32569	 test ! -s conftest.err
32570       } && test -s conftest$ac_exeext &&
32571       $as_test_x conftest$ac_exeext; then
32572  ac_cv_lib_socket_main=yes
32573else
32574  echo "$as_me: failed program was:" >&5
32575sed 's/^/| /' conftest.$ac_ext >&5
32576
32577	ac_cv_lib_socket_main=no
32578fi
32579
32580rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32581      conftest$ac_exeext conftest.$ac_ext
32582LIBS=$ac_check_lib_save_LIBS
32583fi
32584{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
32585echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
32586if test $ac_cv_lib_socket_main = yes; then
32587  LIBSO_LIBS="$LIBSO_LIBS -lsocket"
32588fi
32589ac_cv_lib_socket=ac_cv_lib_socket_main
32590;;
32591		esac
32592	fi
32593fi
32594
32595# There are 3 classes of mutexes:
32596#
32597# 1: Mutexes requiring no cleanup, for example, test-and-set mutexes.
32598# 2: Mutexes that must be destroyed, but which don't hold permanent system
32599#    resources, for example, pthread mutexes on MVS aka OS/390 aka z/OS.
32600# 3: Mutexes that must be destroyed, even after the process is gone, for
32601#    example, pthread mutexes on QNX and binary semaphores on VxWorks.
32602#
32603# DB cannot currently distinguish between #2 and #3 because DB does not know
32604# if the application is running environment recovery as part of startup and
32605# does not need to do cleanup, or if the environment is being removed and/or
32606# recovered in a loop in the application, and so does need to clean up.  If
32607# we get it wrong, we're going to call the mutex destroy routine on a random
32608# piece of memory, which usually works, but just might drop core.  For now,
32609# we group #2 and #3 into the HAVE_MUTEX_SYSTEM_RESOURCES define, until we
32610# have a better solution or reason to solve this in a general way -- so far,
32611# the places we've needed to handle this are few.
32612
32613
32614
32615case "$host_os$db_cv_mutex" in
32616*qnx*POSIX/pthread*|openedition*POSIX/pthread*)
32617	cat >>confdefs.h <<\_ACEOF
32618#define HAVE_MUTEX_SYSTEM_RESOURCES 1
32619_ACEOF
32620;;
32621esac
32622
32623# Test for various functions/libraries -- do tests that change library values
32624# first.
32625#
32626# Update LIBS, so we're testing against the current list of libraries.
32627LIBS="$LIBSO_LIBS"
32628
32629# The yield function on Solaris is almost certainly pthread_yield (LWP threads
32630# or POSIX pthreads), or thr_yield (UI threads).  There's an outside chance it
32631# is sched_yield() though, only available in -lrt on Solaris.
32632{ echo "$as_me:$LINENO: checking for library containing sched_yield" >&5
32633echo $ECHO_N "checking for library containing sched_yield... $ECHO_C" >&6; }
32634if test "${ac_cv_search_sched_yield+set}" = set; then
32635  echo $ECHO_N "(cached) $ECHO_C" >&6
32636else
32637  ac_func_search_save_LIBS=$LIBS
32638cat >conftest.$ac_ext <<_ACEOF
32639/* confdefs.h.  */
32640_ACEOF
32641cat confdefs.h >>conftest.$ac_ext
32642cat >>conftest.$ac_ext <<_ACEOF
32643/* end confdefs.h.  */
32644
32645/* Override any GCC internal prototype to avoid an error.
32646   Use char because int might match the return type of a GCC
32647   builtin and then its argument prototype would still apply.  */
32648#ifdef __cplusplus
32649extern "C"
32650#endif
32651char sched_yield ();
32652int
32653main ()
32654{
32655return sched_yield ();
32656  ;
32657  return 0;
32658}
32659_ACEOF
32660for ac_lib in '' rt; do
32661  if test -z "$ac_lib"; then
32662    ac_res="none required"
32663  else
32664    ac_res=-l$ac_lib
32665    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32666  fi
32667  rm -f conftest.$ac_objext conftest$ac_exeext
32668if { (ac_try="$ac_link"
32669case "(($ac_try" in
32670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32671  *) ac_try_echo=$ac_try;;
32672esac
32673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32674  (eval "$ac_link") 2>conftest.er1
32675  ac_status=$?
32676  grep -v '^ *+' conftest.er1 >conftest.err
32677  rm -f conftest.er1
32678  cat conftest.err >&5
32679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680  (exit $ac_status); } && {
32681	 test -z "$ac_c_werror_flag" ||
32682	 test ! -s conftest.err
32683       } && test -s conftest$ac_exeext &&
32684       $as_test_x conftest$ac_exeext; then
32685  ac_cv_search_sched_yield=$ac_res
32686else
32687  echo "$as_me: failed program was:" >&5
32688sed 's/^/| /' conftest.$ac_ext >&5
32689
32690
32691fi
32692
32693rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32694      conftest$ac_exeext
32695  if test "${ac_cv_search_sched_yield+set}" = set; then
32696  break
32697fi
32698done
32699if test "${ac_cv_search_sched_yield+set}" = set; then
32700  :
32701else
32702  ac_cv_search_sched_yield=no
32703fi
32704rm conftest.$ac_ext
32705LIBS=$ac_func_search_save_LIBS
32706fi
32707{ echo "$as_me:$LINENO: result: $ac_cv_search_sched_yield" >&5
32708echo "${ECHO_T}$ac_cv_search_sched_yield" >&6; }
32709ac_res=$ac_cv_search_sched_yield
32710if test "$ac_res" != no; then
32711  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32712
32713fi
32714
32715
32716# The Berkeley DB library calls fdatasync, only available in -lrt on Solaris.
32717{ echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
32718echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
32719if test "${ac_cv_search_fdatasync+set}" = set; then
32720  echo $ECHO_N "(cached) $ECHO_C" >&6
32721else
32722  ac_func_search_save_LIBS=$LIBS
32723cat >conftest.$ac_ext <<_ACEOF
32724/* confdefs.h.  */
32725_ACEOF
32726cat confdefs.h >>conftest.$ac_ext
32727cat >>conftest.$ac_ext <<_ACEOF
32728/* end confdefs.h.  */
32729
32730/* Override any GCC internal prototype to avoid an error.
32731   Use char because int might match the return type of a GCC
32732   builtin and then its argument prototype would still apply.  */
32733#ifdef __cplusplus
32734extern "C"
32735#endif
32736char fdatasync ();
32737int
32738main ()
32739{
32740return fdatasync ();
32741  ;
32742  return 0;
32743}
32744_ACEOF
32745for ac_lib in '' rt; do
32746  if test -z "$ac_lib"; then
32747    ac_res="none required"
32748  else
32749    ac_res=-l$ac_lib
32750    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32751  fi
32752  rm -f conftest.$ac_objext conftest$ac_exeext
32753if { (ac_try="$ac_link"
32754case "(($ac_try" in
32755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32756  *) ac_try_echo=$ac_try;;
32757esac
32758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32759  (eval "$ac_link") 2>conftest.er1
32760  ac_status=$?
32761  grep -v '^ *+' conftest.er1 >conftest.err
32762  rm -f conftest.er1
32763  cat conftest.err >&5
32764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765  (exit $ac_status); } && {
32766	 test -z "$ac_c_werror_flag" ||
32767	 test ! -s conftest.err
32768       } && test -s conftest$ac_exeext &&
32769       $as_test_x conftest$ac_exeext; then
32770  ac_cv_search_fdatasync=$ac_res
32771else
32772  echo "$as_me: failed program was:" >&5
32773sed 's/^/| /' conftest.$ac_ext >&5
32774
32775
32776fi
32777
32778rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32779      conftest$ac_exeext
32780  if test "${ac_cv_search_fdatasync+set}" = set; then
32781  break
32782fi
32783done
32784if test "${ac_cv_search_fdatasync+set}" = set; then
32785  :
32786else
32787  ac_cv_search_fdatasync=no
32788fi
32789rm conftest.$ac_ext
32790LIBS=$ac_func_search_save_LIBS
32791fi
32792{ echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
32793echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
32794ac_res=$ac_cv_search_fdatasync
32795if test "$ac_res" != no; then
32796  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32797
32798fi
32799
32800
32801{ echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
32802echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
32803if test "${ac_cv_search_getaddrinfo+set}" = set; then
32804  echo $ECHO_N "(cached) $ECHO_C" >&6
32805else
32806  ac_func_search_save_LIBS=$LIBS
32807cat >conftest.$ac_ext <<_ACEOF
32808/* confdefs.h.  */
32809_ACEOF
32810cat confdefs.h >>conftest.$ac_ext
32811cat >>conftest.$ac_ext <<_ACEOF
32812/* end confdefs.h.  */
32813
32814/* Override any GCC internal prototype to avoid an error.
32815   Use char because int might match the return type of a GCC
32816   builtin and then its argument prototype would still apply.  */
32817#ifdef __cplusplus
32818extern "C"
32819#endif
32820char getaddrinfo ();
32821int
32822main ()
32823{
32824return getaddrinfo ();
32825  ;
32826  return 0;
32827}
32828_ACEOF
32829for ac_lib in '' nsl socket; do
32830  if test -z "$ac_lib"; then
32831    ac_res="none required"
32832  else
32833    ac_res=-l$ac_lib
32834    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32835  fi
32836  rm -f conftest.$ac_objext conftest$ac_exeext
32837if { (ac_try="$ac_link"
32838case "(($ac_try" in
32839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32840  *) ac_try_echo=$ac_try;;
32841esac
32842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32843  (eval "$ac_link") 2>conftest.er1
32844  ac_status=$?
32845  grep -v '^ *+' conftest.er1 >conftest.err
32846  rm -f conftest.er1
32847  cat conftest.err >&5
32848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32849  (exit $ac_status); } && {
32850	 test -z "$ac_c_werror_flag" ||
32851	 test ! -s conftest.err
32852       } && test -s conftest$ac_exeext &&
32853       $as_test_x conftest$ac_exeext; then
32854  ac_cv_search_getaddrinfo=$ac_res
32855else
32856  echo "$as_me: failed program was:" >&5
32857sed 's/^/| /' conftest.$ac_ext >&5
32858
32859
32860fi
32861
32862rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32863      conftest$ac_exeext
32864  if test "${ac_cv_search_getaddrinfo+set}" = set; then
32865  break
32866fi
32867done
32868if test "${ac_cv_search_getaddrinfo+set}" = set; then
32869  :
32870else
32871  ac_cv_search_getaddrinfo=no
32872fi
32873rm conftest.$ac_ext
32874LIBS=$ac_func_search_save_LIBS
32875fi
32876{ echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
32877echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
32878ac_res=$ac_cv_search_getaddrinfo
32879if test "$ac_res" != no; then
32880  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32881
32882fi
32883
32884{ echo "$as_me:$LINENO: checking for library containing hstrerror" >&5
32885echo $ECHO_N "checking for library containing hstrerror... $ECHO_C" >&6; }
32886if test "${ac_cv_search_hstrerror+set}" = set; then
32887  echo $ECHO_N "(cached) $ECHO_C" >&6
32888else
32889  ac_func_search_save_LIBS=$LIBS
32890cat >conftest.$ac_ext <<_ACEOF
32891/* confdefs.h.  */
32892_ACEOF
32893cat confdefs.h >>conftest.$ac_ext
32894cat >>conftest.$ac_ext <<_ACEOF
32895/* end confdefs.h.  */
32896
32897/* Override any GCC internal prototype to avoid an error.
32898   Use char because int might match the return type of a GCC
32899   builtin and then its argument prototype would still apply.  */
32900#ifdef __cplusplus
32901extern "C"
32902#endif
32903char hstrerror ();
32904int
32905main ()
32906{
32907return hstrerror ();
32908  ;
32909  return 0;
32910}
32911_ACEOF
32912for ac_lib in '' resolv; do
32913  if test -z "$ac_lib"; then
32914    ac_res="none required"
32915  else
32916    ac_res=-l$ac_lib
32917    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32918  fi
32919  rm -f conftest.$ac_objext conftest$ac_exeext
32920if { (ac_try="$ac_link"
32921case "(($ac_try" in
32922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32923  *) ac_try_echo=$ac_try;;
32924esac
32925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32926  (eval "$ac_link") 2>conftest.er1
32927  ac_status=$?
32928  grep -v '^ *+' conftest.er1 >conftest.err
32929  rm -f conftest.er1
32930  cat conftest.err >&5
32931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32932  (exit $ac_status); } && {
32933	 test -z "$ac_c_werror_flag" ||
32934	 test ! -s conftest.err
32935       } && test -s conftest$ac_exeext &&
32936       $as_test_x conftest$ac_exeext; then
32937  ac_cv_search_hstrerror=$ac_res
32938else
32939  echo "$as_me: failed program was:" >&5
32940sed 's/^/| /' conftest.$ac_ext >&5
32941
32942
32943fi
32944
32945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32946      conftest$ac_exeext
32947  if test "${ac_cv_search_hstrerror+set}" = set; then
32948  break
32949fi
32950done
32951if test "${ac_cv_search_hstrerror+set}" = set; then
32952  :
32953else
32954  ac_cv_search_hstrerror=no
32955fi
32956rm conftest.$ac_ext
32957LIBS=$ac_func_search_save_LIBS
32958fi
32959{ echo "$as_me:$LINENO: result: $ac_cv_search_hstrerror" >&5
32960echo "${ECHO_T}$ac_cv_search_hstrerror" >&6; }
32961ac_res=$ac_cv_search_hstrerror
32962if test "$ac_res" != no; then
32963  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32964
32965fi
32966
32967
32968# Those tests updated LIBS, update our internal list.
32969LIBSO_LIBS="$LIBS"
32970
32971# !!!
32972# We could be more exact about whether these libraries are needed, but don't
32973# bother -- if they exist, we load them, it's only the test programs anyway.
32974{ echo "$as_me:$LINENO: checking for main in -lm" >&5
32975echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
32976if test "${ac_cv_lib_m_main+set}" = set; then
32977  echo $ECHO_N "(cached) $ECHO_C" >&6
32978else
32979  ac_check_lib_save_LIBS=$LIBS
32980LIBS="-lm  $LIBS"
32981cat >conftest.$ac_ext <<_ACEOF
32982/* confdefs.h.  */
32983_ACEOF
32984cat confdefs.h >>conftest.$ac_ext
32985cat >>conftest.$ac_ext <<_ACEOF
32986/* end confdefs.h.  */
32987
32988
32989int
32990main ()
32991{
32992return main ();
32993  ;
32994  return 0;
32995}
32996_ACEOF
32997rm -f conftest.$ac_objext conftest$ac_exeext
32998if { (ac_try="$ac_link"
32999case "(($ac_try" in
33000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33001  *) ac_try_echo=$ac_try;;
33002esac
33003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33004  (eval "$ac_link") 2>conftest.er1
33005  ac_status=$?
33006  grep -v '^ *+' conftest.er1 >conftest.err
33007  rm -f conftest.er1
33008  cat conftest.err >&5
33009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010  (exit $ac_status); } && {
33011	 test -z "$ac_c_werror_flag" ||
33012	 test ! -s conftest.err
33013       } && test -s conftest$ac_exeext &&
33014       $as_test_x conftest$ac_exeext; then
33015  ac_cv_lib_m_main=yes
33016else
33017  echo "$as_me: failed program was:" >&5
33018sed 's/^/| /' conftest.$ac_ext >&5
33019
33020	ac_cv_lib_m_main=no
33021fi
33022
33023rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33024      conftest$ac_exeext conftest.$ac_ext
33025LIBS=$ac_check_lib_save_LIBS
33026fi
33027{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
33028echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
33029if test $ac_cv_lib_m_main = yes; then
33030  TEST_LIBS="$TEST_LIBS -lm"
33031fi
33032ac_cv_lib_m=ac_cv_lib_m_main
33033
33034{ echo "$as_me:$LINENO: checking for main in -lnsl" >&5
33035echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
33036if test "${ac_cv_lib_nsl_main+set}" = set; then
33037  echo $ECHO_N "(cached) $ECHO_C" >&6
33038else
33039  ac_check_lib_save_LIBS=$LIBS
33040LIBS="-lnsl  $LIBS"
33041cat >conftest.$ac_ext <<_ACEOF
33042/* confdefs.h.  */
33043_ACEOF
33044cat confdefs.h >>conftest.$ac_ext
33045cat >>conftest.$ac_ext <<_ACEOF
33046/* end confdefs.h.  */
33047
33048
33049int
33050main ()
33051{
33052return main ();
33053  ;
33054  return 0;
33055}
33056_ACEOF
33057rm -f conftest.$ac_objext conftest$ac_exeext
33058if { (ac_try="$ac_link"
33059case "(($ac_try" in
33060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33061  *) ac_try_echo=$ac_try;;
33062esac
33063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33064  (eval "$ac_link") 2>conftest.er1
33065  ac_status=$?
33066  grep -v '^ *+' conftest.er1 >conftest.err
33067  rm -f conftest.er1
33068  cat conftest.err >&5
33069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33070  (exit $ac_status); } && {
33071	 test -z "$ac_c_werror_flag" ||
33072	 test ! -s conftest.err
33073       } && test -s conftest$ac_exeext &&
33074       $as_test_x conftest$ac_exeext; then
33075  ac_cv_lib_nsl_main=yes
33076else
33077  echo "$as_me: failed program was:" >&5
33078sed 's/^/| /' conftest.$ac_ext >&5
33079
33080	ac_cv_lib_nsl_main=no
33081fi
33082
33083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33084      conftest$ac_exeext conftest.$ac_ext
33085LIBS=$ac_check_lib_save_LIBS
33086fi
33087{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
33088echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
33089if test $ac_cv_lib_nsl_main = yes; then
33090  TEST_LIBS="$TEST_LIBS -lnsl"
33091fi
33092ac_cv_lib_nsl=ac_cv_lib_nsl_main
33093
33094{ echo "$as_me:$LINENO: checking for main in -lpthread" >&5
33095echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
33096if test "${ac_cv_lib_pthread_main+set}" = set; then
33097  echo $ECHO_N "(cached) $ECHO_C" >&6
33098else
33099  ac_check_lib_save_LIBS=$LIBS
33100LIBS="-lpthread  $LIBS"
33101cat >conftest.$ac_ext <<_ACEOF
33102/* confdefs.h.  */
33103_ACEOF
33104cat confdefs.h >>conftest.$ac_ext
33105cat >>conftest.$ac_ext <<_ACEOF
33106/* end confdefs.h.  */
33107
33108
33109int
33110main ()
33111{
33112return main ();
33113  ;
33114  return 0;
33115}
33116_ACEOF
33117rm -f conftest.$ac_objext conftest$ac_exeext
33118if { (ac_try="$ac_link"
33119case "(($ac_try" in
33120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33121  *) ac_try_echo=$ac_try;;
33122esac
33123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33124  (eval "$ac_link") 2>conftest.er1
33125  ac_status=$?
33126  grep -v '^ *+' conftest.er1 >conftest.err
33127  rm -f conftest.er1
33128  cat conftest.err >&5
33129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33130  (exit $ac_status); } && {
33131	 test -z "$ac_c_werror_flag" ||
33132	 test ! -s conftest.err
33133       } && test -s conftest$ac_exeext &&
33134       $as_test_x conftest$ac_exeext; then
33135  ac_cv_lib_pthread_main=yes
33136else
33137  echo "$as_me: failed program was:" >&5
33138sed 's/^/| /' conftest.$ac_ext >&5
33139
33140	ac_cv_lib_pthread_main=no
33141fi
33142
33143rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33144      conftest$ac_exeext conftest.$ac_ext
33145LIBS=$ac_check_lib_save_LIBS
33146fi
33147{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
33148echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
33149if test $ac_cv_lib_pthread_main = yes; then
33150  TEST_LIBS="$TEST_LIBS -lpthread"
33151fi
33152ac_cv_lib_pthread=ac_cv_lib_pthread_main
33153
33154{ echo "$as_me:$LINENO: checking for main in -lsocket" >&5
33155echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
33156if test "${ac_cv_lib_socket_main+set}" = set; then
33157  echo $ECHO_N "(cached) $ECHO_C" >&6
33158else
33159  ac_check_lib_save_LIBS=$LIBS
33160LIBS="-lsocket  $LIBS"
33161cat >conftest.$ac_ext <<_ACEOF
33162/* confdefs.h.  */
33163_ACEOF
33164cat confdefs.h >>conftest.$ac_ext
33165cat >>conftest.$ac_ext <<_ACEOF
33166/* end confdefs.h.  */
33167
33168
33169int
33170main ()
33171{
33172return main ();
33173  ;
33174  return 0;
33175}
33176_ACEOF
33177rm -f conftest.$ac_objext conftest$ac_exeext
33178if { (ac_try="$ac_link"
33179case "(($ac_try" in
33180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33181  *) ac_try_echo=$ac_try;;
33182esac
33183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33184  (eval "$ac_link") 2>conftest.er1
33185  ac_status=$?
33186  grep -v '^ *+' conftest.er1 >conftest.err
33187  rm -f conftest.er1
33188  cat conftest.err >&5
33189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33190  (exit $ac_status); } && {
33191	 test -z "$ac_c_werror_flag" ||
33192	 test ! -s conftest.err
33193       } && test -s conftest$ac_exeext &&
33194       $as_test_x conftest$ac_exeext; then
33195  ac_cv_lib_socket_main=yes
33196else
33197  echo "$as_me: failed program was:" >&5
33198sed 's/^/| /' conftest.$ac_ext >&5
33199
33200	ac_cv_lib_socket_main=no
33201fi
33202
33203rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33204      conftest$ac_exeext conftest.$ac_ext
33205LIBS=$ac_check_lib_save_LIBS
33206fi
33207{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
33208echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
33209if test $ac_cv_lib_socket_main = yes; then
33210  TEST_LIBS="$TEST_LIBS -lsocket"
33211fi
33212ac_cv_lib_socket=ac_cv_lib_socket_main
33213
33214
33215# Checks for system functions for which we have replacements.
33216#
33217# The only portable getcwd call is getcwd(char *, size_t), where the
33218# buffer is non-NULL -- Solaris can't handle a NULL buffer, and they
33219# deleted getwd().
33220
33221
33222
33223
33224
33225
33226
33227
33228
33229
33230
33231
33232
33233
33234
33235
33236
33237
33238
33239
33240
33241
33242
33243
33244
33245
33246
33247
33248for ac_func in \
33249	abort atoi atol getcwd getenv getopt isalpha isdigit isprint\
33250	isspace memcmp memcpy memmove printf qsort raise rand strcasecmp\
33251	strcat strchr strdup strerror strncat strncmp strrchr strsep\
33252	strtol strtoul
33253do
33254as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33255{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33256echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33257if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33258  echo $ECHO_N "(cached) $ECHO_C" >&6
33259else
33260  cat >conftest.$ac_ext <<_ACEOF
33261/* confdefs.h.  */
33262_ACEOF
33263cat confdefs.h >>conftest.$ac_ext
33264cat >>conftest.$ac_ext <<_ACEOF
33265/* end confdefs.h.  */
33266/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33267   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33268#define $ac_func innocuous_$ac_func
33269
33270/* System header to define __stub macros and hopefully few prototypes,
33271    which can conflict with char $ac_func (); below.
33272    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33273    <limits.h> exists even on freestanding compilers.  */
33274
33275#ifdef __STDC__
33276# include <limits.h>
33277#else
33278# include <assert.h>
33279#endif
33280
33281#undef $ac_func
33282
33283/* Override any GCC internal prototype to avoid an error.
33284   Use char because int might match the return type of a GCC
33285   builtin and then its argument prototype would still apply.  */
33286#ifdef __cplusplus
33287extern "C"
33288#endif
33289char $ac_func ();
33290/* The GNU C library defines this for functions which it implements
33291    to always fail with ENOSYS.  Some functions are actually named
33292    something starting with __ and the normal name is an alias.  */
33293#if defined __stub_$ac_func || defined __stub___$ac_func
33294choke me
33295#endif
33296
33297int
33298main ()
33299{
33300return $ac_func ();
33301  ;
33302  return 0;
33303}
33304_ACEOF
33305rm -f conftest.$ac_objext conftest$ac_exeext
33306if { (ac_try="$ac_link"
33307case "(($ac_try" in
33308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33309  *) ac_try_echo=$ac_try;;
33310esac
33311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33312  (eval "$ac_link") 2>conftest.er1
33313  ac_status=$?
33314  grep -v '^ *+' conftest.er1 >conftest.err
33315  rm -f conftest.er1
33316  cat conftest.err >&5
33317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33318  (exit $ac_status); } && {
33319	 test -z "$ac_c_werror_flag" ||
33320	 test ! -s conftest.err
33321       } && test -s conftest$ac_exeext &&
33322       $as_test_x conftest$ac_exeext; then
33323  eval "$as_ac_var=yes"
33324else
33325  echo "$as_me: failed program was:" >&5
33326sed 's/^/| /' conftest.$ac_ext >&5
33327
33328	eval "$as_ac_var=no"
33329fi
33330
33331rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33332      conftest$ac_exeext conftest.$ac_ext
33333fi
33334ac_res=`eval echo '${'$as_ac_var'}'`
33335	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33336echo "${ECHO_T}$ac_res" >&6; }
33337if test `eval echo '${'$as_ac_var'}'` = yes; then
33338  cat >>confdefs.h <<_ACEOF
33339#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33340_ACEOF
33341
33342else
33343  case " $LIBOBJS " in
33344  *" $ac_func.$ac_objext "* ) ;;
33345  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
33346 ;;
33347esac
33348
33349fi
33350done
33351
33352
33353
33354# Check for system functions we optionally use.
33355
33356
33357
33358
33359
33360
33361
33362
33363
33364
33365
33366
33367
33368
33369
33370
33371
33372
33373
33374
33375
33376
33377
33378
33379
33380
33381
33382
33383
33384for ac_func in \
33385	_fstati64 backtrace backtrace_symbols directio fchmod fclose\
33386	fcntl fdatasync fgetc fgets fopen fwrite getgid\
33387	getrusage getuid hstrerror mprotect pstat_getdynamic\
33388	pthread_yield sched_yield select setgid setuid sigaction\
33389	snprintf stat sysconf vsnprintf yield
33390do
33391as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33392{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33393echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33394if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33395  echo $ECHO_N "(cached) $ECHO_C" >&6
33396else
33397  cat >conftest.$ac_ext <<_ACEOF
33398/* confdefs.h.  */
33399_ACEOF
33400cat confdefs.h >>conftest.$ac_ext
33401cat >>conftest.$ac_ext <<_ACEOF
33402/* end confdefs.h.  */
33403/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33404   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33405#define $ac_func innocuous_$ac_func
33406
33407/* System header to define __stub macros and hopefully few prototypes,
33408    which can conflict with char $ac_func (); below.
33409    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33410    <limits.h> exists even on freestanding compilers.  */
33411
33412#ifdef __STDC__
33413# include <limits.h>
33414#else
33415# include <assert.h>
33416#endif
33417
33418#undef $ac_func
33419
33420/* Override any GCC internal prototype to avoid an error.
33421   Use char because int might match the return type of a GCC
33422   builtin and then its argument prototype would still apply.  */
33423#ifdef __cplusplus
33424extern "C"
33425#endif
33426char $ac_func ();
33427/* The GNU C library defines this for functions which it implements
33428    to always fail with ENOSYS.  Some functions are actually named
33429    something starting with __ and the normal name is an alias.  */
33430#if defined __stub_$ac_func || defined __stub___$ac_func
33431choke me
33432#endif
33433
33434int
33435main ()
33436{
33437return $ac_func ();
33438  ;
33439  return 0;
33440}
33441_ACEOF
33442rm -f conftest.$ac_objext conftest$ac_exeext
33443if { (ac_try="$ac_link"
33444case "(($ac_try" in
33445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33446  *) ac_try_echo=$ac_try;;
33447esac
33448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33449  (eval "$ac_link") 2>conftest.er1
33450  ac_status=$?
33451  grep -v '^ *+' conftest.er1 >conftest.err
33452  rm -f conftest.er1
33453  cat conftest.err >&5
33454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33455  (exit $ac_status); } && {
33456	 test -z "$ac_c_werror_flag" ||
33457	 test ! -s conftest.err
33458       } && test -s conftest$ac_exeext &&
33459       $as_test_x conftest$ac_exeext; then
33460  eval "$as_ac_var=yes"
33461else
33462  echo "$as_me: failed program was:" >&5
33463sed 's/^/| /' conftest.$ac_ext >&5
33464
33465	eval "$as_ac_var=no"
33466fi
33467
33468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33469      conftest$ac_exeext conftest.$ac_ext
33470fi
33471ac_res=`eval echo '${'$as_ac_var'}'`
33472	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33473echo "${ECHO_T}$ac_res" >&6; }
33474if test `eval echo '${'$as_ac_var'}'` = yes; then
33475  cat >>confdefs.h <<_ACEOF
33476#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33477_ACEOF
33478
33479fi
33480done
33481
33482
33483
33484
33485
33486
33487
33488
33489for ac_func in gettimeofday localtime time strftime
33490do
33491as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33492{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33493echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33494if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33495  echo $ECHO_N "(cached) $ECHO_C" >&6
33496else
33497  cat >conftest.$ac_ext <<_ACEOF
33498/* confdefs.h.  */
33499_ACEOF
33500cat confdefs.h >>conftest.$ac_ext
33501cat >>conftest.$ac_ext <<_ACEOF
33502/* end confdefs.h.  */
33503/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33504   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33505#define $ac_func innocuous_$ac_func
33506
33507/* System header to define __stub macros and hopefully few prototypes,
33508    which can conflict with char $ac_func (); below.
33509    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33510    <limits.h> exists even on freestanding compilers.  */
33511
33512#ifdef __STDC__
33513# include <limits.h>
33514#else
33515# include <assert.h>
33516#endif
33517
33518#undef $ac_func
33519
33520/* Override any GCC internal prototype to avoid an error.
33521   Use char because int might match the return type of a GCC
33522   builtin and then its argument prototype would still apply.  */
33523#ifdef __cplusplus
33524extern "C"
33525#endif
33526char $ac_func ();
33527/* The GNU C library defines this for functions which it implements
33528    to always fail with ENOSYS.  Some functions are actually named
33529    something starting with __ and the normal name is an alias.  */
33530#if defined __stub_$ac_func || defined __stub___$ac_func
33531choke me
33532#endif
33533
33534int
33535main ()
33536{
33537return $ac_func ();
33538  ;
33539  return 0;
33540}
33541_ACEOF
33542rm -f conftest.$ac_objext conftest$ac_exeext
33543if { (ac_try="$ac_link"
33544case "(($ac_try" in
33545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33546  *) ac_try_echo=$ac_try;;
33547esac
33548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33549  (eval "$ac_link") 2>conftest.er1
33550  ac_status=$?
33551  grep -v '^ *+' conftest.er1 >conftest.err
33552  rm -f conftest.er1
33553  cat conftest.err >&5
33554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555  (exit $ac_status); } && {
33556	 test -z "$ac_c_werror_flag" ||
33557	 test ! -s conftest.err
33558       } && test -s conftest$ac_exeext &&
33559       $as_test_x conftest$ac_exeext; then
33560  eval "$as_ac_var=yes"
33561else
33562  echo "$as_me: failed program was:" >&5
33563sed 's/^/| /' conftest.$ac_ext >&5
33564
33565	eval "$as_ac_var=no"
33566fi
33567
33568rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33569      conftest$ac_exeext conftest.$ac_ext
33570fi
33571ac_res=`eval echo '${'$as_ac_var'}'`
33572	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33573echo "${ECHO_T}$ac_res" >&6; }
33574if test `eval echo '${'$as_ac_var'}'` = yes; then
33575  cat >>confdefs.h <<_ACEOF
33576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33577_ACEOF
33578
33579fi
33580done
33581
33582
33583# AIX 4.3 will link applications with calls to clock_gettime, but the
33584# calls always fail.
33585case "$host_os" in
33586aix4.3.*)
33587	;;
33588*)
33589
33590for ac_func in clock_gettime
33591do
33592as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33593{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33594echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33595if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33596  echo $ECHO_N "(cached) $ECHO_C" >&6
33597else
33598  cat >conftest.$ac_ext <<_ACEOF
33599/* confdefs.h.  */
33600_ACEOF
33601cat confdefs.h >>conftest.$ac_ext
33602cat >>conftest.$ac_ext <<_ACEOF
33603/* end confdefs.h.  */
33604/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33605   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33606#define $ac_func innocuous_$ac_func
33607
33608/* System header to define __stub macros and hopefully few prototypes,
33609    which can conflict with char $ac_func (); below.
33610    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33611    <limits.h> exists even on freestanding compilers.  */
33612
33613#ifdef __STDC__
33614# include <limits.h>
33615#else
33616# include <assert.h>
33617#endif
33618
33619#undef $ac_func
33620
33621/* Override any GCC internal prototype to avoid an error.
33622   Use char because int might match the return type of a GCC
33623   builtin and then its argument prototype would still apply.  */
33624#ifdef __cplusplus
33625extern "C"
33626#endif
33627char $ac_func ();
33628/* The GNU C library defines this for functions which it implements
33629    to always fail with ENOSYS.  Some functions are actually named
33630    something starting with __ and the normal name is an alias.  */
33631#if defined __stub_$ac_func || defined __stub___$ac_func
33632choke me
33633#endif
33634
33635int
33636main ()
33637{
33638return $ac_func ();
33639  ;
33640  return 0;
33641}
33642_ACEOF
33643rm -f conftest.$ac_objext conftest$ac_exeext
33644if { (ac_try="$ac_link"
33645case "(($ac_try" in
33646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33647  *) ac_try_echo=$ac_try;;
33648esac
33649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33650  (eval "$ac_link") 2>conftest.er1
33651  ac_status=$?
33652  grep -v '^ *+' conftest.er1 >conftest.err
33653  rm -f conftest.er1
33654  cat conftest.err >&5
33655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33656  (exit $ac_status); } && {
33657	 test -z "$ac_c_werror_flag" ||
33658	 test ! -s conftest.err
33659       } && test -s conftest$ac_exeext &&
33660       $as_test_x conftest$ac_exeext; then
33661  eval "$as_ac_var=yes"
33662else
33663  echo "$as_me: failed program was:" >&5
33664sed 's/^/| /' conftest.$ac_ext >&5
33665
33666	eval "$as_ac_var=no"
33667fi
33668
33669rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33670      conftest$ac_exeext conftest.$ac_ext
33671fi
33672ac_res=`eval echo '${'$as_ac_var'}'`
33673	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33674echo "${ECHO_T}$ac_res" >&6; }
33675if test `eval echo '${'$as_ac_var'}'` = yes; then
33676  cat >>confdefs.h <<_ACEOF
33677#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33678_ACEOF
33679
33680fi
33681done
33682;;
33683esac
33684
33685# clock_gettime -- monotonic clocks.
33686#	Check to see if we can get a monotonic clock.  We actually try and
33687#	run the program if possible, because we don't trust the #define's
33688#	existence to mean the clock really exists.
33689{ echo "$as_me:$LINENO: checking for clock_gettime monotonic clock" >&5
33690echo $ECHO_N "checking for clock_gettime monotonic clock... $ECHO_C" >&6; }
33691if test "${db_cv_clock_monotonic+set}" = set; then
33692  echo $ECHO_N "(cached) $ECHO_C" >&6
33693else
33694
33695if test "$cross_compiling" = yes; then
33696  cat >conftest.$ac_ext <<_ACEOF
33697/* confdefs.h.  */
33698_ACEOF
33699cat confdefs.h >>conftest.$ac_ext
33700cat >>conftest.$ac_ext <<_ACEOF
33701/* end confdefs.h.  */
33702
33703#include <sys/time.h>
33704int
33705main ()
33706{
33707
33708struct timespec t;
33709clock_gettime(CLOCK_MONOTONIC, &t);
33710
33711  ;
33712  return 0;
33713}
33714_ACEOF
33715rm -f conftest.$ac_objext conftest$ac_exeext
33716if { (ac_try="$ac_link"
33717case "(($ac_try" in
33718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33719  *) ac_try_echo=$ac_try;;
33720esac
33721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33722  (eval "$ac_link") 2>conftest.er1
33723  ac_status=$?
33724  grep -v '^ *+' conftest.er1 >conftest.err
33725  rm -f conftest.er1
33726  cat conftest.err >&5
33727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33728  (exit $ac_status); } && {
33729	 test -z "$ac_c_werror_flag" ||
33730	 test ! -s conftest.err
33731       } && test -s conftest$ac_exeext &&
33732       $as_test_x conftest$ac_exeext; then
33733  db_cv_clock_monotonic=yes
33734else
33735  echo "$as_me: failed program was:" >&5
33736sed 's/^/| /' conftest.$ac_ext >&5
33737
33738	db_cv_clock_monotonic=no
33739fi
33740
33741rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33742      conftest$ac_exeext conftest.$ac_ext
33743else
33744  cat >conftest.$ac_ext <<_ACEOF
33745/* confdefs.h.  */
33746_ACEOF
33747cat confdefs.h >>conftest.$ac_ext
33748cat >>conftest.$ac_ext <<_ACEOF
33749/* end confdefs.h.  */
33750
33751#include <sys/time.h>
33752main() {
33753	struct timespec t;
33754	return (clock_gettime(CLOCK_MONOTONIC, &t) != 0);
33755}
33756_ACEOF
33757rm -f conftest$ac_exeext
33758if { (ac_try="$ac_link"
33759case "(($ac_try" in
33760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33761  *) ac_try_echo=$ac_try;;
33762esac
33763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33764  (eval "$ac_link") 2>&5
33765  ac_status=$?
33766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33767  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33768  { (case "(($ac_try" in
33769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33770  *) ac_try_echo=$ac_try;;
33771esac
33772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33773  (eval "$ac_try") 2>&5
33774  ac_status=$?
33775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33776  (exit $ac_status); }; }; then
33777  db_cv_clock_monotonic=yes
33778else
33779  echo "$as_me: program exited with status $ac_status" >&5
33780echo "$as_me: failed program was:" >&5
33781sed 's/^/| /' conftest.$ac_ext >&5
33782
33783( exit $ac_status )
33784db_cv_clock_monotonic=no
33785fi
33786rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33787fi
33788
33789
33790
33791fi
33792{ echo "$as_me:$LINENO: result: $db_cv_clock_monotonic" >&5
33793echo "${ECHO_T}$db_cv_clock_monotonic" >&6; }
33794if test "$db_cv_clock_monotonic" = "yes"; then
33795	cat >>confdefs.h <<\_ACEOF
33796#define HAVE_CLOCK_MONOTONIC 1
33797_ACEOF
33798
33799
33800
33801fi
33802
33803# ctime_r --
33804#
33805# There are two versions of ctime_r, one of which takes a buffer length as a
33806# third argument, and one which only takes two arguments.  (There is also a
33807# difference in return values and the type of the 3rd argument, but we handle
33808# those problems in the code itself.)
33809
33810for ac_func in ctime_r
33811do
33812as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33813{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33814echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33815if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33816  echo $ECHO_N "(cached) $ECHO_C" >&6
33817else
33818  cat >conftest.$ac_ext <<_ACEOF
33819/* confdefs.h.  */
33820_ACEOF
33821cat confdefs.h >>conftest.$ac_ext
33822cat >>conftest.$ac_ext <<_ACEOF
33823/* end confdefs.h.  */
33824/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33825   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33826#define $ac_func innocuous_$ac_func
33827
33828/* System header to define __stub macros and hopefully few prototypes,
33829    which can conflict with char $ac_func (); below.
33830    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33831    <limits.h> exists even on freestanding compilers.  */
33832
33833#ifdef __STDC__
33834# include <limits.h>
33835#else
33836# include <assert.h>
33837#endif
33838
33839#undef $ac_func
33840
33841/* Override any GCC internal prototype to avoid an error.
33842   Use char because int might match the return type of a GCC
33843   builtin and then its argument prototype would still apply.  */
33844#ifdef __cplusplus
33845extern "C"
33846#endif
33847char $ac_func ();
33848/* The GNU C library defines this for functions which it implements
33849    to always fail with ENOSYS.  Some functions are actually named
33850    something starting with __ and the normal name is an alias.  */
33851#if defined __stub_$ac_func || defined __stub___$ac_func
33852choke me
33853#endif
33854
33855int
33856main ()
33857{
33858return $ac_func ();
33859  ;
33860  return 0;
33861}
33862_ACEOF
33863rm -f conftest.$ac_objext conftest$ac_exeext
33864if { (ac_try="$ac_link"
33865case "(($ac_try" in
33866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33867  *) ac_try_echo=$ac_try;;
33868esac
33869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33870  (eval "$ac_link") 2>conftest.er1
33871  ac_status=$?
33872  grep -v '^ *+' conftest.er1 >conftest.err
33873  rm -f conftest.er1
33874  cat conftest.err >&5
33875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33876  (exit $ac_status); } && {
33877	 test -z "$ac_c_werror_flag" ||
33878	 test ! -s conftest.err
33879       } && test -s conftest$ac_exeext &&
33880       $as_test_x conftest$ac_exeext; then
33881  eval "$as_ac_var=yes"
33882else
33883  echo "$as_me: failed program was:" >&5
33884sed 's/^/| /' conftest.$ac_ext >&5
33885
33886	eval "$as_ac_var=no"
33887fi
33888
33889rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33890      conftest$ac_exeext conftest.$ac_ext
33891fi
33892ac_res=`eval echo '${'$as_ac_var'}'`
33893	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33894echo "${ECHO_T}$ac_res" >&6; }
33895if test `eval echo '${'$as_ac_var'}'` = yes; then
33896  cat >>confdefs.h <<_ACEOF
33897#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33898_ACEOF
33899
33900fi
33901done
33902
33903if test "$ac_cv_func_ctime_r" = "yes"; then
33904{ echo "$as_me:$LINENO: checking for 2 or 3 argument version of ctime_r" >&5
33905echo $ECHO_N "checking for 2 or 3 argument version of ctime_r... $ECHO_C" >&6; }
33906if test "${db_cv_ctime_r_3arg+set}" = set; then
33907  echo $ECHO_N "(cached) $ECHO_C" >&6
33908else
33909
33910cat >conftest.$ac_ext <<_ACEOF
33911/* confdefs.h.  */
33912_ACEOF
33913cat confdefs.h >>conftest.$ac_ext
33914cat >>conftest.$ac_ext <<_ACEOF
33915/* end confdefs.h.  */
33916
33917#include <time.h>
33918int
33919main ()
33920{
33921
33922	ctime_r(NULL, NULL, 100);
33923
33924  ;
33925  return 0;
33926}
33927_ACEOF
33928rm -f conftest.$ac_objext conftest$ac_exeext
33929if { (ac_try="$ac_link"
33930case "(($ac_try" in
33931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33932  *) ac_try_echo=$ac_try;;
33933esac
33934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33935  (eval "$ac_link") 2>conftest.er1
33936  ac_status=$?
33937  grep -v '^ *+' conftest.er1 >conftest.err
33938  rm -f conftest.er1
33939  cat conftest.err >&5
33940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941  (exit $ac_status); } && {
33942	 test -z "$ac_c_werror_flag" ||
33943	 test ! -s conftest.err
33944       } && test -s conftest$ac_exeext &&
33945       $as_test_x conftest$ac_exeext; then
33946  db_cv_ctime_r_3arg="3-argument"
33947else
33948  echo "$as_me: failed program was:" >&5
33949sed 's/^/| /' conftest.$ac_ext >&5
33950
33951	db_cv_ctime_r_3arg="2-argument"
33952fi
33953
33954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33955      conftest$ac_exeext conftest.$ac_ext
33956fi
33957{ echo "$as_me:$LINENO: result: $db_cv_ctime_r_3arg" >&5
33958echo "${ECHO_T}$db_cv_ctime_r_3arg" >&6; }
33959fi
33960if test "$db_cv_ctime_r_3arg" = "3-argument"; then
33961	cat >>confdefs.h <<\_ACEOF
33962#define HAVE_CTIME_R_3ARG 1
33963_ACEOF
33964
33965
33966
33967fi
33968
33969
33970# Ftruncate.
33971# We've run into a problem with ftruncate on Alpha/Tru64, the issue is that
33972# after a truncate the last page of the file mmaps as all zeros.  So just don't
33973# use ftruncate.
33974case "$host_os" in
33975osf*)
33976	{ echo "$as_me:$LINENO: WARNING: ftruncate ignored on $host_os-$host_vendor." >&5
33977echo "$as_me: WARNING: ftruncate ignored on $host_os-$host_vendor." >&2;};;
33978*)
33979
33980for ac_func in ftruncate
33981do
33982as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33983{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33984echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33985if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33986  echo $ECHO_N "(cached) $ECHO_C" >&6
33987else
33988  cat >conftest.$ac_ext <<_ACEOF
33989/* confdefs.h.  */
33990_ACEOF
33991cat confdefs.h >>conftest.$ac_ext
33992cat >>conftest.$ac_ext <<_ACEOF
33993/* end confdefs.h.  */
33994/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33995   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33996#define $ac_func innocuous_$ac_func
33997
33998/* System header to define __stub macros and hopefully few prototypes,
33999    which can conflict with char $ac_func (); below.
34000    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34001    <limits.h> exists even on freestanding compilers.  */
34002
34003#ifdef __STDC__
34004# include <limits.h>
34005#else
34006# include <assert.h>
34007#endif
34008
34009#undef $ac_func
34010
34011/* Override any GCC internal prototype to avoid an error.
34012   Use char because int might match the return type of a GCC
34013   builtin and then its argument prototype would still apply.  */
34014#ifdef __cplusplus
34015extern "C"
34016#endif
34017char $ac_func ();
34018/* The GNU C library defines this for functions which it implements
34019    to always fail with ENOSYS.  Some functions are actually named
34020    something starting with __ and the normal name is an alias.  */
34021#if defined __stub_$ac_func || defined __stub___$ac_func
34022choke me
34023#endif
34024
34025int
34026main ()
34027{
34028return $ac_func ();
34029  ;
34030  return 0;
34031}
34032_ACEOF
34033rm -f conftest.$ac_objext conftest$ac_exeext
34034if { (ac_try="$ac_link"
34035case "(($ac_try" in
34036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34037  *) ac_try_echo=$ac_try;;
34038esac
34039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34040  (eval "$ac_link") 2>conftest.er1
34041  ac_status=$?
34042  grep -v '^ *+' conftest.er1 >conftest.err
34043  rm -f conftest.er1
34044  cat conftest.err >&5
34045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34046  (exit $ac_status); } && {
34047	 test -z "$ac_c_werror_flag" ||
34048	 test ! -s conftest.err
34049       } && test -s conftest$ac_exeext &&
34050       $as_test_x conftest$ac_exeext; then
34051  eval "$as_ac_var=yes"
34052else
34053  echo "$as_me: failed program was:" >&5
34054sed 's/^/| /' conftest.$ac_ext >&5
34055
34056	eval "$as_ac_var=no"
34057fi
34058
34059rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34060      conftest$ac_exeext conftest.$ac_ext
34061fi
34062ac_res=`eval echo '${'$as_ac_var'}'`
34063	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34064echo "${ECHO_T}$ac_res" >&6; }
34065if test `eval echo '${'$as_ac_var'}'` = yes; then
34066  cat >>confdefs.h <<_ACEOF
34067#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34068_ACEOF
34069
34070fi
34071done
34072;;
34073esac
34074
34075# Pread/pwrite.
34076# HP-UX has pread/pwrite, but it doesn't work with largefile support.
34077# NCR's version of System V R 4.3 has pread/pwrite symbols, but no support.
34078case "$host_os-$host_vendor" in
34079hpux*|sysv4.3*-ncr)
34080	{ echo "$as_me:$LINENO: WARNING: pread/pwrite interfaces ignored on $host_os-$host_vendor." >&5
34081echo "$as_me: WARNING: pread/pwrite interfaces ignored on $host_os-$host_vendor." >&2;};;
34082*)
34083
34084
34085for ac_func in pread pwrite
34086do
34087as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34088{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34089echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34090if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34091  echo $ECHO_N "(cached) $ECHO_C" >&6
34092else
34093  cat >conftest.$ac_ext <<_ACEOF
34094/* confdefs.h.  */
34095_ACEOF
34096cat confdefs.h >>conftest.$ac_ext
34097cat >>conftest.$ac_ext <<_ACEOF
34098/* end confdefs.h.  */
34099/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34100   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34101#define $ac_func innocuous_$ac_func
34102
34103/* System header to define __stub macros and hopefully few prototypes,
34104    which can conflict with char $ac_func (); below.
34105    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34106    <limits.h> exists even on freestanding compilers.  */
34107
34108#ifdef __STDC__
34109# include <limits.h>
34110#else
34111# include <assert.h>
34112#endif
34113
34114#undef $ac_func
34115
34116/* Override any GCC internal prototype to avoid an error.
34117   Use char because int might match the return type of a GCC
34118   builtin and then its argument prototype would still apply.  */
34119#ifdef __cplusplus
34120extern "C"
34121#endif
34122char $ac_func ();
34123/* The GNU C library defines this for functions which it implements
34124    to always fail with ENOSYS.  Some functions are actually named
34125    something starting with __ and the normal name is an alias.  */
34126#if defined __stub_$ac_func || defined __stub___$ac_func
34127choke me
34128#endif
34129
34130int
34131main ()
34132{
34133return $ac_func ();
34134  ;
34135  return 0;
34136}
34137_ACEOF
34138rm -f conftest.$ac_objext conftest$ac_exeext
34139if { (ac_try="$ac_link"
34140case "(($ac_try" in
34141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34142  *) ac_try_echo=$ac_try;;
34143esac
34144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34145  (eval "$ac_link") 2>conftest.er1
34146  ac_status=$?
34147  grep -v '^ *+' conftest.er1 >conftest.err
34148  rm -f conftest.er1
34149  cat conftest.err >&5
34150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34151  (exit $ac_status); } && {
34152	 test -z "$ac_c_werror_flag" ||
34153	 test ! -s conftest.err
34154       } && test -s conftest$ac_exeext &&
34155       $as_test_x conftest$ac_exeext; then
34156  eval "$as_ac_var=yes"
34157else
34158  echo "$as_me: failed program was:" >&5
34159sed 's/^/| /' conftest.$ac_ext >&5
34160
34161	eval "$as_ac_var=no"
34162fi
34163
34164rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34165      conftest$ac_exeext conftest.$ac_ext
34166fi
34167ac_res=`eval echo '${'$as_ac_var'}'`
34168	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34169echo "${ECHO_T}$ac_res" >&6; }
34170if test `eval echo '${'$as_ac_var'}'` = yes; then
34171  cat >>confdefs.h <<_ACEOF
34172#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34173_ACEOF
34174
34175fi
34176done
34177;;
34178esac
34179
34180# Check for getaddrinfo; do the test explicitly instead of using AC_CHECK_FUNCS
34181# because <netdb.h> isn't a standard include file.
34182{ echo "$as_me:$LINENO: checking for getaddrinfo" >&5
34183echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
34184if test "${db_cv_getaddrinfo+set}" = set; then
34185  echo $ECHO_N "(cached) $ECHO_C" >&6
34186else
34187
34188cat >conftest.$ac_ext <<_ACEOF
34189/* confdefs.h.  */
34190_ACEOF
34191cat confdefs.h >>conftest.$ac_ext
34192cat >>conftest.$ac_ext <<_ACEOF
34193/* end confdefs.h.  */
34194
34195#include <sys/types.h>
34196#include <netdb.h>
34197int
34198main ()
34199{
34200
34201	getaddrinfo(0, 0, 0, 0);
34202
34203  ;
34204  return 0;
34205}
34206_ACEOF
34207rm -f conftest.$ac_objext conftest$ac_exeext
34208if { (ac_try="$ac_link"
34209case "(($ac_try" in
34210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34211  *) ac_try_echo=$ac_try;;
34212esac
34213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34214  (eval "$ac_link") 2>conftest.er1
34215  ac_status=$?
34216  grep -v '^ *+' conftest.er1 >conftest.err
34217  rm -f conftest.er1
34218  cat conftest.err >&5
34219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34220  (exit $ac_status); } && {
34221	 test -z "$ac_c_werror_flag" ||
34222	 test ! -s conftest.err
34223       } && test -s conftest$ac_exeext &&
34224       $as_test_x conftest$ac_exeext; then
34225  db_cv_getaddrinfo=yes
34226else
34227  echo "$as_me: failed program was:" >&5
34228sed 's/^/| /' conftest.$ac_ext >&5
34229
34230	db_cv_getaddrinfo=no
34231fi
34232
34233rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34234      conftest$ac_exeext conftest.$ac_ext
34235fi
34236{ echo "$as_me:$LINENO: result: $db_cv_getaddrinfo" >&5
34237echo "${ECHO_T}$db_cv_getaddrinfo" >&6; }
34238if test "$db_cv_getaddrinfo" = "yes"; then
34239	cat >>confdefs.h <<\_ACEOF
34240#define HAVE_GETADDRINFO 1
34241_ACEOF
34242
34243
34244
34245fi
34246
34247# Check for the fcntl F_SETFD flag to deny child process access to file
34248# descriptors.
34249{ echo "$as_me:$LINENO: checking for fcntl/F_SETFD" >&5
34250echo $ECHO_N "checking for fcntl/F_SETFD... $ECHO_C" >&6; }
34251if test "${db_cv_fcntl_f_setfd+set}" = set; then
34252  echo $ECHO_N "(cached) $ECHO_C" >&6
34253else
34254
34255cat >conftest.$ac_ext <<_ACEOF
34256/* confdefs.h.  */
34257_ACEOF
34258cat confdefs.h >>conftest.$ac_ext
34259cat >>conftest.$ac_ext <<_ACEOF
34260/* end confdefs.h.  */
34261
34262#include <sys/types.h>
34263#include <fcntl.h>
34264int
34265main ()
34266{
34267
34268	fcntl(1, F_SETFD, 1);
34269
34270  ;
34271  return 0;
34272}
34273_ACEOF
34274rm -f conftest.$ac_objext conftest$ac_exeext
34275if { (ac_try="$ac_link"
34276case "(($ac_try" in
34277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34278  *) ac_try_echo=$ac_try;;
34279esac
34280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34281  (eval "$ac_link") 2>conftest.er1
34282  ac_status=$?
34283  grep -v '^ *+' conftest.er1 >conftest.err
34284  rm -f conftest.er1
34285  cat conftest.err >&5
34286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34287  (exit $ac_status); } && {
34288	 test -z "$ac_c_werror_flag" ||
34289	 test ! -s conftest.err
34290       } && test -s conftest$ac_exeext &&
34291       $as_test_x conftest$ac_exeext; then
34292  db_cv_fcntl_f_setfd=yes
34293else
34294  echo "$as_me: failed program was:" >&5
34295sed 's/^/| /' conftest.$ac_ext >&5
34296
34297	db_cv_fcntl_f_setfd=no
34298fi
34299
34300rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34301      conftest$ac_exeext conftest.$ac_ext
34302fi
34303{ echo "$as_me:$LINENO: result: $db_cv_fcntl_f_setfd" >&5
34304echo "${ECHO_T}$db_cv_fcntl_f_setfd" >&6; }
34305if test "$db_cv_fcntl_f_setfd" = "yes"; then
34306	cat >>confdefs.h <<\_ACEOF
34307#define HAVE_FCNTL_F_SETFD 1
34308_ACEOF
34309
34310
34311
34312fi
34313
34314# A/UX has a broken getopt(3).
34315case "$host_os" in
34316aux*)	case " $LIBOBJS " in
34317  *" getopt.$ac_objext "* ) ;;
34318  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
34319 ;;
34320esac
34321;;
34322esac
34323
34324# Linux has a broken O_DIRECT flag, but you can't detect it at configure time.
34325# Linux and SGI require buffer alignment we may not match, otherwise writes
34326# will fail.  Default to not using the O_DIRECT flag.
34327if test "$db_cv_o_direct" = "yes"; then
34328	{ echo "$as_me:$LINENO: checking for open/O_DIRECT" >&5
34329echo $ECHO_N "checking for open/O_DIRECT... $ECHO_C" >&6; }
34330if test "${db_cv_open_o_direct+set}" = set; then
34331  echo $ECHO_N "(cached) $ECHO_C" >&6
34332else
34333
34334	cat >conftest.$ac_ext <<_ACEOF
34335/* confdefs.h.  */
34336_ACEOF
34337cat confdefs.h >>conftest.$ac_ext
34338cat >>conftest.$ac_ext <<_ACEOF
34339/* end confdefs.h.  */
34340
34341	#include <sys/types.h>
34342	#include <fcntl.h>
34343int
34344main ()
34345{
34346
34347		open("a", O_RDONLY | O_DIRECT, 0);
34348
34349  ;
34350  return 0;
34351}
34352_ACEOF
34353rm -f conftest.$ac_objext conftest$ac_exeext
34354if { (ac_try="$ac_link"
34355case "(($ac_try" in
34356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34357  *) ac_try_echo=$ac_try;;
34358esac
34359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34360  (eval "$ac_link") 2>conftest.er1
34361  ac_status=$?
34362  grep -v '^ *+' conftest.er1 >conftest.err
34363  rm -f conftest.er1
34364  cat conftest.err >&5
34365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34366  (exit $ac_status); } && {
34367	 test -z "$ac_c_werror_flag" ||
34368	 test ! -s conftest.err
34369       } && test -s conftest$ac_exeext &&
34370       $as_test_x conftest$ac_exeext; then
34371  db_cv_open_o_direct=yes
34372else
34373  echo "$as_me: failed program was:" >&5
34374sed 's/^/| /' conftest.$ac_ext >&5
34375
34376	db_cv_open_o_direct=no
34377fi
34378
34379rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34380      conftest$ac_exeext conftest.$ac_ext
34381fi
34382{ echo "$as_me:$LINENO: result: $db_cv_open_o_direct" >&5
34383echo "${ECHO_T}$db_cv_open_o_direct" >&6; }
34384	if test \
34385	    "$db_cv_o_direct" = "yes" -a "$db_cv_open_o_direct" = "yes"; then
34386		cat >>confdefs.h <<\_ACEOF
34387#define HAVE_O_DIRECT 1
34388_ACEOF
34389
34390
34391
34392	fi
34393fi
34394
34395# Check for largefile support.
34396# Check whether --enable-largefile was given.
34397if test "${enable_largefile+set}" = set; then
34398  enableval=$enable_largefile;
34399fi
34400
34401if test "$enable_largefile" != no; then
34402
34403  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
34404echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
34405if test "${ac_cv_sys_largefile_CC+set}" = set; then
34406  echo $ECHO_N "(cached) $ECHO_C" >&6
34407else
34408  ac_cv_sys_largefile_CC=no
34409     if test "$GCC" != yes; then
34410       ac_save_CC=$CC
34411       while :; do
34412	 # IRIX 6.2 and later do not support large files by default,
34413	 # so use the C compiler's -n32 option if that helps.
34414	 cat >conftest.$ac_ext <<_ACEOF
34415/* confdefs.h.  */
34416_ACEOF
34417cat confdefs.h >>conftest.$ac_ext
34418cat >>conftest.$ac_ext <<_ACEOF
34419/* end confdefs.h.  */
34420#include <sys/types.h>
34421 /* Check that off_t can represent 2**63 - 1 correctly.
34422    We can't simply define LARGE_OFF_T to be 9223372036854775807,
34423    since some C++ compilers masquerading as C compilers
34424    incorrectly reject 9223372036854775807.  */
34425#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
34426  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
34427		       && LARGE_OFF_T % 2147483647 == 1)
34428		      ? 1 : -1];
34429int
34430main ()
34431{
34432
34433  ;
34434  return 0;
34435}
34436_ACEOF
34437	 rm -f conftest.$ac_objext
34438if { (ac_try="$ac_compile"
34439case "(($ac_try" in
34440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34441  *) ac_try_echo=$ac_try;;
34442esac
34443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34444  (eval "$ac_compile") 2>conftest.er1
34445  ac_status=$?
34446  grep -v '^ *+' conftest.er1 >conftest.err
34447  rm -f conftest.er1
34448  cat conftest.err >&5
34449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34450  (exit $ac_status); } && {
34451	 test -z "$ac_c_werror_flag" ||
34452	 test ! -s conftest.err
34453       } && test -s conftest.$ac_objext; then
34454  break
34455else
34456  echo "$as_me: failed program was:" >&5
34457sed 's/^/| /' conftest.$ac_ext >&5
34458
34459
34460fi
34461
34462rm -f core conftest.err conftest.$ac_objext
34463	 CC="$CC -n32"
34464	 rm -f conftest.$ac_objext
34465if { (ac_try="$ac_compile"
34466case "(($ac_try" in
34467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34468  *) ac_try_echo=$ac_try;;
34469esac
34470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34471  (eval "$ac_compile") 2>conftest.er1
34472  ac_status=$?
34473  grep -v '^ *+' conftest.er1 >conftest.err
34474  rm -f conftest.er1
34475  cat conftest.err >&5
34476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34477  (exit $ac_status); } && {
34478	 test -z "$ac_c_werror_flag" ||
34479	 test ! -s conftest.err
34480       } && test -s conftest.$ac_objext; then
34481  ac_cv_sys_largefile_CC=' -n32'; break
34482else
34483  echo "$as_me: failed program was:" >&5
34484sed 's/^/| /' conftest.$ac_ext >&5
34485
34486
34487fi
34488
34489rm -f core conftest.err conftest.$ac_objext
34490	 break
34491       done
34492       CC=$ac_save_CC
34493       rm -f conftest.$ac_ext
34494    fi
34495fi
34496{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
34497echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
34498  if test "$ac_cv_sys_largefile_CC" != no; then
34499    CC=$CC$ac_cv_sys_largefile_CC
34500  fi
34501
34502  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
34503echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
34504if test "${ac_cv_sys_file_offset_bits+set}" = set; then
34505  echo $ECHO_N "(cached) $ECHO_C" >&6
34506else
34507  while :; do
34508  cat >conftest.$ac_ext <<_ACEOF
34509/* confdefs.h.  */
34510_ACEOF
34511cat confdefs.h >>conftest.$ac_ext
34512cat >>conftest.$ac_ext <<_ACEOF
34513/* end confdefs.h.  */
34514#include <sys/types.h>
34515 /* Check that off_t can represent 2**63 - 1 correctly.
34516    We can't simply define LARGE_OFF_T to be 9223372036854775807,
34517    since some C++ compilers masquerading as C compilers
34518    incorrectly reject 9223372036854775807.  */
34519#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
34520  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
34521		       && LARGE_OFF_T % 2147483647 == 1)
34522		      ? 1 : -1];
34523int
34524main ()
34525{
34526
34527  ;
34528  return 0;
34529}
34530_ACEOF
34531rm -f conftest.$ac_objext
34532if { (ac_try="$ac_compile"
34533case "(($ac_try" in
34534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34535  *) ac_try_echo=$ac_try;;
34536esac
34537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34538  (eval "$ac_compile") 2>conftest.er1
34539  ac_status=$?
34540  grep -v '^ *+' conftest.er1 >conftest.err
34541  rm -f conftest.er1
34542  cat conftest.err >&5
34543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34544  (exit $ac_status); } && {
34545	 test -z "$ac_c_werror_flag" ||
34546	 test ! -s conftest.err
34547       } && test -s conftest.$ac_objext; then
34548  ac_cv_sys_file_offset_bits=no; break
34549else
34550  echo "$as_me: failed program was:" >&5
34551sed 's/^/| /' conftest.$ac_ext >&5
34552
34553
34554fi
34555
34556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34557  cat >conftest.$ac_ext <<_ACEOF
34558/* confdefs.h.  */
34559_ACEOF
34560cat confdefs.h >>conftest.$ac_ext
34561cat >>conftest.$ac_ext <<_ACEOF
34562/* end confdefs.h.  */
34563#define _FILE_OFFSET_BITS 64
34564#include <sys/types.h>
34565 /* Check that off_t can represent 2**63 - 1 correctly.
34566    We can't simply define LARGE_OFF_T to be 9223372036854775807,
34567    since some C++ compilers masquerading as C compilers
34568    incorrectly reject 9223372036854775807.  */
34569#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
34570  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
34571		       && LARGE_OFF_T % 2147483647 == 1)
34572		      ? 1 : -1];
34573int
34574main ()
34575{
34576
34577  ;
34578  return 0;
34579}
34580_ACEOF
34581rm -f conftest.$ac_objext
34582if { (ac_try="$ac_compile"
34583case "(($ac_try" in
34584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34585  *) ac_try_echo=$ac_try;;
34586esac
34587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34588  (eval "$ac_compile") 2>conftest.er1
34589  ac_status=$?
34590  grep -v '^ *+' conftest.er1 >conftest.err
34591  rm -f conftest.er1
34592  cat conftest.err >&5
34593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34594  (exit $ac_status); } && {
34595	 test -z "$ac_c_werror_flag" ||
34596	 test ! -s conftest.err
34597       } && test -s conftest.$ac_objext; then
34598  ac_cv_sys_file_offset_bits=64; break
34599else
34600  echo "$as_me: failed program was:" >&5
34601sed 's/^/| /' conftest.$ac_ext >&5
34602
34603
34604fi
34605
34606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34607  ac_cv_sys_file_offset_bits=unknown
34608  break
34609done
34610fi
34611{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
34612echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
34613case $ac_cv_sys_file_offset_bits in #(
34614  no | unknown) ;;
34615  *)
34616cat >>confdefs.h <<_ACEOF
34617#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
34618_ACEOF
34619;;
34620esac
34621rm -f conftest*
34622  if test $ac_cv_sys_file_offset_bits = unknown; then
34623    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
34624echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
34625if test "${ac_cv_sys_large_files+set}" = set; then
34626  echo $ECHO_N "(cached) $ECHO_C" >&6
34627else
34628  while :; do
34629  cat >conftest.$ac_ext <<_ACEOF
34630/* confdefs.h.  */
34631_ACEOF
34632cat confdefs.h >>conftest.$ac_ext
34633cat >>conftest.$ac_ext <<_ACEOF
34634/* end confdefs.h.  */
34635#include <sys/types.h>
34636 /* Check that off_t can represent 2**63 - 1 correctly.
34637    We can't simply define LARGE_OFF_T to be 9223372036854775807,
34638    since some C++ compilers masquerading as C compilers
34639    incorrectly reject 9223372036854775807.  */
34640#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
34641  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
34642		       && LARGE_OFF_T % 2147483647 == 1)
34643		      ? 1 : -1];
34644int
34645main ()
34646{
34647
34648  ;
34649  return 0;
34650}
34651_ACEOF
34652rm -f conftest.$ac_objext
34653if { (ac_try="$ac_compile"
34654case "(($ac_try" in
34655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34656  *) ac_try_echo=$ac_try;;
34657esac
34658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34659  (eval "$ac_compile") 2>conftest.er1
34660  ac_status=$?
34661  grep -v '^ *+' conftest.er1 >conftest.err
34662  rm -f conftest.er1
34663  cat conftest.err >&5
34664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34665  (exit $ac_status); } && {
34666	 test -z "$ac_c_werror_flag" ||
34667	 test ! -s conftest.err
34668       } && test -s conftest.$ac_objext; then
34669  ac_cv_sys_large_files=no; break
34670else
34671  echo "$as_me: failed program was:" >&5
34672sed 's/^/| /' conftest.$ac_ext >&5
34673
34674
34675fi
34676
34677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34678  cat >conftest.$ac_ext <<_ACEOF
34679/* confdefs.h.  */
34680_ACEOF
34681cat confdefs.h >>conftest.$ac_ext
34682cat >>conftest.$ac_ext <<_ACEOF
34683/* end confdefs.h.  */
34684#define _LARGE_FILES 1
34685#include <sys/types.h>
34686 /* Check that off_t can represent 2**63 - 1 correctly.
34687    We can't simply define LARGE_OFF_T to be 9223372036854775807,
34688    since some C++ compilers masquerading as C compilers
34689    incorrectly reject 9223372036854775807.  */
34690#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
34691  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
34692		       && LARGE_OFF_T % 2147483647 == 1)
34693		      ? 1 : -1];
34694int
34695main ()
34696{
34697
34698  ;
34699  return 0;
34700}
34701_ACEOF
34702rm -f conftest.$ac_objext
34703if { (ac_try="$ac_compile"
34704case "(($ac_try" in
34705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34706  *) ac_try_echo=$ac_try;;
34707esac
34708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34709  (eval "$ac_compile") 2>conftest.er1
34710  ac_status=$?
34711  grep -v '^ *+' conftest.er1 >conftest.err
34712  rm -f conftest.er1
34713  cat conftest.err >&5
34714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34715  (exit $ac_status); } && {
34716	 test -z "$ac_c_werror_flag" ||
34717	 test ! -s conftest.err
34718       } && test -s conftest.$ac_objext; then
34719  ac_cv_sys_large_files=1; break
34720else
34721  echo "$as_me: failed program was:" >&5
34722sed 's/^/| /' conftest.$ac_ext >&5
34723
34724
34725fi
34726
34727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34728  ac_cv_sys_large_files=unknown
34729  break
34730done
34731fi
34732{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
34733echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
34734case $ac_cv_sys_large_files in #(
34735  no | unknown) ;;
34736  *)
34737cat >>confdefs.h <<_ACEOF
34738#define _LARGE_FILES $ac_cv_sys_large_files
34739_ACEOF
34740;;
34741esac
34742rm -f conftest*
34743  fi
34744fi
34745
34746
34747# Figure out how to create shared regions.
34748#
34749# First, we look for mmap.
34750#
34751# BSD/OS has mlock(2), but it doesn't work until the 4.1 release.
34752#
34753# Nextstep (version 3.3) apparently supports mmap(2) (the mmap symbol
34754# is defined in the C library) but does not support munmap(2).  Don't
34755# try to use mmap if we can't find munmap.
34756#
34757# Ultrix has mmap(2), but it doesn't work.
34758mmap_ok=no
34759case "$host_os" in
34760bsdi3*|bsdi4.0)
34761	{ echo "$as_me:$LINENO: WARNING: mlock(2) interface ignored on $host_os-$host_vendor." >&5
34762echo "$as_me: WARNING: mlock(2) interface ignored on $host_os-$host_vendor." >&2;}
34763	mmap_ok=yes
34764
34765
34766for ac_func in mmap munmap
34767do
34768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34769{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34770echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34771if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34772  echo $ECHO_N "(cached) $ECHO_C" >&6
34773else
34774  cat >conftest.$ac_ext <<_ACEOF
34775/* confdefs.h.  */
34776_ACEOF
34777cat confdefs.h >>conftest.$ac_ext
34778cat >>conftest.$ac_ext <<_ACEOF
34779/* end confdefs.h.  */
34780/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34781   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34782#define $ac_func innocuous_$ac_func
34783
34784/* System header to define __stub macros and hopefully few prototypes,
34785    which can conflict with char $ac_func (); below.
34786    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34787    <limits.h> exists even on freestanding compilers.  */
34788
34789#ifdef __STDC__
34790# include <limits.h>
34791#else
34792# include <assert.h>
34793#endif
34794
34795#undef $ac_func
34796
34797/* Override any GCC internal prototype to avoid an error.
34798   Use char because int might match the return type of a GCC
34799   builtin and then its argument prototype would still apply.  */
34800#ifdef __cplusplus
34801extern "C"
34802#endif
34803char $ac_func ();
34804/* The GNU C library defines this for functions which it implements
34805    to always fail with ENOSYS.  Some functions are actually named
34806    something starting with __ and the normal name is an alias.  */
34807#if defined __stub_$ac_func || defined __stub___$ac_func
34808choke me
34809#endif
34810
34811int
34812main ()
34813{
34814return $ac_func ();
34815  ;
34816  return 0;
34817}
34818_ACEOF
34819rm -f conftest.$ac_objext conftest$ac_exeext
34820if { (ac_try="$ac_link"
34821case "(($ac_try" in
34822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34823  *) ac_try_echo=$ac_try;;
34824esac
34825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34826  (eval "$ac_link") 2>conftest.er1
34827  ac_status=$?
34828  grep -v '^ *+' conftest.er1 >conftest.err
34829  rm -f conftest.er1
34830  cat conftest.err >&5
34831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832  (exit $ac_status); } && {
34833	 test -z "$ac_c_werror_flag" ||
34834	 test ! -s conftest.err
34835       } && test -s conftest$ac_exeext &&
34836       $as_test_x conftest$ac_exeext; then
34837  eval "$as_ac_var=yes"
34838else
34839  echo "$as_me: failed program was:" >&5
34840sed 's/^/| /' conftest.$ac_ext >&5
34841
34842	eval "$as_ac_var=no"
34843fi
34844
34845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34846      conftest$ac_exeext conftest.$ac_ext
34847fi
34848ac_res=`eval echo '${'$as_ac_var'}'`
34849	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34850echo "${ECHO_T}$ac_res" >&6; }
34851if test `eval echo '${'$as_ac_var'}'` = yes; then
34852  cat >>confdefs.h <<_ACEOF
34853#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34854_ACEOF
34855
34856else
34857  mmap_ok=no
34858fi
34859done
34860;;
34861ultrix*)
34862	{ echo "$as_me:$LINENO: WARNING: mmap(2) interface ignored on $host_os-$host_vendor." >&5
34863echo "$as_me: WARNING: mmap(2) interface ignored on $host_os-$host_vendor." >&2;};;
34864*)
34865	mmap_ok=yes
34866
34867
34868for ac_func in mlock munlock
34869do
34870as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34871{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34873if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34874  echo $ECHO_N "(cached) $ECHO_C" >&6
34875else
34876  cat >conftest.$ac_ext <<_ACEOF
34877/* confdefs.h.  */
34878_ACEOF
34879cat confdefs.h >>conftest.$ac_ext
34880cat >>conftest.$ac_ext <<_ACEOF
34881/* end confdefs.h.  */
34882/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34883   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34884#define $ac_func innocuous_$ac_func
34885
34886/* System header to define __stub macros and hopefully few prototypes,
34887    which can conflict with char $ac_func (); below.
34888    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34889    <limits.h> exists even on freestanding compilers.  */
34890
34891#ifdef __STDC__
34892# include <limits.h>
34893#else
34894# include <assert.h>
34895#endif
34896
34897#undef $ac_func
34898
34899/* Override any GCC internal prototype to avoid an error.
34900   Use char because int might match the return type of a GCC
34901   builtin and then its argument prototype would still apply.  */
34902#ifdef __cplusplus
34903extern "C"
34904#endif
34905char $ac_func ();
34906/* The GNU C library defines this for functions which it implements
34907    to always fail with ENOSYS.  Some functions are actually named
34908    something starting with __ and the normal name is an alias.  */
34909#if defined __stub_$ac_func || defined __stub___$ac_func
34910choke me
34911#endif
34912
34913int
34914main ()
34915{
34916return $ac_func ();
34917  ;
34918  return 0;
34919}
34920_ACEOF
34921rm -f conftest.$ac_objext conftest$ac_exeext
34922if { (ac_try="$ac_link"
34923case "(($ac_try" in
34924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34925  *) ac_try_echo=$ac_try;;
34926esac
34927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34928  (eval "$ac_link") 2>conftest.er1
34929  ac_status=$?
34930  grep -v '^ *+' conftest.er1 >conftest.err
34931  rm -f conftest.er1
34932  cat conftest.err >&5
34933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34934  (exit $ac_status); } && {
34935	 test -z "$ac_c_werror_flag" ||
34936	 test ! -s conftest.err
34937       } && test -s conftest$ac_exeext &&
34938       $as_test_x conftest$ac_exeext; then
34939  eval "$as_ac_var=yes"
34940else
34941  echo "$as_me: failed program was:" >&5
34942sed 's/^/| /' conftest.$ac_ext >&5
34943
34944	eval "$as_ac_var=no"
34945fi
34946
34947rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34948      conftest$ac_exeext conftest.$ac_ext
34949fi
34950ac_res=`eval echo '${'$as_ac_var'}'`
34951	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34952echo "${ECHO_T}$ac_res" >&6; }
34953if test `eval echo '${'$as_ac_var'}'` = yes; then
34954  cat >>confdefs.h <<_ACEOF
34955#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34956_ACEOF
34957
34958fi
34959done
34960
34961
34962
34963for ac_func in mmap munmap
34964do
34965as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34966{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34967echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34968if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34969  echo $ECHO_N "(cached) $ECHO_C" >&6
34970else
34971  cat >conftest.$ac_ext <<_ACEOF
34972/* confdefs.h.  */
34973_ACEOF
34974cat confdefs.h >>conftest.$ac_ext
34975cat >>conftest.$ac_ext <<_ACEOF
34976/* end confdefs.h.  */
34977/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34978   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34979#define $ac_func innocuous_$ac_func
34980
34981/* System header to define __stub macros and hopefully few prototypes,
34982    which can conflict with char $ac_func (); below.
34983    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34984    <limits.h> exists even on freestanding compilers.  */
34985
34986#ifdef __STDC__
34987# include <limits.h>
34988#else
34989# include <assert.h>
34990#endif
34991
34992#undef $ac_func
34993
34994/* Override any GCC internal prototype to avoid an error.
34995   Use char because int might match the return type of a GCC
34996   builtin and then its argument prototype would still apply.  */
34997#ifdef __cplusplus
34998extern "C"
34999#endif
35000char $ac_func ();
35001/* The GNU C library defines this for functions which it implements
35002    to always fail with ENOSYS.  Some functions are actually named
35003    something starting with __ and the normal name is an alias.  */
35004#if defined __stub_$ac_func || defined __stub___$ac_func
35005choke me
35006#endif
35007
35008int
35009main ()
35010{
35011return $ac_func ();
35012  ;
35013  return 0;
35014}
35015_ACEOF
35016rm -f conftest.$ac_objext conftest$ac_exeext
35017if { (ac_try="$ac_link"
35018case "(($ac_try" in
35019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35020  *) ac_try_echo=$ac_try;;
35021esac
35022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35023  (eval "$ac_link") 2>conftest.er1
35024  ac_status=$?
35025  grep -v '^ *+' conftest.er1 >conftest.err
35026  rm -f conftest.er1
35027  cat conftest.err >&5
35028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35029  (exit $ac_status); } && {
35030	 test -z "$ac_c_werror_flag" ||
35031	 test ! -s conftest.err
35032       } && test -s conftest$ac_exeext &&
35033       $as_test_x conftest$ac_exeext; then
35034  eval "$as_ac_var=yes"
35035else
35036  echo "$as_me: failed program was:" >&5
35037sed 's/^/| /' conftest.$ac_ext >&5
35038
35039	eval "$as_ac_var=no"
35040fi
35041
35042rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35043      conftest$ac_exeext conftest.$ac_ext
35044fi
35045ac_res=`eval echo '${'$as_ac_var'}'`
35046	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35047echo "${ECHO_T}$ac_res" >&6; }
35048if test `eval echo '${'$as_ac_var'}'` = yes; then
35049  cat >>confdefs.h <<_ACEOF
35050#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35051_ACEOF
35052
35053else
35054  mmap_ok=no
35055fi
35056done
35057;;
35058esac
35059
35060# Second, we look for shmget.
35061#
35062# SunOS has the shmget(2) interfaces, but there appears to be a missing
35063# #include <debug/debug.h> file, so we ignore them.
35064shmget_ok=no
35065case "$host_os" in
35066sunos*)
35067	{ echo "$as_me:$LINENO: WARNING: shmget(2) interface ignored on $host_os-$host_vendor." >&5
35068echo "$as_me: WARNING: shmget(2) interface ignored on $host_os-$host_vendor." >&2;};;
35069*)
35070	shmget_ok=yes
35071
35072for ac_func in shmget
35073do
35074as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35075{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35076echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35077if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35078  echo $ECHO_N "(cached) $ECHO_C" >&6
35079else
35080  cat >conftest.$ac_ext <<_ACEOF
35081/* confdefs.h.  */
35082_ACEOF
35083cat confdefs.h >>conftest.$ac_ext
35084cat >>conftest.$ac_ext <<_ACEOF
35085/* end confdefs.h.  */
35086/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35087   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35088#define $ac_func innocuous_$ac_func
35089
35090/* System header to define __stub macros and hopefully few prototypes,
35091    which can conflict with char $ac_func (); below.
35092    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35093    <limits.h> exists even on freestanding compilers.  */
35094
35095#ifdef __STDC__
35096# include <limits.h>
35097#else
35098# include <assert.h>
35099#endif
35100
35101#undef $ac_func
35102
35103/* Override any GCC internal prototype to avoid an error.
35104   Use char because int might match the return type of a GCC
35105   builtin and then its argument prototype would still apply.  */
35106#ifdef __cplusplus
35107extern "C"
35108#endif
35109char $ac_func ();
35110/* The GNU C library defines this for functions which it implements
35111    to always fail with ENOSYS.  Some functions are actually named
35112    something starting with __ and the normal name is an alias.  */
35113#if defined __stub_$ac_func || defined __stub___$ac_func
35114choke me
35115#endif
35116
35117int
35118main ()
35119{
35120return $ac_func ();
35121  ;
35122  return 0;
35123}
35124_ACEOF
35125rm -f conftest.$ac_objext conftest$ac_exeext
35126if { (ac_try="$ac_link"
35127case "(($ac_try" in
35128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35129  *) ac_try_echo=$ac_try;;
35130esac
35131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35132  (eval "$ac_link") 2>conftest.er1
35133  ac_status=$?
35134  grep -v '^ *+' conftest.er1 >conftest.err
35135  rm -f conftest.er1
35136  cat conftest.err >&5
35137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35138  (exit $ac_status); } && {
35139	 test -z "$ac_c_werror_flag" ||
35140	 test ! -s conftest.err
35141       } && test -s conftest$ac_exeext &&
35142       $as_test_x conftest$ac_exeext; then
35143  eval "$as_ac_var=yes"
35144else
35145  echo "$as_me: failed program was:" >&5
35146sed 's/^/| /' conftest.$ac_ext >&5
35147
35148	eval "$as_ac_var=no"
35149fi
35150
35151rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35152      conftest$ac_exeext conftest.$ac_ext
35153fi
35154ac_res=`eval echo '${'$as_ac_var'}'`
35155	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35156echo "${ECHO_T}$ac_res" >&6; }
35157if test `eval echo '${'$as_ac_var'}'` = yes; then
35158  cat >>confdefs.h <<_ACEOF
35159#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35160_ACEOF
35161
35162else
35163  shmget_ok=no
35164fi
35165done
35166
35167
35168	# Check for shmctl to lock down shared memory segments.
35169	{ echo "$as_me:$LINENO: checking for shmctl" >&5
35170echo $ECHO_N "checking for shmctl... $ECHO_C" >&6; }
35171if test "${db_cv_shmctl_shm_lock+set}" = set; then
35172  echo $ECHO_N "(cached) $ECHO_C" >&6
35173else
35174
35175	cat >conftest.$ac_ext <<_ACEOF
35176/* confdefs.h.  */
35177_ACEOF
35178cat confdefs.h >>conftest.$ac_ext
35179cat >>conftest.$ac_ext <<_ACEOF
35180/* end confdefs.h.  */
35181
35182#include <sys/types.h>
35183#include <sys/ipc.h>
35184#include <sys/shm.h>
35185#include <stdio.h>
35186int
35187main ()
35188{
35189
35190		shmctl(0, SHM_LOCK, NULL);
35191
35192  ;
35193  return 0;
35194}
35195_ACEOF
35196rm -f conftest.$ac_objext conftest$ac_exeext
35197if { (ac_try="$ac_link"
35198case "(($ac_try" in
35199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35200  *) ac_try_echo=$ac_try;;
35201esac
35202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35203  (eval "$ac_link") 2>conftest.er1
35204  ac_status=$?
35205  grep -v '^ *+' conftest.er1 >conftest.err
35206  rm -f conftest.er1
35207  cat conftest.err >&5
35208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35209  (exit $ac_status); } && {
35210	 test -z "$ac_c_werror_flag" ||
35211	 test ! -s conftest.err
35212       } && test -s conftest$ac_exeext &&
35213       $as_test_x conftest$ac_exeext; then
35214  db_cv_shmctl_shm_lock=yes
35215else
35216  echo "$as_me: failed program was:" >&5
35217sed 's/^/| /' conftest.$ac_ext >&5
35218
35219	db_cv_shmctl_shm_lock=no
35220fi
35221
35222rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35223      conftest$ac_exeext conftest.$ac_ext
35224fi
35225{ echo "$as_me:$LINENO: result: $db_cv_shmctl_shm_lock" >&5
35226echo "${ECHO_T}$db_cv_shmctl_shm_lock" >&6; }
35227	if test "$db_cv_shmctl_shm_lock" = "yes"; then
35228		cat >>confdefs.h <<\_ACEOF
35229#define HAVE_SHMCTL_SHM_LOCK 1
35230_ACEOF
35231
35232
35233
35234	fi;;
35235esac
35236
35237# We require either mmap/munmap(2) or shmget(2).
35238if test "$mmap_ok" = "no" -a "$shmget_ok" = "no"; then
35239	{ echo "$as_me:$LINENO: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&5
35240echo "$as_me: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&2;}
35241fi
35242
35243# Optional RPC client/server.
35244if test "$db_cv_rpc" = "yes"; then
35245
35246	cat >>confdefs.h <<\_ACEOF
35247#define HAVE_RPC 1
35248_ACEOF
35249
35250
35251
35252
35253	# We use the target's rpcgen utility because it may be architecture
35254	# specific, for example, 32- or 64-bit specific.
35255	XDR_FILE=$srcdir/../rpc_server/db_server.x
35256
35257	# Prefer the -C option to rpcgen which generates ANSI C-conformant
35258	# code.
35259	RPCGEN="rpcgen -C"
35260	{ echo "$as_me:$LINENO: checking \"$RPCGEN\" build of db_server.h" >&5
35261echo $ECHO_N "checking \"$RPCGEN\" build of db_server.h... $ECHO_C" >&6; }
35262	$RPCGEN -h $XDR_FILE > db_server.h 2>/dev/null
35263	if test $? -ne 0; then
35264		{ echo "$as_me:$LINENO: result: no" >&5
35265echo "${ECHO_T}no" >&6; }
35266
35267		# Try rpcgen without the -C option.
35268		RPCGEN="rpcgen"
35269		{ echo "$as_me:$LINENO: checking \"$RPCGEN\" build of db_server.h" >&5
35270echo $ECHO_N "checking \"$RPCGEN\" build of db_server.h... $ECHO_C" >&6; }
35271		$RPCGEN -h $XDR_FILE > db_server.h 2>/dev/null
35272		if test $? -ne 0; then
35273			{ echo "$as_me:$LINENO: result: no" >&5
35274echo "${ECHO_T}no" >&6; }
35275			{ { echo "$as_me:$LINENO: error: Unable to build RPC support: $RPCGEN failed." >&5
35276echo "$as_me: error: Unable to build RPC support: $RPCGEN failed." >&2;}
35277   { (exit 1); exit 1; }; }
35278		fi
35279	fi
35280
35281	# Some rpcgen programs generate a set of client stubs called something
35282	# like __db_env_create_4003 and functions on the server to handle the
35283	# request called something like __db_env_create_4003_svc.  Others
35284	# expect client and server stubs to both be called __db_env_create_4003.
35285	#
35286	# We have to generate code in whichever format rpcgen expects, and the
35287	# only reliable way to do that is to check what is in the db_server.h
35288	# file we just created.
35289	if grep "env_create_[0-9]*_svc" db_server.h >/dev/null 2>&1 ; then
35290		sed 's/__SVCSUFFIX__/_svc/' \
35291		    < $srcdir/../rpc_server/c/gen_db_server.c > gen_db_server.c
35292	else
35293		sed 's/__SVCSUFFIX__//' \
35294		    < $srcdir/../rpc_server/c/gen_db_server.c > gen_db_server.c
35295	fi
35296
35297	{ echo "$as_me:$LINENO: result: yes" >&5
35298echo "${ECHO_T}yes" >&6; }
35299
35300	$RPCGEN -l $XDR_FILE |
35301	sed -e 's/^#include.*db_server.h.*/#include "db_server.h"/' \
35302	    -e '1,/^#include/s/^#include/#include "db_config.h"\
35303&/' > db_server_clnt.c
35304
35305	$RPCGEN -s tcp $XDR_FILE |
35306	sed -e 's/^#include.*db_server.h.*/#include "db_server.h"/' \
35307	    -e 's/^main *()/__dbsrv_main()/' \
35308	    -e 's/^main *(.*argc.*argv.*)/__dbsrv_main(int argc, char *argv)/' \
35309	    -e '/^db_rpc_serverprog/,/^}/{' \
35310	    -e 's/return;//' \
35311	    -e 's/^}/__dbsrv_timeout(0);}/' \
35312	    -e '}' \
35313	    -e '1,/^#include/s/^#include/#include "db_config.h"\
35314&/' > db_server_svc.c
35315
35316	$RPCGEN -c $XDR_FILE |
35317	sed -e 's/^#include.*db_server.h.*/#include "db_server.h"/' \
35318	    -e '1,/^#include/s/^#include/#include "db_config.h"\
35319&/' > db_server_xdr.c
35320
35321	RPC_SERVER_H=db_server.h
35322	RPC_CLIENT_OBJS="\$(RPC_CLIENT_OBJS)"
35323	ADDITIONAL_PROGS="berkeley_db_svc $ADDITIONAL_PROGS"
35324
35325	# Solaris and HPUX need the nsl library to build RPC.
35326	{ echo "$as_me:$LINENO: checking for svc_run" >&5
35327echo $ECHO_N "checking for svc_run... $ECHO_C" >&6; }
35328if test "${ac_cv_func_svc_run+set}" = set; then
35329  echo $ECHO_N "(cached) $ECHO_C" >&6
35330else
35331  cat >conftest.$ac_ext <<_ACEOF
35332/* confdefs.h.  */
35333_ACEOF
35334cat confdefs.h >>conftest.$ac_ext
35335cat >>conftest.$ac_ext <<_ACEOF
35336/* end confdefs.h.  */
35337/* Define svc_run to an innocuous variant, in case <limits.h> declares svc_run.
35338   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35339#define svc_run innocuous_svc_run
35340
35341/* System header to define __stub macros and hopefully few prototypes,
35342    which can conflict with char svc_run (); below.
35343    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35344    <limits.h> exists even on freestanding compilers.  */
35345
35346#ifdef __STDC__
35347# include <limits.h>
35348#else
35349# include <assert.h>
35350#endif
35351
35352#undef svc_run
35353
35354/* Override any GCC internal prototype to avoid an error.
35355   Use char because int might match the return type of a GCC
35356   builtin and then its argument prototype would still apply.  */
35357#ifdef __cplusplus
35358extern "C"
35359#endif
35360char svc_run ();
35361/* The GNU C library defines this for functions which it implements
35362    to always fail with ENOSYS.  Some functions are actually named
35363    something starting with __ and the normal name is an alias.  */
35364#if defined __stub_svc_run || defined __stub___svc_run
35365choke me
35366#endif
35367
35368int
35369main ()
35370{
35371return svc_run ();
35372  ;
35373  return 0;
35374}
35375_ACEOF
35376rm -f conftest.$ac_objext conftest$ac_exeext
35377if { (ac_try="$ac_link"
35378case "(($ac_try" in
35379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35380  *) ac_try_echo=$ac_try;;
35381esac
35382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35383  (eval "$ac_link") 2>conftest.er1
35384  ac_status=$?
35385  grep -v '^ *+' conftest.er1 >conftest.err
35386  rm -f conftest.er1
35387  cat conftest.err >&5
35388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35389  (exit $ac_status); } && {
35390	 test -z "$ac_c_werror_flag" ||
35391	 test ! -s conftest.err
35392       } && test -s conftest$ac_exeext &&
35393       $as_test_x conftest$ac_exeext; then
35394  ac_cv_func_svc_run=yes
35395else
35396  echo "$as_me: failed program was:" >&5
35397sed 's/^/| /' conftest.$ac_ext >&5
35398
35399	ac_cv_func_svc_run=no
35400fi
35401
35402rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35403      conftest$ac_exeext conftest.$ac_ext
35404fi
35405{ echo "$as_me:$LINENO: result: $ac_cv_func_svc_run" >&5
35406echo "${ECHO_T}$ac_cv_func_svc_run" >&6; }
35407if test $ac_cv_func_svc_run = yes; then
35408  :
35409else
35410  { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
35411echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
35412if test "${ac_cv_lib_nsl_main+set}" = set; then
35413  echo $ECHO_N "(cached) $ECHO_C" >&6
35414else
35415  ac_check_lib_save_LIBS=$LIBS
35416LIBS="-lnsl  $LIBS"
35417cat >conftest.$ac_ext <<_ACEOF
35418/* confdefs.h.  */
35419_ACEOF
35420cat confdefs.h >>conftest.$ac_ext
35421cat >>conftest.$ac_ext <<_ACEOF
35422/* end confdefs.h.  */
35423
35424
35425int
35426main ()
35427{
35428return main ();
35429  ;
35430  return 0;
35431}
35432_ACEOF
35433rm -f conftest.$ac_objext conftest$ac_exeext
35434if { (ac_try="$ac_link"
35435case "(($ac_try" in
35436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35437  *) ac_try_echo=$ac_try;;
35438esac
35439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35440  (eval "$ac_link") 2>conftest.er1
35441  ac_status=$?
35442  grep -v '^ *+' conftest.er1 >conftest.err
35443  rm -f conftest.er1
35444  cat conftest.err >&5
35445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35446  (exit $ac_status); } && {
35447	 test -z "$ac_c_werror_flag" ||
35448	 test ! -s conftest.err
35449       } && test -s conftest$ac_exeext &&
35450       $as_test_x conftest$ac_exeext; then
35451  ac_cv_lib_nsl_main=yes
35452else
35453  echo "$as_me: failed program was:" >&5
35454sed 's/^/| /' conftest.$ac_ext >&5
35455
35456	ac_cv_lib_nsl_main=no
35457fi
35458
35459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35460      conftest$ac_exeext conftest.$ac_ext
35461LIBS=$ac_check_lib_save_LIBS
35462fi
35463{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
35464echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
35465if test $ac_cv_lib_nsl_main = yes; then
35466  LIBSO_LIBS="$LIBSO_LIBS -lnsl"
35467fi
35468ac_cv_lib_nsl=ac_cv_lib_nsl_main
35469
35470fi
35471
35472
35473fi
35474
35475# Optional Tcl support.
35476if test "$db_cv_tcl" = "yes"; then
35477
35478	if test `$LIBTOOL_PROG --config | grep build_libtool_libs | grep no` 2>/dev/null; then
35479		{ { echo "$as_me:$LINENO: error: Tcl requires shared libraries" >&5
35480echo "$as_me: error: Tcl requires shared libraries" >&2;}
35481   { (exit 1); exit 1; }; }
35482	fi
35483
35484
35485	if test "${ac_cv_c_tclconfig+set}" = set; then
35486  echo $ECHO_N "(cached) $ECHO_C" >&6
35487else
35488
35489
35490	    # First check to see if --with-tclconfig was specified.
35491	    if test "${with_tclconfig}" != no; then
35492		if test -f "${with_tclconfig}/tclConfig.sh" ; then
35493		    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
35494		else
35495		    { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
35496echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
35497   { (exit 1); exit 1; }; }
35498		fi
35499	    fi
35500
35501	    # check in a few common install locations
35502	    if test x"${ac_cv_c_tclconfig}" = x ; then
35503		for i in `ls -d /usr/local/lib 2>/dev/null` ; do
35504		    if test -f "$i/tclConfig.sh" ; then
35505			ac_cv_c_tclconfig=`(cd $i; pwd)`
35506			break
35507		    fi
35508		done
35509	    fi
35510
35511
35512fi
35513
35514
35515	if test x"${ac_cv_c_tclconfig}" = x ; then
35516	    TCL_BIN_DIR="# no Tcl configs found"
35517	    { { echo "$as_me:$LINENO: error: can't find Tcl configuration definitions" >&5
35518echo "$as_me: error: can't find Tcl configuration definitions" >&2;}
35519   { (exit 1); exit 1; }; }
35520	else
35521	    TCL_BIN_DIR=${ac_cv_c_tclconfig}
35522	fi
35523
35524
35525	{ echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
35526echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6; }
35527
35528	if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
35529		{ echo "$as_me:$LINENO: result: loading" >&5
35530echo "${ECHO_T}loading" >&6; }
35531		. $TCL_BIN_DIR/tclConfig.sh
35532	else
35533		{ echo "$as_me:$LINENO: result: file not found" >&5
35534echo "${ECHO_T}file not found" >&6; }
35535	fi
35536
35537	# DB requires at least version 8.4.
35538	if test ${TCL_MAJOR_VERSION} -lt 8 \
35539	    -o ${TCL_MAJOR_VERSION} -eq 8 -a ${TCL_MINOR_VERSION} -lt 4; then
35540		{ { echo "$as_me:$LINENO: error: Berkeley DB requires Tcl version 8.4 or better." >&5
35541echo "$as_me: error: Berkeley DB requires Tcl version 8.4 or better." >&2;}
35542   { (exit 1); exit 1; }; }
35543	fi
35544
35545	# The eval is required to do substitution (for example, the TCL_DBGX
35546	# substitution in the TCL_LIB_FILE variable.
35547	eval "TCL_INCLUDE_SPEC=\"${TCL_INCLUDE_SPEC}\""
35548	eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
35549	eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
35550	eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
35551
35552	#
35553	# If the DB Tcl library isn't loaded with the Tcl spec and library
35554	# flags on AIX, the resulting libdb_tcl-X.Y.so.0 will drop core at
35555	# load time. [#4843]  Furthermore, with Tcl 8.3, the link flags
35556	# given by the Tcl spec are insufficient for our use.  [#5779]
35557	#
35558	case "$host_os" in
35559	aix4.[2-9].*)
35560		LIBTSO_LIBS="$LIBTSO_LIBS $TCL_LIB_SPEC $TCL_LIB_FLAG"
35561		LIBTSO_LIBS="$LIBTSO_LIBS -L$TCL_EXEC_PREFIX/lib -ltcl$TCL_VERSION";;
35562	aix*)
35563		LIBTSO_LIBS="$LIBTSO_LIBS $TCL_LIB_SPEC $TCL_LIB_FLAG";;
35564	esac
35565
35566
35567
35568
35569
35570
35571	TCL_TCLSH="${TCL_PREFIX}/bin/tclsh${TCL_VERSION}"
35572
35573
35574	INSTALL_LIBS="${INSTALL_LIBS} \$(libtso_target)"
35575
35576fi
35577
35578# Optional sequence code.
35579
35580	{ echo "$as_me:$LINENO: checking for 64-bit integral type support for sequences" >&5
35581echo $ECHO_N "checking for 64-bit integral type support for sequences... $ECHO_C" >&6; }
35582
35583	db_cv_build_sequence="yes"
35584
35585	# Have to have found 64-bit types to support sequences.  If we don't
35586	# find the native types, we try and create our own.
35587	if test "$ac_cv_type_int64_t" = "no" -a -z "$int64_decl"; then
35588		db_cv_build_sequence="no"
35589	fi
35590	if test "$ac_cv_type_uint64_t" = "no" -a -z "$u_int64_decl"; then
35591		db_cv_build_sequence="no"
35592	fi
35593
35594	# Figure out what type is the right size, and set the format.
35595
35596
35597	db_cv_seq_type="no"
35598	if test "$db_cv_build_sequence" = "yes" -a\
35599	    "$ac_cv_sizeof_long" -eq "8"; then
35600		db_cv_seq_type="long"
35601		db_cv_seq_fmt='"%ld"'
35602		db_cv_seq_ufmt='"%lu"'
35603		INT64_FMT='#define	INT64_FMT	"%ld"'
35604		UINT64_FMT='#define	UINT64_FMT	"%lu"'
35605	else if test "$db_cv_build_sequence" = "yes" -a\
35606	    "$ac_cv_sizeof_long_long" -eq "8"; then
35607		db_cv_seq_type="long long"
35608		db_cv_seq_fmt='"%lld"'
35609		db_cv_seq_ufmt='"%llu"'
35610		INT64_FMT='#define	INT64_FMT	"%lld"'
35611		UINT64_FMT='#define	UINT64_FMT	"%llu"'
35612	else
35613		db_cv_build_sequence="no"
35614	fi
35615	fi
35616
35617	# Test to see if we can declare variables of the appropriate size
35618	# and format them.  If we're cross-compiling, all we get is a link
35619	# test, which won't test for the appropriate printf format strings.
35620	if test "$db_cv_build_sequence" = "yes"; then
35621		if test "$cross_compiling" = yes; then
35622  cat >conftest.$ac_ext <<_ACEOF
35623/* confdefs.h.  */
35624_ACEOF
35625cat confdefs.h >>conftest.$ac_ext
35626cat >>conftest.$ac_ext <<_ACEOF
35627/* end confdefs.h.  */
35628
35629int
35630main ()
35631{
35632
35633			$db_cv_seq_type l;
35634			unsigned $db_cv_seq_type u;
35635			char buf[100];
35636
35637			buf[0] = 'a';
35638			l = 9223372036854775807LL;
35639			(void)snprintf(buf, sizeof(buf), $db_cv_seq_fmt, l);
35640			if (strcmp(buf, "9223372036854775807"))
35641				return (1);
35642			u = 18446744073709551615ULL;
35643			(void)snprintf(buf, sizeof(buf), $db_cv_seq_ufmt, u);
35644			if (strcmp(buf, "18446744073709551615"))
35645				return (1);
35646			return (0);
35647
35648  ;
35649  return 0;
35650}
35651_ACEOF
35652rm -f conftest.$ac_objext conftest$ac_exeext
35653if { (ac_try="$ac_link"
35654case "(($ac_try" in
35655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35656  *) ac_try_echo=$ac_try;;
35657esac
35658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35659  (eval "$ac_link") 2>conftest.er1
35660  ac_status=$?
35661  grep -v '^ *+' conftest.er1 >conftest.err
35662  rm -f conftest.er1
35663  cat conftest.err >&5
35664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35665  (exit $ac_status); } && {
35666	 test -z "$ac_c_werror_flag" ||
35667	 test ! -s conftest.err
35668       } && test -s conftest$ac_exeext &&
35669       $as_test_x conftest$ac_exeext; then
35670  :
35671else
35672  echo "$as_me: failed program was:" >&5
35673sed 's/^/| /' conftest.$ac_ext >&5
35674
35675	db_cv_build_sequence="no"
35676fi
35677
35678rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35679      conftest$ac_exeext conftest.$ac_ext
35680else
35681  cat >conftest.$ac_ext <<_ACEOF
35682/* confdefs.h.  */
35683_ACEOF
35684cat confdefs.h >>conftest.$ac_ext
35685cat >>conftest.$ac_ext <<_ACEOF
35686/* end confdefs.h.  */
35687
35688		main() {
35689			$db_cv_seq_type l;
35690			unsigned $db_cv_seq_type u;
35691			char buf[100];
35692
35693			buf[0] = 'a';
35694			l = 9223372036854775807LL;
35695			(void)snprintf(buf, sizeof(buf), $db_cv_seq_fmt, l);
35696			if (strcmp(buf, "9223372036854775807"))
35697				return (1);
35698			u = 18446744073709551615ULL;
35699			(void)snprintf(buf, sizeof(buf), $db_cv_seq_ufmt, u);
35700			if (strcmp(buf, "18446744073709551615"))
35701				return (1);
35702			return (0);
35703		}
35704_ACEOF
35705rm -f conftest$ac_exeext
35706if { (ac_try="$ac_link"
35707case "(($ac_try" in
35708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35709  *) ac_try_echo=$ac_try;;
35710esac
35711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35712  (eval "$ac_link") 2>&5
35713  ac_status=$?
35714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35715  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35716  { (case "(($ac_try" in
35717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35718  *) ac_try_echo=$ac_try;;
35719esac
35720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35721  (eval "$ac_try") 2>&5
35722  ac_status=$?
35723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35724  (exit $ac_status); }; }; then
35725  :
35726else
35727  echo "$as_me: program exited with status $ac_status" >&5
35728echo "$as_me: failed program was:" >&5
35729sed 's/^/| /' conftest.$ac_ext >&5
35730
35731( exit $ac_status )
35732db_cv_build_sequence="no"
35733fi
35734rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35735fi
35736
35737
35738	fi
35739	if test "$db_cv_build_sequence" = "yes"; then
35740
35741		db_seq_decl="typedef int64_t db_seq_t;";
35742
35743		cat >>confdefs.h <<\_ACEOF
35744#define HAVE_64BIT_TYPES 1
35745_ACEOF
35746
35747
35748
35749	else
35750		# It still has to compile, but it won't run.
35751		db_seq_decl="typedef int db_seq_t;";
35752	fi
35753	{ echo "$as_me:$LINENO: result: $db_cv_build_sequence" >&5
35754echo "${ECHO_T}$db_cv_build_sequence" >&6; }
35755
35756
35757# Optional DB 1.85 compatibility API.
35758if test "$db_cv_compat185" = "yes"; then
35759	ADDITIONAL_INCS="db_185.h $ADDITIONAL_INCS"
35760
35761	ADDITIONAL_OBJS="db185${o} $ADDITIONAL_OBJS"
35762fi
35763
35764# Optional utilities.
35765if test "$db_cv_dump185" = "yes"; then
35766	ADDITIONAL_PROGS="db_dump185 $ADDITIONAL_PROGS"
35767fi
35768
35769# You can disable pieces of functionality to save space.
35770#
35771# Btree is always configured: it is the standard method, and Hash off-page
35772# duplicates require it.
35773ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(BTREE_OBJS)"
35774
35775# Hash can be disabled.
35776if test "$db_cv_build_hash" = "yes"; then
35777	cat >>confdefs.h <<\_ACEOF
35778#define HAVE_HASH 1
35779_ACEOF
35780
35781
35782
35783	ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(HASH_OBJS)"
35784	if test "$db_cv_build_verify" = "yes"; then
35785		ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(HASH_VRFY_OBJS)"
35786	fi
35787else
35788	ADDITIONAL_OBJS="$ADDITIONAL_OBJS hash_stub${o}"
35789fi
35790
35791# Queue can be disabled.
35792if test "$db_cv_build_queue" = "yes"; then
35793	cat >>confdefs.h <<\_ACEOF
35794#define HAVE_QUEUE 1
35795_ACEOF
35796
35797
35798
35799	ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(QUEUE_OBJS)"
35800	if test "$db_cv_build_verify" = "yes"; then
35801		ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(QUEUE_VRFY_OBJS)"
35802	fi
35803else
35804	ADDITIONAL_OBJS="$ADDITIONAL_OBJS qam_stub${o}"
35805fi
35806
35807# Replication can be disabled.
35808if test "$db_cv_build_replication" = "yes"; then
35809	cat >>confdefs.h <<\_ACEOF
35810#define HAVE_REPLICATION 1
35811_ACEOF
35812
35813
35814
35815	ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(REP_OBJS)"
35816
35817	if test "$db_cv_build_replication_mgr" = "yes"; then
35818		ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(REPMGR_OBJS)"
35819	else
35820		ADDITIONAL_OBJS="$ADDITIONAL_OBJS repmgr_stub${o}"
35821	fi
35822else
35823	ADDITIONAL_OBJS="$ADDITIONAL_OBJS rep_stub${o} repmgr_stub${o}"
35824fi
35825
35826# The statistics code can be disabled.
35827if test "$db_cv_build_statistics" = "yes"; then
35828	cat >>confdefs.h <<\_ACEOF
35829#define HAVE_STATISTICS 1
35830_ACEOF
35831
35832
35833
35834fi
35835
35836# The verification code can be disabled.
35837if test "$db_cv_build_verify" = "yes"; then
35838	cat >>confdefs.h <<\_ACEOF
35839#define HAVE_VERIFY 1
35840_ACEOF
35841
35842
35843
35844	ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(BTREE_VRFY_OBJS)"
35845else
35846	ADDITIONAL_OBJS="$ADDITIONAL_OBJS db_vrfy_stub${o}"
35847fi
35848
35849# The crypto code can be disabled.
35850if test -d "$srcdir/../crypto" -a "$db_cv_build_cryptography" = "yes"; then
35851	cat >>confdefs.h <<\_ACEOF
35852#define HAVE_CRYPTO 1
35853_ACEOF
35854
35855
35856
35857
35858	CRYPTO_OBJS="\$(CRYPTO_OBJS)"
35859else
35860	CRYPTO_OBJS="crypto_stub${o}"
35861fi
35862
35863# The mutex code can be disabled, and if there aren't any mutexes, then there's
35864# no reason to include the locking code.
35865if test "$db_cv_build_mutexsupport" = "yes"; then
35866	ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(LOCK_OBJS) \$(MUTEX_OBJS)"
35867else
35868	ADDITIONAL_OBJS="$ADDITIONAL_OBJS lock_stub${o} mut_stub${o}"
35869fi
35870
35871# If DIAGNOSTIC is defined, include the log print routines in the library
35872# itself, various diagnostic modes use them.
35873if test "$db_cv_diagnostic" = "yes"; then
35874	ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(PRINT_OBJS)"
35875fi
35876
35877# If building for QNX, we need additional OS files.
35878if test "$qnx_build" = "yes"; then
35879	ADDITIONAL_OBJS="$ADDITIONAL_OBJS os_qnx_fsync${o} os_qnx_open${o}"
35880fi
35881
35882# We need to add the additional object files into the Makefile with the correct
35883# suffix.  We can't use $LTLIBOBJS itself, because that variable has $U encoded
35884# in it for automake, and that's not what we want.  See SR #7227 for additional
35885# information.
35886#
35887# XXX: I'm not sure this is correct.
35888REPLACEMENT_OBJS=`echo "$LIBOBJS" |
35889		sed "s,\.[^.]* ,$o ,g;s,\.[^.]*$,$o,"`
35890
35891# This is necessary so that .o files in LIBOBJS are also built via
35892# the ANSI2KNR-filtering rules.
35893LIBOBJS=`echo "$LIBOBJS" |
35894		sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
35895LTLIBOBJS=`echo "$LIBOBJS" |
35896		sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
35897
35898
35899# Initial output file list.
35900CREATE_LIST="Makefile
35901    db_cxx.h:$srcdir/../dbinc/db_cxx.in
35902    db_int.h:$srcdir/../dbinc/db_int.in
35903    clib_port.h:$srcdir/../dist/clib_port.in
35904    include.tcl:$srcdir/../test/include.tcl"
35905
35906# Create the db.h file from a source file, a list of global function
35907# prototypes, and, if configured for unique names, a list of #defines
35908# to do DB_VERSION_UNIQUE_NAME substitution.
35909if test "$db_cv_uniquename" = "yes"; then
35910	CREATE_LIST="$CREATE_LIST
35911	db.h:$srcdir/../dbinc/db.in:$srcdir/../dbinc_auto/api_flags.in:$srcdir/../dbinc_auto/ext_def.in:$srcdir/../dbinc_auto/ext_prot.in"
35912else
35913	CREATE_LIST="$CREATE_LIST
35914	db.h:$srcdir/../dbinc/db.in:$srcdir/../dbinc_auto/api_flags.in:$srcdir/../dbinc_auto/ext_prot.in"
35915fi
35916
35917# If configured for unique names, create the db_int_uext.h file (which
35918# does the DB_VERSION_UNIQUE_NAME substitution), which is included by
35919# the db_int.h file.
35920if test "$db_cv_uniquename" = "yes"; then
35921	CREATE_LIST="$CREATE_LIST
35922	db_int_def.h:$srcdir/../dbinc_auto/int_def.in"
35923	db_int_def='#include "db_int_def.h"'
35924fi
35925
35926# Create the db_185.h and db185_int.h files from source files, a list of
35927# global function prototypes, and, if configured for unique names, a list
35928# of #defines to do DB_VERSION_UNIQUE_NAME substitution.
35929if test "$db_cv_compat185" = "yes"; then
35930	if test "$db_cv_uniquename" = "yes"; then
35931		CREATE_LIST="$CREATE_LIST
35932		db_185.h:$srcdir/../dbinc/db_185.in:$srcdir/../dbinc_auto/ext_185_def.in:$srcdir/../dbinc_auto/ext_185_prot.in
35933		db185_int.h:$srcdir/../db185/db185_int.in:$srcdir/../dbinc_auto/ext_185_def.in:$srcdir/../dbinc_auto/ext_185_prot.in"
35934	else
35935		CREATE_LIST="$CREATE_LIST
35936		db_185.h:$srcdir/../dbinc/db_185.in:$srcdir/../dbinc_auto/ext_185_prot.in
35937		db185_int.h:$srcdir/../db185/db185_int.in:$srcdir/../dbinc_auto/ext_185_prot.in"
35938	fi
35939fi
35940
35941ac_config_files="$ac_config_files $CREATE_LIST"
35942
35943cat >confcache <<\_ACEOF
35944# This file is a shell script that caches the results of configure
35945# tests run on this system so they can be shared between configure
35946# scripts and configure runs, see configure's option --config-cache.
35947# It is not useful on other systems.  If it contains results you don't
35948# want to keep, you may remove or edit it.
35949#
35950# config.status only pays attention to the cache file if you give it
35951# the --recheck option to rerun configure.
35952#
35953# `ac_cv_env_foo' variables (set or unset) will be overridden when
35954# loading this file, other *unset* `ac_cv_foo' will be assigned the
35955# following values.
35956
35957_ACEOF
35958
35959# The following way of writing the cache mishandles newlines in values,
35960# but we know of no workaround that is simple, portable, and efficient.
35961# So, we kill variables containing newlines.
35962# Ultrix sh set writes to stderr and can't be redirected directly,
35963# and sets the high bit in the cache file unless we assign to the vars.
35964(
35965  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35966    eval ac_val=\$$ac_var
35967    case $ac_val in #(
35968    *${as_nl}*)
35969      case $ac_var in #(
35970      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35971echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35972      esac
35973      case $ac_var in #(
35974      _ | IFS | as_nl) ;; #(
35975      *) $as_unset $ac_var ;;
35976      esac ;;
35977    esac
35978  done
35979
35980  (set) 2>&1 |
35981    case $as_nl`(ac_space=' '; set) 2>&1` in #(
35982    *${as_nl}ac_space=\ *)
35983      # `set' does not quote correctly, so add quotes (double-quote
35984      # substitution turns \\\\ into \\, and sed turns \\ into \).
35985      sed -n \
35986	"s/'/'\\\\''/g;
35987	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35988      ;; #(
35989    *)
35990      # `set' quotes correctly as required by POSIX, so do not add quotes.
35991      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35992      ;;
35993    esac |
35994    sort
35995) |
35996  sed '
35997     /^ac_cv_env_/b end
35998     t clear
35999     :clear
36000     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36001     t end
36002     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36003     :end' >>confcache
36004if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36005  if test -w "$cache_file"; then
36006    test "x$cache_file" != "x/dev/null" &&
36007      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
36008echo "$as_me: updating cache $cache_file" >&6;}
36009    cat confcache >$cache_file
36010  else
36011    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
36012echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36013  fi
36014fi
36015rm -f confcache
36016
36017test "x$prefix" = xNONE && prefix=$ac_default_prefix
36018# Let make expand exec_prefix.
36019test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36020
36021DEFS=-DHAVE_CONFIG_H
36022
36023ac_libobjs=
36024ac_ltlibobjs=
36025for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36026  # 1. Remove the extension, and $U if already installed.
36027  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36028  ac_i=`echo "$ac_i" | sed "$ac_script"`
36029  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
36030  #    will be set to the directory where LIBOBJS objects are built.
36031  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36032  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
36033done
36034LIBOBJS=$ac_libobjs
36035
36036LTLIBOBJS=$ac_ltlibobjs
36037
36038
36039
36040: ${CONFIG_STATUS=./config.status}
36041ac_clean_files_save=$ac_clean_files
36042ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36043{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
36044echo "$as_me: creating $CONFIG_STATUS" >&6;}
36045cat >$CONFIG_STATUS <<_ACEOF
36046#! $SHELL
36047# Generated by $as_me.
36048# Run this file to recreate the current configuration.
36049# Compiler output produced by configure, useful for debugging
36050# configure, is in config.log if it exists.
36051
36052debug=false
36053ac_cs_recheck=false
36054ac_cs_silent=false
36055SHELL=\${CONFIG_SHELL-$SHELL}
36056_ACEOF
36057
36058cat >>$CONFIG_STATUS <<\_ACEOF
36059## --------------------- ##
36060## M4sh Initialization.  ##
36061## --------------------- ##
36062
36063# Be more Bourne compatible
36064DUALCASE=1; export DUALCASE # for MKS sh
36065if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
36066  emulate sh
36067  NULLCMD=:
36068  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
36069  # is contrary to our usage.  Disable this feature.
36070  alias -g '${1+"$@"}'='"$@"'
36071  setopt NO_GLOB_SUBST
36072else
36073  case `(set -o) 2>/dev/null` in
36074  *posix*) set -o posix ;;
36075esac
36076
36077fi
36078
36079
36080
36081
36082# PATH needs CR
36083# Avoid depending upon Character Ranges.
36084as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36085as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36086as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36087as_cr_digits='0123456789'
36088as_cr_alnum=$as_cr_Letters$as_cr_digits
36089
36090# The user is always right.
36091if test "${PATH_SEPARATOR+set}" != set; then
36092  echo "#! /bin/sh" >conf$$.sh
36093  echo  "exit 0"   >>conf$$.sh
36094  chmod +x conf$$.sh
36095  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
36096    PATH_SEPARATOR=';'
36097  else
36098    PATH_SEPARATOR=:
36099  fi
36100  rm -f conf$$.sh
36101fi
36102
36103# Support unset when possible.
36104if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36105  as_unset=unset
36106else
36107  as_unset=false
36108fi
36109
36110
36111# IFS
36112# We need space, tab and new line, in precisely that order.  Quoting is
36113# there to prevent editors from complaining about space-tab.
36114# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36115# splitting by setting IFS to empty value.)
36116as_nl='
36117'
36118IFS=" ""	$as_nl"
36119
36120# Find who we are.  Look in the path if we contain no directory separator.
36121case $0 in
36122  *[\\/]* ) as_myself=$0 ;;
36123  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36124for as_dir in $PATH
36125do
36126  IFS=$as_save_IFS
36127  test -z "$as_dir" && as_dir=.
36128  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36129done
36130IFS=$as_save_IFS
36131
36132     ;;
36133esac
36134# We did not find ourselves, most probably we were run as `sh COMMAND'
36135# in which case we are not to be found in the path.
36136if test "x$as_myself" = x; then
36137  as_myself=$0
36138fi
36139if test ! -f "$as_myself"; then
36140  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36141  { (exit 1); exit 1; }
36142fi
36143
36144# Work around bugs in pre-3.0 UWIN ksh.
36145for as_var in ENV MAIL MAILPATH
36146do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
36147done
36148PS1='$ '
36149PS2='> '
36150PS4='+ '
36151
36152# NLS nuisances.
36153for as_var in \
36154  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
36155  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
36156  LC_TELEPHONE LC_TIME
36157do
36158  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
36159    eval $as_var=C; export $as_var
36160  else
36161    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
36162  fi
36163done
36164
36165# Required to use basename.
36166if expr a : '\(a\)' >/dev/null 2>&1 &&
36167   test "X`expr 00001 : '.*\(...\)'`" = X001; then
36168  as_expr=expr
36169else
36170  as_expr=false
36171fi
36172
36173if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36174  as_basename=basename
36175else
36176  as_basename=false
36177fi
36178
36179
36180# Name of the executable.
36181as_me=`$as_basename -- "$0" ||
36182$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36183	 X"$0" : 'X\(//\)$' \| \
36184	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36185echo X/"$0" |
36186    sed '/^.*\/\([^/][^/]*\)\/*$/{
36187	    s//\1/
36188	    q
36189	  }
36190	  /^X\/\(\/\/\)$/{
36191	    s//\1/
36192	    q
36193	  }
36194	  /^X\/\(\/\).*/{
36195	    s//\1/
36196	    q
36197	  }
36198	  s/.*/./; q'`
36199
36200# CDPATH.
36201$as_unset CDPATH
36202
36203
36204
36205  as_lineno_1=$LINENO
36206  as_lineno_2=$LINENO
36207  test "x$as_lineno_1" != "x$as_lineno_2" &&
36208  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
36209
36210  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
36211  # uniformly replaced by the line number.  The first 'sed' inserts a
36212  # line-number line after each line using $LINENO; the second 'sed'
36213  # does the real work.  The second script uses 'N' to pair each
36214  # line-number line with the line containing $LINENO, and appends
36215  # trailing '-' during substitution so that $LINENO is not a special
36216  # case at line end.
36217  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
36218  # scripts with optimization help from Paolo Bonzini.  Blame Lee
36219  # E. McMahon (1931-1989) for sed's syntax.  :-)
36220  sed -n '
36221    p
36222    /[$]LINENO/=
36223  ' <$as_myself |
36224    sed '
36225      s/[$]LINENO.*/&-/
36226      t lineno
36227      b
36228      :lineno
36229      N
36230      :loop
36231      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
36232      t loop
36233      s/-\n.*//
36234    ' >$as_me.lineno &&
36235  chmod +x "$as_me.lineno" ||
36236    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
36237   { (exit 1); exit 1; }; }
36238
36239  # Don't try to exec as it changes $[0], causing all sort of problems
36240  # (the dirname of $[0] is not the place where we might find the
36241  # original and so on.  Autoconf is especially sensitive to this).
36242  . "./$as_me.lineno"
36243  # Exit status is that of the last command.
36244  exit
36245}
36246
36247
36248if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36249  as_dirname=dirname
36250else
36251  as_dirname=false
36252fi
36253
36254ECHO_C= ECHO_N= ECHO_T=
36255case `echo -n x` in
36256-n*)
36257  case `echo 'x\c'` in
36258  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
36259  *)   ECHO_C='\c';;
36260  esac;;
36261*)
36262  ECHO_N='-n';;
36263esac
36264
36265if expr a : '\(a\)' >/dev/null 2>&1 &&
36266   test "X`expr 00001 : '.*\(...\)'`" = X001; then
36267  as_expr=expr
36268else
36269  as_expr=false
36270fi
36271
36272rm -f conf$$ conf$$.exe conf$$.file
36273if test -d conf$$.dir; then
36274  rm -f conf$$.dir/conf$$.file
36275else
36276  rm -f conf$$.dir
36277  mkdir conf$$.dir
36278fi
36279echo >conf$$.file
36280if ln -s conf$$.file conf$$ 2>/dev/null; then
36281  as_ln_s='ln -s'
36282  # ... but there are two gotchas:
36283  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36284  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
36285  # In both cases, we have to default to `cp -p'.
36286  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
36287    as_ln_s='cp -p'
36288elif ln conf$$.file conf$$ 2>/dev/null; then
36289  as_ln_s=ln
36290else
36291  as_ln_s='cp -p'
36292fi
36293rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36294rmdir conf$$.dir 2>/dev/null
36295
36296if mkdir -p . 2>/dev/null; then
36297  as_mkdir_p=:
36298else
36299  test -d ./-p && rmdir ./-p
36300  as_mkdir_p=false
36301fi
36302
36303if test -x / >/dev/null 2>&1; then
36304  as_test_x='test -x'
36305else
36306  if ls -dL / >/dev/null 2>&1; then
36307    as_ls_L_option=L
36308  else
36309    as_ls_L_option=
36310  fi
36311  as_test_x='
36312    eval sh -c '\''
36313      if test -d "$1"; then
36314        test -d "$1/.";
36315      else
36316	case $1 in
36317        -*)set "./$1";;
36318	esac;
36319	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
36320	???[sx]*):;;*)false;;esac;fi
36321    '\'' sh
36322  '
36323fi
36324as_executable_p=$as_test_x
36325
36326# Sed expression to map a string onto a valid CPP name.
36327as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36328
36329# Sed expression to map a string onto a valid variable name.
36330as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36331
36332
36333exec 6>&1
36334
36335# Save the log message, to keep $[0] and so on meaningful, and to
36336# report actual input values of CONFIG_FILES etc. instead of their
36337# values after options handling.
36338ac_log="
36339This file was extended by Berkeley DB $as_me 4.7.25, which was
36340generated by GNU Autoconf 2.61.  Invocation command line was
36341
36342  CONFIG_FILES    = $CONFIG_FILES
36343  CONFIG_HEADERS  = $CONFIG_HEADERS
36344  CONFIG_LINKS    = $CONFIG_LINKS
36345  CONFIG_COMMANDS = $CONFIG_COMMANDS
36346  $ $0 $@
36347
36348on `(hostname || uname -n) 2>/dev/null | sed 1q`
36349"
36350
36351_ACEOF
36352
36353cat >>$CONFIG_STATUS <<_ACEOF
36354# Files that config.status was made for.
36355config_files="$ac_config_files"
36356config_headers="$ac_config_headers"
36357
36358_ACEOF
36359
36360cat >>$CONFIG_STATUS <<\_ACEOF
36361ac_cs_usage="\
36362\`$as_me' instantiates files from templates according to the
36363current configuration.
36364
36365Usage: $0 [OPTIONS] [FILE]...
36366
36367  -h, --help       print this help, then exit
36368  -V, --version    print version number and configuration settings, then exit
36369  -q, --quiet      do not print progress messages
36370  -d, --debug      don't remove temporary files
36371      --recheck    update $as_me by reconfiguring in the same conditions
36372  --file=FILE[:TEMPLATE]
36373		   instantiate the configuration file FILE
36374  --header=FILE[:TEMPLATE]
36375		   instantiate the configuration header FILE
36376
36377Configuration files:
36378$config_files
36379
36380Configuration headers:
36381$config_headers
36382
36383Report bugs to <bug-autoconf@gnu.org>."
36384
36385_ACEOF
36386cat >>$CONFIG_STATUS <<_ACEOF
36387ac_cs_version="\\
36388Berkeley DB config.status 4.7.25
36389configured by $0, generated by GNU Autoconf 2.61,
36390  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
36391
36392Copyright (C) 2006 Free Software Foundation, Inc.
36393This config.status script is free software; the Free Software Foundation
36394gives unlimited permission to copy, distribute and modify it."
36395
36396ac_pwd='$ac_pwd'
36397srcdir='$srcdir'
36398INSTALL='$INSTALL'
36399_ACEOF
36400
36401cat >>$CONFIG_STATUS <<\_ACEOF
36402# If no file are specified by the user, then we need to provide default
36403# value.  By we need to know if files were specified by the user.
36404ac_need_defaults=:
36405while test $# != 0
36406do
36407  case $1 in
36408  --*=*)
36409    ac_option=`expr "X$1" : 'X\([^=]*\)='`
36410    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36411    ac_shift=:
36412    ;;
36413  *)
36414    ac_option=$1
36415    ac_optarg=$2
36416    ac_shift=shift
36417    ;;
36418  esac
36419
36420  case $ac_option in
36421  # Handling of the options.
36422  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36423    ac_cs_recheck=: ;;
36424  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36425    echo "$ac_cs_version"; exit ;;
36426  --debug | --debu | --deb | --de | --d | -d )
36427    debug=: ;;
36428  --file | --fil | --fi | --f )
36429    $ac_shift
36430    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
36431    ac_need_defaults=false;;
36432  --header | --heade | --head | --hea )
36433    $ac_shift
36434    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
36435    ac_need_defaults=false;;
36436  --he | --h)
36437    # Conflict between --help and --header
36438    { echo "$as_me: error: ambiguous option: $1
36439Try \`$0 --help' for more information." >&2
36440   { (exit 1); exit 1; }; };;
36441  --help | --hel | -h )
36442    echo "$ac_cs_usage"; exit ;;
36443  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36444  | -silent | --silent | --silen | --sile | --sil | --si | --s)
36445    ac_cs_silent=: ;;
36446
36447  # This is an error.
36448  -*) { echo "$as_me: error: unrecognized option: $1
36449Try \`$0 --help' for more information." >&2
36450   { (exit 1); exit 1; }; } ;;
36451
36452  *) ac_config_targets="$ac_config_targets $1"
36453     ac_need_defaults=false ;;
36454
36455  esac
36456  shift
36457done
36458
36459ac_configure_extra_args=
36460
36461if $ac_cs_silent; then
36462  exec 6>/dev/null
36463  ac_configure_extra_args="$ac_configure_extra_args --silent"
36464fi
36465
36466_ACEOF
36467cat >>$CONFIG_STATUS <<_ACEOF
36468if \$ac_cs_recheck; then
36469  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36470  CONFIG_SHELL=$SHELL
36471  export CONFIG_SHELL
36472  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36473fi
36474
36475_ACEOF
36476cat >>$CONFIG_STATUS <<\_ACEOF
36477exec 5>>config.log
36478{
36479  echo
36480  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36481## Running $as_me. ##
36482_ASBOX
36483  echo "$ac_log"
36484} >&5
36485
36486_ACEOF
36487cat >>$CONFIG_STATUS <<_ACEOF
36488_ACEOF
36489
36490cat >>$CONFIG_STATUS <<\_ACEOF
36491
36492# Handling of arguments.
36493for ac_config_target in $ac_config_targets
36494do
36495  case $ac_config_target in
36496    "db_config.h") CONFIG_HEADERS="$CONFIG_HEADERS db_config.h:config.hin" ;;
36497    "$CREATE_LIST") CONFIG_FILES="$CONFIG_FILES $CREATE_LIST" ;;
36498
36499  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36500echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36501   { (exit 1); exit 1; }; };;
36502  esac
36503done
36504
36505
36506# If the user did not use the arguments to specify the items to instantiate,
36507# then the envvar interface is used.  Set only those that are not.
36508# We use the long form for the default assignment because of an extremely
36509# bizarre bug on SunOS 4.1.3.
36510if $ac_need_defaults; then
36511  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36512  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36513fi
36514
36515# Have a temporary directory for convenience.  Make it in the build tree
36516# simply because there is no reason against having it here, and in addition,
36517# creating and moving files from /tmp can sometimes cause problems.
36518# Hook for its removal unless debugging.
36519# Note that there is a small window in which the directory will not be cleaned:
36520# after its creation but before its name has been assigned to `$tmp'.
36521$debug ||
36522{
36523  tmp=
36524  trap 'exit_status=$?
36525  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36526' 0
36527  trap '{ (exit 1); exit 1; }' 1 2 13 15
36528}
36529# Create a (secure) tmp directory for tmp files.
36530
36531{
36532  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36533  test -n "$tmp" && test -d "$tmp"
36534}  ||
36535{
36536  tmp=./conf$$-$RANDOM
36537  (umask 077 && mkdir "$tmp")
36538} ||
36539{
36540   echo "$me: cannot create a temporary directory in ." >&2
36541   { (exit 1); exit 1; }
36542}
36543
36544#
36545# Set up the sed scripts for CONFIG_FILES section.
36546#
36547
36548# No need to generate the scripts if there are no CONFIG_FILES.
36549# This happens for instance when ./config.status config.h
36550if test -n "$CONFIG_FILES"; then
36551
36552_ACEOF
36553
36554
36555
36556ac_delim='%!_!# '
36557for ac_last_try in false false false false false :; do
36558  cat >conf$$subs.sed <<_ACEOF
36559SHELL!$SHELL$ac_delim
36560PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36561PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36562PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36563PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36564PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36565PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36566exec_prefix!$exec_prefix$ac_delim
36567prefix!$prefix$ac_delim
36568program_transform_name!$program_transform_name$ac_delim
36569bindir!$bindir$ac_delim
36570sbindir!$sbindir$ac_delim
36571libexecdir!$libexecdir$ac_delim
36572datarootdir!$datarootdir$ac_delim
36573datadir!$datadir$ac_delim
36574sysconfdir!$sysconfdir$ac_delim
36575sharedstatedir!$sharedstatedir$ac_delim
36576localstatedir!$localstatedir$ac_delim
36577includedir!$includedir$ac_delim
36578oldincludedir!$oldincludedir$ac_delim
36579docdir!$docdir$ac_delim
36580infodir!$infodir$ac_delim
36581htmldir!$htmldir$ac_delim
36582dvidir!$dvidir$ac_delim
36583pdfdir!$pdfdir$ac_delim
36584psdir!$psdir$ac_delim
36585libdir!$libdir$ac_delim
36586localedir!$localedir$ac_delim
36587mandir!$mandir$ac_delim
36588DEFS!$DEFS$ac_delim
36589ECHO_C!$ECHO_C$ac_delim
36590ECHO_N!$ECHO_N$ac_delim
36591ECHO_T!$ECHO_T$ac_delim
36592LIBS!$LIBS$ac_delim
36593build_alias!$build_alias$ac_delim
36594host_alias!$host_alias$ac_delim
36595target_alias!$target_alias$ac_delim
36596build!$build$ac_delim
36597build_cpu!$build_cpu$ac_delim
36598build_vendor!$build_vendor$ac_delim
36599build_os!$build_os$ac_delim
36600host!$host$ac_delim
36601host_cpu!$host_cpu$ac_delim
36602host_vendor!$host_vendor$ac_delim
36603host_os!$host_os$ac_delim
36604ADDITIONAL_INCS!$ADDITIONAL_INCS$ac_delim
36605ADDITIONAL_LANG!$ADDITIONAL_LANG$ac_delim
36606ADDITIONAL_OBJS!$ADDITIONAL_OBJS$ac_delim
36607ADDITIONAL_PROGS!$ADDITIONAL_PROGS$ac_delim
36608BUILD_TARGET!$BUILD_TARGET$ac_delim
36609CFLAGS!$CFLAGS$ac_delim
36610CONFIGURATION_ARGS!$CONFIGURATION_ARGS$ac_delim
36611CONFIGURATION_PATH!$CONFIGURATION_PATH$ac_delim
36612CPPFLAGS!$CPPFLAGS$ac_delim
36613CRYPTO_OBJS!$CRYPTO_OBJS$ac_delim
36614CXX!$CXX$ac_delim
36615CXXFLAGS!$CXXFLAGS$ac_delim
36616DB_CONST!$DB_CONST$ac_delim
36617DB_PROTO1!$DB_PROTO1$ac_delim
36618DB_PROTO2!$DB_PROTO2$ac_delim
36619DEFAULT_LIB!$DEFAULT_LIB$ac_delim
36620DEFAULT_LIB_CXX!$DEFAULT_LIB_CXX$ac_delim
36621INSTALLER!$INSTALLER$ac_delim
36622INSTALL_LIBS!$INSTALL_LIBS$ac_delim
36623INSTALL_TARGET!$INSTALL_TARGET$ac_delim
36624JAR!$JAR$ac_delim
36625JAVACFLAGS!$JAVACFLAGS$ac_delim
36626LDFLAGS!$LDFLAGS$ac_delim
36627LIBCSO_LIBS!$LIBCSO_LIBS$ac_delim
36628LIBJSO_LIBS!$LIBJSO_LIBS$ac_delim
36629LIBSO_LIBS!$LIBSO_LIBS$ac_delim
36630LIBTOOL!$LIBTOOL$ac_delim
36631LIBTSO_LIBS!$LIBTSO_LIBS$ac_delim
36632LIBTSO_MODSUFFIX!$LIBTSO_MODSUFFIX$ac_delim
36633LIBTSO_MODULE!$LIBTSO_MODULE$ac_delim
36634LIBXSO_LIBS!$LIBXSO_LIBS$ac_delim
36635MAKEFILE_CC!$MAKEFILE_CC$ac_delim
36636MAKEFILE_CCLINK!$MAKEFILE_CCLINK$ac_delim
36637MAKEFILE_CXX!$MAKEFILE_CXX$ac_delim
36638MAKEFILE_CXXLINK!$MAKEFILE_CXXLINK$ac_delim
36639MAKEFILE_SOLINK!$MAKEFILE_SOLINK$ac_delim
36640MAKEFILE_XSOLINK!$MAKEFILE_XSOLINK$ac_delim
36641OSDIR!$OSDIR$ac_delim
36642POSTLINK!$POSTLINK$ac_delim
36643REPLACEMENT_OBJS!$REPLACEMENT_OBJS$ac_delim
36644RPC_CLIENT_OBJS!$RPC_CLIENT_OBJS$ac_delim
36645RPC_SERVER_H!$RPC_SERVER_H$ac_delim
36646SOFLAGS!$SOFLAGS$ac_delim
36647SWIGCFLAGS!$SWIGCFLAGS$ac_delim
36648TEST_LIBS!$TEST_LIBS$ac_delim
36649db_int_def!$db_int_def$ac_delim
36650o!$o$ac_delim
36651platform_header!$platform_header$ac_delim
36652platform_footer!$platform_footer$ac_delim
36653DB_VERSION_MAJOR!$DB_VERSION_MAJOR$ac_delim
36654DB_VERSION_MINOR!$DB_VERSION_MINOR$ac_delim
36655DB_VERSION_PATCH!$DB_VERSION_PATCH$ac_delim
36656_ACEOF
36657
36658  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36659    break
36660  elif $ac_last_try; then
36661    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36662echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36663   { (exit 1); exit 1; }; }
36664  else
36665    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36666  fi
36667done
36668
36669ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36670if test -n "$ac_eof"; then
36671  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36672  ac_eof=`expr $ac_eof + 1`
36673fi
36674
36675cat >>$CONFIG_STATUS <<_ACEOF
36676cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36677/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36678_ACEOF
36679sed '
36680s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36681s/^/s,@/; s/!/@,|#_!!_#|/
36682:n
36683t n
36684s/'"$ac_delim"'$/,g/; t
36685s/$/\\/; p
36686N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36687' >>$CONFIG_STATUS <conf$$subs.sed
36688rm -f conf$$subs.sed
36689cat >>$CONFIG_STATUS <<_ACEOF
36690CEOF$ac_eof
36691_ACEOF
36692
36693
36694ac_delim='%!_!# '
36695for ac_last_try in false false false false false :; do
36696  cat >conf$$subs.sed <<_ACEOF
36697DB_VERSION_STRING!$DB_VERSION_STRING$ac_delim
36698DB_VERSION_UNIQUE_NAME!$DB_VERSION_UNIQUE_NAME$ac_delim
36699CHMOD!$CHMOD$ac_delim
36700CP!$CP$ac_delim
36701KILL!$KILL$ac_delim
36702LN!$LN$ac_delim
36703MKDIR!$MKDIR$ac_delim
36704RM!$RM$ac_delim
36705RPCGEN!$RPCGEN$ac_delim
36706db_cv_path_sh!$db_cv_path_sh$ac_delim
36707INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36708INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36709INSTALL_DATA!$INSTALL_DATA$ac_delim
36710CC!$CC$ac_delim
36711ac_ct_CC!$ac_ct_CC$ac_delim
36712EXEEXT!$EXEEXT$ac_delim
36713OBJEXT!$OBJEXT$ac_delim
36714CCC!$CCC$ac_delim
36715ac_ct_CXX!$ac_ct_CXX$ac_delim
36716CXXCPP!$CXXCPP$ac_delim
36717cxx_have_stdheaders!$cxx_have_stdheaders$ac_delim
36718GREP!$GREP$ac_delim
36719EGREP!$EGREP$ac_delim
36720LN_S!$LN_S$ac_delim
36721ECHO!$ECHO$ac_delim
36722AR!$AR$ac_delim
36723RANLIB!$RANLIB$ac_delim
36724STRIP!$STRIP$ac_delim
36725CPP!$CPP$ac_delim
36726F77!$F77$ac_delim
36727FFLAGS!$FFLAGS$ac_delim
36728ac_ct_F77!$ac_ct_F77$ac_delim
36729SOSUFFIX!$SOSUFFIX$ac_delim
36730MODSUFFIX!$MODSUFFIX$ac_delim
36731JMODSUFFIX!$JMODSUFFIX$ac_delim
36732JAVAC!$JAVAC$ac_delim
36733JAVA!$JAVA$ac_delim
36734uudecode!$uudecode$ac_delim
36735_ACJNI_JAVAC!$_ACJNI_JAVAC$ac_delim
36736inttypes_h_decl!$inttypes_h_decl$ac_delim
36737stdint_h_decl!$stdint_h_decl$ac_delim
36738stddef_h_decl!$stddef_h_decl$ac_delim
36739unistd_h_decl!$unistd_h_decl$ac_delim
36740u_char_decl!$u_char_decl$ac_delim
36741u_short_decl!$u_short_decl$ac_delim
36742u_int_decl!$u_int_decl$ac_delim
36743u_long_decl!$u_long_decl$ac_delim
36744u_int8_decl!$u_int8_decl$ac_delim
36745u_int16_decl!$u_int16_decl$ac_delim
36746int16_decl!$int16_decl$ac_delim
36747u_int32_decl!$u_int32_decl$ac_delim
36748int32_decl!$int32_decl$ac_delim
36749u_int64_decl!$u_int64_decl$ac_delim
36750int64_decl!$int64_decl$ac_delim
36751FILE_t_decl!$FILE_t_decl$ac_delim
36752off_t_decl!$off_t_decl$ac_delim
36753pid_t_decl!$pid_t_decl$ac_delim
36754size_t_decl!$size_t_decl$ac_delim
36755time_t_decl!$time_t_decl$ac_delim
36756ssize_t_decl!$ssize_t_decl$ac_delim
36757uintmax_t_decl!$uintmax_t_decl$ac_delim
36758uintptr_t_decl!$uintptr_t_decl$ac_delim
36759thread_h_decl!$thread_h_decl$ac_delim
36760db_threadid_t_decl!$db_threadid_t_decl$ac_delim
36761LIBOBJS!$LIBOBJS$ac_delim
36762TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim
36763TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
36764TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
36765TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim
36766TCL_TCLSH!$TCL_TCLSH$ac_delim
36767INT64_FMT!$INT64_FMT$ac_delim
36768UINT64_FMT!$UINT64_FMT$ac_delim
36769db_seq_decl!$db_seq_decl$ac_delim
36770LTLIBOBJS!$LTLIBOBJS$ac_delim
36771_ACEOF
36772
36773  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 74; then
36774    break
36775  elif $ac_last_try; then
36776    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36777echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36778   { (exit 1); exit 1; }; }
36779  else
36780    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36781  fi
36782done
36783
36784ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36785if test -n "$ac_eof"; then
36786  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36787  ac_eof=`expr $ac_eof + 1`
36788fi
36789
36790cat >>$CONFIG_STATUS <<_ACEOF
36791cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36792/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36793_ACEOF
36794sed '
36795s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36796s/^/s,@/; s/!/@,|#_!!_#|/
36797:n
36798t n
36799s/'"$ac_delim"'$/,g/; t
36800s/$/\\/; p
36801N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36802' >>$CONFIG_STATUS <conf$$subs.sed
36803rm -f conf$$subs.sed
36804cat >>$CONFIG_STATUS <<_ACEOF
36805:end
36806s/|#_!!_#|//g
36807CEOF$ac_eof
36808_ACEOF
36809
36810
36811# VPATH may cause trouble with some makes, so we remove $(srcdir),
36812# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36813# trailing colons and then remove the whole line if VPATH becomes empty
36814# (actually we leave an empty line to preserve line numbers).
36815if test "x$srcdir" = x.; then
36816  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
36817s/:*\$(srcdir):*/:/
36818s/:*\${srcdir}:*/:/
36819s/:*@srcdir@:*/:/
36820s/^\([^=]*=[	 ]*\):*/\1/
36821s/:*$//
36822s/^[^=]*=[	 ]*$//
36823}'
36824fi
36825
36826cat >>$CONFIG_STATUS <<\_ACEOF
36827fi # test -n "$CONFIG_FILES"
36828
36829
36830for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
36831do
36832  case $ac_tag in
36833  :[FHLC]) ac_mode=$ac_tag; continue;;
36834  esac
36835  case $ac_mode$ac_tag in
36836  :[FHL]*:*);;
36837  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36838echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36839   { (exit 1); exit 1; }; };;
36840  :[FH]-) ac_tag=-:-;;
36841  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36842  esac
36843  ac_save_IFS=$IFS
36844  IFS=:
36845  set x $ac_tag
36846  IFS=$ac_save_IFS
36847  shift
36848  ac_file=$1
36849  shift
36850
36851  case $ac_mode in
36852  :L) ac_source=$1;;
36853  :[FH])
36854    ac_file_inputs=
36855    for ac_f
36856    do
36857      case $ac_f in
36858      -) ac_f="$tmp/stdin";;
36859      *) # Look for the file first in the build tree, then in the source tree
36860	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
36861	 # because $ac_f cannot contain `:'.
36862	 test -f "$ac_f" ||
36863	   case $ac_f in
36864	   [\\/$]*) false;;
36865	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36866	   esac ||
36867	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36868echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36869   { (exit 1); exit 1; }; };;
36870      esac
36871      ac_file_inputs="$ac_file_inputs $ac_f"
36872    done
36873
36874    # Let's still pretend it is `configure' which instantiates (i.e., don't
36875    # use $as_me), people would be surprised to read:
36876    #    /* config.h.  Generated by config.status.  */
36877    configure_input="Generated from "`IFS=:
36878	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36879    if test x"$ac_file" != x-; then
36880      configure_input="$ac_file.  $configure_input"
36881      { echo "$as_me:$LINENO: creating $ac_file" >&5
36882echo "$as_me: creating $ac_file" >&6;}
36883    fi
36884
36885    case $ac_tag in
36886    *:-:* | *:-) cat >"$tmp/stdin";;
36887    esac
36888    ;;
36889  esac
36890
36891  ac_dir=`$as_dirname -- "$ac_file" ||
36892$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36893	 X"$ac_file" : 'X\(//\)[^/]' \| \
36894	 X"$ac_file" : 'X\(//\)$' \| \
36895	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36896echo X"$ac_file" |
36897    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36898	    s//\1/
36899	    q
36900	  }
36901	  /^X\(\/\/\)[^/].*/{
36902	    s//\1/
36903	    q
36904	  }
36905	  /^X\(\/\/\)$/{
36906	    s//\1/
36907	    q
36908	  }
36909	  /^X\(\/\).*/{
36910	    s//\1/
36911	    q
36912	  }
36913	  s/.*/./; q'`
36914  { as_dir="$ac_dir"
36915  case $as_dir in #(
36916  -*) as_dir=./$as_dir;;
36917  esac
36918  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36919    as_dirs=
36920    while :; do
36921      case $as_dir in #(
36922      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36923      *) as_qdir=$as_dir;;
36924      esac
36925      as_dirs="'$as_qdir' $as_dirs"
36926      as_dir=`$as_dirname -- "$as_dir" ||
36927$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36928	 X"$as_dir" : 'X\(//\)[^/]' \| \
36929	 X"$as_dir" : 'X\(//\)$' \| \
36930	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36931echo X"$as_dir" |
36932    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36933	    s//\1/
36934	    q
36935	  }
36936	  /^X\(\/\/\)[^/].*/{
36937	    s//\1/
36938	    q
36939	  }
36940	  /^X\(\/\/\)$/{
36941	    s//\1/
36942	    q
36943	  }
36944	  /^X\(\/\).*/{
36945	    s//\1/
36946	    q
36947	  }
36948	  s/.*/./; q'`
36949      test -d "$as_dir" && break
36950    done
36951    test -z "$as_dirs" || eval "mkdir $as_dirs"
36952  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36953echo "$as_me: error: cannot create directory $as_dir" >&2;}
36954   { (exit 1); exit 1; }; }; }
36955  ac_builddir=.
36956
36957case "$ac_dir" in
36958.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36959*)
36960  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36961  # A ".." for each directory in $ac_dir_suffix.
36962  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36963  case $ac_top_builddir_sub in
36964  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36965  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36966  esac ;;
36967esac
36968ac_abs_top_builddir=$ac_pwd
36969ac_abs_builddir=$ac_pwd$ac_dir_suffix
36970# for backward compatibility:
36971ac_top_builddir=$ac_top_build_prefix
36972
36973case $srcdir in
36974  .)  # We are building in place.
36975    ac_srcdir=.
36976    ac_top_srcdir=$ac_top_builddir_sub
36977    ac_abs_top_srcdir=$ac_pwd ;;
36978  [\\/]* | ?:[\\/]* )  # Absolute name.
36979    ac_srcdir=$srcdir$ac_dir_suffix;
36980    ac_top_srcdir=$srcdir
36981    ac_abs_top_srcdir=$srcdir ;;
36982  *) # Relative name.
36983    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36984    ac_top_srcdir=$ac_top_build_prefix$srcdir
36985    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36986esac
36987ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36988
36989
36990  case $ac_mode in
36991  :F)
36992  #
36993  # CONFIG_FILE
36994  #
36995
36996  case $INSTALL in
36997  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36998  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36999  esac
37000_ACEOF
37001
37002cat >>$CONFIG_STATUS <<\_ACEOF
37003# If the template does not know about datarootdir, expand it.
37004# FIXME: This hack should be removed a few years after 2.60.
37005ac_datarootdir_hack=; ac_datarootdir_seen=
37006
37007case `sed -n '/datarootdir/ {
37008  p
37009  q
37010}
37011/@datadir@/p
37012/@docdir@/p
37013/@infodir@/p
37014/@localedir@/p
37015/@mandir@/p
37016' $ac_file_inputs` in
37017*datarootdir*) ac_datarootdir_seen=yes;;
37018*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
37019  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
37020echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37021_ACEOF
37022cat >>$CONFIG_STATUS <<_ACEOF
37023  ac_datarootdir_hack='
37024  s&@datadir@&$datadir&g
37025  s&@docdir@&$docdir&g
37026  s&@infodir@&$infodir&g
37027  s&@localedir@&$localedir&g
37028  s&@mandir@&$mandir&g
37029    s&\\\${datarootdir}&$datarootdir&g' ;;
37030esac
37031_ACEOF
37032
37033# Neutralize VPATH when `$srcdir' = `.'.
37034# Shell code in configure.ac might set extrasub.
37035# FIXME: do we really want to maintain this feature?
37036cat >>$CONFIG_STATUS <<_ACEOF
37037  sed "$ac_vpsub
37038$extrasub
37039_ACEOF
37040cat >>$CONFIG_STATUS <<\_ACEOF
37041:t
37042/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37043s&@configure_input@&$configure_input&;t t
37044s&@top_builddir@&$ac_top_builddir_sub&;t t
37045s&@srcdir@&$ac_srcdir&;t t
37046s&@abs_srcdir@&$ac_abs_srcdir&;t t
37047s&@top_srcdir@&$ac_top_srcdir&;t t
37048s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37049s&@builddir@&$ac_builddir&;t t
37050s&@abs_builddir@&$ac_abs_builddir&;t t
37051s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37052s&@INSTALL@&$ac_INSTALL&;t t
37053$ac_datarootdir_hack
37054" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
37055
37056test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
37057  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
37058  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
37059  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37060which seems to be undefined.  Please make sure it is defined." >&5
37061echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37062which seems to be undefined.  Please make sure it is defined." >&2;}
37063
37064  rm -f "$tmp/stdin"
37065  case $ac_file in
37066  -) cat "$tmp/out"; rm -f "$tmp/out";;
37067  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
37068  esac
37069 ;;
37070  :H)
37071  #
37072  # CONFIG_HEADER
37073  #
37074_ACEOF
37075
37076# Transform confdefs.h into a sed script `conftest.defines', that
37077# substitutes the proper values into config.h.in to produce config.h.
37078rm -f conftest.defines conftest.tail
37079# First, append a space to every undef/define line, to ease matching.
37080echo 's/$/ /' >conftest.defines
37081# Then, protect against being on the right side of a sed subst, or in
37082# an unquoted here document, in config.status.  If some macros were
37083# called several times there might be several #defines for the same
37084# symbol, which is useless.  But do not sort them, since the last
37085# AC_DEFINE must be honored.
37086ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37087# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
37088# NAME is the cpp macro being defined, VALUE is the value it is being given.
37089# PARAMS is the parameter list in the macro definition--in most cases, it's
37090# just an empty string.
37091ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
37092ac_dB='\\)[	 (].*,\\1define\\2'
37093ac_dC=' '
37094ac_dD=' ,'
37095
37096uniq confdefs.h |
37097  sed -n '
37098	t rset
37099	:rset
37100	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
37101	t ok
37102	d
37103	:ok
37104	s/[\\&,]/\\&/g
37105	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
37106	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
37107  ' >>conftest.defines
37108
37109# Remove the space that was appended to ease matching.
37110# Then replace #undef with comments.  This is necessary, for
37111# example, in the case of _POSIX_SOURCE, which is predefined and required
37112# on some systems where configure will not decide to define it.
37113# (The regexp can be short, since the line contains either #define or #undef.)
37114echo 's/ $//
37115s,^[	 #]*u.*,/* & */,' >>conftest.defines
37116
37117# Break up conftest.defines:
37118ac_max_sed_lines=50
37119
37120# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
37121# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
37122# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
37123# et cetera.
37124ac_in='$ac_file_inputs'
37125ac_out='"$tmp/out1"'
37126ac_nxt='"$tmp/out2"'
37127
37128while :
37129do
37130  # Write a here document:
37131    cat >>$CONFIG_STATUS <<_ACEOF
37132    # First, check the format of the line:
37133    cat >"\$tmp/defines.sed" <<\\CEOF
37134/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
37135/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
37136b
37137:def
37138_ACEOF
37139  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
37140  echo 'CEOF
37141    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
37142  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
37143  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
37144  grep . conftest.tail >/dev/null || break
37145  rm -f conftest.defines
37146  mv conftest.tail conftest.defines
37147done
37148rm -f conftest.defines conftest.tail
37149
37150echo "ac_result=$ac_in" >>$CONFIG_STATUS
37151cat >>$CONFIG_STATUS <<\_ACEOF
37152  if test x"$ac_file" != x-; then
37153    echo "/* $configure_input  */" >"$tmp/config.h"
37154    cat "$ac_result" >>"$tmp/config.h"
37155    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
37156      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
37157echo "$as_me: $ac_file is unchanged" >&6;}
37158    else
37159      rm -f $ac_file
37160      mv "$tmp/config.h" $ac_file
37161    fi
37162  else
37163    echo "/* $configure_input  */"
37164    cat "$ac_result"
37165  fi
37166  rm -f "$tmp/out12"
37167 ;;
37168
37169
37170  esac
37171
37172done # for ac_tag
37173
37174
37175{ (exit 0); exit 0; }
37176_ACEOF
37177chmod +x $CONFIG_STATUS
37178ac_clean_files=$ac_clean_files_save
37179
37180
37181# configure is writing to config.log, and then calls config.status.
37182# config.status does its own redirection, appending to config.log.
37183# Unfortunately, on DOS this fails, as config.log is still kept open
37184# by configure, so config.status won't be able to write to it; its
37185# output is simply discarded.  So we exec the FD to /dev/null,
37186# effectively closing config.log, so it can be properly (re)opened and
37187# appended to by config.status.  When coming back to configure, we
37188# need to make the FD available again.
37189if test "$no_create" != yes; then
37190  ac_cs_success=:
37191  ac_config_status_args=
37192  test "$silent" = yes &&
37193    ac_config_status_args="$ac_config_status_args --quiet"
37194  exec 5>/dev/null
37195  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37196  exec 5>>config.log
37197  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37198  # would make configure fail if this is the last instruction.
37199  $ac_cs_success || { (exit 1); exit 1; }
37200fi
37201
37202