~ubuntu-branches/ubuntu/maverick/evolution-data-server/maverick-proposed

« back to all changes in this revision

Viewing changes to libdb/dist/configure

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-05-17 17:02:06 UTC
  • mfrom: (1.1.79 upstream) (1.6.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20100517170206-4ufr52vwrhh26yh0
Tags: 2.30.1-1ubuntu1
* Merge from debian experimental. Remaining change:
  (LP: #42199, #229669, #173703, #360344, #508494)
  + debian/control:
    - add Vcs-Bzr tag
    - don't use libgnome
    - Use Breaks instead of Conflicts against evolution 2.25 and earlier.
  + debian/evolution-data-server.install,
    debian/patches/45_libcamel_providers_version.patch:
    - use the upstream versioning, not a Debian-specific one 
  + debian/libedata-book1.2-dev.install, debian/libebackend-1.2-dev.install,
    debian/libcamel1.2-dev.install, debian/libedataserverui1.2-dev.install:
    - install html documentation
  + debian/rules:
    - don't build documentation it's shipped with the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.57 for Berkeley DB 4.1.25.
4
 
#
5
 
# Report bugs to <support@sleepycat.com>.
6
 
#
7
 
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8
 
# 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 Bourne compatible
16
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17
 
  emulate sh
18
 
  NULLCMD=:
19
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20
 
  # is contrary to our usage.  Disable this feature.
21
 
  alias -g '${1+"$@"}'='"$@"'
22
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23
 
  set -o posix
24
 
fi
25
 
 
26
 
# Support unset when possible.
27
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28
 
  as_unset=unset
29
 
else
30
 
  as_unset=false
31
 
fi
32
 
 
33
 
 
34
 
# Work around bugs in pre-3.0 UWIN ksh.
35
 
$as_unset ENV MAIL MAILPATH
36
 
PS1='$ '
37
 
PS2='> '
38
 
PS4='+ '
39
 
 
40
 
# NLS nuisances.
41
 
for as_var in \
42
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
 
  LC_TELEPHONE LC_TIME
45
 
do
46
 
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
 
    eval $as_var=C; export $as_var
48
 
  else
49
 
    $as_unset $as_var
50
 
  fi
51
 
done
52
 
 
53
 
# Required to use basename.
54
 
if expr a : '\(a\)' >/dev/null 2>&1; then
55
 
  as_expr=expr
56
 
else
57
 
  as_expr=false
58
 
fi
59
 
 
60
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61
 
  as_basename=basename
62
 
else
63
 
  as_basename=false
64
 
fi
65
 
 
66
 
 
67
 
# Name of the executable.
68
 
as_me=`$as_basename "$0" ||
69
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
 
         X"$0" : 'X\(//\)$' \| \
71
 
         X"$0" : 'X\(/\)$' \| \
72
 
         .     : '\(.\)' 2>/dev/null ||
73
 
echo X/"$0" |
74
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
76
 
          /^X\/\(\/\).*/{ s//\1/; q; }
77
 
          s/.*/./; q'`
78
 
 
79
 
 
80
 
# PATH needs CR, and LINENO needs CR and PATH.
81
 
# Avoid depending upon Character Ranges.
82
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
 
as_cr_digits='0123456789'
86
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
87
 
 
88
 
# The user is always right.
89
 
if test "${PATH_SEPARATOR+set}" != set; then
90
 
  echo "#! /bin/sh" >conf$$.sh
91
 
  echo  "exit 0"   >>conf$$.sh
92
 
  chmod +x conf$$.sh
93
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94
 
    PATH_SEPARATOR=';'
95
 
  else
96
 
    PATH_SEPARATOR=:
97
 
  fi
98
 
  rm -f conf$$.sh
99
 
fi
100
 
 
101
 
 
102
 
  as_lineno_1=$LINENO
103
 
  as_lineno_2=$LINENO
104
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
106
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107
 
  # Find who we are.  Look in the path if we contain no path at all
108
 
  # relative or not.
109
 
  case $0 in
110
 
    *[\\/]* ) as_myself=$0 ;;
111
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112
 
for as_dir in $PATH
113
 
do
114
 
  IFS=$as_save_IFS
115
 
  test -z "$as_dir" && as_dir=.
116
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117
 
done
118
 
 
119
 
       ;;
120
 
  esac
121
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
122
 
  # in which case we are not to be found in the path.
123
 
  if test "x$as_myself" = x; then
124
 
    as_myself=$0
125
 
  fi
126
 
  if test ! -f "$as_myself"; then
127
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
 
   { (exit 1); exit 1; }; }
129
 
  fi
130
 
  case $CONFIG_SHELL in
131
 
  '')
132
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
 
do
135
 
  IFS=$as_save_IFS
136
 
  test -z "$as_dir" && as_dir=.
137
 
  for as_base in sh bash ksh sh5; do
138
 
         case $as_dir in
139
 
         /*)
140
 
           if ("$as_dir/$as_base" -c '
141
 
  as_lineno_1=$LINENO
142
 
  as_lineno_2=$LINENO
143
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
145
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
 
             CONFIG_SHELL=$as_dir/$as_base
149
 
             export CONFIG_SHELL
150
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151
 
           fi;;
152
 
         esac
153
 
       done
154
 
done
155
 
;;
156
 
  esac
157
 
 
158
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
160
 
  # line-number line before each line; the second 'sed' does the real
161
 
  # work.  The second script uses 'N' to pair each line-number line
162
 
  # with the numbered line, and appends trailing '-' during
163
 
  # substitution so that $LINENO is not a special case at line end.
164
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166
 
  sed '=' <$as_myself |
167
 
    sed '
168
 
      N
169
 
      s,$,-,
170
 
      : loop
171
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
 
      t loop
173
 
      s,-$,,
174
 
      s,^['$as_cr_digits']*\n,,
175
 
    ' >$as_me.lineno &&
176
 
  chmod +x $as_me.lineno ||
177
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
 
   { (exit 1); exit 1; }; }
179
 
 
180
 
  # Don't try to exec as it changes $[0], causing all sort of problems
181
 
  # (the dirname of $[0] is not the place where we might find the
182
 
  # original and so on.  Autoconf is especially sensible to this).
183
 
  . ./$as_me.lineno
184
 
  # Exit status is that of the last command.
185
 
  exit
186
 
}
187
 
 
188
 
 
189
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
 
  *c*,-n*) ECHO_N= ECHO_C='
191
 
' ECHO_T='      ' ;;
192
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
 
esac
195
 
 
196
 
if expr a : '\(a\)' >/dev/null 2>&1; then
197
 
  as_expr=expr
198
 
else
199
 
  as_expr=false
200
 
fi
201
 
 
202
 
rm -f conf$$ conf$$.exe conf$$.file
203
 
echo >conf$$.file
204
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
 
  # We could just check for DJGPP; but this test a) works b) is more generic
206
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
 
  if test -f conf$$.exe; then
208
 
    # Don't use ln at all; we don't have any links
209
 
    as_ln_s='cp -p'
210
 
  else
211
 
    as_ln_s='ln -s'
212
 
  fi
213
 
elif ln conf$$.file conf$$ 2>/dev/null; then
214
 
  as_ln_s=ln
215
 
else
216
 
  as_ln_s='cp -p'
217
 
fi
218
 
rm -f conf$$ conf$$.exe conf$$.file
219
 
 
220
 
if mkdir -p . 2>/dev/null; then
221
 
  as_mkdir_p=:
222
 
else
223
 
  as_mkdir_p=false
224
 
fi
225
 
 
226
 
as_executable_p="test -f"
227
 
 
228
 
# Sed expression to map a string onto a valid CPP name.
229
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
 
 
231
 
# Sed expression to map a string onto a valid variable name.
232
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
 
 
234
 
 
235
 
# IFS
236
 
# We need space, tab and new line, in precisely that order.
237
 
as_nl='
238
 
'
239
 
IFS="   $as_nl"
240
 
 
241
 
# CDPATH.
242
 
$as_unset CDPATH
243
 
 
244
 
 
245
 
# Find the correct PATH separator.  Usually this is `:', but
246
 
# DJGPP uses `;' like DOS.
247
 
if test "X${PATH_SEPARATOR+set}" != Xset; then
248
 
  UNAME=${UNAME-`uname 2>/dev/null`}
249
 
  case X$UNAME in
250
 
    *-DOS) lt_cv_sys_path_separator=';' ;;
251
 
    *)     lt_cv_sys_path_separator=':' ;;
252
 
  esac
253
 
  PATH_SEPARATOR=$lt_cv_sys_path_separator
254
 
fi
255
 
 
256
 
 
257
 
# Check that we are running under the correct shell.
258
 
SHELL=${CONFIG_SHELL-/bin/sh}
259
 
 
260
 
case X$ECHO in
261
 
X*--fallback-echo)
262
 
  # Remove one level of quotation (which was required for Make).
263
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
264
 
  ;;
265
 
esac
266
 
 
267
 
echo=${ECHO-echo}
268
 
if test "X$1" = X--no-reexec; then
269
 
  # Discard the --no-reexec flag, and continue.
270
 
  shift
271
 
elif test "X$1" = X--fallback-echo; then
272
 
  # Avoid inline document here, it may be left over
273
 
  :
274
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
275
 
  # Yippee, $echo works!
276
 
  :
277
 
else
278
 
  # Restart under the correct shell.
279
 
  exec $SHELL "$0" --no-reexec ${1+"$@"}
280
 
fi
281
 
 
282
 
if test "X$1" = X--fallback-echo; then
283
 
  # used as fallback echo
284
 
  shift
285
 
  cat <<EOF
286
 
 
287
 
EOF
288
 
  exit 0
289
 
fi
290
 
 
291
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
292
 
# if CDPATH is set.
293
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
294
 
 
295
 
if test -z "$ECHO"; then
296
 
if test "X${echo_test_string+set}" != Xset; then
297
 
# find a string as large as possible, as long as the shell can cope with it
298
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
299
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
300
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
301
 
       echo_test_string="`eval $cmd`" &&
302
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
303
 
    then
304
 
      break
305
 
    fi
306
 
  done
307
 
fi
308
 
 
309
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
310
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
311
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
312
 
  :
313
 
else
314
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
315
 
  # backslashes.  This makes it impossible to quote backslashes using
316
 
  #   echo "$something" | sed 's/\\/\\\\/g'
317
 
  #
318
 
  # So, first we look for a working echo in the user's PATH.
319
 
 
320
 
  IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
321
 
  for dir in $PATH /usr/ucb; do
322
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
323
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
324
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
325
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
326
 
      echo="$dir/echo"
327
 
      break
328
 
    fi
329
 
  done
330
 
  IFS="$save_ifs"
331
 
 
332
 
  if test "X$echo" = Xecho; then
333
 
    # We didn't find a better echo, so look for alternatives.
334
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
335
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
336
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
337
 
      # This shell has a builtin print -r that does the trick.
338
 
      echo='print -r'
339
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
340
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
341
 
      # If we have ksh, try running configure again with it.
342
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
343
 
      export ORIGINAL_CONFIG_SHELL
344
 
      CONFIG_SHELL=/bin/ksh
345
 
      export CONFIG_SHELL
346
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
347
 
    else
348
 
      # Try using printf.
349
 
      echo='printf %s\n'
350
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
351
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
352
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
353
 
        # Cool, printf works
354
 
        :
355
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356
 
           test "X$echo_testing_string" = 'X\t' &&
357
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
359
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
360
 
        export CONFIG_SHELL
361
 
        SHELL="$CONFIG_SHELL"
362
 
        export SHELL
363
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
364
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
365
 
           test "X$echo_testing_string" = 'X\t' &&
366
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
367
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
368
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
369
 
      else
370
 
        # maybe with a smaller string...
371
 
        prev=:
372
 
 
373
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
374
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
375
 
          then
376
 
            break
377
 
          fi
378
 
          prev="$cmd"
379
 
        done
380
 
 
381
 
        if test "$prev" != 'sed 50q "$0"'; then
382
 
          echo_test_string=`eval $prev`
383
 
          export echo_test_string
384
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
385
 
        else
386
 
          # Oops.  We lost completely, so just stick with echo.
387
 
          echo=echo
388
 
        fi
389
 
      fi
390
 
    fi
391
 
  fi
392
 
fi
393
 
fi
394
 
 
395
 
# Copy echo and quote the copy suitably for passing to libtool from
396
 
# the Makefile, instead of quoting the original, which is used later.
397
 
ECHO=$echo
398
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
399
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
400
 
fi
401
 
 
402
 
 
403
 
 
404
 
# Name of the host.
405
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
406
 
# so uname gets run too.
407
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408
 
 
409
 
exec 6>&1
410
 
 
411
 
#
412
 
# Initializations.
413
 
#
414
 
ac_default_prefix=/usr/local
415
 
ac_config_libobj_dir=.
416
 
cross_compiling=no
417
 
subdirs=
418
 
MFLAGS=
419
 
MAKEFLAGS=
420
 
SHELL=${CONFIG_SHELL-/bin/sh}
421
 
 
422
 
# Maximum number of lines to put in a shell here document.
423
 
# This variable seems obsolete.  It should probably be removed, and
424
 
# only ac_max_sed_lines should be used.
425
 
: ${ac_max_here_lines=38}
426
 
 
427
 
# Identity of this package.
428
 
PACKAGE_NAME='Berkeley DB'
429
 
PACKAGE_TARNAME='db-4.1.25'
430
 
PACKAGE_VERSION='4.1.25'
431
 
PACKAGE_STRING='Berkeley DB 4.1.25'
432
 
PACKAGE_BUGREPORT='support@sleepycat.com'
433
 
 
434
 
ac_unique_file="../db/db.c"
435
 
ac_default_prefix=/usr/local/BerkeleyDB.@DB_VERSION_MAJOR@.@DB_VERSION_MINOR@
436
 
# Factoring default headers for most tests.
437
 
ac_includes_default="\
438
 
#include <stdio.h>
439
 
#if HAVE_SYS_TYPES_H
440
 
# include <sys/types.h>
441
 
#endif
442
 
#if HAVE_SYS_STAT_H
443
 
# include <sys/stat.h>
444
 
#endif
445
 
#if STDC_HEADERS
446
 
# include <stdlib.h>
447
 
# include <stddef.h>
448
 
#else
449
 
# if HAVE_STDLIB_H
450
 
#  include <stdlib.h>
451
 
# endif
452
 
#endif
453
 
#if HAVE_STRING_H
454
 
# if !STDC_HEADERS && HAVE_MEMORY_H
455
 
#  include <memory.h>
456
 
# endif
457
 
# include <string.h>
458
 
#endif
459
 
#if HAVE_STRINGS_H
460
 
# include <strings.h>
461
 
#endif
462
 
#if HAVE_INTTYPES_H
463
 
# include <inttypes.h>
464
 
#else
465
 
# if HAVE_STDINT_H
466
 
#  include <stdint.h>
467
 
# endif
468
 
#endif
469
 
#if HAVE_UNISTD_H
470
 
# include <unistd.h>
471
 
#endif"
472
 
 
473
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os ADDITIONAL_INCS ADDITIONAL_LANG ADDITIONAL_OBJS ADDITIONAL_PROGS BUILD_TARGET CFLAGS CONFIGURATION_ARGS CONFIGURATION_PATH CPPFLAGS CXX CXXFLAGS DEFAULT_LIB DEFAULT_LIB_CXX EMBEDIX_ECD_CXX EMBEDIX_ECD_RPC EMBEDIX_ROOT INSTALLER INSTALL_LIBS INSTALL_TARGET JAR JAVACFLAGS LDFLAGS LIBJSO_LIBS LIBSO_LIBS LIBTOOL LIBTSO_LIBS LIBXSO_LIBS LOAD_LIBS MAKEFILE_CC MAKEFILE_CCLINK MAKEFILE_CXX MAKEFILE_CXXLINK MAKEFILE_MAYBE_WIN32 MAKEFILE_SOLINK MAKEFILE_XSOLINK POSTLINK RPC_CLIENT_OBJS RPM_POST_INSTALL RPM_POST_UNINSTALL SOFLAGS db_cv_path_embedix_install db_cv_path_rpm_archive db_int_def o DB_VERSION_MAJOR DB_VERSION_MINOR DB_VERSION_PATCH DB_VERSION_UNIQUE_NAME DB_VERSION_STRING db_cv_path_ar ac_ct_db_cv_path_ar db_cv_path_chmod ac_ct_db_cv_path_chmod db_cv_path_cp ac_ct_db_cv_path_cp path_ldconfig ac_ct_path_ldconfig db_cv_path_ldconfig db_cv_path_ln ac_ct_db_cv_path_ln db_cv_path_mkdir ac_ct_db_cv_path_mkdir path_ranlib ac_ct_path_ranlib db_cv_path_ranlib db_cv_path_rm ac_ct_db_cv_path_rm db_cv_path_rpm ac_ct_db_cv_path_rpm path_sh ac_ct_path_sh db_cv_path_sh path_strip ac_ct_path_strip db_cv_path_strip db_cv_path_kill ac_ct_db_cv_path_kill INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC ac_ct_CC EXEEXT OBJEXT CCC ac_ct_CCC ac_ct_CXX cxx_have_stdheaders LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP SOSUFFIX MODSUFFIX JMODSUFFIX JAVAC _ACJNI_JAVAC TCFLAGS TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_TCLSH u_char_decl u_short_decl u_int_decl u_long_decl u_int8_decl u_int16_decl int16_decl u_int32_decl int32_decl ssize_t_decl db_align_t_decl db_alignp_t_decl LIBOBJS LTLIBOBJS'
474
 
ac_subst_files=''
475
 
 
476
 
# Initialize some variables set by options.
477
 
ac_init_help=
478
 
ac_init_version=false
479
 
# The variables have the same names as the options, with
480
 
# dashes changed to underlines.
481
 
cache_file=/dev/null
482
 
exec_prefix=NONE
483
 
no_create=
484
 
no_recursion=
485
 
prefix=NONE
486
 
program_prefix=NONE
487
 
program_suffix=NONE
488
 
program_transform_name=s,x,x,
489
 
silent=
490
 
site=
491
 
srcdir=
492
 
verbose=
493
 
x_includes=NONE
494
 
x_libraries=NONE
495
 
 
496
 
# Installation directory options.
497
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
498
 
# and all the variables that are supposed to be based on exec_prefix
499
 
# by default will actually change.
500
 
# Use braces instead of parens because sh, perl, etc. also accept them.
501
 
bindir='${exec_prefix}/bin'
502
 
sbindir='${exec_prefix}/sbin'
503
 
libexecdir='${exec_prefix}/libexec'
504
 
datadir='${prefix}/share'
505
 
sysconfdir='${prefix}/etc'
506
 
sharedstatedir='${prefix}/com'
507
 
localstatedir='${prefix}/var'
508
 
libdir='${exec_prefix}/lib'
509
 
includedir='${prefix}/include'
510
 
oldincludedir='/usr/include'
511
 
infodir='${prefix}/info'
512
 
mandir='${prefix}/man'
513
 
 
514
 
ac_prev=
515
 
for ac_option
516
 
do
517
 
  # If the previous option needs an argument, assign it.
518
 
  if test -n "$ac_prev"; then
519
 
    eval "$ac_prev=\$ac_option"
520
 
    ac_prev=
521
 
    continue
522
 
  fi
523
 
 
524
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
525
 
 
526
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
527
 
 
528
 
  case $ac_option in
529
 
 
530
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
531
 
    ac_prev=bindir ;;
532
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
533
 
    bindir=$ac_optarg ;;
534
 
 
535
 
  -build | --build | --buil | --bui | --bu)
536
 
    ac_prev=build_alias ;;
537
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
538
 
    build_alias=$ac_optarg ;;
539
 
 
540
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
541
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
542
 
    ac_prev=cache_file ;;
543
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
544
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
545
 
    cache_file=$ac_optarg ;;
546
 
 
547
 
  --config-cache | -C)
548
 
    cache_file=config.cache ;;
549
 
 
550
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
551
 
    ac_prev=datadir ;;
552
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
553
 
  | --da=*)
554
 
    datadir=$ac_optarg ;;
555
 
 
556
 
  -disable-* | --disable-*)
557
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
558
 
    # Reject names that are not valid shell variable names.
559
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
561
 
   { (exit 1); exit 1; }; }
562
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
563
 
    eval "enable_$ac_feature=no" ;;
564
 
 
565
 
  -enable-* | --enable-*)
566
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
567
 
    # Reject names that are not valid shell variable names.
568
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
569
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
570
 
   { (exit 1); exit 1; }; }
571
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
572
 
    case $ac_option in
573
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
574
 
      *) ac_optarg=yes ;;
575
 
    esac
576
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
577
 
 
578
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
579
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
580
 
  | --exec | --exe | --ex)
581
 
    ac_prev=exec_prefix ;;
582
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
583
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
584
 
  | --exec=* | --exe=* | --ex=*)
585
 
    exec_prefix=$ac_optarg ;;
586
 
 
587
 
  -gas | --gas | --ga | --g)
588
 
    # Obsolete; use --with-gas.
589
 
    with_gas=yes ;;
590
 
 
591
 
  -help | --help | --hel | --he | -h)
592
 
    ac_init_help=long ;;
593
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
594
 
    ac_init_help=recursive ;;
595
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
596
 
    ac_init_help=short ;;
597
 
 
598
 
  -host | --host | --hos | --ho)
599
 
    ac_prev=host_alias ;;
600
 
  -host=* | --host=* | --hos=* | --ho=*)
601
 
    host_alias=$ac_optarg ;;
602
 
 
603
 
  -includedir | --includedir | --includedi | --included | --include \
604
 
  | --includ | --inclu | --incl | --inc)
605
 
    ac_prev=includedir ;;
606
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
607
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
608
 
    includedir=$ac_optarg ;;
609
 
 
610
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
611
 
    ac_prev=infodir ;;
612
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
613
 
    infodir=$ac_optarg ;;
614
 
 
615
 
  -libdir | --libdir | --libdi | --libd)
616
 
    ac_prev=libdir ;;
617
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
618
 
    libdir=$ac_optarg ;;
619
 
 
620
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
621
 
  | --libexe | --libex | --libe)
622
 
    ac_prev=libexecdir ;;
623
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
624
 
  | --libexe=* | --libex=* | --libe=*)
625
 
    libexecdir=$ac_optarg ;;
626
 
 
627
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
628
 
  | --localstate | --localstat | --localsta | --localst \
629
 
  | --locals | --local | --loca | --loc | --lo)
630
 
    ac_prev=localstatedir ;;
631
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
632
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
633
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
634
 
    localstatedir=$ac_optarg ;;
635
 
 
636
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
637
 
    ac_prev=mandir ;;
638
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
639
 
    mandir=$ac_optarg ;;
640
 
 
641
 
  -nfp | --nfp | --nf)
642
 
    # Obsolete; use --without-fp.
643
 
    with_fp=no ;;
644
 
 
645
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
646
 
  | --no-cr | --no-c | -n)
647
 
    no_create=yes ;;
648
 
 
649
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
650
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
651
 
    no_recursion=yes ;;
652
 
 
653
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
654
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
655
 
  | --oldin | --oldi | --old | --ol | --o)
656
 
    ac_prev=oldincludedir ;;
657
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
658
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
659
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
660
 
    oldincludedir=$ac_optarg ;;
661
 
 
662
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
663
 
    ac_prev=prefix ;;
664
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
665
 
    prefix=$ac_optarg ;;
666
 
 
667
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
668
 
  | --program-pre | --program-pr | --program-p)
669
 
    ac_prev=program_prefix ;;
670
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
671
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
672
 
    program_prefix=$ac_optarg ;;
673
 
 
674
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
675
 
  | --program-suf | --program-su | --program-s)
676
 
    ac_prev=program_suffix ;;
677
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
678
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
679
 
    program_suffix=$ac_optarg ;;
680
 
 
681
 
  -program-transform-name | --program-transform-name \
682
 
  | --program-transform-nam | --program-transform-na \
683
 
  | --program-transform-n | --program-transform- \
684
 
  | --program-transform | --program-transfor \
685
 
  | --program-transfo | --program-transf \
686
 
  | --program-trans | --program-tran \
687
 
  | --progr-tra | --program-tr | --program-t)
688
 
    ac_prev=program_transform_name ;;
689
 
  -program-transform-name=* | --program-transform-name=* \
690
 
  | --program-transform-nam=* | --program-transform-na=* \
691
 
  | --program-transform-n=* | --program-transform-=* \
692
 
  | --program-transform=* | --program-transfor=* \
693
 
  | --program-transfo=* | --program-transf=* \
694
 
  | --program-trans=* | --program-tran=* \
695
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
696
 
    program_transform_name=$ac_optarg ;;
697
 
 
698
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
699
 
  | -silent | --silent | --silen | --sile | --sil)
700
 
    silent=yes ;;
701
 
 
702
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
703
 
    ac_prev=sbindir ;;
704
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
705
 
  | --sbi=* | --sb=*)
706
 
    sbindir=$ac_optarg ;;
707
 
 
708
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
709
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
710
 
  | --sharedst | --shareds | --shared | --share | --shar \
711
 
  | --sha | --sh)
712
 
    ac_prev=sharedstatedir ;;
713
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
714
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
715
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
716
 
  | --sha=* | --sh=*)
717
 
    sharedstatedir=$ac_optarg ;;
718
 
 
719
 
  -site | --site | --sit)
720
 
    ac_prev=site ;;
721
 
  -site=* | --site=* | --sit=*)
722
 
    site=$ac_optarg ;;
723
 
 
724
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
725
 
    ac_prev=srcdir ;;
726
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
727
 
    srcdir=$ac_optarg ;;
728
 
 
729
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
730
 
  | --syscon | --sysco | --sysc | --sys | --sy)
731
 
    ac_prev=sysconfdir ;;
732
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
733
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
734
 
    sysconfdir=$ac_optarg ;;
735
 
 
736
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
737
 
    ac_prev=target_alias ;;
738
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
739
 
    target_alias=$ac_optarg ;;
740
 
 
741
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
742
 
    verbose=yes ;;
743
 
 
744
 
  -version | --version | --versio | --versi | --vers | -V)
745
 
    ac_init_version=: ;;
746
 
 
747
 
  -with-* | --with-*)
748
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
749
 
    # Reject names that are not valid shell variable names.
750
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
752
 
   { (exit 1); exit 1; }; }
753
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
754
 
    case $ac_option in
755
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
756
 
      *) ac_optarg=yes ;;
757
 
    esac
758
 
    eval "with_$ac_package='$ac_optarg'" ;;
759
 
 
760
 
  -without-* | --without-*)
761
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
762
 
    # Reject names that are not valid shell variable names.
763
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
764
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
765
 
   { (exit 1); exit 1; }; }
766
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
767
 
    eval "with_$ac_package=no" ;;
768
 
 
769
 
  --x)
770
 
    # Obsolete; use --with-x.
771
 
    with_x=yes ;;
772
 
 
773
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
774
 
  | --x-incl | --x-inc | --x-in | --x-i)
775
 
    ac_prev=x_includes ;;
776
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
777
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
778
 
    x_includes=$ac_optarg ;;
779
 
 
780
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
781
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
782
 
    ac_prev=x_libraries ;;
783
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
784
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
785
 
    x_libraries=$ac_optarg ;;
786
 
 
787
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
788
 
Try \`$0 --help' for more information." >&2
789
 
   { (exit 1); exit 1; }; }
790
 
    ;;
791
 
 
792
 
  *=*)
793
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
794
 
    # Reject names that are not valid shell variable names.
795
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
796
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
797
 
   { (exit 1); exit 1; }; }
798
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
799
 
    eval "$ac_envvar='$ac_optarg'"
800
 
    export $ac_envvar ;;
801
 
 
802
 
  *)
803
 
    # FIXME: should be removed in autoconf 3.0.
804
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
805
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
806
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
807
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808
 
    ;;
809
 
 
810
 
  esac
811
 
done
812
 
 
813
 
if test -n "$ac_prev"; then
814
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
815
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
816
 
   { (exit 1); exit 1; }; }
817
 
fi
818
 
 
819
 
# Be sure to have absolute paths.
820
 
for ac_var in exec_prefix prefix
821
 
do
822
 
  eval ac_val=$`echo $ac_var`
823
 
  case $ac_val in
824
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
825
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826
 
   { (exit 1); exit 1; }; };;
827
 
  esac
828
 
done
829
 
 
830
 
# Be sure to have absolute paths.
831
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
832
 
              localstatedir libdir includedir oldincludedir infodir mandir
833
 
do
834
 
  eval ac_val=$`echo $ac_var`
835
 
  case $ac_val in
836
 
    [\\/$]* | ?:[\\/]* ) ;;
837
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
838
 
   { (exit 1); exit 1; }; };;
839
 
  esac
840
 
done
841
 
 
842
 
# There might be people who depend on the old broken behavior: `$host'
843
 
# used to hold the argument of --host etc.
844
 
# FIXME: To remove some day.
845
 
build=$build_alias
846
 
host=$host_alias
847
 
target=$target_alias
848
 
 
849
 
# FIXME: To remove some day.
850
 
if test "x$host_alias" != x; then
851
 
  if test "x$build_alias" = x; then
852
 
    cross_compiling=maybe
853
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
854
 
    If a cross compiler is detected then cross compile mode will be used." >&2
855
 
  elif test "x$build_alias" != "x$host_alias"; then
856
 
    cross_compiling=yes
857
 
  fi
858
 
fi
859
 
 
860
 
ac_tool_prefix=
861
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
862
 
 
863
 
test "$silent" = yes && exec 6>/dev/null
864
 
 
865
 
 
866
 
# Find the source files, if location was not specified.
867
 
if test -z "$srcdir"; then
868
 
  ac_srcdir_defaulted=yes
869
 
  # Try the directory containing this script, then its parent.
870
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
871
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
872
 
         X"$0" : 'X\(//\)[^/]' \| \
873
 
         X"$0" : 'X\(//\)$' \| \
874
 
         X"$0" : 'X\(/\)' \| \
875
 
         .     : '\(.\)' 2>/dev/null ||
876
 
echo X"$0" |
877
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
878
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
879
 
          /^X\(\/\/\)$/{ s//\1/; q; }
880
 
          /^X\(\/\).*/{ s//\1/; q; }
881
 
          s/.*/./; q'`
882
 
  srcdir=$ac_confdir
883
 
  if test ! -r $srcdir/$ac_unique_file; then
884
 
    srcdir=..
885
 
  fi
886
 
else
887
 
  ac_srcdir_defaulted=no
888
 
fi
889
 
if test ! -r $srcdir/$ac_unique_file; then
890
 
  if test "$ac_srcdir_defaulted" = yes; then
891
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
892
 
   { (exit 1); exit 1; }; }
893
 
  else
894
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
895
 
   { (exit 1); exit 1; }; }
896
 
  fi
897
 
fi
898
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
899
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
900
 
   { (exit 1); exit 1; }; }
901
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
902
 
ac_env_build_alias_set=${build_alias+set}
903
 
ac_env_build_alias_value=$build_alias
904
 
ac_cv_env_build_alias_set=${build_alias+set}
905
 
ac_cv_env_build_alias_value=$build_alias
906
 
ac_env_host_alias_set=${host_alias+set}
907
 
ac_env_host_alias_value=$host_alias
908
 
ac_cv_env_host_alias_set=${host_alias+set}
909
 
ac_cv_env_host_alias_value=$host_alias
910
 
ac_env_target_alias_set=${target_alias+set}
911
 
ac_env_target_alias_value=$target_alias
912
 
ac_cv_env_target_alias_set=${target_alias+set}
913
 
ac_cv_env_target_alias_value=$target_alias
914
 
ac_env_CC_set=${CC+set}
915
 
ac_env_CC_value=$CC
916
 
ac_cv_env_CC_set=${CC+set}
917
 
ac_cv_env_CC_value=$CC
918
 
ac_env_CFLAGS_set=${CFLAGS+set}
919
 
ac_env_CFLAGS_value=$CFLAGS
920
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
921
 
ac_cv_env_CFLAGS_value=$CFLAGS
922
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
923
 
ac_env_LDFLAGS_value=$LDFLAGS
924
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
925
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
926
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
927
 
ac_env_CPPFLAGS_value=$CPPFLAGS
928
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
929
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
930
 
ac_env_CXX_set=${CXX+set}
931
 
ac_env_CXX_value=$CXX
932
 
ac_cv_env_CXX_set=${CXX+set}
933
 
ac_cv_env_CXX_value=$CXX
934
 
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935
 
ac_env_CXXFLAGS_value=$CXXFLAGS
936
 
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937
 
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938
 
ac_env_CPP_set=${CPP+set}
939
 
ac_env_CPP_value=$CPP
940
 
ac_cv_env_CPP_set=${CPP+set}
941
 
ac_cv_env_CPP_value=$CPP
942
 
 
943
 
#
944
 
# Report the --help message.
945
 
#
946
 
if test "$ac_init_help" = "long"; then
947
 
  # Omit some internal or obsolete options to make the list less imposing.
948
 
  # This message is too long to be a string in the A/UX 3.1 sh.
949
 
  cat <<_ACEOF
950
 
\`configure' configures Berkeley DB 4.1.25 to adapt to many kinds of systems.
951
 
 
952
 
Usage: $0 [OPTION]... [VAR=VALUE]...
953
 
 
954
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
955
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
956
 
 
957
 
Defaults for the options are specified in brackets.
958
 
 
959
 
Configuration:
960
 
  -h, --help              display this help and exit
961
 
      --help=short        display options specific to this package
962
 
      --help=recursive    display the short help of all the included packages
963
 
  -V, --version           display version information and exit
964
 
  -q, --quiet, --silent   do not print \`checking...' messages
965
 
      --cache-file=FILE   cache test results in FILE [disabled]
966
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
967
 
  -n, --no-create         do not create output files
968
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
969
 
 
970
 
_ACEOF
971
 
 
972
 
  cat <<_ACEOF
973
 
Installation directories:
974
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
975
 
                          [$ac_default_prefix]
976
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
977
 
                          [PREFIX]
978
 
 
979
 
By default, \`make install' will install all the files in
980
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
981
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
982
 
for instance \`--prefix=\$HOME'.
983
 
 
984
 
For better control, use the options below.
985
 
 
986
 
Fine tuning of the installation directories:
987
 
  --bindir=DIR           user executables [EPREFIX/bin]
988
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
989
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
990
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
991
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
992
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
993
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
994
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
995
 
  --includedir=DIR       C header files [PREFIX/include]
996
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
997
 
  --infodir=DIR          info documentation [PREFIX/info]
998
 
  --mandir=DIR           man documentation [PREFIX/man]
999
 
_ACEOF
1000
 
 
1001
 
  cat <<\_ACEOF
1002
 
 
1003
 
Program names:
1004
 
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1005
 
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1006
 
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1007
 
 
1008
 
System types:
1009
 
  --build=BUILD     configure for building on BUILD [guessed]
1010
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1011
 
_ACEOF
1012
 
fi
1013
 
 
1014
 
if test -n "$ac_init_help"; then
1015
 
  case $ac_init_help in
1016
 
     short | recursive ) echo "Configuration of Berkeley DB 4.1.25:";;
1017
 
   esac
1018
 
  cat <<\_ACEOF
1019
 
 
1020
 
Optional Features:
1021
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1022
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1023
 
  --disable-bigfile       Obsolete; use --disable-largefile instead.
1024
 
  --enable-compat185      Build DB 1.85 compatibility API.
1025
 
  --enable-cxx            Build C++ API.
1026
 
  --enable-debug          Build a debugging version.
1027
 
  --enable-debug_rop      Build a version that logs read operations.
1028
 
  --enable-debug_wop      Build a version that logs write operations.
1029
 
  --enable-diagnostic     Build a version with run-time diagnostics.
1030
 
  --enable-dump185        Build db_dump185(1) to dump 1.85 databases.
1031
 
  --enable-java           Build Java API.
1032
 
  --enable-pthreadsmutexes
1033
 
                          Use POSIX pthreads mutexes.
1034
 
  --enable-posixmutexes   Force use of POSIX standard mutexes.
1035
 
  --enable-rpc            Build RPC client/server.
1036
 
  --enable-tcl            Build Tcl API.
1037
 
  --enable-test           Configure to run the test suite.
1038
 
  --enable-uimutexes      Force use of Unix International mutexes.
1039
 
  --enable-umrw           Mask harmless unitialized memory read/writes.
1040
 
  --enable-shared=PKGS  build shared libraries default=yes
1041
 
  --enable-static=PKGS  build static libraries default=yes
1042
 
  --enable-fast-install=PKGS  optimize for fast installation default=yes
1043
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
1044
 
  --disable-largefile     omit support for large files
1045
 
 
1046
 
Optional Packages:
1047
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1048
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1049
 
  --with-embedix=DIR      Embedix install directory location.
1050
 
  --with-mutex=MUTEX      Selection of non-standard mutexes.
1051
 
  --with-rpm=DIR          Directory location of RPM archive.
1052
 
  --with-tcl=DIR          Directory location of tclConfig.sh.
1053
 
  --with-uniquename=NAME  Build a uniquely named library.
1054
 
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1055
 
  --with-pic              try to use only PIC/non-PIC objects default=use both
1056
 
 
1057
 
Some influential environment variables:
1058
 
  CC          C compiler command
1059
 
  CFLAGS      C compiler flags
1060
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1061
 
              nonstandard directory <lib dir>
1062
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1063
 
              headers in a nonstandard directory <include dir>
1064
 
  CXX         C++ compiler command
1065
 
  CXXFLAGS    C++ compiler flags
1066
 
  CPP         C preprocessor
1067
 
 
1068
 
Use these variables to override the choices made by `configure' or to help
1069
 
it to find libraries and programs with nonstandard names/locations.
1070
 
 
1071
 
Report bugs to <support@sleepycat.com>.
1072
 
_ACEOF
1073
 
fi
1074
 
 
1075
 
if test "$ac_init_help" = "recursive"; then
1076
 
  # If there are subdirs, report their specific --help.
1077
 
  ac_popdir=`pwd`
1078
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079
 
    test -d $ac_dir || continue
1080
 
    ac_builddir=.
1081
 
 
1082
 
if test "$ac_dir" != .; then
1083
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084
 
  # A "../" for each directory in $ac_dir_suffix.
1085
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086
 
else
1087
 
  ac_dir_suffix= ac_top_builddir=
1088
 
fi
1089
 
 
1090
 
case $srcdir in
1091
 
  .)  # No --srcdir option.  We are building in place.
1092
 
    ac_srcdir=.
1093
 
    if test -z "$ac_top_builddir"; then
1094
 
       ac_top_srcdir=.
1095
 
    else
1096
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097
 
    fi ;;
1098
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
1099
 
    ac_srcdir=$srcdir$ac_dir_suffix;
1100
 
    ac_top_srcdir=$srcdir ;;
1101
 
  *) # Relative path.
1102
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104
 
esac
1105
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106
 
# absolute.
1107
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
 
 
1112
 
    cd $ac_dir
1113
 
    # Check for guested configure; otherwise get Cygnus style configure.
1114
 
    if test -f $ac_srcdir/configure.gnu; then
1115
 
      echo
1116
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1117
 
    elif test -f $ac_srcdir/configure; then
1118
 
      echo
1119
 
      $SHELL $ac_srcdir/configure  --help=recursive
1120
 
    elif test -f $ac_srcdir/configure.ac ||
1121
 
           test -f $ac_srcdir/configure.in; then
1122
 
      echo
1123
 
      $ac_configure --help
1124
 
    else
1125
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126
 
    fi
1127
 
    cd $ac_popdir
1128
 
  done
1129
 
fi
1130
 
 
1131
 
test -n "$ac_init_help" && exit 0
1132
 
if $ac_init_version; then
1133
 
  cat <<\_ACEOF
1134
 
Berkeley DB configure 4.1.25
1135
 
generated by GNU Autoconf 2.57
1136
 
 
1137
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138
 
Free Software Foundation, Inc.
1139
 
This configure script is free software; the Free Software Foundation
1140
 
gives unlimited permission to copy, distribute and modify it.
1141
 
_ACEOF
1142
 
  exit 0
1143
 
fi
1144
 
exec 5>config.log
1145
 
cat >&5 <<_ACEOF
1146
 
This file contains any messages produced by compilers while
1147
 
running configure, to aid debugging if configure makes a mistake.
1148
 
 
1149
 
It was created by Berkeley DB $as_me 4.1.25, which was
1150
 
generated by GNU Autoconf 2.57.  Invocation command line was
1151
 
 
1152
 
  $ $0 $@
1153
 
 
1154
 
_ACEOF
1155
 
{
1156
 
cat <<_ASUNAME
1157
 
## --------- ##
1158
 
## Platform. ##
1159
 
## --------- ##
1160
 
 
1161
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
 
 
1167
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1169
 
 
1170
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1171
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1172
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1174
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1175
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1176
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1177
 
 
1178
 
_ASUNAME
1179
 
 
1180
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181
 
for as_dir in $PATH
1182
 
do
1183
 
  IFS=$as_save_IFS
1184
 
  test -z "$as_dir" && as_dir=.
1185
 
  echo "PATH: $as_dir"
1186
 
done
1187
 
 
1188
 
} >&5
1189
 
 
1190
 
cat >&5 <<_ACEOF
1191
 
 
1192
 
 
1193
 
## ----------- ##
1194
 
## Core tests. ##
1195
 
## ----------- ##
1196
 
 
1197
 
_ACEOF
1198
 
 
1199
 
 
1200
 
# Keep a trace of the command line.
1201
 
# Strip out --no-create and --no-recursion so they do not pile up.
1202
 
# Strip out --silent because we don't want to record it for future runs.
1203
 
# Also quote any args containing shell meta-characters.
1204
 
# Make two passes to allow for proper duplicate-argument suppression.
1205
 
ac_configure_args=
1206
 
ac_configure_args0=
1207
 
ac_configure_args1=
1208
 
ac_sep=
1209
 
ac_must_keep_next=false
1210
 
for ac_pass in 1 2
1211
 
do
1212
 
  for ac_arg
1213
 
  do
1214
 
    case $ac_arg in
1215
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217
 
    | -silent | --silent | --silen | --sile | --sil)
1218
 
      continue ;;
1219
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221
 
    esac
1222
 
    case $ac_pass in
1223
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224
 
    2)
1225
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226
 
      if test $ac_must_keep_next = true; then
1227
 
        ac_must_keep_next=false # Got value, back to normal.
1228
 
      else
1229
 
        case $ac_arg in
1230
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1231
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1234
 
            case "$ac_configure_args0 " in
1235
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236
 
            esac
1237
 
            ;;
1238
 
          -* ) ac_must_keep_next=true ;;
1239
 
        esac
1240
 
      fi
1241
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242
 
      # Get rid of the leading space.
1243
 
      ac_sep=" "
1244
 
      ;;
1245
 
    esac
1246
 
  done
1247
 
done
1248
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
 
 
1251
 
# When interrupted or exit'd, cleanup temporary files, and complete
1252
 
# config.log.  We remove comments because anyway the quotes in there
1253
 
# would cause problems or look ugly.
1254
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1255
 
# such as our DU 5.0 friend, will then `close' the trap.
1256
 
trap 'exit_status=$?
1257
 
  # Save into config.log some information that might help in debugging.
1258
 
  {
1259
 
    echo
1260
 
 
1261
 
    cat <<\_ASBOX
1262
 
## ---------------- ##
1263
 
## Cache variables. ##
1264
 
## ---------------- ##
1265
 
_ASBOX
1266
 
    echo
1267
 
    # The following way of writing the cache mishandles newlines in values,
1268
 
{
1269
 
  (set) 2>&1 |
1270
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271
 
    *ac_space=\ *)
1272
 
      sed -n \
1273
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275
 
      ;;
1276
 
    *)
1277
 
      sed -n \
1278
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279
 
      ;;
1280
 
    esac;
1281
 
}
1282
 
    echo
1283
 
 
1284
 
    cat <<\_ASBOX
1285
 
## ----------------- ##
1286
 
## Output variables. ##
1287
 
## ----------------- ##
1288
 
_ASBOX
1289
 
    echo
1290
 
    for ac_var in $ac_subst_vars
1291
 
    do
1292
 
      eval ac_val=$`echo $ac_var`
1293
 
      echo "$ac_var='"'"'$ac_val'"'"'"
1294
 
    done | sort
1295
 
    echo
1296
 
 
1297
 
    if test -n "$ac_subst_files"; then
1298
 
      cat <<\_ASBOX
1299
 
## ------------- ##
1300
 
## Output files. ##
1301
 
## ------------- ##
1302
 
_ASBOX
1303
 
      echo
1304
 
      for ac_var in $ac_subst_files
1305
 
      do
1306
 
        eval ac_val=$`echo $ac_var`
1307
 
        echo "$ac_var='"'"'$ac_val'"'"'"
1308
 
      done | sort
1309
 
      echo
1310
 
    fi
1311
 
 
1312
 
    if test -s confdefs.h; then
1313
 
      cat <<\_ASBOX
1314
 
## ----------- ##
1315
 
## confdefs.h. ##
1316
 
## ----------- ##
1317
 
_ASBOX
1318
 
      echo
1319
 
      sed "/^$/d" confdefs.h | sort
1320
 
      echo
1321
 
    fi
1322
 
    test "$ac_signal" != 0 &&
1323
 
      echo "$as_me: caught signal $ac_signal"
1324
 
    echo "$as_me: exit $exit_status"
1325
 
  } >&5
1326
 
  rm -f core core.* *.core &&
1327
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328
 
    exit $exit_status
1329
 
     ' 0
1330
 
for ac_signal in 1 2 13 15; do
1331
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332
 
done
1333
 
ac_signal=0
1334
 
 
1335
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336
 
rm -rf conftest* confdefs.h
1337
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338
 
echo >confdefs.h
1339
 
 
1340
 
# Predefined preprocessor variables.
1341
 
 
1342
 
cat >>confdefs.h <<_ACEOF
1343
 
#define PACKAGE_NAME "$PACKAGE_NAME"
1344
 
_ACEOF
1345
 
 
1346
 
 
1347
 
cat >>confdefs.h <<_ACEOF
1348
 
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349
 
_ACEOF
1350
 
 
1351
 
 
1352
 
cat >>confdefs.h <<_ACEOF
1353
 
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354
 
_ACEOF
1355
 
 
1356
 
 
1357
 
cat >>confdefs.h <<_ACEOF
1358
 
#define PACKAGE_STRING "$PACKAGE_STRING"
1359
 
_ACEOF
1360
 
 
1361
 
 
1362
 
cat >>confdefs.h <<_ACEOF
1363
 
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364
 
_ACEOF
1365
 
 
1366
 
 
1367
 
# Let the site file select an alternate cache file if it wants to.
1368
 
# Prefer explicitly selected file to automatically selected ones.
1369
 
if test -z "$CONFIG_SITE"; then
1370
 
  if test "x$prefix" != xNONE; then
1371
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372
 
  else
1373
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374
 
  fi
1375
 
fi
1376
 
for ac_site_file in $CONFIG_SITE; do
1377
 
  if test -r "$ac_site_file"; then
1378
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379
 
echo "$as_me: loading site script $ac_site_file" >&6;}
1380
 
    sed 's/^/| /' "$ac_site_file" >&5
1381
 
    . "$ac_site_file"
1382
 
  fi
1383
 
done
1384
 
 
1385
 
if test -r "$cache_file"; then
1386
 
  # Some versions of bash will fail to source /dev/null (special
1387
 
  # files actually), so we avoid doing that.
1388
 
  if test -f "$cache_file"; then
1389
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390
 
echo "$as_me: loading cache $cache_file" >&6;}
1391
 
    case $cache_file in
1392
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1393
 
      *)                      . ./$cache_file;;
1394
 
    esac
1395
 
  fi
1396
 
else
1397
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398
 
echo "$as_me: creating cache $cache_file" >&6;}
1399
 
  >$cache_file
1400
 
fi
1401
 
 
1402
 
# Check that the precious variables saved in the cache have kept the same
1403
 
# value.
1404
 
ac_cache_corrupted=false
1405
 
for ac_var in `(set) 2>&1 |
1406
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408
 
  eval ac_new_set=\$ac_env_${ac_var}_set
1409
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
1411
 
  case $ac_old_set,$ac_new_set in
1412
 
    set,)
1413
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415
 
      ac_cache_corrupted=: ;;
1416
 
    ,set)
1417
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419
 
      ac_cache_corrupted=: ;;
1420
 
    ,);;
1421
 
    *)
1422
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
1423
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1426
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1427
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1428
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1429
 
        ac_cache_corrupted=:
1430
 
      fi;;
1431
 
  esac
1432
 
  # Pass precious variables to config.status.
1433
 
  if test "$ac_new_set" = set; then
1434
 
    case $ac_new_val in
1435
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437
 
    *) ac_arg=$ac_var=$ac_new_val ;;
1438
 
    esac
1439
 
    case " $ac_configure_args " in
1440
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1441
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442
 
    esac
1443
 
  fi
1444
 
done
1445
 
if $ac_cache_corrupted; then
1446
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450
 
   { (exit 1); exit 1; }; }
1451
 
fi
1452
 
 
1453
 
ac_ext=c
1454
 
ac_cpp='$CPP $CPPFLAGS'
1455
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
 
 
1459
 
 
1460
 
 
1461
 
 
1462
 
 
1463
 
 
1464
 
 
1465
 
 
1466
 
 
1467
 
 
1468
 
 
1469
 
 
1470
 
 
1471
 
 
1472
 
 
1473
 
 
1474
 
 
1475
 
 
1476
 
 
1477
 
 
1478
 
 
1479
 
 
1480
 
 
1481
 
 
1482
 
 
1483
 
 
1484
 
 
1485
 
 
1486
 
          ac_config_headers="$ac_config_headers db_config.h:config.hin"
1487
 
 
1488
 
 
1489
 
# Configure setup.
1490
 
ac_aux_dir=
1491
 
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1492
 
  if test -f $ac_dir/install-sh; then
1493
 
    ac_aux_dir=$ac_dir
1494
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
1495
 
    break
1496
 
  elif test -f $ac_dir/install.sh; then
1497
 
    ac_aux_dir=$ac_dir
1498
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
1499
 
    break
1500
 
  elif test -f $ac_dir/shtool; then
1501
 
    ac_aux_dir=$ac_dir
1502
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
1503
 
    break
1504
 
  fi
1505
 
done
1506
 
if test -z "$ac_aux_dir"; then
1507
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1508
 
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1509
 
   { (exit 1); exit 1; }; }
1510
 
fi
1511
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1512
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1513
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1514
 
 
1515
 
# Make sure we can run config.sub.
1516
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
1517
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1518
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1519
 
   { (exit 1); exit 1; }; }
1520
 
 
1521
 
echo "$as_me:$LINENO: checking build system type" >&5
1522
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1523
 
if test "${ac_cv_build+set}" = set; then
1524
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1525
 
else
1526
 
  ac_cv_build_alias=$build_alias
1527
 
test -z "$ac_cv_build_alias" &&
1528
 
  ac_cv_build_alias=`$ac_config_guess`
1529
 
test -z "$ac_cv_build_alias" &&
1530
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1531
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1532
 
   { (exit 1); exit 1; }; }
1533
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1534
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1535
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1536
 
   { (exit 1); exit 1; }; }
1537
 
 
1538
 
fi
1539
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1540
 
echo "${ECHO_T}$ac_cv_build" >&6
1541
 
build=$ac_cv_build
1542
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1545
 
 
1546
 
 
1547
 
echo "$as_me:$LINENO: checking host system type" >&5
1548
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1549
 
if test "${ac_cv_host+set}" = set; then
1550
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1551
 
else
1552
 
  ac_cv_host_alias=$host_alias
1553
 
test -z "$ac_cv_host_alias" &&
1554
 
  ac_cv_host_alias=$ac_cv_build_alias
1555
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1556
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1557
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1558
 
   { (exit 1); exit 1; }; }
1559
 
 
1560
 
fi
1561
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1562
 
echo "${ECHO_T}$ac_cv_host" >&6
1563
 
host=$ac_cv_host
1564
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567
 
 
1568
 
 
1569
 
test "$program_prefix" != NONE &&
1570
 
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1571
 
# Use a double $ so make ignores it.
1572
 
test "$program_suffix" != NONE &&
1573
 
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1574
 
# Double any \ or $.  echo might interpret backslashes.
1575
 
# By default was `s,x,x', remove it if useless.
1576
 
cat <<\_ACEOF >conftest.sed
1577
 
s/[\\$]/&&/g;s/;s,x,x,$//
1578
 
_ACEOF
1579
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1580
 
rm conftest.sed
1581
 
 
1582
 
 
1583
 
# We cannot build in the top-level directory.
1584
 
echo "$as_me:$LINENO: checking if building in the top-level directory" >&5
1585
 
echo $ECHO_N "checking if building in the top-level directory... $ECHO_C" >&6
1586
 
 test -d db_archive  && { { echo "$as_me:$LINENO: error:
1587
 
Berkeley DB cannot be built in the top-level distribution directory." >&5
1588
 
echo "$as_me: error:
1589
 
Berkeley DB cannot be built in the top-level distribution directory." >&2;}
1590
 
   { (exit 1); exit 1; }; }
1591
 
echo "$as_me:$LINENO: result: no" >&5
1592
 
echo "${ECHO_T}no" >&6
1593
 
 
1594
 
# Substitution variables.
1595
 
 
1596
 
 
1597
 
 
1598
 
 
1599
 
 
1600
 
 
1601
 
 
1602
 
 
1603
 
 
1604
 
 
1605
 
 
1606
 
 
1607
 
 
1608
 
 
1609
 
 
1610
 
 
1611
 
 
1612
 
 
1613
 
 
1614
 
 
1615
 
 
1616
 
 
1617
 
 
1618
 
 
1619
 
 
1620
 
 
1621
 
 
1622
 
 
1623
 
 
1624
 
 
1625
 
 
1626
 
 
1627
 
 
1628
 
 
1629
 
 
1630
 
 
1631
 
 
1632
 
 
1633
 
 
1634
 
 
1635
 
 
1636
 
 
1637
 
 
1638
 
 
1639
 
 
1640
 
# RPM needs the current absolute path.
1641
 
# RPM needs the list of original arguments, but we don't include the RPM
1642
 
# option itself.
1643
 
CONFIGURATION_PATH=${PWD-`pwd`}
1644
 
CONFIGURATION_ARGS=`echo "$*" |
1645
 
    sed -e 's/--with-embedix[^ ]*//' -e 's/--with-rpm[^ ]*//'`
1646
 
 
1647
 
# Set the version.
1648
 
 
1649
 
 
1650
 
DB_VERSION_MAJOR=4
1651
 
 
1652
 
DB_VERSION_MINOR=1
1653
 
 
1654
 
DB_VERSION_PATCH=25
1655
 
 
1656
 
DB_VERSION_UNIQUE_NAME=_4001
1657
 
 
1658
 
DB_VERSION_STRING="\"Sleepycat Software: Berkeley DB 4.1.25: (October 11, 2004)\""
1659
 
 
1660
 
 
1661
 
# Set the default installation location.
1662
 
 
1663
 
 
1664
 
# Process all options before using them.
1665
 
 
1666
 
 
1667
 
# --enable-bigfile was the configuration option that Berkeley DB used before
1668
 
# autoconf 2.50 was released (which had --enable-largefile integrated in).
1669
 
# Check whether --enable-bigfile or --disable-bigfile was given.
1670
 
if test "${enable_bigfile+set}" = set; then
1671
 
  enableval="$enable_bigfile"
1672
 
  { { echo "$as_me:$LINENO: error: --enable-bigfile no longer supported, use --enable-largefile" >&5
1673
 
echo "$as_me: error: --enable-bigfile no longer supported, use --enable-largefile" >&2;}
1674
 
   { (exit 1); exit 1; }; }
1675
 
fi;
1676
 
 
1677
 
echo "$as_me:$LINENO: checking if --enable-compat185 option specified" >&5
1678
 
echo $ECHO_N "checking if --enable-compat185 option specified... $ECHO_C" >&6
1679
 
# Check whether --enable-compat185 or --disable-compat185 was given.
1680
 
if test "${enable_compat185+set}" = set; then
1681
 
  enableval="$enable_compat185"
1682
 
  db_cv_compat185="$enable_compat185"
1683
 
else
1684
 
  db_cv_compat185="no"
1685
 
fi;
1686
 
echo "$as_me:$LINENO: result: $db_cv_compat185" >&5
1687
 
echo "${ECHO_T}$db_cv_compat185" >&6
1688
 
 
1689
 
echo "$as_me:$LINENO: checking if --enable-cxx option specified" >&5
1690
 
echo $ECHO_N "checking if --enable-cxx option specified... $ECHO_C" >&6
1691
 
# Check whether --enable-cxx or --disable-cxx was given.
1692
 
if test "${enable_cxx+set}" = set; then
1693
 
  enableval="$enable_cxx"
1694
 
  db_cv_cxx="$enable_cxx"
1695
 
else
1696
 
  db_cv_cxx="no"
1697
 
fi;
1698
 
echo "$as_me:$LINENO: result: $db_cv_cxx" >&5
1699
 
echo "${ECHO_T}$db_cv_cxx" >&6
1700
 
 
1701
 
echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1702
 
echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1703
 
# Check whether --enable-debug or --disable-debug was given.
1704
 
if test "${enable_debug+set}" = set; then
1705
 
  enableval="$enable_debug"
1706
 
  db_cv_debug="$enable_debug"
1707
 
else
1708
 
  db_cv_debug="no"
1709
 
fi;
1710
 
echo "$as_me:$LINENO: result: $db_cv_debug" >&5
1711
 
echo "${ECHO_T}$db_cv_debug" >&6
1712
 
 
1713
 
echo "$as_me:$LINENO: checking if --enable-debug_rop option specified" >&5
1714
 
echo $ECHO_N "checking if --enable-debug_rop option specified... $ECHO_C" >&6
1715
 
# Check whether --enable-debug_rop or --disable-debug_rop was given.
1716
 
if test "${enable_debug_rop+set}" = set; then
1717
 
  enableval="$enable_debug_rop"
1718
 
  db_cv_debug_rop="$enable_debug_rop"
1719
 
else
1720
 
  db_cv_debug_rop="no"
1721
 
fi;
1722
 
echo "$as_me:$LINENO: result: $db_cv_debug_rop" >&5
1723
 
echo "${ECHO_T}$db_cv_debug_rop" >&6
1724
 
 
1725
 
echo "$as_me:$LINENO: checking if --enable-debug_wop option specified" >&5
1726
 
echo $ECHO_N "checking if --enable-debug_wop option specified... $ECHO_C" >&6
1727
 
# Check whether --enable-debug_wop or --disable-debug_wop was given.
1728
 
if test "${enable_debug_wop+set}" = set; then
1729
 
  enableval="$enable_debug_wop"
1730
 
  db_cv_debug_wop="$enable_debug_wop"
1731
 
else
1732
 
  db_cv_debug_wop="no"
1733
 
fi;
1734
 
echo "$as_me:$LINENO: result: $db_cv_debug_wop" >&5
1735
 
echo "${ECHO_T}$db_cv_debug_wop" >&6
1736
 
 
1737
 
echo "$as_me:$LINENO: checking if --enable-diagnostic option specified" >&5
1738
 
echo $ECHO_N "checking if --enable-diagnostic option specified... $ECHO_C" >&6
1739
 
# Check whether --enable-diagnostic or --disable-diagnostic was given.
1740
 
if test "${enable_diagnostic+set}" = set; then
1741
 
  enableval="$enable_diagnostic"
1742
 
  db_cv_diagnostic="$enable_diagnostic"
1743
 
else
1744
 
  db_cv_diagnostic="no"
1745
 
fi;
1746
 
echo "$as_me:$LINENO: result: $db_cv_diagnostic" >&5
1747
 
echo "${ECHO_T}$db_cv_diagnostic" >&6
1748
 
 
1749
 
echo "$as_me:$LINENO: checking if --enable-dump185 option specified" >&5
1750
 
echo $ECHO_N "checking if --enable-dump185 option specified... $ECHO_C" >&6
1751
 
# Check whether --enable-dump185 or --disable-dump185 was given.
1752
 
if test "${enable_dump185+set}" = set; then
1753
 
  enableval="$enable_dump185"
1754
 
  db_cv_dump185="$enable_dump185"
1755
 
else
1756
 
  db_cv_dump185="no"
1757
 
fi;
1758
 
echo "$as_me:$LINENO: result: $db_cv_dump185" >&5
1759
 
echo "${ECHO_T}$db_cv_dump185" >&6
1760
 
 
1761
 
echo "$as_me:$LINENO: checking if --enable-java option specified" >&5
1762
 
echo $ECHO_N "checking if --enable-java option specified... $ECHO_C" >&6
1763
 
# Check whether --enable-java or --disable-java was given.
1764
 
if test "${enable_java+set}" = set; then
1765
 
  enableval="$enable_java"
1766
 
  db_cv_java="$enable_java"
1767
 
else
1768
 
  db_cv_java="no"
1769
 
fi;
1770
 
echo "$as_me:$LINENO: result: $db_cv_java" >&5
1771
 
echo "${ECHO_T}$db_cv_java" >&6
1772
 
 
1773
 
echo "$as_me:$LINENO: checking if --enable-pthreadsmutexes option specified" >&5
1774
 
echo $ECHO_N "checking if --enable-pthreadsmutexes option specified... $ECHO_C" >&6
1775
 
# Check whether --enable-pthreadsmutexes or --disable-pthreadsmutexes was given.
1776
 
if test "${enable_pthreadsmutexes+set}" = set; then
1777
 
  enableval="$enable_pthreadsmutexes"
1778
 
 
1779
 
else
1780
 
  enableval="no"
1781
 
fi;
1782
 
db_cv_pthreadsmutexes="$enableval"
1783
 
case "$enableval" in
1784
 
 no) echo "$as_me:$LINENO: result: yes" >&5
1785
 
echo "${ECHO_T}yes" >&6;;
1786
 
yes) echo "$as_me:$LINENO: result: no" >&5
1787
 
echo "${ECHO_T}no" >&6;;
1788
 
esac
1789
 
 
1790
 
echo "$as_me:$LINENO: checking if --enable-posixmutexes option specified" >&5
1791
 
echo $ECHO_N "checking if --enable-posixmutexes option specified... $ECHO_C" >&6
1792
 
# Check whether --enable-posixmutexes or --disable-posixmutexes was given.
1793
 
if test "${enable_posixmutexes+set}" = set; then
1794
 
  enableval="$enable_posixmutexes"
1795
 
  db_cv_posixmutexes="$enable_posixmutexes"
1796
 
else
1797
 
  db_cv_posixmutexes="no"
1798
 
fi;
1799
 
echo "$as_me:$LINENO: result: $db_cv_posixmutexes" >&5
1800
 
echo "${ECHO_T}$db_cv_posixmutexes" >&6
1801
 
 
1802
 
echo "$as_me:$LINENO: checking if --enable-rpc option specified" >&5
1803
 
echo $ECHO_N "checking if --enable-rpc option specified... $ECHO_C" >&6
1804
 
# Check whether --enable-rpc or --disable-rpc was given.
1805
 
if test "${enable_rpc+set}" = set; then
1806
 
  enableval="$enable_rpc"
1807
 
  db_cv_rpc="$enable_rpc"
1808
 
else
1809
 
  db_cv_rpc="no"
1810
 
fi;
1811
 
echo "$as_me:$LINENO: result: $db_cv_rpc" >&5
1812
 
echo "${ECHO_T}$db_cv_rpc" >&6
1813
 
 
1814
 
echo "$as_me:$LINENO: checking if --enable-tcl option specified" >&5
1815
 
echo $ECHO_N "checking if --enable-tcl option specified... $ECHO_C" >&6
1816
 
# Check whether --enable-tcl or --disable-tcl was given.
1817
 
if test "${enable_tcl+set}" = set; then
1818
 
  enableval="$enable_tcl"
1819
 
  db_cv_tcl="$enable_tcl"
1820
 
else
1821
 
  db_cv_tcl="no"
1822
 
fi;
1823
 
echo "$as_me:$LINENO: result: $db_cv_tcl" >&5
1824
 
echo "${ECHO_T}$db_cv_tcl" >&6
1825
 
 
1826
 
echo "$as_me:$LINENO: checking if --enable-test option specified" >&5
1827
 
echo $ECHO_N "checking if --enable-test option specified... $ECHO_C" >&6
1828
 
# Check whether --enable-test or --disable-test was given.
1829
 
if test "${enable_test+set}" = set; then
1830
 
  enableval="$enable_test"
1831
 
  db_cv_test="$enable_test"
1832
 
else
1833
 
  db_cv_test="no"
1834
 
fi;
1835
 
echo "$as_me:$LINENO: result: $db_cv_test" >&5
1836
 
echo "${ECHO_T}$db_cv_test" >&6
1837
 
 
1838
 
echo "$as_me:$LINENO: checking if --enable-uimutexes option specified" >&5
1839
 
echo $ECHO_N "checking if --enable-uimutexes option specified... $ECHO_C" >&6
1840
 
# Check whether --enable-uimutexes or --disable-uimutexes was given.
1841
 
if test "${enable_uimutexes+set}" = set; then
1842
 
  enableval="$enable_uimutexes"
1843
 
  db_cv_uimutexes="$enable_uimutexes"
1844
 
else
1845
 
  db_cv_uimutexes="no"
1846
 
fi;
1847
 
echo "$as_me:$LINENO: result: $db_cv_uimutexes" >&5
1848
 
echo "${ECHO_T}$db_cv_uimutexes" >&6
1849
 
 
1850
 
echo "$as_me:$LINENO: checking if --enable-umrw option specified" >&5
1851
 
echo $ECHO_N "checking if --enable-umrw option specified... $ECHO_C" >&6
1852
 
# Check whether --enable-umrw or --disable-umrw was given.
1853
 
if test "${enable_umrw+set}" = set; then
1854
 
  enableval="$enable_umrw"
1855
 
  db_cv_umrw="$enable_umrw"
1856
 
else
1857
 
  db_cv_umrw="no"
1858
 
fi;
1859
 
echo "$as_me:$LINENO: result: $db_cv_umrw" >&5
1860
 
echo "${ECHO_T}$db_cv_umrw" >&6
1861
 
 
1862
 
echo "$as_me:$LINENO: checking if --with-embedix=DIR option specified" >&5
1863
 
echo $ECHO_N "checking if --with-embedix=DIR option specified... $ECHO_C" >&6
1864
 
 
1865
 
# Check whether --with-embedix or --without-embedix was given.
1866
 
if test "${with_embedix+set}" = set; then
1867
 
  withval="$with_embedix"
1868
 
  with_embedix="$withval"
1869
 
else
1870
 
  with_embedix="no"
1871
 
fi;
1872
 
if test "$with_embedix" = "no"; then
1873
 
        db_cv_embedix="no"
1874
 
        echo "$as_me:$LINENO: result: $with_embedix" >&5
1875
 
echo "${ECHO_T}$with_embedix" >&6
1876
 
else
1877
 
        db_cv_embedix="yes"
1878
 
        if test "$with_embedix" = "yes"; then
1879
 
                db_cv_path_embedix_install="/opt/Embedix"
1880
 
        else
1881
 
                db_cv_path_embedix_install="$with_embedix"
1882
 
        fi
1883
 
        echo "$as_me:$LINENO: result: $db_cv_path_embedix_install" >&5
1884
 
echo "${ECHO_T}$db_cv_path_embedix_install" >&6
1885
 
fi
1886
 
 
1887
 
echo "$as_me:$LINENO: checking if --with-mutex=MUTEX option specified" >&5
1888
 
echo $ECHO_N "checking if --with-mutex=MUTEX option specified... $ECHO_C" >&6
1889
 
 
1890
 
# Check whether --with-mutex or --without-mutex was given.
1891
 
if test "${with_mutex+set}" = set; then
1892
 
  withval="$with_mutex"
1893
 
  with_mutex="$withval"
1894
 
else
1895
 
  with_mutex="no"
1896
 
fi;
1897
 
if test "$with_mutex" = "yes"; then
1898
 
        { { echo "$as_me:$LINENO: error: --with-mutex requires a mutex name argument" >&5
1899
 
echo "$as_me: error: --with-mutex requires a mutex name argument" >&2;}
1900
 
   { (exit 1); exit 1; }; }
1901
 
fi
1902
 
if test "$with_mutex" != "no"; then
1903
 
        db_cv_mutex="$with_mutex"
1904
 
fi
1905
 
echo "$as_me:$LINENO: result: $with_mutex" >&5
1906
 
echo "${ECHO_T}$with_mutex" >&6
1907
 
 
1908
 
echo "$as_me:$LINENO: checking if --with-rpm=DIR option specified" >&5
1909
 
echo $ECHO_N "checking if --with-rpm=DIR option specified... $ECHO_C" >&6
1910
 
 
1911
 
# Check whether --with-rpm or --without-rpm was given.
1912
 
if test "${with_rpm+set}" = set; then
1913
 
  withval="$with_rpm"
1914
 
  with_rpm="$withval"
1915
 
else
1916
 
  with_rpm="no"
1917
 
fi;
1918
 
if test "$with_rpm" = "no"; then
1919
 
        db_cv_rpm="no"
1920
 
else
1921
 
        if test "$with_rpm" = "yes"; then
1922
 
                { { echo "$as_me:$LINENO: error: --with-rpm requires a directory argument" >&5
1923
 
echo "$as_me: error: --with-rpm requires a directory argument" >&2;}
1924
 
   { (exit 1); exit 1; }; }
1925
 
        fi
1926
 
        db_cv_rpm="yes"
1927
 
        db_cv_path_rpm_archive="$with_rpm"
1928
 
fi
1929
 
echo "$as_me:$LINENO: result: $with_rpm" >&5
1930
 
echo "${ECHO_T}$with_rpm" >&6
1931
 
 
1932
 
echo "$as_me:$LINENO: checking if --with-tcl=DIR option specified" >&5
1933
 
echo $ECHO_N "checking if --with-tcl=DIR option specified... $ECHO_C" >&6
1934
 
 
1935
 
# Check whether --with-tcl or --without-tcl was given.
1936
 
if test "${with_tcl+set}" = set; then
1937
 
  withval="$with_tcl"
1938
 
  with_tclconfig="$withval"
1939
 
else
1940
 
  with_tclconfig="no"
1941
 
fi;
1942
 
echo "$as_me:$LINENO: result: $with_tclconfig" >&5
1943
 
echo "${ECHO_T}$with_tclconfig" >&6
1944
 
if test "$with_tclconfig" != "no"; then
1945
 
        db_cv_tcl="yes"
1946
 
fi
1947
 
 
1948
 
echo "$as_me:$LINENO: checking if --with-uniquename=NAME option specified" >&5
1949
 
echo $ECHO_N "checking if --with-uniquename=NAME option specified... $ECHO_C" >&6
1950
 
 
1951
 
# Check whether --with-uniquename or --without-uniquename was given.
1952
 
if test "${with_uniquename+set}" = set; then
1953
 
  withval="$with_uniquename"
1954
 
  with_uniquename="$withval"
1955
 
else
1956
 
  with_uniquename="_eds"
1957
 
fi;
1958
 
if test "$with_uniquename" = "no"; then
1959
 
        db_cv_uniquename="no"
1960
 
        echo "$as_me:$LINENO: result: $with_uniquename" >&5
1961
 
echo "${ECHO_T}$with_uniquename" >&6
1962
 
else
1963
 
        db_cv_uniquename="yes"
1964
 
        if test "$with_uniquename" != "yes"; then
1965
 
                DB_VERSION_UNIQUE_NAME="$with_uniquename"
1966
 
        fi
1967
 
        echo "$as_me:$LINENO: result: $DB_VERSION_UNIQUE_NAME" >&5
1968
 
echo "${ECHO_T}$DB_VERSION_UNIQUE_NAME" >&6
1969
 
fi
1970
 
 
1971
 
# Embedix requires RPM.
1972
 
if test "$db_cv_embedix" = "yes"; then
1973
 
        if test "$db_cv_rpm" = "no"; then
1974
 
                { { echo "$as_me:$LINENO: error: --with-embedix requires --with-rpm" >&5
1975
 
echo "$as_me: error: --with-embedix requires --with-rpm" >&2;}
1976
 
   { (exit 1); exit 1; }; }
1977
 
        fi
1978
 
fi
1979
 
 
1980
 
# Test requires Tcl
1981
 
if test "$db_cv_test" = "yes"; then
1982
 
        if test "$db_cv_tcl" = "no"; then
1983
 
                { { echo "$as_me:$LINENO: error: --enable-test requires --enable-tcl" >&5
1984
 
echo "$as_me: error: --enable-test requires --enable-tcl" >&2;}
1985
 
   { (exit 1); exit 1; }; }
1986
 
        fi
1987
 
fi
1988
 
 
1989
 
# Set some #defines based on configuration options.
1990
 
if test "$db_cv_diagnostic" = yes; then
1991
 
        cat >>confdefs.h <<\_ACEOF
1992
 
#define DIAGNOSTIC 1
1993
 
_ACEOF
1994
 
 
1995
 
 
1996
 
 
1997
 
fi
1998
 
if test "$db_cv_debug_rop" = yes; then
1999
 
        cat >>confdefs.h <<\_ACEOF
2000
 
#define DEBUG_ROP 1
2001
 
_ACEOF
2002
 
 
2003
 
 
2004
 
 
2005
 
fi
2006
 
if test "$db_cv_debug_wop" = yes; then
2007
 
        cat >>confdefs.h <<\_ACEOF
2008
 
#define DEBUG_WOP 1
2009
 
_ACEOF
2010
 
 
2011
 
 
2012
 
 
2013
 
fi
2014
 
if test "$db_cv_umrw" = yes; then
2015
 
        cat >>confdefs.h <<\_ACEOF
2016
 
#define UMRW 1
2017
 
_ACEOF
2018
 
 
2019
 
 
2020
 
 
2021
 
 
2022
 
fi
2023
 
if test "$db_cv_test" = yes; then
2024
 
        cat >>confdefs.h <<\_ACEOF
2025
 
#define CONFIG_TEST 1
2026
 
_ACEOF
2027
 
 
2028
 
 
2029
 
 
2030
 
fi
2031
 
 
2032
 
# Check for programs used in building and installation.
2033
 
 
2034
 
 
2035
 
if test -n "$ac_tool_prefix"; then
2036
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2037
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
2038
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2039
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040
 
if test "${ac_cv_prog_db_cv_path_ar+set}" = set; then
2041
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2042
 
else
2043
 
  if test -n "$db_cv_path_ar"; then
2044
 
  ac_cv_prog_db_cv_path_ar="$db_cv_path_ar" # Let the user override the test.
2045
 
else
2046
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047
 
for as_dir in $PATH
2048
 
do
2049
 
  IFS=$as_save_IFS
2050
 
  test -z "$as_dir" && as_dir=.
2051
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2052
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053
 
    ac_cv_prog_db_cv_path_ar="${ac_tool_prefix}ar"
2054
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055
 
    break 2
2056
 
  fi
2057
 
done
2058
 
done
2059
 
 
2060
 
fi
2061
 
fi
2062
 
db_cv_path_ar=$ac_cv_prog_db_cv_path_ar
2063
 
if test -n "$db_cv_path_ar"; then
2064
 
  echo "$as_me:$LINENO: result: $db_cv_path_ar" >&5
2065
 
echo "${ECHO_T}$db_cv_path_ar" >&6
2066
 
else
2067
 
  echo "$as_me:$LINENO: result: no" >&5
2068
 
echo "${ECHO_T}no" >&6
2069
 
fi
2070
 
 
2071
 
fi
2072
 
if test -z "$ac_cv_prog_db_cv_path_ar"; then
2073
 
  ac_ct_db_cv_path_ar=$db_cv_path_ar
2074
 
  # Extract the first word of "ar", so it can be a program name with args.
2075
 
set dummy ar; ac_word=$2
2076
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2077
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2078
 
if test "${ac_cv_prog_ac_ct_db_cv_path_ar+set}" = set; then
2079
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2080
 
else
2081
 
  if test -n "$ac_ct_db_cv_path_ar"; then
2082
 
  ac_cv_prog_ac_ct_db_cv_path_ar="$ac_ct_db_cv_path_ar" # Let the user override the test.
2083
 
else
2084
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085
 
for as_dir in $PATH
2086
 
do
2087
 
  IFS=$as_save_IFS
2088
 
  test -z "$as_dir" && as_dir=.
2089
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2090
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2091
 
    ac_cv_prog_ac_ct_db_cv_path_ar="ar"
2092
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093
 
    break 2
2094
 
  fi
2095
 
done
2096
 
done
2097
 
 
2098
 
  test -z "$ac_cv_prog_ac_ct_db_cv_path_ar" && ac_cv_prog_ac_ct_db_cv_path_ar="missing_ar"
2099
 
fi
2100
 
fi
2101
 
ac_ct_db_cv_path_ar=$ac_cv_prog_ac_ct_db_cv_path_ar
2102
 
if test -n "$ac_ct_db_cv_path_ar"; then
2103
 
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_ar" >&5
2104
 
echo "${ECHO_T}$ac_ct_db_cv_path_ar" >&6
2105
 
else
2106
 
  echo "$as_me:$LINENO: result: no" >&5
2107
 
echo "${ECHO_T}no" >&6
2108
 
fi
2109
 
 
2110
 
  db_cv_path_ar=$ac_ct_db_cv_path_ar
2111
 
else
2112
 
  db_cv_path_ar="$ac_cv_prog_db_cv_path_ar"
2113
 
fi
2114
 
 
2115
 
if test "$db_cv_path_ar" = missing_ar; then
2116
 
        { { echo "$as_me:$LINENO: error: No ar utility found." >&5
2117
 
echo "$as_me: error: No ar utility found." >&2;}
2118
 
   { (exit 1); exit 1; }; }
2119
 
fi
2120
 
 
2121
 
if test -n "$ac_tool_prefix"; then
2122
 
  # Extract the first word of "${ac_tool_prefix}chmod", so it can be a program name with args.
2123
 
set dummy ${ac_tool_prefix}chmod; ac_word=$2
2124
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2125
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126
 
if test "${ac_cv_prog_db_cv_path_chmod+set}" = set; then
2127
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2128
 
else
2129
 
  if test -n "$db_cv_path_chmod"; then
2130
 
  ac_cv_prog_db_cv_path_chmod="$db_cv_path_chmod" # Let the user override the test.
2131
 
else
2132
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133
 
for as_dir in $PATH
2134
 
do
2135
 
  IFS=$as_save_IFS
2136
 
  test -z "$as_dir" && as_dir=.
2137
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2138
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139
 
    ac_cv_prog_db_cv_path_chmod="${ac_tool_prefix}chmod"
2140
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141
 
    break 2
2142
 
  fi
2143
 
done
2144
 
done
2145
 
 
2146
 
fi
2147
 
fi
2148
 
db_cv_path_chmod=$ac_cv_prog_db_cv_path_chmod
2149
 
if test -n "$db_cv_path_chmod"; then
2150
 
  echo "$as_me:$LINENO: result: $db_cv_path_chmod" >&5
2151
 
echo "${ECHO_T}$db_cv_path_chmod" >&6
2152
 
else
2153
 
  echo "$as_me:$LINENO: result: no" >&5
2154
 
echo "${ECHO_T}no" >&6
2155
 
fi
2156
 
 
2157
 
fi
2158
 
if test -z "$ac_cv_prog_db_cv_path_chmod"; then
2159
 
  ac_ct_db_cv_path_chmod=$db_cv_path_chmod
2160
 
  # Extract the first word of "chmod", so it can be a program name with args.
2161
 
set dummy chmod; ac_word=$2
2162
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2163
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164
 
if test "${ac_cv_prog_ac_ct_db_cv_path_chmod+set}" = set; then
2165
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2166
 
else
2167
 
  if test -n "$ac_ct_db_cv_path_chmod"; then
2168
 
  ac_cv_prog_ac_ct_db_cv_path_chmod="$ac_ct_db_cv_path_chmod" # Let the user override the test.
2169
 
else
2170
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171
 
for as_dir in $PATH
2172
 
do
2173
 
  IFS=$as_save_IFS
2174
 
  test -z "$as_dir" && as_dir=.
2175
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2176
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177
 
    ac_cv_prog_ac_ct_db_cv_path_chmod="chmod"
2178
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179
 
    break 2
2180
 
  fi
2181
 
done
2182
 
done
2183
 
 
2184
 
  test -z "$ac_cv_prog_ac_ct_db_cv_path_chmod" && ac_cv_prog_ac_ct_db_cv_path_chmod="missing_chmod"
2185
 
fi
2186
 
fi
2187
 
ac_ct_db_cv_path_chmod=$ac_cv_prog_ac_ct_db_cv_path_chmod
2188
 
if test -n "$ac_ct_db_cv_path_chmod"; then
2189
 
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_chmod" >&5
2190
 
echo "${ECHO_T}$ac_ct_db_cv_path_chmod" >&6
2191
 
else
2192
 
  echo "$as_me:$LINENO: result: no" >&5
2193
 
echo "${ECHO_T}no" >&6
2194
 
fi
2195
 
 
2196
 
  db_cv_path_chmod=$ac_ct_db_cv_path_chmod
2197
 
else
2198
 
  db_cv_path_chmod="$ac_cv_prog_db_cv_path_chmod"
2199
 
fi
2200
 
 
2201
 
if test "$db_cv_path_chmod" = missing_chmod; then
2202
 
        { { echo "$as_me:$LINENO: error: No chmod utility found." >&5
2203
 
echo "$as_me: error: No chmod utility found." >&2;}
2204
 
   { (exit 1); exit 1; }; }
2205
 
fi
2206
 
 
2207
 
if test -n "$ac_tool_prefix"; then
2208
 
  # Extract the first word of "${ac_tool_prefix}cp", so it can be a program name with args.
2209
 
set dummy ${ac_tool_prefix}cp; ac_word=$2
2210
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2211
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2212
 
if test "${ac_cv_prog_db_cv_path_cp+set}" = set; then
2213
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2214
 
else
2215
 
  if test -n "$db_cv_path_cp"; then
2216
 
  ac_cv_prog_db_cv_path_cp="$db_cv_path_cp" # Let the user override the test.
2217
 
else
2218
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219
 
for as_dir in $PATH
2220
 
do
2221
 
  IFS=$as_save_IFS
2222
 
  test -z "$as_dir" && as_dir=.
2223
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2224
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2225
 
    ac_cv_prog_db_cv_path_cp="${ac_tool_prefix}cp"
2226
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227
 
    break 2
2228
 
  fi
2229
 
done
2230
 
done
2231
 
 
2232
 
fi
2233
 
fi
2234
 
db_cv_path_cp=$ac_cv_prog_db_cv_path_cp
2235
 
if test -n "$db_cv_path_cp"; then
2236
 
  echo "$as_me:$LINENO: result: $db_cv_path_cp" >&5
2237
 
echo "${ECHO_T}$db_cv_path_cp" >&6
2238
 
else
2239
 
  echo "$as_me:$LINENO: result: no" >&5
2240
 
echo "${ECHO_T}no" >&6
2241
 
fi
2242
 
 
2243
 
fi
2244
 
if test -z "$ac_cv_prog_db_cv_path_cp"; then
2245
 
  ac_ct_db_cv_path_cp=$db_cv_path_cp
2246
 
  # Extract the first word of "cp", so it can be a program name with args.
2247
 
set dummy cp; ac_word=$2
2248
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2249
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2250
 
if test "${ac_cv_prog_ac_ct_db_cv_path_cp+set}" = set; then
2251
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2252
 
else
2253
 
  if test -n "$ac_ct_db_cv_path_cp"; then
2254
 
  ac_cv_prog_ac_ct_db_cv_path_cp="$ac_ct_db_cv_path_cp" # Let the user override the test.
2255
 
else
2256
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257
 
for as_dir in $PATH
2258
 
do
2259
 
  IFS=$as_save_IFS
2260
 
  test -z "$as_dir" && as_dir=.
2261
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2262
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2263
 
    ac_cv_prog_ac_ct_db_cv_path_cp="cp"
2264
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265
 
    break 2
2266
 
  fi
2267
 
done
2268
 
done
2269
 
 
2270
 
  test -z "$ac_cv_prog_ac_ct_db_cv_path_cp" && ac_cv_prog_ac_ct_db_cv_path_cp="missing_cp"
2271
 
fi
2272
 
fi
2273
 
ac_ct_db_cv_path_cp=$ac_cv_prog_ac_ct_db_cv_path_cp
2274
 
if test -n "$ac_ct_db_cv_path_cp"; then
2275
 
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_cp" >&5
2276
 
echo "${ECHO_T}$ac_ct_db_cv_path_cp" >&6
2277
 
else
2278
 
  echo "$as_me:$LINENO: result: no" >&5
2279
 
echo "${ECHO_T}no" >&6
2280
 
fi
2281
 
 
2282
 
  db_cv_path_cp=$ac_ct_db_cv_path_cp
2283
 
else
2284
 
  db_cv_path_cp="$ac_cv_prog_db_cv_path_cp"
2285
 
fi
2286
 
 
2287
 
if test "$db_cv_path_cp" = missing_cp; then
2288
 
        { { echo "$as_me:$LINENO: error: No cp utility found." >&5
2289
 
echo "$as_me: error: No cp utility found." >&2;}
2290
 
   { (exit 1); exit 1; }; }
2291
 
fi
2292
 
 
2293
 
if test "$db_cv_rpm" = "yes"; then
2294
 
        if test -n "$ac_tool_prefix"; then
2295
 
  # Extract the first word of "${ac_tool_prefix}ldconfig", so it can be a program name with args.
2296
 
set dummy ${ac_tool_prefix}ldconfig; ac_word=$2
2297
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2298
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2299
 
if test "${ac_cv_prog_path_ldconfig+set}" = set; then
2300
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2301
 
else
2302
 
  if test -n "$path_ldconfig"; then
2303
 
  ac_cv_prog_path_ldconfig="$path_ldconfig" # Let the user override the test.
2304
 
else
2305
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306
 
for as_dir in $PATH
2307
 
do
2308
 
  IFS=$as_save_IFS
2309
 
  test -z "$as_dir" && as_dir=.
2310
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2311
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2312
 
    ac_cv_prog_path_ldconfig="${ac_tool_prefix}ldconfig"
2313
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2314
 
    break 2
2315
 
  fi
2316
 
done
2317
 
done
2318
 
 
2319
 
fi
2320
 
fi
2321
 
path_ldconfig=$ac_cv_prog_path_ldconfig
2322
 
if test -n "$path_ldconfig"; then
2323
 
  echo "$as_me:$LINENO: result: $path_ldconfig" >&5
2324
 
echo "${ECHO_T}$path_ldconfig" >&6
2325
 
else
2326
 
  echo "$as_me:$LINENO: result: no" >&5
2327
 
echo "${ECHO_T}no" >&6
2328
 
fi
2329
 
 
2330
 
fi
2331
 
if test -z "$ac_cv_prog_path_ldconfig"; then
2332
 
  ac_ct_path_ldconfig=$path_ldconfig
2333
 
  # Extract the first word of "ldconfig", so it can be a program name with args.
2334
 
set dummy ldconfig; ac_word=$2
2335
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2336
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2337
 
if test "${ac_cv_prog_ac_ct_path_ldconfig+set}" = set; then
2338
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2339
 
else
2340
 
  if test -n "$ac_ct_path_ldconfig"; then
2341
 
  ac_cv_prog_ac_ct_path_ldconfig="$ac_ct_path_ldconfig" # Let the user override the test.
2342
 
else
2343
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344
 
for as_dir in $PATH
2345
 
do
2346
 
  IFS=$as_save_IFS
2347
 
  test -z "$as_dir" && as_dir=.
2348
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2349
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2350
 
    ac_cv_prog_ac_ct_path_ldconfig="ldconfig"
2351
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352
 
    break 2
2353
 
  fi
2354
 
done
2355
 
done
2356
 
 
2357
 
  test -z "$ac_cv_prog_ac_ct_path_ldconfig" && ac_cv_prog_ac_ct_path_ldconfig="missing_ldconfig"
2358
 
fi
2359
 
fi
2360
 
ac_ct_path_ldconfig=$ac_cv_prog_ac_ct_path_ldconfig
2361
 
if test -n "$ac_ct_path_ldconfig"; then
2362
 
  echo "$as_me:$LINENO: result: $ac_ct_path_ldconfig" >&5
2363
 
echo "${ECHO_T}$ac_ct_path_ldconfig" >&6
2364
 
else
2365
 
  echo "$as_me:$LINENO: result: no" >&5
2366
 
echo "${ECHO_T}no" >&6
2367
 
fi
2368
 
 
2369
 
  path_ldconfig=$ac_ct_path_ldconfig
2370
 
else
2371
 
  path_ldconfig="$ac_cv_prog_path_ldconfig"
2372
 
fi
2373
 
 
2374
 
        # Extract the first word of "$path_ldconfig", so it can be a program name with args.
2375
 
set dummy $path_ldconfig; ac_word=$2
2376
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2377
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2378
 
if test "${ac_cv_path_db_cv_path_ldconfig+set}" = set; then
2379
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2380
 
else
2381
 
  case $db_cv_path_ldconfig in
2382
 
  [\\/]* | ?:[\\/]*)
2383
 
  ac_cv_path_db_cv_path_ldconfig="$db_cv_path_ldconfig" # Let the user override the test with a path.
2384
 
  ;;
2385
 
  *)
2386
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387
 
for as_dir in $PATH
2388
 
do
2389
 
  IFS=$as_save_IFS
2390
 
  test -z "$as_dir" && as_dir=.
2391
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2392
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393
 
    ac_cv_path_db_cv_path_ldconfig="$as_dir/$ac_word$ac_exec_ext"
2394
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395
 
    break 2
2396
 
  fi
2397
 
done
2398
 
done
2399
 
 
2400
 
  test -z "$ac_cv_path_db_cv_path_ldconfig" && ac_cv_path_db_cv_path_ldconfig="missing_ldconfig"
2401
 
  ;;
2402
 
esac
2403
 
fi
2404
 
db_cv_path_ldconfig=$ac_cv_path_db_cv_path_ldconfig
2405
 
 
2406
 
if test -n "$db_cv_path_ldconfig"; then
2407
 
  echo "$as_me:$LINENO: result: $db_cv_path_ldconfig" >&5
2408
 
echo "${ECHO_T}$db_cv_path_ldconfig" >&6
2409
 
else
2410
 
  echo "$as_me:$LINENO: result: no" >&5
2411
 
echo "${ECHO_T}no" >&6
2412
 
fi
2413
 
 
2414
 
        if test "$db_cv_path_ldconfig" != missing_ldconfig; then
2415
 
                RPM_POST_INSTALL="%post -p $db_cv_path_ldconfig"
2416
 
                RPM_POST_UNINSTALL="%postun -p $db_cv_path_ldconfig"
2417
 
        fi
2418
 
fi
2419
 
 
2420
 
if test -n "$ac_tool_prefix"; then
2421
 
  # Extract the first word of "${ac_tool_prefix}ln", so it can be a program name with args.
2422
 
set dummy ${ac_tool_prefix}ln; ac_word=$2
2423
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2424
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2425
 
if test "${ac_cv_prog_db_cv_path_ln+set}" = set; then
2426
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2427
 
else
2428
 
  if test -n "$db_cv_path_ln"; then
2429
 
  ac_cv_prog_db_cv_path_ln="$db_cv_path_ln" # Let the user override the test.
2430
 
else
2431
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432
 
for as_dir in $PATH
2433
 
do
2434
 
  IFS=$as_save_IFS
2435
 
  test -z "$as_dir" && as_dir=.
2436
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2437
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2438
 
    ac_cv_prog_db_cv_path_ln="${ac_tool_prefix}ln"
2439
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2440
 
    break 2
2441
 
  fi
2442
 
done
2443
 
done
2444
 
 
2445
 
fi
2446
 
fi
2447
 
db_cv_path_ln=$ac_cv_prog_db_cv_path_ln
2448
 
if test -n "$db_cv_path_ln"; then
2449
 
  echo "$as_me:$LINENO: result: $db_cv_path_ln" >&5
2450
 
echo "${ECHO_T}$db_cv_path_ln" >&6
2451
 
else
2452
 
  echo "$as_me:$LINENO: result: no" >&5
2453
 
echo "${ECHO_T}no" >&6
2454
 
fi
2455
 
 
2456
 
fi
2457
 
if test -z "$ac_cv_prog_db_cv_path_ln"; then
2458
 
  ac_ct_db_cv_path_ln=$db_cv_path_ln
2459
 
  # Extract the first word of "ln", so it can be a program name with args.
2460
 
set dummy ln; ac_word=$2
2461
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2462
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2463
 
if test "${ac_cv_prog_ac_ct_db_cv_path_ln+set}" = set; then
2464
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2465
 
else
2466
 
  if test -n "$ac_ct_db_cv_path_ln"; then
2467
 
  ac_cv_prog_ac_ct_db_cv_path_ln="$ac_ct_db_cv_path_ln" # Let the user override the test.
2468
 
else
2469
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470
 
for as_dir in $PATH
2471
 
do
2472
 
  IFS=$as_save_IFS
2473
 
  test -z "$as_dir" && as_dir=.
2474
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2475
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476
 
    ac_cv_prog_ac_ct_db_cv_path_ln="ln"
2477
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478
 
    break 2
2479
 
  fi
2480
 
done
2481
 
done
2482
 
 
2483
 
  test -z "$ac_cv_prog_ac_ct_db_cv_path_ln" && ac_cv_prog_ac_ct_db_cv_path_ln="missing_ln"
2484
 
fi
2485
 
fi
2486
 
ac_ct_db_cv_path_ln=$ac_cv_prog_ac_ct_db_cv_path_ln
2487
 
if test -n "$ac_ct_db_cv_path_ln"; then
2488
 
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_ln" >&5
2489
 
echo "${ECHO_T}$ac_ct_db_cv_path_ln" >&6
2490
 
else
2491
 
  echo "$as_me:$LINENO: result: no" >&5
2492
 
echo "${ECHO_T}no" >&6
2493
 
fi
2494
 
 
2495
 
  db_cv_path_ln=$ac_ct_db_cv_path_ln
2496
 
else
2497
 
  db_cv_path_ln="$ac_cv_prog_db_cv_path_ln"
2498
 
fi
2499
 
 
2500
 
if test "$db_cv_path_ln" = missing_ln; then
2501
 
        { { echo "$as_me:$LINENO: error: No ln utility found." >&5
2502
 
echo "$as_me: error: No ln utility found." >&2;}
2503
 
   { (exit 1); exit 1; }; }
2504
 
fi
2505
 
 
2506
 
if test -n "$ac_tool_prefix"; then
2507
 
  # Extract the first word of "${ac_tool_prefix}mkdir", so it can be a program name with args.
2508
 
set dummy ${ac_tool_prefix}mkdir; ac_word=$2
2509
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2510
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2511
 
if test "${ac_cv_prog_db_cv_path_mkdir+set}" = set; then
2512
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2513
 
else
2514
 
  if test -n "$db_cv_path_mkdir"; then
2515
 
  ac_cv_prog_db_cv_path_mkdir="$db_cv_path_mkdir" # Let the user override the test.
2516
 
else
2517
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518
 
for as_dir in $PATH
2519
 
do
2520
 
  IFS=$as_save_IFS
2521
 
  test -z "$as_dir" && as_dir=.
2522
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2523
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2524
 
    ac_cv_prog_db_cv_path_mkdir="${ac_tool_prefix}mkdir"
2525
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526
 
    break 2
2527
 
  fi
2528
 
done
2529
 
done
2530
 
 
2531
 
fi
2532
 
fi
2533
 
db_cv_path_mkdir=$ac_cv_prog_db_cv_path_mkdir
2534
 
if test -n "$db_cv_path_mkdir"; then
2535
 
  echo "$as_me:$LINENO: result: $db_cv_path_mkdir" >&5
2536
 
echo "${ECHO_T}$db_cv_path_mkdir" >&6
2537
 
else
2538
 
  echo "$as_me:$LINENO: result: no" >&5
2539
 
echo "${ECHO_T}no" >&6
2540
 
fi
2541
 
 
2542
 
fi
2543
 
if test -z "$ac_cv_prog_db_cv_path_mkdir"; then
2544
 
  ac_ct_db_cv_path_mkdir=$db_cv_path_mkdir
2545
 
  # Extract the first word of "mkdir", so it can be a program name with args.
2546
 
set dummy mkdir; ac_word=$2
2547
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2548
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2549
 
if test "${ac_cv_prog_ac_ct_db_cv_path_mkdir+set}" = set; then
2550
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2551
 
else
2552
 
  if test -n "$ac_ct_db_cv_path_mkdir"; then
2553
 
  ac_cv_prog_ac_ct_db_cv_path_mkdir="$ac_ct_db_cv_path_mkdir" # Let the user override the test.
2554
 
else
2555
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556
 
for as_dir in $PATH
2557
 
do
2558
 
  IFS=$as_save_IFS
2559
 
  test -z "$as_dir" && as_dir=.
2560
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2561
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2562
 
    ac_cv_prog_ac_ct_db_cv_path_mkdir="mkdir"
2563
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564
 
    break 2
2565
 
  fi
2566
 
done
2567
 
done
2568
 
 
2569
 
  test -z "$ac_cv_prog_ac_ct_db_cv_path_mkdir" && ac_cv_prog_ac_ct_db_cv_path_mkdir="missing_mkdir"
2570
 
fi
2571
 
fi
2572
 
ac_ct_db_cv_path_mkdir=$ac_cv_prog_ac_ct_db_cv_path_mkdir
2573
 
if test -n "$ac_ct_db_cv_path_mkdir"; then
2574
 
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_mkdir" >&5
2575
 
echo "${ECHO_T}$ac_ct_db_cv_path_mkdir" >&6
2576
 
else
2577
 
  echo "$as_me:$LINENO: result: no" >&5
2578
 
echo "${ECHO_T}no" >&6
2579
 
fi
2580
 
 
2581
 
  db_cv_path_mkdir=$ac_ct_db_cv_path_mkdir
2582
 
else
2583
 
  db_cv_path_mkdir="$ac_cv_prog_db_cv_path_mkdir"
2584
 
fi
2585
 
 
2586
 
if test "$db_cv_path_mkdir" = missing_mkdir; then
2587
 
        { { echo "$as_me:$LINENO: error: No mkdir utility found." >&5
2588
 
echo "$as_me: error: No mkdir utility found." >&2;}
2589
 
   { (exit 1); exit 1; }; }
2590
 
fi
2591
 
 
2592
 
# We need a complete path for ranlib, because it doesn't exist on some
2593
 
# architectures because the ar utility packages the library itself.
2594
 
if test -n "$ac_tool_prefix"; then
2595
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2596
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2597
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2598
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2599
 
if test "${ac_cv_prog_path_ranlib+set}" = set; then
2600
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2601
 
else
2602
 
  if test -n "$path_ranlib"; then
2603
 
  ac_cv_prog_path_ranlib="$path_ranlib" # Let the user override the test.
2604
 
else
2605
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606
 
for as_dir in $PATH
2607
 
do
2608
 
  IFS=$as_save_IFS
2609
 
  test -z "$as_dir" && as_dir=.
2610
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2611
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2612
 
    ac_cv_prog_path_ranlib="${ac_tool_prefix}ranlib"
2613
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614
 
    break 2
2615
 
  fi
2616
 
done
2617
 
done
2618
 
 
2619
 
fi
2620
 
fi
2621
 
path_ranlib=$ac_cv_prog_path_ranlib
2622
 
if test -n "$path_ranlib"; then
2623
 
  echo "$as_me:$LINENO: result: $path_ranlib" >&5
2624
 
echo "${ECHO_T}$path_ranlib" >&6
2625
 
else
2626
 
  echo "$as_me:$LINENO: result: no" >&5
2627
 
echo "${ECHO_T}no" >&6
2628
 
fi
2629
 
 
2630
 
fi
2631
 
if test -z "$ac_cv_prog_path_ranlib"; then
2632
 
  ac_ct_path_ranlib=$path_ranlib
2633
 
  # Extract the first word of "ranlib", so it can be a program name with args.
2634
 
set dummy ranlib; ac_word=$2
2635
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2636
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2637
 
if test "${ac_cv_prog_ac_ct_path_ranlib+set}" = set; then
2638
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2639
 
else
2640
 
  if test -n "$ac_ct_path_ranlib"; then
2641
 
  ac_cv_prog_ac_ct_path_ranlib="$ac_ct_path_ranlib" # Let the user override the test.
2642
 
else
2643
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644
 
for as_dir in $PATH
2645
 
do
2646
 
  IFS=$as_save_IFS
2647
 
  test -z "$as_dir" && as_dir=.
2648
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2649
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650
 
    ac_cv_prog_ac_ct_path_ranlib="ranlib"
2651
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652
 
    break 2
2653
 
  fi
2654
 
done
2655
 
done
2656
 
 
2657
 
  test -z "$ac_cv_prog_ac_ct_path_ranlib" && ac_cv_prog_ac_ct_path_ranlib="missing_ranlib"
2658
 
fi
2659
 
fi
2660
 
ac_ct_path_ranlib=$ac_cv_prog_ac_ct_path_ranlib
2661
 
if test -n "$ac_ct_path_ranlib"; then
2662
 
  echo "$as_me:$LINENO: result: $ac_ct_path_ranlib" >&5
2663
 
echo "${ECHO_T}$ac_ct_path_ranlib" >&6
2664
 
else
2665
 
  echo "$as_me:$LINENO: result: no" >&5
2666
 
echo "${ECHO_T}no" >&6
2667
 
fi
2668
 
 
2669
 
  path_ranlib=$ac_ct_path_ranlib
2670
 
else
2671
 
  path_ranlib="$ac_cv_prog_path_ranlib"
2672
 
fi
2673
 
 
2674
 
# Extract the first word of "$path_ranlib", so it can be a program name with args.
2675
 
set dummy $path_ranlib; ac_word=$2
2676
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2677
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678
 
if test "${ac_cv_path_db_cv_path_ranlib+set}" = set; then
2679
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2680
 
else
2681
 
  case $db_cv_path_ranlib in
2682
 
  [\\/]* | ?:[\\/]*)
2683
 
  ac_cv_path_db_cv_path_ranlib="$db_cv_path_ranlib" # Let the user override the test with a path.
2684
 
  ;;
2685
 
  *)
2686
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687
 
for as_dir in $PATH
2688
 
do
2689
 
  IFS=$as_save_IFS
2690
 
  test -z "$as_dir" && as_dir=.
2691
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2692
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693
 
    ac_cv_path_db_cv_path_ranlib="$as_dir/$ac_word$ac_exec_ext"
2694
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695
 
    break 2
2696
 
  fi
2697
 
done
2698
 
done
2699
 
 
2700
 
  test -z "$ac_cv_path_db_cv_path_ranlib" && ac_cv_path_db_cv_path_ranlib="missing_ranlib"
2701
 
  ;;
2702
 
esac
2703
 
fi
2704
 
db_cv_path_ranlib=$ac_cv_path_db_cv_path_ranlib
2705
 
 
2706
 
if test -n "$db_cv_path_ranlib"; then
2707
 
  echo "$as_me:$LINENO: result: $db_cv_path_ranlib" >&5
2708
 
echo "${ECHO_T}$db_cv_path_ranlib" >&6
2709
 
else
2710
 
  echo "$as_me:$LINENO: result: no" >&5
2711
 
echo "${ECHO_T}no" >&6
2712
 
fi
2713
 
 
2714
 
 
2715
 
if test -n "$ac_tool_prefix"; then
2716
 
  # Extract the first word of "${ac_tool_prefix}rm", so it can be a program name with args.
2717
 
set dummy ${ac_tool_prefix}rm; ac_word=$2
2718
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2719
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2720
 
if test "${ac_cv_prog_db_cv_path_rm+set}" = set; then
2721
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2722
 
else
2723
 
  if test -n "$db_cv_path_rm"; then
2724
 
  ac_cv_prog_db_cv_path_rm="$db_cv_path_rm" # Let the user override the test.
2725
 
else
2726
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727
 
for as_dir in $PATH
2728
 
do
2729
 
  IFS=$as_save_IFS
2730
 
  test -z "$as_dir" && as_dir=.
2731
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2732
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733
 
    ac_cv_prog_db_cv_path_rm="${ac_tool_prefix}rm"
2734
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735
 
    break 2
2736
 
  fi
2737
 
done
2738
 
done
2739
 
 
2740
 
fi
2741
 
fi
2742
 
db_cv_path_rm=$ac_cv_prog_db_cv_path_rm
2743
 
if test -n "$db_cv_path_rm"; then
2744
 
  echo "$as_me:$LINENO: result: $db_cv_path_rm" >&5
2745
 
echo "${ECHO_T}$db_cv_path_rm" >&6
2746
 
else
2747
 
  echo "$as_me:$LINENO: result: no" >&5
2748
 
echo "${ECHO_T}no" >&6
2749
 
fi
2750
 
 
2751
 
fi
2752
 
if test -z "$ac_cv_prog_db_cv_path_rm"; then
2753
 
  ac_ct_db_cv_path_rm=$db_cv_path_rm
2754
 
  # Extract the first word of "rm", so it can be a program name with args.
2755
 
set dummy rm; ac_word=$2
2756
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2757
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2758
 
if test "${ac_cv_prog_ac_ct_db_cv_path_rm+set}" = set; then
2759
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2760
 
else
2761
 
  if test -n "$ac_ct_db_cv_path_rm"; then
2762
 
  ac_cv_prog_ac_ct_db_cv_path_rm="$ac_ct_db_cv_path_rm" # Let the user override the test.
2763
 
else
2764
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765
 
for as_dir in $PATH
2766
 
do
2767
 
  IFS=$as_save_IFS
2768
 
  test -z "$as_dir" && as_dir=.
2769
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2770
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2771
 
    ac_cv_prog_ac_ct_db_cv_path_rm="rm"
2772
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2773
 
    break 2
2774
 
  fi
2775
 
done
2776
 
done
2777
 
 
2778
 
  test -z "$ac_cv_prog_ac_ct_db_cv_path_rm" && ac_cv_prog_ac_ct_db_cv_path_rm="missing_rm"
2779
 
fi
2780
 
fi
2781
 
ac_ct_db_cv_path_rm=$ac_cv_prog_ac_ct_db_cv_path_rm
2782
 
if test -n "$ac_ct_db_cv_path_rm"; then
2783
 
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_rm" >&5
2784
 
echo "${ECHO_T}$ac_ct_db_cv_path_rm" >&6
2785
 
else
2786
 
  echo "$as_me:$LINENO: result: no" >&5
2787
 
echo "${ECHO_T}no" >&6
2788
 
fi
2789
 
 
2790
 
  db_cv_path_rm=$ac_ct_db_cv_path_rm
2791
 
else
2792
 
  db_cv_path_rm="$ac_cv_prog_db_cv_path_rm"
2793
 
fi
2794
 
 
2795
 
if test "$db_cv_path_rm" = missing_rm; then
2796
 
        { { echo "$as_me:$LINENO: error: No rm utility found." >&5
2797
 
echo "$as_me: error: No rm utility found." >&2;}
2798
 
   { (exit 1); exit 1; }; }
2799
 
fi
2800
 
 
2801
 
if test "$db_cv_rpm" = "yes"; then
2802
 
        if test -n "$ac_tool_prefix"; then
2803
 
  # Extract the first word of "${ac_tool_prefix}rpm", so it can be a program name with args.
2804
 
set dummy ${ac_tool_prefix}rpm; ac_word=$2
2805
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2806
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2807
 
if test "${ac_cv_prog_db_cv_path_rpm+set}" = set; then
2808
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2809
 
else
2810
 
  if test -n "$db_cv_path_rpm"; then
2811
 
  ac_cv_prog_db_cv_path_rpm="$db_cv_path_rpm" # Let the user override the test.
2812
 
else
2813
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814
 
for as_dir in $PATH
2815
 
do
2816
 
  IFS=$as_save_IFS
2817
 
  test -z "$as_dir" && as_dir=.
2818
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2819
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820
 
    ac_cv_prog_db_cv_path_rpm="${ac_tool_prefix}rpm"
2821
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822
 
    break 2
2823
 
  fi
2824
 
done
2825
 
done
2826
 
 
2827
 
fi
2828
 
fi
2829
 
db_cv_path_rpm=$ac_cv_prog_db_cv_path_rpm
2830
 
if test -n "$db_cv_path_rpm"; then
2831
 
  echo "$as_me:$LINENO: result: $db_cv_path_rpm" >&5
2832
 
echo "${ECHO_T}$db_cv_path_rpm" >&6
2833
 
else
2834
 
  echo "$as_me:$LINENO: result: no" >&5
2835
 
echo "${ECHO_T}no" >&6
2836
 
fi
2837
 
 
2838
 
fi
2839
 
if test -z "$ac_cv_prog_db_cv_path_rpm"; then
2840
 
  ac_ct_db_cv_path_rpm=$db_cv_path_rpm
2841
 
  # Extract the first word of "rpm", so it can be a program name with args.
2842
 
set dummy rpm; ac_word=$2
2843
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2844
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2845
 
if test "${ac_cv_prog_ac_ct_db_cv_path_rpm+set}" = set; then
2846
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2847
 
else
2848
 
  if test -n "$ac_ct_db_cv_path_rpm"; then
2849
 
  ac_cv_prog_ac_ct_db_cv_path_rpm="$ac_ct_db_cv_path_rpm" # Let the user override the test.
2850
 
else
2851
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852
 
for as_dir in $PATH
2853
 
do
2854
 
  IFS=$as_save_IFS
2855
 
  test -z "$as_dir" && as_dir=.
2856
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2857
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858
 
    ac_cv_prog_ac_ct_db_cv_path_rpm="rpm"
2859
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860
 
    break 2
2861
 
  fi
2862
 
done
2863
 
done
2864
 
 
2865
 
  test -z "$ac_cv_prog_ac_ct_db_cv_path_rpm" && ac_cv_prog_ac_ct_db_cv_path_rpm="missing_rpm"
2866
 
fi
2867
 
fi
2868
 
ac_ct_db_cv_path_rpm=$ac_cv_prog_ac_ct_db_cv_path_rpm
2869
 
if test -n "$ac_ct_db_cv_path_rpm"; then
2870
 
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_rpm" >&5
2871
 
echo "${ECHO_T}$ac_ct_db_cv_path_rpm" >&6
2872
 
else
2873
 
  echo "$as_me:$LINENO: result: no" >&5
2874
 
echo "${ECHO_T}no" >&6
2875
 
fi
2876
 
 
2877
 
  db_cv_path_rpm=$ac_ct_db_cv_path_rpm
2878
 
else
2879
 
  db_cv_path_rpm="$ac_cv_prog_db_cv_path_rpm"
2880
 
fi
2881
 
 
2882
 
        if test "$db_cv_path_rpm" = missing_rpm; then
2883
 
                { { echo "$as_me:$LINENO: error: No rpm utility found." >&5
2884
 
echo "$as_me: error: No rpm utility found." >&2;}
2885
 
   { (exit 1); exit 1; }; }
2886
 
        fi
2887
 
fi
2888
 
 
2889
 
# We need a complete path for sh, because some implementations of make
2890
 
# get upset if SHELL is set to just the command name.
2891
 
if test -n "$ac_tool_prefix"; then
2892
 
  # Extract the first word of "${ac_tool_prefix}sh", so it can be a program name with args.
2893
 
set dummy ${ac_tool_prefix}sh; ac_word=$2
2894
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2895
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2896
 
if test "${ac_cv_prog_path_sh+set}" = set; then
2897
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2898
 
else
2899
 
  if test -n "$path_sh"; then
2900
 
  ac_cv_prog_path_sh="$path_sh" # Let the user override the test.
2901
 
else
2902
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903
 
for as_dir in $PATH
2904
 
do
2905
 
  IFS=$as_save_IFS
2906
 
  test -z "$as_dir" && as_dir=.
2907
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2908
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909
 
    ac_cv_prog_path_sh="${ac_tool_prefix}sh"
2910
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911
 
    break 2
2912
 
  fi
2913
 
done
2914
 
done
2915
 
 
2916
 
fi
2917
 
fi
2918
 
path_sh=$ac_cv_prog_path_sh
2919
 
if test -n "$path_sh"; then
2920
 
  echo "$as_me:$LINENO: result: $path_sh" >&5
2921
 
echo "${ECHO_T}$path_sh" >&6
2922
 
else
2923
 
  echo "$as_me:$LINENO: result: no" >&5
2924
 
echo "${ECHO_T}no" >&6
2925
 
fi
2926
 
 
2927
 
fi
2928
 
if test -z "$ac_cv_prog_path_sh"; then
2929
 
  ac_ct_path_sh=$path_sh
2930
 
  # Extract the first word of "sh", so it can be a program name with args.
2931
 
set dummy sh; ac_word=$2
2932
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2933
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2934
 
if test "${ac_cv_prog_ac_ct_path_sh+set}" = set; then
2935
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2936
 
else
2937
 
  if test -n "$ac_ct_path_sh"; then
2938
 
  ac_cv_prog_ac_ct_path_sh="$ac_ct_path_sh" # Let the user override the test.
2939
 
else
2940
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941
 
for as_dir in $PATH
2942
 
do
2943
 
  IFS=$as_save_IFS
2944
 
  test -z "$as_dir" && as_dir=.
2945
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2946
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947
 
    ac_cv_prog_ac_ct_path_sh="sh"
2948
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949
 
    break 2
2950
 
  fi
2951
 
done
2952
 
done
2953
 
 
2954
 
  test -z "$ac_cv_prog_ac_ct_path_sh" && ac_cv_prog_ac_ct_path_sh="missing_sh"
2955
 
fi
2956
 
fi
2957
 
ac_ct_path_sh=$ac_cv_prog_ac_ct_path_sh
2958
 
if test -n "$ac_ct_path_sh"; then
2959
 
  echo "$as_me:$LINENO: result: $ac_ct_path_sh" >&5
2960
 
echo "${ECHO_T}$ac_ct_path_sh" >&6
2961
 
else
2962
 
  echo "$as_me:$LINENO: result: no" >&5
2963
 
echo "${ECHO_T}no" >&6
2964
 
fi
2965
 
 
2966
 
  path_sh=$ac_ct_path_sh
2967
 
else
2968
 
  path_sh="$ac_cv_prog_path_sh"
2969
 
fi
2970
 
 
2971
 
# Extract the first word of "$path_sh", so it can be a program name with args.
2972
 
set dummy $path_sh; ac_word=$2
2973
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2974
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2975
 
if test "${ac_cv_path_db_cv_path_sh+set}" = set; then
2976
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2977
 
else
2978
 
  case $db_cv_path_sh in
2979
 
  [\\/]* | ?:[\\/]*)
2980
 
  ac_cv_path_db_cv_path_sh="$db_cv_path_sh" # Let the user override the test with a path.
2981
 
  ;;
2982
 
  *)
2983
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984
 
for as_dir in $PATH
2985
 
do
2986
 
  IFS=$as_save_IFS
2987
 
  test -z "$as_dir" && as_dir=.
2988
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2989
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990
 
    ac_cv_path_db_cv_path_sh="$as_dir/$ac_word$ac_exec_ext"
2991
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2992
 
    break 2
2993
 
  fi
2994
 
done
2995
 
done
2996
 
 
2997
 
  test -z "$ac_cv_path_db_cv_path_sh" && ac_cv_path_db_cv_path_sh="missing_sh"
2998
 
  ;;
2999
 
esac
3000
 
fi
3001
 
db_cv_path_sh=$ac_cv_path_db_cv_path_sh
3002
 
 
3003
 
if test -n "$db_cv_path_sh"; then
3004
 
  echo "$as_me:$LINENO: result: $db_cv_path_sh" >&5
3005
 
echo "${ECHO_T}$db_cv_path_sh" >&6
3006
 
else
3007
 
  echo "$as_me:$LINENO: result: no" >&5
3008
 
echo "${ECHO_T}no" >&6
3009
 
fi
3010
 
 
3011
 
if test "$db_cv_path_sh" = missing_sh; then
3012
 
        { { echo "$as_me:$LINENO: error: No sh utility found." >&5
3013
 
echo "$as_me: error: No sh utility found." >&2;}
3014
 
   { (exit 1); exit 1; }; }
3015
 
fi
3016
 
 
3017
 
# Don't strip the binaries if --enable-debug was specified.
3018
 
if test "$db_cv_debug" = yes; then
3019
 
        db_cv_path_strip=debug_build_no_strip
3020
 
else
3021
 
        if test -n "$ac_tool_prefix"; then
3022
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3023
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
3024
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3025
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3026
 
if test "${ac_cv_prog_path_strip+set}" = set; then
3027
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3028
 
else
3029
 
  if test -n "$path_strip"; then
3030
 
  ac_cv_prog_path_strip="$path_strip" # Let the user override the test.
3031
 
else
3032
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033
 
for as_dir in $PATH
3034
 
do
3035
 
  IFS=$as_save_IFS
3036
 
  test -z "$as_dir" && as_dir=.
3037
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3038
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039
 
    ac_cv_prog_path_strip="${ac_tool_prefix}strip"
3040
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3041
 
    break 2
3042
 
  fi
3043
 
done
3044
 
done
3045
 
 
3046
 
fi
3047
 
fi
3048
 
path_strip=$ac_cv_prog_path_strip
3049
 
if test -n "$path_strip"; then
3050
 
  echo "$as_me:$LINENO: result: $path_strip" >&5
3051
 
echo "${ECHO_T}$path_strip" >&6
3052
 
else
3053
 
  echo "$as_me:$LINENO: result: no" >&5
3054
 
echo "${ECHO_T}no" >&6
3055
 
fi
3056
 
 
3057
 
fi
3058
 
if test -z "$ac_cv_prog_path_strip"; then
3059
 
  ac_ct_path_strip=$path_strip
3060
 
  # Extract the first word of "strip", so it can be a program name with args.
3061
 
set dummy strip; ac_word=$2
3062
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3063
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3064
 
if test "${ac_cv_prog_ac_ct_path_strip+set}" = set; then
3065
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3066
 
else
3067
 
  if test -n "$ac_ct_path_strip"; then
3068
 
  ac_cv_prog_ac_ct_path_strip="$ac_ct_path_strip" # Let the user override the test.
3069
 
else
3070
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071
 
for as_dir in $PATH
3072
 
do
3073
 
  IFS=$as_save_IFS
3074
 
  test -z "$as_dir" && as_dir=.
3075
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3076
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077
 
    ac_cv_prog_ac_ct_path_strip="strip"
3078
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079
 
    break 2
3080
 
  fi
3081
 
done
3082
 
done
3083
 
 
3084
 
  test -z "$ac_cv_prog_ac_ct_path_strip" && ac_cv_prog_ac_ct_path_strip="missing_strip"
3085
 
fi
3086
 
fi
3087
 
ac_ct_path_strip=$ac_cv_prog_ac_ct_path_strip
3088
 
if test -n "$ac_ct_path_strip"; then
3089
 
  echo "$as_me:$LINENO: result: $ac_ct_path_strip" >&5
3090
 
echo "${ECHO_T}$ac_ct_path_strip" >&6
3091
 
else
3092
 
  echo "$as_me:$LINENO: result: no" >&5
3093
 
echo "${ECHO_T}no" >&6
3094
 
fi
3095
 
 
3096
 
  path_strip=$ac_ct_path_strip
3097
 
else
3098
 
  path_strip="$ac_cv_prog_path_strip"
3099
 
fi
3100
 
 
3101
 
        # Extract the first word of "$path_strip", so it can be a program name with args.
3102
 
set dummy $path_strip; ac_word=$2
3103
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3104
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3105
 
if test "${ac_cv_path_db_cv_path_strip+set}" = set; then
3106
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3107
 
else
3108
 
  case $db_cv_path_strip in
3109
 
  [\\/]* | ?:[\\/]*)
3110
 
  ac_cv_path_db_cv_path_strip="$db_cv_path_strip" # Let the user override the test with a path.
3111
 
  ;;
3112
 
  *)
3113
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114
 
for as_dir in $PATH
3115
 
do
3116
 
  IFS=$as_save_IFS
3117
 
  test -z "$as_dir" && as_dir=.
3118
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3119
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120
 
    ac_cv_path_db_cv_path_strip="$as_dir/$ac_word$ac_exec_ext"
3121
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122
 
    break 2
3123
 
  fi
3124
 
done
3125
 
done
3126
 
 
3127
 
  test -z "$ac_cv_path_db_cv_path_strip" && ac_cv_path_db_cv_path_strip="missing_strip"
3128
 
  ;;
3129
 
esac
3130
 
fi
3131
 
db_cv_path_strip=$ac_cv_path_db_cv_path_strip
3132
 
 
3133
 
if test -n "$db_cv_path_strip"; then
3134
 
  echo "$as_me:$LINENO: result: $db_cv_path_strip" >&5
3135
 
echo "${ECHO_T}$db_cv_path_strip" >&6
3136
 
else
3137
 
  echo "$as_me:$LINENO: result: no" >&5
3138
 
echo "${ECHO_T}no" >&6
3139
 
fi
3140
 
 
3141
 
fi
3142
 
 
3143
 
if test "$db_cv_test" = "yes"; then
3144
 
        if test -n "$ac_tool_prefix"; then
3145
 
  # Extract the first word of "${ac_tool_prefix}kill", so it can be a program name with args.
3146
 
set dummy ${ac_tool_prefix}kill; ac_word=$2
3147
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3148
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3149
 
if test "${ac_cv_prog_db_cv_path_kill+set}" = set; then
3150
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3151
 
else
3152
 
  if test -n "$db_cv_path_kill"; then
3153
 
  ac_cv_prog_db_cv_path_kill="$db_cv_path_kill" # Let the user override the test.
3154
 
else
3155
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156
 
for as_dir in $PATH
3157
 
do
3158
 
  IFS=$as_save_IFS
3159
 
  test -z "$as_dir" && as_dir=.
3160
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3161
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162
 
    ac_cv_prog_db_cv_path_kill="${ac_tool_prefix}kill"
3163
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3164
 
    break 2
3165
 
  fi
3166
 
done
3167
 
done
3168
 
 
3169
 
fi
3170
 
fi
3171
 
db_cv_path_kill=$ac_cv_prog_db_cv_path_kill
3172
 
if test -n "$db_cv_path_kill"; then
3173
 
  echo "$as_me:$LINENO: result: $db_cv_path_kill" >&5
3174
 
echo "${ECHO_T}$db_cv_path_kill" >&6
3175
 
else
3176
 
  echo "$as_me:$LINENO: result: no" >&5
3177
 
echo "${ECHO_T}no" >&6
3178
 
fi
3179
 
 
3180
 
fi
3181
 
if test -z "$ac_cv_prog_db_cv_path_kill"; then
3182
 
  ac_ct_db_cv_path_kill=$db_cv_path_kill
3183
 
  # Extract the first word of "kill", so it can be a program name with args.
3184
 
set dummy kill; ac_word=$2
3185
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3186
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3187
 
if test "${ac_cv_prog_ac_ct_db_cv_path_kill+set}" = set; then
3188
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3189
 
else
3190
 
  if test -n "$ac_ct_db_cv_path_kill"; then
3191
 
  ac_cv_prog_ac_ct_db_cv_path_kill="$ac_ct_db_cv_path_kill" # Let the user override the test.
3192
 
else
3193
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194
 
for as_dir in $PATH
3195
 
do
3196
 
  IFS=$as_save_IFS
3197
 
  test -z "$as_dir" && as_dir=.
3198
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3199
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200
 
    ac_cv_prog_ac_ct_db_cv_path_kill="kill"
3201
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3202
 
    break 2
3203
 
  fi
3204
 
done
3205
 
done
3206
 
 
3207
 
  test -z "$ac_cv_prog_ac_ct_db_cv_path_kill" && ac_cv_prog_ac_ct_db_cv_path_kill="missing_kill"
3208
 
fi
3209
 
fi
3210
 
ac_ct_db_cv_path_kill=$ac_cv_prog_ac_ct_db_cv_path_kill
3211
 
if test -n "$ac_ct_db_cv_path_kill"; then
3212
 
  echo "$as_me:$LINENO: result: $ac_ct_db_cv_path_kill" >&5
3213
 
echo "${ECHO_T}$ac_ct_db_cv_path_kill" >&6
3214
 
else
3215
 
  echo "$as_me:$LINENO: result: no" >&5
3216
 
echo "${ECHO_T}no" >&6
3217
 
fi
3218
 
 
3219
 
  db_cv_path_kill=$ac_ct_db_cv_path_kill
3220
 
else
3221
 
  db_cv_path_kill="$ac_cv_prog_db_cv_path_kill"
3222
 
fi
3223
 
 
3224
 
        if test "$db_cv_path_kill" = missing_kill; then
3225
 
                { { echo "$as_me:$LINENO: error: No kill utility found." >&5
3226
 
echo "$as_me: error: No kill utility found." >&2;}
3227
 
   { (exit 1); exit 1; }; }
3228
 
        fi
3229
 
fi
3230
 
 
3231
 
 
3232
 
# Find a good install program.  We prefer a C program (faster),
3233
 
# so one script is as good as another.  But avoid the broken or
3234
 
# incompatible versions:
3235
 
# SysV /etc/install, /usr/sbin/install
3236
 
# SunOS /usr/etc/install
3237
 
# IRIX /sbin/install
3238
 
# AIX /bin/install
3239
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
3240
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3241
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3242
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3243
 
# ./install, which can be erroneously created by make from ./install.sh.
3244
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3245
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3246
 
if test -z "$INSTALL"; then
3247
 
if test "${ac_cv_path_install+set}" = set; then
3248
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3249
 
else
3250
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251
 
for as_dir in $PATH
3252
 
do
3253
 
  IFS=$as_save_IFS
3254
 
  test -z "$as_dir" && as_dir=.
3255
 
  # Account for people who put trailing slashes in PATH elements.
3256
 
case $as_dir/ in
3257
 
  ./ | .// | /cC/* | \
3258
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3259
 
  /usr/ucb/* ) ;;
3260
 
  *)
3261
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
3262
 
    # Don't use installbsd from OSF since it installs stuff as root
3263
 
    # by default.
3264
 
    for ac_prog in ginstall scoinst install; do
3265
 
      for ac_exec_ext in '' $ac_executable_extensions; do
3266
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3267
 
          if test $ac_prog = install &&
3268
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3269
 
            # AIX install.  It has an incompatible calling convention.
3270
 
            :
3271
 
          elif test $ac_prog = install &&
3272
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3273
 
            # program-specific install script used by HP pwplus--don't use.
3274
 
            :
3275
 
          else
3276
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3277
 
            break 3
3278
 
          fi
3279
 
        fi
3280
 
      done
3281
 
    done
3282
 
    ;;
3283
 
esac
3284
 
done
3285
 
 
3286
 
 
3287
 
fi
3288
 
  if test "${ac_cv_path_install+set}" = set; then
3289
 
    INSTALL=$ac_cv_path_install
3290
 
  else
3291
 
    # As a last resort, use the slow shell script.  We don't cache a
3292
 
    # path for INSTALL within a source directory, because that will
3293
 
    # break other packages using the cache if that directory is
3294
 
    # removed, or if the path is relative.
3295
 
    INSTALL=$ac_install_sh
3296
 
  fi
3297
 
fi
3298
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
3299
 
echo "${ECHO_T}$INSTALL" >&6
3300
 
 
3301
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3302
 
# It thinks the first close brace ends the variable substitution.
3303
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3304
 
 
3305
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3306
 
 
3307
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3308
 
 
3309
 
 
3310
 
# RPM/Embedix support: change the standard make and install targets
3311
 
if test "$db_cv_rpm" = "yes"; then
3312
 
        BUILD_TARGET="rpm_build"
3313
 
        echo "topdir: $CONFIGURATION_PATH" > rpmrc
3314
 
        if test "$db_cv_embedix" = "yes"; then
3315
 
                EMBEDIX_ROOT="/usr"
3316
 
                INSTALL_TARGET="embedix_install"
3317
 
        else
3318
 
                INSTALL_TARGET="rpm_install"
3319
 
        fi
3320
 
else
3321
 
        BUILD_TARGET="library_build"
3322
 
        INSTALL_TARGET="library_install"
3323
 
fi
3324
 
 
3325
 
# This is where we handle stuff that autoconf can't handle: compiler,
3326
 
# preprocessor and load flags, libraries that the standard tests don't
3327
 
# look for.  The default optimization is -O.  We would like to set the
3328
 
# default optimization for systems using gcc to -O2, but we can't.  By
3329
 
# the time we know we're using gcc, it's too late to set optimization
3330
 
# flags.
3331
 
#
3332
 
# There are additional libraries we need for some compiler/architecture
3333
 
# combinations.
3334
 
#
3335
 
# Some architectures require DB to be compiled with special flags and/or
3336
 
# libraries for threaded applications
3337
 
#
3338
 
# The makefile CC may be different than the CC used in config testing,
3339
 
# because the makefile CC may be set to use $(LIBTOOL).
3340
 
#
3341
 
# XXX
3342
 
# Don't override anything if it's already set from the environment.
3343
 
optimize_def="-O"
3344
 
MAKEFILE_MAYBE_WIN32=""
3345
 
SOFLAGS=""
3346
 
case "$host_os" in
3347
 
aix4.3.*|aix5*)
3348
 
        optimize_def="-O2"
3349
 
        CC=${CC-"xlc_r"}
3350
 
        CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
3351
 
        LDFLAGS="$LDFLAGS -Wl,-brtl";;
3352
 
bsdi3*) optimize_def="-O2"
3353
 
        CC=${CC-"shlicc2"}
3354
 
        LIBS="$LIBS -lipc";;
3355
 
bsdi*)  optimize_def="-O2";;
3356
 
freebsd*)
3357
 
        optimize_def="-O2"
3358
 
        CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
3359
 
        LDFLAGS="$LDFLAGS -pthread";;
3360
 
hpux*)  CPPFLAGS="$CPPFLAGS -D_REENTRANT";;
3361
 
irix*)  optimize_def="-O2"
3362
 
        CPPFLAGS="$CPPFLAGS -D_SGI_MP_SOURCE";;
3363
 
linux*) optimize_def="-O2"
3364
 
        CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_REENTRANT";;
3365
 
mingw*) optimize_def="-O2"
3366
 
        SOFLAGS="-no-undefined"
3367
 
        ADDITIONAL_OBJS="os_type.lo $ADDITIONAL_OBJS"
3368
 
        MAKEFILE_MAYBE_WIN32="_win32"
3369
 
        cat >>confdefs.h <<\_ACEOF
3370
 
#define DB_WIN32 1
3371
 
_ACEOF
3372
 
 
3373
 
 
3374
 
;;
3375
 
mpeix*) CPPFLAGS="$CPPFLAGS -D_POSIX_SOURCE -D_SOCKET_SOURCE"
3376
 
        LIBS="$LIBS -lsocket -lsvipc";;
3377
 
osf*)   CPPFLAGS="$CPPFLAGS -D_REENTRANT"
3378
 
        LDFLAGS="$LDFLAGS -pthread";;
3379
 
*qnx)   cat >>confdefs.h <<\_ACEOF
3380
 
#define HAVE_QNX 1
3381
 
_ACEOF
3382
 
 
3383
 
 
3384
 
;;
3385
 
solaris*)
3386
 
        CPPFLAGS="$CPPFLAGS -D_REENTRANT";;
3387
 
esac
3388
 
 
3389
 
# Set CFLAGS/CXXFLAGS.  We MUST set the flags before we call autoconf
3390
 
# compiler configuration macros, because if we don't, they set CFLAGS
3391
 
# to no optimization and -g, which isn't what we want.
3392
 
CFLAGS=${CFLAGS-$optimize_def}
3393
 
CXXFLAGS=${CXXFLAGS-"$CFLAGS"}
3394
 
 
3395
 
# If the user wants a debugging environment, add -g to the CFLAGS value.
3396
 
#
3397
 
# XXX
3398
 
# Some compilers can't mix optimizing and debug flags.  The only way to
3399
 
# handle this is to specify CFLAGS in the environment before configuring.
3400
 
if test "$db_cv_debug" = yes; then
3401
 
        cat >>confdefs.h <<\_ACEOF
3402
 
#define DEBUG 1
3403
 
_ACEOF
3404
 
 
3405
 
 
3406
 
 
3407
 
 
3408
 
        CFLAGS="$CFLAGS -g"
3409
 
        CXXFLAGS="$CXXFLAGS -g"
3410
 
fi
3411
 
 
3412
 
# The default compiler is cc (NOT gcc), the default CFLAGS is as specified
3413
 
# above, NOT what is set by AC_PROG_CC, as it won't set optimization flags
3414
 
# for any compiler other than gcc.
3415
 
ac_ext=c
3416
 
ac_cpp='$CPP $CPPFLAGS'
3417
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3418
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3420
 
if test -n "$ac_tool_prefix"; then
3421
 
  for ac_prog in cc gcc
3422
 
  do
3423
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3424
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3425
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3426
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3427
 
if test "${ac_cv_prog_CC+set}" = set; then
3428
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3429
 
else
3430
 
  if test -n "$CC"; then
3431
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3432
 
else
3433
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434
 
for as_dir in $PATH
3435
 
do
3436
 
  IFS=$as_save_IFS
3437
 
  test -z "$as_dir" && as_dir=.
3438
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3439
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3440
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3441
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3442
 
    break 2
3443
 
  fi
3444
 
done
3445
 
done
3446
 
 
3447
 
fi
3448
 
fi
3449
 
CC=$ac_cv_prog_CC
3450
 
if test -n "$CC"; then
3451
 
  echo "$as_me:$LINENO: result: $CC" >&5
3452
 
echo "${ECHO_T}$CC" >&6
3453
 
else
3454
 
  echo "$as_me:$LINENO: result: no" >&5
3455
 
echo "${ECHO_T}no" >&6
3456
 
fi
3457
 
 
3458
 
    test -n "$CC" && break
3459
 
  done
3460
 
fi
3461
 
if test -z "$CC"; then
3462
 
  ac_ct_CC=$CC
3463
 
  for ac_prog in cc gcc
3464
 
do
3465
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3466
 
set dummy $ac_prog; ac_word=$2
3467
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3468
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3469
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3470
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3471
 
else
3472
 
  if test -n "$ac_ct_CC"; then
3473
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3474
 
else
3475
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476
 
for as_dir in $PATH
3477
 
do
3478
 
  IFS=$as_save_IFS
3479
 
  test -z "$as_dir" && as_dir=.
3480
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3481
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3482
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
3483
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3484
 
    break 2
3485
 
  fi
3486
 
done
3487
 
done
3488
 
 
3489
 
fi
3490
 
fi
3491
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3492
 
if test -n "$ac_ct_CC"; then
3493
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3494
 
echo "${ECHO_T}$ac_ct_CC" >&6
3495
 
else
3496
 
  echo "$as_me:$LINENO: result: no" >&5
3497
 
echo "${ECHO_T}no" >&6
3498
 
fi
3499
 
 
3500
 
  test -n "$ac_ct_CC" && break
3501
 
done
3502
 
 
3503
 
  CC=$ac_ct_CC
3504
 
fi
3505
 
 
3506
 
 
3507
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3508
 
See \`config.log' for more details." >&5
3509
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
3510
 
See \`config.log' for more details." >&2;}
3511
 
   { (exit 1); exit 1; }; }
3512
 
 
3513
 
# Provide some information about the compiler.
3514
 
echo "$as_me:$LINENO:" \
3515
 
     "checking for C compiler version" >&5
3516
 
ac_compiler=`set X $ac_compile; echo $2`
3517
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3518
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
3519
 
  ac_status=$?
3520
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521
 
  (exit $ac_status); }
3522
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3523
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
3524
 
  ac_status=$?
3525
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526
 
  (exit $ac_status); }
3527
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3528
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
3529
 
  ac_status=$?
3530
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531
 
  (exit $ac_status); }
3532
 
 
3533
 
cat >conftest.$ac_ext <<_ACEOF
3534
 
#line $LINENO "configure"
3535
 
/* confdefs.h.  */
3536
 
_ACEOF
3537
 
cat confdefs.h >>conftest.$ac_ext
3538
 
cat >>conftest.$ac_ext <<_ACEOF
3539
 
/* end confdefs.h.  */
3540
 
 
3541
 
int
3542
 
main ()
3543
 
{
3544
 
 
3545
 
  ;
3546
 
  return 0;
3547
 
}
3548
 
_ACEOF
3549
 
ac_clean_files_save=$ac_clean_files
3550
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3551
 
# Try to create an executable without -o first, disregard a.out.
3552
 
# It will help us diagnose broken compilers, and finding out an intuition
3553
 
# of exeext.
3554
 
echo "$as_me:$LINENO: checking for C compiler default output" >&5
3555
 
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
3556
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3557
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3558
 
  (eval $ac_link_default) 2>&5
3559
 
  ac_status=$?
3560
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561
 
  (exit $ac_status); }; then
3562
 
  # Find the output, starting from the most likely.  This scheme is
3563
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3564
 
# resort.
3565
 
 
3566
 
# Be careful to initialize this variable, since it used to be cached.
3567
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3568
 
ac_cv_exeext=
3569
 
# b.out is created by i960 compilers.
3570
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3571
 
do
3572
 
  test -f "$ac_file" || continue
3573
 
  case $ac_file in
3574
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3575
 
        ;;
3576
 
    conftest.$ac_ext )
3577
 
        # This is the source file.
3578
 
        ;;
3579
 
    [ab].out )
3580
 
        # We found the default executable, but exeext='' is most
3581
 
        # certainly right.
3582
 
        break;;
3583
 
    *.* )
3584
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3585
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
3586
 
        # but it would be cool to find out if it's true.  Does anybody
3587
 
        # maintain Libtool? --akim.
3588
 
        export ac_cv_exeext
3589
 
        break;;
3590
 
    * )
3591
 
        break;;
3592
 
  esac
3593
 
done
3594
 
else
3595
 
  echo "$as_me: failed program was:" >&5
3596
 
sed 's/^/| /' conftest.$ac_ext >&5
3597
 
 
3598
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3599
 
See \`config.log' for more details." >&5
3600
 
echo "$as_me: error: C compiler cannot create executables
3601
 
See \`config.log' for more details." >&2;}
3602
 
   { (exit 77); exit 77; }; }
3603
 
fi
3604
 
 
3605
 
ac_exeext=$ac_cv_exeext
3606
 
echo "$as_me:$LINENO: result: $ac_file" >&5
3607
 
echo "${ECHO_T}$ac_file" >&6
3608
 
 
3609
 
# Check the compiler produces executables we can run.  If not, either
3610
 
# the compiler is broken, or we cross compile.
3611
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3612
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3613
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3614
 
# If not cross compiling, check that we can run a simple program.
3615
 
if test "$cross_compiling" != yes; then
3616
 
  if { ac_try='./$ac_file'
3617
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618
 
  (eval $ac_try) 2>&5
3619
 
  ac_status=$?
3620
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621
 
  (exit $ac_status); }; }; then
3622
 
    cross_compiling=no
3623
 
  else
3624
 
    if test "$cross_compiling" = maybe; then
3625
 
        cross_compiling=yes
3626
 
    else
3627
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3628
 
If you meant to cross compile, use \`--host'.
3629
 
See \`config.log' for more details." >&5
3630
 
echo "$as_me: error: cannot run C compiled programs.
3631
 
If you meant to cross compile, use \`--host'.
3632
 
See \`config.log' for more details." >&2;}
3633
 
   { (exit 1); exit 1; }; }
3634
 
    fi
3635
 
  fi
3636
 
fi
3637
 
echo "$as_me:$LINENO: result: yes" >&5
3638
 
echo "${ECHO_T}yes" >&6
3639
 
 
3640
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3641
 
ac_clean_files=$ac_clean_files_save
3642
 
# Check the compiler produces executables we can run.  If not, either
3643
 
# the compiler is broken, or we cross compile.
3644
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3645
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3646
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
3647
 
echo "${ECHO_T}$cross_compiling" >&6
3648
 
 
3649
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
3650
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3651
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3652
 
  (eval $ac_link) 2>&5
3653
 
  ac_status=$?
3654
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655
 
  (exit $ac_status); }; then
3656
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3657
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3658
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
3659
 
# `rm'.
3660
 
for ac_file in conftest.exe conftest conftest.*; do
3661
 
  test -f "$ac_file" || continue
3662
 
  case $ac_file in
3663
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3664
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3665
 
          export ac_cv_exeext
3666
 
          break;;
3667
 
    * ) break;;
3668
 
  esac
3669
 
done
3670
 
else
3671
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3672
 
See \`config.log' for more details." >&5
3673
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3674
 
See \`config.log' for more details." >&2;}
3675
 
   { (exit 1); exit 1; }; }
3676
 
fi
3677
 
 
3678
 
rm -f conftest$ac_cv_exeext
3679
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3680
 
echo "${ECHO_T}$ac_cv_exeext" >&6
3681
 
 
3682
 
rm -f conftest.$ac_ext
3683
 
EXEEXT=$ac_cv_exeext
3684
 
ac_exeext=$EXEEXT
3685
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
3686
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3687
 
if test "${ac_cv_objext+set}" = set; then
3688
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3689
 
else
3690
 
  cat >conftest.$ac_ext <<_ACEOF
3691
 
#line $LINENO "configure"
3692
 
/* confdefs.h.  */
3693
 
_ACEOF
3694
 
cat confdefs.h >>conftest.$ac_ext
3695
 
cat >>conftest.$ac_ext <<_ACEOF
3696
 
/* end confdefs.h.  */
3697
 
 
3698
 
int
3699
 
main ()
3700
 
{
3701
 
 
3702
 
  ;
3703
 
  return 0;
3704
 
}
3705
 
_ACEOF
3706
 
rm -f conftest.o conftest.obj
3707
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3708
 
  (eval $ac_compile) 2>&5
3709
 
  ac_status=$?
3710
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711
 
  (exit $ac_status); }; then
3712
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3713
 
  case $ac_file in
3714
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3715
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3716
 
       break;;
3717
 
  esac
3718
 
done
3719
 
else
3720
 
  echo "$as_me: failed program was:" >&5
3721
 
sed 's/^/| /' conftest.$ac_ext >&5
3722
 
 
3723
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3724
 
See \`config.log' for more details." >&5
3725
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3726
 
See \`config.log' for more details." >&2;}
3727
 
   { (exit 1); exit 1; }; }
3728
 
fi
3729
 
 
3730
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3731
 
fi
3732
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3733
 
echo "${ECHO_T}$ac_cv_objext" >&6
3734
 
OBJEXT=$ac_cv_objext
3735
 
ac_objext=$OBJEXT
3736
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3737
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3738
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3739
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3740
 
else
3741
 
  cat >conftest.$ac_ext <<_ACEOF
3742
 
#line $LINENO "configure"
3743
 
/* confdefs.h.  */
3744
 
_ACEOF
3745
 
cat confdefs.h >>conftest.$ac_ext
3746
 
cat >>conftest.$ac_ext <<_ACEOF
3747
 
/* end confdefs.h.  */
3748
 
 
3749
 
int
3750
 
main ()
3751
 
{
3752
 
#ifndef __GNUC__
3753
 
       choke me
3754
 
#endif
3755
 
 
3756
 
  ;
3757
 
  return 0;
3758
 
}
3759
 
_ACEOF
3760
 
rm -f conftest.$ac_objext
3761
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3762
 
  (eval $ac_compile) 2>&5
3763
 
  ac_status=$?
3764
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765
 
  (exit $ac_status); } &&
3766
 
         { ac_try='test -s conftest.$ac_objext'
3767
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768
 
  (eval $ac_try) 2>&5
3769
 
  ac_status=$?
3770
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771
 
  (exit $ac_status); }; }; then
3772
 
  ac_compiler_gnu=yes
3773
 
else
3774
 
  echo "$as_me: failed program was:" >&5
3775
 
sed 's/^/| /' conftest.$ac_ext >&5
3776
 
 
3777
 
ac_compiler_gnu=no
3778
 
fi
3779
 
rm -f conftest.$ac_objext conftest.$ac_ext
3780
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3781
 
 
3782
 
fi
3783
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3784
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3785
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
3786
 
ac_test_CFLAGS=${CFLAGS+set}
3787
 
ac_save_CFLAGS=$CFLAGS
3788
 
CFLAGS="-g"
3789
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3790
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3791
 
if test "${ac_cv_prog_cc_g+set}" = set; then
3792
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3793
 
else
3794
 
  cat >conftest.$ac_ext <<_ACEOF
3795
 
#line $LINENO "configure"
3796
 
/* confdefs.h.  */
3797
 
_ACEOF
3798
 
cat confdefs.h >>conftest.$ac_ext
3799
 
cat >>conftest.$ac_ext <<_ACEOF
3800
 
/* end confdefs.h.  */
3801
 
 
3802
 
int
3803
 
main ()
3804
 
{
3805
 
 
3806
 
  ;
3807
 
  return 0;
3808
 
}
3809
 
_ACEOF
3810
 
rm -f conftest.$ac_objext
3811
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3812
 
  (eval $ac_compile) 2>&5
3813
 
  ac_status=$?
3814
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815
 
  (exit $ac_status); } &&
3816
 
         { ac_try='test -s conftest.$ac_objext'
3817
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818
 
  (eval $ac_try) 2>&5
3819
 
  ac_status=$?
3820
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821
 
  (exit $ac_status); }; }; then
3822
 
  ac_cv_prog_cc_g=yes
3823
 
else
3824
 
  echo "$as_me: failed program was:" >&5
3825
 
sed 's/^/| /' conftest.$ac_ext >&5
3826
 
 
3827
 
ac_cv_prog_cc_g=no
3828
 
fi
3829
 
rm -f conftest.$ac_objext conftest.$ac_ext
3830
 
fi
3831
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3832
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3833
 
if test "$ac_test_CFLAGS" = set; then
3834
 
  CFLAGS=$ac_save_CFLAGS
3835
 
elif test $ac_cv_prog_cc_g = yes; then
3836
 
  if test "$GCC" = yes; then
3837
 
    CFLAGS="-g -O2"
3838
 
  else
3839
 
    CFLAGS="-g"
3840
 
  fi
3841
 
else
3842
 
  if test "$GCC" = yes; then
3843
 
    CFLAGS="-O2"
3844
 
  else
3845
 
    CFLAGS=
3846
 
  fi
3847
 
fi
3848
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3849
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3850
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3851
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3852
 
else
3853
 
  ac_cv_prog_cc_stdc=no
3854
 
ac_save_CC=$CC
3855
 
cat >conftest.$ac_ext <<_ACEOF
3856
 
#line $LINENO "configure"
3857
 
/* confdefs.h.  */
3858
 
_ACEOF
3859
 
cat confdefs.h >>conftest.$ac_ext
3860
 
cat >>conftest.$ac_ext <<_ACEOF
3861
 
/* end confdefs.h.  */
3862
 
#include <stdarg.h>
3863
 
#include <stdio.h>
3864
 
#include <sys/types.h>
3865
 
#include <sys/stat.h>
3866
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3867
 
struct buf { int x; };
3868
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3869
 
static char *e (p, i)
3870
 
     char **p;
3871
 
     int i;
3872
 
{
3873
 
  return p[i];
3874
 
}
3875
 
static char *f (char * (*g) (char **, int), char **p, ...)
3876
 
{
3877
 
  char *s;
3878
 
  va_list v;
3879
 
  va_start (v,p);
3880
 
  s = g (p, va_arg (v,int));
3881
 
  va_end (v);
3882
 
  return s;
3883
 
}
3884
 
int test (int i, double x);
3885
 
struct s1 {int (*f) (int a);};
3886
 
struct s2 {int (*f) (double a);};
3887
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3888
 
int argc;
3889
 
char **argv;
3890
 
int
3891
 
main ()
3892
 
{
3893
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3894
 
  ;
3895
 
  return 0;
3896
 
}
3897
 
_ACEOF
3898
 
# Don't try gcc -ansi; that turns off useful extensions and
3899
 
# breaks some systems' header files.
3900
 
# AIX                   -qlanglvl=ansi
3901
 
# Ultrix and OSF/1      -std1
3902
 
# HP-UX 10.20 and later -Ae
3903
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
3904
 
# SVR4                  -Xc -D__EXTENSIONS__
3905
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3906
 
do
3907
 
  CC="$ac_save_CC $ac_arg"
3908
 
  rm -f conftest.$ac_objext
3909
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910
 
  (eval $ac_compile) 2>&5
3911
 
  ac_status=$?
3912
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913
 
  (exit $ac_status); } &&
3914
 
         { ac_try='test -s conftest.$ac_objext'
3915
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916
 
  (eval $ac_try) 2>&5
3917
 
  ac_status=$?
3918
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919
 
  (exit $ac_status); }; }; then
3920
 
  ac_cv_prog_cc_stdc=$ac_arg
3921
 
break
3922
 
else
3923
 
  echo "$as_me: failed program was:" >&5
3924
 
sed 's/^/| /' conftest.$ac_ext >&5
3925
 
 
3926
 
fi
3927
 
rm -f conftest.$ac_objext
3928
 
done
3929
 
rm -f conftest.$ac_ext conftest.$ac_objext
3930
 
CC=$ac_save_CC
3931
 
 
3932
 
fi
3933
 
 
3934
 
case "x$ac_cv_prog_cc_stdc" in
3935
 
  x|xno)
3936
 
    echo "$as_me:$LINENO: result: none needed" >&5
3937
 
echo "${ECHO_T}none needed" >&6 ;;
3938
 
  *)
3939
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3940
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3941
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
3942
 
esac
3943
 
 
3944
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
3945
 
# in C++ we need to declare it.  In case someone uses the same compiler
3946
 
# for both compiling C and C++ we need to have the C++ compiler decide
3947
 
# the declaration of exit, since it's the most demanding environment.
3948
 
cat >conftest.$ac_ext <<_ACEOF
3949
 
#ifndef __cplusplus
3950
 
  choke me
3951
 
#endif
3952
 
_ACEOF
3953
 
rm -f conftest.$ac_objext
3954
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3955
 
  (eval $ac_compile) 2>&5
3956
 
  ac_status=$?
3957
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958
 
  (exit $ac_status); } &&
3959
 
         { ac_try='test -s conftest.$ac_objext'
3960
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961
 
  (eval $ac_try) 2>&5
3962
 
  ac_status=$?
3963
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964
 
  (exit $ac_status); }; }; then
3965
 
  for ac_declaration in \
3966
 
   ''\
3967
 
   '#include <stdlib.h>' \
3968
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
3969
 
   'extern "C" void std::exit (int); using std::exit;' \
3970
 
   'extern "C" void exit (int) throw ();' \
3971
 
   'extern "C" void exit (int);' \
3972
 
   'void exit (int);'
3973
 
do
3974
 
  cat >conftest.$ac_ext <<_ACEOF
3975
 
#line $LINENO "configure"
3976
 
/* confdefs.h.  */
3977
 
_ACEOF
3978
 
cat confdefs.h >>conftest.$ac_ext
3979
 
cat >>conftest.$ac_ext <<_ACEOF
3980
 
/* end confdefs.h.  */
3981
 
#include <stdlib.h>
3982
 
$ac_declaration
3983
 
int
3984
 
main ()
3985
 
{
3986
 
exit (42);
3987
 
  ;
3988
 
  return 0;
3989
 
}
3990
 
_ACEOF
3991
 
rm -f conftest.$ac_objext
3992
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993
 
  (eval $ac_compile) 2>&5
3994
 
  ac_status=$?
3995
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996
 
  (exit $ac_status); } &&
3997
 
         { ac_try='test -s conftest.$ac_objext'
3998
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999
 
  (eval $ac_try) 2>&5
4000
 
  ac_status=$?
4001
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002
 
  (exit $ac_status); }; }; then
4003
 
  :
4004
 
else
4005
 
  echo "$as_me: failed program was:" >&5
4006
 
sed 's/^/| /' conftest.$ac_ext >&5
4007
 
 
4008
 
continue
4009
 
fi
4010
 
rm -f conftest.$ac_objext conftest.$ac_ext
4011
 
  cat >conftest.$ac_ext <<_ACEOF
4012
 
#line $LINENO "configure"
4013
 
/* confdefs.h.  */
4014
 
_ACEOF
4015
 
cat confdefs.h >>conftest.$ac_ext
4016
 
cat >>conftest.$ac_ext <<_ACEOF
4017
 
/* end confdefs.h.  */
4018
 
$ac_declaration
4019
 
int
4020
 
main ()
4021
 
{
4022
 
exit (42);
4023
 
  ;
4024
 
  return 0;
4025
 
}
4026
 
_ACEOF
4027
 
rm -f conftest.$ac_objext
4028
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4029
 
  (eval $ac_compile) 2>&5
4030
 
  ac_status=$?
4031
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032
 
  (exit $ac_status); } &&
4033
 
         { ac_try='test -s conftest.$ac_objext'
4034
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035
 
  (eval $ac_try) 2>&5
4036
 
  ac_status=$?
4037
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038
 
  (exit $ac_status); }; }; then
4039
 
  break
4040
 
else
4041
 
  echo "$as_me: failed program was:" >&5
4042
 
sed 's/^/| /' conftest.$ac_ext >&5
4043
 
 
4044
 
fi
4045
 
rm -f conftest.$ac_objext conftest.$ac_ext
4046
 
done
4047
 
rm -f conftest*
4048
 
if test -n "$ac_declaration"; then
4049
 
  echo '#ifdef __cplusplus' >>confdefs.h
4050
 
  echo $ac_declaration      >>confdefs.h
4051
 
  echo '#endif'             >>confdefs.h
4052
 
fi
4053
 
 
4054
 
else
4055
 
  echo "$as_me: failed program was:" >&5
4056
 
sed 's/^/| /' conftest.$ac_ext >&5
4057
 
 
4058
 
fi
4059
 
rm -f conftest.$ac_objext conftest.$ac_ext
4060
 
ac_ext=c
4061
 
ac_cpp='$CPP $CPPFLAGS'
4062
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4063
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4065
 
 
4066
 
 
4067
 
# Because of shared library building, the ${CC} used for config tests
4068
 
# may be different than the ${CC} we want to put in the Makefile.
4069
 
# The latter is known as ${MAKEFILE_CC} in this script.
4070
 
MAKEFILE_CC="${CC}"
4071
 
MAKEFILE_CCLINK="${CC}"
4072
 
MAKEFILE_CXX="nocxx"
4073
 
MAKEFILE_CXXLINK="nocxx"
4074
 
 
4075
 
# See if we need the C++ compiler at all.  If so, we'd like to find one that
4076
 
# interoperates with the C compiler we chose.  Since we prefered cc over gcc,
4077
 
# we'll also prefer the vendor's compiler over g++/gcc.  If we're wrong, the
4078
 
# user can set CC and CXX in their environment before running configure.
4079
 
#
4080
 
# AC_PROG_CXX sets CXX, but it uses $CXX and $CCC (in that order) as its
4081
 
# first choices.
4082
 
if test "$db_cv_cxx" = "yes"; then
4083
 
        if test "$GCC" != "yes"; then
4084
 
                case "$host_os" in
4085
 
                aix*)           if test -n "$ac_tool_prefix"; then
4086
 
  # Extract the first word of "${ac_tool_prefix}xlC_r", so it can be a program name with args.
4087
 
set dummy ${ac_tool_prefix}xlC_r; ac_word=$2
4088
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4089
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4090
 
if test "${ac_cv_prog_CCC+set}" = set; then
4091
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4092
 
else
4093
 
  if test -n "$CCC"; then
4094
 
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
4095
 
else
4096
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097
 
for as_dir in $PATH
4098
 
do
4099
 
  IFS=$as_save_IFS
4100
 
  test -z "$as_dir" && as_dir=.
4101
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4102
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4103
 
    ac_cv_prog_CCC="${ac_tool_prefix}xlC_r"
4104
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4105
 
    break 2
4106
 
  fi
4107
 
done
4108
 
done
4109
 
 
4110
 
fi
4111
 
fi
4112
 
CCC=$ac_cv_prog_CCC
4113
 
if test -n "$CCC"; then
4114
 
  echo "$as_me:$LINENO: result: $CCC" >&5
4115
 
echo "${ECHO_T}$CCC" >&6
4116
 
else
4117
 
  echo "$as_me:$LINENO: result: no" >&5
4118
 
echo "${ECHO_T}no" >&6
4119
 
fi
4120
 
 
4121
 
fi
4122
 
if test -z "$ac_cv_prog_CCC"; then
4123
 
  ac_ct_CCC=$CCC
4124
 
  # Extract the first word of "xlC_r", so it can be a program name with args.
4125
 
set dummy xlC_r; ac_word=$2
4126
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4127
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4128
 
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
4129
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4130
 
else
4131
 
  if test -n "$ac_ct_CCC"; then
4132
 
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
4133
 
else
4134
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135
 
for as_dir in $PATH
4136
 
do
4137
 
  IFS=$as_save_IFS
4138
 
  test -z "$as_dir" && as_dir=.
4139
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4140
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4141
 
    ac_cv_prog_ac_ct_CCC="xlC_r"
4142
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143
 
    break 2
4144
 
  fi
4145
 
done
4146
 
done
4147
 
 
4148
 
fi
4149
 
fi
4150
 
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
4151
 
if test -n "$ac_ct_CCC"; then
4152
 
  echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
4153
 
echo "${ECHO_T}$ac_ct_CCC" >&6
4154
 
else
4155
 
  echo "$as_me:$LINENO: result: no" >&5
4156
 
echo "${ECHO_T}no" >&6
4157
 
fi
4158
 
 
4159
 
  CCC=$ac_ct_CCC
4160
 
else
4161
 
  CCC="$ac_cv_prog_CCC"
4162
 
fi
4163
 
 
4164
 
                                LIBXSO_LIBS="-lC_r $LIBXSO_LIBS"
4165
 
                                LIBS="-lC_r $LIBS";;
4166
 
                hpux*)          if test -n "$ac_tool_prefix"; then
4167
 
  # Extract the first word of "${ac_tool_prefix}aCC", so it can be a program name with args.
4168
 
set dummy ${ac_tool_prefix}aCC; ac_word=$2
4169
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4170
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4171
 
if test "${ac_cv_prog_CCC+set}" = set; then
4172
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4173
 
else
4174
 
  if test -n "$CCC"; then
4175
 
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
4176
 
else
4177
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178
 
for as_dir in $PATH
4179
 
do
4180
 
  IFS=$as_save_IFS
4181
 
  test -z "$as_dir" && as_dir=.
4182
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4183
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4184
 
    ac_cv_prog_CCC="${ac_tool_prefix}aCC"
4185
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4186
 
    break 2
4187
 
  fi
4188
 
done
4189
 
done
4190
 
 
4191
 
fi
4192
 
fi
4193
 
CCC=$ac_cv_prog_CCC
4194
 
if test -n "$CCC"; then
4195
 
  echo "$as_me:$LINENO: result: $CCC" >&5
4196
 
echo "${ECHO_T}$CCC" >&6
4197
 
else
4198
 
  echo "$as_me:$LINENO: result: no" >&5
4199
 
echo "${ECHO_T}no" >&6
4200
 
fi
4201
 
 
4202
 
fi
4203
 
if test -z "$ac_cv_prog_CCC"; then
4204
 
  ac_ct_CCC=$CCC
4205
 
  # Extract the first word of "aCC", so it can be a program name with args.
4206
 
set dummy aCC; ac_word=$2
4207
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4208
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4209
 
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
4210
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4211
 
else
4212
 
  if test -n "$ac_ct_CCC"; then
4213
 
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
4214
 
else
4215
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216
 
for as_dir in $PATH
4217
 
do
4218
 
  IFS=$as_save_IFS
4219
 
  test -z "$as_dir" && as_dir=.
4220
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4221
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222
 
    ac_cv_prog_ac_ct_CCC="aCC"
4223
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4224
 
    break 2
4225
 
  fi
4226
 
done
4227
 
done
4228
 
 
4229
 
fi
4230
 
fi
4231
 
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
4232
 
if test -n "$ac_ct_CCC"; then
4233
 
  echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
4234
 
echo "${ECHO_T}$ac_ct_CCC" >&6
4235
 
else
4236
 
  echo "$as_me:$LINENO: result: no" >&5
4237
 
echo "${ECHO_T}no" >&6
4238
 
fi
4239
 
 
4240
 
  CCC=$ac_ct_CCC
4241
 
else
4242
 
  CCC="$ac_cv_prog_CCC"
4243
 
fi
4244
 
;;
4245
 
                irix*)          if test -n "$ac_tool_prefix"; then
4246
 
  # Extract the first word of "${ac_tool_prefix}CC", so it can be a program name with args.
4247
 
set dummy ${ac_tool_prefix}CC; ac_word=$2
4248
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4249
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4250
 
if test "${ac_cv_prog_CCC+set}" = set; then
4251
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4252
 
else
4253
 
  if test -n "$CCC"; then
4254
 
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
4255
 
else
4256
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257
 
for as_dir in $PATH
4258
 
do
4259
 
  IFS=$as_save_IFS
4260
 
  test -z "$as_dir" && as_dir=.
4261
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4262
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4263
 
    ac_cv_prog_CCC="${ac_tool_prefix}CC"
4264
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4265
 
    break 2
4266
 
  fi
4267
 
done
4268
 
done
4269
 
 
4270
 
fi
4271
 
fi
4272
 
CCC=$ac_cv_prog_CCC
4273
 
if test -n "$CCC"; then
4274
 
  echo "$as_me:$LINENO: result: $CCC" >&5
4275
 
echo "${ECHO_T}$CCC" >&6
4276
 
else
4277
 
  echo "$as_me:$LINENO: result: no" >&5
4278
 
echo "${ECHO_T}no" >&6
4279
 
fi
4280
 
 
4281
 
fi
4282
 
if test -z "$ac_cv_prog_CCC"; then
4283
 
  ac_ct_CCC=$CCC
4284
 
  # Extract the first word of "CC", so it can be a program name with args.
4285
 
set dummy CC; ac_word=$2
4286
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4287
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4288
 
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
4289
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4290
 
else
4291
 
  if test -n "$ac_ct_CCC"; then
4292
 
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
4293
 
else
4294
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295
 
for as_dir in $PATH
4296
 
do
4297
 
  IFS=$as_save_IFS
4298
 
  test -z "$as_dir" && as_dir=.
4299
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4300
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301
 
    ac_cv_prog_ac_ct_CCC="CC"
4302
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303
 
    break 2
4304
 
  fi
4305
 
done
4306
 
done
4307
 
 
4308
 
fi
4309
 
fi
4310
 
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
4311
 
if test -n "$ac_ct_CCC"; then
4312
 
  echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
4313
 
echo "${ECHO_T}$ac_ct_CCC" >&6
4314
 
else
4315
 
  echo "$as_me:$LINENO: result: no" >&5
4316
 
echo "${ECHO_T}no" >&6
4317
 
fi
4318
 
 
4319
 
  CCC=$ac_ct_CCC
4320
 
else
4321
 
  CCC="$ac_cv_prog_CCC"
4322
 
fi
4323
 
;;
4324
 
                osf*)           if test -n "$ac_tool_prefix"; then
4325
 
  # Extract the first word of "${ac_tool_prefix}cxx", so it can be a program name with args.
4326
 
set dummy ${ac_tool_prefix}cxx; ac_word=$2
4327
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4328
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4329
 
if test "${ac_cv_prog_CCC+set}" = set; then
4330
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4331
 
else
4332
 
  if test -n "$CCC"; then
4333
 
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
4334
 
else
4335
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336
 
for as_dir in $PATH
4337
 
do
4338
 
  IFS=$as_save_IFS
4339
 
  test -z "$as_dir" && as_dir=.
4340
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4341
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342
 
    ac_cv_prog_CCC="${ac_tool_prefix}cxx"
4343
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4344
 
    break 2
4345
 
  fi
4346
 
done
4347
 
done
4348
 
 
4349
 
fi
4350
 
fi
4351
 
CCC=$ac_cv_prog_CCC
4352
 
if test -n "$CCC"; then
4353
 
  echo "$as_me:$LINENO: result: $CCC" >&5
4354
 
echo "${ECHO_T}$CCC" >&6
4355
 
else
4356
 
  echo "$as_me:$LINENO: result: no" >&5
4357
 
echo "${ECHO_T}no" >&6
4358
 
fi
4359
 
 
4360
 
fi
4361
 
if test -z "$ac_cv_prog_CCC"; then
4362
 
  ac_ct_CCC=$CCC
4363
 
  # Extract the first word of "cxx", so it can be a program name with args.
4364
 
set dummy cxx; ac_word=$2
4365
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4366
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4367
 
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
4368
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4369
 
else
4370
 
  if test -n "$ac_ct_CCC"; then
4371
 
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
4372
 
else
4373
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374
 
for as_dir in $PATH
4375
 
do
4376
 
  IFS=$as_save_IFS
4377
 
  test -z "$as_dir" && as_dir=.
4378
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4379
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4380
 
    ac_cv_prog_ac_ct_CCC="cxx"
4381
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382
 
    break 2
4383
 
  fi
4384
 
done
4385
 
done
4386
 
 
4387
 
fi
4388
 
fi
4389
 
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
4390
 
if test -n "$ac_ct_CCC"; then
4391
 
  echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
4392
 
echo "${ECHO_T}$ac_ct_CCC" >&6
4393
 
else
4394
 
  echo "$as_me:$LINENO: result: no" >&5
4395
 
echo "${ECHO_T}no" >&6
4396
 
fi
4397
 
 
4398
 
  CCC=$ac_ct_CCC
4399
 
else
4400
 
  CCC="$ac_cv_prog_CCC"
4401
 
fi
4402
 
;;
4403
 
                solaris*)       if test -n "$ac_tool_prefix"; then
4404
 
  # Extract the first word of "${ac_tool_prefix}CC", so it can be a program name with args.
4405
 
set dummy ${ac_tool_prefix}CC; ac_word=$2
4406
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4407
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4408
 
if test "${ac_cv_prog_CCC+set}" = set; then
4409
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4410
 
else
4411
 
  if test -n "$CCC"; then
4412
 
  ac_cv_prog_CCC="$CCC" # Let the user override the test.
4413
 
else
4414
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415
 
for as_dir in $PATH
4416
 
do
4417
 
  IFS=$as_save_IFS
4418
 
  test -z "$as_dir" && as_dir=.
4419
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4420
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4421
 
    ac_cv_prog_CCC="${ac_tool_prefix}CC"
4422
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423
 
    break 2
4424
 
  fi
4425
 
done
4426
 
done
4427
 
 
4428
 
fi
4429
 
fi
4430
 
CCC=$ac_cv_prog_CCC
4431
 
if test -n "$CCC"; then
4432
 
  echo "$as_me:$LINENO: result: $CCC" >&5
4433
 
echo "${ECHO_T}$CCC" >&6
4434
 
else
4435
 
  echo "$as_me:$LINENO: result: no" >&5
4436
 
echo "${ECHO_T}no" >&6
4437
 
fi
4438
 
 
4439
 
fi
4440
 
if test -z "$ac_cv_prog_CCC"; then
4441
 
  ac_ct_CCC=$CCC
4442
 
  # Extract the first word of "CC", so it can be a program name with args.
4443
 
set dummy CC; ac_word=$2
4444
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4445
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4446
 
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
4447
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4448
 
else
4449
 
  if test -n "$ac_ct_CCC"; then
4450
 
  ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
4451
 
else
4452
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453
 
for as_dir in $PATH
4454
 
do
4455
 
  IFS=$as_save_IFS
4456
 
  test -z "$as_dir" && as_dir=.
4457
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4458
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459
 
    ac_cv_prog_ac_ct_CCC="CC"
4460
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461
 
    break 2
4462
 
  fi
4463
 
done
4464
 
done
4465
 
 
4466
 
fi
4467
 
fi
4468
 
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
4469
 
if test -n "$ac_ct_CCC"; then
4470
 
  echo "$as_me:$LINENO: result: $ac_ct_CCC" >&5
4471
 
echo "${ECHO_T}$ac_ct_CCC" >&6
4472
 
else
4473
 
  echo "$as_me:$LINENO: result: no" >&5
4474
 
echo "${ECHO_T}no" >&6
4475
 
fi
4476
 
 
4477
 
  CCC=$ac_ct_CCC
4478
 
else
4479
 
  CCC="$ac_cv_prog_CCC"
4480
 
fi
4481
 
;;
4482
 
                esac
4483
 
        fi
4484
 
        ac_ext=cc
4485
 
ac_cpp='$CXXCPP $CPPFLAGS'
4486
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4487
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4488
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4489
 
if test -n "$ac_tool_prefix"; then
4490
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4491
 
  do
4492
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4493
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4494
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4495
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4496
 
if test "${ac_cv_prog_CXX+set}" = set; then
4497
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4498
 
else
4499
 
  if test -n "$CXX"; then
4500
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4501
 
else
4502
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503
 
for as_dir in $PATH
4504
 
do
4505
 
  IFS=$as_save_IFS
4506
 
  test -z "$as_dir" && as_dir=.
4507
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4508
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4509
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4510
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511
 
    break 2
4512
 
  fi
4513
 
done
4514
 
done
4515
 
 
4516
 
fi
4517
 
fi
4518
 
CXX=$ac_cv_prog_CXX
4519
 
if test -n "$CXX"; then
4520
 
  echo "$as_me:$LINENO: result: $CXX" >&5
4521
 
echo "${ECHO_T}$CXX" >&6
4522
 
else
4523
 
  echo "$as_me:$LINENO: result: no" >&5
4524
 
echo "${ECHO_T}no" >&6
4525
 
fi
4526
 
 
4527
 
    test -n "$CXX" && break
4528
 
  done
4529
 
fi
4530
 
if test -z "$CXX"; then
4531
 
  ac_ct_CXX=$CXX
4532
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4533
 
do
4534
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4535
 
set dummy $ac_prog; ac_word=$2
4536
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4537
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4539
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4540
 
else
4541
 
  if test -n "$ac_ct_CXX"; then
4542
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4543
 
else
4544
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545
 
for as_dir in $PATH
4546
 
do
4547
 
  IFS=$as_save_IFS
4548
 
  test -z "$as_dir" && as_dir=.
4549
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4550
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4552
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553
 
    break 2
4554
 
  fi
4555
 
done
4556
 
done
4557
 
 
4558
 
fi
4559
 
fi
4560
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4561
 
if test -n "$ac_ct_CXX"; then
4562
 
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4563
 
echo "${ECHO_T}$ac_ct_CXX" >&6
4564
 
else
4565
 
  echo "$as_me:$LINENO: result: no" >&5
4566
 
echo "${ECHO_T}no" >&6
4567
 
fi
4568
 
 
4569
 
  test -n "$ac_ct_CXX" && break
4570
 
done
4571
 
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4572
 
 
4573
 
  CXX=$ac_ct_CXX
4574
 
fi
4575
 
 
4576
 
 
4577
 
# Provide some information about the compiler.
4578
 
echo "$as_me:$LINENO:" \
4579
 
     "checking for C++ compiler version" >&5
4580
 
ac_compiler=`set X $ac_compile; echo $2`
4581
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4582
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
4583
 
  ac_status=$?
4584
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585
 
  (exit $ac_status); }
4586
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4587
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
4588
 
  ac_status=$?
4589
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590
 
  (exit $ac_status); }
4591
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4592
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
4593
 
  ac_status=$?
4594
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595
 
  (exit $ac_status); }
4596
 
 
4597
 
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4598
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4599
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4600
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4601
 
else
4602
 
  cat >conftest.$ac_ext <<_ACEOF
4603
 
#line $LINENO "configure"
4604
 
/* confdefs.h.  */
4605
 
_ACEOF
4606
 
cat confdefs.h >>conftest.$ac_ext
4607
 
cat >>conftest.$ac_ext <<_ACEOF
4608
 
/* end confdefs.h.  */
4609
 
 
4610
 
int
4611
 
main ()
4612
 
{
4613
 
#ifndef __GNUC__
4614
 
       choke me
4615
 
#endif
4616
 
 
4617
 
  ;
4618
 
  return 0;
4619
 
}
4620
 
_ACEOF
4621
 
rm -f conftest.$ac_objext
4622
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4623
 
  (eval $ac_compile) 2>&5
4624
 
  ac_status=$?
4625
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626
 
  (exit $ac_status); } &&
4627
 
         { ac_try='test -s conftest.$ac_objext'
4628
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629
 
  (eval $ac_try) 2>&5
4630
 
  ac_status=$?
4631
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632
 
  (exit $ac_status); }; }; then
4633
 
  ac_compiler_gnu=yes
4634
 
else
4635
 
  echo "$as_me: failed program was:" >&5
4636
 
sed 's/^/| /' conftest.$ac_ext >&5
4637
 
 
4638
 
ac_compiler_gnu=no
4639
 
fi
4640
 
rm -f conftest.$ac_objext conftest.$ac_ext
4641
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4642
 
 
4643
 
fi
4644
 
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4645
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4646
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
4647
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
4648
 
ac_save_CXXFLAGS=$CXXFLAGS
4649
 
CXXFLAGS="-g"
4650
 
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4651
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4652
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
4653
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4654
 
else
4655
 
  cat >conftest.$ac_ext <<_ACEOF
4656
 
#line $LINENO "configure"
4657
 
/* confdefs.h.  */
4658
 
_ACEOF
4659
 
cat confdefs.h >>conftest.$ac_ext
4660
 
cat >>conftest.$ac_ext <<_ACEOF
4661
 
/* end confdefs.h.  */
4662
 
 
4663
 
int
4664
 
main ()
4665
 
{
4666
 
 
4667
 
  ;
4668
 
  return 0;
4669
 
}
4670
 
_ACEOF
4671
 
rm -f conftest.$ac_objext
4672
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4673
 
  (eval $ac_compile) 2>&5
4674
 
  ac_status=$?
4675
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676
 
  (exit $ac_status); } &&
4677
 
         { ac_try='test -s conftest.$ac_objext'
4678
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679
 
  (eval $ac_try) 2>&5
4680
 
  ac_status=$?
4681
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682
 
  (exit $ac_status); }; }; then
4683
 
  ac_cv_prog_cxx_g=yes
4684
 
else
4685
 
  echo "$as_me: failed program was:" >&5
4686
 
sed 's/^/| /' conftest.$ac_ext >&5
4687
 
 
4688
 
ac_cv_prog_cxx_g=no
4689
 
fi
4690
 
rm -f conftest.$ac_objext conftest.$ac_ext
4691
 
fi
4692
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4693
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4694
 
if test "$ac_test_CXXFLAGS" = set; then
4695
 
  CXXFLAGS=$ac_save_CXXFLAGS
4696
 
elif test $ac_cv_prog_cxx_g = yes; then
4697
 
  if test "$GXX" = yes; then
4698
 
    CXXFLAGS="-g -O2"
4699
 
  else
4700
 
    CXXFLAGS="-g"
4701
 
  fi
4702
 
else
4703
 
  if test "$GXX" = yes; then
4704
 
    CXXFLAGS="-O2"
4705
 
  else
4706
 
    CXXFLAGS=
4707
 
  fi
4708
 
fi
4709
 
for ac_declaration in \
4710
 
   ''\
4711
 
   '#include <stdlib.h>' \
4712
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4713
 
   'extern "C" void std::exit (int); using std::exit;' \
4714
 
   'extern "C" void exit (int) throw ();' \
4715
 
   'extern "C" void exit (int);' \
4716
 
   'void exit (int);'
4717
 
do
4718
 
  cat >conftest.$ac_ext <<_ACEOF
4719
 
#line $LINENO "configure"
4720
 
/* confdefs.h.  */
4721
 
_ACEOF
4722
 
cat confdefs.h >>conftest.$ac_ext
4723
 
cat >>conftest.$ac_ext <<_ACEOF
4724
 
/* end confdefs.h.  */
4725
 
#include <stdlib.h>
4726
 
$ac_declaration
4727
 
int
4728
 
main ()
4729
 
{
4730
 
exit (42);
4731
 
  ;
4732
 
  return 0;
4733
 
}
4734
 
_ACEOF
4735
 
rm -f conftest.$ac_objext
4736
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737
 
  (eval $ac_compile) 2>&5
4738
 
  ac_status=$?
4739
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740
 
  (exit $ac_status); } &&
4741
 
         { ac_try='test -s conftest.$ac_objext'
4742
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743
 
  (eval $ac_try) 2>&5
4744
 
  ac_status=$?
4745
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746
 
  (exit $ac_status); }; }; then
4747
 
  :
4748
 
else
4749
 
  echo "$as_me: failed program was:" >&5
4750
 
sed 's/^/| /' conftest.$ac_ext >&5
4751
 
 
4752
 
continue
4753
 
fi
4754
 
rm -f conftest.$ac_objext conftest.$ac_ext
4755
 
  cat >conftest.$ac_ext <<_ACEOF
4756
 
#line $LINENO "configure"
4757
 
/* confdefs.h.  */
4758
 
_ACEOF
4759
 
cat confdefs.h >>conftest.$ac_ext
4760
 
cat >>conftest.$ac_ext <<_ACEOF
4761
 
/* end confdefs.h.  */
4762
 
$ac_declaration
4763
 
int
4764
 
main ()
4765
 
{
4766
 
exit (42);
4767
 
  ;
4768
 
  return 0;
4769
 
}
4770
 
_ACEOF
4771
 
rm -f conftest.$ac_objext
4772
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4773
 
  (eval $ac_compile) 2>&5
4774
 
  ac_status=$?
4775
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776
 
  (exit $ac_status); } &&
4777
 
         { ac_try='test -s conftest.$ac_objext'
4778
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779
 
  (eval $ac_try) 2>&5
4780
 
  ac_status=$?
4781
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782
 
  (exit $ac_status); }; }; then
4783
 
  break
4784
 
else
4785
 
  echo "$as_me: failed program was:" >&5
4786
 
sed 's/^/| /' conftest.$ac_ext >&5
4787
 
 
4788
 
fi
4789
 
rm -f conftest.$ac_objext conftest.$ac_ext
4790
 
done
4791
 
rm -f conftest*
4792
 
if test -n "$ac_declaration"; then
4793
 
  echo '#ifdef __cplusplus' >>confdefs.h
4794
 
  echo $ac_declaration      >>confdefs.h
4795
 
  echo '#endif'             >>confdefs.h
4796
 
fi
4797
 
 
4798
 
ac_ext=c
4799
 
ac_cpp='$CPP $CPPFLAGS'
4800
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4803
 
 
4804
 
 
4805
 
 
4806
 
 
4807
 
echo "$as_me:$LINENO: checking whether C++ supports the ISO C++ standard includes" >&5
4808
 
echo $ECHO_N "checking whether C++ supports the ISO C++ standard includes... $ECHO_C" >&6
4809
 
if test "${db_cv_cxx_have_stdheaders+set}" = set; then
4810
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4811
 
else
4812
 
 
4813
 
 
4814
 
 ac_ext=cc
4815
 
ac_cpp='$CXXCPP $CPPFLAGS'
4816
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4817
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4818
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4819
 
 
4820
 
 cat >conftest.$ac_ext <<_ACEOF
4821
 
#line $LINENO "configure"
4822
 
/* confdefs.h.  */
4823
 
_ACEOF
4824
 
cat confdefs.h >>conftest.$ac_ext
4825
 
cat >>conftest.$ac_ext <<_ACEOF
4826
 
/* end confdefs.h.  */
4827
 
#include <iostream>
4828
 
 
4829
 
int
4830
 
main ()
4831
 
{
4832
 
std::ostream *o; return 0;
4833
 
  ;
4834
 
  return 0;
4835
 
}
4836
 
_ACEOF
4837
 
rm -f conftest.$ac_objext
4838
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4839
 
  (eval $ac_compile) 2>&5
4840
 
  ac_status=$?
4841
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842
 
  (exit $ac_status); } &&
4843
 
         { ac_try='test -s conftest.$ac_objext'
4844
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845
 
  (eval $ac_try) 2>&5
4846
 
  ac_status=$?
4847
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848
 
  (exit $ac_status); }; }; then
4849
 
  db_cv_cxx_have_stdheaders=yes
4850
 
else
4851
 
  echo "$as_me: failed program was:" >&5
4852
 
sed 's/^/| /' conftest.$ac_ext >&5
4853
 
 
4854
 
db_cv_cxx_have_stdheaders=no
4855
 
fi
4856
 
rm -f conftest.$ac_objext conftest.$ac_ext
4857
 
 ac_ext=c
4858
 
ac_cpp='$CPP $CPPFLAGS'
4859
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4862
 
 
4863
 
 
4864
 
fi
4865
 
echo "$as_me:$LINENO: result: $db_cv_cxx_have_stdheaders" >&5
4866
 
echo "${ECHO_T}$db_cv_cxx_have_stdheaders" >&6
4867
 
if test "$db_cv_cxx_have_stdheaders" = yes; then
4868
 
        cxx_have_stdheaders="#define    HAVE_CXX_STDHEADERS 1"
4869
 
fi
4870
 
        MAKEFILE_CXX="${CXX}"
4871
 
        MAKEFILE_CXXLINK="${CXX}"
4872
 
fi
4873
 
 
4874
 
# Do some gcc specific configuration.
4875
 
 
4876
 
echo "$as_me:$LINENO: checking whether we are using gcc version 2.96" >&5
4877
 
echo $ECHO_N "checking whether we are using gcc version 2.96... $ECHO_C" >&6
4878
 
if test "${db_cv_gcc_2_96+set}" = set; then
4879
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4880
 
else
4881
 
 
4882
 
db_cv_gcc_2_96=no
4883
 
if test "$GCC" = "yes"; then
4884
 
        GCC_VERSION=`${MAKEFILE_CC} --version`
4885
 
        case ${GCC_VERSION} in
4886
 
        2.96*)
4887
 
                db_cv_gcc_2_96=yes;;
4888
 
        esac
4889
 
fi
4890
 
fi
4891
 
echo "$as_me:$LINENO: result: $db_cv_gcc_2_96" >&5
4892
 
echo "${ECHO_T}$db_cv_gcc_2_96" >&6
4893
 
if test "$db_cv_gcc_2_96" = "yes"; then
4894
 
        CFLAGS=`echo "$CFLAGS" | sed 's/-O2/-O/'`
4895
 
        CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2/-O/'`
4896
 
        { echo "$as_me:$LINENO: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&5
4897
 
echo "$as_me: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&2;}
4898
 
        { echo "$as_me:$LINENO: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&5
4899
 
echo "$as_me: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&2;}
4900
 
fi
4901
 
 
4902
 
echo "$as_me:$LINENO: checking whether g++ requires -fhandle-exceptions" >&5
4903
 
echo $ECHO_N "checking whether g++ requires -fhandle-exceptions... $ECHO_C" >&6
4904
 
if test "${db_cv_gxx_except+set}" = set; then
4905
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4906
 
else
4907
 
 
4908
 
db_cv_gxx_except=no;
4909
 
if test "$GXX" = "yes"; then
4910
 
        GXX_VERSION=`${MAKEFILE_CXX} --version`
4911
 
        case ${GXX_VERSION} in
4912
 
        1.*|2.[01234567].*|*-1.*|*-2.[01234567].*)
4913
 
                db_cv_gxx_except=yes;;
4914
 
        esac
4915
 
fi
4916
 
fi
4917
 
echo "$as_me:$LINENO: result: $db_cv_gxx_except" >&5
4918
 
echo "${ECHO_T}$db_cv_gxx_except" >&6
4919
 
if test "$db_cv_gxx_except" = "yes"; then
4920
 
        CXXFLAGS="$CXXFLAGS -fhandle-exceptions"
4921
 
fi
4922
 
 
4923
 
# We need the -Kthread/-pthread flag when compiling on SCO/Caldera's UnixWare
4924
 
# and OpenUNIX releases.  We can't make the test until we know which compiler
4925
 
# we're using.
4926
 
case "$host_os" in
4927
 
sysv5UnixWare*|sysv5OpenUNIX8*)
4928
 
        if test "$GCC" == "yes"; then
4929
 
                CPPFLAGS="$CPPFLAGS -pthread"
4930
 
                LDFLAGS="$LDFLAGS -pthread"
4931
 
        else
4932
 
                CPPFLAGS="$CPPFLAGS -Kthread"
4933
 
                LDFLAGS="$LDFLAGS -Kthread"
4934
 
        fi;;
4935
 
esac
4936
 
 
4937
 
# Export our compiler preferences for the libtool configuration.
4938
 
export CC CCC
4939
 
CCC=CXX
4940
 
 
4941
 
# Libtool configuration.
4942
 
# Check whether --enable-shared or --disable-shared was given.
4943
 
if test "${enable_shared+set}" = set; then
4944
 
  enableval="$enable_shared"
4945
 
  p=${PACKAGE-default}
4946
 
case $enableval in
4947
 
yes) enable_shared=yes ;;
4948
 
no) enable_shared=no ;;
4949
 
*)
4950
 
  enable_shared=no
4951
 
  # Look at the argument we got.  We use all the common list separators.
4952
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4953
 
  for pkg in $enableval; do
4954
 
    if test "X$pkg" = "X$p"; then
4955
 
      enable_shared=yes
4956
 
    fi
4957
 
  done
4958
 
  IFS="$ac_save_ifs"
4959
 
  ;;
4960
 
esac
4961
 
else
4962
 
  enable_shared=yes
4963
 
fi;
4964
 
# Check whether --enable-static or --disable-static was given.
4965
 
if test "${enable_static+set}" = set; then
4966
 
  enableval="$enable_static"
4967
 
  p=${PACKAGE-default}
4968
 
case $enableval in
4969
 
yes) enable_static=yes ;;
4970
 
no) enable_static=no ;;
4971
 
*)
4972
 
  enable_static=no
4973
 
  # Look at the argument we got.  We use all the common list separators.
4974
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4975
 
  for pkg in $enableval; do
4976
 
    if test "X$pkg" = "X$p"; then
4977
 
      enable_static=yes
4978
 
    fi
4979
 
  done
4980
 
  IFS="$ac_save_ifs"
4981
 
  ;;
4982
 
esac
4983
 
else
4984
 
  enable_static=yes
4985
 
fi;
4986
 
# Check whether --enable-fast-install or --disable-fast-install was given.
4987
 
if test "${enable_fast_install+set}" = set; then
4988
 
  enableval="$enable_fast_install"
4989
 
  p=${PACKAGE-default}
4990
 
case $enableval in
4991
 
yes) enable_fast_install=yes ;;
4992
 
no) enable_fast_install=no ;;
4993
 
*)
4994
 
  enable_fast_install=no
4995
 
  # Look at the argument we got.  We use all the common list separators.
4996
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4997
 
  for pkg in $enableval; do
4998
 
    if test "X$pkg" = "X$p"; then
4999
 
      enable_fast_install=yes
5000
 
    fi
5001
 
  done
5002
 
  IFS="$ac_save_ifs"
5003
 
  ;;
5004
 
esac
5005
 
else
5006
 
  enable_fast_install=yes
5007
 
fi;
5008
 
# Find the correct PATH separator.  Usually this is `:', but
5009
 
# DJGPP uses `;' like DOS.
5010
 
if test "X${PATH_SEPARATOR+set}" != Xset; then
5011
 
  UNAME=${UNAME-`uname 2>/dev/null`}
5012
 
  case X$UNAME in
5013
 
    *-DOS) lt_cv_sys_path_separator=';' ;;
5014
 
    *)     lt_cv_sys_path_separator=':' ;;
5015
 
  esac
5016
 
  PATH_SEPARATOR=$lt_cv_sys_path_separator
5017
 
fi
5018
 
 
5019
 
 
5020
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
5021
 
if test "${with_gnu_ld+set}" = set; then
5022
 
  withval="$with_gnu_ld"
5023
 
  test "$withval" = no || with_gnu_ld=yes
5024
 
else
5025
 
  with_gnu_ld=no
5026
 
fi;
5027
 
ac_prog=ld
5028
 
if test "$GCC" = yes; then
5029
 
  # Check if gcc -print-prog-name=ld gives a path.
5030
 
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5031
 
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5032
 
  case $host in
5033
 
  *-*-mingw*)
5034
 
    # gcc leaves a trailing carriage return which upsets mingw
5035
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5036
 
  *)
5037
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5038
 
  esac
5039
 
  case $ac_prog in
5040
 
    # Accept absolute paths.
5041
 
    [\\/]* | [A-Za-z]:[\\/]*)
5042
 
      re_direlt='/[^/][^/]*/\.\./'
5043
 
      # Canonicalize the path of ld
5044
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5045
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5046
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5047
 
      done
5048
 
      test -z "$LD" && LD="$ac_prog"
5049
 
      ;;
5050
 
  "")
5051
 
    # If it fails, then pretend we aren't using GCC.
5052
 
    ac_prog=ld
5053
 
    ;;
5054
 
  *)
5055
 
    # If it is relative, then search for the first ld in PATH.
5056
 
    with_gnu_ld=unknown
5057
 
    ;;
5058
 
  esac
5059
 
elif test "$with_gnu_ld" = yes; then
5060
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
5061
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5062
 
else
5063
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5064
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5065
 
fi
5066
 
if test "${lt_cv_path_LD+set}" = set; then
5067
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5068
 
else
5069
 
  if test -z "$LD"; then
5070
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5071
 
  for ac_dir in $PATH; do
5072
 
    test -z "$ac_dir" && ac_dir=.
5073
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5074
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
5075
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
5076
 
      # but apparently some GNU ld's only accept -v.
5077
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
5078
 
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5079
 
        test "$with_gnu_ld" != no && break
5080
 
      else
5081
 
        test "$with_gnu_ld" != yes && break
5082
 
      fi
5083
 
    fi
5084
 
  done
5085
 
  IFS="$ac_save_ifs"
5086
 
else
5087
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5088
 
fi
5089
 
fi
5090
 
 
5091
 
LD="$lt_cv_path_LD"
5092
 
if test -n "$LD"; then
5093
 
  echo "$as_me:$LINENO: result: $LD" >&5
5094
 
echo "${ECHO_T}$LD" >&6
5095
 
else
5096
 
  echo "$as_me:$LINENO: result: no" >&5
5097
 
echo "${ECHO_T}no" >&6
5098
 
fi
5099
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5100
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5101
 
   { (exit 1); exit 1; }; }
5102
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5103
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5104
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5105
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5106
 
else
5107
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5108
 
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5109
 
  lt_cv_prog_gnu_ld=yes
5110
 
else
5111
 
  lt_cv_prog_gnu_ld=no
5112
 
fi
5113
 
fi
5114
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5115
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5116
 
with_gnu_ld=$lt_cv_prog_gnu_ld
5117
 
 
5118
 
 
5119
 
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5120
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5121
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
5122
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5123
 
else
5124
 
  lt_cv_ld_reload_flag='-r'
5125
 
fi
5126
 
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5127
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5128
 
reload_flag=$lt_cv_ld_reload_flag
5129
 
test -n "$reload_flag" && reload_flag=" $reload_flag"
5130
 
 
5131
 
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5132
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5133
 
if test "${lt_cv_path_NM+set}" = set; then
5134
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5135
 
else
5136
 
  if test -n "$NM"; then
5137
 
  # Let the user override the test.
5138
 
  lt_cv_path_NM="$NM"
5139
 
else
5140
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5141
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5142
 
    test -z "$ac_dir" && ac_dir=.
5143
 
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
5144
 
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5145
 
      # Check to see if the nm accepts a BSD-compat flag.
5146
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5147
 
      #   nm: unknown option "B" ignored
5148
 
      # Tru64's nm complains that /dev/null is an invalid object file
5149
 
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5150
 
        lt_cv_path_NM="$tmp_nm -B"
5151
 
        break
5152
 
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5153
 
        lt_cv_path_NM="$tmp_nm -p"
5154
 
        break
5155
 
      else
5156
 
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5157
 
        continue # so that we can try to find one that supports BSD flags
5158
 
      fi
5159
 
    fi
5160
 
  done
5161
 
  IFS="$ac_save_ifs"
5162
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5163
 
fi
5164
 
fi
5165
 
 
5166
 
NM="$lt_cv_path_NM"
5167
 
echo "$as_me:$LINENO: result: $NM" >&5
5168
 
echo "${ECHO_T}$NM" >&6
5169
 
 
5170
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
5171
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5172
 
LN_S=$as_ln_s
5173
 
if test "$LN_S" = "ln -s"; then
5174
 
  echo "$as_me:$LINENO: result: yes" >&5
5175
 
echo "${ECHO_T}yes" >&6
5176
 
else
5177
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5178
 
echo "${ECHO_T}no, using $LN_S" >&6
5179
 
fi
5180
 
 
5181
 
echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5182
 
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5183
 
if test "${lt_cv_deplibs_check_method+set}" = set; then
5184
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5185
 
else
5186
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5187
 
lt_cv_file_magic_test_file=
5188
 
lt_cv_deplibs_check_method='unknown'
5189
 
# Need to set the preceding variable on all platforms that support
5190
 
# interlibrary dependencies.
5191
 
# 'none' -- dependencies not supported.
5192
 
# `unknown' -- same as none, but documents that we really don't know.
5193
 
# 'pass_all' -- all dependencies passed with no checks.
5194
 
# 'test_compile' -- check by making test program.
5195
 
# 'file_magic [[regex]]' -- check by looking for files in library path
5196
 
# which responds to the $file_magic_cmd with a given egrep regex.
5197
 
# If you have `file' or equivalent on your system and you're not sure
5198
 
# whether `pass_all' will *always* work, you probably want this one.
5199
 
 
5200
 
case $host_os in
5201
 
aix4* | aix5*)
5202
 
  lt_cv_deplibs_check_method=pass_all
5203
 
  ;;
5204
 
 
5205
 
beos*)
5206
 
  lt_cv_deplibs_check_method=pass_all
5207
 
  ;;
5208
 
 
5209
 
bsdi4*)
5210
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5211
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5212
 
  lt_cv_file_magic_test_file=/shlib/libc.so
5213
 
  ;;
5214
 
 
5215
 
cygwin* | mingw* | pw32*)
5216
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5217
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5218
 
  ;;
5219
 
 
5220
 
darwin* | rhapsody*)
5221
 
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5222
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5223
 
  case "$host_os" in
5224
 
  rhapsody* | darwin1.[012])
5225
 
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
5226
 
    ;;
5227
 
  *) # Darwin 1.3 on
5228
 
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5229
 
    ;;
5230
 
  esac
5231
 
  ;;
5232
 
 
5233
 
freebsd*)
5234
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5235
 
    case $host_cpu in
5236
 
    i*86 )
5237
 
      # Not sure whether the presence of OpenBSD here was a mistake.
5238
 
      # Let's accept both of them until this is cleared up.
5239
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5240
 
      lt_cv_file_magic_cmd=/usr/bin/file
5241
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5242
 
      ;;
5243
 
    esac
5244
 
  else
5245
 
    lt_cv_deplibs_check_method=pass_all
5246
 
  fi
5247
 
  ;;
5248
 
 
5249
 
gnu*)
5250
 
  lt_cv_deplibs_check_method=pass_all
5251
 
  ;;
5252
 
 
5253
 
hpux10.20*|hpux11*)
5254
 
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5255
 
  lt_cv_file_magic_cmd=/usr/bin/file
5256
 
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
5257
 
  ;;
5258
 
 
5259
 
irix5* | irix6*)
5260
 
  case $host_os in
5261
 
  irix5*)
5262
 
    # this will be overridden with pass_all, but let us keep it just in case
5263
 
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5264
 
    ;;
5265
 
  *)
5266
 
    case $LD in
5267
 
    *-32|*"-32 ") libmagic=32-bit;;
5268
 
    *-n32|*"-n32 ") libmagic=N32;;
5269
 
    *-64|*"-64 ") libmagic=64-bit;;
5270
 
    *) libmagic=never-match;;
5271
 
    esac
5272
 
    # this will be overridden with pass_all, but let us keep it just in case
5273
 
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5274
 
    ;;
5275
 
  esac
5276
 
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5277
 
  lt_cv_deplibs_check_method=pass_all
5278
 
  ;;
5279
 
 
5280
 
# This must be Linux ELF.
5281
 
linux-gnu*)
5282
 
  case $host_cpu in
5283
 
  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | *)
5284
 
    lt_cv_deplibs_check_method=pass_all ;;
5285
 
  *)
5286
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
5287
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5288
 
  esac
5289
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5290
 
  ;;
5291
 
 
5292
 
netbsd*)
5293
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5294
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5295
 
  else
5296
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5297
 
  fi
5298
 
  ;;
5299
 
 
5300
 
newos6*)
5301
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5302
 
  lt_cv_file_magic_cmd=/usr/bin/file
5303
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5304
 
  ;;
5305
 
 
5306
 
nto-qnx)
5307
 
  lt_cv_deplibs_check_method=unknown
5308
 
  ;;
5309
 
 
5310
 
openbsd*)
5311
 
  lt_cv_file_magic_cmd=/usr/bin/file
5312
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5313
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5314
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
5315
 
  else
5316
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
5317
 
  fi
5318
 
  ;;
5319
 
 
5320
 
osf3* | osf4* | osf5*)
5321
 
  # this will be overridden with pass_all, but let us keep it just in case
5322
 
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5323
 
  lt_cv_file_magic_test_file=/shlib/libc.so
5324
 
  lt_cv_deplibs_check_method=pass_all
5325
 
  ;;
5326
 
 
5327
 
sco3.2v5*)
5328
 
  lt_cv_deplibs_check_method=pass_all
5329
 
  ;;
5330
 
 
5331
 
solaris*)
5332
 
  lt_cv_deplibs_check_method=pass_all
5333
 
  lt_cv_file_magic_test_file=/lib/libc.so
5334
 
  ;;
5335
 
 
5336
 
sysv5uw[78]* | sysv4*uw2*)
5337
 
  lt_cv_deplibs_check_method=pass_all
5338
 
  ;;
5339
 
 
5340
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5341
 
  case $host_vendor in
5342
 
  motorola)
5343
 
    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]'
5344
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5345
 
    ;;
5346
 
  ncr)
5347
 
    lt_cv_deplibs_check_method=pass_all
5348
 
    ;;
5349
 
  sequent)
5350
 
    lt_cv_file_magic_cmd='/bin/file'
5351
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5352
 
    ;;
5353
 
  sni)
5354
 
    lt_cv_file_magic_cmd='/bin/file'
5355
 
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5356
 
    lt_cv_file_magic_test_file=/lib/libc.so
5357
 
    ;;
5358
 
  esac
5359
 
  ;;
5360
 
esac
5361
 
 
5362
 
fi
5363
 
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5364
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5365
 
file_magic_cmd=$lt_cv_file_magic_cmd
5366
 
deplibs_check_method=$lt_cv_deplibs_check_method
5367
 
 
5368
 
 
5369
 
 
5370
 
 
5371
 
 
5372
 
 
5373
 
 
5374
 
 
5375
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
5376
 
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
5377
 
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
5378
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5379
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5380
 
else
5381
 
 
5382
 
# These are sane defaults that work on at least a few old systems.
5383
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5384
 
 
5385
 
# Character class describing NM global symbol codes.
5386
 
symcode='[BCDEGRST]'
5387
 
 
5388
 
# Regexp to match symbols that can be accessed directly from C.
5389
 
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5390
 
 
5391
 
# Transform the above into a raw symbol and a C symbol.
5392
 
symxfrm='\1 \2\3 \3'
5393
 
 
5394
 
# Transform an extracted symbol line into a proper C declaration
5395
 
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
5396
 
 
5397
 
# Transform an extracted symbol line into symbol name and symbol address
5398
 
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5399
 
 
5400
 
# Define system-specific variables.
5401
 
case $host_os in
5402
 
aix*)
5403
 
  symcode='[BCDT]'
5404
 
  ;;
5405
 
cygwin* | mingw* | pw32*)
5406
 
  symcode='[ABCDGISTW]'
5407
 
  ;;
5408
 
hpux*) # Its linker distinguishes data from code symbols
5409
 
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5410
 
  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5411
 
  ;;
5412
 
irix*)
5413
 
  symcode='[BCDEGRST]'
5414
 
  ;;
5415
 
solaris* | sysv5*)
5416
 
  symcode='[BDT]'
5417
 
  ;;
5418
 
sysv4)
5419
 
  symcode='[DFNSTU]'
5420
 
  ;;
5421
 
esac
5422
 
 
5423
 
# Handle CRLF in mingw tool chain
5424
 
opt_cr=
5425
 
case $host_os in
5426
 
mingw*)
5427
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5428
 
  ;;
5429
 
esac
5430
 
 
5431
 
# If we're using GNU nm, then use its standard symbol codes.
5432
 
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
5433
 
  symcode='[ABCDGISTW]'
5434
 
fi
5435
 
 
5436
 
# Try without a prefix undercore, then with it.
5437
 
for ac_symprfx in "" "_"; do
5438
 
 
5439
 
  # Write the raw and C identifiers.
5440
 
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5441
 
 
5442
 
  # Check to see that the pipe works correctly.
5443
 
  pipe_works=no
5444
 
  rm -f conftest*
5445
 
  cat > conftest.$ac_ext <<EOF
5446
 
#ifdef __cplusplus
5447
 
extern "C" {
5448
 
#endif
5449
 
char nm_test_var;
5450
 
void nm_test_func(){}
5451
 
#ifdef __cplusplus
5452
 
}
5453
 
#endif
5454
 
int main(){nm_test_var='a';nm_test_func();return(0);}
5455
 
EOF
5456
 
 
5457
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5458
 
  (eval $ac_compile) 2>&5
5459
 
  ac_status=$?
5460
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461
 
  (exit $ac_status); }; then
5462
 
    # Now try to grab the symbols.
5463
 
    nlist=conftest.nm
5464
 
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5465
 
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5466
 
  ac_status=$?
5467
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468
 
  (exit $ac_status); } && test -s "$nlist"; then
5469
 
      # Try sorting and uniquifying the output.
5470
 
      if sort "$nlist" | uniq > "$nlist"T; then
5471
 
        mv -f "$nlist"T "$nlist"
5472
 
      else
5473
 
        rm -f "$nlist"T
5474
 
      fi
5475
 
 
5476
 
      # Make sure that we snagged all the symbols we need.
5477
 
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
5478
 
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
5479
 
          cat <<EOF > conftest.$ac_ext
5480
 
#ifdef __cplusplus
5481
 
extern "C" {
5482
 
#endif
5483
 
 
5484
 
EOF
5485
 
          # Now generate the symbol file.
5486
 
          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
5487
 
 
5488
 
          cat <<EOF >> conftest.$ac_ext
5489
 
#if defined (__STDC__) && __STDC__
5490
 
# define lt_ptr void *
5491
 
#else
5492
 
# define lt_ptr char *
5493
 
# define const
5494
 
#endif
5495
 
 
5496
 
/* The mapping between symbol names and symbols. */
5497
 
const struct {
5498
 
  const char *name;
5499
 
  lt_ptr address;
5500
 
}
5501
 
lt_preloaded_symbols[] =
5502
 
{
5503
 
EOF
5504
 
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
5505
 
          cat <<\EOF >> conftest.$ac_ext
5506
 
  {0, (lt_ptr) 0}
5507
 
};
5508
 
 
5509
 
#ifdef __cplusplus
5510
 
}
5511
 
#endif
5512
 
EOF
5513
 
          # Now try linking the two files.
5514
 
          mv conftest.$ac_objext conftstm.$ac_objext
5515
 
          save_LIBS="$LIBS"
5516
 
          save_CFLAGS="$CFLAGS"
5517
 
          LIBS="conftstm.$ac_objext"
5518
 
          CFLAGS="$CFLAGS$no_builtin_flag"
5519
 
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5520
 
  (eval $ac_link) 2>&5
5521
 
  ac_status=$?
5522
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523
 
  (exit $ac_status); } && test -s conftest; then
5524
 
            pipe_works=yes
5525
 
          fi
5526
 
          LIBS="$save_LIBS"
5527
 
          CFLAGS="$save_CFLAGS"
5528
 
        else
5529
 
          echo "cannot find nm_test_func in $nlist" >&5
5530
 
        fi
5531
 
      else
5532
 
        echo "cannot find nm_test_var in $nlist" >&5
5533
 
      fi
5534
 
    else
5535
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5536
 
    fi
5537
 
  else
5538
 
    echo "$progname: failed program was:" >&5
5539
 
    cat conftest.$ac_ext >&5
5540
 
  fi
5541
 
  rm -f conftest* conftst*
5542
 
 
5543
 
  # Do not use the global_symbol_pipe unless it works.
5544
 
  if test "$pipe_works" = yes; then
5545
 
    break
5546
 
  else
5547
 
    lt_cv_sys_global_symbol_pipe=
5548
 
  fi
5549
 
done
5550
 
 
5551
 
fi
5552
 
 
5553
 
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
5554
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5555
 
  global_symbol_to_cdecl=
5556
 
  global_symbol_to_c_name_address=
5557
 
else
5558
 
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
5559
 
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
5560
 
fi
5561
 
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
5562
 
then
5563
 
  echo "$as_me:$LINENO: result: failed" >&5
5564
 
echo "${ECHO_T}failed" >&6
5565
 
else
5566
 
  echo "$as_me:$LINENO: result: ok" >&5
5567
 
echo "${ECHO_T}ok" >&6
5568
 
fi
5569
 
 
5570
 
ac_ext=c
5571
 
ac_cpp='$CPP $CPPFLAGS'
5572
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5573
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5574
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5575
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5576
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5577
 
# On Suns, sometimes $CPP names a directory.
5578
 
if test -n "$CPP" && test -d "$CPP"; then
5579
 
  CPP=
5580
 
fi
5581
 
if test -z "$CPP"; then
5582
 
  if test "${ac_cv_prog_CPP+set}" = set; then
5583
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5584
 
else
5585
 
      # Double quotes because CPP needs to be expanded
5586
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5587
 
    do
5588
 
      ac_preproc_ok=false
5589
 
for ac_c_preproc_warn_flag in '' yes
5590
 
do
5591
 
  # Use a header file that comes with gcc, so configuring glibc
5592
 
  # with a fresh cross-compiler works.
5593
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5594
 
  # <limits.h> exists even on freestanding compilers.
5595
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5596
 
  # not just through cpp. "Syntax error" is here to catch this case.
5597
 
  cat >conftest.$ac_ext <<_ACEOF
5598
 
#line $LINENO "configure"
5599
 
/* confdefs.h.  */
5600
 
_ACEOF
5601
 
cat confdefs.h >>conftest.$ac_ext
5602
 
cat >>conftest.$ac_ext <<_ACEOF
5603
 
/* end confdefs.h.  */
5604
 
#ifdef __STDC__
5605
 
# include <limits.h>
5606
 
#else
5607
 
# include <assert.h>
5608
 
#endif
5609
 
                     Syntax error
5610
 
_ACEOF
5611
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5612
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5613
 
  ac_status=$?
5614
 
  grep -v '^ *+' conftest.er1 >conftest.err
5615
 
  rm -f conftest.er1
5616
 
  cat conftest.err >&5
5617
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618
 
  (exit $ac_status); } >/dev/null; then
5619
 
  if test -s conftest.err; then
5620
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5621
 
  else
5622
 
    ac_cpp_err=
5623
 
  fi
5624
 
else
5625
 
  ac_cpp_err=yes
5626
 
fi
5627
 
if test -z "$ac_cpp_err"; then
5628
 
  :
5629
 
else
5630
 
  echo "$as_me: failed program was:" >&5
5631
 
sed 's/^/| /' conftest.$ac_ext >&5
5632
 
 
5633
 
  # Broken: fails on valid input.
5634
 
continue
5635
 
fi
5636
 
rm -f conftest.err conftest.$ac_ext
5637
 
 
5638
 
  # OK, works on sane cases.  Now check whether non-existent headers
5639
 
  # can be detected and how.
5640
 
  cat >conftest.$ac_ext <<_ACEOF
5641
 
#line $LINENO "configure"
5642
 
/* confdefs.h.  */
5643
 
_ACEOF
5644
 
cat confdefs.h >>conftest.$ac_ext
5645
 
cat >>conftest.$ac_ext <<_ACEOF
5646
 
/* end confdefs.h.  */
5647
 
#include <ac_nonexistent.h>
5648
 
_ACEOF
5649
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5650
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5651
 
  ac_status=$?
5652
 
  grep -v '^ *+' conftest.er1 >conftest.err
5653
 
  rm -f conftest.er1
5654
 
  cat conftest.err >&5
5655
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656
 
  (exit $ac_status); } >/dev/null; then
5657
 
  if test -s conftest.err; then
5658
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5659
 
  else
5660
 
    ac_cpp_err=
5661
 
  fi
5662
 
else
5663
 
  ac_cpp_err=yes
5664
 
fi
5665
 
if test -z "$ac_cpp_err"; then
5666
 
  # Broken: success on invalid input.
5667
 
continue
5668
 
else
5669
 
  echo "$as_me: failed program was:" >&5
5670
 
sed 's/^/| /' conftest.$ac_ext >&5
5671
 
 
5672
 
  # Passes both tests.
5673
 
ac_preproc_ok=:
5674
 
break
5675
 
fi
5676
 
rm -f conftest.err conftest.$ac_ext
5677
 
 
5678
 
done
5679
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5680
 
rm -f conftest.err conftest.$ac_ext
5681
 
if $ac_preproc_ok; then
5682
 
  break
5683
 
fi
5684
 
 
5685
 
    done
5686
 
    ac_cv_prog_CPP=$CPP
5687
 
 
5688
 
fi
5689
 
  CPP=$ac_cv_prog_CPP
5690
 
else
5691
 
  ac_cv_prog_CPP=$CPP
5692
 
fi
5693
 
echo "$as_me:$LINENO: result: $CPP" >&5
5694
 
echo "${ECHO_T}$CPP" >&6
5695
 
ac_preproc_ok=false
5696
 
for ac_c_preproc_warn_flag in '' yes
5697
 
do
5698
 
  # Use a header file that comes with gcc, so configuring glibc
5699
 
  # with a fresh cross-compiler works.
5700
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5701
 
  # <limits.h> exists even on freestanding compilers.
5702
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5703
 
  # not just through cpp. "Syntax error" is here to catch this case.
5704
 
  cat >conftest.$ac_ext <<_ACEOF
5705
 
#line $LINENO "configure"
5706
 
/* confdefs.h.  */
5707
 
_ACEOF
5708
 
cat confdefs.h >>conftest.$ac_ext
5709
 
cat >>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
5718
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5719
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5720
 
  ac_status=$?
5721
 
  grep -v '^ *+' conftest.er1 >conftest.err
5722
 
  rm -f conftest.er1
5723
 
  cat conftest.err >&5
5724
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725
 
  (exit $ac_status); } >/dev/null; then
5726
 
  if test -s conftest.err; then
5727
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5728
 
  else
5729
 
    ac_cpp_err=
5730
 
  fi
5731
 
else
5732
 
  ac_cpp_err=yes
5733
 
fi
5734
 
if test -z "$ac_cpp_err"; then
5735
 
  :
5736
 
else
5737
 
  echo "$as_me: failed program was:" >&5
5738
 
sed 's/^/| /' conftest.$ac_ext >&5
5739
 
 
5740
 
  # Broken: fails on valid input.
5741
 
continue
5742
 
fi
5743
 
rm -f conftest.err conftest.$ac_ext
5744
 
 
5745
 
  # OK, works on sane cases.  Now check whether non-existent headers
5746
 
  # can be detected and how.
5747
 
  cat >conftest.$ac_ext <<_ACEOF
5748
 
#line $LINENO "configure"
5749
 
/* confdefs.h.  */
5750
 
_ACEOF
5751
 
cat confdefs.h >>conftest.$ac_ext
5752
 
cat >>conftest.$ac_ext <<_ACEOF
5753
 
/* end confdefs.h.  */
5754
 
#include <ac_nonexistent.h>
5755
 
_ACEOF
5756
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5757
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5758
 
  ac_status=$?
5759
 
  grep -v '^ *+' conftest.er1 >conftest.err
5760
 
  rm -f conftest.er1
5761
 
  cat conftest.err >&5
5762
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763
 
  (exit $ac_status); } >/dev/null; then
5764
 
  if test -s conftest.err; then
5765
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5766
 
  else
5767
 
    ac_cpp_err=
5768
 
  fi
5769
 
else
5770
 
  ac_cpp_err=yes
5771
 
fi
5772
 
if test -z "$ac_cpp_err"; then
5773
 
  # Broken: success on invalid input.
5774
 
continue
5775
 
else
5776
 
  echo "$as_me: failed program was:" >&5
5777
 
sed 's/^/| /' conftest.$ac_ext >&5
5778
 
 
5779
 
  # Passes both tests.
5780
 
ac_preproc_ok=:
5781
 
break
5782
 
fi
5783
 
rm -f conftest.err conftest.$ac_ext
5784
 
 
5785
 
done
5786
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5787
 
rm -f conftest.err conftest.$ac_ext
5788
 
if $ac_preproc_ok; then
5789
 
  :
5790
 
else
5791
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5792
 
See \`config.log' for more details." >&5
5793
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5794
 
See \`config.log' for more details." >&2;}
5795
 
   { (exit 1); exit 1; }; }
5796
 
fi
5797
 
 
5798
 
ac_ext=c
5799
 
ac_cpp='$CPP $CPPFLAGS'
5800
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5801
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5802
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5803
 
 
5804
 
 
5805
 
echo "$as_me:$LINENO: checking for egrep" >&5
5806
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5807
 
if test "${ac_cv_prog_egrep+set}" = set; then
5808
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5809
 
else
5810
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5811
 
    then ac_cv_prog_egrep='grep -E'
5812
 
    else ac_cv_prog_egrep='egrep'
5813
 
    fi
5814
 
fi
5815
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5816
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5817
 
 EGREP=$ac_cv_prog_egrep
5818
 
 
5819
 
 
5820
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5821
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5822
 
if test "${ac_cv_header_stdc+set}" = set; then
5823
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5824
 
else
5825
 
  cat >conftest.$ac_ext <<_ACEOF
5826
 
#line $LINENO "configure"
5827
 
/* confdefs.h.  */
5828
 
_ACEOF
5829
 
cat confdefs.h >>conftest.$ac_ext
5830
 
cat >>conftest.$ac_ext <<_ACEOF
5831
 
/* end confdefs.h.  */
5832
 
#include <stdlib.h>
5833
 
#include <stdarg.h>
5834
 
#include <string.h>
5835
 
#include <float.h>
5836
 
 
5837
 
int
5838
 
main ()
5839
 
{
5840
 
 
5841
 
  ;
5842
 
  return 0;
5843
 
}
5844
 
_ACEOF
5845
 
rm -f conftest.$ac_objext
5846
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5847
 
  (eval $ac_compile) 2>&5
5848
 
  ac_status=$?
5849
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850
 
  (exit $ac_status); } &&
5851
 
         { ac_try='test -s conftest.$ac_objext'
5852
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853
 
  (eval $ac_try) 2>&5
5854
 
  ac_status=$?
5855
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856
 
  (exit $ac_status); }; }; then
5857
 
  ac_cv_header_stdc=yes
5858
 
else
5859
 
  echo "$as_me: failed program was:" >&5
5860
 
sed 's/^/| /' conftest.$ac_ext >&5
5861
 
 
5862
 
ac_cv_header_stdc=no
5863
 
fi
5864
 
rm -f conftest.$ac_objext conftest.$ac_ext
5865
 
 
5866
 
if test $ac_cv_header_stdc = yes; then
5867
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5868
 
  cat >conftest.$ac_ext <<_ACEOF
5869
 
#line $LINENO "configure"
5870
 
/* confdefs.h.  */
5871
 
_ACEOF
5872
 
cat confdefs.h >>conftest.$ac_ext
5873
 
cat >>conftest.$ac_ext <<_ACEOF
5874
 
/* end confdefs.h.  */
5875
 
#include <string.h>
5876
 
 
5877
 
_ACEOF
5878
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5879
 
  $EGREP "memchr" >/dev/null 2>&1; then
5880
 
  :
5881
 
else
5882
 
  ac_cv_header_stdc=no
5883
 
fi
5884
 
rm -f conftest*
5885
 
 
5886
 
fi
5887
 
 
5888
 
if test $ac_cv_header_stdc = yes; then
5889
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5890
 
  cat >conftest.$ac_ext <<_ACEOF
5891
 
#line $LINENO "configure"
5892
 
/* confdefs.h.  */
5893
 
_ACEOF
5894
 
cat confdefs.h >>conftest.$ac_ext
5895
 
cat >>conftest.$ac_ext <<_ACEOF
5896
 
/* end confdefs.h.  */
5897
 
#include <stdlib.h>
5898
 
 
5899
 
_ACEOF
5900
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5901
 
  $EGREP "free" >/dev/null 2>&1; then
5902
 
  :
5903
 
else
5904
 
  ac_cv_header_stdc=no
5905
 
fi
5906
 
rm -f conftest*
5907
 
 
5908
 
fi
5909
 
 
5910
 
if test $ac_cv_header_stdc = yes; then
5911
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5912
 
  if test "$cross_compiling" = yes; then
5913
 
  :
5914
 
else
5915
 
  cat >conftest.$ac_ext <<_ACEOF
5916
 
#line $LINENO "configure"
5917
 
/* confdefs.h.  */
5918
 
_ACEOF
5919
 
cat confdefs.h >>conftest.$ac_ext
5920
 
cat >>conftest.$ac_ext <<_ACEOF
5921
 
/* end confdefs.h.  */
5922
 
#include <ctype.h>
5923
 
#if ((' ' & 0x0FF) == 0x020)
5924
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5925
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5926
 
#else
5927
 
# define ISLOWER(c) \
5928
 
                   (('a' <= (c) && (c) <= 'i') \
5929
 
                     || ('j' <= (c) && (c) <= 'r') \
5930
 
                     || ('s' <= (c) && (c) <= 'z'))
5931
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5932
 
#endif
5933
 
 
5934
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5935
 
int
5936
 
main ()
5937
 
{
5938
 
  int i;
5939
 
  for (i = 0; i < 256; i++)
5940
 
    if (XOR (islower (i), ISLOWER (i))
5941
 
        || toupper (i) != TOUPPER (i))
5942
 
      exit(2);
5943
 
  exit (0);
5944
 
}
5945
 
_ACEOF
5946
 
rm -f conftest$ac_exeext
5947
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5948
 
  (eval $ac_link) 2>&5
5949
 
  ac_status=$?
5950
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5952
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953
 
  (eval $ac_try) 2>&5
5954
 
  ac_status=$?
5955
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956
 
  (exit $ac_status); }; }; then
5957
 
  :
5958
 
else
5959
 
  echo "$as_me: program exited with status $ac_status" >&5
5960
 
echo "$as_me: failed program was:" >&5
5961
 
sed 's/^/| /' conftest.$ac_ext >&5
5962
 
 
5963
 
( exit $ac_status )
5964
 
ac_cv_header_stdc=no
5965
 
fi
5966
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5967
 
fi
5968
 
fi
5969
 
fi
5970
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5971
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
5972
 
if test $ac_cv_header_stdc = yes; then
5973
 
 
5974
 
cat >>confdefs.h <<\_ACEOF
5975
 
#define STDC_HEADERS 1
5976
 
_ACEOF
5977
 
 
5978
 
fi
5979
 
 
5980
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5981
 
 
5982
 
 
5983
 
 
5984
 
 
5985
 
 
5986
 
 
5987
 
 
5988
 
 
5989
 
 
5990
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5991
 
                  inttypes.h stdint.h unistd.h
5992
 
do
5993
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5994
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
5995
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5996
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5997
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5998
 
else
5999
 
  cat >conftest.$ac_ext <<_ACEOF
6000
 
#line $LINENO "configure"
6001
 
/* confdefs.h.  */
6002
 
_ACEOF
6003
 
cat confdefs.h >>conftest.$ac_ext
6004
 
cat >>conftest.$ac_ext <<_ACEOF
6005
 
/* end confdefs.h.  */
6006
 
$ac_includes_default
6007
 
 
6008
 
#include <$ac_header>
6009
 
_ACEOF
6010
 
rm -f conftest.$ac_objext
6011
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6012
 
  (eval $ac_compile) 2>&5
6013
 
  ac_status=$?
6014
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015
 
  (exit $ac_status); } &&
6016
 
         { ac_try='test -s conftest.$ac_objext'
6017
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018
 
  (eval $ac_try) 2>&5
6019
 
  ac_status=$?
6020
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021
 
  (exit $ac_status); }; }; then
6022
 
  eval "$as_ac_Header=yes"
6023
 
else
6024
 
  echo "$as_me: failed program was:" >&5
6025
 
sed 's/^/| /' conftest.$ac_ext >&5
6026
 
 
6027
 
eval "$as_ac_Header=no"
6028
 
fi
6029
 
rm -f conftest.$ac_objext conftest.$ac_ext
6030
 
fi
6031
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6032
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6033
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6034
 
  cat >>confdefs.h <<_ACEOF
6035
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6036
 
_ACEOF
6037
 
 
6038
 
fi
6039
 
 
6040
 
done
6041
 
 
6042
 
 
6043
 
 
6044
 
for ac_header in dlfcn.h
6045
 
do
6046
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6047
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6048
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
6049
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6050
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6051
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6052
 
fi
6053
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6054
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6055
 
else
6056
 
  # Is the header compilable?
6057
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6058
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6059
 
cat >conftest.$ac_ext <<_ACEOF
6060
 
#line $LINENO "configure"
6061
 
/* confdefs.h.  */
6062
 
_ACEOF
6063
 
cat confdefs.h >>conftest.$ac_ext
6064
 
cat >>conftest.$ac_ext <<_ACEOF
6065
 
/* end confdefs.h.  */
6066
 
$ac_includes_default
6067
 
#include <$ac_header>
6068
 
_ACEOF
6069
 
rm -f conftest.$ac_objext
6070
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071
 
  (eval $ac_compile) 2>&5
6072
 
  ac_status=$?
6073
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074
 
  (exit $ac_status); } &&
6075
 
         { ac_try='test -s conftest.$ac_objext'
6076
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077
 
  (eval $ac_try) 2>&5
6078
 
  ac_status=$?
6079
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080
 
  (exit $ac_status); }; }; then
6081
 
  ac_header_compiler=yes
6082
 
else
6083
 
  echo "$as_me: failed program was:" >&5
6084
 
sed 's/^/| /' conftest.$ac_ext >&5
6085
 
 
6086
 
ac_header_compiler=no
6087
 
fi
6088
 
rm -f conftest.$ac_objext conftest.$ac_ext
6089
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6090
 
echo "${ECHO_T}$ac_header_compiler" >&6
6091
 
 
6092
 
# Is the header present?
6093
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6094
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6095
 
cat >conftest.$ac_ext <<_ACEOF
6096
 
#line $LINENO "configure"
6097
 
/* confdefs.h.  */
6098
 
_ACEOF
6099
 
cat confdefs.h >>conftest.$ac_ext
6100
 
cat >>conftest.$ac_ext <<_ACEOF
6101
 
/* end confdefs.h.  */
6102
 
#include <$ac_header>
6103
 
_ACEOF
6104
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6105
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6106
 
  ac_status=$?
6107
 
  grep -v '^ *+' conftest.er1 >conftest.err
6108
 
  rm -f conftest.er1
6109
 
  cat conftest.err >&5
6110
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111
 
  (exit $ac_status); } >/dev/null; then
6112
 
  if test -s conftest.err; then
6113
 
    ac_cpp_err=$ac_c_preproc_warn_flag
6114
 
  else
6115
 
    ac_cpp_err=
6116
 
  fi
6117
 
else
6118
 
  ac_cpp_err=yes
6119
 
fi
6120
 
if test -z "$ac_cpp_err"; then
6121
 
  ac_header_preproc=yes
6122
 
else
6123
 
  echo "$as_me: failed program was:" >&5
6124
 
sed 's/^/| /' conftest.$ac_ext >&5
6125
 
 
6126
 
  ac_header_preproc=no
6127
 
fi
6128
 
rm -f conftest.err conftest.$ac_ext
6129
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6130
 
echo "${ECHO_T}$ac_header_preproc" >&6
6131
 
 
6132
 
# So?  What about this header?
6133
 
case $ac_header_compiler:$ac_header_preproc in
6134
 
  yes:no )
6135
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6136
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6137
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6138
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6139
 
    (
6140
 
      cat <<\_ASBOX
6141
 
## ------------------------------------ ##
6142
 
## Report this to bug-autoconf@gnu.org. ##
6143
 
## ------------------------------------ ##
6144
 
_ASBOX
6145
 
    ) |
6146
 
      sed "s/^/$as_me: WARNING:     /" >&2
6147
 
    ;;
6148
 
  no:yes )
6149
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6150
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6151
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6152
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6153
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6154
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6155
 
    (
6156
 
      cat <<\_ASBOX
6157
 
## ------------------------------------ ##
6158
 
## Report this to bug-autoconf@gnu.org. ##
6159
 
## ------------------------------------ ##
6160
 
_ASBOX
6161
 
    ) |
6162
 
      sed "s/^/$as_me: WARNING:     /" >&2
6163
 
    ;;
6164
 
esac
6165
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
6166
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6167
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6168
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6169
 
else
6170
 
  eval "$as_ac_Header=$ac_header_preproc"
6171
 
fi
6172
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6173
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6174
 
 
6175
 
fi
6176
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6177
 
  cat >>confdefs.h <<_ACEOF
6178
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6179
 
_ACEOF
6180
 
 
6181
 
fi
6182
 
 
6183
 
done
6184
 
 
6185
 
 
6186
 
 
6187
 
 
6188
 
 
6189
 
# Only perform the check for file, if the check method requires it
6190
 
case $deplibs_check_method in
6191
 
file_magic*)
6192
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6193
 
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6194
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6195
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6196
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6197
 
else
6198
 
  case $MAGIC_CMD in
6199
 
  /*)
6200
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6201
 
  ;;
6202
 
  ?:/*)
6203
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
6204
 
  ;;
6205
 
  *)
6206
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
6207
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6208
 
  ac_dummy="/usr/bin:$PATH"
6209
 
  for ac_dir in $ac_dummy; do
6210
 
    test -z "$ac_dir" && ac_dir=.
6211
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
6212
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6213
 
      if test -n "$file_magic_test_file"; then
6214
 
        case $deplibs_check_method in
6215
 
        "file_magic "*)
6216
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6217
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6218
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6219
 
            egrep "$file_magic_regex" > /dev/null; then
6220
 
            :
6221
 
          else
6222
 
            cat <<EOF 1>&2
6223
 
 
6224
 
*** Warning: the command libtool uses to detect shared libraries,
6225
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
6226
 
*** The result is that libtool may fail to recognize shared libraries
6227
 
*** as such.  This will affect the creation of libtool libraries that
6228
 
*** depend on shared libraries, but programs linked with such libtool
6229
 
*** libraries will work regardless of this problem.  Nevertheless, you
6230
 
*** may want to report the problem to your system manager and/or to
6231
 
*** bug-libtool@gnu.org
6232
 
 
6233
 
EOF
6234
 
          fi ;;
6235
 
        esac
6236
 
      fi
6237
 
      break
6238
 
    fi
6239
 
  done
6240
 
  IFS="$ac_save_ifs"
6241
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
6242
 
  ;;
6243
 
esac
6244
 
fi
6245
 
 
6246
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6247
 
if test -n "$MAGIC_CMD"; then
6248
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6249
 
echo "${ECHO_T}$MAGIC_CMD" >&6
6250
 
else
6251
 
  echo "$as_me:$LINENO: result: no" >&5
6252
 
echo "${ECHO_T}no" >&6
6253
 
fi
6254
 
 
6255
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
6256
 
  if test -n "$ac_tool_prefix"; then
6257
 
    echo "$as_me:$LINENO: checking for file" >&5
6258
 
echo $ECHO_N "checking for file... $ECHO_C" >&6
6259
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6260
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6261
 
else
6262
 
  case $MAGIC_CMD in
6263
 
  /*)
6264
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6265
 
  ;;
6266
 
  ?:/*)
6267
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
6268
 
  ;;
6269
 
  *)
6270
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
6271
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6272
 
  ac_dummy="/usr/bin:$PATH"
6273
 
  for ac_dir in $ac_dummy; do
6274
 
    test -z "$ac_dir" && ac_dir=.
6275
 
    if test -f $ac_dir/file; then
6276
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6277
 
      if test -n "$file_magic_test_file"; then
6278
 
        case $deplibs_check_method in
6279
 
        "file_magic "*)
6280
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6281
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6282
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6283
 
            egrep "$file_magic_regex" > /dev/null; then
6284
 
            :
6285
 
          else
6286
 
            cat <<EOF 1>&2
6287
 
 
6288
 
*** Warning: the command libtool uses to detect shared libraries,
6289
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
6290
 
*** The result is that libtool may fail to recognize shared libraries
6291
 
*** as such.  This will affect the creation of libtool libraries that
6292
 
*** depend on shared libraries, but programs linked with such libtool
6293
 
*** libraries will work regardless of this problem.  Nevertheless, you
6294
 
*** may want to report the problem to your system manager and/or to
6295
 
*** bug-libtool@gnu.org
6296
 
 
6297
 
EOF
6298
 
          fi ;;
6299
 
        esac
6300
 
      fi
6301
 
      break
6302
 
    fi
6303
 
  done
6304
 
  IFS="$ac_save_ifs"
6305
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
6306
 
  ;;
6307
 
esac
6308
 
fi
6309
 
 
6310
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6311
 
if test -n "$MAGIC_CMD"; then
6312
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6313
 
echo "${ECHO_T}$MAGIC_CMD" >&6
6314
 
else
6315
 
  echo "$as_me:$LINENO: result: no" >&5
6316
 
echo "${ECHO_T}no" >&6
6317
 
fi
6318
 
 
6319
 
  else
6320
 
    MAGIC_CMD=:
6321
 
  fi
6322
 
fi
6323
 
 
6324
 
  fi
6325
 
  ;;
6326
 
esac
6327
 
 
6328
 
if test -n "$ac_tool_prefix"; then
6329
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6330
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6331
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6332
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6333
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
6334
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6335
 
else
6336
 
  if test -n "$RANLIB"; then
6337
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6338
 
else
6339
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340
 
for as_dir in $PATH
6341
 
do
6342
 
  IFS=$as_save_IFS
6343
 
  test -z "$as_dir" && as_dir=.
6344
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6345
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6346
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6347
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6348
 
    break 2
6349
 
  fi
6350
 
done
6351
 
done
6352
 
 
6353
 
fi
6354
 
fi
6355
 
RANLIB=$ac_cv_prog_RANLIB
6356
 
if test -n "$RANLIB"; then
6357
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
6358
 
echo "${ECHO_T}$RANLIB" >&6
6359
 
else
6360
 
  echo "$as_me:$LINENO: result: no" >&5
6361
 
echo "${ECHO_T}no" >&6
6362
 
fi
6363
 
 
6364
 
fi
6365
 
if test -z "$ac_cv_prog_RANLIB"; then
6366
 
  ac_ct_RANLIB=$RANLIB
6367
 
  # Extract the first word of "ranlib", so it can be a program name with args.
6368
 
set dummy ranlib; ac_word=$2
6369
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6370
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6371
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6372
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6373
 
else
6374
 
  if test -n "$ac_ct_RANLIB"; then
6375
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6376
 
else
6377
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378
 
for as_dir in $PATH
6379
 
do
6380
 
  IFS=$as_save_IFS
6381
 
  test -z "$as_dir" && as_dir=.
6382
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6383
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6384
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6385
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6386
 
    break 2
6387
 
  fi
6388
 
done
6389
 
done
6390
 
 
6391
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6392
 
fi
6393
 
fi
6394
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6395
 
if test -n "$ac_ct_RANLIB"; then
6396
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6397
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6398
 
else
6399
 
  echo "$as_me:$LINENO: result: no" >&5
6400
 
echo "${ECHO_T}no" >&6
6401
 
fi
6402
 
 
6403
 
  RANLIB=$ac_ct_RANLIB
6404
 
else
6405
 
  RANLIB="$ac_cv_prog_RANLIB"
6406
 
fi
6407
 
 
6408
 
if test -n "$ac_tool_prefix"; then
6409
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6410
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
6411
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6412
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6413
 
if test "${ac_cv_prog_STRIP+set}" = set; then
6414
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6415
 
else
6416
 
  if test -n "$STRIP"; then
6417
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6418
 
else
6419
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420
 
for as_dir in $PATH
6421
 
do
6422
 
  IFS=$as_save_IFS
6423
 
  test -z "$as_dir" && as_dir=.
6424
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6425
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6426
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6427
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428
 
    break 2
6429
 
  fi
6430
 
done
6431
 
done
6432
 
 
6433
 
fi
6434
 
fi
6435
 
STRIP=$ac_cv_prog_STRIP
6436
 
if test -n "$STRIP"; then
6437
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
6438
 
echo "${ECHO_T}$STRIP" >&6
6439
 
else
6440
 
  echo "$as_me:$LINENO: result: no" >&5
6441
 
echo "${ECHO_T}no" >&6
6442
 
fi
6443
 
 
6444
 
fi
6445
 
if test -z "$ac_cv_prog_STRIP"; then
6446
 
  ac_ct_STRIP=$STRIP
6447
 
  # Extract the first word of "strip", so it can be a program name with args.
6448
 
set dummy strip; ac_word=$2
6449
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6450
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6451
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6452
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6453
 
else
6454
 
  if test -n "$ac_ct_STRIP"; then
6455
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6456
 
else
6457
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458
 
for as_dir in $PATH
6459
 
do
6460
 
  IFS=$as_save_IFS
6461
 
  test -z "$as_dir" && as_dir=.
6462
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6463
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6464
 
    ac_cv_prog_ac_ct_STRIP="strip"
6465
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466
 
    break 2
6467
 
  fi
6468
 
done
6469
 
done
6470
 
 
6471
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6472
 
fi
6473
 
fi
6474
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6475
 
if test -n "$ac_ct_STRIP"; then
6476
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6477
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
6478
 
else
6479
 
  echo "$as_me:$LINENO: result: no" >&5
6480
 
echo "${ECHO_T}no" >&6
6481
 
fi
6482
 
 
6483
 
  STRIP=$ac_ct_STRIP
6484
 
else
6485
 
  STRIP="$ac_cv_prog_STRIP"
6486
 
fi
6487
 
 
6488
 
 
6489
 
enable_dlopen=no
6490
 
enable_win32_dll=no
6491
 
 
6492
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6493
 
if test "${enable_libtool_lock+set}" = set; then
6494
 
  enableval="$enable_libtool_lock"
6495
 
 
6496
 
fi;
6497
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6498
 
 
6499
 
# Some flags need to be propagated to the compiler or linker for good
6500
 
# libtool support.
6501
 
case $host in
6502
 
*-*-irix6*)
6503
 
  # Find out which ABI we are using.
6504
 
  echo '#line 6492 "configure"' > conftest.$ac_ext
6505
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6506
 
  (eval $ac_compile) 2>&5
6507
 
  ac_status=$?
6508
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509
 
  (exit $ac_status); }; then
6510
 
    case `/usr/bin/file conftest.$ac_objext` in
6511
 
    *32-bit*)
6512
 
      LD="${LD-ld} -32"
6513
 
      ;;
6514
 
    *N32*)
6515
 
      LD="${LD-ld} -n32"
6516
 
      ;;
6517
 
    *64-bit*)
6518
 
      LD="${LD-ld} -64"
6519
 
      ;;
6520
 
    esac
6521
 
  fi
6522
 
  rm -rf conftest*
6523
 
  ;;
6524
 
 
6525
 
*-*-sco3.2v5*)
6526
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6527
 
  SAVE_CFLAGS="$CFLAGS"
6528
 
  CFLAGS="$CFLAGS -belf"
6529
 
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6530
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6531
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
6532
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6533
 
else
6534
 
 
6535
 
 
6536
 
     ac_ext=c
6537
 
ac_cpp='$CPP $CPPFLAGS'
6538
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6539
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6540
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6541
 
 
6542
 
     cat >conftest.$ac_ext <<_ACEOF
6543
 
#line $LINENO "configure"
6544
 
/* confdefs.h.  */
6545
 
_ACEOF
6546
 
cat confdefs.h >>conftest.$ac_ext
6547
 
cat >>conftest.$ac_ext <<_ACEOF
6548
 
/* end confdefs.h.  */
6549
 
 
6550
 
int
6551
 
main ()
6552
 
{
6553
 
 
6554
 
  ;
6555
 
  return 0;
6556
 
}
6557
 
_ACEOF
6558
 
rm -f conftest.$ac_objext conftest$ac_exeext
6559
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6560
 
  (eval $ac_link) 2>&5
6561
 
  ac_status=$?
6562
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563
 
  (exit $ac_status); } &&
6564
 
         { ac_try='test -s conftest$ac_exeext'
6565
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566
 
  (eval $ac_try) 2>&5
6567
 
  ac_status=$?
6568
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569
 
  (exit $ac_status); }; }; then
6570
 
  lt_cv_cc_needs_belf=yes
6571
 
else
6572
 
  echo "$as_me: failed program was:" >&5
6573
 
sed 's/^/| /' conftest.$ac_ext >&5
6574
 
 
6575
 
lt_cv_cc_needs_belf=no
6576
 
fi
6577
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6578
 
     ac_ext=c
6579
 
ac_cpp='$CPP $CPPFLAGS'
6580
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6581
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6582
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6583
 
 
6584
 
fi
6585
 
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6586
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6587
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6588
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6589
 
    CFLAGS="$SAVE_CFLAGS"
6590
 
  fi
6591
 
  ;;
6592
 
 
6593
 
 
6594
 
esac
6595
 
 
6596
 
# Sed substitution that helps us do robust quoting.  It backslashifies
6597
 
# metacharacters that are still active within double-quoted strings.
6598
 
Xsed='sed -e s/^X//'
6599
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6600
 
 
6601
 
# Same as above, but do not quote variable references.
6602
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6603
 
 
6604
 
# Sed substitution to delay expansion of an escaped shell variable in a
6605
 
# double_quote_subst'ed string.
6606
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6607
 
 
6608
 
# Constants:
6609
 
rm="rm -f"
6610
 
 
6611
 
# Global variables:
6612
 
default_ofile=libtool
6613
 
can_build_shared=yes
6614
 
 
6615
 
# All known linkers require a `.a' archive for static linking (except M$VC,
6616
 
# which needs '.lib').
6617
 
libext=a
6618
 
ltmain="$ac_aux_dir/ltmain.sh"
6619
 
ofile="$default_ofile"
6620
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
6621
 
need_locks="$enable_libtool_lock"
6622
 
 
6623
 
old_CC="$CC"
6624
 
old_CFLAGS="$CFLAGS"
6625
 
 
6626
 
# Set sane defaults for various variables
6627
 
test -z "$AR" && AR=ar
6628
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
6629
 
test -z "$AS" && AS=as
6630
 
test -z "$CC" && CC=cc
6631
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
6632
 
test -z "$LD" && LD=ld
6633
 
test -z "$LN_S" && LN_S="ln -s"
6634
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6635
 
test -z "$NM" && NM=nm
6636
 
test -z "$OBJDUMP" && OBJDUMP=objdump
6637
 
test -z "$RANLIB" && RANLIB=:
6638
 
test -z "$STRIP" && STRIP=:
6639
 
test -z "$ac_objext" && ac_objext=o
6640
 
 
6641
 
if test x"$host" != x"$build"; then
6642
 
  ac_tool_prefix=${host_alias}-
6643
 
else
6644
 
  ac_tool_prefix=
6645
 
fi
6646
 
 
6647
 
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
6648
 
case $host_os in
6649
 
linux-gnu*) ;;
6650
 
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
6651
 
esac
6652
 
 
6653
 
case $host_os in
6654
 
aix3*)
6655
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
6656
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6657
 
  # vanish in a puff of smoke.
6658
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
6659
 
    COLLECT_NAMES=
6660
 
    export COLLECT_NAMES
6661
 
  fi
6662
 
  ;;
6663
 
esac
6664
 
 
6665
 
# Determine commands to create old-style static archives.
6666
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6667
 
old_postinstall_cmds='chmod 644 $oldlib'
6668
 
old_postuninstall_cmds=
6669
 
 
6670
 
if test -n "$RANLIB"; then
6671
 
  case $host_os in
6672
 
  openbsd*)
6673
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6674
 
    ;;
6675
 
  *)
6676
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6677
 
    ;;
6678
 
  esac
6679
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6680
 
fi
6681
 
 
6682
 
# Allow CC to be a program name with arguments.
6683
 
set dummy $CC
6684
 
compiler="$2"
6685
 
 
6686
 
## FIXME: this should be a separate macro
6687
 
##
6688
 
echo "$as_me:$LINENO: checking for objdir" >&5
6689
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6690
 
rm -f .libs 2>/dev/null
6691
 
mkdir .libs 2>/dev/null
6692
 
if test -d .libs; then
6693
 
  objdir=.libs
6694
 
else
6695
 
  # MS-DOS does not allow filenames that begin with a dot.
6696
 
  objdir=_libs
6697
 
fi
6698
 
rmdir .libs 2>/dev/null
6699
 
echo "$as_me:$LINENO: result: $objdir" >&5
6700
 
echo "${ECHO_T}$objdir" >&6
6701
 
##
6702
 
## END FIXME
6703
 
 
6704
 
 
6705
 
## FIXME: this should be a separate macro
6706
 
##
6707
 
 
6708
 
# Check whether --with-pic or --without-pic was given.
6709
 
if test "${with_pic+set}" = set; then
6710
 
  withval="$with_pic"
6711
 
  pic_mode="$withval"
6712
 
else
6713
 
  pic_mode=default
6714
 
fi;
6715
 
test -z "$pic_mode" && pic_mode=default
6716
 
 
6717
 
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
6718
 
# in isolation, and that seeing it set (from the cache) indicates that
6719
 
# the associated values are set (in the cache) correctly too.
6720
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6721
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6722
 
if test "${lt_cv_prog_cc_pic+set}" = set; then
6723
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6724
 
else
6725
 
   lt_cv_prog_cc_pic=
6726
 
  lt_cv_prog_cc_shlib=
6727
 
  lt_cv_prog_cc_wl=
6728
 
  lt_cv_prog_cc_static=
6729
 
  lt_cv_prog_cc_no_builtin=
6730
 
  lt_cv_prog_cc_can_build_shared=$can_build_shared
6731
 
 
6732
 
  if test "$GCC" = yes; then
6733
 
    lt_cv_prog_cc_wl='-Wl,'
6734
 
    lt_cv_prog_cc_static='-static'
6735
 
 
6736
 
    case $host_os in
6737
 
    aix*)
6738
 
      # Below there is a dirty hack to force normal static linking with -ldl
6739
 
      # The problem is because libdl dynamically linked with both libc and
6740
 
      # libC (AIX C++ library), which obviously doesn't included in libraries
6741
 
      # list by gcc. This cause undefined symbols with -static flags.
6742
 
      # This hack allows C programs to be linked with "-static -ldl", but
6743
 
      # not sure about C++ programs.
6744
 
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
6745
 
      ;;
6746
 
    amigaos*)
6747
 
      # FIXME: we need at least 68020 code to build shared libraries, but
6748
 
      # adding the `-m68020' flag to GCC prevents building anything better,
6749
 
      # like `-m68040'.
6750
 
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
6751
 
      ;;
6752
 
    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
6753
 
      # PIC is the default for these OSes.
6754
 
      ;;
6755
 
    darwin* | rhapsody*)
6756
 
      # PIC is the default on this platform
6757
 
      # Common symbols not allowed in MH_DYLIB files
6758
 
      lt_cv_prog_cc_pic='-fno-common'
6759
 
      ;;
6760
 
    cygwin* | mingw* | pw32* | os2*)
6761
 
      # This hack is so that the source file can tell whether it is being
6762
 
      # built for inclusion in a dll (and should export symbols for example).
6763
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
6764
 
      ;;
6765
 
    sysv4*MP*)
6766
 
      if test -d /usr/nec; then
6767
 
         lt_cv_prog_cc_pic=-Kconform_pic
6768
 
      fi
6769
 
      ;;
6770
 
    *)
6771
 
      lt_cv_prog_cc_pic='-fPIC'
6772
 
      ;;
6773
 
    esac
6774
 
  else
6775
 
    # PORTME Check for PIC flags for the system compiler.
6776
 
    case $host_os in
6777
 
    aix3* | aix4* | aix5*)
6778
 
      lt_cv_prog_cc_wl='-Wl,'
6779
 
      # All AIX code is PIC.
6780
 
      if test "$host_cpu" = ia64; then
6781
 
        # AIX 5 now supports IA64 processor
6782
 
        lt_cv_prog_cc_static='-Bstatic'
6783
 
      else
6784
 
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
6785
 
      fi
6786
 
      ;;
6787
 
 
6788
 
    hpux9* | hpux10* | hpux11*)
6789
 
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
6790
 
      lt_cv_prog_cc_wl='-Wl,'
6791
 
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
6792
 
      lt_cv_prog_cc_pic='+Z'
6793
 
      ;;
6794
 
 
6795
 
    irix5* | irix6*)
6796
 
      lt_cv_prog_cc_wl='-Wl,'
6797
 
      lt_cv_prog_cc_static='-non_shared'
6798
 
      # PIC (with -KPIC) is the default.
6799
 
      ;;
6800
 
 
6801
 
    cygwin* | mingw* | pw32* | os2*)
6802
 
      # This hack is so that the source file can tell whether it is being
6803
 
      # built for inclusion in a dll (and should export symbols for example).
6804
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
6805
 
      ;;
6806
 
 
6807
 
    newsos6)
6808
 
      lt_cv_prog_cc_pic='-KPIC'
6809
 
      lt_cv_prog_cc_static='-Bstatic'
6810
 
      ;;
6811
 
 
6812
 
    osf3* | osf4* | osf5*)
6813
 
      # All OSF/1 code is PIC.
6814
 
      lt_cv_prog_cc_wl='-Wl,'
6815
 
      lt_cv_prog_cc_static='-non_shared'
6816
 
      ;;
6817
 
 
6818
 
    sco3.2v5*)
6819
 
      lt_cv_prog_cc_pic='-Kpic'
6820
 
      lt_cv_prog_cc_static='-dn'
6821
 
      lt_cv_prog_cc_shlib='-belf'
6822
 
      ;;
6823
 
 
6824
 
    solaris*)
6825
 
      lt_cv_prog_cc_pic='-KPIC'
6826
 
      lt_cv_prog_cc_static='-Bstatic'
6827
 
      lt_cv_prog_cc_wl='-Wl,'
6828
 
      ;;
6829
 
 
6830
 
    sunos4*)
6831
 
      lt_cv_prog_cc_pic='-PIC'
6832
 
      lt_cv_prog_cc_static='-Bstatic'
6833
 
      lt_cv_prog_cc_wl='-Qoption ld '
6834
 
      ;;
6835
 
 
6836
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6837
 
      lt_cv_prog_cc_pic='-KPIC'
6838
 
      lt_cv_prog_cc_static='-Bstatic'
6839
 
      if test "x$host_vendor" = xsni; then
6840
 
        lt_cv_prog_cc_wl='-LD'
6841
 
      else
6842
 
        lt_cv_prog_cc_wl='-Wl,'
6843
 
      fi
6844
 
      ;;
6845
 
 
6846
 
    uts4*)
6847
 
      lt_cv_prog_cc_pic='-pic'
6848
 
      lt_cv_prog_cc_static='-Bstatic'
6849
 
      ;;
6850
 
 
6851
 
    sysv4*MP*)
6852
 
      if test -d /usr/nec ;then
6853
 
        lt_cv_prog_cc_pic='-Kconform_pic'
6854
 
        lt_cv_prog_cc_static='-Bstatic'
6855
 
      fi
6856
 
      ;;
6857
 
 
6858
 
    *)
6859
 
      lt_cv_prog_cc_can_build_shared=no
6860
 
      ;;
6861
 
    esac
6862
 
  fi
6863
 
 
6864
 
fi
6865
 
 
6866
 
if test -z "$lt_cv_prog_cc_pic"; then
6867
 
  echo "$as_me:$LINENO: result: none" >&5
6868
 
echo "${ECHO_T}none" >&6
6869
 
else
6870
 
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
6871
 
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
6872
 
 
6873
 
  # Check to make sure the pic_flag actually works.
6874
 
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
6875
 
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
6876
 
  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
6877
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6878
 
else
6879
 
      save_CFLAGS="$CFLAGS"
6880
 
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
6881
 
    cat >conftest.$ac_ext <<_ACEOF
6882
 
#line $LINENO "configure"
6883
 
/* confdefs.h.  */
6884
 
_ACEOF
6885
 
cat confdefs.h >>conftest.$ac_ext
6886
 
cat >>conftest.$ac_ext <<_ACEOF
6887
 
/* end confdefs.h.  */
6888
 
 
6889
 
int
6890
 
main ()
6891
 
{
6892
 
 
6893
 
  ;
6894
 
  return 0;
6895
 
}
6896
 
_ACEOF
6897
 
rm -f conftest.$ac_objext
6898
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6899
 
  (eval $ac_compile) 2>&5
6900
 
  ac_status=$?
6901
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902
 
  (exit $ac_status); } &&
6903
 
         { ac_try='test -s conftest.$ac_objext'
6904
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905
 
  (eval $ac_try) 2>&5
6906
 
  ac_status=$?
6907
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908
 
  (exit $ac_status); }; }; then
6909
 
        case $host_os in
6910
 
      hpux9* | hpux10* | hpux11*)
6911
 
        # On HP-UX, both CC and GCC only warn that PIC is supported... then
6912
 
        # they create non-PIC objects.  So, if there were any warnings, we
6913
 
        # assume that PIC is not supported.
6914
 
        if test -s conftest.err; then
6915
 
          lt_cv_prog_cc_pic_works=no
6916
 
        else
6917
 
          lt_cv_prog_cc_pic_works=yes
6918
 
        fi
6919
 
        ;;
6920
 
      *)
6921
 
        lt_cv_prog_cc_pic_works=yes
6922
 
        ;;
6923
 
      esac
6924
 
 
6925
 
else
6926
 
  echo "$as_me: failed program was:" >&5
6927
 
sed 's/^/| /' conftest.$ac_ext >&5
6928
 
 
6929
 
      lt_cv_prog_cc_pic_works=no
6930
 
 
6931
 
fi
6932
 
rm -f conftest.$ac_objext conftest.$ac_ext
6933
 
    CFLAGS="$save_CFLAGS"
6934
 
 
6935
 
fi
6936
 
 
6937
 
 
6938
 
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
6939
 
    lt_cv_prog_cc_pic=
6940
 
    lt_cv_prog_cc_can_build_shared=no
6941
 
  else
6942
 
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
6943
 
  fi
6944
 
 
6945
 
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
6946
 
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
6947
 
fi
6948
 
##
6949
 
## END FIXME
6950
 
 
6951
 
# Check for any special shared library compilation flags.
6952
 
if test -n "$lt_cv_prog_cc_shlib"; then
6953
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
6954
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
6955
 
  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
6956
 
  else
6957
 
   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6958
 
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6959
 
    lt_cv_prog_cc_can_build_shared=no
6960
 
  fi
6961
 
fi
6962
 
 
6963
 
## FIXME: this should be a separate macro
6964
 
##
6965
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
6966
 
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
6967
 
if test "${lt_cv_prog_cc_static_works+set}" = set; then
6968
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6969
 
else
6970
 
    lt_cv_prog_cc_static_works=no
6971
 
  save_LDFLAGS="$LDFLAGS"
6972
 
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
6973
 
  cat >conftest.$ac_ext <<_ACEOF
6974
 
#line $LINENO "configure"
6975
 
/* confdefs.h.  */
6976
 
_ACEOF
6977
 
cat confdefs.h >>conftest.$ac_ext
6978
 
cat >>conftest.$ac_ext <<_ACEOF
6979
 
/* end confdefs.h.  */
6980
 
 
6981
 
int
6982
 
main ()
6983
 
{
6984
 
 
6985
 
  ;
6986
 
  return 0;
6987
 
}
6988
 
_ACEOF
6989
 
rm -f conftest.$ac_objext conftest$ac_exeext
6990
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6991
 
  (eval $ac_link) 2>&5
6992
 
  ac_status=$?
6993
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994
 
  (exit $ac_status); } &&
6995
 
         { ac_try='test -s conftest$ac_exeext'
6996
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997
 
  (eval $ac_try) 2>&5
6998
 
  ac_status=$?
6999
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000
 
  (exit $ac_status); }; }; then
7001
 
  lt_cv_prog_cc_static_works=yes
7002
 
else
7003
 
  echo "$as_me: failed program was:" >&5
7004
 
sed 's/^/| /' conftest.$ac_ext >&5
7005
 
 
7006
 
fi
7007
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7008
 
  LDFLAGS="$save_LDFLAGS"
7009
 
 
7010
 
fi
7011
 
 
7012
 
 
7013
 
# Belt *and* braces to stop my trousers falling down:
7014
 
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
7015
 
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
7016
 
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
7017
 
 
7018
 
pic_flag="$lt_cv_prog_cc_pic"
7019
 
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
7020
 
wl="$lt_cv_prog_cc_wl"
7021
 
link_static_flag="$lt_cv_prog_cc_static"
7022
 
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
7023
 
can_build_shared="$lt_cv_prog_cc_can_build_shared"
7024
 
##
7025
 
## END FIXME
7026
 
 
7027
 
 
7028
 
## FIXME: this should be a separate macro
7029
 
##
7030
 
# Check to see if options -o and -c are simultaneously supported by compiler
7031
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7032
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7033
 
if test "${lt_cv_compiler_c_o+set}" = set; then
7034
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7035
 
else
7036
 
 
7037
 
$rm -r conftest 2>/dev/null
7038
 
mkdir conftest
7039
 
cd conftest
7040
 
echo "int some_variable = 0;" > conftest.$ac_ext
7041
 
mkdir out
7042
 
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
7043
 
# that will create temporary files in the current directory regardless of
7044
 
# the output directory.  Thus, making CWD read-only will cause this test
7045
 
# to fail, enabling locking or at least warning the user not to do parallel
7046
 
# builds.
7047
 
chmod -w .
7048
 
save_CFLAGS="$CFLAGS"
7049
 
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
7050
 
compiler_c_o=no
7051
 
if { (eval echo configure:7039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
7052
 
  # The compiler can only warn and ignore the option if not recognized
7053
 
  # So say no if there are warnings
7054
 
  if test -s out/conftest.err; then
7055
 
    lt_cv_compiler_c_o=no
7056
 
  else
7057
 
    lt_cv_compiler_c_o=yes
7058
 
  fi
7059
 
else
7060
 
  # Append any errors to the config.log.
7061
 
  cat out/conftest.err 1>&5
7062
 
  lt_cv_compiler_c_o=no
7063
 
fi
7064
 
CFLAGS="$save_CFLAGS"
7065
 
chmod u+w .
7066
 
$rm conftest* out/*
7067
 
rmdir out
7068
 
cd ..
7069
 
rmdir conftest
7070
 
$rm -r conftest 2>/dev/null
7071
 
 
7072
 
fi
7073
 
 
7074
 
compiler_c_o=$lt_cv_compiler_c_o
7075
 
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
7076
 
echo "${ECHO_T}$compiler_c_o" >&6
7077
 
 
7078
 
if test x"$compiler_c_o" = x"yes"; then
7079
 
  # Check to see if we can write to a .lo
7080
 
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
7081
 
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
7082
 
  if test "${lt_cv_compiler_o_lo+set}" = set; then
7083
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7084
 
else
7085
 
 
7086
 
  lt_cv_compiler_o_lo=no
7087
 
  save_CFLAGS="$CFLAGS"
7088
 
  CFLAGS="$CFLAGS -c -o conftest.lo"
7089
 
  save_objext="$ac_objext"
7090
 
  ac_objext=lo
7091
 
  cat >conftest.$ac_ext <<_ACEOF
7092
 
#line $LINENO "configure"
7093
 
/* confdefs.h.  */
7094
 
_ACEOF
7095
 
cat confdefs.h >>conftest.$ac_ext
7096
 
cat >>conftest.$ac_ext <<_ACEOF
7097
 
/* end confdefs.h.  */
7098
 
 
7099
 
int
7100
 
main ()
7101
 
{
7102
 
int some_variable = 0;
7103
 
  ;
7104
 
  return 0;
7105
 
}
7106
 
_ACEOF
7107
 
rm -f conftest.$ac_objext
7108
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7109
 
  (eval $ac_compile) 2>&5
7110
 
  ac_status=$?
7111
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112
 
  (exit $ac_status); } &&
7113
 
         { ac_try='test -s conftest.$ac_objext'
7114
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115
 
  (eval $ac_try) 2>&5
7116
 
  ac_status=$?
7117
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118
 
  (exit $ac_status); }; }; then
7119
 
      # The compiler can only warn and ignore the option if not recognized
7120
 
    # So say no if there are warnings
7121
 
    if test -s conftest.err; then
7122
 
      lt_cv_compiler_o_lo=no
7123
 
    else
7124
 
      lt_cv_compiler_o_lo=yes
7125
 
    fi
7126
 
 
7127
 
else
7128
 
  echo "$as_me: failed program was:" >&5
7129
 
sed 's/^/| /' conftest.$ac_ext >&5
7130
 
 
7131
 
fi
7132
 
rm -f conftest.$ac_objext conftest.$ac_ext
7133
 
  ac_objext="$save_objext"
7134
 
  CFLAGS="$save_CFLAGS"
7135
 
 
7136
 
fi
7137
 
 
7138
 
  compiler_o_lo=$lt_cv_compiler_o_lo
7139
 
  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
7140
 
echo "${ECHO_T}$compiler_o_lo" >&6
7141
 
else
7142
 
  compiler_o_lo=no
7143
 
fi
7144
 
##
7145
 
## END FIXME
7146
 
 
7147
 
## FIXME: this should be a separate macro
7148
 
##
7149
 
# Check to see if we can do hard links to lock some files if needed
7150
 
hard_links="nottested"
7151
 
if test "$compiler_c_o" = no && test "$need_locks" != no; then
7152
 
  # do not overwrite the value of need_locks provided by the user
7153
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7154
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7155
 
  hard_links=yes
7156
 
  $rm conftest*
7157
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7158
 
  touch conftest.a
7159
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
7160
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7161
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
7162
 
echo "${ECHO_T}$hard_links" >&6
7163
 
  if test "$hard_links" = no; then
7164
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7165
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7166
 
    need_locks=warn
7167
 
  fi
7168
 
else
7169
 
  need_locks=no
7170
 
fi
7171
 
##
7172
 
## END FIXME
7173
 
 
7174
 
## FIXME: this should be a separate macro
7175
 
##
7176
 
if test "$GCC" = yes; then
7177
 
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
7178
 
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7179
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7180
 
  echo "int some_variable = 0;" > conftest.$ac_ext
7181
 
  save_CFLAGS="$CFLAGS"
7182
 
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
7183
 
  compiler_rtti_exceptions=no
7184
 
  cat >conftest.$ac_ext <<_ACEOF
7185
 
#line $LINENO "configure"
7186
 
/* confdefs.h.  */
7187
 
_ACEOF
7188
 
cat confdefs.h >>conftest.$ac_ext
7189
 
cat >>conftest.$ac_ext <<_ACEOF
7190
 
/* end confdefs.h.  */
7191
 
 
7192
 
int
7193
 
main ()
7194
 
{
7195
 
int some_variable = 0;
7196
 
  ;
7197
 
  return 0;
7198
 
}
7199
 
_ACEOF
7200
 
rm -f conftest.$ac_objext
7201
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7202
 
  (eval $ac_compile) 2>&5
7203
 
  ac_status=$?
7204
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205
 
  (exit $ac_status); } &&
7206
 
         { ac_try='test -s conftest.$ac_objext'
7207
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208
 
  (eval $ac_try) 2>&5
7209
 
  ac_status=$?
7210
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211
 
  (exit $ac_status); }; }; then
7212
 
      # The compiler can only warn and ignore the option if not recognized
7213
 
    # So say no if there are warnings
7214
 
    if test -s conftest.err; then
7215
 
      compiler_rtti_exceptions=no
7216
 
    else
7217
 
      compiler_rtti_exceptions=yes
7218
 
    fi
7219
 
 
7220
 
else
7221
 
  echo "$as_me: failed program was:" >&5
7222
 
sed 's/^/| /' conftest.$ac_ext >&5
7223
 
 
7224
 
fi
7225
 
rm -f conftest.$ac_objext conftest.$ac_ext
7226
 
  CFLAGS="$save_CFLAGS"
7227
 
  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
7228
 
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
7229
 
 
7230
 
  if test "$compiler_rtti_exceptions" = "yes"; then
7231
 
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
7232
 
  else
7233
 
    no_builtin_flag=' -fno-builtin'
7234
 
  fi
7235
 
fi
7236
 
##
7237
 
## END FIXME
7238
 
 
7239
 
## FIXME: this should be a separate macro
7240
 
##
7241
 
# See if the linker supports building shared libraries.
7242
 
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
7243
 
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
7244
 
 
7245
 
allow_undefined_flag=
7246
 
no_undefined_flag=
7247
 
need_lib_prefix=unknown
7248
 
need_version=unknown
7249
 
# when you set need_version to no, make sure it does not cause -set_version
7250
 
# flags to be left without arguments
7251
 
archive_cmds=
7252
 
archive_expsym_cmds=
7253
 
old_archive_from_new_cmds=
7254
 
old_archive_from_expsyms_cmds=
7255
 
export_dynamic_flag_spec=
7256
 
whole_archive_flag_spec=
7257
 
thread_safe_flag_spec=
7258
 
hardcode_into_libs=no
7259
 
hardcode_libdir_flag_spec=
7260
 
hardcode_libdir_separator=
7261
 
hardcode_direct=no
7262
 
hardcode_minus_L=no
7263
 
hardcode_shlibpath_var=unsupported
7264
 
runpath_var=
7265
 
link_all_deplibs=unknown
7266
 
always_export_symbols=no
7267
 
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
7268
 
# include_expsyms should be a list of space-separated symbols to be *always*
7269
 
# included in the symbol list
7270
 
include_expsyms=
7271
 
# exclude_expsyms can be an egrep regular expression of symbols to exclude
7272
 
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7273
 
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7274
 
# as well as any symbol that contains `d'.
7275
 
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7276
 
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7277
 
# platforms (ab)use it in PIC code, but their linkers get confused if
7278
 
# the symbol is explicitly referenced.  Since portable code cannot
7279
 
# rely on this symbol name, it's probably fine to never include it in
7280
 
# preloaded symbol tables.
7281
 
extract_expsyms_cmds=
7282
 
 
7283
 
case $host_os in
7284
 
cygwin* | mingw* | pw32*)
7285
 
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
7286
 
  # When not using gcc, we currently assume that we are using
7287
 
  # Microsoft Visual C++.
7288
 
  if test "$GCC" != yes; then
7289
 
    with_gnu_ld=no
7290
 
  fi
7291
 
  ;;
7292
 
openbsd*)
7293
 
  with_gnu_ld=no
7294
 
  ;;
7295
 
esac
7296
 
 
7297
 
ld_shlibs=yes
7298
 
if test "$with_gnu_ld" = yes; then
7299
 
  # If archive_cmds runs LD, not CC, wlarc should be empty
7300
 
  wlarc='${wl}'
7301
 
 
7302
 
  # See if GNU ld supports shared libraries.
7303
 
  case $host_os in
7304
 
  aix3* | aix4* | aix5*)
7305
 
    # On AIX, the GNU linker is very broken
7306
 
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
7307
 
    ld_shlibs=no
7308
 
    cat <<EOF 1>&2
7309
 
 
7310
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7311
 
*** to be unable to reliably create shared libraries on AIX.
7312
 
*** Therefore, libtool is disabling shared libraries support.  If you
7313
 
*** really care for shared libraries, you may want to modify your PATH
7314
 
*** so that a non-GNU linker is found, and then restart.
7315
 
 
7316
 
EOF
7317
 
    ;;
7318
 
 
7319
 
  amigaos*)
7320
 
    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)'
7321
 
    hardcode_libdir_flag_spec='-L$libdir'
7322
 
    hardcode_minus_L=yes
7323
 
 
7324
 
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7325
 
    # that the semantics of dynamic libraries on AmigaOS, at least up
7326
 
    # to version 4, is to share data among multiple programs linked
7327
 
    # with the same dynamic library.  Since this doesn't match the
7328
 
    # behavior of shared libraries on other platforms, we can use
7329
 
    # them.
7330
 
    ld_shlibs=no
7331
 
    ;;
7332
 
 
7333
 
  beos*)
7334
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7335
 
      allow_undefined_flag=unsupported
7336
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7337
 
      # support --undefined.  This deserves some investigation.  FIXME
7338
 
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7339
 
    else
7340
 
      ld_shlibs=no
7341
 
    fi
7342
 
    ;;
7343
 
 
7344
 
  cygwin* | mingw* | pw32*)
7345
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
7346
 
    # no search path for DLLs.
7347
 
    hardcode_libdir_flag_spec='-L$libdir'
7348
 
    allow_undefined_flag=unsupported
7349
 
    always_export_symbols=yes
7350
 
 
7351
 
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
7352
 
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
7353
 
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
7354
 
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
7355
 
      else $CC -o impgen impgen.c ; fi)~
7356
 
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
7357
 
 
7358
 
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
7359
 
 
7360
 
    # cygwin and mingw dlls have different entry points and sets of symbols
7361
 
    # to exclude.
7362
 
    # FIXME: what about values for MSVC?
7363
 
    dll_entry=__cygwin_dll_entry@12
7364
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
7365
 
    case $host_os in
7366
 
    mingw*)
7367
 
      # mingw values
7368
 
      dll_entry=_DllMainCRTStartup@12
7369
 
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
7370
 
      ;;
7371
 
    esac
7372
 
 
7373
 
    # mingw and cygwin differ, and it's simplest to just exclude the union
7374
 
    # of the two symbol sets.
7375
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
7376
 
 
7377
 
    # recent cygwin and mingw systems supply a stub DllMain which the user
7378
 
    # can override, but on older systems we have to supply one (in ltdll.c)
7379
 
    if test "x$lt_cv_need_dllmain" = "xyes"; then
7380
 
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
7381
 
      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
7382
 
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
7383
 
    else
7384
 
      ltdll_obj=
7385
 
      ltdll_cmds=
7386
 
    fi
7387
 
 
7388
 
    # Extract the symbol export list from an `--export-all' def file,
7389
 
    # then regenerate the def file from the symbol export list, so that
7390
 
    # the compiled dll only exports the symbol export list.
7391
 
    # Be careful not to strip the DATA tag left be newer dlltools.
7392
 
    export_symbols_cmds="$ltdll_cmds"'
7393
 
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
7394
 
      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
7395
 
 
7396
 
    # If the export-symbols file already is a .def file (1st line
7397
 
    # is EXPORTS), use it as is.
7398
 
    # If DATA tags from a recent dlltool are present, honour them!
7399
 
    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
7400
 
        cp $export_symbols $output_objdir/$soname-def;
7401
 
      else
7402
 
        echo EXPORTS > $output_objdir/$soname-def;
7403
 
        _lt_hint=1;
7404
 
        cat $export_symbols | while read symbol; do
7405
 
         set dummy \$symbol;
7406
 
         case \$# in
7407
 
           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
7408
 
           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
7409
 
         esac;
7410
 
         _lt_hint=`expr 1 + \$_lt_hint`;
7411
 
        done;
7412
 
      fi~
7413
 
      '"$ltdll_cmds"'
7414
 
      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
7415
 
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
7416
 
      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
7417
 
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
7418
 
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
7419
 
    ;;
7420
 
 
7421
 
  netbsd*)
7422
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7423
 
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7424
 
      wlarc=
7425
 
    else
7426
 
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7427
 
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7428
 
    fi
7429
 
    ;;
7430
 
 
7431
 
  solaris* | sysv5*)
7432
 
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
7433
 
      ld_shlibs=no
7434
 
      cat <<EOF 1>&2
7435
 
 
7436
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7437
 
*** create shared libraries on Solaris systems.  Therefore, libtool
7438
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
7439
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
7440
 
*** your PATH or compiler configuration so that the native linker is
7441
 
*** used, and then restart.
7442
 
 
7443
 
EOF
7444
 
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7445
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7446
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7447
 
    else
7448
 
      ld_shlibs=no
7449
 
    fi
7450
 
    ;;
7451
 
 
7452
 
  sunos4*)
7453
 
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7454
 
    wlarc=
7455
 
    hardcode_direct=yes
7456
 
    hardcode_shlibpath_var=no
7457
 
    ;;
7458
 
 
7459
 
  *)
7460
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7461
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7462
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7463
 
    else
7464
 
      ld_shlibs=no
7465
 
    fi
7466
 
    ;;
7467
 
  esac
7468
 
 
7469
 
  if test "$ld_shlibs" = yes; then
7470
 
    runpath_var=LD_RUN_PATH
7471
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7472
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
7473
 
    case $host_os in
7474
 
    cygwin* | mingw* | pw32*)
7475
 
      # dlltool doesn't understand --whole-archive et. al.
7476
 
      whole_archive_flag_spec=
7477
 
      ;;
7478
 
    *)
7479
 
      # ancient GNU ld didn't support --whole-archive et. al.
7480
 
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
7481
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7482
 
      else
7483
 
        whole_archive_flag_spec=
7484
 
      fi
7485
 
      ;;
7486
 
    esac
7487
 
  fi
7488
 
else
7489
 
  # PORTME fill in a description of your system's linker (not GNU ld)
7490
 
  case $host_os in
7491
 
  aix3*)
7492
 
    allow_undefined_flag=unsupported
7493
 
    always_export_symbols=yes
7494
 
    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'
7495
 
    # Note: this linker hardcodes the directories in LIBPATH if there
7496
 
    # are no directories specified by -L.
7497
 
    hardcode_minus_L=yes
7498
 
    if test "$GCC" = yes && test -z "$link_static_flag"; then
7499
 
      # Neither direct hardcoding nor static linking is supported with a
7500
 
      # broken collect2.
7501
 
      hardcode_direct=unsupported
7502
 
    fi
7503
 
    ;;
7504
 
 
7505
 
  aix4* | aix5*)
7506
 
    if test "$host_cpu" = ia64; then
7507
 
      # On IA64, the linker does run time linking by default, so we don't
7508
 
      # have to do anything special.
7509
 
      aix_use_runtimelinking=no
7510
 
      exp_sym_flag='-Bexport'
7511
 
      no_entry_flag=""
7512
 
    else
7513
 
      aix_use_runtimelinking=no
7514
 
 
7515
 
      # Test if we are trying to use run time linking or normal
7516
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7517
 
      # need to do runtime linking.
7518
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7519
 
        for ld_flag in $LDFLAGS; do
7520
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7521
 
            aix_use_runtimelinking=yes
7522
 
            break
7523
 
          fi
7524
 
        done
7525
 
      esac
7526
 
 
7527
 
      exp_sym_flag='-bexport'
7528
 
      no_entry_flag='-bnoentry'
7529
 
    fi
7530
 
 
7531
 
    # When large executables or shared objects are built, AIX ld can
7532
 
    # have problems creating the table of contents.  If linking a library
7533
 
    # or program results in "error TOC overflow" add -mminimal-toc to
7534
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7535
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7536
 
 
7537
 
    hardcode_direct=yes
7538
 
    archive_cmds=''
7539
 
    hardcode_libdir_separator=':'
7540
 
 
7541
 
    #### Local change for Sleepycat's Berkeley DB [#5779]:
7542
 
    # Added $aix_export variable to control use of exports file.
7543
 
    # For non-gcc, we don't use exports files, and rather trust
7544
 
    # the binder's -qmkshrobj option to export all the mangled
7545
 
    # symbols we need for C++ and java.
7546
 
 
7547
 
    aix_export="\${wl}$exp_sym_flag:\$export_symbols"
7548
 
 
7549
 
    if test "$GCC" = yes; then
7550
 
      case $host_os in aix4.[012]|aix4.[012].*)
7551
 
        collect2name=`${CC} -print-prog-name=collect2`
7552
 
        if test -f "$collect2name" && \
7553
 
          strings "$collect2name" | grep resolve_lib_name >/dev/null
7554
 
        then
7555
 
          # We have reworked collect2
7556
 
          hardcode_direct=yes
7557
 
        else
7558
 
          # We have old collect2
7559
 
          hardcode_direct=unsupported
7560
 
          # It fails to find uninstalled libraries when the uninstalled
7561
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
7562
 
          # to unsupported forces relinking
7563
 
          hardcode_minus_L=yes
7564
 
          hardcode_libdir_flag_spec='-L$libdir'
7565
 
          hardcode_libdir_separator=
7566
 
        fi
7567
 
      esac
7568
 
 
7569
 
      shared_flag='-shared'
7570
 
    else
7571
 
      # not using gcc
7572
 
      if test "$host_cpu" = ia64; then
7573
 
        shared_flag='${wl}-G'
7574
 
      else
7575
 
        if test "$aix_use_runtimelinking" = yes; then
7576
 
          shared_flag='${wl}-G'
7577
 
        else
7578
 
          shared_flag='${wl}-bM:SRE'
7579
 
        fi
7580
 
      fi
7581
 
 
7582
 
      # Test for -qmkshrobj and use it if it's available.
7583
 
      # It's superior for determining exportable symbols,
7584
 
      # especially for C++ or JNI libraries, which have
7585
 
      # mangled names.
7586
 
      #
7587
 
      cat >conftest.$ac_ext <<_ACEOF
7588
 
void f(){}
7589
 
_ACEOF
7590
 
      if { (eval echo "$as_me:$LINENO: \"$CC -c conftest.c\"") >&5
7591
 
  (eval $CC -c conftest.c) 2>&5
7592
 
  ac_status=$?
7593
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594
 
  (exit $ac_status); } && { (eval echo "$as_me:$LINENO: \"$CC -o conftest conftest.$ac_objext -qmkshrobj -lC_r\"") >&5
7595
 
  (eval $CC -o conftest conftest.$ac_objext -qmkshrobj -lC_r) 2>&5
7596
 
  ac_status=$?
7597
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598
 
  (exit $ac_status); }; then
7599
 
        lt_cv_aix_mkshrobj=yes
7600
 
      else
7601
 
        lt_cv_aix_mkshrobj=no
7602
 
      fi
7603
 
 
7604
 
      if test "$lt_cv_aix_mkshrobj" = yes; then
7605
 
        aix_export="-qmkshrobj"
7606
 
      fi
7607
 
    fi
7608
 
 
7609
 
    # It seems that -bexpall can do strange things, so it is better to
7610
 
    # generate a list of symbols to export.
7611
 
    always_export_symbols=yes
7612
 
    if test "$aix_use_runtimelinking" = yes; then
7613
 
      # Warning - without using the other runtime loading flags (-brtl),
7614
 
      # -berok will link without error, but may produce a broken library.
7615
 
      allow_undefined_flag='-berok'
7616
 
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
7617
 
      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag $aix_export $shared_flag"
7618
 
    else
7619
 
      if test "$host_cpu" = ia64; then
7620
 
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7621
 
        allow_undefined_flag="-z nodefs"
7622
 
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag $aix_export"
7623
 
      else
7624
 
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
7625
 
        # Warning - without using the other run time loading flags,
7626
 
        # -berok will link without error, but may produce a broken library.
7627
 
        allow_undefined_flag='${wl}-berok'
7628
 
        # This is a bit strange, but is similar to how AIX traditionally builds
7629
 
        # it's shared libraries.
7630
 
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag $aix_export"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
7631
 
      fi
7632
 
    fi
7633
 
    ;;
7634
 
 
7635
 
  amigaos*)
7636
 
    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)'
7637
 
    hardcode_libdir_flag_spec='-L$libdir'
7638
 
    hardcode_minus_L=yes
7639
 
    # see comment about different semantics on the GNU ld section
7640
 
    ld_shlibs=no
7641
 
    ;;
7642
 
 
7643
 
  cygwin* | mingw* | pw32*)
7644
 
    # When not using gcc, we currently assume that we are using
7645
 
    # Microsoft Visual C++.
7646
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
7647
 
    # no search path for DLLs.
7648
 
    hardcode_libdir_flag_spec=' '
7649
 
    allow_undefined_flag=unsupported
7650
 
    # Tell ltmain to make .lib files, not .a files.
7651
 
    libext=lib
7652
 
    # FIXME: Setting linknames here is a bad hack.
7653
 
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7654
 
    # The linker will automatically build a .lib file if we build a DLL.
7655
 
    old_archive_from_new_cmds='true'
7656
 
    # FIXME: Should let the user specify the lib program.
7657
 
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7658
 
    fix_srcfile_path='`cygpath -w "$srcfile"`'
7659
 
    ;;
7660
 
 
7661
 
  darwin* | rhapsody*)
7662
 
    case "$host_os" in
7663
 
    rhapsody* | darwin1.[012])
7664
 
      allow_undefined_flag='-undefined suppress'
7665
 
      ;;
7666
 
    *) # Darwin 1.3 on
7667
 
      allow_undefined_flag='-flat_namespace -undefined suppress'
7668
 
      ;;
7669
 
    esac
7670
 
    # FIXME: Relying on posixy $() will cause problems for
7671
 
    #        cross-compilation, but unfortunately the echo tests do not
7672
 
    #        yet detect zsh echo's removal of \ escapes.
7673
 
 
7674
 
    #### Local change for Sleepycat's Berkeley DB [#5664] [#6511]
7675
 
    case "$host_os" in
7676
 
    darwin[12345].*)
7677
 
       # removed double quotes in the following line:
7678
 
       archive_cmds='$nonopt $(test x$module = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
7679
 
       ;;
7680
 
    *) # Darwin6.0 on (Mac OS/X Jaguar)
7681
 
       archive_cmds='$nonopt $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -dynamiclib -install_name $rpath/$soname $verstring'
7682
 
       ;;
7683
 
    esac
7684
 
    #### End of changes for Sleepycat's Berkeley DB [#5664] [#6511]
7685
 
 
7686
 
    # We need to add '_' to the symbols in $export_symbols first
7687
 
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
7688
 
    hardcode_direct=yes
7689
 
    hardcode_shlibpath_var=no
7690
 
    whole_archive_flag_spec='-all_load $convenience'
7691
 
    ;;
7692
 
 
7693
 
  freebsd1*)
7694
 
    ld_shlibs=no
7695
 
    ;;
7696
 
 
7697
 
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7698
 
  # support.  Future versions do this automatically, but an explicit c++rt0.o
7699
 
  # does not break anything, and helps significantly (at the cost of a little
7700
 
  # extra space).
7701
 
  freebsd2.2*)
7702
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7703
 
    hardcode_libdir_flag_spec='-R$libdir'
7704
 
    hardcode_direct=yes
7705
 
    hardcode_shlibpath_var=no
7706
 
    ;;
7707
 
 
7708
 
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7709
 
  freebsd2*)
7710
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7711
 
    hardcode_direct=yes
7712
 
    hardcode_minus_L=yes
7713
 
    hardcode_shlibpath_var=no
7714
 
    ;;
7715
 
 
7716
 
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7717
 
  freebsd*)
7718
 
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7719
 
    hardcode_libdir_flag_spec='-R$libdir'
7720
 
    hardcode_direct=yes
7721
 
    hardcode_shlibpath_var=no
7722
 
    ;;
7723
 
 
7724
 
  hpux9* | hpux10* | hpux11*)
7725
 
    case $host_os in
7726
 
    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
7727
 
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
7728
 
    esac
7729
 
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7730
 
    hardcode_libdir_separator=:
7731
 
    hardcode_direct=yes
7732
 
    hardcode_minus_L=yes # Not in the search PATH, but as the default
7733
 
                         # location of the library.
7734
 
    export_dynamic_flag_spec='${wl}-E'
7735
 
    ;;
7736
 
 
7737
 
  irix5* | irix6*)
7738
 
    if test "$GCC" = yes; then
7739
 
      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'
7740
 
    else
7741
 
      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'
7742
 
    fi
7743
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7744
 
    hardcode_libdir_separator=:
7745
 
    link_all_deplibs=yes
7746
 
    ;;
7747
 
 
7748
 
  netbsd*)
7749
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7750
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7751
 
    else
7752
 
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7753
 
    fi
7754
 
    hardcode_libdir_flag_spec='-R$libdir'
7755
 
    hardcode_direct=yes
7756
 
    hardcode_shlibpath_var=no
7757
 
    ;;
7758
 
 
7759
 
  newsos6)
7760
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7761
 
    hardcode_direct=yes
7762
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7763
 
    hardcode_libdir_separator=:
7764
 
    hardcode_shlibpath_var=no
7765
 
    ;;
7766
 
 
7767
 
  openbsd*)
7768
 
    hardcode_direct=yes
7769
 
    hardcode_shlibpath_var=no
7770
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7771
 
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
7772
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7773
 
      export_dynamic_flag_spec='${wl}-E'
7774
 
    else
7775
 
      case "$host_os" in
7776
 
      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7777
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7778
 
        hardcode_libdir_flag_spec='-R$libdir'
7779
 
        ;;
7780
 
      *)
7781
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
7782
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7783
 
        ;;
7784
 
      esac
7785
 
    fi
7786
 
    ;;
7787
 
 
7788
 
  os2*)
7789
 
    hardcode_libdir_flag_spec='-L$libdir'
7790
 
    hardcode_minus_L=yes
7791
 
    allow_undefined_flag=unsupported
7792
 
    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'
7793
 
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7794
 
    ;;
7795
 
 
7796
 
  osf3*)
7797
 
    if test "$GCC" = yes; then
7798
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7799
 
      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'
7800
 
    else
7801
 
      allow_undefined_flag=' -expect_unresolved \*'
7802
 
      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'
7803
 
    fi
7804
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7805
 
    hardcode_libdir_separator=:
7806
 
    ;;
7807
 
 
7808
 
  osf4* | osf5*)        # as osf3* with the addition of -msym flag
7809
 
    if test "$GCC" = yes; then
7810
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7811
 
      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'
7812
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7813
 
    else
7814
 
      allow_undefined_flag=' -expect_unresolved \*'
7815
 
      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'
7816
 
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7817
 
      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7818
 
 
7819
 
      #Both c and cxx compiler support -rpath directly
7820
 
      hardcode_libdir_flag_spec='-rpath $libdir'
7821
 
    fi
7822
 
    hardcode_libdir_separator=:
7823
 
    ;;
7824
 
 
7825
 
  sco3.2v5*)
7826
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7827
 
    hardcode_shlibpath_var=no
7828
 
    runpath_var=LD_RUN_PATH
7829
 
    hardcode_runpath_var=yes
7830
 
    export_dynamic_flag_spec='${wl}-Bexport'
7831
 
    ;;
7832
 
 
7833
 
  solaris*)
7834
 
    # gcc --version < 3.0 without binutils cannot create self contained
7835
 
    # shared libraries reliably, requiring libgcc.a to resolve some of
7836
 
    # the object symbols generated in some cases.  Libraries that use
7837
 
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
7838
 
    # a copy of libgcc.a into every shared library to guarantee resolving
7839
 
    # such symbols causes other problems:  According to Tim Van Holder
7840
 
    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
7841
 
    # (to the application) exception stack for one thing.
7842
 
    no_undefined_flag=' -z defs'
7843
 
    if test "$GCC" = yes; then
7844
 
      case `$CC --version 2>/dev/null` in
7845
 
      [12].*)
7846
 
        cat <<EOF 1>&2
7847
 
 
7848
 
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
7849
 
*** create self contained shared libraries on Solaris systems, without
7850
 
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
7851
 
*** -no-undefined support, which will at least allow you to build shared
7852
 
*** libraries.  However, you may find that when you link such libraries
7853
 
*** into an application without using GCC, you have to manually add
7854
 
*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
7855
 
*** upgrade to a newer version of GCC.  Another option is to rebuild your
7856
 
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
7857
 
 
7858
 
EOF
7859
 
        no_undefined_flag=
7860
 
        ;;
7861
 
      esac
7862
 
    fi
7863
 
    # $CC -shared without GNU ld will not create a library from C++
7864
 
    # object files and a static libstdc++, better avoid it by now
7865
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7866
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7867
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7868
 
    hardcode_libdir_flag_spec='-R$libdir'
7869
 
    hardcode_shlibpath_var=no
7870
 
    case $host_os in
7871
 
    solaris2.[0-5] | solaris2.[0-5].*) ;;
7872
 
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7873
 
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7874
 
    esac
7875
 
    link_all_deplibs=yes
7876
 
    ;;
7877
 
 
7878
 
  sunos4*)
7879
 
    if test "x$host_vendor" = xsequent; then
7880
 
      # Use $CC to link under sequent, because it throws in some extra .o
7881
 
      # files that make .init and .fini sections work.
7882
 
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7883
 
    else
7884
 
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7885
 
    fi
7886
 
    hardcode_libdir_flag_spec='-L$libdir'
7887
 
    hardcode_direct=yes
7888
 
    hardcode_minus_L=yes
7889
 
    hardcode_shlibpath_var=no
7890
 
    ;;
7891
 
 
7892
 
  sysv4)
7893
 
    if test "x$host_vendor" = xsno; then
7894
 
      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
7895
 
      hardcode_direct=yes # is this really true???
7896
 
    else
7897
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7898
 
      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7899
 
    fi
7900
 
    runpath_var='LD_RUN_PATH'
7901
 
    hardcode_shlibpath_var=no
7902
 
    ;;
7903
 
 
7904
 
  sysv4.3*)
7905
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7906
 
    hardcode_shlibpath_var=no
7907
 
    export_dynamic_flag_spec='-Bexport'
7908
 
    ;;
7909
 
 
7910
 
  sysv5*)
7911
 
    no_undefined_flag=' -z text'
7912
 
    # $CC -shared without GNU ld will not create a library from C++
7913
 
    # object files and a static libstdc++, better avoid it by now
7914
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7915
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7916
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7917
 
    hardcode_libdir_flag_spec=
7918
 
    hardcode_shlibpath_var=no
7919
 
    runpath_var='LD_RUN_PATH'
7920
 
    ;;
7921
 
 
7922
 
  uts4*)
7923
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7924
 
    hardcode_libdir_flag_spec='-L$libdir'
7925
 
    hardcode_shlibpath_var=no
7926
 
    ;;
7927
 
 
7928
 
  dgux*)
7929
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7930
 
    hardcode_libdir_flag_spec='-L$libdir'
7931
 
    hardcode_shlibpath_var=no
7932
 
    ;;
7933
 
 
7934
 
  sysv4*MP*)
7935
 
    if test -d /usr/nec; then
7936
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7937
 
      hardcode_shlibpath_var=no
7938
 
      runpath_var=LD_RUN_PATH
7939
 
      hardcode_runpath_var=yes
7940
 
      ld_shlibs=yes
7941
 
    fi
7942
 
    ;;
7943
 
 
7944
 
  sysv4.2uw2*)
7945
 
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7946
 
    hardcode_direct=yes
7947
 
    hardcode_minus_L=no
7948
 
    hardcode_shlibpath_var=no
7949
 
    hardcode_runpath_var=yes
7950
 
    runpath_var=LD_RUN_PATH
7951
 
    ;;
7952
 
 
7953
 
  sysv5uw7* | unixware7*)
7954
 
    no_undefined_flag='${wl}-z ${wl}text'
7955
 
    if test "$GCC" = yes; then
7956
 
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7957
 
    else
7958
 
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7959
 
    fi
7960
 
    runpath_var='LD_RUN_PATH'
7961
 
    hardcode_shlibpath_var=no
7962
 
    ;;
7963
 
 
7964
 
  *)
7965
 
    ld_shlibs=no
7966
 
    ;;
7967
 
  esac
7968
 
fi
7969
 
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7970
 
echo "${ECHO_T}$ld_shlibs" >&6
7971
 
test "$ld_shlibs" = no && can_build_shared=no
7972
 
##
7973
 
## END FIXME
7974
 
 
7975
 
## FIXME: this should be a separate macro
7976
 
##
7977
 
# Check hardcoding attributes.
7978
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7979
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7980
 
hardcode_action=
7981
 
if test -n "$hardcode_libdir_flag_spec" || \
7982
 
   test -n "$runpath_var"; then
7983
 
 
7984
 
  # We can hardcode non-existant directories.
7985
 
  if test "$hardcode_direct" != no &&
7986
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
7987
 
     # have to relink, otherwise we might link with an installed library
7988
 
     # when we should be linking with a yet-to-be-installed one
7989
 
     ## test "$hardcode_shlibpath_var" != no &&
7990
 
     test "$hardcode_minus_L" != no; then
7991
 
    # Linking always hardcodes the temporary library directory.
7992
 
    hardcode_action=relink
7993
 
  else
7994
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
7995
 
    hardcode_action=immediate
7996
 
  fi
7997
 
else
7998
 
  # We cannot hardcode anything, or else we can only hardcode existing
7999
 
  # directories.
8000
 
  hardcode_action=unsupported
8001
 
fi
8002
 
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8003
 
echo "${ECHO_T}$hardcode_action" >&6
8004
 
##
8005
 
## END FIXME
8006
 
 
8007
 
## FIXME: this should be a separate macro
8008
 
##
8009
 
striplib=
8010
 
old_striplib=
8011
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8012
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8013
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8014
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8015
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8016
 
  echo "$as_me:$LINENO: result: yes" >&5
8017
 
echo "${ECHO_T}yes" >&6
8018
 
else
8019
 
  echo "$as_me:$LINENO: result: no" >&5
8020
 
echo "${ECHO_T}no" >&6
8021
 
fi
8022
 
##
8023
 
## END FIXME
8024
 
 
8025
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
8026
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
8027
 
 
8028
 
## FIXME: this should be a separate macro
8029
 
##
8030
 
# PORTME Fill in your ld.so characteristics
8031
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8032
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8033
 
library_names_spec=
8034
 
libname_spec='lib$name'
8035
 
soname_spec=
8036
 
postinstall_cmds=
8037
 
postuninstall_cmds=
8038
 
finish_cmds=
8039
 
finish_eval=
8040
 
shlibpath_var=
8041
 
shlibpath_overrides_runpath=unknown
8042
 
version_type=none
8043
 
dynamic_linker="$host_os ld.so"
8044
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8045
 
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8046
 
 
8047
 
case $host_os in
8048
 
aix3*)
8049
 
  version_type=linux
8050
 
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
8051
 
  shlibpath_var=LIBPATH
8052
 
 
8053
 
  # AIX has no versioning support, so we append a major version to the name.
8054
 
  soname_spec='${libname}${release}.so$major'
8055
 
  ;;
8056
 
 
8057
 
aix4* | aix5*)
8058
 
  version_type=linux
8059
 
 
8060
 
  #### Local change for Sleepycat's Berkeley DB [#5779]:
8061
 
  # If we don't set need_version, we'll get x.so.0.0.0,
8062
 
  # even if -avoid-version is set.
8063
 
  need_version=no
8064
 
 
8065
 
  if test "$host_cpu" = ia64; then
8066
 
    # AIX 5 supports IA64
8067
 
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
8068
 
    shlibpath_var=LD_LIBRARY_PATH
8069
 
  else
8070
 
    # With GCC up to 2.95.x, collect2 would create an import file
8071
 
    # for dependence libraries.  The import file would start with
8072
 
    # the line `#! .'.  This would cause the generated library to
8073
 
    # depend on `.', always an invalid library.  This was fixed in
8074
 
    # development snapshots of GCC prior to 3.0.
8075
 
    case $host_os in
8076
 
      aix4 | aix4.[01] | aix4.[01].*)
8077
 
        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8078
 
             echo ' yes '
8079
 
             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8080
 
          :
8081
 
        else
8082
 
          can_build_shared=no
8083
 
        fi
8084
 
        ;;
8085
 
    esac
8086
 
    # AIX (on Power*) has no versioning support, so currently we can
8087
 
    # not hardcode correct soname into executable. Probably we can
8088
 
    # add versioning support to collect2, so additional links can
8089
 
    # be useful in future.
8090
 
    if test "$aix_use_runtimelinking" = yes; then
8091
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8092
 
      # instead of lib<name>.a to let people know that these are not
8093
 
      # typical AIX shared libraries.
8094
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8095
 
    else
8096
 
      # We preserve .a as extension for shared libraries through AIX4.2
8097
 
      # and later when we are not doing run time linking.
8098
 
      library_names_spec='${libname}${release}.a $libname.a'
8099
 
      soname_spec='${libname}${release}.so$major'
8100
 
    fi
8101
 
    shlibpath_var=LIBPATH
8102
 
  fi
8103
 
  ;;
8104
 
 
8105
 
amigaos*)
8106
 
  library_names_spec='$libname.ixlibrary $libname.a'
8107
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8108
 
  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'
8109
 
  ;;
8110
 
 
8111
 
beos*)
8112
 
  library_names_spec='${libname}.so'
8113
 
  dynamic_linker="$host_os ld.so"
8114
 
  shlibpath_var=LIBRARY_PATH
8115
 
  ;;
8116
 
 
8117
 
bsdi4*)
8118
 
  version_type=linux
8119
 
  need_version=no
8120
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8121
 
  soname_spec='${libname}${release}.so$major'
8122
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8123
 
  shlibpath_var=LD_LIBRARY_PATH
8124
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8125
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8126
 
  export_dynamic_flag_spec=-rdynamic
8127
 
  # the default ld.so.conf also contains /usr/contrib/lib and
8128
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8129
 
  # libtool to hard-code these into programs
8130
 
  ;;
8131
 
 
8132
 
cygwin* | mingw* | pw32*)
8133
 
  version_type=windows
8134
 
  need_version=no
8135
 
  need_lib_prefix=no
8136
 
  case $GCC,$host_os in
8137
 
  yes,cygwin*)
8138
 
    library_names_spec='$libname.dll.a'
8139
 
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
8140
 
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
8141
 
      dldir=$destdir/`dirname \$dlpath`~
8142
 
      test -d \$dldir || mkdir -p \$dldir~
8143
 
      $install_prog .libs/$dlname \$dldir/$dlname'
8144
 
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
8145
 
      dlpath=$dir/\$dldll~
8146
 
       $rm \$dlpath'
8147
 
    ;;
8148
 
  yes,mingw*)
8149
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
8150
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
8151
 
    ;;
8152
 
  yes,pw32*)
8153
 
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
8154
 
    ;;
8155
 
  *)
8156
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
8157
 
    ;;
8158
 
  esac
8159
 
  dynamic_linker='Win32 ld.exe'
8160
 
  # FIXME: first we should search . and the directory the executable is in
8161
 
  shlibpath_var=PATH
8162
 
  ;;
8163
 
 
8164
 
darwin* | rhapsody*)
8165
 
  dynamic_linker="$host_os dyld"
8166
 
  version_type=darwin
8167
 
  need_lib_prefix=no
8168
 
  need_version=no
8169
 
  # FIXME: Relying on posixy $() will cause problems for
8170
 
  #        cross-compilation, but unfortunately the echo tests do not
8171
 
  #        yet detect zsh echo's removal of \ escapes.
8172
 
  #### Local change for Sleepycat's Berkeley DB [#6117]:
8173
 
  # added support for -jnimodule, encapsulated below in ${darwin_suffix}
8174
 
  darwin_suffix='$(test .$jnimodule = .yes && echo jnilib || (test .$module = .yes && echo so || echo dylib))'
8175
 
  library_names_spec='${libname}${release}${versuffix}.'"${darwin_suffix}"' ${libname}${release}${major}.'"${darwin_suffix}"' ${libname}.'"${darwin_suffix}"
8176
 
  soname_spec='${libname}${release}${major}.'"${darwin_suffix}"
8177
 
  shlibpath_overrides_runpath=yes
8178
 
  shlibpath_var=DYLD_LIBRARY_PATH
8179
 
  ;;
8180
 
 
8181
 
freebsd1*)
8182
 
  dynamic_linker=no
8183
 
  ;;
8184
 
 
8185
 
freebsd*)
8186
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8187
 
  version_type=freebsd-$objformat
8188
 
  case $version_type in
8189
 
    freebsd-elf*)
8190
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
8191
 
      need_version=no
8192
 
      need_lib_prefix=no
8193
 
      ;;
8194
 
    freebsd-*)
8195
 
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
8196
 
      need_version=yes
8197
 
      ;;
8198
 
  esac
8199
 
  shlibpath_var=LD_LIBRARY_PATH
8200
 
  case $host_os in
8201
 
  freebsd2*)
8202
 
    shlibpath_overrides_runpath=yes
8203
 
    ;;
8204
 
  *)
8205
 
    shlibpath_overrides_runpath=no
8206
 
    hardcode_into_libs=yes
8207
 
    ;;
8208
 
  esac
8209
 
  ;;
8210
 
 
8211
 
gnu*)
8212
 
  version_type=linux
8213
 
  need_lib_prefix=no
8214
 
  need_version=no
8215
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
8216
 
  soname_spec='${libname}${release}.so$major'
8217
 
  shlibpath_var=LD_LIBRARY_PATH
8218
 
  hardcode_into_libs=yes
8219
 
  ;;
8220
 
 
8221
 
hpux9* | hpux10* | hpux11*)
8222
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
8223
 
  # link against other versions.
8224
 
  dynamic_linker="$host_os dld.sl"
8225
 
  version_type=sunos
8226
 
  need_lib_prefix=no
8227
 
  need_version=no
8228
 
  shlibpath_var=SHLIB_PATH
8229
 
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8230
 
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
8231
 
  soname_spec='${libname}${release}.sl$major'
8232
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8233
 
  postinstall_cmds='chmod 555 $lib'
8234
 
  ;;
8235
 
 
8236
 
irix5* | irix6*)
8237
 
  version_type=irix
8238
 
  need_lib_prefix=no
8239
 
  need_version=no
8240
 
  soname_spec='${libname}${release}.so$major'
8241
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
8242
 
  case $host_os in
8243
 
  irix5*)
8244
 
    libsuff= shlibsuff=
8245
 
    ;;
8246
 
  *)
8247
 
    case $LD in # libtool.m4 will add one of these switches to LD
8248
 
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
8249
 
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
8250
 
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
8251
 
    *) libsuff= shlibsuff= libmagic=never-match;;
8252
 
    esac
8253
 
    ;;
8254
 
  esac
8255
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8256
 
  shlibpath_overrides_runpath=no
8257
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8258
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8259
 
  ;;
8260
 
 
8261
 
# No shared lib support for Linux oldld, aout, or coff.
8262
 
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
8263
 
  dynamic_linker=no
8264
 
  ;;
8265
 
 
8266
 
# This must be Linux ELF.
8267
 
linux-gnu*)
8268
 
  version_type=linux
8269
 
  need_lib_prefix=no
8270
 
  need_version=no
8271
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8272
 
  soname_spec='${libname}${release}.so$major'
8273
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8274
 
  shlibpath_var=LD_LIBRARY_PATH
8275
 
  shlibpath_overrides_runpath=no
8276
 
  # This implies no fast_install, which is unacceptable.
8277
 
  # Some rework will be needed to allow for fast_install
8278
 
  # before this can be enabled.
8279
 
  hardcode_into_libs=yes
8280
 
 
8281
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
8282
 
  # powerpc, because MkLinux only supported shared libraries with the
8283
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
8284
 
  # most powerpc-linux boxes support dynamic linking these days and
8285
 
  # people can always --disable-shared, the test was removed, and we
8286
 
  # assume the GNU/Linux dynamic linker is in use.
8287
 
  dynamic_linker='GNU/Linux ld.so'
8288
 
  ;;
8289
 
 
8290
 
netbsd*)
8291
 
  version_type=sunos
8292
 
  need_lib_prefix=no
8293
 
  need_version=no
8294
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8295
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
8296
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8297
 
    dynamic_linker='NetBSD (a.out) ld.so'
8298
 
  else
8299
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
8300
 
    soname_spec='${libname}${release}.so$major'
8301
 
    dynamic_linker='NetBSD ld.elf_so'
8302
 
  fi
8303
 
  shlibpath_var=LD_LIBRARY_PATH
8304
 
  shlibpath_overrides_runpath=yes
8305
 
  hardcode_into_libs=yes
8306
 
  ;;
8307
 
 
8308
 
newsos6)
8309
 
  version_type=linux
8310
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8311
 
  shlibpath_var=LD_LIBRARY_PATH
8312
 
  shlibpath_overrides_runpath=yes
8313
 
  ;;
8314
 
 
8315
 
nto-qnx)
8316
 
  version_type=linux
8317
 
  need_lib_prefix=no
8318
 
  need_version=no
8319
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8320
 
  soname_spec='${libname}${release}.so$major'
8321
 
  shlibpath_var=LD_LIBRARY_PATH
8322
 
  shlibpath_overrides_runpath=yes
8323
 
  ;;
8324
 
 
8325
 
openbsd*)
8326
 
  version_type=sunos
8327
 
  need_lib_prefix=no
8328
 
  need_version=no
8329
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8330
 
    case "$host_os" in
8331
 
    openbsd2.[89] | openbsd2.[89].*)
8332
 
      shlibpath_overrides_runpath=no
8333
 
      ;;
8334
 
    *)
8335
 
      shlibpath_overrides_runpath=yes
8336
 
      ;;
8337
 
    esac
8338
 
  else
8339
 
    shlibpath_overrides_runpath=yes
8340
 
  fi
8341
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
8342
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8343
 
  shlibpath_var=LD_LIBRARY_PATH
8344
 
  ;;
8345
 
 
8346
 
os2*)
8347
 
  libname_spec='$name'
8348
 
  need_lib_prefix=no
8349
 
  library_names_spec='$libname.dll $libname.a'
8350
 
  dynamic_linker='OS/2 ld.exe'
8351
 
  shlibpath_var=LIBPATH
8352
 
  ;;
8353
 
 
8354
 
osf3* | osf4* | osf5*)
8355
 
  version_type=osf
8356
 
  need_version=no
8357
 
  soname_spec='${libname}${release}.so'
8358
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
8359
 
  shlibpath_var=LD_LIBRARY_PATH
8360
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8361
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8362
 
  ;;
8363
 
 
8364
 
sco3.2v5*)
8365
 
  version_type=osf
8366
 
  soname_spec='${libname}${release}.so$major'
8367
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8368
 
  shlibpath_var=LD_LIBRARY_PATH
8369
 
  ;;
8370
 
 
8371
 
solaris*)
8372
 
  version_type=linux
8373
 
  need_lib_prefix=no
8374
 
  need_version=no
8375
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8376
 
  soname_spec='${libname}${release}.so$major'
8377
 
  shlibpath_var=LD_LIBRARY_PATH
8378
 
  shlibpath_overrides_runpath=yes
8379
 
  hardcode_into_libs=yes
8380
 
  # ldd complains unless libraries are executable
8381
 
  postinstall_cmds='chmod +x $lib'
8382
 
  ;;
8383
 
 
8384
 
sunos4*)
8385
 
  version_type=sunos
8386
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
8387
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8388
 
  shlibpath_var=LD_LIBRARY_PATH
8389
 
  shlibpath_overrides_runpath=yes
8390
 
  if test "$with_gnu_ld" = yes; then
8391
 
    need_lib_prefix=no
8392
 
  fi
8393
 
  need_version=yes
8394
 
  ;;
8395
 
 
8396
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8397
 
  version_type=linux
8398
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8399
 
  soname_spec='${libname}${release}.so$major'
8400
 
  shlibpath_var=LD_LIBRARY_PATH
8401
 
  case $host_vendor in
8402
 
    sni)
8403
 
      shlibpath_overrides_runpath=no
8404
 
      ;;
8405
 
    motorola)
8406
 
      need_lib_prefix=no
8407
 
      need_version=no
8408
 
      shlibpath_overrides_runpath=no
8409
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8410
 
      ;;
8411
 
  esac
8412
 
  ;;
8413
 
 
8414
 
uts4*)
8415
 
  version_type=linux
8416
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8417
 
  soname_spec='${libname}${release}.so$major'
8418
 
  shlibpath_var=LD_LIBRARY_PATH
8419
 
  ;;
8420
 
 
8421
 
dgux*)
8422
 
  version_type=linux
8423
 
  need_lib_prefix=no
8424
 
  need_version=no
8425
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8426
 
  soname_spec='${libname}${release}.so$major'
8427
 
  shlibpath_var=LD_LIBRARY_PATH
8428
 
  ;;
8429
 
 
8430
 
sysv4*MP*)
8431
 
  if test -d /usr/nec ;then
8432
 
    version_type=linux
8433
 
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
8434
 
    soname_spec='$libname.so.$major'
8435
 
    shlibpath_var=LD_LIBRARY_PATH
8436
 
  fi
8437
 
  ;;
8438
 
 
8439
 
*)
8440
 
  dynamic_linker=no
8441
 
  ;;
8442
 
esac
8443
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8444
 
echo "${ECHO_T}$dynamic_linker" >&6
8445
 
test "$dynamic_linker" = no && can_build_shared=no
8446
 
##
8447
 
## END FIXME
8448
 
 
8449
 
## FIXME: this should be a separate macro
8450
 
##
8451
 
# Report the final consequences.
8452
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8453
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8454
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
8455
 
echo "${ECHO_T}$can_build_shared" >&6
8456
 
##
8457
 
## END FIXME
8458
 
 
8459
 
## FIXME: this should be a separate macro
8460
 
##
8461
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8462
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8463
 
test "$can_build_shared" = "no" && enable_shared=no
8464
 
 
8465
 
# On AIX, shared libraries and static libraries use the same namespace, and
8466
 
# are all built from PIC.
8467
 
case "$host_os" in
8468
 
aix3*)
8469
 
  test "$enable_shared" = yes && enable_static=no
8470
 
  if test -n "$RANLIB"; then
8471
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
8472
 
    postinstall_cmds='$RANLIB $lib'
8473
 
  fi
8474
 
  ;;
8475
 
 
8476
 
aix4*)
8477
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8478
 
    test "$enable_shared" = yes && enable_static=no
8479
 
  fi
8480
 
  ;;
8481
 
esac
8482
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
8483
 
echo "${ECHO_T}$enable_shared" >&6
8484
 
##
8485
 
## END FIXME
8486
 
 
8487
 
## FIXME: this should be a separate macro
8488
 
##
8489
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8490
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8491
 
# Make sure either enable_shared or enable_static is yes.
8492
 
test "$enable_shared" = yes || enable_static=yes
8493
 
echo "$as_me:$LINENO: result: $enable_static" >&5
8494
 
echo "${ECHO_T}$enable_static" >&6
8495
 
##
8496
 
## END FIXME
8497
 
 
8498
 
if test "$hardcode_action" = relink; then
8499
 
  # Fast installation is not supported
8500
 
  enable_fast_install=no
8501
 
elif test "$shlibpath_overrides_runpath" = yes ||
8502
 
     test "$enable_shared" = no; then
8503
 
  # Fast installation is not necessary
8504
 
  enable_fast_install=needless
8505
 
fi
8506
 
 
8507
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8508
 
if test "$GCC" = yes; then
8509
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8510
 
fi
8511
 
 
8512
 
if test "x$enable_dlopen" != xyes; then
8513
 
  enable_dlopen=unknown
8514
 
  enable_dlopen_self=unknown
8515
 
  enable_dlopen_self_static=unknown
8516
 
else
8517
 
  lt_cv_dlopen=no
8518
 
  lt_cv_dlopen_libs=
8519
 
 
8520
 
  case $host_os in
8521
 
  beos*)
8522
 
    lt_cv_dlopen="load_add_on"
8523
 
    lt_cv_dlopen_libs=
8524
 
    lt_cv_dlopen_self=yes
8525
 
    ;;
8526
 
 
8527
 
  cygwin* | mingw* | pw32*)
8528
 
    lt_cv_dlopen="LoadLibrary"
8529
 
    lt_cv_dlopen_libs=
8530
 
   ;;
8531
 
 
8532
 
  *)
8533
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
8534
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8535
 
if test "${ac_cv_func_shl_load+set}" = set; then
8536
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8537
 
else
8538
 
  cat >conftest.$ac_ext <<_ACEOF
8539
 
#line $LINENO "configure"
8540
 
/* confdefs.h.  */
8541
 
_ACEOF
8542
 
cat confdefs.h >>conftest.$ac_ext
8543
 
cat >>conftest.$ac_ext <<_ACEOF
8544
 
/* end confdefs.h.  */
8545
 
/* System header to define __stub macros and hopefully few prototypes,
8546
 
    which can conflict with char shl_load (); below.
8547
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8548
 
    <limits.h> exists even on freestanding compilers.  */
8549
 
#ifdef __STDC__
8550
 
# include <limits.h>
8551
 
#else
8552
 
# include <assert.h>
8553
 
#endif
8554
 
/* Override any gcc2 internal prototype to avoid an error.  */
8555
 
#ifdef __cplusplus
8556
 
extern "C"
8557
 
{
8558
 
#endif
8559
 
/* We use char because int might match the return type of a gcc2
8560
 
   builtin and then its argument prototype would still apply.  */
8561
 
char shl_load ();
8562
 
/* The GNU C library defines this for functions which it implements
8563
 
    to always fail with ENOSYS.  Some functions are actually named
8564
 
    something starting with __ and the normal name is an alias.  */
8565
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8566
 
choke me
8567
 
#else
8568
 
char (*f) () = shl_load;
8569
 
#endif
8570
 
#ifdef __cplusplus
8571
 
}
8572
 
#endif
8573
 
 
8574
 
int
8575
 
main ()
8576
 
{
8577
 
return f != shl_load;
8578
 
  ;
8579
 
  return 0;
8580
 
}
8581
 
_ACEOF
8582
 
rm -f conftest.$ac_objext conftest$ac_exeext
8583
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8584
 
  (eval $ac_link) 2>&5
8585
 
  ac_status=$?
8586
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587
 
  (exit $ac_status); } &&
8588
 
         { ac_try='test -s conftest$ac_exeext'
8589
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590
 
  (eval $ac_try) 2>&5
8591
 
  ac_status=$?
8592
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593
 
  (exit $ac_status); }; }; then
8594
 
  ac_cv_func_shl_load=yes
8595
 
else
8596
 
  echo "$as_me: failed program was:" >&5
8597
 
sed 's/^/| /' conftest.$ac_ext >&5
8598
 
 
8599
 
ac_cv_func_shl_load=no
8600
 
fi
8601
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8602
 
fi
8603
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8604
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8605
 
if test $ac_cv_func_shl_load = yes; then
8606
 
  lt_cv_dlopen="shl_load"
8607
 
else
8608
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8609
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8610
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8611
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8612
 
else
8613
 
  ac_check_lib_save_LIBS=$LIBS
8614
 
LIBS="-ldld  $LIBS"
8615
 
cat >conftest.$ac_ext <<_ACEOF
8616
 
#line $LINENO "configure"
8617
 
/* confdefs.h.  */
8618
 
_ACEOF
8619
 
cat confdefs.h >>conftest.$ac_ext
8620
 
cat >>conftest.$ac_ext <<_ACEOF
8621
 
/* end confdefs.h.  */
8622
 
 
8623
 
/* Override any gcc2 internal prototype to avoid an error.  */
8624
 
#ifdef __cplusplus
8625
 
extern "C"
8626
 
#endif
8627
 
/* We use char because int might match the return type of a gcc2
8628
 
   builtin and then its argument prototype would still apply.  */
8629
 
char shl_load ();
8630
 
int
8631
 
main ()
8632
 
{
8633
 
shl_load ();
8634
 
  ;
8635
 
  return 0;
8636
 
}
8637
 
_ACEOF
8638
 
rm -f conftest.$ac_objext conftest$ac_exeext
8639
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8640
 
  (eval $ac_link) 2>&5
8641
 
  ac_status=$?
8642
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643
 
  (exit $ac_status); } &&
8644
 
         { ac_try='test -s conftest$ac_exeext'
8645
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646
 
  (eval $ac_try) 2>&5
8647
 
  ac_status=$?
8648
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649
 
  (exit $ac_status); }; }; then
8650
 
  ac_cv_lib_dld_shl_load=yes
8651
 
else
8652
 
  echo "$as_me: failed program was:" >&5
8653
 
sed 's/^/| /' conftest.$ac_ext >&5
8654
 
 
8655
 
ac_cv_lib_dld_shl_load=no
8656
 
fi
8657
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8658
 
LIBS=$ac_check_lib_save_LIBS
8659
 
fi
8660
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8661
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8662
 
if test $ac_cv_lib_dld_shl_load = yes; then
8663
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8664
 
else
8665
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
8666
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8667
 
if test "${ac_cv_func_dlopen+set}" = set; then
8668
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8669
 
else
8670
 
  cat >conftest.$ac_ext <<_ACEOF
8671
 
#line $LINENO "configure"
8672
 
/* confdefs.h.  */
8673
 
_ACEOF
8674
 
cat confdefs.h >>conftest.$ac_ext
8675
 
cat >>conftest.$ac_ext <<_ACEOF
8676
 
/* end confdefs.h.  */
8677
 
/* System header to define __stub macros and hopefully few prototypes,
8678
 
    which can conflict with char dlopen (); below.
8679
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8680
 
    <limits.h> exists even on freestanding compilers.  */
8681
 
#ifdef __STDC__
8682
 
# include <limits.h>
8683
 
#else
8684
 
# include <assert.h>
8685
 
#endif
8686
 
/* Override any gcc2 internal prototype to avoid an error.  */
8687
 
#ifdef __cplusplus
8688
 
extern "C"
8689
 
{
8690
 
#endif
8691
 
/* We use char because int might match the return type of a gcc2
8692
 
   builtin and then its argument prototype would still apply.  */
8693
 
char dlopen ();
8694
 
/* The GNU C library defines this for functions which it implements
8695
 
    to always fail with ENOSYS.  Some functions are actually named
8696
 
    something starting with __ and the normal name is an alias.  */
8697
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8698
 
choke me
8699
 
#else
8700
 
char (*f) () = dlopen;
8701
 
#endif
8702
 
#ifdef __cplusplus
8703
 
}
8704
 
#endif
8705
 
 
8706
 
int
8707
 
main ()
8708
 
{
8709
 
return f != dlopen;
8710
 
  ;
8711
 
  return 0;
8712
 
}
8713
 
_ACEOF
8714
 
rm -f conftest.$ac_objext conftest$ac_exeext
8715
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8716
 
  (eval $ac_link) 2>&5
8717
 
  ac_status=$?
8718
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719
 
  (exit $ac_status); } &&
8720
 
         { ac_try='test -s conftest$ac_exeext'
8721
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722
 
  (eval $ac_try) 2>&5
8723
 
  ac_status=$?
8724
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725
 
  (exit $ac_status); }; }; then
8726
 
  ac_cv_func_dlopen=yes
8727
 
else
8728
 
  echo "$as_me: failed program was:" >&5
8729
 
sed 's/^/| /' conftest.$ac_ext >&5
8730
 
 
8731
 
ac_cv_func_dlopen=no
8732
 
fi
8733
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8734
 
fi
8735
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8736
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8737
 
if test $ac_cv_func_dlopen = yes; then
8738
 
  lt_cv_dlopen="dlopen"
8739
 
else
8740
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8741
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8742
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8743
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8744
 
else
8745
 
  ac_check_lib_save_LIBS=$LIBS
8746
 
LIBS="-ldl  $LIBS"
8747
 
cat >conftest.$ac_ext <<_ACEOF
8748
 
#line $LINENO "configure"
8749
 
/* confdefs.h.  */
8750
 
_ACEOF
8751
 
cat confdefs.h >>conftest.$ac_ext
8752
 
cat >>conftest.$ac_ext <<_ACEOF
8753
 
/* end confdefs.h.  */
8754
 
 
8755
 
/* Override any gcc2 internal prototype to avoid an error.  */
8756
 
#ifdef __cplusplus
8757
 
extern "C"
8758
 
#endif
8759
 
/* We use char because int might match the return type of a gcc2
8760
 
   builtin and then its argument prototype would still apply.  */
8761
 
char dlopen ();
8762
 
int
8763
 
main ()
8764
 
{
8765
 
dlopen ();
8766
 
  ;
8767
 
  return 0;
8768
 
}
8769
 
_ACEOF
8770
 
rm -f conftest.$ac_objext conftest$ac_exeext
8771
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8772
 
  (eval $ac_link) 2>&5
8773
 
  ac_status=$?
8774
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775
 
  (exit $ac_status); } &&
8776
 
         { ac_try='test -s conftest$ac_exeext'
8777
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778
 
  (eval $ac_try) 2>&5
8779
 
  ac_status=$?
8780
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781
 
  (exit $ac_status); }; }; then
8782
 
  ac_cv_lib_dl_dlopen=yes
8783
 
else
8784
 
  echo "$as_me: failed program was:" >&5
8785
 
sed 's/^/| /' conftest.$ac_ext >&5
8786
 
 
8787
 
ac_cv_lib_dl_dlopen=no
8788
 
fi
8789
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8790
 
LIBS=$ac_check_lib_save_LIBS
8791
 
fi
8792
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8793
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8794
 
if test $ac_cv_lib_dl_dlopen = yes; then
8795
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8796
 
else
8797
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8798
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8799
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8800
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8801
 
else
8802
 
  ac_check_lib_save_LIBS=$LIBS
8803
 
LIBS="-lsvld  $LIBS"
8804
 
cat >conftest.$ac_ext <<_ACEOF
8805
 
#line $LINENO "configure"
8806
 
/* confdefs.h.  */
8807
 
_ACEOF
8808
 
cat confdefs.h >>conftest.$ac_ext
8809
 
cat >>conftest.$ac_ext <<_ACEOF
8810
 
/* end confdefs.h.  */
8811
 
 
8812
 
/* Override any gcc2 internal prototype to avoid an error.  */
8813
 
#ifdef __cplusplus
8814
 
extern "C"
8815
 
#endif
8816
 
/* We use char because int might match the return type of a gcc2
8817
 
   builtin and then its argument prototype would still apply.  */
8818
 
char dlopen ();
8819
 
int
8820
 
main ()
8821
 
{
8822
 
dlopen ();
8823
 
  ;
8824
 
  return 0;
8825
 
}
8826
 
_ACEOF
8827
 
rm -f conftest.$ac_objext conftest$ac_exeext
8828
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8829
 
  (eval $ac_link) 2>&5
8830
 
  ac_status=$?
8831
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832
 
  (exit $ac_status); } &&
8833
 
         { ac_try='test -s conftest$ac_exeext'
8834
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835
 
  (eval $ac_try) 2>&5
8836
 
  ac_status=$?
8837
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838
 
  (exit $ac_status); }; }; then
8839
 
  ac_cv_lib_svld_dlopen=yes
8840
 
else
8841
 
  echo "$as_me: failed program was:" >&5
8842
 
sed 's/^/| /' conftest.$ac_ext >&5
8843
 
 
8844
 
ac_cv_lib_svld_dlopen=no
8845
 
fi
8846
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8847
 
LIBS=$ac_check_lib_save_LIBS
8848
 
fi
8849
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8850
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8851
 
if test $ac_cv_lib_svld_dlopen = yes; then
8852
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8853
 
else
8854
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8855
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8856
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8857
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8858
 
else
8859
 
  ac_check_lib_save_LIBS=$LIBS
8860
 
LIBS="-ldld  $LIBS"
8861
 
cat >conftest.$ac_ext <<_ACEOF
8862
 
#line $LINENO "configure"
8863
 
/* confdefs.h.  */
8864
 
_ACEOF
8865
 
cat confdefs.h >>conftest.$ac_ext
8866
 
cat >>conftest.$ac_ext <<_ACEOF
8867
 
/* end confdefs.h.  */
8868
 
 
8869
 
/* Override any gcc2 internal prototype to avoid an error.  */
8870
 
#ifdef __cplusplus
8871
 
extern "C"
8872
 
#endif
8873
 
/* We use char because int might match the return type of a gcc2
8874
 
   builtin and then its argument prototype would still apply.  */
8875
 
char dld_link ();
8876
 
int
8877
 
main ()
8878
 
{
8879
 
dld_link ();
8880
 
  ;
8881
 
  return 0;
8882
 
}
8883
 
_ACEOF
8884
 
rm -f conftest.$ac_objext conftest$ac_exeext
8885
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8886
 
  (eval $ac_link) 2>&5
8887
 
  ac_status=$?
8888
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889
 
  (exit $ac_status); } &&
8890
 
         { ac_try='test -s conftest$ac_exeext'
8891
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892
 
  (eval $ac_try) 2>&5
8893
 
  ac_status=$?
8894
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895
 
  (exit $ac_status); }; }; then
8896
 
  ac_cv_lib_dld_dld_link=yes
8897
 
else
8898
 
  echo "$as_me: failed program was:" >&5
8899
 
sed 's/^/| /' conftest.$ac_ext >&5
8900
 
 
8901
 
ac_cv_lib_dld_dld_link=no
8902
 
fi
8903
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8904
 
LIBS=$ac_check_lib_save_LIBS
8905
 
fi
8906
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8907
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8908
 
if test $ac_cv_lib_dld_dld_link = yes; then
8909
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8910
 
fi
8911
 
 
8912
 
 
8913
 
fi
8914
 
 
8915
 
 
8916
 
fi
8917
 
 
8918
 
 
8919
 
fi
8920
 
 
8921
 
 
8922
 
fi
8923
 
 
8924
 
 
8925
 
fi
8926
 
 
8927
 
    ;;
8928
 
  esac
8929
 
 
8930
 
  if test "x$lt_cv_dlopen" != xno; then
8931
 
    enable_dlopen=yes
8932
 
  else
8933
 
    enable_dlopen=no
8934
 
  fi
8935
 
 
8936
 
  case $lt_cv_dlopen in
8937
 
  dlopen)
8938
 
    save_CPPFLAGS="$CPPFLAGS"
8939
 
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8940
 
 
8941
 
    save_LDFLAGS="$LDFLAGS"
8942
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8943
 
 
8944
 
    save_LIBS="$LIBS"
8945
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
8946
 
 
8947
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8948
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8949
 
if test "${lt_cv_dlopen_self+set}" = set; then
8950
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8951
 
else
8952
 
          if test "$cross_compiling" = yes; then :
8953
 
  lt_cv_dlopen_self=cross
8954
 
else
8955
 
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8956
 
  lt_status=$lt_dlunknown
8957
 
  cat > conftest.$ac_ext <<EOF
8958
 
#line 8946 "configure"
8959
 
#include "confdefs.h"
8960
 
 
8961
 
#if HAVE_DLFCN_H
8962
 
#include <dlfcn.h>
8963
 
#endif
8964
 
 
8965
 
#include <stdio.h>
8966
 
 
8967
 
#ifdef RTLD_GLOBAL
8968
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
8969
 
#else
8970
 
#  ifdef DL_GLOBAL
8971
 
#    define LT_DLGLOBAL         DL_GLOBAL
8972
 
#  else
8973
 
#    define LT_DLGLOBAL         0
8974
 
#  endif
8975
 
#endif
8976
 
 
8977
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8978
 
   find out it does not work in some platform. */
8979
 
#ifndef LT_DLLAZY_OR_NOW
8980
 
#  ifdef RTLD_LAZY
8981
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8982
 
#  else
8983
 
#    ifdef DL_LAZY
8984
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
8985
 
#    else
8986
 
#      ifdef RTLD_NOW
8987
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
8988
 
#      else
8989
 
#        ifdef DL_NOW
8990
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
8991
 
#        else
8992
 
#          define LT_DLLAZY_OR_NOW      0
8993
 
#        endif
8994
 
#      endif
8995
 
#    endif
8996
 
#  endif
8997
 
#endif
8998
 
 
8999
 
#ifdef __cplusplus
9000
 
extern "C" void exit (int);
9001
 
#endif
9002
 
 
9003
 
void fnord() { int i=42;}
9004
 
int main ()
9005
 
{
9006
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9007
 
  int status = $lt_dlunknown;
9008
 
 
9009
 
  if (self)
9010
 
    {
9011
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9012
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9013
 
      /* dlclose (self); */
9014
 
    }
9015
 
 
9016
 
    exit (status);
9017
 
}
9018
 
EOF
9019
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9020
 
  (eval $ac_link) 2>&5
9021
 
  ac_status=$?
9022
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9024
 
    (./conftest; exit; ) 2>/dev/null
9025
 
    lt_status=$?
9026
 
    case x$lt_status in
9027
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9028
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9029
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9030
 
    esac
9031
 
  else :
9032
 
    # compilation failed
9033
 
    lt_cv_dlopen_self=no
9034
 
  fi
9035
 
fi
9036
 
rm -fr conftest*
9037
 
 
9038
 
 
9039
 
fi
9040
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9041
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9042
 
 
9043
 
    if test "x$lt_cv_dlopen_self" = xyes; then
9044
 
      LDFLAGS="$LDFLAGS $link_static_flag"
9045
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9046
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9047
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
9048
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9049
 
else
9050
 
          if test "$cross_compiling" = yes; then :
9051
 
  lt_cv_dlopen_self_static=cross
9052
 
else
9053
 
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9054
 
  lt_status=$lt_dlunknown
9055
 
  cat > conftest.$ac_ext <<EOF
9056
 
#line 9044 "configure"
9057
 
#include "confdefs.h"
9058
 
 
9059
 
#if HAVE_DLFCN_H
9060
 
#include <dlfcn.h>
9061
 
#endif
9062
 
 
9063
 
#include <stdio.h>
9064
 
 
9065
 
#ifdef RTLD_GLOBAL
9066
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
9067
 
#else
9068
 
#  ifdef DL_GLOBAL
9069
 
#    define LT_DLGLOBAL         DL_GLOBAL
9070
 
#  else
9071
 
#    define LT_DLGLOBAL         0
9072
 
#  endif
9073
 
#endif
9074
 
 
9075
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9076
 
   find out it does not work in some platform. */
9077
 
#ifndef LT_DLLAZY_OR_NOW
9078
 
#  ifdef RTLD_LAZY
9079
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9080
 
#  else
9081
 
#    ifdef DL_LAZY
9082
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9083
 
#    else
9084
 
#      ifdef RTLD_NOW
9085
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9086
 
#      else
9087
 
#        ifdef DL_NOW
9088
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
9089
 
#        else
9090
 
#          define LT_DLLAZY_OR_NOW      0
9091
 
#        endif
9092
 
#      endif
9093
 
#    endif
9094
 
#  endif
9095
 
#endif
9096
 
 
9097
 
#ifdef __cplusplus
9098
 
extern "C" void exit (int);
9099
 
#endif
9100
 
 
9101
 
void fnord() { int i=42;}
9102
 
int main ()
9103
 
{
9104
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9105
 
  int status = $lt_dlunknown;
9106
 
 
9107
 
  if (self)
9108
 
    {
9109
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9110
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9111
 
      /* dlclose (self); */
9112
 
    }
9113
 
 
9114
 
    exit (status);
9115
 
}
9116
 
EOF
9117
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9118
 
  (eval $ac_link) 2>&5
9119
 
  ac_status=$?
9120
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9122
 
    (./conftest; exit; ) 2>/dev/null
9123
 
    lt_status=$?
9124
 
    case x$lt_status in
9125
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9126
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9127
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9128
 
    esac
9129
 
  else :
9130
 
    # compilation failed
9131
 
    lt_cv_dlopen_self_static=no
9132
 
  fi
9133
 
fi
9134
 
rm -fr conftest*
9135
 
 
9136
 
 
9137
 
fi
9138
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9139
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9140
 
    fi
9141
 
 
9142
 
    CPPFLAGS="$save_CPPFLAGS"
9143
 
    LDFLAGS="$save_LDFLAGS"
9144
 
    LIBS="$save_LIBS"
9145
 
    ;;
9146
 
  esac
9147
 
 
9148
 
  case $lt_cv_dlopen_self in
9149
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9150
 
  *) enable_dlopen_self=unknown ;;
9151
 
  esac
9152
 
 
9153
 
  case $lt_cv_dlopen_self_static in
9154
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9155
 
  *) enable_dlopen_self_static=unknown ;;
9156
 
  esac
9157
 
fi
9158
 
 
9159
 
 
9160
 
## FIXME: this should be a separate macro
9161
 
##
9162
 
if test "$enable_shared" = yes && test "$GCC" = yes; then
9163
 
  case $archive_cmds in
9164
 
  *'~'*)
9165
 
    # FIXME: we may have to deal with multi-command sequences.
9166
 
    ;;
9167
 
  '$CC '*)
9168
 
    # Test whether the compiler implicitly links with -lc since on some
9169
 
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
9170
 
    # to ld, don't add -lc before -lgcc.
9171
 
    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9172
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9173
 
    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9174
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9175
 
else
9176
 
  $rm conftest*
9177
 
    echo 'static int dummy;' > conftest.$ac_ext
9178
 
 
9179
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9180
 
  (eval $ac_compile) 2>&5
9181
 
  ac_status=$?
9182
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183
 
  (exit $ac_status); }; then
9184
 
      soname=conftest
9185
 
      lib=conftest
9186
 
      libobjs=conftest.$ac_objext
9187
 
      deplibs=
9188
 
      wl=$lt_cv_prog_cc_wl
9189
 
      compiler_flags=-v
9190
 
      linker_flags=-v
9191
 
      verstring=
9192
 
      output_objdir=.
9193
 
      libname=conftest
9194
 
      save_allow_undefined_flag=$allow_undefined_flag
9195
 
      allow_undefined_flag=
9196
 
      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9197
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9198
 
  ac_status=$?
9199
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200
 
  (exit $ac_status); }
9201
 
      then
9202
 
        lt_cv_archive_cmds_need_lc=no
9203
 
      else
9204
 
        lt_cv_archive_cmds_need_lc=yes
9205
 
      fi
9206
 
      allow_undefined_flag=$save_allow_undefined_flag
9207
 
    else
9208
 
      cat conftest.err 1>&5
9209
 
    fi
9210
 
fi
9211
 
 
9212
 
    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9213
 
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9214
 
    ;;
9215
 
  esac
9216
 
fi
9217
 
need_lc=${lt_cv_archive_cmds_need_lc-yes}
9218
 
##
9219
 
## END FIXME
9220
 
 
9221
 
## FIXME: this should be a separate macro
9222
 
##
9223
 
# The second clause should only fire when bootstrapping the
9224
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
9225
 
# with your package, and you will get complaints that there are
9226
 
# no rules to generate ltmain.sh.
9227
 
if test -f "$ltmain"; then
9228
 
  :
9229
 
else
9230
 
  # If there is no Makefile yet, we rely on a make rule to execute
9231
 
  # `config.status --recheck' to rerun these tests and create the
9232
 
  # libtool script then.
9233
 
  test -f Makefile && make "$ltmain"
9234
 
fi
9235
 
 
9236
 
if test -f "$ltmain"; then
9237
 
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
9238
 
  $rm -f "${ofile}T"
9239
 
 
9240
 
  echo creating $ofile
9241
 
 
9242
 
  # Now quote all the things that may contain metacharacters while being
9243
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9244
 
  # variables and quote the copies for generation of the libtool script.
9245
 
  for var in echo old_CC old_CFLAGS \
9246
 
    AR AR_FLAGS CC LD LN_S NM SHELL \
9247
 
    reload_flag reload_cmds wl \
9248
 
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
9249
 
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
9250
 
    library_names_spec soname_spec \
9251
 
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
9252
 
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
9253
 
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
9254
 
    old_striplib striplib file_magic_cmd export_symbols_cmds \
9255
 
    deplibs_check_method allow_undefined_flag no_undefined_flag \
9256
 
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
9257
 
    global_symbol_to_c_name_address \
9258
 
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
9259
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9260
 
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
9261
 
 
9262
 
    case $var in
9263
 
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
9264
 
    old_postinstall_cmds | old_postuninstall_cmds | \
9265
 
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
9266
 
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
9267
 
    postinstall_cmds | postuninstall_cmds | \
9268
 
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9269
 
      # Double-quote double-evaled strings.
9270
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9271
 
      ;;
9272
 
    *)
9273
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9274
 
      ;;
9275
 
    esac
9276
 
  done
9277
 
 
9278
 
  cat <<__EOF__ > "${ofile}T"
9279
 
#! $SHELL
9280
 
 
9281
 
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9282
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9283
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9284
 
#
9285
 
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
9286
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9287
 
#
9288
 
# This program is free software; you can redistribute it and/or modify
9289
 
# it under the terms of the GNU General Public License as published by
9290
 
# the Free Software Foundation; either version 2 of the License, or
9291
 
# (at your option) any later version.
9292
 
#
9293
 
# This program is distributed in the hope that it will be useful, but
9294
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
9295
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9296
 
# General Public License for more details.
9297
 
#
9298
 
# You should have received a copy of the GNU General Public License
9299
 
# along with this program; if not, write to the Free Software
9300
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9301
 
#
9302
 
# As a special exception to the GNU General Public License, if you
9303
 
# distribute this file as part of a program that contains a
9304
 
# configuration script generated by Autoconf, you may include it under
9305
 
# the same distribution terms that you use for the rest of that program.
9306
 
 
9307
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9308
 
Xsed="sed -e s/^X//"
9309
 
 
9310
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
9311
 
# if CDPATH is set.
9312
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9313
 
 
9314
 
# ### BEGIN LIBTOOL CONFIG
9315
 
 
9316
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9317
 
 
9318
 
# Shell to use when invoking shell scripts.
9319
 
SHELL=$lt_SHELL
9320
 
 
9321
 
# Whether or not to build shared libraries.
9322
 
build_libtool_libs=$enable_shared
9323
 
 
9324
 
# Whether or not to build static libraries.
9325
 
build_old_libs=$enable_static
9326
 
 
9327
 
# Whether or not to add -lc for building shared libraries.
9328
 
build_libtool_need_lc=$need_lc
9329
 
 
9330
 
# Whether or not to optimize for fast installation.
9331
 
fast_install=$enable_fast_install
9332
 
 
9333
 
# The host system.
9334
 
host_alias=$host_alias
9335
 
host=$host
9336
 
 
9337
 
# An echo program that does not interpret backslashes.
9338
 
echo=$lt_echo
9339
 
 
9340
 
# The archiver.
9341
 
AR=$lt_AR
9342
 
AR_FLAGS=$lt_AR_FLAGS
9343
 
 
9344
 
# The default C compiler.
9345
 
CC=$lt_CC
9346
 
 
9347
 
# Is the compiler the GNU C compiler?
9348
 
with_gcc=$GCC
9349
 
 
9350
 
# The linker used to build libraries.
9351
 
LD=$lt_LD
9352
 
 
9353
 
# Whether we need hard or soft links.
9354
 
LN_S=$lt_LN_S
9355
 
 
9356
 
# A BSD-compatible nm program.
9357
 
NM=$lt_NM
9358
 
 
9359
 
# A symbol stripping program
9360
 
STRIP=$STRIP
9361
 
 
9362
 
# Used to examine libraries when file_magic_cmd begins "file"
9363
 
MAGIC_CMD=$MAGIC_CMD
9364
 
 
9365
 
# Used on cygwin: DLL creation program.
9366
 
DLLTOOL="$DLLTOOL"
9367
 
 
9368
 
# Used on cygwin: object dumper.
9369
 
OBJDUMP="$OBJDUMP"
9370
 
 
9371
 
# Used on cygwin: assembler.
9372
 
AS="$AS"
9373
 
 
9374
 
# The name of the directory that contains temporary libtool files.
9375
 
objdir=$objdir
9376
 
 
9377
 
# How to create reloadable object files.
9378
 
reload_flag=$lt_reload_flag
9379
 
reload_cmds=$lt_reload_cmds
9380
 
 
9381
 
# How to pass a linker flag through the compiler.
9382
 
wl=$lt_wl
9383
 
 
9384
 
# Object file suffix (normally "o").
9385
 
objext="$ac_objext"
9386
 
 
9387
 
# Old archive suffix (normally "a").
9388
 
libext="$libext"
9389
 
 
9390
 
# Executable file suffix (normally "").
9391
 
exeext="$exeext"
9392
 
 
9393
 
# Additional compiler flags for building library objects.
9394
 
pic_flag=$lt_pic_flag
9395
 
pic_mode=$pic_mode
9396
 
 
9397
 
# Does compiler simultaneously support -c and -o options?
9398
 
compiler_c_o=$lt_compiler_c_o
9399
 
 
9400
 
# Can we write directly to a .lo ?
9401
 
compiler_o_lo=$lt_compiler_o_lo
9402
 
 
9403
 
# Must we lock files when doing compilation ?
9404
 
need_locks=$lt_need_locks
9405
 
 
9406
 
# Do we need the lib prefix for modules?
9407
 
need_lib_prefix=$need_lib_prefix
9408
 
 
9409
 
# Do we need a version for libraries?
9410
 
need_version=$need_version
9411
 
 
9412
 
# Whether dlopen is supported.
9413
 
dlopen_support=$enable_dlopen
9414
 
 
9415
 
# Whether dlopen of programs is supported.
9416
 
dlopen_self=$enable_dlopen_self
9417
 
 
9418
 
# Whether dlopen of statically linked programs is supported.
9419
 
dlopen_self_static=$enable_dlopen_self_static
9420
 
 
9421
 
# Compiler flag to prevent dynamic linking.
9422
 
link_static_flag=$lt_link_static_flag
9423
 
 
9424
 
# Compiler flag to turn off builtin functions.
9425
 
no_builtin_flag=$lt_no_builtin_flag
9426
 
 
9427
 
# Compiler flag to allow reflexive dlopens.
9428
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9429
 
 
9430
 
# Compiler flag to generate shared objects directly from archives.
9431
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9432
 
 
9433
 
# Compiler flag to generate thread-safe objects.
9434
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9435
 
 
9436
 
# Library versioning type.
9437
 
version_type=$version_type
9438
 
 
9439
 
# Format of library name prefix.
9440
 
libname_spec=$lt_libname_spec
9441
 
 
9442
 
# List of archive names.  First name is the real one, the rest are links.
9443
 
# The last name is the one that the linker finds with -lNAME.
9444
 
library_names_spec=$lt_library_names_spec
9445
 
 
9446
 
# The coded name of the library, if different from the real name.
9447
 
soname_spec=$lt_soname_spec
9448
 
 
9449
 
# Commands used to build and install an old-style archive.
9450
 
RANLIB=$lt_RANLIB
9451
 
old_archive_cmds=$lt_old_archive_cmds
9452
 
old_postinstall_cmds=$lt_old_postinstall_cmds
9453
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9454
 
 
9455
 
# Create an old-style archive from a shared archive.
9456
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9457
 
 
9458
 
# Create a temporary old-style archive to link instead of a shared archive.
9459
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9460
 
 
9461
 
# Commands used to build and install a shared archive.
9462
 
archive_cmds=$lt_archive_cmds
9463
 
archive_expsym_cmds=$lt_archive_expsym_cmds
9464
 
postinstall_cmds=$lt_postinstall_cmds
9465
 
postuninstall_cmds=$lt_postuninstall_cmds
9466
 
 
9467
 
# Commands to strip libraries.
9468
 
old_striplib=$lt_old_striplib
9469
 
striplib=$lt_striplib
9470
 
 
9471
 
# Method to check whether dependent libraries are shared objects.
9472
 
deplibs_check_method=$lt_deplibs_check_method
9473
 
 
9474
 
# Command to use when deplibs_check_method == file_magic.
9475
 
file_magic_cmd=$lt_file_magic_cmd
9476
 
 
9477
 
# Flag that allows shared libraries with undefined symbols to be built.
9478
 
allow_undefined_flag=$lt_allow_undefined_flag
9479
 
 
9480
 
# Flag that forces no undefined symbols.
9481
 
no_undefined_flag=$lt_no_undefined_flag
9482
 
 
9483
 
# Commands used to finish a libtool library installation in a directory.
9484
 
finish_cmds=$lt_finish_cmds
9485
 
 
9486
 
# Same as above, but a single script fragment to be evaled but not shown.
9487
 
finish_eval=$lt_finish_eval
9488
 
 
9489
 
# Take the output of nm and produce a listing of raw symbols and C names.
9490
 
global_symbol_pipe=$lt_global_symbol_pipe
9491
 
 
9492
 
# Transform the output of nm in a proper C declaration
9493
 
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
9494
 
 
9495
 
# Transform the output of nm in a C name address pair
9496
 
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
9497
 
 
9498
 
# This is the shared library runtime path variable.
9499
 
runpath_var=$runpath_var
9500
 
 
9501
 
# This is the shared library path variable.
9502
 
shlibpath_var=$shlibpath_var
9503
 
 
9504
 
# Is shlibpath searched before the hard-coded library search path?
9505
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9506
 
 
9507
 
# How to hardcode a shared library path into an executable.
9508
 
hardcode_action=$hardcode_action
9509
 
 
9510
 
# Whether we should hardcode library paths into libraries.
9511
 
hardcode_into_libs=$hardcode_into_libs
9512
 
 
9513
 
# Flag to hardcode \$libdir into a binary during linking.
9514
 
# This must work even if \$libdir does not exist.
9515
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9516
 
 
9517
 
# Whether we need a single -rpath flag with a separated argument.
9518
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9519
 
 
9520
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
9521
 
# resulting binary.
9522
 
hardcode_direct=$hardcode_direct
9523
 
 
9524
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9525
 
# resulting binary.
9526
 
hardcode_minus_L=$hardcode_minus_L
9527
 
 
9528
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9529
 
# the resulting binary.
9530
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
9531
 
 
9532
 
# Variables whose values should be saved in libtool wrapper scripts and
9533
 
# restored at relink time.
9534
 
variables_saved_for_relink="$variables_saved_for_relink"
9535
 
 
9536
 
# Whether libtool must link a program against all its dependency libraries.
9537
 
link_all_deplibs=$link_all_deplibs
9538
 
 
9539
 
# Compile-time system search path for libraries
9540
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9541
 
 
9542
 
# Run-time system search path for libraries
9543
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9544
 
 
9545
 
# Fix the shell variable \$srcfile for the compiler.
9546
 
fix_srcfile_path="$fix_srcfile_path"
9547
 
 
9548
 
# Set to yes if exported symbols are required.
9549
 
always_export_symbols=$always_export_symbols
9550
 
 
9551
 
# The commands to list exported symbols.
9552
 
export_symbols_cmds=$lt_export_symbols_cmds
9553
 
 
9554
 
# The commands to extract the exported symbol list from a shared archive.
9555
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9556
 
 
9557
 
# Symbols that should not be listed in the preloaded symbols.
9558
 
exclude_expsyms=$lt_exclude_expsyms
9559
 
 
9560
 
# Symbols that must always be exported.
9561
 
include_expsyms=$lt_include_expsyms
9562
 
 
9563
 
# ### END LIBTOOL CONFIG
9564
 
 
9565
 
__EOF__
9566
 
 
9567
 
  case $host_os in
9568
 
  aix3*)
9569
 
    cat <<\EOF >> "${ofile}T"
9570
 
 
9571
 
# AIX sometimes has problems with the GCC collect2 program.  For some
9572
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
9573
 
# vanish in a puff of smoke.
9574
 
if test "X${COLLECT_NAMES+set}" != Xset; then
9575
 
  COLLECT_NAMES=
9576
 
  export COLLECT_NAMES
9577
 
fi
9578
 
EOF
9579
 
    ;;
9580
 
  esac
9581
 
 
9582
 
  case $host_os in
9583
 
  cygwin* | mingw* | pw32* | os2*)
9584
 
    cat <<'EOF' >> "${ofile}T"
9585
 
      # This is a source program that is used to create dlls on Windows
9586
 
      # Don't remove nor modify the starting and closing comments
9587
 
# /* ltdll.c starts here */
9588
 
# #define WIN32_LEAN_AND_MEAN
9589
 
# #include <windows.h>
9590
 
# #undef WIN32_LEAN_AND_MEAN
9591
 
# #include <stdio.h>
9592
 
#
9593
 
# #ifndef __CYGWIN__
9594
 
# #  ifdef __CYGWIN32__
9595
 
# #    define __CYGWIN__ __CYGWIN32__
9596
 
# #  endif
9597
 
# #endif
9598
 
#
9599
 
# #ifdef __cplusplus
9600
 
# extern "C" {
9601
 
# #endif
9602
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
9603
 
# #ifdef __cplusplus
9604
 
# }
9605
 
# #endif
9606
 
#
9607
 
# #ifdef __CYGWIN__
9608
 
# #include <cygwin/cygwin_dll.h>
9609
 
# DECLARE_CYGWIN_DLL( DllMain );
9610
 
# #endif
9611
 
# HINSTANCE __hDllInstance_base;
9612
 
#
9613
 
# BOOL APIENTRY
9614
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
9615
 
# {
9616
 
#   __hDllInstance_base = hInst;
9617
 
#   return TRUE;
9618
 
# }
9619
 
# /* ltdll.c ends here */
9620
 
        # This is a source program that is used to create import libraries
9621
 
        # on Windows for dlls which lack them. Don't remove nor modify the
9622
 
        # starting and closing comments
9623
 
# /* impgen.c starts here */
9624
 
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
9625
 
#
9626
 
#  This file is part of GNU libtool.
9627
 
#
9628
 
#  This program is free software; you can redistribute it and/or modify
9629
 
#  it under the terms of the GNU General Public License as published by
9630
 
#  the Free Software Foundation; either version 2 of the License, or
9631
 
#  (at your option) any later version.
9632
 
#
9633
 
#  This program is distributed in the hope that it will be useful,
9634
 
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
9635
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9636
 
#  GNU General Public License for more details.
9637
 
#
9638
 
#  You should have received a copy of the GNU General Public License
9639
 
#  along with this program; if not, write to the Free Software
9640
 
#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9641
 
#  */
9642
 
#
9643
 
# #include <stdio.h>            /* for printf() */
9644
 
# #include <unistd.h>           /* for open(), lseek(), read() */
9645
 
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
9646
 
# #include <string.h>           /* for strdup() */
9647
 
#
9648
 
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
9649
 
# #ifndef O_BINARY
9650
 
# #define O_BINARY 0
9651
 
# #endif
9652
 
#
9653
 
# static unsigned int
9654
 
# pe_get16 (fd, offset)
9655
 
#      int fd;
9656
 
#      int offset;
9657
 
# {
9658
 
#   unsigned char b[2];
9659
 
#   lseek (fd, offset, SEEK_SET);
9660
 
#   read (fd, b, 2);
9661
 
#   return b[0] + (b[1]<<8);
9662
 
# }
9663
 
#
9664
 
# static unsigned int
9665
 
# pe_get32 (fd, offset)
9666
 
#     int fd;
9667
 
#     int offset;
9668
 
# {
9669
 
#   unsigned char b[4];
9670
 
#   lseek (fd, offset, SEEK_SET);
9671
 
#   read (fd, b, 4);
9672
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
9673
 
# }
9674
 
#
9675
 
# static unsigned int
9676
 
# pe_as32 (ptr)
9677
 
#      void *ptr;
9678
 
# {
9679
 
#   unsigned char *b = ptr;
9680
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
9681
 
# }
9682
 
#
9683
 
# int
9684
 
# main (argc, argv)
9685
 
#     int argc;
9686
 
#     char *argv[];
9687
 
# {
9688
 
#     int dll;
9689
 
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
9690
 
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
9691
 
#     unsigned long name_rvas, nexp;
9692
 
#     unsigned char *expdata, *erva;
9693
 
#     char *filename, *dll_name;
9694
 
#
9695
 
#     filename = argv[1];
9696
 
#
9697
 
#     dll = open(filename, O_RDONLY|O_BINARY);
9698
 
#     if (dll < 1)
9699
 
#       return 1;
9700
 
#
9701
 
#     dll_name = filename;
9702
 
#
9703
 
#     for (i=0; filename[i]; i++)
9704
 
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
9705
 
#           dll_name = filename + i +1;
9706
 
#
9707
 
#     pe_header_offset = pe_get32 (dll, 0x3c);
9708
 
#     opthdr_ofs = pe_header_offset + 4 + 20;
9709
 
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
9710
 
#
9711
 
#     if (num_entries < 1) /* no exports */
9712
 
#       return 1;
9713
 
#
9714
 
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
9715
 
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
9716
 
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
9717
 
#     secptr = (pe_header_offset + 4 + 20 +
9718
 
#             pe_get16 (dll, pe_header_offset + 4 + 16));
9719
 
#
9720
 
#     expptr = 0;
9721
 
#     for (i = 0; i < nsections; i++)
9722
 
#     {
9723
 
#       char sname[8];
9724
 
#       unsigned long secptr1 = secptr + 40 * i;
9725
 
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
9726
 
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
9727
 
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
9728
 
#       lseek(dll, secptr1, SEEK_SET);
9729
 
#       read(dll, sname, 8);
9730
 
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
9731
 
#       {
9732
 
#           expptr = fptr + (export_rva - vaddr);
9733
 
#           if (export_rva + export_size > vaddr + vsize)
9734
 
#               export_size = vsize - (export_rva - vaddr);
9735
 
#           break;
9736
 
#       }
9737
 
#     }
9738
 
#
9739
 
#     expdata = (unsigned char*)malloc(export_size);
9740
 
#     lseek (dll, expptr, SEEK_SET);
9741
 
#     read (dll, expdata, export_size);
9742
 
#     erva = expdata - export_rva;
9743
 
#
9744
 
#     nexp = pe_as32 (expdata+24);
9745
 
#     name_rvas = pe_as32 (expdata+32);
9746
 
#
9747
 
#     printf ("EXPORTS\n");
9748
 
#     for (i = 0; i<nexp; i++)
9749
 
#     {
9750
 
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
9751
 
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
9752
 
#     }
9753
 
#
9754
 
#     return 0;
9755
 
# }
9756
 
# /* impgen.c ends here */
9757
 
 
9758
 
EOF
9759
 
    ;;
9760
 
  esac
9761
 
 
9762
 
  # We use sed instead of cat because bash on DJGPP gets confused if
9763
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9764
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
9765
 
  # is reportedly fixed, but why not run on old versions too?
9766
 
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
9767
 
 
9768
 
  mv -f "${ofile}T" "$ofile" || \
9769
 
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
9770
 
  chmod +x "$ofile"
9771
 
fi
9772
 
##
9773
 
## END FIXME
9774
 
 
9775
 
 
9776
 
 
9777
 
 
9778
 
 
9779
 
# This can be used to rebuild libtool when needed
9780
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
9781
 
 
9782
 
# Always use our own libtool.
9783
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9784
 
 
9785
 
# Prevent multiple expansion
9786
 
 
9787
 
 
9788
 
 
9789
 
LIBTOOL="\$(SHELL) ./libtool"
9790
 
 
9791
 
# Set SOSUFFIX and friends
9792
 
 
9793
 
        echo "$as_me:$LINENO: checking SOSUFFIX from libtool" >&5
9794
 
echo $ECHO_N "checking SOSUFFIX from libtool... $ECHO_C" >&6
9795
 
        module=no
9796
 
        jnimodule=no
9797
 
 
9798
 
        versuffix=""
9799
 
        release=""
9800
 
        libname=libfoo
9801
 
        eval library_names=\"$library_names_spec\"
9802
 
        _SOSUFFIX=`echo "$library_names" | sed -e 's/.*\.\([a-zA-Z0-9_]*\).*/\1/'`
9803
 
        if test "$_SOSUFFIX" = '' ; then
9804
 
                _SOSUFFIX=so
9805
 
                if test "$enable_shared" = "yes" && test "$_SOSUFFIX_MESSAGE" = ""; then
9806
 
                        _SOSUFFIX_MESSAGE=yes
9807
 
                        { echo "$as_me:$LINENO: WARNING: libtool may not know about this architecture." >&5
9808
 
echo "$as_me: WARNING: libtool may not know about this architecture." >&2;}
9809
 
                        { echo "$as_me:$LINENO: WARNING: assuming .$_SUFFIX suffix for dynamic libraries." >&5
9810
 
echo "$as_me: WARNING: assuming .$_SUFFIX suffix for dynamic libraries." >&2;}
9811
 
                fi
9812
 
        fi
9813
 
 
9814
 
        SOSUFFIX=$_SOSUFFIX
9815
 
        echo "$as_me:$LINENO: result: $SOSUFFIX" >&5
9816
 
echo "${ECHO_T}$SOSUFFIX" >&6
9817
 
 
9818
 
 
9819
 
 
9820
 
        echo "$as_me:$LINENO: checking MODSUFFIX from libtool" >&5
9821
 
echo $ECHO_N "checking MODSUFFIX from libtool... $ECHO_C" >&6
9822
 
        module=yes
9823
 
        jnimodule=no
9824
 
 
9825
 
        versuffix=""
9826
 
        release=""
9827
 
        libname=libfoo
9828
 
        eval library_names=\"$library_names_spec\"
9829
 
        _SOSUFFIX=`echo "$library_names" | sed -e 's/.*\.\([a-zA-Z0-9_]*\).*/\1/'`
9830
 
        if test "$_SOSUFFIX" = '' ; then
9831
 
                _SOSUFFIX=so
9832
 
                if test "$enable_shared" = "yes" && test "$_SOSUFFIX_MESSAGE" = ""; then
9833
 
                        _SOSUFFIX_MESSAGE=yes
9834
 
                        { echo "$as_me:$LINENO: WARNING: libtool may not know about this architecture." >&5
9835
 
echo "$as_me: WARNING: libtool may not know about this architecture." >&2;}
9836
 
                        { echo "$as_me:$LINENO: WARNING: assuming .$_SUFFIX suffix for dynamic libraries." >&5
9837
 
echo "$as_me: WARNING: assuming .$_SUFFIX suffix for dynamic libraries." >&2;}
9838
 
                fi
9839
 
        fi
9840
 
 
9841
 
        MODSUFFIX=$_SOSUFFIX
9842
 
        echo "$as_me:$LINENO: result: $MODSUFFIX" >&5
9843
 
echo "${ECHO_T}$MODSUFFIX" >&6
9844
 
 
9845
 
 
9846
 
 
9847
 
        echo "$as_me:$LINENO: checking JMODSUFFIX from libtool" >&5
9848
 
echo $ECHO_N "checking JMODSUFFIX from libtool... $ECHO_C" >&6
9849
 
        module=yes
9850
 
        jnimodule=yes
9851
 
 
9852
 
        versuffix=""
9853
 
        release=""
9854
 
        libname=libfoo
9855
 
        eval library_names=\"$library_names_spec\"
9856
 
        _SOSUFFIX=`echo "$library_names" | sed -e 's/.*\.\([a-zA-Z0-9_]*\).*/\1/'`
9857
 
        if test "$_SOSUFFIX" = '' ; then
9858
 
                _SOSUFFIX=so
9859
 
                if test "$enable_shared" = "yes" && test "$_SOSUFFIX_MESSAGE" = ""; then
9860
 
                        _SOSUFFIX_MESSAGE=yes
9861
 
                        { echo "$as_me:$LINENO: WARNING: libtool may not know about this architecture." >&5
9862
 
echo "$as_me: WARNING: libtool may not know about this architecture." >&2;}
9863
 
                        { echo "$as_me:$LINENO: WARNING: assuming .$_SUFFIX suffix for dynamic libraries." >&5
9864
 
echo "$as_me: WARNING: assuming .$_SUFFIX suffix for dynamic libraries." >&2;}
9865
 
                fi
9866
 
        fi
9867
 
 
9868
 
        JMODSUFFIX=$_SOSUFFIX
9869
 
        echo "$as_me:$LINENO: result: $JMODSUFFIX" >&5
9870
 
echo "${ECHO_T}$JMODSUFFIX" >&6
9871
 
 
9872
 
 
9873
 
 
9874
 
INSTALLER="\$(LIBTOOL) --mode=install cp -p"
9875
 
 
9876
 
MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${MAKEFILE_CC}"
9877
 
MAKEFILE_SOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK} -avoid-version"
9878
 
MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK}"
9879
 
MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${MAKEFILE_CXX}"
9880
 
MAKEFILE_XSOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK} -avoid-version"
9881
 
MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK}"
9882
 
 
9883
 
DEFAULT_LIB="\$(libso_target)"
9884
 
POSTLINK="\$(LIBTOOL) --mode=execute true"
9885
 
o=".lo"
9886
 
INSTALL_LIBS="$DEFAULT_LIB"
9887
 
 
9888
 
# Optional C++ API.
9889
 
if test "$db_cv_cxx" = "yes"; then
9890
 
        if test "$enable_shared" = "no"; then
9891
 
                DEFAULT_LIB_CXX="\$(libcxx)"
9892
 
        fi
9893
 
        if test "$enable_shared" = "yes"; then
9894
 
                DEFAULT_LIB_CXX="\$(libxso_target)"
9895
 
        fi
9896
 
        INSTALL_LIBS="$INSTALL_LIBS $DEFAULT_LIB_CXX"
9897
 
 
9898
 
        # Fill in C++ library for Embedix.
9899
 
        EMBEDIX_ECD_CXX='<OPTION db-extra>\
9900
 
        TYPE=bool\
9901
 
        DEFAULT_VALUE=1\
9902
 
        PROMPT=Include BerkeleyDB C++ library?\
9903
 
        <KEEPLIST>\
9904
 
                /usr/include/db_cxx.h\
9905
 
                /usr/lib/libdb_cxx-@DB_VERSION_MAJOR@.@DB_VERSION_MINOR@.so\
9906
 
        </KEEPLIST>\
9907
 
        <PROVIDES>\
9908
 
                libdb_cxx-@DB_VERSION_MAJOR@.@DB_VERSION_MINOR@.so\
9909
 
        </PROVIDES>\
9910
 
        <REQUIRES>\
9911
 
                ld-linux.so.2\
9912
 
                libc.so.6\
9913
 
        </REQUIRES>\
9914
 
        STATIC_SIZE=0\
9915
 
        STORAGE_SIZE=523612\
9916
 
        STARTUP_TIME=0\
9917
 
        </OPTION>'
9918
 
fi
9919
 
 
9920
 
# Optional Java API.
9921
 
if test "$db_cv_java" = "yes"; then
9922
 
        # Java requires shared libraries.
9923
 
        if test "$enable_shared" = "no"; then
9924
 
                { { echo "$as_me:$LINENO: error: Java requires shared libraries" >&5
9925
 
echo "$as_me: error: Java requires shared libraries" >&2;}
9926
 
   { (exit 1); exit 1; }; }
9927
 
        fi
9928
 
 
9929
 
 
9930
 
if test "x$JAVAPREFIX" = x; then
9931
 
        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
9932
 
do
9933
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
9934
 
set dummy $ac_prog; ac_word=$2
9935
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
9936
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9937
 
if test "${ac_cv_prog_JAVAC+set}" = set; then
9938
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9939
 
else
9940
 
  if test -n "$JAVAC"; then
9941
 
  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
9942
 
else
9943
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9944
 
for as_dir in $PATH
9945
 
do
9946
 
  IFS=$as_save_IFS
9947
 
  test -z "$as_dir" && as_dir=.
9948
 
  for ac_exec_ext in '' $ac_executable_extensions; do
9949
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9950
 
    ac_cv_prog_JAVAC="$ac_prog"
9951
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9952
 
    break 2
9953
 
  fi
9954
 
done
9955
 
done
9956
 
 
9957
 
fi
9958
 
fi
9959
 
JAVAC=$ac_cv_prog_JAVAC
9960
 
if test -n "$JAVAC"; then
9961
 
  echo "$as_me:$LINENO: result: $JAVAC" >&5
9962
 
echo "${ECHO_T}$JAVAC" >&6
9963
 
else
9964
 
  echo "$as_me:$LINENO: result: no" >&5
9965
 
echo "${ECHO_T}no" >&6
9966
 
fi
9967
 
 
9968
 
  test -n "$JAVAC" && break
9969
 
done
9970
 
 
9971
 
else
9972
 
        test "x$JAVAC" = x && for ac_prog in javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT
9973
 
do
9974
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
9975
 
set dummy $ac_prog; ac_word=$2
9976
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
9977
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9978
 
if test "${ac_cv_prog_JAVAC+set}" = set; then
9979
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9980
 
else
9981
 
  if test -n "$JAVAC"; then
9982
 
  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
9983
 
else
9984
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985
 
for as_dir in $PATH
9986
 
do
9987
 
  IFS=$as_save_IFS
9988
 
  test -z "$as_dir" && as_dir=.
9989
 
  for ac_exec_ext in '' $ac_executable_extensions; do
9990
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9991
 
    ac_cv_prog_JAVAC="$ac_prog"
9992
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9993
 
    break 2
9994
 
  fi
9995
 
done
9996
 
done
9997
 
 
9998
 
fi
9999
 
fi
10000
 
JAVAC=$ac_cv_prog_JAVAC
10001
 
if test -n "$JAVAC"; then
10002
 
  echo "$as_me:$LINENO: result: $JAVAC" >&5
10003
 
echo "${ECHO_T}$JAVAC" >&6
10004
 
else
10005
 
  echo "$as_me:$LINENO: result: no" >&5
10006
 
echo "${ECHO_T}no" >&6
10007
 
fi
10008
 
 
10009
 
  test -n "$JAVAC" && break
10010
 
done
10011
 
test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
10012
 
 
10013
 
fi
10014
 
test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: no acceptable Java compiler found in \$PATH" >&5
10015
 
echo "$as_me: error: no acceptable Java compiler found in \$PATH" >&2;}
10016
 
   { (exit 1); exit 1; }; }
10017
 
 
10018
 
echo "$as_me:$LINENO: checking if $JAVAC works" >&5
10019
 
echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6
10020
 
if test "${ac_cv_prog_javac_works+set}" = set; then
10021
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10022
 
else
10023
 
 
10024
 
JAVA_TEST=Test.java
10025
 
CLASS_TEST=Test.class
10026
 
cat << \EOF > $JAVA_TEST
10027
 
/* #line 10016 "configure" */
10028
 
public class Test {
10029
 
}
10030
 
EOF
10031
 
if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
10032
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033
 
  (eval $ac_try) 2>&5
10034
 
  ac_status=$?
10035
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036
 
  (exit $ac_status); }; } >/dev/null 2>&1; then
10037
 
  ac_cv_prog_javac_works=yes
10038
 
else
10039
 
  { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
10040
 
echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
10041
 
   { (exit 1); exit 1; }; }
10042
 
  echo "configure: failed program was:" >&5
10043
 
  cat $JAVA_TEST >&5
10044
 
fi
10045
 
rm -f $JAVA_TEST $CLASS_TEST
10046
 
 
10047
 
fi
10048
 
echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
10049
 
echo "${ECHO_T}$ac_cv_prog_javac_works" >&6
10050
 
 
10051
 
 
10052
 
 
10053
 
if test "x$JAVAPREFIX" = x; then
10054
 
        test "x$JAR" = x && for ac_prog in jar$EXEEXT
10055
 
do
10056
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10057
 
set dummy $ac_prog; ac_word=$2
10058
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
10059
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10060
 
if test "${ac_cv_prog_JAR+set}" = set; then
10061
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10062
 
else
10063
 
  if test -n "$JAR"; then
10064
 
  ac_cv_prog_JAR="$JAR" # Let the user override the test.
10065
 
else
10066
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10067
 
for as_dir in $PATH
10068
 
do
10069
 
  IFS=$as_save_IFS
10070
 
  test -z "$as_dir" && as_dir=.
10071
 
  for ac_exec_ext in '' $ac_executable_extensions; do
10072
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10073
 
    ac_cv_prog_JAR="$ac_prog"
10074
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10075
 
    break 2
10076
 
  fi
10077
 
done
10078
 
done
10079
 
 
10080
 
fi
10081
 
fi
10082
 
JAR=$ac_cv_prog_JAR
10083
 
if test -n "$JAR"; then
10084
 
  echo "$as_me:$LINENO: result: $JAR" >&5
10085
 
echo "${ECHO_T}$JAR" >&6
10086
 
else
10087
 
  echo "$as_me:$LINENO: result: no" >&5
10088
 
echo "${ECHO_T}no" >&6
10089
 
fi
10090
 
 
10091
 
  test -n "$JAR" && break
10092
 
done
10093
 
 
10094
 
else
10095
 
        test "x$JAR" = x && for ac_prog in jar
10096
 
do
10097
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10098
 
set dummy $ac_prog; ac_word=$2
10099
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
10100
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10101
 
if test "${ac_cv_prog_JAR+set}" = set; then
10102
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10103
 
else
10104
 
  if test -n "$JAR"; then
10105
 
  ac_cv_prog_JAR="$JAR" # Let the user override the test.
10106
 
else
10107
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10108
 
for as_dir in $PATH
10109
 
do
10110
 
  IFS=$as_save_IFS
10111
 
  test -z "$as_dir" && as_dir=.
10112
 
  for ac_exec_ext in '' $ac_executable_extensions; do
10113
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10114
 
    ac_cv_prog_JAR="$ac_prog"
10115
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10116
 
    break 2
10117
 
  fi
10118
 
done
10119
 
done
10120
 
 
10121
 
fi
10122
 
fi
10123
 
JAR=$ac_cv_prog_JAR
10124
 
if test -n "$JAR"; then
10125
 
  echo "$as_me:$LINENO: result: $JAR" >&5
10126
 
echo "${ECHO_T}$JAR" >&6
10127
 
else
10128
 
  echo "$as_me:$LINENO: result: no" >&5
10129
 
echo "${ECHO_T}no" >&6
10130
 
fi
10131
 
 
10132
 
  test -n "$JAR" && break
10133
 
done
10134
 
test -n "$JAR" || JAR="$JAVAPREFIX"
10135
 
 
10136
 
fi
10137
 
test "x$JAR" = x && { { echo "$as_me:$LINENO: error: no acceptable jar program found in \$PATH" >&5
10138
 
echo "$as_me: error: no acceptable jar program found in \$PATH" >&2;}
10139
 
   { (exit 1); exit 1; }; }
10140
 
 
10141
 
 
10142
 
 
10143
 
JNI_INCLUDE_DIRS=""
10144
 
 
10145
 
test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: '$JAVAC' undefined" >&5
10146
 
echo "$as_me: error: '$JAVAC' undefined" >&2;}
10147
 
   { (exit 1); exit 1; }; }
10148
 
# Extract the first word of "$JAVAC", so it can be a program name with args.
10149
 
set dummy $JAVAC; ac_word=$2
10150
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
10151
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10152
 
if test "${ac_cv_path__ACJNI_JAVAC+set}" = set; then
10153
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10154
 
else
10155
 
  case $_ACJNI_JAVAC in
10156
 
  [\\/]* | ?:[\\/]*)
10157
 
  ac_cv_path__ACJNI_JAVAC="$_ACJNI_JAVAC" # Let the user override the test with a path.
10158
 
  ;;
10159
 
  *)
10160
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10161
 
for as_dir in $PATH
10162
 
do
10163
 
  IFS=$as_save_IFS
10164
 
  test -z "$as_dir" && as_dir=.
10165
 
  for ac_exec_ext in '' $ac_executable_extensions; do
10166
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10167
 
    ac_cv_path__ACJNI_JAVAC="$as_dir/$ac_word$ac_exec_ext"
10168
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10169
 
    break 2
10170
 
  fi
10171
 
done
10172
 
done
10173
 
 
10174
 
  test -z "$ac_cv_path__ACJNI_JAVAC" && ac_cv_path__ACJNI_JAVAC="$JAVAC"
10175
 
  ;;
10176
 
esac
10177
 
fi
10178
 
_ACJNI_JAVAC=$ac_cv_path__ACJNI_JAVAC
10179
 
 
10180
 
if test -n "$_ACJNI_JAVAC"; then
10181
 
  echo "$as_me:$LINENO: result: $_ACJNI_JAVAC" >&5
10182
 
echo "${ECHO_T}$_ACJNI_JAVAC" >&6
10183
 
else
10184
 
  echo "$as_me:$LINENO: result: no" >&5
10185
 
echo "${ECHO_T}no" >&6
10186
 
fi
10187
 
 
10188
 
test ! -x "$_ACJNI_JAVAC" && { { echo "$as_me:$LINENO: error: $JAVAC could not be found in path" >&5
10189
 
echo "$as_me: error: $JAVAC could not be found in path" >&2;}
10190
 
   { (exit 1); exit 1; }; }
10191
 
echo "$as_me:$LINENO: checking absolute path of $JAVAC" >&5
10192
 
echo $ECHO_N "checking absolute path of $JAVAC... $ECHO_C" >&6
10193
 
case "$_ACJNI_JAVAC" in
10194
 
/*)     echo "$as_me:$LINENO: result: $_ACJNI_JAVAC" >&5
10195
 
echo "${ECHO_T}$_ACJNI_JAVAC" >&6;;
10196
 
*)      { { echo "$as_me:$LINENO: error: $_ACJNI_JAVAC is not an absolute path name" >&5
10197
 
echo "$as_me: error: $_ACJNI_JAVAC is not an absolute path name" >&2;}
10198
 
   { (exit 1); exit 1; }; };;
10199
 
esac
10200
 
 
10201
 
 
10202
 
# find the include directory relative to the javac executable
10203
 
_cur=""$_ACJNI_JAVAC""
10204
 
while ls -ld "$_cur" 2>/dev/null | grep " -> " >/dev/null; do
10205
 
        echo "$as_me:$LINENO: checking symlink for $_cur" >&5
10206
 
echo $ECHO_N "checking symlink for $_cur... $ECHO_C" >&6
10207
 
        _slink=`ls -ld "$_cur" | sed 's/.* -> //'`
10208
 
        case "$_slink" in
10209
 
        /*) _cur="$_slink";;
10210
 
        # 'X' avoids triggering unwanted echo options.
10211
 
        *) _cur=`echo "X$_cur" | sed -e 's/^X//' -e 's:[^/]*$::'`"$_slink";;
10212
 
        esac
10213
 
        echo "$as_me:$LINENO: result: $_cur" >&5
10214
 
echo "${ECHO_T}$_cur" >&6
10215
 
done
10216
 
_ACJNI_FOLLOWED="$_cur"
10217
 
 
10218
 
_JTOPDIR=`echo "$_ACJNI_FOLLOWED" | sed -e 's://*:/:g' -e 's:/[^/]*$::'`
10219
 
case "$host_os" in
10220
 
        darwin*)        _JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'`
10221
 
                        _JINC="$_JTOPDIR/Headers";;
10222
 
        *)              _JINC="$_JTOPDIR/include";;
10223
 
esac
10224
 
 
10225
 
# If we find jni.h in /usr/include, then it's not a java-only tree, so
10226
 
# don't add /usr/include or subdirectories to the list of includes.
10227
 
# An extra -I/usr/include can foul things up with newer gcc's.
10228
 
if test -f "$_JINC/jni.h"; then
10229
 
        if test "$_JINC" != "/usr/include"; then
10230
 
                JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JINC"
10231
 
        fi
10232
 
else
10233
 
        _JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'`
10234
 
        if test -f "$_JTOPDIR/include/jni.h"; then
10235
 
                if test "$_JTOPDIR" != "/usr"; then
10236
 
                        JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include"
10237
 
                fi
10238
 
        else
10239
 
                { { echo "$as_me:$LINENO: error: cannot find java include files" >&5
10240
 
echo "$as_me: error: cannot find java include files" >&2;}
10241
 
   { (exit 1); exit 1; }; }
10242
 
        fi
10243
 
fi
10244
 
 
10245
 
# get the likely subdirectories for system specific java includes
10246
 
if test "$_JTOPDIR" != "/usr"; then
10247
 
        case "$host_os" in
10248
 
        aix*)           _JNI_INC_SUBDIRS="aix";;
10249
 
        bsdi*)          _JNI_INC_SUBDIRS="bsdos";;
10250
 
        linux*)         _JNI_INC_SUBDIRS="linux genunix";;
10251
 
        osf*)           _JNI_INC_SUBDIRS="alpha";;
10252
 
        solaris*)       _JNI_INC_SUBDIRS="solaris";;
10253
 
        *)              _JNI_INC_SUBDIRS="genunix";;
10254
 
        esac
10255
 
fi
10256
 
 
10257
 
# add any subdirectories that are present
10258
 
for _JINCSUBDIR in $_JNI_INC_SUBDIRS
10259
 
do
10260
 
        if test -d "$_JTOPDIR/include/$_JINCSUBDIR"; then
10261
 
                JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include/$_JINCSUBDIR"
10262
 
        fi
10263
 
done
10264
 
 
10265
 
 
10266
 
        for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS
10267
 
        do
10268
 
                CPPFLAGS="$CPPFLAGS -I$JNI_INCLUDE_DIR"
10269
 
        done
10270
 
 
10271
 
        ADDITIONAL_LANG="$ADDITIONAL_LANG java"
10272
 
        INSTALL_LIBS="$INSTALL_LIBS \$(libjso_target)"
10273
 
else
10274
 
        JAVAC=nojavac
10275
 
fi
10276
 
 
10277
 
# Optional RPC client/server.
10278
 
if test "$db_cv_rpc" = "yes"; then
10279
 
        cat >>confdefs.h <<\_ACEOF
10280
 
#define HAVE_RPC 1
10281
 
_ACEOF
10282
 
 
10283
 
 
10284
 
 
10285
 
 
10286
 
        RPC_CLIENT_OBJS="\$(RPC_CLIENT_OBJS)"
10287
 
        ADDITIONAL_PROGS="berkeley_db_svc $ADDITIONAL_PROGS"
10288
 
 
10289
 
        EMBEDIX_ECD_RPC="/usr/bin/berkeley_db_svc"
10290
 
 
10291
 
        case "$host_os" in
10292
 
        hpux*)
10293
 
                echo "$as_me:$LINENO: checking for svc_run" >&5
10294
 
echo $ECHO_N "checking for svc_run... $ECHO_C" >&6
10295
 
if test "${ac_cv_func_svc_run+set}" = set; then
10296
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10297
 
else
10298
 
  cat >conftest.$ac_ext <<_ACEOF
10299
 
#line $LINENO "configure"
10300
 
/* confdefs.h.  */
10301
 
_ACEOF
10302
 
cat confdefs.h >>conftest.$ac_ext
10303
 
cat >>conftest.$ac_ext <<_ACEOF
10304
 
/* end confdefs.h.  */
10305
 
/* System header to define __stub macros and hopefully few prototypes,
10306
 
    which can conflict with char svc_run (); below.
10307
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10308
 
    <limits.h> exists even on freestanding compilers.  */
10309
 
#ifdef __STDC__
10310
 
# include <limits.h>
10311
 
#else
10312
 
# include <assert.h>
10313
 
#endif
10314
 
/* Override any gcc2 internal prototype to avoid an error.  */
10315
 
#ifdef __cplusplus
10316
 
extern "C"
10317
 
{
10318
 
#endif
10319
 
/* We use char because int might match the return type of a gcc2
10320
 
   builtin and then its argument prototype would still apply.  */
10321
 
char svc_run ();
10322
 
/* The GNU C library defines this for functions which it implements
10323
 
    to always fail with ENOSYS.  Some functions are actually named
10324
 
    something starting with __ and the normal name is an alias.  */
10325
 
#if defined (__stub_svc_run) || defined (__stub___svc_run)
10326
 
choke me
10327
 
#else
10328
 
char (*f) () = svc_run;
10329
 
#endif
10330
 
#ifdef __cplusplus
10331
 
}
10332
 
#endif
10333
 
 
10334
 
int
10335
 
main ()
10336
 
{
10337
 
return f != svc_run;
10338
 
  ;
10339
 
  return 0;
10340
 
}
10341
 
_ACEOF
10342
 
rm -f conftest.$ac_objext conftest$ac_exeext
10343
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344
 
  (eval $ac_link) 2>&5
10345
 
  ac_status=$?
10346
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347
 
  (exit $ac_status); } &&
10348
 
         { ac_try='test -s conftest$ac_exeext'
10349
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350
 
  (eval $ac_try) 2>&5
10351
 
  ac_status=$?
10352
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353
 
  (exit $ac_status); }; }; then
10354
 
  ac_cv_func_svc_run=yes
10355
 
else
10356
 
  echo "$as_me: failed program was:" >&5
10357
 
sed 's/^/| /' conftest.$ac_ext >&5
10358
 
 
10359
 
ac_cv_func_svc_run=no
10360
 
fi
10361
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10362
 
fi
10363
 
echo "$as_me:$LINENO: result: $ac_cv_func_svc_run" >&5
10364
 
echo "${ECHO_T}$ac_cv_func_svc_run" >&6
10365
 
if test $ac_cv_func_svc_run = yes; then
10366
 
  :
10367
 
else
10368
 
  echo "$as_me:$LINENO: checking for svc_run in -lnsl" >&5
10369
 
echo $ECHO_N "checking for svc_run in -lnsl... $ECHO_C" >&6
10370
 
if test "${ac_cv_lib_nsl_svc_run+set}" = set; then
10371
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10372
 
else
10373
 
  ac_check_lib_save_LIBS=$LIBS
10374
 
LIBS="-lnsl  $LIBS"
10375
 
cat >conftest.$ac_ext <<_ACEOF
10376
 
#line $LINENO "configure"
10377
 
/* confdefs.h.  */
10378
 
_ACEOF
10379
 
cat confdefs.h >>conftest.$ac_ext
10380
 
cat >>conftest.$ac_ext <<_ACEOF
10381
 
/* end confdefs.h.  */
10382
 
 
10383
 
/* Override any gcc2 internal prototype to avoid an error.  */
10384
 
#ifdef __cplusplus
10385
 
extern "C"
10386
 
#endif
10387
 
/* We use char because int might match the return type of a gcc2
10388
 
   builtin and then its argument prototype would still apply.  */
10389
 
char svc_run ();
10390
 
int
10391
 
main ()
10392
 
{
10393
 
svc_run ();
10394
 
  ;
10395
 
  return 0;
10396
 
}
10397
 
_ACEOF
10398
 
rm -f conftest.$ac_objext conftest$ac_exeext
10399
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10400
 
  (eval $ac_link) 2>&5
10401
 
  ac_status=$?
10402
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403
 
  (exit $ac_status); } &&
10404
 
         { ac_try='test -s conftest$ac_exeext'
10405
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406
 
  (eval $ac_try) 2>&5
10407
 
  ac_status=$?
10408
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409
 
  (exit $ac_status); }; }; then
10410
 
  ac_cv_lib_nsl_svc_run=yes
10411
 
else
10412
 
  echo "$as_me: failed program was:" >&5
10413
 
sed 's/^/| /' conftest.$ac_ext >&5
10414
 
 
10415
 
ac_cv_lib_nsl_svc_run=no
10416
 
fi
10417
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10418
 
LIBS=$ac_check_lib_save_LIBS
10419
 
fi
10420
 
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_svc_run" >&5
10421
 
echo "${ECHO_T}$ac_cv_lib_nsl_svc_run" >&6
10422
 
if test $ac_cv_lib_nsl_svc_run = yes; then
10423
 
  LIBS="-lnsl $LIBS"; LIBTSO_LIBS="-lnsl $LIBTSO_LIBS"
10424
 
fi
10425
 
 
10426
 
fi
10427
 
;;
10428
 
        solaris*)
10429
 
                echo "$as_me:$LINENO: checking for svc_run" >&5
10430
 
echo $ECHO_N "checking for svc_run... $ECHO_C" >&6
10431
 
if test "${ac_cv_func_svc_run+set}" = set; then
10432
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10433
 
else
10434
 
  cat >conftest.$ac_ext <<_ACEOF
10435
 
#line $LINENO "configure"
10436
 
/* confdefs.h.  */
10437
 
_ACEOF
10438
 
cat confdefs.h >>conftest.$ac_ext
10439
 
cat >>conftest.$ac_ext <<_ACEOF
10440
 
/* end confdefs.h.  */
10441
 
/* System header to define __stub macros and hopefully few prototypes,
10442
 
    which can conflict with char svc_run (); below.
10443
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10444
 
    <limits.h> exists even on freestanding compilers.  */
10445
 
#ifdef __STDC__
10446
 
# include <limits.h>
10447
 
#else
10448
 
# include <assert.h>
10449
 
#endif
10450
 
/* Override any gcc2 internal prototype to avoid an error.  */
10451
 
#ifdef __cplusplus
10452
 
extern "C"
10453
 
{
10454
 
#endif
10455
 
/* We use char because int might match the return type of a gcc2
10456
 
   builtin and then its argument prototype would still apply.  */
10457
 
char svc_run ();
10458
 
/* The GNU C library defines this for functions which it implements
10459
 
    to always fail with ENOSYS.  Some functions are actually named
10460
 
    something starting with __ and the normal name is an alias.  */
10461
 
#if defined (__stub_svc_run) || defined (__stub___svc_run)
10462
 
choke me
10463
 
#else
10464
 
char (*f) () = svc_run;
10465
 
#endif
10466
 
#ifdef __cplusplus
10467
 
}
10468
 
#endif
10469
 
 
10470
 
int
10471
 
main ()
10472
 
{
10473
 
return f != svc_run;
10474
 
  ;
10475
 
  return 0;
10476
 
}
10477
 
_ACEOF
10478
 
rm -f conftest.$ac_objext conftest$ac_exeext
10479
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10480
 
  (eval $ac_link) 2>&5
10481
 
  ac_status=$?
10482
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483
 
  (exit $ac_status); } &&
10484
 
         { ac_try='test -s conftest$ac_exeext'
10485
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486
 
  (eval $ac_try) 2>&5
10487
 
  ac_status=$?
10488
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489
 
  (exit $ac_status); }; }; then
10490
 
  ac_cv_func_svc_run=yes
10491
 
else
10492
 
  echo "$as_me: failed program was:" >&5
10493
 
sed 's/^/| /' conftest.$ac_ext >&5
10494
 
 
10495
 
ac_cv_func_svc_run=no
10496
 
fi
10497
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10498
 
fi
10499
 
echo "$as_me:$LINENO: result: $ac_cv_func_svc_run" >&5
10500
 
echo "${ECHO_T}$ac_cv_func_svc_run" >&6
10501
 
if test $ac_cv_func_svc_run = yes; then
10502
 
  :
10503
 
else
10504
 
 
10505
 
echo "$as_me:$LINENO: checking for svc_run in -lnsl" >&5
10506
 
echo $ECHO_N "checking for svc_run in -lnsl... $ECHO_C" >&6
10507
 
if test "${ac_cv_lib_nsl_svc_run+set}" = set; then
10508
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10509
 
else
10510
 
  ac_check_lib_save_LIBS=$LIBS
10511
 
LIBS="-lnsl  $LIBS"
10512
 
cat >conftest.$ac_ext <<_ACEOF
10513
 
#line $LINENO "configure"
10514
 
/* confdefs.h.  */
10515
 
_ACEOF
10516
 
cat confdefs.h >>conftest.$ac_ext
10517
 
cat >>conftest.$ac_ext <<_ACEOF
10518
 
/* end confdefs.h.  */
10519
 
 
10520
 
/* Override any gcc2 internal prototype to avoid an error.  */
10521
 
#ifdef __cplusplus
10522
 
extern "C"
10523
 
#endif
10524
 
/* We use char because int might match the return type of a gcc2
10525
 
   builtin and then its argument prototype would still apply.  */
10526
 
char svc_run ();
10527
 
int
10528
 
main ()
10529
 
{
10530
 
svc_run ();
10531
 
  ;
10532
 
  return 0;
10533
 
}
10534
 
_ACEOF
10535
 
rm -f conftest.$ac_objext conftest$ac_exeext
10536
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10537
 
  (eval $ac_link) 2>&5
10538
 
  ac_status=$?
10539
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540
 
  (exit $ac_status); } &&
10541
 
         { ac_try='test -s conftest$ac_exeext'
10542
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543
 
  (eval $ac_try) 2>&5
10544
 
  ac_status=$?
10545
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546
 
  (exit $ac_status); }; }; then
10547
 
  ac_cv_lib_nsl_svc_run=yes
10548
 
else
10549
 
  echo "$as_me: failed program was:" >&5
10550
 
sed 's/^/| /' conftest.$ac_ext >&5
10551
 
 
10552
 
ac_cv_lib_nsl_svc_run=no
10553
 
fi
10554
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10555
 
LIBS=$ac_check_lib_save_LIBS
10556
 
fi
10557
 
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_svc_run" >&5
10558
 
echo "${ECHO_T}$ac_cv_lib_nsl_svc_run" >&6
10559
 
if test $ac_cv_lib_nsl_svc_run = yes; then
10560
 
  cat >>confdefs.h <<_ACEOF
10561
 
#define HAVE_LIBNSL 1
10562
 
_ACEOF
10563
 
 
10564
 
  LIBS="-lnsl $LIBS"
10565
 
 
10566
 
fi
10567
 
 
10568
 
fi
10569
 
;;
10570
 
        esac
10571
 
fi
10572
 
 
10573
 
 
10574
 
if test "$db_cv_tcl" = "yes"; then
10575
 
        if test "$enable_shared" = "no"; then
10576
 
                { { echo "$as_me:$LINENO: error: Tcl requires shared libraries" >&5
10577
 
echo "$as_me: error: Tcl requires shared libraries" >&2;}
10578
 
   { (exit 1); exit 1; }; }
10579
 
        fi
10580
 
 
10581
 
 
10582
 
 
10583
 
 
10584
 
        if test "${ac_cv_c_tclconfig+set}" = set; then
10585
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10586
 
else
10587
 
 
10588
 
 
10589
 
            # First check to see if --with-tclconfig was specified.
10590
 
            if test "${with_tclconfig}" != no; then
10591
 
                if test -f "${with_tclconfig}/tclConfig.sh" ; then
10592
 
                    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10593
 
                else
10594
 
                    { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
10595
 
echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
10596
 
   { (exit 1); exit 1; }; }
10597
 
                fi
10598
 
            fi
10599
 
 
10600
 
            # check in a few common install locations
10601
 
            if test x"${ac_cv_c_tclconfig}" = x ; then
10602
 
                for i in `ls -d /usr/local/lib 2>/dev/null` ; do
10603
 
                    if test -f "$i/tclConfig.sh" ; then
10604
 
                        ac_cv_c_tclconfig=`(cd $i; pwd)`
10605
 
                        break
10606
 
                    fi
10607
 
                done
10608
 
            fi
10609
 
 
10610
 
 
10611
 
fi
10612
 
 
10613
 
 
10614
 
        if test x"${ac_cv_c_tclconfig}" = x ; then
10615
 
            TCL_BIN_DIR="# no Tcl configs found"
10616
 
            { { echo "$as_me:$LINENO: error: can't find Tcl configuration definitions" >&5
10617
 
echo "$as_me: error: can't find Tcl configuration definitions" >&2;}
10618
 
   { (exit 1); exit 1; }; }
10619
 
        else
10620
 
            TCL_BIN_DIR=${ac_cv_c_tclconfig}
10621
 
        fi
10622
 
 
10623
 
 
10624
 
        echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
10625
 
echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
10626
 
 
10627
 
        if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
10628
 
                echo "$as_me:$LINENO: result: loading" >&5
10629
 
echo "${ECHO_T}loading" >&6
10630
 
                . $TCL_BIN_DIR/tclConfig.sh
10631
 
        else
10632
 
                echo "$as_me:$LINENO: result: file not found" >&5
10633
 
echo "${ECHO_T}file not found" >&6
10634
 
        fi
10635
 
 
10636
 
        #
10637
 
        # The eval is required to do the TCL_DBGX substitution in the
10638
 
        # TCL_LIB_FILE variable
10639
 
        #
10640
 
        eval TCL_LIB_FILE="${TCL_LIB_FILE}"
10641
 
        eval TCL_LIB_FLAG="${TCL_LIB_FLAG}"
10642
 
        eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10643
 
 
10644
 
        #
10645
 
        # If the DB Tcl library isn't loaded with the Tcl spec and library
10646
 
        # flags on AIX, the resulting libdb_tcl-X.Y.so.0 will drop core at
10647
 
        # load time. [#4843]  Furthermore, with Tcl 8.3, the link flags
10648
 
        # given by the Tcl spec are insufficient for our use.  [#5779]
10649
 
        #
10650
 
        case "$host_os" in
10651
 
        aix4.[2-9].*)
10652
 
                LIBTSO_LIBS="$LIBTSO_LIBS $TCL_LIB_SPEC $TCL_LIB_FLAG"
10653
 
                LIBTSO_LIBS="$LIBTSO_LIBS -L$TCL_EXEC_PREFIX/lib -ltcl$TCL_VERSION";;
10654
 
        aix*)
10655
 
                LIBTSO_LIBS="$LIBTSO_LIBS $TCL_LIB_SPEC $TCL_LIB_FLAG";;
10656
 
        esac
10657
 
 
10658
 
 
10659
 
 
10660
 
 
10661
 
 
10662
 
        TCL_TCLSH="${TCL_PREFIX}/bin/tclsh${TCL_VERSION}"
10663
 
 
10664
 
 
10665
 
        if test x"$TCL_PREFIX" != x && test -f "$TCL_PREFIX/include/tcl.h"; then
10666
 
                TCFLAGS="-I$TCL_PREFIX/include"
10667
 
        fi
10668
 
 
10669
 
        case "$host" in
10670
 
        *-mingw*)
10671
 
                # To include tcl.h when compiling tcl_*.o
10672
 
                TCFLAGS="$TCFLAGS -DDB_TCL_SUPPORT"
10673
 
                ;;
10674
 
        esac
10675
 
 
10676
 
        INSTALL_LIBS="${INSTALL_LIBS} \$(libtso_target)"
10677
 
fi
10678
 
 
10679
 
# Optional crypto support.
10680
 
if test -d "$srcdir/../crypto"; then
10681
 
        cat >>confdefs.h <<\_ACEOF
10682
 
#define HAVE_CRYPTO 1
10683
 
_ACEOF
10684
 
 
10685
 
 
10686
 
 
10687
 
        ADDITIONAL_OBJS="aes_method${o} crypto${o} mt19937db${o} rijndael-alg-fst${o} rijndael-api-fst${o} $ADDITIONAL_OBJS"
10688
 
fi
10689
 
 
10690
 
# Optional DB 1.85 compatibility API.
10691
 
if test "$db_cv_compat185" = "yes"; then
10692
 
        ADDITIONAL_INCS="db_185.h $ADDITIONAL_INCS"
10693
 
        ADDITIONAL_OBJS="db185${o} $ADDITIONAL_OBJS"
10694
 
fi
10695
 
 
10696
 
# Optional utilities.
10697
 
if test "$db_cv_dump185" = "yes"; then
10698
 
        ADDITIONAL_PROGS="db_dump185 $ADDITIONAL_PROGS"
10699
 
fi
10700
 
 
10701
 
# Checks for compiler characteristics.
10702
 
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10703
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10704
 
if test "${ac_cv_c_const+set}" = set; then
10705
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10706
 
else
10707
 
  cat >conftest.$ac_ext <<_ACEOF
10708
 
#line $LINENO "configure"
10709
 
/* confdefs.h.  */
10710
 
_ACEOF
10711
 
cat confdefs.h >>conftest.$ac_ext
10712
 
cat >>conftest.$ac_ext <<_ACEOF
10713
 
/* end confdefs.h.  */
10714
 
 
10715
 
int
10716
 
main ()
10717
 
{
10718
 
/* FIXME: Include the comments suggested by Paul. */
10719
 
#ifndef __cplusplus
10720
 
  /* Ultrix mips cc rejects this.  */
10721
 
  typedef int charset[2];
10722
 
  const charset x;
10723
 
  /* SunOS 4.1.1 cc rejects this.  */
10724
 
  char const *const *ccp;
10725
 
  char **p;
10726
 
  /* NEC SVR4.0.2 mips cc rejects this.  */
10727
 
  struct point {int x, y;};
10728
 
  static struct point const zero = {0,0};
10729
 
  /* AIX XL C 1.02.0.0 rejects this.
10730
 
     It does not let you subtract one const X* pointer from another in
10731
 
     an arm of an if-expression whose if-part is not a constant
10732
 
     expression */
10733
 
  const char *g = "string";
10734
 
  ccp = &g + (g ? g-g : 0);
10735
 
  /* HPUX 7.0 cc rejects these. */
10736
 
  ++ccp;
10737
 
  p = (char**) ccp;
10738
 
  ccp = (char const *const *) p;
10739
 
  { /* SCO 3.2v4 cc rejects this.  */
10740
 
    char *t;
10741
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
10742
 
 
10743
 
    *t++ = 0;
10744
 
  }
10745
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10746
 
    int x[] = {25, 17};
10747
 
    const int *foo = &x[0];
10748
 
    ++foo;
10749
 
  }
10750
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10751
 
    typedef const int *iptr;
10752
 
    iptr p = 0;
10753
 
    ++p;
10754
 
  }
10755
 
  { /* AIX XL C 1.02.0.0 rejects this saying
10756
 
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10757
 
    struct s { int j; const int *ap[3]; };
10758
 
    struct s *b; b->j = 5;
10759
 
  }
10760
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10761
 
    const int foo = 10;
10762
 
  }
10763
 
#endif
10764
 
 
10765
 
  ;
10766
 
  return 0;
10767
 
}
10768
 
_ACEOF
10769
 
rm -f conftest.$ac_objext
10770
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10771
 
  (eval $ac_compile) 2>&5
10772
 
  ac_status=$?
10773
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774
 
  (exit $ac_status); } &&
10775
 
         { ac_try='test -s conftest.$ac_objext'
10776
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10777
 
  (eval $ac_try) 2>&5
10778
 
  ac_status=$?
10779
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780
 
  (exit $ac_status); }; }; then
10781
 
  ac_cv_c_const=yes
10782
 
else
10783
 
  echo "$as_me: failed program was:" >&5
10784
 
sed 's/^/| /' conftest.$ac_ext >&5
10785
 
 
10786
 
ac_cv_c_const=no
10787
 
fi
10788
 
rm -f conftest.$ac_objext conftest.$ac_ext
10789
 
fi
10790
 
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10791
 
echo "${ECHO_T}$ac_cv_c_const" >&6
10792
 
if test $ac_cv_c_const = no; then
10793
 
 
10794
 
cat >>confdefs.h <<\_ACEOF
10795
 
#define const
10796
 
_ACEOF
10797
 
 
10798
 
fi
10799
 
 
10800
 
 
10801
 
# Checks for include files, structures, C types.
10802
 
echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10803
 
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10804
 
if test "${ac_cv_header_stat_broken+set}" = set; then
10805
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10806
 
else
10807
 
  cat >conftest.$ac_ext <<_ACEOF
10808
 
#line $LINENO "configure"
10809
 
/* confdefs.h.  */
10810
 
_ACEOF
10811
 
cat confdefs.h >>conftest.$ac_ext
10812
 
cat >>conftest.$ac_ext <<_ACEOF
10813
 
/* end confdefs.h.  */
10814
 
#include <sys/types.h>
10815
 
#include <sys/stat.h>
10816
 
 
10817
 
#if defined(S_ISBLK) && defined(S_IFDIR)
10818
 
# if S_ISBLK (S_IFDIR)
10819
 
You lose.
10820
 
# endif
10821
 
#endif
10822
 
 
10823
 
#if defined(S_ISBLK) && defined(S_IFCHR)
10824
 
# if S_ISBLK (S_IFCHR)
10825
 
You lose.
10826
 
# endif
10827
 
#endif
10828
 
 
10829
 
#if defined(S_ISLNK) && defined(S_IFREG)
10830
 
# if S_ISLNK (S_IFREG)
10831
 
You lose.
10832
 
# endif
10833
 
#endif
10834
 
 
10835
 
#if defined(S_ISSOCK) && defined(S_IFREG)
10836
 
# if S_ISSOCK (S_IFREG)
10837
 
You lose.
10838
 
# endif
10839
 
#endif
10840
 
 
10841
 
_ACEOF
10842
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10843
 
  $EGREP "You lose" >/dev/null 2>&1; then
10844
 
  ac_cv_header_stat_broken=yes
10845
 
else
10846
 
  ac_cv_header_stat_broken=no
10847
 
fi
10848
 
rm -f conftest*
10849
 
 
10850
 
fi
10851
 
echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10852
 
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10853
 
if test $ac_cv_header_stat_broken = yes; then
10854
 
 
10855
 
cat >>confdefs.h <<\_ACEOF
10856
 
#define STAT_MACROS_BROKEN 1
10857
 
_ACEOF
10858
 
 
10859
 
fi
10860
 
 
10861
 
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10862
 
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10863
 
if test "${ac_cv_header_time+set}" = set; then
10864
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10865
 
else
10866
 
  cat >conftest.$ac_ext <<_ACEOF
10867
 
#line $LINENO "configure"
10868
 
/* confdefs.h.  */
10869
 
_ACEOF
10870
 
cat confdefs.h >>conftest.$ac_ext
10871
 
cat >>conftest.$ac_ext <<_ACEOF
10872
 
/* end confdefs.h.  */
10873
 
#include <sys/types.h>
10874
 
#include <sys/time.h>
10875
 
#include <time.h>
10876
 
 
10877
 
int
10878
 
main ()
10879
 
{
10880
 
if ((struct tm *) 0)
10881
 
return 0;
10882
 
  ;
10883
 
  return 0;
10884
 
}
10885
 
_ACEOF
10886
 
rm -f conftest.$ac_objext
10887
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10888
 
  (eval $ac_compile) 2>&5
10889
 
  ac_status=$?
10890
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891
 
  (exit $ac_status); } &&
10892
 
         { ac_try='test -s conftest.$ac_objext'
10893
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10894
 
  (eval $ac_try) 2>&5
10895
 
  ac_status=$?
10896
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897
 
  (exit $ac_status); }; }; then
10898
 
  ac_cv_header_time=yes
10899
 
else
10900
 
  echo "$as_me: failed program was:" >&5
10901
 
sed 's/^/| /' conftest.$ac_ext >&5
10902
 
 
10903
 
ac_cv_header_time=no
10904
 
fi
10905
 
rm -f conftest.$ac_objext conftest.$ac_ext
10906
 
fi
10907
 
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10908
 
echo "${ECHO_T}$ac_cv_header_time" >&6
10909
 
if test $ac_cv_header_time = yes; then
10910
 
 
10911
 
cat >>confdefs.h <<\_ACEOF
10912
 
#define TIME_WITH_SYS_TIME 1
10913
 
_ACEOF
10914
 
 
10915
 
fi
10916
 
 
10917
 
 
10918
 
 
10919
 
 
10920
 
 
10921
 
 
10922
 
ac_header_dirent=no
10923
 
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10924
 
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10925
 
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10926
 
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10927
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10928
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10929
 
else
10930
 
  cat >conftest.$ac_ext <<_ACEOF
10931
 
#line $LINENO "configure"
10932
 
/* confdefs.h.  */
10933
 
_ACEOF
10934
 
cat confdefs.h >>conftest.$ac_ext
10935
 
cat >>conftest.$ac_ext <<_ACEOF
10936
 
/* end confdefs.h.  */
10937
 
#include <sys/types.h>
10938
 
#include <$ac_hdr>
10939
 
 
10940
 
int
10941
 
main ()
10942
 
{
10943
 
if ((DIR *) 0)
10944
 
return 0;
10945
 
  ;
10946
 
  return 0;
10947
 
}
10948
 
_ACEOF
10949
 
rm -f conftest.$ac_objext
10950
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10951
 
  (eval $ac_compile) 2>&5
10952
 
  ac_status=$?
10953
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954
 
  (exit $ac_status); } &&
10955
 
         { ac_try='test -s conftest.$ac_objext'
10956
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957
 
  (eval $ac_try) 2>&5
10958
 
  ac_status=$?
10959
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960
 
  (exit $ac_status); }; }; then
10961
 
  eval "$as_ac_Header=yes"
10962
 
else
10963
 
  echo "$as_me: failed program was:" >&5
10964
 
sed 's/^/| /' conftest.$ac_ext >&5
10965
 
 
10966
 
eval "$as_ac_Header=no"
10967
 
fi
10968
 
rm -f conftest.$ac_objext conftest.$ac_ext
10969
 
fi
10970
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10971
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10972
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10973
 
  cat >>confdefs.h <<_ACEOF
10974
 
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10975
 
_ACEOF
10976
 
 
10977
 
ac_header_dirent=$ac_hdr; break
10978
 
fi
10979
 
 
10980
 
done
10981
 
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10982
 
if test $ac_header_dirent = dirent.h; then
10983
 
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
10984
 
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10985
 
if test "${ac_cv_search_opendir+set}" = set; then
10986
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10987
 
else
10988
 
  ac_func_search_save_LIBS=$LIBS
10989
 
ac_cv_search_opendir=no
10990
 
cat >conftest.$ac_ext <<_ACEOF
10991
 
#line $LINENO "configure"
10992
 
/* confdefs.h.  */
10993
 
_ACEOF
10994
 
cat confdefs.h >>conftest.$ac_ext
10995
 
cat >>conftest.$ac_ext <<_ACEOF
10996
 
/* end confdefs.h.  */
10997
 
 
10998
 
/* Override any gcc2 internal prototype to avoid an error.  */
10999
 
#ifdef __cplusplus
11000
 
extern "C"
11001
 
#endif
11002
 
/* We use char because int might match the return type of a gcc2
11003
 
   builtin and then its argument prototype would still apply.  */
11004
 
char opendir ();
11005
 
int
11006
 
main ()
11007
 
{
11008
 
opendir ();
11009
 
  ;
11010
 
  return 0;
11011
 
}
11012
 
_ACEOF
11013
 
rm -f conftest.$ac_objext conftest$ac_exeext
11014
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11015
 
  (eval $ac_link) 2>&5
11016
 
  ac_status=$?
11017
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018
 
  (exit $ac_status); } &&
11019
 
         { ac_try='test -s conftest$ac_exeext'
11020
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021
 
  (eval $ac_try) 2>&5
11022
 
  ac_status=$?
11023
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024
 
  (exit $ac_status); }; }; then
11025
 
  ac_cv_search_opendir="none required"
11026
 
else
11027
 
  echo "$as_me: failed program was:" >&5
11028
 
sed 's/^/| /' conftest.$ac_ext >&5
11029
 
 
11030
 
fi
11031
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11032
 
if test "$ac_cv_search_opendir" = no; then
11033
 
  for ac_lib in dir; do
11034
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11035
 
    cat >conftest.$ac_ext <<_ACEOF
11036
 
#line $LINENO "configure"
11037
 
/* confdefs.h.  */
11038
 
_ACEOF
11039
 
cat confdefs.h >>conftest.$ac_ext
11040
 
cat >>conftest.$ac_ext <<_ACEOF
11041
 
/* end confdefs.h.  */
11042
 
 
11043
 
/* Override any gcc2 internal prototype to avoid an error.  */
11044
 
#ifdef __cplusplus
11045
 
extern "C"
11046
 
#endif
11047
 
/* We use char because int might match the return type of a gcc2
11048
 
   builtin and then its argument prototype would still apply.  */
11049
 
char opendir ();
11050
 
int
11051
 
main ()
11052
 
{
11053
 
opendir ();
11054
 
  ;
11055
 
  return 0;
11056
 
}
11057
 
_ACEOF
11058
 
rm -f conftest.$ac_objext conftest$ac_exeext
11059
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11060
 
  (eval $ac_link) 2>&5
11061
 
  ac_status=$?
11062
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063
 
  (exit $ac_status); } &&
11064
 
         { ac_try='test -s conftest$ac_exeext'
11065
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066
 
  (eval $ac_try) 2>&5
11067
 
  ac_status=$?
11068
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069
 
  (exit $ac_status); }; }; then
11070
 
  ac_cv_search_opendir="-l$ac_lib"
11071
 
break
11072
 
else
11073
 
  echo "$as_me: failed program was:" >&5
11074
 
sed 's/^/| /' conftest.$ac_ext >&5
11075
 
 
11076
 
fi
11077
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11078
 
  done
11079
 
fi
11080
 
LIBS=$ac_func_search_save_LIBS
11081
 
fi
11082
 
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11083
 
echo "${ECHO_T}$ac_cv_search_opendir" >&6
11084
 
if test "$ac_cv_search_opendir" != no; then
11085
 
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11086
 
 
11087
 
fi
11088
 
 
11089
 
else
11090
 
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
11091
 
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11092
 
if test "${ac_cv_search_opendir+set}" = set; then
11093
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11094
 
else
11095
 
  ac_func_search_save_LIBS=$LIBS
11096
 
ac_cv_search_opendir=no
11097
 
cat >conftest.$ac_ext <<_ACEOF
11098
 
#line $LINENO "configure"
11099
 
/* confdefs.h.  */
11100
 
_ACEOF
11101
 
cat confdefs.h >>conftest.$ac_ext
11102
 
cat >>conftest.$ac_ext <<_ACEOF
11103
 
/* end confdefs.h.  */
11104
 
 
11105
 
/* Override any gcc2 internal prototype to avoid an error.  */
11106
 
#ifdef __cplusplus
11107
 
extern "C"
11108
 
#endif
11109
 
/* We use char because int might match the return type of a gcc2
11110
 
   builtin and then its argument prototype would still apply.  */
11111
 
char opendir ();
11112
 
int
11113
 
main ()
11114
 
{
11115
 
opendir ();
11116
 
  ;
11117
 
  return 0;
11118
 
}
11119
 
_ACEOF
11120
 
rm -f conftest.$ac_objext conftest$ac_exeext
11121
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11122
 
  (eval $ac_link) 2>&5
11123
 
  ac_status=$?
11124
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125
 
  (exit $ac_status); } &&
11126
 
         { ac_try='test -s conftest$ac_exeext'
11127
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11128
 
  (eval $ac_try) 2>&5
11129
 
  ac_status=$?
11130
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131
 
  (exit $ac_status); }; }; then
11132
 
  ac_cv_search_opendir="none required"
11133
 
else
11134
 
  echo "$as_me: failed program was:" >&5
11135
 
sed 's/^/| /' conftest.$ac_ext >&5
11136
 
 
11137
 
fi
11138
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11139
 
if test "$ac_cv_search_opendir" = no; then
11140
 
  for ac_lib in x; do
11141
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11142
 
    cat >conftest.$ac_ext <<_ACEOF
11143
 
#line $LINENO "configure"
11144
 
/* confdefs.h.  */
11145
 
_ACEOF
11146
 
cat confdefs.h >>conftest.$ac_ext
11147
 
cat >>conftest.$ac_ext <<_ACEOF
11148
 
/* end confdefs.h.  */
11149
 
 
11150
 
/* Override any gcc2 internal prototype to avoid an error.  */
11151
 
#ifdef __cplusplus
11152
 
extern "C"
11153
 
#endif
11154
 
/* We use char because int might match the return type of a gcc2
11155
 
   builtin and then its argument prototype would still apply.  */
11156
 
char opendir ();
11157
 
int
11158
 
main ()
11159
 
{
11160
 
opendir ();
11161
 
  ;
11162
 
  return 0;
11163
 
}
11164
 
_ACEOF
11165
 
rm -f conftest.$ac_objext conftest$ac_exeext
11166
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11167
 
  (eval $ac_link) 2>&5
11168
 
  ac_status=$?
11169
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170
 
  (exit $ac_status); } &&
11171
 
         { ac_try='test -s conftest$ac_exeext'
11172
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173
 
  (eval $ac_try) 2>&5
11174
 
  ac_status=$?
11175
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176
 
  (exit $ac_status); }; }; then
11177
 
  ac_cv_search_opendir="-l$ac_lib"
11178
 
break
11179
 
else
11180
 
  echo "$as_me: failed program was:" >&5
11181
 
sed 's/^/| /' conftest.$ac_ext >&5
11182
 
 
11183
 
fi
11184
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11185
 
  done
11186
 
fi
11187
 
LIBS=$ac_func_search_save_LIBS
11188
 
fi
11189
 
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11190
 
echo "${ECHO_T}$ac_cv_search_opendir" >&6
11191
 
if test "$ac_cv_search_opendir" != no; then
11192
 
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11193
 
 
11194
 
fi
11195
 
 
11196
 
fi
11197
 
 
11198
 
 
11199
 
 
11200
 
for ac_header in sys/select.h sys/time.h
11201
 
do
11202
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11203
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11204
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
11205
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11206
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11207
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11208
 
fi
11209
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11210
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11211
 
else
11212
 
  # Is the header compilable?
11213
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11214
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11215
 
cat >conftest.$ac_ext <<_ACEOF
11216
 
#line $LINENO "configure"
11217
 
/* confdefs.h.  */
11218
 
_ACEOF
11219
 
cat confdefs.h >>conftest.$ac_ext
11220
 
cat >>conftest.$ac_ext <<_ACEOF
11221
 
/* end confdefs.h.  */
11222
 
$ac_includes_default
11223
 
#include <$ac_header>
11224
 
_ACEOF
11225
 
rm -f conftest.$ac_objext
11226
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11227
 
  (eval $ac_compile) 2>&5
11228
 
  ac_status=$?
11229
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230
 
  (exit $ac_status); } &&
11231
 
         { ac_try='test -s conftest.$ac_objext'
11232
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233
 
  (eval $ac_try) 2>&5
11234
 
  ac_status=$?
11235
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236
 
  (exit $ac_status); }; }; then
11237
 
  ac_header_compiler=yes
11238
 
else
11239
 
  echo "$as_me: failed program was:" >&5
11240
 
sed 's/^/| /' conftest.$ac_ext >&5
11241
 
 
11242
 
ac_header_compiler=no
11243
 
fi
11244
 
rm -f conftest.$ac_objext conftest.$ac_ext
11245
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11246
 
echo "${ECHO_T}$ac_header_compiler" >&6
11247
 
 
11248
 
# Is the header present?
11249
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11250
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11251
 
cat >conftest.$ac_ext <<_ACEOF
11252
 
#line $LINENO "configure"
11253
 
/* confdefs.h.  */
11254
 
_ACEOF
11255
 
cat confdefs.h >>conftest.$ac_ext
11256
 
cat >>conftest.$ac_ext <<_ACEOF
11257
 
/* end confdefs.h.  */
11258
 
#include <$ac_header>
11259
 
_ACEOF
11260
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11261
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11262
 
  ac_status=$?
11263
 
  grep -v '^ *+' conftest.er1 >conftest.err
11264
 
  rm -f conftest.er1
11265
 
  cat conftest.err >&5
11266
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267
 
  (exit $ac_status); } >/dev/null; then
11268
 
  if test -s conftest.err; then
11269
 
    ac_cpp_err=$ac_c_preproc_warn_flag
11270
 
  else
11271
 
    ac_cpp_err=
11272
 
  fi
11273
 
else
11274
 
  ac_cpp_err=yes
11275
 
fi
11276
 
if test -z "$ac_cpp_err"; then
11277
 
  ac_header_preproc=yes
11278
 
else
11279
 
  echo "$as_me: failed program was:" >&5
11280
 
sed 's/^/| /' conftest.$ac_ext >&5
11281
 
 
11282
 
  ac_header_preproc=no
11283
 
fi
11284
 
rm -f conftest.err conftest.$ac_ext
11285
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11286
 
echo "${ECHO_T}$ac_header_preproc" >&6
11287
 
 
11288
 
# So?  What about this header?
11289
 
case $ac_header_compiler:$ac_header_preproc in
11290
 
  yes:no )
11291
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11292
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11293
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11294
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11295
 
    (
11296
 
      cat <<\_ASBOX
11297
 
## ------------------------------------ ##
11298
 
## Report this to bug-autoconf@gnu.org. ##
11299
 
## ------------------------------------ ##
11300
 
_ASBOX
11301
 
    ) |
11302
 
      sed "s/^/$as_me: WARNING:     /" >&2
11303
 
    ;;
11304
 
  no:yes )
11305
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11306
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11307
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11308
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11309
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11310
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11311
 
    (
11312
 
      cat <<\_ASBOX
11313
 
## ------------------------------------ ##
11314
 
## Report this to bug-autoconf@gnu.org. ##
11315
 
## ------------------------------------ ##
11316
 
_ASBOX
11317
 
    ) |
11318
 
      sed "s/^/$as_me: WARNING:     /" >&2
11319
 
    ;;
11320
 
esac
11321
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
11322
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11323
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11324
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11325
 
else
11326
 
  eval "$as_ac_Header=$ac_header_preproc"
11327
 
fi
11328
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11329
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11330
 
 
11331
 
fi
11332
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11333
 
  cat >>confdefs.h <<_ACEOF
11334
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11335
 
_ACEOF
11336
 
 
11337
 
fi
11338
 
 
11339
 
done
11340
 
 
11341
 
echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11342
 
echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11343
 
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11344
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11345
 
else
11346
 
  cat >conftest.$ac_ext <<_ACEOF
11347
 
#line $LINENO "configure"
11348
 
/* confdefs.h.  */
11349
 
_ACEOF
11350
 
cat confdefs.h >>conftest.$ac_ext
11351
 
cat >>conftest.$ac_ext <<_ACEOF
11352
 
/* end confdefs.h.  */
11353
 
$ac_includes_default
11354
 
int
11355
 
main ()
11356
 
{
11357
 
static struct stat ac_aggr;
11358
 
if (ac_aggr.st_blksize)
11359
 
return 0;
11360
 
  ;
11361
 
  return 0;
11362
 
}
11363
 
_ACEOF
11364
 
rm -f conftest.$ac_objext
11365
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11366
 
  (eval $ac_compile) 2>&5
11367
 
  ac_status=$?
11368
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369
 
  (exit $ac_status); } &&
11370
 
         { ac_try='test -s conftest.$ac_objext'
11371
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372
 
  (eval $ac_try) 2>&5
11373
 
  ac_status=$?
11374
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375
 
  (exit $ac_status); }; }; then
11376
 
  ac_cv_member_struct_stat_st_blksize=yes
11377
 
else
11378
 
  echo "$as_me: failed program was:" >&5
11379
 
sed 's/^/| /' conftest.$ac_ext >&5
11380
 
 
11381
 
cat >conftest.$ac_ext <<_ACEOF
11382
 
#line $LINENO "configure"
11383
 
/* confdefs.h.  */
11384
 
_ACEOF
11385
 
cat confdefs.h >>conftest.$ac_ext
11386
 
cat >>conftest.$ac_ext <<_ACEOF
11387
 
/* end confdefs.h.  */
11388
 
$ac_includes_default
11389
 
int
11390
 
main ()
11391
 
{
11392
 
static struct stat ac_aggr;
11393
 
if (sizeof ac_aggr.st_blksize)
11394
 
return 0;
11395
 
  ;
11396
 
  return 0;
11397
 
}
11398
 
_ACEOF
11399
 
rm -f conftest.$ac_objext
11400
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11401
 
  (eval $ac_compile) 2>&5
11402
 
  ac_status=$?
11403
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404
 
  (exit $ac_status); } &&
11405
 
         { ac_try='test -s conftest.$ac_objext'
11406
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407
 
  (eval $ac_try) 2>&5
11408
 
  ac_status=$?
11409
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410
 
  (exit $ac_status); }; }; then
11411
 
  ac_cv_member_struct_stat_st_blksize=yes
11412
 
else
11413
 
  echo "$as_me: failed program was:" >&5
11414
 
sed 's/^/| /' conftest.$ac_ext >&5
11415
 
 
11416
 
ac_cv_member_struct_stat_st_blksize=no
11417
 
fi
11418
 
rm -f conftest.$ac_objext conftest.$ac_ext
11419
 
fi
11420
 
rm -f conftest.$ac_objext conftest.$ac_ext
11421
 
fi
11422
 
echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11423
 
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11424
 
if test $ac_cv_member_struct_stat_st_blksize = yes; then
11425
 
 
11426
 
cat >>confdefs.h <<_ACEOF
11427
 
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11428
 
_ACEOF
11429
 
 
11430
 
 
11431
 
fi
11432
 
 
11433
 
 
11434
 
 
11435
 
# We need to know the sizes of various objects on this system.
11436
 
# We don't use the SIZEOF_XXX values created by autoconf.
11437
 
echo "$as_me:$LINENO: checking for char" >&5
11438
 
echo $ECHO_N "checking for char... $ECHO_C" >&6
11439
 
if test "${ac_cv_type_char+set}" = set; then
11440
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11441
 
else
11442
 
  cat >conftest.$ac_ext <<_ACEOF
11443
 
#line $LINENO "configure"
11444
 
/* confdefs.h.  */
11445
 
_ACEOF
11446
 
cat confdefs.h >>conftest.$ac_ext
11447
 
cat >>conftest.$ac_ext <<_ACEOF
11448
 
/* end confdefs.h.  */
11449
 
 
11450
 
#include <sys/types.h>
11451
 
#include <stdio.h>
11452
 
 
11453
 
int
11454
 
main ()
11455
 
{
11456
 
if ((char *) 0)
11457
 
  return 0;
11458
 
if (sizeof (char))
11459
 
  return 0;
11460
 
  ;
11461
 
  return 0;
11462
 
}
11463
 
_ACEOF
11464
 
rm -f conftest.$ac_objext
11465
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11466
 
  (eval $ac_compile) 2>&5
11467
 
  ac_status=$?
11468
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469
 
  (exit $ac_status); } &&
11470
 
         { ac_try='test -s conftest.$ac_objext'
11471
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472
 
  (eval $ac_try) 2>&5
11473
 
  ac_status=$?
11474
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475
 
  (exit $ac_status); }; }; then
11476
 
  ac_cv_type_char=yes
11477
 
else
11478
 
  echo "$as_me: failed program was:" >&5
11479
 
sed 's/^/| /' conftest.$ac_ext >&5
11480
 
 
11481
 
ac_cv_type_char=no
11482
 
fi
11483
 
rm -f conftest.$ac_objext conftest.$ac_ext
11484
 
fi
11485
 
echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11486
 
echo "${ECHO_T}$ac_cv_type_char" >&6
11487
 
 
11488
 
echo "$as_me:$LINENO: checking size of char" >&5
11489
 
echo $ECHO_N "checking size of char... $ECHO_C" >&6
11490
 
if test "${ac_cv_sizeof_char+set}" = set; then
11491
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11492
 
else
11493
 
  if test "$ac_cv_type_char" = yes; then
11494
 
  # The cast to unsigned long works around a bug in the HP C Compiler
11495
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11496
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11497
 
  # This bug is HP SR number 8606223364.
11498
 
  if test "$cross_compiling" = yes; then
11499
 
  # Depending upon the size, compute the lo and hi bounds.
11500
 
cat >conftest.$ac_ext <<_ACEOF
11501
 
#line $LINENO "configure"
11502
 
/* confdefs.h.  */
11503
 
_ACEOF
11504
 
cat confdefs.h >>conftest.$ac_ext
11505
 
cat >>conftest.$ac_ext <<_ACEOF
11506
 
/* end confdefs.h.  */
11507
 
 
11508
 
#include <sys/types.h>
11509
 
#include <stdio.h>
11510
 
 
11511
 
int
11512
 
main ()
11513
 
{
11514
 
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11515
 
test_array [0] = 0
11516
 
 
11517
 
  ;
11518
 
  return 0;
11519
 
}
11520
 
_ACEOF
11521
 
rm -f conftest.$ac_objext
11522
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11523
 
  (eval $ac_compile) 2>&5
11524
 
  ac_status=$?
11525
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526
 
  (exit $ac_status); } &&
11527
 
         { ac_try='test -s conftest.$ac_objext'
11528
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529
 
  (eval $ac_try) 2>&5
11530
 
  ac_status=$?
11531
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532
 
  (exit $ac_status); }; }; then
11533
 
  ac_lo=0 ac_mid=0
11534
 
  while :; do
11535
 
    cat >conftest.$ac_ext <<_ACEOF
11536
 
#line $LINENO "configure"
11537
 
/* confdefs.h.  */
11538
 
_ACEOF
11539
 
cat confdefs.h >>conftest.$ac_ext
11540
 
cat >>conftest.$ac_ext <<_ACEOF
11541
 
/* end confdefs.h.  */
11542
 
 
11543
 
#include <sys/types.h>
11544
 
#include <stdio.h>
11545
 
 
11546
 
int
11547
 
main ()
11548
 
{
11549
 
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11550
 
test_array [0] = 0
11551
 
 
11552
 
  ;
11553
 
  return 0;
11554
 
}
11555
 
_ACEOF
11556
 
rm -f conftest.$ac_objext
11557
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11558
 
  (eval $ac_compile) 2>&5
11559
 
  ac_status=$?
11560
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561
 
  (exit $ac_status); } &&
11562
 
         { ac_try='test -s conftest.$ac_objext'
11563
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564
 
  (eval $ac_try) 2>&5
11565
 
  ac_status=$?
11566
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567
 
  (exit $ac_status); }; }; then
11568
 
  ac_hi=$ac_mid; break
11569
 
else
11570
 
  echo "$as_me: failed program was:" >&5
11571
 
sed 's/^/| /' conftest.$ac_ext >&5
11572
 
 
11573
 
ac_lo=`expr $ac_mid + 1`
11574
 
                    if test $ac_lo -le $ac_mid; then
11575
 
                      ac_lo= ac_hi=
11576
 
                      break
11577
 
                    fi
11578
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
11579
 
fi
11580
 
rm -f conftest.$ac_objext conftest.$ac_ext
11581
 
  done
11582
 
else
11583
 
  echo "$as_me: failed program was:" >&5
11584
 
sed 's/^/| /' conftest.$ac_ext >&5
11585
 
 
11586
 
cat >conftest.$ac_ext <<_ACEOF
11587
 
#line $LINENO "configure"
11588
 
/* confdefs.h.  */
11589
 
_ACEOF
11590
 
cat confdefs.h >>conftest.$ac_ext
11591
 
cat >>conftest.$ac_ext <<_ACEOF
11592
 
/* end confdefs.h.  */
11593
 
 
11594
 
#include <sys/types.h>
11595
 
#include <stdio.h>
11596
 
 
11597
 
int
11598
 
main ()
11599
 
{
11600
 
static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11601
 
test_array [0] = 0
11602
 
 
11603
 
  ;
11604
 
  return 0;
11605
 
}
11606
 
_ACEOF
11607
 
rm -f conftest.$ac_objext
11608
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11609
 
  (eval $ac_compile) 2>&5
11610
 
  ac_status=$?
11611
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612
 
  (exit $ac_status); } &&
11613
 
         { ac_try='test -s conftest.$ac_objext'
11614
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615
 
  (eval $ac_try) 2>&5
11616
 
  ac_status=$?
11617
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618
 
  (exit $ac_status); }; }; then
11619
 
  ac_hi=-1 ac_mid=-1
11620
 
  while :; do
11621
 
    cat >conftest.$ac_ext <<_ACEOF
11622
 
#line $LINENO "configure"
11623
 
/* confdefs.h.  */
11624
 
_ACEOF
11625
 
cat confdefs.h >>conftest.$ac_ext
11626
 
cat >>conftest.$ac_ext <<_ACEOF
11627
 
/* end confdefs.h.  */
11628
 
 
11629
 
#include <sys/types.h>
11630
 
#include <stdio.h>
11631
 
 
11632
 
int
11633
 
main ()
11634
 
{
11635
 
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11636
 
test_array [0] = 0
11637
 
 
11638
 
  ;
11639
 
  return 0;
11640
 
}
11641
 
_ACEOF
11642
 
rm -f conftest.$ac_objext
11643
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11644
 
  (eval $ac_compile) 2>&5
11645
 
  ac_status=$?
11646
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647
 
  (exit $ac_status); } &&
11648
 
         { ac_try='test -s conftest.$ac_objext'
11649
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650
 
  (eval $ac_try) 2>&5
11651
 
  ac_status=$?
11652
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653
 
  (exit $ac_status); }; }; then
11654
 
  ac_lo=$ac_mid; break
11655
 
else
11656
 
  echo "$as_me: failed program was:" >&5
11657
 
sed 's/^/| /' conftest.$ac_ext >&5
11658
 
 
11659
 
ac_hi=`expr '(' $ac_mid ')' - 1`
11660
 
                       if test $ac_mid -le $ac_hi; then
11661
 
                         ac_lo= ac_hi=
11662
 
                         break
11663
 
                       fi
11664
 
                       ac_mid=`expr 2 '*' $ac_mid`
11665
 
fi
11666
 
rm -f conftest.$ac_objext conftest.$ac_ext
11667
 
  done
11668
 
else
11669
 
  echo "$as_me: failed program was:" >&5
11670
 
sed 's/^/| /' conftest.$ac_ext >&5
11671
 
 
11672
 
ac_lo= ac_hi=
11673
 
fi
11674
 
rm -f conftest.$ac_objext conftest.$ac_ext
11675
 
fi
11676
 
rm -f conftest.$ac_objext conftest.$ac_ext
11677
 
# Binary search between lo and hi bounds.
11678
 
while test "x$ac_lo" != "x$ac_hi"; do
11679
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11680
 
  cat >conftest.$ac_ext <<_ACEOF
11681
 
#line $LINENO "configure"
11682
 
/* confdefs.h.  */
11683
 
_ACEOF
11684
 
cat confdefs.h >>conftest.$ac_ext
11685
 
cat >>conftest.$ac_ext <<_ACEOF
11686
 
/* end confdefs.h.  */
11687
 
 
11688
 
#include <sys/types.h>
11689
 
#include <stdio.h>
11690
 
 
11691
 
int
11692
 
main ()
11693
 
{
11694
 
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11695
 
test_array [0] = 0
11696
 
 
11697
 
  ;
11698
 
  return 0;
11699
 
}
11700
 
_ACEOF
11701
 
rm -f conftest.$ac_objext
11702
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11703
 
  (eval $ac_compile) 2>&5
11704
 
  ac_status=$?
11705
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706
 
  (exit $ac_status); } &&
11707
 
         { ac_try='test -s conftest.$ac_objext'
11708
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709
 
  (eval $ac_try) 2>&5
11710
 
  ac_status=$?
11711
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712
 
  (exit $ac_status); }; }; then
11713
 
  ac_hi=$ac_mid
11714
 
else
11715
 
  echo "$as_me: failed program was:" >&5
11716
 
sed 's/^/| /' conftest.$ac_ext >&5
11717
 
 
11718
 
ac_lo=`expr '(' $ac_mid ')' + 1`
11719
 
fi
11720
 
rm -f conftest.$ac_objext conftest.$ac_ext
11721
 
done
11722
 
case $ac_lo in
11723
 
?*) ac_cv_sizeof_char=$ac_lo;;
11724
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11725
 
See \`config.log' for more details." >&5
11726
 
echo "$as_me: error: cannot compute sizeof (char), 77
11727
 
See \`config.log' for more details." >&2;}
11728
 
   { (exit 1); exit 1; }; } ;;
11729
 
esac
11730
 
else
11731
 
  if test "$cross_compiling" = yes; then
11732
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11733
 
See \`config.log' for more details." >&5
11734
 
echo "$as_me: error: cannot run test program while cross compiling
11735
 
See \`config.log' for more details." >&2;}
11736
 
   { (exit 1); exit 1; }; }
11737
 
else
11738
 
  cat >conftest.$ac_ext <<_ACEOF
11739
 
#line $LINENO "configure"
11740
 
/* confdefs.h.  */
11741
 
_ACEOF
11742
 
cat confdefs.h >>conftest.$ac_ext
11743
 
cat >>conftest.$ac_ext <<_ACEOF
11744
 
/* end confdefs.h.  */
11745
 
 
11746
 
#include <sys/types.h>
11747
 
#include <stdio.h>
11748
 
 
11749
 
long longval () { return (long) (sizeof (char)); }
11750
 
unsigned long ulongval () { return (long) (sizeof (char)); }
11751
 
#include <stdio.h>
11752
 
#include <stdlib.h>
11753
 
int
11754
 
main ()
11755
 
{
11756
 
 
11757
 
  FILE *f = fopen ("conftest.val", "w");
11758
 
  if (! f)
11759
 
    exit (1);
11760
 
  if (((long) (sizeof (char))) < 0)
11761
 
    {
11762
 
      long i = longval ();
11763
 
      if (i != ((long) (sizeof (char))))
11764
 
        exit (1);
11765
 
      fprintf (f, "%ld\n", i);
11766
 
    }
11767
 
  else
11768
 
    {
11769
 
      unsigned long i = ulongval ();
11770
 
      if (i != ((long) (sizeof (char))))
11771
 
        exit (1);
11772
 
      fprintf (f, "%lu\n", i);
11773
 
    }
11774
 
  exit (ferror (f) || fclose (f) != 0);
11775
 
 
11776
 
  ;
11777
 
  return 0;
11778
 
}
11779
 
_ACEOF
11780
 
rm -f conftest$ac_exeext
11781
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11782
 
  (eval $ac_link) 2>&5
11783
 
  ac_status=$?
11784
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11786
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787
 
  (eval $ac_try) 2>&5
11788
 
  ac_status=$?
11789
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790
 
  (exit $ac_status); }; }; then
11791
 
  ac_cv_sizeof_char=`cat conftest.val`
11792
 
else
11793
 
  echo "$as_me: program exited with status $ac_status" >&5
11794
 
echo "$as_me: failed program was:" >&5
11795
 
sed 's/^/| /' conftest.$ac_ext >&5
11796
 
 
11797
 
( exit $ac_status )
11798
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11799
 
See \`config.log' for more details." >&5
11800
 
echo "$as_me: error: cannot compute sizeof (char), 77
11801
 
See \`config.log' for more details." >&2;}
11802
 
   { (exit 1); exit 1; }; }
11803
 
fi
11804
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11805
 
fi
11806
 
fi
11807
 
rm -f conftest.val
11808
 
else
11809
 
  ac_cv_sizeof_char=0
11810
 
fi
11811
 
fi
11812
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11813
 
echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11814
 
cat >>confdefs.h <<_ACEOF
11815
 
#define SIZEOF_CHAR $ac_cv_sizeof_char
11816
 
_ACEOF
11817
 
 
11818
 
 
11819
 
echo "$as_me:$LINENO: checking for unsigned char" >&5
11820
 
echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
11821
 
if test "${ac_cv_type_unsigned_char+set}" = set; then
11822
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11823
 
else
11824
 
  cat >conftest.$ac_ext <<_ACEOF
11825
 
#line $LINENO "configure"
11826
 
/* confdefs.h.  */
11827
 
_ACEOF
11828
 
cat confdefs.h >>conftest.$ac_ext
11829
 
cat >>conftest.$ac_ext <<_ACEOF
11830
 
/* end confdefs.h.  */
11831
 
 
11832
 
#include <sys/types.h>
11833
 
#include <stdio.h>
11834
 
 
11835
 
int
11836
 
main ()
11837
 
{
11838
 
if ((unsigned char *) 0)
11839
 
  return 0;
11840
 
if (sizeof (unsigned char))
11841
 
  return 0;
11842
 
  ;
11843
 
  return 0;
11844
 
}
11845
 
_ACEOF
11846
 
rm -f conftest.$ac_objext
11847
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11848
 
  (eval $ac_compile) 2>&5
11849
 
  ac_status=$?
11850
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851
 
  (exit $ac_status); } &&
11852
 
         { ac_try='test -s conftest.$ac_objext'
11853
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854
 
  (eval $ac_try) 2>&5
11855
 
  ac_status=$?
11856
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857
 
  (exit $ac_status); }; }; then
11858
 
  ac_cv_type_unsigned_char=yes
11859
 
else
11860
 
  echo "$as_me: failed program was:" >&5
11861
 
sed 's/^/| /' conftest.$ac_ext >&5
11862
 
 
11863
 
ac_cv_type_unsigned_char=no
11864
 
fi
11865
 
rm -f conftest.$ac_objext conftest.$ac_ext
11866
 
fi
11867
 
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
11868
 
echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6
11869
 
 
11870
 
echo "$as_me:$LINENO: checking size of unsigned char" >&5
11871
 
echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6
11872
 
if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
11873
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11874
 
else
11875
 
  if test "$ac_cv_type_unsigned_char" = yes; then
11876
 
  # The cast to unsigned long works around a bug in the HP C Compiler
11877
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11878
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11879
 
  # This bug is HP SR number 8606223364.
11880
 
  if test "$cross_compiling" = yes; then
11881
 
  # Depending upon the size, compute the lo and hi bounds.
11882
 
cat >conftest.$ac_ext <<_ACEOF
11883
 
#line $LINENO "configure"
11884
 
/* confdefs.h.  */
11885
 
_ACEOF
11886
 
cat confdefs.h >>conftest.$ac_ext
11887
 
cat >>conftest.$ac_ext <<_ACEOF
11888
 
/* end confdefs.h.  */
11889
 
 
11890
 
#include <sys/types.h>
11891
 
#include <stdio.h>
11892
 
 
11893
 
int
11894
 
main ()
11895
 
{
11896
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= 0)];
11897
 
test_array [0] = 0
11898
 
 
11899
 
  ;
11900
 
  return 0;
11901
 
}
11902
 
_ACEOF
11903
 
rm -f conftest.$ac_objext
11904
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11905
 
  (eval $ac_compile) 2>&5
11906
 
  ac_status=$?
11907
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908
 
  (exit $ac_status); } &&
11909
 
         { ac_try='test -s conftest.$ac_objext'
11910
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911
 
  (eval $ac_try) 2>&5
11912
 
  ac_status=$?
11913
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914
 
  (exit $ac_status); }; }; then
11915
 
  ac_lo=0 ac_mid=0
11916
 
  while :; do
11917
 
    cat >conftest.$ac_ext <<_ACEOF
11918
 
#line $LINENO "configure"
11919
 
/* confdefs.h.  */
11920
 
_ACEOF
11921
 
cat confdefs.h >>conftest.$ac_ext
11922
 
cat >>conftest.$ac_ext <<_ACEOF
11923
 
/* end confdefs.h.  */
11924
 
 
11925
 
#include <sys/types.h>
11926
 
#include <stdio.h>
11927
 
 
11928
 
int
11929
 
main ()
11930
 
{
11931
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
11932
 
test_array [0] = 0
11933
 
 
11934
 
  ;
11935
 
  return 0;
11936
 
}
11937
 
_ACEOF
11938
 
rm -f conftest.$ac_objext
11939
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11940
 
  (eval $ac_compile) 2>&5
11941
 
  ac_status=$?
11942
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943
 
  (exit $ac_status); } &&
11944
 
         { ac_try='test -s conftest.$ac_objext'
11945
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946
 
  (eval $ac_try) 2>&5
11947
 
  ac_status=$?
11948
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949
 
  (exit $ac_status); }; }; then
11950
 
  ac_hi=$ac_mid; break
11951
 
else
11952
 
  echo "$as_me: failed program was:" >&5
11953
 
sed 's/^/| /' conftest.$ac_ext >&5
11954
 
 
11955
 
ac_lo=`expr $ac_mid + 1`
11956
 
                    if test $ac_lo -le $ac_mid; then
11957
 
                      ac_lo= ac_hi=
11958
 
                      break
11959
 
                    fi
11960
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
11961
 
fi
11962
 
rm -f conftest.$ac_objext conftest.$ac_ext
11963
 
  done
11964
 
else
11965
 
  echo "$as_me: failed program was:" >&5
11966
 
sed 's/^/| /' conftest.$ac_ext >&5
11967
 
 
11968
 
cat >conftest.$ac_ext <<_ACEOF
11969
 
#line $LINENO "configure"
11970
 
/* confdefs.h.  */
11971
 
_ACEOF
11972
 
cat confdefs.h >>conftest.$ac_ext
11973
 
cat >>conftest.$ac_ext <<_ACEOF
11974
 
/* end confdefs.h.  */
11975
 
 
11976
 
#include <sys/types.h>
11977
 
#include <stdio.h>
11978
 
 
11979
 
int
11980
 
main ()
11981
 
{
11982
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) < 0)];
11983
 
test_array [0] = 0
11984
 
 
11985
 
  ;
11986
 
  return 0;
11987
 
}
11988
 
_ACEOF
11989
 
rm -f conftest.$ac_objext
11990
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11991
 
  (eval $ac_compile) 2>&5
11992
 
  ac_status=$?
11993
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994
 
  (exit $ac_status); } &&
11995
 
         { ac_try='test -s conftest.$ac_objext'
11996
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997
 
  (eval $ac_try) 2>&5
11998
 
  ac_status=$?
11999
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000
 
  (exit $ac_status); }; }; then
12001
 
  ac_hi=-1 ac_mid=-1
12002
 
  while :; do
12003
 
    cat >conftest.$ac_ext <<_ACEOF
12004
 
#line $LINENO "configure"
12005
 
/* confdefs.h.  */
12006
 
_ACEOF
12007
 
cat confdefs.h >>conftest.$ac_ext
12008
 
cat >>conftest.$ac_ext <<_ACEOF
12009
 
/* end confdefs.h.  */
12010
 
 
12011
 
#include <sys/types.h>
12012
 
#include <stdio.h>
12013
 
 
12014
 
int
12015
 
main ()
12016
 
{
12017
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= $ac_mid)];
12018
 
test_array [0] = 0
12019
 
 
12020
 
  ;
12021
 
  return 0;
12022
 
}
12023
 
_ACEOF
12024
 
rm -f conftest.$ac_objext
12025
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12026
 
  (eval $ac_compile) 2>&5
12027
 
  ac_status=$?
12028
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029
 
  (exit $ac_status); } &&
12030
 
         { ac_try='test -s conftest.$ac_objext'
12031
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032
 
  (eval $ac_try) 2>&5
12033
 
  ac_status=$?
12034
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035
 
  (exit $ac_status); }; }; then
12036
 
  ac_lo=$ac_mid; break
12037
 
else
12038
 
  echo "$as_me: failed program was:" >&5
12039
 
sed 's/^/| /' conftest.$ac_ext >&5
12040
 
 
12041
 
ac_hi=`expr '(' $ac_mid ')' - 1`
12042
 
                       if test $ac_mid -le $ac_hi; then
12043
 
                         ac_lo= ac_hi=
12044
 
                         break
12045
 
                       fi
12046
 
                       ac_mid=`expr 2 '*' $ac_mid`
12047
 
fi
12048
 
rm -f conftest.$ac_objext conftest.$ac_ext
12049
 
  done
12050
 
else
12051
 
  echo "$as_me: failed program was:" >&5
12052
 
sed 's/^/| /' conftest.$ac_ext >&5
12053
 
 
12054
 
ac_lo= ac_hi=
12055
 
fi
12056
 
rm -f conftest.$ac_objext conftest.$ac_ext
12057
 
fi
12058
 
rm -f conftest.$ac_objext conftest.$ac_ext
12059
 
# Binary search between lo and hi bounds.
12060
 
while test "x$ac_lo" != "x$ac_hi"; do
12061
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12062
 
  cat >conftest.$ac_ext <<_ACEOF
12063
 
#line $LINENO "configure"
12064
 
/* confdefs.h.  */
12065
 
_ACEOF
12066
 
cat confdefs.h >>conftest.$ac_ext
12067
 
cat >>conftest.$ac_ext <<_ACEOF
12068
 
/* end confdefs.h.  */
12069
 
 
12070
 
#include <sys/types.h>
12071
 
#include <stdio.h>
12072
 
 
12073
 
int
12074
 
main ()
12075
 
{
12076
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
12077
 
test_array [0] = 0
12078
 
 
12079
 
  ;
12080
 
  return 0;
12081
 
}
12082
 
_ACEOF
12083
 
rm -f conftest.$ac_objext
12084
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12085
 
  (eval $ac_compile) 2>&5
12086
 
  ac_status=$?
12087
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088
 
  (exit $ac_status); } &&
12089
 
         { ac_try='test -s conftest.$ac_objext'
12090
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091
 
  (eval $ac_try) 2>&5
12092
 
  ac_status=$?
12093
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094
 
  (exit $ac_status); }; }; then
12095
 
  ac_hi=$ac_mid
12096
 
else
12097
 
  echo "$as_me: failed program was:" >&5
12098
 
sed 's/^/| /' conftest.$ac_ext >&5
12099
 
 
12100
 
ac_lo=`expr '(' $ac_mid ')' + 1`
12101
 
fi
12102
 
rm -f conftest.$ac_objext conftest.$ac_ext
12103
 
done
12104
 
case $ac_lo in
12105
 
?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
12106
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77
12107
 
See \`config.log' for more details." >&5
12108
 
echo "$as_me: error: cannot compute sizeof (unsigned char), 77
12109
 
See \`config.log' for more details." >&2;}
12110
 
   { (exit 1); exit 1; }; } ;;
12111
 
esac
12112
 
else
12113
 
  if test "$cross_compiling" = yes; then
12114
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12115
 
See \`config.log' for more details." >&5
12116
 
echo "$as_me: error: cannot run test program while cross compiling
12117
 
See \`config.log' for more details." >&2;}
12118
 
   { (exit 1); exit 1; }; }
12119
 
else
12120
 
  cat >conftest.$ac_ext <<_ACEOF
12121
 
#line $LINENO "configure"
12122
 
/* confdefs.h.  */
12123
 
_ACEOF
12124
 
cat confdefs.h >>conftest.$ac_ext
12125
 
cat >>conftest.$ac_ext <<_ACEOF
12126
 
/* end confdefs.h.  */
12127
 
 
12128
 
#include <sys/types.h>
12129
 
#include <stdio.h>
12130
 
 
12131
 
long longval () { return (long) (sizeof (unsigned char)); }
12132
 
unsigned long ulongval () { return (long) (sizeof (unsigned char)); }
12133
 
#include <stdio.h>
12134
 
#include <stdlib.h>
12135
 
int
12136
 
main ()
12137
 
{
12138
 
 
12139
 
  FILE *f = fopen ("conftest.val", "w");
12140
 
  if (! f)
12141
 
    exit (1);
12142
 
  if (((long) (sizeof (unsigned char))) < 0)
12143
 
    {
12144
 
      long i = longval ();
12145
 
      if (i != ((long) (sizeof (unsigned char))))
12146
 
        exit (1);
12147
 
      fprintf (f, "%ld\n", i);
12148
 
    }
12149
 
  else
12150
 
    {
12151
 
      unsigned long i = ulongval ();
12152
 
      if (i != ((long) (sizeof (unsigned char))))
12153
 
        exit (1);
12154
 
      fprintf (f, "%lu\n", i);
12155
 
    }
12156
 
  exit (ferror (f) || fclose (f) != 0);
12157
 
 
12158
 
  ;
12159
 
  return 0;
12160
 
}
12161
 
_ACEOF
12162
 
rm -f conftest$ac_exeext
12163
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12164
 
  (eval $ac_link) 2>&5
12165
 
  ac_status=$?
12166
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12168
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169
 
  (eval $ac_try) 2>&5
12170
 
  ac_status=$?
12171
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172
 
  (exit $ac_status); }; }; then
12173
 
  ac_cv_sizeof_unsigned_char=`cat conftest.val`
12174
 
else
12175
 
  echo "$as_me: program exited with status $ac_status" >&5
12176
 
echo "$as_me: failed program was:" >&5
12177
 
sed 's/^/| /' conftest.$ac_ext >&5
12178
 
 
12179
 
( exit $ac_status )
12180
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77
12181
 
See \`config.log' for more details." >&5
12182
 
echo "$as_me: error: cannot compute sizeof (unsigned char), 77
12183
 
See \`config.log' for more details." >&2;}
12184
 
   { (exit 1); exit 1; }; }
12185
 
fi
12186
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12187
 
fi
12188
 
fi
12189
 
rm -f conftest.val
12190
 
else
12191
 
  ac_cv_sizeof_unsigned_char=0
12192
 
fi
12193
 
fi
12194
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
12195
 
echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
12196
 
cat >>confdefs.h <<_ACEOF
12197
 
#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
12198
 
_ACEOF
12199
 
 
12200
 
 
12201
 
echo "$as_me:$LINENO: checking for short" >&5
12202
 
echo $ECHO_N "checking for short... $ECHO_C" >&6
12203
 
if test "${ac_cv_type_short+set}" = set; then
12204
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12205
 
else
12206
 
  cat >conftest.$ac_ext <<_ACEOF
12207
 
#line $LINENO "configure"
12208
 
/* confdefs.h.  */
12209
 
_ACEOF
12210
 
cat confdefs.h >>conftest.$ac_ext
12211
 
cat >>conftest.$ac_ext <<_ACEOF
12212
 
/* end confdefs.h.  */
12213
 
 
12214
 
#include <sys/types.h>
12215
 
#include <stdio.h>
12216
 
 
12217
 
int
12218
 
main ()
12219
 
{
12220
 
if ((short *) 0)
12221
 
  return 0;
12222
 
if (sizeof (short))
12223
 
  return 0;
12224
 
  ;
12225
 
  return 0;
12226
 
}
12227
 
_ACEOF
12228
 
rm -f conftest.$ac_objext
12229
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12230
 
  (eval $ac_compile) 2>&5
12231
 
  ac_status=$?
12232
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233
 
  (exit $ac_status); } &&
12234
 
         { ac_try='test -s conftest.$ac_objext'
12235
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236
 
  (eval $ac_try) 2>&5
12237
 
  ac_status=$?
12238
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239
 
  (exit $ac_status); }; }; then
12240
 
  ac_cv_type_short=yes
12241
 
else
12242
 
  echo "$as_me: failed program was:" >&5
12243
 
sed 's/^/| /' conftest.$ac_ext >&5
12244
 
 
12245
 
ac_cv_type_short=no
12246
 
fi
12247
 
rm -f conftest.$ac_objext conftest.$ac_ext
12248
 
fi
12249
 
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12250
 
echo "${ECHO_T}$ac_cv_type_short" >&6
12251
 
 
12252
 
echo "$as_me:$LINENO: checking size of short" >&5
12253
 
echo $ECHO_N "checking size of short... $ECHO_C" >&6
12254
 
if test "${ac_cv_sizeof_short+set}" = set; then
12255
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12256
 
else
12257
 
  if test "$ac_cv_type_short" = yes; then
12258
 
  # The cast to unsigned long works around a bug in the HP C Compiler
12259
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12260
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12261
 
  # This bug is HP SR number 8606223364.
12262
 
  if test "$cross_compiling" = yes; then
12263
 
  # Depending upon the size, compute the lo and hi bounds.
12264
 
cat >conftest.$ac_ext <<_ACEOF
12265
 
#line $LINENO "configure"
12266
 
/* confdefs.h.  */
12267
 
_ACEOF
12268
 
cat confdefs.h >>conftest.$ac_ext
12269
 
cat >>conftest.$ac_ext <<_ACEOF
12270
 
/* end confdefs.h.  */
12271
 
 
12272
 
#include <sys/types.h>
12273
 
#include <stdio.h>
12274
 
 
12275
 
int
12276
 
main ()
12277
 
{
12278
 
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
12279
 
test_array [0] = 0
12280
 
 
12281
 
  ;
12282
 
  return 0;
12283
 
}
12284
 
_ACEOF
12285
 
rm -f conftest.$ac_objext
12286
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12287
 
  (eval $ac_compile) 2>&5
12288
 
  ac_status=$?
12289
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290
 
  (exit $ac_status); } &&
12291
 
         { ac_try='test -s conftest.$ac_objext'
12292
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293
 
  (eval $ac_try) 2>&5
12294
 
  ac_status=$?
12295
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296
 
  (exit $ac_status); }; }; then
12297
 
  ac_lo=0 ac_mid=0
12298
 
  while :; do
12299
 
    cat >conftest.$ac_ext <<_ACEOF
12300
 
#line $LINENO "configure"
12301
 
/* confdefs.h.  */
12302
 
_ACEOF
12303
 
cat confdefs.h >>conftest.$ac_ext
12304
 
cat >>conftest.$ac_ext <<_ACEOF
12305
 
/* end confdefs.h.  */
12306
 
 
12307
 
#include <sys/types.h>
12308
 
#include <stdio.h>
12309
 
 
12310
 
int
12311
 
main ()
12312
 
{
12313
 
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12314
 
test_array [0] = 0
12315
 
 
12316
 
  ;
12317
 
  return 0;
12318
 
}
12319
 
_ACEOF
12320
 
rm -f conftest.$ac_objext
12321
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12322
 
  (eval $ac_compile) 2>&5
12323
 
  ac_status=$?
12324
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325
 
  (exit $ac_status); } &&
12326
 
         { ac_try='test -s conftest.$ac_objext'
12327
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328
 
  (eval $ac_try) 2>&5
12329
 
  ac_status=$?
12330
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331
 
  (exit $ac_status); }; }; then
12332
 
  ac_hi=$ac_mid; break
12333
 
else
12334
 
  echo "$as_me: failed program was:" >&5
12335
 
sed 's/^/| /' conftest.$ac_ext >&5
12336
 
 
12337
 
ac_lo=`expr $ac_mid + 1`
12338
 
                    if test $ac_lo -le $ac_mid; then
12339
 
                      ac_lo= ac_hi=
12340
 
                      break
12341
 
                    fi
12342
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
12343
 
fi
12344
 
rm -f conftest.$ac_objext conftest.$ac_ext
12345
 
  done
12346
 
else
12347
 
  echo "$as_me: failed program was:" >&5
12348
 
sed 's/^/| /' conftest.$ac_ext >&5
12349
 
 
12350
 
cat >conftest.$ac_ext <<_ACEOF
12351
 
#line $LINENO "configure"
12352
 
/* confdefs.h.  */
12353
 
_ACEOF
12354
 
cat confdefs.h >>conftest.$ac_ext
12355
 
cat >>conftest.$ac_ext <<_ACEOF
12356
 
/* end confdefs.h.  */
12357
 
 
12358
 
#include <sys/types.h>
12359
 
#include <stdio.h>
12360
 
 
12361
 
int
12362
 
main ()
12363
 
{
12364
 
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
12365
 
test_array [0] = 0
12366
 
 
12367
 
  ;
12368
 
  return 0;
12369
 
}
12370
 
_ACEOF
12371
 
rm -f conftest.$ac_objext
12372
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12373
 
  (eval $ac_compile) 2>&5
12374
 
  ac_status=$?
12375
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376
 
  (exit $ac_status); } &&
12377
 
         { ac_try='test -s conftest.$ac_objext'
12378
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379
 
  (eval $ac_try) 2>&5
12380
 
  ac_status=$?
12381
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382
 
  (exit $ac_status); }; }; then
12383
 
  ac_hi=-1 ac_mid=-1
12384
 
  while :; do
12385
 
    cat >conftest.$ac_ext <<_ACEOF
12386
 
#line $LINENO "configure"
12387
 
/* confdefs.h.  */
12388
 
_ACEOF
12389
 
cat confdefs.h >>conftest.$ac_ext
12390
 
cat >>conftest.$ac_ext <<_ACEOF
12391
 
/* end confdefs.h.  */
12392
 
 
12393
 
#include <sys/types.h>
12394
 
#include <stdio.h>
12395
 
 
12396
 
int
12397
 
main ()
12398
 
{
12399
 
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
12400
 
test_array [0] = 0
12401
 
 
12402
 
  ;
12403
 
  return 0;
12404
 
}
12405
 
_ACEOF
12406
 
rm -f conftest.$ac_objext
12407
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12408
 
  (eval $ac_compile) 2>&5
12409
 
  ac_status=$?
12410
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411
 
  (exit $ac_status); } &&
12412
 
         { ac_try='test -s conftest.$ac_objext'
12413
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414
 
  (eval $ac_try) 2>&5
12415
 
  ac_status=$?
12416
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417
 
  (exit $ac_status); }; }; then
12418
 
  ac_lo=$ac_mid; break
12419
 
else
12420
 
  echo "$as_me: failed program was:" >&5
12421
 
sed 's/^/| /' conftest.$ac_ext >&5
12422
 
 
12423
 
ac_hi=`expr '(' $ac_mid ')' - 1`
12424
 
                       if test $ac_mid -le $ac_hi; then
12425
 
                         ac_lo= ac_hi=
12426
 
                         break
12427
 
                       fi
12428
 
                       ac_mid=`expr 2 '*' $ac_mid`
12429
 
fi
12430
 
rm -f conftest.$ac_objext conftest.$ac_ext
12431
 
  done
12432
 
else
12433
 
  echo "$as_me: failed program was:" >&5
12434
 
sed 's/^/| /' conftest.$ac_ext >&5
12435
 
 
12436
 
ac_lo= ac_hi=
12437
 
fi
12438
 
rm -f conftest.$ac_objext conftest.$ac_ext
12439
 
fi
12440
 
rm -f conftest.$ac_objext conftest.$ac_ext
12441
 
# Binary search between lo and hi bounds.
12442
 
while test "x$ac_lo" != "x$ac_hi"; do
12443
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12444
 
  cat >conftest.$ac_ext <<_ACEOF
12445
 
#line $LINENO "configure"
12446
 
/* confdefs.h.  */
12447
 
_ACEOF
12448
 
cat confdefs.h >>conftest.$ac_ext
12449
 
cat >>conftest.$ac_ext <<_ACEOF
12450
 
/* end confdefs.h.  */
12451
 
 
12452
 
#include <sys/types.h>
12453
 
#include <stdio.h>
12454
 
 
12455
 
int
12456
 
main ()
12457
 
{
12458
 
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12459
 
test_array [0] = 0
12460
 
 
12461
 
  ;
12462
 
  return 0;
12463
 
}
12464
 
_ACEOF
12465
 
rm -f conftest.$ac_objext
12466
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12467
 
  (eval $ac_compile) 2>&5
12468
 
  ac_status=$?
12469
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470
 
  (exit $ac_status); } &&
12471
 
         { ac_try='test -s conftest.$ac_objext'
12472
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473
 
  (eval $ac_try) 2>&5
12474
 
  ac_status=$?
12475
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476
 
  (exit $ac_status); }; }; then
12477
 
  ac_hi=$ac_mid
12478
 
else
12479
 
  echo "$as_me: failed program was:" >&5
12480
 
sed 's/^/| /' conftest.$ac_ext >&5
12481
 
 
12482
 
ac_lo=`expr '(' $ac_mid ')' + 1`
12483
 
fi
12484
 
rm -f conftest.$ac_objext conftest.$ac_ext
12485
 
done
12486
 
case $ac_lo in
12487
 
?*) ac_cv_sizeof_short=$ac_lo;;
12488
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12489
 
See \`config.log' for more details." >&5
12490
 
echo "$as_me: error: cannot compute sizeof (short), 77
12491
 
See \`config.log' for more details." >&2;}
12492
 
   { (exit 1); exit 1; }; } ;;
12493
 
esac
12494
 
else
12495
 
  if test "$cross_compiling" = yes; then
12496
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12497
 
See \`config.log' for more details." >&5
12498
 
echo "$as_me: error: cannot run test program while cross compiling
12499
 
See \`config.log' for more details." >&2;}
12500
 
   { (exit 1); exit 1; }; }
12501
 
else
12502
 
  cat >conftest.$ac_ext <<_ACEOF
12503
 
#line $LINENO "configure"
12504
 
/* confdefs.h.  */
12505
 
_ACEOF
12506
 
cat confdefs.h >>conftest.$ac_ext
12507
 
cat >>conftest.$ac_ext <<_ACEOF
12508
 
/* end confdefs.h.  */
12509
 
 
12510
 
#include <sys/types.h>
12511
 
#include <stdio.h>
12512
 
 
12513
 
long longval () { return (long) (sizeof (short)); }
12514
 
unsigned long ulongval () { return (long) (sizeof (short)); }
12515
 
#include <stdio.h>
12516
 
#include <stdlib.h>
12517
 
int
12518
 
main ()
12519
 
{
12520
 
 
12521
 
  FILE *f = fopen ("conftest.val", "w");
12522
 
  if (! f)
12523
 
    exit (1);
12524
 
  if (((long) (sizeof (short))) < 0)
12525
 
    {
12526
 
      long i = longval ();
12527
 
      if (i != ((long) (sizeof (short))))
12528
 
        exit (1);
12529
 
      fprintf (f, "%ld\n", i);
12530
 
    }
12531
 
  else
12532
 
    {
12533
 
      unsigned long i = ulongval ();
12534
 
      if (i != ((long) (sizeof (short))))
12535
 
        exit (1);
12536
 
      fprintf (f, "%lu\n", i);
12537
 
    }
12538
 
  exit (ferror (f) || fclose (f) != 0);
12539
 
 
12540
 
  ;
12541
 
  return 0;
12542
 
}
12543
 
_ACEOF
12544
 
rm -f conftest$ac_exeext
12545
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12546
 
  (eval $ac_link) 2>&5
12547
 
  ac_status=$?
12548
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12550
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551
 
  (eval $ac_try) 2>&5
12552
 
  ac_status=$?
12553
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554
 
  (exit $ac_status); }; }; then
12555
 
  ac_cv_sizeof_short=`cat conftest.val`
12556
 
else
12557
 
  echo "$as_me: program exited with status $ac_status" >&5
12558
 
echo "$as_me: failed program was:" >&5
12559
 
sed 's/^/| /' conftest.$ac_ext >&5
12560
 
 
12561
 
( exit $ac_status )
12562
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12563
 
See \`config.log' for more details." >&5
12564
 
echo "$as_me: error: cannot compute sizeof (short), 77
12565
 
See \`config.log' for more details." >&2;}
12566
 
   { (exit 1); exit 1; }; }
12567
 
fi
12568
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12569
 
fi
12570
 
fi
12571
 
rm -f conftest.val
12572
 
else
12573
 
  ac_cv_sizeof_short=0
12574
 
fi
12575
 
fi
12576
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12577
 
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
12578
 
cat >>confdefs.h <<_ACEOF
12579
 
#define SIZEOF_SHORT $ac_cv_sizeof_short
12580
 
_ACEOF
12581
 
 
12582
 
 
12583
 
echo "$as_me:$LINENO: checking for unsigned short" >&5
12584
 
echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
12585
 
if test "${ac_cv_type_unsigned_short+set}" = set; then
12586
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12587
 
else
12588
 
  cat >conftest.$ac_ext <<_ACEOF
12589
 
#line $LINENO "configure"
12590
 
/* confdefs.h.  */
12591
 
_ACEOF
12592
 
cat confdefs.h >>conftest.$ac_ext
12593
 
cat >>conftest.$ac_ext <<_ACEOF
12594
 
/* end confdefs.h.  */
12595
 
 
12596
 
#include <sys/types.h>
12597
 
#include <stdio.h>
12598
 
 
12599
 
int
12600
 
main ()
12601
 
{
12602
 
if ((unsigned short *) 0)
12603
 
  return 0;
12604
 
if (sizeof (unsigned short))
12605
 
  return 0;
12606
 
  ;
12607
 
  return 0;
12608
 
}
12609
 
_ACEOF
12610
 
rm -f conftest.$ac_objext
12611
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12612
 
  (eval $ac_compile) 2>&5
12613
 
  ac_status=$?
12614
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615
 
  (exit $ac_status); } &&
12616
 
         { ac_try='test -s conftest.$ac_objext'
12617
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618
 
  (eval $ac_try) 2>&5
12619
 
  ac_status=$?
12620
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621
 
  (exit $ac_status); }; }; then
12622
 
  ac_cv_type_unsigned_short=yes
12623
 
else
12624
 
  echo "$as_me: failed program was:" >&5
12625
 
sed 's/^/| /' conftest.$ac_ext >&5
12626
 
 
12627
 
ac_cv_type_unsigned_short=no
12628
 
fi
12629
 
rm -f conftest.$ac_objext conftest.$ac_ext
12630
 
fi
12631
 
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
12632
 
echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
12633
 
 
12634
 
echo "$as_me:$LINENO: checking size of unsigned short" >&5
12635
 
echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
12636
 
if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
12637
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12638
 
else
12639
 
  if test "$ac_cv_type_unsigned_short" = yes; then
12640
 
  # The cast to unsigned long works around a bug in the HP C Compiler
12641
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12642
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12643
 
  # This bug is HP SR number 8606223364.
12644
 
  if test "$cross_compiling" = yes; then
12645
 
  # Depending upon the size, compute the lo and hi bounds.
12646
 
cat >conftest.$ac_ext <<_ACEOF
12647
 
#line $LINENO "configure"
12648
 
/* confdefs.h.  */
12649
 
_ACEOF
12650
 
cat confdefs.h >>conftest.$ac_ext
12651
 
cat >>conftest.$ac_ext <<_ACEOF
12652
 
/* end confdefs.h.  */
12653
 
 
12654
 
#include <sys/types.h>
12655
 
#include <stdio.h>
12656
 
 
12657
 
int
12658
 
main ()
12659
 
{
12660
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
12661
 
test_array [0] = 0
12662
 
 
12663
 
  ;
12664
 
  return 0;
12665
 
}
12666
 
_ACEOF
12667
 
rm -f conftest.$ac_objext
12668
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12669
 
  (eval $ac_compile) 2>&5
12670
 
  ac_status=$?
12671
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672
 
  (exit $ac_status); } &&
12673
 
         { ac_try='test -s conftest.$ac_objext'
12674
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675
 
  (eval $ac_try) 2>&5
12676
 
  ac_status=$?
12677
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678
 
  (exit $ac_status); }; }; then
12679
 
  ac_lo=0 ac_mid=0
12680
 
  while :; do
12681
 
    cat >conftest.$ac_ext <<_ACEOF
12682
 
#line $LINENO "configure"
12683
 
/* confdefs.h.  */
12684
 
_ACEOF
12685
 
cat confdefs.h >>conftest.$ac_ext
12686
 
cat >>conftest.$ac_ext <<_ACEOF
12687
 
/* end confdefs.h.  */
12688
 
 
12689
 
#include <sys/types.h>
12690
 
#include <stdio.h>
12691
 
 
12692
 
int
12693
 
main ()
12694
 
{
12695
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
12696
 
test_array [0] = 0
12697
 
 
12698
 
  ;
12699
 
  return 0;
12700
 
}
12701
 
_ACEOF
12702
 
rm -f conftest.$ac_objext
12703
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12704
 
  (eval $ac_compile) 2>&5
12705
 
  ac_status=$?
12706
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707
 
  (exit $ac_status); } &&
12708
 
         { ac_try='test -s conftest.$ac_objext'
12709
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710
 
  (eval $ac_try) 2>&5
12711
 
  ac_status=$?
12712
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713
 
  (exit $ac_status); }; }; then
12714
 
  ac_hi=$ac_mid; break
12715
 
else
12716
 
  echo "$as_me: failed program was:" >&5
12717
 
sed 's/^/| /' conftest.$ac_ext >&5
12718
 
 
12719
 
ac_lo=`expr $ac_mid + 1`
12720
 
                    if test $ac_lo -le $ac_mid; then
12721
 
                      ac_lo= ac_hi=
12722
 
                      break
12723
 
                    fi
12724
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
12725
 
fi
12726
 
rm -f conftest.$ac_objext conftest.$ac_ext
12727
 
  done
12728
 
else
12729
 
  echo "$as_me: failed program was:" >&5
12730
 
sed 's/^/| /' conftest.$ac_ext >&5
12731
 
 
12732
 
cat >conftest.$ac_ext <<_ACEOF
12733
 
#line $LINENO "configure"
12734
 
/* confdefs.h.  */
12735
 
_ACEOF
12736
 
cat confdefs.h >>conftest.$ac_ext
12737
 
cat >>conftest.$ac_ext <<_ACEOF
12738
 
/* end confdefs.h.  */
12739
 
 
12740
 
#include <sys/types.h>
12741
 
#include <stdio.h>
12742
 
 
12743
 
int
12744
 
main ()
12745
 
{
12746
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
12747
 
test_array [0] = 0
12748
 
 
12749
 
  ;
12750
 
  return 0;
12751
 
}
12752
 
_ACEOF
12753
 
rm -f conftest.$ac_objext
12754
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12755
 
  (eval $ac_compile) 2>&5
12756
 
  ac_status=$?
12757
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758
 
  (exit $ac_status); } &&
12759
 
         { ac_try='test -s conftest.$ac_objext'
12760
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761
 
  (eval $ac_try) 2>&5
12762
 
  ac_status=$?
12763
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764
 
  (exit $ac_status); }; }; then
12765
 
  ac_hi=-1 ac_mid=-1
12766
 
  while :; do
12767
 
    cat >conftest.$ac_ext <<_ACEOF
12768
 
#line $LINENO "configure"
12769
 
/* confdefs.h.  */
12770
 
_ACEOF
12771
 
cat confdefs.h >>conftest.$ac_ext
12772
 
cat >>conftest.$ac_ext <<_ACEOF
12773
 
/* end confdefs.h.  */
12774
 
 
12775
 
#include <sys/types.h>
12776
 
#include <stdio.h>
12777
 
 
12778
 
int
12779
 
main ()
12780
 
{
12781
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
12782
 
test_array [0] = 0
12783
 
 
12784
 
  ;
12785
 
  return 0;
12786
 
}
12787
 
_ACEOF
12788
 
rm -f conftest.$ac_objext
12789
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12790
 
  (eval $ac_compile) 2>&5
12791
 
  ac_status=$?
12792
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793
 
  (exit $ac_status); } &&
12794
 
         { ac_try='test -s conftest.$ac_objext'
12795
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796
 
  (eval $ac_try) 2>&5
12797
 
  ac_status=$?
12798
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799
 
  (exit $ac_status); }; }; then
12800
 
  ac_lo=$ac_mid; break
12801
 
else
12802
 
  echo "$as_me: failed program was:" >&5
12803
 
sed 's/^/| /' conftest.$ac_ext >&5
12804
 
 
12805
 
ac_hi=`expr '(' $ac_mid ')' - 1`
12806
 
                       if test $ac_mid -le $ac_hi; then
12807
 
                         ac_lo= ac_hi=
12808
 
                         break
12809
 
                       fi
12810
 
                       ac_mid=`expr 2 '*' $ac_mid`
12811
 
fi
12812
 
rm -f conftest.$ac_objext conftest.$ac_ext
12813
 
  done
12814
 
else
12815
 
  echo "$as_me: failed program was:" >&5
12816
 
sed 's/^/| /' conftest.$ac_ext >&5
12817
 
 
12818
 
ac_lo= ac_hi=
12819
 
fi
12820
 
rm -f conftest.$ac_objext conftest.$ac_ext
12821
 
fi
12822
 
rm -f conftest.$ac_objext conftest.$ac_ext
12823
 
# Binary search between lo and hi bounds.
12824
 
while test "x$ac_lo" != "x$ac_hi"; do
12825
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12826
 
  cat >conftest.$ac_ext <<_ACEOF
12827
 
#line $LINENO "configure"
12828
 
/* confdefs.h.  */
12829
 
_ACEOF
12830
 
cat confdefs.h >>conftest.$ac_ext
12831
 
cat >>conftest.$ac_ext <<_ACEOF
12832
 
/* end confdefs.h.  */
12833
 
 
12834
 
#include <sys/types.h>
12835
 
#include <stdio.h>
12836
 
 
12837
 
int
12838
 
main ()
12839
 
{
12840
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
12841
 
test_array [0] = 0
12842
 
 
12843
 
  ;
12844
 
  return 0;
12845
 
}
12846
 
_ACEOF
12847
 
rm -f conftest.$ac_objext
12848
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12849
 
  (eval $ac_compile) 2>&5
12850
 
  ac_status=$?
12851
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852
 
  (exit $ac_status); } &&
12853
 
         { ac_try='test -s conftest.$ac_objext'
12854
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855
 
  (eval $ac_try) 2>&5
12856
 
  ac_status=$?
12857
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858
 
  (exit $ac_status); }; }; then
12859
 
  ac_hi=$ac_mid
12860
 
else
12861
 
  echo "$as_me: failed program was:" >&5
12862
 
sed 's/^/| /' conftest.$ac_ext >&5
12863
 
 
12864
 
ac_lo=`expr '(' $ac_mid ')' + 1`
12865
 
fi
12866
 
rm -f conftest.$ac_objext conftest.$ac_ext
12867
 
done
12868
 
case $ac_lo in
12869
 
?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
12870
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
12871
 
See \`config.log' for more details." >&5
12872
 
echo "$as_me: error: cannot compute sizeof (unsigned short), 77
12873
 
See \`config.log' for more details." >&2;}
12874
 
   { (exit 1); exit 1; }; } ;;
12875
 
esac
12876
 
else
12877
 
  if test "$cross_compiling" = yes; then
12878
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12879
 
See \`config.log' for more details." >&5
12880
 
echo "$as_me: error: cannot run test program while cross compiling
12881
 
See \`config.log' for more details." >&2;}
12882
 
   { (exit 1); exit 1; }; }
12883
 
else
12884
 
  cat >conftest.$ac_ext <<_ACEOF
12885
 
#line $LINENO "configure"
12886
 
/* confdefs.h.  */
12887
 
_ACEOF
12888
 
cat confdefs.h >>conftest.$ac_ext
12889
 
cat >>conftest.$ac_ext <<_ACEOF
12890
 
/* end confdefs.h.  */
12891
 
 
12892
 
#include <sys/types.h>
12893
 
#include <stdio.h>
12894
 
 
12895
 
long longval () { return (long) (sizeof (unsigned short)); }
12896
 
unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
12897
 
#include <stdio.h>
12898
 
#include <stdlib.h>
12899
 
int
12900
 
main ()
12901
 
{
12902
 
 
12903
 
  FILE *f = fopen ("conftest.val", "w");
12904
 
  if (! f)
12905
 
    exit (1);
12906
 
  if (((long) (sizeof (unsigned short))) < 0)
12907
 
    {
12908
 
      long i = longval ();
12909
 
      if (i != ((long) (sizeof (unsigned short))))
12910
 
        exit (1);
12911
 
      fprintf (f, "%ld\n", i);
12912
 
    }
12913
 
  else
12914
 
    {
12915
 
      unsigned long i = ulongval ();
12916
 
      if (i != ((long) (sizeof (unsigned short))))
12917
 
        exit (1);
12918
 
      fprintf (f, "%lu\n", i);
12919
 
    }
12920
 
  exit (ferror (f) || fclose (f) != 0);
12921
 
 
12922
 
  ;
12923
 
  return 0;
12924
 
}
12925
 
_ACEOF
12926
 
rm -f conftest$ac_exeext
12927
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12928
 
  (eval $ac_link) 2>&5
12929
 
  ac_status=$?
12930
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12932
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933
 
  (eval $ac_try) 2>&5
12934
 
  ac_status=$?
12935
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936
 
  (exit $ac_status); }; }; then
12937
 
  ac_cv_sizeof_unsigned_short=`cat conftest.val`
12938
 
else
12939
 
  echo "$as_me: program exited with status $ac_status" >&5
12940
 
echo "$as_me: failed program was:" >&5
12941
 
sed 's/^/| /' conftest.$ac_ext >&5
12942
 
 
12943
 
( exit $ac_status )
12944
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
12945
 
See \`config.log' for more details." >&5
12946
 
echo "$as_me: error: cannot compute sizeof (unsigned short), 77
12947
 
See \`config.log' for more details." >&2;}
12948
 
   { (exit 1); exit 1; }; }
12949
 
fi
12950
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12951
 
fi
12952
 
fi
12953
 
rm -f conftest.val
12954
 
else
12955
 
  ac_cv_sizeof_unsigned_short=0
12956
 
fi
12957
 
fi
12958
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
12959
 
echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
12960
 
cat >>confdefs.h <<_ACEOF
12961
 
#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
12962
 
_ACEOF
12963
 
 
12964
 
 
12965
 
echo "$as_me:$LINENO: checking for int" >&5
12966
 
echo $ECHO_N "checking for int... $ECHO_C" >&6
12967
 
if test "${ac_cv_type_int+set}" = set; then
12968
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12969
 
else
12970
 
  cat >conftest.$ac_ext <<_ACEOF
12971
 
#line $LINENO "configure"
12972
 
/* confdefs.h.  */
12973
 
_ACEOF
12974
 
cat confdefs.h >>conftest.$ac_ext
12975
 
cat >>conftest.$ac_ext <<_ACEOF
12976
 
/* end confdefs.h.  */
12977
 
 
12978
 
#include <sys/types.h>
12979
 
#include <stdio.h>
12980
 
 
12981
 
int
12982
 
main ()
12983
 
{
12984
 
if ((int *) 0)
12985
 
  return 0;
12986
 
if (sizeof (int))
12987
 
  return 0;
12988
 
  ;
12989
 
  return 0;
12990
 
}
12991
 
_ACEOF
12992
 
rm -f conftest.$ac_objext
12993
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12994
 
  (eval $ac_compile) 2>&5
12995
 
  ac_status=$?
12996
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997
 
  (exit $ac_status); } &&
12998
 
         { ac_try='test -s conftest.$ac_objext'
12999
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000
 
  (eval $ac_try) 2>&5
13001
 
  ac_status=$?
13002
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003
 
  (exit $ac_status); }; }; then
13004
 
  ac_cv_type_int=yes
13005
 
else
13006
 
  echo "$as_me: failed program was:" >&5
13007
 
sed 's/^/| /' conftest.$ac_ext >&5
13008
 
 
13009
 
ac_cv_type_int=no
13010
 
fi
13011
 
rm -f conftest.$ac_objext conftest.$ac_ext
13012
 
fi
13013
 
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13014
 
echo "${ECHO_T}$ac_cv_type_int" >&6
13015
 
 
13016
 
echo "$as_me:$LINENO: checking size of int" >&5
13017
 
echo $ECHO_N "checking size of int... $ECHO_C" >&6
13018
 
if test "${ac_cv_sizeof_int+set}" = set; then
13019
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13020
 
else
13021
 
  if test "$ac_cv_type_int" = yes; then
13022
 
  # The cast to unsigned long works around a bug in the HP C Compiler
13023
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13024
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13025
 
  # This bug is HP SR number 8606223364.
13026
 
  if test "$cross_compiling" = yes; then
13027
 
  # Depending upon the size, compute the lo and hi bounds.
13028
 
cat >conftest.$ac_ext <<_ACEOF
13029
 
#line $LINENO "configure"
13030
 
/* confdefs.h.  */
13031
 
_ACEOF
13032
 
cat confdefs.h >>conftest.$ac_ext
13033
 
cat >>conftest.$ac_ext <<_ACEOF
13034
 
/* end confdefs.h.  */
13035
 
 
13036
 
#include <sys/types.h>
13037
 
#include <stdio.h>
13038
 
 
13039
 
int
13040
 
main ()
13041
 
{
13042
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13043
 
test_array [0] = 0
13044
 
 
13045
 
  ;
13046
 
  return 0;
13047
 
}
13048
 
_ACEOF
13049
 
rm -f conftest.$ac_objext
13050
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051
 
  (eval $ac_compile) 2>&5
13052
 
  ac_status=$?
13053
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054
 
  (exit $ac_status); } &&
13055
 
         { ac_try='test -s conftest.$ac_objext'
13056
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057
 
  (eval $ac_try) 2>&5
13058
 
  ac_status=$?
13059
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060
 
  (exit $ac_status); }; }; then
13061
 
  ac_lo=0 ac_mid=0
13062
 
  while :; do
13063
 
    cat >conftest.$ac_ext <<_ACEOF
13064
 
#line $LINENO "configure"
13065
 
/* confdefs.h.  */
13066
 
_ACEOF
13067
 
cat confdefs.h >>conftest.$ac_ext
13068
 
cat >>conftest.$ac_ext <<_ACEOF
13069
 
/* end confdefs.h.  */
13070
 
 
13071
 
#include <sys/types.h>
13072
 
#include <stdio.h>
13073
 
 
13074
 
int
13075
 
main ()
13076
 
{
13077
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13078
 
test_array [0] = 0
13079
 
 
13080
 
  ;
13081
 
  return 0;
13082
 
}
13083
 
_ACEOF
13084
 
rm -f conftest.$ac_objext
13085
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13086
 
  (eval $ac_compile) 2>&5
13087
 
  ac_status=$?
13088
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089
 
  (exit $ac_status); } &&
13090
 
         { ac_try='test -s conftest.$ac_objext'
13091
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13092
 
  (eval $ac_try) 2>&5
13093
 
  ac_status=$?
13094
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095
 
  (exit $ac_status); }; }; then
13096
 
  ac_hi=$ac_mid; break
13097
 
else
13098
 
  echo "$as_me: failed program was:" >&5
13099
 
sed 's/^/| /' conftest.$ac_ext >&5
13100
 
 
13101
 
ac_lo=`expr $ac_mid + 1`
13102
 
                    if test $ac_lo -le $ac_mid; then
13103
 
                      ac_lo= ac_hi=
13104
 
                      break
13105
 
                    fi
13106
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
13107
 
fi
13108
 
rm -f conftest.$ac_objext conftest.$ac_ext
13109
 
  done
13110
 
else
13111
 
  echo "$as_me: failed program was:" >&5
13112
 
sed 's/^/| /' conftest.$ac_ext >&5
13113
 
 
13114
 
cat >conftest.$ac_ext <<_ACEOF
13115
 
#line $LINENO "configure"
13116
 
/* confdefs.h.  */
13117
 
_ACEOF
13118
 
cat confdefs.h >>conftest.$ac_ext
13119
 
cat >>conftest.$ac_ext <<_ACEOF
13120
 
/* end confdefs.h.  */
13121
 
 
13122
 
#include <sys/types.h>
13123
 
#include <stdio.h>
13124
 
 
13125
 
int
13126
 
main ()
13127
 
{
13128
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13129
 
test_array [0] = 0
13130
 
 
13131
 
  ;
13132
 
  return 0;
13133
 
}
13134
 
_ACEOF
13135
 
rm -f conftest.$ac_objext
13136
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13137
 
  (eval $ac_compile) 2>&5
13138
 
  ac_status=$?
13139
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140
 
  (exit $ac_status); } &&
13141
 
         { ac_try='test -s conftest.$ac_objext'
13142
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143
 
  (eval $ac_try) 2>&5
13144
 
  ac_status=$?
13145
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146
 
  (exit $ac_status); }; }; then
13147
 
  ac_hi=-1 ac_mid=-1
13148
 
  while :; do
13149
 
    cat >conftest.$ac_ext <<_ACEOF
13150
 
#line $LINENO "configure"
13151
 
/* confdefs.h.  */
13152
 
_ACEOF
13153
 
cat confdefs.h >>conftest.$ac_ext
13154
 
cat >>conftest.$ac_ext <<_ACEOF
13155
 
/* end confdefs.h.  */
13156
 
 
13157
 
#include <sys/types.h>
13158
 
#include <stdio.h>
13159
 
 
13160
 
int
13161
 
main ()
13162
 
{
13163
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13164
 
test_array [0] = 0
13165
 
 
13166
 
  ;
13167
 
  return 0;
13168
 
}
13169
 
_ACEOF
13170
 
rm -f conftest.$ac_objext
13171
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13172
 
  (eval $ac_compile) 2>&5
13173
 
  ac_status=$?
13174
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175
 
  (exit $ac_status); } &&
13176
 
         { ac_try='test -s conftest.$ac_objext'
13177
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178
 
  (eval $ac_try) 2>&5
13179
 
  ac_status=$?
13180
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181
 
  (exit $ac_status); }; }; then
13182
 
  ac_lo=$ac_mid; break
13183
 
else
13184
 
  echo "$as_me: failed program was:" >&5
13185
 
sed 's/^/| /' conftest.$ac_ext >&5
13186
 
 
13187
 
ac_hi=`expr '(' $ac_mid ')' - 1`
13188
 
                       if test $ac_mid -le $ac_hi; then
13189
 
                         ac_lo= ac_hi=
13190
 
                         break
13191
 
                       fi
13192
 
                       ac_mid=`expr 2 '*' $ac_mid`
13193
 
fi
13194
 
rm -f conftest.$ac_objext conftest.$ac_ext
13195
 
  done
13196
 
else
13197
 
  echo "$as_me: failed program was:" >&5
13198
 
sed 's/^/| /' conftest.$ac_ext >&5
13199
 
 
13200
 
ac_lo= ac_hi=
13201
 
fi
13202
 
rm -f conftest.$ac_objext conftest.$ac_ext
13203
 
fi
13204
 
rm -f conftest.$ac_objext conftest.$ac_ext
13205
 
# Binary search between lo and hi bounds.
13206
 
while test "x$ac_lo" != "x$ac_hi"; do
13207
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13208
 
  cat >conftest.$ac_ext <<_ACEOF
13209
 
#line $LINENO "configure"
13210
 
/* confdefs.h.  */
13211
 
_ACEOF
13212
 
cat confdefs.h >>conftest.$ac_ext
13213
 
cat >>conftest.$ac_ext <<_ACEOF
13214
 
/* end confdefs.h.  */
13215
 
 
13216
 
#include <sys/types.h>
13217
 
#include <stdio.h>
13218
 
 
13219
 
int
13220
 
main ()
13221
 
{
13222
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13223
 
test_array [0] = 0
13224
 
 
13225
 
  ;
13226
 
  return 0;
13227
 
}
13228
 
_ACEOF
13229
 
rm -f conftest.$ac_objext
13230
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13231
 
  (eval $ac_compile) 2>&5
13232
 
  ac_status=$?
13233
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234
 
  (exit $ac_status); } &&
13235
 
         { ac_try='test -s conftest.$ac_objext'
13236
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237
 
  (eval $ac_try) 2>&5
13238
 
  ac_status=$?
13239
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240
 
  (exit $ac_status); }; }; then
13241
 
  ac_hi=$ac_mid
13242
 
else
13243
 
  echo "$as_me: failed program was:" >&5
13244
 
sed 's/^/| /' conftest.$ac_ext >&5
13245
 
 
13246
 
ac_lo=`expr '(' $ac_mid ')' + 1`
13247
 
fi
13248
 
rm -f conftest.$ac_objext conftest.$ac_ext
13249
 
done
13250
 
case $ac_lo in
13251
 
?*) ac_cv_sizeof_int=$ac_lo;;
13252
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13253
 
See \`config.log' for more details." >&5
13254
 
echo "$as_me: error: cannot compute sizeof (int), 77
13255
 
See \`config.log' for more details." >&2;}
13256
 
   { (exit 1); exit 1; }; } ;;
13257
 
esac
13258
 
else
13259
 
  if test "$cross_compiling" = yes; then
13260
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13261
 
See \`config.log' for more details." >&5
13262
 
echo "$as_me: error: cannot run test program while cross compiling
13263
 
See \`config.log' for more details." >&2;}
13264
 
   { (exit 1); exit 1; }; }
13265
 
else
13266
 
  cat >conftest.$ac_ext <<_ACEOF
13267
 
#line $LINENO "configure"
13268
 
/* confdefs.h.  */
13269
 
_ACEOF
13270
 
cat confdefs.h >>conftest.$ac_ext
13271
 
cat >>conftest.$ac_ext <<_ACEOF
13272
 
/* end confdefs.h.  */
13273
 
 
13274
 
#include <sys/types.h>
13275
 
#include <stdio.h>
13276
 
 
13277
 
long longval () { return (long) (sizeof (int)); }
13278
 
unsigned long ulongval () { return (long) (sizeof (int)); }
13279
 
#include <stdio.h>
13280
 
#include <stdlib.h>
13281
 
int
13282
 
main ()
13283
 
{
13284
 
 
13285
 
  FILE *f = fopen ("conftest.val", "w");
13286
 
  if (! f)
13287
 
    exit (1);
13288
 
  if (((long) (sizeof (int))) < 0)
13289
 
    {
13290
 
      long i = longval ();
13291
 
      if (i != ((long) (sizeof (int))))
13292
 
        exit (1);
13293
 
      fprintf (f, "%ld\n", i);
13294
 
    }
13295
 
  else
13296
 
    {
13297
 
      unsigned long i = ulongval ();
13298
 
      if (i != ((long) (sizeof (int))))
13299
 
        exit (1);
13300
 
      fprintf (f, "%lu\n", i);
13301
 
    }
13302
 
  exit (ferror (f) || fclose (f) != 0);
13303
 
 
13304
 
  ;
13305
 
  return 0;
13306
 
}
13307
 
_ACEOF
13308
 
rm -f conftest$ac_exeext
13309
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13310
 
  (eval $ac_link) 2>&5
13311
 
  ac_status=$?
13312
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13314
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315
 
  (eval $ac_try) 2>&5
13316
 
  ac_status=$?
13317
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318
 
  (exit $ac_status); }; }; then
13319
 
  ac_cv_sizeof_int=`cat conftest.val`
13320
 
else
13321
 
  echo "$as_me: program exited with status $ac_status" >&5
13322
 
echo "$as_me: failed program was:" >&5
13323
 
sed 's/^/| /' conftest.$ac_ext >&5
13324
 
 
13325
 
( exit $ac_status )
13326
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13327
 
See \`config.log' for more details." >&5
13328
 
echo "$as_me: error: cannot compute sizeof (int), 77
13329
 
See \`config.log' for more details." >&2;}
13330
 
   { (exit 1); exit 1; }; }
13331
 
fi
13332
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13333
 
fi
13334
 
fi
13335
 
rm -f conftest.val
13336
 
else
13337
 
  ac_cv_sizeof_int=0
13338
 
fi
13339
 
fi
13340
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13341
 
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13342
 
cat >>confdefs.h <<_ACEOF
13343
 
#define SIZEOF_INT $ac_cv_sizeof_int
13344
 
_ACEOF
13345
 
 
13346
 
 
13347
 
echo "$as_me:$LINENO: checking for unsigned int" >&5
13348
 
echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
13349
 
if test "${ac_cv_type_unsigned_int+set}" = set; then
13350
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13351
 
else
13352
 
  cat >conftest.$ac_ext <<_ACEOF
13353
 
#line $LINENO "configure"
13354
 
/* confdefs.h.  */
13355
 
_ACEOF
13356
 
cat confdefs.h >>conftest.$ac_ext
13357
 
cat >>conftest.$ac_ext <<_ACEOF
13358
 
/* end confdefs.h.  */
13359
 
 
13360
 
#include <sys/types.h>
13361
 
#include <stdio.h>
13362
 
 
13363
 
int
13364
 
main ()
13365
 
{
13366
 
if ((unsigned int *) 0)
13367
 
  return 0;
13368
 
if (sizeof (unsigned int))
13369
 
  return 0;
13370
 
  ;
13371
 
  return 0;
13372
 
}
13373
 
_ACEOF
13374
 
rm -f conftest.$ac_objext
13375
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13376
 
  (eval $ac_compile) 2>&5
13377
 
  ac_status=$?
13378
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379
 
  (exit $ac_status); } &&
13380
 
         { ac_try='test -s conftest.$ac_objext'
13381
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13382
 
  (eval $ac_try) 2>&5
13383
 
  ac_status=$?
13384
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385
 
  (exit $ac_status); }; }; then
13386
 
  ac_cv_type_unsigned_int=yes
13387
 
else
13388
 
  echo "$as_me: failed program was:" >&5
13389
 
sed 's/^/| /' conftest.$ac_ext >&5
13390
 
 
13391
 
ac_cv_type_unsigned_int=no
13392
 
fi
13393
 
rm -f conftest.$ac_objext conftest.$ac_ext
13394
 
fi
13395
 
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
13396
 
echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
13397
 
 
13398
 
echo "$as_me:$LINENO: checking size of unsigned int" >&5
13399
 
echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
13400
 
if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
13401
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13402
 
else
13403
 
  if test "$ac_cv_type_unsigned_int" = yes; then
13404
 
  # The cast to unsigned long works around a bug in the HP C Compiler
13405
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13406
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13407
 
  # This bug is HP SR number 8606223364.
13408
 
  if test "$cross_compiling" = yes; then
13409
 
  # Depending upon the size, compute the lo and hi bounds.
13410
 
cat >conftest.$ac_ext <<_ACEOF
13411
 
#line $LINENO "configure"
13412
 
/* confdefs.h.  */
13413
 
_ACEOF
13414
 
cat confdefs.h >>conftest.$ac_ext
13415
 
cat >>conftest.$ac_ext <<_ACEOF
13416
 
/* end confdefs.h.  */
13417
 
 
13418
 
#include <sys/types.h>
13419
 
#include <stdio.h>
13420
 
 
13421
 
int
13422
 
main ()
13423
 
{
13424
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
13425
 
test_array [0] = 0
13426
 
 
13427
 
  ;
13428
 
  return 0;
13429
 
}
13430
 
_ACEOF
13431
 
rm -f conftest.$ac_objext
13432
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13433
 
  (eval $ac_compile) 2>&5
13434
 
  ac_status=$?
13435
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436
 
  (exit $ac_status); } &&
13437
 
         { ac_try='test -s conftest.$ac_objext'
13438
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439
 
  (eval $ac_try) 2>&5
13440
 
  ac_status=$?
13441
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442
 
  (exit $ac_status); }; }; then
13443
 
  ac_lo=0 ac_mid=0
13444
 
  while :; do
13445
 
    cat >conftest.$ac_ext <<_ACEOF
13446
 
#line $LINENO "configure"
13447
 
/* confdefs.h.  */
13448
 
_ACEOF
13449
 
cat confdefs.h >>conftest.$ac_ext
13450
 
cat >>conftest.$ac_ext <<_ACEOF
13451
 
/* end confdefs.h.  */
13452
 
 
13453
 
#include <sys/types.h>
13454
 
#include <stdio.h>
13455
 
 
13456
 
int
13457
 
main ()
13458
 
{
13459
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
13460
 
test_array [0] = 0
13461
 
 
13462
 
  ;
13463
 
  return 0;
13464
 
}
13465
 
_ACEOF
13466
 
rm -f conftest.$ac_objext
13467
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13468
 
  (eval $ac_compile) 2>&5
13469
 
  ac_status=$?
13470
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471
 
  (exit $ac_status); } &&
13472
 
         { ac_try='test -s conftest.$ac_objext'
13473
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474
 
  (eval $ac_try) 2>&5
13475
 
  ac_status=$?
13476
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477
 
  (exit $ac_status); }; }; then
13478
 
  ac_hi=$ac_mid; break
13479
 
else
13480
 
  echo "$as_me: failed program was:" >&5
13481
 
sed 's/^/| /' conftest.$ac_ext >&5
13482
 
 
13483
 
ac_lo=`expr $ac_mid + 1`
13484
 
                    if test $ac_lo -le $ac_mid; then
13485
 
                      ac_lo= ac_hi=
13486
 
                      break
13487
 
                    fi
13488
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
13489
 
fi
13490
 
rm -f conftest.$ac_objext conftest.$ac_ext
13491
 
  done
13492
 
else
13493
 
  echo "$as_me: failed program was:" >&5
13494
 
sed 's/^/| /' conftest.$ac_ext >&5
13495
 
 
13496
 
cat >conftest.$ac_ext <<_ACEOF
13497
 
#line $LINENO "configure"
13498
 
/* confdefs.h.  */
13499
 
_ACEOF
13500
 
cat confdefs.h >>conftest.$ac_ext
13501
 
cat >>conftest.$ac_ext <<_ACEOF
13502
 
/* end confdefs.h.  */
13503
 
 
13504
 
#include <sys/types.h>
13505
 
#include <stdio.h>
13506
 
 
13507
 
int
13508
 
main ()
13509
 
{
13510
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
13511
 
test_array [0] = 0
13512
 
 
13513
 
  ;
13514
 
  return 0;
13515
 
}
13516
 
_ACEOF
13517
 
rm -f conftest.$ac_objext
13518
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13519
 
  (eval $ac_compile) 2>&5
13520
 
  ac_status=$?
13521
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522
 
  (exit $ac_status); } &&
13523
 
         { ac_try='test -s conftest.$ac_objext'
13524
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525
 
  (eval $ac_try) 2>&5
13526
 
  ac_status=$?
13527
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528
 
  (exit $ac_status); }; }; then
13529
 
  ac_hi=-1 ac_mid=-1
13530
 
  while :; do
13531
 
    cat >conftest.$ac_ext <<_ACEOF
13532
 
#line $LINENO "configure"
13533
 
/* confdefs.h.  */
13534
 
_ACEOF
13535
 
cat confdefs.h >>conftest.$ac_ext
13536
 
cat >>conftest.$ac_ext <<_ACEOF
13537
 
/* end confdefs.h.  */
13538
 
 
13539
 
#include <sys/types.h>
13540
 
#include <stdio.h>
13541
 
 
13542
 
int
13543
 
main ()
13544
 
{
13545
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
13546
 
test_array [0] = 0
13547
 
 
13548
 
  ;
13549
 
  return 0;
13550
 
}
13551
 
_ACEOF
13552
 
rm -f conftest.$ac_objext
13553
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13554
 
  (eval $ac_compile) 2>&5
13555
 
  ac_status=$?
13556
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557
 
  (exit $ac_status); } &&
13558
 
         { ac_try='test -s conftest.$ac_objext'
13559
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560
 
  (eval $ac_try) 2>&5
13561
 
  ac_status=$?
13562
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563
 
  (exit $ac_status); }; }; then
13564
 
  ac_lo=$ac_mid; break
13565
 
else
13566
 
  echo "$as_me: failed program was:" >&5
13567
 
sed 's/^/| /' conftest.$ac_ext >&5
13568
 
 
13569
 
ac_hi=`expr '(' $ac_mid ')' - 1`
13570
 
                       if test $ac_mid -le $ac_hi; then
13571
 
                         ac_lo= ac_hi=
13572
 
                         break
13573
 
                       fi
13574
 
                       ac_mid=`expr 2 '*' $ac_mid`
13575
 
fi
13576
 
rm -f conftest.$ac_objext conftest.$ac_ext
13577
 
  done
13578
 
else
13579
 
  echo "$as_me: failed program was:" >&5
13580
 
sed 's/^/| /' conftest.$ac_ext >&5
13581
 
 
13582
 
ac_lo= ac_hi=
13583
 
fi
13584
 
rm -f conftest.$ac_objext conftest.$ac_ext
13585
 
fi
13586
 
rm -f conftest.$ac_objext conftest.$ac_ext
13587
 
# Binary search between lo and hi bounds.
13588
 
while test "x$ac_lo" != "x$ac_hi"; do
13589
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13590
 
  cat >conftest.$ac_ext <<_ACEOF
13591
 
#line $LINENO "configure"
13592
 
/* confdefs.h.  */
13593
 
_ACEOF
13594
 
cat confdefs.h >>conftest.$ac_ext
13595
 
cat >>conftest.$ac_ext <<_ACEOF
13596
 
/* end confdefs.h.  */
13597
 
 
13598
 
#include <sys/types.h>
13599
 
#include <stdio.h>
13600
 
 
13601
 
int
13602
 
main ()
13603
 
{
13604
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
13605
 
test_array [0] = 0
13606
 
 
13607
 
  ;
13608
 
  return 0;
13609
 
}
13610
 
_ACEOF
13611
 
rm -f conftest.$ac_objext
13612
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13613
 
  (eval $ac_compile) 2>&5
13614
 
  ac_status=$?
13615
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616
 
  (exit $ac_status); } &&
13617
 
         { ac_try='test -s conftest.$ac_objext'
13618
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619
 
  (eval $ac_try) 2>&5
13620
 
  ac_status=$?
13621
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622
 
  (exit $ac_status); }; }; then
13623
 
  ac_hi=$ac_mid
13624
 
else
13625
 
  echo "$as_me: failed program was:" >&5
13626
 
sed 's/^/| /' conftest.$ac_ext >&5
13627
 
 
13628
 
ac_lo=`expr '(' $ac_mid ')' + 1`
13629
 
fi
13630
 
rm -f conftest.$ac_objext conftest.$ac_ext
13631
 
done
13632
 
case $ac_lo in
13633
 
?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
13634
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
13635
 
See \`config.log' for more details." >&5
13636
 
echo "$as_me: error: cannot compute sizeof (unsigned int), 77
13637
 
See \`config.log' for more details." >&2;}
13638
 
   { (exit 1); exit 1; }; } ;;
13639
 
esac
13640
 
else
13641
 
  if test "$cross_compiling" = yes; then
13642
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13643
 
See \`config.log' for more details." >&5
13644
 
echo "$as_me: error: cannot run test program while cross compiling
13645
 
See \`config.log' for more details." >&2;}
13646
 
   { (exit 1); exit 1; }; }
13647
 
else
13648
 
  cat >conftest.$ac_ext <<_ACEOF
13649
 
#line $LINENO "configure"
13650
 
/* confdefs.h.  */
13651
 
_ACEOF
13652
 
cat confdefs.h >>conftest.$ac_ext
13653
 
cat >>conftest.$ac_ext <<_ACEOF
13654
 
/* end confdefs.h.  */
13655
 
 
13656
 
#include <sys/types.h>
13657
 
#include <stdio.h>
13658
 
 
13659
 
long longval () { return (long) (sizeof (unsigned int)); }
13660
 
unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
13661
 
#include <stdio.h>
13662
 
#include <stdlib.h>
13663
 
int
13664
 
main ()
13665
 
{
13666
 
 
13667
 
  FILE *f = fopen ("conftest.val", "w");
13668
 
  if (! f)
13669
 
    exit (1);
13670
 
  if (((long) (sizeof (unsigned int))) < 0)
13671
 
    {
13672
 
      long i = longval ();
13673
 
      if (i != ((long) (sizeof (unsigned int))))
13674
 
        exit (1);
13675
 
      fprintf (f, "%ld\n", i);
13676
 
    }
13677
 
  else
13678
 
    {
13679
 
      unsigned long i = ulongval ();
13680
 
      if (i != ((long) (sizeof (unsigned int))))
13681
 
        exit (1);
13682
 
      fprintf (f, "%lu\n", i);
13683
 
    }
13684
 
  exit (ferror (f) || fclose (f) != 0);
13685
 
 
13686
 
  ;
13687
 
  return 0;
13688
 
}
13689
 
_ACEOF
13690
 
rm -f conftest$ac_exeext
13691
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13692
 
  (eval $ac_link) 2>&5
13693
 
  ac_status=$?
13694
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13696
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697
 
  (eval $ac_try) 2>&5
13698
 
  ac_status=$?
13699
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700
 
  (exit $ac_status); }; }; then
13701
 
  ac_cv_sizeof_unsigned_int=`cat conftest.val`
13702
 
else
13703
 
  echo "$as_me: program exited with status $ac_status" >&5
13704
 
echo "$as_me: failed program was:" >&5
13705
 
sed 's/^/| /' conftest.$ac_ext >&5
13706
 
 
13707
 
( exit $ac_status )
13708
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
13709
 
See \`config.log' for more details." >&5
13710
 
echo "$as_me: error: cannot compute sizeof (unsigned int), 77
13711
 
See \`config.log' for more details." >&2;}
13712
 
   { (exit 1); exit 1; }; }
13713
 
fi
13714
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13715
 
fi
13716
 
fi
13717
 
rm -f conftest.val
13718
 
else
13719
 
  ac_cv_sizeof_unsigned_int=0
13720
 
fi
13721
 
fi
13722
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
13723
 
echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
13724
 
cat >>confdefs.h <<_ACEOF
13725
 
#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
13726
 
_ACEOF
13727
 
 
13728
 
 
13729
 
echo "$as_me:$LINENO: checking for long" >&5
13730
 
echo $ECHO_N "checking for long... $ECHO_C" >&6
13731
 
if test "${ac_cv_type_long+set}" = set; then
13732
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13733
 
else
13734
 
  cat >conftest.$ac_ext <<_ACEOF
13735
 
#line $LINENO "configure"
13736
 
/* confdefs.h.  */
13737
 
_ACEOF
13738
 
cat confdefs.h >>conftest.$ac_ext
13739
 
cat >>conftest.$ac_ext <<_ACEOF
13740
 
/* end confdefs.h.  */
13741
 
 
13742
 
#include <sys/types.h>
13743
 
#include <stdio.h>
13744
 
 
13745
 
int
13746
 
main ()
13747
 
{
13748
 
if ((long *) 0)
13749
 
  return 0;
13750
 
if (sizeof (long))
13751
 
  return 0;
13752
 
  ;
13753
 
  return 0;
13754
 
}
13755
 
_ACEOF
13756
 
rm -f conftest.$ac_objext
13757
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13758
 
  (eval $ac_compile) 2>&5
13759
 
  ac_status=$?
13760
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761
 
  (exit $ac_status); } &&
13762
 
         { ac_try='test -s conftest.$ac_objext'
13763
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764
 
  (eval $ac_try) 2>&5
13765
 
  ac_status=$?
13766
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767
 
  (exit $ac_status); }; }; then
13768
 
  ac_cv_type_long=yes
13769
 
else
13770
 
  echo "$as_me: failed program was:" >&5
13771
 
sed 's/^/| /' conftest.$ac_ext >&5
13772
 
 
13773
 
ac_cv_type_long=no
13774
 
fi
13775
 
rm -f conftest.$ac_objext conftest.$ac_ext
13776
 
fi
13777
 
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13778
 
echo "${ECHO_T}$ac_cv_type_long" >&6
13779
 
 
13780
 
echo "$as_me:$LINENO: checking size of long" >&5
13781
 
echo $ECHO_N "checking size of long... $ECHO_C" >&6
13782
 
if test "${ac_cv_sizeof_long+set}" = set; then
13783
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13784
 
else
13785
 
  if test "$ac_cv_type_long" = yes; then
13786
 
  # The cast to unsigned long works around a bug in the HP C Compiler
13787
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13788
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13789
 
  # This bug is HP SR number 8606223364.
13790
 
  if test "$cross_compiling" = yes; then
13791
 
  # Depending upon the size, compute the lo and hi bounds.
13792
 
cat >conftest.$ac_ext <<_ACEOF
13793
 
#line $LINENO "configure"
13794
 
/* confdefs.h.  */
13795
 
_ACEOF
13796
 
cat confdefs.h >>conftest.$ac_ext
13797
 
cat >>conftest.$ac_ext <<_ACEOF
13798
 
/* end confdefs.h.  */
13799
 
 
13800
 
#include <sys/types.h>
13801
 
#include <stdio.h>
13802
 
 
13803
 
int
13804
 
main ()
13805
 
{
13806
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13807
 
test_array [0] = 0
13808
 
 
13809
 
  ;
13810
 
  return 0;
13811
 
}
13812
 
_ACEOF
13813
 
rm -f conftest.$ac_objext
13814
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13815
 
  (eval $ac_compile) 2>&5
13816
 
  ac_status=$?
13817
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818
 
  (exit $ac_status); } &&
13819
 
         { ac_try='test -s conftest.$ac_objext'
13820
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821
 
  (eval $ac_try) 2>&5
13822
 
  ac_status=$?
13823
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824
 
  (exit $ac_status); }; }; then
13825
 
  ac_lo=0 ac_mid=0
13826
 
  while :; do
13827
 
    cat >conftest.$ac_ext <<_ACEOF
13828
 
#line $LINENO "configure"
13829
 
/* confdefs.h.  */
13830
 
_ACEOF
13831
 
cat confdefs.h >>conftest.$ac_ext
13832
 
cat >>conftest.$ac_ext <<_ACEOF
13833
 
/* end confdefs.h.  */
13834
 
 
13835
 
#include <sys/types.h>
13836
 
#include <stdio.h>
13837
 
 
13838
 
int
13839
 
main ()
13840
 
{
13841
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13842
 
test_array [0] = 0
13843
 
 
13844
 
  ;
13845
 
  return 0;
13846
 
}
13847
 
_ACEOF
13848
 
rm -f conftest.$ac_objext
13849
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13850
 
  (eval $ac_compile) 2>&5
13851
 
  ac_status=$?
13852
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853
 
  (exit $ac_status); } &&
13854
 
         { ac_try='test -s conftest.$ac_objext'
13855
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856
 
  (eval $ac_try) 2>&5
13857
 
  ac_status=$?
13858
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859
 
  (exit $ac_status); }; }; then
13860
 
  ac_hi=$ac_mid; break
13861
 
else
13862
 
  echo "$as_me: failed program was:" >&5
13863
 
sed 's/^/| /' conftest.$ac_ext >&5
13864
 
 
13865
 
ac_lo=`expr $ac_mid + 1`
13866
 
                    if test $ac_lo -le $ac_mid; then
13867
 
                      ac_lo= ac_hi=
13868
 
                      break
13869
 
                    fi
13870
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
13871
 
fi
13872
 
rm -f conftest.$ac_objext conftest.$ac_ext
13873
 
  done
13874
 
else
13875
 
  echo "$as_me: failed program was:" >&5
13876
 
sed 's/^/| /' conftest.$ac_ext >&5
13877
 
 
13878
 
cat >conftest.$ac_ext <<_ACEOF
13879
 
#line $LINENO "configure"
13880
 
/* confdefs.h.  */
13881
 
_ACEOF
13882
 
cat confdefs.h >>conftest.$ac_ext
13883
 
cat >>conftest.$ac_ext <<_ACEOF
13884
 
/* end confdefs.h.  */
13885
 
 
13886
 
#include <sys/types.h>
13887
 
#include <stdio.h>
13888
 
 
13889
 
int
13890
 
main ()
13891
 
{
13892
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13893
 
test_array [0] = 0
13894
 
 
13895
 
  ;
13896
 
  return 0;
13897
 
}
13898
 
_ACEOF
13899
 
rm -f conftest.$ac_objext
13900
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13901
 
  (eval $ac_compile) 2>&5
13902
 
  ac_status=$?
13903
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904
 
  (exit $ac_status); } &&
13905
 
         { ac_try='test -s conftest.$ac_objext'
13906
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907
 
  (eval $ac_try) 2>&5
13908
 
  ac_status=$?
13909
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910
 
  (exit $ac_status); }; }; then
13911
 
  ac_hi=-1 ac_mid=-1
13912
 
  while :; do
13913
 
    cat >conftest.$ac_ext <<_ACEOF
13914
 
#line $LINENO "configure"
13915
 
/* confdefs.h.  */
13916
 
_ACEOF
13917
 
cat confdefs.h >>conftest.$ac_ext
13918
 
cat >>conftest.$ac_ext <<_ACEOF
13919
 
/* end confdefs.h.  */
13920
 
 
13921
 
#include <sys/types.h>
13922
 
#include <stdio.h>
13923
 
 
13924
 
int
13925
 
main ()
13926
 
{
13927
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13928
 
test_array [0] = 0
13929
 
 
13930
 
  ;
13931
 
  return 0;
13932
 
}
13933
 
_ACEOF
13934
 
rm -f conftest.$ac_objext
13935
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13936
 
  (eval $ac_compile) 2>&5
13937
 
  ac_status=$?
13938
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939
 
  (exit $ac_status); } &&
13940
 
         { ac_try='test -s conftest.$ac_objext'
13941
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942
 
  (eval $ac_try) 2>&5
13943
 
  ac_status=$?
13944
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945
 
  (exit $ac_status); }; }; then
13946
 
  ac_lo=$ac_mid; break
13947
 
else
13948
 
  echo "$as_me: failed program was:" >&5
13949
 
sed 's/^/| /' conftest.$ac_ext >&5
13950
 
 
13951
 
ac_hi=`expr '(' $ac_mid ')' - 1`
13952
 
                       if test $ac_mid -le $ac_hi; then
13953
 
                         ac_lo= ac_hi=
13954
 
                         break
13955
 
                       fi
13956
 
                       ac_mid=`expr 2 '*' $ac_mid`
13957
 
fi
13958
 
rm -f conftest.$ac_objext conftest.$ac_ext
13959
 
  done
13960
 
else
13961
 
  echo "$as_me: failed program was:" >&5
13962
 
sed 's/^/| /' conftest.$ac_ext >&5
13963
 
 
13964
 
ac_lo= ac_hi=
13965
 
fi
13966
 
rm -f conftest.$ac_objext conftest.$ac_ext
13967
 
fi
13968
 
rm -f conftest.$ac_objext conftest.$ac_ext
13969
 
# Binary search between lo and hi bounds.
13970
 
while test "x$ac_lo" != "x$ac_hi"; do
13971
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13972
 
  cat >conftest.$ac_ext <<_ACEOF
13973
 
#line $LINENO "configure"
13974
 
/* confdefs.h.  */
13975
 
_ACEOF
13976
 
cat confdefs.h >>conftest.$ac_ext
13977
 
cat >>conftest.$ac_ext <<_ACEOF
13978
 
/* end confdefs.h.  */
13979
 
 
13980
 
#include <sys/types.h>
13981
 
#include <stdio.h>
13982
 
 
13983
 
int
13984
 
main ()
13985
 
{
13986
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13987
 
test_array [0] = 0
13988
 
 
13989
 
  ;
13990
 
  return 0;
13991
 
}
13992
 
_ACEOF
13993
 
rm -f conftest.$ac_objext
13994
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13995
 
  (eval $ac_compile) 2>&5
13996
 
  ac_status=$?
13997
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998
 
  (exit $ac_status); } &&
13999
 
         { ac_try='test -s conftest.$ac_objext'
14000
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001
 
  (eval $ac_try) 2>&5
14002
 
  ac_status=$?
14003
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004
 
  (exit $ac_status); }; }; then
14005
 
  ac_hi=$ac_mid
14006
 
else
14007
 
  echo "$as_me: failed program was:" >&5
14008
 
sed 's/^/| /' conftest.$ac_ext >&5
14009
 
 
14010
 
ac_lo=`expr '(' $ac_mid ')' + 1`
14011
 
fi
14012
 
rm -f conftest.$ac_objext conftest.$ac_ext
14013
 
done
14014
 
case $ac_lo in
14015
 
?*) ac_cv_sizeof_long=$ac_lo;;
14016
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14017
 
See \`config.log' for more details." >&5
14018
 
echo "$as_me: error: cannot compute sizeof (long), 77
14019
 
See \`config.log' for more details." >&2;}
14020
 
   { (exit 1); exit 1; }; } ;;
14021
 
esac
14022
 
else
14023
 
  if test "$cross_compiling" = yes; then
14024
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14025
 
See \`config.log' for more details." >&5
14026
 
echo "$as_me: error: cannot run test program while cross compiling
14027
 
See \`config.log' for more details." >&2;}
14028
 
   { (exit 1); exit 1; }; }
14029
 
else
14030
 
  cat >conftest.$ac_ext <<_ACEOF
14031
 
#line $LINENO "configure"
14032
 
/* confdefs.h.  */
14033
 
_ACEOF
14034
 
cat confdefs.h >>conftest.$ac_ext
14035
 
cat >>conftest.$ac_ext <<_ACEOF
14036
 
/* end confdefs.h.  */
14037
 
 
14038
 
#include <sys/types.h>
14039
 
#include <stdio.h>
14040
 
 
14041
 
long longval () { return (long) (sizeof (long)); }
14042
 
unsigned long ulongval () { return (long) (sizeof (long)); }
14043
 
#include <stdio.h>
14044
 
#include <stdlib.h>
14045
 
int
14046
 
main ()
14047
 
{
14048
 
 
14049
 
  FILE *f = fopen ("conftest.val", "w");
14050
 
  if (! f)
14051
 
    exit (1);
14052
 
  if (((long) (sizeof (long))) < 0)
14053
 
    {
14054
 
      long i = longval ();
14055
 
      if (i != ((long) (sizeof (long))))
14056
 
        exit (1);
14057
 
      fprintf (f, "%ld\n", i);
14058
 
    }
14059
 
  else
14060
 
    {
14061
 
      unsigned long i = ulongval ();
14062
 
      if (i != ((long) (sizeof (long))))
14063
 
        exit (1);
14064
 
      fprintf (f, "%lu\n", i);
14065
 
    }
14066
 
  exit (ferror (f) || fclose (f) != 0);
14067
 
 
14068
 
  ;
14069
 
  return 0;
14070
 
}
14071
 
_ACEOF
14072
 
rm -f conftest$ac_exeext
14073
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14074
 
  (eval $ac_link) 2>&5
14075
 
  ac_status=$?
14076
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14078
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079
 
  (eval $ac_try) 2>&5
14080
 
  ac_status=$?
14081
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082
 
  (exit $ac_status); }; }; then
14083
 
  ac_cv_sizeof_long=`cat conftest.val`
14084
 
else
14085
 
  echo "$as_me: program exited with status $ac_status" >&5
14086
 
echo "$as_me: failed program was:" >&5
14087
 
sed 's/^/| /' conftest.$ac_ext >&5
14088
 
 
14089
 
( exit $ac_status )
14090
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14091
 
See \`config.log' for more details." >&5
14092
 
echo "$as_me: error: cannot compute sizeof (long), 77
14093
 
See \`config.log' for more details." >&2;}
14094
 
   { (exit 1); exit 1; }; }
14095
 
fi
14096
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14097
 
fi
14098
 
fi
14099
 
rm -f conftest.val
14100
 
else
14101
 
  ac_cv_sizeof_long=0
14102
 
fi
14103
 
fi
14104
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14105
 
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14106
 
cat >>confdefs.h <<_ACEOF
14107
 
#define SIZEOF_LONG $ac_cv_sizeof_long
14108
 
_ACEOF
14109
 
 
14110
 
 
14111
 
echo "$as_me:$LINENO: checking for unsigned long" >&5
14112
 
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
14113
 
if test "${ac_cv_type_unsigned_long+set}" = set; then
14114
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14115
 
else
14116
 
  cat >conftest.$ac_ext <<_ACEOF
14117
 
#line $LINENO "configure"
14118
 
/* confdefs.h.  */
14119
 
_ACEOF
14120
 
cat confdefs.h >>conftest.$ac_ext
14121
 
cat >>conftest.$ac_ext <<_ACEOF
14122
 
/* end confdefs.h.  */
14123
 
 
14124
 
#include <sys/types.h>
14125
 
#include <stdio.h>
14126
 
 
14127
 
int
14128
 
main ()
14129
 
{
14130
 
if ((unsigned long *) 0)
14131
 
  return 0;
14132
 
if (sizeof (unsigned long))
14133
 
  return 0;
14134
 
  ;
14135
 
  return 0;
14136
 
}
14137
 
_ACEOF
14138
 
rm -f conftest.$ac_objext
14139
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14140
 
  (eval $ac_compile) 2>&5
14141
 
  ac_status=$?
14142
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143
 
  (exit $ac_status); } &&
14144
 
         { ac_try='test -s conftest.$ac_objext'
14145
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146
 
  (eval $ac_try) 2>&5
14147
 
  ac_status=$?
14148
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149
 
  (exit $ac_status); }; }; then
14150
 
  ac_cv_type_unsigned_long=yes
14151
 
else
14152
 
  echo "$as_me: failed program was:" >&5
14153
 
sed 's/^/| /' conftest.$ac_ext >&5
14154
 
 
14155
 
ac_cv_type_unsigned_long=no
14156
 
fi
14157
 
rm -f conftest.$ac_objext conftest.$ac_ext
14158
 
fi
14159
 
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
14160
 
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
14161
 
 
14162
 
echo "$as_me:$LINENO: checking size of unsigned long" >&5
14163
 
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
14164
 
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
14165
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14166
 
else
14167
 
  if test "$ac_cv_type_unsigned_long" = yes; then
14168
 
  # The cast to unsigned long works around a bug in the HP C Compiler
14169
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14170
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14171
 
  # This bug is HP SR number 8606223364.
14172
 
  if test "$cross_compiling" = yes; then
14173
 
  # Depending upon the size, compute the lo and hi bounds.
14174
 
cat >conftest.$ac_ext <<_ACEOF
14175
 
#line $LINENO "configure"
14176
 
/* confdefs.h.  */
14177
 
_ACEOF
14178
 
cat confdefs.h >>conftest.$ac_ext
14179
 
cat >>conftest.$ac_ext <<_ACEOF
14180
 
/* end confdefs.h.  */
14181
 
 
14182
 
#include <sys/types.h>
14183
 
#include <stdio.h>
14184
 
 
14185
 
int
14186
 
main ()
14187
 
{
14188
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
14189
 
test_array [0] = 0
14190
 
 
14191
 
  ;
14192
 
  return 0;
14193
 
}
14194
 
_ACEOF
14195
 
rm -f conftest.$ac_objext
14196
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14197
 
  (eval $ac_compile) 2>&5
14198
 
  ac_status=$?
14199
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200
 
  (exit $ac_status); } &&
14201
 
         { ac_try='test -s conftest.$ac_objext'
14202
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203
 
  (eval $ac_try) 2>&5
14204
 
  ac_status=$?
14205
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206
 
  (exit $ac_status); }; }; then
14207
 
  ac_lo=0 ac_mid=0
14208
 
  while :; do
14209
 
    cat >conftest.$ac_ext <<_ACEOF
14210
 
#line $LINENO "configure"
14211
 
/* confdefs.h.  */
14212
 
_ACEOF
14213
 
cat confdefs.h >>conftest.$ac_ext
14214
 
cat >>conftest.$ac_ext <<_ACEOF
14215
 
/* end confdefs.h.  */
14216
 
 
14217
 
#include <sys/types.h>
14218
 
#include <stdio.h>
14219
 
 
14220
 
int
14221
 
main ()
14222
 
{
14223
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14224
 
test_array [0] = 0
14225
 
 
14226
 
  ;
14227
 
  return 0;
14228
 
}
14229
 
_ACEOF
14230
 
rm -f conftest.$ac_objext
14231
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14232
 
  (eval $ac_compile) 2>&5
14233
 
  ac_status=$?
14234
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235
 
  (exit $ac_status); } &&
14236
 
         { ac_try='test -s conftest.$ac_objext'
14237
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238
 
  (eval $ac_try) 2>&5
14239
 
  ac_status=$?
14240
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241
 
  (exit $ac_status); }; }; then
14242
 
  ac_hi=$ac_mid; break
14243
 
else
14244
 
  echo "$as_me: failed program was:" >&5
14245
 
sed 's/^/| /' conftest.$ac_ext >&5
14246
 
 
14247
 
ac_lo=`expr $ac_mid + 1`
14248
 
                    if test $ac_lo -le $ac_mid; then
14249
 
                      ac_lo= ac_hi=
14250
 
                      break
14251
 
                    fi
14252
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
14253
 
fi
14254
 
rm -f conftest.$ac_objext conftest.$ac_ext
14255
 
  done
14256
 
else
14257
 
  echo "$as_me: failed program was:" >&5
14258
 
sed 's/^/| /' conftest.$ac_ext >&5
14259
 
 
14260
 
cat >conftest.$ac_ext <<_ACEOF
14261
 
#line $LINENO "configure"
14262
 
/* confdefs.h.  */
14263
 
_ACEOF
14264
 
cat confdefs.h >>conftest.$ac_ext
14265
 
cat >>conftest.$ac_ext <<_ACEOF
14266
 
/* end confdefs.h.  */
14267
 
 
14268
 
#include <sys/types.h>
14269
 
#include <stdio.h>
14270
 
 
14271
 
int
14272
 
main ()
14273
 
{
14274
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14275
 
test_array [0] = 0
14276
 
 
14277
 
  ;
14278
 
  return 0;
14279
 
}
14280
 
_ACEOF
14281
 
rm -f conftest.$ac_objext
14282
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14283
 
  (eval $ac_compile) 2>&5
14284
 
  ac_status=$?
14285
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286
 
  (exit $ac_status); } &&
14287
 
         { ac_try='test -s conftest.$ac_objext'
14288
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289
 
  (eval $ac_try) 2>&5
14290
 
  ac_status=$?
14291
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292
 
  (exit $ac_status); }; }; then
14293
 
  ac_hi=-1 ac_mid=-1
14294
 
  while :; do
14295
 
    cat >conftest.$ac_ext <<_ACEOF
14296
 
#line $LINENO "configure"
14297
 
/* confdefs.h.  */
14298
 
_ACEOF
14299
 
cat confdefs.h >>conftest.$ac_ext
14300
 
cat >>conftest.$ac_ext <<_ACEOF
14301
 
/* end confdefs.h.  */
14302
 
 
14303
 
#include <sys/types.h>
14304
 
#include <stdio.h>
14305
 
 
14306
 
int
14307
 
main ()
14308
 
{
14309
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14310
 
test_array [0] = 0
14311
 
 
14312
 
  ;
14313
 
  return 0;
14314
 
}
14315
 
_ACEOF
14316
 
rm -f conftest.$ac_objext
14317
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14318
 
  (eval $ac_compile) 2>&5
14319
 
  ac_status=$?
14320
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321
 
  (exit $ac_status); } &&
14322
 
         { ac_try='test -s conftest.$ac_objext'
14323
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324
 
  (eval $ac_try) 2>&5
14325
 
  ac_status=$?
14326
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327
 
  (exit $ac_status); }; }; then
14328
 
  ac_lo=$ac_mid; break
14329
 
else
14330
 
  echo "$as_me: failed program was:" >&5
14331
 
sed 's/^/| /' conftest.$ac_ext >&5
14332
 
 
14333
 
ac_hi=`expr '(' $ac_mid ')' - 1`
14334
 
                       if test $ac_mid -le $ac_hi; then
14335
 
                         ac_lo= ac_hi=
14336
 
                         break
14337
 
                       fi
14338
 
                       ac_mid=`expr 2 '*' $ac_mid`
14339
 
fi
14340
 
rm -f conftest.$ac_objext conftest.$ac_ext
14341
 
  done
14342
 
else
14343
 
  echo "$as_me: failed program was:" >&5
14344
 
sed 's/^/| /' conftest.$ac_ext >&5
14345
 
 
14346
 
ac_lo= ac_hi=
14347
 
fi
14348
 
rm -f conftest.$ac_objext conftest.$ac_ext
14349
 
fi
14350
 
rm -f conftest.$ac_objext conftest.$ac_ext
14351
 
# Binary search between lo and hi bounds.
14352
 
while test "x$ac_lo" != "x$ac_hi"; do
14353
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14354
 
  cat >conftest.$ac_ext <<_ACEOF
14355
 
#line $LINENO "configure"
14356
 
/* confdefs.h.  */
14357
 
_ACEOF
14358
 
cat confdefs.h >>conftest.$ac_ext
14359
 
cat >>conftest.$ac_ext <<_ACEOF
14360
 
/* end confdefs.h.  */
14361
 
 
14362
 
#include <sys/types.h>
14363
 
#include <stdio.h>
14364
 
 
14365
 
int
14366
 
main ()
14367
 
{
14368
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14369
 
test_array [0] = 0
14370
 
 
14371
 
  ;
14372
 
  return 0;
14373
 
}
14374
 
_ACEOF
14375
 
rm -f conftest.$ac_objext
14376
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377
 
  (eval $ac_compile) 2>&5
14378
 
  ac_status=$?
14379
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380
 
  (exit $ac_status); } &&
14381
 
         { ac_try='test -s conftest.$ac_objext'
14382
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383
 
  (eval $ac_try) 2>&5
14384
 
  ac_status=$?
14385
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386
 
  (exit $ac_status); }; }; then
14387
 
  ac_hi=$ac_mid
14388
 
else
14389
 
  echo "$as_me: failed program was:" >&5
14390
 
sed 's/^/| /' conftest.$ac_ext >&5
14391
 
 
14392
 
ac_lo=`expr '(' $ac_mid ')' + 1`
14393
 
fi
14394
 
rm -f conftest.$ac_objext conftest.$ac_ext
14395
 
done
14396
 
case $ac_lo in
14397
 
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14398
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
14399
 
See \`config.log' for more details." >&5
14400
 
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
14401
 
See \`config.log' for more details." >&2;}
14402
 
   { (exit 1); exit 1; }; } ;;
14403
 
esac
14404
 
else
14405
 
  if test "$cross_compiling" = yes; then
14406
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14407
 
See \`config.log' for more details." >&5
14408
 
echo "$as_me: error: cannot run test program while cross compiling
14409
 
See \`config.log' for more details." >&2;}
14410
 
   { (exit 1); exit 1; }; }
14411
 
else
14412
 
  cat >conftest.$ac_ext <<_ACEOF
14413
 
#line $LINENO "configure"
14414
 
/* confdefs.h.  */
14415
 
_ACEOF
14416
 
cat confdefs.h >>conftest.$ac_ext
14417
 
cat >>conftest.$ac_ext <<_ACEOF
14418
 
/* end confdefs.h.  */
14419
 
 
14420
 
#include <sys/types.h>
14421
 
#include <stdio.h>
14422
 
 
14423
 
long longval () { return (long) (sizeof (unsigned long)); }
14424
 
unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14425
 
#include <stdio.h>
14426
 
#include <stdlib.h>
14427
 
int
14428
 
main ()
14429
 
{
14430
 
 
14431
 
  FILE *f = fopen ("conftest.val", "w");
14432
 
  if (! f)
14433
 
    exit (1);
14434
 
  if (((long) (sizeof (unsigned long))) < 0)
14435
 
    {
14436
 
      long i = longval ();
14437
 
      if (i != ((long) (sizeof (unsigned long))))
14438
 
        exit (1);
14439
 
      fprintf (f, "%ld\n", i);
14440
 
    }
14441
 
  else
14442
 
    {
14443
 
      unsigned long i = ulongval ();
14444
 
      if (i != ((long) (sizeof (unsigned long))))
14445
 
        exit (1);
14446
 
      fprintf (f, "%lu\n", i);
14447
 
    }
14448
 
  exit (ferror (f) || fclose (f) != 0);
14449
 
 
14450
 
  ;
14451
 
  return 0;
14452
 
}
14453
 
_ACEOF
14454
 
rm -f conftest$ac_exeext
14455
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14456
 
  (eval $ac_link) 2>&5
14457
 
  ac_status=$?
14458
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14460
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461
 
  (eval $ac_try) 2>&5
14462
 
  ac_status=$?
14463
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464
 
  (exit $ac_status); }; }; then
14465
 
  ac_cv_sizeof_unsigned_long=`cat conftest.val`
14466
 
else
14467
 
  echo "$as_me: program exited with status $ac_status" >&5
14468
 
echo "$as_me: failed program was:" >&5
14469
 
sed 's/^/| /' conftest.$ac_ext >&5
14470
 
 
14471
 
( exit $ac_status )
14472
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
14473
 
See \`config.log' for more details." >&5
14474
 
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
14475
 
See \`config.log' for more details." >&2;}
14476
 
   { (exit 1); exit 1; }; }
14477
 
fi
14478
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14479
 
fi
14480
 
fi
14481
 
rm -f conftest.val
14482
 
else
14483
 
  ac_cv_sizeof_unsigned_long=0
14484
 
fi
14485
 
fi
14486
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14487
 
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14488
 
cat >>confdefs.h <<_ACEOF
14489
 
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14490
 
_ACEOF
14491
 
 
14492
 
 
14493
 
echo "$as_me:$LINENO: checking for size_t" >&5
14494
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
14495
 
if test "${ac_cv_type_size_t+set}" = set; then
14496
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14497
 
else
14498
 
  cat >conftest.$ac_ext <<_ACEOF
14499
 
#line $LINENO "configure"
14500
 
/* confdefs.h.  */
14501
 
_ACEOF
14502
 
cat confdefs.h >>conftest.$ac_ext
14503
 
cat >>conftest.$ac_ext <<_ACEOF
14504
 
/* end confdefs.h.  */
14505
 
 
14506
 
#include <sys/types.h>
14507
 
#include <stdio.h>
14508
 
 
14509
 
int
14510
 
main ()
14511
 
{
14512
 
if ((size_t *) 0)
14513
 
  return 0;
14514
 
if (sizeof (size_t))
14515
 
  return 0;
14516
 
  ;
14517
 
  return 0;
14518
 
}
14519
 
_ACEOF
14520
 
rm -f conftest.$ac_objext
14521
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14522
 
  (eval $ac_compile) 2>&5
14523
 
  ac_status=$?
14524
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525
 
  (exit $ac_status); } &&
14526
 
         { ac_try='test -s conftest.$ac_objext'
14527
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528
 
  (eval $ac_try) 2>&5
14529
 
  ac_status=$?
14530
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531
 
  (exit $ac_status); }; }; then
14532
 
  ac_cv_type_size_t=yes
14533
 
else
14534
 
  echo "$as_me: failed program was:" >&5
14535
 
sed 's/^/| /' conftest.$ac_ext >&5
14536
 
 
14537
 
ac_cv_type_size_t=no
14538
 
fi
14539
 
rm -f conftest.$ac_objext conftest.$ac_ext
14540
 
fi
14541
 
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14542
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6
14543
 
 
14544
 
echo "$as_me:$LINENO: checking size of size_t" >&5
14545
 
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
14546
 
if test "${ac_cv_sizeof_size_t+set}" = set; then
14547
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14548
 
else
14549
 
  if test "$ac_cv_type_size_t" = yes; then
14550
 
  # The cast to unsigned long works around a bug in the HP C Compiler
14551
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14552
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14553
 
  # This bug is HP SR number 8606223364.
14554
 
  if test "$cross_compiling" = yes; then
14555
 
  # Depending upon the size, compute the lo and hi bounds.
14556
 
cat >conftest.$ac_ext <<_ACEOF
14557
 
#line $LINENO "configure"
14558
 
/* confdefs.h.  */
14559
 
_ACEOF
14560
 
cat confdefs.h >>conftest.$ac_ext
14561
 
cat >>conftest.$ac_ext <<_ACEOF
14562
 
/* end confdefs.h.  */
14563
 
 
14564
 
#include <sys/types.h>
14565
 
#include <stdio.h>
14566
 
 
14567
 
int
14568
 
main ()
14569
 
{
14570
 
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
14571
 
test_array [0] = 0
14572
 
 
14573
 
  ;
14574
 
  return 0;
14575
 
}
14576
 
_ACEOF
14577
 
rm -f conftest.$ac_objext
14578
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14579
 
  (eval $ac_compile) 2>&5
14580
 
  ac_status=$?
14581
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582
 
  (exit $ac_status); } &&
14583
 
         { ac_try='test -s conftest.$ac_objext'
14584
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585
 
  (eval $ac_try) 2>&5
14586
 
  ac_status=$?
14587
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588
 
  (exit $ac_status); }; }; then
14589
 
  ac_lo=0 ac_mid=0
14590
 
  while :; do
14591
 
    cat >conftest.$ac_ext <<_ACEOF
14592
 
#line $LINENO "configure"
14593
 
/* confdefs.h.  */
14594
 
_ACEOF
14595
 
cat confdefs.h >>conftest.$ac_ext
14596
 
cat >>conftest.$ac_ext <<_ACEOF
14597
 
/* end confdefs.h.  */
14598
 
 
14599
 
#include <sys/types.h>
14600
 
#include <stdio.h>
14601
 
 
14602
 
int
14603
 
main ()
14604
 
{
14605
 
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
14606
 
test_array [0] = 0
14607
 
 
14608
 
  ;
14609
 
  return 0;
14610
 
}
14611
 
_ACEOF
14612
 
rm -f conftest.$ac_objext
14613
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14614
 
  (eval $ac_compile) 2>&5
14615
 
  ac_status=$?
14616
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617
 
  (exit $ac_status); } &&
14618
 
         { ac_try='test -s conftest.$ac_objext'
14619
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620
 
  (eval $ac_try) 2>&5
14621
 
  ac_status=$?
14622
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623
 
  (exit $ac_status); }; }; then
14624
 
  ac_hi=$ac_mid; break
14625
 
else
14626
 
  echo "$as_me: failed program was:" >&5
14627
 
sed 's/^/| /' conftest.$ac_ext >&5
14628
 
 
14629
 
ac_lo=`expr $ac_mid + 1`
14630
 
                    if test $ac_lo -le $ac_mid; then
14631
 
                      ac_lo= ac_hi=
14632
 
                      break
14633
 
                    fi
14634
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
14635
 
fi
14636
 
rm -f conftest.$ac_objext conftest.$ac_ext
14637
 
  done
14638
 
else
14639
 
  echo "$as_me: failed program was:" >&5
14640
 
sed 's/^/| /' conftest.$ac_ext >&5
14641
 
 
14642
 
cat >conftest.$ac_ext <<_ACEOF
14643
 
#line $LINENO "configure"
14644
 
/* confdefs.h.  */
14645
 
_ACEOF
14646
 
cat confdefs.h >>conftest.$ac_ext
14647
 
cat >>conftest.$ac_ext <<_ACEOF
14648
 
/* end confdefs.h.  */
14649
 
 
14650
 
#include <sys/types.h>
14651
 
#include <stdio.h>
14652
 
 
14653
 
int
14654
 
main ()
14655
 
{
14656
 
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
14657
 
test_array [0] = 0
14658
 
 
14659
 
  ;
14660
 
  return 0;
14661
 
}
14662
 
_ACEOF
14663
 
rm -f conftest.$ac_objext
14664
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14665
 
  (eval $ac_compile) 2>&5
14666
 
  ac_status=$?
14667
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668
 
  (exit $ac_status); } &&
14669
 
         { ac_try='test -s conftest.$ac_objext'
14670
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671
 
  (eval $ac_try) 2>&5
14672
 
  ac_status=$?
14673
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674
 
  (exit $ac_status); }; }; then
14675
 
  ac_hi=-1 ac_mid=-1
14676
 
  while :; do
14677
 
    cat >conftest.$ac_ext <<_ACEOF
14678
 
#line $LINENO "configure"
14679
 
/* confdefs.h.  */
14680
 
_ACEOF
14681
 
cat confdefs.h >>conftest.$ac_ext
14682
 
cat >>conftest.$ac_ext <<_ACEOF
14683
 
/* end confdefs.h.  */
14684
 
 
14685
 
#include <sys/types.h>
14686
 
#include <stdio.h>
14687
 
 
14688
 
int
14689
 
main ()
14690
 
{
14691
 
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
14692
 
test_array [0] = 0
14693
 
 
14694
 
  ;
14695
 
  return 0;
14696
 
}
14697
 
_ACEOF
14698
 
rm -f conftest.$ac_objext
14699
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14700
 
  (eval $ac_compile) 2>&5
14701
 
  ac_status=$?
14702
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703
 
  (exit $ac_status); } &&
14704
 
         { ac_try='test -s conftest.$ac_objext'
14705
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706
 
  (eval $ac_try) 2>&5
14707
 
  ac_status=$?
14708
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709
 
  (exit $ac_status); }; }; then
14710
 
  ac_lo=$ac_mid; break
14711
 
else
14712
 
  echo "$as_me: failed program was:" >&5
14713
 
sed 's/^/| /' conftest.$ac_ext >&5
14714
 
 
14715
 
ac_hi=`expr '(' $ac_mid ')' - 1`
14716
 
                       if test $ac_mid -le $ac_hi; then
14717
 
                         ac_lo= ac_hi=
14718
 
                         break
14719
 
                       fi
14720
 
                       ac_mid=`expr 2 '*' $ac_mid`
14721
 
fi
14722
 
rm -f conftest.$ac_objext conftest.$ac_ext
14723
 
  done
14724
 
else
14725
 
  echo "$as_me: failed program was:" >&5
14726
 
sed 's/^/| /' conftest.$ac_ext >&5
14727
 
 
14728
 
ac_lo= ac_hi=
14729
 
fi
14730
 
rm -f conftest.$ac_objext conftest.$ac_ext
14731
 
fi
14732
 
rm -f conftest.$ac_objext conftest.$ac_ext
14733
 
# Binary search between lo and hi bounds.
14734
 
while test "x$ac_lo" != "x$ac_hi"; do
14735
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14736
 
  cat >conftest.$ac_ext <<_ACEOF
14737
 
#line $LINENO "configure"
14738
 
/* confdefs.h.  */
14739
 
_ACEOF
14740
 
cat confdefs.h >>conftest.$ac_ext
14741
 
cat >>conftest.$ac_ext <<_ACEOF
14742
 
/* end confdefs.h.  */
14743
 
 
14744
 
#include <sys/types.h>
14745
 
#include <stdio.h>
14746
 
 
14747
 
int
14748
 
main ()
14749
 
{
14750
 
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
14751
 
test_array [0] = 0
14752
 
 
14753
 
  ;
14754
 
  return 0;
14755
 
}
14756
 
_ACEOF
14757
 
rm -f conftest.$ac_objext
14758
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14759
 
  (eval $ac_compile) 2>&5
14760
 
  ac_status=$?
14761
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762
 
  (exit $ac_status); } &&
14763
 
         { ac_try='test -s conftest.$ac_objext'
14764
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765
 
  (eval $ac_try) 2>&5
14766
 
  ac_status=$?
14767
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768
 
  (exit $ac_status); }; }; then
14769
 
  ac_hi=$ac_mid
14770
 
else
14771
 
  echo "$as_me: failed program was:" >&5
14772
 
sed 's/^/| /' conftest.$ac_ext >&5
14773
 
 
14774
 
ac_lo=`expr '(' $ac_mid ')' + 1`
14775
 
fi
14776
 
rm -f conftest.$ac_objext conftest.$ac_ext
14777
 
done
14778
 
case $ac_lo in
14779
 
?*) ac_cv_sizeof_size_t=$ac_lo;;
14780
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
14781
 
See \`config.log' for more details." >&5
14782
 
echo "$as_me: error: cannot compute sizeof (size_t), 77
14783
 
See \`config.log' for more details." >&2;}
14784
 
   { (exit 1); exit 1; }; } ;;
14785
 
esac
14786
 
else
14787
 
  if test "$cross_compiling" = yes; then
14788
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14789
 
See \`config.log' for more details." >&5
14790
 
echo "$as_me: error: cannot run test program while cross compiling
14791
 
See \`config.log' for more details." >&2;}
14792
 
   { (exit 1); exit 1; }; }
14793
 
else
14794
 
  cat >conftest.$ac_ext <<_ACEOF
14795
 
#line $LINENO "configure"
14796
 
/* confdefs.h.  */
14797
 
_ACEOF
14798
 
cat confdefs.h >>conftest.$ac_ext
14799
 
cat >>conftest.$ac_ext <<_ACEOF
14800
 
/* end confdefs.h.  */
14801
 
 
14802
 
#include <sys/types.h>
14803
 
#include <stdio.h>
14804
 
 
14805
 
long longval () { return (long) (sizeof (size_t)); }
14806
 
unsigned long ulongval () { return (long) (sizeof (size_t)); }
14807
 
#include <stdio.h>
14808
 
#include <stdlib.h>
14809
 
int
14810
 
main ()
14811
 
{
14812
 
 
14813
 
  FILE *f = fopen ("conftest.val", "w");
14814
 
  if (! f)
14815
 
    exit (1);
14816
 
  if (((long) (sizeof (size_t))) < 0)
14817
 
    {
14818
 
      long i = longval ();
14819
 
      if (i != ((long) (sizeof (size_t))))
14820
 
        exit (1);
14821
 
      fprintf (f, "%ld\n", i);
14822
 
    }
14823
 
  else
14824
 
    {
14825
 
      unsigned long i = ulongval ();
14826
 
      if (i != ((long) (sizeof (size_t))))
14827
 
        exit (1);
14828
 
      fprintf (f, "%lu\n", i);
14829
 
    }
14830
 
  exit (ferror (f) || fclose (f) != 0);
14831
 
 
14832
 
  ;
14833
 
  return 0;
14834
 
}
14835
 
_ACEOF
14836
 
rm -f conftest$ac_exeext
14837
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14838
 
  (eval $ac_link) 2>&5
14839
 
  ac_status=$?
14840
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14842
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843
 
  (eval $ac_try) 2>&5
14844
 
  ac_status=$?
14845
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846
 
  (exit $ac_status); }; }; then
14847
 
  ac_cv_sizeof_size_t=`cat conftest.val`
14848
 
else
14849
 
  echo "$as_me: program exited with status $ac_status" >&5
14850
 
echo "$as_me: failed program was:" >&5
14851
 
sed 's/^/| /' conftest.$ac_ext >&5
14852
 
 
14853
 
( exit $ac_status )
14854
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
14855
 
See \`config.log' for more details." >&5
14856
 
echo "$as_me: error: cannot compute sizeof (size_t), 77
14857
 
See \`config.log' for more details." >&2;}
14858
 
   { (exit 1); exit 1; }; }
14859
 
fi
14860
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14861
 
fi
14862
 
fi
14863
 
rm -f conftest.val
14864
 
else
14865
 
  ac_cv_sizeof_size_t=0
14866
 
fi
14867
 
fi
14868
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
14869
 
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
14870
 
cat >>confdefs.h <<_ACEOF
14871
 
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14872
 
_ACEOF
14873
 
 
14874
 
 
14875
 
echo "$as_me:$LINENO: checking for char *" >&5
14876
 
echo $ECHO_N "checking for char *... $ECHO_C" >&6
14877
 
if test "${ac_cv_type_char_p+set}" = set; then
14878
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14879
 
else
14880
 
  cat >conftest.$ac_ext <<_ACEOF
14881
 
#line $LINENO "configure"
14882
 
/* confdefs.h.  */
14883
 
_ACEOF
14884
 
cat confdefs.h >>conftest.$ac_ext
14885
 
cat >>conftest.$ac_ext <<_ACEOF
14886
 
/* end confdefs.h.  */
14887
 
 
14888
 
#include <sys/types.h>
14889
 
#include <stdio.h>
14890
 
 
14891
 
int
14892
 
main ()
14893
 
{
14894
 
if ((char * *) 0)
14895
 
  return 0;
14896
 
if (sizeof (char *))
14897
 
  return 0;
14898
 
  ;
14899
 
  return 0;
14900
 
}
14901
 
_ACEOF
14902
 
rm -f conftest.$ac_objext
14903
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14904
 
  (eval $ac_compile) 2>&5
14905
 
  ac_status=$?
14906
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907
 
  (exit $ac_status); } &&
14908
 
         { ac_try='test -s conftest.$ac_objext'
14909
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910
 
  (eval $ac_try) 2>&5
14911
 
  ac_status=$?
14912
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913
 
  (exit $ac_status); }; }; then
14914
 
  ac_cv_type_char_p=yes
14915
 
else
14916
 
  echo "$as_me: failed program was:" >&5
14917
 
sed 's/^/| /' conftest.$ac_ext >&5
14918
 
 
14919
 
ac_cv_type_char_p=no
14920
 
fi
14921
 
rm -f conftest.$ac_objext conftest.$ac_ext
14922
 
fi
14923
 
echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
14924
 
echo "${ECHO_T}$ac_cv_type_char_p" >&6
14925
 
 
14926
 
echo "$as_me:$LINENO: checking size of char *" >&5
14927
 
echo $ECHO_N "checking size of char *... $ECHO_C" >&6
14928
 
if test "${ac_cv_sizeof_char_p+set}" = set; then
14929
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14930
 
else
14931
 
  if test "$ac_cv_type_char_p" = yes; then
14932
 
  # The cast to unsigned long works around a bug in the HP C Compiler
14933
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14934
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14935
 
  # This bug is HP SR number 8606223364.
14936
 
  if test "$cross_compiling" = yes; then
14937
 
  # Depending upon the size, compute the lo and hi bounds.
14938
 
cat >conftest.$ac_ext <<_ACEOF
14939
 
#line $LINENO "configure"
14940
 
/* confdefs.h.  */
14941
 
_ACEOF
14942
 
cat confdefs.h >>conftest.$ac_ext
14943
 
cat >>conftest.$ac_ext <<_ACEOF
14944
 
/* end confdefs.h.  */
14945
 
 
14946
 
#include <sys/types.h>
14947
 
#include <stdio.h>
14948
 
 
14949
 
int
14950
 
main ()
14951
 
{
14952
 
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
14953
 
test_array [0] = 0
14954
 
 
14955
 
  ;
14956
 
  return 0;
14957
 
}
14958
 
_ACEOF
14959
 
rm -f conftest.$ac_objext
14960
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14961
 
  (eval $ac_compile) 2>&5
14962
 
  ac_status=$?
14963
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964
 
  (exit $ac_status); } &&
14965
 
         { ac_try='test -s conftest.$ac_objext'
14966
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967
 
  (eval $ac_try) 2>&5
14968
 
  ac_status=$?
14969
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970
 
  (exit $ac_status); }; }; then
14971
 
  ac_lo=0 ac_mid=0
14972
 
  while :; do
14973
 
    cat >conftest.$ac_ext <<_ACEOF
14974
 
#line $LINENO "configure"
14975
 
/* confdefs.h.  */
14976
 
_ACEOF
14977
 
cat confdefs.h >>conftest.$ac_ext
14978
 
cat >>conftest.$ac_ext <<_ACEOF
14979
 
/* end confdefs.h.  */
14980
 
 
14981
 
#include <sys/types.h>
14982
 
#include <stdio.h>
14983
 
 
14984
 
int
14985
 
main ()
14986
 
{
14987
 
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
14988
 
test_array [0] = 0
14989
 
 
14990
 
  ;
14991
 
  return 0;
14992
 
}
14993
 
_ACEOF
14994
 
rm -f conftest.$ac_objext
14995
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14996
 
  (eval $ac_compile) 2>&5
14997
 
  ac_status=$?
14998
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999
 
  (exit $ac_status); } &&
15000
 
         { ac_try='test -s conftest.$ac_objext'
15001
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002
 
  (eval $ac_try) 2>&5
15003
 
  ac_status=$?
15004
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005
 
  (exit $ac_status); }; }; then
15006
 
  ac_hi=$ac_mid; break
15007
 
else
15008
 
  echo "$as_me: failed program was:" >&5
15009
 
sed 's/^/| /' conftest.$ac_ext >&5
15010
 
 
15011
 
ac_lo=`expr $ac_mid + 1`
15012
 
                    if test $ac_lo -le $ac_mid; then
15013
 
                      ac_lo= ac_hi=
15014
 
                      break
15015
 
                    fi
15016
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
15017
 
fi
15018
 
rm -f conftest.$ac_objext conftest.$ac_ext
15019
 
  done
15020
 
else
15021
 
  echo "$as_me: failed program was:" >&5
15022
 
sed 's/^/| /' conftest.$ac_ext >&5
15023
 
 
15024
 
cat >conftest.$ac_ext <<_ACEOF
15025
 
#line $LINENO "configure"
15026
 
/* confdefs.h.  */
15027
 
_ACEOF
15028
 
cat confdefs.h >>conftest.$ac_ext
15029
 
cat >>conftest.$ac_ext <<_ACEOF
15030
 
/* end confdefs.h.  */
15031
 
 
15032
 
#include <sys/types.h>
15033
 
#include <stdio.h>
15034
 
 
15035
 
int
15036
 
main ()
15037
 
{
15038
 
static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
15039
 
test_array [0] = 0
15040
 
 
15041
 
  ;
15042
 
  return 0;
15043
 
}
15044
 
_ACEOF
15045
 
rm -f conftest.$ac_objext
15046
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15047
 
  (eval $ac_compile) 2>&5
15048
 
  ac_status=$?
15049
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050
 
  (exit $ac_status); } &&
15051
 
         { ac_try='test -s conftest.$ac_objext'
15052
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053
 
  (eval $ac_try) 2>&5
15054
 
  ac_status=$?
15055
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056
 
  (exit $ac_status); }; }; then
15057
 
  ac_hi=-1 ac_mid=-1
15058
 
  while :; do
15059
 
    cat >conftest.$ac_ext <<_ACEOF
15060
 
#line $LINENO "configure"
15061
 
/* confdefs.h.  */
15062
 
_ACEOF
15063
 
cat confdefs.h >>conftest.$ac_ext
15064
 
cat >>conftest.$ac_ext <<_ACEOF
15065
 
/* end confdefs.h.  */
15066
 
 
15067
 
#include <sys/types.h>
15068
 
#include <stdio.h>
15069
 
 
15070
 
int
15071
 
main ()
15072
 
{
15073
 
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
15074
 
test_array [0] = 0
15075
 
 
15076
 
  ;
15077
 
  return 0;
15078
 
}
15079
 
_ACEOF
15080
 
rm -f conftest.$ac_objext
15081
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15082
 
  (eval $ac_compile) 2>&5
15083
 
  ac_status=$?
15084
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085
 
  (exit $ac_status); } &&
15086
 
         { ac_try='test -s conftest.$ac_objext'
15087
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088
 
  (eval $ac_try) 2>&5
15089
 
  ac_status=$?
15090
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091
 
  (exit $ac_status); }; }; then
15092
 
  ac_lo=$ac_mid; break
15093
 
else
15094
 
  echo "$as_me: failed program was:" >&5
15095
 
sed 's/^/| /' conftest.$ac_ext >&5
15096
 
 
15097
 
ac_hi=`expr '(' $ac_mid ')' - 1`
15098
 
                       if test $ac_mid -le $ac_hi; then
15099
 
                         ac_lo= ac_hi=
15100
 
                         break
15101
 
                       fi
15102
 
                       ac_mid=`expr 2 '*' $ac_mid`
15103
 
fi
15104
 
rm -f conftest.$ac_objext conftest.$ac_ext
15105
 
  done
15106
 
else
15107
 
  echo "$as_me: failed program was:" >&5
15108
 
sed 's/^/| /' conftest.$ac_ext >&5
15109
 
 
15110
 
ac_lo= ac_hi=
15111
 
fi
15112
 
rm -f conftest.$ac_objext conftest.$ac_ext
15113
 
fi
15114
 
rm -f conftest.$ac_objext conftest.$ac_ext
15115
 
# Binary search between lo and hi bounds.
15116
 
while test "x$ac_lo" != "x$ac_hi"; do
15117
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15118
 
  cat >conftest.$ac_ext <<_ACEOF
15119
 
#line $LINENO "configure"
15120
 
/* confdefs.h.  */
15121
 
_ACEOF
15122
 
cat confdefs.h >>conftest.$ac_ext
15123
 
cat >>conftest.$ac_ext <<_ACEOF
15124
 
/* end confdefs.h.  */
15125
 
 
15126
 
#include <sys/types.h>
15127
 
#include <stdio.h>
15128
 
 
15129
 
int
15130
 
main ()
15131
 
{
15132
 
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
15133
 
test_array [0] = 0
15134
 
 
15135
 
  ;
15136
 
  return 0;
15137
 
}
15138
 
_ACEOF
15139
 
rm -f conftest.$ac_objext
15140
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15141
 
  (eval $ac_compile) 2>&5
15142
 
  ac_status=$?
15143
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144
 
  (exit $ac_status); } &&
15145
 
         { ac_try='test -s conftest.$ac_objext'
15146
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15147
 
  (eval $ac_try) 2>&5
15148
 
  ac_status=$?
15149
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150
 
  (exit $ac_status); }; }; then
15151
 
  ac_hi=$ac_mid
15152
 
else
15153
 
  echo "$as_me: failed program was:" >&5
15154
 
sed 's/^/| /' conftest.$ac_ext >&5
15155
 
 
15156
 
ac_lo=`expr '(' $ac_mid ')' + 1`
15157
 
fi
15158
 
rm -f conftest.$ac_objext conftest.$ac_ext
15159
 
done
15160
 
case $ac_lo in
15161
 
?*) ac_cv_sizeof_char_p=$ac_lo;;
15162
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
15163
 
See \`config.log' for more details." >&5
15164
 
echo "$as_me: error: cannot compute sizeof (char *), 77
15165
 
See \`config.log' for more details." >&2;}
15166
 
   { (exit 1); exit 1; }; } ;;
15167
 
esac
15168
 
else
15169
 
  if test "$cross_compiling" = yes; then
15170
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15171
 
See \`config.log' for more details." >&5
15172
 
echo "$as_me: error: cannot run test program while cross compiling
15173
 
See \`config.log' for more details." >&2;}
15174
 
   { (exit 1); exit 1; }; }
15175
 
else
15176
 
  cat >conftest.$ac_ext <<_ACEOF
15177
 
#line $LINENO "configure"
15178
 
/* confdefs.h.  */
15179
 
_ACEOF
15180
 
cat confdefs.h >>conftest.$ac_ext
15181
 
cat >>conftest.$ac_ext <<_ACEOF
15182
 
/* end confdefs.h.  */
15183
 
 
15184
 
#include <sys/types.h>
15185
 
#include <stdio.h>
15186
 
 
15187
 
long longval () { return (long) (sizeof (char *)); }
15188
 
unsigned long ulongval () { return (long) (sizeof (char *)); }
15189
 
#include <stdio.h>
15190
 
#include <stdlib.h>
15191
 
int
15192
 
main ()
15193
 
{
15194
 
 
15195
 
  FILE *f = fopen ("conftest.val", "w");
15196
 
  if (! f)
15197
 
    exit (1);
15198
 
  if (((long) (sizeof (char *))) < 0)
15199
 
    {
15200
 
      long i = longval ();
15201
 
      if (i != ((long) (sizeof (char *))))
15202
 
        exit (1);
15203
 
      fprintf (f, "%ld\n", i);
15204
 
    }
15205
 
  else
15206
 
    {
15207
 
      unsigned long i = ulongval ();
15208
 
      if (i != ((long) (sizeof (char *))))
15209
 
        exit (1);
15210
 
      fprintf (f, "%lu\n", i);
15211
 
    }
15212
 
  exit (ferror (f) || fclose (f) != 0);
15213
 
 
15214
 
  ;
15215
 
  return 0;
15216
 
}
15217
 
_ACEOF
15218
 
rm -f conftest$ac_exeext
15219
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15220
 
  (eval $ac_link) 2>&5
15221
 
  ac_status=$?
15222
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15224
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15225
 
  (eval $ac_try) 2>&5
15226
 
  ac_status=$?
15227
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228
 
  (exit $ac_status); }; }; then
15229
 
  ac_cv_sizeof_char_p=`cat conftest.val`
15230
 
else
15231
 
  echo "$as_me: program exited with status $ac_status" >&5
15232
 
echo "$as_me: failed program was:" >&5
15233
 
sed 's/^/| /' conftest.$ac_ext >&5
15234
 
 
15235
 
( exit $ac_status )
15236
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
15237
 
See \`config.log' for more details." >&5
15238
 
echo "$as_me: error: cannot compute sizeof (char *), 77
15239
 
See \`config.log' for more details." >&2;}
15240
 
   { (exit 1); exit 1; }; }
15241
 
fi
15242
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15243
 
fi
15244
 
fi
15245
 
rm -f conftest.val
15246
 
else
15247
 
  ac_cv_sizeof_char_p=0
15248
 
fi
15249
 
fi
15250
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
15251
 
echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
15252
 
cat >>confdefs.h <<_ACEOF
15253
 
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
15254
 
_ACEOF
15255
 
 
15256
 
 
15257
 
 
15258
 
# We require off_t and size_t, and we don't try to substitute our own
15259
 
# if we can't find them.
15260
 
echo "$as_me:$LINENO: checking for off_t" >&5
15261
 
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
15262
 
if test "${ac_cv_type_off_t+set}" = set; then
15263
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15264
 
else
15265
 
  cat >conftest.$ac_ext <<_ACEOF
15266
 
#line $LINENO "configure"
15267
 
/* confdefs.h.  */
15268
 
_ACEOF
15269
 
cat confdefs.h >>conftest.$ac_ext
15270
 
cat >>conftest.$ac_ext <<_ACEOF
15271
 
/* end confdefs.h.  */
15272
 
 
15273
 
#include <sys/types.h>
15274
 
#include <stdio.h>
15275
 
 
15276
 
int
15277
 
main ()
15278
 
{
15279
 
if ((off_t *) 0)
15280
 
  return 0;
15281
 
if (sizeof (off_t))
15282
 
  return 0;
15283
 
  ;
15284
 
  return 0;
15285
 
}
15286
 
_ACEOF
15287
 
rm -f conftest.$ac_objext
15288
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15289
 
  (eval $ac_compile) 2>&5
15290
 
  ac_status=$?
15291
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292
 
  (exit $ac_status); } &&
15293
 
         { ac_try='test -s conftest.$ac_objext'
15294
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15295
 
  (eval $ac_try) 2>&5
15296
 
  ac_status=$?
15297
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298
 
  (exit $ac_status); }; }; then
15299
 
  ac_cv_type_off_t=yes
15300
 
else
15301
 
  echo "$as_me: failed program was:" >&5
15302
 
sed 's/^/| /' conftest.$ac_ext >&5
15303
 
 
15304
 
ac_cv_type_off_t=no
15305
 
fi
15306
 
rm -f conftest.$ac_objext conftest.$ac_ext
15307
 
fi
15308
 
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
15309
 
echo "${ECHO_T}$ac_cv_type_off_t" >&6
15310
 
 
15311
 
if test "$ac_cv_type_off_t" = no; then
15312
 
        { { echo "$as_me:$LINENO: error: No off_t type." >&5
15313
 
echo "$as_me: error: No off_t type." >&2;}
15314
 
   { (exit 1); exit 1; }; }
15315
 
fi
15316
 
 
15317
 
echo "$as_me:$LINENO: checking for size_t" >&5
15318
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15319
 
if test "${ac_cv_type_size_t+set}" = set; then
15320
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15321
 
else
15322
 
  cat >conftest.$ac_ext <<_ACEOF
15323
 
#line $LINENO "configure"
15324
 
/* confdefs.h.  */
15325
 
_ACEOF
15326
 
cat confdefs.h >>conftest.$ac_ext
15327
 
cat >>conftest.$ac_ext <<_ACEOF
15328
 
/* end confdefs.h.  */
15329
 
 
15330
 
#include <sys/types.h>
15331
 
#include <stdio.h>
15332
 
 
15333
 
int
15334
 
main ()
15335
 
{
15336
 
if ((size_t *) 0)
15337
 
  return 0;
15338
 
if (sizeof (size_t))
15339
 
  return 0;
15340
 
  ;
15341
 
  return 0;
15342
 
}
15343
 
_ACEOF
15344
 
rm -f conftest.$ac_objext
15345
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15346
 
  (eval $ac_compile) 2>&5
15347
 
  ac_status=$?
15348
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349
 
  (exit $ac_status); } &&
15350
 
         { ac_try='test -s conftest.$ac_objext'
15351
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352
 
  (eval $ac_try) 2>&5
15353
 
  ac_status=$?
15354
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355
 
  (exit $ac_status); }; }; then
15356
 
  ac_cv_type_size_t=yes
15357
 
else
15358
 
  echo "$as_me: failed program was:" >&5
15359
 
sed 's/^/| /' conftest.$ac_ext >&5
15360
 
 
15361
 
ac_cv_type_size_t=no
15362
 
fi
15363
 
rm -f conftest.$ac_objext conftest.$ac_ext
15364
 
fi
15365
 
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15366
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6
15367
 
 
15368
 
if test "$ac_cv_type_size_t" = no; then
15369
 
        { { echo "$as_me:$LINENO: error: No size_t type." >&5
15370
 
echo "$as_me: error: No size_t type." >&2;}
15371
 
   { (exit 1); exit 1; }; }
15372
 
fi
15373
 
 
15374
 
# We look for u_char, u_short, u_int, u_long -- if we can't find them,
15375
 
# we create our own.
15376
 
 
15377
 
echo "$as_me:$LINENO: checking for u_char" >&5
15378
 
echo $ECHO_N "checking for u_char... $ECHO_C" >&6
15379
 
if test "${ac_cv_type_u_char+set}" = set; then
15380
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15381
 
else
15382
 
  cat >conftest.$ac_ext <<_ACEOF
15383
 
#line $LINENO "configure"
15384
 
/* confdefs.h.  */
15385
 
_ACEOF
15386
 
cat confdefs.h >>conftest.$ac_ext
15387
 
cat >>conftest.$ac_ext <<_ACEOF
15388
 
/* end confdefs.h.  */
15389
 
 
15390
 
#include <sys/types.h>
15391
 
#include <stdio.h>
15392
 
 
15393
 
int
15394
 
main ()
15395
 
{
15396
 
if ((u_char *) 0)
15397
 
  return 0;
15398
 
if (sizeof (u_char))
15399
 
  return 0;
15400
 
  ;
15401
 
  return 0;
15402
 
}
15403
 
_ACEOF
15404
 
rm -f conftest.$ac_objext
15405
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15406
 
  (eval $ac_compile) 2>&5
15407
 
  ac_status=$?
15408
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409
 
  (exit $ac_status); } &&
15410
 
         { ac_try='test -s conftest.$ac_objext'
15411
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412
 
  (eval $ac_try) 2>&5
15413
 
  ac_status=$?
15414
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415
 
  (exit $ac_status); }; }; then
15416
 
  ac_cv_type_u_char=yes
15417
 
else
15418
 
  echo "$as_me: failed program was:" >&5
15419
 
sed 's/^/| /' conftest.$ac_ext >&5
15420
 
 
15421
 
ac_cv_type_u_char=no
15422
 
fi
15423
 
rm -f conftest.$ac_objext conftest.$ac_ext
15424
 
fi
15425
 
echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5
15426
 
echo "${ECHO_T}$ac_cv_type_u_char" >&6
15427
 
 
15428
 
if test "$ac_cv_type_u_char" = no; then
15429
 
        u_char_decl="typedef unsigned char u_char;"
15430
 
fi
15431
 
 
15432
 
 
15433
 
echo "$as_me:$LINENO: checking for u_short" >&5
15434
 
echo $ECHO_N "checking for u_short... $ECHO_C" >&6
15435
 
if test "${ac_cv_type_u_short+set}" = set; then
15436
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15437
 
else
15438
 
  cat >conftest.$ac_ext <<_ACEOF
15439
 
#line $LINENO "configure"
15440
 
/* confdefs.h.  */
15441
 
_ACEOF
15442
 
cat confdefs.h >>conftest.$ac_ext
15443
 
cat >>conftest.$ac_ext <<_ACEOF
15444
 
/* end confdefs.h.  */
15445
 
 
15446
 
#include <sys/types.h>
15447
 
#include <stdio.h>
15448
 
 
15449
 
int
15450
 
main ()
15451
 
{
15452
 
if ((u_short *) 0)
15453
 
  return 0;
15454
 
if (sizeof (u_short))
15455
 
  return 0;
15456
 
  ;
15457
 
  return 0;
15458
 
}
15459
 
_ACEOF
15460
 
rm -f conftest.$ac_objext
15461
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15462
 
  (eval $ac_compile) 2>&5
15463
 
  ac_status=$?
15464
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465
 
  (exit $ac_status); } &&
15466
 
         { ac_try='test -s conftest.$ac_objext'
15467
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468
 
  (eval $ac_try) 2>&5
15469
 
  ac_status=$?
15470
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471
 
  (exit $ac_status); }; }; then
15472
 
  ac_cv_type_u_short=yes
15473
 
else
15474
 
  echo "$as_me: failed program was:" >&5
15475
 
sed 's/^/| /' conftest.$ac_ext >&5
15476
 
 
15477
 
ac_cv_type_u_short=no
15478
 
fi
15479
 
rm -f conftest.$ac_objext conftest.$ac_ext
15480
 
fi
15481
 
echo "$as_me:$LINENO: result: $ac_cv_type_u_short" >&5
15482
 
echo "${ECHO_T}$ac_cv_type_u_short" >&6
15483
 
 
15484
 
if test "$ac_cv_type_u_short" = no; then
15485
 
        u_short_decl="typedef unsigned short u_short;"
15486
 
fi
15487
 
 
15488
 
 
15489
 
echo "$as_me:$LINENO: checking for u_int" >&5
15490
 
echo $ECHO_N "checking for u_int... $ECHO_C" >&6
15491
 
if test "${ac_cv_type_u_int+set}" = set; then
15492
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15493
 
else
15494
 
  cat >conftest.$ac_ext <<_ACEOF
15495
 
#line $LINENO "configure"
15496
 
/* confdefs.h.  */
15497
 
_ACEOF
15498
 
cat confdefs.h >>conftest.$ac_ext
15499
 
cat >>conftest.$ac_ext <<_ACEOF
15500
 
/* end confdefs.h.  */
15501
 
 
15502
 
#include <sys/types.h>
15503
 
#include <stdio.h>
15504
 
 
15505
 
int
15506
 
main ()
15507
 
{
15508
 
if ((u_int *) 0)
15509
 
  return 0;
15510
 
if (sizeof (u_int))
15511
 
  return 0;
15512
 
  ;
15513
 
  return 0;
15514
 
}
15515
 
_ACEOF
15516
 
rm -f conftest.$ac_objext
15517
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15518
 
  (eval $ac_compile) 2>&5
15519
 
  ac_status=$?
15520
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521
 
  (exit $ac_status); } &&
15522
 
         { ac_try='test -s conftest.$ac_objext'
15523
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524
 
  (eval $ac_try) 2>&5
15525
 
  ac_status=$?
15526
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527
 
  (exit $ac_status); }; }; then
15528
 
  ac_cv_type_u_int=yes
15529
 
else
15530
 
  echo "$as_me: failed program was:" >&5
15531
 
sed 's/^/| /' conftest.$ac_ext >&5
15532
 
 
15533
 
ac_cv_type_u_int=no
15534
 
fi
15535
 
rm -f conftest.$ac_objext conftest.$ac_ext
15536
 
fi
15537
 
echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
15538
 
echo "${ECHO_T}$ac_cv_type_u_int" >&6
15539
 
 
15540
 
if test "$ac_cv_type_u_int" = no; then
15541
 
        u_int_decl="typedef unsigned int u_int;"
15542
 
fi
15543
 
 
15544
 
 
15545
 
echo "$as_me:$LINENO: checking for u_long" >&5
15546
 
echo $ECHO_N "checking for u_long... $ECHO_C" >&6
15547
 
if test "${ac_cv_type_u_long+set}" = set; then
15548
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15549
 
else
15550
 
  cat >conftest.$ac_ext <<_ACEOF
15551
 
#line $LINENO "configure"
15552
 
/* confdefs.h.  */
15553
 
_ACEOF
15554
 
cat confdefs.h >>conftest.$ac_ext
15555
 
cat >>conftest.$ac_ext <<_ACEOF
15556
 
/* end confdefs.h.  */
15557
 
 
15558
 
#include <sys/types.h>
15559
 
#include <stdio.h>
15560
 
 
15561
 
int
15562
 
main ()
15563
 
{
15564
 
if ((u_long *) 0)
15565
 
  return 0;
15566
 
if (sizeof (u_long))
15567
 
  return 0;
15568
 
  ;
15569
 
  return 0;
15570
 
}
15571
 
_ACEOF
15572
 
rm -f conftest.$ac_objext
15573
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15574
 
  (eval $ac_compile) 2>&5
15575
 
  ac_status=$?
15576
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577
 
  (exit $ac_status); } &&
15578
 
         { ac_try='test -s conftest.$ac_objext'
15579
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580
 
  (eval $ac_try) 2>&5
15581
 
  ac_status=$?
15582
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583
 
  (exit $ac_status); }; }; then
15584
 
  ac_cv_type_u_long=yes
15585
 
else
15586
 
  echo "$as_me: failed program was:" >&5
15587
 
sed 's/^/| /' conftest.$ac_ext >&5
15588
 
 
15589
 
ac_cv_type_u_long=no
15590
 
fi
15591
 
rm -f conftest.$ac_objext conftest.$ac_ext
15592
 
fi
15593
 
echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
15594
 
echo "${ECHO_T}$ac_cv_type_u_long" >&6
15595
 
 
15596
 
if test "$ac_cv_type_u_long" = no; then
15597
 
        u_long_decl="typedef unsigned long u_long;"
15598
 
fi
15599
 
 
15600
 
 
15601
 
echo "$as_me:$LINENO: checking for u_int8_t" >&5
15602
 
echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
15603
 
if test "${ac_cv_type_u_int8_t+set}" = set; then
15604
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15605
 
else
15606
 
  cat >conftest.$ac_ext <<_ACEOF
15607
 
#line $LINENO "configure"
15608
 
/* confdefs.h.  */
15609
 
_ACEOF
15610
 
cat confdefs.h >>conftest.$ac_ext
15611
 
cat >>conftest.$ac_ext <<_ACEOF
15612
 
/* end confdefs.h.  */
15613
 
 
15614
 
#include <sys/types.h>
15615
 
#include <stdio.h>
15616
 
 
15617
 
int
15618
 
main ()
15619
 
{
15620
 
if ((u_int8_t *) 0)
15621
 
  return 0;
15622
 
if (sizeof (u_int8_t))
15623
 
  return 0;
15624
 
  ;
15625
 
  return 0;
15626
 
}
15627
 
_ACEOF
15628
 
rm -f conftest.$ac_objext
15629
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15630
 
  (eval $ac_compile) 2>&5
15631
 
  ac_status=$?
15632
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633
 
  (exit $ac_status); } &&
15634
 
         { ac_try='test -s conftest.$ac_objext'
15635
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636
 
  (eval $ac_try) 2>&5
15637
 
  ac_status=$?
15638
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639
 
  (exit $ac_status); }; }; then
15640
 
  ac_cv_type_u_int8_t=yes
15641
 
else
15642
 
  echo "$as_me: failed program was:" >&5
15643
 
sed 's/^/| /' conftest.$ac_ext >&5
15644
 
 
15645
 
ac_cv_type_u_int8_t=no
15646
 
fi
15647
 
rm -f conftest.$ac_objext conftest.$ac_ext
15648
 
fi
15649
 
echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
15650
 
echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
15651
 
 
15652
 
if test "$ac_cv_type_u_int8_t" = no; then
15653
 
 
15654
 
        case "1" in
15655
 
        "$ac_cv_sizeof_unsigned_int")
15656
 
                u_int8_decl="typedef unsigned int u_int8_t;";;
15657
 
        "$ac_cv_sizeof_unsigned_char")
15658
 
                u_int8_decl="typedef unsigned char u_int8_t;";;
15659
 
        "$ac_cv_sizeof_unsigned_short")
15660
 
                u_int8_decl="typedef unsigned short u_int8_t;";;
15661
 
        "$ac_cv_sizeof_unsigned_long")
15662
 
                u_int8_decl="typedef unsigned long u_int8_t;";;
15663
 
        *)
15664
 
                { { echo "$as_me:$LINENO: error: No unsigned 1-byte integral type" >&5
15665
 
echo "$as_me: error: No unsigned 1-byte integral type" >&2;}
15666
 
   { (exit 1); exit 1; }; };;
15667
 
        esac
15668
 
fi
15669
 
 
15670
 
 
15671
 
echo "$as_me:$LINENO: checking for u_int16_t" >&5
15672
 
echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
15673
 
if test "${ac_cv_type_u_int16_t+set}" = set; then
15674
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15675
 
else
15676
 
  cat >conftest.$ac_ext <<_ACEOF
15677
 
#line $LINENO "configure"
15678
 
/* confdefs.h.  */
15679
 
_ACEOF
15680
 
cat confdefs.h >>conftest.$ac_ext
15681
 
cat >>conftest.$ac_ext <<_ACEOF
15682
 
/* end confdefs.h.  */
15683
 
 
15684
 
#include <sys/types.h>
15685
 
#include <stdio.h>
15686
 
 
15687
 
int
15688
 
main ()
15689
 
{
15690
 
if ((u_int16_t *) 0)
15691
 
  return 0;
15692
 
if (sizeof (u_int16_t))
15693
 
  return 0;
15694
 
  ;
15695
 
  return 0;
15696
 
}
15697
 
_ACEOF
15698
 
rm -f conftest.$ac_objext
15699
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15700
 
  (eval $ac_compile) 2>&5
15701
 
  ac_status=$?
15702
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703
 
  (exit $ac_status); } &&
15704
 
         { ac_try='test -s conftest.$ac_objext'
15705
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706
 
  (eval $ac_try) 2>&5
15707
 
  ac_status=$?
15708
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709
 
  (exit $ac_status); }; }; then
15710
 
  ac_cv_type_u_int16_t=yes
15711
 
else
15712
 
  echo "$as_me: failed program was:" >&5
15713
 
sed 's/^/| /' conftest.$ac_ext >&5
15714
 
 
15715
 
ac_cv_type_u_int16_t=no
15716
 
fi
15717
 
rm -f conftest.$ac_objext conftest.$ac_ext
15718
 
fi
15719
 
echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
15720
 
echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
15721
 
 
15722
 
if test "$ac_cv_type_u_int16_t" = no; then
15723
 
 
15724
 
        case "2" in
15725
 
        "$ac_cv_sizeof_unsigned_int")
15726
 
                u_int16_decl="typedef unsigned int u_int16_t;";;
15727
 
        "$ac_cv_sizeof_unsigned_char")
15728
 
                u_int16_decl="typedef unsigned char u_int16_t;";;
15729
 
        "$ac_cv_sizeof_unsigned_short")
15730
 
                u_int16_decl="typedef unsigned short u_int16_t;";;
15731
 
        "$ac_cv_sizeof_unsigned_long")
15732
 
                u_int16_decl="typedef unsigned long u_int16_t;";;
15733
 
        *)
15734
 
                { { echo "$as_me:$LINENO: error: No unsigned 2-byte integral type" >&5
15735
 
echo "$as_me: error: No unsigned 2-byte integral type" >&2;}
15736
 
   { (exit 1); exit 1; }; };;
15737
 
        esac
15738
 
fi
15739
 
 
15740
 
 
15741
 
echo "$as_me:$LINENO: checking for int16_t" >&5
15742
 
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
15743
 
if test "${ac_cv_type_int16_t+set}" = set; then
15744
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15745
 
else
15746
 
  cat >conftest.$ac_ext <<_ACEOF
15747
 
#line $LINENO "configure"
15748
 
/* confdefs.h.  */
15749
 
_ACEOF
15750
 
cat confdefs.h >>conftest.$ac_ext
15751
 
cat >>conftest.$ac_ext <<_ACEOF
15752
 
/* end confdefs.h.  */
15753
 
 
15754
 
#include <sys/types.h>
15755
 
#include <stdio.h>
15756
 
 
15757
 
int
15758
 
main ()
15759
 
{
15760
 
if ((int16_t *) 0)
15761
 
  return 0;
15762
 
if (sizeof (int16_t))
15763
 
  return 0;
15764
 
  ;
15765
 
  return 0;
15766
 
}
15767
 
_ACEOF
15768
 
rm -f conftest.$ac_objext
15769
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15770
 
  (eval $ac_compile) 2>&5
15771
 
  ac_status=$?
15772
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773
 
  (exit $ac_status); } &&
15774
 
         { ac_try='test -s conftest.$ac_objext'
15775
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15776
 
  (eval $ac_try) 2>&5
15777
 
  ac_status=$?
15778
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779
 
  (exit $ac_status); }; }; then
15780
 
  ac_cv_type_int16_t=yes
15781
 
else
15782
 
  echo "$as_me: failed program was:" >&5
15783
 
sed 's/^/| /' conftest.$ac_ext >&5
15784
 
 
15785
 
ac_cv_type_int16_t=no
15786
 
fi
15787
 
rm -f conftest.$ac_objext conftest.$ac_ext
15788
 
fi
15789
 
echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
15790
 
echo "${ECHO_T}$ac_cv_type_int16_t" >&6
15791
 
 
15792
 
if test "$ac_cv_type_int16_t" = no; then
15793
 
 
15794
 
        case "2" in
15795
 
        "$ac_cv_sizeof_int")
15796
 
                int16_decl="typedef int int16_t;";;
15797
 
        "$ac_cv_sizeof_char")
15798
 
                int16_decl="typedef char int16_t;";;
15799
 
        "$ac_cv_sizeof_short")
15800
 
                int16_decl="typedef short int16_t;";;
15801
 
        "$ac_cv_sizeof_long")
15802
 
                int16_decl="typedef long int16_t;";;
15803
 
        *)
15804
 
                { { echo "$as_me:$LINENO: error: No signed 2-byte integral type" >&5
15805
 
echo "$as_me: error: No signed 2-byte integral type" >&2;}
15806
 
   { (exit 1); exit 1; }; };;
15807
 
        esac
15808
 
fi
15809
 
 
15810
 
 
15811
 
echo "$as_me:$LINENO: checking for u_int32_t" >&5
15812
 
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
15813
 
if test "${ac_cv_type_u_int32_t+set}" = set; then
15814
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15815
 
else
15816
 
  cat >conftest.$ac_ext <<_ACEOF
15817
 
#line $LINENO "configure"
15818
 
/* confdefs.h.  */
15819
 
_ACEOF
15820
 
cat confdefs.h >>conftest.$ac_ext
15821
 
cat >>conftest.$ac_ext <<_ACEOF
15822
 
/* end confdefs.h.  */
15823
 
 
15824
 
#include <sys/types.h>
15825
 
#include <stdio.h>
15826
 
 
15827
 
int
15828
 
main ()
15829
 
{
15830
 
if ((u_int32_t *) 0)
15831
 
  return 0;
15832
 
if (sizeof (u_int32_t))
15833
 
  return 0;
15834
 
  ;
15835
 
  return 0;
15836
 
}
15837
 
_ACEOF
15838
 
rm -f conftest.$ac_objext
15839
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15840
 
  (eval $ac_compile) 2>&5
15841
 
  ac_status=$?
15842
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843
 
  (exit $ac_status); } &&
15844
 
         { ac_try='test -s conftest.$ac_objext'
15845
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846
 
  (eval $ac_try) 2>&5
15847
 
  ac_status=$?
15848
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849
 
  (exit $ac_status); }; }; then
15850
 
  ac_cv_type_u_int32_t=yes
15851
 
else
15852
 
  echo "$as_me: failed program was:" >&5
15853
 
sed 's/^/| /' conftest.$ac_ext >&5
15854
 
 
15855
 
ac_cv_type_u_int32_t=no
15856
 
fi
15857
 
rm -f conftest.$ac_objext conftest.$ac_ext
15858
 
fi
15859
 
echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
15860
 
echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
15861
 
 
15862
 
if test "$ac_cv_type_u_int32_t" = no; then
15863
 
 
15864
 
        case "4" in
15865
 
        "$ac_cv_sizeof_unsigned_int")
15866
 
                u_int32_decl="typedef unsigned int u_int32_t;";;
15867
 
        "$ac_cv_sizeof_unsigned_char")
15868
 
                u_int32_decl="typedef unsigned char u_int32_t;";;
15869
 
        "$ac_cv_sizeof_unsigned_short")
15870
 
                u_int32_decl="typedef unsigned short u_int32_t;";;
15871
 
        "$ac_cv_sizeof_unsigned_long")
15872
 
                u_int32_decl="typedef unsigned long u_int32_t;";;
15873
 
        *)
15874
 
                { { echo "$as_me:$LINENO: error: No unsigned 4-byte integral type" >&5
15875
 
echo "$as_me: error: No unsigned 4-byte integral type" >&2;}
15876
 
   { (exit 1); exit 1; }; };;
15877
 
        esac
15878
 
fi
15879
 
 
15880
 
 
15881
 
echo "$as_me:$LINENO: checking for int32_t" >&5
15882
 
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
15883
 
if test "${ac_cv_type_int32_t+set}" = set; then
15884
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15885
 
else
15886
 
  cat >conftest.$ac_ext <<_ACEOF
15887
 
#line $LINENO "configure"
15888
 
/* confdefs.h.  */
15889
 
_ACEOF
15890
 
cat confdefs.h >>conftest.$ac_ext
15891
 
cat >>conftest.$ac_ext <<_ACEOF
15892
 
/* end confdefs.h.  */
15893
 
 
15894
 
#include <sys/types.h>
15895
 
#include <stdio.h>
15896
 
 
15897
 
int
15898
 
main ()
15899
 
{
15900
 
if ((int32_t *) 0)
15901
 
  return 0;
15902
 
if (sizeof (int32_t))
15903
 
  return 0;
15904
 
  ;
15905
 
  return 0;
15906
 
}
15907
 
_ACEOF
15908
 
rm -f conftest.$ac_objext
15909
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15910
 
  (eval $ac_compile) 2>&5
15911
 
  ac_status=$?
15912
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913
 
  (exit $ac_status); } &&
15914
 
         { ac_try='test -s conftest.$ac_objext'
15915
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916
 
  (eval $ac_try) 2>&5
15917
 
  ac_status=$?
15918
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919
 
  (exit $ac_status); }; }; then
15920
 
  ac_cv_type_int32_t=yes
15921
 
else
15922
 
  echo "$as_me: failed program was:" >&5
15923
 
sed 's/^/| /' conftest.$ac_ext >&5
15924
 
 
15925
 
ac_cv_type_int32_t=no
15926
 
fi
15927
 
rm -f conftest.$ac_objext conftest.$ac_ext
15928
 
fi
15929
 
echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
15930
 
echo "${ECHO_T}$ac_cv_type_int32_t" >&6
15931
 
 
15932
 
if test "$ac_cv_type_int32_t" = no; then
15933
 
 
15934
 
        case "4" in
15935
 
        "$ac_cv_sizeof_int")
15936
 
                int32_decl="typedef int int32_t;";;
15937
 
        "$ac_cv_sizeof_char")
15938
 
                int32_decl="typedef char int32_t;";;
15939
 
        "$ac_cv_sizeof_short")
15940
 
                int32_decl="typedef short int32_t;";;
15941
 
        "$ac_cv_sizeof_long")
15942
 
                int32_decl="typedef long int32_t;";;
15943
 
        *)
15944
 
                { { echo "$as_me:$LINENO: error: No signed 4-byte integral type" >&5
15945
 
echo "$as_me: error: No signed 4-byte integral type" >&2;}
15946
 
   { (exit 1); exit 1; }; };;
15947
 
        esac
15948
 
fi
15949
 
 
15950
 
# Check for ssize_t -- if none exists, find a signed integral type that's
15951
 
# the same size as a size_t.
15952
 
 
15953
 
echo "$as_me:$LINENO: checking for ssize_t" >&5
15954
 
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15955
 
if test "${ac_cv_type_ssize_t+set}" = set; then
15956
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15957
 
else
15958
 
  cat >conftest.$ac_ext <<_ACEOF
15959
 
#line $LINENO "configure"
15960
 
/* confdefs.h.  */
15961
 
_ACEOF
15962
 
cat confdefs.h >>conftest.$ac_ext
15963
 
cat >>conftest.$ac_ext <<_ACEOF
15964
 
/* end confdefs.h.  */
15965
 
 
15966
 
#include <sys/types.h>
15967
 
#include <stdio.h>
15968
 
 
15969
 
int
15970
 
main ()
15971
 
{
15972
 
if ((ssize_t *) 0)
15973
 
  return 0;
15974
 
if (sizeof (ssize_t))
15975
 
  return 0;
15976
 
  ;
15977
 
  return 0;
15978
 
}
15979
 
_ACEOF
15980
 
rm -f conftest.$ac_objext
15981
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15982
 
  (eval $ac_compile) 2>&5
15983
 
  ac_status=$?
15984
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985
 
  (exit $ac_status); } &&
15986
 
         { ac_try='test -s conftest.$ac_objext'
15987
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988
 
  (eval $ac_try) 2>&5
15989
 
  ac_status=$?
15990
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991
 
  (exit $ac_status); }; }; then
15992
 
  ac_cv_type_ssize_t=yes
15993
 
else
15994
 
  echo "$as_me: failed program was:" >&5
15995
 
sed 's/^/| /' conftest.$ac_ext >&5
15996
 
 
15997
 
ac_cv_type_ssize_t=no
15998
 
fi
15999
 
rm -f conftest.$ac_objext conftest.$ac_ext
16000
 
fi
16001
 
echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16002
 
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
16003
 
 
16004
 
if test "$ac_cv_type_ssize_t" = no; then
16005
 
 
16006
 
        case "$ac_cv_sizeof_size_t" in
16007
 
        "$ac_cv_sizeof_int")
16008
 
                ssize_t_decl="typedef int ssize_t;";;
16009
 
        "$ac_cv_sizeof_char")
16010
 
                ssize_t_decl="typedef char ssize_t;";;
16011
 
        "$ac_cv_sizeof_short")
16012
 
                ssize_t_decl="typedef short ssize_t;";;
16013
 
        "$ac_cv_sizeof_long")
16014
 
                ssize_t_decl="typedef long ssize_t;";;
16015
 
        *)
16016
 
                { { echo "$as_me:$LINENO: error: No signed $ac_cv_sizeof_size_t-byte integral type" >&5
16017
 
echo "$as_me: error: No signed $ac_cv_sizeof_size_t-byte integral type" >&2;}
16018
 
   { (exit 1); exit 1; }; };;
16019
 
        esac
16020
 
fi
16021
 
 
16022
 
# Find the largest integral type.
16023
 
 
16024
 
echo "$as_me:$LINENO: checking for unsigned long long" >&5
16025
 
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
16026
 
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
16027
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16028
 
else
16029
 
  cat >conftest.$ac_ext <<_ACEOF
16030
 
#line $LINENO "configure"
16031
 
/* confdefs.h.  */
16032
 
_ACEOF
16033
 
cat confdefs.h >>conftest.$ac_ext
16034
 
cat >>conftest.$ac_ext <<_ACEOF
16035
 
/* end confdefs.h.  */
16036
 
 
16037
 
#include <sys/types.h>
16038
 
#include <stdio.h>
16039
 
 
16040
 
int
16041
 
main ()
16042
 
{
16043
 
if ((unsigned long long *) 0)
16044
 
  return 0;
16045
 
if (sizeof (unsigned long long))
16046
 
  return 0;
16047
 
  ;
16048
 
  return 0;
16049
 
}
16050
 
_ACEOF
16051
 
rm -f conftest.$ac_objext
16052
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16053
 
  (eval $ac_compile) 2>&5
16054
 
  ac_status=$?
16055
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056
 
  (exit $ac_status); } &&
16057
 
         { ac_try='test -s conftest.$ac_objext'
16058
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16059
 
  (eval $ac_try) 2>&5
16060
 
  ac_status=$?
16061
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062
 
  (exit $ac_status); }; }; then
16063
 
  ac_cv_type_unsigned_long_long=yes
16064
 
else
16065
 
  echo "$as_me: failed program was:" >&5
16066
 
sed 's/^/| /' conftest.$ac_ext >&5
16067
 
 
16068
 
ac_cv_type_unsigned_long_long=no
16069
 
fi
16070
 
rm -f conftest.$ac_objext conftest.$ac_ext
16071
 
fi
16072
 
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
16073
 
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
16074
 
 
16075
 
if test "$ac_cv_type_unsigned_long_long" = no; then
16076
 
        db_align_t_decl="typedef unsigned long db_align_t;"
16077
 
else
16078
 
        db_align_t_decl="typedef unsigned long long db_align_t;"
16079
 
fi
16080
 
 
16081
 
# Find an integral type which is the same size as a pointer.
16082
 
 
16083
 
 
16084
 
        case "$ac_cv_sizeof_char_p" in
16085
 
        "$ac_cv_sizeof_unsigned_int")
16086
 
                db_alignp_t_decl="typedef unsigned int db_alignp_t;";;
16087
 
        "$ac_cv_sizeof_unsigned_char")
16088
 
                db_alignp_t_decl="typedef unsigned char db_alignp_t;";;
16089
 
        "$ac_cv_sizeof_unsigned_short")
16090
 
                db_alignp_t_decl="typedef unsigned short db_alignp_t;";;
16091
 
        "$ac_cv_sizeof_unsigned_long")
16092
 
                db_alignp_t_decl="typedef unsigned long db_alignp_t;";;
16093
 
        *)
16094
 
                { { echo "$as_me:$LINENO: error: No unsigned $ac_cv_sizeof_char_p-byte integral type" >&5
16095
 
echo "$as_me: error: No unsigned $ac_cv_sizeof_char_p-byte integral type" >&2;}
16096
 
   { (exit 1); exit 1; }; };;
16097
 
        esac
16098
 
 
16099
 
 
16100
 
 
16101
 
echo "$as_me:$LINENO: checking for ANSI C exit success/failure values" >&5
16102
 
echo $ECHO_N "checking for ANSI C exit success/failure values... $ECHO_C" >&6
16103
 
if test "${db_cv_exit_defines+set}" = set; then
16104
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16105
 
else
16106
 
 
16107
 
cat >conftest.$ac_ext <<_ACEOF
16108
 
#line $LINENO "configure"
16109
 
/* confdefs.h.  */
16110
 
_ACEOF
16111
 
cat confdefs.h >>conftest.$ac_ext
16112
 
cat >>conftest.$ac_ext <<_ACEOF
16113
 
/* end confdefs.h.  */
16114
 
#include <stdlib.h>
16115
 
int
16116
 
main ()
16117
 
{
16118
 
return (EXIT_SUCCESS);
16119
 
  ;
16120
 
  return 0;
16121
 
}
16122
 
_ACEOF
16123
 
rm -f conftest.$ac_objext
16124
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16125
 
  (eval $ac_compile) 2>&5
16126
 
  ac_status=$?
16127
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128
 
  (exit $ac_status); } &&
16129
 
         { ac_try='test -s conftest.$ac_objext'
16130
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16131
 
  (eval $ac_try) 2>&5
16132
 
  ac_status=$?
16133
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134
 
  (exit $ac_status); }; }; then
16135
 
  db_cv_exit_defines=yes
16136
 
else
16137
 
  echo "$as_me: failed program was:" >&5
16138
 
sed 's/^/| /' conftest.$ac_ext >&5
16139
 
 
16140
 
db_cv_exit_defines=no
16141
 
fi
16142
 
rm -f conftest.$ac_objext conftest.$ac_ext
16143
 
fi
16144
 
echo "$as_me:$LINENO: result: $db_cv_exit_defines" >&5
16145
 
echo "${ECHO_T}$db_cv_exit_defines" >&6
16146
 
if test "$db_cv_exit_defines" = yes; then
16147
 
        cat >>confdefs.h <<\_ACEOF
16148
 
#define HAVE_EXIT_SUCCESS 1
16149
 
_ACEOF
16150
 
 
16151
 
 
16152
 
 
16153
 
fi
16154
 
 
16155
 
# Test for various functions/libraries that the test and example programs use:
16156
 
#       sched_yield function
16157
 
#       pthreads, socket and math libraries
16158
 
echo "$as_me:$LINENO: checking for sched_yield" >&5
16159
 
echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
16160
 
if test "${ac_cv_func_sched_yield+set}" = set; then
16161
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16162
 
else
16163
 
  cat >conftest.$ac_ext <<_ACEOF
16164
 
#line $LINENO "configure"
16165
 
/* confdefs.h.  */
16166
 
_ACEOF
16167
 
cat confdefs.h >>conftest.$ac_ext
16168
 
cat >>conftest.$ac_ext <<_ACEOF
16169
 
/* end confdefs.h.  */
16170
 
/* System header to define __stub macros and hopefully few prototypes,
16171
 
    which can conflict with char sched_yield (); below.
16172
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16173
 
    <limits.h> exists even on freestanding compilers.  */
16174
 
#ifdef __STDC__
16175
 
# include <limits.h>
16176
 
#else
16177
 
# include <assert.h>
16178
 
#endif
16179
 
/* Override any gcc2 internal prototype to avoid an error.  */
16180
 
#ifdef __cplusplus
16181
 
extern "C"
16182
 
{
16183
 
#endif
16184
 
/* We use char because int might match the return type of a gcc2
16185
 
   builtin and then its argument prototype would still apply.  */
16186
 
char sched_yield ();
16187
 
/* The GNU C library defines this for functions which it implements
16188
 
    to always fail with ENOSYS.  Some functions are actually named
16189
 
    something starting with __ and the normal name is an alias.  */
16190
 
#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
16191
 
choke me
16192
 
#else
16193
 
char (*f) () = sched_yield;
16194
 
#endif
16195
 
#ifdef __cplusplus
16196
 
}
16197
 
#endif
16198
 
 
16199
 
int
16200
 
main ()
16201
 
{
16202
 
return f != sched_yield;
16203
 
  ;
16204
 
  return 0;
16205
 
}
16206
 
_ACEOF
16207
 
rm -f conftest.$ac_objext conftest$ac_exeext
16208
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16209
 
  (eval $ac_link) 2>&5
16210
 
  ac_status=$?
16211
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212
 
  (exit $ac_status); } &&
16213
 
         { ac_try='test -s conftest$ac_exeext'
16214
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16215
 
  (eval $ac_try) 2>&5
16216
 
  ac_status=$?
16217
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218
 
  (exit $ac_status); }; }; then
16219
 
  ac_cv_func_sched_yield=yes
16220
 
else
16221
 
  echo "$as_me: failed program was:" >&5
16222
 
sed 's/^/| /' conftest.$ac_ext >&5
16223
 
 
16224
 
ac_cv_func_sched_yield=no
16225
 
fi
16226
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16227
 
fi
16228
 
echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
16229
 
echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
16230
 
if test $ac_cv_func_sched_yield = yes; then
16231
 
  :
16232
 
else
16233
 
  echo "$as_me:$LINENO: checking for library containing sched_yield" >&5
16234
 
echo $ECHO_N "checking for library containing sched_yield... $ECHO_C" >&6
16235
 
if test "${ac_cv_search_sched_yield+set}" = set; then
16236
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16237
 
else
16238
 
  ac_func_search_save_LIBS=$LIBS
16239
 
ac_cv_search_sched_yield=no
16240
 
cat >conftest.$ac_ext <<_ACEOF
16241
 
#line $LINENO "configure"
16242
 
/* confdefs.h.  */
16243
 
_ACEOF
16244
 
cat confdefs.h >>conftest.$ac_ext
16245
 
cat >>conftest.$ac_ext <<_ACEOF
16246
 
/* end confdefs.h.  */
16247
 
 
16248
 
/* Override any gcc2 internal prototype to avoid an error.  */
16249
 
#ifdef __cplusplus
16250
 
extern "C"
16251
 
#endif
16252
 
/* We use char because int might match the return type of a gcc2
16253
 
   builtin and then its argument prototype would still apply.  */
16254
 
char sched_yield ();
16255
 
int
16256
 
main ()
16257
 
{
16258
 
sched_yield ();
16259
 
  ;
16260
 
  return 0;
16261
 
}
16262
 
_ACEOF
16263
 
rm -f conftest.$ac_objext conftest$ac_exeext
16264
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16265
 
  (eval $ac_link) 2>&5
16266
 
  ac_status=$?
16267
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268
 
  (exit $ac_status); } &&
16269
 
         { ac_try='test -s conftest$ac_exeext'
16270
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271
 
  (eval $ac_try) 2>&5
16272
 
  ac_status=$?
16273
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274
 
  (exit $ac_status); }; }; then
16275
 
  ac_cv_search_sched_yield="none required"
16276
 
else
16277
 
  echo "$as_me: failed program was:" >&5
16278
 
sed 's/^/| /' conftest.$ac_ext >&5
16279
 
 
16280
 
fi
16281
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16282
 
if test "$ac_cv_search_sched_yield" = no; then
16283
 
  for ac_lib in rt; do
16284
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16285
 
    cat >conftest.$ac_ext <<_ACEOF
16286
 
#line $LINENO "configure"
16287
 
/* confdefs.h.  */
16288
 
_ACEOF
16289
 
cat confdefs.h >>conftest.$ac_ext
16290
 
cat >>conftest.$ac_ext <<_ACEOF
16291
 
/* end confdefs.h.  */
16292
 
 
16293
 
/* Override any gcc2 internal prototype to avoid an error.  */
16294
 
#ifdef __cplusplus
16295
 
extern "C"
16296
 
#endif
16297
 
/* We use char because int might match the return type of a gcc2
16298
 
   builtin and then its argument prototype would still apply.  */
16299
 
char sched_yield ();
16300
 
int
16301
 
main ()
16302
 
{
16303
 
sched_yield ();
16304
 
  ;
16305
 
  return 0;
16306
 
}
16307
 
_ACEOF
16308
 
rm -f conftest.$ac_objext conftest$ac_exeext
16309
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16310
 
  (eval $ac_link) 2>&5
16311
 
  ac_status=$?
16312
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313
 
  (exit $ac_status); } &&
16314
 
         { ac_try='test -s conftest$ac_exeext'
16315
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316
 
  (eval $ac_try) 2>&5
16317
 
  ac_status=$?
16318
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319
 
  (exit $ac_status); }; }; then
16320
 
  ac_cv_search_sched_yield="-l$ac_lib"
16321
 
break
16322
 
else
16323
 
  echo "$as_me: failed program was:" >&5
16324
 
sed 's/^/| /' conftest.$ac_ext >&5
16325
 
 
16326
 
fi
16327
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16328
 
  done
16329
 
fi
16330
 
LIBS=$ac_func_search_save_LIBS
16331
 
fi
16332
 
echo "$as_me:$LINENO: result: $ac_cv_search_sched_yield" >&5
16333
 
echo "${ECHO_T}$ac_cv_search_sched_yield" >&6
16334
 
if test "$ac_cv_search_sched_yield" != no; then
16335
 
  test "$ac_cv_search_sched_yield" = "none required" || LIBS="$ac_cv_search_sched_yield $LIBS"
16336
 
  LOAD_LIBS="$LOAD_LIBS -lrt"
16337
 
fi
16338
 
 
16339
 
fi
16340
 
 
16341
 
 
16342
 
# XXX
16343
 
# We can't check for pthreads in the same way we did the test for sched_yield
16344
 
# because the Solaris C library includes pthread interfaces which are not
16345
 
# thread-safe.  For that reason we always add -lpthread if we find a pthread
16346
 
# library.  Also we can't depend on any specific call existing (pthread_create,
16347
 
# for example), as it may be #defined in an include file -- OSF/1 (Tru64) has
16348
 
# this problem.
16349
 
echo "$as_me:$LINENO: checking for main in -lpthread" >&5
16350
 
echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
16351
 
if test "${ac_cv_lib_pthread_main+set}" = set; then
16352
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16353
 
else
16354
 
  ac_check_lib_save_LIBS=$LIBS
16355
 
LIBS="-lpthread  $LIBS"
16356
 
cat >conftest.$ac_ext <<_ACEOF
16357
 
#line $LINENO "configure"
16358
 
/* confdefs.h.  */
16359
 
_ACEOF
16360
 
cat confdefs.h >>conftest.$ac_ext
16361
 
cat >>conftest.$ac_ext <<_ACEOF
16362
 
/* end confdefs.h.  */
16363
 
 
16364
 
 
16365
 
int
16366
 
main ()
16367
 
{
16368
 
main ();
16369
 
  ;
16370
 
  return 0;
16371
 
}
16372
 
_ACEOF
16373
 
rm -f conftest.$ac_objext conftest$ac_exeext
16374
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16375
 
  (eval $ac_link) 2>&5
16376
 
  ac_status=$?
16377
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378
 
  (exit $ac_status); } &&
16379
 
         { ac_try='test -s conftest$ac_exeext'
16380
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381
 
  (eval $ac_try) 2>&5
16382
 
  ac_status=$?
16383
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384
 
  (exit $ac_status); }; }; then
16385
 
  ac_cv_lib_pthread_main=yes
16386
 
else
16387
 
  echo "$as_me: failed program was:" >&5
16388
 
sed 's/^/| /' conftest.$ac_ext >&5
16389
 
 
16390
 
ac_cv_lib_pthread_main=no
16391
 
fi
16392
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16393
 
LIBS=$ac_check_lib_save_LIBS
16394
 
fi
16395
 
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
16396
 
echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
16397
 
if test $ac_cv_lib_pthread_main = yes; then
16398
 
  LOAD_LIBS="$LOAD_LIBS -lpthread"
16399
 
fi
16400
 
ac_cv_lib_pthread=ac_cv_lib_pthread_main
16401
 
 
16402
 
 
16403
 
# XXX
16404
 
# We could be more exact about whether these libraries are needed, but we don't
16405
 
# bother -- if they exist, we load them.
16406
 
echo "$as_me:$LINENO: checking for main in -lm" >&5
16407
 
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
16408
 
if test "${ac_cv_lib_m_main+set}" = set; then
16409
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16410
 
else
16411
 
  ac_check_lib_save_LIBS=$LIBS
16412
 
LIBS="-lm  $LIBS"
16413
 
cat >conftest.$ac_ext <<_ACEOF
16414
 
#line $LINENO "configure"
16415
 
/* confdefs.h.  */
16416
 
_ACEOF
16417
 
cat confdefs.h >>conftest.$ac_ext
16418
 
cat >>conftest.$ac_ext <<_ACEOF
16419
 
/* end confdefs.h.  */
16420
 
 
16421
 
 
16422
 
int
16423
 
main ()
16424
 
{
16425
 
main ();
16426
 
  ;
16427
 
  return 0;
16428
 
}
16429
 
_ACEOF
16430
 
rm -f conftest.$ac_objext conftest$ac_exeext
16431
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16432
 
  (eval $ac_link) 2>&5
16433
 
  ac_status=$?
16434
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435
 
  (exit $ac_status); } &&
16436
 
         { ac_try='test -s conftest$ac_exeext'
16437
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16438
 
  (eval $ac_try) 2>&5
16439
 
  ac_status=$?
16440
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441
 
  (exit $ac_status); }; }; then
16442
 
  ac_cv_lib_m_main=yes
16443
 
else
16444
 
  echo "$as_me: failed program was:" >&5
16445
 
sed 's/^/| /' conftest.$ac_ext >&5
16446
 
 
16447
 
ac_cv_lib_m_main=no
16448
 
fi
16449
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16450
 
LIBS=$ac_check_lib_save_LIBS
16451
 
fi
16452
 
echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
16453
 
echo "${ECHO_T}$ac_cv_lib_m_main" >&6
16454
 
if test $ac_cv_lib_m_main = yes; then
16455
 
  LOAD_LIBS="$LOAD_LIBS -lm"
16456
 
fi
16457
 
ac_cv_lib_m=ac_cv_lib_m_main
16458
 
 
16459
 
echo "$as_me:$LINENO: checking for main in -lsocket" >&5
16460
 
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
16461
 
if test "${ac_cv_lib_socket_main+set}" = set; then
16462
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16463
 
else
16464
 
  ac_check_lib_save_LIBS=$LIBS
16465
 
LIBS="-lsocket  $LIBS"
16466
 
cat >conftest.$ac_ext <<_ACEOF
16467
 
#line $LINENO "configure"
16468
 
/* confdefs.h.  */
16469
 
_ACEOF
16470
 
cat confdefs.h >>conftest.$ac_ext
16471
 
cat >>conftest.$ac_ext <<_ACEOF
16472
 
/* end confdefs.h.  */
16473
 
 
16474
 
 
16475
 
int
16476
 
main ()
16477
 
{
16478
 
main ();
16479
 
  ;
16480
 
  return 0;
16481
 
}
16482
 
_ACEOF
16483
 
rm -f conftest.$ac_objext conftest$ac_exeext
16484
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16485
 
  (eval $ac_link) 2>&5
16486
 
  ac_status=$?
16487
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488
 
  (exit $ac_status); } &&
16489
 
         { ac_try='test -s conftest$ac_exeext'
16490
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491
 
  (eval $ac_try) 2>&5
16492
 
  ac_status=$?
16493
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494
 
  (exit $ac_status); }; }; then
16495
 
  ac_cv_lib_socket_main=yes
16496
 
else
16497
 
  echo "$as_me: failed program was:" >&5
16498
 
sed 's/^/| /' conftest.$ac_ext >&5
16499
 
 
16500
 
ac_cv_lib_socket_main=no
16501
 
fi
16502
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16503
 
LIBS=$ac_check_lib_save_LIBS
16504
 
fi
16505
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
16506
 
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
16507
 
if test $ac_cv_lib_socket_main = yes; then
16508
 
  LOAD_LIBS="$LOAD_LIBS -lsocket"
16509
 
fi
16510
 
ac_cv_lib_socket=ac_cv_lib_socket_main
16511
 
 
16512
 
echo "$as_me:$LINENO: checking for main in -lnsl" >&5
16513
 
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
16514
 
if test "${ac_cv_lib_nsl_main+set}" = set; then
16515
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16516
 
else
16517
 
  ac_check_lib_save_LIBS=$LIBS
16518
 
LIBS="-lnsl  $LIBS"
16519
 
cat >conftest.$ac_ext <<_ACEOF
16520
 
#line $LINENO "configure"
16521
 
/* confdefs.h.  */
16522
 
_ACEOF
16523
 
cat confdefs.h >>conftest.$ac_ext
16524
 
cat >>conftest.$ac_ext <<_ACEOF
16525
 
/* end confdefs.h.  */
16526
 
 
16527
 
 
16528
 
int
16529
 
main ()
16530
 
{
16531
 
main ();
16532
 
  ;
16533
 
  return 0;
16534
 
}
16535
 
_ACEOF
16536
 
rm -f conftest.$ac_objext conftest$ac_exeext
16537
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16538
 
  (eval $ac_link) 2>&5
16539
 
  ac_status=$?
16540
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541
 
  (exit $ac_status); } &&
16542
 
         { ac_try='test -s conftest$ac_exeext'
16543
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544
 
  (eval $ac_try) 2>&5
16545
 
  ac_status=$?
16546
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547
 
  (exit $ac_status); }; }; then
16548
 
  ac_cv_lib_nsl_main=yes
16549
 
else
16550
 
  echo "$as_me: failed program was:" >&5
16551
 
sed 's/^/| /' conftest.$ac_ext >&5
16552
 
 
16553
 
ac_cv_lib_nsl_main=no
16554
 
fi
16555
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16556
 
LIBS=$ac_check_lib_save_LIBS
16557
 
fi
16558
 
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
16559
 
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
16560
 
if test $ac_cv_lib_nsl_main = yes; then
16561
 
  LOAD_LIBS="$LOAD_LIBS -lnsl"
16562
 
fi
16563
 
ac_cv_lib_nsl=ac_cv_lib_nsl_main
16564
 
 
16565
 
 
16566
 
# Check for mutexes.
16567
 
# We do this here because it changes $LIBS.
16568
 
 
16569
 
 
16570
 
# Mutexes we don't test for, but want the #defines to exist for
16571
 
# other ports.
16572
 
 
16573
 
 
16574
 
 
16575
 
 
16576
 
 
16577
 
 
16578
 
 
16579
 
echo "$as_me:$LINENO: checking for mutexes" >&5
16580
 
echo $ECHO_N "checking for mutexes... $ECHO_C" >&6
16581
 
if test "${db_cv_mutex+set}" = set; then
16582
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16583
 
else
16584
 
 
16585
 
db_cv_mutex=no
16586
 
 
16587
 
orig_libs=$LIBS
16588
 
 
16589
 
# User-specified POSIX or UI mutexes.
16590
 
#
16591
 
# There are two different reasons to specify mutexes: First, the application
16592
 
# is already using one type of mutex and doesn't want to mix-and-match (for
16593
 
# example, on Solaris, which has POSIX, UI and LWP mutexes).  Second, the
16594
 
# applications POSIX pthreads mutexes don't support inter-process locking,
16595
 
# but the application wants to use them anyway (for example, current Linux
16596
 
# and *BSD systems).
16597
 
#
16598
 
# If we're on Solaris, we insist that -lthread or -lpthread be used.  The
16599
 
# problem is the Solaris C library has UI/POSIX interface stubs, but they're
16600
 
# broken, configuring them for inter-process mutexes doesn't return an error,
16601
 
# but it doesn't work either.   Otherwise, we try first without the library
16602
 
# and then with it: there's some information that SCO/UnixWare/OpenUNIX needs
16603
 
# this. [#4950]
16604
 
#
16605
 
# Test for LWP threads before testing for UI/POSIX threads, we prefer them
16606
 
# on Solaris.  There's a bug in SunOS 5.7 where applications get pwrite, not
16607
 
# pwrite64, if they load the C library before the appropriate threads library,
16608
 
# e.g., tclsh using dlopen to load the DB library.  By using LWP threads we
16609
 
# avoid answering lots of user questions, not to mention the bugs.
16610
 
if test "$db_cv_posixmutexes" = yes; then
16611
 
        case "$host_os" in
16612
 
        solaris*)
16613
 
                db_cv_mutex="posix_library_only";;
16614
 
        *)
16615
 
                db_cv_mutex="posix_only";;
16616
 
        esac
16617
 
fi
16618
 
 
16619
 
if test "$db_cv_uimutexes" = yes; then
16620
 
        case "$host_os" in
16621
 
        solaris*)
16622
 
                db_cv_mutex="ui_library_only";;
16623
 
        *)
16624
 
                db_cv_mutex="ui_only";;
16625
 
        esac
16626
 
fi
16627
 
 
16628
 
# LWP threads: _lwp_XXX
16629
 
if test "$db_cv_mutex" = no; then
16630
 
cat >conftest.$ac_ext <<_ACEOF
16631
 
#line $LINENO "configure"
16632
 
/* confdefs.h.  */
16633
 
_ACEOF
16634
 
cat confdefs.h >>conftest.$ac_ext
16635
 
cat >>conftest.$ac_ext <<_ACEOF
16636
 
/* end confdefs.h.  */
16637
 
 
16638
 
#include <synch.h>
16639
 
int
16640
 
main ()
16641
 
{
16642
 
 
16643
 
        static lwp_mutex_t mi = SHAREDMUTEX;
16644
 
        static lwp_cond_t ci = SHAREDCV;
16645
 
        lwp_mutex_t mutex = mi;
16646
 
        lwp_cond_t cond = ci;
16647
 
        exit (
16648
 
        _lwp_mutex_lock(&mutex) ||
16649
 
        _lwp_mutex_unlock(&mutex));
16650
 
 
16651
 
  ;
16652
 
  return 0;
16653
 
}
16654
 
_ACEOF
16655
 
rm -f conftest.$ac_objext conftest$ac_exeext
16656
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16657
 
  (eval $ac_link) 2>&5
16658
 
  ac_status=$?
16659
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660
 
  (exit $ac_status); } &&
16661
 
         { ac_try='test -s conftest$ac_exeext'
16662
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16663
 
  (eval $ac_try) 2>&5
16664
 
  ac_status=$?
16665
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666
 
  (exit $ac_status); }; }; then
16667
 
  db_cv_mutex="Solaris/lwp"
16668
 
else
16669
 
  echo "$as_me: failed program was:" >&5
16670
 
sed 's/^/| /' conftest.$ac_ext >&5
16671
 
 
16672
 
fi
16673
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16674
 
fi
16675
 
 
16676
 
# UI threads: thr_XXX
16677
 
#
16678
 
# Try with and without the -lthread library.
16679
 
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "ui_only"; then
16680
 
cat >conftest.$ac_ext <<_ACEOF
16681
 
#line $LINENO "configure"
16682
 
/* confdefs.h.  */
16683
 
_ACEOF
16684
 
cat confdefs.h >>conftest.$ac_ext
16685
 
cat >>conftest.$ac_ext <<_ACEOF
16686
 
/* end confdefs.h.  */
16687
 
 
16688
 
#include <thread.h>
16689
 
#include <synch.h>
16690
 
int
16691
 
main ()
16692
 
{
16693
 
 
16694
 
        mutex_t mutex;
16695
 
        cond_t cond;
16696
 
        int type = USYNC_PROCESS;
16697
 
        exit (
16698
 
        mutex_init(&mutex, type, NULL) ||
16699
 
        cond_init(&cond, type, NULL) ||
16700
 
        mutex_lock(&mutex) ||
16701
 
        mutex_unlock(&mutex));
16702
 
 
16703
 
  ;
16704
 
  return 0;
16705
 
}
16706
 
_ACEOF
16707
 
rm -f conftest.$ac_objext conftest$ac_exeext
16708
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16709
 
  (eval $ac_link) 2>&5
16710
 
  ac_status=$?
16711
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712
 
  (exit $ac_status); } &&
16713
 
         { ac_try='test -s conftest$ac_exeext'
16714
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715
 
  (eval $ac_try) 2>&5
16716
 
  ac_status=$?
16717
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718
 
  (exit $ac_status); }; }; then
16719
 
  db_cv_mutex="UI/threads"
16720
 
else
16721
 
  echo "$as_me: failed program was:" >&5
16722
 
sed 's/^/| /' conftest.$ac_ext >&5
16723
 
 
16724
 
fi
16725
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16726
 
fi
16727
 
if test "$db_cv_mutex" = no -o \
16728
 
    "$db_cv_mutex" = "ui_only" -o "$db_cv_mutex" = "ui_library_only"; then
16729
 
LIBS="$LIBS -lthread"
16730
 
cat >conftest.$ac_ext <<_ACEOF
16731
 
#line $LINENO "configure"
16732
 
/* confdefs.h.  */
16733
 
_ACEOF
16734
 
cat confdefs.h >>conftest.$ac_ext
16735
 
cat >>conftest.$ac_ext <<_ACEOF
16736
 
/* end confdefs.h.  */
16737
 
 
16738
 
#include <thread.h>
16739
 
#include <synch.h>
16740
 
int
16741
 
main ()
16742
 
{
16743
 
 
16744
 
        mutex_t mutex;
16745
 
        cond_t cond;
16746
 
        int type = USYNC_PROCESS;
16747
 
        exit (
16748
 
        mutex_init(&mutex, type, NULL) ||
16749
 
        cond_init(&cond, type, NULL) ||
16750
 
        mutex_lock(&mutex) ||
16751
 
        mutex_unlock(&mutex));
16752
 
 
16753
 
  ;
16754
 
  return 0;
16755
 
}
16756
 
_ACEOF
16757
 
rm -f conftest.$ac_objext conftest$ac_exeext
16758
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16759
 
  (eval $ac_link) 2>&5
16760
 
  ac_status=$?
16761
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762
 
  (exit $ac_status); } &&
16763
 
         { ac_try='test -s conftest$ac_exeext'
16764
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16765
 
  (eval $ac_try) 2>&5
16766
 
  ac_status=$?
16767
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768
 
  (exit $ac_status); }; }; then
16769
 
  db_cv_mutex="UI/threads/library"
16770
 
else
16771
 
  echo "$as_me: failed program was:" >&5
16772
 
sed 's/^/| /' conftest.$ac_ext >&5
16773
 
 
16774
 
fi
16775
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16776
 
LIBS="$orig_libs"
16777
 
fi
16778
 
if test "$db_cv_mutex" = "ui_only" -o "$db_cv_mutex" = "ui_library_only"; then
16779
 
        { { echo "$as_me:$LINENO: error: unable to find UI mutex interfaces" >&5
16780
 
echo "$as_me: error: unable to find UI mutex interfaces" >&2;}
16781
 
   { (exit 1); exit 1; }; }
16782
 
fi
16783
 
 
16784
 
# POSIX.1 pthreads: pthread_XXX
16785
 
#
16786
 
# Try with and without the -lpthread library.  If the user specified we use
16787
 
# POSIX pthreads mutexes, and we fail to find the full interface, try and
16788
 
# configure for just intra-process support.
16789
 
if test "$db_cv_pthreadsmutexes" = yes; then
16790
 
        if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
16791
 
 
16792
 
if test "$cross_compiling" = yes; then
16793
 
  db_cv_mutex="no"
16794
 
else
16795
 
  cat >conftest.$ac_ext <<_ACEOF
16796
 
#line $LINENO "configure"
16797
 
/* confdefs.h.  */
16798
 
_ACEOF
16799
 
cat confdefs.h >>conftest.$ac_ext
16800
 
cat >>conftest.$ac_ext <<_ACEOF
16801
 
/* end confdefs.h.  */
16802
 
 
16803
 
#include <pthread.h>
16804
 
main() {
16805
 
        pthread_cond_t cond;
16806
 
        pthread_mutex_t mutex;
16807
 
        pthread_condattr_t condattr;
16808
 
        pthread_mutexattr_t mutexattr;
16809
 
        exit (
16810
 
        pthread_condattr_init(&condattr) ||
16811
 
        pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
16812
 
        pthread_mutexattr_init(&mutexattr) ||
16813
 
        pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
16814
 
        pthread_cond_init(&cond, &condattr) ||
16815
 
        pthread_mutex_init(&mutex, &mutexattr) ||
16816
 
        pthread_mutex_lock(&mutex) ||
16817
 
        pthread_mutex_unlock(&mutex) ||
16818
 
        pthread_mutex_destroy(&mutex) ||
16819
 
        pthread_cond_destroy(&cond) ||
16820
 
        pthread_condattr_destroy(&condattr) ||
16821
 
        pthread_mutexattr_destroy(&mutexattr));
16822
 
}
16823
 
_ACEOF
16824
 
rm -f conftest$ac_exeext
16825
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16826
 
  (eval $ac_link) 2>&5
16827
 
  ac_status=$?
16828
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16830
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831
 
  (eval $ac_try) 2>&5
16832
 
  ac_status=$?
16833
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834
 
  (exit $ac_status); }; }; then
16835
 
  db_cv_mutex=""POSIX/pthreads""
16836
 
else
16837
 
  echo "$as_me: program exited with status $ac_status" >&5
16838
 
echo "$as_me: failed program was:" >&5
16839
 
sed 's/^/| /' conftest.$ac_ext >&5
16840
 
 
16841
 
fi
16842
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16843
 
fi
16844
 
        fi
16845
 
        if test "$db_cv_mutex" = no -o \
16846
 
            "$db_cv_mutex" = "posix_only" -o \
16847
 
            "$db_cv_mutex" = "posix_library_only"; then
16848
 
                LIBS="$LIBS -lpthread"
16849
 
 
16850
 
if test "$cross_compiling" = yes; then
16851
 
  db_cv_mutex="no"
16852
 
else
16853
 
  cat >conftest.$ac_ext <<_ACEOF
16854
 
#line $LINENO "configure"
16855
 
/* confdefs.h.  */
16856
 
_ACEOF
16857
 
cat confdefs.h >>conftest.$ac_ext
16858
 
cat >>conftest.$ac_ext <<_ACEOF
16859
 
/* end confdefs.h.  */
16860
 
 
16861
 
#include <pthread.h>
16862
 
main() {
16863
 
        pthread_cond_t cond;
16864
 
        pthread_mutex_t mutex;
16865
 
        pthread_condattr_t condattr;
16866
 
        pthread_mutexattr_t mutexattr;
16867
 
        exit (
16868
 
        pthread_condattr_init(&condattr) ||
16869
 
        pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
16870
 
        pthread_mutexattr_init(&mutexattr) ||
16871
 
        pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
16872
 
        pthread_cond_init(&cond, &condattr) ||
16873
 
        pthread_mutex_init(&mutex, &mutexattr) ||
16874
 
        pthread_mutex_lock(&mutex) ||
16875
 
        pthread_mutex_unlock(&mutex) ||
16876
 
        pthread_mutex_destroy(&mutex) ||
16877
 
        pthread_cond_destroy(&cond) ||
16878
 
        pthread_condattr_destroy(&condattr) ||
16879
 
        pthread_mutexattr_destroy(&mutexattr));
16880
 
}
16881
 
_ACEOF
16882
 
rm -f conftest$ac_exeext
16883
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16884
 
  (eval $ac_link) 2>&5
16885
 
  ac_status=$?
16886
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16888
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889
 
  (eval $ac_try) 2>&5
16890
 
  ac_status=$?
16891
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892
 
  (exit $ac_status); }; }; then
16893
 
  db_cv_mutex=""POSIX/pthreads/library""
16894
 
else
16895
 
  echo "$as_me: program exited with status $ac_status" >&5
16896
 
echo "$as_me: failed program was:" >&5
16897
 
sed 's/^/| /' conftest.$ac_ext >&5
16898
 
 
16899
 
fi
16900
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16901
 
fi
16902
 
                LIBS="$orig_libs"
16903
 
        fi
16904
 
        if test "$db_cv_mutex" = "posix_only"; then
16905
 
 
16906
 
if test "$cross_compiling" = yes; then
16907
 
  cat >conftest.$ac_ext <<_ACEOF
16908
 
#line $LINENO "configure"
16909
 
/* confdefs.h.  */
16910
 
_ACEOF
16911
 
cat confdefs.h >>conftest.$ac_ext
16912
 
cat >>conftest.$ac_ext <<_ACEOF
16913
 
/* end confdefs.h.  */
16914
 
 
16915
 
#include <pthread.h>
16916
 
int
16917
 
main ()
16918
 
{
16919
 
 
16920
 
        pthread_cond_t cond;
16921
 
        pthread_mutex_t mutex;
16922
 
        pthread_condattr_t condattr;
16923
 
        pthread_mutexattr_t mutexattr;
16924
 
        exit (
16925
 
        pthread_condattr_init(&condattr) ||
16926
 
        pthread_mutexattr_init(&mutexattr) ||
16927
 
        pthread_cond_init(&cond, &condattr) ||
16928
 
        pthread_mutex_init(&mutex, &mutexattr) ||
16929
 
        pthread_mutex_lock(&mutex) ||
16930
 
        pthread_mutex_unlock(&mutex) ||
16931
 
        pthread_mutex_destroy(&mutex) ||
16932
 
        pthread_cond_destroy(&cond) ||
16933
 
        pthread_condattr_destroy(&condattr) ||
16934
 
        pthread_mutexattr_destroy(&mutexattr));
16935
 
 
16936
 
  ;
16937
 
  return 0;
16938
 
}
16939
 
_ACEOF
16940
 
rm -f conftest.$ac_objext conftest$ac_exeext
16941
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16942
 
  (eval $ac_link) 2>&5
16943
 
  ac_status=$?
16944
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945
 
  (exit $ac_status); } &&
16946
 
         { ac_try='test -s conftest$ac_exeext'
16947
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948
 
  (eval $ac_try) 2>&5
16949
 
  ac_status=$?
16950
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951
 
  (exit $ac_status); }; }; then
16952
 
  db_cv_mutex=""POSIX/pthreads/private""
16953
 
else
16954
 
  echo "$as_me: failed program was:" >&5
16955
 
sed 's/^/| /' conftest.$ac_ext >&5
16956
 
 
16957
 
fi
16958
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16959
 
else
16960
 
  cat >conftest.$ac_ext <<_ACEOF
16961
 
#line $LINENO "configure"
16962
 
/* confdefs.h.  */
16963
 
_ACEOF
16964
 
cat confdefs.h >>conftest.$ac_ext
16965
 
cat >>conftest.$ac_ext <<_ACEOF
16966
 
/* end confdefs.h.  */
16967
 
 
16968
 
#include <pthread.h>
16969
 
main() {
16970
 
        pthread_cond_t cond;
16971
 
        pthread_mutex_t mutex;
16972
 
        pthread_condattr_t condattr;
16973
 
        pthread_mutexattr_t mutexattr;
16974
 
        exit (
16975
 
        pthread_condattr_init(&condattr) ||
16976
 
        pthread_mutexattr_init(&mutexattr) ||
16977
 
        pthread_cond_init(&cond, &condattr) ||
16978
 
        pthread_mutex_init(&mutex, &mutexattr) ||
16979
 
        pthread_mutex_lock(&mutex) ||
16980
 
        pthread_mutex_unlock(&mutex) ||
16981
 
        pthread_mutex_destroy(&mutex) ||
16982
 
        pthread_cond_destroy(&cond) ||
16983
 
        pthread_condattr_destroy(&condattr) ||
16984
 
        pthread_mutexattr_destroy(&mutexattr));
16985
 
}
16986
 
_ACEOF
16987
 
rm -f conftest$ac_exeext
16988
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16989
 
  (eval $ac_link) 2>&5
16990
 
  ac_status=$?
16991
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16993
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16994
 
  (eval $ac_try) 2>&5
16995
 
  ac_status=$?
16996
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997
 
  (exit $ac_status); }; }; then
16998
 
  db_cv_mutex=""POSIX/pthreads/private""
16999
 
else
17000
 
  echo "$as_me: program exited with status $ac_status" >&5
17001
 
echo "$as_me: failed program was:" >&5
17002
 
sed 's/^/| /' conftest.$ac_ext >&5
17003
 
 
17004
 
fi
17005
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17006
 
fi
17007
 
        fi
17008
 
        if test "$db_cv_mutex" = "posix_only" -o \
17009
 
            "$db_cv_mutex" = "posix_library_only"; then
17010
 
                LIBS="$LIBS -lpthread"
17011
 
 
17012
 
if test "$cross_compiling" = yes; then
17013
 
  cat >conftest.$ac_ext <<_ACEOF
17014
 
#line $LINENO "configure"
17015
 
/* confdefs.h.  */
17016
 
_ACEOF
17017
 
cat confdefs.h >>conftest.$ac_ext
17018
 
cat >>conftest.$ac_ext <<_ACEOF
17019
 
/* end confdefs.h.  */
17020
 
 
17021
 
#include <pthread.h>
17022
 
int
17023
 
main ()
17024
 
{
17025
 
 
17026
 
        pthread_cond_t cond;
17027
 
        pthread_mutex_t mutex;
17028
 
        pthread_condattr_t condattr;
17029
 
        pthread_mutexattr_t mutexattr;
17030
 
        exit (
17031
 
        pthread_condattr_init(&condattr) ||
17032
 
        pthread_mutexattr_init(&mutexattr) ||
17033
 
        pthread_cond_init(&cond, &condattr) ||
17034
 
        pthread_mutex_init(&mutex, &mutexattr) ||
17035
 
        pthread_mutex_lock(&mutex) ||
17036
 
        pthread_mutex_unlock(&mutex) ||
17037
 
        pthread_mutex_destroy(&mutex) ||
17038
 
        pthread_cond_destroy(&cond) ||
17039
 
        pthread_condattr_destroy(&condattr) ||
17040
 
        pthread_mutexattr_destroy(&mutexattr));
17041
 
 
17042
 
  ;
17043
 
  return 0;
17044
 
}
17045
 
_ACEOF
17046
 
rm -f conftest.$ac_objext conftest$ac_exeext
17047
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17048
 
  (eval $ac_link) 2>&5
17049
 
  ac_status=$?
17050
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051
 
  (exit $ac_status); } &&
17052
 
         { ac_try='test -s conftest$ac_exeext'
17053
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17054
 
  (eval $ac_try) 2>&5
17055
 
  ac_status=$?
17056
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057
 
  (exit $ac_status); }; }; then
17058
 
  db_cv_mutex=""POSIX/pthreads/library/private""
17059
 
else
17060
 
  echo "$as_me: failed program was:" >&5
17061
 
sed 's/^/| /' conftest.$ac_ext >&5
17062
 
 
17063
 
fi
17064
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17065
 
else
17066
 
  cat >conftest.$ac_ext <<_ACEOF
17067
 
#line $LINENO "configure"
17068
 
/* confdefs.h.  */
17069
 
_ACEOF
17070
 
cat confdefs.h >>conftest.$ac_ext
17071
 
cat >>conftest.$ac_ext <<_ACEOF
17072
 
/* end confdefs.h.  */
17073
 
 
17074
 
#include <pthread.h>
17075
 
main() {
17076
 
        pthread_cond_t cond;
17077
 
        pthread_mutex_t mutex;
17078
 
        pthread_condattr_t condattr;
17079
 
        pthread_mutexattr_t mutexattr;
17080
 
        exit (
17081
 
        pthread_condattr_init(&condattr) ||
17082
 
        pthread_mutexattr_init(&mutexattr) ||
17083
 
        pthread_cond_init(&cond, &condattr) ||
17084
 
        pthread_mutex_init(&mutex, &mutexattr) ||
17085
 
        pthread_mutex_lock(&mutex) ||
17086
 
        pthread_mutex_unlock(&mutex) ||
17087
 
        pthread_mutex_destroy(&mutex) ||
17088
 
        pthread_cond_destroy(&cond) ||
17089
 
        pthread_condattr_destroy(&condattr) ||
17090
 
        pthread_mutexattr_destroy(&mutexattr));
17091
 
}
17092
 
_ACEOF
17093
 
rm -f conftest$ac_exeext
17094
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17095
 
  (eval $ac_link) 2>&5
17096
 
  ac_status=$?
17097
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17099
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100
 
  (eval $ac_try) 2>&5
17101
 
  ac_status=$?
17102
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103
 
  (exit $ac_status); }; }; then
17104
 
  db_cv_mutex=""POSIX/pthreads/library/private""
17105
 
else
17106
 
  echo "$as_me: program exited with status $ac_status" >&5
17107
 
echo "$as_me: failed program was:" >&5
17108
 
sed 's/^/| /' conftest.$ac_ext >&5
17109
 
 
17110
 
fi
17111
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17112
 
fi
17113
 
                LIBS="$orig_libs"
17114
 
        fi
17115
 
 
17116
 
        if test "$db_cv_mutex" = "posix_only" -o \
17117
 
            "$db_cv_mutex" = "posix_library_only"; then
17118
 
                { { echo "$as_me:$LINENO: error: unable to find POSIX 1003.1 mutex interfaces" >&5
17119
 
echo "$as_me: error: unable to find POSIX 1003.1 mutex interfaces" >&2;}
17120
 
   { (exit 1); exit 1; }; }
17121
 
        fi
17122
 
fi
17123
 
 
17124
 
# msemaphore: HPPA only
17125
 
# Try HPPA before general msem test, it needs special alignment.
17126
 
if test "$db_cv_mutex" = no; then
17127
 
cat >conftest.$ac_ext <<_ACEOF
17128
 
#line $LINENO "configure"
17129
 
/* confdefs.h.  */
17130
 
_ACEOF
17131
 
cat confdefs.h >>conftest.$ac_ext
17132
 
cat >>conftest.$ac_ext <<_ACEOF
17133
 
/* end confdefs.h.  */
17134
 
 
17135
 
#include <sys/mman.h>
17136
 
int
17137
 
main ()
17138
 
{
17139
 
 
17140
 
#if defined(__hppa__)
17141
 
        typedef msemaphore tsl_t;
17142
 
        msemaphore x;
17143
 
        msem_init(&x, 0);
17144
 
        msem_lock(&x, 0);
17145
 
        msem_unlock(&x, 0);
17146
 
        exit(0);
17147
 
#else
17148
 
        FAIL TO COMPILE/LINK
17149
 
#endif
17150
 
 
17151
 
  ;
17152
 
  return 0;
17153
 
}
17154
 
_ACEOF
17155
 
rm -f conftest.$ac_objext conftest$ac_exeext
17156
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17157
 
  (eval $ac_link) 2>&5
17158
 
  ac_status=$?
17159
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160
 
  (exit $ac_status); } &&
17161
 
         { ac_try='test -s conftest$ac_exeext'
17162
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163
 
  (eval $ac_try) 2>&5
17164
 
  ac_status=$?
17165
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166
 
  (exit $ac_status); }; }; then
17167
 
  db_cv_mutex="HP/msem_init"
17168
 
else
17169
 
  echo "$as_me: failed program was:" >&5
17170
 
sed 's/^/| /' conftest.$ac_ext >&5
17171
 
 
17172
 
fi
17173
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17174
 
fi
17175
 
 
17176
 
# msemaphore: AIX, OSF/1
17177
 
if test "$db_cv_mutex" = no; then
17178
 
cat >conftest.$ac_ext <<_ACEOF
17179
 
#line $LINENO "configure"
17180
 
/* confdefs.h.  */
17181
 
_ACEOF
17182
 
cat confdefs.h >>conftest.$ac_ext
17183
 
cat >>conftest.$ac_ext <<_ACEOF
17184
 
/* end confdefs.h.  */
17185
 
 
17186
 
#include <sys/types.h>
17187
 
#include <sys/mman.h>
17188
 
int
17189
 
main ()
17190
 
{
17191
 
 
17192
 
        typedef msemaphore tsl_t;
17193
 
        msemaphore x;
17194
 
        msem_init(&x, 0);
17195
 
        msem_lock(&x, 0);
17196
 
        msem_unlock(&x, 0);
17197
 
        exit(0);
17198
 
 
17199
 
  ;
17200
 
  return 0;
17201
 
}
17202
 
_ACEOF
17203
 
rm -f conftest.$ac_objext conftest$ac_exeext
17204
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17205
 
  (eval $ac_link) 2>&5
17206
 
  ac_status=$?
17207
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208
 
  (exit $ac_status); } &&
17209
 
         { ac_try='test -s conftest$ac_exeext'
17210
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211
 
  (eval $ac_try) 2>&5
17212
 
  ac_status=$?
17213
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214
 
  (exit $ac_status); }; }; then
17215
 
  db_cv_mutex="UNIX/msem_init"
17216
 
else
17217
 
  echo "$as_me: failed program was:" >&5
17218
 
sed 's/^/| /' conftest.$ac_ext >&5
17219
 
 
17220
 
fi
17221
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17222
 
fi
17223
 
 
17224
 
# ReliantUNIX
17225
 
if test "$db_cv_mutex" = no; then
17226
 
LIBS="$LIBS -lmproc"
17227
 
cat >conftest.$ac_ext <<_ACEOF
17228
 
#line $LINENO "configure"
17229
 
/* confdefs.h.  */
17230
 
_ACEOF
17231
 
cat confdefs.h >>conftest.$ac_ext
17232
 
cat >>conftest.$ac_ext <<_ACEOF
17233
 
/* end confdefs.h.  */
17234
 
 
17235
 
#include <ulocks.h>
17236
 
int
17237
 
main ()
17238
 
{
17239
 
 
17240
 
        typedef spinlock_t tsl_t;
17241
 
        spinlock_t x;
17242
 
        initspin(&x, 1);
17243
 
        cspinlock(&x);
17244
 
        spinunlock(&x);
17245
 
 
17246
 
  ;
17247
 
  return 0;
17248
 
}
17249
 
_ACEOF
17250
 
rm -f conftest.$ac_objext conftest$ac_exeext
17251
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17252
 
  (eval $ac_link) 2>&5
17253
 
  ac_status=$?
17254
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255
 
  (exit $ac_status); } &&
17256
 
         { ac_try='test -s conftest$ac_exeext'
17257
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258
 
  (eval $ac_try) 2>&5
17259
 
  ac_status=$?
17260
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261
 
  (exit $ac_status); }; }; then
17262
 
  db_cv_mutex="ReliantUNIX/initspin"
17263
 
else
17264
 
  echo "$as_me: failed program was:" >&5
17265
 
sed 's/^/| /' conftest.$ac_ext >&5
17266
 
 
17267
 
fi
17268
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17269
 
LIBS="$orig_libs"
17270
 
fi
17271
 
 
17272
 
# SCO: UnixWare has threads in libthread, but OpenServer doesn't.
17273
 
if test "$db_cv_mutex" = no; then
17274
 
cat >conftest.$ac_ext <<_ACEOF
17275
 
#line $LINENO "configure"
17276
 
/* confdefs.h.  */
17277
 
_ACEOF
17278
 
cat confdefs.h >>conftest.$ac_ext
17279
 
cat >>conftest.$ac_ext <<_ACEOF
17280
 
/* end confdefs.h.  */
17281
 
 
17282
 
int
17283
 
main ()
17284
 
{
17285
 
 
17286
 
#if defined(__USLC__)
17287
 
        exit(0);
17288
 
#else
17289
 
        FAIL TO COMPILE/LINK
17290
 
#endif
17291
 
 
17292
 
  ;
17293
 
  return 0;
17294
 
}
17295
 
_ACEOF
17296
 
rm -f conftest.$ac_objext
17297
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17298
 
  (eval $ac_compile) 2>&5
17299
 
  ac_status=$?
17300
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301
 
  (exit $ac_status); } &&
17302
 
         { ac_try='test -s conftest.$ac_objext'
17303
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304
 
  (eval $ac_try) 2>&5
17305
 
  ac_status=$?
17306
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307
 
  (exit $ac_status); }; }; then
17308
 
  db_cv_mutex="SCO/x86/cc-assembly"
17309
 
else
17310
 
  echo "$as_me: failed program was:" >&5
17311
 
sed 's/^/| /' conftest.$ac_ext >&5
17312
 
 
17313
 
fi
17314
 
rm -f conftest.$ac_objext conftest.$ac_ext
17315
 
fi
17316
 
 
17317
 
# abilock_t: SGI
17318
 
if test "$db_cv_mutex" = no; then
17319
 
cat >conftest.$ac_ext <<_ACEOF
17320
 
#line $LINENO "configure"
17321
 
/* confdefs.h.  */
17322
 
_ACEOF
17323
 
cat confdefs.h >>conftest.$ac_ext
17324
 
cat >>conftest.$ac_ext <<_ACEOF
17325
 
/* end confdefs.h.  */
17326
 
 
17327
 
#include <abi_mutex.h>
17328
 
int
17329
 
main ()
17330
 
{
17331
 
 
17332
 
        typedef abilock_t tsl_t;
17333
 
        abilock_t x;
17334
 
        init_lock(&x);
17335
 
        acquire_lock(&x);
17336
 
        release_lock(&x);
17337
 
 
17338
 
  ;
17339
 
  return 0;
17340
 
}
17341
 
_ACEOF
17342
 
rm -f conftest.$ac_objext conftest$ac_exeext
17343
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17344
 
  (eval $ac_link) 2>&5
17345
 
  ac_status=$?
17346
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347
 
  (exit $ac_status); } &&
17348
 
         { ac_try='test -s conftest$ac_exeext'
17349
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350
 
  (eval $ac_try) 2>&5
17351
 
  ac_status=$?
17352
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353
 
  (exit $ac_status); }; }; then
17354
 
  db_cv_mutex="SGI/init_lock"
17355
 
else
17356
 
  echo "$as_me: failed program was:" >&5
17357
 
sed 's/^/| /' conftest.$ac_ext >&5
17358
 
 
17359
 
fi
17360
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17361
 
fi
17362
 
 
17363
 
# sema_t: Solaris
17364
 
# The sema_XXX calls do not work on Solaris 5.5.  I see no reason to ever
17365
 
# turn this test on, unless we find some other platform that uses the old
17366
 
# POSIX.1 interfaces.  (I plan to move directly to pthreads on Solaris.)
17367
 
if test "$db_cv_mutex" = DOESNT_WORK; then
17368
 
cat >conftest.$ac_ext <<_ACEOF
17369
 
#line $LINENO "configure"
17370
 
/* confdefs.h.  */
17371
 
_ACEOF
17372
 
cat confdefs.h >>conftest.$ac_ext
17373
 
cat >>conftest.$ac_ext <<_ACEOF
17374
 
/* end confdefs.h.  */
17375
 
 
17376
 
#include <synch.h>
17377
 
int
17378
 
main ()
17379
 
{
17380
 
 
17381
 
        typedef sema_t tsl_t;
17382
 
        sema_t x;
17383
 
        sema_init(&x, 1, USYNC_PROCESS, NULL);
17384
 
        sema_wait(&x);
17385
 
        sema_post(&x);
17386
 
 
17387
 
  ;
17388
 
  return 0;
17389
 
}
17390
 
_ACEOF
17391
 
rm -f conftest.$ac_objext conftest$ac_exeext
17392
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17393
 
  (eval $ac_link) 2>&5
17394
 
  ac_status=$?
17395
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396
 
  (exit $ac_status); } &&
17397
 
         { ac_try='test -s conftest$ac_exeext'
17398
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17399
 
  (eval $ac_try) 2>&5
17400
 
  ac_status=$?
17401
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402
 
  (exit $ac_status); }; }; then
17403
 
  db_cv_mutex="UNIX/sema_init"
17404
 
else
17405
 
  echo "$as_me: failed program was:" >&5
17406
 
sed 's/^/| /' conftest.$ac_ext >&5
17407
 
 
17408
 
fi
17409
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17410
 
fi
17411
 
 
17412
 
# _lock_try/_lock_clear: Solaris
17413
 
# On Solaris systems without Pthread or UI mutex interfaces, DB uses the
17414
 
# undocumented _lock_try _lock_clear function calls instead of either the
17415
 
# sema_trywait(3T) or sema_wait(3T) function calls.  This is because of
17416
 
# problems in those interfaces in some releases of the Solaris C library.
17417
 
if test "$db_cv_mutex" = no; then
17418
 
cat >conftest.$ac_ext <<_ACEOF
17419
 
#line $LINENO "configure"
17420
 
/* confdefs.h.  */
17421
 
_ACEOF
17422
 
cat confdefs.h >>conftest.$ac_ext
17423
 
cat >>conftest.$ac_ext <<_ACEOF
17424
 
/* end confdefs.h.  */
17425
 
 
17426
 
#include <sys/machlock.h>
17427
 
int
17428
 
main ()
17429
 
{
17430
 
 
17431
 
        typedef lock_t tsl_t;
17432
 
        lock_t x;
17433
 
        _lock_try(&x);
17434
 
        _lock_clear(&x);
17435
 
 
17436
 
  ;
17437
 
  return 0;
17438
 
}
17439
 
_ACEOF
17440
 
rm -f conftest.$ac_objext conftest$ac_exeext
17441
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17442
 
  (eval $ac_link) 2>&5
17443
 
  ac_status=$?
17444
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445
 
  (exit $ac_status); } &&
17446
 
         { ac_try='test -s conftest$ac_exeext'
17447
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17448
 
  (eval $ac_try) 2>&5
17449
 
  ac_status=$?
17450
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451
 
  (exit $ac_status); }; }; then
17452
 
  db_cv_mutex="Solaris/_lock_try"
17453
 
else
17454
 
  echo "$as_me: failed program was:" >&5
17455
 
sed 's/^/| /' conftest.$ac_ext >&5
17456
 
 
17457
 
fi
17458
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17459
 
fi
17460
 
 
17461
 
# _check_lock/_clear_lock: AIX
17462
 
if test "$db_cv_mutex" = no; then
17463
 
cat >conftest.$ac_ext <<_ACEOF
17464
 
#line $LINENO "configure"
17465
 
/* confdefs.h.  */
17466
 
_ACEOF
17467
 
cat confdefs.h >>conftest.$ac_ext
17468
 
cat >>conftest.$ac_ext <<_ACEOF
17469
 
/* end confdefs.h.  */
17470
 
 
17471
 
#include <sys/atomic_op.h>
17472
 
int
17473
 
main ()
17474
 
{
17475
 
 
17476
 
        int x;
17477
 
        _check_lock(&x,0,1);
17478
 
        _clear_lock(&x,0);
17479
 
 
17480
 
  ;
17481
 
  return 0;
17482
 
}
17483
 
_ACEOF
17484
 
rm -f conftest.$ac_objext conftest$ac_exeext
17485
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17486
 
  (eval $ac_link) 2>&5
17487
 
  ac_status=$?
17488
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489
 
  (exit $ac_status); } &&
17490
 
         { ac_try='test -s conftest$ac_exeext'
17491
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492
 
  (eval $ac_try) 2>&5
17493
 
  ac_status=$?
17494
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495
 
  (exit $ac_status); }; }; then
17496
 
  db_cv_mutex="AIX/_check_lock"
17497
 
else
17498
 
  echo "$as_me: failed program was:" >&5
17499
 
sed 's/^/| /' conftest.$ac_ext >&5
17500
 
 
17501
 
fi
17502
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17503
 
fi
17504
 
 
17505
 
# Alpha/gcc: OSF/1
17506
 
if test "$db_cv_mutex" = no; then
17507
 
cat >conftest.$ac_ext <<_ACEOF
17508
 
#line $LINENO "configure"
17509
 
/* confdefs.h.  */
17510
 
_ACEOF
17511
 
cat confdefs.h >>conftest.$ac_ext
17512
 
cat >>conftest.$ac_ext <<_ACEOF
17513
 
/* end confdefs.h.  */
17514
 
 
17515
 
int
17516
 
main ()
17517
 
{
17518
 
 
17519
 
#if defined(__alpha) && defined(__GNUC__)
17520
 
        exit(0);
17521
 
#else
17522
 
        FAIL TO COMPILE/LINK
17523
 
#endif
17524
 
 
17525
 
  ;
17526
 
  return 0;
17527
 
}
17528
 
_ACEOF
17529
 
rm -f conftest.$ac_objext
17530
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17531
 
  (eval $ac_compile) 2>&5
17532
 
  ac_status=$?
17533
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534
 
  (exit $ac_status); } &&
17535
 
         { ac_try='test -s conftest.$ac_objext'
17536
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537
 
  (eval $ac_try) 2>&5
17538
 
  ac_status=$?
17539
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540
 
  (exit $ac_status); }; }; then
17541
 
  db_cv_mutex="ALPHA/gcc-assembly"
17542
 
else
17543
 
  echo "$as_me: failed program was:" >&5
17544
 
sed 's/^/| /' conftest.$ac_ext >&5
17545
 
 
17546
 
fi
17547
 
rm -f conftest.$ac_objext conftest.$ac_ext
17548
 
fi
17549
 
 
17550
 
# ARM/gcc: Linux
17551
 
if test "$db_cv_mutex" = no; then
17552
 
cat >conftest.$ac_ext <<_ACEOF
17553
 
#line $LINENO "configure"
17554
 
/* confdefs.h.  */
17555
 
_ACEOF
17556
 
cat confdefs.h >>conftest.$ac_ext
17557
 
cat >>conftest.$ac_ext <<_ACEOF
17558
 
/* end confdefs.h.  */
17559
 
 
17560
 
int
17561
 
main ()
17562
 
{
17563
 
 
17564
 
#if defined(__arm__) && defined(__GNUC__)
17565
 
        exit(0);
17566
 
#else
17567
 
        FAIL TO COMPILE/LINK
17568
 
#endif
17569
 
 
17570
 
  ;
17571
 
  return 0;
17572
 
}
17573
 
_ACEOF
17574
 
rm -f conftest.$ac_objext
17575
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17576
 
  (eval $ac_compile) 2>&5
17577
 
  ac_status=$?
17578
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579
 
  (exit $ac_status); } &&
17580
 
         { ac_try='test -s conftest.$ac_objext'
17581
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582
 
  (eval $ac_try) 2>&5
17583
 
  ac_status=$?
17584
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585
 
  (exit $ac_status); }; }; then
17586
 
  db_cv_mutex="ARM/gcc-assembly"
17587
 
else
17588
 
  echo "$as_me: failed program was:" >&5
17589
 
sed 's/^/| /' conftest.$ac_ext >&5
17590
 
 
17591
 
fi
17592
 
rm -f conftest.$ac_objext conftest.$ac_ext
17593
 
fi
17594
 
 
17595
 
# MIPS/gcc: Linux
17596
 
if test "$db_cv_mutex" = no; then
17597
 
cat >conftest.$ac_ext <<_ACEOF
17598
 
#line $LINENO "configure"
17599
 
/* confdefs.h.  */
17600
 
_ACEOF
17601
 
cat confdefs.h >>conftest.$ac_ext
17602
 
cat >>conftest.$ac_ext <<_ACEOF
17603
 
/* end confdefs.h.  */
17604
 
 
17605
 
int
17606
 
main ()
17607
 
{
17608
 
 
17609
 
#if (defined(__mips) || defined(__mips__)) && defined(__GNUC__)
17610
 
        exit(0);
17611
 
#else
17612
 
        FAIL TO COMPILE/LINK
17613
 
#endif
17614
 
 
17615
 
  ;
17616
 
  return 0;
17617
 
}
17618
 
_ACEOF
17619
 
rm -f conftest.$ac_objext
17620
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17621
 
  (eval $ac_compile) 2>&5
17622
 
  ac_status=$?
17623
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624
 
  (exit $ac_status); } &&
17625
 
         { ac_try='test -s conftest.$ac_objext'
17626
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627
 
  (eval $ac_try) 2>&5
17628
 
  ac_status=$?
17629
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630
 
  (exit $ac_status); }; }; then
17631
 
  db_cv_mutex="MIPS/gcc-assembly"
17632
 
else
17633
 
  echo "$as_me: failed program was:" >&5
17634
 
sed 's/^/| /' conftest.$ac_ext >&5
17635
 
 
17636
 
fi
17637
 
rm -f conftest.$ac_objext conftest.$ac_ext
17638
 
fi
17639
 
 
17640
 
# PaRisc/gcc: HP/UX
17641
 
if test "$db_cv_mutex" = no; then
17642
 
cat >conftest.$ac_ext <<_ACEOF
17643
 
#line $LINENO "configure"
17644
 
/* confdefs.h.  */
17645
 
_ACEOF
17646
 
cat confdefs.h >>conftest.$ac_ext
17647
 
cat >>conftest.$ac_ext <<_ACEOF
17648
 
/* end confdefs.h.  */
17649
 
 
17650
 
int
17651
 
main ()
17652
 
{
17653
 
 
17654
 
#if (defined(__hppa) || defined(__hppa__)) && defined(__GNUC__)
17655
 
        exit(0);
17656
 
#else
17657
 
        FAIL TO COMPILE/LINK
17658
 
#endif
17659
 
 
17660
 
  ;
17661
 
  return 0;
17662
 
}
17663
 
_ACEOF
17664
 
rm -f conftest.$ac_objext
17665
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17666
 
  (eval $ac_compile) 2>&5
17667
 
  ac_status=$?
17668
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669
 
  (exit $ac_status); } &&
17670
 
         { ac_try='test -s conftest.$ac_objext'
17671
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672
 
  (eval $ac_try) 2>&5
17673
 
  ac_status=$?
17674
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675
 
  (exit $ac_status); }; }; then
17676
 
  db_cv_mutex="HPPA/gcc-assembly"
17677
 
else
17678
 
  echo "$as_me: failed program was:" >&5
17679
 
sed 's/^/| /' conftest.$ac_ext >&5
17680
 
 
17681
 
fi
17682
 
rm -f conftest.$ac_objext conftest.$ac_ext
17683
 
fi
17684
 
 
17685
 
# PPC/gcc:
17686
 
# Test for Apple first, it requires slightly different assembly.
17687
 
if test "$db_cv_mutex" = no; then
17688
 
cat >conftest.$ac_ext <<_ACEOF
17689
 
#line $LINENO "configure"
17690
 
/* confdefs.h.  */
17691
 
_ACEOF
17692
 
cat confdefs.h >>conftest.$ac_ext
17693
 
cat >>conftest.$ac_ext <<_ACEOF
17694
 
/* end confdefs.h.  */
17695
 
 
17696
 
int
17697
 
main ()
17698
 
{
17699
 
 
17700
 
#if (defined(__powerpc__) || defined(__ppc__)) && defined(__GNUC__) && defined(__APPLE__)
17701
 
        exit(0);
17702
 
#else
17703
 
        FAIL TO COMPILE/LINK
17704
 
#endif
17705
 
 
17706
 
  ;
17707
 
  return 0;
17708
 
}
17709
 
_ACEOF
17710
 
rm -f conftest.$ac_objext
17711
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17712
 
  (eval $ac_compile) 2>&5
17713
 
  ac_status=$?
17714
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715
 
  (exit $ac_status); } &&
17716
 
         { ac_try='test -s conftest.$ac_objext'
17717
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718
 
  (eval $ac_try) 2>&5
17719
 
  ac_status=$?
17720
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721
 
  (exit $ac_status); }; }; then
17722
 
  db_cv_mutex="PPC_APPLE/gcc-assembly"
17723
 
else
17724
 
  echo "$as_me: failed program was:" >&5
17725
 
sed 's/^/| /' conftest.$ac_ext >&5
17726
 
 
17727
 
fi
17728
 
rm -f conftest.$ac_objext conftest.$ac_ext
17729
 
fi
17730
 
if test "$db_cv_mutex" = no; then
17731
 
cat >conftest.$ac_ext <<_ACEOF
17732
 
#line $LINENO "configure"
17733
 
/* confdefs.h.  */
17734
 
_ACEOF
17735
 
cat confdefs.h >>conftest.$ac_ext
17736
 
cat >>conftest.$ac_ext <<_ACEOF
17737
 
/* end confdefs.h.  */
17738
 
 
17739
 
int
17740
 
main ()
17741
 
{
17742
 
 
17743
 
#if (defined(__powerpc__) || defined(__ppc__)) && defined(__GNUC__)
17744
 
        exit(0);
17745
 
#else
17746
 
        FAIL TO COMPILE/LINK
17747
 
#endif
17748
 
 
17749
 
  ;
17750
 
  return 0;
17751
 
}
17752
 
_ACEOF
17753
 
rm -f conftest.$ac_objext
17754
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17755
 
  (eval $ac_compile) 2>&5
17756
 
  ac_status=$?
17757
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758
 
  (exit $ac_status); } &&
17759
 
         { ac_try='test -s conftest.$ac_objext'
17760
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761
 
  (eval $ac_try) 2>&5
17762
 
  ac_status=$?
17763
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764
 
  (exit $ac_status); }; }; then
17765
 
  db_cv_mutex="PPC_GENERIC/gcc-assembly"
17766
 
else
17767
 
  echo "$as_me: failed program was:" >&5
17768
 
sed 's/^/| /' conftest.$ac_ext >&5
17769
 
 
17770
 
fi
17771
 
rm -f conftest.$ac_objext conftest.$ac_ext
17772
 
fi
17773
 
 
17774
 
# Sparc/gcc: SunOS, Solaris
17775
 
if test "$db_cv_mutex" = no; then
17776
 
cat >conftest.$ac_ext <<_ACEOF
17777
 
#line $LINENO "configure"
17778
 
/* confdefs.h.  */
17779
 
_ACEOF
17780
 
cat confdefs.h >>conftest.$ac_ext
17781
 
cat >>conftest.$ac_ext <<_ACEOF
17782
 
/* end confdefs.h.  */
17783
 
 
17784
 
int
17785
 
main ()
17786
 
{
17787
 
 
17788
 
#if defined(__sparc__) && defined(__GNUC__)
17789
 
        exit(0);
17790
 
#else
17791
 
        FAIL TO COMPILE/LINK
17792
 
#endif
17793
 
 
17794
 
  ;
17795
 
  return 0;
17796
 
}
17797
 
_ACEOF
17798
 
rm -f conftest.$ac_objext
17799
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17800
 
  (eval $ac_compile) 2>&5
17801
 
  ac_status=$?
17802
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803
 
  (exit $ac_status); } &&
17804
 
         { ac_try='test -s conftest.$ac_objext'
17805
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806
 
  (eval $ac_try) 2>&5
17807
 
  ac_status=$?
17808
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809
 
  (exit $ac_status); }; }; then
17810
 
  db_cv_mutex="Sparc/gcc-assembly"
17811
 
else
17812
 
  echo "$as_me: failed program was:" >&5
17813
 
sed 's/^/| /' conftest.$ac_ext >&5
17814
 
 
17815
 
fi
17816
 
rm -f conftest.$ac_objext conftest.$ac_ext
17817
 
fi
17818
 
 
17819
 
# 68K/gcc: SunOS
17820
 
if test "$db_cv_mutex" = no; then
17821
 
cat >conftest.$ac_ext <<_ACEOF
17822
 
#line $LINENO "configure"
17823
 
/* confdefs.h.  */
17824
 
_ACEOF
17825
 
cat confdefs.h >>conftest.$ac_ext
17826
 
cat >>conftest.$ac_ext <<_ACEOF
17827
 
/* end confdefs.h.  */
17828
 
 
17829
 
int
17830
 
main ()
17831
 
{
17832
 
 
17833
 
#if (defined(mc68020) || defined(sun3)) && defined(__GNUC__)
17834
 
        exit(0);
17835
 
#else
17836
 
        FAIL TO COMPILE/LINK
17837
 
#endif
17838
 
 
17839
 
  ;
17840
 
  return 0;
17841
 
}
17842
 
_ACEOF
17843
 
rm -f conftest.$ac_objext
17844
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17845
 
  (eval $ac_compile) 2>&5
17846
 
  ac_status=$?
17847
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848
 
  (exit $ac_status); } &&
17849
 
         { ac_try='test -s conftest.$ac_objext'
17850
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851
 
  (eval $ac_try) 2>&5
17852
 
  ac_status=$?
17853
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854
 
  (exit $ac_status); }; }; then
17855
 
  db_cv_mutex="68K/gcc-assembly"
17856
 
else
17857
 
  echo "$as_me: failed program was:" >&5
17858
 
sed 's/^/| /' conftest.$ac_ext >&5
17859
 
 
17860
 
fi
17861
 
rm -f conftest.$ac_objext conftest.$ac_ext
17862
 
fi
17863
 
 
17864
 
# x86/gcc: FreeBSD, NetBSD, BSD/OS, Linux
17865
 
if test "$db_cv_mutex" = no; then
17866
 
cat >conftest.$ac_ext <<_ACEOF
17867
 
#line $LINENO "configure"
17868
 
/* confdefs.h.  */
17869
 
_ACEOF
17870
 
cat confdefs.h >>conftest.$ac_ext
17871
 
cat >>conftest.$ac_ext <<_ACEOF
17872
 
/* end confdefs.h.  */
17873
 
 
17874
 
int
17875
 
main ()
17876
 
{
17877
 
 
17878
 
#if (defined(i386) || defined(__i386__)) && defined(__GNUC__)
17879
 
        exit(0);
17880
 
#else
17881
 
        FAIL TO COMPILE/LINK
17882
 
#endif
17883
 
 
17884
 
  ;
17885
 
  return 0;
17886
 
}
17887
 
_ACEOF
17888
 
rm -f conftest.$ac_objext
17889
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17890
 
  (eval $ac_compile) 2>&5
17891
 
  ac_status=$?
17892
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893
 
  (exit $ac_status); } &&
17894
 
         { ac_try='test -s conftest.$ac_objext'
17895
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896
 
  (eval $ac_try) 2>&5
17897
 
  ac_status=$?
17898
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899
 
  (exit $ac_status); }; }; then
17900
 
  db_cv_mutex="x86/gcc-assembly"
17901
 
else
17902
 
  echo "$as_me: failed program was:" >&5
17903
 
sed 's/^/| /' conftest.$ac_ext >&5
17904
 
 
17905
 
fi
17906
 
rm -f conftest.$ac_objext conftest.$ac_ext
17907
 
fi
17908
 
 
17909
 
# S390/gcc: Linux
17910
 
if test "$db_cv_mutex" = no; then
17911
 
cat >conftest.$ac_ext <<_ACEOF
17912
 
#line $LINENO "configure"
17913
 
/* confdefs.h.  */
17914
 
_ACEOF
17915
 
cat confdefs.h >>conftest.$ac_ext
17916
 
cat >>conftest.$ac_ext <<_ACEOF
17917
 
/* end confdefs.h.  */
17918
 
 
17919
 
int
17920
 
main ()
17921
 
{
17922
 
 
17923
 
#if defined(__s390__) && defined(__GNUC__)
17924
 
        exit(0);
17925
 
#else
17926
 
        FAIL TO COMPILE/LINK
17927
 
#endif
17928
 
 
17929
 
  ;
17930
 
  return 0;
17931
 
}
17932
 
_ACEOF
17933
 
rm -f conftest.$ac_objext
17934
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17935
 
  (eval $ac_compile) 2>&5
17936
 
  ac_status=$?
17937
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938
 
  (exit $ac_status); } &&
17939
 
         { ac_try='test -s conftest.$ac_objext'
17940
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941
 
  (eval $ac_try) 2>&5
17942
 
  ac_status=$?
17943
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944
 
  (exit $ac_status); }; }; then
17945
 
  db_cv_mutex="S390/gcc-assembly"
17946
 
else
17947
 
  echo "$as_me: failed program was:" >&5
17948
 
sed 's/^/| /' conftest.$ac_ext >&5
17949
 
 
17950
 
fi
17951
 
rm -f conftest.$ac_objext conftest.$ac_ext
17952
 
fi
17953
 
 
17954
 
# AMD64/gcc: FreeBSD, NetBSD, BSD/OS, Linux
17955
 
if test "$db_cv_mutex" = no; then
17956
 
cat >conftest.$ac_ext <<_ACEOF
17957
 
#line $LINENO "configure"
17958
 
/* confdefs.h.  */
17959
 
_ACEOF
17960
 
cat confdefs.h >>conftest.$ac_ext
17961
 
cat >>conftest.$ac_ext <<_ACEOF
17962
 
/* end confdefs.h.  */
17963
 
 
17964
 
int
17965
 
main ()
17966
 
{
17967
 
 
17968
 
#if (defined(x86_64) || defined(__x86_64__)) && defined(__GNUC__)
17969
 
        exit(0);
17970
 
#else
17971
 
        FAIL TO COMPILE/LINK
17972
 
#endif
17973
 
 
17974
 
  ;
17975
 
  return 0;
17976
 
}
17977
 
_ACEOF
17978
 
rm -f conftest.$ac_objext
17979
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17980
 
  (eval $ac_compile) 2>&5
17981
 
  ac_status=$?
17982
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983
 
  (exit $ac_status); } &&
17984
 
         { ac_try='test -s conftest.$ac_objext'
17985
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17986
 
  (eval $ac_try) 2>&5
17987
 
  ac_status=$?
17988
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989
 
  (exit $ac_status); }; }; then
17990
 
  db_cv_mutex="x86_64/gcc-assembly"
17991
 
else
17992
 
  echo "$as_me: failed program was:" >&5
17993
 
sed 's/^/| /' conftest.$ac_ext >&5
17994
 
 
17995
 
fi
17996
 
rm -f conftest.$ac_objext conftest.$ac_ext
17997
 
fi
17998
 
 
17999
 
# x86-64/gcc: FreeBSD, NetBSD, BSD/OS, Linux
18000
 
if test "$db_cv_mutex" = no; then
18001
 
if test "$cross_compiling" = yes; then
18002
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18003
 
See \`config.log' for more details." >&5
18004
 
echo "$as_me: error: cannot run test program while cross compiling
18005
 
See \`config.log' for more details." >&2;}
18006
 
   { (exit 1); exit 1; }; }
18007
 
else
18008
 
  cat >conftest.$ac_ext <<_ACEOF
18009
 
#line $LINENO "configure"
18010
 
/* confdefs.h.  */
18011
 
_ACEOF
18012
 
cat confdefs.h >>conftest.$ac_ext
18013
 
cat >>conftest.$ac_ext <<_ACEOF
18014
 
/* end confdefs.h.  */
18015
 
main(){
18016
 
#if defined(__x86_64__)
18017
 
#if defined(__GNUC__)
18018
 
        exit(0);
18019
 
#endif
18020
 
#endif
18021
 
        exit(1);
18022
 
}
18023
 
_ACEOF
18024
 
rm -f conftest$ac_exeext
18025
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18026
 
  (eval $ac_link) 2>&5
18027
 
  ac_status=$?
18028
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18030
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18031
 
  (eval $ac_try) 2>&5
18032
 
  ac_status=$?
18033
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034
 
  (exit $ac_status); }; }; then
18035
 
  db_cv_mutex="x86_64/gcc-assembly"
18036
 
else
18037
 
  echo "$as_me: program exited with status $ac_status" >&5
18038
 
echo "$as_me: failed program was:" >&5
18039
 
sed 's/^/| /' conftest.$ac_ext >&5
18040
 
 
18041
 
fi
18042
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18043
 
fi
18044
 
fi
18045
 
 
18046
 
# ia86/gcc: Linux
18047
 
if test "$db_cv_mutex" = no; then
18048
 
cat >conftest.$ac_ext <<_ACEOF
18049
 
#line $LINENO "configure"
18050
 
/* confdefs.h.  */
18051
 
_ACEOF
18052
 
cat confdefs.h >>conftest.$ac_ext
18053
 
cat >>conftest.$ac_ext <<_ACEOF
18054
 
/* end confdefs.h.  */
18055
 
 
18056
 
int
18057
 
main ()
18058
 
{
18059
 
 
18060
 
#if defined(__ia64) && defined(__GNUC__)
18061
 
        exit(0);
18062
 
#else
18063
 
        FAIL TO COMPILE/LINK
18064
 
#endif
18065
 
 
18066
 
  ;
18067
 
  return 0;
18068
 
}
18069
 
_ACEOF
18070
 
rm -f conftest.$ac_objext
18071
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18072
 
  (eval $ac_compile) 2>&5
18073
 
  ac_status=$?
18074
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075
 
  (exit $ac_status); } &&
18076
 
         { ac_try='test -s conftest.$ac_objext'
18077
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18078
 
  (eval $ac_try) 2>&5
18079
 
  ac_status=$?
18080
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081
 
  (exit $ac_status); }; }; then
18082
 
  db_cv_mutex="ia64/gcc-assembly"
18083
 
else
18084
 
  echo "$as_me: failed program was:" >&5
18085
 
sed 's/^/| /' conftest.$ac_ext >&5
18086
 
 
18087
 
fi
18088
 
rm -f conftest.$ac_objext conftest.$ac_ext
18089
 
fi
18090
 
 
18091
 
if test "$db_cv_mutex" = no; then
18092
 
if test "$cross_compiling" = yes; then
18093
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18094
 
See \`config.log' for more details." >&5
18095
 
echo "$as_me: error: cannot run test program while cross compiling
18096
 
See \`config.log' for more details." >&2;}
18097
 
   { (exit 1); exit 1; }; }
18098
 
else
18099
 
  cat >conftest.$ac_ext <<_ACEOF
18100
 
#line $LINENO "configure"
18101
 
/* confdefs.h.  */
18102
 
_ACEOF
18103
 
cat confdefs.h >>conftest.$ac_ext
18104
 
cat >>conftest.$ac_ext <<_ACEOF
18105
 
/* end confdefs.h.  */
18106
 
main(){
18107
 
#if defined(__alpha__)
18108
 
#if defined(__linux__)
18109
 
       exit(0);
18110
 
#endif
18111
 
#endif
18112
 
       exit(1);
18113
 
}
18114
 
_ACEOF
18115
 
rm -f conftest$ac_exeext
18116
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18117
 
  (eval $ac_link) 2>&5
18118
 
  ac_status=$?
18119
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18121
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18122
 
  (eval $ac_try) 2>&5
18123
 
  ac_status=$?
18124
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125
 
  (exit $ac_status); }; }; then
18126
 
  db_cv_mutex="alphalinux/gcc-assembly"
18127
 
else
18128
 
  echo "$as_me: program exited with status $ac_status" >&5
18129
 
echo "$as_me: failed program was:" >&5
18130
 
sed 's/^/| /' conftest.$ac_ext >&5
18131
 
 
18132
 
fi
18133
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18134
 
fi
18135
 
fi
18136
 
 
18137
 
if test "$db_cv_mutex" = no; then
18138
 
if test "$cross_compiling" = yes; then
18139
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18140
 
See \`config.log' for more details." >&5
18141
 
echo "$as_me: error: cannot run test program while cross compiling
18142
 
See \`config.log' for more details." >&2;}
18143
 
   { (exit 1); exit 1; }; }
18144
 
else
18145
 
  cat >conftest.$ac_ext <<_ACEOF
18146
 
#line $LINENO "configure"
18147
 
/* confdefs.h.  */
18148
 
_ACEOF
18149
 
cat confdefs.h >>conftest.$ac_ext
18150
 
cat >>conftest.$ac_ext <<_ACEOF
18151
 
/* end confdefs.h.  */
18152
 
main(){
18153
 
#if defined(__sparc__) && !defined(__arch64__)
18154
 
#if defined(__linux__)
18155
 
       exit(0);
18156
 
#endif
18157
 
#endif
18158
 
       exit(1);
18159
 
}
18160
 
_ACEOF
18161
 
rm -f conftest$ac_exeext
18162
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18163
 
  (eval $ac_link) 2>&5
18164
 
  ac_status=$?
18165
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18167
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168
 
  (eval $ac_try) 2>&5
18169
 
  ac_status=$?
18170
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171
 
  (exit $ac_status); }; }; then
18172
 
  db_cv_mutex="sparc32linux/gcc-assembly"
18173
 
else
18174
 
  echo "$as_me: program exited with status $ac_status" >&5
18175
 
echo "$as_me: failed program was:" >&5
18176
 
sed 's/^/| /' conftest.$ac_ext >&5
18177
 
 
18178
 
fi
18179
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18180
 
fi
18181
 
fi
18182
 
 
18183
 
if test "$db_cv_mutex" = no; then
18184
 
if test "$cross_compiling" = yes; then
18185
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18186
 
See \`config.log' for more details." >&5
18187
 
echo "$as_me: error: cannot run test program while cross compiling
18188
 
See \`config.log' for more details." >&2;}
18189
 
   { (exit 1); exit 1; }; }
18190
 
else
18191
 
  cat >conftest.$ac_ext <<_ACEOF
18192
 
#line $LINENO "configure"
18193
 
/* confdefs.h.  */
18194
 
_ACEOF
18195
 
cat confdefs.h >>conftest.$ac_ext
18196
 
cat >>conftest.$ac_ext <<_ACEOF
18197
 
/* end confdefs.h.  */
18198
 
main(){
18199
 
#if defined(__sparc__) && defined(__arch64__)
18200
 
#if defined(__linux__)
18201
 
       exit(0);
18202
 
#endif
18203
 
#endif
18204
 
       exit(1);
18205
 
}
18206
 
_ACEOF
18207
 
rm -f conftest$ac_exeext
18208
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18209
 
  (eval $ac_link) 2>&5
18210
 
  ac_status=$?
18211
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18213
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214
 
  (eval $ac_try) 2>&5
18215
 
  ac_status=$?
18216
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217
 
  (exit $ac_status); }; }; then
18218
 
  db_cv_mutex="sparc64linux/gcc-assembly"
18219
 
else
18220
 
  echo "$as_me: program exited with status $ac_status" >&5
18221
 
echo "$as_me: failed program was:" >&5
18222
 
sed 's/^/| /' conftest.$ac_ext >&5
18223
 
 
18224
 
fi
18225
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18226
 
fi
18227
 
fi
18228
 
 
18229
 
if test "$db_cv_mutex" = no; then
18230
 
if test "$cross_compiling" = yes; then
18231
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18232
 
See \`config.log' for more details." >&5
18233
 
echo "$as_me: error: cannot run test program while cross compiling
18234
 
See \`config.log' for more details." >&2;}
18235
 
   { (exit 1); exit 1; }; }
18236
 
else
18237
 
  cat >conftest.$ac_ext <<_ACEOF
18238
 
#line $LINENO "configure"
18239
 
/* confdefs.h.  */
18240
 
_ACEOF
18241
 
cat confdefs.h >>conftest.$ac_ext
18242
 
cat >>conftest.$ac_ext <<_ACEOF
18243
 
/* end confdefs.h.  */
18244
 
main(){
18245
 
#if defined(__linux__) && defined(__s390__)
18246
 
       exit(0);
18247
 
#endif
18248
 
       exit(1);
18249
 
}
18250
 
_ACEOF
18251
 
rm -f conftest$ac_exeext
18252
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18253
 
  (eval $ac_link) 2>&5
18254
 
  ac_status=$?
18255
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18257
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258
 
  (eval $ac_try) 2>&5
18259
 
  ac_status=$?
18260
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261
 
  (exit $ac_status); }; }; then
18262
 
  db_cv_mutex="s390linux/gcc-assembly"
18263
 
else
18264
 
  echo "$as_me: program exited with status $ac_status" >&5
18265
 
echo "$as_me: failed program was:" >&5
18266
 
sed 's/^/| /' conftest.$ac_ext >&5
18267
 
 
18268
 
fi
18269
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18270
 
fi
18271
 
fi
18272
 
 
18273
 
 
18274
 
# uts/cc: UTS
18275
 
if test "$db_cv_mutex" = no; then
18276
 
cat >conftest.$ac_ext <<_ACEOF
18277
 
#line $LINENO "configure"
18278
 
/* confdefs.h.  */
18279
 
_ACEOF
18280
 
cat confdefs.h >>conftest.$ac_ext
18281
 
cat >>conftest.$ac_ext <<_ACEOF
18282
 
/* end confdefs.h.  */
18283
 
 
18284
 
int
18285
 
main ()
18286
 
{
18287
 
 
18288
 
#if defined(_UTS)
18289
 
        exit(0);
18290
 
#else
18291
 
        FAIL TO COMPILE/LINK
18292
 
#endif
18293
 
 
18294
 
  ;
18295
 
  return 0;
18296
 
}
18297
 
_ACEOF
18298
 
rm -f conftest.$ac_objext
18299
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18300
 
  (eval $ac_compile) 2>&5
18301
 
  ac_status=$?
18302
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303
 
  (exit $ac_status); } &&
18304
 
         { ac_try='test -s conftest.$ac_objext'
18305
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18306
 
  (eval $ac_try) 2>&5
18307
 
  ac_status=$?
18308
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309
 
  (exit $ac_status); }; }; then
18310
 
  db_cv_mutex="UTS/cc-assembly"
18311
 
else
18312
 
  echo "$as_me: failed program was:" >&5
18313
 
sed 's/^/| /' conftest.$ac_ext >&5
18314
 
 
18315
 
fi
18316
 
rm -f conftest.$ac_objext conftest.$ac_ext
18317
 
fi
18318
 
 
18319
 
# default to UNIX fcntl system call mutexes.
18320
 
if test "$db_cv_mutex" = no; then
18321
 
        db_cv_mutex="UNIX/fcntl"
18322
 
fi
18323
 
 
18324
 
fi
18325
 
echo "$as_me:$LINENO: result: $db_cv_mutex" >&5
18326
 
echo "${ECHO_T}$db_cv_mutex" >&6
18327
 
 
18328
 
case "$db_cv_mutex" in
18329
 
68K/gcc-assembly)       ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18330
 
                        cat >>confdefs.h <<\_ACEOF
18331
 
#define HAVE_MUTEX_68K_GCC_ASSEMBLY 1
18332
 
_ACEOF
18333
 
 
18334
 
 
18335
 
;;
18336
 
AIX/_check_lock)        ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18337
 
                        cat >>confdefs.h <<\_ACEOF
18338
 
#define HAVE_MUTEX_AIX_CHECK_LOCK 1
18339
 
_ACEOF
18340
 
 
18341
 
 
18342
 
;;
18343
 
ALPHA/gcc-assembly)     ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18344
 
                        cat >>confdefs.h <<\_ACEOF
18345
 
#define HAVE_MUTEX_ALPHA_GCC_ASSEMBLY 1
18346
 
_ACEOF
18347
 
 
18348
 
 
18349
 
;;
18350
 
ARM/gcc-assembly)       ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18351
 
                        cat >>confdefs.h <<\_ACEOF
18352
 
#define HAVE_MUTEX_ARM_GCC_ASSEMBLY 1
18353
 
_ACEOF
18354
 
 
18355
 
 
18356
 
;;
18357
 
HP/msem_init)           ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18358
 
                        cat >>confdefs.h <<\_ACEOF
18359
 
#define HAVE_MUTEX_HPPA_MSEM_INIT 1
18360
 
_ACEOF
18361
 
 
18362
 
 
18363
 
;;
18364
 
HPPA/gcc-assembly)      ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18365
 
                        cat >>confdefs.h <<\_ACEOF
18366
 
#define HAVE_MUTEX_HPPA_GCC_ASSEMBLY 1
18367
 
_ACEOF
18368
 
 
18369
 
 
18370
 
;;
18371
 
ia64/gcc-assembly)      ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18372
 
                        cat >>confdefs.h <<\_ACEOF
18373
 
#define HAVE_MUTEX_IA64_GCC_ASSEMBLY 1
18374
 
_ACEOF
18375
 
 
18376
 
 
18377
 
;;
18378
 
POSIX/pthreads)         ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
18379
 
                        cat >>confdefs.h <<\_ACEOF
18380
 
#define HAVE_MUTEX_PTHREADS 1
18381
 
_ACEOF
18382
 
 
18383
 
 
18384
 
;;
18385
 
POSIX/pthreads/private) ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
18386
 
                        cat >>confdefs.h <<\_ACEOF
18387
 
#define HAVE_MUTEX_PTHREADS 1
18388
 
_ACEOF
18389
 
 
18390
 
 
18391
 
 
18392
 
                        cat >>confdefs.h <<\_ACEOF
18393
 
#define HAVE_MUTEX_THREAD_ONLY 1
18394
 
_ACEOF
18395
 
 
18396
 
 
18397
 
;;
18398
 
POSIX/pthreads/library) LIBS="$LIBS -lpthread"
18399
 
                        ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
18400
 
                        cat >>confdefs.h <<\_ACEOF
18401
 
#define HAVE_MUTEX_PTHREADS 1
18402
 
_ACEOF
18403
 
 
18404
 
 
18405
 
;;
18406
 
POSIX/pthreads/library/private)
18407
 
                        LIBS="$LIBS -lpthread"
18408
 
                        ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
18409
 
                        cat >>confdefs.h <<\_ACEOF
18410
 
#define HAVE_MUTEX_PTHREADS 1
18411
 
_ACEOF
18412
 
 
18413
 
 
18414
 
 
18415
 
                        cat >>confdefs.h <<\_ACEOF
18416
 
#define HAVE_MUTEX_THREAD_ONLY 1
18417
 
_ACEOF
18418
 
 
18419
 
 
18420
 
;;
18421
 
PPC_GENERIC/gcc-assembly)
18422
 
                        ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18423
 
                        cat >>confdefs.h <<\_ACEOF
18424
 
#define HAVE_MUTEX_PPC_GENERIC_GCC_ASSEMBLY 1
18425
 
_ACEOF
18426
 
 
18427
 
 
18428
 
;;
18429
 
PPC_APPLE/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18430
 
                        cat >>confdefs.h <<\_ACEOF
18431
 
#define HAVE_MUTEX_PPC_APPLE_GCC_ASSEMBLY 1
18432
 
_ACEOF
18433
 
 
18434
 
 
18435
 
;;
18436
 
ReliantUNIX/initspin)   LIBS="$LIBS -lmproc"
18437
 
                        ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18438
 
                        cat >>confdefs.h <<\_ACEOF
18439
 
#define HAVE_MUTEX_RELIANTUNIX_INITSPIN 1
18440
 
_ACEOF
18441
 
 
18442
 
 
18443
 
;;
18444
 
S390/gcc-assembly)      ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18445
 
                        cat >>confdefs.h <<\_ACEOF
18446
 
#define HAVE_MUTEX_S390_GCC_ASSEMBLY 1
18447
 
_ACEOF
18448
 
 
18449
 
 
18450
 
;;
18451
 
SCO/x86/cc-assembly)    ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18452
 
                        cat >>confdefs.h <<\_ACEOF
18453
 
#define HAVE_MUTEX_SCO_X86_CC_ASSEMBLY 1
18454
 
_ACEOF
18455
 
 
18456
 
 
18457
 
;;
18458
 
SGI/init_lock)          ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18459
 
                        cat >>confdefs.h <<\_ACEOF
18460
 
#define HAVE_MUTEX_SGI_INIT_LOCK 1
18461
 
_ACEOF
18462
 
 
18463
 
 
18464
 
;;
18465
 
Solaris/_lock_try)      ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18466
 
                        cat >>confdefs.h <<\_ACEOF
18467
 
#define HAVE_MUTEX_SOLARIS_LOCK_TRY 1
18468
 
_ACEOF
18469
 
 
18470
 
 
18471
 
;;
18472
 
Solaris/lwp)            ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
18473
 
                        cat >>confdefs.h <<\_ACEOF
18474
 
#define HAVE_MUTEX_SOLARIS_LWP 1
18475
 
_ACEOF
18476
 
 
18477
 
 
18478
 
;;
18479
 
Sparc/gcc-assembly)     ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18480
 
                        cat >>confdefs.h <<\_ACEOF
18481
 
#define HAVE_MUTEX_SPARC_GCC_ASSEMBLY 1
18482
 
_ACEOF
18483
 
 
18484
 
 
18485
 
;;
18486
 
UI/threads)             ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
18487
 
                        cat >>confdefs.h <<\_ACEOF
18488
 
#define HAVE_MUTEX_UI_THREADS 1
18489
 
_ACEOF
18490
 
 
18491
 
 
18492
 
;;
18493
 
UI/threads/library)     LIBS="$LIBS -lthread"
18494
 
                        ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
18495
 
                        cat >>confdefs.h <<\_ACEOF
18496
 
#define HAVE_MUTEX_UI_THREADS 1
18497
 
_ACEOF
18498
 
 
18499
 
 
18500
 
;;
18501
 
UNIX/msem_init)         ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18502
 
                        cat >>confdefs.h <<\_ACEOF
18503
 
#define HAVE_MUTEX_MSEM_INIT 1
18504
 
_ACEOF
18505
 
 
18506
 
 
18507
 
;;
18508
 
UNIX/sema_init)         ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18509
 
                        cat >>confdefs.h <<\_ACEOF
18510
 
#define HAVE_MUTEX_SEMA_INIT 1
18511
 
_ACEOF
18512
 
 
18513
 
 
18514
 
;;
18515
 
UTS/cc-assembly)        ADDITIONAL_OBJS="$ADDITIONAL_OBJS uts4.cc${o}"
18516
 
                        cat >>confdefs.h <<\_ACEOF
18517
 
#define HAVE_MUTEX_UTS_CC_ASSEMBLY 1
18518
 
_ACEOF
18519
 
 
18520
 
 
18521
 
;;
18522
 
MIPS/gcc-assembly)      ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18523
 
                        cat >>confdefs.h <<\_ACEOF
18524
 
#define HAVE_MUTEX_MIPS_GCC_ASSEMBLY 1
18525
 
_ACEOF
18526
 
 
18527
 
 
18528
 
;;
18529
 
x86/gcc-assembly)       ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18530
 
                        cat >>confdefs.h <<\_ACEOF
18531
 
#define HAVE_MUTEX_X86_GCC_ASSEMBLY 1
18532
 
_ACEOF
18533
 
 
18534
 
 
18535
 
;;
18536
 
x86_64/gcc-assembly)    ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18537
 
                        cat >>confdefs.h <<\_ACEOF
18538
 
#define HAVE_MUTEX_X86_64_GCC_ASSEMBLY 1
18539
 
_ACEOF
18540
 
 
18541
 
 
18542
 
;;
18543
 
alphalinux/gcc-assembly)        ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18544
 
                        cat >>confdefs.h <<\_ACEOF
18545
 
#define HAVE_MUTEX_ALPHA_LINUX_ASSEMBLY 1
18546
 
_ACEOF
18547
 
 
18548
 
 
18549
 
;;
18550
 
sparc32linux/gcc-assembly)      ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18551
 
                        cat >>confdefs.h <<\_ACEOF
18552
 
#define HAVE_MUTEX_SPARC32_LINUX_ASSEMBLY 1
18553
 
_ACEOF
18554
 
 
18555
 
 
18556
 
;;
18557
 
sparc64linux/gcc-assembly)      ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18558
 
                        cat >>confdefs.h <<\_ACEOF
18559
 
#define HAVE_MUTEX_SPARC64_LINUX_ASSEMBLY 1
18560
 
_ACEOF
18561
 
 
18562
 
 
18563
 
;;
18564
 
s390linux/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
18565
 
                        cat >>confdefs.h <<\_ACEOF
18566
 
#define HAVE_MUTEX_S390_LINUX_ASSEMBLY 1
18567
 
_ACEOF
18568
 
 
18569
 
 
18570
 
;;
18571
 
UNIX/fcntl)             { echo "$as_me:$LINENO: WARNING: NO FAST MUTEXES FOUND FOR THIS COMPILER/ARCHITECTURE." >&5
18572
 
echo "$as_me: WARNING: NO FAST MUTEXES FOUND FOR THIS COMPILER/ARCHITECTURE." >&2;}
18573
 
                        ADDITIONAL_OBJS="mut_fcntl${o} $ADDITIONAL_OBJS"
18574
 
                        cat >>confdefs.h <<\_ACEOF
18575
 
#define HAVE_MUTEX_FCNTL 1
18576
 
_ACEOF
18577
 
 
18578
 
 
18579
 
;;
18580
 
*)                      { { echo "$as_me:$LINENO: error: Unknown mutex interface: $db_cv_mutex" >&5
18581
 
echo "$as_me: error: Unknown mutex interface: $db_cv_mutex" >&2;}
18582
 
   { (exit 1); exit 1; }; };;
18583
 
esac
18584
 
 
18585
 
if test "$db_cv_mutex" != "UNIX/fcntl"; then
18586
 
        cat >>confdefs.h <<\_ACEOF
18587
 
#define HAVE_MUTEX_THREADS 1
18588
 
_ACEOF
18589
 
 
18590
 
 
18591
 
 
18592
 
fi
18593
 
 
18594
 
# There are 3 classes of mutexes:
18595
 
#
18596
 
# 1: Mutexes requiring no cleanup, for example, test-and-set mutexes.
18597
 
# 2: Mutexes that must be destroyed, but which don't hold permanent system
18598
 
#    resources, for example, pthread mutexes on MVS aka OS/390 aka z/OS.
18599
 
# 3: Mutexes that must be destroyed, even after the process is gone, for
18600
 
#    example, pthread mutexes on QNX and binary semaphores on VxWorks.
18601
 
#
18602
 
# DB cannot currently distinguish between #2 and #3 because DB does not know
18603
 
# if the application is running environment recovery as part of startup and
18604
 
# does not need to do cleanup, or if the environment is being removed and/or
18605
 
# recovered in a loop in the application, and so does need to clean up.  If
18606
 
# we get it wrong, we're going to call the mutex destroy routine on a random
18607
 
# piece of memory, which usually works, but just might drop core.  For now,
18608
 
# we group #2 and #3 into the HAVE_MUTEX_SYSTEM_RESOURCES define, until we
18609
 
# have a better solution or reason to solve this in a general way -- so far,
18610
 
# the places we've needed to handle this are few.
18611
 
 
18612
 
 
18613
 
 
18614
 
case "$host_os$db_cv_mutex" in
18615
 
*qnx*POSIX/pthread*|openedition*POSIX/pthread*)
18616
 
        cat >>confdefs.h <<\_ACEOF
18617
 
#define HAVE_MUTEX_SYSTEM_RESOURCES 1
18618
 
_ACEOF
18619
 
;;
18620
 
esac
18621
 
 
18622
 
# Checks for system functions for which we have replacements.
18623
 
#
18624
 
# XXX
18625
 
# The only portable getcwd call is getcwd(char *, size_t), where the
18626
 
# buffer is non-NULL -- Solaris can't handle a NULL buffer, and they
18627
 
# deleted getwd().
18628
 
 
18629
 
 
18630
 
 
18631
 
 
18632
 
 
18633
 
 
18634
 
for ac_func in getcwd getopt memcmp memcpy memmove raise
18635
 
do
18636
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18637
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
18638
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18639
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
18640
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18641
 
else
18642
 
  cat >conftest.$ac_ext <<_ACEOF
18643
 
#line $LINENO "configure"
18644
 
/* confdefs.h.  */
18645
 
_ACEOF
18646
 
cat confdefs.h >>conftest.$ac_ext
18647
 
cat >>conftest.$ac_ext <<_ACEOF
18648
 
/* end confdefs.h.  */
18649
 
/* System header to define __stub macros and hopefully few prototypes,
18650
 
    which can conflict with char $ac_func (); below.
18651
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18652
 
    <limits.h> exists even on freestanding compilers.  */
18653
 
#ifdef __STDC__
18654
 
# include <limits.h>
18655
 
#else
18656
 
# include <assert.h>
18657
 
#endif
18658
 
/* Override any gcc2 internal prototype to avoid an error.  */
18659
 
#ifdef __cplusplus
18660
 
extern "C"
18661
 
{
18662
 
#endif
18663
 
/* We use char because int might match the return type of a gcc2
18664
 
   builtin and then its argument prototype would still apply.  */
18665
 
char $ac_func ();
18666
 
/* The GNU C library defines this for functions which it implements
18667
 
    to always fail with ENOSYS.  Some functions are actually named
18668
 
    something starting with __ and the normal name is an alias.  */
18669
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18670
 
choke me
18671
 
#else
18672
 
char (*f) () = $ac_func;
18673
 
#endif
18674
 
#ifdef __cplusplus
18675
 
}
18676
 
#endif
18677
 
 
18678
 
int
18679
 
main ()
18680
 
{
18681
 
return f != $ac_func;
18682
 
  ;
18683
 
  return 0;
18684
 
}
18685
 
_ACEOF
18686
 
rm -f conftest.$ac_objext conftest$ac_exeext
18687
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18688
 
  (eval $ac_link) 2>&5
18689
 
  ac_status=$?
18690
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691
 
  (exit $ac_status); } &&
18692
 
         { ac_try='test -s conftest$ac_exeext'
18693
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694
 
  (eval $ac_try) 2>&5
18695
 
  ac_status=$?
18696
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697
 
  (exit $ac_status); }; }; then
18698
 
  eval "$as_ac_var=yes"
18699
 
else
18700
 
  echo "$as_me: failed program was:" >&5
18701
 
sed 's/^/| /' conftest.$ac_ext >&5
18702
 
 
18703
 
eval "$as_ac_var=no"
18704
 
fi
18705
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18706
 
fi
18707
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18708
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18709
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
18710
 
  cat >>confdefs.h <<_ACEOF
18711
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18712
 
_ACEOF
18713
 
 
18714
 
else
18715
 
  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18716
 
fi
18717
 
done
18718
 
 
18719
 
 
18720
 
 
18721
 
 
18722
 
 
18723
 
 
18724
 
 
18725
 
for ac_func in snprintf strcasecmp strdup strerror vsnprintf
18726
 
do
18727
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18728
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
18729
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18730
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
18731
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18732
 
else
18733
 
  cat >conftest.$ac_ext <<_ACEOF
18734
 
#line $LINENO "configure"
18735
 
/* confdefs.h.  */
18736
 
_ACEOF
18737
 
cat confdefs.h >>conftest.$ac_ext
18738
 
cat >>conftest.$ac_ext <<_ACEOF
18739
 
/* end confdefs.h.  */
18740
 
/* System header to define __stub macros and hopefully few prototypes,
18741
 
    which can conflict with char $ac_func (); below.
18742
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18743
 
    <limits.h> exists even on freestanding compilers.  */
18744
 
#ifdef __STDC__
18745
 
# include <limits.h>
18746
 
#else
18747
 
# include <assert.h>
18748
 
#endif
18749
 
/* Override any gcc2 internal prototype to avoid an error.  */
18750
 
#ifdef __cplusplus
18751
 
extern "C"
18752
 
{
18753
 
#endif
18754
 
/* We use char because int might match the return type of a gcc2
18755
 
   builtin and then its argument prototype would still apply.  */
18756
 
char $ac_func ();
18757
 
/* The GNU C library defines this for functions which it implements
18758
 
    to always fail with ENOSYS.  Some functions are actually named
18759
 
    something starting with __ and the normal name is an alias.  */
18760
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18761
 
choke me
18762
 
#else
18763
 
char (*f) () = $ac_func;
18764
 
#endif
18765
 
#ifdef __cplusplus
18766
 
}
18767
 
#endif
18768
 
 
18769
 
int
18770
 
main ()
18771
 
{
18772
 
return f != $ac_func;
18773
 
  ;
18774
 
  return 0;
18775
 
}
18776
 
_ACEOF
18777
 
rm -f conftest.$ac_objext conftest$ac_exeext
18778
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18779
 
  (eval $ac_link) 2>&5
18780
 
  ac_status=$?
18781
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782
 
  (exit $ac_status); } &&
18783
 
         { ac_try='test -s conftest$ac_exeext'
18784
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18785
 
  (eval $ac_try) 2>&5
18786
 
  ac_status=$?
18787
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788
 
  (exit $ac_status); }; }; then
18789
 
  eval "$as_ac_var=yes"
18790
 
else
18791
 
  echo "$as_me: failed program was:" >&5
18792
 
sed 's/^/| /' conftest.$ac_ext >&5
18793
 
 
18794
 
eval "$as_ac_var=no"
18795
 
fi
18796
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18797
 
fi
18798
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18799
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18800
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
18801
 
  cat >>confdefs.h <<_ACEOF
18802
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18803
 
_ACEOF
18804
 
 
18805
 
else
18806
 
  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18807
 
fi
18808
 
done
18809
 
 
18810
 
 
18811
 
 
18812
 
# Check for system functions we optionally use.
18813
 
 
18814
 
 
18815
 
 
18816
 
 
18817
 
 
18818
 
for ac_func in _fstati64 clock_gettime directio gettimeofday getuid
18819
 
do
18820
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18821
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
18822
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18823
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
18824
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18825
 
else
18826
 
  cat >conftest.$ac_ext <<_ACEOF
18827
 
#line $LINENO "configure"
18828
 
/* confdefs.h.  */
18829
 
_ACEOF
18830
 
cat confdefs.h >>conftest.$ac_ext
18831
 
cat >>conftest.$ac_ext <<_ACEOF
18832
 
/* end confdefs.h.  */
18833
 
/* System header to define __stub macros and hopefully few prototypes,
18834
 
    which can conflict with char $ac_func (); below.
18835
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18836
 
    <limits.h> exists even on freestanding compilers.  */
18837
 
#ifdef __STDC__
18838
 
# include <limits.h>
18839
 
#else
18840
 
# include <assert.h>
18841
 
#endif
18842
 
/* Override any gcc2 internal prototype to avoid an error.  */
18843
 
#ifdef __cplusplus
18844
 
extern "C"
18845
 
{
18846
 
#endif
18847
 
/* We use char because int might match the return type of a gcc2
18848
 
   builtin and then its argument prototype would still apply.  */
18849
 
char $ac_func ();
18850
 
/* The GNU C library defines this for functions which it implements
18851
 
    to always fail with ENOSYS.  Some functions are actually named
18852
 
    something starting with __ and the normal name is an alias.  */
18853
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18854
 
choke me
18855
 
#else
18856
 
char (*f) () = $ac_func;
18857
 
#endif
18858
 
#ifdef __cplusplus
18859
 
}
18860
 
#endif
18861
 
 
18862
 
int
18863
 
main ()
18864
 
{
18865
 
return f != $ac_func;
18866
 
  ;
18867
 
  return 0;
18868
 
}
18869
 
_ACEOF
18870
 
rm -f conftest.$ac_objext conftest$ac_exeext
18871
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18872
 
  (eval $ac_link) 2>&5
18873
 
  ac_status=$?
18874
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875
 
  (exit $ac_status); } &&
18876
 
         { ac_try='test -s conftest$ac_exeext'
18877
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18878
 
  (eval $ac_try) 2>&5
18879
 
  ac_status=$?
18880
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881
 
  (exit $ac_status); }; }; then
18882
 
  eval "$as_ac_var=yes"
18883
 
else
18884
 
  echo "$as_me: failed program was:" >&5
18885
 
sed 's/^/| /' conftest.$ac_ext >&5
18886
 
 
18887
 
eval "$as_ac_var=no"
18888
 
fi
18889
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18890
 
fi
18891
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18892
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18893
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
18894
 
  cat >>confdefs.h <<_ACEOF
18895
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18896
 
_ACEOF
18897
 
 
18898
 
fi
18899
 
done
18900
 
 
18901
 
 
18902
 
 
18903
 
 
18904
 
 
18905
 
 
18906
 
 
18907
 
for ac_func in pstat_getdynamic sched_yield select strtoul sysconf yield
18908
 
do
18909
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18910
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
18911
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18912
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
18913
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18914
 
else
18915
 
  cat >conftest.$ac_ext <<_ACEOF
18916
 
#line $LINENO "configure"
18917
 
/* confdefs.h.  */
18918
 
_ACEOF
18919
 
cat confdefs.h >>conftest.$ac_ext
18920
 
cat >>conftest.$ac_ext <<_ACEOF
18921
 
/* end confdefs.h.  */
18922
 
/* System header to define __stub macros and hopefully few prototypes,
18923
 
    which can conflict with char $ac_func (); below.
18924
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18925
 
    <limits.h> exists even on freestanding compilers.  */
18926
 
#ifdef __STDC__
18927
 
# include <limits.h>
18928
 
#else
18929
 
# include <assert.h>
18930
 
#endif
18931
 
/* Override any gcc2 internal prototype to avoid an error.  */
18932
 
#ifdef __cplusplus
18933
 
extern "C"
18934
 
{
18935
 
#endif
18936
 
/* We use char because int might match the return type of a gcc2
18937
 
   builtin and then its argument prototype would still apply.  */
18938
 
char $ac_func ();
18939
 
/* The GNU C library defines this for functions which it implements
18940
 
    to always fail with ENOSYS.  Some functions are actually named
18941
 
    something starting with __ and the normal name is an alias.  */
18942
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18943
 
choke me
18944
 
#else
18945
 
char (*f) () = $ac_func;
18946
 
#endif
18947
 
#ifdef __cplusplus
18948
 
}
18949
 
#endif
18950
 
 
18951
 
int
18952
 
main ()
18953
 
{
18954
 
return f != $ac_func;
18955
 
  ;
18956
 
  return 0;
18957
 
}
18958
 
_ACEOF
18959
 
rm -f conftest.$ac_objext conftest$ac_exeext
18960
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18961
 
  (eval $ac_link) 2>&5
18962
 
  ac_status=$?
18963
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964
 
  (exit $ac_status); } &&
18965
 
         { ac_try='test -s conftest$ac_exeext'
18966
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18967
 
  (eval $ac_try) 2>&5
18968
 
  ac_status=$?
18969
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970
 
  (exit $ac_status); }; }; then
18971
 
  eval "$as_ac_var=yes"
18972
 
else
18973
 
  echo "$as_me: failed program was:" >&5
18974
 
sed 's/^/| /' conftest.$ac_ext >&5
18975
 
 
18976
 
eval "$as_ac_var=no"
18977
 
fi
18978
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18979
 
fi
18980
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18981
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18982
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
18983
 
  cat >>confdefs.h <<_ACEOF
18984
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18985
 
_ACEOF
18986
 
 
18987
 
fi
18988
 
done
18989
 
 
18990
 
 
18991
 
# Checks for system functions for which we don't have replacements.
18992
 
# We require qsort(3).
18993
 
 
18994
 
for ac_func in qsort
18995
 
do
18996
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18997
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
18998
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18999
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
19000
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19001
 
else
19002
 
  cat >conftest.$ac_ext <<_ACEOF
19003
 
#line $LINENO "configure"
19004
 
/* confdefs.h.  */
19005
 
_ACEOF
19006
 
cat confdefs.h >>conftest.$ac_ext
19007
 
cat >>conftest.$ac_ext <<_ACEOF
19008
 
/* end confdefs.h.  */
19009
 
/* System header to define __stub macros and hopefully few prototypes,
19010
 
    which can conflict with char $ac_func (); below.
19011
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19012
 
    <limits.h> exists even on freestanding compilers.  */
19013
 
#ifdef __STDC__
19014
 
# include <limits.h>
19015
 
#else
19016
 
# include <assert.h>
19017
 
#endif
19018
 
/* Override any gcc2 internal prototype to avoid an error.  */
19019
 
#ifdef __cplusplus
19020
 
extern "C"
19021
 
{
19022
 
#endif
19023
 
/* We use char because int might match the return type of a gcc2
19024
 
   builtin and then its argument prototype would still apply.  */
19025
 
char $ac_func ();
19026
 
/* The GNU C library defines this for functions which it implements
19027
 
    to always fail with ENOSYS.  Some functions are actually named
19028
 
    something starting with __ and the normal name is an alias.  */
19029
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19030
 
choke me
19031
 
#else
19032
 
char (*f) () = $ac_func;
19033
 
#endif
19034
 
#ifdef __cplusplus
19035
 
}
19036
 
#endif
19037
 
 
19038
 
int
19039
 
main ()
19040
 
{
19041
 
return f != $ac_func;
19042
 
  ;
19043
 
  return 0;
19044
 
}
19045
 
_ACEOF
19046
 
rm -f conftest.$ac_objext conftest$ac_exeext
19047
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19048
 
  (eval $ac_link) 2>&5
19049
 
  ac_status=$?
19050
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051
 
  (exit $ac_status); } &&
19052
 
         { ac_try='test -s conftest$ac_exeext'
19053
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054
 
  (eval $ac_try) 2>&5
19055
 
  ac_status=$?
19056
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057
 
  (exit $ac_status); }; }; then
19058
 
  eval "$as_ac_var=yes"
19059
 
else
19060
 
  echo "$as_me: failed program was:" >&5
19061
 
sed 's/^/| /' conftest.$ac_ext >&5
19062
 
 
19063
 
eval "$as_ac_var=no"
19064
 
fi
19065
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19066
 
fi
19067
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19068
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19069
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
19070
 
  cat >>confdefs.h <<_ACEOF
19071
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19072
 
_ACEOF
19073
 
 
19074
 
else
19075
 
  { { echo "$as_me:$LINENO: error: No qsort library function." >&5
19076
 
echo "$as_me: error: No qsort library function." >&2;}
19077
 
   { (exit 1); exit 1; }; }
19078
 
fi
19079
 
done
19080
 
 
19081
 
 
19082
 
# Pread/pwrite.
19083
 
# HP-UX has pread/pwrite, but it doesn't work with largefile support.
19084
 
case "$host_os" in
19085
 
hpux*)
19086
 
        { echo "$as_me:$LINENO: WARNING: pread/pwrite interfaces ignored on $host_os." >&5
19087
 
echo "$as_me: WARNING: pread/pwrite interfaces ignored on $host_os." >&2;};;
19088
 
*)
19089
 
 
19090
 
for ac_func in pread pwrite
19091
 
do
19092
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19093
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
19094
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19095
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
19096
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19097
 
else
19098
 
  cat >conftest.$ac_ext <<_ACEOF
19099
 
#line $LINENO "configure"
19100
 
/* confdefs.h.  */
19101
 
_ACEOF
19102
 
cat confdefs.h >>conftest.$ac_ext
19103
 
cat >>conftest.$ac_ext <<_ACEOF
19104
 
/* end confdefs.h.  */
19105
 
/* System header to define __stub macros and hopefully few prototypes,
19106
 
    which can conflict with char $ac_func (); below.
19107
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19108
 
    <limits.h> exists even on freestanding compilers.  */
19109
 
#ifdef __STDC__
19110
 
# include <limits.h>
19111
 
#else
19112
 
# include <assert.h>
19113
 
#endif
19114
 
/* Override any gcc2 internal prototype to avoid an error.  */
19115
 
#ifdef __cplusplus
19116
 
extern "C"
19117
 
{
19118
 
#endif
19119
 
/* We use char because int might match the return type of a gcc2
19120
 
   builtin and then its argument prototype would still apply.  */
19121
 
char $ac_func ();
19122
 
/* The GNU C library defines this for functions which it implements
19123
 
    to always fail with ENOSYS.  Some functions are actually named
19124
 
    something starting with __ and the normal name is an alias.  */
19125
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19126
 
choke me
19127
 
#else
19128
 
char (*f) () = $ac_func;
19129
 
#endif
19130
 
#ifdef __cplusplus
19131
 
}
19132
 
#endif
19133
 
 
19134
 
int
19135
 
main ()
19136
 
{
19137
 
return f != $ac_func;
19138
 
  ;
19139
 
  return 0;
19140
 
}
19141
 
_ACEOF
19142
 
rm -f conftest.$ac_objext conftest$ac_exeext
19143
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19144
 
  (eval $ac_link) 2>&5
19145
 
  ac_status=$?
19146
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147
 
  (exit $ac_status); } &&
19148
 
         { ac_try='test -s conftest$ac_exeext'
19149
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150
 
  (eval $ac_try) 2>&5
19151
 
  ac_status=$?
19152
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153
 
  (exit $ac_status); }; }; then
19154
 
  eval "$as_ac_var=yes"
19155
 
else
19156
 
  echo "$as_me: failed program was:" >&5
19157
 
sed 's/^/| /' conftest.$ac_ext >&5
19158
 
 
19159
 
eval "$as_ac_var=no"
19160
 
fi
19161
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19162
 
fi
19163
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19164
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19165
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
19166
 
  cat >>confdefs.h <<_ACEOF
19167
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19168
 
_ACEOF
19169
 
 
19170
 
fi
19171
 
done
19172
 
 
19173
 
esac
19174
 
 
19175
 
# Check for fcntl(2) to deny child process access to file descriptors.
19176
 
echo "$as_me:$LINENO: checking for fcntl/F_SETFD" >&5
19177
 
echo $ECHO_N "checking for fcntl/F_SETFD... $ECHO_C" >&6
19178
 
if test "${db_cv_fcntl_f_setfd+set}" = set; then
19179
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19180
 
else
19181
 
 
19182
 
cat >conftest.$ac_ext <<_ACEOF
19183
 
#line $LINENO "configure"
19184
 
/* confdefs.h.  */
19185
 
_ACEOF
19186
 
cat confdefs.h >>conftest.$ac_ext
19187
 
cat >>conftest.$ac_ext <<_ACEOF
19188
 
/* end confdefs.h.  */
19189
 
 
19190
 
#include <sys/types.h>
19191
 
#include <fcntl.h>
19192
 
int
19193
 
main ()
19194
 
{
19195
 
 
19196
 
        fcntl(1, F_SETFD, 1);
19197
 
 
19198
 
  ;
19199
 
  return 0;
19200
 
}
19201
 
_ACEOF
19202
 
rm -f conftest.$ac_objext conftest$ac_exeext
19203
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19204
 
  (eval $ac_link) 2>&5
19205
 
  ac_status=$?
19206
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207
 
  (exit $ac_status); } &&
19208
 
         { ac_try='test -s conftest$ac_exeext'
19209
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19210
 
  (eval $ac_try) 2>&5
19211
 
  ac_status=$?
19212
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213
 
  (exit $ac_status); }; }; then
19214
 
  db_cv_fcntl_f_setfd=yes
19215
 
else
19216
 
  echo "$as_me: failed program was:" >&5
19217
 
sed 's/^/| /' conftest.$ac_ext >&5
19218
 
 
19219
 
db_cv_fcntl_f_setfd=no
19220
 
fi
19221
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19222
 
fi
19223
 
echo "$as_me:$LINENO: result: $db_cv_fcntl_f_setfd" >&5
19224
 
echo "${ECHO_T}$db_cv_fcntl_f_setfd" >&6
19225
 
if test "$db_cv_fcntl_f_setfd" = yes; then
19226
 
        cat >>confdefs.h <<\_ACEOF
19227
 
#define HAVE_FCNTL_F_SETFD 1
19228
 
_ACEOF
19229
 
 
19230
 
 
19231
 
 
19232
 
fi
19233
 
 
19234
 
# A/UX has a broken getopt(3).
19235
 
case "$host_os" in
19236
 
aux*)   ADDITIONAL_OBJS="getopt${o} $ADDITIONAL_OBJS";;
19237
 
esac
19238
 
 
19239
 
# Linux has the O_DIRECT flag, but you can't actually use it.
19240
 
echo "$as_me:$LINENO: checking for open/O_DIRECT" >&5
19241
 
echo $ECHO_N "checking for open/O_DIRECT... $ECHO_C" >&6
19242
 
if test "${db_cv_open_o_direct+set}" = set; then
19243
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19244
 
else
19245
 
 
19246
 
echo "test for working open/O_DIRECT" > __o_direct_file
19247
 
if test "$cross_compiling" = yes; then
19248
 
  cat >conftest.$ac_ext <<_ACEOF
19249
 
#line $LINENO "configure"
19250
 
/* confdefs.h.  */
19251
 
_ACEOF
19252
 
cat confdefs.h >>conftest.$ac_ext
19253
 
cat >>conftest.$ac_ext <<_ACEOF
19254
 
/* end confdefs.h.  */
19255
 
 
19256
 
#include <sys/types.h>
19257
 
#include <fcntl.h>
19258
 
int
19259
 
main ()
19260
 
{
19261
 
 
19262
 
        open("__o_direct_file", O_RDONLY | O_DIRECT, 0);
19263
 
 
19264
 
  ;
19265
 
  return 0;
19266
 
}
19267
 
_ACEOF
19268
 
rm -f conftest.$ac_objext conftest$ac_exeext
19269
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19270
 
  (eval $ac_link) 2>&5
19271
 
  ac_status=$?
19272
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273
 
  (exit $ac_status); } &&
19274
 
         { ac_try='test -s conftest$ac_exeext'
19275
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19276
 
  (eval $ac_try) 2>&5
19277
 
  ac_status=$?
19278
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279
 
  (exit $ac_status); }; }; then
19280
 
  db_cv_open_o_direct=yes
19281
 
else
19282
 
  echo "$as_me: failed program was:" >&5
19283
 
sed 's/^/| /' conftest.$ac_ext >&5
19284
 
 
19285
 
db_cv_open_o_direct=no
19286
 
fi
19287
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19288
 
else
19289
 
  cat >conftest.$ac_ext <<_ACEOF
19290
 
#line $LINENO "configure"
19291
 
/* confdefs.h.  */
19292
 
_ACEOF
19293
 
cat confdefs.h >>conftest.$ac_ext
19294
 
cat >>conftest.$ac_ext <<_ACEOF
19295
 
/* end confdefs.h.  */
19296
 
 
19297
 
#include <sys/types.h>
19298
 
#include <fcntl.h>
19299
 
main() {
19300
 
int c, fd = open("__o_direct_file", O_RDONLY | O_DIRECT, 0);
19301
 
exit ((fd == -1) || (read(fd, &c, 1) != 1));
19302
 
}
19303
 
_ACEOF
19304
 
rm -f conftest$ac_exeext
19305
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19306
 
  (eval $ac_link) 2>&5
19307
 
  ac_status=$?
19308
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19310
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311
 
  (eval $ac_try) 2>&5
19312
 
  ac_status=$?
19313
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314
 
  (exit $ac_status); }; }; then
19315
 
  db_cv_open_o_direct=yes
19316
 
else
19317
 
  echo "$as_me: program exited with status $ac_status" >&5
19318
 
echo "$as_me: failed program was:" >&5
19319
 
sed 's/^/| /' conftest.$ac_ext >&5
19320
 
 
19321
 
( exit $ac_status )
19322
 
db_cv_open_o_direct=no
19323
 
fi
19324
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19325
 
fi
19326
 
rm -f __o_direct_file
19327
 
fi
19328
 
echo "$as_me:$LINENO: result: $db_cv_open_o_direct" >&5
19329
 
echo "${ECHO_T}$db_cv_open_o_direct" >&6
19330
 
if test "$db_cv_open_o_direct" = yes; then
19331
 
        cat >>confdefs.h <<\_ACEOF
19332
 
#define HAVE_O_DIRECT 1
19333
 
_ACEOF
19334
 
 
19335
 
 
19336
 
 
19337
 
fi
19338
 
 
19339
 
# Check for largefile support.
19340
 
# Check whether --enable-largefile or --disable-largefile was given.
19341
 
if test "${enable_largefile+set}" = set; then
19342
 
  enableval="$enable_largefile"
19343
 
 
19344
 
fi;
19345
 
if test "$enable_largefile" != no; then
19346
 
 
19347
 
  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
19348
 
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
19349
 
if test "${ac_cv_sys_largefile_CC+set}" = set; then
19350
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19351
 
else
19352
 
  ac_cv_sys_largefile_CC=no
19353
 
     if test "$GCC" != yes; then
19354
 
       ac_save_CC=$CC
19355
 
       while :; do
19356
 
         # IRIX 6.2 and later do not support large files by default,
19357
 
         # so use the C compiler's -n32 option if that helps.
19358
 
         cat >conftest.$ac_ext <<_ACEOF
19359
 
#line $LINENO "configure"
19360
 
/* confdefs.h.  */
19361
 
_ACEOF
19362
 
cat confdefs.h >>conftest.$ac_ext
19363
 
cat >>conftest.$ac_ext <<_ACEOF
19364
 
/* end confdefs.h.  */
19365
 
#include <sys/types.h>
19366
 
 /* Check that off_t can represent 2**63 - 1 correctly.
19367
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19368
 
    since some C++ compilers masquerading as C compilers
19369
 
    incorrectly reject 9223372036854775807.  */
19370
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19371
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19372
 
                       && LARGE_OFF_T % 2147483647 == 1)
19373
 
                      ? 1 : -1];
19374
 
int
19375
 
main ()
19376
 
{
19377
 
 
19378
 
  ;
19379
 
  return 0;
19380
 
}
19381
 
_ACEOF
19382
 
         rm -f conftest.$ac_objext
19383
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19384
 
  (eval $ac_compile) 2>&5
19385
 
  ac_status=$?
19386
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387
 
  (exit $ac_status); } &&
19388
 
         { ac_try='test -s conftest.$ac_objext'
19389
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19390
 
  (eval $ac_try) 2>&5
19391
 
  ac_status=$?
19392
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393
 
  (exit $ac_status); }; }; then
19394
 
  break
19395
 
else
19396
 
  echo "$as_me: failed program was:" >&5
19397
 
sed 's/^/| /' conftest.$ac_ext >&5
19398
 
 
19399
 
fi
19400
 
rm -f conftest.$ac_objext
19401
 
         CC="$CC -n32"
19402
 
         rm -f conftest.$ac_objext
19403
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19404
 
  (eval $ac_compile) 2>&5
19405
 
  ac_status=$?
19406
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407
 
  (exit $ac_status); } &&
19408
 
         { ac_try='test -s conftest.$ac_objext'
19409
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410
 
  (eval $ac_try) 2>&5
19411
 
  ac_status=$?
19412
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413
 
  (exit $ac_status); }; }; then
19414
 
  ac_cv_sys_largefile_CC=' -n32'; break
19415
 
else
19416
 
  echo "$as_me: failed program was:" >&5
19417
 
sed 's/^/| /' conftest.$ac_ext >&5
19418
 
 
19419
 
fi
19420
 
rm -f conftest.$ac_objext
19421
 
         break
19422
 
       done
19423
 
       CC=$ac_save_CC
19424
 
       rm -f conftest.$ac_ext
19425
 
    fi
19426
 
fi
19427
 
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
19428
 
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
19429
 
  if test "$ac_cv_sys_largefile_CC" != no; then
19430
 
    CC=$CC$ac_cv_sys_largefile_CC
19431
 
  fi
19432
 
 
19433
 
  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19434
 
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19435
 
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19436
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19437
 
else
19438
 
  while :; do
19439
 
  ac_cv_sys_file_offset_bits=no
19440
 
  cat >conftest.$ac_ext <<_ACEOF
19441
 
#line $LINENO "configure"
19442
 
/* confdefs.h.  */
19443
 
_ACEOF
19444
 
cat confdefs.h >>conftest.$ac_ext
19445
 
cat >>conftest.$ac_ext <<_ACEOF
19446
 
/* end confdefs.h.  */
19447
 
#include <sys/types.h>
19448
 
 /* Check that off_t can represent 2**63 - 1 correctly.
19449
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19450
 
    since some C++ compilers masquerading as C compilers
19451
 
    incorrectly reject 9223372036854775807.  */
19452
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19453
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19454
 
                       && LARGE_OFF_T % 2147483647 == 1)
19455
 
                      ? 1 : -1];
19456
 
int
19457
 
main ()
19458
 
{
19459
 
 
19460
 
  ;
19461
 
  return 0;
19462
 
}
19463
 
_ACEOF
19464
 
rm -f conftest.$ac_objext
19465
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19466
 
  (eval $ac_compile) 2>&5
19467
 
  ac_status=$?
19468
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469
 
  (exit $ac_status); } &&
19470
 
         { ac_try='test -s conftest.$ac_objext'
19471
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472
 
  (eval $ac_try) 2>&5
19473
 
  ac_status=$?
19474
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475
 
  (exit $ac_status); }; }; then
19476
 
  break
19477
 
else
19478
 
  echo "$as_me: failed program was:" >&5
19479
 
sed 's/^/| /' conftest.$ac_ext >&5
19480
 
 
19481
 
fi
19482
 
rm -f conftest.$ac_objext conftest.$ac_ext
19483
 
  cat >conftest.$ac_ext <<_ACEOF
19484
 
#line $LINENO "configure"
19485
 
/* confdefs.h.  */
19486
 
_ACEOF
19487
 
cat confdefs.h >>conftest.$ac_ext
19488
 
cat >>conftest.$ac_ext <<_ACEOF
19489
 
/* end confdefs.h.  */
19490
 
#define _FILE_OFFSET_BITS 64
19491
 
#include <sys/types.h>
19492
 
 /* Check that off_t can represent 2**63 - 1 correctly.
19493
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19494
 
    since some C++ compilers masquerading as C compilers
19495
 
    incorrectly reject 9223372036854775807.  */
19496
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19497
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19498
 
                       && LARGE_OFF_T % 2147483647 == 1)
19499
 
                      ? 1 : -1];
19500
 
int
19501
 
main ()
19502
 
{
19503
 
 
19504
 
  ;
19505
 
  return 0;
19506
 
}
19507
 
_ACEOF
19508
 
rm -f conftest.$ac_objext
19509
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19510
 
  (eval $ac_compile) 2>&5
19511
 
  ac_status=$?
19512
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513
 
  (exit $ac_status); } &&
19514
 
         { ac_try='test -s conftest.$ac_objext'
19515
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516
 
  (eval $ac_try) 2>&5
19517
 
  ac_status=$?
19518
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519
 
  (exit $ac_status); }; }; then
19520
 
  ac_cv_sys_file_offset_bits=64; break
19521
 
else
19522
 
  echo "$as_me: failed program was:" >&5
19523
 
sed 's/^/| /' conftest.$ac_ext >&5
19524
 
 
19525
 
fi
19526
 
rm -f conftest.$ac_objext conftest.$ac_ext
19527
 
  break
19528
 
done
19529
 
fi
19530
 
echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19531
 
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19532
 
if test "$ac_cv_sys_file_offset_bits" != no; then
19533
 
 
19534
 
cat >>confdefs.h <<_ACEOF
19535
 
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19536
 
_ACEOF
19537
 
 
19538
 
fi
19539
 
rm -f conftest*
19540
 
  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19541
 
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19542
 
if test "${ac_cv_sys_large_files+set}" = set; then
19543
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19544
 
else
19545
 
  while :; do
19546
 
  ac_cv_sys_large_files=no
19547
 
  cat >conftest.$ac_ext <<_ACEOF
19548
 
#line $LINENO "configure"
19549
 
/* confdefs.h.  */
19550
 
_ACEOF
19551
 
cat confdefs.h >>conftest.$ac_ext
19552
 
cat >>conftest.$ac_ext <<_ACEOF
19553
 
/* end confdefs.h.  */
19554
 
#include <sys/types.h>
19555
 
 /* Check that off_t can represent 2**63 - 1 correctly.
19556
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19557
 
    since some C++ compilers masquerading as C compilers
19558
 
    incorrectly reject 9223372036854775807.  */
19559
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19560
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19561
 
                       && LARGE_OFF_T % 2147483647 == 1)
19562
 
                      ? 1 : -1];
19563
 
int
19564
 
main ()
19565
 
{
19566
 
 
19567
 
  ;
19568
 
  return 0;
19569
 
}
19570
 
_ACEOF
19571
 
rm -f conftest.$ac_objext
19572
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19573
 
  (eval $ac_compile) 2>&5
19574
 
  ac_status=$?
19575
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576
 
  (exit $ac_status); } &&
19577
 
         { ac_try='test -s conftest.$ac_objext'
19578
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579
 
  (eval $ac_try) 2>&5
19580
 
  ac_status=$?
19581
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582
 
  (exit $ac_status); }; }; then
19583
 
  break
19584
 
else
19585
 
  echo "$as_me: failed program was:" >&5
19586
 
sed 's/^/| /' conftest.$ac_ext >&5
19587
 
 
19588
 
fi
19589
 
rm -f conftest.$ac_objext conftest.$ac_ext
19590
 
  cat >conftest.$ac_ext <<_ACEOF
19591
 
#line $LINENO "configure"
19592
 
/* confdefs.h.  */
19593
 
_ACEOF
19594
 
cat confdefs.h >>conftest.$ac_ext
19595
 
cat >>conftest.$ac_ext <<_ACEOF
19596
 
/* end confdefs.h.  */
19597
 
#define _LARGE_FILES 1
19598
 
#include <sys/types.h>
19599
 
 /* Check that off_t can represent 2**63 - 1 correctly.
19600
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19601
 
    since some C++ compilers masquerading as C compilers
19602
 
    incorrectly reject 9223372036854775807.  */
19603
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19604
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19605
 
                       && LARGE_OFF_T % 2147483647 == 1)
19606
 
                      ? 1 : -1];
19607
 
int
19608
 
main ()
19609
 
{
19610
 
 
19611
 
  ;
19612
 
  return 0;
19613
 
}
19614
 
_ACEOF
19615
 
rm -f conftest.$ac_objext
19616
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19617
 
  (eval $ac_compile) 2>&5
19618
 
  ac_status=$?
19619
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620
 
  (exit $ac_status); } &&
19621
 
         { ac_try='test -s conftest.$ac_objext'
19622
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623
 
  (eval $ac_try) 2>&5
19624
 
  ac_status=$?
19625
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626
 
  (exit $ac_status); }; }; then
19627
 
  ac_cv_sys_large_files=1; break
19628
 
else
19629
 
  echo "$as_me: failed program was:" >&5
19630
 
sed 's/^/| /' conftest.$ac_ext >&5
19631
 
 
19632
 
fi
19633
 
rm -f conftest.$ac_objext conftest.$ac_ext
19634
 
  break
19635
 
done
19636
 
fi
19637
 
echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19638
 
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19639
 
if test "$ac_cv_sys_large_files" != no; then
19640
 
 
19641
 
cat >>confdefs.h <<_ACEOF
19642
 
#define _LARGE_FILES $ac_cv_sys_large_files
19643
 
_ACEOF
19644
 
 
19645
 
fi
19646
 
rm -f conftest*
19647
 
fi
19648
 
 
19649
 
 
19650
 
# Figure out how to create shared regions.
19651
 
#
19652
 
# First, we look for mmap.
19653
 
#
19654
 
# BSD/OS has mlock(2), but it doesn't work until the 4.1 release.
19655
 
#
19656
 
# Nextstep (version 3.3) apparently supports mmap(2) (the mmap symbol
19657
 
# is defined in the C library) but does not support munmap(2).  Don't
19658
 
# try to use mmap if we can't find munmap.
19659
 
#
19660
 
# Ultrix has mmap(2), but it doesn't work.
19661
 
mmap_ok=no
19662
 
case "$host_os" in
19663
 
bsdi3*|bsdi4.0)
19664
 
        { echo "$as_me:$LINENO: WARNING: mlock(2) interface ignored on BSD/OS 3.X and 4.0." >&5
19665
 
echo "$as_me: WARNING: mlock(2) interface ignored on BSD/OS 3.X and 4.0." >&2;}
19666
 
        mmap_ok=yes
19667
 
 
19668
 
 
19669
 
for ac_func in mmap munmap
19670
 
do
19671
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19672
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
19673
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19674
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
19675
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19676
 
else
19677
 
  cat >conftest.$ac_ext <<_ACEOF
19678
 
#line $LINENO "configure"
19679
 
/* confdefs.h.  */
19680
 
_ACEOF
19681
 
cat confdefs.h >>conftest.$ac_ext
19682
 
cat >>conftest.$ac_ext <<_ACEOF
19683
 
/* end confdefs.h.  */
19684
 
/* System header to define __stub macros and hopefully few prototypes,
19685
 
    which can conflict with char $ac_func (); below.
19686
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19687
 
    <limits.h> exists even on freestanding compilers.  */
19688
 
#ifdef __STDC__
19689
 
# include <limits.h>
19690
 
#else
19691
 
# include <assert.h>
19692
 
#endif
19693
 
/* Override any gcc2 internal prototype to avoid an error.  */
19694
 
#ifdef __cplusplus
19695
 
extern "C"
19696
 
{
19697
 
#endif
19698
 
/* We use char because int might match the return type of a gcc2
19699
 
   builtin and then its argument prototype would still apply.  */
19700
 
char $ac_func ();
19701
 
/* The GNU C library defines this for functions which it implements
19702
 
    to always fail with ENOSYS.  Some functions are actually named
19703
 
    something starting with __ and the normal name is an alias.  */
19704
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19705
 
choke me
19706
 
#else
19707
 
char (*f) () = $ac_func;
19708
 
#endif
19709
 
#ifdef __cplusplus
19710
 
}
19711
 
#endif
19712
 
 
19713
 
int
19714
 
main ()
19715
 
{
19716
 
return f != $ac_func;
19717
 
  ;
19718
 
  return 0;
19719
 
}
19720
 
_ACEOF
19721
 
rm -f conftest.$ac_objext conftest$ac_exeext
19722
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19723
 
  (eval $ac_link) 2>&5
19724
 
  ac_status=$?
19725
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726
 
  (exit $ac_status); } &&
19727
 
         { ac_try='test -s conftest$ac_exeext'
19728
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19729
 
  (eval $ac_try) 2>&5
19730
 
  ac_status=$?
19731
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732
 
  (exit $ac_status); }; }; then
19733
 
  eval "$as_ac_var=yes"
19734
 
else
19735
 
  echo "$as_me: failed program was:" >&5
19736
 
sed 's/^/| /' conftest.$ac_ext >&5
19737
 
 
19738
 
eval "$as_ac_var=no"
19739
 
fi
19740
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19741
 
fi
19742
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19743
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19744
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
19745
 
  cat >>confdefs.h <<_ACEOF
19746
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19747
 
_ACEOF
19748
 
 
19749
 
else
19750
 
  mmap_ok=no
19751
 
fi
19752
 
done
19753
 
;;
19754
 
ultrix*)
19755
 
        { echo "$as_me:$LINENO: WARNING: mmap(2) interface ignored on Ultrix." >&5
19756
 
echo "$as_me: WARNING: mmap(2) interface ignored on Ultrix." >&2;};;
19757
 
*)
19758
 
        mmap_ok=yes
19759
 
 
19760
 
 
19761
 
for ac_func in mlock munlock
19762
 
do
19763
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19764
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
19765
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19766
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
19767
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19768
 
else
19769
 
  cat >conftest.$ac_ext <<_ACEOF
19770
 
#line $LINENO "configure"
19771
 
/* confdefs.h.  */
19772
 
_ACEOF
19773
 
cat confdefs.h >>conftest.$ac_ext
19774
 
cat >>conftest.$ac_ext <<_ACEOF
19775
 
/* end confdefs.h.  */
19776
 
/* System header to define __stub macros and hopefully few prototypes,
19777
 
    which can conflict with char $ac_func (); below.
19778
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19779
 
    <limits.h> exists even on freestanding compilers.  */
19780
 
#ifdef __STDC__
19781
 
# include <limits.h>
19782
 
#else
19783
 
# include <assert.h>
19784
 
#endif
19785
 
/* Override any gcc2 internal prototype to avoid an error.  */
19786
 
#ifdef __cplusplus
19787
 
extern "C"
19788
 
{
19789
 
#endif
19790
 
/* We use char because int might match the return type of a gcc2
19791
 
   builtin and then its argument prototype would still apply.  */
19792
 
char $ac_func ();
19793
 
/* The GNU C library defines this for functions which it implements
19794
 
    to always fail with ENOSYS.  Some functions are actually named
19795
 
    something starting with __ and the normal name is an alias.  */
19796
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19797
 
choke me
19798
 
#else
19799
 
char (*f) () = $ac_func;
19800
 
#endif
19801
 
#ifdef __cplusplus
19802
 
}
19803
 
#endif
19804
 
 
19805
 
int
19806
 
main ()
19807
 
{
19808
 
return f != $ac_func;
19809
 
  ;
19810
 
  return 0;
19811
 
}
19812
 
_ACEOF
19813
 
rm -f conftest.$ac_objext conftest$ac_exeext
19814
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19815
 
  (eval $ac_link) 2>&5
19816
 
  ac_status=$?
19817
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818
 
  (exit $ac_status); } &&
19819
 
         { ac_try='test -s conftest$ac_exeext'
19820
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821
 
  (eval $ac_try) 2>&5
19822
 
  ac_status=$?
19823
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824
 
  (exit $ac_status); }; }; then
19825
 
  eval "$as_ac_var=yes"
19826
 
else
19827
 
  echo "$as_me: failed program was:" >&5
19828
 
sed 's/^/| /' conftest.$ac_ext >&5
19829
 
 
19830
 
eval "$as_ac_var=no"
19831
 
fi
19832
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19833
 
fi
19834
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19835
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19836
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
19837
 
  cat >>confdefs.h <<_ACEOF
19838
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19839
 
_ACEOF
19840
 
 
19841
 
fi
19842
 
done
19843
 
 
19844
 
 
19845
 
 
19846
 
for ac_func in mmap munmap
19847
 
do
19848
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19849
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
19850
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19851
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
19852
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19853
 
else
19854
 
  cat >conftest.$ac_ext <<_ACEOF
19855
 
#line $LINENO "configure"
19856
 
/* confdefs.h.  */
19857
 
_ACEOF
19858
 
cat confdefs.h >>conftest.$ac_ext
19859
 
cat >>conftest.$ac_ext <<_ACEOF
19860
 
/* end confdefs.h.  */
19861
 
/* System header to define __stub macros and hopefully few prototypes,
19862
 
    which can conflict with char $ac_func (); below.
19863
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19864
 
    <limits.h> exists even on freestanding compilers.  */
19865
 
#ifdef __STDC__
19866
 
# include <limits.h>
19867
 
#else
19868
 
# include <assert.h>
19869
 
#endif
19870
 
/* Override any gcc2 internal prototype to avoid an error.  */
19871
 
#ifdef __cplusplus
19872
 
extern "C"
19873
 
{
19874
 
#endif
19875
 
/* We use char because int might match the return type of a gcc2
19876
 
   builtin and then its argument prototype would still apply.  */
19877
 
char $ac_func ();
19878
 
/* The GNU C library defines this for functions which it implements
19879
 
    to always fail with ENOSYS.  Some functions are actually named
19880
 
    something starting with __ and the normal name is an alias.  */
19881
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19882
 
choke me
19883
 
#else
19884
 
char (*f) () = $ac_func;
19885
 
#endif
19886
 
#ifdef __cplusplus
19887
 
}
19888
 
#endif
19889
 
 
19890
 
int
19891
 
main ()
19892
 
{
19893
 
return f != $ac_func;
19894
 
  ;
19895
 
  return 0;
19896
 
}
19897
 
_ACEOF
19898
 
rm -f conftest.$ac_objext conftest$ac_exeext
19899
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19900
 
  (eval $ac_link) 2>&5
19901
 
  ac_status=$?
19902
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903
 
  (exit $ac_status); } &&
19904
 
         { ac_try='test -s conftest$ac_exeext'
19905
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19906
 
  (eval $ac_try) 2>&5
19907
 
  ac_status=$?
19908
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909
 
  (exit $ac_status); }; }; then
19910
 
  eval "$as_ac_var=yes"
19911
 
else
19912
 
  echo "$as_me: failed program was:" >&5
19913
 
sed 's/^/| /' conftest.$ac_ext >&5
19914
 
 
19915
 
eval "$as_ac_var=no"
19916
 
fi
19917
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19918
 
fi
19919
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19920
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19921
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
19922
 
  cat >>confdefs.h <<_ACEOF
19923
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19924
 
_ACEOF
19925
 
 
19926
 
else
19927
 
  mmap_ok=no
19928
 
fi
19929
 
done
19930
 
;;
19931
 
esac
19932
 
 
19933
 
# Second, we look for shmget.
19934
 
#
19935
 
# SunOS has the shmget(2) interfaces, but there appears to be a missing
19936
 
# #include <debug/debug.h> file, so we ignore them.
19937
 
shmget_ok=no
19938
 
case "$host_os" in
19939
 
sunos*)
19940
 
        { echo "$as_me:$LINENO: WARNING: shmget(2) interface ignored on SunOS." >&5
19941
 
echo "$as_me: WARNING: shmget(2) interface ignored on SunOS." >&2;};;
19942
 
*)
19943
 
        shmget_ok=yes
19944
 
 
19945
 
for ac_func in shmget
19946
 
do
19947
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19948
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
19949
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19950
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
19951
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19952
 
else
19953
 
  cat >conftest.$ac_ext <<_ACEOF
19954
 
#line $LINENO "configure"
19955
 
/* confdefs.h.  */
19956
 
_ACEOF
19957
 
cat confdefs.h >>conftest.$ac_ext
19958
 
cat >>conftest.$ac_ext <<_ACEOF
19959
 
/* end confdefs.h.  */
19960
 
/* System header to define __stub macros and hopefully few prototypes,
19961
 
    which can conflict with char $ac_func (); below.
19962
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19963
 
    <limits.h> exists even on freestanding compilers.  */
19964
 
#ifdef __STDC__
19965
 
# include <limits.h>
19966
 
#else
19967
 
# include <assert.h>
19968
 
#endif
19969
 
/* Override any gcc2 internal prototype to avoid an error.  */
19970
 
#ifdef __cplusplus
19971
 
extern "C"
19972
 
{
19973
 
#endif
19974
 
/* We use char because int might match the return type of a gcc2
19975
 
   builtin and then its argument prototype would still apply.  */
19976
 
char $ac_func ();
19977
 
/* The GNU C library defines this for functions which it implements
19978
 
    to always fail with ENOSYS.  Some functions are actually named
19979
 
    something starting with __ and the normal name is an alias.  */
19980
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19981
 
choke me
19982
 
#else
19983
 
char (*f) () = $ac_func;
19984
 
#endif
19985
 
#ifdef __cplusplus
19986
 
}
19987
 
#endif
19988
 
 
19989
 
int
19990
 
main ()
19991
 
{
19992
 
return f != $ac_func;
19993
 
  ;
19994
 
  return 0;
19995
 
}
19996
 
_ACEOF
19997
 
rm -f conftest.$ac_objext conftest$ac_exeext
19998
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19999
 
  (eval $ac_link) 2>&5
20000
 
  ac_status=$?
20001
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002
 
  (exit $ac_status); } &&
20003
 
         { ac_try='test -s conftest$ac_exeext'
20004
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005
 
  (eval $ac_try) 2>&5
20006
 
  ac_status=$?
20007
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008
 
  (exit $ac_status); }; }; then
20009
 
  eval "$as_ac_var=yes"
20010
 
else
20011
 
  echo "$as_me: failed program was:" >&5
20012
 
sed 's/^/| /' conftest.$ac_ext >&5
20013
 
 
20014
 
eval "$as_ac_var=no"
20015
 
fi
20016
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20017
 
fi
20018
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20019
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20020
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
20021
 
  cat >>confdefs.h <<_ACEOF
20022
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20023
 
_ACEOF
20024
 
 
20025
 
else
20026
 
  shmget_ok=no
20027
 
fi
20028
 
done
20029
 
;;
20030
 
esac
20031
 
 
20032
 
# We require either mmap/munmap(2) or shmget(2).
20033
 
if test "$mmap_ok" = no -a "$shmget_ok" = no; then
20034
 
        { echo "$as_me:$LINENO: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&5
20035
 
echo "$as_me: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&2;}
20036
 
fi
20037
 
 
20038
 
# If we're not doing version name substitution, DB_VERSION_UNIQUE_NAME
20039
 
# needs to be erased.
20040
 
if test "$db_cv_uniquename" = "no"; then
20041
 
        DB_VERSION_UNIQUE_NAME=""
20042
 
fi
20043
 
 
20044
 
# This is necessary so that .o files in LIBOBJS are also built via
20045
 
# the ANSI2KNR-filtering rules.
20046
 
LIBOBJS=`echo "$LIBOBJS" |
20047
 
             sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
20048
 
LTLIBOBJS=`echo "$LIBOBJS" |
20049
 
           sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
20050
 
 
20051
 
 
20052
 
# Initial output file list.
20053
 
CREATE_LIST="Makefile
20054
 
    db_cxx.h:$srcdir/../dbinc/db_cxx.in
20055
 
    db_int.h:$srcdir/../dbinc/db_int.in
20056
 
    include.tcl:$srcdir/../test/include.tcl"
20057
 
 
20058
 
# Create the db.h file from a source file, a list of global function
20059
 
# prototypes, and, if configured for unique names, a list of #defines
20060
 
# to do DB_VERSION_UNIQUE_NAME substitution.
20061
 
if test "$db_cv_uniquename" = "yes"; then
20062
 
        CREATE_LIST="$CREATE_LIST
20063
 
        db.h:$srcdir/../dbinc/db.in:$srcdir/../dbinc_auto/rpc_defs.in:$srcdir/../dbinc_auto/ext_def.in:$srcdir/../dbinc_auto/ext_prot.in"
20064
 
else
20065
 
        CREATE_LIST="$CREATE_LIST
20066
 
        db.h:$srcdir/../dbinc/db.in:$srcdir/../dbinc_auto/rpc_defs.in:$srcdir/../dbinc_auto/ext_prot.in"
20067
 
fi
20068
 
 
20069
 
# If configured for unique names, create the db_int_uext.h file (which
20070
 
# does the DB_VERSION_UNIQUE_NAME substitution), which is included by
20071
 
# the db_int.h file.
20072
 
if test "$db_cv_uniquename" = "yes"; then
20073
 
        CREATE_LIST="$CREATE_LIST
20074
 
        db_int_def.h:$srcdir/../dbinc_auto/int_def.in"
20075
 
        db_int_def='#include "db_int_def.h"'
20076
 
fi
20077
 
 
20078
 
# Create the db_185.h and db185_int.h files from source files, a list of
20079
 
# global function prototypes, and, if configured for unique names, a list
20080
 
# of #defines to do DB_VERSION_UNIQUE_NAME substitution.
20081
 
if test "$db_cv_compat185" = "yes"; then
20082
 
        if test "$db_cv_uniquename" = "yes"; then
20083
 
                CREATE_LIST="$CREATE_LIST
20084
 
                db_185.h:$srcdir/../dbinc/db_185.in:$srcdir/../dbinc_auto/ext_185_def.in:$srcdir/../dbinc_auto/ext_185_prot.in
20085
 
                db185_int.h:$srcdir/../db185/db185_int.in:$srcdir/../dbinc_auto/ext_185_def.in:$srcdir/../dbinc_auto/ext_185_prot.in"
20086
 
        else
20087
 
                CREATE_LIST="$CREATE_LIST
20088
 
                db_185.h:$srcdir/../dbinc/db_185.in:$srcdir/../dbinc_auto/ext_185_prot.in
20089
 
                db185_int.h:$srcdir/../db185/db185_int.in:$srcdir/../dbinc_auto/ext_185_prot.in"
20090
 
        fi
20091
 
fi
20092
 
 
20093
 
if test "$db_cv_embedix" = "yes"; then
20094
 
        CREATE_LIST="$CREATE_LIST db.ecd:../dist/db.ecd.in"
20095
 
fi
20096
 
 
20097
 
if test "$db_cv_rpm" = "yes"; then
20098
 
        CREATE_LIST="$CREATE_LIST db.spec:../dist/db.spec.in"
20099
 
fi
20100
 
 
20101
 
          ac_config_files="$ac_config_files $CREATE_LIST"
20102
 
 
20103
 
cat >confcache <<\_ACEOF
20104
 
# This file is a shell script that caches the results of configure
20105
 
# tests run on this system so they can be shared between configure
20106
 
# scripts and configure runs, see configure's option --config-cache.
20107
 
# It is not useful on other systems.  If it contains results you don't
20108
 
# want to keep, you may remove or edit it.
20109
 
#
20110
 
# config.status only pays attention to the cache file if you give it
20111
 
# the --recheck option to rerun configure.
20112
 
#
20113
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
20114
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
20115
 
# following values.
20116
 
 
20117
 
_ACEOF
20118
 
 
20119
 
# The following way of writing the cache mishandles newlines in values,
20120
 
# but we know of no workaround that is simple, portable, and efficient.
20121
 
# So, don't put newlines in cache variables' values.
20122
 
# Ultrix sh set writes to stderr and can't be redirected directly,
20123
 
# and sets the high bit in the cache file unless we assign to the vars.
20124
 
{
20125
 
  (set) 2>&1 |
20126
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20127
 
    *ac_space=\ *)
20128
 
      # `set' does not quote correctly, so add quotes (double-quote
20129
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
20130
 
      sed -n \
20131
 
        "s/'/'\\\\''/g;
20132
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20133
 
      ;;
20134
 
    *)
20135
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
20136
 
      sed -n \
20137
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20138
 
      ;;
20139
 
    esac;
20140
 
} |
20141
 
  sed '
20142
 
     t clear
20143
 
     : clear
20144
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20145
 
     t end
20146
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20147
 
     : end' >>confcache
20148
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
20149
 
  if test -w $cache_file; then
20150
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20151
 
    cat confcache >$cache_file
20152
 
  else
20153
 
    echo "not updating unwritable cache $cache_file"
20154
 
  fi
20155
 
fi
20156
 
rm -f confcache
20157
 
 
20158
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
20159
 
# Let make expand exec_prefix.
20160
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20161
 
 
20162
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20163
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20164
 
# trailing colons and then remove the whole line if VPATH becomes empty
20165
 
# (actually we leave an empty line to preserve line numbers).
20166
 
if test "x$srcdir" = x.; then
20167
 
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
20168
 
s/:*\$(srcdir):*/:/;
20169
 
s/:*\${srcdir}:*/:/;
20170
 
s/:*@srcdir@:*/:/;
20171
 
s/^\([^=]*=[    ]*\):*/\1/;
20172
 
s/:*$//;
20173
 
s/^[^=]*=[      ]*$//;
20174
 
}'
20175
 
fi
20176
 
 
20177
 
DEFS=-DHAVE_CONFIG_H
20178
 
 
20179
 
ac_libobjs=
20180
 
ac_ltlibobjs=
20181
 
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20182
 
  # 1. Remove the extension, and $U if already installed.
20183
 
  ac_i=`echo "$ac_i" |
20184
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20185
 
  # 2. Add them.
20186
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20187
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20188
 
done
20189
 
LIBOBJS=$ac_libobjs
20190
 
 
20191
 
LTLIBOBJS=$ac_ltlibobjs
20192
 
 
20193
 
 
20194
 
 
20195
 
: ${CONFIG_STATUS=./config.status}
20196
 
ac_clean_files_save=$ac_clean_files
20197
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20198
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20199
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
20200
 
cat >$CONFIG_STATUS <<_ACEOF
20201
 
#! $SHELL
20202
 
# Generated by $as_me.
20203
 
# Run this file to recreate the current configuration.
20204
 
# Compiler output produced by configure, useful for debugging
20205
 
# configure, is in config.log if it exists.
20206
 
 
20207
 
debug=false
20208
 
ac_cs_recheck=false
20209
 
ac_cs_silent=false
20210
 
SHELL=\${CONFIG_SHELL-$SHELL}
20211
 
_ACEOF
20212
 
 
20213
 
cat >>$CONFIG_STATUS <<\_ACEOF
20214
 
## --------------------- ##
20215
 
## M4sh Initialization.  ##
20216
 
## --------------------- ##
20217
 
 
20218
 
# Be Bourne compatible
20219
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20220
 
  emulate sh
20221
 
  NULLCMD=:
20222
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20223
 
  # is contrary to our usage.  Disable this feature.
20224
 
  alias -g '${1+"$@"}'='"$@"'
20225
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20226
 
  set -o posix
20227
 
fi
20228
 
 
20229
 
# Support unset when possible.
20230
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
20231
 
  as_unset=unset
20232
 
else
20233
 
  as_unset=false
20234
 
fi
20235
 
 
20236
 
 
20237
 
# Work around bugs in pre-3.0 UWIN ksh.
20238
 
$as_unset ENV MAIL MAILPATH
20239
 
PS1='$ '
20240
 
PS2='> '
20241
 
PS4='+ '
20242
 
 
20243
 
# NLS nuisances.
20244
 
for as_var in \
20245
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20246
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20247
 
  LC_TELEPHONE LC_TIME
20248
 
do
20249
 
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
20250
 
    eval $as_var=C; export $as_var
20251
 
  else
20252
 
    $as_unset $as_var
20253
 
  fi
20254
 
done
20255
 
 
20256
 
# Required to use basename.
20257
 
if expr a : '\(a\)' >/dev/null 2>&1; then
20258
 
  as_expr=expr
20259
 
else
20260
 
  as_expr=false
20261
 
fi
20262
 
 
20263
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20264
 
  as_basename=basename
20265
 
else
20266
 
  as_basename=false
20267
 
fi
20268
 
 
20269
 
 
20270
 
# Name of the executable.
20271
 
as_me=`$as_basename "$0" ||
20272
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20273
 
         X"$0" : 'X\(//\)$' \| \
20274
 
         X"$0" : 'X\(/\)$' \| \
20275
 
         .     : '\(.\)' 2>/dev/null ||
20276
 
echo X/"$0" |
20277
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20278
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
20279
 
          /^X\/\(\/\).*/{ s//\1/; q; }
20280
 
          s/.*/./; q'`
20281
 
 
20282
 
 
20283
 
# PATH needs CR, and LINENO needs CR and PATH.
20284
 
# Avoid depending upon Character Ranges.
20285
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20286
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20287
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20288
 
as_cr_digits='0123456789'
20289
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
20290
 
 
20291
 
# The user is always right.
20292
 
if test "${PATH_SEPARATOR+set}" != set; then
20293
 
  echo "#! /bin/sh" >conf$$.sh
20294
 
  echo  "exit 0"   >>conf$$.sh
20295
 
  chmod +x conf$$.sh
20296
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20297
 
    PATH_SEPARATOR=';'
20298
 
  else
20299
 
    PATH_SEPARATOR=:
20300
 
  fi
20301
 
  rm -f conf$$.sh
20302
 
fi
20303
 
 
20304
 
 
20305
 
  as_lineno_1=$LINENO
20306
 
  as_lineno_2=$LINENO
20307
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20308
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
20309
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20310
 
  # Find who we are.  Look in the path if we contain no path at all
20311
 
  # relative or not.
20312
 
  case $0 in
20313
 
    *[\\/]* ) as_myself=$0 ;;
20314
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20315
 
for as_dir in $PATH
20316
 
do
20317
 
  IFS=$as_save_IFS
20318
 
  test -z "$as_dir" && as_dir=.
20319
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20320
 
done
20321
 
 
20322
 
       ;;
20323
 
  esac
20324
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
20325
 
  # in which case we are not to be found in the path.
20326
 
  if test "x$as_myself" = x; then
20327
 
    as_myself=$0
20328
 
  fi
20329
 
  if test ! -f "$as_myself"; then
20330
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20331
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20332
 
   { (exit 1); exit 1; }; }
20333
 
  fi
20334
 
  case $CONFIG_SHELL in
20335
 
  '')
20336
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20337
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20338
 
do
20339
 
  IFS=$as_save_IFS
20340
 
  test -z "$as_dir" && as_dir=.
20341
 
  for as_base in sh bash ksh sh5; do
20342
 
         case $as_dir in
20343
 
         /*)
20344
 
           if ("$as_dir/$as_base" -c '
20345
 
  as_lineno_1=$LINENO
20346
 
  as_lineno_2=$LINENO
20347
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20348
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
20349
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20350
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20351
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20352
 
             CONFIG_SHELL=$as_dir/$as_base
20353
 
             export CONFIG_SHELL
20354
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20355
 
           fi;;
20356
 
         esac
20357
 
       done
20358
 
done
20359
 
;;
20360
 
  esac
20361
 
 
20362
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20363
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
20364
 
  # line-number line before each line; the second 'sed' does the real
20365
 
  # work.  The second script uses 'N' to pair each line-number line
20366
 
  # with the numbered line, and appends trailing '-' during
20367
 
  # substitution so that $LINENO is not a special case at line end.
20368
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20369
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20370
 
  sed '=' <$as_myself |
20371
 
    sed '
20372
 
      N
20373
 
      s,$,-,
20374
 
      : loop
20375
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20376
 
      t loop
20377
 
      s,-$,,
20378
 
      s,^['$as_cr_digits']*\n,,
20379
 
    ' >$as_me.lineno &&
20380
 
  chmod +x $as_me.lineno ||
20381
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20382
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20383
 
   { (exit 1); exit 1; }; }
20384
 
 
20385
 
  # Don't try to exec as it changes $[0], causing all sort of problems
20386
 
  # (the dirname of $[0] is not the place where we might find the
20387
 
  # original and so on.  Autoconf is especially sensible to this).
20388
 
  . ./$as_me.lineno
20389
 
  # Exit status is that of the last command.
20390
 
  exit
20391
 
}
20392
 
 
20393
 
 
20394
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20395
 
  *c*,-n*) ECHO_N= ECHO_C='
20396
 
' ECHO_T='      ' ;;
20397
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20398
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20399
 
esac
20400
 
 
20401
 
if expr a : '\(a\)' >/dev/null 2>&1; then
20402
 
  as_expr=expr
20403
 
else
20404
 
  as_expr=false
20405
 
fi
20406
 
 
20407
 
rm -f conf$$ conf$$.exe conf$$.file
20408
 
echo >conf$$.file
20409
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
20410
 
  # We could just check for DJGPP; but this test a) works b) is more generic
20411
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20412
 
  if test -f conf$$.exe; then
20413
 
    # Don't use ln at all; we don't have any links
20414
 
    as_ln_s='cp -p'
20415
 
  else
20416
 
    as_ln_s='ln -s'
20417
 
  fi
20418
 
elif ln conf$$.file conf$$ 2>/dev/null; then
20419
 
  as_ln_s=ln
20420
 
else
20421
 
  as_ln_s='cp -p'
20422
 
fi
20423
 
rm -f conf$$ conf$$.exe conf$$.file
20424
 
 
20425
 
if mkdir -p . 2>/dev/null; then
20426
 
  as_mkdir_p=:
20427
 
else
20428
 
  as_mkdir_p=false
20429
 
fi
20430
 
 
20431
 
as_executable_p="test -f"
20432
 
 
20433
 
# Sed expression to map a string onto a valid CPP name.
20434
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20435
 
 
20436
 
# Sed expression to map a string onto a valid variable name.
20437
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20438
 
 
20439
 
 
20440
 
# IFS
20441
 
# We need space, tab and new line, in precisely that order.
20442
 
as_nl='
20443
 
'
20444
 
IFS="   $as_nl"
20445
 
 
20446
 
# CDPATH.
20447
 
$as_unset CDPATH
20448
 
 
20449
 
exec 6>&1
20450
 
 
20451
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
20452
 
# report actual input values of CONFIG_FILES etc. instead of their
20453
 
# values after options handling.  Logging --version etc. is OK.
20454
 
exec 5>>config.log
20455
 
{
20456
 
  echo
20457
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20458
 
## Running $as_me. ##
20459
 
_ASBOX
20460
 
} >&5
20461
 
cat >&5 <<_CSEOF
20462
 
 
20463
 
This file was extended by Berkeley DB $as_me 4.1.25, which was
20464
 
generated by GNU Autoconf 2.57.  Invocation command line was
20465
 
 
20466
 
  CONFIG_FILES    = $CONFIG_FILES
20467
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
20468
 
  CONFIG_LINKS    = $CONFIG_LINKS
20469
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
20470
 
  $ $0 $@
20471
 
 
20472
 
_CSEOF
20473
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20474
 
echo >&5
20475
 
_ACEOF
20476
 
 
20477
 
# Files that config.status was made for.
20478
 
if test -n "$ac_config_files"; then
20479
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20480
 
fi
20481
 
 
20482
 
if test -n "$ac_config_headers"; then
20483
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20484
 
fi
20485
 
 
20486
 
if test -n "$ac_config_links"; then
20487
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20488
 
fi
20489
 
 
20490
 
if test -n "$ac_config_commands"; then
20491
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20492
 
fi
20493
 
 
20494
 
cat >>$CONFIG_STATUS <<\_ACEOF
20495
 
 
20496
 
ac_cs_usage="\
20497
 
\`$as_me' instantiates files from templates according to the
20498
 
current configuration.
20499
 
 
20500
 
Usage: $0 [OPTIONS] [FILE]...
20501
 
 
20502
 
  -h, --help       print this help, then exit
20503
 
  -V, --version    print version number, then exit
20504
 
  -q, --quiet      do not print progress messages
20505
 
  -d, --debug      don't remove temporary files
20506
 
      --recheck    update $as_me by reconfiguring in the same conditions
20507
 
  --file=FILE[:TEMPLATE]
20508
 
                   instantiate the configuration file FILE
20509
 
  --header=FILE[:TEMPLATE]
20510
 
                   instantiate the configuration header FILE
20511
 
 
20512
 
Configuration files:
20513
 
$config_files
20514
 
 
20515
 
Configuration headers:
20516
 
$config_headers
20517
 
 
20518
 
Report bugs to <bug-autoconf@gnu.org>."
20519
 
_ACEOF
20520
 
 
20521
 
cat >>$CONFIG_STATUS <<_ACEOF
20522
 
ac_cs_version="\\
20523
 
Berkeley DB config.status 4.1.25
20524
 
configured by $0, generated by GNU Autoconf 2.57,
20525
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20526
 
 
20527
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
20528
 
Free Software Foundation, Inc.
20529
 
This config.status script is free software; the Free Software Foundation
20530
 
gives unlimited permission to copy, distribute and modify it."
20531
 
srcdir=$srcdir
20532
 
INSTALL="$INSTALL"
20533
 
_ACEOF
20534
 
 
20535
 
cat >>$CONFIG_STATUS <<\_ACEOF
20536
 
# If no file are specified by the user, then we need to provide default
20537
 
# value.  By we need to know if files were specified by the user.
20538
 
ac_need_defaults=:
20539
 
while test $# != 0
20540
 
do
20541
 
  case $1 in
20542
 
  --*=*)
20543
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
20544
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20545
 
    ac_shift=:
20546
 
    ;;
20547
 
  -*)
20548
 
    ac_option=$1
20549
 
    ac_optarg=$2
20550
 
    ac_shift=shift
20551
 
    ;;
20552
 
  *) # This is not an option, so the user has probably given explicit
20553
 
     # arguments.
20554
 
     ac_option=$1
20555
 
     ac_need_defaults=false;;
20556
 
  esac
20557
 
 
20558
 
  case $ac_option in
20559
 
  # Handling of the options.
20560
 
_ACEOF
20561
 
cat >>$CONFIG_STATUS <<\_ACEOF
20562
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20563
 
    ac_cs_recheck=: ;;
20564
 
  --version | --vers* | -V )
20565
 
    echo "$ac_cs_version"; exit 0 ;;
20566
 
  --he | --h)
20567
 
    # Conflict between --help and --header
20568
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
20569
 
Try \`$0 --help' for more information." >&5
20570
 
echo "$as_me: error: ambiguous option: $1
20571
 
Try \`$0 --help' for more information." >&2;}
20572
 
   { (exit 1); exit 1; }; };;
20573
 
  --help | --hel | -h )
20574
 
    echo "$ac_cs_usage"; exit 0 ;;
20575
 
  --debug | --d* | -d )
20576
 
    debug=: ;;
20577
 
  --file | --fil | --fi | --f )
20578
 
    $ac_shift
20579
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20580
 
    ac_need_defaults=false;;
20581
 
  --header | --heade | --head | --hea )
20582
 
    $ac_shift
20583
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20584
 
    ac_need_defaults=false;;
20585
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20586
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20587
 
    ac_cs_silent=: ;;
20588
 
 
20589
 
  # This is an error.
20590
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20591
 
Try \`$0 --help' for more information." >&5
20592
 
echo "$as_me: error: unrecognized option: $1
20593
 
Try \`$0 --help' for more information." >&2;}
20594
 
   { (exit 1); exit 1; }; } ;;
20595
 
 
20596
 
  *) ac_config_targets="$ac_config_targets $1" ;;
20597
 
 
20598
 
  esac
20599
 
  shift
20600
 
done
20601
 
 
20602
 
ac_configure_extra_args=
20603
 
 
20604
 
if $ac_cs_silent; then
20605
 
  exec 6>/dev/null
20606
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
20607
 
fi
20608
 
 
20609
 
_ACEOF
20610
 
cat >>$CONFIG_STATUS <<_ACEOF
20611
 
if \$ac_cs_recheck; then
20612
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20613
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20614
 
fi
20615
 
 
20616
 
_ACEOF
20617
 
 
20618
 
 
20619
 
 
20620
 
 
20621
 
 
20622
 
cat >>$CONFIG_STATUS <<\_ACEOF
20623
 
for ac_config_target in $ac_config_targets
20624
 
do
20625
 
  case "$ac_config_target" in
20626
 
  # Handling of arguments.
20627
 
  "$CREATE_LIST" ) CONFIG_FILES="$CONFIG_FILES $CREATE_LIST" ;;
20628
 
  "db_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS db_config.h:config.hin" ;;
20629
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20630
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20631
 
   { (exit 1); exit 1; }; };;
20632
 
  esac
20633
 
done
20634
 
 
20635
 
# If the user did not use the arguments to specify the items to instantiate,
20636
 
# then the envvar interface is used.  Set only those that are not.
20637
 
# We use the long form for the default assignment because of an extremely
20638
 
# bizarre bug on SunOS 4.1.3.
20639
 
if $ac_need_defaults; then
20640
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20641
 
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20642
 
fi
20643
 
 
20644
 
# Have a temporary directory for convenience.  Make it in the build tree
20645
 
# simply because there is no reason to put it here, and in addition,
20646
 
# creating and moving files from /tmp can sometimes cause problems.
20647
 
# Create a temporary directory, and hook for its removal unless debugging.
20648
 
$debug ||
20649
 
{
20650
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20651
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
20652
 
}
20653
 
 
20654
 
# Create a (secure) tmp directory for tmp files.
20655
 
 
20656
 
{
20657
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20658
 
  test -n "$tmp" && test -d "$tmp"
20659
 
}  ||
20660
 
{
20661
 
  tmp=./confstat$$-$RANDOM
20662
 
  (umask 077 && mkdir $tmp)
20663
 
} ||
20664
 
{
20665
 
   echo "$me: cannot create a temporary directory in ." >&2
20666
 
   { (exit 1); exit 1; }
20667
 
}
20668
 
 
20669
 
_ACEOF
20670
 
 
20671
 
cat >>$CONFIG_STATUS <<_ACEOF
20672
 
 
20673
 
#
20674
 
# CONFIG_FILES section.
20675
 
#
20676
 
 
20677
 
# No need to generate the scripts if there are no CONFIG_FILES.
20678
 
# This happens for instance when ./config.status config.h
20679
 
if test -n "\$CONFIG_FILES"; then
20680
 
  # Protect against being on the right side of a sed subst in config.status.
20681
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20682
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20683
 
s,@SHELL@,$SHELL,;t t
20684
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20685
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20686
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20687
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20688
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20689
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20690
 
s,@exec_prefix@,$exec_prefix,;t t
20691
 
s,@prefix@,$prefix,;t t
20692
 
s,@program_transform_name@,$program_transform_name,;t t
20693
 
s,@bindir@,$bindir,;t t
20694
 
s,@sbindir@,$sbindir,;t t
20695
 
s,@libexecdir@,$libexecdir,;t t
20696
 
s,@datadir@,$datadir,;t t
20697
 
s,@sysconfdir@,$sysconfdir,;t t
20698
 
s,@sharedstatedir@,$sharedstatedir,;t t
20699
 
s,@localstatedir@,$localstatedir,;t t
20700
 
s,@libdir@,$libdir,;t t
20701
 
s,@includedir@,$includedir,;t t
20702
 
s,@oldincludedir@,$oldincludedir,;t t
20703
 
s,@infodir@,$infodir,;t t
20704
 
s,@mandir@,$mandir,;t t
20705
 
s,@build_alias@,$build_alias,;t t
20706
 
s,@host_alias@,$host_alias,;t t
20707
 
s,@target_alias@,$target_alias,;t t
20708
 
s,@DEFS@,$DEFS,;t t
20709
 
s,@ECHO_C@,$ECHO_C,;t t
20710
 
s,@ECHO_N@,$ECHO_N,;t t
20711
 
s,@ECHO_T@,$ECHO_T,;t t
20712
 
s,@LIBS@,$LIBS,;t t
20713
 
s,@build@,$build,;t t
20714
 
s,@build_cpu@,$build_cpu,;t t
20715
 
s,@build_vendor@,$build_vendor,;t t
20716
 
s,@build_os@,$build_os,;t t
20717
 
s,@host@,$host,;t t
20718
 
s,@host_cpu@,$host_cpu,;t t
20719
 
s,@host_vendor@,$host_vendor,;t t
20720
 
s,@host_os@,$host_os,;t t
20721
 
s,@ADDITIONAL_INCS@,$ADDITIONAL_INCS,;t t
20722
 
s,@ADDITIONAL_LANG@,$ADDITIONAL_LANG,;t t
20723
 
s,@ADDITIONAL_OBJS@,$ADDITIONAL_OBJS,;t t
20724
 
s,@ADDITIONAL_PROGS@,$ADDITIONAL_PROGS,;t t
20725
 
s,@BUILD_TARGET@,$BUILD_TARGET,;t t
20726
 
s,@CFLAGS@,$CFLAGS,;t t
20727
 
s,@CONFIGURATION_ARGS@,$CONFIGURATION_ARGS,;t t
20728
 
s,@CONFIGURATION_PATH@,$CONFIGURATION_PATH,;t t
20729
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
20730
 
s,@CXX@,$CXX,;t t
20731
 
s,@CXXFLAGS@,$CXXFLAGS,;t t
20732
 
s,@DEFAULT_LIB@,$DEFAULT_LIB,;t t
20733
 
s,@DEFAULT_LIB_CXX@,$DEFAULT_LIB_CXX,;t t
20734
 
s,@EMBEDIX_ECD_CXX@,$EMBEDIX_ECD_CXX,;t t
20735
 
s,@EMBEDIX_ECD_RPC@,$EMBEDIX_ECD_RPC,;t t
20736
 
s,@EMBEDIX_ROOT@,$EMBEDIX_ROOT,;t t
20737
 
s,@INSTALLER@,$INSTALLER,;t t
20738
 
s,@INSTALL_LIBS@,$INSTALL_LIBS,;t t
20739
 
s,@INSTALL_TARGET@,$INSTALL_TARGET,;t t
20740
 
s,@JAR@,$JAR,;t t
20741
 
s,@JAVACFLAGS@,$JAVACFLAGS,;t t
20742
 
s,@LDFLAGS@,$LDFLAGS,;t t
20743
 
s,@LIBJSO_LIBS@,$LIBJSO_LIBS,;t t
20744
 
s,@LIBSO_LIBS@,$LIBSO_LIBS,;t t
20745
 
s,@LIBTOOL@,$LIBTOOL,;t t
20746
 
s,@LIBTSO_LIBS@,$LIBTSO_LIBS,;t t
20747
 
s,@LIBXSO_LIBS@,$LIBXSO_LIBS,;t t
20748
 
s,@LOAD_LIBS@,$LOAD_LIBS,;t t
20749
 
s,@MAKEFILE_CC@,$MAKEFILE_CC,;t t
20750
 
s,@MAKEFILE_CCLINK@,$MAKEFILE_CCLINK,;t t
20751
 
s,@MAKEFILE_CXX@,$MAKEFILE_CXX,;t t
20752
 
s,@MAKEFILE_CXXLINK@,$MAKEFILE_CXXLINK,;t t
20753
 
s,@MAKEFILE_MAYBE_WIN32@,$MAKEFILE_MAYBE_WIN32,;t t
20754
 
s,@MAKEFILE_SOLINK@,$MAKEFILE_SOLINK,;t t
20755
 
s,@MAKEFILE_XSOLINK@,$MAKEFILE_XSOLINK,;t t
20756
 
s,@POSTLINK@,$POSTLINK,;t t
20757
 
s,@RPC_CLIENT_OBJS@,$RPC_CLIENT_OBJS,;t t
20758
 
s,@RPM_POST_INSTALL@,$RPM_POST_INSTALL,;t t
20759
 
s,@RPM_POST_UNINSTALL@,$RPM_POST_UNINSTALL,;t t
20760
 
s,@SOFLAGS@,$SOFLAGS,;t t
20761
 
s,@db_cv_path_embedix_install@,$db_cv_path_embedix_install,;t t
20762
 
s,@db_cv_path_rpm_archive@,$db_cv_path_rpm_archive,;t t
20763
 
s,@db_int_def@,$db_int_def,;t t
20764
 
s,@o@,$o,;t t
20765
 
s,@DB_VERSION_MAJOR@,$DB_VERSION_MAJOR,;t t
20766
 
s,@DB_VERSION_MINOR@,$DB_VERSION_MINOR,;t t
20767
 
s,@DB_VERSION_PATCH@,$DB_VERSION_PATCH,;t t
20768
 
s,@DB_VERSION_UNIQUE_NAME@,$DB_VERSION_UNIQUE_NAME,;t t
20769
 
s,@DB_VERSION_STRING@,$DB_VERSION_STRING,;t t
20770
 
s,@db_cv_path_ar@,$db_cv_path_ar,;t t
20771
 
s,@ac_ct_db_cv_path_ar@,$ac_ct_db_cv_path_ar,;t t
20772
 
s,@db_cv_path_chmod@,$db_cv_path_chmod,;t t
20773
 
s,@ac_ct_db_cv_path_chmod@,$ac_ct_db_cv_path_chmod,;t t
20774
 
s,@db_cv_path_cp@,$db_cv_path_cp,;t t
20775
 
s,@ac_ct_db_cv_path_cp@,$ac_ct_db_cv_path_cp,;t t
20776
 
s,@path_ldconfig@,$path_ldconfig,;t t
20777
 
s,@ac_ct_path_ldconfig@,$ac_ct_path_ldconfig,;t t
20778
 
s,@db_cv_path_ldconfig@,$db_cv_path_ldconfig,;t t
20779
 
s,@db_cv_path_ln@,$db_cv_path_ln,;t t
20780
 
s,@ac_ct_db_cv_path_ln@,$ac_ct_db_cv_path_ln,;t t
20781
 
s,@db_cv_path_mkdir@,$db_cv_path_mkdir,;t t
20782
 
s,@ac_ct_db_cv_path_mkdir@,$ac_ct_db_cv_path_mkdir,;t t
20783
 
s,@path_ranlib@,$path_ranlib,;t t
20784
 
s,@ac_ct_path_ranlib@,$ac_ct_path_ranlib,;t t
20785
 
s,@db_cv_path_ranlib@,$db_cv_path_ranlib,;t t
20786
 
s,@db_cv_path_rm@,$db_cv_path_rm,;t t
20787
 
s,@ac_ct_db_cv_path_rm@,$ac_ct_db_cv_path_rm,;t t
20788
 
s,@db_cv_path_rpm@,$db_cv_path_rpm,;t t
20789
 
s,@ac_ct_db_cv_path_rpm@,$ac_ct_db_cv_path_rpm,;t t
20790
 
s,@path_sh@,$path_sh,;t t
20791
 
s,@ac_ct_path_sh@,$ac_ct_path_sh,;t t
20792
 
s,@db_cv_path_sh@,$db_cv_path_sh,;t t
20793
 
s,@path_strip@,$path_strip,;t t
20794
 
s,@ac_ct_path_strip@,$ac_ct_path_strip,;t t
20795
 
s,@db_cv_path_strip@,$db_cv_path_strip,;t t
20796
 
s,@db_cv_path_kill@,$db_cv_path_kill,;t t
20797
 
s,@ac_ct_db_cv_path_kill@,$ac_ct_db_cv_path_kill,;t t
20798
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20799
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20800
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20801
 
s,@CC@,$CC,;t t
20802
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
20803
 
s,@EXEEXT@,$EXEEXT,;t t
20804
 
s,@OBJEXT@,$OBJEXT,;t t
20805
 
s,@CCC@,$CCC,;t t
20806
 
s,@ac_ct_CCC@,$ac_ct_CCC,;t t
20807
 
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20808
 
s,@cxx_have_stdheaders@,$cxx_have_stdheaders,;t t
20809
 
s,@LN_S@,$LN_S,;t t
20810
 
s,@ECHO@,$ECHO,;t t
20811
 
s,@RANLIB@,$RANLIB,;t t
20812
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20813
 
s,@STRIP@,$STRIP,;t t
20814
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20815
 
s,@CPP@,$CPP,;t t
20816
 
s,@EGREP@,$EGREP,;t t
20817
 
s,@SOSUFFIX@,$SOSUFFIX,;t t
20818
 
s,@MODSUFFIX@,$MODSUFFIX,;t t
20819
 
s,@JMODSUFFIX@,$JMODSUFFIX,;t t
20820
 
s,@JAVAC@,$JAVAC,;t t
20821
 
s,@_ACJNI_JAVAC@,$_ACJNI_JAVAC,;t t
20822
 
s,@TCFLAGS@,$TCFLAGS,;t t
20823
 
s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
20824
 
s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
20825
 
s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
20826
 
s,@TCL_TCLSH@,$TCL_TCLSH,;t t
20827
 
s,@u_char_decl@,$u_char_decl,;t t
20828
 
s,@u_short_decl@,$u_short_decl,;t t
20829
 
s,@u_int_decl@,$u_int_decl,;t t
20830
 
s,@u_long_decl@,$u_long_decl,;t t
20831
 
s,@u_int8_decl@,$u_int8_decl,;t t
20832
 
s,@u_int16_decl@,$u_int16_decl,;t t
20833
 
s,@int16_decl@,$int16_decl,;t t
20834
 
s,@u_int32_decl@,$u_int32_decl,;t t
20835
 
s,@int32_decl@,$int32_decl,;t t
20836
 
s,@ssize_t_decl@,$ssize_t_decl,;t t
20837
 
s,@db_align_t_decl@,$db_align_t_decl,;t t
20838
 
s,@db_alignp_t_decl@,$db_alignp_t_decl,;t t
20839
 
s,@LIBOBJS@,$LIBOBJS,;t t
20840
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20841
 
CEOF
20842
 
 
20843
 
_ACEOF
20844
 
 
20845
 
  cat >>$CONFIG_STATUS <<\_ACEOF
20846
 
  # Split the substitutions into bite-sized pieces for seds with
20847
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
20848
 
  ac_max_sed_lines=48
20849
 
  ac_sed_frag=1 # Number of current file.
20850
 
  ac_beg=1 # First line for current file.
20851
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
20852
 
  ac_more_lines=:
20853
 
  ac_sed_cmds=
20854
 
  while $ac_more_lines; do
20855
 
    if test $ac_beg -gt 1; then
20856
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20857
 
    else
20858
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20859
 
    fi
20860
 
    if test ! -s $tmp/subs.frag; then
20861
 
      ac_more_lines=false
20862
 
    else
20863
 
      # The purpose of the label and of the branching condition is to
20864
 
      # speed up the sed processing (if there are no `@' at all, there
20865
 
      # is no need to browse any of the substitutions).
20866
 
      # These are the two extra sed commands mentioned above.
20867
 
      (echo ':t
20868
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20869
 
      if test -z "$ac_sed_cmds"; then
20870
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20871
 
      else
20872
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20873
 
      fi
20874
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
20875
 
      ac_beg=$ac_end
20876
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
20877
 
    fi
20878
 
  done
20879
 
  if test -z "$ac_sed_cmds"; then
20880
 
    ac_sed_cmds=cat
20881
 
  fi
20882
 
fi # test -n "$CONFIG_FILES"
20883
 
 
20884
 
_ACEOF
20885
 
cat >>$CONFIG_STATUS <<\_ACEOF
20886
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20887
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20888
 
  case $ac_file in
20889
 
  - | *:- | *:-:* ) # input from stdin
20890
 
        cat >$tmp/stdin
20891
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20892
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20893
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20894
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20895
 
  * )   ac_file_in=$ac_file.in ;;
20896
 
  esac
20897
 
 
20898
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20899
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20900
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20901
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
20902
 
         X"$ac_file" : 'X\(//\)$' \| \
20903
 
         X"$ac_file" : 'X\(/\)' \| \
20904
 
         .     : '\(.\)' 2>/dev/null ||
20905
 
echo X"$ac_file" |
20906
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20907
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20908
 
          /^X\(\/\/\)$/{ s//\1/; q; }
20909
 
          /^X\(\/\).*/{ s//\1/; q; }
20910
 
          s/.*/./; q'`
20911
 
  { if $as_mkdir_p; then
20912
 
    mkdir -p "$ac_dir"
20913
 
  else
20914
 
    as_dir="$ac_dir"
20915
 
    as_dirs=
20916
 
    while test ! -d "$as_dir"; do
20917
 
      as_dirs="$as_dir $as_dirs"
20918
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20919
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20920
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
20921
 
         X"$as_dir" : 'X\(//\)$' \| \
20922
 
         X"$as_dir" : 'X\(/\)' \| \
20923
 
         .     : '\(.\)' 2>/dev/null ||
20924
 
echo X"$as_dir" |
20925
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20926
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20927
 
          /^X\(\/\/\)$/{ s//\1/; q; }
20928
 
          /^X\(\/\).*/{ s//\1/; q; }
20929
 
          s/.*/./; q'`
20930
 
    done
20931
 
    test ! -n "$as_dirs" || mkdir $as_dirs
20932
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20933
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20934
 
   { (exit 1); exit 1; }; }; }
20935
 
 
20936
 
  ac_builddir=.
20937
 
 
20938
 
if test "$ac_dir" != .; then
20939
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20940
 
  # A "../" for each directory in $ac_dir_suffix.
20941
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20942
 
else
20943
 
  ac_dir_suffix= ac_top_builddir=
20944
 
fi
20945
 
 
20946
 
case $srcdir in
20947
 
  .)  # No --srcdir option.  We are building in place.
20948
 
    ac_srcdir=.
20949
 
    if test -z "$ac_top_builddir"; then
20950
 
       ac_top_srcdir=.
20951
 
    else
20952
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20953
 
    fi ;;
20954
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
20955
 
    ac_srcdir=$srcdir$ac_dir_suffix;
20956
 
    ac_top_srcdir=$srcdir ;;
20957
 
  *) # Relative path.
20958
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20959
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
20960
 
esac
20961
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20962
 
# absolute.
20963
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20964
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20965
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20966
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20967
 
 
20968
 
 
20969
 
  case $INSTALL in
20970
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20971
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20972
 
  esac
20973
 
 
20974
 
  if test x"$ac_file" != x-; then
20975
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
20976
 
echo "$as_me: creating $ac_file" >&6;}
20977
 
    rm -f "$ac_file"
20978
 
  fi
20979
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
20980
 
  # use $as_me), people would be surprised to read:
20981
 
  #    /* config.h.  Generated by config.status.  */
20982
 
  if test x"$ac_file" = x-; then
20983
 
    configure_input=
20984
 
  else
20985
 
    configure_input="$ac_file.  "
20986
 
  fi
20987
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
20988
 
                                     sed 's,.*/,,'` by configure."
20989
 
 
20990
 
  # First look for the input files in the build tree, otherwise in the
20991
 
  # src tree.
20992
 
  ac_file_inputs=`IFS=:
20993
 
    for f in $ac_file_in; do
20994
 
      case $f in
20995
 
      -) echo $tmp/stdin ;;
20996
 
      [\\/$]*)
20997
 
         # Absolute (can't be DOS-style, as IFS=:)
20998
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20999
 
echo "$as_me: error: cannot find input file: $f" >&2;}
21000
 
   { (exit 1); exit 1; }; }
21001
 
         echo $f;;
21002
 
      *) # Relative
21003
 
         if test -f "$f"; then
21004
 
           # Build tree
21005
 
           echo $f
21006
 
         elif test -f "$srcdir/$f"; then
21007
 
           # Source tree
21008
 
           echo $srcdir/$f
21009
 
         else
21010
 
           # /dev/null tree
21011
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21012
 
echo "$as_me: error: cannot find input file: $f" >&2;}
21013
 
   { (exit 1); exit 1; }; }
21014
 
         fi;;
21015
 
      esac
21016
 
    done` || { (exit 1); exit 1; }
21017
 
_ACEOF
21018
 
cat >>$CONFIG_STATUS <<_ACEOF
21019
 
  sed "$ac_vpsub
21020
 
$extrasub
21021
 
_ACEOF
21022
 
cat >>$CONFIG_STATUS <<\_ACEOF
21023
 
:t
21024
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21025
 
s,@configure_input@,$configure_input,;t t
21026
 
s,@srcdir@,$ac_srcdir,;t t
21027
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
21028
 
s,@top_srcdir@,$ac_top_srcdir,;t t
21029
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21030
 
s,@builddir@,$ac_builddir,;t t
21031
 
s,@abs_builddir@,$ac_abs_builddir,;t t
21032
 
s,@top_builddir@,$ac_top_builddir,;t t
21033
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21034
 
s,@INSTALL@,$ac_INSTALL,;t t
21035
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21036
 
  rm -f $tmp/stdin
21037
 
  if test x"$ac_file" != x-; then
21038
 
    mv $tmp/out $ac_file
21039
 
  else
21040
 
    cat $tmp/out
21041
 
    rm -f $tmp/out
21042
 
  fi
21043
 
 
21044
 
done
21045
 
_ACEOF
21046
 
cat >>$CONFIG_STATUS <<\_ACEOF
21047
 
 
21048
 
#
21049
 
# CONFIG_HEADER section.
21050
 
#
21051
 
 
21052
 
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21053
 
# NAME is the cpp macro being defined and VALUE is the value it is being given.
21054
 
#
21055
 
# ac_d sets the value in "#define NAME VALUE" lines.
21056
 
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
21057
 
ac_dB='[        ].*$,\1#\2'
21058
 
ac_dC=' '
21059
 
ac_dD=',;t'
21060
 
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21061
 
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21062
 
ac_uB='$,\1#\2define\3'
21063
 
ac_uC=' '
21064
 
ac_uD=',;t'
21065
 
 
21066
 
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21067
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21068
 
  case $ac_file in
21069
 
  - | *:- | *:-:* ) # input from stdin
21070
 
        cat >$tmp/stdin
21071
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21072
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21073
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21074
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21075
 
  * )   ac_file_in=$ac_file.in ;;
21076
 
  esac
21077
 
 
21078
 
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21079
 
echo "$as_me: creating $ac_file" >&6;}
21080
 
 
21081
 
  # First look for the input files in the build tree, otherwise in the
21082
 
  # src tree.
21083
 
  ac_file_inputs=`IFS=:
21084
 
    for f in $ac_file_in; do
21085
 
      case $f in
21086
 
      -) echo $tmp/stdin ;;
21087
 
      [\\/$]*)
21088
 
         # Absolute (can't be DOS-style, as IFS=:)
21089
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21090
 
echo "$as_me: error: cannot find input file: $f" >&2;}
21091
 
   { (exit 1); exit 1; }; }
21092
 
         echo $f;;
21093
 
      *) # Relative
21094
 
         if test -f "$f"; then
21095
 
           # Build tree
21096
 
           echo $f
21097
 
         elif test -f "$srcdir/$f"; then
21098
 
           # Source tree
21099
 
           echo $srcdir/$f
21100
 
         else
21101
 
           # /dev/null tree
21102
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21103
 
echo "$as_me: error: cannot find input file: $f" >&2;}
21104
 
   { (exit 1); exit 1; }; }
21105
 
         fi;;
21106
 
      esac
21107
 
    done` || { (exit 1); exit 1; }
21108
 
  # Remove the trailing spaces.
21109
 
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
21110
 
 
21111
 
_ACEOF
21112
 
 
21113
 
# Transform confdefs.h into two sed scripts, `conftest.defines' and
21114
 
# `conftest.undefs', that substitutes the proper values into
21115
 
# config.h.in to produce config.h.  The first handles `#define'
21116
 
# templates, and the second `#undef' templates.
21117
 
# And first: Protect against being on the right side of a sed subst in
21118
 
# config.status.  Protect against being in an unquoted here document
21119
 
# in config.status.
21120
 
rm -f conftest.defines conftest.undefs
21121
 
# Using a here document instead of a string reduces the quoting nightmare.
21122
 
# Putting comments in sed scripts is not portable.
21123
 
#
21124
 
# `end' is used to avoid that the second main sed command (meant for
21125
 
# 0-ary CPP macros) applies to n-ary macro definitions.
21126
 
# See the Autoconf documentation for `clear'.
21127
 
cat >confdef2sed.sed <<\_ACEOF
21128
 
s/[\\&,]/\\&/g
21129
 
s,[\\$`],\\&,g
21130
 
t clear
21131
 
: clear
21132
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21133
 
t end
21134
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21135
 
: end
21136
 
_ACEOF
21137
 
# If some macros were called several times there might be several times
21138
 
# the same #defines, which is useless.  Nevertheless, we may not want to
21139
 
# sort them, since we want the *last* AC-DEFINE to be honored.
21140
 
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21141
 
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21142
 
rm -f confdef2sed.sed
21143
 
 
21144
 
# This sed command replaces #undef with comments.  This is necessary, for
21145
 
# example, in the case of _POSIX_SOURCE, which is predefined and required
21146
 
# on some systems where configure will not decide to define it.
21147
 
cat >>conftest.undefs <<\_ACEOF
21148
 
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21149
 
_ACEOF
21150
 
 
21151
 
# Break up conftest.defines because some shells have a limit on the size
21152
 
# of here documents, and old seds have small limits too (100 cmds).
21153
 
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21154
 
echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21155
 
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21156
 
echo '  :' >>$CONFIG_STATUS
21157
 
rm -f conftest.tail
21158
 
while grep . conftest.defines >/dev/null
21159
 
do
21160
 
  # Write a limited-size here document to $tmp/defines.sed.
21161
 
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21162
 
  # Speed up: don't consider the non `#define' lines.
21163
 
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
21164
 
  # Work around the forget-to-reset-the-flag bug.
21165
 
  echo 't clr' >>$CONFIG_STATUS
21166
 
  echo ': clr' >>$CONFIG_STATUS
21167
 
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21168
 
  echo 'CEOF
21169
 
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
21170
 
  rm -f $tmp/in
21171
 
  mv $tmp/out $tmp/in
21172
 
' >>$CONFIG_STATUS
21173
 
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21174
 
  rm -f conftest.defines
21175
 
  mv conftest.tail conftest.defines
21176
 
done
21177
 
rm -f conftest.defines
21178
 
echo '  fi # grep' >>$CONFIG_STATUS
21179
 
echo >>$CONFIG_STATUS
21180
 
 
21181
 
# Break up conftest.undefs because some shells have a limit on the size
21182
 
# of here documents, and old seds have small limits too (100 cmds).
21183
 
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21184
 
rm -f conftest.tail
21185
 
while grep . conftest.undefs >/dev/null
21186
 
do
21187
 
  # Write a limited-size here document to $tmp/undefs.sed.
21188
 
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21189
 
  # Speed up: don't consider the non `#undef'
21190
 
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21191
 
  # Work around the forget-to-reset-the-flag bug.
21192
 
  echo 't clr' >>$CONFIG_STATUS
21193
 
  echo ': clr' >>$CONFIG_STATUS
21194
 
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21195
 
  echo 'CEOF
21196
 
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21197
 
  rm -f $tmp/in
21198
 
  mv $tmp/out $tmp/in
21199
 
' >>$CONFIG_STATUS
21200
 
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21201
 
  rm -f conftest.undefs
21202
 
  mv conftest.tail conftest.undefs
21203
 
done
21204
 
rm -f conftest.undefs
21205
 
 
21206
 
cat >>$CONFIG_STATUS <<\_ACEOF
21207
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
21208
 
  # use $as_me), people would be surprised to read:
21209
 
  #    /* config.h.  Generated by config.status.  */
21210
 
  if test x"$ac_file" = x-; then
21211
 
    echo "/* Generated by configure.  */" >$tmp/config.h
21212
 
  else
21213
 
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21214
 
  fi
21215
 
  cat $tmp/in >>$tmp/config.h
21216
 
  rm -f $tmp/in
21217
 
  if test x"$ac_file" != x-; then
21218
 
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21219
 
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21220
 
echo "$as_me: $ac_file is unchanged" >&6;}
21221
 
    else
21222
 
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21223
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21224
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
21225
 
         X"$ac_file" : 'X\(//\)$' \| \
21226
 
         X"$ac_file" : 'X\(/\)' \| \
21227
 
         .     : '\(.\)' 2>/dev/null ||
21228
 
echo X"$ac_file" |
21229
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21230
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21231
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21232
 
          /^X\(\/\).*/{ s//\1/; q; }
21233
 
          s/.*/./; q'`
21234
 
      { if $as_mkdir_p; then
21235
 
    mkdir -p "$ac_dir"
21236
 
  else
21237
 
    as_dir="$ac_dir"
21238
 
    as_dirs=
21239
 
    while test ! -d "$as_dir"; do
21240
 
      as_dirs="$as_dir $as_dirs"
21241
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21242
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21243
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
21244
 
         X"$as_dir" : 'X\(//\)$' \| \
21245
 
         X"$as_dir" : 'X\(/\)' \| \
21246
 
         .     : '\(.\)' 2>/dev/null ||
21247
 
echo X"$as_dir" |
21248
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21249
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21250
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21251
 
          /^X\(\/\).*/{ s//\1/; q; }
21252
 
          s/.*/./; q'`
21253
 
    done
21254
 
    test ! -n "$as_dirs" || mkdir $as_dirs
21255
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21256
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21257
 
   { (exit 1); exit 1; }; }; }
21258
 
 
21259
 
      rm -f $ac_file
21260
 
      mv $tmp/config.h $ac_file
21261
 
    fi
21262
 
  else
21263
 
    cat $tmp/config.h
21264
 
    rm -f $tmp/config.h
21265
 
  fi
21266
 
done
21267
 
_ACEOF
21268
 
 
21269
 
cat >>$CONFIG_STATUS <<\_ACEOF
21270
 
 
21271
 
{ (exit 0); exit 0; }
21272
 
_ACEOF
21273
 
chmod +x $CONFIG_STATUS
21274
 
ac_clean_files=$ac_clean_files_save
21275
 
 
21276
 
 
21277
 
# configure is writing to config.log, and then calls config.status.
21278
 
# config.status does its own redirection, appending to config.log.
21279
 
# Unfortunately, on DOS this fails, as config.log is still kept open
21280
 
# by configure, so config.status won't be able to write to it; its
21281
 
# output is simply discarded.  So we exec the FD to /dev/null,
21282
 
# effectively closing config.log, so it can be properly (re)opened and
21283
 
# appended to by config.status.  When coming back to configure, we
21284
 
# need to make the FD available again.
21285
 
if test "$no_create" != yes; then
21286
 
  ac_cs_success=:
21287
 
  ac_config_status_args=
21288
 
  test "$silent" = yes &&
21289
 
    ac_config_status_args="$ac_config_status_args --quiet"
21290
 
  exec 5>/dev/null
21291
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21292
 
  exec 5>>config.log
21293
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21294
 
  # would make configure fail if this is the last instruction.
21295
 
  $ac_cs_success || { (exit 1); exit 1; }
21296
 
fi
21297