~ubuntu-branches/ubuntu/warty/curl/warty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2002-03-12 19:06:21 UTC
  • Revision ID: james.westby@ubuntu.com-20020312190621-iqx7k9cipo5d0ifr
Tags: upstream-7.9.5
ImportĀ upstreamĀ versionĀ 7.9.5

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 Autoconf 2.52.
 
4
#
 
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
6
# Free Software Foundation, Inc.
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
 
 
10
# Find the correct PATH separator.  Usually this is `:', but
 
11
# DJGPP uses `;' like DOS.
 
12
if test "X${PATH_SEPARATOR+set}" != Xset; then
 
13
  UNAME=${UNAME-`uname 2>/dev/null`}
 
14
  case X$UNAME in
 
15
    *-DOS) lt_cv_sys_path_separator=';' ;;
 
16
    *)     lt_cv_sys_path_separator=':' ;;
 
17
  esac
 
18
  PATH_SEPARATOR=$lt_cv_sys_path_separator
 
19
fi
 
20
 
 
21
# Check that we are running under the correct shell.
 
22
SHELL=${CONFIG_SHELL-/bin/sh}
 
23
 
 
24
case X$ECHO in
 
25
X*--fallback-echo)
 
26
  # Remove one level of quotation (which was required for Make).
 
27
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
28
  ;;
 
29
esac
 
30
 
 
31
echo=${ECHO-echo}
 
32
if test "X$1" = X--no-reexec; then
 
33
  # Discard the --no-reexec flag, and continue.
 
34
  shift
 
35
elif test "X$1" = X--fallback-echo; then
 
36
  # Avoid inline document here, it may be left over
 
37
  :
 
38
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
 
39
  # Yippee, $echo works!
 
40
  :
 
41
else
 
42
  # Restart under the correct shell.
 
43
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
44
fi
 
45
 
 
46
if test "X$1" = X--fallback-echo; then
 
47
  # used as fallback echo
 
48
  shift
 
49
  cat <<EOF
 
50
 
 
51
EOF
 
52
  exit 0
 
53
fi
 
54
 
 
55
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
56
# if CDPATH is set.
 
57
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
58
 
 
59
if test -z "$ECHO"; then
 
60
if test "X${echo_test_string+set}" != Xset; then
 
61
# find a string as large as possible, as long as the shell can cope with it
 
62
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
63
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
64
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
65
       echo_test_string="`eval $cmd`" &&
 
66
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
67
    then
 
68
      break
 
69
    fi
 
70
  done
 
71
fi
 
72
 
 
73
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
74
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
75
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
76
  :
 
77
else
 
78
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
79
  # backslashes.  This makes it impossible to quote backslashes using
 
80
  #   echo "$something" | sed 's/\\/\\\\/g'
 
81
  #
 
82
  # So, first we look for a working echo in the user's PATH.
 
83
 
 
84
  IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
85
  for dir in $PATH /usr/ucb; do
 
86
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
87
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
88
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
89
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
90
      echo="$dir/echo"
 
91
      break
 
92
    fi
 
93
  done
 
94
  IFS="$save_ifs"
 
95
 
 
96
  if test "X$echo" = Xecho; then
 
97
    # We didn't find a better echo, so look for alternatives.
 
98
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
99
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
100
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
101
      # This shell has a builtin print -r that does the trick.
 
102
      echo='print -r'
 
103
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
104
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
105
      # If we have ksh, try running configure again with it.
 
106
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
107
      export ORIGINAL_CONFIG_SHELL
 
108
      CONFIG_SHELL=/bin/ksh
 
109
      export CONFIG_SHELL
 
110
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
111
    else
 
112
      # Try using printf.
 
113
      echo='printf %s\n'
 
114
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
115
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
116
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
117
        # Cool, printf works
 
118
        :
 
119
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
120
           test "X$echo_testing_string" = 'X\t' &&
 
121
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
122
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
123
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
124
        export CONFIG_SHELL
 
125
        SHELL="$CONFIG_SHELL"
 
126
        export SHELL
 
127
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
128
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
129
           test "X$echo_testing_string" = 'X\t' &&
 
130
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
131
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
132
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
133
      else
 
134
        # maybe with a smaller string...
 
135
        prev=:
 
136
 
 
137
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
138
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
139
          then
 
140
            break
 
141
          fi
 
142
          prev="$cmd"
 
143
        done
 
144
 
 
145
        if test "$prev" != 'sed 50q "$0"'; then
 
146
          echo_test_string=`eval $prev`
 
147
          export echo_test_string
 
148
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
149
        else
 
150
          # Oops.  We lost completely, so just stick with echo.
 
151
          echo=echo
 
152
        fi
 
153
      fi
 
154
    fi
 
155
  fi
 
156
fi
 
157
fi
 
158
 
 
159
# Copy echo and quote the copy suitably for passing to libtool from
 
160
# the Makefile, instead of quoting the original, which is used later.
 
161
ECHO=$echo
 
162
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
163
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
164
fi
 
165
 
 
166
# Avoid depending upon Character Ranges.
 
167
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
168
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
169
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
170
as_cr_digits='0123456789'
 
171
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
172
 
 
173
# Sed expression to map a string onto a valid variable name.
 
174
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
175
 
 
176
# Sed expression to map a string onto a valid CPP name.
 
177
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
178
 
 
179
# Be Bourne compatible
 
180
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
181
  emulate sh
 
182
  NULLCMD=:
 
183
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
184
  set -o posix
 
185
fi
 
186
 
 
187
# Name of the executable.
 
188
as_me=`echo "$0" |sed 's,.*[\\/],,'`
 
189
 
 
190
if expr a : '\(a\)' >/dev/null 2>&1; then
 
191
  as_expr=expr
 
192
else
 
193
  as_expr=false
 
194
fi
 
195
 
 
196
rm -f conf$$ conf$$.exe conf$$.file
 
197
echo >conf$$.file
 
198
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
199
  # We could just check for DJGPP; but this test a) works b) is more generic
 
200
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
201
  if test -f conf$$.exe; then
 
202
    # Don't use ln at all; we don't have any links
 
203
    as_ln_s='cp -p'
 
204
  else
 
205
    as_ln_s='ln -s'
 
206
  fi
 
207
elif ln conf$$.file conf$$ 2>/dev/null; then
 
208
  as_ln_s=ln
 
209
else
 
210
  as_ln_s='cp -p'
 
211
fi
 
212
rm -f conf$$ conf$$.exe conf$$.file
 
213
 
 
214
as_executable_p="test -f"
 
215
 
 
216
# Support unset when possible.
 
217
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
218
  as_unset=unset
 
219
else
 
220
  as_unset=false
 
221
fi
 
222
 
 
223
# NLS nuisances.
 
224
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
 
225
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
 
226
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
 
227
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
 
228
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
 
229
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
 
230
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
 
231
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
 
232
 
 
233
# IFS
 
234
# We need space, tab and new line, in precisely that order.
 
235
as_nl='
 
236
'
 
237
IFS="   $as_nl"
 
238
 
 
239
# CDPATH.
 
240
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
241
 
 
242
# Name of the host.
 
243
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
244
# so uname gets run too.
 
245
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
246
 
 
247
exec 6>&1
 
248
 
 
249
#
 
250
# Initializations.
 
251
#
 
252
ac_default_prefix=/usr/local
 
253
cross_compiling=no
 
254
subdirs=
 
255
MFLAGS= MAKEFLAGS=
 
256
SHELL=${CONFIG_SHELL-/bin/sh}
 
257
 
 
258
# Maximum number of lines to put in a shell here document.
 
259
# This variable seems obsolete.  It should probably be removed, and
 
260
# only ac_max_sed_lines should be used.
 
261
: ${ac_max_here_lines=38}
 
262
 
 
263
ac_unique_file="lib/urldata.h"
 
264
# Factoring default headers for most tests.
 
265
ac_includes_default="\
 
266
#include <stdio.h>
 
267
#if HAVE_SYS_TYPES_H
 
268
# include <sys/types.h>
 
269
#endif
 
270
#if HAVE_SYS_STAT_H
 
271
# include <sys/stat.h>
 
272
#endif
 
273
#if STDC_HEADERS
 
274
# include <stdlib.h>
 
275
# include <stddef.h>
 
276
#else
 
277
# if HAVE_STDLIB_H
 
278
#  include <stdlib.h>
 
279
# endif
 
280
#endif
 
281
#if HAVE_STRING_H
 
282
# if !STDC_HEADERS && HAVE_MEMORY_H
 
283
#  include <memory.h>
 
284
# endif
 
285
# include <string.h>
 
286
#endif
 
287
#if HAVE_STRINGS_H
 
288
# include <strings.h>
 
289
#endif
 
290
#if HAVE_INTTYPES_H
 
291
# include <inttypes.h>
 
292
#else
 
293
# if HAVE_STDINT_H
 
294
#  include <stdint.h>
 
295
# endif
 
296
#endif
 
297
#if HAVE_UNISTD_H
 
298
# include <unistd.h>
 
299
#endif"
 
300
 
 
301
# Initialize some variables set by options.
 
302
ac_init_help=
 
303
ac_init_version=false
 
304
# The variables have the same names as the options, with
 
305
# dashes changed to underlines.
 
306
cache_file=/dev/null
 
307
exec_prefix=NONE
 
308
no_create=
 
309
no_recursion=
 
310
prefix=NONE
 
311
program_prefix=NONE
 
312
program_suffix=NONE
 
313
program_transform_name=s,x,x,
 
314
silent=
 
315
site=
 
316
srcdir=
 
317
verbose=
 
318
x_includes=NONE
 
319
x_libraries=NONE
 
320
 
 
321
# Installation directory options.
 
322
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
323
# and all the variables that are supposed to be based on exec_prefix
 
324
# by default will actually change.
 
325
# Use braces instead of parens because sh, perl, etc. also accept them.
 
326
bindir='${exec_prefix}/bin'
 
327
sbindir='${exec_prefix}/sbin'
 
328
libexecdir='${exec_prefix}/libexec'
 
329
datadir='${prefix}/share'
 
330
sysconfdir='${prefix}/etc'
 
331
sharedstatedir='${prefix}/com'
 
332
localstatedir='${prefix}/var'
 
333
libdir='${exec_prefix}/lib'
 
334
includedir='${prefix}/include'
 
335
oldincludedir='/usr/include'
 
336
infodir='${prefix}/info'
 
337
mandir='${prefix}/man'
 
338
 
 
339
# Identity of this package.
 
340
PACKAGE_NAME=
 
341
PACKAGE_TARNAME=
 
342
PACKAGE_VERSION=
 
343
PACKAGE_STRING=
 
344
PACKAGE_BUGREPORT=
 
345
 
 
346
ac_prev=
 
347
for ac_option
 
348
do
 
349
  # If the previous option needs an argument, assign it.
 
350
  if test -n "$ac_prev"; then
 
351
    eval "$ac_prev=\$ac_option"
 
352
    ac_prev=
 
353
    continue
 
354
  fi
 
355
 
 
356
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
357
 
 
358
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
359
 
 
360
  case $ac_option in
 
361
 
 
362
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
363
    ac_prev=bindir ;;
 
364
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
365
    bindir=$ac_optarg ;;
 
366
 
 
367
  -build | --build | --buil | --bui | --bu)
 
368
    ac_prev=build_alias ;;
 
369
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
370
    build_alias=$ac_optarg ;;
 
371
 
 
372
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
373
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
374
    ac_prev=cache_file ;;
 
375
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
376
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
377
    cache_file=$ac_optarg ;;
 
378
 
 
379
  --config-cache | -C)
 
380
    cache_file=config.cache ;;
 
381
 
 
382
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
383
    ac_prev=datadir ;;
 
384
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
385
  | --da=*)
 
386
    datadir=$ac_optarg ;;
 
387
 
 
388
  -disable-* | --disable-*)
 
389
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
390
    # Reject names that are not valid shell variable names.
 
391
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
392
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
393
   { (exit 1); exit 1; }; }
 
394
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
395
    eval "enable_$ac_feature=no" ;;
 
396
 
 
397
  -enable-* | --enable-*)
 
398
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
399
    # Reject names that are not valid shell variable names.
 
400
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
401
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
402
   { (exit 1); exit 1; }; }
 
403
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
404
    case $ac_option in
 
405
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
406
      *) ac_optarg=yes ;;
 
407
    esac
 
408
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
409
 
 
410
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
411
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
412
  | --exec | --exe | --ex)
 
413
    ac_prev=exec_prefix ;;
 
414
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
415
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
416
  | --exec=* | --exe=* | --ex=*)
 
417
    exec_prefix=$ac_optarg ;;
 
418
 
 
419
  -gas | --gas | --ga | --g)
 
420
    # Obsolete; use --with-gas.
 
421
    with_gas=yes ;;
 
422
 
 
423
  -help | --help | --hel | --he | -h)
 
424
    ac_init_help=long ;;
 
425
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
426
    ac_init_help=recursive ;;
 
427
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
428
    ac_init_help=short ;;
 
429
 
 
430
  -host | --host | --hos | --ho)
 
431
    ac_prev=host_alias ;;
 
432
  -host=* | --host=* | --hos=* | --ho=*)
 
433
    host_alias=$ac_optarg ;;
 
434
 
 
435
  -includedir | --includedir | --includedi | --included | --include \
 
436
  | --includ | --inclu | --incl | --inc)
 
437
    ac_prev=includedir ;;
 
438
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
439
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
440
    includedir=$ac_optarg ;;
 
441
 
 
442
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
443
    ac_prev=infodir ;;
 
444
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
445
    infodir=$ac_optarg ;;
 
446
 
 
447
  -libdir | --libdir | --libdi | --libd)
 
448
    ac_prev=libdir ;;
 
449
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
450
    libdir=$ac_optarg ;;
 
451
 
 
452
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
453
  | --libexe | --libex | --libe)
 
454
    ac_prev=libexecdir ;;
 
455
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
456
  | --libexe=* | --libex=* | --libe=*)
 
457
    libexecdir=$ac_optarg ;;
 
458
 
 
459
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
460
  | --localstate | --localstat | --localsta | --localst \
 
461
  | --locals | --local | --loca | --loc | --lo)
 
462
    ac_prev=localstatedir ;;
 
463
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
464
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
465
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
466
    localstatedir=$ac_optarg ;;
 
467
 
 
468
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
469
    ac_prev=mandir ;;
 
470
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
471
    mandir=$ac_optarg ;;
 
472
 
 
473
  -nfp | --nfp | --nf)
 
474
    # Obsolete; use --without-fp.
 
475
    with_fp=no ;;
 
476
 
 
477
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
478
  | --no-cr | --no-c)
 
479
    no_create=yes ;;
 
480
 
 
481
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
482
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
483
    no_recursion=yes ;;
 
484
 
 
485
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
486
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
487
  | --oldin | --oldi | --old | --ol | --o)
 
488
    ac_prev=oldincludedir ;;
 
489
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
490
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
491
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
492
    oldincludedir=$ac_optarg ;;
 
493
 
 
494
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
495
    ac_prev=prefix ;;
 
496
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
497
    prefix=$ac_optarg ;;
 
498
 
 
499
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
500
  | --program-pre | --program-pr | --program-p)
 
501
    ac_prev=program_prefix ;;
 
502
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
503
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
504
    program_prefix=$ac_optarg ;;
 
505
 
 
506
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
507
  | --program-suf | --program-su | --program-s)
 
508
    ac_prev=program_suffix ;;
 
509
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
510
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
511
    program_suffix=$ac_optarg ;;
 
512
 
 
513
  -program-transform-name | --program-transform-name \
 
514
  | --program-transform-nam | --program-transform-na \
 
515
  | --program-transform-n | --program-transform- \
 
516
  | --program-transform | --program-transfor \
 
517
  | --program-transfo | --program-transf \
 
518
  | --program-trans | --program-tran \
 
519
  | --progr-tra | --program-tr | --program-t)
 
520
    ac_prev=program_transform_name ;;
 
521
  -program-transform-name=* | --program-transform-name=* \
 
522
  | --program-transform-nam=* | --program-transform-na=* \
 
523
  | --program-transform-n=* | --program-transform-=* \
 
524
  | --program-transform=* | --program-transfor=* \
 
525
  | --program-transfo=* | --program-transf=* \
 
526
  | --program-trans=* | --program-tran=* \
 
527
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
528
    program_transform_name=$ac_optarg ;;
 
529
 
 
530
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
531
  | -silent | --silent | --silen | --sile | --sil)
 
532
    silent=yes ;;
 
533
 
 
534
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
535
    ac_prev=sbindir ;;
 
536
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
537
  | --sbi=* | --sb=*)
 
538
    sbindir=$ac_optarg ;;
 
539
 
 
540
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
541
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
542
  | --sharedst | --shareds | --shared | --share | --shar \
 
543
  | --sha | --sh)
 
544
    ac_prev=sharedstatedir ;;
 
545
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
546
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
547
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
548
  | --sha=* | --sh=*)
 
549
    sharedstatedir=$ac_optarg ;;
 
550
 
 
551
  -site | --site | --sit)
 
552
    ac_prev=site ;;
 
553
  -site=* | --site=* | --sit=*)
 
554
    site=$ac_optarg ;;
 
555
 
 
556
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
557
    ac_prev=srcdir ;;
 
558
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
559
    srcdir=$ac_optarg ;;
 
560
 
 
561
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
562
  | --syscon | --sysco | --sysc | --sys | --sy)
 
563
    ac_prev=sysconfdir ;;
 
564
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
565
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
566
    sysconfdir=$ac_optarg ;;
 
567
 
 
568
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
569
    ac_prev=target_alias ;;
 
570
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
571
    target_alias=$ac_optarg ;;
 
572
 
 
573
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
574
    verbose=yes ;;
 
575
 
 
576
  -version | --version | --versio | --versi | --vers | -V)
 
577
    ac_init_version=: ;;
 
578
 
 
579
  -with-* | --with-*)
 
580
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
581
    # Reject names that are not valid shell variable names.
 
582
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
583
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
584
   { (exit 1); exit 1; }; }
 
585
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
586
    case $ac_option in
 
587
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
588
      *) ac_optarg=yes ;;
 
589
    esac
 
590
    eval "with_$ac_package='$ac_optarg'" ;;
 
591
 
 
592
  -without-* | --without-*)
 
593
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
594
    # Reject names that are not valid shell variable names.
 
595
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
596
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
597
   { (exit 1); exit 1; }; }
 
598
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
599
    eval "with_$ac_package=no" ;;
 
600
 
 
601
  --x)
 
602
    # Obsolete; use --with-x.
 
603
    with_x=yes ;;
 
604
 
 
605
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
606
  | --x-incl | --x-inc | --x-in | --x-i)
 
607
    ac_prev=x_includes ;;
 
608
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
609
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
610
    x_includes=$ac_optarg ;;
 
611
 
 
612
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
613
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
614
    ac_prev=x_libraries ;;
 
615
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
616
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
617
    x_libraries=$ac_optarg ;;
 
618
 
 
619
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
620
Try \`$0 --help' for more information." >&2
 
621
   { (exit 1); exit 1; }; }
 
622
    ;;
 
623
 
 
624
  *=*)
 
625
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
626
    # Reject names that are not valid shell variable names.
 
627
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
628
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
629
   { (exit 1); exit 1; }; }
 
630
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
631
    eval "$ac_envvar='$ac_optarg'"
 
632
    export $ac_envvar ;;
 
633
 
 
634
  *)
 
635
    # FIXME: should be removed in autoconf 3.0.
 
636
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
637
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
638
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
639
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
640
    ;;
 
641
 
 
642
  esac
 
643
done
 
644
 
 
645
if test -n "$ac_prev"; then
 
646
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
647
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
648
   { (exit 1); exit 1; }; }
 
649
fi
 
650
 
 
651
# Be sure to have absolute paths.
 
652
for ac_var in exec_prefix prefix
 
653
do
 
654
  eval ac_val=$`echo $ac_var`
 
655
  case $ac_val in
 
656
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
657
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
 
658
   { (exit 1); exit 1; }; };;
 
659
  esac
 
660
done
 
661
 
 
662
# Be sure to have absolute paths.
 
663
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
664
              localstatedir libdir includedir oldincludedir infodir mandir
 
665
do
 
666
  eval ac_val=$`echo $ac_var`
 
667
  case $ac_val in
 
668
    [\\/$]* | ?:[\\/]* ) ;;
 
669
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
 
670
   { (exit 1); exit 1; }; };;
 
671
  esac
 
672
done
 
673
 
 
674
# There might be people who depend on the old broken behavior: `$host'
 
675
# used to hold the argument of --host etc.
 
676
build=$build_alias
 
677
host=$host_alias
 
678
target=$target_alias
 
679
 
 
680
# FIXME: should be removed in autoconf 3.0.
 
681
if test "x$host_alias" != x; then
 
682
  if test "x$build_alias" = x; then
 
683
    cross_compiling=maybe
 
684
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
685
    If a cross compiler is detected then cross compile mode will be used." >&2
 
686
  elif test "x$build_alias" != "x$host_alias"; then
 
687
    cross_compiling=yes
 
688
  fi
 
689
fi
 
690
 
 
691
ac_tool_prefix=
 
692
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
693
 
 
694
test "$silent" = yes && exec 6>/dev/null
 
695
 
 
696
# Find the source files, if location was not specified.
 
697
if test -z "$srcdir"; then
 
698
  ac_srcdir_defaulted=yes
 
699
  # Try the directory containing this script, then its parent.
 
700
  ac_prog=$0
 
701
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
 
702
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
703
  srcdir=$ac_confdir
 
704
  if test ! -r $srcdir/$ac_unique_file; then
 
705
    srcdir=..
 
706
  fi
 
707
else
 
708
  ac_srcdir_defaulted=no
 
709
fi
 
710
if test ! -r $srcdir/$ac_unique_file; then
 
711
  if test "$ac_srcdir_defaulted" = yes; then
 
712
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
 
713
   { (exit 1); exit 1; }; }
 
714
  else
 
715
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
 
716
   { (exit 1); exit 1; }; }
 
717
  fi
 
718
fi
 
719
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
720
ac_env_build_alias_set=${build_alias+set}
 
721
ac_env_build_alias_value=$build_alias
 
722
ac_cv_env_build_alias_set=${build_alias+set}
 
723
ac_cv_env_build_alias_value=$build_alias
 
724
ac_env_host_alias_set=${host_alias+set}
 
725
ac_env_host_alias_value=$host_alias
 
726
ac_cv_env_host_alias_set=${host_alias+set}
 
727
ac_cv_env_host_alias_value=$host_alias
 
728
ac_env_target_alias_set=${target_alias+set}
 
729
ac_env_target_alias_value=$target_alias
 
730
ac_cv_env_target_alias_set=${target_alias+set}
 
731
ac_cv_env_target_alias_value=$target_alias
 
732
ac_env_CC_set=${CC+set}
 
733
ac_env_CC_value=$CC
 
734
ac_cv_env_CC_set=${CC+set}
 
735
ac_cv_env_CC_value=$CC
 
736
ac_env_CFLAGS_set=${CFLAGS+set}
 
737
ac_env_CFLAGS_value=$CFLAGS
 
738
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
739
ac_cv_env_CFLAGS_value=$CFLAGS
 
740
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
741
ac_env_LDFLAGS_value=$LDFLAGS
 
742
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
743
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
744
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
745
ac_env_CPPFLAGS_value=$CPPFLAGS
 
746
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
747
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
748
ac_env_CPP_set=${CPP+set}
 
749
ac_env_CPP_value=$CPP
 
750
ac_cv_env_CPP_set=${CPP+set}
 
751
ac_cv_env_CPP_value=$CPP
 
752
 
 
753
#
 
754
# Report the --help message.
 
755
#
 
756
if test "$ac_init_help" = "long"; then
 
757
  # Omit some internal or obsolete options to make the list less imposing.
 
758
  # This message is too long to be a string in the A/UX 3.1 sh.
 
759
  cat <<EOF
 
760
\`configure' configures this package to adapt to many kinds of systems.
 
761
 
 
762
Usage: $0 [OPTION]... [VAR=VALUE]...
 
763
 
 
764
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
765
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
766
 
 
767
Defaults for the options are specified in brackets.
 
768
 
 
769
Configuration:
 
770
  -h, --help              display this help and exit
 
771
      --help=short        display options specific to this package
 
772
      --help=recursive    display the short help of all the included packages
 
773
  -V, --version           display version information and exit
 
774
  -q, --quiet, --silent   do not print \`checking...' messages
 
775
      --cache-file=FILE   cache test results in FILE [disabled]
 
776
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
777
  -n, --no-create         do not create output files
 
778
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
779
 
 
780
EOF
 
781
 
 
782
  cat <<EOF
 
783
Installation directories:
 
784
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
785
                          [$ac_default_prefix]
 
786
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
787
                          [PREFIX]
 
788
 
 
789
By default, \`make install' will install all the files in
 
790
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
791
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
792
for instance \`--prefix=\$HOME'.
 
793
 
 
794
For better control, use the options below.
 
795
 
 
796
Fine tuning of the installation directories:
 
797
  --bindir=DIR           user executables [EPREFIX/bin]
 
798
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
799
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
800
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
801
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
802
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
803
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
804
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
805
  --includedir=DIR       C header files [PREFIX/include]
 
806
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
807
  --infodir=DIR          info documentation [PREFIX/info]
 
808
  --mandir=DIR           man documentation [PREFIX/man]
 
809
EOF
 
810
 
 
811
  cat <<\EOF
 
812
 
 
813
Program names:
 
814
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
815
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
816
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
817
 
 
818
System types:
 
819
  --build=BUILD     configure for building on BUILD [guessed]
 
820
  --host=HOST       build programs to run on HOST [BUILD]
 
821
EOF
 
822
fi
 
823
 
 
824
if test -n "$ac_init_help"; then
 
825
 
 
826
  cat <<\EOF
 
827
 
 
828
Optional Features:
 
829
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
830
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
831
  --disable-dependency-tracking Speeds up one-time builds
 
832
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
833
  --disable-largefile     omit support for large files
 
834
  --enable-shared=PKGS  build shared libraries default=yes
 
835
  --enable-static=PKGS  build static libraries default=yes
 
836
  --enable-fast-install=PKGS  optimize for fast installation default=yes
 
837
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
838
  --enable-debug                Enable pedantic debug options
 
839
  --disable-debug               Disable debug options
 
840
  --enable-ipv6         Enable ipv6 (with ipv4) support
 
841
  --disable-ipv6                Disable ipv6 support
 
842
  --enable-nonblocking  Makes the script detect how to do it
 
843
  --disable-nonblocking Makes the script disable non-blocking sockets
 
844
  --disable-thread       tell configure to not look for thread-safe functions
 
845
 
 
846
Optional Packages:
 
847
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
848
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
849
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
850
  --with-pic              try to use only PIC/non-PIC objects default=use both
 
851
  --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
 
852
  --with-random=FILE      read randomness from FILE (default=/dev/urandom)
 
853
  --with-krb4-includes=DIR   Specify location of kerberos4 headers
 
854
  --with-krb4-libs=DIR   Specify location of kerberos4 libs
 
855
  --with-krb4=DIR       where to look for Kerberos4
 
856
  --with-ssl=DIR        where to look for SSL compiler/linker default paths
 
857
                          DIR points to the SSL installation /usr/local/ssl
 
858
 
 
859
Some influential environment variables:
 
860
  CC          C compiler command
 
861
  CFLAGS      C compiler flags
 
862
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
863
              nonstandard directory <lib dir>
 
864
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
865
              headers in a nonstandard directory <include dir>
 
866
  CPP         C preprocessor
 
867
 
 
868
Use these variables to override the choices made by `configure' or to help
 
869
it to find libraries and programs with nonstandard names/locations.
 
870
 
 
871
EOF
 
872
fi
 
873
 
 
874
if test "$ac_init_help" = "recursive"; then
 
875
  # If there are subdirs, report their specific --help.
 
876
  ac_popdir=`pwd`
 
877
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
 
878
    cd $ac_subdir
 
879
    # A "../" for each directory in /$ac_subdir.
 
880
    ac_dots=`echo $ac_subdir |
 
881
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
 
882
 
 
883
    case $srcdir in
 
884
    .) # No --srcdir option.  We are building in place.
 
885
      ac_sub_srcdir=$srcdir ;;
 
886
    [\\/]* | ?:[\\/]* ) # Absolute path.
 
887
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
 
888
    *) # Relative path.
 
889
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
 
890
    esac
 
891
 
 
892
    # Check for guested configure; otherwise get Cygnus style configure.
 
893
    if test -f $ac_sub_srcdir/configure.gnu; then
 
894
      echo
 
895
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
 
896
    elif test -f $ac_sub_srcdir/configure; then
 
897
      echo
 
898
      $SHELL $ac_sub_srcdir/configure  --help=recursive
 
899
    elif test -f $ac_sub_srcdir/configure.ac ||
 
900
           test -f $ac_sub_srcdir/configure.in; then
 
901
      echo
 
902
      $ac_configure --help
 
903
    else
 
904
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
 
905
    fi
 
906
    cd $ac_popdir
 
907
  done
 
908
fi
 
909
 
 
910
test -n "$ac_init_help" && exit 0
 
911
if $ac_init_version; then
 
912
  cat <<\EOF
 
913
 
 
914
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
915
Free Software Foundation, Inc.
 
916
This configure script is free software; the Free Software Foundation
 
917
gives unlimited permission to copy, distribute and modify it.
 
918
EOF
 
919
  exit 0
 
920
fi
 
921
exec 5>config.log
 
922
cat >&5 <<EOF
 
923
This file contains any messages produced by compilers while
 
924
running configure, to aid debugging if configure makes a mistake.
 
925
 
 
926
It was created by $as_me, which was
 
927
generated by GNU Autoconf 2.52.  Invocation command line was
 
928
 
 
929
  $ $0 $@
 
930
 
 
931
EOF
 
932
{
 
933
cat <<_ASUNAME
 
934
## ---------- ##
 
935
## Platform.  ##
 
936
## ---------- ##
 
937
 
 
938
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
939
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
940
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
941
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
942
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
943
 
 
944
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
945
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
946
 
 
947
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
948
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
949
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
950
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
951
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
952
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
953
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
954
 
 
955
PATH = $PATH
 
956
 
 
957
_ASUNAME
 
958
} >&5
 
959
 
 
960
cat >&5 <<EOF
 
961
## ------------ ##
 
962
## Core tests.  ##
 
963
## ------------ ##
 
964
 
 
965
EOF
 
966
 
 
967
# Keep a trace of the command line.
 
968
# Strip out --no-create and --no-recursion so they do not pile up.
 
969
# Also quote any args containing shell meta-characters.
 
970
ac_configure_args=
 
971
ac_sep=
 
972
for ac_arg
 
973
do
 
974
  case $ac_arg in
 
975
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
976
  | --no-cr | --no-c) ;;
 
977
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
978
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
 
979
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
980
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
 
981
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
982
    ac_sep=" " ;;
 
983
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
 
984
     ac_sep=" " ;;
 
985
  esac
 
986
  # Get rid of the leading space.
 
987
done
 
988
 
 
989
# When interrupted or exit'd, cleanup temporary files, and complete
 
990
# config.log.  We remove comments because anyway the quotes in there
 
991
# would cause problems or look ugly.
 
992
trap 'exit_status=$?
 
993
  # Save into config.log some information that might help in debugging.
 
994
  echo >&5
 
995
  echo "## ----------------- ##" >&5
 
996
  echo "## Cache variables.  ##" >&5
 
997
  echo "## ----------------- ##" >&5
 
998
  echo >&5
 
999
  # The following way of writing the cache mishandles newlines in values,
 
1000
{
 
1001
  (set) 2>&1 |
 
1002
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1003
    *ac_space=\ *)
 
1004
      sed -n \
 
1005
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1006
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1007
      ;;
 
1008
    *)
 
1009
      sed -n \
 
1010
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1011
      ;;
 
1012
    esac;
 
1013
} >&5
 
1014
  sed "/^$/d" confdefs.h >conftest.log
 
1015
  if test -s conftest.log; then
 
1016
    echo >&5
 
1017
    echo "## ------------ ##" >&5
 
1018
    echo "## confdefs.h.  ##" >&5
 
1019
    echo "## ------------ ##" >&5
 
1020
    echo >&5
 
1021
    cat conftest.log >&5
 
1022
  fi
 
1023
  (echo; echo) >&5
 
1024
  test "$ac_signal" != 0 &&
 
1025
    echo "$as_me: caught signal $ac_signal" >&5
 
1026
  echo "$as_me: exit $exit_status" >&5
 
1027
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
 
1028
    exit $exit_status
 
1029
     ' 0
 
1030
for ac_signal in 1 2 13 15; do
 
1031
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1032
done
 
1033
ac_signal=0
 
1034
 
 
1035
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1036
rm -rf conftest* confdefs.h
 
1037
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1038
echo >confdefs.h
 
1039
 
 
1040
# Let the site file select an alternate cache file if it wants to.
 
1041
# Prefer explicitly selected file to automatically selected ones.
 
1042
if test -z "$CONFIG_SITE"; then
 
1043
  if test "x$prefix" != xNONE; then
 
1044
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1045
  else
 
1046
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1047
  fi
 
1048
fi
 
1049
for ac_site_file in $CONFIG_SITE; do
 
1050
  if test -r "$ac_site_file"; then
 
1051
    { echo "$as_me:1051: loading site script $ac_site_file" >&5
 
1052
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1053
    cat "$ac_site_file" >&5
 
1054
    . "$ac_site_file"
 
1055
  fi
 
1056
done
 
1057
 
 
1058
if test -r "$cache_file"; then
 
1059
  # Some versions of bash will fail to source /dev/null (special
 
1060
  # files actually), so we avoid doing that.
 
1061
  if test -f "$cache_file"; then
 
1062
    { echo "$as_me:1062: loading cache $cache_file" >&5
 
1063
echo "$as_me: loading cache $cache_file" >&6;}
 
1064
    case $cache_file in
 
1065
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1066
      *)                      . ./$cache_file;;
 
1067
    esac
 
1068
  fi
 
1069
else
 
1070
  { echo "$as_me:1070: creating cache $cache_file" >&5
 
1071
echo "$as_me: creating cache $cache_file" >&6;}
 
1072
  >$cache_file
 
1073
fi
 
1074
 
 
1075
# Check that the precious variables saved in the cache have kept the same
 
1076
# value.
 
1077
ac_cache_corrupted=false
 
1078
for ac_var in `(set) 2>&1 |
 
1079
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1080
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1081
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1082
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1083
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1084
  case $ac_old_set,$ac_new_set in
 
1085
    set,)
 
1086
      { echo "$as_me:1086: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1087
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1088
      ac_cache_corrupted=: ;;
 
1089
    ,set)
 
1090
      { echo "$as_me:1090: error: \`$ac_var' was not set in the previous run" >&5
 
1091
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1092
      ac_cache_corrupted=: ;;
 
1093
    ,);;
 
1094
    *)
 
1095
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1096
        { echo "$as_me:1096: error: \`$ac_var' has changed since the previous run:" >&5
 
1097
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1098
        { echo "$as_me:1098:   former value:  $ac_old_val" >&5
 
1099
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1100
        { echo "$as_me:1100:   current value: $ac_new_val" >&5
 
1101
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1102
        ac_cache_corrupted=:
 
1103
      fi;;
 
1104
  esac
 
1105
  # Pass precious variables to config.status.  It doesn't matter if
 
1106
  # we pass some twice (in addition to the command line arguments).
 
1107
  if test "$ac_new_set" = set; then
 
1108
    case $ac_new_val in
 
1109
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1110
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
 
1111
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1112
      ;;
 
1113
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
 
1114
       ;;
 
1115
    esac
 
1116
  fi
 
1117
done
 
1118
if $ac_cache_corrupted; then
 
1119
  { echo "$as_me:1119: error: changes in the environment can compromise the build" >&5
 
1120
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1121
  { { echo "$as_me:1121: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1122
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1123
   { (exit 1); exit 1; }; }
 
1124
fi
 
1125
 
 
1126
ac_ext=c
 
1127
ac_cpp='$CPP $CPPFLAGS'
 
1128
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1129
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1130
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1131
 
 
1132
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
1133
  *c*,-n*) ECHO_N= ECHO_C='
 
1134
' ECHO_T='      ' ;;
 
1135
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
1136
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
1137
esac
 
1138
echo "#! $SHELL" >conftest.sh
 
1139
echo  "exit 0"   >>conftest.sh
 
1140
chmod +x conftest.sh
 
1141
if { (echo "$as_me:1141: PATH=\".;.\"; conftest.sh") >&5
 
1142
  (PATH=".;."; conftest.sh) 2>&5
 
1143
  ac_status=$?
 
1144
  echo "$as_me:1144: \$? = $ac_status" >&5
 
1145
  (exit $ac_status); }; then
 
1146
  ac_path_separator=';'
 
1147
else
 
1148
  ac_path_separator=:
 
1149
fi
 
1150
PATH_SEPARATOR="$ac_path_separator"
 
1151
rm -f conftest.sh
 
1152
 
 
1153
                                                    ac_config_headers="$ac_config_headers lib/config.h"
 
1154
 
 
1155
                                                    ac_config_headers="$ac_config_headers src/config.h"
 
1156
 
 
1157
                                                    ac_config_headers="$ac_config_headers tests/server/config.h"
 
1158
 
 
1159
VERSION=`sed -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curl.h`
 
1160
ac_aux_dir=
 
1161
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1162
  if test -f $ac_dir/install-sh; then
 
1163
    ac_aux_dir=$ac_dir
 
1164
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1165
    break
 
1166
  elif test -f $ac_dir/install.sh; then
 
1167
    ac_aux_dir=$ac_dir
 
1168
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1169
    break
 
1170
  elif test -f $ac_dir/shtool; then
 
1171
    ac_aux_dir=$ac_dir
 
1172
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1173
    break
 
1174
  fi
 
1175
done
 
1176
if test -z "$ac_aux_dir"; then
 
1177
  { { echo "$as_me:1177: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1178
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1179
   { (exit 1); exit 1; }; }
 
1180
fi
 
1181
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1182
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1183
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1184
 
 
1185
# Find a good install program.  We prefer a C program (faster),
 
1186
# so one script is as good as another.  But avoid the broken or
 
1187
# incompatible versions:
 
1188
# SysV /etc/install, /usr/sbin/install
 
1189
# SunOS /usr/etc/install
 
1190
# IRIX /sbin/install
 
1191
# AIX /bin/install
 
1192
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1193
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1194
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1195
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1196
# ./install, which can be erroneously created by make from ./install.sh.
 
1197
echo "$as_me:1197: checking for a BSD compatible install" >&5
 
1198
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
 
1199
if test -z "$INSTALL"; then
 
1200
if test "${ac_cv_path_install+set}" = set; then
 
1201
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1202
else
 
1203
    ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1204
  for ac_dir in $PATH; do
 
1205
    IFS=$ac_save_IFS
 
1206
    # Account for people who put trailing slashes in PATH elements.
 
1207
    case $ac_dir/ in
 
1208
    / | ./ | .// | /cC/* \
 
1209
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
 
1210
    | /usr/ucb/* ) ;;
 
1211
    *)
 
1212
      # OSF1 and SCO ODT 3.0 have their own names for install.
 
1213
      # Don't use installbsd from OSF since it installs stuff as root
 
1214
      # by default.
 
1215
      for ac_prog in ginstall scoinst install; do
 
1216
        if $as_executable_p "$ac_dir/$ac_prog"; then
 
1217
          if test $ac_prog = install &&
 
1218
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 
1219
            # AIX install.  It has an incompatible calling convention.
 
1220
            :
 
1221
          elif test $ac_prog = install &&
 
1222
            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 
1223
            # program-specific install script used by HP pwplus--don't use.
 
1224
            :
 
1225
          else
 
1226
            ac_cv_path_install="$ac_dir/$ac_prog -c"
 
1227
            break 2
 
1228
          fi
 
1229
        fi
 
1230
      done
 
1231
      ;;
 
1232
    esac
 
1233
  done
 
1234
 
 
1235
fi
 
1236
  if test "${ac_cv_path_install+set}" = set; then
 
1237
    INSTALL=$ac_cv_path_install
 
1238
  else
 
1239
    # As a last resort, use the slow shell script.  We don't cache a
 
1240
    # path for INSTALL within a source directory, because that will
 
1241
    # break other packages using the cache if that directory is
 
1242
    # removed, or if the path is relative.
 
1243
    INSTALL=$ac_install_sh
 
1244
  fi
 
1245
fi
 
1246
echo "$as_me:1246: result: $INSTALL" >&5
 
1247
echo "${ECHO_T}$INSTALL" >&6
 
1248
 
 
1249
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1250
# It thinks the first close brace ends the variable substitution.
 
1251
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1252
 
 
1253
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1254
 
 
1255
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1256
 
 
1257
echo "$as_me:1257: checking whether build environment is sane" >&5
 
1258
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1259
# Just in case
 
1260
sleep 1
 
1261
echo timestamp > conftest.file
 
1262
# Do `set' in a subshell so we don't clobber the current shell's
 
1263
# arguments.  Must try -L first in case configure is actually a
 
1264
# symlink; some systems play weird games with the mod time of symlinks
 
1265
# (eg FreeBSD returns the mod time of the symlink's containing
 
1266
# directory).
 
1267
if (
 
1268
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1269
   if test "$*" = "X"; then
 
1270
      # -L didn't work.
 
1271
      set X `ls -t $srcdir/configure conftest.file`
 
1272
   fi
 
1273
   rm -f conftest.file
 
1274
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1275
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1276
 
 
1277
      # If neither matched, then we have a broken ls.  This can happen
 
1278
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1279
      # broken ls alias from the environment.  This has actually
 
1280
      # happened.  Such a system could not be considered "sane".
 
1281
      { { echo "$as_me:1281: error: ls -t appears to fail.  Make sure there is not a broken
 
1282
alias in your environment" >&5
 
1283
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1284
alias in your environment" >&2;}
 
1285
   { (exit 1); exit 1; }; }
 
1286
   fi
 
1287
 
 
1288
   test "$2" = conftest.file
 
1289
   )
 
1290
then
 
1291
   # Ok.
 
1292
   :
 
1293
else
 
1294
   { { echo "$as_me:1294: error: newly created file is older than distributed files!
 
1295
Check your system clock" >&5
 
1296
echo "$as_me: error: newly created file is older than distributed files!
 
1297
Check your system clock" >&2;}
 
1298
   { (exit 1); exit 1; }; }
 
1299
fi
 
1300
echo "$as_me:1300: result: yes" >&5
 
1301
echo "${ECHO_T}yes" >&6
 
1302
test "$program_prefix" != NONE &&
 
1303
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1304
# Use a double $ so make ignores it.
 
1305
test "$program_suffix" != NONE &&
 
1306
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1307
# Double any \ or $.  echo might interpret backslashes.
 
1308
# By default was `s,x,x', remove it if useless.
 
1309
cat <<\_ACEOF >conftest.sed
 
1310
s/[\\$]/&&/g;s/;s,x,x,$//
 
1311
_ACEOF
 
1312
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1313
rm conftest.sed
 
1314
 
 
1315
# expand $ac_aux_dir to an absolute path
 
1316
am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
 
1317
 
 
1318
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1319
# Use eval to expand $SHELL
 
1320
if eval "$MISSING --run true"; then
 
1321
  am_missing_run="$MISSING --run "
 
1322
else
 
1323
  am_missing_run=
 
1324
  am_backtick='`'
 
1325
  { echo "$as_me:1325: WARNING: ${am_backtick}missing' script is too old or missing" >&5
 
1326
echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
 
1327
fi
 
1328
 
 
1329
for ac_prog in mawk gawk nawk awk
 
1330
do
 
1331
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1332
set dummy $ac_prog; ac_word=$2
 
1333
echo "$as_me:1333: checking for $ac_word" >&5
 
1334
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1335
if test "${ac_cv_prog_AWK+set}" = set; then
 
1336
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1337
else
 
1338
  if test -n "$AWK"; then
 
1339
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1340
else
 
1341
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1342
ac_dummy="$PATH"
 
1343
for ac_dir in $ac_dummy; do
 
1344
  IFS=$ac_save_IFS
 
1345
  test -z "$ac_dir" && ac_dir=.
 
1346
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1347
ac_cv_prog_AWK="$ac_prog"
 
1348
echo "$as_me:1348: found $ac_dir/$ac_word" >&5
 
1349
break
 
1350
done
 
1351
 
 
1352
fi
 
1353
fi
 
1354
AWK=$ac_cv_prog_AWK
 
1355
if test -n "$AWK"; then
 
1356
  echo "$as_me:1356: result: $AWK" >&5
 
1357
echo "${ECHO_T}$AWK" >&6
 
1358
else
 
1359
  echo "$as_me:1359: result: no" >&5
 
1360
echo "${ECHO_T}no" >&6
 
1361
fi
 
1362
 
 
1363
  test -n "$AWK" && break
 
1364
done
 
1365
 
 
1366
echo "$as_me:1366: checking whether ${MAKE-make} sets \${MAKE}" >&5
 
1367
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
 
1368
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
1369
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1370
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1371
else
 
1372
  cat >conftest.make <<\EOF
 
1373
all:
 
1374
        @echo 'ac_maketemp="${MAKE}"'
 
1375
EOF
 
1376
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1377
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1378
if test -n "$ac_maketemp"; then
 
1379
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1380
else
 
1381
  eval ac_cv_prog_make_${ac_make}_set=no
 
1382
fi
 
1383
rm -f conftest.make
 
1384
fi
 
1385
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1386
  echo "$as_me:1386: result: yes" >&5
 
1387
echo "${ECHO_T}yes" >&6
 
1388
  SET_MAKE=
 
1389
else
 
1390
  echo "$as_me:1390: result: no" >&5
 
1391
echo "${ECHO_T}no" >&6
 
1392
  SET_MAKE="MAKE=${MAKE-make}"
 
1393
fi
 
1394
 
 
1395
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
1396
if test "${enable_dependency_tracking+set}" = set; then
 
1397
  enableval="$enable_dependency_tracking"
 
1398
 
 
1399
fi;
 
1400
if test "x$enable_dependency_tracking" != xno; then
 
1401
  am_depcomp="$ac_aux_dir/depcomp"
 
1402
  AMDEPBACKSLASH='\'
 
1403
fi
 
1404
 
 
1405
if test "x$enable_dependency_tracking" != xno; then
 
1406
  AMDEP_TRUE=
 
1407
  AMDEP_FALSE='#'
 
1408
else
 
1409
  AMDEP_TRUE='#'
 
1410
  AMDEP_FALSE=
 
1411
fi
 
1412
 
 
1413
rm -f .deps 2>/dev/null
 
1414
mkdir .deps 2>/dev/null
 
1415
if test -d .deps; then
 
1416
  DEPDIR=.deps
 
1417
else
 
1418
  # MS-DOS does not allow filenames that begin with a dot.
 
1419
  DEPDIR=_deps
 
1420
fi
 
1421
rmdir .deps 2>/dev/null
 
1422
 
 
1423
# test to see if srcdir already configured
 
1424
if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
 
1425
   test -f $srcdir/config.status; then
 
1426
  { { echo "$as_me:1426: error: source directory already configured; run \"make distclean\" there first" >&5
 
1427
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1428
   { (exit 1); exit 1; }; }
 
1429
fi
 
1430
 
 
1431
# Define the identity of the package.
 
1432
PACKAGE=curl
 
1433
VERSION=$VERSION
 
1434
 
 
1435
cat >>confdefs.h <<EOF
 
1436
#define PACKAGE "$PACKAGE"
 
1437
EOF
 
1438
 
 
1439
cat >>confdefs.h <<EOF
 
1440
#define VERSION "$VERSION"
 
1441
EOF
 
1442
 
 
1443
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
 
1444
# the ones we care about.
 
1445
 
 
1446
# Autoconf 2.50 always computes EXEEXT.  However we need to be
 
1447
# compatible with 2.13, for now.  So we always define EXEEXT, but we
 
1448
# don't compute it.
 
1449
 
 
1450
# Similar for OBJEXT -- only we only use OBJEXT if the user actually
 
1451
# requests that it be used.  This is a bit dumb.
 
1452
: ${OBJEXT=o}
 
1453
 
 
1454
# Some tools Automake needs.
 
1455
 
 
1456
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
 
1457
 
 
1458
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1459
 
 
1460
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
 
1461
 
 
1462
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1463
 
 
1464
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1465
 
 
1466
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1467
 
 
1468
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1469
 
 
1470
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1471
 
 
1472
# We need awk for the "check" target.  The system "awk" is bad on
 
1473
# some platforms.
 
1474
 
 
1475
VERSIONNUM=`sed -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curl.h`
 
1476
 
 
1477
PKGADD_PKG="HAXXcurl"
 
1478
PKGADD_NAME="cURL - a client that groks URLs"
 
1479
PKGADD_VENDOR="curl.haxx.se"
 
1480
 
 
1481
# Make sure we can run config.sub.
 
1482
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1483
  { { echo "$as_me:1483: error: cannot run $ac_config_sub" >&5
 
1484
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1485
   { (exit 1); exit 1; }; }
 
1486
 
 
1487
echo "$as_me:1487: checking build system type" >&5
 
1488
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1489
if test "${ac_cv_build+set}" = set; then
 
1490
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1491
else
 
1492
  ac_cv_build_alias=$build_alias
 
1493
test -z "$ac_cv_build_alias" &&
 
1494
  ac_cv_build_alias=`$ac_config_guess`
 
1495
test -z "$ac_cv_build_alias" &&
 
1496
  { { echo "$as_me:1496: error: cannot guess build type; you must specify one" >&5
 
1497
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1498
   { (exit 1); exit 1; }; }
 
1499
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1500
  { { echo "$as_me:1500: error: $ac_config_sub $ac_cv_build_alias failed." >&5
 
1501
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
 
1502
   { (exit 1); exit 1; }; }
 
1503
 
 
1504
fi
 
1505
echo "$as_me:1505: result: $ac_cv_build" >&5
 
1506
echo "${ECHO_T}$ac_cv_build" >&6
 
1507
build=$ac_cv_build
 
1508
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1509
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1510
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1511
 
 
1512
echo "$as_me:1512: checking host system type" >&5
 
1513
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1514
if test "${ac_cv_host+set}" = set; then
 
1515
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1516
else
 
1517
  ac_cv_host_alias=$host_alias
 
1518
test -z "$ac_cv_host_alias" &&
 
1519
  ac_cv_host_alias=$ac_cv_build_alias
 
1520
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1521
  { { echo "$as_me:1521: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1522
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1523
   { (exit 1); exit 1; }; }
 
1524
 
 
1525
fi
 
1526
echo "$as_me:1526: result: $ac_cv_host" >&5
 
1527
echo "${ECHO_T}$ac_cv_host" >&6
 
1528
host=$ac_cv_host
 
1529
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1530
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1531
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1532
 
 
1533
cat >>confdefs.h <<EOF
 
1534
#define OS "${host}"
 
1535
EOF
 
1536
 
 
1537
ac_config_commands="$ac_config_commands default-1"
 
1538
 
 
1539
am_make=${MAKE-make}
 
1540
cat > confinc << 'END'
 
1541
doit:
 
1542
        @echo done
 
1543
END
 
1544
# If we don't find an include directive, just comment out the code.
 
1545
echo "$as_me:1545: checking for style of include used by $am_make" >&5
 
1546
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
1547
am__include='#'
 
1548
am__quote=
 
1549
_am_result=none
 
1550
# First try GNU make style include.
 
1551
echo "include confinc" > confmf
 
1552
# We grep out `Entering directory' and `Leaving directory'
 
1553
# messages which can occur if `w' ends up in MAKEFLAGS.
 
1554
# In particular we don't look at `^make:' because GNU make might
 
1555
# be invoked under some other name (usually "gmake"), in which
 
1556
# case it prints its new name instead of `make'.
 
1557
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
 
1558
   am__include=include
 
1559
   am__quote=
 
1560
   _am_result=GNU
 
1561
fi
 
1562
# Now try BSD make style include.
 
1563
if test "$am__include" = "#"; then
 
1564
   echo '.include "confinc"' > confmf
 
1565
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
1566
      am__include=.include
 
1567
      am__quote='"'
 
1568
      _am_result=BSD
 
1569
   fi
 
1570
fi
 
1571
 
 
1572
echo "$as_me:1572: result: $_am_result" >&5
 
1573
echo "${ECHO_T}$_am_result" >&6
 
1574
rm -f confinc confmf
 
1575
 
 
1576
ac_ext=c
 
1577
ac_cpp='$CPP $CPPFLAGS'
 
1578
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1579
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1580
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1581
if test -n "$ac_tool_prefix"; then
 
1582
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1583
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1584
echo "$as_me:1584: checking for $ac_word" >&5
 
1585
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1586
if test "${ac_cv_prog_CC+set}" = set; then
 
1587
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1588
else
 
1589
  if test -n "$CC"; then
 
1590
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1591
else
 
1592
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1593
ac_dummy="$PATH"
 
1594
for ac_dir in $ac_dummy; do
 
1595
  IFS=$ac_save_IFS
 
1596
  test -z "$ac_dir" && ac_dir=.
 
1597
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1598
ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1599
echo "$as_me:1599: found $ac_dir/$ac_word" >&5
 
1600
break
 
1601
done
 
1602
 
 
1603
fi
 
1604
fi
 
1605
CC=$ac_cv_prog_CC
 
1606
if test -n "$CC"; then
 
1607
  echo "$as_me:1607: result: $CC" >&5
 
1608
echo "${ECHO_T}$CC" >&6
 
1609
else
 
1610
  echo "$as_me:1610: result: no" >&5
 
1611
echo "${ECHO_T}no" >&6
 
1612
fi
 
1613
 
 
1614
fi
 
1615
if test -z "$ac_cv_prog_CC"; then
 
1616
  ac_ct_CC=$CC
 
1617
  # Extract the first word of "gcc", so it can be a program name with args.
 
1618
set dummy gcc; ac_word=$2
 
1619
echo "$as_me:1619: checking for $ac_word" >&5
 
1620
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1621
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1622
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1623
else
 
1624
  if test -n "$ac_ct_CC"; then
 
1625
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1626
else
 
1627
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1628
ac_dummy="$PATH"
 
1629
for ac_dir in $ac_dummy; do
 
1630
  IFS=$ac_save_IFS
 
1631
  test -z "$ac_dir" && ac_dir=.
 
1632
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1633
ac_cv_prog_ac_ct_CC="gcc"
 
1634
echo "$as_me:1634: found $ac_dir/$ac_word" >&5
 
1635
break
 
1636
done
 
1637
 
 
1638
fi
 
1639
fi
 
1640
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1641
if test -n "$ac_ct_CC"; then
 
1642
  echo "$as_me:1642: result: $ac_ct_CC" >&5
 
1643
echo "${ECHO_T}$ac_ct_CC" >&6
 
1644
else
 
1645
  echo "$as_me:1645: result: no" >&5
 
1646
echo "${ECHO_T}no" >&6
 
1647
fi
 
1648
 
 
1649
  CC=$ac_ct_CC
 
1650
else
 
1651
  CC="$ac_cv_prog_CC"
 
1652
fi
 
1653
 
 
1654
if test -z "$CC"; then
 
1655
  if test -n "$ac_tool_prefix"; then
 
1656
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1657
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1658
echo "$as_me:1658: checking for $ac_word" >&5
 
1659
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1660
if test "${ac_cv_prog_CC+set}" = set; then
 
1661
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1662
else
 
1663
  if test -n "$CC"; then
 
1664
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1665
else
 
1666
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1667
ac_dummy="$PATH"
 
1668
for ac_dir in $ac_dummy; do
 
1669
  IFS=$ac_save_IFS
 
1670
  test -z "$ac_dir" && ac_dir=.
 
1671
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1672
ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1673
echo "$as_me:1673: found $ac_dir/$ac_word" >&5
 
1674
break
 
1675
done
 
1676
 
 
1677
fi
 
1678
fi
 
1679
CC=$ac_cv_prog_CC
 
1680
if test -n "$CC"; then
 
1681
  echo "$as_me:1681: result: $CC" >&5
 
1682
echo "${ECHO_T}$CC" >&6
 
1683
else
 
1684
  echo "$as_me:1684: result: no" >&5
 
1685
echo "${ECHO_T}no" >&6
 
1686
fi
 
1687
 
 
1688
fi
 
1689
if test -z "$ac_cv_prog_CC"; then
 
1690
  ac_ct_CC=$CC
 
1691
  # Extract the first word of "cc", so it can be a program name with args.
 
1692
set dummy cc; ac_word=$2
 
1693
echo "$as_me:1693: checking for $ac_word" >&5
 
1694
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1695
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1696
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1697
else
 
1698
  if test -n "$ac_ct_CC"; then
 
1699
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1700
else
 
1701
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1702
ac_dummy="$PATH"
 
1703
for ac_dir in $ac_dummy; do
 
1704
  IFS=$ac_save_IFS
 
1705
  test -z "$ac_dir" && ac_dir=.
 
1706
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1707
ac_cv_prog_ac_ct_CC="cc"
 
1708
echo "$as_me:1708: found $ac_dir/$ac_word" >&5
 
1709
break
 
1710
done
 
1711
 
 
1712
fi
 
1713
fi
 
1714
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1715
if test -n "$ac_ct_CC"; then
 
1716
  echo "$as_me:1716: result: $ac_ct_CC" >&5
 
1717
echo "${ECHO_T}$ac_ct_CC" >&6
 
1718
else
 
1719
  echo "$as_me:1719: result: no" >&5
 
1720
echo "${ECHO_T}no" >&6
 
1721
fi
 
1722
 
 
1723
  CC=$ac_ct_CC
 
1724
else
 
1725
  CC="$ac_cv_prog_CC"
 
1726
fi
 
1727
 
 
1728
fi
 
1729
if test -z "$CC"; then
 
1730
  # Extract the first word of "cc", so it can be a program name with args.
 
1731
set dummy cc; ac_word=$2
 
1732
echo "$as_me:1732: checking for $ac_word" >&5
 
1733
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1734
if test "${ac_cv_prog_CC+set}" = set; then
 
1735
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1736
else
 
1737
  if test -n "$CC"; then
 
1738
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1739
else
 
1740
  ac_prog_rejected=no
 
1741
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1742
ac_dummy="$PATH"
 
1743
for ac_dir in $ac_dummy; do
 
1744
  IFS=$ac_save_IFS
 
1745
  test -z "$ac_dir" && ac_dir=.
 
1746
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1747
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
1748
  ac_prog_rejected=yes
 
1749
  continue
 
1750
fi
 
1751
ac_cv_prog_CC="cc"
 
1752
echo "$as_me:1752: found $ac_dir/$ac_word" >&5
 
1753
break
 
1754
done
 
1755
 
 
1756
if test $ac_prog_rejected = yes; then
 
1757
  # We found a bogon in the path, so make sure we never use it.
 
1758
  set dummy $ac_cv_prog_CC
 
1759
  shift
 
1760
  if test $# != 0; then
 
1761
    # We chose a different compiler from the bogus one.
 
1762
    # However, it has the same basename, so the bogon will be chosen
 
1763
    # first if we set CC to just the basename; use the full file name.
 
1764
    shift
 
1765
    set dummy "$ac_dir/$ac_word" ${1+"$@"}
 
1766
    shift
 
1767
    ac_cv_prog_CC="$@"
 
1768
  fi
 
1769
fi
 
1770
fi
 
1771
fi
 
1772
CC=$ac_cv_prog_CC
 
1773
if test -n "$CC"; then
 
1774
  echo "$as_me:1774: result: $CC" >&5
 
1775
echo "${ECHO_T}$CC" >&6
 
1776
else
 
1777
  echo "$as_me:1777: result: no" >&5
 
1778
echo "${ECHO_T}no" >&6
 
1779
fi
 
1780
 
 
1781
fi
 
1782
if test -z "$CC"; then
 
1783
  if test -n "$ac_tool_prefix"; then
 
1784
  for ac_prog in cl
 
1785
  do
 
1786
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1787
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1788
echo "$as_me:1788: checking for $ac_word" >&5
 
1789
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1790
if test "${ac_cv_prog_CC+set}" = set; then
 
1791
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1792
else
 
1793
  if test -n "$CC"; then
 
1794
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1795
else
 
1796
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1797
ac_dummy="$PATH"
 
1798
for ac_dir in $ac_dummy; do
 
1799
  IFS=$ac_save_IFS
 
1800
  test -z "$ac_dir" && ac_dir=.
 
1801
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1802
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
1803
echo "$as_me:1803: found $ac_dir/$ac_word" >&5
 
1804
break
 
1805
done
 
1806
 
 
1807
fi
 
1808
fi
 
1809
CC=$ac_cv_prog_CC
 
1810
if test -n "$CC"; then
 
1811
  echo "$as_me:1811: result: $CC" >&5
 
1812
echo "${ECHO_T}$CC" >&6
 
1813
else
 
1814
  echo "$as_me:1814: result: no" >&5
 
1815
echo "${ECHO_T}no" >&6
 
1816
fi
 
1817
 
 
1818
    test -n "$CC" && break
 
1819
  done
 
1820
fi
 
1821
if test -z "$CC"; then
 
1822
  ac_ct_CC=$CC
 
1823
  for ac_prog in cl
 
1824
do
 
1825
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1826
set dummy $ac_prog; ac_word=$2
 
1827
echo "$as_me:1827: checking for $ac_word" >&5
 
1828
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1829
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1830
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1831
else
 
1832
  if test -n "$ac_ct_CC"; then
 
1833
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1834
else
 
1835
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1836
ac_dummy="$PATH"
 
1837
for ac_dir in $ac_dummy; do
 
1838
  IFS=$ac_save_IFS
 
1839
  test -z "$ac_dir" && ac_dir=.
 
1840
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1841
ac_cv_prog_ac_ct_CC="$ac_prog"
 
1842
echo "$as_me:1842: found $ac_dir/$ac_word" >&5
 
1843
break
 
1844
done
 
1845
 
 
1846
fi
 
1847
fi
 
1848
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1849
if test -n "$ac_ct_CC"; then
 
1850
  echo "$as_me:1850: result: $ac_ct_CC" >&5
 
1851
echo "${ECHO_T}$ac_ct_CC" >&6
 
1852
else
 
1853
  echo "$as_me:1853: result: no" >&5
 
1854
echo "${ECHO_T}no" >&6
 
1855
fi
 
1856
 
 
1857
  test -n "$ac_ct_CC" && break
 
1858
done
 
1859
 
 
1860
  CC=$ac_ct_CC
 
1861
fi
 
1862
 
 
1863
fi
 
1864
 
 
1865
test -z "$CC" && { { echo "$as_me:1865: error: no acceptable cc found in \$PATH" >&5
 
1866
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
 
1867
   { (exit 1); exit 1; }; }
 
1868
 
 
1869
# Provide some information about the compiler.
 
1870
echo "$as_me:1870:" \
 
1871
     "checking for C compiler version" >&5
 
1872
ac_compiler=`set X $ac_compile; echo $2`
 
1873
{ (eval echo "$as_me:1873: \"$ac_compiler --version </dev/null >&5\"") >&5
 
1874
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
1875
  ac_status=$?
 
1876
  echo "$as_me:1876: \$? = $ac_status" >&5
 
1877
  (exit $ac_status); }
 
1878
{ (eval echo "$as_me:1878: \"$ac_compiler -v </dev/null >&5\"") >&5
 
1879
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
1880
  ac_status=$?
 
1881
  echo "$as_me:1881: \$? = $ac_status" >&5
 
1882
  (exit $ac_status); }
 
1883
{ (eval echo "$as_me:1883: \"$ac_compiler -V </dev/null >&5\"") >&5
 
1884
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
1885
  ac_status=$?
 
1886
  echo "$as_me:1886: \$? = $ac_status" >&5
 
1887
  (exit $ac_status); }
 
1888
 
 
1889
cat >conftest.$ac_ext <<_ACEOF
 
1890
#line 1890 "configure"
 
1891
#include "confdefs.h"
 
1892
 
 
1893
int
 
1894
main ()
 
1895
{
 
1896
 
 
1897
  ;
 
1898
  return 0;
 
1899
}
 
1900
_ACEOF
 
1901
ac_clean_files_save=$ac_clean_files
 
1902
ac_clean_files="$ac_clean_files a.out a.exe"
 
1903
# Try to create an executable without -o first, disregard a.out.
 
1904
# It will help us diagnose broken compilers, and finding out an intuition
 
1905
# of exeext.
 
1906
echo "$as_me:1906: checking for C compiler default output" >&5
 
1907
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
1908
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
1909
if { (eval echo "$as_me:1909: \"$ac_link_default\"") >&5
 
1910
  (eval $ac_link_default) 2>&5
 
1911
  ac_status=$?
 
1912
  echo "$as_me:1912: \$? = $ac_status" >&5
 
1913
  (exit $ac_status); }; then
 
1914
  # Find the output, starting from the most likely.  This scheme is
 
1915
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
1916
# resort.
 
1917
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
 
1918
                ls a.out conftest 2>/dev/null;
 
1919
                ls a.* conftest.* 2>/dev/null`; do
 
1920
  case $ac_file in
 
1921
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
1922
    a.out ) # We found the default executable, but exeext='' is most
 
1923
            # certainly right.
 
1924
            break;;
 
1925
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1926
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
 
1927
          export ac_cv_exeext
 
1928
          break;;
 
1929
    * ) break;;
 
1930
  esac
 
1931
done
 
1932
else
 
1933
  echo "$as_me: failed program was:" >&5
 
1934
cat conftest.$ac_ext >&5
 
1935
{ { echo "$as_me:1935: error: C compiler cannot create executables" >&5
 
1936
echo "$as_me: error: C compiler cannot create executables" >&2;}
 
1937
   { (exit 77); exit 77; }; }
 
1938
fi
 
1939
 
 
1940
ac_exeext=$ac_cv_exeext
 
1941
echo "$as_me:1941: result: $ac_file" >&5
 
1942
echo "${ECHO_T}$ac_file" >&6
 
1943
 
 
1944
# Check the compiler produces executables we can run.  If not, either
 
1945
# the compiler is broken, or we cross compile.
 
1946
echo "$as_me:1946: checking whether the C compiler works" >&5
 
1947
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
1948
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
1949
# If not cross compiling, check that we can run a simple program.
 
1950
if test "$cross_compiling" != yes; then
 
1951
  if { ac_try='./$ac_file'
 
1952
  { (eval echo "$as_me:1952: \"$ac_try\"") >&5
 
1953
  (eval $ac_try) 2>&5
 
1954
  ac_status=$?
 
1955
  echo "$as_me:1955: \$? = $ac_status" >&5
 
1956
  (exit $ac_status); }; }; then
 
1957
    cross_compiling=no
 
1958
  else
 
1959
    if test "$cross_compiling" = maybe; then
 
1960
        cross_compiling=yes
 
1961
    else
 
1962
        { { echo "$as_me:1962: error: cannot run C compiled programs.
 
1963
If you meant to cross compile, use \`--host'." >&5
 
1964
echo "$as_me: error: cannot run C compiled programs.
 
1965
If you meant to cross compile, use \`--host'." >&2;}
 
1966
   { (exit 1); exit 1; }; }
 
1967
    fi
 
1968
  fi
 
1969
fi
 
1970
echo "$as_me:1970: result: yes" >&5
 
1971
echo "${ECHO_T}yes" >&6
 
1972
 
 
1973
rm -f a.out a.exe conftest$ac_cv_exeext
 
1974
ac_clean_files=$ac_clean_files_save
 
1975
# Check the compiler produces executables we can run.  If not, either
 
1976
# the compiler is broken, or we cross compile.
 
1977
echo "$as_me:1977: checking whether we are cross compiling" >&5
 
1978
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
1979
echo "$as_me:1979: result: $cross_compiling" >&5
 
1980
echo "${ECHO_T}$cross_compiling" >&6
 
1981
 
 
1982
echo "$as_me:1982: checking for executable suffix" >&5
 
1983
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
 
1984
if { (eval echo "$as_me:1984: \"$ac_link\"") >&5
 
1985
  (eval $ac_link) 2>&5
 
1986
  ac_status=$?
 
1987
  echo "$as_me:1987: \$? = $ac_status" >&5
 
1988
  (exit $ac_status); }; then
 
1989
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
1990
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
1991
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
1992
# `rm'.
 
1993
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
 
1994
  case $ac_file in
 
1995
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
1996
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1997
          export ac_cv_exeext
 
1998
          break;;
 
1999
    * ) break;;
 
2000
  esac
 
2001
done
 
2002
else
 
2003
  { { echo "$as_me:2003: error: cannot compute EXEEXT: cannot compile and link" >&5
 
2004
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
 
2005
   { (exit 1); exit 1; }; }
 
2006
fi
 
2007
 
 
2008
rm -f conftest$ac_cv_exeext
 
2009
echo "$as_me:2009: result: $ac_cv_exeext" >&5
 
2010
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2011
 
 
2012
rm -f conftest.$ac_ext
 
2013
EXEEXT=$ac_cv_exeext
 
2014
ac_exeext=$EXEEXT
 
2015
echo "$as_me:2015: checking for object suffix" >&5
 
2016
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
 
2017
if test "${ac_cv_objext+set}" = set; then
 
2018
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2019
else
 
2020
  cat >conftest.$ac_ext <<_ACEOF
 
2021
#line 2021 "configure"
 
2022
#include "confdefs.h"
 
2023
 
 
2024
int
 
2025
main ()
 
2026
{
 
2027
 
 
2028
  ;
 
2029
  return 0;
 
2030
}
 
2031
_ACEOF
 
2032
rm -f conftest.o conftest.obj
 
2033
if { (eval echo "$as_me:2033: \"$ac_compile\"") >&5
 
2034
  (eval $ac_compile) 2>&5
 
2035
  ac_status=$?
 
2036
  echo "$as_me:2036: \$? = $ac_status" >&5
 
2037
  (exit $ac_status); }; then
 
2038
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2039
  case $ac_file in
 
2040
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
2041
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2042
       break;;
 
2043
  esac
 
2044
done
 
2045
else
 
2046
  echo "$as_me: failed program was:" >&5
 
2047
cat conftest.$ac_ext >&5
 
2048
{ { echo "$as_me:2048: error: cannot compute OBJEXT: cannot compile" >&5
 
2049
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
 
2050
   { (exit 1); exit 1; }; }
 
2051
fi
 
2052
 
 
2053
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2054
fi
 
2055
echo "$as_me:2055: result: $ac_cv_objext" >&5
 
2056
echo "${ECHO_T}$ac_cv_objext" >&6
 
2057
OBJEXT=$ac_cv_objext
 
2058
ac_objext=$OBJEXT
 
2059
echo "$as_me:2059: checking whether we are using the GNU C compiler" >&5
 
2060
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2061
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2062
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2063
else
 
2064
  cat >conftest.$ac_ext <<_ACEOF
 
2065
#line 2065 "configure"
 
2066
#include "confdefs.h"
 
2067
 
 
2068
int
 
2069
main ()
 
2070
{
 
2071
#ifndef __GNUC__
 
2072
       choke me
 
2073
#endif
 
2074
 
 
2075
  ;
 
2076
  return 0;
 
2077
}
 
2078
_ACEOF
 
2079
rm -f conftest.$ac_objext
 
2080
if { (eval echo "$as_me:2080: \"$ac_compile\"") >&5
 
2081
  (eval $ac_compile) 2>&5
 
2082
  ac_status=$?
 
2083
  echo "$as_me:2083: \$? = $ac_status" >&5
 
2084
  (exit $ac_status); } &&
 
2085
         { ac_try='test -s conftest.$ac_objext'
 
2086
  { (eval echo "$as_me:2086: \"$ac_try\"") >&5
 
2087
  (eval $ac_try) 2>&5
 
2088
  ac_status=$?
 
2089
  echo "$as_me:2089: \$? = $ac_status" >&5
 
2090
  (exit $ac_status); }; }; then
 
2091
  ac_compiler_gnu=yes
 
2092
else
 
2093
  echo "$as_me: failed program was:" >&5
 
2094
cat conftest.$ac_ext >&5
 
2095
ac_compiler_gnu=no
 
2096
fi
 
2097
rm -f conftest.$ac_objext conftest.$ac_ext
 
2098
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2099
 
 
2100
fi
 
2101
echo "$as_me:2101: result: $ac_cv_c_compiler_gnu" >&5
 
2102
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2103
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2104
ac_test_CFLAGS=${CFLAGS+set}
 
2105
ac_save_CFLAGS=$CFLAGS
 
2106
CFLAGS="-g"
 
2107
echo "$as_me:2107: checking whether $CC accepts -g" >&5
 
2108
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2109
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2110
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2111
else
 
2112
  cat >conftest.$ac_ext <<_ACEOF
 
2113
#line 2113 "configure"
 
2114
#include "confdefs.h"
 
2115
 
 
2116
int
 
2117
main ()
 
2118
{
 
2119
 
 
2120
  ;
 
2121
  return 0;
 
2122
}
 
2123
_ACEOF
 
2124
rm -f conftest.$ac_objext
 
2125
if { (eval echo "$as_me:2125: \"$ac_compile\"") >&5
 
2126
  (eval $ac_compile) 2>&5
 
2127
  ac_status=$?
 
2128
  echo "$as_me:2128: \$? = $ac_status" >&5
 
2129
  (exit $ac_status); } &&
 
2130
         { ac_try='test -s conftest.$ac_objext'
 
2131
  { (eval echo "$as_me:2131: \"$ac_try\"") >&5
 
2132
  (eval $ac_try) 2>&5
 
2133
  ac_status=$?
 
2134
  echo "$as_me:2134: \$? = $ac_status" >&5
 
2135
  (exit $ac_status); }; }; then
 
2136
  ac_cv_prog_cc_g=yes
 
2137
else
 
2138
  echo "$as_me: failed program was:" >&5
 
2139
cat conftest.$ac_ext >&5
 
2140
ac_cv_prog_cc_g=no
 
2141
fi
 
2142
rm -f conftest.$ac_objext conftest.$ac_ext
 
2143
fi
 
2144
echo "$as_me:2144: result: $ac_cv_prog_cc_g" >&5
 
2145
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2146
if test "$ac_test_CFLAGS" = set; then
 
2147
  CFLAGS=$ac_save_CFLAGS
 
2148
elif test $ac_cv_prog_cc_g = yes; then
 
2149
  if test "$GCC" = yes; then
 
2150
    CFLAGS="-g -O2"
 
2151
  else
 
2152
    CFLAGS="-g"
 
2153
  fi
 
2154
else
 
2155
  if test "$GCC" = yes; then
 
2156
    CFLAGS="-O2"
 
2157
  else
 
2158
    CFLAGS=
 
2159
  fi
 
2160
fi
 
2161
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2162
# in C++ we need to declare it.  In case someone uses the same compiler
 
2163
# for both compiling C and C++ we need to have the C++ compiler decide
 
2164
# the declaration of exit, since it's the most demanding environment.
 
2165
cat >conftest.$ac_ext <<_ACEOF
 
2166
#ifndef __cplusplus
 
2167
  choke me
 
2168
#endif
 
2169
_ACEOF
 
2170
rm -f conftest.$ac_objext
 
2171
if { (eval echo "$as_me:2171: \"$ac_compile\"") >&5
 
2172
  (eval $ac_compile) 2>&5
 
2173
  ac_status=$?
 
2174
  echo "$as_me:2174: \$? = $ac_status" >&5
 
2175
  (exit $ac_status); } &&
 
2176
         { ac_try='test -s conftest.$ac_objext'
 
2177
  { (eval echo "$as_me:2177: \"$ac_try\"") >&5
 
2178
  (eval $ac_try) 2>&5
 
2179
  ac_status=$?
 
2180
  echo "$as_me:2180: \$? = $ac_status" >&5
 
2181
  (exit $ac_status); }; }; then
 
2182
  for ac_declaration in \
 
2183
   ''\
 
2184
   '#include <stdlib.h>' \
 
2185
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2186
   'extern "C" void std::exit (int); using std::exit;' \
 
2187
   'extern "C" void exit (int) throw ();' \
 
2188
   'extern "C" void exit (int);' \
 
2189
   'void exit (int);'
 
2190
do
 
2191
  cat >conftest.$ac_ext <<_ACEOF
 
2192
#line 2192 "configure"
 
2193
#include "confdefs.h"
 
2194
#include <stdlib.h>
 
2195
$ac_declaration
 
2196
int
 
2197
main ()
 
2198
{
 
2199
exit (42);
 
2200
  ;
 
2201
  return 0;
 
2202
}
 
2203
_ACEOF
 
2204
rm -f conftest.$ac_objext
 
2205
if { (eval echo "$as_me:2205: \"$ac_compile\"") >&5
 
2206
  (eval $ac_compile) 2>&5
 
2207
  ac_status=$?
 
2208
  echo "$as_me:2208: \$? = $ac_status" >&5
 
2209
  (exit $ac_status); } &&
 
2210
         { ac_try='test -s conftest.$ac_objext'
 
2211
  { (eval echo "$as_me:2211: \"$ac_try\"") >&5
 
2212
  (eval $ac_try) 2>&5
 
2213
  ac_status=$?
 
2214
  echo "$as_me:2214: \$? = $ac_status" >&5
 
2215
  (exit $ac_status); }; }; then
 
2216
  :
 
2217
else
 
2218
  echo "$as_me: failed program was:" >&5
 
2219
cat conftest.$ac_ext >&5
 
2220
continue
 
2221
fi
 
2222
rm -f conftest.$ac_objext conftest.$ac_ext
 
2223
  cat >conftest.$ac_ext <<_ACEOF
 
2224
#line 2224 "configure"
 
2225
#include "confdefs.h"
 
2226
$ac_declaration
 
2227
int
 
2228
main ()
 
2229
{
 
2230
exit (42);
 
2231
  ;
 
2232
  return 0;
 
2233
}
 
2234
_ACEOF
 
2235
rm -f conftest.$ac_objext
 
2236
if { (eval echo "$as_me:2236: \"$ac_compile\"") >&5
 
2237
  (eval $ac_compile) 2>&5
 
2238
  ac_status=$?
 
2239
  echo "$as_me:2239: \$? = $ac_status" >&5
 
2240
  (exit $ac_status); } &&
 
2241
         { ac_try='test -s conftest.$ac_objext'
 
2242
  { (eval echo "$as_me:2242: \"$ac_try\"") >&5
 
2243
  (eval $ac_try) 2>&5
 
2244
  ac_status=$?
 
2245
  echo "$as_me:2245: \$? = $ac_status" >&5
 
2246
  (exit $ac_status); }; }; then
 
2247
  break
 
2248
else
 
2249
  echo "$as_me: failed program was:" >&5
 
2250
cat conftest.$ac_ext >&5
 
2251
fi
 
2252
rm -f conftest.$ac_objext conftest.$ac_ext
 
2253
done
 
2254
rm -f conftest*
 
2255
if test -n "$ac_declaration"; then
 
2256
  echo '#ifdef __cplusplus' >>confdefs.h
 
2257
  echo $ac_declaration      >>confdefs.h
 
2258
  echo '#endif'             >>confdefs.h
 
2259
fi
 
2260
 
 
2261
else
 
2262
  echo "$as_me: failed program was:" >&5
 
2263
cat conftest.$ac_ext >&5
 
2264
fi
 
2265
rm -f conftest.$ac_objext conftest.$ac_ext
 
2266
ac_ext=c
 
2267
ac_cpp='$CPP $CPPFLAGS'
 
2268
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2269
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2270
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2271
 
 
2272
depcc="$CC"   am_compiler_list=
 
2273
 
 
2274
echo "$as_me:2274: checking dependency style of $depcc" >&5
 
2275
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
2276
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
2277
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2278
else
 
2279
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2280
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2281
  # making bogus files that we don't know about and never remove.  For
 
2282
  # instance it was reported that on HP-UX the gcc test will end up
 
2283
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2284
  # in D'.
 
2285
  mkdir conftest.dir
 
2286
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2287
  # using a relative directory.
 
2288
  cp "$am_depcomp" conftest.dir
 
2289
  cd conftest.dir
 
2290
 
 
2291
  am_cv_CC_dependencies_compiler_type=none
 
2292
  if test "$am_compiler_list" = ""; then
 
2293
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
2294
  fi
 
2295
  for depmode in $am_compiler_list; do
 
2296
    # We need to recreate these files for each test, as the compiler may
 
2297
    # overwrite some of them when testing with obscure command lines.
 
2298
    # This happens at least with the AIX C compiler.
 
2299
    echo '#include "conftest.h"' > conftest.c
 
2300
    echo 'int i;' > conftest.h
 
2301
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
2302
 
 
2303
    case $depmode in
 
2304
    nosideeffect)
 
2305
      # after this tag, mechanisms are not by side-effect, so they'll
 
2306
      # only be used when explicitly requested
 
2307
      if test "x$enable_dependency_tracking" = xyes; then
 
2308
        continue
 
2309
      else
 
2310
        break
 
2311
      fi
 
2312
      ;;
 
2313
    none) break ;;
 
2314
    esac
 
2315
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
2316
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
2317
    # handle `-M -o', and we need to detect this.
 
2318
    if depmode=$depmode \
 
2319
       source=conftest.c object=conftest.o \
 
2320
       depfile=conftest.Po tmpdepfile=conftest.TPo \
 
2321
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
 
2322
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
2323
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
2324
      am_cv_CC_dependencies_compiler_type=$depmode
 
2325
      break
 
2326
    fi
 
2327
  done
 
2328
 
 
2329
  cd ..
 
2330
  rm -rf conftest.dir
 
2331
else
 
2332
  am_cv_CC_dependencies_compiler_type=none
 
2333
fi
 
2334
 
 
2335
fi
 
2336
echo "$as_me:2336: result: $am_cv_CC_dependencies_compiler_type" >&5
 
2337
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
2338
CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
 
2339
 
 
2340
ac_ext=c
 
2341
ac_cpp='$CPP $CPPFLAGS'
 
2342
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2343
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2344
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2345
echo "$as_me:2345: checking how to run the C preprocessor" >&5
 
2346
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
2347
# On Suns, sometimes $CPP names a directory.
 
2348
if test -n "$CPP" && test -d "$CPP"; then
 
2349
  CPP=
 
2350
fi
 
2351
if test -z "$CPP"; then
 
2352
  if test "${ac_cv_prog_CPP+set}" = set; then
 
2353
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2354
else
 
2355
      # Double quotes because CPP needs to be expanded
 
2356
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2357
    do
 
2358
      ac_preproc_ok=false
 
2359
for ac_c_preproc_warn_flag in '' yes
 
2360
do
 
2361
  # Use a header file that comes with gcc, so configuring glibc
 
2362
  # with a fresh cross-compiler works.
 
2363
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2364
  # not just through cpp. "Syntax error" is here to catch this case.
 
2365
  cat >conftest.$ac_ext <<_ACEOF
 
2366
#line 2366 "configure"
 
2367
#include "confdefs.h"
 
2368
#include <assert.h>
 
2369
                     Syntax error
 
2370
_ACEOF
 
2371
if { (eval echo "$as_me:2371: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2372
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2373
  ac_status=$?
 
2374
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
2375
  rm -f conftest.er1
 
2376
  cat conftest.err >&5
 
2377
  echo "$as_me:2377: \$? = $ac_status" >&5
 
2378
  (exit $ac_status); } >/dev/null; then
 
2379
  if test -s conftest.err; then
 
2380
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2381
  else
 
2382
    ac_cpp_err=
 
2383
  fi
 
2384
else
 
2385
  ac_cpp_err=yes
 
2386
fi
 
2387
if test -z "$ac_cpp_err"; then
 
2388
  :
 
2389
else
 
2390
  echo "$as_me: failed program was:" >&5
 
2391
  cat conftest.$ac_ext >&5
 
2392
  # Broken: fails on valid input.
 
2393
continue
 
2394
fi
 
2395
rm -f conftest.err conftest.$ac_ext
 
2396
 
 
2397
  # OK, works on sane cases.  Now check whether non-existent headers
 
2398
  # can be detected and how.
 
2399
  cat >conftest.$ac_ext <<_ACEOF
 
2400
#line 2400 "configure"
 
2401
#include "confdefs.h"
 
2402
#include <ac_nonexistent.h>
 
2403
_ACEOF
 
2404
if { (eval echo "$as_me:2404: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2405
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2406
  ac_status=$?
 
2407
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
2408
  rm -f conftest.er1
 
2409
  cat conftest.err >&5
 
2410
  echo "$as_me:2410: \$? = $ac_status" >&5
 
2411
  (exit $ac_status); } >/dev/null; then
 
2412
  if test -s conftest.err; then
 
2413
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2414
  else
 
2415
    ac_cpp_err=
 
2416
  fi
 
2417
else
 
2418
  ac_cpp_err=yes
 
2419
fi
 
2420
if test -z "$ac_cpp_err"; then
 
2421
  # Broken: success on invalid input.
 
2422
continue
 
2423
else
 
2424
  echo "$as_me: failed program was:" >&5
 
2425
  cat conftest.$ac_ext >&5
 
2426
  # Passes both tests.
 
2427
ac_preproc_ok=:
 
2428
break
 
2429
fi
 
2430
rm -f conftest.err conftest.$ac_ext
 
2431
 
 
2432
done
 
2433
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2434
rm -f conftest.err conftest.$ac_ext
 
2435
if $ac_preproc_ok; then
 
2436
  break
 
2437
fi
 
2438
 
 
2439
    done
 
2440
    ac_cv_prog_CPP=$CPP
 
2441
 
 
2442
fi
 
2443
  CPP=$ac_cv_prog_CPP
 
2444
else
 
2445
  ac_cv_prog_CPP=$CPP
 
2446
fi
 
2447
echo "$as_me:2447: result: $CPP" >&5
 
2448
echo "${ECHO_T}$CPP" >&6
 
2449
ac_preproc_ok=false
 
2450
for ac_c_preproc_warn_flag in '' yes
 
2451
do
 
2452
  # Use a header file that comes with gcc, so configuring glibc
 
2453
  # with a fresh cross-compiler works.
 
2454
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2455
  # not just through cpp. "Syntax error" is here to catch this case.
 
2456
  cat >conftest.$ac_ext <<_ACEOF
 
2457
#line 2457 "configure"
 
2458
#include "confdefs.h"
 
2459
#include <assert.h>
 
2460
                     Syntax error
 
2461
_ACEOF
 
2462
if { (eval echo "$as_me:2462: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2463
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2464
  ac_status=$?
 
2465
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
2466
  rm -f conftest.er1
 
2467
  cat conftest.err >&5
 
2468
  echo "$as_me:2468: \$? = $ac_status" >&5
 
2469
  (exit $ac_status); } >/dev/null; then
 
2470
  if test -s conftest.err; then
 
2471
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2472
  else
 
2473
    ac_cpp_err=
 
2474
  fi
 
2475
else
 
2476
  ac_cpp_err=yes
 
2477
fi
 
2478
if test -z "$ac_cpp_err"; then
 
2479
  :
 
2480
else
 
2481
  echo "$as_me: failed program was:" >&5
 
2482
  cat conftest.$ac_ext >&5
 
2483
  # Broken: fails on valid input.
 
2484
continue
 
2485
fi
 
2486
rm -f conftest.err conftest.$ac_ext
 
2487
 
 
2488
  # OK, works on sane cases.  Now check whether non-existent headers
 
2489
  # can be detected and how.
 
2490
  cat >conftest.$ac_ext <<_ACEOF
 
2491
#line 2491 "configure"
 
2492
#include "confdefs.h"
 
2493
#include <ac_nonexistent.h>
 
2494
_ACEOF
 
2495
if { (eval echo "$as_me:2495: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2496
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2497
  ac_status=$?
 
2498
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
2499
  rm -f conftest.er1
 
2500
  cat conftest.err >&5
 
2501
  echo "$as_me:2501: \$? = $ac_status" >&5
 
2502
  (exit $ac_status); } >/dev/null; then
 
2503
  if test -s conftest.err; then
 
2504
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2505
  else
 
2506
    ac_cpp_err=
 
2507
  fi
 
2508
else
 
2509
  ac_cpp_err=yes
 
2510
fi
 
2511
if test -z "$ac_cpp_err"; then
 
2512
  # Broken: success on invalid input.
 
2513
continue
 
2514
else
 
2515
  echo "$as_me: failed program was:" >&5
 
2516
  cat conftest.$ac_ext >&5
 
2517
  # Passes both tests.
 
2518
ac_preproc_ok=:
 
2519
break
 
2520
fi
 
2521
rm -f conftest.err conftest.$ac_ext
 
2522
 
 
2523
done
 
2524
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2525
rm -f conftest.err conftest.$ac_ext
 
2526
if $ac_preproc_ok; then
 
2527
  :
 
2528
else
 
2529
  { { echo "$as_me:2529: error: C preprocessor \"$CPP\" fails sanity check" >&5
 
2530
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
 
2531
   { (exit 1); exit 1; }; }
 
2532
fi
 
2533
 
 
2534
ac_ext=c
 
2535
ac_cpp='$CPP $CPPFLAGS'
 
2536
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2537
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2538
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2539
 
 
2540
echo "$as_me:2540: checking for AIX" >&5
 
2541
echo $ECHO_N "checking for AIX... $ECHO_C" >&6
 
2542
cat >conftest.$ac_ext <<_ACEOF
 
2543
#line 2543 "configure"
 
2544
#include "confdefs.h"
 
2545
#ifdef _AIX
 
2546
  yes
 
2547
#endif
 
2548
 
 
2549
_ACEOF
 
2550
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
2551
  egrep "yes" >/dev/null 2>&1; then
 
2552
  echo "$as_me:2552: result: yes" >&5
 
2553
echo "${ECHO_T}yes" >&6
 
2554
cat >>confdefs.h <<\EOF
 
2555
#define _ALL_SOURCE 1
 
2556
EOF
 
2557
 
 
2558
else
 
2559
  echo "$as_me:2559: result: no" >&5
 
2560
echo "${ECHO_T}no" >&6
 
2561
fi
 
2562
rm -f conftest*
 
2563
 
 
2564
ac_ext=c
 
2565
ac_cpp='$CPP $CPPFLAGS'
 
2566
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2567
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2568
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2569
if test -n "$ac_tool_prefix"; then
 
2570
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2571
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2572
echo "$as_me:2572: checking for $ac_word" >&5
 
2573
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2574
if test "${ac_cv_prog_CC+set}" = set; then
 
2575
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2576
else
 
2577
  if test -n "$CC"; then
 
2578
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2579
else
 
2580
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2581
ac_dummy="$PATH"
 
2582
for ac_dir in $ac_dummy; do
 
2583
  IFS=$ac_save_IFS
 
2584
  test -z "$ac_dir" && ac_dir=.
 
2585
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2586
ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2587
echo "$as_me:2587: found $ac_dir/$ac_word" >&5
 
2588
break
 
2589
done
 
2590
 
 
2591
fi
 
2592
fi
 
2593
CC=$ac_cv_prog_CC
 
2594
if test -n "$CC"; then
 
2595
  echo "$as_me:2595: result: $CC" >&5
 
2596
echo "${ECHO_T}$CC" >&6
 
2597
else
 
2598
  echo "$as_me:2598: result: no" >&5
 
2599
echo "${ECHO_T}no" >&6
 
2600
fi
 
2601
 
 
2602
fi
 
2603
if test -z "$ac_cv_prog_CC"; then
 
2604
  ac_ct_CC=$CC
 
2605
  # Extract the first word of "gcc", so it can be a program name with args.
 
2606
set dummy gcc; ac_word=$2
 
2607
echo "$as_me:2607: checking for $ac_word" >&5
 
2608
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2609
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2610
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2611
else
 
2612
  if test -n "$ac_ct_CC"; then
 
2613
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2614
else
 
2615
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2616
ac_dummy="$PATH"
 
2617
for ac_dir in $ac_dummy; do
 
2618
  IFS=$ac_save_IFS
 
2619
  test -z "$ac_dir" && ac_dir=.
 
2620
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2621
ac_cv_prog_ac_ct_CC="gcc"
 
2622
echo "$as_me:2622: found $ac_dir/$ac_word" >&5
 
2623
break
 
2624
done
 
2625
 
 
2626
fi
 
2627
fi
 
2628
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2629
if test -n "$ac_ct_CC"; then
 
2630
  echo "$as_me:2630: result: $ac_ct_CC" >&5
 
2631
echo "${ECHO_T}$ac_ct_CC" >&6
 
2632
else
 
2633
  echo "$as_me:2633: result: no" >&5
 
2634
echo "${ECHO_T}no" >&6
 
2635
fi
 
2636
 
 
2637
  CC=$ac_ct_CC
 
2638
else
 
2639
  CC="$ac_cv_prog_CC"
 
2640
fi
 
2641
 
 
2642
if test -z "$CC"; then
 
2643
  if test -n "$ac_tool_prefix"; then
 
2644
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2645
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2646
echo "$as_me:2646: checking for $ac_word" >&5
 
2647
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2648
if test "${ac_cv_prog_CC+set}" = set; then
 
2649
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2650
else
 
2651
  if test -n "$CC"; then
 
2652
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2653
else
 
2654
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2655
ac_dummy="$PATH"
 
2656
for ac_dir in $ac_dummy; do
 
2657
  IFS=$ac_save_IFS
 
2658
  test -z "$ac_dir" && ac_dir=.
 
2659
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2660
ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2661
echo "$as_me:2661: found $ac_dir/$ac_word" >&5
 
2662
break
 
2663
done
 
2664
 
 
2665
fi
 
2666
fi
 
2667
CC=$ac_cv_prog_CC
 
2668
if test -n "$CC"; then
 
2669
  echo "$as_me:2669: result: $CC" >&5
 
2670
echo "${ECHO_T}$CC" >&6
 
2671
else
 
2672
  echo "$as_me:2672: result: no" >&5
 
2673
echo "${ECHO_T}no" >&6
 
2674
fi
 
2675
 
 
2676
fi
 
2677
if test -z "$ac_cv_prog_CC"; then
 
2678
  ac_ct_CC=$CC
 
2679
  # Extract the first word of "cc", so it can be a program name with args.
 
2680
set dummy cc; ac_word=$2
 
2681
echo "$as_me:2681: checking for $ac_word" >&5
 
2682
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2683
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2684
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2685
else
 
2686
  if test -n "$ac_ct_CC"; then
 
2687
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2688
else
 
2689
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2690
ac_dummy="$PATH"
 
2691
for ac_dir in $ac_dummy; do
 
2692
  IFS=$ac_save_IFS
 
2693
  test -z "$ac_dir" && ac_dir=.
 
2694
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2695
ac_cv_prog_ac_ct_CC="cc"
 
2696
echo "$as_me:2696: found $ac_dir/$ac_word" >&5
 
2697
break
 
2698
done
 
2699
 
 
2700
fi
 
2701
fi
 
2702
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2703
if test -n "$ac_ct_CC"; then
 
2704
  echo "$as_me:2704: result: $ac_ct_CC" >&5
 
2705
echo "${ECHO_T}$ac_ct_CC" >&6
 
2706
else
 
2707
  echo "$as_me:2707: result: no" >&5
 
2708
echo "${ECHO_T}no" >&6
 
2709
fi
 
2710
 
 
2711
  CC=$ac_ct_CC
 
2712
else
 
2713
  CC="$ac_cv_prog_CC"
 
2714
fi
 
2715
 
 
2716
fi
 
2717
if test -z "$CC"; then
 
2718
  # Extract the first word of "cc", so it can be a program name with args.
 
2719
set dummy cc; ac_word=$2
 
2720
echo "$as_me:2720: checking for $ac_word" >&5
 
2721
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2722
if test "${ac_cv_prog_CC+set}" = set; then
 
2723
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2724
else
 
2725
  if test -n "$CC"; then
 
2726
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2727
else
 
2728
  ac_prog_rejected=no
 
2729
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2730
ac_dummy="$PATH"
 
2731
for ac_dir in $ac_dummy; do
 
2732
  IFS=$ac_save_IFS
 
2733
  test -z "$ac_dir" && ac_dir=.
 
2734
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2735
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
2736
  ac_prog_rejected=yes
 
2737
  continue
 
2738
fi
 
2739
ac_cv_prog_CC="cc"
 
2740
echo "$as_me:2740: found $ac_dir/$ac_word" >&5
 
2741
break
 
2742
done
 
2743
 
 
2744
if test $ac_prog_rejected = yes; then
 
2745
  # We found a bogon in the path, so make sure we never use it.
 
2746
  set dummy $ac_cv_prog_CC
 
2747
  shift
 
2748
  if test $# != 0; then
 
2749
    # We chose a different compiler from the bogus one.
 
2750
    # However, it has the same basename, so the bogon will be chosen
 
2751
    # first if we set CC to just the basename; use the full file name.
 
2752
    shift
 
2753
    set dummy "$ac_dir/$ac_word" ${1+"$@"}
 
2754
    shift
 
2755
    ac_cv_prog_CC="$@"
 
2756
  fi
 
2757
fi
 
2758
fi
 
2759
fi
 
2760
CC=$ac_cv_prog_CC
 
2761
if test -n "$CC"; then
 
2762
  echo "$as_me:2762: result: $CC" >&5
 
2763
echo "${ECHO_T}$CC" >&6
 
2764
else
 
2765
  echo "$as_me:2765: result: no" >&5
 
2766
echo "${ECHO_T}no" >&6
 
2767
fi
 
2768
 
 
2769
fi
 
2770
if test -z "$CC"; then
 
2771
  if test -n "$ac_tool_prefix"; then
 
2772
  for ac_prog in cl
 
2773
  do
 
2774
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2775
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2776
echo "$as_me:2776: checking for $ac_word" >&5
 
2777
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2778
if test "${ac_cv_prog_CC+set}" = set; then
 
2779
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2780
else
 
2781
  if test -n "$CC"; then
 
2782
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2783
else
 
2784
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2785
ac_dummy="$PATH"
 
2786
for ac_dir in $ac_dummy; do
 
2787
  IFS=$ac_save_IFS
 
2788
  test -z "$ac_dir" && ac_dir=.
 
2789
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2790
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2791
echo "$as_me:2791: found $ac_dir/$ac_word" >&5
 
2792
break
 
2793
done
 
2794
 
 
2795
fi
 
2796
fi
 
2797
CC=$ac_cv_prog_CC
 
2798
if test -n "$CC"; then
 
2799
  echo "$as_me:2799: result: $CC" >&5
 
2800
echo "${ECHO_T}$CC" >&6
 
2801
else
 
2802
  echo "$as_me:2802: result: no" >&5
 
2803
echo "${ECHO_T}no" >&6
 
2804
fi
 
2805
 
 
2806
    test -n "$CC" && break
 
2807
  done
 
2808
fi
 
2809
if test -z "$CC"; then
 
2810
  ac_ct_CC=$CC
 
2811
  for ac_prog in cl
 
2812
do
 
2813
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2814
set dummy $ac_prog; ac_word=$2
 
2815
echo "$as_me:2815: checking for $ac_word" >&5
 
2816
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2817
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2818
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2819
else
 
2820
  if test -n "$ac_ct_CC"; then
 
2821
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2822
else
 
2823
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2824
ac_dummy="$PATH"
 
2825
for ac_dir in $ac_dummy; do
 
2826
  IFS=$ac_save_IFS
 
2827
  test -z "$ac_dir" && ac_dir=.
 
2828
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2829
ac_cv_prog_ac_ct_CC="$ac_prog"
 
2830
echo "$as_me:2830: found $ac_dir/$ac_word" >&5
 
2831
break
 
2832
done
 
2833
 
 
2834
fi
 
2835
fi
 
2836
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2837
if test -n "$ac_ct_CC"; then
 
2838
  echo "$as_me:2838: result: $ac_ct_CC" >&5
 
2839
echo "${ECHO_T}$ac_ct_CC" >&6
 
2840
else
 
2841
  echo "$as_me:2841: result: no" >&5
 
2842
echo "${ECHO_T}no" >&6
 
2843
fi
 
2844
 
 
2845
  test -n "$ac_ct_CC" && break
 
2846
done
 
2847
 
 
2848
  CC=$ac_ct_CC
 
2849
fi
 
2850
 
 
2851
fi
 
2852
 
 
2853
test -z "$CC" && { { echo "$as_me:2853: error: no acceptable cc found in \$PATH" >&5
 
2854
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
 
2855
   { (exit 1); exit 1; }; }
 
2856
 
 
2857
# Provide some information about the compiler.
 
2858
echo "$as_me:2858:" \
 
2859
     "checking for C compiler version" >&5
 
2860
ac_compiler=`set X $ac_compile; echo $2`
 
2861
{ (eval echo "$as_me:2861: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2862
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2863
  ac_status=$?
 
2864
  echo "$as_me:2864: \$? = $ac_status" >&5
 
2865
  (exit $ac_status); }
 
2866
{ (eval echo "$as_me:2866: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2867
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2868
  ac_status=$?
 
2869
  echo "$as_me:2869: \$? = $ac_status" >&5
 
2870
  (exit $ac_status); }
 
2871
{ (eval echo "$as_me:2871: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2872
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2873
  ac_status=$?
 
2874
  echo "$as_me:2874: \$? = $ac_status" >&5
 
2875
  (exit $ac_status); }
 
2876
 
 
2877
echo "$as_me:2877: checking whether we are using the GNU C compiler" >&5
 
2878
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2879
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2880
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2881
else
 
2882
  cat >conftest.$ac_ext <<_ACEOF
 
2883
#line 2883 "configure"
 
2884
#include "confdefs.h"
 
2885
 
 
2886
int
 
2887
main ()
 
2888
{
 
2889
#ifndef __GNUC__
 
2890
       choke me
 
2891
#endif
 
2892
 
 
2893
  ;
 
2894
  return 0;
 
2895
}
 
2896
_ACEOF
 
2897
rm -f conftest.$ac_objext
 
2898
if { (eval echo "$as_me:2898: \"$ac_compile\"") >&5
 
2899
  (eval $ac_compile) 2>&5
 
2900
  ac_status=$?
 
2901
  echo "$as_me:2901: \$? = $ac_status" >&5
 
2902
  (exit $ac_status); } &&
 
2903
         { ac_try='test -s conftest.$ac_objext'
 
2904
  { (eval echo "$as_me:2904: \"$ac_try\"") >&5
 
2905
  (eval $ac_try) 2>&5
 
2906
  ac_status=$?
 
2907
  echo "$as_me:2907: \$? = $ac_status" >&5
 
2908
  (exit $ac_status); }; }; then
 
2909
  ac_compiler_gnu=yes
 
2910
else
 
2911
  echo "$as_me: failed program was:" >&5
 
2912
cat conftest.$ac_ext >&5
 
2913
ac_compiler_gnu=no
 
2914
fi
 
2915
rm -f conftest.$ac_objext conftest.$ac_ext
 
2916
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2917
 
 
2918
fi
 
2919
echo "$as_me:2919: result: $ac_cv_c_compiler_gnu" >&5
 
2920
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2921
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2922
ac_test_CFLAGS=${CFLAGS+set}
 
2923
ac_save_CFLAGS=$CFLAGS
 
2924
CFLAGS="-g"
 
2925
echo "$as_me:2925: checking whether $CC accepts -g" >&5
 
2926
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2927
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2928
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2929
else
 
2930
  cat >conftest.$ac_ext <<_ACEOF
 
2931
#line 2931 "configure"
 
2932
#include "confdefs.h"
 
2933
 
 
2934
int
 
2935
main ()
 
2936
{
 
2937
 
 
2938
  ;
 
2939
  return 0;
 
2940
}
 
2941
_ACEOF
 
2942
rm -f conftest.$ac_objext
 
2943
if { (eval echo "$as_me:2943: \"$ac_compile\"") >&5
 
2944
  (eval $ac_compile) 2>&5
 
2945
  ac_status=$?
 
2946
  echo "$as_me:2946: \$? = $ac_status" >&5
 
2947
  (exit $ac_status); } &&
 
2948
         { ac_try='test -s conftest.$ac_objext'
 
2949
  { (eval echo "$as_me:2949: \"$ac_try\"") >&5
 
2950
  (eval $ac_try) 2>&5
 
2951
  ac_status=$?
 
2952
  echo "$as_me:2952: \$? = $ac_status" >&5
 
2953
  (exit $ac_status); }; }; then
 
2954
  ac_cv_prog_cc_g=yes
 
2955
else
 
2956
  echo "$as_me: failed program was:" >&5
 
2957
cat conftest.$ac_ext >&5
 
2958
ac_cv_prog_cc_g=no
 
2959
fi
 
2960
rm -f conftest.$ac_objext conftest.$ac_ext
 
2961
fi
 
2962
echo "$as_me:2962: result: $ac_cv_prog_cc_g" >&5
 
2963
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2964
if test "$ac_test_CFLAGS" = set; then
 
2965
  CFLAGS=$ac_save_CFLAGS
 
2966
elif test $ac_cv_prog_cc_g = yes; then
 
2967
  if test "$GCC" = yes; then
 
2968
    CFLAGS="-g -O2"
 
2969
  else
 
2970
    CFLAGS="-g"
 
2971
  fi
 
2972
else
 
2973
  if test "$GCC" = yes; then
 
2974
    CFLAGS="-O2"
 
2975
  else
 
2976
    CFLAGS=
 
2977
  fi
 
2978
fi
 
2979
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2980
# in C++ we need to declare it.  In case someone uses the same compiler
 
2981
# for both compiling C and C++ we need to have the C++ compiler decide
 
2982
# the declaration of exit, since it's the most demanding environment.
 
2983
cat >conftest.$ac_ext <<_ACEOF
 
2984
#ifndef __cplusplus
 
2985
  choke me
 
2986
#endif
 
2987
_ACEOF
 
2988
rm -f conftest.$ac_objext
 
2989
if { (eval echo "$as_me:2989: \"$ac_compile\"") >&5
 
2990
  (eval $ac_compile) 2>&5
 
2991
  ac_status=$?
 
2992
  echo "$as_me:2992: \$? = $ac_status" >&5
 
2993
  (exit $ac_status); } &&
 
2994
         { ac_try='test -s conftest.$ac_objext'
 
2995
  { (eval echo "$as_me:2995: \"$ac_try\"") >&5
 
2996
  (eval $ac_try) 2>&5
 
2997
  ac_status=$?
 
2998
  echo "$as_me:2998: \$? = $ac_status" >&5
 
2999
  (exit $ac_status); }; }; then
 
3000
  for ac_declaration in \
 
3001
   ''\
 
3002
   '#include <stdlib.h>' \
 
3003
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3004
   'extern "C" void std::exit (int); using std::exit;' \
 
3005
   'extern "C" void exit (int) throw ();' \
 
3006
   'extern "C" void exit (int);' \
 
3007
   'void exit (int);'
 
3008
do
 
3009
  cat >conftest.$ac_ext <<_ACEOF
 
3010
#line 3010 "configure"
 
3011
#include "confdefs.h"
 
3012
#include <stdlib.h>
 
3013
$ac_declaration
 
3014
int
 
3015
main ()
 
3016
{
 
3017
exit (42);
 
3018
  ;
 
3019
  return 0;
 
3020
}
 
3021
_ACEOF
 
3022
rm -f conftest.$ac_objext
 
3023
if { (eval echo "$as_me:3023: \"$ac_compile\"") >&5
 
3024
  (eval $ac_compile) 2>&5
 
3025
  ac_status=$?
 
3026
  echo "$as_me:3026: \$? = $ac_status" >&5
 
3027
  (exit $ac_status); } &&
 
3028
         { ac_try='test -s conftest.$ac_objext'
 
3029
  { (eval echo "$as_me:3029: \"$ac_try\"") >&5
 
3030
  (eval $ac_try) 2>&5
 
3031
  ac_status=$?
 
3032
  echo "$as_me:3032: \$? = $ac_status" >&5
 
3033
  (exit $ac_status); }; }; then
 
3034
  :
 
3035
else
 
3036
  echo "$as_me: failed program was:" >&5
 
3037
cat conftest.$ac_ext >&5
 
3038
continue
 
3039
fi
 
3040
rm -f conftest.$ac_objext conftest.$ac_ext
 
3041
  cat >conftest.$ac_ext <<_ACEOF
 
3042
#line 3042 "configure"
 
3043
#include "confdefs.h"
 
3044
$ac_declaration
 
3045
int
 
3046
main ()
 
3047
{
 
3048
exit (42);
 
3049
  ;
 
3050
  return 0;
 
3051
}
 
3052
_ACEOF
 
3053
rm -f conftest.$ac_objext
 
3054
if { (eval echo "$as_me:3054: \"$ac_compile\"") >&5
 
3055
  (eval $ac_compile) 2>&5
 
3056
  ac_status=$?
 
3057
  echo "$as_me:3057: \$? = $ac_status" >&5
 
3058
  (exit $ac_status); } &&
 
3059
         { ac_try='test -s conftest.$ac_objext'
 
3060
  { (eval echo "$as_me:3060: \"$ac_try\"") >&5
 
3061
  (eval $ac_try) 2>&5
 
3062
  ac_status=$?
 
3063
  echo "$as_me:3063: \$? = $ac_status" >&5
 
3064
  (exit $ac_status); }; }; then
 
3065
  break
 
3066
else
 
3067
  echo "$as_me: failed program was:" >&5
 
3068
cat conftest.$ac_ext >&5
 
3069
fi
 
3070
rm -f conftest.$ac_objext conftest.$ac_ext
 
3071
done
 
3072
rm -f conftest*
 
3073
if test -n "$ac_declaration"; then
 
3074
  echo '#ifdef __cplusplus' >>confdefs.h
 
3075
  echo $ac_declaration      >>confdefs.h
 
3076
  echo '#endif'             >>confdefs.h
 
3077
fi
 
3078
 
 
3079
else
 
3080
  echo "$as_me: failed program was:" >&5
 
3081
cat conftest.$ac_ext >&5
 
3082
fi
 
3083
rm -f conftest.$ac_objext conftest.$ac_ext
 
3084
ac_ext=c
 
3085
ac_cpp='$CPP $CPPFLAGS'
 
3086
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3087
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3088
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3089
 
 
3090
depcc="$CC"   am_compiler_list=
 
3091
 
 
3092
echo "$as_me:3092: checking dependency style of $depcc" >&5
 
3093
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3094
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3095
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3096
else
 
3097
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3098
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3099
  # making bogus files that we don't know about and never remove.  For
 
3100
  # instance it was reported that on HP-UX the gcc test will end up
 
3101
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3102
  # in D'.
 
3103
  mkdir conftest.dir
 
3104
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3105
  # using a relative directory.
 
3106
  cp "$am_depcomp" conftest.dir
 
3107
  cd conftest.dir
 
3108
 
 
3109
  am_cv_CC_dependencies_compiler_type=none
 
3110
  if test "$am_compiler_list" = ""; then
 
3111
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3112
  fi
 
3113
  for depmode in $am_compiler_list; do
 
3114
    # We need to recreate these files for each test, as the compiler may
 
3115
    # overwrite some of them when testing with obscure command lines.
 
3116
    # This happens at least with the AIX C compiler.
 
3117
    echo '#include "conftest.h"' > conftest.c
 
3118
    echo 'int i;' > conftest.h
 
3119
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
3120
 
 
3121
    case $depmode in
 
3122
    nosideeffect)
 
3123
      # after this tag, mechanisms are not by side-effect, so they'll
 
3124
      # only be used when explicitly requested
 
3125
      if test "x$enable_dependency_tracking" = xyes; then
 
3126
        continue
 
3127
      else
 
3128
        break
 
3129
      fi
 
3130
      ;;
 
3131
    none) break ;;
 
3132
    esac
 
3133
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3134
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3135
    # handle `-M -o', and we need to detect this.
 
3136
    if depmode=$depmode \
 
3137
       source=conftest.c object=conftest.o \
 
3138
       depfile=conftest.Po tmpdepfile=conftest.TPo \
 
3139
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
 
3140
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
3141
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3142
      am_cv_CC_dependencies_compiler_type=$depmode
 
3143
      break
 
3144
    fi
 
3145
  done
 
3146
 
 
3147
  cd ..
 
3148
  rm -rf conftest.dir
 
3149
else
 
3150
  am_cv_CC_dependencies_compiler_type=none
 
3151
fi
 
3152
 
 
3153
fi
 
3154
echo "$as_me:3154: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3155
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3156
CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
 
3157
 
 
3158
# Check whether --enable-largefile or --disable-largefile was given.
 
3159
if test "${enable_largefile+set}" = set; then
 
3160
  enableval="$enable_largefile"
 
3161
 
 
3162
fi;
 
3163
if test "$enable_largefile" != no; then
 
3164
 
 
3165
  echo "$as_me:3165: checking for special C compiler options needed for large files" >&5
 
3166
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
 
3167
if test "${ac_cv_sys_largefile_CC+set}" = set; then
 
3168
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3169
else
 
3170
  ac_cv_sys_largefile_CC=no
 
3171
     if test "$GCC" != yes; then
 
3172
       ac_save_CC=$CC
 
3173
       while :; do
 
3174
         # IRIX 6.2 and later do not support large files by default,
 
3175
         # so use the C compiler's -n32 option if that helps.
 
3176
         cat >conftest.$ac_ext <<_ACEOF
 
3177
#line 3177 "configure"
 
3178
#include "confdefs.h"
 
3179
#include <sys/types.h>
 
3180
 /* Check that off_t can represent 2**63 - 1 correctly.
 
3181
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
3182
    since some C++ compilers masquerading as C compilers
 
3183
    incorrectly reject 9223372036854775807.  */
 
3184
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
3185
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
3186
                       && LARGE_OFF_T % 2147483647 == 1)
 
3187
                      ? 1 : -1];
 
3188
int
 
3189
main ()
 
3190
{
 
3191
 
 
3192
  ;
 
3193
  return 0;
 
3194
}
 
3195
_ACEOF
 
3196
         rm -f conftest.$ac_objext
 
3197
if { (eval echo "$as_me:3197: \"$ac_compile\"") >&5
 
3198
  (eval $ac_compile) 2>&5
 
3199
  ac_status=$?
 
3200
  echo "$as_me:3200: \$? = $ac_status" >&5
 
3201
  (exit $ac_status); } &&
 
3202
         { ac_try='test -s conftest.$ac_objext'
 
3203
  { (eval echo "$as_me:3203: \"$ac_try\"") >&5
 
3204
  (eval $ac_try) 2>&5
 
3205
  ac_status=$?
 
3206
  echo "$as_me:3206: \$? = $ac_status" >&5
 
3207
  (exit $ac_status); }; }; then
 
3208
  break
 
3209
else
 
3210
  echo "$as_me: failed program was:" >&5
 
3211
cat conftest.$ac_ext >&5
 
3212
fi
 
3213
rm -f conftest.$ac_objext
 
3214
         CC="$CC -n32"
 
3215
         rm -f conftest.$ac_objext
 
3216
if { (eval echo "$as_me:3216: \"$ac_compile\"") >&5
 
3217
  (eval $ac_compile) 2>&5
 
3218
  ac_status=$?
 
3219
  echo "$as_me:3219: \$? = $ac_status" >&5
 
3220
  (exit $ac_status); } &&
 
3221
         { ac_try='test -s conftest.$ac_objext'
 
3222
  { (eval echo "$as_me:3222: \"$ac_try\"") >&5
 
3223
  (eval $ac_try) 2>&5
 
3224
  ac_status=$?
 
3225
  echo "$as_me:3225: \$? = $ac_status" >&5
 
3226
  (exit $ac_status); }; }; then
 
3227
  ac_cv_sys_largefile_CC=' -n32'; break
 
3228
else
 
3229
  echo "$as_me: failed program was:" >&5
 
3230
cat conftest.$ac_ext >&5
 
3231
fi
 
3232
rm -f conftest.$ac_objext
 
3233
         break
 
3234
       done
 
3235
       CC=$ac_save_CC
 
3236
       rm -f conftest.$ac_ext
 
3237
    fi
 
3238
fi
 
3239
echo "$as_me:3239: result: $ac_cv_sys_largefile_CC" >&5
 
3240
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
 
3241
  if test "$ac_cv_sys_largefile_CC" != no; then
 
3242
    CC=$CC$ac_cv_sys_largefile_CC
 
3243
  fi
 
3244
 
 
3245
  echo "$as_me:3245: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
3246
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
 
3247
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
 
3248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3249
else
 
3250
  while :; do
 
3251
  ac_cv_sys_file_offset_bits=no
 
3252
  cat >conftest.$ac_ext <<_ACEOF
 
3253
#line 3253 "configure"
 
3254
#include "confdefs.h"
 
3255
#include <sys/types.h>
 
3256
 /* Check that off_t can represent 2**63 - 1 correctly.
 
3257
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
3258
    since some C++ compilers masquerading as C compilers
 
3259
    incorrectly reject 9223372036854775807.  */
 
3260
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
3261
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
3262
                       && LARGE_OFF_T % 2147483647 == 1)
 
3263
                      ? 1 : -1];
 
3264
int
 
3265
main ()
 
3266
{
 
3267
 
 
3268
  ;
 
3269
  return 0;
 
3270
}
 
3271
_ACEOF
 
3272
rm -f conftest.$ac_objext
 
3273
if { (eval echo "$as_me:3273: \"$ac_compile\"") >&5
 
3274
  (eval $ac_compile) 2>&5
 
3275
  ac_status=$?
 
3276
  echo "$as_me:3276: \$? = $ac_status" >&5
 
3277
  (exit $ac_status); } &&
 
3278
         { ac_try='test -s conftest.$ac_objext'
 
3279
  { (eval echo "$as_me:3279: \"$ac_try\"") >&5
 
3280
  (eval $ac_try) 2>&5
 
3281
  ac_status=$?
 
3282
  echo "$as_me:3282: \$? = $ac_status" >&5
 
3283
  (exit $ac_status); }; }; then
 
3284
  break
 
3285
else
 
3286
  echo "$as_me: failed program was:" >&5
 
3287
cat conftest.$ac_ext >&5
 
3288
fi
 
3289
rm -f conftest.$ac_objext conftest.$ac_ext
 
3290
  cat >conftest.$ac_ext <<_ACEOF
 
3291
#line 3291 "configure"
 
3292
#include "confdefs.h"
 
3293
#define _FILE_OFFSET_BITS 64
 
3294
#include <sys/types.h>
 
3295
 /* Check that off_t can represent 2**63 - 1 correctly.
 
3296
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
3297
    since some C++ compilers masquerading as C compilers
 
3298
    incorrectly reject 9223372036854775807.  */
 
3299
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
3300
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
3301
                       && LARGE_OFF_T % 2147483647 == 1)
 
3302
                      ? 1 : -1];
 
3303
int
 
3304
main ()
 
3305
{
 
3306
 
 
3307
  ;
 
3308
  return 0;
 
3309
}
 
3310
_ACEOF
 
3311
rm -f conftest.$ac_objext
 
3312
if { (eval echo "$as_me:3312: \"$ac_compile\"") >&5
 
3313
  (eval $ac_compile) 2>&5
 
3314
  ac_status=$?
 
3315
  echo "$as_me:3315: \$? = $ac_status" >&5
 
3316
  (exit $ac_status); } &&
 
3317
         { ac_try='test -s conftest.$ac_objext'
 
3318
  { (eval echo "$as_me:3318: \"$ac_try\"") >&5
 
3319
  (eval $ac_try) 2>&5
 
3320
  ac_status=$?
 
3321
  echo "$as_me:3321: \$? = $ac_status" >&5
 
3322
  (exit $ac_status); }; }; then
 
3323
  ac_cv_sys_file_offset_bits=64; break
 
3324
else
 
3325
  echo "$as_me: failed program was:" >&5
 
3326
cat conftest.$ac_ext >&5
 
3327
fi
 
3328
rm -f conftest.$ac_objext conftest.$ac_ext
 
3329
  break
 
3330
done
 
3331
fi
 
3332
echo "$as_me:3332: result: $ac_cv_sys_file_offset_bits" >&5
 
3333
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
 
3334
if test "$ac_cv_sys_file_offset_bits" != no; then
 
3335
 
 
3336
cat >>confdefs.h <<EOF
 
3337
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
 
3338
EOF
 
3339
 
 
3340
fi
 
3341
rm -f conftest*
 
3342
  echo "$as_me:3342: checking for _LARGE_FILES value needed for large files" >&5
 
3343
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
 
3344
if test "${ac_cv_sys_large_files+set}" = set; then
 
3345
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3346
else
 
3347
  while :; do
 
3348
  ac_cv_sys_large_files=no
 
3349
  cat >conftest.$ac_ext <<_ACEOF
 
3350
#line 3350 "configure"
 
3351
#include "confdefs.h"
 
3352
#include <sys/types.h>
 
3353
 /* Check that off_t can represent 2**63 - 1 correctly.
 
3354
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
3355
    since some C++ compilers masquerading as C compilers
 
3356
    incorrectly reject 9223372036854775807.  */
 
3357
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
3358
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
3359
                       && LARGE_OFF_T % 2147483647 == 1)
 
3360
                      ? 1 : -1];
 
3361
int
 
3362
main ()
 
3363
{
 
3364
 
 
3365
  ;
 
3366
  return 0;
 
3367
}
 
3368
_ACEOF
 
3369
rm -f conftest.$ac_objext
 
3370
if { (eval echo "$as_me:3370: \"$ac_compile\"") >&5
 
3371
  (eval $ac_compile) 2>&5
 
3372
  ac_status=$?
 
3373
  echo "$as_me:3373: \$? = $ac_status" >&5
 
3374
  (exit $ac_status); } &&
 
3375
         { ac_try='test -s conftest.$ac_objext'
 
3376
  { (eval echo "$as_me:3376: \"$ac_try\"") >&5
 
3377
  (eval $ac_try) 2>&5
 
3378
  ac_status=$?
 
3379
  echo "$as_me:3379: \$? = $ac_status" >&5
 
3380
  (exit $ac_status); }; }; then
 
3381
  break
 
3382
else
 
3383
  echo "$as_me: failed program was:" >&5
 
3384
cat conftest.$ac_ext >&5
 
3385
fi
 
3386
rm -f conftest.$ac_objext conftest.$ac_ext
 
3387
  cat >conftest.$ac_ext <<_ACEOF
 
3388
#line 3388 "configure"
 
3389
#include "confdefs.h"
 
3390
#define _LARGE_FILES 1
 
3391
#include <sys/types.h>
 
3392
 /* Check that off_t can represent 2**63 - 1 correctly.
 
3393
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
3394
    since some C++ compilers masquerading as C compilers
 
3395
    incorrectly reject 9223372036854775807.  */
 
3396
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
3397
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
3398
                       && LARGE_OFF_T % 2147483647 == 1)
 
3399
                      ? 1 : -1];
 
3400
int
 
3401
main ()
 
3402
{
 
3403
 
 
3404
  ;
 
3405
  return 0;
 
3406
}
 
3407
_ACEOF
 
3408
rm -f conftest.$ac_objext
 
3409
if { (eval echo "$as_me:3409: \"$ac_compile\"") >&5
 
3410
  (eval $ac_compile) 2>&5
 
3411
  ac_status=$?
 
3412
  echo "$as_me:3412: \$? = $ac_status" >&5
 
3413
  (exit $ac_status); } &&
 
3414
         { ac_try='test -s conftest.$ac_objext'
 
3415
  { (eval echo "$as_me:3415: \"$ac_try\"") >&5
 
3416
  (eval $ac_try) 2>&5
 
3417
  ac_status=$?
 
3418
  echo "$as_me:3418: \$? = $ac_status" >&5
 
3419
  (exit $ac_status); }; }; then
 
3420
  ac_cv_sys_large_files=1; break
 
3421
else
 
3422
  echo "$as_me: failed program was:" >&5
 
3423
cat conftest.$ac_ext >&5
 
3424
fi
 
3425
rm -f conftest.$ac_objext conftest.$ac_ext
 
3426
  break
 
3427
done
 
3428
fi
 
3429
echo "$as_me:3429: result: $ac_cv_sys_large_files" >&5
 
3430
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
 
3431
if test "$ac_cv_sys_large_files" != no; then
 
3432
 
 
3433
cat >>confdefs.h <<EOF
 
3434
#define _LARGE_FILES $ac_cv_sys_large_files
 
3435
EOF
 
3436
 
 
3437
fi
 
3438
rm -f conftest*
 
3439
fi
 
3440
 
 
3441
# Check whether --enable-shared or --disable-shared was given.
 
3442
if test "${enable_shared+set}" = set; then
 
3443
  enableval="$enable_shared"
 
3444
  p=${PACKAGE-default}
 
3445
case $enableval in
 
3446
yes) enable_shared=yes ;;
 
3447
no) enable_shared=no ;;
 
3448
*)
 
3449
  enable_shared=no
 
3450
  # Look at the argument we got.  We use all the common list separators.
 
3451
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
3452
  for pkg in $enableval; do
 
3453
    if test "X$pkg" = "X$p"; then
 
3454
      enable_shared=yes
 
3455
    fi
 
3456
  done
 
3457
  IFS="$ac_save_ifs"
 
3458
  ;;
 
3459
esac
 
3460
else
 
3461
  enable_shared=yes
 
3462
fi;
 
3463
# Check whether --enable-static or --disable-static was given.
 
3464
if test "${enable_static+set}" = set; then
 
3465
  enableval="$enable_static"
 
3466
  p=${PACKAGE-default}
 
3467
case $enableval in
 
3468
yes) enable_static=yes ;;
 
3469
no) enable_static=no ;;
 
3470
*)
 
3471
  enable_static=no
 
3472
  # Look at the argument we got.  We use all the common list separators.
 
3473
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
3474
  for pkg in $enableval; do
 
3475
    if test "X$pkg" = "X$p"; then
 
3476
      enable_static=yes
 
3477
    fi
 
3478
  done
 
3479
  IFS="$ac_save_ifs"
 
3480
  ;;
 
3481
esac
 
3482
else
 
3483
  enable_static=yes
 
3484
fi;
 
3485
# Check whether --enable-fast-install or --disable-fast-install was given.
 
3486
if test "${enable_fast_install+set}" = set; then
 
3487
  enableval="$enable_fast_install"
 
3488
  p=${PACKAGE-default}
 
3489
case $enableval in
 
3490
yes) enable_fast_install=yes ;;
 
3491
no) enable_fast_install=no ;;
 
3492
*)
 
3493
  enable_fast_install=no
 
3494
  # Look at the argument we got.  We use all the common list separators.
 
3495
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
3496
  for pkg in $enableval; do
 
3497
    if test "X$pkg" = "X$p"; then
 
3498
      enable_fast_install=yes
 
3499
    fi
 
3500
  done
 
3501
  IFS="$ac_save_ifs"
 
3502
  ;;
 
3503
esac
 
3504
else
 
3505
  enable_fast_install=yes
 
3506
fi;
 
3507
# Find the correct PATH separator.  Usually this is `:', but
 
3508
# DJGPP uses `;' like DOS.
 
3509
if test "X${PATH_SEPARATOR+set}" != Xset; then
 
3510
  UNAME=${UNAME-`uname 2>/dev/null`}
 
3511
  case X$UNAME in
 
3512
    *-DOS) lt_cv_sys_path_separator=';' ;;
 
3513
    *)     lt_cv_sys_path_separator=':' ;;
 
3514
  esac
 
3515
  PATH_SEPARATOR=$lt_cv_sys_path_separator
 
3516
fi
 
3517
 
 
3518
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
3519
if test "${with_gnu_ld+set}" = set; then
 
3520
  withval="$with_gnu_ld"
 
3521
  test "$withval" = no || with_gnu_ld=yes
 
3522
else
 
3523
  with_gnu_ld=no
 
3524
fi;
 
3525
ac_prog=ld
 
3526
if test "$GCC" = yes; then
 
3527
  # Check if gcc -print-prog-name=ld gives a path.
 
3528
  echo "$as_me:3528: checking for ld used by GCC" >&5
 
3529
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
3530
  case $host in
 
3531
  *-*-mingw*)
 
3532
    # gcc leaves a trailing carriage return which upsets mingw
 
3533
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3534
  *)
 
3535
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3536
  esac
 
3537
  case $ac_prog in
 
3538
    # Accept absolute paths.
 
3539
    [\\/]* | [A-Za-z]:[\\/]*)
 
3540
      re_direlt='/[^/][^/]*/\.\./'
 
3541
      # Canonicalize the path of ld
 
3542
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
3543
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3544
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
3545
      done
 
3546
      test -z "$LD" && LD="$ac_prog"
 
3547
      ;;
 
3548
  "")
 
3549
    # If it fails, then pretend we aren't using GCC.
 
3550
    ac_prog=ld
 
3551
    ;;
 
3552
  *)
 
3553
    # If it is relative, then search for the first ld in PATH.
 
3554
    with_gnu_ld=unknown
 
3555
    ;;
 
3556
  esac
 
3557
elif test "$with_gnu_ld" = yes; then
 
3558
  echo "$as_me:3558: checking for GNU ld" >&5
 
3559
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
3560
else
 
3561
  echo "$as_me:3561: checking for non-GNU ld" >&5
 
3562
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
3563
fi
 
3564
if test "${lt_cv_path_LD+set}" = set; then
 
3565
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3566
else
 
3567
  if test -z "$LD"; then
 
3568
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3569
  for ac_dir in $PATH; do
 
3570
    test -z "$ac_dir" && ac_dir=.
 
3571
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3572
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3573
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3574
      # but apparently some GNU ld's only accept -v.
 
3575
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3576
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
3577
        test "$with_gnu_ld" != no && break
 
3578
      else
 
3579
        test "$with_gnu_ld" != yes && break
 
3580
      fi
 
3581
    fi
 
3582
  done
 
3583
  IFS="$ac_save_ifs"
 
3584
else
 
3585
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
3586
fi
 
3587
fi
 
3588
 
 
3589
LD="$lt_cv_path_LD"
 
3590
if test -n "$LD"; then
 
3591
  echo "$as_me:3591: result: $LD" >&5
 
3592
echo "${ECHO_T}$LD" >&6
 
3593
else
 
3594
  echo "$as_me:3594: result: no" >&5
 
3595
echo "${ECHO_T}no" >&6
 
3596
fi
 
3597
test -z "$LD" && { { echo "$as_me:3597: error: no acceptable ld found in \$PATH" >&5
 
3598
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
3599
   { (exit 1); exit 1; }; }
 
3600
echo "$as_me:3600: checking if the linker ($LD) is GNU ld" >&5
 
3601
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
3602
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
3603
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3604
else
 
3605
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3606
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
3607
  lt_cv_prog_gnu_ld=yes
 
3608
else
 
3609
  lt_cv_prog_gnu_ld=no
 
3610
fi
 
3611
fi
 
3612
echo "$as_me:3612: result: $lt_cv_prog_gnu_ld" >&5
 
3613
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
3614
with_gnu_ld=$lt_cv_prog_gnu_ld
 
3615
 
 
3616
echo "$as_me:3616: checking for $LD option to reload object files" >&5
 
3617
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
3618
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
3619
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3620
else
 
3621
  lt_cv_ld_reload_flag='-r'
 
3622
fi
 
3623
echo "$as_me:3623: result: $lt_cv_ld_reload_flag" >&5
 
3624
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
3625
reload_flag=$lt_cv_ld_reload_flag
 
3626
test -n "$reload_flag" && reload_flag=" $reload_flag"
 
3627
 
 
3628
echo "$as_me:3628: checking for BSD-compatible nm" >&5
 
3629
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
3630
if test "${lt_cv_path_NM+set}" = set; then
 
3631
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3632
else
 
3633
  if test -n "$NM"; then
 
3634
  # Let the user override the test.
 
3635
  lt_cv_path_NM="$NM"
 
3636
else
 
3637
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3638
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
3639
    test -z "$ac_dir" && ac_dir=.
 
3640
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
 
3641
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
 
3642
      # Check to see if the nm accepts a BSD-compat flag.
 
3643
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3644
      #   nm: unknown option "B" ignored
 
3645
      # Tru64's nm complains that /dev/null is an invalid object file
 
3646
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
 
3647
        lt_cv_path_NM="$tmp_nm -B"
 
3648
        break
 
3649
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
 
3650
        lt_cv_path_NM="$tmp_nm -p"
 
3651
        break
 
3652
      else
 
3653
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3654
        continue # so that we can try to find one that supports BSD flags
 
3655
      fi
 
3656
    fi
 
3657
  done
 
3658
  IFS="$ac_save_ifs"
 
3659
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3660
fi
 
3661
fi
 
3662
 
 
3663
NM="$lt_cv_path_NM"
 
3664
echo "$as_me:3664: result: $NM" >&5
 
3665
echo "${ECHO_T}$NM" >&6
 
3666
 
 
3667
echo "$as_me:3667: checking whether ln -s works" >&5
 
3668
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3669
LN_S=$as_ln_s
 
3670
if test "$LN_S" = "ln -s"; then
 
3671
  echo "$as_me:3671: result: yes" >&5
 
3672
echo "${ECHO_T}yes" >&6
 
3673
else
 
3674
  echo "$as_me:3674: result: no, using $LN_S" >&5
 
3675
echo "${ECHO_T}no, using $LN_S" >&6
 
3676
fi
 
3677
 
 
3678
echo "$as_me:3678: checking how to recognise dependant libraries" >&5
 
3679
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
 
3680
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
3681
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3682
else
 
3683
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
3684
lt_cv_file_magic_test_file=
 
3685
lt_cv_deplibs_check_method='unknown'
 
3686
# Need to set the preceding variable on all platforms that support
 
3687
# interlibrary dependencies.
 
3688
# 'none' -- dependencies not supported.
 
3689
# `unknown' -- same as none, but documents that we really don't know.
 
3690
# 'pass_all' -- all dependencies passed with no checks.
 
3691
# 'test_compile' -- check by making test program.
 
3692
# 'file_magic [[regex]]' -- check by looking for files in library path
 
3693
# which responds to the $file_magic_cmd with a given egrep regex.
 
3694
# If you have `file' or equivalent on your system and you're not sure
 
3695
# whether `pass_all' will *always* work, you probably want this one.
 
3696
 
 
3697
case $host_os in
 
3698
aix4* | aix5*)
 
3699
  lt_cv_deplibs_check_method=pass_all
 
3700
  ;;
 
3701
 
 
3702
beos*)
 
3703
  lt_cv_deplibs_check_method=pass_all
 
3704
  ;;
 
3705
 
 
3706
bsdi4*)
 
3707
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
3708
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3709
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3710
  ;;
 
3711
 
 
3712
cygwin* | mingw* | pw32*)
 
3713
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3714
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3715
  ;;
 
3716
 
 
3717
darwin* | rhapsody*)
 
3718
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
 
3719
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3720
  case "$host_os" in
 
3721
  rhapsody* | darwin1.[012])
 
3722
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
 
3723
    ;;
 
3724
  *) # Darwin 1.3 on
 
3725
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
 
3726
    ;;
 
3727
  esac
 
3728
  ;;
 
3729
 
 
3730
freebsd*)
 
3731
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3732
    case $host_cpu in
 
3733
    i*86 )
 
3734
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3735
      # Let's accept both of them until this is cleared up.
 
3736
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
3737
      lt_cv_file_magic_cmd=/usr/bin/file
 
3738
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3739
      ;;
 
3740
    esac
 
3741
  else
 
3742
    lt_cv_deplibs_check_method=pass_all
 
3743
  fi
 
3744
  ;;
 
3745
 
 
3746
gnu*)
 
3747
  lt_cv_deplibs_check_method=pass_all
 
3748
  ;;
 
3749
 
 
3750
hpux10.20*|hpux11*)
 
3751
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3752
  lt_cv_file_magic_cmd=/usr/bin/file
 
3753
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3754
  ;;
 
3755
 
 
3756
irix5* | irix6*)
 
3757
  case $host_os in
 
3758
  irix5*)
 
3759
    # this will be overridden with pass_all, but let us keep it just in case
 
3760
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
 
3761
    ;;
 
3762
  *)
 
3763
    case $LD in
 
3764
    *-32|*"-32 ") libmagic=32-bit;;
 
3765
    *-n32|*"-n32 ") libmagic=N32;;
 
3766
    *-64|*"-64 ") libmagic=64-bit;;
 
3767
    *) libmagic=never-match;;
 
3768
    esac
 
3769
    # this will be overridden with pass_all, but let us keep it just in case
 
3770
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
 
3771
    ;;
 
3772
  esac
 
3773
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
 
3774
  lt_cv_deplibs_check_method=pass_all
 
3775
  ;;
 
3776
 
 
3777
# This must be Linux ELF.
 
3778
linux-gnu*)
 
3779
  case $host_cpu in
 
3780
  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
 
3781
    lt_cv_deplibs_check_method=pass_all ;;
 
3782
  *)
 
3783
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
3784
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
 
3785
  esac
 
3786
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
3787
  ;;
 
3788
 
 
3789
netbsd*)
 
3790
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3791
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
 
3792
  else
 
3793
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
 
3794
  fi
 
3795
  ;;
 
3796
 
 
3797
newos6*)
 
3798
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
3799
  lt_cv_file_magic_cmd=/usr/bin/file
 
3800
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3801
  ;;
 
3802
 
 
3803
openbsd*)
 
3804
  lt_cv_file_magic_cmd=/usr/bin/file
 
3805
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3806
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3807
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
3808
  else
 
3809
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3810
  fi
 
3811
  ;;
 
3812
 
 
3813
osf3* | osf4* | osf5*)
 
3814
  # this will be overridden with pass_all, but let us keep it just in case
 
3815
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
 
3816
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3817
  lt_cv_deplibs_check_method=pass_all
 
3818
  ;;
 
3819
 
 
3820
sco3.2v5*)
 
3821
  lt_cv_deplibs_check_method=pass_all
 
3822
  ;;
 
3823
 
 
3824
solaris*)
 
3825
  lt_cv_deplibs_check_method=pass_all
 
3826
  lt_cv_file_magic_test_file=/lib/libc.so
 
3827
  ;;
 
3828
 
 
3829
sysv5uw[78]* | sysv4*uw2*)
 
3830
  lt_cv_deplibs_check_method=pass_all
 
3831
  ;;
 
3832
 
 
3833
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3834
  case $host_vendor in
 
3835
  motorola)
 
3836
    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]'
 
3837
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3838
    ;;
 
3839
  ncr)
 
3840
    lt_cv_deplibs_check_method=pass_all
 
3841
    ;;
 
3842
  sequent)
 
3843
    lt_cv_file_magic_cmd='/bin/file'
 
3844
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
3845
    ;;
 
3846
  sni)
 
3847
    lt_cv_file_magic_cmd='/bin/file'
 
3848
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
3849
    lt_cv_file_magic_test_file=/lib/libc.so
 
3850
    ;;
 
3851
  esac
 
3852
  ;;
 
3853
esac
 
3854
 
 
3855
fi
 
3856
echo "$as_me:3856: result: $lt_cv_deplibs_check_method" >&5
 
3857
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
3858
file_magic_cmd=$lt_cv_file_magic_cmd
 
3859
deplibs_check_method=$lt_cv_deplibs_check_method
 
3860
 
 
3861
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
3862
echo "$as_me:3862: checking command to parse $NM output" >&5
 
3863
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
 
3864
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
3865
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3866
else
 
3867
 
 
3868
# These are sane defaults that work on at least a few old systems.
 
3869
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
3870
 
 
3871
# Character class describing NM global symbol codes.
 
3872
symcode='[BCDEGRST]'
 
3873
 
 
3874
# Regexp to match symbols that can be accessed directly from C.
 
3875
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
3876
 
 
3877
# Transform the above into a raw symbol and a C symbol.
 
3878
symxfrm='\1 \2\3 \3'
 
3879
 
 
3880
# Transform an extracted symbol line into a proper C declaration
 
3881
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
 
3882
 
 
3883
# Transform an extracted symbol line into symbol name and symbol address
 
3884
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'"
 
3885
 
 
3886
# Define system-specific variables.
 
3887
case $host_os in
 
3888
aix*)
 
3889
  symcode='[BCDT]'
 
3890
  ;;
 
3891
cygwin* | mingw* | pw32*)
 
3892
  symcode='[ABCDGISTW]'
 
3893
  ;;
 
3894
hpux*) # Its linker distinguishes data from code symbols
 
3895
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
3896
  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'"
 
3897
  ;;
 
3898
irix*)
 
3899
  symcode='[BCDEGRST]'
 
3900
  ;;
 
3901
solaris* | sysv5*)
 
3902
  symcode='[BDT]'
 
3903
  ;;
 
3904
sysv4)
 
3905
  symcode='[DFNSTU]'
 
3906
  ;;
 
3907
esac
 
3908
 
 
3909
# Handle CRLF in mingw tool chain
 
3910
opt_cr=
 
3911
case $host_os in
 
3912
mingw*)
 
3913
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
3914
  ;;
 
3915
esac
 
3916
 
 
3917
# If we're using GNU nm, then use its standard symbol codes.
 
3918
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
 
3919
  symcode='[ABCDGISTW]'
 
3920
fi
 
3921
 
 
3922
# Try without a prefix undercore, then with it.
 
3923
for ac_symprfx in "" "_"; do
 
3924
 
 
3925
  # Write the raw and C identifiers.
 
3926
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
3927
 
 
3928
  # Check to see that the pipe works correctly.
 
3929
  pipe_works=no
 
3930
  rm -f conftest*
 
3931
  cat > conftest.$ac_ext <<EOF
 
3932
#ifdef __cplusplus
 
3933
extern "C" {
 
3934
#endif
 
3935
char nm_test_var;
 
3936
void nm_test_func(){}
 
3937
#ifdef __cplusplus
 
3938
}
 
3939
#endif
 
3940
int main(){nm_test_var='a';nm_test_func();return(0);}
 
3941
EOF
 
3942
 
 
3943
  if { (eval echo "$as_me:3943: \"$ac_compile\"") >&5
 
3944
  (eval $ac_compile) 2>&5
 
3945
  ac_status=$?
 
3946
  echo "$as_me:3946: \$? = $ac_status" >&5
 
3947
  (exit $ac_status); }; then
 
3948
    # Now try to grab the symbols.
 
3949
    nlist=conftest.nm
 
3950
    if { (eval echo "$as_me:3950: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
3951
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
3952
  ac_status=$?
 
3953
  echo "$as_me:3953: \$? = $ac_status" >&5
 
3954
  (exit $ac_status); } && test -s "$nlist"; then
 
3955
      # Try sorting and uniquifying the output.
 
3956
      if sort "$nlist" | uniq > "$nlist"T; then
 
3957
        mv -f "$nlist"T "$nlist"
 
3958
      else
 
3959
        rm -f "$nlist"T
 
3960
      fi
 
3961
 
 
3962
      # Make sure that we snagged all the symbols we need.
 
3963
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
 
3964
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
 
3965
          cat <<EOF > conftest.$ac_ext
 
3966
#ifdef __cplusplus
 
3967
extern "C" {
 
3968
#endif
 
3969
 
 
3970
EOF
 
3971
          # Now generate the symbol file.
 
3972
          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
 
3973
 
 
3974
          cat <<EOF >> conftest.$ac_ext
 
3975
#if defined (__STDC__) && __STDC__
 
3976
# define lt_ptr void *
 
3977
#else
 
3978
# define lt_ptr char *
 
3979
# define const
 
3980
#endif
 
3981
 
 
3982
/* The mapping between symbol names and symbols. */
 
3983
const struct {
 
3984
  const char *name;
 
3985
  lt_ptr address;
 
3986
}
 
3987
lt_preloaded_symbols[] =
 
3988
{
 
3989
EOF
 
3990
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
 
3991
          cat <<\EOF >> conftest.$ac_ext
 
3992
  {0, (lt_ptr) 0}
 
3993
};
 
3994
 
 
3995
#ifdef __cplusplus
 
3996
}
 
3997
#endif
 
3998
EOF
 
3999
          # Now try linking the two files.
 
4000
          mv conftest.$ac_objext conftstm.$ac_objext
 
4001
          save_LIBS="$LIBS"
 
4002
          save_CFLAGS="$CFLAGS"
 
4003
          LIBS="conftstm.$ac_objext"
 
4004
          CFLAGS="$CFLAGS$no_builtin_flag"
 
4005
          if { (eval echo "$as_me:4005: \"$ac_link\"") >&5
 
4006
  (eval $ac_link) 2>&5
 
4007
  ac_status=$?
 
4008
  echo "$as_me:4008: \$? = $ac_status" >&5
 
4009
  (exit $ac_status); } && test -s conftest; then
 
4010
            pipe_works=yes
 
4011
          fi
 
4012
          LIBS="$save_LIBS"
 
4013
          CFLAGS="$save_CFLAGS"
 
4014
        else
 
4015
          echo "cannot find nm_test_func in $nlist" >&5
 
4016
        fi
 
4017
      else
 
4018
        echo "cannot find nm_test_var in $nlist" >&5
 
4019
      fi
 
4020
    else
 
4021
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
4022
    fi
 
4023
  else
 
4024
    echo "$progname: failed program was:" >&5
 
4025
    cat conftest.$ac_ext >&5
 
4026
  fi
 
4027
  rm -f conftest* conftst*
 
4028
 
 
4029
  # Do not use the global_symbol_pipe unless it works.
 
4030
  if test "$pipe_works" = yes; then
 
4031
    break
 
4032
  else
 
4033
    lt_cv_sys_global_symbol_pipe=
 
4034
  fi
 
4035
done
 
4036
 
 
4037
fi
 
4038
 
 
4039
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
 
4040
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
4041
  global_symbol_to_cdecl=
 
4042
  global_symbol_to_c_name_address=
 
4043
else
 
4044
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
 
4045
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
 
4046
fi
 
4047
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
 
4048
then
 
4049
  echo "$as_me:4049: result: failed" >&5
 
4050
echo "${ECHO_T}failed" >&6
 
4051
else
 
4052
  echo "$as_me:4052: result: ok" >&5
 
4053
echo "${ECHO_T}ok" >&6
 
4054
fi
 
4055
 
 
4056
for ac_header in dlfcn.h
 
4057
do
 
4058
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4059
echo "$as_me:4059: checking for $ac_header" >&5
 
4060
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4061
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4062
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4063
else
 
4064
  cat >conftest.$ac_ext <<_ACEOF
 
4065
#line 4065 "configure"
 
4066
#include "confdefs.h"
 
4067
#include <$ac_header>
 
4068
_ACEOF
 
4069
if { (eval echo "$as_me:4069: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4070
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4071
  ac_status=$?
 
4072
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
4073
  rm -f conftest.er1
 
4074
  cat conftest.err >&5
 
4075
  echo "$as_me:4075: \$? = $ac_status" >&5
 
4076
  (exit $ac_status); } >/dev/null; then
 
4077
  if test -s conftest.err; then
 
4078
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4079
  else
 
4080
    ac_cpp_err=
 
4081
  fi
 
4082
else
 
4083
  ac_cpp_err=yes
 
4084
fi
 
4085
if test -z "$ac_cpp_err"; then
 
4086
  eval "$as_ac_Header=yes"
 
4087
else
 
4088
  echo "$as_me: failed program was:" >&5
 
4089
  cat conftest.$ac_ext >&5
 
4090
  eval "$as_ac_Header=no"
 
4091
fi
 
4092
rm -f conftest.err conftest.$ac_ext
 
4093
fi
 
4094
echo "$as_me:4094: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4095
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4096
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4097
  cat >>confdefs.h <<EOF
 
4098
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4099
EOF
 
4100
 
 
4101
fi
 
4102
done
 
4103
 
 
4104
# Only perform the check for file, if the check method requires it
 
4105
case $deplibs_check_method in
 
4106
file_magic*)
 
4107
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
4108
    echo "$as_me:4108: checking for ${ac_tool_prefix}file" >&5
 
4109
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
4110
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
4111
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4112
else
 
4113
  case $MAGIC_CMD in
 
4114
  /*)
 
4115
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
4116
  ;;
 
4117
  ?:/*)
 
4118
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 
4119
  ;;
 
4120
  *)
 
4121
  ac_save_MAGIC_CMD="$MAGIC_CMD"
 
4122
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
4123
  ac_dummy="/usr/bin:$PATH"
 
4124
  for ac_dir in $ac_dummy; do
 
4125
    test -z "$ac_dir" && ac_dir=.
 
4126
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
4127
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
4128
      if test -n "$file_magic_test_file"; then
 
4129
        case $deplibs_check_method in
 
4130
        "file_magic "*)
 
4131
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
4132
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
4133
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
4134
            egrep "$file_magic_regex" > /dev/null; then
 
4135
            :
 
4136
          else
 
4137
            cat <<EOF 1>&2
 
4138
 
 
4139
*** Warning: the command libtool uses to detect shared libraries,
 
4140
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
4141
*** The result is that libtool may fail to recognize shared libraries
 
4142
*** as such.  This will affect the creation of libtool libraries that
 
4143
*** depend on shared libraries, but programs linked with such libtool
 
4144
*** libraries will work regardless of this problem.  Nevertheless, you
 
4145
*** may want to report the problem to your system manager and/or to
 
4146
*** bug-libtool@gnu.org
 
4147
 
 
4148
EOF
 
4149
          fi ;;
 
4150
        esac
 
4151
      fi
 
4152
      break
 
4153
    fi
 
4154
  done
 
4155
  IFS="$ac_save_ifs"
 
4156
  MAGIC_CMD="$ac_save_MAGIC_CMD"
 
4157
  ;;
 
4158
esac
 
4159
fi
 
4160
 
 
4161
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
4162
if test -n "$MAGIC_CMD"; then
 
4163
  echo "$as_me:4163: result: $MAGIC_CMD" >&5
 
4164
echo "${ECHO_T}$MAGIC_CMD" >&6
 
4165
else
 
4166
  echo "$as_me:4166: result: no" >&5
 
4167
echo "${ECHO_T}no" >&6
 
4168
fi
 
4169
 
 
4170
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
4171
  if test -n "$ac_tool_prefix"; then
 
4172
    echo "$as_me:4172: checking for file" >&5
 
4173
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
4174
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
4175
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4176
else
 
4177
  case $MAGIC_CMD in
 
4178
  /*)
 
4179
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
4180
  ;;
 
4181
  ?:/*)
 
4182
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 
4183
  ;;
 
4184
  *)
 
4185
  ac_save_MAGIC_CMD="$MAGIC_CMD"
 
4186
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
4187
  ac_dummy="/usr/bin:$PATH"
 
4188
  for ac_dir in $ac_dummy; do
 
4189
    test -z "$ac_dir" && ac_dir=.
 
4190
    if test -f $ac_dir/file; then
 
4191
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
4192
      if test -n "$file_magic_test_file"; then
 
4193
        case $deplibs_check_method in
 
4194
        "file_magic "*)
 
4195
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
4196
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
4197
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
4198
            egrep "$file_magic_regex" > /dev/null; then
 
4199
            :
 
4200
          else
 
4201
            cat <<EOF 1>&2
 
4202
 
 
4203
*** Warning: the command libtool uses to detect shared libraries,
 
4204
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
4205
*** The result is that libtool may fail to recognize shared libraries
 
4206
*** as such.  This will affect the creation of libtool libraries that
 
4207
*** depend on shared libraries, but programs linked with such libtool
 
4208
*** libraries will work regardless of this problem.  Nevertheless, you
 
4209
*** may want to report the problem to your system manager and/or to
 
4210
*** bug-libtool@gnu.org
 
4211
 
 
4212
EOF
 
4213
          fi ;;
 
4214
        esac
 
4215
      fi
 
4216
      break
 
4217
    fi
 
4218
  done
 
4219
  IFS="$ac_save_ifs"
 
4220
  MAGIC_CMD="$ac_save_MAGIC_CMD"
 
4221
  ;;
 
4222
esac
 
4223
fi
 
4224
 
 
4225
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
4226
if test -n "$MAGIC_CMD"; then
 
4227
  echo "$as_me:4227: result: $MAGIC_CMD" >&5
 
4228
echo "${ECHO_T}$MAGIC_CMD" >&6
 
4229
else
 
4230
  echo "$as_me:4230: result: no" >&5
 
4231
echo "${ECHO_T}no" >&6
 
4232
fi
 
4233
 
 
4234
  else
 
4235
    MAGIC_CMD=:
 
4236
  fi
 
4237
fi
 
4238
 
 
4239
  fi
 
4240
  ;;
 
4241
esac
 
4242
 
 
4243
if test -n "$ac_tool_prefix"; then
 
4244
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
4245
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
4246
echo "$as_me:4246: checking for $ac_word" >&5
 
4247
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4248
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
4249
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4250
else
 
4251
  if test -n "$RANLIB"; then
 
4252
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
4253
else
 
4254
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
4255
ac_dummy="$PATH"
 
4256
for ac_dir in $ac_dummy; do
 
4257
  IFS=$ac_save_IFS
 
4258
  test -z "$ac_dir" && ac_dir=.
 
4259
  $as_executable_p "$ac_dir/$ac_word" || continue
 
4260
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
4261
echo "$as_me:4261: found $ac_dir/$ac_word" >&5
 
4262
break
 
4263
done
 
4264
 
 
4265
fi
 
4266
fi
 
4267
RANLIB=$ac_cv_prog_RANLIB
 
4268
if test -n "$RANLIB"; then
 
4269
  echo "$as_me:4269: result: $RANLIB" >&5
 
4270
echo "${ECHO_T}$RANLIB" >&6
 
4271
else
 
4272
  echo "$as_me:4272: result: no" >&5
 
4273
echo "${ECHO_T}no" >&6
 
4274
fi
 
4275
 
 
4276
fi
 
4277
if test -z "$ac_cv_prog_RANLIB"; then
 
4278
  ac_ct_RANLIB=$RANLIB
 
4279
  # Extract the first word of "ranlib", so it can be a program name with args.
 
4280
set dummy ranlib; ac_word=$2
 
4281
echo "$as_me:4281: checking for $ac_word" >&5
 
4282
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4283
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
4284
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4285
else
 
4286
  if test -n "$ac_ct_RANLIB"; then
 
4287
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
4288
else
 
4289
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
4290
ac_dummy="$PATH"
 
4291
for ac_dir in $ac_dummy; do
 
4292
  IFS=$ac_save_IFS
 
4293
  test -z "$ac_dir" && ac_dir=.
 
4294
  $as_executable_p "$ac_dir/$ac_word" || continue
 
4295
ac_cv_prog_ac_ct_RANLIB="ranlib"
 
4296
echo "$as_me:4296: found $ac_dir/$ac_word" >&5
 
4297
break
 
4298
done
 
4299
 
 
4300
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
4301
fi
 
4302
fi
 
4303
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
4304
if test -n "$ac_ct_RANLIB"; then
 
4305
  echo "$as_me:4305: result: $ac_ct_RANLIB" >&5
 
4306
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
4307
else
 
4308
  echo "$as_me:4308: result: no" >&5
 
4309
echo "${ECHO_T}no" >&6
 
4310
fi
 
4311
 
 
4312
  RANLIB=$ac_ct_RANLIB
 
4313
else
 
4314
  RANLIB="$ac_cv_prog_RANLIB"
 
4315
fi
 
4316
 
 
4317
if test -n "$ac_tool_prefix"; then
 
4318
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
4319
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
4320
echo "$as_me:4320: checking for $ac_word" >&5
 
4321
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4322
if test "${ac_cv_prog_STRIP+set}" = set; then
 
4323
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4324
else
 
4325
  if test -n "$STRIP"; then
 
4326
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
4327
else
 
4328
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
4329
ac_dummy="$PATH"
 
4330
for ac_dir in $ac_dummy; do
 
4331
  IFS=$ac_save_IFS
 
4332
  test -z "$ac_dir" && ac_dir=.
 
4333
  $as_executable_p "$ac_dir/$ac_word" || continue
 
4334
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
4335
echo "$as_me:4335: found $ac_dir/$ac_word" >&5
 
4336
break
 
4337
done
 
4338
 
 
4339
fi
 
4340
fi
 
4341
STRIP=$ac_cv_prog_STRIP
 
4342
if test -n "$STRIP"; then
 
4343
  echo "$as_me:4343: result: $STRIP" >&5
 
4344
echo "${ECHO_T}$STRIP" >&6
 
4345
else
 
4346
  echo "$as_me:4346: result: no" >&5
 
4347
echo "${ECHO_T}no" >&6
 
4348
fi
 
4349
 
 
4350
fi
 
4351
if test -z "$ac_cv_prog_STRIP"; then
 
4352
  ac_ct_STRIP=$STRIP
 
4353
  # Extract the first word of "strip", so it can be a program name with args.
 
4354
set dummy strip; ac_word=$2
 
4355
echo "$as_me:4355: checking for $ac_word" >&5
 
4356
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4357
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
4358
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4359
else
 
4360
  if test -n "$ac_ct_STRIP"; then
 
4361
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
4362
else
 
4363
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
4364
ac_dummy="$PATH"
 
4365
for ac_dir in $ac_dummy; do
 
4366
  IFS=$ac_save_IFS
 
4367
  test -z "$ac_dir" && ac_dir=.
 
4368
  $as_executable_p "$ac_dir/$ac_word" || continue
 
4369
ac_cv_prog_ac_ct_STRIP="strip"
 
4370
echo "$as_me:4370: found $ac_dir/$ac_word" >&5
 
4371
break
 
4372
done
 
4373
 
 
4374
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
4375
fi
 
4376
fi
 
4377
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
4378
if test -n "$ac_ct_STRIP"; then
 
4379
  echo "$as_me:4379: result: $ac_ct_STRIP" >&5
 
4380
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
4381
else
 
4382
  echo "$as_me:4382: result: no" >&5
 
4383
echo "${ECHO_T}no" >&6
 
4384
fi
 
4385
 
 
4386
  STRIP=$ac_ct_STRIP
 
4387
else
 
4388
  STRIP="$ac_cv_prog_STRIP"
 
4389
fi
 
4390
 
 
4391
enable_dlopen=no
 
4392
enable_win32_dll=yes
 
4393
 
 
4394
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
4395
if test "${enable_libtool_lock+set}" = set; then
 
4396
  enableval="$enable_libtool_lock"
 
4397
 
 
4398
fi;
 
4399
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4400
 
 
4401
# Some flags need to be propagated to the compiler or linker for good
 
4402
# libtool support.
 
4403
case $host in
 
4404
*-*-irix6*)
 
4405
  # Find out which ABI we are using.
 
4406
  echo '#line 4406 "configure"' > conftest.$ac_ext
 
4407
  if { (eval echo "$as_me:4407: \"$ac_compile\"") >&5
 
4408
  (eval $ac_compile) 2>&5
 
4409
  ac_status=$?
 
4410
  echo "$as_me:4410: \$? = $ac_status" >&5
 
4411
  (exit $ac_status); }; then
 
4412
    case `/usr/bin/file conftest.$ac_objext` in
 
4413
    *32-bit*)
 
4414
      LD="${LD-ld} -32"
 
4415
      ;;
 
4416
    *N32*)
 
4417
      LD="${LD-ld} -n32"
 
4418
      ;;
 
4419
    *64-bit*)
 
4420
      LD="${LD-ld} -64"
 
4421
      ;;
 
4422
    esac
 
4423
  fi
 
4424
  rm -rf conftest*
 
4425
  ;;
 
4426
 
 
4427
*-*-sco3.2v5*)
 
4428
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4429
  SAVE_CFLAGS="$CFLAGS"
 
4430
  CFLAGS="$CFLAGS -belf"
 
4431
  echo "$as_me:4431: checking whether the C compiler needs -belf" >&5
 
4432
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
4433
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4434
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4435
else
 
4436
 
 
4437
     ac_ext=c
 
4438
ac_cpp='$CPP $CPPFLAGS'
 
4439
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4440
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4441
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4442
 
 
4443
     cat >conftest.$ac_ext <<_ACEOF
 
4444
#line 4444 "configure"
 
4445
#include "confdefs.h"
 
4446
 
 
4447
int
 
4448
main ()
 
4449
{
 
4450
 
 
4451
  ;
 
4452
  return 0;
 
4453
}
 
4454
_ACEOF
 
4455
rm -f conftest.$ac_objext conftest$ac_exeext
 
4456
if { (eval echo "$as_me:4456: \"$ac_link\"") >&5
 
4457
  (eval $ac_link) 2>&5
 
4458
  ac_status=$?
 
4459
  echo "$as_me:4459: \$? = $ac_status" >&5
 
4460
  (exit $ac_status); } &&
 
4461
         { ac_try='test -s conftest$ac_exeext'
 
4462
  { (eval echo "$as_me:4462: \"$ac_try\"") >&5
 
4463
  (eval $ac_try) 2>&5
 
4464
  ac_status=$?
 
4465
  echo "$as_me:4465: \$? = $ac_status" >&5
 
4466
  (exit $ac_status); }; }; then
 
4467
  lt_cv_cc_needs_belf=yes
 
4468
else
 
4469
  echo "$as_me: failed program was:" >&5
 
4470
cat conftest.$ac_ext >&5
 
4471
lt_cv_cc_needs_belf=no
 
4472
fi
 
4473
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4474
     ac_ext=c
 
4475
ac_cpp='$CPP $CPPFLAGS'
 
4476
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4477
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4478
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4479
 
 
4480
fi
 
4481
echo "$as_me:4481: result: $lt_cv_cc_needs_belf" >&5
 
4482
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
4483
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4484
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4485
    CFLAGS="$SAVE_CFLAGS"
 
4486
  fi
 
4487
  ;;
 
4488
 
 
4489
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
4490
  if test -n "$ac_tool_prefix"; then
 
4491
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
4492
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
4493
echo "$as_me:4493: checking for $ac_word" >&5
 
4494
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4495
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
 
4496
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4497
else
 
4498
  if test -n "$DLLTOOL"; then
 
4499
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
4500
else
 
4501
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
4502
ac_dummy="$PATH"
 
4503
for ac_dir in $ac_dummy; do
 
4504
  IFS=$ac_save_IFS
 
4505
  test -z "$ac_dir" && ac_dir=.
 
4506
  $as_executable_p "$ac_dir/$ac_word" || continue
 
4507
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
4508
echo "$as_me:4508: found $ac_dir/$ac_word" >&5
 
4509
break
 
4510
done
 
4511
 
 
4512
fi
 
4513
fi
 
4514
DLLTOOL=$ac_cv_prog_DLLTOOL
 
4515
if test -n "$DLLTOOL"; then
 
4516
  echo "$as_me:4516: result: $DLLTOOL" >&5
 
4517
echo "${ECHO_T}$DLLTOOL" >&6
 
4518
else
 
4519
  echo "$as_me:4519: result: no" >&5
 
4520
echo "${ECHO_T}no" >&6
 
4521
fi
 
4522
 
 
4523
fi
 
4524
if test -z "$ac_cv_prog_DLLTOOL"; then
 
4525
  ac_ct_DLLTOOL=$DLLTOOL
 
4526
  # Extract the first word of "dlltool", so it can be a program name with args.
 
4527
set dummy dlltool; ac_word=$2
 
4528
echo "$as_me:4528: checking for $ac_word" >&5
 
4529
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4530
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
 
4531
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4532
else
 
4533
  if test -n "$ac_ct_DLLTOOL"; then
 
4534
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
4535
else
 
4536
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
4537
ac_dummy="$PATH"
 
4538
for ac_dir in $ac_dummy; do
 
4539
  IFS=$ac_save_IFS
 
4540
  test -z "$ac_dir" && ac_dir=.
 
4541
  $as_executable_p "$ac_dir/$ac_word" || continue
 
4542
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
4543
echo "$as_me:4543: found $ac_dir/$ac_word" >&5
 
4544
break
 
4545
done
 
4546
 
 
4547
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
 
4548
fi
 
4549
fi
 
4550
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
4551
if test -n "$ac_ct_DLLTOOL"; then
 
4552
  echo "$as_me:4552: result: $ac_ct_DLLTOOL" >&5
 
4553
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
 
4554
else
 
4555
  echo "$as_me:4555: result: no" >&5
 
4556
echo "${ECHO_T}no" >&6
 
4557
fi
 
4558
 
 
4559
  DLLTOOL=$ac_ct_DLLTOOL
 
4560
else
 
4561
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
4562
fi
 
4563
 
 
4564
  if test -n "$ac_tool_prefix"; then
 
4565
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
4566
set dummy ${ac_tool_prefix}as; ac_word=$2
 
4567
echo "$as_me:4567: checking for $ac_word" >&5
 
4568
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4569
if test "${ac_cv_prog_AS+set}" = set; then
 
4570
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4571
else
 
4572
  if test -n "$AS"; then
 
4573
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
4574
else
 
4575
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
4576
ac_dummy="$PATH"
 
4577
for ac_dir in $ac_dummy; do
 
4578
  IFS=$ac_save_IFS
 
4579
  test -z "$ac_dir" && ac_dir=.
 
4580
  $as_executable_p "$ac_dir/$ac_word" || continue
 
4581
ac_cv_prog_AS="${ac_tool_prefix}as"
 
4582
echo "$as_me:4582: found $ac_dir/$ac_word" >&5
 
4583
break
 
4584
done
 
4585
 
 
4586
fi
 
4587
fi
 
4588
AS=$ac_cv_prog_AS
 
4589
if test -n "$AS"; then
 
4590
  echo "$as_me:4590: result: $AS" >&5
 
4591
echo "${ECHO_T}$AS" >&6
 
4592
else
 
4593
  echo "$as_me:4593: result: no" >&5
 
4594
echo "${ECHO_T}no" >&6
 
4595
fi
 
4596
 
 
4597
fi
 
4598
if test -z "$ac_cv_prog_AS"; then
 
4599
  ac_ct_AS=$AS
 
4600
  # Extract the first word of "as", so it can be a program name with args.
 
4601
set dummy as; ac_word=$2
 
4602
echo "$as_me:4602: checking for $ac_word" >&5
 
4603
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4604
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
 
4605
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4606
else
 
4607
  if test -n "$ac_ct_AS"; then
 
4608
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
4609
else
 
4610
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
4611
ac_dummy="$PATH"
 
4612
for ac_dir in $ac_dummy; do
 
4613
  IFS=$ac_save_IFS
 
4614
  test -z "$ac_dir" && ac_dir=.
 
4615
  $as_executable_p "$ac_dir/$ac_word" || continue
 
4616
ac_cv_prog_ac_ct_AS="as"
 
4617
echo "$as_me:4617: found $ac_dir/$ac_word" >&5
 
4618
break
 
4619
done
 
4620
 
 
4621
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
 
4622
fi
 
4623
fi
 
4624
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
4625
if test -n "$ac_ct_AS"; then
 
4626
  echo "$as_me:4626: result: $ac_ct_AS" >&5
 
4627
echo "${ECHO_T}$ac_ct_AS" >&6
 
4628
else
 
4629
  echo "$as_me:4629: result: no" >&5
 
4630
echo "${ECHO_T}no" >&6
 
4631
fi
 
4632
 
 
4633
  AS=$ac_ct_AS
 
4634
else
 
4635
  AS="$ac_cv_prog_AS"
 
4636
fi
 
4637
 
 
4638
  if test -n "$ac_tool_prefix"; then
 
4639
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
4640
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
4641
echo "$as_me:4641: checking for $ac_word" >&5
 
4642
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4643
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
4644
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4645
else
 
4646
  if test -n "$OBJDUMP"; then
 
4647
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
4648
else
 
4649
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
4650
ac_dummy="$PATH"
 
4651
for ac_dir in $ac_dummy; do
 
4652
  IFS=$ac_save_IFS
 
4653
  test -z "$ac_dir" && ac_dir=.
 
4654
  $as_executable_p "$ac_dir/$ac_word" || continue
 
4655
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
4656
echo "$as_me:4656: found $ac_dir/$ac_word" >&5
 
4657
break
 
4658
done
 
4659
 
 
4660
fi
 
4661
fi
 
4662
OBJDUMP=$ac_cv_prog_OBJDUMP
 
4663
if test -n "$OBJDUMP"; then
 
4664
  echo "$as_me:4664: result: $OBJDUMP" >&5
 
4665
echo "${ECHO_T}$OBJDUMP" >&6
 
4666
else
 
4667
  echo "$as_me:4667: result: no" >&5
 
4668
echo "${ECHO_T}no" >&6
 
4669
fi
 
4670
 
 
4671
fi
 
4672
if test -z "$ac_cv_prog_OBJDUMP"; then
 
4673
  ac_ct_OBJDUMP=$OBJDUMP
 
4674
  # Extract the first word of "objdump", so it can be a program name with args.
 
4675
set dummy objdump; ac_word=$2
 
4676
echo "$as_me:4676: checking for $ac_word" >&5
 
4677
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4678
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
4679
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4680
else
 
4681
  if test -n "$ac_ct_OBJDUMP"; then
 
4682
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
4683
else
 
4684
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
4685
ac_dummy="$PATH"
 
4686
for ac_dir in $ac_dummy; do
 
4687
  IFS=$ac_save_IFS
 
4688
  test -z "$ac_dir" && ac_dir=.
 
4689
  $as_executable_p "$ac_dir/$ac_word" || continue
 
4690
ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
4691
echo "$as_me:4691: found $ac_dir/$ac_word" >&5
 
4692
break
 
4693
done
 
4694
 
 
4695
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
 
4696
fi
 
4697
fi
 
4698
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
4699
if test -n "$ac_ct_OBJDUMP"; then
 
4700
  echo "$as_me:4700: result: $ac_ct_OBJDUMP" >&5
 
4701
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
 
4702
else
 
4703
  echo "$as_me:4703: result: no" >&5
 
4704
echo "${ECHO_T}no" >&6
 
4705
fi
 
4706
 
 
4707
  OBJDUMP=$ac_ct_OBJDUMP
 
4708
else
 
4709
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
4710
fi
 
4711
 
 
4712
  # recent cygwin and mingw systems supply a stub DllMain which the user
 
4713
  # can override, but on older systems we have to supply one
 
4714
  echo "$as_me:4714: checking if libtool should supply DllMain function" >&5
 
4715
echo $ECHO_N "checking if libtool should supply DllMain function... $ECHO_C" >&6
 
4716
if test "${lt_cv_need_dllmain+set}" = set; then
 
4717
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4718
else
 
4719
  cat >conftest.$ac_ext <<_ACEOF
 
4720
#line 4720 "configure"
 
4721
#include "confdefs.h"
 
4722
 
 
4723
int
 
4724
main ()
 
4725
{
 
4726
extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
 
4727
      DllMain (0, 0, 0);
 
4728
  ;
 
4729
  return 0;
 
4730
}
 
4731
_ACEOF
 
4732
rm -f conftest.$ac_objext conftest$ac_exeext
 
4733
if { (eval echo "$as_me:4733: \"$ac_link\"") >&5
 
4734
  (eval $ac_link) 2>&5
 
4735
  ac_status=$?
 
4736
  echo "$as_me:4736: \$? = $ac_status" >&5
 
4737
  (exit $ac_status); } &&
 
4738
         { ac_try='test -s conftest$ac_exeext'
 
4739
  { (eval echo "$as_me:4739: \"$ac_try\"") >&5
 
4740
  (eval $ac_try) 2>&5
 
4741
  ac_status=$?
 
4742
  echo "$as_me:4742: \$? = $ac_status" >&5
 
4743
  (exit $ac_status); }; }; then
 
4744
  lt_cv_need_dllmain=no
 
4745
else
 
4746
  echo "$as_me: failed program was:" >&5
 
4747
cat conftest.$ac_ext >&5
 
4748
lt_cv_need_dllmain=yes
 
4749
fi
 
4750
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4751
fi
 
4752
echo "$as_me:4752: result: $lt_cv_need_dllmain" >&5
 
4753
echo "${ECHO_T}$lt_cv_need_dllmain" >&6
 
4754
 
 
4755
  case $host/$CC in
 
4756
  *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
 
4757
    # old mingw systems require "-dll" to link a DLL, while more recent ones
 
4758
    # require "-mdll"
 
4759
    SAVE_CFLAGS="$CFLAGS"
 
4760
    CFLAGS="$CFLAGS -mdll"
 
4761
    echo "$as_me:4761: checking how to link DLLs" >&5
 
4762
echo $ECHO_N "checking how to link DLLs... $ECHO_C" >&6
 
4763
if test "${lt_cv_cc_dll_switch+set}" = set; then
 
4764
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4765
else
 
4766
  cat >conftest.$ac_ext <<_ACEOF
 
4767
#line 4767 "configure"
 
4768
#include "confdefs.h"
 
4769
 
 
4770
int
 
4771
main ()
 
4772
{
 
4773
 
 
4774
  ;
 
4775
  return 0;
 
4776
}
 
4777
_ACEOF
 
4778
rm -f conftest.$ac_objext conftest$ac_exeext
 
4779
if { (eval echo "$as_me:4779: \"$ac_link\"") >&5
 
4780
  (eval $ac_link) 2>&5
 
4781
  ac_status=$?
 
4782
  echo "$as_me:4782: \$? = $ac_status" >&5
 
4783
  (exit $ac_status); } &&
 
4784
         { ac_try='test -s conftest$ac_exeext'
 
4785
  { (eval echo "$as_me:4785: \"$ac_try\"") >&5
 
4786
  (eval $ac_try) 2>&5
 
4787
  ac_status=$?
 
4788
  echo "$as_me:4788: \$? = $ac_status" >&5
 
4789
  (exit $ac_status); }; }; then
 
4790
  lt_cv_cc_dll_switch=-mdll
 
4791
else
 
4792
  echo "$as_me: failed program was:" >&5
 
4793
cat conftest.$ac_ext >&5
 
4794
lt_cv_cc_dll_switch=-dll
 
4795
fi
 
4796
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4797
fi
 
4798
echo "$as_me:4798: result: $lt_cv_cc_dll_switch" >&5
 
4799
echo "${ECHO_T}$lt_cv_cc_dll_switch" >&6
 
4800
    CFLAGS="$SAVE_CFLAGS" ;;
 
4801
  *-*-cygwin* | *-*-pw32*)
 
4802
    # cygwin systems need to pass --dll to the linker, and not link
 
4803
    # crt.o which will require a WinMain@16 definition.
 
4804
    lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
 
4805
  esac
 
4806
  ;;
 
4807
 
 
4808
esac
 
4809
 
 
4810
# Sed substitution that helps us do robust quoting.  It backslashifies
 
4811
# metacharacters that are still active within double-quoted strings.
 
4812
Xsed='sed -e s/^X//'
 
4813
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
4814
 
 
4815
# Same as above, but do not quote variable references.
 
4816
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
4817
 
 
4818
# Sed substitution to delay expansion of an escaped shell variable in a
 
4819
# double_quote_subst'ed string.
 
4820
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
4821
 
 
4822
# Constants:
 
4823
rm="rm -f"
 
4824
 
 
4825
# Global variables:
 
4826
default_ofile=libtool
 
4827
can_build_shared=yes
 
4828
 
 
4829
# All known linkers require a `.a' archive for static linking (except M$VC,
 
4830
# which needs '.lib').
 
4831
libext=a
 
4832
ltmain="$ac_aux_dir/ltmain.sh"
 
4833
ofile="$default_ofile"
 
4834
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
4835
need_locks="$enable_libtool_lock"
 
4836
 
 
4837
old_CC="$CC"
 
4838
old_CFLAGS="$CFLAGS"
 
4839
 
 
4840
# Set sane defaults for various variables
 
4841
test -z "$AR" && AR=ar
 
4842
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
4843
test -z "$AS" && AS=as
 
4844
test -z "$CC" && CC=cc
 
4845
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
4846
test -z "$LD" && LD=ld
 
4847
test -z "$LN_S" && LN_S="ln -s"
 
4848
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
4849
test -z "$NM" && NM=nm
 
4850
test -z "$OBJDUMP" && OBJDUMP=objdump
 
4851
test -z "$RANLIB" && RANLIB=:
 
4852
test -z "$STRIP" && STRIP=:
 
4853
test -z "$ac_objext" && ac_objext=o
 
4854
 
 
4855
if test x"$host" != x"$build"; then
 
4856
  ac_tool_prefix=${host_alias}-
 
4857
else
 
4858
  ac_tool_prefix=
 
4859
fi
 
4860
 
 
4861
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
 
4862
case $host_os in
 
4863
linux-gnu*) ;;
 
4864
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
 
4865
esac
 
4866
 
 
4867
case $host_os in
 
4868
aix3*)
 
4869
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
4870
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
4871
  # vanish in a puff of smoke.
 
4872
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
4873
    COLLECT_NAMES=
 
4874
    export COLLECT_NAMES
 
4875
  fi
 
4876
  ;;
 
4877
esac
 
4878
 
 
4879
# Determine commands to create old-style static archives.
 
4880
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
4881
old_postinstall_cmds='chmod 644 $oldlib'
 
4882
old_postuninstall_cmds=
 
4883
 
 
4884
if test -n "$RANLIB"; then
 
4885
  case $host_os in
 
4886
  openbsd*)
 
4887
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
4888
    ;;
 
4889
  *)
 
4890
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
4891
    ;;
 
4892
  esac
 
4893
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
4894
fi
 
4895
 
 
4896
# Allow CC to be a program name with arguments.
 
4897
set dummy $CC
 
4898
compiler="$2"
 
4899
 
 
4900
echo "$as_me:4900: checking for objdir" >&5
 
4901
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
4902
rm -f .libs 2>/dev/null
 
4903
mkdir .libs 2>/dev/null
 
4904
if test -d .libs; then
 
4905
  objdir=.libs
 
4906
else
 
4907
  # MS-DOS does not allow filenames that begin with a dot.
 
4908
  objdir=_libs
 
4909
fi
 
4910
rmdir .libs 2>/dev/null
 
4911
echo "$as_me:4911: result: $objdir" >&5
 
4912
echo "${ECHO_T}$objdir" >&6
 
4913
 
 
4914
# Check whether --with-pic or --without-pic was given.
 
4915
if test "${with_pic+set}" = set; then
 
4916
  withval="$with_pic"
 
4917
  pic_mode="$withval"
 
4918
else
 
4919
  pic_mode=default
 
4920
fi;
 
4921
test -z "$pic_mode" && pic_mode=default
 
4922
 
 
4923
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
 
4924
# in isolation, and that seeing it set (from the cache) indicates that
 
4925
# the associated values are set (in the cache) correctly too.
 
4926
echo "$as_me:4926: checking for $compiler option to produce PIC" >&5
 
4927
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
4928
if test "${lt_cv_prog_cc_pic+set}" = set; then
 
4929
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4930
else
 
4931
   lt_cv_prog_cc_pic=
 
4932
  lt_cv_prog_cc_shlib=
 
4933
  lt_cv_prog_cc_wl=
 
4934
  lt_cv_prog_cc_static=
 
4935
  lt_cv_prog_cc_no_builtin=
 
4936
  lt_cv_prog_cc_can_build_shared=$can_build_shared
 
4937
 
 
4938
  if test "$GCC" = yes; then
 
4939
    lt_cv_prog_cc_wl='-Wl,'
 
4940
    lt_cv_prog_cc_static='-static'
 
4941
 
 
4942
    case $host_os in
 
4943
    aix*)
 
4944
      # Below there is a dirty hack to force normal static linking with -ldl
 
4945
      # The problem is because libdl dynamically linked with both libc and
 
4946
      # libC (AIX C++ library), which obviously doesn't included in libraries
 
4947
      # list by gcc. This cause undefined symbols with -static flags.
 
4948
      # This hack allows C programs to be linked with "-static -ldl", but
 
4949
      # not sure about C++ programs.
 
4950
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
 
4951
      ;;
 
4952
    amigaos*)
 
4953
      # FIXME: we need at least 68020 code to build shared libraries, but
 
4954
      # adding the `-m68020' flag to GCC prevents building anything better,
 
4955
      # like `-m68040'.
 
4956
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
 
4957
      ;;
 
4958
    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
 
4959
      # PIC is the default for these OSes.
 
4960
      ;;
 
4961
    darwin* | rhapsody*)
 
4962
      # PIC is the default on this platform
 
4963
      # Common symbols not allowed in MH_DYLIB files
 
4964
      lt_cv_prog_cc_pic='-fno-common'
 
4965
      ;;
 
4966
    cygwin* | mingw* | pw32* | os2*)
 
4967
      # This hack is so that the source file can tell whether it is being
 
4968
      # built for inclusion in a dll (and should export symbols for example).
 
4969
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
 
4970
      ;;
 
4971
    sysv4*MP*)
 
4972
      if test -d /usr/nec; then
 
4973
         lt_cv_prog_cc_pic=-Kconform_pic
 
4974
      fi
 
4975
      ;;
 
4976
    *)
 
4977
      lt_cv_prog_cc_pic='-fPIC'
 
4978
      ;;
 
4979
    esac
 
4980
  else
 
4981
    # PORTME Check for PIC flags for the system compiler.
 
4982
    case $host_os in
 
4983
    aix3* | aix4* | aix5*)
 
4984
      lt_cv_prog_cc_wl='-Wl,'
 
4985
      # All AIX code is PIC.
 
4986
      if test "$host_cpu" = ia64; then
 
4987
        # AIX 5 now supports IA64 processor
 
4988
        lt_cv_prog_cc_static='-Bstatic'
 
4989
      else
 
4990
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
 
4991
      fi
 
4992
      ;;
 
4993
 
 
4994
    hpux9* | hpux10* | hpux11*)
 
4995
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
 
4996
      lt_cv_prog_cc_wl='-Wl,'
 
4997
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
 
4998
      lt_cv_prog_cc_pic='+Z'
 
4999
      ;;
 
5000
 
 
5001
    irix5* | irix6*)
 
5002
      lt_cv_prog_cc_wl='-Wl,'
 
5003
      lt_cv_prog_cc_static='-non_shared'
 
5004
      # PIC (with -KPIC) is the default.
 
5005
      ;;
 
5006
 
 
5007
    cygwin* | mingw* | pw32* | os2*)
 
5008
      # This hack is so that the source file can tell whether it is being
 
5009
      # built for inclusion in a dll (and should export symbols for example).
 
5010
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
 
5011
      ;;
 
5012
 
 
5013
    newsos6)
 
5014
      lt_cv_prog_cc_pic='-KPIC'
 
5015
      lt_cv_prog_cc_static='-Bstatic'
 
5016
      ;;
 
5017
 
 
5018
    osf3* | osf4* | osf5*)
 
5019
      # All OSF/1 code is PIC.
 
5020
      lt_cv_prog_cc_wl='-Wl,'
 
5021
      lt_cv_prog_cc_static='-non_shared'
 
5022
      ;;
 
5023
 
 
5024
    sco3.2v5*)
 
5025
      lt_cv_prog_cc_pic='-Kpic'
 
5026
      lt_cv_prog_cc_static='-dn'
 
5027
      lt_cv_prog_cc_shlib='-belf'
 
5028
      ;;
 
5029
 
 
5030
    solaris*)
 
5031
      lt_cv_prog_cc_pic='-KPIC'
 
5032
      lt_cv_prog_cc_static='-Bstatic'
 
5033
      lt_cv_prog_cc_wl='-Wl,'
 
5034
      ;;
 
5035
 
 
5036
    sunos4*)
 
5037
      lt_cv_prog_cc_pic='-PIC'
 
5038
      lt_cv_prog_cc_static='-Bstatic'
 
5039
      lt_cv_prog_cc_wl='-Qoption ld '
 
5040
      ;;
 
5041
 
 
5042
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5043
      lt_cv_prog_cc_pic='-KPIC'
 
5044
      lt_cv_prog_cc_static='-Bstatic'
 
5045
      if test "x$host_vendor" = xsni; then
 
5046
        lt_cv_prog_cc_wl='-LD'
 
5047
      else
 
5048
        lt_cv_prog_cc_wl='-Wl,'
 
5049
      fi
 
5050
      ;;
 
5051
 
 
5052
    uts4*)
 
5053
      lt_cv_prog_cc_pic='-pic'
 
5054
      lt_cv_prog_cc_static='-Bstatic'
 
5055
      ;;
 
5056
 
 
5057
    sysv4*MP*)
 
5058
      if test -d /usr/nec ;then
 
5059
        lt_cv_prog_cc_pic='-Kconform_pic'
 
5060
        lt_cv_prog_cc_static='-Bstatic'
 
5061
      fi
 
5062
      ;;
 
5063
 
 
5064
    *)
 
5065
      lt_cv_prog_cc_can_build_shared=no
 
5066
      ;;
 
5067
    esac
 
5068
  fi
 
5069
 
 
5070
fi
 
5071
 
 
5072
if test -z "$lt_cv_prog_cc_pic"; then
 
5073
  echo "$as_me:5073: result: none" >&5
 
5074
echo "${ECHO_T}none" >&6
 
5075
else
 
5076
  echo "$as_me:5076: result: $lt_cv_prog_cc_pic" >&5
 
5077
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
 
5078
 
 
5079
  # Check to make sure the pic_flag actually works.
 
5080
  echo "$as_me:5080: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
 
5081
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
 
5082
  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
 
5083
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5084
else
 
5085
      save_CFLAGS="$CFLAGS"
 
5086
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
 
5087
    cat >conftest.$ac_ext <<_ACEOF
 
5088
#line 5088 "configure"
 
5089
#include "confdefs.h"
 
5090
 
 
5091
int
 
5092
main ()
 
5093
{
 
5094
 
 
5095
  ;
 
5096
  return 0;
 
5097
}
 
5098
_ACEOF
 
5099
rm -f conftest.$ac_objext
 
5100
if { (eval echo "$as_me:5100: \"$ac_compile\"") >&5
 
5101
  (eval $ac_compile) 2>&5
 
5102
  ac_status=$?
 
5103
  echo "$as_me:5103: \$? = $ac_status" >&5
 
5104
  (exit $ac_status); } &&
 
5105
         { ac_try='test -s conftest.$ac_objext'
 
5106
  { (eval echo "$as_me:5106: \"$ac_try\"") >&5
 
5107
  (eval $ac_try) 2>&5
 
5108
  ac_status=$?
 
5109
  echo "$as_me:5109: \$? = $ac_status" >&5
 
5110
  (exit $ac_status); }; }; then
 
5111
        case $host_os in
 
5112
      hpux9* | hpux10* | hpux11*)
 
5113
        # On HP-UX, both CC and GCC only warn that PIC is supported... then
 
5114
        # they create non-PIC objects.  So, if there were any warnings, we
 
5115
        # assume that PIC is not supported.
 
5116
        if test -s conftest.err; then
 
5117
          lt_cv_prog_cc_pic_works=no
 
5118
        else
 
5119
          lt_cv_prog_cc_pic_works=yes
 
5120
        fi
 
5121
        ;;
 
5122
      *)
 
5123
        lt_cv_prog_cc_pic_works=yes
 
5124
        ;;
 
5125
      esac
 
5126
 
 
5127
else
 
5128
  echo "$as_me: failed program was:" >&5
 
5129
cat conftest.$ac_ext >&5
 
5130
      lt_cv_prog_cc_pic_works=no
 
5131
 
 
5132
fi
 
5133
rm -f conftest.$ac_objext conftest.$ac_ext
 
5134
    CFLAGS="$save_CFLAGS"
 
5135
 
 
5136
fi
 
5137
 
 
5138
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
 
5139
    lt_cv_prog_cc_pic=
 
5140
    lt_cv_prog_cc_can_build_shared=no
 
5141
  else
 
5142
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
 
5143
  fi
 
5144
 
 
5145
  echo "$as_me:5145: result: $lt_cv_prog_cc_pic_works" >&5
 
5146
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
 
5147
fi
 
5148
 
 
5149
# Check for any special shared library compilation flags.
 
5150
if test -n "$lt_cv_prog_cc_shlib"; then
 
5151
  { echo "$as_me:5151: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
 
5152
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
 
5153
  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
 
5154
  else
 
5155
   { echo "$as_me:5155: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
5156
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
5157
    lt_cv_prog_cc_can_build_shared=no
 
5158
  fi
 
5159
fi
 
5160
 
 
5161
echo "$as_me:5161: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
 
5162
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
 
5163
if test "${lt_cv_prog_cc_static_works+set}" = set; then
 
5164
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5165
else
 
5166
    lt_cv_prog_cc_static_works=no
 
5167
  save_LDFLAGS="$LDFLAGS"
 
5168
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
 
5169
  cat >conftest.$ac_ext <<_ACEOF
 
5170
#line 5170 "configure"
 
5171
#include "confdefs.h"
 
5172
 
 
5173
int
 
5174
main ()
 
5175
{
 
5176
 
 
5177
  ;
 
5178
  return 0;
 
5179
}
 
5180
_ACEOF
 
5181
rm -f conftest.$ac_objext conftest$ac_exeext
 
5182
if { (eval echo "$as_me:5182: \"$ac_link\"") >&5
 
5183
  (eval $ac_link) 2>&5
 
5184
  ac_status=$?
 
5185
  echo "$as_me:5185: \$? = $ac_status" >&5
 
5186
  (exit $ac_status); } &&
 
5187
         { ac_try='test -s conftest$ac_exeext'
 
5188
  { (eval echo "$as_me:5188: \"$ac_try\"") >&5
 
5189
  (eval $ac_try) 2>&5
 
5190
  ac_status=$?
 
5191
  echo "$as_me:5191: \$? = $ac_status" >&5
 
5192
  (exit $ac_status); }; }; then
 
5193
  lt_cv_prog_cc_static_works=yes
 
5194
else
 
5195
  echo "$as_me: failed program was:" >&5
 
5196
cat conftest.$ac_ext >&5
 
5197
fi
 
5198
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5199
  LDFLAGS="$save_LDFLAGS"
 
5200
 
 
5201
fi
 
5202
 
 
5203
# Belt *and* braces to stop my trousers falling down:
 
5204
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
 
5205
echo "$as_me:5205: result: $lt_cv_prog_cc_static_works" >&5
 
5206
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
 
5207
 
 
5208
pic_flag="$lt_cv_prog_cc_pic"
 
5209
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
 
5210
wl="$lt_cv_prog_cc_wl"
 
5211
link_static_flag="$lt_cv_prog_cc_static"
 
5212
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
 
5213
can_build_shared="$lt_cv_prog_cc_can_build_shared"
 
5214
 
 
5215
# Check to see if options -o and -c are simultaneously supported by compiler
 
5216
echo "$as_me:5216: checking if $compiler supports -c -o file.$ac_objext" >&5
 
5217
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
5218
if test "${lt_cv_compiler_c_o+set}" = set; then
 
5219
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5220
else
 
5221
 
 
5222
$rm -r conftest 2>/dev/null
 
5223
mkdir conftest
 
5224
cd conftest
 
5225
echo "int some_variable = 0;" > conftest.$ac_ext
 
5226
mkdir out
 
5227
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
5228
# that will create temporary files in the current directory regardless of
 
5229
# the output directory.  Thus, making CWD read-only will cause this test
 
5230
# to fail, enabling locking or at least warning the user not to do parallel
 
5231
# builds.
 
5232
chmod -w .
 
5233
save_CFLAGS="$CFLAGS"
 
5234
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
 
5235
compiler_c_o=no
 
5236
if { (eval echo configure:5236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
 
5237
  # The compiler can only warn and ignore the option if not recognized
 
5238
  # So say no if there are warnings
 
5239
  if test -s out/conftest.err; then
 
5240
    lt_cv_compiler_c_o=no
 
5241
  else
 
5242
    lt_cv_compiler_c_o=yes
 
5243
  fi
 
5244
else
 
5245
  # Append any errors to the config.log.
 
5246
  cat out/conftest.err 1>&5
 
5247
  lt_cv_compiler_c_o=no
 
5248
fi
 
5249
CFLAGS="$save_CFLAGS"
 
5250
chmod u+w .
 
5251
$rm conftest* out/*
 
5252
rmdir out
 
5253
cd ..
 
5254
rmdir conftest
 
5255
$rm -r conftest 2>/dev/null
 
5256
 
 
5257
fi
 
5258
 
 
5259
compiler_c_o=$lt_cv_compiler_c_o
 
5260
echo "$as_me:5260: result: $compiler_c_o" >&5
 
5261
echo "${ECHO_T}$compiler_c_o" >&6
 
5262
 
 
5263
if test x"$compiler_c_o" = x"yes"; then
 
5264
  # Check to see if we can write to a .lo
 
5265
  echo "$as_me:5265: checking if $compiler supports -c -o file.lo" >&5
 
5266
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
 
5267
  if test "${lt_cv_compiler_o_lo+set}" = set; then
 
5268
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5269
else
 
5270
 
 
5271
  lt_cv_compiler_o_lo=no
 
5272
  save_CFLAGS="$CFLAGS"
 
5273
  CFLAGS="$CFLAGS -c -o conftest.lo"
 
5274
  save_objext="$ac_objext"
 
5275
  ac_objext=lo
 
5276
  cat >conftest.$ac_ext <<_ACEOF
 
5277
#line 5277 "configure"
 
5278
#include "confdefs.h"
 
5279
 
 
5280
int
 
5281
main ()
 
5282
{
 
5283
int some_variable = 0;
 
5284
  ;
 
5285
  return 0;
 
5286
}
 
5287
_ACEOF
 
5288
rm -f conftest.$ac_objext
 
5289
if { (eval echo "$as_me:5289: \"$ac_compile\"") >&5
 
5290
  (eval $ac_compile) 2>&5
 
5291
  ac_status=$?
 
5292
  echo "$as_me:5292: \$? = $ac_status" >&5
 
5293
  (exit $ac_status); } &&
 
5294
         { ac_try='test -s conftest.$ac_objext'
 
5295
  { (eval echo "$as_me:5295: \"$ac_try\"") >&5
 
5296
  (eval $ac_try) 2>&5
 
5297
  ac_status=$?
 
5298
  echo "$as_me:5298: \$? = $ac_status" >&5
 
5299
  (exit $ac_status); }; }; then
 
5300
      # The compiler can only warn and ignore the option if not recognized
 
5301
    # So say no if there are warnings
 
5302
    if test -s conftest.err; then
 
5303
      lt_cv_compiler_o_lo=no
 
5304
    else
 
5305
      lt_cv_compiler_o_lo=yes
 
5306
    fi
 
5307
 
 
5308
else
 
5309
  echo "$as_me: failed program was:" >&5
 
5310
cat conftest.$ac_ext >&5
 
5311
fi
 
5312
rm -f conftest.$ac_objext conftest.$ac_ext
 
5313
  ac_objext="$save_objext"
 
5314
  CFLAGS="$save_CFLAGS"
 
5315
 
 
5316
fi
 
5317
 
 
5318
  compiler_o_lo=$lt_cv_compiler_o_lo
 
5319
  echo "$as_me:5319: result: $compiler_o_lo" >&5
 
5320
echo "${ECHO_T}$compiler_o_lo" >&6
 
5321
else
 
5322
  compiler_o_lo=no
 
5323
fi
 
5324
 
 
5325
# Check to see if we can do hard links to lock some files if needed
 
5326
hard_links="nottested"
 
5327
if test "$compiler_c_o" = no && test "$need_locks" != no; then
 
5328
  # do not overwrite the value of need_locks provided by the user
 
5329
  echo "$as_me:5329: checking if we can lock with hard links" >&5
 
5330
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
5331
  hard_links=yes
 
5332
  $rm conftest*
 
5333
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
5334
  touch conftest.a
 
5335
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
5336
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
5337
  echo "$as_me:5337: result: $hard_links" >&5
 
5338
echo "${ECHO_T}$hard_links" >&6
 
5339
  if test "$hard_links" = no; then
 
5340
    { echo "$as_me:5340: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
5341
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
5342
    need_locks=warn
 
5343
  fi
 
5344
else
 
5345
  need_locks=no
 
5346
fi
 
5347
 
 
5348
if test "$GCC" = yes; then
 
5349
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
 
5350
  echo "$as_me:5350: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
5351
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
5352
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5353
  save_CFLAGS="$CFLAGS"
 
5354
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
 
5355
  compiler_rtti_exceptions=no
 
5356
  cat >conftest.$ac_ext <<_ACEOF
 
5357
#line 5357 "configure"
 
5358
#include "confdefs.h"
 
5359
 
 
5360
int
 
5361
main ()
 
5362
{
 
5363
int some_variable = 0;
 
5364
  ;
 
5365
  return 0;
 
5366
}
 
5367
_ACEOF
 
5368
rm -f conftest.$ac_objext
 
5369
if { (eval echo "$as_me:5369: \"$ac_compile\"") >&5
 
5370
  (eval $ac_compile) 2>&5
 
5371
  ac_status=$?
 
5372
  echo "$as_me:5372: \$? = $ac_status" >&5
 
5373
  (exit $ac_status); } &&
 
5374
         { ac_try='test -s conftest.$ac_objext'
 
5375
  { (eval echo "$as_me:5375: \"$ac_try\"") >&5
 
5376
  (eval $ac_try) 2>&5
 
5377
  ac_status=$?
 
5378
  echo "$as_me:5378: \$? = $ac_status" >&5
 
5379
  (exit $ac_status); }; }; then
 
5380
      # The compiler can only warn and ignore the option if not recognized
 
5381
    # So say no if there are warnings
 
5382
    if test -s conftest.err; then
 
5383
      compiler_rtti_exceptions=no
 
5384
    else
 
5385
      compiler_rtti_exceptions=yes
 
5386
    fi
 
5387
 
 
5388
else
 
5389
  echo "$as_me: failed program was:" >&5
 
5390
cat conftest.$ac_ext >&5
 
5391
fi
 
5392
rm -f conftest.$ac_objext conftest.$ac_ext
 
5393
  CFLAGS="$save_CFLAGS"
 
5394
  echo "$as_me:5394: result: $compiler_rtti_exceptions" >&5
 
5395
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
 
5396
 
 
5397
  if test "$compiler_rtti_exceptions" = "yes"; then
 
5398
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
 
5399
  else
 
5400
    no_builtin_flag=' -fno-builtin'
 
5401
  fi
 
5402
fi
 
5403
 
 
5404
# See if the linker supports building shared libraries.
 
5405
echo "$as_me:5405: checking whether the linker ($LD) supports shared libraries" >&5
 
5406
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
 
5407
 
 
5408
allow_undefined_flag=
 
5409
no_undefined_flag=
 
5410
need_lib_prefix=unknown
 
5411
need_version=unknown
 
5412
# when you set need_version to no, make sure it does not cause -set_version
 
5413
# flags to be left without arguments
 
5414
archive_cmds=
 
5415
archive_expsym_cmds=
 
5416
old_archive_from_new_cmds=
 
5417
old_archive_from_expsyms_cmds=
 
5418
export_dynamic_flag_spec=
 
5419
whole_archive_flag_spec=
 
5420
thread_safe_flag_spec=
 
5421
hardcode_into_libs=no
 
5422
hardcode_libdir_flag_spec=
 
5423
hardcode_libdir_separator=
 
5424
hardcode_direct=no
 
5425
hardcode_minus_L=no
 
5426
hardcode_shlibpath_var=unsupported
 
5427
runpath_var=
 
5428
link_all_deplibs=unknown
 
5429
always_export_symbols=no
 
5430
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5431
# include_expsyms should be a list of space-separated symbols to be *always*
 
5432
# included in the symbol list
 
5433
include_expsyms=
 
5434
# exclude_expsyms can be an egrep regular expression of symbols to exclude
 
5435
# it will be wrapped by ` (' and `)$', so one must not match beginning or
 
5436
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
5437
# as well as any symbol that contains `d'.
 
5438
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
5439
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
5440
# platforms (ab)use it in PIC code, but their linkers get confused if
 
5441
# the symbol is explicitly referenced.  Since portable code cannot
 
5442
# rely on this symbol name, it's probably fine to never include it in
 
5443
# preloaded symbol tables.
 
5444
extract_expsyms_cmds=
 
5445
 
 
5446
case $host_os in
 
5447
cygwin* | mingw* | pw32*)
 
5448
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
5449
  # When not using gcc, we currently assume that we are using
 
5450
  # Microsoft Visual C++.
 
5451
  if test "$GCC" != yes; then
 
5452
    with_gnu_ld=no
 
5453
  fi
 
5454
  ;;
 
5455
openbsd*)
 
5456
  with_gnu_ld=no
 
5457
  ;;
 
5458
esac
 
5459
 
 
5460
ld_shlibs=yes
 
5461
if test "$with_gnu_ld" = yes; then
 
5462
  # If archive_cmds runs LD, not CC, wlarc should be empty
 
5463
  wlarc='${wl}'
 
5464
 
 
5465
  # See if GNU ld supports shared libraries.
 
5466
  case $host_os in
 
5467
  aix3* | aix4* | aix5*)
 
5468
    # On AIX, the GNU linker is very broken
 
5469
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
 
5470
    ld_shlibs=no
 
5471
    cat <<EOF 1>&2
 
5472
 
 
5473
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
5474
*** to be unable to reliably create shared libraries on AIX.
 
5475
*** Therefore, libtool is disabling shared libraries support.  If you
 
5476
*** really care for shared libraries, you may want to modify your PATH
 
5477
*** so that a non-GNU linker is found, and then restart.
 
5478
 
 
5479
EOF
 
5480
    ;;
 
5481
 
 
5482
  amigaos*)
 
5483
    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)'
 
5484
    hardcode_libdir_flag_spec='-L$libdir'
 
5485
    hardcode_minus_L=yes
 
5486
 
 
5487
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
5488
    # that the semantics of dynamic libraries on AmigaOS, at least up
 
5489
    # to version 4, is to share data among multiple programs linked
 
5490
    # with the same dynamic library.  Since this doesn't match the
 
5491
    # behavior of shared libraries on other platforms, we can use
 
5492
    # them.
 
5493
    ld_shlibs=no
 
5494
    ;;
 
5495
 
 
5496
  beos*)
 
5497
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
5498
      allow_undefined_flag=unsupported
 
5499
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
5500
      # support --undefined.  This deserves some investigation.  FIXME
 
5501
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5502
    else
 
5503
      ld_shlibs=no
 
5504
    fi
 
5505
    ;;
 
5506
 
 
5507
  cygwin* | mingw* | pw32*)
 
5508
    # hardcode_libdir_flag_spec is actually meaningless, as there is
 
5509
    # no search path for DLLs.
 
5510
    hardcode_libdir_flag_spec='-L$libdir'
 
5511
    allow_undefined_flag=unsupported
 
5512
    always_export_symbols=yes
 
5513
 
 
5514
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
 
5515
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
 
5516
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
 
5517
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
 
5518
      else $CC -o impgen impgen.c ; fi)~
 
5519
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
 
5520
 
 
5521
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
 
5522
 
 
5523
    # cygwin and mingw dlls have different entry points and sets of symbols
 
5524
    # to exclude.
 
5525
    # FIXME: what about values for MSVC?
 
5526
    dll_entry=__cygwin_dll_entry@12
 
5527
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
 
5528
    case $host_os in
 
5529
    mingw*)
 
5530
      # mingw values
 
5531
      dll_entry=_DllMainCRTStartup@12
 
5532
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
 
5533
      ;;
 
5534
    esac
 
5535
 
 
5536
    # mingw and cygwin differ, and it's simplest to just exclude the union
 
5537
    # of the two symbol sets.
 
5538
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
 
5539
 
 
5540
    # recent cygwin and mingw systems supply a stub DllMain which the user
 
5541
    # can override, but on older systems we have to supply one (in ltdll.c)
 
5542
    if test "x$lt_cv_need_dllmain" = "xyes"; then
 
5543
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
 
5544
      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~
 
5545
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
 
5546
    else
 
5547
      ltdll_obj=
 
5548
      ltdll_cmds=
 
5549
    fi
 
5550
 
 
5551
    # Extract the symbol export list from an `--export-all' def file,
 
5552
    # then regenerate the def file from the symbol export list, so that
 
5553
    # the compiled dll only exports the symbol export list.
 
5554
    # Be careful not to strip the DATA tag left be newer dlltools.
 
5555
    export_symbols_cmds="$ltdll_cmds"'
 
5556
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
 
5557
      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
 
5558
 
 
5559
    # If the export-symbols file already is a .def file (1st line
 
5560
    # is EXPORTS), use it as is.
 
5561
    # If DATA tags from a recent dlltool are present, honour them!
 
5562
    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
 
5563
        cp $export_symbols $output_objdir/$soname-def;
 
5564
      else
 
5565
        echo EXPORTS > $output_objdir/$soname-def;
 
5566
        _lt_hint=1;
 
5567
        cat $export_symbols | while read symbol; do
 
5568
         set dummy \$symbol;
 
5569
         case \$# in
 
5570
           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
 
5571
           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
 
5572
         esac;
 
5573
         _lt_hint=`expr 1 + \$_lt_hint`;
 
5574
        done;
 
5575
      fi~
 
5576
      '"$ltdll_cmds"'
 
5577
      $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~
 
5578
      $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~
 
5579
      $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~
 
5580
      $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~
 
5581
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
 
5582
    ;;
 
5583
 
 
5584
  netbsd*)
 
5585
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
5586
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
5587
      wlarc=
 
5588
    else
 
5589
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5590
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5591
    fi
 
5592
    ;;
 
5593
 
 
5594
  solaris* | sysv5*)
 
5595
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
 
5596
      ld_shlibs=no
 
5597
      cat <<EOF 1>&2
 
5598
 
 
5599
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
5600
*** create shared libraries on Solaris systems.  Therefore, libtool
 
5601
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
5602
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
5603
*** your PATH or compiler configuration so that the native linker is
 
5604
*** used, and then restart.
 
5605
 
 
5606
EOF
 
5607
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
5608
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5609
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5610
    else
 
5611
      ld_shlibs=no
 
5612
    fi
 
5613
    ;;
 
5614
 
 
5615
  sunos4*)
 
5616
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5617
    wlarc=
 
5618
    hardcode_direct=yes
 
5619
    hardcode_shlibpath_var=no
 
5620
    ;;
 
5621
 
 
5622
  *)
 
5623
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
5624
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5625
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5626
    else
 
5627
      ld_shlibs=no
 
5628
    fi
 
5629
    ;;
 
5630
  esac
 
5631
 
 
5632
  if test "$ld_shlibs" = yes; then
 
5633
    runpath_var=LD_RUN_PATH
 
5634
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
5635
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
5636
    case $host_os in
 
5637
    cygwin* | mingw* | pw32*)
 
5638
      # dlltool doesn't understand --whole-archive et. al.
 
5639
      whole_archive_flag_spec=
 
5640
      ;;
 
5641
    *)
 
5642
      # ancient GNU ld didn't support --whole-archive et. al.
 
5643
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
 
5644
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5645
      else
 
5646
        whole_archive_flag_spec=
 
5647
      fi
 
5648
      ;;
 
5649
    esac
 
5650
  fi
 
5651
else
 
5652
  # PORTME fill in a description of your system's linker (not GNU ld)
 
5653
  case $host_os in
 
5654
  aix3*)
 
5655
    allow_undefined_flag=unsupported
 
5656
    always_export_symbols=yes
 
5657
    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'
 
5658
    # Note: this linker hardcodes the directories in LIBPATH if there
 
5659
    # are no directories specified by -L.
 
5660
    hardcode_minus_L=yes
 
5661
    if test "$GCC" = yes && test -z "$link_static_flag"; then
 
5662
      # Neither direct hardcoding nor static linking is supported with a
 
5663
      # broken collect2.
 
5664
      hardcode_direct=unsupported
 
5665
    fi
 
5666
    ;;
 
5667
 
 
5668
  aix4* | aix5*)
 
5669
    if test "$host_cpu" = ia64; then
 
5670
      # On IA64, the linker does run time linking by default, so we don't
 
5671
      # have to do anything special.
 
5672
      aix_use_runtimelinking=no
 
5673
      exp_sym_flag='-Bexport'
 
5674
      no_entry_flag=""
 
5675
    else
 
5676
      aix_use_runtimelinking=no
 
5677
 
 
5678
      # Test if we are trying to use run time linking or normal
 
5679
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
5680
      # need to do runtime linking.
 
5681
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
5682
        for ld_flag in $LDFLAGS; do
 
5683
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
5684
            aix_use_runtimelinking=yes
 
5685
            break
 
5686
          fi
 
5687
        done
 
5688
      esac
 
5689
 
 
5690
      exp_sym_flag='-bexport'
 
5691
      no_entry_flag='-bnoentry'
 
5692
    fi
 
5693
 
 
5694
    # When large executables or shared objects are built, AIX ld can
 
5695
    # have problems creating the table of contents.  If linking a library
 
5696
    # or program results in "error TOC overflow" add -mminimal-toc to
 
5697
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
5698
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
5699
 
 
5700
    hardcode_direct=yes
 
5701
    archive_cmds=''
 
5702
    hardcode_libdir_separator=':'
 
5703
    if test "$GCC" = yes; then
 
5704
      case $host_os in aix4.[012]|aix4.[012].*)
 
5705
        collect2name=`${CC} -print-prog-name=collect2`
 
5706
        if test -f "$collect2name" && \
 
5707
          strings "$collect2name" | grep resolve_lib_name >/dev/null
 
5708
        then
 
5709
          # We have reworked collect2
 
5710
          hardcode_direct=yes
 
5711
        else
 
5712
          # We have old collect2
 
5713
          hardcode_direct=unsupported
 
5714
          # It fails to find uninstalled libraries when the uninstalled
 
5715
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
5716
          # to unsupported forces relinking
 
5717
          hardcode_minus_L=yes
 
5718
          hardcode_libdir_flag_spec='-L$libdir'
 
5719
          hardcode_libdir_separator=
 
5720
        fi
 
5721
      esac
 
5722
 
 
5723
      shared_flag='-shared'
 
5724
    else
 
5725
      # not using gcc
 
5726
      if test "$host_cpu" = ia64; then
 
5727
        shared_flag='${wl}-G'
 
5728
      else
 
5729
        if test "$aix_use_runtimelinking" = yes; then
 
5730
          shared_flag='${wl}-G'
 
5731
        else
 
5732
          shared_flag='${wl}-bM:SRE'
 
5733
        fi
 
5734
      fi
 
5735
    fi
 
5736
 
 
5737
    # It seems that -bexpall can do strange things, so it is better to
 
5738
    # generate a list of symbols to export.
 
5739
    always_export_symbols=yes
 
5740
    if test "$aix_use_runtimelinking" = yes; then
 
5741
      # Warning - without using the other runtime loading flags (-brtl),
 
5742
      # -berok will link without error, but may produce a broken library.
 
5743
      allow_undefined_flag='-berok'
 
5744
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
 
5745
      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
5746
    else
 
5747
      if test "$host_cpu" = ia64; then
 
5748
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
5749
        allow_undefined_flag="-z nodefs"
 
5750
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
5751
      else
 
5752
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
 
5753
        # Warning - without using the other run time loading flags,
 
5754
        # -berok will link without error, but may produce a broken library.
 
5755
        allow_undefined_flag='${wl}-berok'
 
5756
        # This is a bit strange, but is similar to how AIX traditionally builds
 
5757
        # it's shared libraries.
 
5758
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
 
5759
      fi
 
5760
    fi
 
5761
    ;;
 
5762
 
 
5763
  amigaos*)
 
5764
    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)'
 
5765
    hardcode_libdir_flag_spec='-L$libdir'
 
5766
    hardcode_minus_L=yes
 
5767
    # see comment about different semantics on the GNU ld section
 
5768
    ld_shlibs=no
 
5769
    ;;
 
5770
 
 
5771
  cygwin* | mingw* | pw32*)
 
5772
    # When not using gcc, we currently assume that we are using
 
5773
    # Microsoft Visual C++.
 
5774
    # hardcode_libdir_flag_spec is actually meaningless, as there is
 
5775
    # no search path for DLLs.
 
5776
    hardcode_libdir_flag_spec=' '
 
5777
    allow_undefined_flag=unsupported
 
5778
    # Tell ltmain to make .lib files, not .a files.
 
5779
    libext=lib
 
5780
    # FIXME: Setting linknames here is a bad hack.
 
5781
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
5782
    # The linker will automatically build a .lib file if we build a DLL.
 
5783
    old_archive_from_new_cmds='true'
 
5784
    # FIXME: Should let the user specify the lib program.
 
5785
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
5786
    fix_srcfile_path='`cygpath -w "$srcfile"`'
 
5787
    ;;
 
5788
 
 
5789
  darwin* | rhapsody*)
 
5790
    case "$host_os" in
 
5791
    rhapsody* | darwin1.[012])
 
5792
      allow_undefined_flag='-undefined suppress'
 
5793
      ;;
 
5794
    *) # Darwin 1.3 on
 
5795
      allow_undefined_flag='-flat_namespace -undefined suppress'
 
5796
      ;;
 
5797
    esac
 
5798
    # FIXME: Relying on posixy $() will cause problems for
 
5799
    #        cross-compilation, but unfortunately the echo tests do not
 
5800
    #        yet detect zsh echo's removal of \ escapes.
 
5801
    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'
 
5802
    # We need to add '_' to the symbols in $export_symbols first
 
5803
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
 
5804
    hardcode_direct=yes
 
5805
    hardcode_shlibpath_var=no
 
5806
    whole_archive_flag_spec='-all_load $convenience'
 
5807
    ;;
 
5808
 
 
5809
  freebsd1*)
 
5810
    ld_shlibs=no
 
5811
    ;;
 
5812
 
 
5813
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
5814
  # support.  Future versions do this automatically, but an explicit c++rt0.o
 
5815
  # does not break anything, and helps significantly (at the cost of a little
 
5816
  # extra space).
 
5817
  freebsd2.2*)
 
5818
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
5819
    hardcode_libdir_flag_spec='-R$libdir'
 
5820
    hardcode_direct=yes
 
5821
    hardcode_shlibpath_var=no
 
5822
    ;;
 
5823
 
 
5824
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
5825
  freebsd2*)
 
5826
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5827
    hardcode_direct=yes
 
5828
    hardcode_minus_L=yes
 
5829
    hardcode_shlibpath_var=no
 
5830
    ;;
 
5831
 
 
5832
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
5833
  freebsd*)
 
5834
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5835
    hardcode_libdir_flag_spec='-R$libdir'
 
5836
    hardcode_direct=yes
 
5837
    hardcode_shlibpath_var=no
 
5838
    ;;
 
5839
 
 
5840
  hpux9* | hpux10* | hpux11*)
 
5841
    case $host_os in
 
5842
    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' ;;
 
5843
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
 
5844
    esac
 
5845
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
5846
    hardcode_libdir_separator=:
 
5847
    hardcode_direct=yes
 
5848
    hardcode_minus_L=yes # Not in the search PATH, but as the default
 
5849
                         # location of the library.
 
5850
    export_dynamic_flag_spec='${wl}-E'
 
5851
    ;;
 
5852
 
 
5853
  irix5* | irix6*)
 
5854
    if test "$GCC" = yes; then
 
5855
      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'
 
5856
    else
 
5857
      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'
 
5858
    fi
 
5859
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
5860
    hardcode_libdir_separator=:
 
5861
    link_all_deplibs=yes
 
5862
    ;;
 
5863
 
 
5864
  netbsd*)
 
5865
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
5866
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
5867
    else
 
5868
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
5869
    fi
 
5870
    hardcode_libdir_flag_spec='-R$libdir'
 
5871
    hardcode_direct=yes
 
5872
    hardcode_shlibpath_var=no
 
5873
    ;;
 
5874
 
 
5875
  newsos6)
 
5876
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5877
    hardcode_direct=yes
 
5878
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
5879
    hardcode_libdir_separator=:
 
5880
    hardcode_shlibpath_var=no
 
5881
    ;;
 
5882
 
 
5883
  openbsd*)
 
5884
    hardcode_direct=yes
 
5885
    hardcode_shlibpath_var=no
 
5886
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5887
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
 
5888
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
5889
      export_dynamic_flag_spec='${wl}-E'
 
5890
    else
 
5891
      case "$host_os" in
 
5892
      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
5893
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5894
        hardcode_libdir_flag_spec='-R$libdir'
 
5895
        ;;
 
5896
      *)
 
5897
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
 
5898
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
5899
        ;;
 
5900
      esac
 
5901
    fi
 
5902
    ;;
 
5903
 
 
5904
  os2*)
 
5905
    hardcode_libdir_flag_spec='-L$libdir'
 
5906
    hardcode_minus_L=yes
 
5907
    allow_undefined_flag=unsupported
 
5908
    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'
 
5909
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
5910
    ;;
 
5911
 
 
5912
  osf3*)
 
5913
    if test "$GCC" = yes; then
 
5914
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
5915
      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'
 
5916
    else
 
5917
      allow_undefined_flag=' -expect_unresolved \*'
 
5918
      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'
 
5919
    fi
 
5920
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
5921
    hardcode_libdir_separator=:
 
5922
    ;;
 
5923
 
 
5924
  osf4* | osf5*)        # as osf3* with the addition of -msym flag
 
5925
    if test "$GCC" = yes; then
 
5926
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
5927
      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'
 
5928
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
5929
    else
 
5930
      allow_undefined_flag=' -expect_unresolved \*'
 
5931
      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'
 
5932
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
5933
      $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'
 
5934
 
 
5935
      #Both c and cxx compiler support -rpath directly
 
5936
      hardcode_libdir_flag_spec='-rpath $libdir'
 
5937
    fi
 
5938
    hardcode_libdir_separator=:
 
5939
    ;;
 
5940
 
 
5941
  sco3.2v5*)
 
5942
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5943
    hardcode_shlibpath_var=no
 
5944
    runpath_var=LD_RUN_PATH
 
5945
    hardcode_runpath_var=yes
 
5946
    export_dynamic_flag_spec='${wl}-Bexport'
 
5947
    ;;
 
5948
 
 
5949
  solaris*)
 
5950
    # gcc --version < 3.0 without binutils cannot create self contained
 
5951
    # shared libraries reliably, requiring libgcc.a to resolve some of
 
5952
    # the object symbols generated in some cases.  Libraries that use
 
5953
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
 
5954
    # a copy of libgcc.a into every shared library to guarantee resolving
 
5955
    # such symbols causes other problems:  According to Tim Van Holder
 
5956
    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
 
5957
    # (to the application) exception stack for one thing.
 
5958
    no_undefined_flag=' -z defs'
 
5959
    if test "$GCC" = yes; then
 
5960
      case `$CC --version 2>/dev/null` in
 
5961
      [12].*)
 
5962
        cat <<EOF 1>&2
 
5963
 
 
5964
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
 
5965
*** create self contained shared libraries on Solaris systems, without
 
5966
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
 
5967
*** -no-undefined support, which will at least allow you to build shared
 
5968
*** libraries.  However, you may find that when you link such libraries
 
5969
*** into an application without using GCC, you have to manually add
 
5970
*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
 
5971
*** upgrade to a newer version of GCC.  Another option is to rebuild your
 
5972
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
 
5973
 
 
5974
EOF
 
5975
        no_undefined_flag=
 
5976
        ;;
 
5977
      esac
 
5978
    fi
 
5979
    # $CC -shared without GNU ld will not create a library from C++
 
5980
    # object files and a static libstdc++, better avoid it by now
 
5981
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5982
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
5983
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
5984
    hardcode_libdir_flag_spec='-R$libdir'
 
5985
    hardcode_shlibpath_var=no
 
5986
    case $host_os in
 
5987
    solaris2.[0-5] | solaris2.[0-5].*) ;;
 
5988
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
5989
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
5990
    esac
 
5991
    link_all_deplibs=yes
 
5992
    ;;
 
5993
 
 
5994
  sunos4*)
 
5995
    if test "x$host_vendor" = xsequent; then
 
5996
      # Use $CC to link under sequent, because it throws in some extra .o
 
5997
      # files that make .init and .fini sections work.
 
5998
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
5999
    else
 
6000
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
6001
    fi
 
6002
    hardcode_libdir_flag_spec='-L$libdir'
 
6003
    hardcode_direct=yes
 
6004
    hardcode_minus_L=yes
 
6005
    hardcode_shlibpath_var=no
 
6006
    ;;
 
6007
 
 
6008
  sysv4)
 
6009
    if test "x$host_vendor" = xsno; then
 
6010
      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6011
      hardcode_direct=yes # is this really true???
 
6012
    else
 
6013
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6014
      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
6015
    fi
 
6016
    runpath_var='LD_RUN_PATH'
 
6017
    hardcode_shlibpath_var=no
 
6018
    ;;
 
6019
 
 
6020
  sysv4.3*)
 
6021
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6022
    hardcode_shlibpath_var=no
 
6023
    export_dynamic_flag_spec='-Bexport'
 
6024
    ;;
 
6025
 
 
6026
  sysv5*)
 
6027
    no_undefined_flag=' -z text'
 
6028
    # $CC -shared without GNU ld will not create a library from C++
 
6029
    # object files and a static libstdc++, better avoid it by now
 
6030
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6031
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6032
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6033
    hardcode_libdir_flag_spec=
 
6034
    hardcode_shlibpath_var=no
 
6035
    runpath_var='LD_RUN_PATH'
 
6036
    ;;
 
6037
 
 
6038
  uts4*)
 
6039
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6040
    hardcode_libdir_flag_spec='-L$libdir'
 
6041
    hardcode_shlibpath_var=no
 
6042
    ;;
 
6043
 
 
6044
  dgux*)
 
6045
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6046
    hardcode_libdir_flag_spec='-L$libdir'
 
6047
    hardcode_shlibpath_var=no
 
6048
    ;;
 
6049
 
 
6050
  sysv4*MP*)
 
6051
    if test -d /usr/nec; then
 
6052
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6053
      hardcode_shlibpath_var=no
 
6054
      runpath_var=LD_RUN_PATH
 
6055
      hardcode_runpath_var=yes
 
6056
      ld_shlibs=yes
 
6057
    fi
 
6058
    ;;
 
6059
 
 
6060
  sysv4.2uw2*)
 
6061
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6062
    hardcode_direct=yes
 
6063
    hardcode_minus_L=no
 
6064
    hardcode_shlibpath_var=no
 
6065
    hardcode_runpath_var=yes
 
6066
    runpath_var=LD_RUN_PATH
 
6067
    ;;
 
6068
 
 
6069
  sysv5uw7* | unixware7*)
 
6070
    no_undefined_flag='${wl}-z ${wl}text'
 
6071
    if test "$GCC" = yes; then
 
6072
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6073
    else
 
6074
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6075
    fi
 
6076
    runpath_var='LD_RUN_PATH'
 
6077
    hardcode_shlibpath_var=no
 
6078
    ;;
 
6079
 
 
6080
  *)
 
6081
    ld_shlibs=no
 
6082
    ;;
 
6083
  esac
 
6084
fi
 
6085
echo "$as_me:6085: result: $ld_shlibs" >&5
 
6086
echo "${ECHO_T}$ld_shlibs" >&6
 
6087
test "$ld_shlibs" = no && can_build_shared=no
 
6088
 
 
6089
# Check hardcoding attributes.
 
6090
echo "$as_me:6090: checking how to hardcode library paths into programs" >&5
 
6091
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
6092
hardcode_action=
 
6093
if test -n "$hardcode_libdir_flag_spec" || \
 
6094
   test -n "$runpath_var"; then
 
6095
 
 
6096
  # We can hardcode non-existant directories.
 
6097
  if test "$hardcode_direct" != no &&
 
6098
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
6099
     # have to relink, otherwise we might link with an installed library
 
6100
     # when we should be linking with a yet-to-be-installed one
 
6101
     ## test "$hardcode_shlibpath_var" != no &&
 
6102
     test "$hardcode_minus_L" != no; then
 
6103
    # Linking always hardcodes the temporary library directory.
 
6104
    hardcode_action=relink
 
6105
  else
 
6106
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
6107
    hardcode_action=immediate
 
6108
  fi
 
6109
else
 
6110
  # We cannot hardcode anything, or else we can only hardcode existing
 
6111
  # directories.
 
6112
  hardcode_action=unsupported
 
6113
fi
 
6114
echo "$as_me:6114: result: $hardcode_action" >&5
 
6115
echo "${ECHO_T}$hardcode_action" >&6
 
6116
 
 
6117
striplib=
 
6118
old_striplib=
 
6119
echo "$as_me:6119: checking whether stripping libraries is possible" >&5
 
6120
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
6121
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
6122
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
6123
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
6124
  echo "$as_me:6124: result: yes" >&5
 
6125
echo "${ECHO_T}yes" >&6
 
6126
else
 
6127
  echo "$as_me:6127: result: no" >&5
 
6128
echo "${ECHO_T}no" >&6
 
6129
fi
 
6130
 
 
6131
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
6132
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
6133
 
 
6134
# PORTME Fill in your ld.so characteristics
 
6135
echo "$as_me:6135: checking dynamic linker characteristics" >&5
 
6136
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
6137
library_names_spec=
 
6138
libname_spec='lib$name'
 
6139
soname_spec=
 
6140
postinstall_cmds=
 
6141
postuninstall_cmds=
 
6142
finish_cmds=
 
6143
finish_eval=
 
6144
shlibpath_var=
 
6145
shlibpath_overrides_runpath=unknown
 
6146
version_type=none
 
6147
dynamic_linker="$host_os ld.so"
 
6148
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
6149
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
6150
 
 
6151
case $host_os in
 
6152
aix3*)
 
6153
  version_type=linux
 
6154
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
 
6155
  shlibpath_var=LIBPATH
 
6156
 
 
6157
  # AIX has no versioning support, so we append a major version to the name.
 
6158
  soname_spec='${libname}${release}.so$major'
 
6159
  ;;
 
6160
 
 
6161
aix4* | aix5*)
 
6162
  version_type=linux
 
6163
  if test "$host_cpu" = ia64; then
 
6164
    # AIX 5 supports IA64
 
6165
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
 
6166
    shlibpath_var=LD_LIBRARY_PATH
 
6167
  else
 
6168
    # With GCC up to 2.95.x, collect2 would create an import file
 
6169
    # for dependence libraries.  The import file would start with
 
6170
    # the line `#! .'.  This would cause the generated library to
 
6171
    # depend on `.', always an invalid library.  This was fixed in
 
6172
    # development snapshots of GCC prior to 3.0.
 
6173
    case $host_os in
 
6174
      aix4 | aix4.[01] | aix4.[01].*)
 
6175
        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
6176
             echo ' yes '
 
6177
             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
6178
          :
 
6179
        else
 
6180
          can_build_shared=no
 
6181
        fi
 
6182
        ;;
 
6183
    esac
 
6184
    # AIX (on Power*) has no versioning support, so currently we can
 
6185
    # not hardcode correct soname into executable. Probably we can
 
6186
    # add versioning support to collect2, so additional links can
 
6187
    # be useful in future.
 
6188
    if test "$aix_use_runtimelinking" = yes; then
 
6189
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
6190
      # instead of lib<name>.a to let people know that these are not
 
6191
      # typical AIX shared libraries.
 
6192
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6193
    else
 
6194
      # We preserve .a as extension for shared libraries through AIX4.2
 
6195
      # and later when we are not doing run time linking.
 
6196
      library_names_spec='${libname}${release}.a $libname.a'
 
6197
      soname_spec='${libname}${release}.so$major'
 
6198
    fi
 
6199
    shlibpath_var=LIBPATH
 
6200
  fi
 
6201
  ;;
 
6202
 
 
6203
amigaos*)
 
6204
  library_names_spec='$libname.ixlibrary $libname.a'
 
6205
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
6206
  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'
 
6207
  ;;
 
6208
 
 
6209
beos*)
 
6210
  library_names_spec='${libname}.so'
 
6211
  dynamic_linker="$host_os ld.so"
 
6212
  shlibpath_var=LIBRARY_PATH
 
6213
  ;;
 
6214
 
 
6215
bsdi4*)
 
6216
  version_type=linux
 
6217
  need_version=no
 
6218
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6219
  soname_spec='${libname}${release}.so$major'
 
6220
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
6221
  shlibpath_var=LD_LIBRARY_PATH
 
6222
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
6223
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
6224
  export_dynamic_flag_spec=-rdynamic
 
6225
  # the default ld.so.conf also contains /usr/contrib/lib and
 
6226
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
6227
  # libtool to hard-code these into programs
 
6228
  ;;
 
6229
 
 
6230
cygwin* | mingw* | pw32*)
 
6231
  version_type=windows
 
6232
  need_version=no
 
6233
  need_lib_prefix=no
 
6234
  case $GCC,$host_os in
 
6235
  yes,cygwin*)
 
6236
    library_names_spec='$libname.dll.a'
 
6237
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
 
6238
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
 
6239
      dldir=$destdir/`dirname \$dlpath`~
 
6240
      test -d \$dldir || mkdir -p \$dldir~
 
6241
      $install_prog .libs/$dlname \$dldir/$dlname'
 
6242
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
6243
      dlpath=$dir/\$dldll~
 
6244
       $rm \$dlpath'
 
6245
    ;;
 
6246
  yes,mingw*)
 
6247
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
 
6248
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
 
6249
    ;;
 
6250
  yes,pw32*)
 
6251
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
 
6252
    ;;
 
6253
  *)
 
6254
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
 
6255
    ;;
 
6256
  esac
 
6257
  dynamic_linker='Win32 ld.exe'
 
6258
  # FIXME: first we should search . and the directory the executable is in
 
6259
  shlibpath_var=PATH
 
6260
  ;;
 
6261
 
 
6262
darwin* | rhapsody*)
 
6263
  dynamic_linker="$host_os dyld"
 
6264
  version_type=darwin
 
6265
  need_lib_prefix=no
 
6266
  need_version=no
 
6267
  # FIXME: Relying on posixy $() will cause problems for
 
6268
  #        cross-compilation, but unfortunately the echo tests do not
 
6269
  #        yet detect zsh echo's removal of \ escapes.
 
6270
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
 
6271
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
 
6272
  shlibpath_overrides_runpath=yes
 
6273
  shlibpath_var=DYLD_LIBRARY_PATH
 
6274
  ;;
 
6275
 
 
6276
freebsd1*)
 
6277
  dynamic_linker=no
 
6278
  ;;
 
6279
 
 
6280
freebsd*)
 
6281
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
6282
  version_type=freebsd-$objformat
 
6283
  case $version_type in
 
6284
    freebsd-elf*)
 
6285
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 
6286
      need_version=no
 
6287
      need_lib_prefix=no
 
6288
      ;;
 
6289
    freebsd-*)
 
6290
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
 
6291
      need_version=yes
 
6292
      ;;
 
6293
  esac
 
6294
  shlibpath_var=LD_LIBRARY_PATH
 
6295
  case $host_os in
 
6296
  freebsd2*)
 
6297
    shlibpath_overrides_runpath=yes
 
6298
    ;;
 
6299
  *)
 
6300
    shlibpath_overrides_runpath=no
 
6301
    hardcode_into_libs=yes
 
6302
    ;;
 
6303
  esac
 
6304
  ;;
 
6305
 
 
6306
gnu*)
 
6307
  version_type=linux
 
6308
  need_lib_prefix=no
 
6309
  need_version=no
 
6310
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
 
6311
  soname_spec='${libname}${release}.so$major'
 
6312
  shlibpath_var=LD_LIBRARY_PATH
 
6313
  hardcode_into_libs=yes
 
6314
  ;;
 
6315
 
 
6316
hpux9* | hpux10* | hpux11*)
 
6317
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
6318
  # link against other versions.
 
6319
  dynamic_linker="$host_os dld.sl"
 
6320
  version_type=sunos
 
6321
  need_lib_prefix=no
 
6322
  need_version=no
 
6323
  shlibpath_var=SHLIB_PATH
 
6324
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
6325
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
 
6326
  soname_spec='${libname}${release}.sl$major'
 
6327
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
6328
  postinstall_cmds='chmod 555 $lib'
 
6329
  ;;
 
6330
 
 
6331
irix5* | irix6*)
 
6332
  version_type=irix
 
6333
  need_lib_prefix=no
 
6334
  need_version=no
 
6335
  soname_spec='${libname}${release}.so$major'
 
6336
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
 
6337
  case $host_os in
 
6338
  irix5*)
 
6339
    libsuff= shlibsuff=
 
6340
    ;;
 
6341
  *)
 
6342
    case $LD in # libtool.m4 will add one of these switches to LD
 
6343
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
 
6344
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
 
6345
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
6346
    *) libsuff= shlibsuff= libmagic=never-match;;
 
6347
    esac
 
6348
    ;;
 
6349
  esac
 
6350
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
6351
  shlibpath_overrides_runpath=no
 
6352
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
6353
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
6354
  ;;
 
6355
 
 
6356
# No shared lib support for Linux oldld, aout, or coff.
 
6357
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
 
6358
  dynamic_linker=no
 
6359
  ;;
 
6360
 
 
6361
# This must be Linux ELF.
 
6362
linux-gnu*)
 
6363
  version_type=linux
 
6364
  need_lib_prefix=no
 
6365
  need_version=no
 
6366
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6367
  soname_spec='${libname}${release}.so$major'
 
6368
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
6369
  shlibpath_var=LD_LIBRARY_PATH
 
6370
  shlibpath_overrides_runpath=no
 
6371
  # This implies no fast_install, which is unacceptable.
 
6372
  # Some rework will be needed to allow for fast_install
 
6373
  # before this can be enabled.
 
6374
  hardcode_into_libs=yes
 
6375
 
 
6376
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
6377
  # powerpc, because MkLinux only supported shared libraries with the
 
6378
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
6379
  # most powerpc-linux boxes support dynamic linking these days and
 
6380
  # people can always --disable-shared, the test was removed, and we
 
6381
  # assume the GNU/Linux dynamic linker is in use.
 
6382
  dynamic_linker='GNU/Linux ld.so'
 
6383
  ;;
 
6384
 
 
6385
netbsd*)
 
6386
  version_type=sunos
 
6387
  need_lib_prefix=no
 
6388
  need_version=no
 
6389
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6390
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
6391
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
6392
    dynamic_linker='NetBSD (a.out) ld.so'
 
6393
  else
 
6394
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
 
6395
    soname_spec='${libname}${release}.so$major'
 
6396
    dynamic_linker='NetBSD ld.elf_so'
 
6397
  fi
 
6398
  shlibpath_var=LD_LIBRARY_PATH
 
6399
  shlibpath_overrides_runpath=yes
 
6400
  hardcode_into_libs=yes
 
6401
  ;;
 
6402
 
 
6403
newsos6)
 
6404
  version_type=linux
 
6405
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6406
  shlibpath_var=LD_LIBRARY_PATH
 
6407
  shlibpath_overrides_runpath=yes
 
6408
  ;;
 
6409
 
 
6410
openbsd*)
 
6411
  version_type=sunos
 
6412
  need_lib_prefix=no
 
6413
  need_version=no
 
6414
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6415
    case "$host_os" in
 
6416
    openbsd2.[89] | openbsd2.[89].*)
 
6417
      shlibpath_overrides_runpath=no
 
6418
      ;;
 
6419
    *)
 
6420
      shlibpath_overrides_runpath=yes
 
6421
      ;;
 
6422
    esac
 
6423
  else
 
6424
    shlibpath_overrides_runpath=yes
 
6425
  fi
 
6426
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
6427
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
6428
  shlibpath_var=LD_LIBRARY_PATH
 
6429
  ;;
 
6430
 
 
6431
os2*)
 
6432
  libname_spec='$name'
 
6433
  need_lib_prefix=no
 
6434
  library_names_spec='$libname.dll $libname.a'
 
6435
  dynamic_linker='OS/2 ld.exe'
 
6436
  shlibpath_var=LIBPATH
 
6437
  ;;
 
6438
 
 
6439
osf3* | osf4* | osf5*)
 
6440
  version_type=osf
 
6441
  need_version=no
 
6442
  soname_spec='${libname}${release}.so'
 
6443
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 
6444
  shlibpath_var=LD_LIBRARY_PATH
 
6445
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
6446
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
6447
  ;;
 
6448
 
 
6449
sco3.2v5*)
 
6450
  version_type=osf
 
6451
  soname_spec='${libname}${release}.so$major'
 
6452
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6453
  shlibpath_var=LD_LIBRARY_PATH
 
6454
  ;;
 
6455
 
 
6456
solaris*)
 
6457
  version_type=linux
 
6458
  need_lib_prefix=no
 
6459
  need_version=no
 
6460
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6461
  soname_spec='${libname}${release}.so$major'
 
6462
  shlibpath_var=LD_LIBRARY_PATH
 
6463
  shlibpath_overrides_runpath=yes
 
6464
  hardcode_into_libs=yes
 
6465
  # ldd complains unless libraries are executable
 
6466
  postinstall_cmds='chmod +x $lib'
 
6467
  ;;
 
6468
 
 
6469
sunos4*)
 
6470
  version_type=sunos
 
6471
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
6472
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
6473
  shlibpath_var=LD_LIBRARY_PATH
 
6474
  shlibpath_overrides_runpath=yes
 
6475
  if test "$with_gnu_ld" = yes; then
 
6476
    need_lib_prefix=no
 
6477
  fi
 
6478
  need_version=yes
 
6479
  ;;
 
6480
 
 
6481
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6482
  version_type=linux
 
6483
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6484
  soname_spec='${libname}${release}.so$major'
 
6485
  shlibpath_var=LD_LIBRARY_PATH
 
6486
  case $host_vendor in
 
6487
    sni)
 
6488
      shlibpath_overrides_runpath=no
 
6489
      ;;
 
6490
    motorola)
 
6491
      need_lib_prefix=no
 
6492
      need_version=no
 
6493
      shlibpath_overrides_runpath=no
 
6494
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
6495
      ;;
 
6496
  esac
 
6497
  ;;
 
6498
 
 
6499
uts4*)
 
6500
  version_type=linux
 
6501
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6502
  soname_spec='${libname}${release}.so$major'
 
6503
  shlibpath_var=LD_LIBRARY_PATH
 
6504
  ;;
 
6505
 
 
6506
dgux*)
 
6507
  version_type=linux
 
6508
  need_lib_prefix=no
 
6509
  need_version=no
 
6510
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6511
  soname_spec='${libname}${release}.so$major'
 
6512
  shlibpath_var=LD_LIBRARY_PATH
 
6513
  ;;
 
6514
 
 
6515
sysv4*MP*)
 
6516
  if test -d /usr/nec ;then
 
6517
    version_type=linux
 
6518
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
 
6519
    soname_spec='$libname.so.$major'
 
6520
    shlibpath_var=LD_LIBRARY_PATH
 
6521
  fi
 
6522
  ;;
 
6523
 
 
6524
*)
 
6525
  dynamic_linker=no
 
6526
  ;;
 
6527
esac
 
6528
echo "$as_me:6528: result: $dynamic_linker" >&5
 
6529
echo "${ECHO_T}$dynamic_linker" >&6
 
6530
test "$dynamic_linker" = no && can_build_shared=no
 
6531
 
 
6532
# Report the final consequences.
 
6533
echo "$as_me:6533: checking if libtool supports shared libraries" >&5
 
6534
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
6535
echo "$as_me:6535: result: $can_build_shared" >&5
 
6536
echo "${ECHO_T}$can_build_shared" >&6
 
6537
 
 
6538
echo "$as_me:6538: checking whether to build shared libraries" >&5
 
6539
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
6540
test "$can_build_shared" = "no" && enable_shared=no
 
6541
 
 
6542
# On AIX, shared libraries and static libraries use the same namespace, and
 
6543
# are all built from PIC.
 
6544
case "$host_os" in
 
6545
aix3*)
 
6546
  test "$enable_shared" = yes && enable_static=no
 
6547
  if test -n "$RANLIB"; then
 
6548
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
6549
    postinstall_cmds='$RANLIB $lib'
 
6550
  fi
 
6551
  ;;
 
6552
 
 
6553
aix4*)
 
6554
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
6555
    test "$enable_shared" = yes && enable_static=no
 
6556
  fi
 
6557
  ;;
 
6558
esac
 
6559
echo "$as_me:6559: result: $enable_shared" >&5
 
6560
echo "${ECHO_T}$enable_shared" >&6
 
6561
 
 
6562
echo "$as_me:6562: checking whether to build static libraries" >&5
 
6563
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
6564
# Make sure either enable_shared or enable_static is yes.
 
6565
test "$enable_shared" = yes || enable_static=yes
 
6566
echo "$as_me:6566: result: $enable_static" >&5
 
6567
echo "${ECHO_T}$enable_static" >&6
 
6568
 
 
6569
if test "$hardcode_action" = relink; then
 
6570
  # Fast installation is not supported
 
6571
  enable_fast_install=no
 
6572
elif test "$shlibpath_overrides_runpath" = yes ||
 
6573
     test "$enable_shared" = no; then
 
6574
  # Fast installation is not necessary
 
6575
  enable_fast_install=needless
 
6576
fi
 
6577
 
 
6578
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
6579
if test "$GCC" = yes; then
 
6580
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
6581
fi
 
6582
 
 
6583
if test "x$enable_dlopen" != xyes; then
 
6584
  enable_dlopen=unknown
 
6585
  enable_dlopen_self=unknown
 
6586
  enable_dlopen_self_static=unknown
 
6587
else
 
6588
  lt_cv_dlopen=no
 
6589
  lt_cv_dlopen_libs=
 
6590
 
 
6591
  case $host_os in
 
6592
  beos*)
 
6593
    lt_cv_dlopen="load_add_on"
 
6594
    lt_cv_dlopen_libs=
 
6595
    lt_cv_dlopen_self=yes
 
6596
    ;;
 
6597
 
 
6598
  cygwin* | mingw* | pw32*)
 
6599
    lt_cv_dlopen="LoadLibrary"
 
6600
    lt_cv_dlopen_libs=
 
6601
   ;;
 
6602
 
 
6603
  *)
 
6604
    echo "$as_me:6604: checking for shl_load" >&5
 
6605
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
6606
if test "${ac_cv_func_shl_load+set}" = set; then
 
6607
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6608
else
 
6609
  cat >conftest.$ac_ext <<_ACEOF
 
6610
#line 6610 "configure"
 
6611
#include "confdefs.h"
 
6612
/* System header to define __stub macros and hopefully few prototypes,
 
6613
    which can conflict with char shl_load (); below.  */
 
6614
#include <assert.h>
 
6615
/* Override any gcc2 internal prototype to avoid an error.  */
 
6616
#ifdef __cplusplus
 
6617
extern "C"
 
6618
#endif
 
6619
/* We use char because int might match the return type of a gcc2
 
6620
   builtin and then its argument prototype would still apply.  */
 
6621
char shl_load ();
 
6622
char (*f) ();
 
6623
 
 
6624
int
 
6625
main ()
 
6626
{
 
6627
/* The GNU C library defines this for functions which it implements
 
6628
    to always fail with ENOSYS.  Some functions are actually named
 
6629
    something starting with __ and the normal name is an alias.  */
 
6630
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
6631
choke me
 
6632
#else
 
6633
f = shl_load;
 
6634
#endif
 
6635
 
 
6636
  ;
 
6637
  return 0;
 
6638
}
 
6639
_ACEOF
 
6640
rm -f conftest.$ac_objext conftest$ac_exeext
 
6641
if { (eval echo "$as_me:6641: \"$ac_link\"") >&5
 
6642
  (eval $ac_link) 2>&5
 
6643
  ac_status=$?
 
6644
  echo "$as_me:6644: \$? = $ac_status" >&5
 
6645
  (exit $ac_status); } &&
 
6646
         { ac_try='test -s conftest$ac_exeext'
 
6647
  { (eval echo "$as_me:6647: \"$ac_try\"") >&5
 
6648
  (eval $ac_try) 2>&5
 
6649
  ac_status=$?
 
6650
  echo "$as_me:6650: \$? = $ac_status" >&5
 
6651
  (exit $ac_status); }; }; then
 
6652
  ac_cv_func_shl_load=yes
 
6653
else
 
6654
  echo "$as_me: failed program was:" >&5
 
6655
cat conftest.$ac_ext >&5
 
6656
ac_cv_func_shl_load=no
 
6657
fi
 
6658
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6659
fi
 
6660
echo "$as_me:6660: result: $ac_cv_func_shl_load" >&5
 
6661
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
6662
if test $ac_cv_func_shl_load = yes; then
 
6663
  lt_cv_dlopen="shl_load"
 
6664
else
 
6665
  echo "$as_me:6665: checking for shl_load in -ldld" >&5
 
6666
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
6667
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
6668
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6669
else
 
6670
  ac_check_lib_save_LIBS=$LIBS
 
6671
LIBS="-ldld  $LIBS"
 
6672
cat >conftest.$ac_ext <<_ACEOF
 
6673
#line 6673 "configure"
 
6674
#include "confdefs.h"
 
6675
 
 
6676
/* Override any gcc2 internal prototype to avoid an error.  */
 
6677
#ifdef __cplusplus
 
6678
extern "C"
 
6679
#endif
 
6680
/* We use char because int might match the return type of a gcc2
 
6681
   builtin and then its argument prototype would still apply.  */
 
6682
char shl_load ();
 
6683
int
 
6684
main ()
 
6685
{
 
6686
shl_load ();
 
6687
  ;
 
6688
  return 0;
 
6689
}
 
6690
_ACEOF
 
6691
rm -f conftest.$ac_objext conftest$ac_exeext
 
6692
if { (eval echo "$as_me:6692: \"$ac_link\"") >&5
 
6693
  (eval $ac_link) 2>&5
 
6694
  ac_status=$?
 
6695
  echo "$as_me:6695: \$? = $ac_status" >&5
 
6696
  (exit $ac_status); } &&
 
6697
         { ac_try='test -s conftest$ac_exeext'
 
6698
  { (eval echo "$as_me:6698: \"$ac_try\"") >&5
 
6699
  (eval $ac_try) 2>&5
 
6700
  ac_status=$?
 
6701
  echo "$as_me:6701: \$? = $ac_status" >&5
 
6702
  (exit $ac_status); }; }; then
 
6703
  ac_cv_lib_dld_shl_load=yes
 
6704
else
 
6705
  echo "$as_me: failed program was:" >&5
 
6706
cat conftest.$ac_ext >&5
 
6707
ac_cv_lib_dld_shl_load=no
 
6708
fi
 
6709
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6710
LIBS=$ac_check_lib_save_LIBS
 
6711
fi
 
6712
echo "$as_me:6712: result: $ac_cv_lib_dld_shl_load" >&5
 
6713
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
6714
if test $ac_cv_lib_dld_shl_load = yes; then
 
6715
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
6716
else
 
6717
  echo "$as_me:6717: checking for dlopen" >&5
 
6718
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
6719
if test "${ac_cv_func_dlopen+set}" = set; then
 
6720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6721
else
 
6722
  cat >conftest.$ac_ext <<_ACEOF
 
6723
#line 6723 "configure"
 
6724
#include "confdefs.h"
 
6725
/* System header to define __stub macros and hopefully few prototypes,
 
6726
    which can conflict with char dlopen (); below.  */
 
6727
#include <assert.h>
 
6728
/* Override any gcc2 internal prototype to avoid an error.  */
 
6729
#ifdef __cplusplus
 
6730
extern "C"
 
6731
#endif
 
6732
/* We use char because int might match the return type of a gcc2
 
6733
   builtin and then its argument prototype would still apply.  */
 
6734
char dlopen ();
 
6735
char (*f) ();
 
6736
 
 
6737
int
 
6738
main ()
 
6739
{
 
6740
/* The GNU C library defines this for functions which it implements
 
6741
    to always fail with ENOSYS.  Some functions are actually named
 
6742
    something starting with __ and the normal name is an alias.  */
 
6743
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
6744
choke me
 
6745
#else
 
6746
f = dlopen;
 
6747
#endif
 
6748
 
 
6749
  ;
 
6750
  return 0;
 
6751
}
 
6752
_ACEOF
 
6753
rm -f conftest.$ac_objext conftest$ac_exeext
 
6754
if { (eval echo "$as_me:6754: \"$ac_link\"") >&5
 
6755
  (eval $ac_link) 2>&5
 
6756
  ac_status=$?
 
6757
  echo "$as_me:6757: \$? = $ac_status" >&5
 
6758
  (exit $ac_status); } &&
 
6759
         { ac_try='test -s conftest$ac_exeext'
 
6760
  { (eval echo "$as_me:6760: \"$ac_try\"") >&5
 
6761
  (eval $ac_try) 2>&5
 
6762
  ac_status=$?
 
6763
  echo "$as_me:6763: \$? = $ac_status" >&5
 
6764
  (exit $ac_status); }; }; then
 
6765
  ac_cv_func_dlopen=yes
 
6766
else
 
6767
  echo "$as_me: failed program was:" >&5
 
6768
cat conftest.$ac_ext >&5
 
6769
ac_cv_func_dlopen=no
 
6770
fi
 
6771
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6772
fi
 
6773
echo "$as_me:6773: result: $ac_cv_func_dlopen" >&5
 
6774
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
6775
if test $ac_cv_func_dlopen = yes; then
 
6776
  lt_cv_dlopen="dlopen"
 
6777
else
 
6778
  echo "$as_me:6778: checking for dlopen in -ldl" >&5
 
6779
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
6780
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
6781
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6782
else
 
6783
  ac_check_lib_save_LIBS=$LIBS
 
6784
LIBS="-ldl  $LIBS"
 
6785
cat >conftest.$ac_ext <<_ACEOF
 
6786
#line 6786 "configure"
 
6787
#include "confdefs.h"
 
6788
 
 
6789
/* Override any gcc2 internal prototype to avoid an error.  */
 
6790
#ifdef __cplusplus
 
6791
extern "C"
 
6792
#endif
 
6793
/* We use char because int might match the return type of a gcc2
 
6794
   builtin and then its argument prototype would still apply.  */
 
6795
char dlopen ();
 
6796
int
 
6797
main ()
 
6798
{
 
6799
dlopen ();
 
6800
  ;
 
6801
  return 0;
 
6802
}
 
6803
_ACEOF
 
6804
rm -f conftest.$ac_objext conftest$ac_exeext
 
6805
if { (eval echo "$as_me:6805: \"$ac_link\"") >&5
 
6806
  (eval $ac_link) 2>&5
 
6807
  ac_status=$?
 
6808
  echo "$as_me:6808: \$? = $ac_status" >&5
 
6809
  (exit $ac_status); } &&
 
6810
         { ac_try='test -s conftest$ac_exeext'
 
6811
  { (eval echo "$as_me:6811: \"$ac_try\"") >&5
 
6812
  (eval $ac_try) 2>&5
 
6813
  ac_status=$?
 
6814
  echo "$as_me:6814: \$? = $ac_status" >&5
 
6815
  (exit $ac_status); }; }; then
 
6816
  ac_cv_lib_dl_dlopen=yes
 
6817
else
 
6818
  echo "$as_me: failed program was:" >&5
 
6819
cat conftest.$ac_ext >&5
 
6820
ac_cv_lib_dl_dlopen=no
 
6821
fi
 
6822
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6823
LIBS=$ac_check_lib_save_LIBS
 
6824
fi
 
6825
echo "$as_me:6825: result: $ac_cv_lib_dl_dlopen" >&5
 
6826
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
6827
if test $ac_cv_lib_dl_dlopen = yes; then
 
6828
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
6829
else
 
6830
  echo "$as_me:6830: checking for dlopen in -lsvld" >&5
 
6831
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
6832
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
6833
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6834
else
 
6835
  ac_check_lib_save_LIBS=$LIBS
 
6836
LIBS="-lsvld  $LIBS"
 
6837
cat >conftest.$ac_ext <<_ACEOF
 
6838
#line 6838 "configure"
 
6839
#include "confdefs.h"
 
6840
 
 
6841
/* Override any gcc2 internal prototype to avoid an error.  */
 
6842
#ifdef __cplusplus
 
6843
extern "C"
 
6844
#endif
 
6845
/* We use char because int might match the return type of a gcc2
 
6846
   builtin and then its argument prototype would still apply.  */
 
6847
char dlopen ();
 
6848
int
 
6849
main ()
 
6850
{
 
6851
dlopen ();
 
6852
  ;
 
6853
  return 0;
 
6854
}
 
6855
_ACEOF
 
6856
rm -f conftest.$ac_objext conftest$ac_exeext
 
6857
if { (eval echo "$as_me:6857: \"$ac_link\"") >&5
 
6858
  (eval $ac_link) 2>&5
 
6859
  ac_status=$?
 
6860
  echo "$as_me:6860: \$? = $ac_status" >&5
 
6861
  (exit $ac_status); } &&
 
6862
         { ac_try='test -s conftest$ac_exeext'
 
6863
  { (eval echo "$as_me:6863: \"$ac_try\"") >&5
 
6864
  (eval $ac_try) 2>&5
 
6865
  ac_status=$?
 
6866
  echo "$as_me:6866: \$? = $ac_status" >&5
 
6867
  (exit $ac_status); }; }; then
 
6868
  ac_cv_lib_svld_dlopen=yes
 
6869
else
 
6870
  echo "$as_me: failed program was:" >&5
 
6871
cat conftest.$ac_ext >&5
 
6872
ac_cv_lib_svld_dlopen=no
 
6873
fi
 
6874
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6875
LIBS=$ac_check_lib_save_LIBS
 
6876
fi
 
6877
echo "$as_me:6877: result: $ac_cv_lib_svld_dlopen" >&5
 
6878
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
6879
if test $ac_cv_lib_svld_dlopen = yes; then
 
6880
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
6881
else
 
6882
  echo "$as_me:6882: checking for dld_link in -ldld" >&5
 
6883
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
6884
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
6885
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6886
else
 
6887
  ac_check_lib_save_LIBS=$LIBS
 
6888
LIBS="-ldld  $LIBS"
 
6889
cat >conftest.$ac_ext <<_ACEOF
 
6890
#line 6890 "configure"
 
6891
#include "confdefs.h"
 
6892
 
 
6893
/* Override any gcc2 internal prototype to avoid an error.  */
 
6894
#ifdef __cplusplus
 
6895
extern "C"
 
6896
#endif
 
6897
/* We use char because int might match the return type of a gcc2
 
6898
   builtin and then its argument prototype would still apply.  */
 
6899
char dld_link ();
 
6900
int
 
6901
main ()
 
6902
{
 
6903
dld_link ();
 
6904
  ;
 
6905
  return 0;
 
6906
}
 
6907
_ACEOF
 
6908
rm -f conftest.$ac_objext conftest$ac_exeext
 
6909
if { (eval echo "$as_me:6909: \"$ac_link\"") >&5
 
6910
  (eval $ac_link) 2>&5
 
6911
  ac_status=$?
 
6912
  echo "$as_me:6912: \$? = $ac_status" >&5
 
6913
  (exit $ac_status); } &&
 
6914
         { ac_try='test -s conftest$ac_exeext'
 
6915
  { (eval echo "$as_me:6915: \"$ac_try\"") >&5
 
6916
  (eval $ac_try) 2>&5
 
6917
  ac_status=$?
 
6918
  echo "$as_me:6918: \$? = $ac_status" >&5
 
6919
  (exit $ac_status); }; }; then
 
6920
  ac_cv_lib_dld_dld_link=yes
 
6921
else
 
6922
  echo "$as_me: failed program was:" >&5
 
6923
cat conftest.$ac_ext >&5
 
6924
ac_cv_lib_dld_dld_link=no
 
6925
fi
 
6926
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6927
LIBS=$ac_check_lib_save_LIBS
 
6928
fi
 
6929
echo "$as_me:6929: result: $ac_cv_lib_dld_dld_link" >&5
 
6930
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
6931
if test $ac_cv_lib_dld_dld_link = yes; then
 
6932
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
6933
fi
 
6934
 
 
6935
fi
 
6936
 
 
6937
fi
 
6938
 
 
6939
fi
 
6940
 
 
6941
fi
 
6942
 
 
6943
fi
 
6944
 
 
6945
    ;;
 
6946
  esac
 
6947
 
 
6948
  if test "x$lt_cv_dlopen" != xno; then
 
6949
    enable_dlopen=yes
 
6950
  else
 
6951
    enable_dlopen=no
 
6952
  fi
 
6953
 
 
6954
  case $lt_cv_dlopen in
 
6955
  dlopen)
 
6956
    save_CPPFLAGS="$CPPFLAGS"
 
6957
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
6958
 
 
6959
    save_LDFLAGS="$LDFLAGS"
 
6960
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
6961
 
 
6962
    save_LIBS="$LIBS"
 
6963
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
6964
 
 
6965
    echo "$as_me:6965: checking whether a program can dlopen itself" >&5
 
6966
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
6967
if test "${lt_cv_dlopen_self+set}" = set; then
 
6968
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6969
else
 
6970
          if test "$cross_compiling" = yes; then :
 
6971
  lt_cv_dlopen_self=cross
 
6972
else
 
6973
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
6974
  lt_status=$lt_dlunknown
 
6975
  cat > conftest.$ac_ext <<EOF
 
6976
#line 6976 "configure"
 
6977
#include "confdefs.h"
 
6978
 
 
6979
#if HAVE_DLFCN_H
 
6980
#include <dlfcn.h>
 
6981
#endif
 
6982
 
 
6983
#include <stdio.h>
 
6984
 
 
6985
#ifdef RTLD_GLOBAL
 
6986
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
6987
#else
 
6988
#  ifdef DL_GLOBAL
 
6989
#    define LT_DLGLOBAL         DL_GLOBAL
 
6990
#  else
 
6991
#    define LT_DLGLOBAL         0
 
6992
#  endif
 
6993
#endif
 
6994
 
 
6995
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
6996
   find out it does not work in some platform. */
 
6997
#ifndef LT_DLLAZY_OR_NOW
 
6998
#  ifdef RTLD_LAZY
 
6999
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
7000
#  else
 
7001
#    ifdef DL_LAZY
 
7002
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
7003
#    else
 
7004
#      ifdef RTLD_NOW
 
7005
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
7006
#      else
 
7007
#        ifdef DL_NOW
 
7008
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
7009
#        else
 
7010
#          define LT_DLLAZY_OR_NOW      0
 
7011
#        endif
 
7012
#      endif
 
7013
#    endif
 
7014
#  endif
 
7015
#endif
 
7016
 
 
7017
#ifdef __cplusplus
 
7018
extern "C" void exit (int);
 
7019
#endif
 
7020
 
 
7021
void fnord() { int i=42;}
 
7022
int main ()
 
7023
{
 
7024
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
7025
  int status = $lt_dlunknown;
 
7026
 
 
7027
  if (self)
 
7028
    {
 
7029
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
7030
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
7031
      /* dlclose (self); */
 
7032
    }
 
7033
 
 
7034
    exit (status);
 
7035
}
 
7036
EOF
 
7037
  if { (eval echo "$as_me:7037: \"$ac_link\"") >&5
 
7038
  (eval $ac_link) 2>&5
 
7039
  ac_status=$?
 
7040
  echo "$as_me:7040: \$? = $ac_status" >&5
 
7041
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
7042
    (./conftest; exit; ) 2>/dev/null
 
7043
    lt_status=$?
 
7044
    case x$lt_status in
 
7045
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
7046
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
7047
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
7048
    esac
 
7049
  else :
 
7050
    # compilation failed
 
7051
    lt_cv_dlopen_self=no
 
7052
  fi
 
7053
fi
 
7054
rm -fr conftest*
 
7055
 
 
7056
fi
 
7057
echo "$as_me:7057: result: $lt_cv_dlopen_self" >&5
 
7058
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
7059
 
 
7060
    if test "x$lt_cv_dlopen_self" = xyes; then
 
7061
      LDFLAGS="$LDFLAGS $link_static_flag"
 
7062
      echo "$as_me:7062: checking whether a statically linked program can dlopen itself" >&5
 
7063
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
7064
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
7065
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7066
else
 
7067
          if test "$cross_compiling" = yes; then :
 
7068
  lt_cv_dlopen_self_static=cross
 
7069
else
 
7070
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
7071
  lt_status=$lt_dlunknown
 
7072
  cat > conftest.$ac_ext <<EOF
 
7073
#line 7073 "configure"
 
7074
#include "confdefs.h"
 
7075
 
 
7076
#if HAVE_DLFCN_H
 
7077
#include <dlfcn.h>
 
7078
#endif
 
7079
 
 
7080
#include <stdio.h>
 
7081
 
 
7082
#ifdef RTLD_GLOBAL
 
7083
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
7084
#else
 
7085
#  ifdef DL_GLOBAL
 
7086
#    define LT_DLGLOBAL         DL_GLOBAL
 
7087
#  else
 
7088
#    define LT_DLGLOBAL         0
 
7089
#  endif
 
7090
#endif
 
7091
 
 
7092
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
7093
   find out it does not work in some platform. */
 
7094
#ifndef LT_DLLAZY_OR_NOW
 
7095
#  ifdef RTLD_LAZY
 
7096
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
7097
#  else
 
7098
#    ifdef DL_LAZY
 
7099
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
7100
#    else
 
7101
#      ifdef RTLD_NOW
 
7102
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
7103
#      else
 
7104
#        ifdef DL_NOW
 
7105
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
7106
#        else
 
7107
#          define LT_DLLAZY_OR_NOW      0
 
7108
#        endif
 
7109
#      endif
 
7110
#    endif
 
7111
#  endif
 
7112
#endif
 
7113
 
 
7114
#ifdef __cplusplus
 
7115
extern "C" void exit (int);
 
7116
#endif
 
7117
 
 
7118
void fnord() { int i=42;}
 
7119
int main ()
 
7120
{
 
7121
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
7122
  int status = $lt_dlunknown;
 
7123
 
 
7124
  if (self)
 
7125
    {
 
7126
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
7127
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
7128
      /* dlclose (self); */
 
7129
    }
 
7130
 
 
7131
    exit (status);
 
7132
}
 
7133
EOF
 
7134
  if { (eval echo "$as_me:7134: \"$ac_link\"") >&5
 
7135
  (eval $ac_link) 2>&5
 
7136
  ac_status=$?
 
7137
  echo "$as_me:7137: \$? = $ac_status" >&5
 
7138
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
7139
    (./conftest; exit; ) 2>/dev/null
 
7140
    lt_status=$?
 
7141
    case x$lt_status in
 
7142
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
7143
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
7144
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
7145
    esac
 
7146
  else :
 
7147
    # compilation failed
 
7148
    lt_cv_dlopen_self_static=no
 
7149
  fi
 
7150
fi
 
7151
rm -fr conftest*
 
7152
 
 
7153
fi
 
7154
echo "$as_me:7154: result: $lt_cv_dlopen_self_static" >&5
 
7155
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
7156
    fi
 
7157
 
 
7158
    CPPFLAGS="$save_CPPFLAGS"
 
7159
    LDFLAGS="$save_LDFLAGS"
 
7160
    LIBS="$save_LIBS"
 
7161
    ;;
 
7162
  esac
 
7163
 
 
7164
  case $lt_cv_dlopen_self in
 
7165
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
7166
  *) enable_dlopen_self=unknown ;;
 
7167
  esac
 
7168
 
 
7169
  case $lt_cv_dlopen_self_static in
 
7170
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
7171
  *) enable_dlopen_self_static=unknown ;;
 
7172
  esac
 
7173
fi
 
7174
 
 
7175
if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7176
  case $archive_cmds in
 
7177
  *'~'*)
 
7178
    # FIXME: we may have to deal with multi-command sequences.
 
7179
    ;;
 
7180
  '$CC '*)
 
7181
    # Test whether the compiler implicitly links with -lc since on some
 
7182
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7183
    # to ld, don't add -lc before -lgcc.
 
7184
    echo "$as_me:7184: checking whether -lc should be explicitly linked in" >&5
 
7185
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7186
    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
 
7187
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7188
else
 
7189
  $rm conftest*
 
7190
    echo 'static int dummy;' > conftest.$ac_ext
 
7191
 
 
7192
    if { (eval echo "$as_me:7192: \"$ac_compile\"") >&5
 
7193
  (eval $ac_compile) 2>&5
 
7194
  ac_status=$?
 
7195
  echo "$as_me:7195: \$? = $ac_status" >&5
 
7196
  (exit $ac_status); }; then
 
7197
      soname=conftest
 
7198
      lib=conftest
 
7199
      libobjs=conftest.$ac_objext
 
7200
      deplibs=
 
7201
      wl=$lt_cv_prog_cc_wl
 
7202
      compiler_flags=-v
 
7203
      linker_flags=-v
 
7204
      verstring=
 
7205
      output_objdir=.
 
7206
      libname=conftest
 
7207
      save_allow_undefined_flag=$allow_undefined_flag
 
7208
      allow_undefined_flag=
 
7209
      if { (eval echo "$as_me:7209: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7210
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7211
  ac_status=$?
 
7212
  echo "$as_me:7212: \$? = $ac_status" >&5
 
7213
  (exit $ac_status); }
 
7214
      then
 
7215
        lt_cv_archive_cmds_need_lc=no
 
7216
      else
 
7217
        lt_cv_archive_cmds_need_lc=yes
 
7218
      fi
 
7219
      allow_undefined_flag=$save_allow_undefined_flag
 
7220
    else
 
7221
      cat conftest.err 1>&5
 
7222
    fi
 
7223
fi
 
7224
 
 
7225
    echo "$as_me:7225: result: $lt_cv_archive_cmds_need_lc" >&5
 
7226
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
 
7227
    ;;
 
7228
  esac
 
7229
fi
 
7230
need_lc=${lt_cv_archive_cmds_need_lc-yes}
 
7231
 
 
7232
# The second clause should only fire when bootstrapping the
 
7233
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
7234
# with your package, and you will get complaints that there are
 
7235
# no rules to generate ltmain.sh.
 
7236
if test -f "$ltmain"; then
 
7237
  :
 
7238
else
 
7239
  # If there is no Makefile yet, we rely on a make rule to execute
 
7240
  # `config.status --recheck' to rerun these tests and create the
 
7241
  # libtool script then.
 
7242
  test -f Makefile && make "$ltmain"
 
7243
fi
 
7244
 
 
7245
if test -f "$ltmain"; then
 
7246
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
 
7247
  $rm -f "${ofile}T"
 
7248
 
 
7249
  echo creating $ofile
 
7250
 
 
7251
  # Now quote all the things that may contain metacharacters while being
 
7252
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
7253
  # variables and quote the copies for generation of the libtool script.
 
7254
  for var in echo old_CC old_CFLAGS \
 
7255
    AR AR_FLAGS CC LD LN_S NM SHELL \
 
7256
    reload_flag reload_cmds wl \
 
7257
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
 
7258
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
 
7259
    library_names_spec soname_spec \
 
7260
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
 
7261
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
 
7262
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
 
7263
    old_striplib striplib file_magic_cmd export_symbols_cmds \
 
7264
    deplibs_check_method allow_undefined_flag no_undefined_flag \
 
7265
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
 
7266
    global_symbol_to_c_name_address \
 
7267
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
 
7268
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
7269
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
 
7270
 
 
7271
    case $var in
 
7272
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
 
7273
    old_postinstall_cmds | old_postuninstall_cmds | \
 
7274
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
 
7275
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
 
7276
    postinstall_cmds | postuninstall_cmds | \
 
7277
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
7278
      # Double-quote double-evaled strings.
 
7279
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
7280
      ;;
 
7281
    *)
 
7282
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
7283
      ;;
 
7284
    esac
 
7285
  done
 
7286
 
 
7287
  cat <<__EOF__ > "${ofile}T"
 
7288
#! $SHELL
 
7289
 
 
7290
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
7291
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
7292
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
7293
#
 
7294
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
 
7295
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
7296
#
 
7297
# This program is free software; you can redistribute it and/or modify
 
7298
# it under the terms of the GNU General Public License as published by
 
7299
# the Free Software Foundation; either version 2 of the License, or
 
7300
# (at your option) any later version.
 
7301
#
 
7302
# This program is distributed in the hope that it will be useful, but
 
7303
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
7304
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
7305
# General Public License for more details.
 
7306
#
 
7307
# You should have received a copy of the GNU General Public License
 
7308
# along with this program; if not, write to the Free Software
 
7309
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
7310
#
 
7311
# As a special exception to the GNU General Public License, if you
 
7312
# distribute this file as part of a program that contains a
 
7313
# configuration script generated by Autoconf, you may include it under
 
7314
# the same distribution terms that you use for the rest of that program.
 
7315
 
 
7316
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
7317
Xsed="sed -e s/^X//"
 
7318
 
 
7319
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
7320
# if CDPATH is set.
 
7321
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
7322
 
 
7323
# ### BEGIN LIBTOOL CONFIG
 
7324
 
 
7325
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
7326
 
 
7327
# Shell to use when invoking shell scripts.
 
7328
SHELL=$lt_SHELL
 
7329
 
 
7330
# Whether or not to build shared libraries.
 
7331
build_libtool_libs=$enable_shared
 
7332
 
 
7333
# Whether or not to build static libraries.
 
7334
build_old_libs=$enable_static
 
7335
 
 
7336
# Whether or not to add -lc for building shared libraries.
 
7337
build_libtool_need_lc=$need_lc
 
7338
 
 
7339
# Whether or not to optimize for fast installation.
 
7340
fast_install=$enable_fast_install
 
7341
 
 
7342
# The host system.
 
7343
host_alias=$host_alias
 
7344
host=$host
 
7345
 
 
7346
# An echo program that does not interpret backslashes.
 
7347
echo=$lt_echo
 
7348
 
 
7349
# The archiver.
 
7350
AR=$lt_AR
 
7351
AR_FLAGS=$lt_AR_FLAGS
 
7352
 
 
7353
# The default C compiler.
 
7354
CC=$lt_CC
 
7355
 
 
7356
# Is the compiler the GNU C compiler?
 
7357
with_gcc=$GCC
 
7358
 
 
7359
# The linker used to build libraries.
 
7360
LD=$lt_LD
 
7361
 
 
7362
# Whether we need hard or soft links.
 
7363
LN_S=$lt_LN_S
 
7364
 
 
7365
# A BSD-compatible nm program.
 
7366
NM=$lt_NM
 
7367
 
 
7368
# A symbol stripping program
 
7369
STRIP=$STRIP
 
7370
 
 
7371
# Used to examine libraries when file_magic_cmd begins "file"
 
7372
MAGIC_CMD=$MAGIC_CMD
 
7373
 
 
7374
# Used on cygwin: DLL creation program.
 
7375
DLLTOOL="$DLLTOOL"
 
7376
 
 
7377
# Used on cygwin: object dumper.
 
7378
OBJDUMP="$OBJDUMP"
 
7379
 
 
7380
# Used on cygwin: assembler.
 
7381
AS="$AS"
 
7382
 
 
7383
# The name of the directory that contains temporary libtool files.
 
7384
objdir=$objdir
 
7385
 
 
7386
# How to create reloadable object files.
 
7387
reload_flag=$lt_reload_flag
 
7388
reload_cmds=$lt_reload_cmds
 
7389
 
 
7390
# How to pass a linker flag through the compiler.
 
7391
wl=$lt_wl
 
7392
 
 
7393
# Object file suffix (normally "o").
 
7394
objext="$ac_objext"
 
7395
 
 
7396
# Old archive suffix (normally "a").
 
7397
libext="$libext"
 
7398
 
 
7399
# Executable file suffix (normally "").
 
7400
exeext="$exeext"
 
7401
 
 
7402
# Additional compiler flags for building library objects.
 
7403
pic_flag=$lt_pic_flag
 
7404
pic_mode=$pic_mode
 
7405
 
 
7406
# Does compiler simultaneously support -c and -o options?
 
7407
compiler_c_o=$lt_compiler_c_o
 
7408
 
 
7409
# Can we write directly to a .lo ?
 
7410
compiler_o_lo=$lt_compiler_o_lo
 
7411
 
 
7412
# Must we lock files when doing compilation ?
 
7413
need_locks=$lt_need_locks
 
7414
 
 
7415
# Do we need the lib prefix for modules?
 
7416
need_lib_prefix=$need_lib_prefix
 
7417
 
 
7418
# Do we need a version for libraries?
 
7419
need_version=$need_version
 
7420
 
 
7421
# Whether dlopen is supported.
 
7422
dlopen_support=$enable_dlopen
 
7423
 
 
7424
# Whether dlopen of programs is supported.
 
7425
dlopen_self=$enable_dlopen_self
 
7426
 
 
7427
# Whether dlopen of statically linked programs is supported.
 
7428
dlopen_self_static=$enable_dlopen_self_static
 
7429
 
 
7430
# Compiler flag to prevent dynamic linking.
 
7431
link_static_flag=$lt_link_static_flag
 
7432
 
 
7433
# Compiler flag to turn off builtin functions.
 
7434
no_builtin_flag=$lt_no_builtin_flag
 
7435
 
 
7436
# Compiler flag to allow reflexive dlopens.
 
7437
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
7438
 
 
7439
# Compiler flag to generate shared objects directly from archives.
 
7440
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
7441
 
 
7442
# Compiler flag to generate thread-safe objects.
 
7443
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
7444
 
 
7445
# Library versioning type.
 
7446
version_type=$version_type
 
7447
 
 
7448
# Format of library name prefix.
 
7449
libname_spec=$lt_libname_spec
 
7450
 
 
7451
# List of archive names.  First name is the real one, the rest are links.
 
7452
# The last name is the one that the linker finds with -lNAME.
 
7453
library_names_spec=$lt_library_names_spec
 
7454
 
 
7455
# The coded name of the library, if different from the real name.
 
7456
soname_spec=$lt_soname_spec
 
7457
 
 
7458
# Commands used to build and install an old-style archive.
 
7459
RANLIB=$lt_RANLIB
 
7460
old_archive_cmds=$lt_old_archive_cmds
 
7461
old_postinstall_cmds=$lt_old_postinstall_cmds
 
7462
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
7463
 
 
7464
# Create an old-style archive from a shared archive.
 
7465
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
7466
 
 
7467
# Create a temporary old-style archive to link instead of a shared archive.
 
7468
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
7469
 
 
7470
# Commands used to build and install a shared archive.
 
7471
archive_cmds=$lt_archive_cmds
 
7472
archive_expsym_cmds=$lt_archive_expsym_cmds
 
7473
postinstall_cmds=$lt_postinstall_cmds
 
7474
postuninstall_cmds=$lt_postuninstall_cmds
 
7475
 
 
7476
# Commands to strip libraries.
 
7477
old_striplib=$lt_old_striplib
 
7478
striplib=$lt_striplib
 
7479
 
 
7480
# Method to check whether dependent libraries are shared objects.
 
7481
deplibs_check_method=$lt_deplibs_check_method
 
7482
 
 
7483
# Command to use when deplibs_check_method == file_magic.
 
7484
file_magic_cmd=$lt_file_magic_cmd
 
7485
 
 
7486
# Flag that allows shared libraries with undefined symbols to be built.
 
7487
allow_undefined_flag=$lt_allow_undefined_flag
 
7488
 
 
7489
# Flag that forces no undefined symbols.
 
7490
no_undefined_flag=$lt_no_undefined_flag
 
7491
 
 
7492
# Commands used to finish a libtool library installation in a directory.
 
7493
finish_cmds=$lt_finish_cmds
 
7494
 
 
7495
# Same as above, but a single script fragment to be evaled but not shown.
 
7496
finish_eval=$lt_finish_eval
 
7497
 
 
7498
# Take the output of nm and produce a listing of raw symbols and C names.
 
7499
global_symbol_pipe=$lt_global_symbol_pipe
 
7500
 
 
7501
# Transform the output of nm in a proper C declaration
 
7502
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
 
7503
 
 
7504
# Transform the output of nm in a C name address pair
 
7505
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
 
7506
 
 
7507
# This is the shared library runtime path variable.
 
7508
runpath_var=$runpath_var
 
7509
 
 
7510
# This is the shared library path variable.
 
7511
shlibpath_var=$shlibpath_var
 
7512
 
 
7513
# Is shlibpath searched before the hard-coded library search path?
 
7514
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
7515
 
 
7516
# How to hardcode a shared library path into an executable.
 
7517
hardcode_action=$hardcode_action
 
7518
 
 
7519
# Whether we should hardcode library paths into libraries.
 
7520
hardcode_into_libs=$hardcode_into_libs
 
7521
 
 
7522
# Flag to hardcode \$libdir into a binary during linking.
 
7523
# This must work even if \$libdir does not exist.
 
7524
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
7525
 
 
7526
# Whether we need a single -rpath flag with a separated argument.
 
7527
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
7528
 
 
7529
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
7530
# resulting binary.
 
7531
hardcode_direct=$hardcode_direct
 
7532
 
 
7533
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
7534
# resulting binary.
 
7535
hardcode_minus_L=$hardcode_minus_L
 
7536
 
 
7537
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
7538
# the resulting binary.
 
7539
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
7540
 
 
7541
# Variables whose values should be saved in libtool wrapper scripts and
 
7542
# restored at relink time.
 
7543
variables_saved_for_relink="$variables_saved_for_relink"
 
7544
 
 
7545
# Whether libtool must link a program against all its dependency libraries.
 
7546
link_all_deplibs=$link_all_deplibs
 
7547
 
 
7548
# Compile-time system search path for libraries
 
7549
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
7550
 
 
7551
# Run-time system search path for libraries
 
7552
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
7553
 
 
7554
# Fix the shell variable \$srcfile for the compiler.
 
7555
fix_srcfile_path="$fix_srcfile_path"
 
7556
 
 
7557
# Set to yes if exported symbols are required.
 
7558
always_export_symbols=$always_export_symbols
 
7559
 
 
7560
# The commands to list exported symbols.
 
7561
export_symbols_cmds=$lt_export_symbols_cmds
 
7562
 
 
7563
# The commands to extract the exported symbol list from a shared archive.
 
7564
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
7565
 
 
7566
# Symbols that should not be listed in the preloaded symbols.
 
7567
exclude_expsyms=$lt_exclude_expsyms
 
7568
 
 
7569
# Symbols that must always be exported.
 
7570
include_expsyms=$lt_include_expsyms
 
7571
 
 
7572
# ### END LIBTOOL CONFIG
 
7573
 
 
7574
__EOF__
 
7575
 
 
7576
  case $host_os in
 
7577
  aix3*)
 
7578
    cat <<\EOF >> "${ofile}T"
 
7579
 
 
7580
# AIX sometimes has problems with the GCC collect2 program.  For some
 
7581
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
7582
# vanish in a puff of smoke.
 
7583
if test "X${COLLECT_NAMES+set}" != Xset; then
 
7584
  COLLECT_NAMES=
 
7585
  export COLLECT_NAMES
 
7586
fi
 
7587
EOF
 
7588
    ;;
 
7589
  esac
 
7590
 
 
7591
  case $host_os in
 
7592
  cygwin* | mingw* | pw32* | os2*)
 
7593
    cat <<'EOF' >> "${ofile}T"
 
7594
      # This is a source program that is used to create dlls on Windows
 
7595
      # Don't remove nor modify the starting and closing comments
 
7596
# /* ltdll.c starts here */
 
7597
# #define WIN32_LEAN_AND_MEAN
 
7598
# #include <windows.h>
 
7599
# #undef WIN32_LEAN_AND_MEAN
 
7600
# #include <stdio.h>
 
7601
#
 
7602
# #ifndef __CYGWIN__
 
7603
# #  ifdef __CYGWIN32__
 
7604
# #    define __CYGWIN__ __CYGWIN32__
 
7605
# #  endif
 
7606
# #endif
 
7607
#
 
7608
# #ifdef __cplusplus
 
7609
# extern "C" {
 
7610
# #endif
 
7611
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
 
7612
# #ifdef __cplusplus
 
7613
# }
 
7614
# #endif
 
7615
#
 
7616
# #ifdef __CYGWIN__
 
7617
# #include <cygwin/cygwin_dll.h>
 
7618
# DECLARE_CYGWIN_DLL( DllMain );
 
7619
# #endif
 
7620
# HINSTANCE __hDllInstance_base;
 
7621
#
 
7622
# BOOL APIENTRY
 
7623
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
 
7624
# {
 
7625
#   __hDllInstance_base = hInst;
 
7626
#   return TRUE;
 
7627
# }
 
7628
# /* ltdll.c ends here */
 
7629
        # This is a source program that is used to create import libraries
 
7630
        # on Windows for dlls which lack them. Don't remove nor modify the
 
7631
        # starting and closing comments
 
7632
# /* impgen.c starts here */
 
7633
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
 
7634
#
 
7635
#  This file is part of GNU libtool.
 
7636
#
 
7637
#  This program is free software; you can redistribute it and/or modify
 
7638
#  it under the terms of the GNU General Public License as published by
 
7639
#  the Free Software Foundation; either version 2 of the License, or
 
7640
#  (at your option) any later version.
 
7641
#
 
7642
#  This program is distributed in the hope that it will be useful,
 
7643
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
7644
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
7645
#  GNU General Public License for more details.
 
7646
#
 
7647
#  You should have received a copy of the GNU General Public License
 
7648
#  along with this program; if not, write to the Free Software
 
7649
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
7650
#  */
 
7651
#
 
7652
# #include <stdio.h>            /* for printf() */
 
7653
# #include <unistd.h>           /* for open(), lseek(), read() */
 
7654
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
 
7655
# #include <string.h>           /* for strdup() */
 
7656
#
 
7657
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
 
7658
# #ifndef O_BINARY
 
7659
# #define O_BINARY 0
 
7660
# #endif
 
7661
#
 
7662
# static unsigned int
 
7663
# pe_get16 (fd, offset)
 
7664
#      int fd;
 
7665
#      int offset;
 
7666
# {
 
7667
#   unsigned char b[2];
 
7668
#   lseek (fd, offset, SEEK_SET);
 
7669
#   read (fd, b, 2);
 
7670
#   return b[0] + (b[1]<<8);
 
7671
# }
 
7672
#
 
7673
# static unsigned int
 
7674
# pe_get32 (fd, offset)
 
7675
#     int fd;
 
7676
#     int offset;
 
7677
# {
 
7678
#   unsigned char b[4];
 
7679
#   lseek (fd, offset, SEEK_SET);
 
7680
#   read (fd, b, 4);
 
7681
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
 
7682
# }
 
7683
#
 
7684
# static unsigned int
 
7685
# pe_as32 (ptr)
 
7686
#      void *ptr;
 
7687
# {
 
7688
#   unsigned char *b = ptr;
 
7689
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
 
7690
# }
 
7691
#
 
7692
# int
 
7693
# main (argc, argv)
 
7694
#     int argc;
 
7695
#     char *argv[];
 
7696
# {
 
7697
#     int dll;
 
7698
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
 
7699
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
 
7700
#     unsigned long name_rvas, nexp;
 
7701
#     unsigned char *expdata, *erva;
 
7702
#     char *filename, *dll_name;
 
7703
#
 
7704
#     filename = argv[1];
 
7705
#
 
7706
#     dll = open(filename, O_RDONLY|O_BINARY);
 
7707
#     if (dll < 1)
 
7708
#       return 1;
 
7709
#
 
7710
#     dll_name = filename;
 
7711
#
 
7712
#     for (i=0; filename[i]; i++)
 
7713
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
 
7714
#           dll_name = filename + i +1;
 
7715
#
 
7716
#     pe_header_offset = pe_get32 (dll, 0x3c);
 
7717
#     opthdr_ofs = pe_header_offset + 4 + 20;
 
7718
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
 
7719
#
 
7720
#     if (num_entries < 1) /* no exports */
 
7721
#       return 1;
 
7722
#
 
7723
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
 
7724
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
 
7725
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
 
7726
#     secptr = (pe_header_offset + 4 + 20 +
 
7727
#             pe_get16 (dll, pe_header_offset + 4 + 16));
 
7728
#
 
7729
#     expptr = 0;
 
7730
#     for (i = 0; i < nsections; i++)
 
7731
#     {
 
7732
#       char sname[8];
 
7733
#       unsigned long secptr1 = secptr + 40 * i;
 
7734
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
 
7735
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
 
7736
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
 
7737
#       lseek(dll, secptr1, SEEK_SET);
 
7738
#       read(dll, sname, 8);
 
7739
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
 
7740
#       {
 
7741
#           expptr = fptr + (export_rva - vaddr);
 
7742
#           if (export_rva + export_size > vaddr + vsize)
 
7743
#               export_size = vsize - (export_rva - vaddr);
 
7744
#           break;
 
7745
#       }
 
7746
#     }
 
7747
#
 
7748
#     expdata = (unsigned char*)malloc(export_size);
 
7749
#     lseek (dll, expptr, SEEK_SET);
 
7750
#     read (dll, expdata, export_size);
 
7751
#     erva = expdata - export_rva;
 
7752
#
 
7753
#     nexp = pe_as32 (expdata+24);
 
7754
#     name_rvas = pe_as32 (expdata+32);
 
7755
#
 
7756
#     printf ("EXPORTS\n");
 
7757
#     for (i = 0; i<nexp; i++)
 
7758
#     {
 
7759
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
 
7760
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
 
7761
#     }
 
7762
#
 
7763
#     return 0;
 
7764
# }
 
7765
# /* impgen.c ends here */
 
7766
 
 
7767
EOF
 
7768
    ;;
 
7769
  esac
 
7770
 
 
7771
  # We use sed instead of cat because bash on DJGPP gets confused if
 
7772
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
7773
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
7774
  # is reportedly fixed, but why not run on old versions too?
 
7775
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
 
7776
 
 
7777
  mv -f "${ofile}T" "$ofile" || \
 
7778
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
 
7779
  chmod +x "$ofile"
 
7780
fi
 
7781
 
 
7782
# This can be used to rebuild libtool when needed
 
7783
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
7784
 
 
7785
# Always use our own libtool.
 
7786
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7787
 
 
7788
# Prevent multiple expansion
 
7789
 
 
7790
echo "$as_me:7790: checking whether ${MAKE-make} sets \${MAKE}" >&5
 
7791
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
 
7792
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
7793
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
7794
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7795
else
 
7796
  cat >conftest.make <<\EOF
 
7797
all:
 
7798
        @echo 'ac_maketemp="${MAKE}"'
 
7799
EOF
 
7800
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
7801
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
7802
if test -n "$ac_maketemp"; then
 
7803
  eval ac_cv_prog_make_${ac_make}_set=yes
 
7804
else
 
7805
  eval ac_cv_prog_make_${ac_make}_set=no
 
7806
fi
 
7807
rm -f conftest.make
 
7808
fi
 
7809
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
7810
  echo "$as_me:7810: result: yes" >&5
 
7811
echo "${ECHO_T}yes" >&6
 
7812
  SET_MAKE=
 
7813
else
 
7814
  echo "$as_me:7814: result: no" >&5
 
7815
echo "${ECHO_T}no" >&6
 
7816
  SET_MAKE="MAKE=${MAKE-make}"
 
7817
fi
 
7818
 
 
7819
echo "$as_me:7819: checking whether to enable debug options" >&5
 
7820
echo $ECHO_N "checking whether to enable debug options... $ECHO_C" >&6
 
7821
# Check whether --enable-debug or --disable-debug was given.
 
7822
if test "${enable_debug+set}" = set; then
 
7823
  enableval="$enable_debug"
 
7824
   case "$enableval" in
 
7825
  no)
 
7826
       echo "$as_me:7826: result: no" >&5
 
7827
echo "${ECHO_T}no" >&6
 
7828
       ;;
 
7829
  *)   echo "$as_me:7829: result: yes" >&5
 
7830
echo "${ECHO_T}yes" >&6
 
7831
 
 
7832
    CPPFLAGS="$CPPFLAGS -DMALLOCDEBUG"
 
7833
    CFLAGS="-W -Wall -Wwrite-strings -pedantic -Wundef -Wpointer-arith -Wcast-align -Wnested-externs -g"
 
7834
       ;;
 
7835
  esac
 
7836
else
 
7837
  echo "$as_me:7837: result: no" >&5
 
7838
echo "${ECHO_T}no" >&6
 
7839
 
 
7840
fi;
 
7841
 
 
7842
echo "$as_me:7842: checking whether to enable ipv6" >&5
 
7843
echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
 
7844
# Check whether --enable-ipv6 or --disable-ipv6 was given.
 
7845
if test "${enable_ipv6+set}" = set; then
 
7846
  enableval="$enable_ipv6"
 
7847
   case "$enableval" in
 
7848
  no)
 
7849
       echo "$as_me:7849: result: no" >&5
 
7850
echo "${ECHO_T}no" >&6
 
7851
       ipv6=no
 
7852
       ;;
 
7853
  *)   echo "$as_me:7853: result: yes" >&5
 
7854
echo "${ECHO_T}yes" >&6
 
7855
       ipv6=yes
 
7856
       ;;
 
7857
  esac
 
7858
else
 
7859
  if test "$cross_compiling" = yes; then
 
7860
  echo "$as_me:7860: result: no" >&5
 
7861
echo "${ECHO_T}no" >&6
 
7862
  ipv6=no
 
7863
 
 
7864
else
 
7865
  cat >conftest.$ac_ext <<_ACEOF
 
7866
#line 7866 "configure"
 
7867
#include "confdefs.h"
 
7868
 /* is AF_INET6 available? */
 
7869
#include <sys/types.h>
 
7870
#include <sys/socket.h>
 
7871
main()
 
7872
{
 
7873
 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
 
7874
   exit(1);
 
7875
 else
 
7876
   exit(0);
 
7877
}
 
7878
 
 
7879
_ACEOF
 
7880
rm -f conftest$ac_exeext
 
7881
if { (eval echo "$as_me:7881: \"$ac_link\"") >&5
 
7882
  (eval $ac_link) 2>&5
 
7883
  ac_status=$?
 
7884
  echo "$as_me:7884: \$? = $ac_status" >&5
 
7885
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7886
  { (eval echo "$as_me:7886: \"$ac_try\"") >&5
 
7887
  (eval $ac_try) 2>&5
 
7888
  ac_status=$?
 
7889
  echo "$as_me:7889: \$? = $ac_status" >&5
 
7890
  (exit $ac_status); }; }; then
 
7891
  echo "$as_me:7891: result: yes" >&5
 
7892
echo "${ECHO_T}yes" >&6
 
7893
  ipv6=yes
 
7894
else
 
7895
  echo "$as_me: program exited with status $ac_status" >&5
 
7896
echo "$as_me: failed program was:" >&5
 
7897
cat conftest.$ac_ext >&5
 
7898
echo "$as_me:7898: result: no" >&5
 
7899
echo "${ECHO_T}no" >&6
 
7900
  ipv6=no
 
7901
fi
 
7902
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7903
fi
 
7904
fi;
 
7905
 
 
7906
if test "$ipv6" = "yes"; then
 
7907
 
 
7908
  echo "$as_me:7908: checking for working getaddrinfo" >&5
 
7909
echo $ECHO_N "checking for working getaddrinfo... $ECHO_C" >&6
 
7910
if test "${ac_cv_working_getaddrinfo+set}" = set; then
 
7911
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7912
else
 
7913
 
 
7914
  if test "$cross_compiling" = yes; then
 
7915
 
 
7916
  ac_cv_working_getaddrinfo="yes"
 
7917
 
 
7918
else
 
7919
  cat >conftest.$ac_ext <<_ACEOF
 
7920
#line 7920 "configure"
 
7921
#include "confdefs.h"
 
7922
 
 
7923
#include <netdb.h>
 
7924
#include <sys/types.h>
 
7925
#include <sys/socket.h>
 
7926
 
 
7927
void main(void) {
 
7928
    struct addrinfo hints, *ai;
 
7929
    int error;
 
7930
 
 
7931
    memset(&hints, 0, sizeof(hints));
 
7932
    hints.ai_family = AF_UNSPEC;
 
7933
    hints.ai_socktype = SOCK_STREAM;
 
7934
    error = getaddrinfo("127.0.0.1", "8080", &hints, &ai);
 
7935
    if (error) {
 
7936
        exit(1);
 
7937
    }
 
7938
    else {
 
7939
        exit(0);
 
7940
    }
 
7941
}
 
7942
 
 
7943
_ACEOF
 
7944
rm -f conftest$ac_exeext
 
7945
if { (eval echo "$as_me:7945: \"$ac_link\"") >&5
 
7946
  (eval $ac_link) 2>&5
 
7947
  ac_status=$?
 
7948
  echo "$as_me:7948: \$? = $ac_status" >&5
 
7949
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7950
  { (eval echo "$as_me:7950: \"$ac_try\"") >&5
 
7951
  (eval $ac_try) 2>&5
 
7952
  ac_status=$?
 
7953
  echo "$as_me:7953: \$? = $ac_status" >&5
 
7954
  (exit $ac_status); }; }; then
 
7955
 
 
7956
  ac_cv_working_getaddrinfo="yes"
 
7957
 
 
7958
else
 
7959
  echo "$as_me: program exited with status $ac_status" >&5
 
7960
echo "$as_me: failed program was:" >&5
 
7961
cat conftest.$ac_ext >&5
 
7962
 
 
7963
  ac_cv_working_getaddrinfo="no"
 
7964
 
 
7965
fi
 
7966
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7967
fi
 
7968
fi
 
7969
echo "$as_me:7969: result: $ac_cv_working_getaddrinfo" >&5
 
7970
echo "${ECHO_T}$ac_cv_working_getaddrinfo" >&6
 
7971
if test "$ac_cv_working_getaddrinfo" = "yes"; then
 
7972
 
 
7973
cat >>confdefs.h <<\EOF
 
7974
#define HAVE_GETADDRINFO 1
 
7975
EOF
 
7976
 
 
7977
cat >>confdefs.h <<\EOF
 
7978
#define ENABLE_IPV6 1
 
7979
EOF
 
7980
 
 
7981
  IPV6_ENABLED=1
 
7982
 
 
7983
fi
 
7984
 
 
7985
fi
 
7986
 
 
7987
echo "$as_me:7987: checking for gethostbyname" >&5
 
7988
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
 
7989
if test "${ac_cv_func_gethostbyname+set}" = set; then
 
7990
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7991
else
 
7992
  cat >conftest.$ac_ext <<_ACEOF
 
7993
#line 7993 "configure"
 
7994
#include "confdefs.h"
 
7995
/* System header to define __stub macros and hopefully few prototypes,
 
7996
    which can conflict with char gethostbyname (); below.  */
 
7997
#include <assert.h>
 
7998
/* Override any gcc2 internal prototype to avoid an error.  */
 
7999
#ifdef __cplusplus
 
8000
extern "C"
 
8001
#endif
 
8002
/* We use char because int might match the return type of a gcc2
 
8003
   builtin and then its argument prototype would still apply.  */
 
8004
char gethostbyname ();
 
8005
char (*f) ();
 
8006
 
 
8007
int
 
8008
main ()
 
8009
{
 
8010
/* The GNU C library defines this for functions which it implements
 
8011
    to always fail with ENOSYS.  Some functions are actually named
 
8012
    something starting with __ and the normal name is an alias.  */
 
8013
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
 
8014
choke me
 
8015
#else
 
8016
f = gethostbyname;
 
8017
#endif
 
8018
 
 
8019
  ;
 
8020
  return 0;
 
8021
}
 
8022
_ACEOF
 
8023
rm -f conftest.$ac_objext conftest$ac_exeext
 
8024
if { (eval echo "$as_me:8024: \"$ac_link\"") >&5
 
8025
  (eval $ac_link) 2>&5
 
8026
  ac_status=$?
 
8027
  echo "$as_me:8027: \$? = $ac_status" >&5
 
8028
  (exit $ac_status); } &&
 
8029
         { ac_try='test -s conftest$ac_exeext'
 
8030
  { (eval echo "$as_me:8030: \"$ac_try\"") >&5
 
8031
  (eval $ac_try) 2>&5
 
8032
  ac_status=$?
 
8033
  echo "$as_me:8033: \$? = $ac_status" >&5
 
8034
  (exit $ac_status); }; }; then
 
8035
  ac_cv_func_gethostbyname=yes
 
8036
else
 
8037
  echo "$as_me: failed program was:" >&5
 
8038
cat conftest.$ac_ext >&5
 
8039
ac_cv_func_gethostbyname=no
 
8040
fi
 
8041
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8042
fi
 
8043
echo "$as_me:8043: result: $ac_cv_func_gethostbyname" >&5
 
8044
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
 
8045
if test $ac_cv_func_gethostbyname = yes; then
 
8046
  :
 
8047
else
 
8048
 
 
8049
echo "$as_me:8049: checking for gethostbyname in -lnsl" >&5
 
8050
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
 
8051
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
 
8052
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8053
else
 
8054
  ac_check_lib_save_LIBS=$LIBS
 
8055
LIBS="-lnsl  $LIBS"
 
8056
cat >conftest.$ac_ext <<_ACEOF
 
8057
#line 8057 "configure"
 
8058
#include "confdefs.h"
 
8059
 
 
8060
/* Override any gcc2 internal prototype to avoid an error.  */
 
8061
#ifdef __cplusplus
 
8062
extern "C"
 
8063
#endif
 
8064
/* We use char because int might match the return type of a gcc2
 
8065
   builtin and then its argument prototype would still apply.  */
 
8066
char gethostbyname ();
 
8067
int
 
8068
main ()
 
8069
{
 
8070
gethostbyname ();
 
8071
  ;
 
8072
  return 0;
 
8073
}
 
8074
_ACEOF
 
8075
rm -f conftest.$ac_objext conftest$ac_exeext
 
8076
if { (eval echo "$as_me:8076: \"$ac_link\"") >&5
 
8077
  (eval $ac_link) 2>&5
 
8078
  ac_status=$?
 
8079
  echo "$as_me:8079: \$? = $ac_status" >&5
 
8080
  (exit $ac_status); } &&
 
8081
         { ac_try='test -s conftest$ac_exeext'
 
8082
  { (eval echo "$as_me:8082: \"$ac_try\"") >&5
 
8083
  (eval $ac_try) 2>&5
 
8084
  ac_status=$?
 
8085
  echo "$as_me:8085: \$? = $ac_status" >&5
 
8086
  (exit $ac_status); }; }; then
 
8087
  ac_cv_lib_nsl_gethostbyname=yes
 
8088
else
 
8089
  echo "$as_me: failed program was:" >&5
 
8090
cat conftest.$ac_ext >&5
 
8091
ac_cv_lib_nsl_gethostbyname=no
 
8092
fi
 
8093
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8094
LIBS=$ac_check_lib_save_LIBS
 
8095
fi
 
8096
echo "$as_me:8096: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
8097
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
 
8098
if test $ac_cv_lib_nsl_gethostbyname = yes; then
 
8099
  cat >>confdefs.h <<EOF
 
8100
#define HAVE_LIBNSL 1
 
8101
EOF
 
8102
 
 
8103
  LIBS="-lnsl $LIBS"
 
8104
 
 
8105
fi
 
8106
 
 
8107
fi
 
8108
 
 
8109
if test "$ac_cv_lib_nsl_gethostbyname" != "yes" -a "$ac_cv_func_gethostbyname" != "yes"; then
 
8110
    echo "$as_me:8110: checking for gethostbyname" >&5
 
8111
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
 
8112
if test "${ac_cv_func_gethostbyname+set}" = set; then
 
8113
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8114
else
 
8115
  cat >conftest.$ac_ext <<_ACEOF
 
8116
#line 8116 "configure"
 
8117
#include "confdefs.h"
 
8118
/* System header to define __stub macros and hopefully few prototypes,
 
8119
    which can conflict with char gethostbyname (); below.  */
 
8120
#include <assert.h>
 
8121
/* Override any gcc2 internal prototype to avoid an error.  */
 
8122
#ifdef __cplusplus
 
8123
extern "C"
 
8124
#endif
 
8125
/* We use char because int might match the return type of a gcc2
 
8126
   builtin and then its argument prototype would still apply.  */
 
8127
char gethostbyname ();
 
8128
char (*f) ();
 
8129
 
 
8130
int
 
8131
main ()
 
8132
{
 
8133
/* The GNU C library defines this for functions which it implements
 
8134
    to always fail with ENOSYS.  Some functions are actually named
 
8135
    something starting with __ and the normal name is an alias.  */
 
8136
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
 
8137
choke me
 
8138
#else
 
8139
f = gethostbyname;
 
8140
#endif
 
8141
 
 
8142
  ;
 
8143
  return 0;
 
8144
}
 
8145
_ACEOF
 
8146
rm -f conftest.$ac_objext conftest$ac_exeext
 
8147
if { (eval echo "$as_me:8147: \"$ac_link\"") >&5
 
8148
  (eval $ac_link) 2>&5
 
8149
  ac_status=$?
 
8150
  echo "$as_me:8150: \$? = $ac_status" >&5
 
8151
  (exit $ac_status); } &&
 
8152
         { ac_try='test -s conftest$ac_exeext'
 
8153
  { (eval echo "$as_me:8153: \"$ac_try\"") >&5
 
8154
  (eval $ac_try) 2>&5
 
8155
  ac_status=$?
 
8156
  echo "$as_me:8156: \$? = $ac_status" >&5
 
8157
  (exit $ac_status); }; }; then
 
8158
  ac_cv_func_gethostbyname=yes
 
8159
else
 
8160
  echo "$as_me: failed program was:" >&5
 
8161
cat conftest.$ac_ext >&5
 
8162
ac_cv_func_gethostbyname=no
 
8163
fi
 
8164
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8165
fi
 
8166
echo "$as_me:8166: result: $ac_cv_func_gethostbyname" >&5
 
8167
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
 
8168
if test $ac_cv_func_gethostbyname = yes; then
 
8169
  :
 
8170
else
 
8171
 
 
8172
echo "$as_me:8172: checking for gethostbyname in -lsocket" >&5
 
8173
echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
 
8174
if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
 
8175
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8176
else
 
8177
  ac_check_lib_save_LIBS=$LIBS
 
8178
LIBS="-lsocket  $LIBS"
 
8179
cat >conftest.$ac_ext <<_ACEOF
 
8180
#line 8180 "configure"
 
8181
#include "confdefs.h"
 
8182
 
 
8183
/* Override any gcc2 internal prototype to avoid an error.  */
 
8184
#ifdef __cplusplus
 
8185
extern "C"
 
8186
#endif
 
8187
/* We use char because int might match the return type of a gcc2
 
8188
   builtin and then its argument prototype would still apply.  */
 
8189
char gethostbyname ();
 
8190
int
 
8191
main ()
 
8192
{
 
8193
gethostbyname ();
 
8194
  ;
 
8195
  return 0;
 
8196
}
 
8197
_ACEOF
 
8198
rm -f conftest.$ac_objext conftest$ac_exeext
 
8199
if { (eval echo "$as_me:8199: \"$ac_link\"") >&5
 
8200
  (eval $ac_link) 2>&5
 
8201
  ac_status=$?
 
8202
  echo "$as_me:8202: \$? = $ac_status" >&5
 
8203
  (exit $ac_status); } &&
 
8204
         { ac_try='test -s conftest$ac_exeext'
 
8205
  { (eval echo "$as_me:8205: \"$ac_try\"") >&5
 
8206
  (eval $ac_try) 2>&5
 
8207
  ac_status=$?
 
8208
  echo "$as_me:8208: \$? = $ac_status" >&5
 
8209
  (exit $ac_status); }; }; then
 
8210
  ac_cv_lib_socket_gethostbyname=yes
 
8211
else
 
8212
  echo "$as_me: failed program was:" >&5
 
8213
cat conftest.$ac_ext >&5
 
8214
ac_cv_lib_socket_gethostbyname=no
 
8215
fi
 
8216
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8217
LIBS=$ac_check_lib_save_LIBS
 
8218
fi
 
8219
echo "$as_me:8219: result: $ac_cv_lib_socket_gethostbyname" >&5
 
8220
echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
 
8221
if test $ac_cv_lib_socket_gethostbyname = yes; then
 
8222
  cat >>confdefs.h <<EOF
 
8223
#define HAVE_LIBSOCKET 1
 
8224
EOF
 
8225
 
 
8226
  LIBS="-lsocket $LIBS"
 
8227
 
 
8228
fi
 
8229
 
 
8230
fi
 
8231
 
 
8232
fi
 
8233
 
 
8234
if test "$ac_cv_lib_nsl_gethostbyname" = "$ac_cv_func_gethostbyname"; then
 
8235
  echo "$as_me:8235: checking trying both nsl and socket libs" >&5
 
8236
echo $ECHO_N "checking trying both nsl and socket libs... $ECHO_C" >&6
 
8237
  my_ac_save_LIBS=$LIBS
 
8238
  LIBS="-lnsl -lsocket $LIBS"
 
8239
  cat >conftest.$ac_ext <<_ACEOF
 
8240
#line 8240 "configure"
 
8241
#include "confdefs.h"
 
8242
 
 
8243
int
 
8244
main ()
 
8245
{
 
8246
gethostbyname();
 
8247
  ;
 
8248
  return 0;
 
8249
}
 
8250
_ACEOF
 
8251
rm -f conftest.$ac_objext conftest$ac_exeext
 
8252
if { (eval echo "$as_me:8252: \"$ac_link\"") >&5
 
8253
  (eval $ac_link) 2>&5
 
8254
  ac_status=$?
 
8255
  echo "$as_me:8255: \$? = $ac_status" >&5
 
8256
  (exit $ac_status); } &&
 
8257
         { ac_try='test -s conftest$ac_exeext'
 
8258
  { (eval echo "$as_me:8258: \"$ac_try\"") >&5
 
8259
  (eval $ac_try) 2>&5
 
8260
  ac_status=$?
 
8261
  echo "$as_me:8261: \$? = $ac_status" >&5
 
8262
  (exit $ac_status); }; }; then
 
8263
  my_ac_link_result=success
 
8264
else
 
8265
  echo "$as_me: failed program was:" >&5
 
8266
cat conftest.$ac_ext >&5
 
8267
my_ac_link_result=failure
 
8268
fi
 
8269
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8270
 
 
8271
  if test "$my_ac_link_result" = "failure"; then
 
8272
    echo "$as_me:8272: result: no" >&5
 
8273
echo "${ECHO_T}no" >&6
 
8274
    { { echo "$as_me:8274: error: couldn't find libraries for gethostbyname()" >&5
 
8275
echo "$as_me: error: couldn't find libraries for gethostbyname()" >&2;}
 
8276
   { (exit 1); exit 1; }; }
 
8277
        LIBS=$my_ac_save_LIBS
 
8278
  else
 
8279
    echo "$as_me:8279: result: yes" >&5
 
8280
echo "${ECHO_T}yes" >&6
 
8281
  fi
 
8282
fi
 
8283
 
 
8284
echo "$as_me:8284: checking for strcasecmp" >&5
 
8285
echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
 
8286
if test "${ac_cv_func_strcasecmp+set}" = set; then
 
8287
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8288
else
 
8289
  cat >conftest.$ac_ext <<_ACEOF
 
8290
#line 8290 "configure"
 
8291
#include "confdefs.h"
 
8292
/* System header to define __stub macros and hopefully few prototypes,
 
8293
    which can conflict with char strcasecmp (); below.  */
 
8294
#include <assert.h>
 
8295
/* Override any gcc2 internal prototype to avoid an error.  */
 
8296
#ifdef __cplusplus
 
8297
extern "C"
 
8298
#endif
 
8299
/* We use char because int might match the return type of a gcc2
 
8300
   builtin and then its argument prototype would still apply.  */
 
8301
char strcasecmp ();
 
8302
char (*f) ();
 
8303
 
 
8304
int
 
8305
main ()
 
8306
{
 
8307
/* The GNU C library defines this for functions which it implements
 
8308
    to always fail with ENOSYS.  Some functions are actually named
 
8309
    something starting with __ and the normal name is an alias.  */
 
8310
#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
 
8311
choke me
 
8312
#else
 
8313
f = strcasecmp;
 
8314
#endif
 
8315
 
 
8316
  ;
 
8317
  return 0;
 
8318
}
 
8319
_ACEOF
 
8320
rm -f conftest.$ac_objext conftest$ac_exeext
 
8321
if { (eval echo "$as_me:8321: \"$ac_link\"") >&5
 
8322
  (eval $ac_link) 2>&5
 
8323
  ac_status=$?
 
8324
  echo "$as_me:8324: \$? = $ac_status" >&5
 
8325
  (exit $ac_status); } &&
 
8326
         { ac_try='test -s conftest$ac_exeext'
 
8327
  { (eval echo "$as_me:8327: \"$ac_try\"") >&5
 
8328
  (eval $ac_try) 2>&5
 
8329
  ac_status=$?
 
8330
  echo "$as_me:8330: \$? = $ac_status" >&5
 
8331
  (exit $ac_status); }; }; then
 
8332
  ac_cv_func_strcasecmp=yes
 
8333
else
 
8334
  echo "$as_me: failed program was:" >&5
 
8335
cat conftest.$ac_ext >&5
 
8336
ac_cv_func_strcasecmp=no
 
8337
fi
 
8338
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8339
fi
 
8340
echo "$as_me:8340: result: $ac_cv_func_strcasecmp" >&5
 
8341
echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
 
8342
if test $ac_cv_func_strcasecmp = yes; then
 
8343
  :
 
8344
else
 
8345
 
 
8346
echo "$as_me:8346: checking for strcasecmp in -lresolve" >&5
 
8347
echo $ECHO_N "checking for strcasecmp in -lresolve... $ECHO_C" >&6
 
8348
if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then
 
8349
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8350
else
 
8351
  ac_check_lib_save_LIBS=$LIBS
 
8352
LIBS="-lresolve  $LIBS"
 
8353
cat >conftest.$ac_ext <<_ACEOF
 
8354
#line 8354 "configure"
 
8355
#include "confdefs.h"
 
8356
 
 
8357
/* Override any gcc2 internal prototype to avoid an error.  */
 
8358
#ifdef __cplusplus
 
8359
extern "C"
 
8360
#endif
 
8361
/* We use char because int might match the return type of a gcc2
 
8362
   builtin and then its argument prototype would still apply.  */
 
8363
char strcasecmp ();
 
8364
int
 
8365
main ()
 
8366
{
 
8367
strcasecmp ();
 
8368
  ;
 
8369
  return 0;
 
8370
}
 
8371
_ACEOF
 
8372
rm -f conftest.$ac_objext conftest$ac_exeext
 
8373
if { (eval echo "$as_me:8373: \"$ac_link\"") >&5
 
8374
  (eval $ac_link) 2>&5
 
8375
  ac_status=$?
 
8376
  echo "$as_me:8376: \$? = $ac_status" >&5
 
8377
  (exit $ac_status); } &&
 
8378
         { ac_try='test -s conftest$ac_exeext'
 
8379
  { (eval echo "$as_me:8379: \"$ac_try\"") >&5
 
8380
  (eval $ac_try) 2>&5
 
8381
  ac_status=$?
 
8382
  echo "$as_me:8382: \$? = $ac_status" >&5
 
8383
  (exit $ac_status); }; }; then
 
8384
  ac_cv_lib_resolve_strcasecmp=yes
 
8385
else
 
8386
  echo "$as_me: failed program was:" >&5
 
8387
cat conftest.$ac_ext >&5
 
8388
ac_cv_lib_resolve_strcasecmp=no
 
8389
fi
 
8390
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8391
LIBS=$ac_check_lib_save_LIBS
 
8392
fi
 
8393
echo "$as_me:8393: result: $ac_cv_lib_resolve_strcasecmp" >&5
 
8394
echo "${ECHO_T}$ac_cv_lib_resolve_strcasecmp" >&6
 
8395
if test $ac_cv_lib_resolve_strcasecmp = yes; then
 
8396
  cat >>confdefs.h <<EOF
 
8397
#define HAVE_LIBRESOLVE 1
 
8398
EOF
 
8399
 
 
8400
  LIBS="-lresolve $LIBS"
 
8401
 
 
8402
fi
 
8403
 
 
8404
fi
 
8405
 
 
8406
if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
 
8407
  echo "$as_me:8407: checking for strcasecmp in -lresolve" >&5
 
8408
echo $ECHO_N "checking for strcasecmp in -lresolve... $ECHO_C" >&6
 
8409
if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then
 
8410
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8411
else
 
8412
  ac_check_lib_save_LIBS=$LIBS
 
8413
LIBS="-lresolve -lnsl $LIBS"
 
8414
cat >conftest.$ac_ext <<_ACEOF
 
8415
#line 8415 "configure"
 
8416
#include "confdefs.h"
 
8417
 
 
8418
/* Override any gcc2 internal prototype to avoid an error.  */
 
8419
#ifdef __cplusplus
 
8420
extern "C"
 
8421
#endif
 
8422
/* We use char because int might match the return type of a gcc2
 
8423
   builtin and then its argument prototype would still apply.  */
 
8424
char strcasecmp ();
 
8425
int
 
8426
main ()
 
8427
{
 
8428
strcasecmp ();
 
8429
  ;
 
8430
  return 0;
 
8431
}
 
8432
_ACEOF
 
8433
rm -f conftest.$ac_objext conftest$ac_exeext
 
8434
if { (eval echo "$as_me:8434: \"$ac_link\"") >&5
 
8435
  (eval $ac_link) 2>&5
 
8436
  ac_status=$?
 
8437
  echo "$as_me:8437: \$? = $ac_status" >&5
 
8438
  (exit $ac_status); } &&
 
8439
         { ac_try='test -s conftest$ac_exeext'
 
8440
  { (eval echo "$as_me:8440: \"$ac_try\"") >&5
 
8441
  (eval $ac_try) 2>&5
 
8442
  ac_status=$?
 
8443
  echo "$as_me:8443: \$? = $ac_status" >&5
 
8444
  (exit $ac_status); }; }; then
 
8445
  ac_cv_lib_resolve_strcasecmp=yes
 
8446
else
 
8447
  echo "$as_me: failed program was:" >&5
 
8448
cat conftest.$ac_ext >&5
 
8449
ac_cv_lib_resolve_strcasecmp=no
 
8450
fi
 
8451
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8452
LIBS=$ac_check_lib_save_LIBS
 
8453
fi
 
8454
echo "$as_me:8454: result: $ac_cv_lib_resolve_strcasecmp" >&5
 
8455
echo "${ECHO_T}$ac_cv_lib_resolve_strcasecmp" >&6
 
8456
if test $ac_cv_lib_resolve_strcasecmp = yes; then
 
8457
  LIBS="-lresolve $LIBS"
 
8458
fi
 
8459
 
 
8460
fi
 
8461
 
 
8462
echo "$as_me:8462: checking for connect" >&5
 
8463
echo $ECHO_N "checking for connect... $ECHO_C" >&6
 
8464
if test "${ac_cv_func_connect+set}" = set; then
 
8465
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8466
else
 
8467
  cat >conftest.$ac_ext <<_ACEOF
 
8468
#line 8468 "configure"
 
8469
#include "confdefs.h"
 
8470
/* System header to define __stub macros and hopefully few prototypes,
 
8471
    which can conflict with char connect (); below.  */
 
8472
#include <assert.h>
 
8473
/* Override any gcc2 internal prototype to avoid an error.  */
 
8474
#ifdef __cplusplus
 
8475
extern "C"
 
8476
#endif
 
8477
/* We use char because int might match the return type of a gcc2
 
8478
   builtin and then its argument prototype would still apply.  */
 
8479
char connect ();
 
8480
char (*f) ();
 
8481
 
 
8482
int
 
8483
main ()
 
8484
{
 
8485
/* The GNU C library defines this for functions which it implements
 
8486
    to always fail with ENOSYS.  Some functions are actually named
 
8487
    something starting with __ and the normal name is an alias.  */
 
8488
#if defined (__stub_connect) || defined (__stub___connect)
 
8489
choke me
 
8490
#else
 
8491
f = connect;
 
8492
#endif
 
8493
 
 
8494
  ;
 
8495
  return 0;
 
8496
}
 
8497
_ACEOF
 
8498
rm -f conftest.$ac_objext conftest$ac_exeext
 
8499
if { (eval echo "$as_me:8499: \"$ac_link\"") >&5
 
8500
  (eval $ac_link) 2>&5
 
8501
  ac_status=$?
 
8502
  echo "$as_me:8502: \$? = $ac_status" >&5
 
8503
  (exit $ac_status); } &&
 
8504
         { ac_try='test -s conftest$ac_exeext'
 
8505
  { (eval echo "$as_me:8505: \"$ac_try\"") >&5
 
8506
  (eval $ac_try) 2>&5
 
8507
  ac_status=$?
 
8508
  echo "$as_me:8508: \$? = $ac_status" >&5
 
8509
  (exit $ac_status); }; }; then
 
8510
  ac_cv_func_connect=yes
 
8511
else
 
8512
  echo "$as_me: failed program was:" >&5
 
8513
cat conftest.$ac_ext >&5
 
8514
ac_cv_func_connect=no
 
8515
fi
 
8516
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8517
fi
 
8518
echo "$as_me:8518: result: $ac_cv_func_connect" >&5
 
8519
echo "${ECHO_T}$ac_cv_func_connect" >&6
 
8520
if test $ac_cv_func_connect = yes; then
 
8521
  :
 
8522
else
 
8523
 
 
8524
echo "$as_me:8524: checking for connect in -lsocket" >&5
 
8525
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
 
8526
if test "${ac_cv_lib_socket_connect+set}" = set; then
 
8527
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8528
else
 
8529
  ac_check_lib_save_LIBS=$LIBS
 
8530
LIBS="-lsocket  $LIBS"
 
8531
cat >conftest.$ac_ext <<_ACEOF
 
8532
#line 8532 "configure"
 
8533
#include "confdefs.h"
 
8534
 
 
8535
/* Override any gcc2 internal prototype to avoid an error.  */
 
8536
#ifdef __cplusplus
 
8537
extern "C"
 
8538
#endif
 
8539
/* We use char because int might match the return type of a gcc2
 
8540
   builtin and then its argument prototype would still apply.  */
 
8541
char connect ();
 
8542
int
 
8543
main ()
 
8544
{
 
8545
connect ();
 
8546
  ;
 
8547
  return 0;
 
8548
}
 
8549
_ACEOF
 
8550
rm -f conftest.$ac_objext conftest$ac_exeext
 
8551
if { (eval echo "$as_me:8551: \"$ac_link\"") >&5
 
8552
  (eval $ac_link) 2>&5
 
8553
  ac_status=$?
 
8554
  echo "$as_me:8554: \$? = $ac_status" >&5
 
8555
  (exit $ac_status); } &&
 
8556
         { ac_try='test -s conftest$ac_exeext'
 
8557
  { (eval echo "$as_me:8557: \"$ac_try\"") >&5
 
8558
  (eval $ac_try) 2>&5
 
8559
  ac_status=$?
 
8560
  echo "$as_me:8560: \$? = $ac_status" >&5
 
8561
  (exit $ac_status); }; }; then
 
8562
  ac_cv_lib_socket_connect=yes
 
8563
else
 
8564
  echo "$as_me: failed program was:" >&5
 
8565
cat conftest.$ac_ext >&5
 
8566
ac_cv_lib_socket_connect=no
 
8567
fi
 
8568
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8569
LIBS=$ac_check_lib_save_LIBS
 
8570
fi
 
8571
echo "$as_me:8571: result: $ac_cv_lib_socket_connect" >&5
 
8572
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
 
8573
if test $ac_cv_lib_socket_connect = yes; then
 
8574
  cat >>confdefs.h <<EOF
 
8575
#define HAVE_LIBSOCKET 1
 
8576
EOF
 
8577
 
 
8578
  LIBS="-lsocket $LIBS"
 
8579
 
 
8580
fi
 
8581
 
 
8582
fi
 
8583
 
 
8584
echo "$as_me:8584: checking for gethostname" >&5
 
8585
echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
 
8586
if test "${ac_cv_func_gethostname+set}" = set; then
 
8587
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8588
else
 
8589
  cat >conftest.$ac_ext <<_ACEOF
 
8590
#line 8590 "configure"
 
8591
#include "confdefs.h"
 
8592
/* System header to define __stub macros and hopefully few prototypes,
 
8593
    which can conflict with char gethostname (); below.  */
 
8594
#include <assert.h>
 
8595
/* Override any gcc2 internal prototype to avoid an error.  */
 
8596
#ifdef __cplusplus
 
8597
extern "C"
 
8598
#endif
 
8599
/* We use char because int might match the return type of a gcc2
 
8600
   builtin and then its argument prototype would still apply.  */
 
8601
char gethostname ();
 
8602
char (*f) ();
 
8603
 
 
8604
int
 
8605
main ()
 
8606
{
 
8607
/* The GNU C library defines this for functions which it implements
 
8608
    to always fail with ENOSYS.  Some functions are actually named
 
8609
    something starting with __ and the normal name is an alias.  */
 
8610
#if defined (__stub_gethostname) || defined (__stub___gethostname)
 
8611
choke me
 
8612
#else
 
8613
f = gethostname;
 
8614
#endif
 
8615
 
 
8616
  ;
 
8617
  return 0;
 
8618
}
 
8619
_ACEOF
 
8620
rm -f conftest.$ac_objext conftest$ac_exeext
 
8621
if { (eval echo "$as_me:8621: \"$ac_link\"") >&5
 
8622
  (eval $ac_link) 2>&5
 
8623
  ac_status=$?
 
8624
  echo "$as_me:8624: \$? = $ac_status" >&5
 
8625
  (exit $ac_status); } &&
 
8626
         { ac_try='test -s conftest$ac_exeext'
 
8627
  { (eval echo "$as_me:8627: \"$ac_try\"") >&5
 
8628
  (eval $ac_try) 2>&5
 
8629
  ac_status=$?
 
8630
  echo "$as_me:8630: \$? = $ac_status" >&5
 
8631
  (exit $ac_status); }; }; then
 
8632
  ac_cv_func_gethostname=yes
 
8633
else
 
8634
  echo "$as_me: failed program was:" >&5
 
8635
cat conftest.$ac_ext >&5
 
8636
ac_cv_func_gethostname=no
 
8637
fi
 
8638
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8639
fi
 
8640
echo "$as_me:8640: result: $ac_cv_func_gethostname" >&5
 
8641
echo "${ECHO_T}$ac_cv_func_gethostname" >&6
 
8642
if test $ac_cv_func_gethostname = yes; then
 
8643
  :
 
8644
else
 
8645
 
 
8646
echo "$as_me:8646: checking for gethostname in -lucb" >&5
 
8647
echo $ECHO_N "checking for gethostname in -lucb... $ECHO_C" >&6
 
8648
if test "${ac_cv_lib_ucb_gethostname+set}" = set; then
 
8649
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8650
else
 
8651
  ac_check_lib_save_LIBS=$LIBS
 
8652
LIBS="-lucb  $LIBS"
 
8653
cat >conftest.$ac_ext <<_ACEOF
 
8654
#line 8654 "configure"
 
8655
#include "confdefs.h"
 
8656
 
 
8657
/* Override any gcc2 internal prototype to avoid an error.  */
 
8658
#ifdef __cplusplus
 
8659
extern "C"
 
8660
#endif
 
8661
/* We use char because int might match the return type of a gcc2
 
8662
   builtin and then its argument prototype would still apply.  */
 
8663
char gethostname ();
 
8664
int
 
8665
main ()
 
8666
{
 
8667
gethostname ();
 
8668
  ;
 
8669
  return 0;
 
8670
}
 
8671
_ACEOF
 
8672
rm -f conftest.$ac_objext conftest$ac_exeext
 
8673
if { (eval echo "$as_me:8673: \"$ac_link\"") >&5
 
8674
  (eval $ac_link) 2>&5
 
8675
  ac_status=$?
 
8676
  echo "$as_me:8676: \$? = $ac_status" >&5
 
8677
  (exit $ac_status); } &&
 
8678
         { ac_try='test -s conftest$ac_exeext'
 
8679
  { (eval echo "$as_me:8679: \"$ac_try\"") >&5
 
8680
  (eval $ac_try) 2>&5
 
8681
  ac_status=$?
 
8682
  echo "$as_me:8682: \$? = $ac_status" >&5
 
8683
  (exit $ac_status); }; }; then
 
8684
  ac_cv_lib_ucb_gethostname=yes
 
8685
else
 
8686
  echo "$as_me: failed program was:" >&5
 
8687
cat conftest.$ac_ext >&5
 
8688
ac_cv_lib_ucb_gethostname=no
 
8689
fi
 
8690
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8691
LIBS=$ac_check_lib_save_LIBS
 
8692
fi
 
8693
echo "$as_me:8693: result: $ac_cv_lib_ucb_gethostname" >&5
 
8694
echo "${ECHO_T}$ac_cv_lib_ucb_gethostname" >&6
 
8695
if test $ac_cv_lib_ucb_gethostname = yes; then
 
8696
  cat >>confdefs.h <<EOF
 
8697
#define HAVE_LIBUCB 1
 
8698
EOF
 
8699
 
 
8700
  LIBS="-lucb $LIBS"
 
8701
 
 
8702
fi
 
8703
 
 
8704
fi
 
8705
 
 
8706
echo "$as_me:8706: checking for dlclose" >&5
 
8707
echo $ECHO_N "checking for dlclose... $ECHO_C" >&6
 
8708
if test "${ac_cv_func_dlclose+set}" = set; then
 
8709
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8710
else
 
8711
  cat >conftest.$ac_ext <<_ACEOF
 
8712
#line 8712 "configure"
 
8713
#include "confdefs.h"
 
8714
/* System header to define __stub macros and hopefully few prototypes,
 
8715
    which can conflict with char dlclose (); below.  */
 
8716
#include <assert.h>
 
8717
/* Override any gcc2 internal prototype to avoid an error.  */
 
8718
#ifdef __cplusplus
 
8719
extern "C"
 
8720
#endif
 
8721
/* We use char because int might match the return type of a gcc2
 
8722
   builtin and then its argument prototype would still apply.  */
 
8723
char dlclose ();
 
8724
char (*f) ();
 
8725
 
 
8726
int
 
8727
main ()
 
8728
{
 
8729
/* The GNU C library defines this for functions which it implements
 
8730
    to always fail with ENOSYS.  Some functions are actually named
 
8731
    something starting with __ and the normal name is an alias.  */
 
8732
#if defined (__stub_dlclose) || defined (__stub___dlclose)
 
8733
choke me
 
8734
#else
 
8735
f = dlclose;
 
8736
#endif
 
8737
 
 
8738
  ;
 
8739
  return 0;
 
8740
}
 
8741
_ACEOF
 
8742
rm -f conftest.$ac_objext conftest$ac_exeext
 
8743
if { (eval echo "$as_me:8743: \"$ac_link\"") >&5
 
8744
  (eval $ac_link) 2>&5
 
8745
  ac_status=$?
 
8746
  echo "$as_me:8746: \$? = $ac_status" >&5
 
8747
  (exit $ac_status); } &&
 
8748
         { ac_try='test -s conftest$ac_exeext'
 
8749
  { (eval echo "$as_me:8749: \"$ac_try\"") >&5
 
8750
  (eval $ac_try) 2>&5
 
8751
  ac_status=$?
 
8752
  echo "$as_me:8752: \$? = $ac_status" >&5
 
8753
  (exit $ac_status); }; }; then
 
8754
  ac_cv_func_dlclose=yes
 
8755
else
 
8756
  echo "$as_me: failed program was:" >&5
 
8757
cat conftest.$ac_ext >&5
 
8758
ac_cv_func_dlclose=no
 
8759
fi
 
8760
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8761
fi
 
8762
echo "$as_me:8762: result: $ac_cv_func_dlclose" >&5
 
8763
echo "${ECHO_T}$ac_cv_func_dlclose" >&6
 
8764
if test $ac_cv_func_dlclose = yes; then
 
8765
  :
 
8766
else
 
8767
 
 
8768
echo "$as_me:8768: checking for dlopen in -ldl" >&5
 
8769
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8770
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8771
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8772
else
 
8773
  ac_check_lib_save_LIBS=$LIBS
 
8774
LIBS="-ldl  $LIBS"
 
8775
cat >conftest.$ac_ext <<_ACEOF
 
8776
#line 8776 "configure"
 
8777
#include "confdefs.h"
 
8778
 
 
8779
/* Override any gcc2 internal prototype to avoid an error.  */
 
8780
#ifdef __cplusplus
 
8781
extern "C"
 
8782
#endif
 
8783
/* We use char because int might match the return type of a gcc2
 
8784
   builtin and then its argument prototype would still apply.  */
 
8785
char dlopen ();
 
8786
int
 
8787
main ()
 
8788
{
 
8789
dlopen ();
 
8790
  ;
 
8791
  return 0;
 
8792
}
 
8793
_ACEOF
 
8794
rm -f conftest.$ac_objext conftest$ac_exeext
 
8795
if { (eval echo "$as_me:8795: \"$ac_link\"") >&5
 
8796
  (eval $ac_link) 2>&5
 
8797
  ac_status=$?
 
8798
  echo "$as_me:8798: \$? = $ac_status" >&5
 
8799
  (exit $ac_status); } &&
 
8800
         { ac_try='test -s conftest$ac_exeext'
 
8801
  { (eval echo "$as_me:8801: \"$ac_try\"") >&5
 
8802
  (eval $ac_try) 2>&5
 
8803
  ac_status=$?
 
8804
  echo "$as_me:8804: \$? = $ac_status" >&5
 
8805
  (exit $ac_status); }; }; then
 
8806
  ac_cv_lib_dl_dlopen=yes
 
8807
else
 
8808
  echo "$as_me: failed program was:" >&5
 
8809
cat conftest.$ac_ext >&5
 
8810
ac_cv_lib_dl_dlopen=no
 
8811
fi
 
8812
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8813
LIBS=$ac_check_lib_save_LIBS
 
8814
fi
 
8815
echo "$as_me:8815: result: $ac_cv_lib_dl_dlopen" >&5
 
8816
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8817
if test $ac_cv_lib_dl_dlopen = yes; then
 
8818
  cat >>confdefs.h <<EOF
 
8819
#define HAVE_LIBDL 1
 
8820
EOF
 
8821
 
 
8822
  LIBS="-ldl $LIBS"
 
8823
 
 
8824
fi
 
8825
 
 
8826
fi
 
8827
 
 
8828
# Check whether --enable-nonblocking or --disable-nonblocking was given.
 
8829
if test "${enable_nonblocking+set}" = set; then
 
8830
  enableval="$enable_nonblocking"
 
8831
 
 
8832
  if test "$enableval" = "no" ; then
 
8833
    { echo "$as_me:8833: WARNING: non-blocking sockets disabled" >&5
 
8834
echo "$as_me: WARNING: non-blocking sockets disabled" >&2;}
 
8835
    cat >>confdefs.h <<\EOF
 
8836
#define HAVE_DISABLED_NONBLOCKING 1
 
8837
EOF
 
8838
 
 
8839
  else
 
8840
 
 
8841
  echo "$as_me:8841: checking non-blocking sockets style" >&5
 
8842
echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6
 
8843
 
 
8844
  cat >conftest.$ac_ext <<_ACEOF
 
8845
#line 8845 "configure"
 
8846
#include "confdefs.h"
 
8847
 
 
8848
/* headers for O_NONBLOCK test */
 
8849
#include <sys/types.h>
 
8850
#include <unistd.h>
 
8851
#include <fcntl.h>
 
8852
 
 
8853
int
 
8854
main ()
 
8855
{
 
8856
 
 
8857
/* try to compile O_NONBLOCK */
 
8858
 
 
8859
#if defined(sun) || defined(__sun__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
 
8860
# if defined(__SVR4) || defined(__srv4__)
 
8861
#  define PLATFORM_SOLARIS
 
8862
# else
 
8863
#  define PLATFORM_SUNOS4
 
8864
# endif
 
8865
#endif
 
8866
#if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX4)
 
8867
# define PLATFORM_AIX_V3
 
8868
#endif
 
8869
 
 
8870
#if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3)
 
8871
#error "O_NONBLOCK does not work on this platform"
 
8872
#endif
 
8873
  int socket;
 
8874
  int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
 
8875
 
 
8876
  ;
 
8877
  return 0;
 
8878
}
 
8879
_ACEOF
 
8880
rm -f conftest.$ac_objext
 
8881
if { (eval echo "$as_me:8881: \"$ac_compile\"") >&5
 
8882
  (eval $ac_compile) 2>&5
 
8883
  ac_status=$?
 
8884
  echo "$as_me:8884: \$? = $ac_status" >&5
 
8885
  (exit $ac_status); } &&
 
8886
         { ac_try='test -s conftest.$ac_objext'
 
8887
  { (eval echo "$as_me:8887: \"$ac_try\"") >&5
 
8888
  (eval $ac_try) 2>&5
 
8889
  ac_status=$?
 
8890
  echo "$as_me:8890: \$? = $ac_status" >&5
 
8891
  (exit $ac_status); }; }; then
 
8892
 
 
8893
nonblock="O_NONBLOCK"
 
8894
cat >>confdefs.h <<\EOF
 
8895
#define HAVE_O_NONBLOCK 1
 
8896
EOF
 
8897
 
 
8898
else
 
8899
  echo "$as_me: failed program was:" >&5
 
8900
cat conftest.$ac_ext >&5
 
8901
 
 
8902
  cat >conftest.$ac_ext <<_ACEOF
 
8903
#line 8903 "configure"
 
8904
#include "confdefs.h"
 
8905
 
 
8906
/* headers for FIONBIO test */
 
8907
#include <unistd.h>
 
8908
#include <stropts.h>
 
8909
 
 
8910
int
 
8911
main ()
 
8912
{
 
8913
 
 
8914
/* FIONBIO source test */
 
8915
 int flags = ioctl(socket, FIONBIO, &flags);
 
8916
 
 
8917
  ;
 
8918
  return 0;
 
8919
}
 
8920
_ACEOF
 
8921
rm -f conftest.$ac_objext
 
8922
if { (eval echo "$as_me:8922: \"$ac_compile\"") >&5
 
8923
  (eval $ac_compile) 2>&5
 
8924
  ac_status=$?
 
8925
  echo "$as_me:8925: \$? = $ac_status" >&5
 
8926
  (exit $ac_status); } &&
 
8927
         { ac_try='test -s conftest.$ac_objext'
 
8928
  { (eval echo "$as_me:8928: \"$ac_try\"") >&5
 
8929
  (eval $ac_try) 2>&5
 
8930
  ac_status=$?
 
8931
  echo "$as_me:8931: \$? = $ac_status" >&5
 
8932
  (exit $ac_status); }; }; then
 
8933
 
 
8934
nonblock="FIONBIO"
 
8935
cat >>confdefs.h <<\EOF
 
8936
#define HAVE_FIONBIO 1
 
8937
EOF
 
8938
 
 
8939
else
 
8940
  echo "$as_me: failed program was:" >&5
 
8941
cat conftest.$ac_ext >&5
 
8942
 
 
8943
  cat >conftest.$ac_ext <<_ACEOF
 
8944
#line 8944 "configure"
 
8945
#include "confdefs.h"
 
8946
 
 
8947
/* headers for ioctlsocket test (cygwin?) */
 
8948
#include <windows.h>
 
8949
 
 
8950
int
 
8951
main ()
 
8952
{
 
8953
 
 
8954
/* ioctlsocket source code */
 
8955
 int flags = ioctlsocket(socket, FIONBIO, &flags);
 
8956
 
 
8957
  ;
 
8958
  return 0;
 
8959
}
 
8960
_ACEOF
 
8961
rm -f conftest.$ac_objext
 
8962
if { (eval echo "$as_me:8962: \"$ac_compile\"") >&5
 
8963
  (eval $ac_compile) 2>&5
 
8964
  ac_status=$?
 
8965
  echo "$as_me:8965: \$? = $ac_status" >&5
 
8966
  (exit $ac_status); } &&
 
8967
         { ac_try='test -s conftest.$ac_objext'
 
8968
  { (eval echo "$as_me:8968: \"$ac_try\"") >&5
 
8969
  (eval $ac_try) 2>&5
 
8970
  ac_status=$?
 
8971
  echo "$as_me:8971: \$? = $ac_status" >&5
 
8972
  (exit $ac_status); }; }; then
 
8973
 
 
8974
nonblock="ioctlsocket"
 
8975
cat >>confdefs.h <<\EOF
 
8976
#define HAVE_IOCTLSOCKET 1
 
8977
EOF
 
8978
 
 
8979
else
 
8980
  echo "$as_me: failed program was:" >&5
 
8981
cat conftest.$ac_ext >&5
 
8982
 
 
8983
  cat >conftest.$ac_ext <<_ACEOF
 
8984
#line 8984 "configure"
 
8985
#include "confdefs.h"
 
8986
 
 
8987
/* headers for IoctlSocket test (Amiga?) */
 
8988
#include <sys/ioctl.h>
 
8989
 
 
8990
int
 
8991
main ()
 
8992
{
 
8993
 
 
8994
/* IoctlSocket source code */
 
8995
 int flags = IoctlSocket(socket, FIONBIO, (long)1);
 
8996
 
 
8997
  ;
 
8998
  return 0;
 
8999
}
 
9000
_ACEOF
 
9001
rm -f conftest.$ac_objext
 
9002
if { (eval echo "$as_me:9002: \"$ac_compile\"") >&5
 
9003
  (eval $ac_compile) 2>&5
 
9004
  ac_status=$?
 
9005
  echo "$as_me:9005: \$? = $ac_status" >&5
 
9006
  (exit $ac_status); } &&
 
9007
         { ac_try='test -s conftest.$ac_objext'
 
9008
  { (eval echo "$as_me:9008: \"$ac_try\"") >&5
 
9009
  (eval $ac_try) 2>&5
 
9010
  ac_status=$?
 
9011
  echo "$as_me:9011: \$? = $ac_status" >&5
 
9012
  (exit $ac_status); }; }; then
 
9013
 
 
9014
nonblock="IoctlSocket"
 
9015
cat >>confdefs.h <<\EOF
 
9016
#define HAVE_IOCTLSOCKET_CASE 1
 
9017
EOF
 
9018
 
 
9019
else
 
9020
  echo "$as_me: failed program was:" >&5
 
9021
cat conftest.$ac_ext >&5
 
9022
 
 
9023
nonblock="nada"
 
9024
cat >>confdefs.h <<\EOF
 
9025
#define HAVE_DISABLED_NONBLOCKING 1
 
9026
EOF
 
9027
 
 
9028
fi
 
9029
rm -f conftest.$ac_objext conftest.$ac_ext
 
9030
 
 
9031
fi
 
9032
rm -f conftest.$ac_objext conftest.$ac_ext
 
9033
 
 
9034
fi
 
9035
rm -f conftest.$ac_objext conftest.$ac_ext
 
9036
 
 
9037
fi
 
9038
rm -f conftest.$ac_objext conftest.$ac_ext
 
9039
  echo "$as_me:9039: result: $nonblock" >&5
 
9040
echo "${ECHO_T}$nonblock" >&6
 
9041
 
 
9042
  if test "$nonblock" = "nada"; then
 
9043
    { echo "$as_me:9043: WARNING: non-block sockets disabled" >&5
 
9044
echo "$as_me: WARNING: non-block sockets disabled" >&2;}
 
9045
  fi
 
9046
 
 
9047
  fi
 
9048
 
 
9049
else
 
9050
 
 
9051
  echo "$as_me:9051: checking non-blocking sockets style" >&5
 
9052
echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6
 
9053
 
 
9054
  cat >conftest.$ac_ext <<_ACEOF
 
9055
#line 9055 "configure"
 
9056
#include "confdefs.h"
 
9057
 
 
9058
/* headers for O_NONBLOCK test */
 
9059
#include <sys/types.h>
 
9060
#include <unistd.h>
 
9061
#include <fcntl.h>
 
9062
 
 
9063
int
 
9064
main ()
 
9065
{
 
9066
 
 
9067
/* try to compile O_NONBLOCK */
 
9068
 
 
9069
#if defined(sun) || defined(__sun__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
 
9070
# if defined(__SVR4) || defined(__srv4__)
 
9071
#  define PLATFORM_SOLARIS
 
9072
# else
 
9073
#  define PLATFORM_SUNOS4
 
9074
# endif
 
9075
#endif
 
9076
#if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX4)
 
9077
# define PLATFORM_AIX_V3
 
9078
#endif
 
9079
 
 
9080
#if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3)
 
9081
#error "O_NONBLOCK does not work on this platform"
 
9082
#endif
 
9083
  int socket;
 
9084
  int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
 
9085
 
 
9086
  ;
 
9087
  return 0;
 
9088
}
 
9089
_ACEOF
 
9090
rm -f conftest.$ac_objext
 
9091
if { (eval echo "$as_me:9091: \"$ac_compile\"") >&5
 
9092
  (eval $ac_compile) 2>&5
 
9093
  ac_status=$?
 
9094
  echo "$as_me:9094: \$? = $ac_status" >&5
 
9095
  (exit $ac_status); } &&
 
9096
         { ac_try='test -s conftest.$ac_objext'
 
9097
  { (eval echo "$as_me:9097: \"$ac_try\"") >&5
 
9098
  (eval $ac_try) 2>&5
 
9099
  ac_status=$?
 
9100
  echo "$as_me:9100: \$? = $ac_status" >&5
 
9101
  (exit $ac_status); }; }; then
 
9102
 
 
9103
nonblock="O_NONBLOCK"
 
9104
cat >>confdefs.h <<\EOF
 
9105
#define HAVE_O_NONBLOCK 1
 
9106
EOF
 
9107
 
 
9108
else
 
9109
  echo "$as_me: failed program was:" >&5
 
9110
cat conftest.$ac_ext >&5
 
9111
 
 
9112
  cat >conftest.$ac_ext <<_ACEOF
 
9113
#line 9113 "configure"
 
9114
#include "confdefs.h"
 
9115
 
 
9116
/* headers for FIONBIO test */
 
9117
#include <unistd.h>
 
9118
#include <stropts.h>
 
9119
 
 
9120
int
 
9121
main ()
 
9122
{
 
9123
 
 
9124
/* FIONBIO source test */
 
9125
 int flags = ioctl(socket, FIONBIO, &flags);
 
9126
 
 
9127
  ;
 
9128
  return 0;
 
9129
}
 
9130
_ACEOF
 
9131
rm -f conftest.$ac_objext
 
9132
if { (eval echo "$as_me:9132: \"$ac_compile\"") >&5
 
9133
  (eval $ac_compile) 2>&5
 
9134
  ac_status=$?
 
9135
  echo "$as_me:9135: \$? = $ac_status" >&5
 
9136
  (exit $ac_status); } &&
 
9137
         { ac_try='test -s conftest.$ac_objext'
 
9138
  { (eval echo "$as_me:9138: \"$ac_try\"") >&5
 
9139
  (eval $ac_try) 2>&5
 
9140
  ac_status=$?
 
9141
  echo "$as_me:9141: \$? = $ac_status" >&5
 
9142
  (exit $ac_status); }; }; then
 
9143
 
 
9144
nonblock="FIONBIO"
 
9145
cat >>confdefs.h <<\EOF
 
9146
#define HAVE_FIONBIO 1
 
9147
EOF
 
9148
 
 
9149
else
 
9150
  echo "$as_me: failed program was:" >&5
 
9151
cat conftest.$ac_ext >&5
 
9152
 
 
9153
  cat >conftest.$ac_ext <<_ACEOF
 
9154
#line 9154 "configure"
 
9155
#include "confdefs.h"
 
9156
 
 
9157
/* headers for ioctlsocket test (cygwin?) */
 
9158
#include <windows.h>
 
9159
 
 
9160
int
 
9161
main ()
 
9162
{
 
9163
 
 
9164
/* ioctlsocket source code */
 
9165
 int flags = ioctlsocket(socket, FIONBIO, &flags);
 
9166
 
 
9167
  ;
 
9168
  return 0;
 
9169
}
 
9170
_ACEOF
 
9171
rm -f conftest.$ac_objext
 
9172
if { (eval echo "$as_me:9172: \"$ac_compile\"") >&5
 
9173
  (eval $ac_compile) 2>&5
 
9174
  ac_status=$?
 
9175
  echo "$as_me:9175: \$? = $ac_status" >&5
 
9176
  (exit $ac_status); } &&
 
9177
         { ac_try='test -s conftest.$ac_objext'
 
9178
  { (eval echo "$as_me:9178: \"$ac_try\"") >&5
 
9179
  (eval $ac_try) 2>&5
 
9180
  ac_status=$?
 
9181
  echo "$as_me:9181: \$? = $ac_status" >&5
 
9182
  (exit $ac_status); }; }; then
 
9183
 
 
9184
nonblock="ioctlsocket"
 
9185
cat >>confdefs.h <<\EOF
 
9186
#define HAVE_IOCTLSOCKET 1
 
9187
EOF
 
9188
 
 
9189
else
 
9190
  echo "$as_me: failed program was:" >&5
 
9191
cat conftest.$ac_ext >&5
 
9192
 
 
9193
  cat >conftest.$ac_ext <<_ACEOF
 
9194
#line 9194 "configure"
 
9195
#include "confdefs.h"
 
9196
 
 
9197
/* headers for IoctlSocket test (Amiga?) */
 
9198
#include <sys/ioctl.h>
 
9199
 
 
9200
int
 
9201
main ()
 
9202
{
 
9203
 
 
9204
/* IoctlSocket source code */
 
9205
 int flags = IoctlSocket(socket, FIONBIO, (long)1);
 
9206
 
 
9207
  ;
 
9208
  return 0;
 
9209
}
 
9210
_ACEOF
 
9211
rm -f conftest.$ac_objext
 
9212
if { (eval echo "$as_me:9212: \"$ac_compile\"") >&5
 
9213
  (eval $ac_compile) 2>&5
 
9214
  ac_status=$?
 
9215
  echo "$as_me:9215: \$? = $ac_status" >&5
 
9216
  (exit $ac_status); } &&
 
9217
         { ac_try='test -s conftest.$ac_objext'
 
9218
  { (eval echo "$as_me:9218: \"$ac_try\"") >&5
 
9219
  (eval $ac_try) 2>&5
 
9220
  ac_status=$?
 
9221
  echo "$as_me:9221: \$? = $ac_status" >&5
 
9222
  (exit $ac_status); }; }; then
 
9223
 
 
9224
nonblock="IoctlSocket"
 
9225
cat >>confdefs.h <<\EOF
 
9226
#define HAVE_IOCTLSOCKET_CASE 1
 
9227
EOF
 
9228
 
 
9229
else
 
9230
  echo "$as_me: failed program was:" >&5
 
9231
cat conftest.$ac_ext >&5
 
9232
 
 
9233
nonblock="nada"
 
9234
cat >>confdefs.h <<\EOF
 
9235
#define HAVE_DISABLED_NONBLOCKING 1
 
9236
EOF
 
9237
 
 
9238
fi
 
9239
rm -f conftest.$ac_objext conftest.$ac_ext
 
9240
 
 
9241
fi
 
9242
rm -f conftest.$ac_objext conftest.$ac_ext
 
9243
 
 
9244
fi
 
9245
rm -f conftest.$ac_objext conftest.$ac_ext
 
9246
 
 
9247
fi
 
9248
rm -f conftest.$ac_objext conftest.$ac_ext
 
9249
  echo "$as_me:9249: result: $nonblock" >&5
 
9250
echo "${ECHO_T}$nonblock" >&6
 
9251
 
 
9252
  if test "$nonblock" = "nada"; then
 
9253
    { echo "$as_me:9253: WARNING: non-block sockets disabled" >&5
 
9254
echo "$as_me: WARNING: non-block sockets disabled" >&2;}
 
9255
  fi
 
9256
 
 
9257
fi;
 
9258
 
 
9259
# Check whether --with-egd-socket or --without-egd-socket was given.
 
9260
if test "${with_egd_socket+set}" = set; then
 
9261
  withval="$with_egd_socket"
 
9262
   EGD_SOCKET="$withval"
 
9263
 
 
9264
fi;
 
9265
if test -n "$EGD_SOCKET" ; then
 
9266
        cat >>confdefs.h <<EOF
 
9267
#define EGD_SOCKET "$EGD_SOCKET"
 
9268
EOF
 
9269
 
 
9270
fi
 
9271
 
 
9272
# Check whether --with-random or --without-random was given.
 
9273
if test "${with_random+set}" = set; then
 
9274
  withval="$with_random"
 
9275
   RANDOM_FILE="$withval"
 
9276
else
 
9277
 
 
9278
                echo "$as_me:9278: checking for \"/dev/urandom\"" >&5
 
9279
echo $ECHO_N "checking for \"/dev/urandom\"... $ECHO_C" >&6
 
9280
if test "${ac_cv_file___dev_urandom_+set}" = set; then
 
9281
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9282
else
 
9283
  test "$cross_compiling" = yes &&
 
9284
  { { echo "$as_me:9284: error: cannot check for file existence when cross compiling" >&5
 
9285
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
9286
   { (exit 1); exit 1; }; }
 
9287
if test -r ""/dev/urandom""; then
 
9288
  ac_cv_file___dev_urandom_=yes
 
9289
else
 
9290
  ac_cv_file___dev_urandom_=no
 
9291
fi
 
9292
fi
 
9293
echo "$as_me:9293: result: $ac_cv_file___dev_urandom_" >&5
 
9294
echo "${ECHO_T}$ac_cv_file___dev_urandom_" >&6
 
9295
if test $ac_cv_file___dev_urandom_ = yes; then
 
9296
 
 
9297
                RANDOM_FILE="/dev/urandom";
 
9298
 
 
9299
fi
 
9300
 
 
9301
fi;
 
9302
if test -n "$RANDOM_FILE" ; then
 
9303
 
 
9304
        cat >>confdefs.h <<EOF
 
9305
#define RANDOM_FILE "$RANDOM_FILE"
 
9306
EOF
 
9307
 
 
9308
fi
 
9309
 
 
9310
# Check whether --with-krb4-includes or --without-krb4-includes was given.
 
9311
if test "${with_krb4_includes+set}" = set; then
 
9312
  withval="$with_krb4_includes"
 
9313
 
 
9314
 CPPFLAGS="$CPPFLAGS -I$withval"
 
9315
 KRB4INC="$withval"
 
9316
 want_krb4=yes
 
9317
 
 
9318
fi;
 
9319
 
 
9320
# Check whether --with-krb4-libs or --without-krb4-libs was given.
 
9321
if test "${with_krb4_libs+set}" = set; then
 
9322
  withval="$with_krb4_libs"
 
9323
 
 
9324
 LDFLAGS="$LDFLAGS -L$withval"
 
9325
 KRB4LIB="$withval"
 
9326
 want_krb4=yes
 
9327
 
 
9328
fi;
 
9329
 
 
9330
OPT_KRB4=off
 
9331
 
 
9332
# Check whether --with-krb4 or --without-krb4 was given.
 
9333
if test "${with_krb4+set}" = set; then
 
9334
  withval="$with_krb4"
 
9335
 
 
9336
  OPT_KRB4="$withval"
 
9337
  if test X"$OPT_KRB4" != Xyes
 
9338
  then
 
9339
    LDFLAGS="$LDFLAGS -L$OPT_KRB4/lib"
 
9340
    KRB4LIB="$OPT_KRB4/lib"
 
9341
    CPPFLAGS="$CPPFLAGS -I$OPT_KRB4/include"
 
9342
    KRB4INC="$OPT_KRB4/include"
 
9343
  fi
 
9344
  want_krb4="yes"
 
9345
 
 
9346
fi;
 
9347
 
 
9348
echo "$as_me:9348: checking if Kerberos4 support is requested" >&5
 
9349
echo $ECHO_N "checking if Kerberos4 support is requested... $ECHO_C" >&6
 
9350
 
 
9351
if test "$want_krb4" = yes
 
9352
then
 
9353
  if test "$ipv6" = "yes"; then
 
9354
    echo krb4 is not compatible with IPv6
 
9355
    exit 1
 
9356
  fi
 
9357
  echo "$as_me:9357: result: yes" >&5
 
9358
echo "${ECHO_T}yes" >&6
 
9359
 
 
9360
  echo "$as_me:9360: checking where to look for Kerberos4" >&5
 
9361
echo $ECHO_N "checking where to look for Kerberos4... $ECHO_C" >&6
 
9362
  if test X"$OPT_KRB4" = Xyes
 
9363
  then
 
9364
    echo "$as_me:9364: result: defaults" >&5
 
9365
echo "${ECHO_T}defaults" >&6
 
9366
  else
 
9367
    echo "$as_me:9367: result: libs in $KRB4LIB, headers in $KRB4INC" >&5
 
9368
echo "${ECHO_T}libs in $KRB4LIB, headers in $KRB4INC" >&6
 
9369
  fi
 
9370
 
 
9371
    echo "$as_me:9371: checking for des_pcbc_encrypt in -ldes" >&5
 
9372
echo $ECHO_N "checking for des_pcbc_encrypt in -ldes... $ECHO_C" >&6
 
9373
if test "${ac_cv_lib_des_des_pcbc_encrypt+set}" = set; then
 
9374
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9375
else
 
9376
  ac_check_lib_save_LIBS=$LIBS
 
9377
LIBS="-ldes  $LIBS"
 
9378
cat >conftest.$ac_ext <<_ACEOF
 
9379
#line 9379 "configure"
 
9380
#include "confdefs.h"
 
9381
 
 
9382
/* Override any gcc2 internal prototype to avoid an error.  */
 
9383
#ifdef __cplusplus
 
9384
extern "C"
 
9385
#endif
 
9386
/* We use char because int might match the return type of a gcc2
 
9387
   builtin and then its argument prototype would still apply.  */
 
9388
char des_pcbc_encrypt ();
 
9389
int
 
9390
main ()
 
9391
{
 
9392
des_pcbc_encrypt ();
 
9393
  ;
 
9394
  return 0;
 
9395
}
 
9396
_ACEOF
 
9397
rm -f conftest.$ac_objext conftest$ac_exeext
 
9398
if { (eval echo "$as_me:9398: \"$ac_link\"") >&5
 
9399
  (eval $ac_link) 2>&5
 
9400
  ac_status=$?
 
9401
  echo "$as_me:9401: \$? = $ac_status" >&5
 
9402
  (exit $ac_status); } &&
 
9403
         { ac_try='test -s conftest$ac_exeext'
 
9404
  { (eval echo "$as_me:9404: \"$ac_try\"") >&5
 
9405
  (eval $ac_try) 2>&5
 
9406
  ac_status=$?
 
9407
  echo "$as_me:9407: \$? = $ac_status" >&5
 
9408
  (exit $ac_status); }; }; then
 
9409
  ac_cv_lib_des_des_pcbc_encrypt=yes
 
9410
else
 
9411
  echo "$as_me: failed program was:" >&5
 
9412
cat conftest.$ac_ext >&5
 
9413
ac_cv_lib_des_des_pcbc_encrypt=no
 
9414
fi
 
9415
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9416
LIBS=$ac_check_lib_save_LIBS
 
9417
fi
 
9418
echo "$as_me:9418: result: $ac_cv_lib_des_des_pcbc_encrypt" >&5
 
9419
echo "${ECHO_T}$ac_cv_lib_des_des_pcbc_encrypt" >&6
 
9420
if test $ac_cv_lib_des_des_pcbc_encrypt = yes; then
 
9421
 
 
9422
for ac_header in des.h
 
9423
do
 
9424
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9425
echo "$as_me:9425: checking for $ac_header" >&5
 
9426
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9427
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9428
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9429
else
 
9430
  cat >conftest.$ac_ext <<_ACEOF
 
9431
#line 9431 "configure"
 
9432
#include "confdefs.h"
 
9433
#include <$ac_header>
 
9434
_ACEOF
 
9435
if { (eval echo "$as_me:9435: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9436
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9437
  ac_status=$?
 
9438
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
9439
  rm -f conftest.er1
 
9440
  cat conftest.err >&5
 
9441
  echo "$as_me:9441: \$? = $ac_status" >&5
 
9442
  (exit $ac_status); } >/dev/null; then
 
9443
  if test -s conftest.err; then
 
9444
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9445
  else
 
9446
    ac_cpp_err=
 
9447
  fi
 
9448
else
 
9449
  ac_cpp_err=yes
 
9450
fi
 
9451
if test -z "$ac_cpp_err"; then
 
9452
  eval "$as_ac_Header=yes"
 
9453
else
 
9454
  echo "$as_me: failed program was:" >&5
 
9455
  cat conftest.$ac_ext >&5
 
9456
  eval "$as_ac_Header=no"
 
9457
fi
 
9458
rm -f conftest.err conftest.$ac_ext
 
9459
fi
 
9460
echo "$as_me:9460: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9461
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9462
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9463
  cat >>confdefs.h <<EOF
 
9464
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9465
EOF
 
9466
 
 
9467
fi
 
9468
done
 
9469
 
 
9470
        echo "$as_me:9470: checking for res_search" >&5
 
9471
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
 
9472
if test "${ac_cv_func_res_search+set}" = set; then
 
9473
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9474
else
 
9475
  cat >conftest.$ac_ext <<_ACEOF
 
9476
#line 9476 "configure"
 
9477
#include "confdefs.h"
 
9478
/* System header to define __stub macros and hopefully few prototypes,
 
9479
    which can conflict with char res_search (); below.  */
 
9480
#include <assert.h>
 
9481
/* Override any gcc2 internal prototype to avoid an error.  */
 
9482
#ifdef __cplusplus
 
9483
extern "C"
 
9484
#endif
 
9485
/* We use char because int might match the return type of a gcc2
 
9486
   builtin and then its argument prototype would still apply.  */
 
9487
char res_search ();
 
9488
char (*f) ();
 
9489
 
 
9490
int
 
9491
main ()
 
9492
{
 
9493
/* The GNU C library defines this for functions which it implements
 
9494
    to always fail with ENOSYS.  Some functions are actually named
 
9495
    something starting with __ and the normal name is an alias.  */
 
9496
#if defined (__stub_res_search) || defined (__stub___res_search)
 
9497
choke me
 
9498
#else
 
9499
f = res_search;
 
9500
#endif
 
9501
 
 
9502
  ;
 
9503
  return 0;
 
9504
}
 
9505
_ACEOF
 
9506
rm -f conftest.$ac_objext conftest$ac_exeext
 
9507
if { (eval echo "$as_me:9507: \"$ac_link\"") >&5
 
9508
  (eval $ac_link) 2>&5
 
9509
  ac_status=$?
 
9510
  echo "$as_me:9510: \$? = $ac_status" >&5
 
9511
  (exit $ac_status); } &&
 
9512
         { ac_try='test -s conftest$ac_exeext'
 
9513
  { (eval echo "$as_me:9513: \"$ac_try\"") >&5
 
9514
  (eval $ac_try) 2>&5
 
9515
  ac_status=$?
 
9516
  echo "$as_me:9516: \$? = $ac_status" >&5
 
9517
  (exit $ac_status); }; }; then
 
9518
  ac_cv_func_res_search=yes
 
9519
else
 
9520
  echo "$as_me: failed program was:" >&5
 
9521
cat conftest.$ac_ext >&5
 
9522
ac_cv_func_res_search=no
 
9523
fi
 
9524
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9525
fi
 
9526
echo "$as_me:9526: result: $ac_cv_func_res_search" >&5
 
9527
echo "${ECHO_T}$ac_cv_func_res_search" >&6
 
9528
if test $ac_cv_func_res_search = yes; then
 
9529
  :
 
9530
else
 
9531
 
 
9532
echo "$as_me:9532: checking for res_search in -lresolv" >&5
 
9533
echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
 
9534
if test "${ac_cv_lib_resolv_res_search+set}" = set; then
 
9535
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9536
else
 
9537
  ac_check_lib_save_LIBS=$LIBS
 
9538
LIBS="-lresolv  $LIBS"
 
9539
cat >conftest.$ac_ext <<_ACEOF
 
9540
#line 9540 "configure"
 
9541
#include "confdefs.h"
 
9542
 
 
9543
/* Override any gcc2 internal prototype to avoid an error.  */
 
9544
#ifdef __cplusplus
 
9545
extern "C"
 
9546
#endif
 
9547
/* We use char because int might match the return type of a gcc2
 
9548
   builtin and then its argument prototype would still apply.  */
 
9549
char res_search ();
 
9550
int
 
9551
main ()
 
9552
{
 
9553
res_search ();
 
9554
  ;
 
9555
  return 0;
 
9556
}
 
9557
_ACEOF
 
9558
rm -f conftest.$ac_objext conftest$ac_exeext
 
9559
if { (eval echo "$as_me:9559: \"$ac_link\"") >&5
 
9560
  (eval $ac_link) 2>&5
 
9561
  ac_status=$?
 
9562
  echo "$as_me:9562: \$? = $ac_status" >&5
 
9563
  (exit $ac_status); } &&
 
9564
         { ac_try='test -s conftest$ac_exeext'
 
9565
  { (eval echo "$as_me:9565: \"$ac_try\"") >&5
 
9566
  (eval $ac_try) 2>&5
 
9567
  ac_status=$?
 
9568
  echo "$as_me:9568: \$? = $ac_status" >&5
 
9569
  (exit $ac_status); }; }; then
 
9570
  ac_cv_lib_resolv_res_search=yes
 
9571
else
 
9572
  echo "$as_me: failed program was:" >&5
 
9573
cat conftest.$ac_ext >&5
 
9574
ac_cv_lib_resolv_res_search=no
 
9575
fi
 
9576
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9577
LIBS=$ac_check_lib_save_LIBS
 
9578
fi
 
9579
echo "$as_me:9579: result: $ac_cv_lib_resolv_res_search" >&5
 
9580
echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
 
9581
if test $ac_cv_lib_resolv_res_search = yes; then
 
9582
  cat >>confdefs.h <<EOF
 
9583
#define HAVE_LIBRESOLV 1
 
9584
EOF
 
9585
 
 
9586
  LIBS="-lresolv $LIBS"
 
9587
 
 
9588
fi
 
9589
 
 
9590
fi
 
9591
 
 
9592
        echo "$as_me:9592: checking for krb_net_read in -lkrb" >&5
 
9593
echo $ECHO_N "checking for krb_net_read in -lkrb... $ECHO_C" >&6
 
9594
if test "${ac_cv_lib_krb_krb_net_read+set}" = set; then
 
9595
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9596
else
 
9597
  ac_check_lib_save_LIBS=$LIBS
 
9598
LIBS="-lkrb  $LIBS"
 
9599
cat >conftest.$ac_ext <<_ACEOF
 
9600
#line 9600 "configure"
 
9601
#include "confdefs.h"
 
9602
 
 
9603
/* Override any gcc2 internal prototype to avoid an error.  */
 
9604
#ifdef __cplusplus
 
9605
extern "C"
 
9606
#endif
 
9607
/* We use char because int might match the return type of a gcc2
 
9608
   builtin and then its argument prototype would still apply.  */
 
9609
char krb_net_read ();
 
9610
int
 
9611
main ()
 
9612
{
 
9613
krb_net_read ();
 
9614
  ;
 
9615
  return 0;
 
9616
}
 
9617
_ACEOF
 
9618
rm -f conftest.$ac_objext conftest$ac_exeext
 
9619
if { (eval echo "$as_me:9619: \"$ac_link\"") >&5
 
9620
  (eval $ac_link) 2>&5
 
9621
  ac_status=$?
 
9622
  echo "$as_me:9622: \$? = $ac_status" >&5
 
9623
  (exit $ac_status); } &&
 
9624
         { ac_try='test -s conftest$ac_exeext'
 
9625
  { (eval echo "$as_me:9625: \"$ac_try\"") >&5
 
9626
  (eval $ac_try) 2>&5
 
9627
  ac_status=$?
 
9628
  echo "$as_me:9628: \$? = $ac_status" >&5
 
9629
  (exit $ac_status); }; }; then
 
9630
  ac_cv_lib_krb_krb_net_read=yes
 
9631
else
 
9632
  echo "$as_me: failed program was:" >&5
 
9633
cat conftest.$ac_ext >&5
 
9634
ac_cv_lib_krb_krb_net_read=no
 
9635
fi
 
9636
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9637
LIBS=$ac_check_lib_save_LIBS
 
9638
fi
 
9639
echo "$as_me:9639: result: $ac_cv_lib_krb_krb_net_read" >&5
 
9640
echo "${ECHO_T}$ac_cv_lib_krb_krb_net_read" >&6
 
9641
if test $ac_cv_lib_krb_krb_net_read = yes; then
 
9642
 
 
9643
for ac_header in krb.h
 
9644
do
 
9645
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9646
echo "$as_me:9646: checking for $ac_header" >&5
 
9647
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9648
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9649
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9650
else
 
9651
  cat >conftest.$ac_ext <<_ACEOF
 
9652
#line 9652 "configure"
 
9653
#include "confdefs.h"
 
9654
#include <$ac_header>
 
9655
_ACEOF
 
9656
if { (eval echo "$as_me:9656: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9657
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9658
  ac_status=$?
 
9659
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
9660
  rm -f conftest.er1
 
9661
  cat conftest.err >&5
 
9662
  echo "$as_me:9662: \$? = $ac_status" >&5
 
9663
  (exit $ac_status); } >/dev/null; then
 
9664
  if test -s conftest.err; then
 
9665
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9666
  else
 
9667
    ac_cpp_err=
 
9668
  fi
 
9669
else
 
9670
  ac_cpp_err=yes
 
9671
fi
 
9672
if test -z "$ac_cpp_err"; then
 
9673
  eval "$as_ac_Header=yes"
 
9674
else
 
9675
  echo "$as_me: failed program was:" >&5
 
9676
  cat conftest.$ac_ext >&5
 
9677
  eval "$as_ac_Header=no"
 
9678
fi
 
9679
rm -f conftest.err conftest.$ac_ext
 
9680
fi
 
9681
echo "$as_me:9681: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9682
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9683
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9684
  cat >>confdefs.h <<EOF
 
9685
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9686
EOF
 
9687
 
 
9688
fi
 
9689
done
 
9690
 
 
9691
            LIBS="-lkrb -ldes $LIBS"
 
9692
 
 
9693
for ac_func in krb_get_our_ip_for_realm
 
9694
do
 
9695
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9696
echo "$as_me:9696: checking for $ac_func" >&5
 
9697
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
9698
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
9699
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9700
else
 
9701
  cat >conftest.$ac_ext <<_ACEOF
 
9702
#line 9702 "configure"
 
9703
#include "confdefs.h"
 
9704
/* System header to define __stub macros and hopefully few prototypes,
 
9705
    which can conflict with char $ac_func (); below.  */
 
9706
#include <assert.h>
 
9707
/* Override any gcc2 internal prototype to avoid an error.  */
 
9708
#ifdef __cplusplus
 
9709
extern "C"
 
9710
#endif
 
9711
/* We use char because int might match the return type of a gcc2
 
9712
   builtin and then its argument prototype would still apply.  */
 
9713
char $ac_func ();
 
9714
char (*f) ();
 
9715
 
 
9716
int
 
9717
main ()
 
9718
{
 
9719
/* The GNU C library defines this for functions which it implements
 
9720
    to always fail with ENOSYS.  Some functions are actually named
 
9721
    something starting with __ and the normal name is an alias.  */
 
9722
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
9723
choke me
 
9724
#else
 
9725
f = $ac_func;
 
9726
#endif
 
9727
 
 
9728
  ;
 
9729
  return 0;
 
9730
}
 
9731
_ACEOF
 
9732
rm -f conftest.$ac_objext conftest$ac_exeext
 
9733
if { (eval echo "$as_me:9733: \"$ac_link\"") >&5
 
9734
  (eval $ac_link) 2>&5
 
9735
  ac_status=$?
 
9736
  echo "$as_me:9736: \$? = $ac_status" >&5
 
9737
  (exit $ac_status); } &&
 
9738
         { ac_try='test -s conftest$ac_exeext'
 
9739
  { (eval echo "$as_me:9739: \"$ac_try\"") >&5
 
9740
  (eval $ac_try) 2>&5
 
9741
  ac_status=$?
 
9742
  echo "$as_me:9742: \$? = $ac_status" >&5
 
9743
  (exit $ac_status); }; }; then
 
9744
  eval "$as_ac_var=yes"
 
9745
else
 
9746
  echo "$as_me: failed program was:" >&5
 
9747
cat conftest.$ac_ext >&5
 
9748
eval "$as_ac_var=no"
 
9749
fi
 
9750
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9751
fi
 
9752
echo "$as_me:9752: result: `eval echo '${'$as_ac_var'}'`" >&5
 
9753
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
9754
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
9755
  cat >>confdefs.h <<EOF
 
9756
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9757
EOF
 
9758
 
 
9759
fi
 
9760
done
 
9761
 
 
9762
            cat >>confdefs.h <<\EOF
 
9763
#define KRB4 1
 
9764
EOF
 
9765
 
 
9766
            KRB4_ENABLED=1
 
9767
 
 
9768
for ac_func in strlcpy
 
9769
do
 
9770
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9771
echo "$as_me:9771: checking for $ac_func" >&5
 
9772
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
9773
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
9774
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9775
else
 
9776
  cat >conftest.$ac_ext <<_ACEOF
 
9777
#line 9777 "configure"
 
9778
#include "confdefs.h"
 
9779
/* System header to define __stub macros and hopefully few prototypes,
 
9780
    which can conflict with char $ac_func (); below.  */
 
9781
#include <assert.h>
 
9782
/* Override any gcc2 internal prototype to avoid an error.  */
 
9783
#ifdef __cplusplus
 
9784
extern "C"
 
9785
#endif
 
9786
/* We use char because int might match the return type of a gcc2
 
9787
   builtin and then its argument prototype would still apply.  */
 
9788
char $ac_func ();
 
9789
char (*f) ();
 
9790
 
 
9791
int
 
9792
main ()
 
9793
{
 
9794
/* The GNU C library defines this for functions which it implements
 
9795
    to always fail with ENOSYS.  Some functions are actually named
 
9796
    something starting with __ and the normal name is an alias.  */
 
9797
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
9798
choke me
 
9799
#else
 
9800
f = $ac_func;
 
9801
#endif
 
9802
 
 
9803
  ;
 
9804
  return 0;
 
9805
}
 
9806
_ACEOF
 
9807
rm -f conftest.$ac_objext conftest$ac_exeext
 
9808
if { (eval echo "$as_me:9808: \"$ac_link\"") >&5
 
9809
  (eval $ac_link) 2>&5
 
9810
  ac_status=$?
 
9811
  echo "$as_me:9811: \$? = $ac_status" >&5
 
9812
  (exit $ac_status); } &&
 
9813
         { ac_try='test -s conftest$ac_exeext'
 
9814
  { (eval echo "$as_me:9814: \"$ac_try\"") >&5
 
9815
  (eval $ac_try) 2>&5
 
9816
  ac_status=$?
 
9817
  echo "$as_me:9817: \$? = $ac_status" >&5
 
9818
  (exit $ac_status); }; }; then
 
9819
  eval "$as_ac_var=yes"
 
9820
else
 
9821
  echo "$as_me: failed program was:" >&5
 
9822
cat conftest.$ac_ext >&5
 
9823
eval "$as_ac_var=no"
 
9824
fi
 
9825
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9826
fi
 
9827
echo "$as_me:9827: result: `eval echo '${'$as_ac_var'}'`" >&5
 
9828
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
9829
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
9830
  cat >>confdefs.h <<EOF
 
9831
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9832
EOF
 
9833
 
 
9834
fi
 
9835
done
 
9836
 
 
9837
fi
 
9838
 
 
9839
fi
 
9840
 
 
9841
else
 
9842
  echo "$as_me:9842: result: no" >&5
 
9843
echo "${ECHO_T}no" >&6
 
9844
fi
 
9845
 
 
9846
OPT_SSL=off
 
9847
 
 
9848
# Check whether --with-ssl or --without-ssl was given.
 
9849
if test "${with_ssl+set}" = set; then
 
9850
  withval="$with_ssl"
 
9851
  OPT_SSL=$withval
 
9852
 
 
9853
fi;
 
9854
 
 
9855
if test X"$OPT_SSL" = Xno
 
9856
then
 
9857
  { echo "$as_me:9857: WARNING: SSL/https support disabled" >&5
 
9858
echo "$as_me: WARNING: SSL/https support disabled" >&2;}
 
9859
else
 
9860
 
 
9861
    CLEANLDFLAGS="$LDFLAGS"
 
9862
  CLEANCPPFLAGS="$CPPFLAGS"
 
9863
 
 
9864
  case "$OPT_SSL" in
 
9865
  yes)
 
9866
    EXTRA_SSL=/usr/local/ssl ;;
 
9867
  off)
 
9868
    EXTRA_SSL= ;;
 
9869
  *)
 
9870
        EXTRA_SSL=$OPT_SSL
 
9871
    LDFLAGS="$LDFLAGS -L$EXTRA_SSL/lib"
 
9872
    CPPFLAGS="$CPPFLAGS -I$EXTRA_SSL/include/openssl -I$EXTRA_SSL/include"
 
9873
    ;;
 
9874
  esac
 
9875
 
 
9876
  echo "$as_me:9876: checking for CRYPTO_lock in -lcrypto" >&5
 
9877
echo $ECHO_N "checking for CRYPTO_lock in -lcrypto... $ECHO_C" >&6
 
9878
if test "${ac_cv_lib_crypto_CRYPTO_lock+set}" = set; then
 
9879
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9880
else
 
9881
  ac_check_lib_save_LIBS=$LIBS
 
9882
LIBS="-lcrypto  $LIBS"
 
9883
cat >conftest.$ac_ext <<_ACEOF
 
9884
#line 9884 "configure"
 
9885
#include "confdefs.h"
 
9886
 
 
9887
/* Override any gcc2 internal prototype to avoid an error.  */
 
9888
#ifdef __cplusplus
 
9889
extern "C"
 
9890
#endif
 
9891
/* We use char because int might match the return type of a gcc2
 
9892
   builtin and then its argument prototype would still apply.  */
 
9893
char CRYPTO_lock ();
 
9894
int
 
9895
main ()
 
9896
{
 
9897
CRYPTO_lock ();
 
9898
  ;
 
9899
  return 0;
 
9900
}
 
9901
_ACEOF
 
9902
rm -f conftest.$ac_objext conftest$ac_exeext
 
9903
if { (eval echo "$as_me:9903: \"$ac_link\"") >&5
 
9904
  (eval $ac_link) 2>&5
 
9905
  ac_status=$?
 
9906
  echo "$as_me:9906: \$? = $ac_status" >&5
 
9907
  (exit $ac_status); } &&
 
9908
         { ac_try='test -s conftest$ac_exeext'
 
9909
  { (eval echo "$as_me:9909: \"$ac_try\"") >&5
 
9910
  (eval $ac_try) 2>&5
 
9911
  ac_status=$?
 
9912
  echo "$as_me:9912: \$? = $ac_status" >&5
 
9913
  (exit $ac_status); }; }; then
 
9914
  ac_cv_lib_crypto_CRYPTO_lock=yes
 
9915
else
 
9916
  echo "$as_me: failed program was:" >&5
 
9917
cat conftest.$ac_ext >&5
 
9918
ac_cv_lib_crypto_CRYPTO_lock=no
 
9919
fi
 
9920
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9921
LIBS=$ac_check_lib_save_LIBS
 
9922
fi
 
9923
echo "$as_me:9923: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
 
9924
echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_lock" >&6
 
9925
if test $ac_cv_lib_crypto_CRYPTO_lock = yes; then
 
9926
 
 
9927
     HAVECRYPTO="yes"
 
9928
 
 
9929
else
 
9930
 
 
9931
     OLDLDFLAGS="$LDFLAGS"
 
9932
     OLDCPPFLAGS="$CPPFLAGS"
 
9933
     LDFLAGS="$CLEANLDFLAGS -L$EXTRA_SSL/lib"
 
9934
     CPPFLAGS="$CLEANCPPFLAGS -I$EXTRA_SSL/include/openssl -I$EXTRA_SSL/include"
 
9935
     echo "$as_me:9935: checking for CRYPTO_add_lock in -lcrypto" >&5
 
9936
echo $ECHO_N "checking for CRYPTO_add_lock in -lcrypto... $ECHO_C" >&6
 
9937
if test "${ac_cv_lib_crypto_CRYPTO_add_lock+set}" = set; then
 
9938
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9939
else
 
9940
  ac_check_lib_save_LIBS=$LIBS
 
9941
LIBS="-lcrypto  $LIBS"
 
9942
cat >conftest.$ac_ext <<_ACEOF
 
9943
#line 9943 "configure"
 
9944
#include "confdefs.h"
 
9945
 
 
9946
/* Override any gcc2 internal prototype to avoid an error.  */
 
9947
#ifdef __cplusplus
 
9948
extern "C"
 
9949
#endif
 
9950
/* We use char because int might match the return type of a gcc2
 
9951
   builtin and then its argument prototype would still apply.  */
 
9952
char CRYPTO_add_lock ();
 
9953
int
 
9954
main ()
 
9955
{
 
9956
CRYPTO_add_lock ();
 
9957
  ;
 
9958
  return 0;
 
9959
}
 
9960
_ACEOF
 
9961
rm -f conftest.$ac_objext conftest$ac_exeext
 
9962
if { (eval echo "$as_me:9962: \"$ac_link\"") >&5
 
9963
  (eval $ac_link) 2>&5
 
9964
  ac_status=$?
 
9965
  echo "$as_me:9965: \$? = $ac_status" >&5
 
9966
  (exit $ac_status); } &&
 
9967
         { ac_try='test -s conftest$ac_exeext'
 
9968
  { (eval echo "$as_me:9968: \"$ac_try\"") >&5
 
9969
  (eval $ac_try) 2>&5
 
9970
  ac_status=$?
 
9971
  echo "$as_me:9971: \$? = $ac_status" >&5
 
9972
  (exit $ac_status); }; }; then
 
9973
  ac_cv_lib_crypto_CRYPTO_add_lock=yes
 
9974
else
 
9975
  echo "$as_me: failed program was:" >&5
 
9976
cat conftest.$ac_ext >&5
 
9977
ac_cv_lib_crypto_CRYPTO_add_lock=no
 
9978
fi
 
9979
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9980
LIBS=$ac_check_lib_save_LIBS
 
9981
fi
 
9982
echo "$as_me:9982: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
 
9983
echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_add_lock" >&6
 
9984
if test $ac_cv_lib_crypto_CRYPTO_add_lock = yes; then
 
9985
 
 
9986
       HAVECRYPTO="yes"
 
9987
else
 
9988
 
 
9989
       LDFLAGS="$OLDLDFLAGS"
 
9990
       CPPFLAGS="$OLDCPPFLAGS"
 
9991
 
 
9992
fi
 
9993
 
 
9994
fi
 
9995
 
 
9996
  if test "$HAVECRYPTO" = "yes"; then
 
9997
 
 
9998
echo "$as_me:9998: checking for CRYPTO_add_lock in -lcrypto" >&5
 
9999
echo $ECHO_N "checking for CRYPTO_add_lock in -lcrypto... $ECHO_C" >&6
 
10000
if test "${ac_cv_lib_crypto_CRYPTO_add_lock+set}" = set; then
 
10001
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10002
else
 
10003
  ac_check_lib_save_LIBS=$LIBS
 
10004
LIBS="-lcrypto  $LIBS"
 
10005
cat >conftest.$ac_ext <<_ACEOF
 
10006
#line 10006 "configure"
 
10007
#include "confdefs.h"
 
10008
 
 
10009
/* Override any gcc2 internal prototype to avoid an error.  */
 
10010
#ifdef __cplusplus
 
10011
extern "C"
 
10012
#endif
 
10013
/* We use char because int might match the return type of a gcc2
 
10014
   builtin and then its argument prototype would still apply.  */
 
10015
char CRYPTO_add_lock ();
 
10016
int
 
10017
main ()
 
10018
{
 
10019
CRYPTO_add_lock ();
 
10020
  ;
 
10021
  return 0;
 
10022
}
 
10023
_ACEOF
 
10024
rm -f conftest.$ac_objext conftest$ac_exeext
 
10025
if { (eval echo "$as_me:10025: \"$ac_link\"") >&5
 
10026
  (eval $ac_link) 2>&5
 
10027
  ac_status=$?
 
10028
  echo "$as_me:10028: \$? = $ac_status" >&5
 
10029
  (exit $ac_status); } &&
 
10030
         { ac_try='test -s conftest$ac_exeext'
 
10031
  { (eval echo "$as_me:10031: \"$ac_try\"") >&5
 
10032
  (eval $ac_try) 2>&5
 
10033
  ac_status=$?
 
10034
  echo "$as_me:10034: \$? = $ac_status" >&5
 
10035
  (exit $ac_status); }; }; then
 
10036
  ac_cv_lib_crypto_CRYPTO_add_lock=yes
 
10037
else
 
10038
  echo "$as_me: failed program was:" >&5
 
10039
cat conftest.$ac_ext >&5
 
10040
ac_cv_lib_crypto_CRYPTO_add_lock=no
 
10041
fi
 
10042
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10043
LIBS=$ac_check_lib_save_LIBS
 
10044
fi
 
10045
echo "$as_me:10045: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
 
10046
echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_add_lock" >&6
 
10047
if test $ac_cv_lib_crypto_CRYPTO_add_lock = yes; then
 
10048
  cat >>confdefs.h <<EOF
 
10049
#define HAVE_LIBCRYPTO 1
 
10050
EOF
 
10051
 
 
10052
  LIBS="-lcrypto $LIBS"
 
10053
 
 
10054
fi
 
10055
 
 
10056
echo "$as_me:10056: checking for SSL_connect in -lssl" >&5
 
10057
echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6
 
10058
if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then
 
10059
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10060
else
 
10061
  ac_check_lib_save_LIBS=$LIBS
 
10062
LIBS="-lssl  $LIBS"
 
10063
cat >conftest.$ac_ext <<_ACEOF
 
10064
#line 10064 "configure"
 
10065
#include "confdefs.h"
 
10066
 
 
10067
/* Override any gcc2 internal prototype to avoid an error.  */
 
10068
#ifdef __cplusplus
 
10069
extern "C"
 
10070
#endif
 
10071
/* We use char because int might match the return type of a gcc2
 
10072
   builtin and then its argument prototype would still apply.  */
 
10073
char SSL_connect ();
 
10074
int
 
10075
main ()
 
10076
{
 
10077
SSL_connect ();
 
10078
  ;
 
10079
  return 0;
 
10080
}
 
10081
_ACEOF
 
10082
rm -f conftest.$ac_objext conftest$ac_exeext
 
10083
if { (eval echo "$as_me:10083: \"$ac_link\"") >&5
 
10084
  (eval $ac_link) 2>&5
 
10085
  ac_status=$?
 
10086
  echo "$as_me:10086: \$? = $ac_status" >&5
 
10087
  (exit $ac_status); } &&
 
10088
         { ac_try='test -s conftest$ac_exeext'
 
10089
  { (eval echo "$as_me:10089: \"$ac_try\"") >&5
 
10090
  (eval $ac_try) 2>&5
 
10091
  ac_status=$?
 
10092
  echo "$as_me:10092: \$? = $ac_status" >&5
 
10093
  (exit $ac_status); }; }; then
 
10094
  ac_cv_lib_ssl_SSL_connect=yes
 
10095
else
 
10096
  echo "$as_me: failed program was:" >&5
 
10097
cat conftest.$ac_ext >&5
 
10098
ac_cv_lib_ssl_SSL_connect=no
 
10099
fi
 
10100
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10101
LIBS=$ac_check_lib_save_LIBS
 
10102
fi
 
10103
echo "$as_me:10103: result: $ac_cv_lib_ssl_SSL_connect" >&5
 
10104
echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6
 
10105
if test $ac_cv_lib_ssl_SSL_connect = yes; then
 
10106
  cat >>confdefs.h <<EOF
 
10107
#define HAVE_LIBSSL 1
 
10108
EOF
 
10109
 
 
10110
  LIBS="-lssl $LIBS"
 
10111
 
 
10112
fi
 
10113
 
 
10114
    if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
 
10115
                echo "$as_me:10115: checking for ssl with RSAglue/rsaref libs in use" >&5
 
10116
echo $ECHO_N "checking for ssl with RSAglue/rsaref libs in use... $ECHO_C" >&6;
 
10117
        OLIBS=$LIBS
 
10118
        LIBS="$LIBS -lRSAglue -lrsaref"
 
10119
 
 
10120
echo "$as_me:10120: checking for SSL_connect in -lssl" >&5
 
10121
echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6
 
10122
if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then
 
10123
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10124
else
 
10125
  ac_check_lib_save_LIBS=$LIBS
 
10126
LIBS="-lssl  $LIBS"
 
10127
cat >conftest.$ac_ext <<_ACEOF
 
10128
#line 10128 "configure"
 
10129
#include "confdefs.h"
 
10130
 
 
10131
/* Override any gcc2 internal prototype to avoid an error.  */
 
10132
#ifdef __cplusplus
 
10133
extern "C"
 
10134
#endif
 
10135
/* We use char because int might match the return type of a gcc2
 
10136
   builtin and then its argument prototype would still apply.  */
 
10137
char SSL_connect ();
 
10138
int
 
10139
main ()
 
10140
{
 
10141
SSL_connect ();
 
10142
  ;
 
10143
  return 0;
 
10144
}
 
10145
_ACEOF
 
10146
rm -f conftest.$ac_objext conftest$ac_exeext
 
10147
if { (eval echo "$as_me:10147: \"$ac_link\"") >&5
 
10148
  (eval $ac_link) 2>&5
 
10149
  ac_status=$?
 
10150
  echo "$as_me:10150: \$? = $ac_status" >&5
 
10151
  (exit $ac_status); } &&
 
10152
         { ac_try='test -s conftest$ac_exeext'
 
10153
  { (eval echo "$as_me:10153: \"$ac_try\"") >&5
 
10154
  (eval $ac_try) 2>&5
 
10155
  ac_status=$?
 
10156
  echo "$as_me:10156: \$? = $ac_status" >&5
 
10157
  (exit $ac_status); }; }; then
 
10158
  ac_cv_lib_ssl_SSL_connect=yes
 
10159
else
 
10160
  echo "$as_me: failed program was:" >&5
 
10161
cat conftest.$ac_ext >&5
 
10162
ac_cv_lib_ssl_SSL_connect=no
 
10163
fi
 
10164
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10165
LIBS=$ac_check_lib_save_LIBS
 
10166
fi
 
10167
echo "$as_me:10167: result: $ac_cv_lib_ssl_SSL_connect" >&5
 
10168
echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6
 
10169
if test $ac_cv_lib_ssl_SSL_connect = yes; then
 
10170
  cat >>confdefs.h <<EOF
 
10171
#define HAVE_LIBSSL 1
 
10172
EOF
 
10173
 
 
10174
  LIBS="-lssl $LIBS"
 
10175
 
 
10176
fi
 
10177
 
 
10178
        if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
 
10179
                        echo "$as_me:10179: result: no" >&5
 
10180
echo "${ECHO_T}no" >&6
 
10181
            LIBS=$OLIBS
 
10182
        else
 
10183
            echo "$as_me:10183: result: yes" >&5
 
10184
echo "${ECHO_T}yes" >&6
 
10185
        fi
 
10186
    fi
 
10187
 
 
10188
for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
 
10189
                     openssl/pem.h openssl/ssl.h openssl/err.h
 
10190
do
 
10191
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
10192
echo "$as_me:10192: checking for $ac_header" >&5
 
10193
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10194
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10195
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10196
else
 
10197
  cat >conftest.$ac_ext <<_ACEOF
 
10198
#line 10198 "configure"
 
10199
#include "confdefs.h"
 
10200
#include <$ac_header>
 
10201
_ACEOF
 
10202
if { (eval echo "$as_me:10202: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10203
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10204
  ac_status=$?
 
10205
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
10206
  rm -f conftest.er1
 
10207
  cat conftest.err >&5
 
10208
  echo "$as_me:10208: \$? = $ac_status" >&5
 
10209
  (exit $ac_status); } >/dev/null; then
 
10210
  if test -s conftest.err; then
 
10211
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10212
  else
 
10213
    ac_cpp_err=
 
10214
  fi
 
10215
else
 
10216
  ac_cpp_err=yes
 
10217
fi
 
10218
if test -z "$ac_cpp_err"; then
 
10219
  eval "$as_ac_Header=yes"
 
10220
else
 
10221
  echo "$as_me: failed program was:" >&5
 
10222
  cat conftest.$ac_ext >&5
 
10223
  eval "$as_ac_Header=no"
 
10224
fi
 
10225
rm -f conftest.err conftest.$ac_ext
 
10226
fi
 
10227
echo "$as_me:10227: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10228
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10229
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
10230
  cat >>confdefs.h <<EOF
 
10231
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
10232
EOF
 
10233
 OPENSSL_ENABLED=1
 
10234
fi
 
10235
done
 
10236
 
 
10237
    if test $ac_cv_header_openssl_x509_h = no; then
 
10238
 
 
10239
for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
 
10240
do
 
10241
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
10242
echo "$as_me:10242: checking for $ac_header" >&5
 
10243
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10244
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10245
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10246
else
 
10247
  cat >conftest.$ac_ext <<_ACEOF
 
10248
#line 10248 "configure"
 
10249
#include "confdefs.h"
 
10250
#include <$ac_header>
 
10251
_ACEOF
 
10252
if { (eval echo "$as_me:10252: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10253
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10254
  ac_status=$?
 
10255
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
10256
  rm -f conftest.er1
 
10257
  cat conftest.err >&5
 
10258
  echo "$as_me:10258: \$? = $ac_status" >&5
 
10259
  (exit $ac_status); } >/dev/null; then
 
10260
  if test -s conftest.err; then
 
10261
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10262
  else
 
10263
    ac_cpp_err=
 
10264
  fi
 
10265
else
 
10266
  ac_cpp_err=yes
 
10267
fi
 
10268
if test -z "$ac_cpp_err"; then
 
10269
  eval "$as_ac_Header=yes"
 
10270
else
 
10271
  echo "$as_me: failed program was:" >&5
 
10272
  cat conftest.$ac_ext >&5
 
10273
  eval "$as_ac_Header=no"
 
10274
fi
 
10275
rm -f conftest.err conftest.$ac_ext
 
10276
fi
 
10277
echo "$as_me:10277: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10278
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10279
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
10280
  cat >>confdefs.h <<EOF
 
10281
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
10282
EOF
 
10283
 OPENSSL_ENABLED=1
 
10284
fi
 
10285
done
 
10286
 
 
10287
    fi
 
10288
 
 
10289
for ac_header in openssl/engine.h
 
10290
do
 
10291
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
10292
echo "$as_me:10292: checking for $ac_header" >&5
 
10293
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
10294
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10295
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10296
else
 
10297
  cat >conftest.$ac_ext <<_ACEOF
 
10298
#line 10298 "configure"
 
10299
#include "confdefs.h"
 
10300
#include <$ac_header>
 
10301
_ACEOF
 
10302
if { (eval echo "$as_me:10302: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10303
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10304
  ac_status=$?
 
10305
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
10306
  rm -f conftest.er1
 
10307
  cat conftest.err >&5
 
10308
  echo "$as_me:10308: \$? = $ac_status" >&5
 
10309
  (exit $ac_status); } >/dev/null; then
 
10310
  if test -s conftest.err; then
 
10311
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10312
  else
 
10313
    ac_cpp_err=
 
10314
  fi
 
10315
else
 
10316
  ac_cpp_err=yes
 
10317
fi
 
10318
if test -z "$ac_cpp_err"; then
 
10319
  eval "$as_ac_Header=yes"
 
10320
else
 
10321
  echo "$as_me: failed program was:" >&5
 
10322
  cat conftest.$ac_ext >&5
 
10323
  eval "$as_ac_Header=no"
 
10324
fi
 
10325
rm -f conftest.err conftest.$ac_ext
 
10326
fi
 
10327
echo "$as_me:10327: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10328
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10329
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
10330
  cat >>confdefs.h <<EOF
 
10331
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
10332
EOF
 
10333
 
 
10334
fi
 
10335
done
 
10336
 
 
10337
  fi
 
10338
 
 
10339
  if test X"$OPT_SSL" != Xoff &&
 
10340
     test "$OPENSSL_ENABLED" != "1"; then
 
10341
    { { echo "$as_me:10341: error: OpenSSL libs and/or directories were not found where specified!" >&5
 
10342
echo "$as_me: error: OpenSSL libs and/or directories were not found where specified!" >&2;}
 
10343
   { (exit 1); exit 1; }; }
 
10344
  fi
 
10345
 
 
10346
for ac_func in RAND_status \
 
10347
                  RAND_screen \
 
10348
                  RAND_egd
 
10349
do
 
10350
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
10351
echo "$as_me:10351: checking for $ac_func" >&5
 
10352
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
10353
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
10354
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10355
else
 
10356
  cat >conftest.$ac_ext <<_ACEOF
 
10357
#line 10357 "configure"
 
10358
#include "confdefs.h"
 
10359
/* System header to define __stub macros and hopefully few prototypes,
 
10360
    which can conflict with char $ac_func (); below.  */
 
10361
#include <assert.h>
 
10362
/* Override any gcc2 internal prototype to avoid an error.  */
 
10363
#ifdef __cplusplus
 
10364
extern "C"
 
10365
#endif
 
10366
/* We use char because int might match the return type of a gcc2
 
10367
   builtin and then its argument prototype would still apply.  */
 
10368
char $ac_func ();
 
10369
char (*f) ();
 
10370
 
 
10371
int
 
10372
main ()
 
10373
{
 
10374
/* The GNU C library defines this for functions which it implements
 
10375
    to always fail with ENOSYS.  Some functions are actually named
 
10376
    something starting with __ and the normal name is an alias.  */
 
10377
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
10378
choke me
 
10379
#else
 
10380
f = $ac_func;
 
10381
#endif
 
10382
 
 
10383
  ;
 
10384
  return 0;
 
10385
}
 
10386
_ACEOF
 
10387
rm -f conftest.$ac_objext conftest$ac_exeext
 
10388
if { (eval echo "$as_me:10388: \"$ac_link\"") >&5
 
10389
  (eval $ac_link) 2>&5
 
10390
  ac_status=$?
 
10391
  echo "$as_me:10391: \$? = $ac_status" >&5
 
10392
  (exit $ac_status); } &&
 
10393
         { ac_try='test -s conftest$ac_exeext'
 
10394
  { (eval echo "$as_me:10394: \"$ac_try\"") >&5
 
10395
  (eval $ac_try) 2>&5
 
10396
  ac_status=$?
 
10397
  echo "$as_me:10397: \$? = $ac_status" >&5
 
10398
  (exit $ac_status); }; }; then
 
10399
  eval "$as_ac_var=yes"
 
10400
else
 
10401
  echo "$as_me: failed program was:" >&5
 
10402
cat conftest.$ac_ext >&5
 
10403
eval "$as_ac_var=no"
 
10404
fi
 
10405
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10406
fi
 
10407
echo "$as_me:10407: result: `eval echo '${'$as_ac_var'}'`" >&5
 
10408
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
10409
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
10410
  cat >>confdefs.h <<EOF
 
10411
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
10412
EOF
 
10413
 
 
10414
fi
 
10415
done
 
10416
 
 
10417
fi
 
10418
 
 
10419
OPT_THREAD=on
 
10420
# Check whether --enable-thread or --disable-thread was given.
 
10421
if test "${enable_thread+set}" = set; then
 
10422
  enableval="$enable_thread"
 
10423
  OPT_THREAD=off
 
10424
 
 
10425
fi;
 
10426
 
 
10427
if test X"$OPT_THREAD" = Xoff
 
10428
then
 
10429
  { echo "$as_me:10429: WARNING: libcurl will not get built using thread-safe functions" >&5
 
10430
echo "$as_me: WARNING: libcurl will not get built using thread-safe functions" >&2;}
 
10431
 
 
10432
cat >>confdefs.h <<\EOF
 
10433
#define DISABLED_THREADSAFE 1
 
10434
EOF
 
10435
 
 
10436
else
 
10437
 
 
10438
for ac_func in gethostbyname_r
 
10439
do
 
10440
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
10441
echo "$as_me:10441: checking for $ac_func" >&5
 
10442
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
10443
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
10444
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10445
else
 
10446
  cat >conftest.$ac_ext <<_ACEOF
 
10447
#line 10447 "configure"
 
10448
#include "confdefs.h"
 
10449
/* System header to define __stub macros and hopefully few prototypes,
 
10450
    which can conflict with char $ac_func (); below.  */
 
10451
#include <assert.h>
 
10452
/* Override any gcc2 internal prototype to avoid an error.  */
 
10453
#ifdef __cplusplus
 
10454
extern "C"
 
10455
#endif
 
10456
/* We use char because int might match the return type of a gcc2
 
10457
   builtin and then its argument prototype would still apply.  */
 
10458
char $ac_func ();
 
10459
char (*f) ();
 
10460
 
 
10461
int
 
10462
main ()
 
10463
{
 
10464
/* The GNU C library defines this for functions which it implements
 
10465
    to always fail with ENOSYS.  Some functions are actually named
 
10466
    something starting with __ and the normal name is an alias.  */
 
10467
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
10468
choke me
 
10469
#else
 
10470
f = $ac_func;
 
10471
#endif
 
10472
 
 
10473
  ;
 
10474
  return 0;
 
10475
}
 
10476
_ACEOF
 
10477
rm -f conftest.$ac_objext conftest$ac_exeext
 
10478
if { (eval echo "$as_me:10478: \"$ac_link\"") >&5
 
10479
  (eval $ac_link) 2>&5
 
10480
  ac_status=$?
 
10481
  echo "$as_me:10481: \$? = $ac_status" >&5
 
10482
  (exit $ac_status); } &&
 
10483
         { ac_try='test -s conftest$ac_exeext'
 
10484
  { (eval echo "$as_me:10484: \"$ac_try\"") >&5
 
10485
  (eval $ac_try) 2>&5
 
10486
  ac_status=$?
 
10487
  echo "$as_me:10487: \$? = $ac_status" >&5
 
10488
  (exit $ac_status); }; }; then
 
10489
  eval "$as_ac_var=yes"
 
10490
else
 
10491
  echo "$as_me: failed program was:" >&5
 
10492
cat conftest.$ac_ext >&5
 
10493
eval "$as_ac_var=no"
 
10494
fi
 
10495
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10496
fi
 
10497
echo "$as_me:10497: result: `eval echo '${'$as_ac_var'}'`" >&5
 
10498
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
10499
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
10500
  cat >>confdefs.h <<EOF
 
10501
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
10502
EOF
 
10503
 
 
10504
    echo "$as_me:10504: checking if gethostbyname_r takes 3 arguments" >&5
 
10505
echo $ECHO_N "checking if gethostbyname_r takes 3 arguments... $ECHO_C" >&6
 
10506
    cat >conftest.$ac_ext <<_ACEOF
 
10507
#line 10507 "configure"
 
10508
#include "confdefs.h"
 
10509
 
 
10510
#include <string.h>
 
10511
#include <sys/types.h>
 
10512
#include <netdb.h>
 
10513
#undef NULL
 
10514
#define NULL (void *)0
 
10515
 
 
10516
int
 
10517
gethostbyname_r(const char *, struct hostent *, struct hostent_data *);
 
10518
int
 
10519
main ()
 
10520
{
 
10521
 
 
10522
struct hostent_data data;
 
10523
gethostbyname_r(NULL, NULL, NULL);
 
10524
  ;
 
10525
  return 0;
 
10526
}
 
10527
_ACEOF
 
10528
rm -f conftest.$ac_objext
 
10529
if { (eval echo "$as_me:10529: \"$ac_compile\"") >&5
 
10530
  (eval $ac_compile) 2>&5
 
10531
  ac_status=$?
 
10532
  echo "$as_me:10532: \$? = $ac_status" >&5
 
10533
  (exit $ac_status); } &&
 
10534
         { ac_try='test -s conftest.$ac_objext'
 
10535
  { (eval echo "$as_me:10535: \"$ac_try\"") >&5
 
10536
  (eval $ac_try) 2>&5
 
10537
  ac_status=$?
 
10538
  echo "$as_me:10538: \$? = $ac_status" >&5
 
10539
  (exit $ac_status); }; }; then
 
10540
 
 
10541
      echo "$as_me:10541: result: yes" >&5
 
10542
echo "${ECHO_T}yes" >&6
 
10543
      cat >>confdefs.h <<\EOF
 
10544
#define HAVE_GETHOSTBYNAME_R_3 1
 
10545
EOF
 
10546
 
 
10547
      ac_cv_gethostbyname_args=3
 
10548
else
 
10549
  echo "$as_me: failed program was:" >&5
 
10550
cat conftest.$ac_ext >&5
 
10551
 
 
10552
      echo "$as_me:10552: result: no" >&5
 
10553
echo "${ECHO_T}no" >&6
 
10554
      echo "$as_me:10554: checking if gethostbyname_r with -D_REENTRANT takes 3 arguments" >&5
 
10555
echo $ECHO_N "checking if gethostbyname_r with -D_REENTRANT takes 3 arguments... $ECHO_C" >&6
 
10556
      cat >conftest.$ac_ext <<_ACEOF
 
10557
#line 10557 "configure"
 
10558
#include "confdefs.h"
 
10559
 
 
10560
#define _REENTRANT
 
10561
 
 
10562
#include <string.h>
 
10563
#include <sys/types.h>
 
10564
#include <netdb.h>
 
10565
#undef NULL
 
10566
#define NULL (void *)0
 
10567
 
 
10568
int
 
10569
gethostbyname_r(const char *,struct hostent *, struct hostent_data *);
 
10570
int
 
10571
main ()
 
10572
{
 
10573
 
 
10574
struct hostent_data data;
 
10575
gethostbyname_r(NULL, NULL, NULL);
 
10576
  ;
 
10577
  return 0;
 
10578
}
 
10579
_ACEOF
 
10580
rm -f conftest.$ac_objext
 
10581
if { (eval echo "$as_me:10581: \"$ac_compile\"") >&5
 
10582
  (eval $ac_compile) 2>&5
 
10583
  ac_status=$?
 
10584
  echo "$as_me:10584: \$? = $ac_status" >&5
 
10585
  (exit $ac_status); } &&
 
10586
         { ac_try='test -s conftest.$ac_objext'
 
10587
  { (eval echo "$as_me:10587: \"$ac_try\"") >&5
 
10588
  (eval $ac_try) 2>&5
 
10589
  ac_status=$?
 
10590
  echo "$as_me:10590: \$? = $ac_status" >&5
 
10591
  (exit $ac_status); }; }; then
 
10592
 
 
10593
        echo "$as_me:10593: result: yes" >&5
 
10594
echo "${ECHO_T}yes" >&6
 
10595
        cat >>confdefs.h <<\EOF
 
10596
#define HAVE_GETHOSTBYNAME_R_3 1
 
10597
EOF
 
10598
 
 
10599
        cat >>confdefs.h <<\EOF
 
10600
#define NEED_REENTRANT 1
 
10601
EOF
 
10602
 
 
10603
        ac_cv_gethostbyname_args=3
 
10604
else
 
10605
  echo "$as_me: failed program was:" >&5
 
10606
cat conftest.$ac_ext >&5
 
10607
 
 
10608
        echo "$as_me:10608: result: no" >&5
 
10609
echo "${ECHO_T}no" >&6
 
10610
        echo "$as_me:10610: checking if gethostbyname_r takes 5 arguments" >&5
 
10611
echo $ECHO_N "checking if gethostbyname_r takes 5 arguments... $ECHO_C" >&6
 
10612
        cat >conftest.$ac_ext <<_ACEOF
 
10613
#line 10613 "configure"
 
10614
#include "confdefs.h"
 
10615
 
 
10616
#include <sys/types.h>
 
10617
#include <netdb.h>
 
10618
#undef NULL
 
10619
#define NULL (void *)0
 
10620
 
 
10621
struct hostent *
 
10622
gethostbyname_r(const char *, struct hostent *, char *, int, int *);
 
10623
int
 
10624
main ()
 
10625
{
 
10626
 
 
10627
gethostbyname_r(NULL, NULL, NULL, 0, NULL);
 
10628
  ;
 
10629
  return 0;
 
10630
}
 
10631
_ACEOF
 
10632
rm -f conftest.$ac_objext
 
10633
if { (eval echo "$as_me:10633: \"$ac_compile\"") >&5
 
10634
  (eval $ac_compile) 2>&5
 
10635
  ac_status=$?
 
10636
  echo "$as_me:10636: \$? = $ac_status" >&5
 
10637
  (exit $ac_status); } &&
 
10638
         { ac_try='test -s conftest.$ac_objext'
 
10639
  { (eval echo "$as_me:10639: \"$ac_try\"") >&5
 
10640
  (eval $ac_try) 2>&5
 
10641
  ac_status=$?
 
10642
  echo "$as_me:10642: \$? = $ac_status" >&5
 
10643
  (exit $ac_status); }; }; then
 
10644
 
 
10645
          echo "$as_me:10645: result: yes" >&5
 
10646
echo "${ECHO_T}yes" >&6
 
10647
          cat >>confdefs.h <<\EOF
 
10648
#define HAVE_GETHOSTBYNAME_R_5 1
 
10649
EOF
 
10650
 
 
10651
          ac_cv_gethostbyname_args=5
 
10652
else
 
10653
  echo "$as_me: failed program was:" >&5
 
10654
cat conftest.$ac_ext >&5
 
10655
 
 
10656
          echo "$as_me:10656: result: no" >&5
 
10657
echo "${ECHO_T}no" >&6
 
10658
          echo "$as_me:10658: checking if gethostbyname_r takes 6 arguments" >&5
 
10659
echo $ECHO_N "checking if gethostbyname_r takes 6 arguments... $ECHO_C" >&6
 
10660
          cat >conftest.$ac_ext <<_ACEOF
 
10661
#line 10661 "configure"
 
10662
#include "confdefs.h"
 
10663
 
 
10664
#include <sys/types.h>
 
10665
#include <netdb.h>
 
10666
#undef NULL
 
10667
#define NULL (void *)0
 
10668
 
 
10669
int
 
10670
gethostbyname_r(const char *, struct hostent *, char *, size_t,
 
10671
struct hostent **, int *);
 
10672
int
 
10673
main ()
 
10674
{
 
10675
 
 
10676
gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL);
 
10677
  ;
 
10678
  return 0;
 
10679
}
 
10680
_ACEOF
 
10681
rm -f conftest.$ac_objext
 
10682
if { (eval echo "$as_me:10682: \"$ac_compile\"") >&5
 
10683
  (eval $ac_compile) 2>&5
 
10684
  ac_status=$?
 
10685
  echo "$as_me:10685: \$? = $ac_status" >&5
 
10686
  (exit $ac_status); } &&
 
10687
         { ac_try='test -s conftest.$ac_objext'
 
10688
  { (eval echo "$as_me:10688: \"$ac_try\"") >&5
 
10689
  (eval $ac_try) 2>&5
 
10690
  ac_status=$?
 
10691
  echo "$as_me:10691: \$? = $ac_status" >&5
 
10692
  (exit $ac_status); }; }; then
 
10693
 
 
10694
            echo "$as_me:10694: result: yes" >&5
 
10695
echo "${ECHO_T}yes" >&6
 
10696
            cat >>confdefs.h <<\EOF
 
10697
#define HAVE_GETHOSTBYNAME_R_6 1
 
10698
EOF
 
10699
 
 
10700
            ac_cv_gethostbyname_args=6
 
10701
else
 
10702
  echo "$as_me: failed program was:" >&5
 
10703
cat conftest.$ac_ext >&5
 
10704
 
 
10705
            echo "$as_me:10705: result: no" >&5
 
10706
echo "${ECHO_T}no" >&6
 
10707
            have_missing_r_funcs="$have_missing_r_funcs gethostbyname_r"
 
10708
fi
 
10709
rm -f conftest.$ac_objext conftest.$ac_ext
 
10710
fi
 
10711
rm -f conftest.$ac_objext conftest.$ac_ext
 
10712
fi
 
10713
rm -f conftest.$ac_objext conftest.$ac_ext
 
10714
fi
 
10715
rm -f conftest.$ac_objext conftest.$ac_ext
 
10716
fi
 
10717
done
 
10718
 
 
10719
if test "$ac_cv_func_gethostbyname_r" = "yes"; then
 
10720
  if test "$ac_cv_gethostbyname_args" = "0"; then
 
10721
            { { echo "$as_me:10721: error: couldn't figure out how to use gethostbyname_r()" >&5
 
10722
echo "$as_me: error: couldn't figure out how to use gethostbyname_r()" >&2;}
 
10723
   { (exit 1); exit 1; }; }
 
10724
  fi
 
10725
fi
 
10726
 
 
10727
for ac_func in gethostbyaddr_r
 
10728
do
 
10729
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
10730
echo "$as_me:10730: checking for $ac_func" >&5
 
10731
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
10732
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
10733
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10734
else
 
10735
  cat >conftest.$ac_ext <<_ACEOF
 
10736
#line 10736 "configure"
 
10737
#include "confdefs.h"
 
10738
/* System header to define __stub macros and hopefully few prototypes,
 
10739
    which can conflict with char $ac_func (); below.  */
 
10740
#include <assert.h>
 
10741
/* Override any gcc2 internal prototype to avoid an error.  */
 
10742
#ifdef __cplusplus
 
10743
extern "C"
 
10744
#endif
 
10745
/* We use char because int might match the return type of a gcc2
 
10746
   builtin and then its argument prototype would still apply.  */
 
10747
char $ac_func ();
 
10748
char (*f) ();
 
10749
 
 
10750
int
 
10751
main ()
 
10752
{
 
10753
/* The GNU C library defines this for functions which it implements
 
10754
    to always fail with ENOSYS.  Some functions are actually named
 
10755
    something starting with __ and the normal name is an alias.  */
 
10756
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
10757
choke me
 
10758
#else
 
10759
f = $ac_func;
 
10760
#endif
 
10761
 
 
10762
  ;
 
10763
  return 0;
 
10764
}
 
10765
_ACEOF
 
10766
rm -f conftest.$ac_objext conftest$ac_exeext
 
10767
if { (eval echo "$as_me:10767: \"$ac_link\"") >&5
 
10768
  (eval $ac_link) 2>&5
 
10769
  ac_status=$?
 
10770
  echo "$as_me:10770: \$? = $ac_status" >&5
 
10771
  (exit $ac_status); } &&
 
10772
         { ac_try='test -s conftest$ac_exeext'
 
10773
  { (eval echo "$as_me:10773: \"$ac_try\"") >&5
 
10774
  (eval $ac_try) 2>&5
 
10775
  ac_status=$?
 
10776
  echo "$as_me:10776: \$? = $ac_status" >&5
 
10777
  (exit $ac_status); }; }; then
 
10778
  eval "$as_ac_var=yes"
 
10779
else
 
10780
  echo "$as_me: failed program was:" >&5
 
10781
cat conftest.$ac_ext >&5
 
10782
eval "$as_ac_var=no"
 
10783
fi
 
10784
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10785
fi
 
10786
echo "$as_me:10786: result: `eval echo '${'$as_ac_var'}'`" >&5
 
10787
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
10788
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
10789
  cat >>confdefs.h <<EOF
 
10790
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
10791
EOF
 
10792
 
 
10793
    echo "$as_me:10793: checking if gethostbyaddr_r takes 5 arguments" >&5
 
10794
echo $ECHO_N "checking if gethostbyaddr_r takes 5 arguments... $ECHO_C" >&6
 
10795
    cat >conftest.$ac_ext <<_ACEOF
 
10796
#line 10796 "configure"
 
10797
#include "confdefs.h"
 
10798
 
 
10799
#include <sys/types.h>
 
10800
#include <netdb.h>
 
10801
int
 
10802
main ()
 
10803
{
 
10804
 
 
10805
char * address;
 
10806
int length;
 
10807
int type;
 
10808
struct hostent h;
 
10809
struct hostent_data hdata;
 
10810
int rc;
 
10811
rc = gethostbyaddr_r(address, length, type, &h, &hdata);
 
10812
  ;
 
10813
  return 0;
 
10814
}
 
10815
_ACEOF
 
10816
rm -f conftest.$ac_objext
 
10817
if { (eval echo "$as_me:10817: \"$ac_compile\"") >&5
 
10818
  (eval $ac_compile) 2>&5
 
10819
  ac_status=$?
 
10820
  echo "$as_me:10820: \$? = $ac_status" >&5
 
10821
  (exit $ac_status); } &&
 
10822
         { ac_try='test -s conftest.$ac_objext'
 
10823
  { (eval echo "$as_me:10823: \"$ac_try\"") >&5
 
10824
  (eval $ac_try) 2>&5
 
10825
  ac_status=$?
 
10826
  echo "$as_me:10826: \$? = $ac_status" >&5
 
10827
  (exit $ac_status); }; }; then
 
10828
 
 
10829
      echo "$as_me:10829: result: yes" >&5
 
10830
echo "${ECHO_T}yes" >&6
 
10831
      cat >>confdefs.h <<\EOF
 
10832
#define HAVE_GETHOSTBYADDR_R_5 1
 
10833
EOF
 
10834
 
 
10835
      ac_cv_gethostbyaddr_args=5
 
10836
else
 
10837
  echo "$as_me: failed program was:" >&5
 
10838
cat conftest.$ac_ext >&5
 
10839
 
 
10840
      echo "$as_me:10840: result: no" >&5
 
10841
echo "${ECHO_T}no" >&6
 
10842
      echo "$as_me:10842: checking if gethostbyaddr_r with -D_REENTRANT takes 5 arguments" >&5
 
10843
echo $ECHO_N "checking if gethostbyaddr_r with -D_REENTRANT takes 5 arguments... $ECHO_C" >&6
 
10844
      cat >conftest.$ac_ext <<_ACEOF
 
10845
#line 10845 "configure"
 
10846
#include "confdefs.h"
 
10847
 
 
10848
#define _REENTRANT
 
10849
#include <sys/types.h>
 
10850
#include <netdb.h>
 
10851
int
 
10852
main ()
 
10853
{
 
10854
 
 
10855
char * address;
 
10856
int length;
 
10857
int type;
 
10858
struct hostent h;
 
10859
struct hostent_data hdata;
 
10860
int rc;
 
10861
rc = gethostbyaddr_r(address, length, type, &h, &hdata);
 
10862
  ;
 
10863
  return 0;
 
10864
}
 
10865
_ACEOF
 
10866
rm -f conftest.$ac_objext
 
10867
if { (eval echo "$as_me:10867: \"$ac_compile\"") >&5
 
10868
  (eval $ac_compile) 2>&5
 
10869
  ac_status=$?
 
10870
  echo "$as_me:10870: \$? = $ac_status" >&5
 
10871
  (exit $ac_status); } &&
 
10872
         { ac_try='test -s conftest.$ac_objext'
 
10873
  { (eval echo "$as_me:10873: \"$ac_try\"") >&5
 
10874
  (eval $ac_try) 2>&5
 
10875
  ac_status=$?
 
10876
  echo "$as_me:10876: \$? = $ac_status" >&5
 
10877
  (exit $ac_status); }; }; then
 
10878
 
 
10879
        echo "$as_me:10879: result: yes" >&5
 
10880
echo "${ECHO_T}yes" >&6
 
10881
        cat >>confdefs.h <<\EOF
 
10882
#define HAVE_GETHOSTBYADDR_R_5 1
 
10883
EOF
 
10884
 
 
10885
        cat >>confdefs.h <<\EOF
 
10886
#define NEED_REENTRANT 1
 
10887
EOF
 
10888
 
 
10889
        ac_cv_gethostbyaddr_args=5
 
10890
else
 
10891
  echo "$as_me: failed program was:" >&5
 
10892
cat conftest.$ac_ext >&5
 
10893
 
 
10894
        echo "$as_me:10894: result: no" >&5
 
10895
echo "${ECHO_T}no" >&6
 
10896
        echo "$as_me:10896: checking if gethostbyaddr_r takes 7 arguments" >&5
 
10897
echo $ECHO_N "checking if gethostbyaddr_r takes 7 arguments... $ECHO_C" >&6
 
10898
        cat >conftest.$ac_ext <<_ACEOF
 
10899
#line 10899 "configure"
 
10900
#include "confdefs.h"
 
10901
 
 
10902
#include <sys/types.h>
 
10903
#include <netdb.h>
 
10904
int
 
10905
main ()
 
10906
{
 
10907
 
 
10908
char * address;
 
10909
int length;
 
10910
int type;
 
10911
struct hostent h;
 
10912
char buffer[8192];
 
10913
int h_errnop;
 
10914
struct hostent * hp;
 
10915
 
 
10916
hp = gethostbyaddr_r(address, length, type, &h,
 
10917
                     buffer, 8192, &h_errnop);
 
10918
  ;
 
10919
  return 0;
 
10920
}
 
10921
_ACEOF
 
10922
rm -f conftest.$ac_objext
 
10923
if { (eval echo "$as_me:10923: \"$ac_compile\"") >&5
 
10924
  (eval $ac_compile) 2>&5
 
10925
  ac_status=$?
 
10926
  echo "$as_me:10926: \$? = $ac_status" >&5
 
10927
  (exit $ac_status); } &&
 
10928
         { ac_try='test -s conftest.$ac_objext'
 
10929
  { (eval echo "$as_me:10929: \"$ac_try\"") >&5
 
10930
  (eval $ac_try) 2>&5
 
10931
  ac_status=$?
 
10932
  echo "$as_me:10932: \$? = $ac_status" >&5
 
10933
  (exit $ac_status); }; }; then
 
10934
 
 
10935
          echo "$as_me:10935: result: yes" >&5
 
10936
echo "${ECHO_T}yes" >&6
 
10937
          cat >>confdefs.h <<\EOF
 
10938
#define HAVE_GETHOSTBYADDR_R_7 1
 
10939
EOF
 
10940
 
 
10941
          ac_cv_gethostbyaddr_args=7
 
10942
else
 
10943
  echo "$as_me: failed program was:" >&5
 
10944
cat conftest.$ac_ext >&5
 
10945
 
 
10946
          echo "$as_me:10946: result: no" >&5
 
10947
echo "${ECHO_T}no" >&6
 
10948
          echo "$as_me:10948: checking if gethostbyaddr_r takes 8 arguments" >&5
 
10949
echo $ECHO_N "checking if gethostbyaddr_r takes 8 arguments... $ECHO_C" >&6
 
10950
          cat >conftest.$ac_ext <<_ACEOF
 
10951
#line 10951 "configure"
 
10952
#include "confdefs.h"
 
10953
 
 
10954
#include <sys/types.h>
 
10955
#include <netdb.h>
 
10956
int
 
10957
main ()
 
10958
{
 
10959
 
 
10960
char * address;
 
10961
int length;
 
10962
int type;
 
10963
struct hostent h;
 
10964
char buffer[8192];
 
10965
int h_errnop;
 
10966
struct hostent * hp;
 
10967
int rc;
 
10968
 
 
10969
rc = gethostbyaddr_r(address, length, type, &h,
 
10970
                     buffer, 8192, &hp, &h_errnop);
 
10971
  ;
 
10972
  return 0;
 
10973
}
 
10974
_ACEOF
 
10975
rm -f conftest.$ac_objext
 
10976
if { (eval echo "$as_me:10976: \"$ac_compile\"") >&5
 
10977
  (eval $ac_compile) 2>&5
 
10978
  ac_status=$?
 
10979
  echo "$as_me:10979: \$? = $ac_status" >&5
 
10980
  (exit $ac_status); } &&
 
10981
         { ac_try='test -s conftest.$ac_objext'
 
10982
  { (eval echo "$as_me:10982: \"$ac_try\"") >&5
 
10983
  (eval $ac_try) 2>&5
 
10984
  ac_status=$?
 
10985
  echo "$as_me:10985: \$? = $ac_status" >&5
 
10986
  (exit $ac_status); }; }; then
 
10987
 
 
10988
            echo "$as_me:10988: result: yes" >&5
 
10989
echo "${ECHO_T}yes" >&6
 
10990
            cat >>confdefs.h <<\EOF
 
10991
#define HAVE_GETHOSTBYADDR_R_8 1
 
10992
EOF
 
10993
 
 
10994
            ac_cv_gethostbyaddr_args=8
 
10995
else
 
10996
  echo "$as_me: failed program was:" >&5
 
10997
cat conftest.$ac_ext >&5
 
10998
 
 
10999
            echo "$as_me:10999: result: no" >&5
 
11000
echo "${ECHO_T}no" >&6
 
11001
            have_missing_r_funcs="$have_missing_r_funcs gethostbyaddr_r"
 
11002
fi
 
11003
rm -f conftest.$ac_objext conftest.$ac_ext
 
11004
fi
 
11005
rm -f conftest.$ac_objext conftest.$ac_ext
 
11006
fi
 
11007
rm -f conftest.$ac_objext conftest.$ac_ext
 
11008
fi
 
11009
rm -f conftest.$ac_objext conftest.$ac_ext
 
11010
fi
 
11011
done
 
11012
 
 
11013
for ac_func in inet_ntoa_r
 
11014
do
 
11015
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11016
echo "$as_me:11016: checking for $ac_func" >&5
 
11017
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
11018
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
11019
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11020
else
 
11021
  cat >conftest.$ac_ext <<_ACEOF
 
11022
#line 11022 "configure"
 
11023
#include "confdefs.h"
 
11024
/* System header to define __stub macros and hopefully few prototypes,
 
11025
    which can conflict with char $ac_func (); below.  */
 
11026
#include <assert.h>
 
11027
/* Override any gcc2 internal prototype to avoid an error.  */
 
11028
#ifdef __cplusplus
 
11029
extern "C"
 
11030
#endif
 
11031
/* We use char because int might match the return type of a gcc2
 
11032
   builtin and then its argument prototype would still apply.  */
 
11033
char $ac_func ();
 
11034
char (*f) ();
 
11035
 
 
11036
int
 
11037
main ()
 
11038
{
 
11039
/* The GNU C library defines this for functions which it implements
 
11040
    to always fail with ENOSYS.  Some functions are actually named
 
11041
    something starting with __ and the normal name is an alias.  */
 
11042
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
11043
choke me
 
11044
#else
 
11045
f = $ac_func;
 
11046
#endif
 
11047
 
 
11048
  ;
 
11049
  return 0;
 
11050
}
 
11051
_ACEOF
 
11052
rm -f conftest.$ac_objext conftest$ac_exeext
 
11053
if { (eval echo "$as_me:11053: \"$ac_link\"") >&5
 
11054
  (eval $ac_link) 2>&5
 
11055
  ac_status=$?
 
11056
  echo "$as_me:11056: \$? = $ac_status" >&5
 
11057
  (exit $ac_status); } &&
 
11058
         { ac_try='test -s conftest$ac_exeext'
 
11059
  { (eval echo "$as_me:11059: \"$ac_try\"") >&5
 
11060
  (eval $ac_try) 2>&5
 
11061
  ac_status=$?
 
11062
  echo "$as_me:11062: \$? = $ac_status" >&5
 
11063
  (exit $ac_status); }; }; then
 
11064
  eval "$as_ac_var=yes"
 
11065
else
 
11066
  echo "$as_me: failed program was:" >&5
 
11067
cat conftest.$ac_ext >&5
 
11068
eval "$as_ac_var=no"
 
11069
fi
 
11070
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11071
fi
 
11072
echo "$as_me:11072: result: `eval echo '${'$as_ac_var'}'`" >&5
 
11073
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
11074
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11075
  cat >>confdefs.h <<EOF
 
11076
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11077
EOF
 
11078
 
 
11079
    echo "$as_me:11079: checking whether inet_ntoa_r is declared" >&5
 
11080
echo $ECHO_N "checking whether inet_ntoa_r is declared... $ECHO_C" >&6
 
11081
    cat >conftest.$ac_ext <<_ACEOF
 
11082
#line 11082 "configure"
 
11083
#include "confdefs.h"
 
11084
 
 
11085
#include <arpa/inet.h>
 
11086
_ACEOF
 
11087
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11088
  egrep "inet_ntoa_r" >/dev/null 2>&1; then
 
11089
 
 
11090
      cat >>confdefs.h <<\EOF
 
11091
#define HAVE_INET_NTOA_R_DECL 1
 
11092
EOF
 
11093
 
 
11094
      echo "$as_me:11094: result: yes" >&5
 
11095
echo "${ECHO_T}yes" >&6
 
11096
else
 
11097
 
 
11098
      echo "$as_me:11098: result: no" >&5
 
11099
echo "${ECHO_T}no" >&6
 
11100
      echo "$as_me:11100: checking whether inet_ntoa_r with -D_REENTRANT is declared" >&5
 
11101
echo $ECHO_N "checking whether inet_ntoa_r with -D_REENTRANT is declared... $ECHO_C" >&6
 
11102
      cat >conftest.$ac_ext <<_ACEOF
 
11103
#line 11103 "configure"
 
11104
#include "confdefs.h"
 
11105
 
 
11106
#define _REENTRANT
 
11107
#include <arpa/inet.h>
 
11108
_ACEOF
 
11109
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11110
  egrep "inet_ntoa_r" >/dev/null 2>&1; then
 
11111
 
 
11112
        cat >>confdefs.h <<\EOF
 
11113
#define HAVE_INET_NTOA_R_DECL 1
 
11114
EOF
 
11115
 
 
11116
        cat >>confdefs.h <<\EOF
 
11117
#define NEED_REENTRANT 1
 
11118
EOF
 
11119
 
 
11120
        echo "$as_me:11120: result: yes" >&5
 
11121
echo "${ECHO_T}yes" >&6
 
11122
else
 
11123
  echo "$as_me:11123: result: no" >&5
 
11124
echo "${ECHO_T}no" >&6
 
11125
fi
 
11126
rm -f conftest*
 
11127
 
 
11128
fi
 
11129
rm -f conftest*
 
11130
 
 
11131
fi
 
11132
done
 
11133
 
 
11134
for ac_func in localtime_r
 
11135
do
 
11136
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11137
echo "$as_me:11137: checking for $ac_func" >&5
 
11138
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
11139
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
11140
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11141
else
 
11142
  cat >conftest.$ac_ext <<_ACEOF
 
11143
#line 11143 "configure"
 
11144
#include "confdefs.h"
 
11145
/* System header to define __stub macros and hopefully few prototypes,
 
11146
    which can conflict with char $ac_func (); below.  */
 
11147
#include <assert.h>
 
11148
/* Override any gcc2 internal prototype to avoid an error.  */
 
11149
#ifdef __cplusplus
 
11150
extern "C"
 
11151
#endif
 
11152
/* We use char because int might match the return type of a gcc2
 
11153
   builtin and then its argument prototype would still apply.  */
 
11154
char $ac_func ();
 
11155
char (*f) ();
 
11156
 
 
11157
int
 
11158
main ()
 
11159
{
 
11160
/* The GNU C library defines this for functions which it implements
 
11161
    to always fail with ENOSYS.  Some functions are actually named
 
11162
    something starting with __ and the normal name is an alias.  */
 
11163
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
11164
choke me
 
11165
#else
 
11166
f = $ac_func;
 
11167
#endif
 
11168
 
 
11169
  ;
 
11170
  return 0;
 
11171
}
 
11172
_ACEOF
 
11173
rm -f conftest.$ac_objext conftest$ac_exeext
 
11174
if { (eval echo "$as_me:11174: \"$ac_link\"") >&5
 
11175
  (eval $ac_link) 2>&5
 
11176
  ac_status=$?
 
11177
  echo "$as_me:11177: \$? = $ac_status" >&5
 
11178
  (exit $ac_status); } &&
 
11179
         { ac_try='test -s conftest$ac_exeext'
 
11180
  { (eval echo "$as_me:11180: \"$ac_try\"") >&5
 
11181
  (eval $ac_try) 2>&5
 
11182
  ac_status=$?
 
11183
  echo "$as_me:11183: \$? = $ac_status" >&5
 
11184
  (exit $ac_status); }; }; then
 
11185
  eval "$as_ac_var=yes"
 
11186
else
 
11187
  echo "$as_me: failed program was:" >&5
 
11188
cat conftest.$ac_ext >&5
 
11189
eval "$as_ac_var=no"
 
11190
fi
 
11191
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11192
fi
 
11193
echo "$as_me:11193: result: `eval echo '${'$as_ac_var'}'`" >&5
 
11194
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
11195
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11196
  cat >>confdefs.h <<EOF
 
11197
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11198
EOF
 
11199
 
 
11200
    echo "$as_me:11200: checking whether localtime_r is declared" >&5
 
11201
echo $ECHO_N "checking whether localtime_r is declared... $ECHO_C" >&6
 
11202
    cat >conftest.$ac_ext <<_ACEOF
 
11203
#line 11203 "configure"
 
11204
#include "confdefs.h"
 
11205
 
 
11206
#include <time.h>
 
11207
_ACEOF
 
11208
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11209
  egrep "localtime_r" >/dev/null 2>&1; then
 
11210
 
 
11211
      echo "$as_me:11211: result: yes" >&5
 
11212
echo "${ECHO_T}yes" >&6
 
11213
else
 
11214
 
 
11215
      echo "$as_me:11215: result: no" >&5
 
11216
echo "${ECHO_T}no" >&6
 
11217
      echo "$as_me:11217: checking whether localtime_r with -D_REENTRANT is declared" >&5
 
11218
echo $ECHO_N "checking whether localtime_r with -D_REENTRANT is declared... $ECHO_C" >&6
 
11219
      cat >conftest.$ac_ext <<_ACEOF
 
11220
#line 11220 "configure"
 
11221
#include "confdefs.h"
 
11222
 
 
11223
#define _REENTRANT
 
11224
#include <time.h>
 
11225
_ACEOF
 
11226
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11227
  egrep "localtime_r" >/dev/null 2>&1; then
 
11228
 
 
11229
        cat >>confdefs.h <<\EOF
 
11230
#define NEED_REENTRANT 1
 
11231
EOF
 
11232
 
 
11233
        echo "$as_me:11233: result: yes" >&5
 
11234
echo "${ECHO_T}yes" >&6
 
11235
else
 
11236
  echo "$as_me:11236: result: no" >&5
 
11237
echo "${ECHO_T}no" >&6
 
11238
fi
 
11239
rm -f conftest*
 
11240
 
 
11241
fi
 
11242
rm -f conftest*
 
11243
 
 
11244
fi
 
11245
done
 
11246
 
 
11247
for ac_func in gmtime_r
 
11248
do
 
11249
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11250
echo "$as_me:11250: checking for $ac_func" >&5
 
11251
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
11252
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
11253
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11254
else
 
11255
  cat >conftest.$ac_ext <<_ACEOF
 
11256
#line 11256 "configure"
 
11257
#include "confdefs.h"
 
11258
/* System header to define __stub macros and hopefully few prototypes,
 
11259
    which can conflict with char $ac_func (); below.  */
 
11260
#include <assert.h>
 
11261
/* Override any gcc2 internal prototype to avoid an error.  */
 
11262
#ifdef __cplusplus
 
11263
extern "C"
 
11264
#endif
 
11265
/* We use char because int might match the return type of a gcc2
 
11266
   builtin and then its argument prototype would still apply.  */
 
11267
char $ac_func ();
 
11268
char (*f) ();
 
11269
 
 
11270
int
 
11271
main ()
 
11272
{
 
11273
/* The GNU C library defines this for functions which it implements
 
11274
    to always fail with ENOSYS.  Some functions are actually named
 
11275
    something starting with __ and the normal name is an alias.  */
 
11276
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
11277
choke me
 
11278
#else
 
11279
f = $ac_func;
 
11280
#endif
 
11281
 
 
11282
  ;
 
11283
  return 0;
 
11284
}
 
11285
_ACEOF
 
11286
rm -f conftest.$ac_objext conftest$ac_exeext
 
11287
if { (eval echo "$as_me:11287: \"$ac_link\"") >&5
 
11288
  (eval $ac_link) 2>&5
 
11289
  ac_status=$?
 
11290
  echo "$as_me:11290: \$? = $ac_status" >&5
 
11291
  (exit $ac_status); } &&
 
11292
         { ac_try='test -s conftest$ac_exeext'
 
11293
  { (eval echo "$as_me:11293: \"$ac_try\"") >&5
 
11294
  (eval $ac_try) 2>&5
 
11295
  ac_status=$?
 
11296
  echo "$as_me:11296: \$? = $ac_status" >&5
 
11297
  (exit $ac_status); }; }; then
 
11298
  eval "$as_ac_var=yes"
 
11299
else
 
11300
  echo "$as_me: failed program was:" >&5
 
11301
cat conftest.$ac_ext >&5
 
11302
eval "$as_ac_var=no"
 
11303
fi
 
11304
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11305
fi
 
11306
echo "$as_me:11306: result: `eval echo '${'$as_ac_var'}'`" >&5
 
11307
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
11308
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
11309
  cat >>confdefs.h <<EOF
 
11310
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11311
EOF
 
11312
 
 
11313
fi
 
11314
done
 
11315
 
 
11316
fi
 
11317
 
 
11318
echo "$as_me:11318: checking for ANSI C header files" >&5
 
11319
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
11320
if test "${ac_cv_header_stdc+set}" = set; then
 
11321
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11322
else
 
11323
  cat >conftest.$ac_ext <<_ACEOF
 
11324
#line 11324 "configure"
 
11325
#include "confdefs.h"
 
11326
#include <stdlib.h>
 
11327
#include <stdarg.h>
 
11328
#include <string.h>
 
11329
#include <float.h>
 
11330
 
 
11331
_ACEOF
 
11332
if { (eval echo "$as_me:11332: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11333
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11334
  ac_status=$?
 
11335
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
11336
  rm -f conftest.er1
 
11337
  cat conftest.err >&5
 
11338
  echo "$as_me:11338: \$? = $ac_status" >&5
 
11339
  (exit $ac_status); } >/dev/null; then
 
11340
  if test -s conftest.err; then
 
11341
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11342
  else
 
11343
    ac_cpp_err=
 
11344
  fi
 
11345
else
 
11346
  ac_cpp_err=yes
 
11347
fi
 
11348
if test -z "$ac_cpp_err"; then
 
11349
  ac_cv_header_stdc=yes
 
11350
else
 
11351
  echo "$as_me: failed program was:" >&5
 
11352
  cat conftest.$ac_ext >&5
 
11353
  ac_cv_header_stdc=no
 
11354
fi
 
11355
rm -f conftest.err conftest.$ac_ext
 
11356
 
 
11357
if test $ac_cv_header_stdc = yes; then
 
11358
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
11359
  cat >conftest.$ac_ext <<_ACEOF
 
11360
#line 11360 "configure"
 
11361
#include "confdefs.h"
 
11362
#include <string.h>
 
11363
 
 
11364
_ACEOF
 
11365
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11366
  egrep "memchr" >/dev/null 2>&1; then
 
11367
  :
 
11368
else
 
11369
  ac_cv_header_stdc=no
 
11370
fi
 
11371
rm -f conftest*
 
11372
 
 
11373
fi
 
11374
 
 
11375
if test $ac_cv_header_stdc = yes; then
 
11376
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
11377
  cat >conftest.$ac_ext <<_ACEOF
 
11378
#line 11378 "configure"
 
11379
#include "confdefs.h"
 
11380
#include <stdlib.h>
 
11381
 
 
11382
_ACEOF
 
11383
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11384
  egrep "free" >/dev/null 2>&1; then
 
11385
  :
 
11386
else
 
11387
  ac_cv_header_stdc=no
 
11388
fi
 
11389
rm -f conftest*
 
11390
 
 
11391
fi
 
11392
 
 
11393
if test $ac_cv_header_stdc = yes; then
 
11394
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
11395
  if test "$cross_compiling" = yes; then
 
11396
  :
 
11397
else
 
11398
  cat >conftest.$ac_ext <<_ACEOF
 
11399
#line 11399 "configure"
 
11400
#include "confdefs.h"
 
11401
#include <ctype.h>
 
11402
#if ((' ' & 0x0FF) == 0x020)
 
11403
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
11404
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
11405
#else
 
11406
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
 
11407
                     || ('j' <= (c) && (c) <= 'r') \
 
11408
                     || ('s' <= (c) && (c) <= 'z'))
 
11409
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
11410
#endif
 
11411
 
 
11412
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
11413
int
 
11414
main ()
 
11415
{
 
11416
  int i;
 
11417
  for (i = 0; i < 256; i++)
 
11418
    if (XOR (islower (i), ISLOWER (i))
 
11419
        || toupper (i) != TOUPPER (i))
 
11420
      exit(2);
 
11421
  exit (0);
 
11422
}
 
11423
_ACEOF
 
11424
rm -f conftest$ac_exeext
 
11425
if { (eval echo "$as_me:11425: \"$ac_link\"") >&5
 
11426
  (eval $ac_link) 2>&5
 
11427
  ac_status=$?
 
11428
  echo "$as_me:11428: \$? = $ac_status" >&5
 
11429
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11430
  { (eval echo "$as_me:11430: \"$ac_try\"") >&5
 
11431
  (eval $ac_try) 2>&5
 
11432
  ac_status=$?
 
11433
  echo "$as_me:11433: \$? = $ac_status" >&5
 
11434
  (exit $ac_status); }; }; then
 
11435
  :
 
11436
else
 
11437
  echo "$as_me: program exited with status $ac_status" >&5
 
11438
echo "$as_me: failed program was:" >&5
 
11439
cat conftest.$ac_ext >&5
 
11440
ac_cv_header_stdc=no
 
11441
fi
 
11442
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
11443
fi
 
11444
fi
 
11445
fi
 
11446
echo "$as_me:11446: result: $ac_cv_header_stdc" >&5
 
11447
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
11448
if test $ac_cv_header_stdc = yes; then
 
11449
 
 
11450
cat >>confdefs.h <<\EOF
 
11451
#define STDC_HEADERS 1
 
11452
EOF
 
11453
 
 
11454
fi
 
11455
 
 
11456
for ac_header in \
 
11457
        unistd.h \
 
11458
        malloc.h \
 
11459
        stdlib.h \
 
11460
        arpa/inet.h \
 
11461
        net/if.h \
 
11462
        netinet/in.h \
 
11463
        netinet/if_ether.h \
 
11464
        netdb.h \
 
11465
        sys/select.h \
 
11466
        sys/socket.h \
 
11467
        sys/sockio.h \
 
11468
        sys/stat.h \
 
11469
        sys/types.h \
 
11470
        sys/time.h \
 
11471
        sys/param.h \
 
11472
        termios.h \
 
11473
        termio.h \
 
11474
        sgtty.h \
 
11475
        fcntl.h \
 
11476
        dlfcn.h \
 
11477
        alloca.h \
 
11478
        winsock.h \
 
11479
        time.h \
 
11480
        io.h \
 
11481
        pwd.h \
 
11482
        utime.h \
 
11483
        sys/utime.h
 
11484
 
 
11485
do
 
11486
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11487
echo "$as_me:11487: checking for $ac_header" >&5
 
11488
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11489
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11490
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11491
else
 
11492
  cat >conftest.$ac_ext <<_ACEOF
 
11493
#line 11493 "configure"
 
11494
#include "confdefs.h"
 
11495
#include <$ac_header>
 
11496
_ACEOF
 
11497
if { (eval echo "$as_me:11497: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11498
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11499
  ac_status=$?
 
11500
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
11501
  rm -f conftest.er1
 
11502
  cat conftest.err >&5
 
11503
  echo "$as_me:11503: \$? = $ac_status" >&5
 
11504
  (exit $ac_status); } >/dev/null; then
 
11505
  if test -s conftest.err; then
 
11506
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11507
  else
 
11508
    ac_cpp_err=
 
11509
  fi
 
11510
else
 
11511
  ac_cpp_err=yes
 
11512
fi
 
11513
if test -z "$ac_cpp_err"; then
 
11514
  eval "$as_ac_Header=yes"
 
11515
else
 
11516
  echo "$as_me: failed program was:" >&5
 
11517
  cat conftest.$ac_ext >&5
 
11518
  eval "$as_ac_Header=no"
 
11519
fi
 
11520
rm -f conftest.err conftest.$ac_ext
 
11521
fi
 
11522
echo "$as_me:11522: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11523
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11524
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11525
  cat >>confdefs.h <<EOF
 
11526
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11527
EOF
 
11528
 
 
11529
fi
 
11530
done
 
11531
 
 
11532
echo "$as_me:11532: checking for $CC option to accept ANSI C" >&5
 
11533
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
11534
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
11535
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11536
else
 
11537
  ac_cv_prog_cc_stdc=no
 
11538
ac_save_CC=$CC
 
11539
cat >conftest.$ac_ext <<_ACEOF
 
11540
#line 11540 "configure"
 
11541
#include "confdefs.h"
 
11542
#include <stdarg.h>
 
11543
#include <stdio.h>
 
11544
#include <sys/types.h>
 
11545
#include <sys/stat.h>
 
11546
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
11547
struct buf { int x; };
 
11548
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
11549
static char *e (p, i)
 
11550
     char **p;
 
11551
     int i;
 
11552
{
 
11553
  return p[i];
 
11554
}
 
11555
static char *f (char * (*g) (char **, int), char **p, ...)
 
11556
{
 
11557
  char *s;
 
11558
  va_list v;
 
11559
  va_start (v,p);
 
11560
  s = g (p, va_arg (v,int));
 
11561
  va_end (v);
 
11562
  return s;
 
11563
}
 
11564
int test (int i, double x);
 
11565
struct s1 {int (*f) (int a);};
 
11566
struct s2 {int (*f) (double a);};
 
11567
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
11568
int argc;
 
11569
char **argv;
 
11570
int
 
11571
main ()
 
11572
{
 
11573
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
11574
  ;
 
11575
  return 0;
 
11576
}
 
11577
_ACEOF
 
11578
# Don't try gcc -ansi; that turns off useful extensions and
 
11579
# breaks some systems' header files.
 
11580
# AIX                   -qlanglvl=ansi
 
11581
# Ultrix and OSF/1      -std1
 
11582
# HP-UX 10.20 and later -Ae
 
11583
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
11584
# SVR4                  -Xc -D__EXTENSIONS__
 
11585
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
11586
do
 
11587
  CC="$ac_save_CC $ac_arg"
 
11588
  rm -f conftest.$ac_objext
 
11589
if { (eval echo "$as_me:11589: \"$ac_compile\"") >&5
 
11590
  (eval $ac_compile) 2>&5
 
11591
  ac_status=$?
 
11592
  echo "$as_me:11592: \$? = $ac_status" >&5
 
11593
  (exit $ac_status); } &&
 
11594
         { ac_try='test -s conftest.$ac_objext'
 
11595
  { (eval echo "$as_me:11595: \"$ac_try\"") >&5
 
11596
  (eval $ac_try) 2>&5
 
11597
  ac_status=$?
 
11598
  echo "$as_me:11598: \$? = $ac_status" >&5
 
11599
  (exit $ac_status); }; }; then
 
11600
  ac_cv_prog_cc_stdc=$ac_arg
 
11601
break
 
11602
else
 
11603
  echo "$as_me: failed program was:" >&5
 
11604
cat conftest.$ac_ext >&5
 
11605
fi
 
11606
rm -f conftest.$ac_objext
 
11607
done
 
11608
rm -f conftest.$ac_ext conftest.$ac_objext
 
11609
CC=$ac_save_CC
 
11610
 
 
11611
fi
 
11612
 
 
11613
case "x$ac_cv_prog_cc_stdc" in
 
11614
  x|xno)
 
11615
    echo "$as_me:11615: result: none needed" >&5
 
11616
echo "${ECHO_T}none needed" >&6 ;;
 
11617
  *)
 
11618
    echo "$as_me:11618: result: $ac_cv_prog_cc_stdc" >&5
 
11619
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
11620
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
11621
esac
 
11622
 
 
11623
echo "$as_me:11623: checking for an ANSI C-conforming const" >&5
 
11624
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
11625
if test "${ac_cv_c_const+set}" = set; then
 
11626
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11627
else
 
11628
  cat >conftest.$ac_ext <<_ACEOF
 
11629
#line 11629 "configure"
 
11630
#include "confdefs.h"
 
11631
 
 
11632
int
 
11633
main ()
 
11634
{
 
11635
/* FIXME: Include the comments suggested by Paul. */
 
11636
#ifndef __cplusplus
 
11637
  /* Ultrix mips cc rejects this.  */
 
11638
  typedef int charset[2];
 
11639
  const charset x;
 
11640
  /* SunOS 4.1.1 cc rejects this.  */
 
11641
  char const *const *ccp;
 
11642
  char **p;
 
11643
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
11644
  struct point {int x, y;};
 
11645
  static struct point const zero = {0,0};
 
11646
  /* AIX XL C 1.02.0.0 rejects this.
 
11647
     It does not let you subtract one const X* pointer from another in
 
11648
     an arm of an if-expression whose if-part is not a constant
 
11649
     expression */
 
11650
  const char *g = "string";
 
11651
  ccp = &g + (g ? g-g : 0);
 
11652
  /* HPUX 7.0 cc rejects these. */
 
11653
  ++ccp;
 
11654
  p = (char**) ccp;
 
11655
  ccp = (char const *const *) p;
 
11656
  { /* SCO 3.2v4 cc rejects this.  */
 
11657
    char *t;
 
11658
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
11659
 
 
11660
    *t++ = 0;
 
11661
  }
 
11662
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
11663
    int x[] = {25, 17};
 
11664
    const int *foo = &x[0];
 
11665
    ++foo;
 
11666
  }
 
11667
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
11668
    typedef const int *iptr;
 
11669
    iptr p = 0;
 
11670
    ++p;
 
11671
  }
 
11672
  { /* AIX XL C 1.02.0.0 rejects this saying
 
11673
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
11674
    struct s { int j; const int *ap[3]; };
 
11675
    struct s *b; b->j = 5;
 
11676
  }
 
11677
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
11678
    const int foo = 10;
 
11679
  }
 
11680
#endif
 
11681
 
 
11682
  ;
 
11683
  return 0;
 
11684
}
 
11685
_ACEOF
 
11686
rm -f conftest.$ac_objext
 
11687
if { (eval echo "$as_me:11687: \"$ac_compile\"") >&5
 
11688
  (eval $ac_compile) 2>&5
 
11689
  ac_status=$?
 
11690
  echo "$as_me:11690: \$? = $ac_status" >&5
 
11691
  (exit $ac_status); } &&
 
11692
         { ac_try='test -s conftest.$ac_objext'
 
11693
  { (eval echo "$as_me:11693: \"$ac_try\"") >&5
 
11694
  (eval $ac_try) 2>&5
 
11695
  ac_status=$?
 
11696
  echo "$as_me:11696: \$? = $ac_status" >&5
 
11697
  (exit $ac_status); }; }; then
 
11698
  ac_cv_c_const=yes
 
11699
else
 
11700
  echo "$as_me: failed program was:" >&5
 
11701
cat conftest.$ac_ext >&5
 
11702
ac_cv_c_const=no
 
11703
fi
 
11704
rm -f conftest.$ac_objext conftest.$ac_ext
 
11705
fi
 
11706
echo "$as_me:11706: result: $ac_cv_c_const" >&5
 
11707
echo "${ECHO_T}$ac_cv_c_const" >&6
 
11708
if test $ac_cv_c_const = no; then
 
11709
 
 
11710
cat >>confdefs.h <<\EOF
 
11711
#define const
 
11712
EOF
 
11713
 
 
11714
fi
 
11715
 
 
11716
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
11717
 
 
11718
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
11719
                  inttypes.h stdint.h unistd.h
 
11720
do
 
11721
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11722
echo "$as_me:11722: checking for $ac_header" >&5
 
11723
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11724
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11725
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11726
else
 
11727
  cat >conftest.$ac_ext <<_ACEOF
 
11728
#line 11728 "configure"
 
11729
#include "confdefs.h"
 
11730
$ac_includes_default
 
11731
#include <$ac_header>
 
11732
_ACEOF
 
11733
rm -f conftest.$ac_objext
 
11734
if { (eval echo "$as_me:11734: \"$ac_compile\"") >&5
 
11735
  (eval $ac_compile) 2>&5
 
11736
  ac_status=$?
 
11737
  echo "$as_me:11737: \$? = $ac_status" >&5
 
11738
  (exit $ac_status); } &&
 
11739
         { ac_try='test -s conftest.$ac_objext'
 
11740
  { (eval echo "$as_me:11740: \"$ac_try\"") >&5
 
11741
  (eval $ac_try) 2>&5
 
11742
  ac_status=$?
 
11743
  echo "$as_me:11743: \$? = $ac_status" >&5
 
11744
  (exit $ac_status); }; }; then
 
11745
  eval "$as_ac_Header=yes"
 
11746
else
 
11747
  echo "$as_me: failed program was:" >&5
 
11748
cat conftest.$ac_ext >&5
 
11749
eval "$as_ac_Header=no"
 
11750
fi
 
11751
rm -f conftest.$ac_objext conftest.$ac_ext
 
11752
fi
 
11753
echo "$as_me:11753: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11754
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11755
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11756
  cat >>confdefs.h <<EOF
 
11757
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11758
EOF
 
11759
 
 
11760
fi
 
11761
done
 
11762
 
 
11763
echo "$as_me:11763: checking for size_t" >&5
 
11764
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
11765
if test "${ac_cv_type_size_t+set}" = set; then
 
11766
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11767
else
 
11768
  cat >conftest.$ac_ext <<_ACEOF
 
11769
#line 11769 "configure"
 
11770
#include "confdefs.h"
 
11771
$ac_includes_default
 
11772
int
 
11773
main ()
 
11774
{
 
11775
if ((size_t *) 0)
 
11776
  return 0;
 
11777
if (sizeof (size_t))
 
11778
  return 0;
 
11779
  ;
 
11780
  return 0;
 
11781
}
 
11782
_ACEOF
 
11783
rm -f conftest.$ac_objext
 
11784
if { (eval echo "$as_me:11784: \"$ac_compile\"") >&5
 
11785
  (eval $ac_compile) 2>&5
 
11786
  ac_status=$?
 
11787
  echo "$as_me:11787: \$? = $ac_status" >&5
 
11788
  (exit $ac_status); } &&
 
11789
         { ac_try='test -s conftest.$ac_objext'
 
11790
  { (eval echo "$as_me:11790: \"$ac_try\"") >&5
 
11791
  (eval $ac_try) 2>&5
 
11792
  ac_status=$?
 
11793
  echo "$as_me:11793: \$? = $ac_status" >&5
 
11794
  (exit $ac_status); }; }; then
 
11795
  ac_cv_type_size_t=yes
 
11796
else
 
11797
  echo "$as_me: failed program was:" >&5
 
11798
cat conftest.$ac_ext >&5
 
11799
ac_cv_type_size_t=no
 
11800
fi
 
11801
rm -f conftest.$ac_objext conftest.$ac_ext
 
11802
fi
 
11803
echo "$as_me:11803: result: $ac_cv_type_size_t" >&5
 
11804
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
11805
if test $ac_cv_type_size_t = yes; then
 
11806
  :
 
11807
else
 
11808
 
 
11809
cat >>confdefs.h <<EOF
 
11810
#define size_t unsigned
 
11811
EOF
 
11812
 
 
11813
fi
 
11814
 
 
11815
echo "$as_me:11815: checking whether time.h and sys/time.h may both be included" >&5
 
11816
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
 
11817
if test "${ac_cv_header_time+set}" = set; then
 
11818
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11819
else
 
11820
  cat >conftest.$ac_ext <<_ACEOF
 
11821
#line 11821 "configure"
 
11822
#include "confdefs.h"
 
11823
#include <sys/types.h>
 
11824
#include <sys/time.h>
 
11825
#include <time.h>
 
11826
 
 
11827
int
 
11828
main ()
 
11829
{
 
11830
if ((struct tm *) 0)
 
11831
return 0;
 
11832
  ;
 
11833
  return 0;
 
11834
}
 
11835
_ACEOF
 
11836
rm -f conftest.$ac_objext
 
11837
if { (eval echo "$as_me:11837: \"$ac_compile\"") >&5
 
11838
  (eval $ac_compile) 2>&5
 
11839
  ac_status=$?
 
11840
  echo "$as_me:11840: \$? = $ac_status" >&5
 
11841
  (exit $ac_status); } &&
 
11842
         { ac_try='test -s conftest.$ac_objext'
 
11843
  { (eval echo "$as_me:11843: \"$ac_try\"") >&5
 
11844
  (eval $ac_try) 2>&5
 
11845
  ac_status=$?
 
11846
  echo "$as_me:11846: \$? = $ac_status" >&5
 
11847
  (exit $ac_status); }; }; then
 
11848
  ac_cv_header_time=yes
 
11849
else
 
11850
  echo "$as_me: failed program was:" >&5
 
11851
cat conftest.$ac_ext >&5
 
11852
ac_cv_header_time=no
 
11853
fi
 
11854
rm -f conftest.$ac_objext conftest.$ac_ext
 
11855
fi
 
11856
echo "$as_me:11856: result: $ac_cv_header_time" >&5
 
11857
echo "${ECHO_T}$ac_cv_header_time" >&6
 
11858
if test $ac_cv_header_time = yes; then
 
11859
 
 
11860
cat >>confdefs.h <<\EOF
 
11861
#define TIME_WITH_SYS_TIME 1
 
11862
EOF
 
11863
 
 
11864
fi
 
11865
 
 
11866
# mprintf() checks:
 
11867
 
 
11868
# check for 'long double'
 
11869
# AC_CHECK_SIZEOF(long double, 8)
 
11870
# check for 'long long'
 
11871
# AC_CHECK_SIZEOF(long long, 4)
 
11872
 
 
11873
# check for ssize_t
 
11874
echo "$as_me:11874: checking for ssize_t" >&5
 
11875
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
 
11876
if test "${ac_cv_type_ssize_t+set}" = set; then
 
11877
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11878
else
 
11879
  cat >conftest.$ac_ext <<_ACEOF
 
11880
#line 11880 "configure"
 
11881
#include "confdefs.h"
 
11882
$ac_includes_default
 
11883
int
 
11884
main ()
 
11885
{
 
11886
if ((ssize_t *) 0)
 
11887
  return 0;
 
11888
if (sizeof (ssize_t))
 
11889
  return 0;
 
11890
  ;
 
11891
  return 0;
 
11892
}
 
11893
_ACEOF
 
11894
rm -f conftest.$ac_objext
 
11895
if { (eval echo "$as_me:11895: \"$ac_compile\"") >&5
 
11896
  (eval $ac_compile) 2>&5
 
11897
  ac_status=$?
 
11898
  echo "$as_me:11898: \$? = $ac_status" >&5
 
11899
  (exit $ac_status); } &&
 
11900
         { ac_try='test -s conftest.$ac_objext'
 
11901
  { (eval echo "$as_me:11901: \"$ac_try\"") >&5
 
11902
  (eval $ac_try) 2>&5
 
11903
  ac_status=$?
 
11904
  echo "$as_me:11904: \$? = $ac_status" >&5
 
11905
  (exit $ac_status); }; }; then
 
11906
  ac_cv_type_ssize_t=yes
 
11907
else
 
11908
  echo "$as_me: failed program was:" >&5
 
11909
cat conftest.$ac_ext >&5
 
11910
ac_cv_type_ssize_t=no
 
11911
fi
 
11912
rm -f conftest.$ac_objext conftest.$ac_ext
 
11913
fi
 
11914
echo "$as_me:11914: result: $ac_cv_type_ssize_t" >&5
 
11915
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
 
11916
if test $ac_cv_type_ssize_t = yes; then
 
11917
  :
 
11918
else
 
11919
 
 
11920
cat >>confdefs.h <<EOF
 
11921
#define ssize_t int
 
11922
EOF
 
11923
 
 
11924
fi
 
11925
 
 
11926
   echo "$as_me:11926: checking for socklen_t" >&5
 
11927
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
 
11928
if test "${ac_cv_type_socklen_t+set}" = set; then
 
11929
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11930
else
 
11931
  cat >conftest.$ac_ext <<_ACEOF
 
11932
#line 11932 "configure"
 
11933
#include "confdefs.h"
 
11934
#include <sys/types.h>
 
11935
#include <sys/socket.h>
 
11936
 
 
11937
int
 
11938
main ()
 
11939
{
 
11940
if ((socklen_t *) 0)
 
11941
  return 0;
 
11942
if (sizeof (socklen_t))
 
11943
  return 0;
 
11944
  ;
 
11945
  return 0;
 
11946
}
 
11947
_ACEOF
 
11948
rm -f conftest.$ac_objext
 
11949
if { (eval echo "$as_me:11949: \"$ac_compile\"") >&5
 
11950
  (eval $ac_compile) 2>&5
 
11951
  ac_status=$?
 
11952
  echo "$as_me:11952: \$? = $ac_status" >&5
 
11953
  (exit $ac_status); } &&
 
11954
         { ac_try='test -s conftest.$ac_objext'
 
11955
  { (eval echo "$as_me:11955: \"$ac_try\"") >&5
 
11956
  (eval $ac_try) 2>&5
 
11957
  ac_status=$?
 
11958
  echo "$as_me:11958: \$? = $ac_status" >&5
 
11959
  (exit $ac_status); }; }; then
 
11960
  ac_cv_type_socklen_t=yes
 
11961
else
 
11962
  echo "$as_me: failed program was:" >&5
 
11963
cat conftest.$ac_ext >&5
 
11964
ac_cv_type_socklen_t=no
 
11965
fi
 
11966
rm -f conftest.$ac_objext conftest.$ac_ext
 
11967
fi
 
11968
echo "$as_me:11968: result: $ac_cv_type_socklen_t" >&5
 
11969
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
 
11970
if test $ac_cv_type_socklen_t = yes; then
 
11971
  :
 
11972
else
 
11973
 
 
11974
      echo "$as_me:11974: checking for socklen_t equivalent" >&5
 
11975
echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
 
11976
      if test "${curl_cv_socklen_t_equiv+set}" = set; then
 
11977
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11978
else
 
11979
 
 
11980
         # Systems have either "struct sockaddr *" or
 
11981
         # "void *" as the second argument to getpeername
 
11982
         curl_cv_socklen_t_equiv=
 
11983
         for arg2 in "struct sockaddr" void; do
 
11984
            for t in int size_t unsigned long "unsigned long"; do
 
11985
               cat >conftest.$ac_ext <<_ACEOF
 
11986
#line 11986 "configure"
 
11987
#include "confdefs.h"
 
11988
 
 
11989
                  #include <sys/types.h>
 
11990
                  #include <sys/socket.h>
 
11991
 
 
11992
                  int getpeername (int, $arg2 *, $t *);
 
11993
 
 
11994
int
 
11995
main ()
 
11996
{
 
11997
 
 
11998
                  $t len;
 
11999
                  getpeername(0,0,&len);
 
12000
 
 
12001
  ;
 
12002
  return 0;
 
12003
}
 
12004
_ACEOF
 
12005
rm -f conftest.$ac_objext
 
12006
if { (eval echo "$as_me:12006: \"$ac_compile\"") >&5
 
12007
  (eval $ac_compile) 2>&5
 
12008
  ac_status=$?
 
12009
  echo "$as_me:12009: \$? = $ac_status" >&5
 
12010
  (exit $ac_status); } &&
 
12011
         { ac_try='test -s conftest.$ac_objext'
 
12012
  { (eval echo "$as_me:12012: \"$ac_try\"") >&5
 
12013
  (eval $ac_try) 2>&5
 
12014
  ac_status=$?
 
12015
  echo "$as_me:12015: \$? = $ac_status" >&5
 
12016
  (exit $ac_status); }; }; then
 
12017
 
 
12018
                  curl_cv_socklen_t_equiv="$t"
 
12019
                  break
 
12020
 
 
12021
else
 
12022
  echo "$as_me: failed program was:" >&5
 
12023
cat conftest.$ac_ext >&5
 
12024
fi
 
12025
rm -f conftest.$ac_objext conftest.$ac_ext
 
12026
            done
 
12027
         done
 
12028
 
 
12029
         if test "x$curl_cv_socklen_t_equiv" = x; then
 
12030
            { { echo "$as_me:12030: error: Cannot find a type to use in place of socklen_t" >&5
 
12031
echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
 
12032
   { (exit 1); exit 1; }; }
 
12033
         fi
 
12034
 
 
12035
fi
 
12036
 
 
12037
      echo "$as_me:12037: result: $curl_cv_socklen_t_equiv" >&5
 
12038
echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
 
12039
 
 
12040
cat >>confdefs.h <<EOF
 
12041
#define socklen_t $curl_cv_socklen_t_equiv
 
12042
EOF
 
12043
 
 
12044
fi
 
12045
 
 
12046
   echo "$as_me:12046: checking for in_addr_t" >&5
 
12047
echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
 
12048
if test "${ac_cv_type_in_addr_t+set}" = set; then
 
12049
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12050
else
 
12051
  cat >conftest.$ac_ext <<_ACEOF
 
12052
#line 12052 "configure"
 
12053
#include "confdefs.h"
 
12054
#include <sys/types.h>
 
12055
#include <sys/socket.h>
 
12056
#include <arpa/inet.h>
 
12057
 
 
12058
int
 
12059
main ()
 
12060
{
 
12061
if ((in_addr_t *) 0)
 
12062
  return 0;
 
12063
if (sizeof (in_addr_t))
 
12064
  return 0;
 
12065
  ;
 
12066
  return 0;
 
12067
}
 
12068
_ACEOF
 
12069
rm -f conftest.$ac_objext
 
12070
if { (eval echo "$as_me:12070: \"$ac_compile\"") >&5
 
12071
  (eval $ac_compile) 2>&5
 
12072
  ac_status=$?
 
12073
  echo "$as_me:12073: \$? = $ac_status" >&5
 
12074
  (exit $ac_status); } &&
 
12075
         { ac_try='test -s conftest.$ac_objext'
 
12076
  { (eval echo "$as_me:12076: \"$ac_try\"") >&5
 
12077
  (eval $ac_try) 2>&5
 
12078
  ac_status=$?
 
12079
  echo "$as_me:12079: \$? = $ac_status" >&5
 
12080
  (exit $ac_status); }; }; then
 
12081
  ac_cv_type_in_addr_t=yes
 
12082
else
 
12083
  echo "$as_me: failed program was:" >&5
 
12084
cat conftest.$ac_ext >&5
 
12085
ac_cv_type_in_addr_t=no
 
12086
fi
 
12087
rm -f conftest.$ac_objext conftest.$ac_ext
 
12088
fi
 
12089
echo "$as_me:12089: result: $ac_cv_type_in_addr_t" >&5
 
12090
echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6
 
12091
if test $ac_cv_type_in_addr_t = yes; then
 
12092
  :
 
12093
else
 
12094
 
 
12095
      echo "$as_me:12095: checking for in_addr_t equivalent" >&5
 
12096
echo $ECHO_N "checking for in_addr_t equivalent... $ECHO_C" >&6
 
12097
      if test "${curl_cv_in_addr_t_equiv+set}" = set; then
 
12098
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12099
else
 
12100
 
 
12101
         # Systems have either "struct sockaddr *" or
 
12102
         # "void *" as the second argument to getpeername
 
12103
         curl_cv_in_addr_t_equiv=
 
12104
         for t in int size_t unsigned long "unsigned long"; do
 
12105
            cat >conftest.$ac_ext <<_ACEOF
 
12106
#line 12106 "configure"
 
12107
#include "confdefs.h"
 
12108
 
 
12109
               #include <sys/types.h>
 
12110
               #include <sys/socket.h>
 
12111
               #include <arpa/inet.h>
 
12112
 
 
12113
int
 
12114
main ()
 
12115
{
 
12116
 
 
12117
               $t data = inet_addr ("1.2.3.4");
 
12118
 
 
12119
  ;
 
12120
  return 0;
 
12121
}
 
12122
_ACEOF
 
12123
rm -f conftest.$ac_objext
 
12124
if { (eval echo "$as_me:12124: \"$ac_compile\"") >&5
 
12125
  (eval $ac_compile) 2>&5
 
12126
  ac_status=$?
 
12127
  echo "$as_me:12127: \$? = $ac_status" >&5
 
12128
  (exit $ac_status); } &&
 
12129
         { ac_try='test -s conftest.$ac_objext'
 
12130
  { (eval echo "$as_me:12130: \"$ac_try\"") >&5
 
12131
  (eval $ac_try) 2>&5
 
12132
  ac_status=$?
 
12133
  echo "$as_me:12133: \$? = $ac_status" >&5
 
12134
  (exit $ac_status); }; }; then
 
12135
 
 
12136
               curl_cv_in_addr_t_equiv="$t"
 
12137
               break
 
12138
 
 
12139
else
 
12140
  echo "$as_me: failed program was:" >&5
 
12141
cat conftest.$ac_ext >&5
 
12142
fi
 
12143
rm -f conftest.$ac_objext conftest.$ac_ext
 
12144
         done
 
12145
 
 
12146
         if test "x$curl_cv_in_addr_t_equiv" = x; then
 
12147
            { { echo "$as_me:12147: error: Cannot find a type to use in place of in_addr_t" >&5
 
12148
echo "$as_me: error: Cannot find a type to use in place of in_addr_t" >&2;}
 
12149
   { (exit 1); exit 1; }; }
 
12150
         fi
 
12151
 
 
12152
fi
 
12153
 
 
12154
      echo "$as_me:12154: result: $curl_cv_in_addr_t_equiv" >&5
 
12155
echo "${ECHO_T}$curl_cv_in_addr_t_equiv" >&6
 
12156
 
 
12157
cat >>confdefs.h <<EOF
 
12158
#define in_addr_t $curl_cv_in_addr_t_equiv
 
12159
EOF
 
12160
 
 
12161
fi
 
12162
 
 
12163
echo "$as_me:12163: checking return type of signal handlers" >&5
 
12164
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
 
12165
if test "${ac_cv_type_signal+set}" = set; then
 
12166
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12167
else
 
12168
  cat >conftest.$ac_ext <<_ACEOF
 
12169
#line 12169 "configure"
 
12170
#include "confdefs.h"
 
12171
#include <sys/types.h>
 
12172
#include <signal.h>
 
12173
#ifdef signal
 
12174
# undef signal
 
12175
#endif
 
12176
#ifdef __cplusplus
 
12177
extern "C" void (*signal (int, void (*)(int)))(int);
 
12178
#else
 
12179
void (*signal ()) ();
 
12180
#endif
 
12181
 
 
12182
int
 
12183
main ()
 
12184
{
 
12185
int i;
 
12186
  ;
 
12187
  return 0;
 
12188
}
 
12189
_ACEOF
 
12190
rm -f conftest.$ac_objext
 
12191
if { (eval echo "$as_me:12191: \"$ac_compile\"") >&5
 
12192
  (eval $ac_compile) 2>&5
 
12193
  ac_status=$?
 
12194
  echo "$as_me:12194: \$? = $ac_status" >&5
 
12195
  (exit $ac_status); } &&
 
12196
         { ac_try='test -s conftest.$ac_objext'
 
12197
  { (eval echo "$as_me:12197: \"$ac_try\"") >&5
 
12198
  (eval $ac_try) 2>&5
 
12199
  ac_status=$?
 
12200
  echo "$as_me:12200: \$? = $ac_status" >&5
 
12201
  (exit $ac_status); }; }; then
 
12202
  ac_cv_type_signal=void
 
12203
else
 
12204
  echo "$as_me: failed program was:" >&5
 
12205
cat conftest.$ac_ext >&5
 
12206
ac_cv_type_signal=int
 
12207
fi
 
12208
rm -f conftest.$ac_objext conftest.$ac_ext
 
12209
fi
 
12210
echo "$as_me:12210: result: $ac_cv_type_signal" >&5
 
12211
echo "${ECHO_T}$ac_cv_type_signal" >&6
 
12212
 
 
12213
cat >>confdefs.h <<EOF
 
12214
#define RETSIGTYPE $ac_cv_type_signal
 
12215
EOF
 
12216
 
 
12217
for ac_func in socket \
 
12218
                select \
 
12219
                strdup \
 
12220
                strstr \
 
12221
                strtok_r \
 
12222
                strftime \
 
12223
                uname \
 
12224
                strcasecmp \
 
12225
                stricmp \
 
12226
                strcmpi \
 
12227
                gethostname \
 
12228
                gethostbyaddr \
 
12229
                gettimeofday \
 
12230
                inet_addr \
 
12231
                inet_ntoa \
 
12232
                tcsetattr \
 
12233
                tcgetattr \
 
12234
                perror \
 
12235
                closesocket \
 
12236
                setvbuf \
 
12237
                sigaction \
 
12238
                signal \
 
12239
                getpass_r \
 
12240
                strlcat \
 
12241
                getpwuid \
 
12242
                geteuid \
 
12243
                dlopen \
 
12244
                utime
 
12245
 
 
12246
do
 
12247
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
12248
echo "$as_me:12248: checking for $ac_func" >&5
 
12249
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
12250
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
12251
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12252
else
 
12253
  cat >conftest.$ac_ext <<_ACEOF
 
12254
#line 12254 "configure"
 
12255
#include "confdefs.h"
 
12256
/* System header to define __stub macros and hopefully few prototypes,
 
12257
    which can conflict with char $ac_func (); below.  */
 
12258
#include <assert.h>
 
12259
/* Override any gcc2 internal prototype to avoid an error.  */
 
12260
#ifdef __cplusplus
 
12261
extern "C"
 
12262
#endif
 
12263
/* We use char because int might match the return type of a gcc2
 
12264
   builtin and then its argument prototype would still apply.  */
 
12265
char $ac_func ();
 
12266
char (*f) ();
 
12267
 
 
12268
int
 
12269
main ()
 
12270
{
 
12271
/* The GNU C library defines this for functions which it implements
 
12272
    to always fail with ENOSYS.  Some functions are actually named
 
12273
    something starting with __ and the normal name is an alias.  */
 
12274
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
12275
choke me
 
12276
#else
 
12277
f = $ac_func;
 
12278
#endif
 
12279
 
 
12280
  ;
 
12281
  return 0;
 
12282
}
 
12283
_ACEOF
 
12284
rm -f conftest.$ac_objext conftest$ac_exeext
 
12285
if { (eval echo "$as_me:12285: \"$ac_link\"") >&5
 
12286
  (eval $ac_link) 2>&5
 
12287
  ac_status=$?
 
12288
  echo "$as_me:12288: \$? = $ac_status" >&5
 
12289
  (exit $ac_status); } &&
 
12290
         { ac_try='test -s conftest$ac_exeext'
 
12291
  { (eval echo "$as_me:12291: \"$ac_try\"") >&5
 
12292
  (eval $ac_try) 2>&5
 
12293
  ac_status=$?
 
12294
  echo "$as_me:12294: \$? = $ac_status" >&5
 
12295
  (exit $ac_status); }; }; then
 
12296
  eval "$as_ac_var=yes"
 
12297
else
 
12298
  echo "$as_me: failed program was:" >&5
 
12299
cat conftest.$ac_ext >&5
 
12300
eval "$as_ac_var=no"
 
12301
fi
 
12302
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12303
fi
 
12304
echo "$as_me:12304: result: `eval echo '${'$as_ac_var'}'`" >&5
 
12305
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
12306
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
12307
  cat >>confdefs.h <<EOF
 
12308
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
12309
EOF
 
12310
 
 
12311
fi
 
12312
done
 
12313
 
 
12314
if test "$ac_cv_func_select" != "yes"; then
 
12315
  { { echo "$as_me:12315: error: Can't work without an existing select() function" >&5
 
12316
echo "$as_me: error: Can't work without an existing select() function" >&2;}
 
12317
   { (exit 1); exit 1; }; }
 
12318
fi
 
12319
if test "$ac_cv_func_socket" != "yes"; then
 
12320
  { { echo "$as_me:12320: error: Can't work without an existing socket() function" >&5
 
12321
echo "$as_me: error: Can't work without an existing socket() function" >&2;}
 
12322
   { (exit 1); exit 1; }; }
 
12323
fi
 
12324
 
 
12325
# Extract the first word of "perl", so it can be a program name with args.
 
12326
set dummy perl; ac_word=$2
 
12327
echo "$as_me:12327: checking for $ac_word" >&5
 
12328
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12329
if test "${ac_cv_path_PERL+set}" = set; then
 
12330
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12331
else
 
12332
  case $PERL in
 
12333
  [\\/]* | ?:[\\/]*)
 
12334
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
 
12335
  ;;
 
12336
  *)
 
12337
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
12338
ac_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
 
12339
for ac_dir in $ac_dummy; do
 
12340
  IFS=$ac_save_IFS
 
12341
  test -z "$ac_dir" && ac_dir=.
 
12342
  if $as_executable_p "$ac_dir/$ac_word"; then
 
12343
   ac_cv_path_PERL="$ac_dir/$ac_word"
 
12344
   echo "$as_me:12344: found $ac_dir/$ac_word" >&5
 
12345
   break
 
12346
fi
 
12347
done
 
12348
 
 
12349
  ;;
 
12350
esac
 
12351
fi
 
12352
PERL=$ac_cv_path_PERL
 
12353
 
 
12354
if test -n "$PERL"; then
 
12355
  echo "$as_me:12355: result: $PERL" >&5
 
12356
echo "${ECHO_T}$PERL" >&6
 
12357
else
 
12358
  echo "$as_me:12358: result: no" >&5
 
12359
echo "${ECHO_T}no" >&6
 
12360
fi
 
12361
 
 
12362
for ac_prog in gnroff nroff
 
12363
do
 
12364
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
12365
set dummy $ac_prog; ac_word=$2
 
12366
echo "$as_me:12366: checking for $ac_word" >&5
 
12367
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12368
if test "${ac_cv_path_NROFF+set}" = set; then
 
12369
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12370
else
 
12371
  case $NROFF in
 
12372
  [\\/]* | ?:[\\/]*)
 
12373
  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
 
12374
  ;;
 
12375
  *)
 
12376
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
12377
ac_dummy="$PATH:/usr/bin/:/usr/local/bin "
 
12378
for ac_dir in $ac_dummy; do
 
12379
  IFS=$ac_save_IFS
 
12380
  test -z "$ac_dir" && ac_dir=.
 
12381
  if $as_executable_p "$ac_dir/$ac_word"; then
 
12382
   ac_cv_path_NROFF="$ac_dir/$ac_word"
 
12383
   echo "$as_me:12383: found $ac_dir/$ac_word" >&5
 
12384
   break
 
12385
fi
 
12386
done
 
12387
 
 
12388
  ;;
 
12389
esac
 
12390
fi
 
12391
NROFF=$ac_cv_path_NROFF
 
12392
 
 
12393
if test -n "$NROFF"; then
 
12394
  echo "$as_me:12394: result: $NROFF" >&5
 
12395
echo "${ECHO_T}$NROFF" >&6
 
12396
else
 
12397
  echo "$as_me:12397: result: no" >&5
 
12398
echo "${ECHO_T}no" >&6
 
12399
fi
 
12400
 
 
12401
  test -n "$NROFF" && break
 
12402
done
 
12403
 
 
12404
for ac_prog in 'bison -y' byacc
 
12405
do
 
12406
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
12407
set dummy $ac_prog; ac_word=$2
 
12408
echo "$as_me:12408: checking for $ac_word" >&5
 
12409
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12410
if test "${ac_cv_prog_YACC+set}" = set; then
 
12411
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12412
else
 
12413
  if test -n "$YACC"; then
 
12414
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
 
12415
else
 
12416
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
12417
ac_dummy="$PATH"
 
12418
for ac_dir in $ac_dummy; do
 
12419
  IFS=$ac_save_IFS
 
12420
  test -z "$ac_dir" && ac_dir=.
 
12421
  $as_executable_p "$ac_dir/$ac_word" || continue
 
12422
ac_cv_prog_YACC="$ac_prog"
 
12423
echo "$as_me:12423: found $ac_dir/$ac_word" >&5
 
12424
break
 
12425
done
 
12426
 
 
12427
fi
 
12428
fi
 
12429
YACC=$ac_cv_prog_YACC
 
12430
if test -n "$YACC"; then
 
12431
  echo "$as_me:12431: result: $YACC" >&5
 
12432
echo "${ECHO_T}$YACC" >&6
 
12433
else
 
12434
  echo "$as_me:12434: result: no" >&5
 
12435
echo "${ECHO_T}no" >&6
 
12436
fi
 
12437
 
 
12438
  test -n "$YACC" && break
 
12439
done
 
12440
test -n "$YACC" || YACC="yacc"
 
12441
 
 
12442
ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile tests/Makefile tests/data/Makefile tests/server/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/EPM/curl.list packages/EPM/Makefile curl-config"
 
12443
 
 
12444
cat >confcache <<\_ACEOF
 
12445
# This file is a shell script that caches the results of configure
 
12446
# tests run on this system so they can be shared between configure
 
12447
# scripts and configure runs, see configure's option --config-cache.
 
12448
# It is not useful on other systems.  If it contains results you don't
 
12449
# want to keep, you may remove or edit it.
 
12450
#
 
12451
# config.status only pays attention to the cache file if you give it
 
12452
# the --recheck option to rerun configure.
 
12453
#
 
12454
# `ac_cv_env_foo' variables (set or unset) will be overriden when
 
12455
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
12456
# following values.
 
12457
 
 
12458
_ACEOF
 
12459
 
 
12460
# The following way of writing the cache mishandles newlines in values,
 
12461
# but we know of no workaround that is simple, portable, and efficient.
 
12462
# So, don't put newlines in cache variables' values.
 
12463
# Ultrix sh set writes to stderr and can't be redirected directly,
 
12464
# and sets the high bit in the cache file unless we assign to the vars.
 
12465
{
 
12466
  (set) 2>&1 |
 
12467
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
12468
    *ac_space=\ *)
 
12469
      # `set' does not quote correctly, so add quotes (double-quote
 
12470
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
12471
      sed -n \
 
12472
        "s/'/'\\\\''/g;
 
12473
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
12474
      ;;
 
12475
    *)
 
12476
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
12477
      sed -n \
 
12478
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
12479
      ;;
 
12480
    esac;
 
12481
} |
 
12482
  sed '
 
12483
     t clear
 
12484
     : clear
 
12485
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
12486
     t end
 
12487
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
12488
     : end' >>confcache
 
12489
if cmp -s $cache_file confcache; then :; else
 
12490
  if test -w $cache_file; then
 
12491
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
12492
    cat confcache >$cache_file
 
12493
  else
 
12494
    echo "not updating unwritable cache $cache_file"
 
12495
  fi
 
12496
fi
 
12497
rm -f confcache
 
12498
 
 
12499
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
12500
# Let make expand exec_prefix.
 
12501
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
12502
 
 
12503
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
12504
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
12505
# trailing colons and then remove the whole line if VPATH becomes empty
 
12506
# (actually we leave an empty line to preserve line numbers).
 
12507
if test "x$srcdir" = x.; then
 
12508
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
12509
s/:*\$(srcdir):*/:/;
 
12510
s/:*\${srcdir}:*/:/;
 
12511
s/:*@srcdir@:*/:/;
 
12512
s/^\([^=]*=[    ]*\):*/\1/;
 
12513
s/:*$//;
 
12514
s/^[^=]*=[      ]*$//;
 
12515
}'
 
12516
fi
 
12517
 
 
12518
DEFS=-DHAVE_CONFIG_H
 
12519
 
 
12520
: ${CONFIG_STATUS=./config.status}
 
12521
ac_clean_files_save=$ac_clean_files
 
12522
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
12523
{ echo "$as_me:12523: creating $CONFIG_STATUS" >&5
 
12524
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
12525
cat >$CONFIG_STATUS <<_ACEOF
 
12526
#! $SHELL
 
12527
# Generated automatically by configure.
 
12528
# Run this file to recreate the current configuration.
 
12529
# Compiler output produced by configure, useful for debugging
 
12530
# configure, is in config.log if it exists.
 
12531
 
 
12532
debug=false
 
12533
SHELL=\${CONFIG_SHELL-$SHELL}
 
12534
ac_cs_invocation="\$0 \$@"
 
12535
 
 
12536
_ACEOF
 
12537
 
 
12538
cat >>$CONFIG_STATUS <<\_ACEOF
 
12539
# Be Bourne compatible
 
12540
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
12541
  emulate sh
 
12542
  NULLCMD=:
 
12543
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
12544
  set -o posix
 
12545
fi
 
12546
 
 
12547
# Name of the executable.
 
12548
as_me=`echo "$0" |sed 's,.*[\\/],,'`
 
12549
 
 
12550
if expr a : '\(a\)' >/dev/null 2>&1; then
 
12551
  as_expr=expr
 
12552
else
 
12553
  as_expr=false
 
12554
fi
 
12555
 
 
12556
rm -f conf$$ conf$$.exe conf$$.file
 
12557
echo >conf$$.file
 
12558
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
12559
  # We could just check for DJGPP; but this test a) works b) is more generic
 
12560
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
12561
  if test -f conf$$.exe; then
 
12562
    # Don't use ln at all; we don't have any links
 
12563
    as_ln_s='cp -p'
 
12564
  else
 
12565
    as_ln_s='ln -s'
 
12566
  fi
 
12567
elif ln conf$$.file conf$$ 2>/dev/null; then
 
12568
  as_ln_s=ln
 
12569
else
 
12570
  as_ln_s='cp -p'
 
12571
fi
 
12572
rm -f conf$$ conf$$.exe conf$$.file
 
12573
 
 
12574
as_executable_p="test -f"
 
12575
 
 
12576
# Support unset when possible.
 
12577
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
12578
  as_unset=unset
 
12579
else
 
12580
  as_unset=false
 
12581
fi
 
12582
 
 
12583
# NLS nuisances.
 
12584
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
 
12585
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
 
12586
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
 
12587
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
 
12588
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
 
12589
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
 
12590
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
 
12591
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
 
12592
 
 
12593
# IFS
 
12594
# We need space, tab and new line, in precisely that order.
 
12595
as_nl='
 
12596
'
 
12597
IFS="   $as_nl"
 
12598
 
 
12599
# CDPATH.
 
12600
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
12601
 
 
12602
exec 6>&1
 
12603
 
 
12604
_ACEOF
 
12605
 
 
12606
# Files that config.status was made for.
 
12607
if test -n "$ac_config_files"; then
 
12608
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
12609
fi
 
12610
 
 
12611
if test -n "$ac_config_headers"; then
 
12612
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
12613
fi
 
12614
 
 
12615
if test -n "$ac_config_links"; then
 
12616
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
12617
fi
 
12618
 
 
12619
if test -n "$ac_config_commands"; then
 
12620
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
12621
fi
 
12622
 
 
12623
cat >>$CONFIG_STATUS <<\EOF
 
12624
 
 
12625
ac_cs_usage="\
 
12626
\`$as_me' instantiates files from templates according to the
 
12627
current configuration.
 
12628
 
 
12629
Usage: $0 [OPTIONS] [FILE]...
 
12630
 
 
12631
  -h, --help       print this help, then exit
 
12632
  -V, --version    print version number, then exit
 
12633
  -d, --debug      don't remove temporary files
 
12634
      --recheck    update $as_me by reconfiguring in the same conditions
 
12635
  --file=FILE[:TEMPLATE]
 
12636
                   instantiate the configuration file FILE
 
12637
  --header=FILE[:TEMPLATE]
 
12638
                   instantiate the configuration header FILE
 
12639
 
 
12640
Configuration files:
 
12641
$config_files
 
12642
 
 
12643
Configuration headers:
 
12644
$config_headers
 
12645
 
 
12646
Configuration commands:
 
12647
$config_commands
 
12648
 
 
12649
Report bugs to <bug-autoconf@gnu.org>."
 
12650
EOF
 
12651
 
 
12652
cat >>$CONFIG_STATUS <<EOF
 
12653
ac_cs_version="\\
 
12654
config.status
 
12655
configured by $0, generated by GNU Autoconf 2.52,
 
12656
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
12657
 
 
12658
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
12659
Free Software Foundation, Inc.
 
12660
This config.status script is free software; the Free Software Foundation
 
12661
gives unlimited permission to copy, distribute and modify it."
 
12662
srcdir=$srcdir
 
12663
INSTALL="$INSTALL"
 
12664
EOF
 
12665
 
 
12666
cat >>$CONFIG_STATUS <<\EOF
 
12667
# If no file are specified by the user, then we need to provide default
 
12668
# value.  By we need to know if files were specified by the user.
 
12669
ac_need_defaults=:
 
12670
while test $# != 0
 
12671
do
 
12672
  case $1 in
 
12673
  --*=*)
 
12674
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
12675
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
12676
    shift
 
12677
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
 
12678
    shift
 
12679
    ;;
 
12680
  -*);;
 
12681
  *) # This is not an option, so the user has probably given explicit
 
12682
     # arguments.
 
12683
     ac_need_defaults=false;;
 
12684
  esac
 
12685
 
 
12686
  case $1 in
 
12687
  # Handling of the options.
 
12688
EOF
 
12689
cat >>$CONFIG_STATUS <<EOF
 
12690
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
12691
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
 
12692
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
 
12693
EOF
 
12694
cat >>$CONFIG_STATUS <<\EOF
 
12695
  --version | --vers* | -V )
 
12696
    echo "$ac_cs_version"; exit 0 ;;
 
12697
  --he | --h)
 
12698
    # Conflict between --help and --header
 
12699
    { { echo "$as_me:12699: error: ambiguous option: $1
 
12700
Try \`$0 --help' for more information." >&5
 
12701
echo "$as_me: error: ambiguous option: $1
 
12702
Try \`$0 --help' for more information." >&2;}
 
12703
   { (exit 1); exit 1; }; };;
 
12704
  --help | --hel | -h )
 
12705
    echo "$ac_cs_usage"; exit 0 ;;
 
12706
  --debug | --d* | -d )
 
12707
    debug=: ;;
 
12708
  --file | --fil | --fi | --f )
 
12709
    shift
 
12710
    CONFIG_FILES="$CONFIG_FILES $1"
 
12711
    ac_need_defaults=false;;
 
12712
  --header | --heade | --head | --hea )
 
12713
    shift
 
12714
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
 
12715
    ac_need_defaults=false;;
 
12716
 
 
12717
  # This is an error.
 
12718
  -*) { { echo "$as_me:12718: error: unrecognized option: $1
 
12719
Try \`$0 --help' for more information." >&5
 
12720
echo "$as_me: error: unrecognized option: $1
 
12721
Try \`$0 --help' for more information." >&2;}
 
12722
   { (exit 1); exit 1; }; } ;;
 
12723
 
 
12724
  *) ac_config_targets="$ac_config_targets $1" ;;
 
12725
 
 
12726
  esac
 
12727
  shift
 
12728
done
 
12729
 
 
12730
exec 5>>config.log
 
12731
cat >&5 << _ACEOF
 
12732
 
 
12733
## ----------------------- ##
 
12734
## Running config.status.  ##
 
12735
## ----------------------- ##
 
12736
 
 
12737
This file was extended by $as_me 2.52, executed with
 
12738
  CONFIG_FILES    = $CONFIG_FILES
 
12739
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
12740
  CONFIG_LINKS    = $CONFIG_LINKS
 
12741
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
12742
  > $ac_cs_invocation
 
12743
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
12744
 
 
12745
_ACEOF
 
12746
EOF
 
12747
 
 
12748
cat >>$CONFIG_STATUS <<EOF
 
12749
#
 
12750
# INIT-COMMANDS section.
 
12751
#
 
12752
 
 
12753
AMDEP_TRUE="$AMDEP_TRUE"
 
12754
ac_aux_dir="$ac_aux_dir"
 
12755
 
 
12756
EOF
 
12757
 
 
12758
cat >>$CONFIG_STATUS <<\EOF
 
12759
for ac_config_target in $ac_config_targets
 
12760
do
 
12761
  case "$ac_config_target" in
 
12762
  # Handling of arguments.
 
12763
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
12764
  "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
 
12765
  "docs/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
 
12766
  "docs/libcurl/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
 
12767
  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
 
12768
  "include/curl/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
 
12769
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
12770
  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
 
12771
  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
12772
  "tests/data/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
 
12773
  "tests/server/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
 
12774
  "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
 
12775
  "packages/Win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
 
12776
  "packages/Win32/cygwin/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
 
12777
  "packages/Linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
 
12778
  "packages/Linux/RPM/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
 
12779
  "packages/Linux/RPM/curl.spec" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
 
12780
  "packages/Linux/RPM/curl-ssl.spec" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
 
12781
  "packages/Solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
 
12782
  "packages/EPM/curl.list" ) CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
 
12783
  "packages/EPM/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
 
12784
  "curl-config" ) CONFIG_FILES="$CONFIG_FILES curl-config" ;;
 
12785
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
12786
  "lib/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
 
12787
  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
 
12788
  "tests/server/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS tests/server/config.h" ;;
 
12789
  *) { { echo "$as_me:12789: error: invalid argument: $ac_config_target" >&5
 
12790
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
12791
   { (exit 1); exit 1; }; };;
 
12792
  esac
 
12793
done
 
12794
 
 
12795
# If the user did not use the arguments to specify the items to instantiate,
 
12796
# then the envvar interface is used.  Set only those that are not.
 
12797
# We use the long form for the default assignment because of an extremely
 
12798
# bizarre bug on SunOS 4.1.3.
 
12799
if $ac_need_defaults; then
 
12800
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
12801
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
12802
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
12803
fi
 
12804
 
 
12805
# Create a temporary directory, and hook for its removal unless debugging.
 
12806
$debug ||
 
12807
{
 
12808
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
12809
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
12810
}
 
12811
 
 
12812
# Create a (secure) tmp directory for tmp files.
 
12813
: ${TMPDIR=/tmp}
 
12814
{
 
12815
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
 
12816
  test -n "$tmp" && test -d "$tmp"
 
12817
}  ||
 
12818
{
 
12819
  tmp=$TMPDIR/cs$$-$RANDOM
 
12820
  (umask 077 && mkdir $tmp)
 
12821
} ||
 
12822
{
 
12823
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
 
12824
   { (exit 1); exit 1; }
 
12825
}
 
12826
 
 
12827
EOF
 
12828
 
 
12829
cat >>$CONFIG_STATUS <<EOF
 
12830
 
 
12831
#
 
12832
# CONFIG_FILES section.
 
12833
#
 
12834
 
 
12835
# No need to generate the scripts if there are no CONFIG_FILES.
 
12836
# This happens for instance when ./config.status config.h
 
12837
if test -n "\$CONFIG_FILES"; then
 
12838
  # Protect against being on the right side of a sed subst in config.status.
 
12839
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
12840
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
12841
s,@SHELL@,$SHELL,;t t
 
12842
s,@exec_prefix@,$exec_prefix,;t t
 
12843
s,@prefix@,$prefix,;t t
 
12844
s,@program_transform_name@,$program_transform_name,;t t
 
12845
s,@bindir@,$bindir,;t t
 
12846
s,@sbindir@,$sbindir,;t t
 
12847
s,@libexecdir@,$libexecdir,;t t
 
12848
s,@datadir@,$datadir,;t t
 
12849
s,@sysconfdir@,$sysconfdir,;t t
 
12850
s,@sharedstatedir@,$sharedstatedir,;t t
 
12851
s,@localstatedir@,$localstatedir,;t t
 
12852
s,@libdir@,$libdir,;t t
 
12853
s,@includedir@,$includedir,;t t
 
12854
s,@oldincludedir@,$oldincludedir,;t t
 
12855
s,@infodir@,$infodir,;t t
 
12856
s,@mandir@,$mandir,;t t
 
12857
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
12858
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
12859
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
12860
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
12861
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
12862
s,@build_alias@,$build_alias,;t t
 
12863
s,@host_alias@,$host_alias,;t t
 
12864
s,@target_alias@,$target_alias,;t t
 
12865
s,@ECHO_C@,$ECHO_C,;t t
 
12866
s,@ECHO_N@,$ECHO_N,;t t
 
12867
s,@ECHO_T@,$ECHO_T,;t t
 
12868
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
12869
s,@DEFS@,$DEFS,;t t
 
12870
s,@LIBS@,$LIBS,;t t
 
12871
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
12872
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
12873
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
12874
s,@PACKAGE@,$PACKAGE,;t t
 
12875
s,@VERSION@,$VERSION,;t t
 
12876
s,@EXEEXT@,$EXEEXT,;t t
 
12877
s,@OBJEXT@,$OBJEXT,;t t
 
12878
s,@ACLOCAL@,$ACLOCAL,;t t
 
12879
s,@AUTOCONF@,$AUTOCONF,;t t
 
12880
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
12881
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
12882
s,@MAKEINFO@,$MAKEINFO,;t t
 
12883
s,@AMTAR@,$AMTAR,;t t
 
12884
s,@install_sh@,$install_sh,;t t
 
12885
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
12886
s,@AWK@,$AWK,;t t
 
12887
s,@SET_MAKE@,$SET_MAKE,;t t
 
12888
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
12889
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
12890
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
12891
s,@DEPDIR@,$DEPDIR,;t t
 
12892
s,@VERSIONNUM@,$VERSIONNUM,;t t
 
12893
s,@PKGADD_PKG@,$PKGADD_PKG,;t t
 
12894
s,@PKGADD_NAME@,$PKGADD_NAME,;t t
 
12895
s,@PKGADD_VENDOR@,$PKGADD_VENDOR,;t t
 
12896
s,@build@,$build,;t t
 
12897
s,@build_cpu@,$build_cpu,;t t
 
12898
s,@build_vendor@,$build_vendor,;t t
 
12899
s,@build_os@,$build_os,;t t
 
12900
s,@host@,$host,;t t
 
12901
s,@host_cpu@,$host_cpu,;t t
 
12902
s,@host_vendor@,$host_vendor,;t t
 
12903
s,@host_os@,$host_os,;t t
 
12904
s,@CC@,$CC,;t t
 
12905
s,@CFLAGS@,$CFLAGS,;t t
 
12906
s,@LDFLAGS@,$LDFLAGS,;t t
 
12907
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
12908
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
12909
s,@am__include@,$am__include,;t t
 
12910
s,@am__quote@,$am__quote,;t t
 
12911
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
12912
s,@CPP@,$CPP,;t t
 
12913
s,@LN_S@,$LN_S,;t t
 
12914
s,@ECHO@,$ECHO,;t t
 
12915
s,@RANLIB@,$RANLIB,;t t
 
12916
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
12917
s,@STRIP@,$STRIP,;t t
 
12918
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
12919
s,@DLLTOOL@,$DLLTOOL,;t t
 
12920
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
 
12921
s,@AS@,$AS,;t t
 
12922
s,@ac_ct_AS@,$ac_ct_AS,;t t
 
12923
s,@OBJDUMP@,$OBJDUMP,;t t
 
12924
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
 
12925
s,@LIBTOOL@,$LIBTOOL,;t t
 
12926
s,@IPV6_ENABLED@,$IPV6_ENABLED,;t t
 
12927
s,@RANDOM_FILE@,$RANDOM_FILE,;t t
 
12928
s,@KRB4_ENABLED@,$KRB4_ENABLED,;t t
 
12929
s,@OPENSSL_ENABLED@,$OPENSSL_ENABLED,;t t
 
12930
s,@PERL@,$PERL,;t t
 
12931
s,@NROFF@,$NROFF,;t t
 
12932
s,@YACC@,$YACC,;t t
 
12933
CEOF
 
12934
 
 
12935
EOF
 
12936
 
 
12937
  cat >>$CONFIG_STATUS <<\EOF
 
12938
  # Split the substitutions into bite-sized pieces for seds with
 
12939
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
12940
  ac_max_sed_lines=48
 
12941
  ac_sed_frag=1 # Number of current file.
 
12942
  ac_beg=1 # First line for current file.
 
12943
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
12944
  ac_more_lines=:
 
12945
  ac_sed_cmds=
 
12946
  while $ac_more_lines; do
 
12947
    if test $ac_beg -gt 1; then
 
12948
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
12949
    else
 
12950
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
12951
    fi
 
12952
    if test ! -s $tmp/subs.frag; then
 
12953
      ac_more_lines=false
 
12954
    else
 
12955
      # The purpose of the label and of the branching condition is to
 
12956
      # speed up the sed processing (if there are no `@' at all, there
 
12957
      # is no need to browse any of the substitutions).
 
12958
      # These are the two extra sed commands mentioned above.
 
12959
      (echo ':t
 
12960
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
12961
      if test -z "$ac_sed_cmds"; then
 
12962
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
12963
      else
 
12964
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
12965
      fi
 
12966
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
12967
      ac_beg=$ac_end
 
12968
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
12969
    fi
 
12970
  done
 
12971
  if test -z "$ac_sed_cmds"; then
 
12972
    ac_sed_cmds=cat
 
12973
  fi
 
12974
fi # test -n "$CONFIG_FILES"
 
12975
 
 
12976
EOF
 
12977
cat >>$CONFIG_STATUS <<\EOF
 
12978
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
12979
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
12980
  case $ac_file in
 
12981
  - | *:- | *:-:* ) # input from stdin
 
12982
        cat >$tmp/stdin
 
12983
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
12984
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
12985
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
12986
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
12987
  * )   ac_file_in=$ac_file.in ;;
 
12988
  esac
 
12989
 
 
12990
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
12991
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
12992
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
12993
         X"$ac_file" : 'X\(//\)$' \| \
 
12994
         X"$ac_file" : 'X\(/\)' \| \
 
12995
         .     : '\(.\)' 2>/dev/null ||
 
12996
echo X"$ac_file" |
 
12997
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
12998
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
12999
          /^X\(\/\/\)$/{ s//\1/; q; }
 
13000
          /^X\(\/\).*/{ s//\1/; q; }
 
13001
          s/.*/./; q'`
 
13002
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
13003
    { case "$ac_dir" in
 
13004
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
 
13005
  *)                      as_incr_dir=.;;
 
13006
esac
 
13007
as_dummy="$ac_dir"
 
13008
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
 
13009
  case $as_mkdir_dir in
 
13010
    # Skip DOS drivespec
 
13011
    ?:) as_incr_dir=$as_mkdir_dir ;;
 
13012
    *)
 
13013
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
 
13014
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
 
13015
    ;;
 
13016
  esac
 
13017
done; }
 
13018
 
 
13019
    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
 
13020
    # A "../" for each directory in $ac_dir_suffix.
 
13021
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
 
13022
  else
 
13023
    ac_dir_suffix= ac_dots=
 
13024
  fi
 
13025
 
 
13026
  case $srcdir in
 
13027
  .)  ac_srcdir=.
 
13028
      if test -z "$ac_dots"; then
 
13029
         ac_top_srcdir=.
 
13030
      else
 
13031
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
 
13032
      fi ;;
 
13033
  [\\/]* | ?:[\\/]* )
 
13034
      ac_srcdir=$srcdir$ac_dir_suffix;
 
13035
      ac_top_srcdir=$srcdir ;;
 
13036
  *) # Relative path.
 
13037
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
 
13038
    ac_top_srcdir=$ac_dots$srcdir ;;
 
13039
  esac
 
13040
 
 
13041
  case $INSTALL in
 
13042
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
13043
  *) ac_INSTALL=$ac_dots$INSTALL ;;
 
13044
  esac
 
13045
 
 
13046
  if test x"$ac_file" != x-; then
 
13047
    { echo "$as_me:13047: creating $ac_file" >&5
 
13048
echo "$as_me: creating $ac_file" >&6;}
 
13049
    rm -f "$ac_file"
 
13050
  fi
 
13051
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
13052
  # use $as_me), people would be surprised to read:
 
13053
  #    /* config.h.  Generated automatically by config.status.  */
 
13054
  configure_input="Generated automatically from `echo $ac_file_in |
 
13055
                                                 sed 's,.*/,,'` by configure."
 
13056
 
 
13057
  # First look for the input files in the build tree, otherwise in the
 
13058
  # src tree.
 
13059
  ac_file_inputs=`IFS=:
 
13060
    for f in $ac_file_in; do
 
13061
      case $f in
 
13062
      -) echo $tmp/stdin ;;
 
13063
      [\\/$]*)
 
13064
         # Absolute (can't be DOS-style, as IFS=:)
 
13065
         test -f "$f" || { { echo "$as_me:13065: error: cannot find input file: $f" >&5
 
13066
echo "$as_me: error: cannot find input file: $f" >&2;}
 
13067
   { (exit 1); exit 1; }; }
 
13068
         echo $f;;
 
13069
      *) # Relative
 
13070
         if test -f "$f"; then
 
13071
           # Build tree
 
13072
           echo $f
 
13073
         elif test -f "$srcdir/$f"; then
 
13074
           # Source tree
 
13075
           echo $srcdir/$f
 
13076
         else
 
13077
           # /dev/null tree
 
13078
           { { echo "$as_me:13078: error: cannot find input file: $f" >&5
 
13079
echo "$as_me: error: cannot find input file: $f" >&2;}
 
13080
   { (exit 1); exit 1; }; }
 
13081
         fi;;
 
13082
      esac
 
13083
    done` || { (exit 1); exit 1; }
 
13084
EOF
 
13085
cat >>$CONFIG_STATUS <<EOF
 
13086
  sed "$ac_vpsub
 
13087
$extrasub
 
13088
EOF
 
13089
cat >>$CONFIG_STATUS <<\EOF
 
13090
:t
 
13091
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
13092
s,@configure_input@,$configure_input,;t t
 
13093
s,@srcdir@,$ac_srcdir,;t t
 
13094
s,@top_srcdir@,$ac_top_srcdir,;t t
 
13095
s,@INSTALL@,$ac_INSTALL,;t t
 
13096
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
13097
  rm -f $tmp/stdin
 
13098
  if test x"$ac_file" != x-; then
 
13099
    mv $tmp/out $ac_file
 
13100
  else
 
13101
    cat $tmp/out
 
13102
    rm -f $tmp/out
 
13103
  fi
 
13104
 
 
13105
done
 
13106
EOF
 
13107
cat >>$CONFIG_STATUS <<\EOF
 
13108
 
 
13109
#
 
13110
# CONFIG_HEADER section.
 
13111
#
 
13112
 
 
13113
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
13114
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
13115
#
 
13116
# ac_d sets the value in "#define NAME VALUE" lines.
 
13117
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
13118
ac_dB='[        ].*$,\1#\2'
 
13119
ac_dC=' '
 
13120
ac_dD=',;t'
 
13121
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
13122
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
13123
ac_uB='$,\1#\2define\3'
 
13124
ac_uC=' '
 
13125
ac_uD=',;t'
 
13126
 
 
13127
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
13128
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
13129
  case $ac_file in
 
13130
  - | *:- | *:-:* ) # input from stdin
 
13131
        cat >$tmp/stdin
 
13132
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
13133
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
13134
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
13135
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
13136
  * )   ac_file_in=$ac_file.in ;;
 
13137
  esac
 
13138
 
 
13139
  test x"$ac_file" != x- && { echo "$as_me:13139: creating $ac_file" >&5
 
13140
echo "$as_me: creating $ac_file" >&6;}
 
13141
 
 
13142
  # First look for the input files in the build tree, otherwise in the
 
13143
  # src tree.
 
13144
  ac_file_inputs=`IFS=:
 
13145
    for f in $ac_file_in; do
 
13146
      case $f in
 
13147
      -) echo $tmp/stdin ;;
 
13148
      [\\/$]*)
 
13149
         # Absolute (can't be DOS-style, as IFS=:)
 
13150
         test -f "$f" || { { echo "$as_me:13150: error: cannot find input file: $f" >&5
 
13151
echo "$as_me: error: cannot find input file: $f" >&2;}
 
13152
   { (exit 1); exit 1; }; }
 
13153
         echo $f;;
 
13154
      *) # Relative
 
13155
         if test -f "$f"; then
 
13156
           # Build tree
 
13157
           echo $f
 
13158
         elif test -f "$srcdir/$f"; then
 
13159
           # Source tree
 
13160
           echo $srcdir/$f
 
13161
         else
 
13162
           # /dev/null tree
 
13163
           { { echo "$as_me:13163: error: cannot find input file: $f" >&5
 
13164
echo "$as_me: error: cannot find input file: $f" >&2;}
 
13165
   { (exit 1); exit 1; }; }
 
13166
         fi;;
 
13167
      esac
 
13168
    done` || { (exit 1); exit 1; }
 
13169
  # Remove the trailing spaces.
 
13170
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
13171
 
 
13172
EOF
 
13173
 
 
13174
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
13175
# `conftest.undefs', that substitutes the proper values into
 
13176
# config.h.in to produce config.h.  The first handles `#define'
 
13177
# templates, and the second `#undef' templates.
 
13178
# And first: Protect against being on the right side of a sed subst in
 
13179
# config.status.  Protect against being in an unquoted here document
 
13180
# in config.status.
 
13181
rm -f conftest.defines conftest.undefs
 
13182
# Using a here document instead of a string reduces the quoting nightmare.
 
13183
# Putting comments in sed scripts is not portable.
 
13184
#
 
13185
# `end' is used to avoid that the second main sed command (meant for
 
13186
# 0-ary CPP macros) applies to n-ary macro definitions.
 
13187
# See the Autoconf documentation for `clear'.
 
13188
cat >confdef2sed.sed <<\EOF
 
13189
s/[\\&,]/\\&/g
 
13190
s,[\\$`],\\&,g
 
13191
t clear
 
13192
: clear
 
13193
s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
 
13194
t end
 
13195
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
13196
: end
 
13197
EOF
 
13198
# If some macros were called several times there might be several times
 
13199
# the same #defines, which is useless.  Nevertheless, we may not want to
 
13200
# sort them, since we want the *last* AC-DEFINE to be honored.
 
13201
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
13202
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
13203
rm -f confdef2sed.sed
 
13204
 
 
13205
# This sed command replaces #undef with comments.  This is necessary, for
 
13206
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
13207
# on some systems where configure will not decide to define it.
 
13208
cat >>conftest.undefs <<\EOF
 
13209
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
13210
EOF
 
13211
 
 
13212
# Break up conftest.defines because some shells have a limit on the size
 
13213
# of here documents, and old seds have small limits too (100 cmds).
 
13214
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
13215
echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
13216
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
13217
echo '  :' >>$CONFIG_STATUS
 
13218
rm -f conftest.tail
 
13219
while grep . conftest.defines >/dev/null
 
13220
do
 
13221
  # Write a limited-size here document to $tmp/defines.sed.
 
13222
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
13223
  # Speed up: don't consider the non `#define' lines.
 
13224
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
13225
  # Work around the forget-to-reset-the-flag bug.
 
13226
  echo 't clr' >>$CONFIG_STATUS
 
13227
  echo ': clr' >>$CONFIG_STATUS
 
13228
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
13229
  echo 'CEOF
 
13230
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
13231
  rm -f $tmp/in
 
13232
  mv $tmp/out $tmp/in
 
13233
' >>$CONFIG_STATUS
 
13234
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
13235
  rm -f conftest.defines
 
13236
  mv conftest.tail conftest.defines
 
13237
done
 
13238
rm -f conftest.defines
 
13239
echo '  fi # egrep' >>$CONFIG_STATUS
 
13240
echo >>$CONFIG_STATUS
 
13241
 
 
13242
# Break up conftest.undefs because some shells have a limit on the size
 
13243
# of here documents, and old seds have small limits too (100 cmds).
 
13244
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
13245
rm -f conftest.tail
 
13246
while grep . conftest.undefs >/dev/null
 
13247
do
 
13248
  # Write a limited-size here document to $tmp/undefs.sed.
 
13249
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
13250
  # Speed up: don't consider the non `#undef'
 
13251
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
13252
  # Work around the forget-to-reset-the-flag bug.
 
13253
  echo 't clr' >>$CONFIG_STATUS
 
13254
  echo ': clr' >>$CONFIG_STATUS
 
13255
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
13256
  echo 'CEOF
 
13257
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
13258
  rm -f $tmp/in
 
13259
  mv $tmp/out $tmp/in
 
13260
' >>$CONFIG_STATUS
 
13261
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
13262
  rm -f conftest.undefs
 
13263
  mv conftest.tail conftest.undefs
 
13264
done
 
13265
rm -f conftest.undefs
 
13266
 
 
13267
cat >>$CONFIG_STATUS <<\EOF
 
13268
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
13269
  # use $as_me), people would be surprised to read:
 
13270
  #    /* config.h.  Generated automatically by config.status.  */
 
13271
  if test x"$ac_file" = x-; then
 
13272
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
 
13273
  else
 
13274
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
 
13275
  fi
 
13276
  cat $tmp/in >>$tmp/config.h
 
13277
  rm -f $tmp/in
 
13278
  if test x"$ac_file" != x-; then
 
13279
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
 
13280
      { echo "$as_me:13280: $ac_file is unchanged" >&5
 
13281
echo "$as_me: $ac_file is unchanged" >&6;}
 
13282
    else
 
13283
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
13284
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
13285
         X"$ac_file" : 'X\(//\)$' \| \
 
13286
         X"$ac_file" : 'X\(/\)' \| \
 
13287
         .     : '\(.\)' 2>/dev/null ||
 
13288
echo X"$ac_file" |
 
13289
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
13290
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
13291
          /^X\(\/\/\)$/{ s//\1/; q; }
 
13292
          /^X\(\/\).*/{ s//\1/; q; }
 
13293
          s/.*/./; q'`
 
13294
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
13295
        { case "$ac_dir" in
 
13296
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
 
13297
  *)                      as_incr_dir=.;;
 
13298
esac
 
13299
as_dummy="$ac_dir"
 
13300
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
 
13301
  case $as_mkdir_dir in
 
13302
    # Skip DOS drivespec
 
13303
    ?:) as_incr_dir=$as_mkdir_dir ;;
 
13304
    *)
 
13305
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
 
13306
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
 
13307
    ;;
 
13308
  esac
 
13309
done; }
 
13310
 
 
13311
      fi
 
13312
      rm -f $ac_file
 
13313
      mv $tmp/config.h $ac_file
 
13314
    fi
 
13315
  else
 
13316
    cat $tmp/config.h
 
13317
    rm -f $tmp/config.h
 
13318
  fi
 
13319
  # Run the commands associated with the file.
 
13320
  case $ac_file in
 
13321
    lib/config.h ) # update the timestamp
 
13322
echo timestamp >"lib/stamp-h1"
 
13323
 ;;
 
13324
    src/config.h ) # update the timestamp
 
13325
echo timestamp >"src/stamp-h2"
 
13326
 ;;
 
13327
    tests/server/config.h ) # update the timestamp
 
13328
echo timestamp >"tests/server/stamp-h3"
 
13329
 ;;
 
13330
  esac
 
13331
done
 
13332
EOF
 
13333
cat >>$CONFIG_STATUS <<\EOF
 
13334
 
 
13335
#
 
13336
# CONFIG_COMMANDS section.
 
13337
#
 
13338
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
13339
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
13340
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
13341
 
 
13342
  case $ac_dest in
 
13343
    default-1 )
 
13344
test x"$AMDEP_TRUE" != x"" ||
 
13345
for mf in $CONFIG_FILES; do
 
13346
  case "$mf" in
 
13347
  Makefile) dirpart=.;;
 
13348
  */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
 
13349
  *) continue;;
 
13350
  esac
 
13351
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
13352
  # Extract the definition of DEP_FILES from the Makefile without
 
13353
  # running `make'.
 
13354
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
13355
  test -z "$DEPDIR" && continue
 
13356
  # When using ansi2knr, U may be empty or an underscore; expand it
 
13357
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
13358
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
13359
  # We invoke sed twice because it is the simplest approach to
 
13360
  # changing $(DEPDIR) to its actual value in the expansion.
 
13361
  for file in `sed -n -e '
 
13362
    /^DEP_FILES = .*\\\\$/ {
 
13363
      s/^DEP_FILES = //
 
13364
      :loop
 
13365
        s/\\\\$//
 
13366
        p
 
13367
        n
 
13368
        /\\\\$/ b loop
 
13369
      p
 
13370
    }
 
13371
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
13372
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
13373
    # Make sure the directory exists.
 
13374
    test -f "$dirpart/$file" && continue
 
13375
    fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
 
13376
    $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
 
13377
    # echo "creating $dirpart/$file"
 
13378
    echo '# dummy' > "$dirpart/$file"
 
13379
  done
 
13380
done
 
13381
 ;;
 
13382
  esac
 
13383
done
 
13384
EOF
 
13385
 
 
13386
cat >>$CONFIG_STATUS <<\EOF
 
13387
 
 
13388
{ (exit 0); exit 0; }
 
13389
EOF
 
13390
chmod +x $CONFIG_STATUS
 
13391
ac_clean_files=$ac_clean_files_save
 
13392
 
 
13393
# configure is writing to config.log, and then calls config.status.
 
13394
# config.status does its own redirection, appending to config.log.
 
13395
# Unfortunately, on DOS this fails, as config.log is still kept open
 
13396
# by configure, so config.status won't be able to write to it; its
 
13397
# output is simply discarded.  So we exec the FD to /dev/null,
 
13398
# effectively closing config.log, so it can be properly (re)opened and
 
13399
# appended to by config.status.  When coming back to configure, we
 
13400
# need to make the FD available again.
 
13401
if test "$no_create" != yes; then
 
13402
  ac_cs_success=:
 
13403
  exec 5>/dev/null
 
13404
  $SHELL $CONFIG_STATUS || ac_cs_success=false
 
13405
  exec 5>>config.log
 
13406
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
13407
  # would make configure fail if this is the last instruction.
 
13408
  $ac_cs_success || { (exit 1); exit 1; }
 
13409
fi
 
13410