~ubuntu-branches/ubuntu/dapper/curl/dapper-updates

« back to all changes in this revision

Viewing changes to debian/configure-7.11.2

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2005-07-26 19:03:01 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20050726190301-x2m2vmjgc8fwnic5
Tags: 7.14.0-2ubuntu1
Synchronize with Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.59 for curl -.
4
 
#
5
 
# Report bugs to <curl-bug@haxx.se>.
6
 
#
7
 
# Copyright (C) 2003 Free Software Foundation, Inc.
8
 
# This configure script is free software; the Free Software Foundation
9
 
# gives unlimited permission to copy, distribute and modify it.
10
 
#
11
 
# Copyright (c) 1998 - 2004 Daniel Stenberg, <daniel@haxx.se>
12
 
# This configure script may be copied, distributed and modified under the
13
 
# terms of the curl license; see COPYING for more details
14
 
## --------------------- ##
15
 
## M4sh Initialization.  ##
16
 
## --------------------- ##
17
 
 
18
 
# Be Bourne compatible
19
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20
 
  emulate sh
21
 
  NULLCMD=:
22
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23
 
  # is contrary to our usage.  Disable this feature.
24
 
  alias -g '${1+"$@"}'='"$@"'
25
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26
 
  set -o posix
27
 
fi
28
 
DUALCASE=1; export DUALCASE # for MKS sh
29
 
 
30
 
# Support unset when possible.
31
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32
 
  as_unset=unset
33
 
else
34
 
  as_unset=false
35
 
fi
36
 
 
37
 
 
38
 
# Work around bugs in pre-3.0 UWIN ksh.
39
 
$as_unset ENV MAIL MAILPATH
40
 
PS1='$ '
41
 
PS2='> '
42
 
PS4='+ '
43
 
 
44
 
# NLS nuisances.
45
 
for as_var in \
46
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
47
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48
 
  LC_TELEPHONE LC_TIME
49
 
do
50
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51
 
    eval $as_var=C; export $as_var
52
 
  else
53
 
    $as_unset $as_var
54
 
  fi
55
 
done
56
 
 
57
 
# Required to use basename.
58
 
if expr a : '\(a\)' >/dev/null 2>&1; then
59
 
  as_expr=expr
60
 
else
61
 
  as_expr=false
62
 
fi
63
 
 
64
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
 
  as_basename=basename
66
 
else
67
 
  as_basename=false
68
 
fi
69
 
 
70
 
 
71
 
# Name of the executable.
72
 
as_me=`$as_basename "$0" ||
73
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
74
 
         X"$0" : 'X\(//\)$' \| \
75
 
         X"$0" : 'X\(/\)$' \| \
76
 
         .     : '\(.\)' 2>/dev/null ||
77
 
echo X/"$0" |
78
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
79
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
80
 
          /^X\/\(\/\).*/{ s//\1/; q; }
81
 
          s/.*/./; q'`
82
 
 
83
 
 
84
 
# PATH needs CR, and LINENO needs CR and PATH.
85
 
# Avoid depending upon Character Ranges.
86
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
87
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
88
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
89
 
as_cr_digits='0123456789'
90
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
91
 
 
92
 
# The user is always right.
93
 
if test "${PATH_SEPARATOR+set}" != set; then
94
 
  echo "#! /bin/sh" >conf$$.sh
95
 
  echo  "exit 0"   >>conf$$.sh
96
 
  chmod +x conf$$.sh
97
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
98
 
    PATH_SEPARATOR=';'
99
 
  else
100
 
    PATH_SEPARATOR=:
101
 
  fi
102
 
  rm -f conf$$.sh
103
 
fi
104
 
 
105
 
 
106
 
  as_lineno_1=$LINENO
107
 
  as_lineno_2=$LINENO
108
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
109
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
110
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
111
 
  # Find who we are.  Look in the path if we contain no path at all
112
 
  # relative or not.
113
 
  case $0 in
114
 
    *[\\/]* ) as_myself=$0 ;;
115
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116
 
for as_dir in $PATH
117
 
do
118
 
  IFS=$as_save_IFS
119
 
  test -z "$as_dir" && as_dir=.
120
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
 
done
122
 
 
123
 
       ;;
124
 
  esac
125
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
126
 
  # in which case we are not to be found in the path.
127
 
  if test "x$as_myself" = x; then
128
 
    as_myself=$0
129
 
  fi
130
 
  if test ! -f "$as_myself"; then
131
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
132
 
   { (exit 1); exit 1; }; }
133
 
  fi
134
 
  case $CONFIG_SHELL in
135
 
  '')
136
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
137
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138
 
do
139
 
  IFS=$as_save_IFS
140
 
  test -z "$as_dir" && as_dir=.
141
 
  for as_base in sh bash ksh sh5; do
142
 
         case $as_dir in
143
 
         /*)
144
 
           if ("$as_dir/$as_base" -c '
145
 
  as_lineno_1=$LINENO
146
 
  as_lineno_2=$LINENO
147
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
148
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
149
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
150
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
151
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
152
 
             CONFIG_SHELL=$as_dir/$as_base
153
 
             export CONFIG_SHELL
154
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155
 
           fi;;
156
 
         esac
157
 
       done
158
 
done
159
 
;;
160
 
  esac
161
 
 
162
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
163
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
164
 
  # line-number line before each line; the second 'sed' does the real
165
 
  # work.  The second script uses 'N' to pair each line-number line
166
 
  # with the numbered line, and appends trailing '-' during
167
 
  # substitution so that $LINENO is not a special case at line end.
168
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
169
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
170
 
  sed '=' <$as_myself |
171
 
    sed '
172
 
      N
173
 
      s,$,-,
174
 
      : loop
175
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176
 
      t loop
177
 
      s,-$,,
178
 
      s,^['$as_cr_digits']*\n,,
179
 
    ' >$as_me.lineno &&
180
 
  chmod +x $as_me.lineno ||
181
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
182
 
   { (exit 1); exit 1; }; }
183
 
 
184
 
  # Don't try to exec as it changes $[0], causing all sort of problems
185
 
  # (the dirname of $[0] is not the place where we might find the
186
 
  # original and so on.  Autoconf is especially sensible to this).
187
 
  . ./$as_me.lineno
188
 
  # Exit status is that of the last command.
189
 
  exit
190
 
}
191
 
 
192
 
 
193
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
194
 
  *c*,-n*) ECHO_N= ECHO_C='
195
 
' ECHO_T='      ' ;;
196
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
197
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
198
 
esac
199
 
 
200
 
if expr a : '\(a\)' >/dev/null 2>&1; then
201
 
  as_expr=expr
202
 
else
203
 
  as_expr=false
204
 
fi
205
 
 
206
 
rm -f conf$$ conf$$.exe conf$$.file
207
 
echo >conf$$.file
208
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
209
 
  # We could just check for DJGPP; but this test a) works b) is more generic
210
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
211
 
  if test -f conf$$.exe; then
212
 
    # Don't use ln at all; we don't have any links
213
 
    as_ln_s='cp -p'
214
 
  else
215
 
    as_ln_s='ln -s'
216
 
  fi
217
 
elif ln conf$$.file conf$$ 2>/dev/null; then
218
 
  as_ln_s=ln
219
 
else
220
 
  as_ln_s='cp -p'
221
 
fi
222
 
rm -f conf$$ conf$$.exe conf$$.file
223
 
 
224
 
if mkdir -p . 2>/dev/null; then
225
 
  as_mkdir_p=:
226
 
else
227
 
  test -d ./-p && rmdir ./-p
228
 
  as_mkdir_p=false
229
 
fi
230
 
 
231
 
as_executable_p="test -f"
232
 
 
233
 
# Sed expression to map a string onto a valid CPP name.
234
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
235
 
 
236
 
# Sed expression to map a string onto a valid variable name.
237
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238
 
 
239
 
 
240
 
# IFS
241
 
# We need space, tab and new line, in precisely that order.
242
 
as_nl='
243
 
'
244
 
IFS="   $as_nl"
245
 
 
246
 
# CDPATH.
247
 
$as_unset CDPATH
248
 
 
249
 
 
250
 
 
251
 
# Check that we are running under the correct shell.
252
 
SHELL=${CONFIG_SHELL-/bin/sh}
253
 
 
254
 
case X$ECHO in
255
 
X*--fallback-echo)
256
 
  # Remove one level of quotation (which was required for Make).
257
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258
 
  ;;
259
 
esac
260
 
 
261
 
echo=${ECHO-echo}
262
 
if test "X$1" = X--no-reexec; then
263
 
  # Discard the --no-reexec flag, and continue.
264
 
  shift
265
 
elif test "X$1" = X--fallback-echo; then
266
 
  # Avoid inline document here, it may be left over
267
 
  :
268
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
269
 
  # Yippee, $echo works!
270
 
  :
271
 
else
272
 
  # Restart under the correct shell.
273
 
  exec $SHELL "$0" --no-reexec ${1+"$@"}
274
 
fi
275
 
 
276
 
if test "X$1" = X--fallback-echo; then
277
 
  # used as fallback echo
278
 
  shift
279
 
  cat <<EOF
280
 
$*
281
 
EOF
282
 
  exit 0
283
 
fi
284
 
 
285
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
286
 
# if CDPATH is set.
287
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
288
 
 
289
 
if test -z "$ECHO"; then
290
 
if test "X${echo_test_string+set}" != Xset; then
291
 
# find a string as large as possible, as long as the shell can cope with it
292
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
293
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
294
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
295
 
       echo_test_string="`eval $cmd`" &&
296
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297
 
    then
298
 
      break
299
 
    fi
300
 
  done
301
 
fi
302
 
 
303
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
304
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
305
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
306
 
  :
307
 
else
308
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
309
 
  # backslashes.  This makes it impossible to quote backslashes using
310
 
  #   echo "$something" | sed 's/\\/\\\\/g'
311
 
  #
312
 
  # So, first we look for a working echo in the user's PATH.
313
 
 
314
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
315
 
  for dir in $PATH /usr/ucb; do
316
 
    IFS="$lt_save_ifs"
317
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
318
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
319
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
320
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
321
 
      echo="$dir/echo"
322
 
      break
323
 
    fi
324
 
  done
325
 
  IFS="$lt_save_ifs"
326
 
 
327
 
  if test "X$echo" = Xecho; then
328
 
    # We didn't find a better echo, so look for alternatives.
329
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
330
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
331
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
332
 
      # This shell has a builtin print -r that does the trick.
333
 
      echo='print -r'
334
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
335
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
336
 
      # If we have ksh, try running configure again with it.
337
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
338
 
      export ORIGINAL_CONFIG_SHELL
339
 
      CONFIG_SHELL=/bin/ksh
340
 
      export CONFIG_SHELL
341
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
342
 
    else
343
 
      # Try using printf.
344
 
      echo='printf %s\n'
345
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
346
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
347
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
348
 
        # Cool, printf works
349
 
        :
350
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
351
 
           test "X$echo_testing_string" = 'X\t' &&
352
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
353
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
354
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
355
 
        export CONFIG_SHELL
356
 
        SHELL="$CONFIG_SHELL"
357
 
        export SHELL
358
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
359
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
360
 
           test "X$echo_testing_string" = 'X\t' &&
361
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
362
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
363
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
364
 
      else
365
 
        # maybe with a smaller string...
366
 
        prev=:
367
 
 
368
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
369
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370
 
          then
371
 
            break
372
 
          fi
373
 
          prev="$cmd"
374
 
        done
375
 
 
376
 
        if test "$prev" != 'sed 50q "$0"'; then
377
 
          echo_test_string=`eval $prev`
378
 
          export echo_test_string
379
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
380
 
        else
381
 
          # Oops.  We lost completely, so just stick with echo.
382
 
          echo=echo
383
 
        fi
384
 
      fi
385
 
    fi
386
 
  fi
387
 
fi
388
 
fi
389
 
 
390
 
# Copy echo and quote the copy suitably for passing to libtool from
391
 
# the Makefile, instead of quoting the original, which is used later.
392
 
ECHO=$echo
393
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
394
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395
 
fi
396
 
 
397
 
 
398
 
 
399
 
 
400
 
tagnames=${tagnames+${tagnames},}CXX
401
 
 
402
 
tagnames=${tagnames+${tagnames},}F77
403
 
 
404
 
# Name of the host.
405
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
406
 
# so uname gets run too.
407
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408
 
 
409
 
exec 6>&1
410
 
 
411
 
#
412
 
# Initializations.
413
 
#
414
 
ac_default_prefix=/usr/local
415
 
ac_config_libobj_dir=.
416
 
cross_compiling=no
417
 
subdirs=
418
 
MFLAGS=
419
 
MAKEFLAGS=
420
 
SHELL=${CONFIG_SHELL-/bin/sh}
421
 
 
422
 
# Maximum number of lines to put in a shell here document.
423
 
# This variable seems obsolete.  It should probably be removed, and
424
 
# only ac_max_sed_lines should be used.
425
 
: ${ac_max_here_lines=38}
426
 
 
427
 
# Identity of this package.
428
 
PACKAGE_NAME='curl'
429
 
PACKAGE_TARNAME='curl'
430
 
PACKAGE_VERSION='-'
431
 
PACKAGE_STRING='curl -'
432
 
PACKAGE_BUGREPORT='curl-bug@haxx.se'
433
 
 
434
 
ac_unique_file="lib/urldata.h"
435
 
# Factoring default headers for most tests.
436
 
ac_includes_default="\
437
 
#include <stdio.h>
438
 
#if HAVE_SYS_TYPES_H
439
 
# include <sys/types.h>
440
 
#endif
441
 
#if HAVE_SYS_STAT_H
442
 
# include <sys/stat.h>
443
 
#endif
444
 
#if STDC_HEADERS
445
 
# include <stdlib.h>
446
 
# include <stddef.h>
447
 
#else
448
 
# if HAVE_STDLIB_H
449
 
#  include <stdlib.h>
450
 
# endif
451
 
#endif
452
 
#if HAVE_STRING_H
453
 
# if !STDC_HEADERS && HAVE_MEMORY_H
454
 
#  include <memory.h>
455
 
# endif
456
 
# include <string.h>
457
 
#endif
458
 
#if HAVE_STRINGS_H
459
 
# include <strings.h>
460
 
#endif
461
 
#if HAVE_INTTYPES_H
462
 
# include <inttypes.h>
463
 
#else
464
 
# if HAVE_STDINT_H
465
 
#  include <stdint.h>
466
 
# endif
467
 
#endif
468
 
#if HAVE_UNISTD_H
469
 
# include <unistd.h>
470
 
#endif"
471
 
 
472
 
ac_subdirs_all="$ac_subdirs_all ares"
473
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT SED AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot VERSIONNUM PKGADD_PKG PKGADD_NAME PKGADD_VENDOR build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL NO_UNDEFINED_TRUE NO_UNDEFINED_FALSE MIMPURE_TRUE MIMPURE_FALSE CURL_DISABLE_HTTP CURL_DISABLE_GOPHER CURL_DISABLE_FTP CURL_DISABLE_FILE CURL_DISABLE_LDAP CURL_DISABLE_DICT CURL_DISABLE_TELNET IPV6_ENABLED RANDOM_FILE KRB4_ENABLED PKGCONFIG OPENSSL_ENABLED CURL_CA_BUNDLE CABUNDLE_TRUE CABUNDLE_FALSE HAVE_LIBZ HAVE_LIBZ_TRUE HAVE_LIBZ_FALSE PERL NROFF MANOPT YACC USE_MANUAL_TRUE USE_MANUAL_FALSE HAVE_ARES subdirs LIBOBJS LTLIBOBJS'
474
 
ac_subst_files=''
475
 
 
476
 
# Initialize some variables set by options.
477
 
ac_init_help=
478
 
ac_init_version=false
479
 
# The variables have the same names as the options, with
480
 
# dashes changed to underlines.
481
 
cache_file=/dev/null
482
 
exec_prefix=NONE
483
 
no_create=
484
 
no_recursion=
485
 
prefix=NONE
486
 
program_prefix=NONE
487
 
program_suffix=NONE
488
 
program_transform_name=s,x,x,
489
 
silent=
490
 
site=
491
 
srcdir=
492
 
verbose=
493
 
x_includes=NONE
494
 
x_libraries=NONE
495
 
 
496
 
# Installation directory options.
497
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
498
 
# and all the variables that are supposed to be based on exec_prefix
499
 
# by default will actually change.
500
 
# Use braces instead of parens because sh, perl, etc. also accept them.
501
 
bindir='${exec_prefix}/bin'
502
 
sbindir='${exec_prefix}/sbin'
503
 
libexecdir='${exec_prefix}/libexec'
504
 
datadir='${prefix}/share'
505
 
sysconfdir='${prefix}/etc'
506
 
sharedstatedir='${prefix}/com'
507
 
localstatedir='${prefix}/var'
508
 
libdir='${exec_prefix}/lib'
509
 
includedir='${prefix}/include'
510
 
oldincludedir='/usr/include'
511
 
infodir='${prefix}/info'
512
 
mandir='${prefix}/man'
513
 
 
514
 
ac_prev=
515
 
for ac_option
516
 
do
517
 
  # If the previous option needs an argument, assign it.
518
 
  if test -n "$ac_prev"; then
519
 
    eval "$ac_prev=\$ac_option"
520
 
    ac_prev=
521
 
    continue
522
 
  fi
523
 
 
524
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
525
 
 
526
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
527
 
 
528
 
  case $ac_option in
529
 
 
530
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
531
 
    ac_prev=bindir ;;
532
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
533
 
    bindir=$ac_optarg ;;
534
 
 
535
 
  -build | --build | --buil | --bui | --bu)
536
 
    ac_prev=build_alias ;;
537
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
538
 
    build_alias=$ac_optarg ;;
539
 
 
540
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
541
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
542
 
    ac_prev=cache_file ;;
543
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
544
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
545
 
    cache_file=$ac_optarg ;;
546
 
 
547
 
  --config-cache | -C)
548
 
    cache_file=config.cache ;;
549
 
 
550
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
551
 
    ac_prev=datadir ;;
552
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
553
 
  | --da=*)
554
 
    datadir=$ac_optarg ;;
555
 
 
556
 
  -disable-* | --disable-*)
557
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
558
 
    # Reject names that are not valid shell variable names.
559
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
561
 
   { (exit 1); exit 1; }; }
562
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
563
 
    eval "enable_$ac_feature=no" ;;
564
 
 
565
 
  -enable-* | --enable-*)
566
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
567
 
    # Reject names that are not valid shell variable names.
568
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
569
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
570
 
   { (exit 1); exit 1; }; }
571
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
572
 
    case $ac_option in
573
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
574
 
      *) ac_optarg=yes ;;
575
 
    esac
576
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
577
 
 
578
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
579
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
580
 
  | --exec | --exe | --ex)
581
 
    ac_prev=exec_prefix ;;
582
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
583
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
584
 
  | --exec=* | --exe=* | --ex=*)
585
 
    exec_prefix=$ac_optarg ;;
586
 
 
587
 
  -gas | --gas | --ga | --g)
588
 
    # Obsolete; use --with-gas.
589
 
    with_gas=yes ;;
590
 
 
591
 
  -help | --help | --hel | --he | -h)
592
 
    ac_init_help=long ;;
593
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
594
 
    ac_init_help=recursive ;;
595
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
596
 
    ac_init_help=short ;;
597
 
 
598
 
  -host | --host | --hos | --ho)
599
 
    ac_prev=host_alias ;;
600
 
  -host=* | --host=* | --hos=* | --ho=*)
601
 
    host_alias=$ac_optarg ;;
602
 
 
603
 
  -includedir | --includedir | --includedi | --included | --include \
604
 
  | --includ | --inclu | --incl | --inc)
605
 
    ac_prev=includedir ;;
606
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
607
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
608
 
    includedir=$ac_optarg ;;
609
 
 
610
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
611
 
    ac_prev=infodir ;;
612
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
613
 
    infodir=$ac_optarg ;;
614
 
 
615
 
  -libdir | --libdir | --libdi | --libd)
616
 
    ac_prev=libdir ;;
617
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
618
 
    libdir=$ac_optarg ;;
619
 
 
620
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
621
 
  | --libexe | --libex | --libe)
622
 
    ac_prev=libexecdir ;;
623
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
624
 
  | --libexe=* | --libex=* | --libe=*)
625
 
    libexecdir=$ac_optarg ;;
626
 
 
627
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
628
 
  | --localstate | --localstat | --localsta | --localst \
629
 
  | --locals | --local | --loca | --loc | --lo)
630
 
    ac_prev=localstatedir ;;
631
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
632
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
633
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
634
 
    localstatedir=$ac_optarg ;;
635
 
 
636
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
637
 
    ac_prev=mandir ;;
638
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
639
 
    mandir=$ac_optarg ;;
640
 
 
641
 
  -nfp | --nfp | --nf)
642
 
    # Obsolete; use --without-fp.
643
 
    with_fp=no ;;
644
 
 
645
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
646
 
  | --no-cr | --no-c | -n)
647
 
    no_create=yes ;;
648
 
 
649
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
650
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
651
 
    no_recursion=yes ;;
652
 
 
653
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
654
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
655
 
  | --oldin | --oldi | --old | --ol | --o)
656
 
    ac_prev=oldincludedir ;;
657
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
658
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
659
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
660
 
    oldincludedir=$ac_optarg ;;
661
 
 
662
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
663
 
    ac_prev=prefix ;;
664
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
665
 
    prefix=$ac_optarg ;;
666
 
 
667
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
668
 
  | --program-pre | --program-pr | --program-p)
669
 
    ac_prev=program_prefix ;;
670
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
671
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
672
 
    program_prefix=$ac_optarg ;;
673
 
 
674
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
675
 
  | --program-suf | --program-su | --program-s)
676
 
    ac_prev=program_suffix ;;
677
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
678
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
679
 
    program_suffix=$ac_optarg ;;
680
 
 
681
 
  -program-transform-name | --program-transform-name \
682
 
  | --program-transform-nam | --program-transform-na \
683
 
  | --program-transform-n | --program-transform- \
684
 
  | --program-transform | --program-transfor \
685
 
  | --program-transfo | --program-transf \
686
 
  | --program-trans | --program-tran \
687
 
  | --progr-tra | --program-tr | --program-t)
688
 
    ac_prev=program_transform_name ;;
689
 
  -program-transform-name=* | --program-transform-name=* \
690
 
  | --program-transform-nam=* | --program-transform-na=* \
691
 
  | --program-transform-n=* | --program-transform-=* \
692
 
  | --program-transform=* | --program-transfor=* \
693
 
  | --program-transfo=* | --program-transf=* \
694
 
  | --program-trans=* | --program-tran=* \
695
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
696
 
    program_transform_name=$ac_optarg ;;
697
 
 
698
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
699
 
  | -silent | --silent | --silen | --sile | --sil)
700
 
    silent=yes ;;
701
 
 
702
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
703
 
    ac_prev=sbindir ;;
704
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
705
 
  | --sbi=* | --sb=*)
706
 
    sbindir=$ac_optarg ;;
707
 
 
708
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
709
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
710
 
  | --sharedst | --shareds | --shared | --share | --shar \
711
 
  | --sha | --sh)
712
 
    ac_prev=sharedstatedir ;;
713
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
714
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
715
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
716
 
  | --sha=* | --sh=*)
717
 
    sharedstatedir=$ac_optarg ;;
718
 
 
719
 
  -site | --site | --sit)
720
 
    ac_prev=site ;;
721
 
  -site=* | --site=* | --sit=*)
722
 
    site=$ac_optarg ;;
723
 
 
724
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
725
 
    ac_prev=srcdir ;;
726
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
727
 
    srcdir=$ac_optarg ;;
728
 
 
729
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
730
 
  | --syscon | --sysco | --sysc | --sys | --sy)
731
 
    ac_prev=sysconfdir ;;
732
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
733
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
734
 
    sysconfdir=$ac_optarg ;;
735
 
 
736
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
737
 
    ac_prev=target_alias ;;
738
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
739
 
    target_alias=$ac_optarg ;;
740
 
 
741
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
742
 
    verbose=yes ;;
743
 
 
744
 
  -version | --version | --versio | --versi | --vers | -V)
745
 
    ac_init_version=: ;;
746
 
 
747
 
  -with-* | --with-*)
748
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
749
 
    # Reject names that are not valid shell variable names.
750
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
752
 
   { (exit 1); exit 1; }; }
753
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
754
 
    case $ac_option in
755
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
756
 
      *) ac_optarg=yes ;;
757
 
    esac
758
 
    eval "with_$ac_package='$ac_optarg'" ;;
759
 
 
760
 
  -without-* | --without-*)
761
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
762
 
    # Reject names that are not valid shell variable names.
763
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
764
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
765
 
   { (exit 1); exit 1; }; }
766
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
767
 
    eval "with_$ac_package=no" ;;
768
 
 
769
 
  --x)
770
 
    # Obsolete; use --with-x.
771
 
    with_x=yes ;;
772
 
 
773
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
774
 
  | --x-incl | --x-inc | --x-in | --x-i)
775
 
    ac_prev=x_includes ;;
776
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
777
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
778
 
    x_includes=$ac_optarg ;;
779
 
 
780
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
781
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
782
 
    ac_prev=x_libraries ;;
783
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
784
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
785
 
    x_libraries=$ac_optarg ;;
786
 
 
787
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
788
 
Try \`$0 --help' for more information." >&2
789
 
   { (exit 1); exit 1; }; }
790
 
    ;;
791
 
 
792
 
  *=*)
793
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
794
 
    # Reject names that are not valid shell variable names.
795
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
796
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
797
 
   { (exit 1); exit 1; }; }
798
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
799
 
    eval "$ac_envvar='$ac_optarg'"
800
 
    export $ac_envvar ;;
801
 
 
802
 
  *)
803
 
    # FIXME: should be removed in autoconf 3.0.
804
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
805
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
806
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
807
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808
 
    ;;
809
 
 
810
 
  esac
811
 
done
812
 
 
813
 
if test -n "$ac_prev"; then
814
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
815
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
816
 
   { (exit 1); exit 1; }; }
817
 
fi
818
 
 
819
 
# Be sure to have absolute paths.
820
 
for ac_var in exec_prefix prefix
821
 
do
822
 
  eval ac_val=$`echo $ac_var`
823
 
  case $ac_val in
824
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
825
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826
 
   { (exit 1); exit 1; }; };;
827
 
  esac
828
 
done
829
 
 
830
 
# Be sure to have absolute paths.
831
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
832
 
              localstatedir libdir includedir oldincludedir infodir mandir
833
 
do
834
 
  eval ac_val=$`echo $ac_var`
835
 
  case $ac_val in
836
 
    [\\/$]* | ?:[\\/]* ) ;;
837
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
838
 
   { (exit 1); exit 1; }; };;
839
 
  esac
840
 
done
841
 
 
842
 
# There might be people who depend on the old broken behavior: `$host'
843
 
# used to hold the argument of --host etc.
844
 
# FIXME: To remove some day.
845
 
build=$build_alias
846
 
host=$host_alias
847
 
target=$target_alias
848
 
 
849
 
# FIXME: To remove some day.
850
 
if test "x$host_alias" != x; then
851
 
  if test "x$build_alias" = x; then
852
 
    cross_compiling=maybe
853
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
854
 
    If a cross compiler is detected then cross compile mode will be used." >&2
855
 
  elif test "x$build_alias" != "x$host_alias"; then
856
 
    cross_compiling=yes
857
 
  fi
858
 
fi
859
 
 
860
 
ac_tool_prefix=
861
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
862
 
 
863
 
test "$silent" = yes && exec 6>/dev/null
864
 
 
865
 
 
866
 
# Find the source files, if location was not specified.
867
 
if test -z "$srcdir"; then
868
 
  ac_srcdir_defaulted=yes
869
 
  # Try the directory containing this script, then its parent.
870
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
871
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
872
 
         X"$0" : 'X\(//\)[^/]' \| \
873
 
         X"$0" : 'X\(//\)$' \| \
874
 
         X"$0" : 'X\(/\)' \| \
875
 
         .     : '\(.\)' 2>/dev/null ||
876
 
echo X"$0" |
877
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
878
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
879
 
          /^X\(\/\/\)$/{ s//\1/; q; }
880
 
          /^X\(\/\).*/{ s//\1/; q; }
881
 
          s/.*/./; q'`
882
 
  srcdir=$ac_confdir
883
 
  if test ! -r $srcdir/$ac_unique_file; then
884
 
    srcdir=..
885
 
  fi
886
 
else
887
 
  ac_srcdir_defaulted=no
888
 
fi
889
 
if test ! -r $srcdir/$ac_unique_file; then
890
 
  if test "$ac_srcdir_defaulted" = yes; then
891
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
892
 
   { (exit 1); exit 1; }; }
893
 
  else
894
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
895
 
   { (exit 1); exit 1; }; }
896
 
  fi
897
 
fi
898
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
899
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
900
 
   { (exit 1); exit 1; }; }
901
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
902
 
ac_env_build_alias_set=${build_alias+set}
903
 
ac_env_build_alias_value=$build_alias
904
 
ac_cv_env_build_alias_set=${build_alias+set}
905
 
ac_cv_env_build_alias_value=$build_alias
906
 
ac_env_host_alias_set=${host_alias+set}
907
 
ac_env_host_alias_value=$host_alias
908
 
ac_cv_env_host_alias_set=${host_alias+set}
909
 
ac_cv_env_host_alias_value=$host_alias
910
 
ac_env_target_alias_set=${target_alias+set}
911
 
ac_env_target_alias_value=$target_alias
912
 
ac_cv_env_target_alias_set=${target_alias+set}
913
 
ac_cv_env_target_alias_value=$target_alias
914
 
ac_env_CC_set=${CC+set}
915
 
ac_env_CC_value=$CC
916
 
ac_cv_env_CC_set=${CC+set}
917
 
ac_cv_env_CC_value=$CC
918
 
ac_env_CFLAGS_set=${CFLAGS+set}
919
 
ac_env_CFLAGS_value=$CFLAGS
920
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
921
 
ac_cv_env_CFLAGS_value=$CFLAGS
922
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
923
 
ac_env_LDFLAGS_value=$LDFLAGS
924
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
925
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
926
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
927
 
ac_env_CPPFLAGS_value=$CPPFLAGS
928
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
929
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
930
 
ac_env_CPP_set=${CPP+set}
931
 
ac_env_CPP_value=$CPP
932
 
ac_cv_env_CPP_set=${CPP+set}
933
 
ac_cv_env_CPP_value=$CPP
934
 
ac_env_CXX_set=${CXX+set}
935
 
ac_env_CXX_value=$CXX
936
 
ac_cv_env_CXX_set=${CXX+set}
937
 
ac_cv_env_CXX_value=$CXX
938
 
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
939
 
ac_env_CXXFLAGS_value=$CXXFLAGS
940
 
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
941
 
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
942
 
ac_env_CXXCPP_set=${CXXCPP+set}
943
 
ac_env_CXXCPP_value=$CXXCPP
944
 
ac_cv_env_CXXCPP_set=${CXXCPP+set}
945
 
ac_cv_env_CXXCPP_value=$CXXCPP
946
 
ac_env_F77_set=${F77+set}
947
 
ac_env_F77_value=$F77
948
 
ac_cv_env_F77_set=${F77+set}
949
 
ac_cv_env_F77_value=$F77
950
 
ac_env_FFLAGS_set=${FFLAGS+set}
951
 
ac_env_FFLAGS_value=$FFLAGS
952
 
ac_cv_env_FFLAGS_set=${FFLAGS+set}
953
 
ac_cv_env_FFLAGS_value=$FFLAGS
954
 
 
955
 
#
956
 
# Report the --help message.
957
 
#
958
 
if test "$ac_init_help" = "long"; then
959
 
  # Omit some internal or obsolete options to make the list less imposing.
960
 
  # This message is too long to be a string in the A/UX 3.1 sh.
961
 
  cat <<_ACEOF
962
 
\`configure' configures curl - to adapt to many kinds of systems.
963
 
 
964
 
Usage: $0 [OPTION]... [VAR=VALUE]...
965
 
 
966
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
967
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
968
 
 
969
 
Defaults for the options are specified in brackets.
970
 
 
971
 
Configuration:
972
 
  -h, --help              display this help and exit
973
 
      --help=short        display options specific to this package
974
 
      --help=recursive    display the short help of all the included packages
975
 
  -V, --version           display version information and exit
976
 
  -q, --quiet, --silent   do not print \`checking...' messages
977
 
      --cache-file=FILE   cache test results in FILE [disabled]
978
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
979
 
  -n, --no-create         do not create output files
980
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
981
 
 
982
 
_ACEOF
983
 
 
984
 
  cat <<_ACEOF
985
 
Installation directories:
986
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
987
 
                          [$ac_default_prefix]
988
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
989
 
                          [PREFIX]
990
 
 
991
 
By default, \`make install' will install all the files in
992
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
993
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
994
 
for instance \`--prefix=\$HOME'.
995
 
 
996
 
For better control, use the options below.
997
 
 
998
 
Fine tuning of the installation directories:
999
 
  --bindir=DIR           user executables [EPREFIX/bin]
1000
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1001
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1002
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1003
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1004
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1005
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1006
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
1007
 
  --includedir=DIR       C header files [PREFIX/include]
1008
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1009
 
  --infodir=DIR          info documentation [PREFIX/info]
1010
 
  --mandir=DIR           man documentation [PREFIX/man]
1011
 
_ACEOF
1012
 
 
1013
 
  cat <<\_ACEOF
1014
 
 
1015
 
Program names:
1016
 
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1017
 
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1018
 
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1019
 
 
1020
 
System types:
1021
 
  --build=BUILD     configure for building on BUILD [guessed]
1022
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1023
 
_ACEOF
1024
 
fi
1025
 
 
1026
 
if test -n "$ac_init_help"; then
1027
 
  case $ac_init_help in
1028
 
     short | recursive ) echo "Configuration of curl -:";;
1029
 
   esac
1030
 
  cat <<\_ACEOF
1031
 
 
1032
 
Optional Features:
1033
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1034
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1035
 
  --enable-maintainer-mode  enable make rules and dependencies not useful
1036
 
                          (and sometimes confusing) to the casual installer
1037
 
  --disable-dependency-tracking  speeds up one-time build
1038
 
  --enable-dependency-tracking   do not reject slow dependency extractors
1039
 
  --disable-largefile     omit support for large files
1040
 
  --enable-shared[=PKGS]
1041
 
                          build shared libraries [default=yes]
1042
 
  --enable-static[=PKGS]
1043
 
                          build static libraries [default=yes]
1044
 
  --enable-fast-install[=PKGS]
1045
 
                          optimize for fast installation [default=yes]
1046
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
1047
 
  --enable-http           Enable HTTP support
1048
 
  --disable-http          Disable HTTP support
1049
 
  --enable-ftp            Enable FTP support
1050
 
  --disable-ftp           Disable FTP support
1051
 
  --enable-gopher         Enable GOPHER support
1052
 
  --disable-gopher        Disable GOPHER support
1053
 
  --enable-file           Enable FILE support
1054
 
  --disable-file          Disable FILE support
1055
 
  --enable-ldap           Enable LDAP support
1056
 
  --disable-ldap          Disable LDAP support
1057
 
  --enable-dict           Enable DICT support
1058
 
  --disable-dict          Disable DICT support
1059
 
  --enable-telnet         Enable TELNET support
1060
 
  --disable-telnet        Disable TELNET support
1061
 
  --enable-manual         Enable built-in manual
1062
 
  --disable-manual        Disable built-in manual
1063
 
  --enable-libgcc         use libgcc when linking
1064
 
  --enable-ipv6           Enable ipv6 (with ipv4) support
1065
 
  --disable-ipv6          Disable ipv6 support
1066
 
  --enable-nonblocking    Enable detecting how to do it
1067
 
  --disable-nonblocking   Disable non-blocking socket detection
1068
 
  --disable-thread        don't look for thread-safe functions
1069
 
  --enable-thread         look for thread-safe functions
1070
 
  --enable-debug          Enable pedantic debug options
1071
 
  --disable-debug         Disable debug options
1072
 
  --enable-ares=PATH      Enable ares for name lookups
1073
 
  --disable-ares          Disable ares for name lookups
1074
 
 
1075
 
Optional Packages:
1076
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1077
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1078
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1079
 
  --with-pic              try to use only PIC/non-PIC objects [default=use
1080
 
                          both]
1081
 
  --with-tags[=TAGS]
1082
 
                          include additional configurations [automatic]
1083
 
  --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
1084
 
  --with-random=FILE      read randomness from FILE (default=/dev/urandom)
1085
 
  --with-krb4-includes=DIR
1086
 
                          Specify location of kerberos4 headers
1087
 
  --with-krb4-libs=DIR    Specify location of kerberos4 libs
1088
 
  --with-krb4=DIR         where to look for Kerberos4
1089
 
  --with-spnego=DIR       Specify location of SPNEGO library fbopenssl
1090
 
  --with-gssapi-includes=DIR
1091
 
                          Specify location of GSSAPI header
1092
 
  --with-gssapi-libs=DIR  Specify location of GSSAPI libs
1093
 
  --with-gssapi=DIR       Where to look for GSSAPI
1094
 
  --with-ssl=PATH         where to look for SSL, PATH points to the SSL
1095
 
                          installation (default: /usr/local/ssl)
1096
 
  --without-ssl           disable SSL
1097
 
  --with-ca-bundle=FILE   File name to install the CA bundle as
1098
 
  --without-ca-bundle     Don't install the CA bundle
1099
 
  --with-zlib=PATH        search for zlib in PATH
1100
 
  --without-zlib          disable use of zlib
1101
 
 
1102
 
Some influential environment variables:
1103
 
  CC          C compiler command
1104
 
  CFLAGS      C compiler flags
1105
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1106
 
              nonstandard directory <lib dir>
1107
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1108
 
              headers in a nonstandard directory <include dir>
1109
 
  CPP         C preprocessor
1110
 
  CXX         C++ compiler command
1111
 
  CXXFLAGS    C++ compiler flags
1112
 
  CXXCPP      C++ preprocessor
1113
 
  F77         Fortran 77 compiler command
1114
 
  FFLAGS      Fortran 77 compiler flags
1115
 
 
1116
 
Use these variables to override the choices made by `configure' or to help
1117
 
it to find libraries and programs with nonstandard names/locations.
1118
 
 
1119
 
Report bugs to <curl-bug@haxx.se>.
1120
 
_ACEOF
1121
 
fi
1122
 
 
1123
 
if test "$ac_init_help" = "recursive"; then
1124
 
  # If there are subdirs, report their specific --help.
1125
 
  ac_popdir=`pwd`
1126
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1127
 
    test -d $ac_dir || continue
1128
 
    ac_builddir=.
1129
 
 
1130
 
if test "$ac_dir" != .; then
1131
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1132
 
  # A "../" for each directory in $ac_dir_suffix.
1133
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1134
 
else
1135
 
  ac_dir_suffix= ac_top_builddir=
1136
 
fi
1137
 
 
1138
 
case $srcdir in
1139
 
  .)  # No --srcdir option.  We are building in place.
1140
 
    ac_srcdir=.
1141
 
    if test -z "$ac_top_builddir"; then
1142
 
       ac_top_srcdir=.
1143
 
    else
1144
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1145
 
    fi ;;
1146
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
1147
 
    ac_srcdir=$srcdir$ac_dir_suffix;
1148
 
    ac_top_srcdir=$srcdir ;;
1149
 
  *) # Relative path.
1150
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1151
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1152
 
esac
1153
 
 
1154
 
# Do not use `cd foo && pwd` to compute absolute paths, because
1155
 
# the directories may not exist.
1156
 
case `pwd` in
1157
 
.) ac_abs_builddir="$ac_dir";;
1158
 
*)
1159
 
  case "$ac_dir" in
1160
 
  .) ac_abs_builddir=`pwd`;;
1161
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1162
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1163
 
  esac;;
1164
 
esac
1165
 
case $ac_abs_builddir in
1166
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1167
 
*)
1168
 
  case ${ac_top_builddir}. in
1169
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1170
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1171
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1172
 
  esac;;
1173
 
esac
1174
 
case $ac_abs_builddir in
1175
 
.) ac_abs_srcdir=$ac_srcdir;;
1176
 
*)
1177
 
  case $ac_srcdir in
1178
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
1179
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1180
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1181
 
  esac;;
1182
 
esac
1183
 
case $ac_abs_builddir in
1184
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1185
 
*)
1186
 
  case $ac_top_srcdir in
1187
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1188
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1189
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1190
 
  esac;;
1191
 
esac
1192
 
 
1193
 
    cd $ac_dir
1194
 
    # Check for guested configure; otherwise get Cygnus style configure.
1195
 
    if test -f $ac_srcdir/configure.gnu; then
1196
 
      echo
1197
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1198
 
    elif test -f $ac_srcdir/configure; then
1199
 
      echo
1200
 
      $SHELL $ac_srcdir/configure  --help=recursive
1201
 
    elif test -f $ac_srcdir/configure.ac ||
1202
 
           test -f $ac_srcdir/configure.in; then
1203
 
      echo
1204
 
      $ac_configure --help
1205
 
    else
1206
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1207
 
    fi
1208
 
    cd $ac_popdir
1209
 
  done
1210
 
fi
1211
 
 
1212
 
test -n "$ac_init_help" && exit 0
1213
 
if $ac_init_version; then
1214
 
  cat <<\_ACEOF
1215
 
curl configure -
1216
 
generated by GNU Autoconf 2.59
1217
 
 
1218
 
Copyright (C) 2003 Free Software Foundation, Inc.
1219
 
This configure script is free software; the Free Software Foundation
1220
 
gives unlimited permission to copy, distribute and modify it.
1221
 
 
1222
 
Copyright (c) 1998 - 2004 Daniel Stenberg, <daniel@haxx.se>
1223
 
This configure script may be copied, distributed and modified under the
1224
 
terms of the curl license; see COPYING for more details
1225
 
_ACEOF
1226
 
  exit 0
1227
 
fi
1228
 
exec 5>config.log
1229
 
cat >&5 <<_ACEOF
1230
 
This file contains any messages produced by compilers while
1231
 
running configure, to aid debugging if configure makes a mistake.
1232
 
 
1233
 
It was created by curl $as_me -, which was
1234
 
generated by GNU Autoconf 2.59.  Invocation command line was
1235
 
 
1236
 
  $ $0 $@
1237
 
 
1238
 
_ACEOF
1239
 
{
1240
 
cat <<_ASUNAME
1241
 
## --------- ##
1242
 
## Platform. ##
1243
 
## --------- ##
1244
 
 
1245
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1246
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1247
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1248
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1249
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1250
 
 
1251
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1252
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1253
 
 
1254
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1255
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1256
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1257
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1258
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1259
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1260
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1261
 
 
1262
 
_ASUNAME
1263
 
 
1264
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1265
 
for as_dir in $PATH
1266
 
do
1267
 
  IFS=$as_save_IFS
1268
 
  test -z "$as_dir" && as_dir=.
1269
 
  echo "PATH: $as_dir"
1270
 
done
1271
 
 
1272
 
} >&5
1273
 
 
1274
 
cat >&5 <<_ACEOF
1275
 
 
1276
 
 
1277
 
## ----------- ##
1278
 
## Core tests. ##
1279
 
## ----------- ##
1280
 
 
1281
 
_ACEOF
1282
 
 
1283
 
 
1284
 
# Keep a trace of the command line.
1285
 
# Strip out --no-create and --no-recursion so they do not pile up.
1286
 
# Strip out --silent because we don't want to record it for future runs.
1287
 
# Also quote any args containing shell meta-characters.
1288
 
# Make two passes to allow for proper duplicate-argument suppression.
1289
 
ac_configure_args=
1290
 
ac_configure_args0=
1291
 
ac_configure_args1=
1292
 
ac_sep=
1293
 
ac_must_keep_next=false
1294
 
for ac_pass in 1 2
1295
 
do
1296
 
  for ac_arg
1297
 
  do
1298
 
    case $ac_arg in
1299
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1300
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1301
 
    | -silent | --silent | --silen | --sile | --sil)
1302
 
      continue ;;
1303
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1304
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1305
 
    esac
1306
 
    case $ac_pass in
1307
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1308
 
    2)
1309
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1310
 
      if test $ac_must_keep_next = true; then
1311
 
        ac_must_keep_next=false # Got value, back to normal.
1312
 
      else
1313
 
        case $ac_arg in
1314
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1315
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1316
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1317
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1318
 
            case "$ac_configure_args0 " in
1319
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1320
 
            esac
1321
 
            ;;
1322
 
          -* ) ac_must_keep_next=true ;;
1323
 
        esac
1324
 
      fi
1325
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1326
 
      # Get rid of the leading space.
1327
 
      ac_sep=" "
1328
 
      ;;
1329
 
    esac
1330
 
  done
1331
 
done
1332
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1333
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1334
 
 
1335
 
# When interrupted or exit'd, cleanup temporary files, and complete
1336
 
# config.log.  We remove comments because anyway the quotes in there
1337
 
# would cause problems or look ugly.
1338
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1339
 
# such as our DU 5.0 friend, will then `close' the trap.
1340
 
trap 'exit_status=$?
1341
 
  # Save into config.log some information that might help in debugging.
1342
 
  {
1343
 
    echo
1344
 
 
1345
 
    cat <<\_ASBOX
1346
 
## ---------------- ##
1347
 
## Cache variables. ##
1348
 
## ---------------- ##
1349
 
_ASBOX
1350
 
    echo
1351
 
    # The following way of writing the cache mishandles newlines in values,
1352
 
{
1353
 
  (set) 2>&1 |
1354
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1355
 
    *ac_space=\ *)
1356
 
      sed -n \
1357
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1358
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1359
 
      ;;
1360
 
    *)
1361
 
      sed -n \
1362
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1363
 
      ;;
1364
 
    esac;
1365
 
}
1366
 
    echo
1367
 
 
1368
 
    cat <<\_ASBOX
1369
 
## ----------------- ##
1370
 
## Output variables. ##
1371
 
## ----------------- ##
1372
 
_ASBOX
1373
 
    echo
1374
 
    for ac_var in $ac_subst_vars
1375
 
    do
1376
 
      eval ac_val=$`echo $ac_var`
1377
 
      echo "$ac_var='"'"'$ac_val'"'"'"
1378
 
    done | sort
1379
 
    echo
1380
 
 
1381
 
    if test -n "$ac_subst_files"; then
1382
 
      cat <<\_ASBOX
1383
 
## ------------- ##
1384
 
## Output files. ##
1385
 
## ------------- ##
1386
 
_ASBOX
1387
 
      echo
1388
 
      for ac_var in $ac_subst_files
1389
 
      do
1390
 
        eval ac_val=$`echo $ac_var`
1391
 
        echo "$ac_var='"'"'$ac_val'"'"'"
1392
 
      done | sort
1393
 
      echo
1394
 
    fi
1395
 
 
1396
 
    if test -s confdefs.h; then
1397
 
      cat <<\_ASBOX
1398
 
## ----------- ##
1399
 
## confdefs.h. ##
1400
 
## ----------- ##
1401
 
_ASBOX
1402
 
      echo
1403
 
      sed "/^$/d" confdefs.h | sort
1404
 
      echo
1405
 
    fi
1406
 
    test "$ac_signal" != 0 &&
1407
 
      echo "$as_me: caught signal $ac_signal"
1408
 
    echo "$as_me: exit $exit_status"
1409
 
  } >&5
1410
 
  rm -f core *.core &&
1411
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1412
 
    exit $exit_status
1413
 
     ' 0
1414
 
for ac_signal in 1 2 13 15; do
1415
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1416
 
done
1417
 
ac_signal=0
1418
 
 
1419
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1420
 
rm -rf conftest* confdefs.h
1421
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1422
 
echo >confdefs.h
1423
 
 
1424
 
# Predefined preprocessor variables.
1425
 
 
1426
 
cat >>confdefs.h <<_ACEOF
1427
 
#define PACKAGE_NAME "$PACKAGE_NAME"
1428
 
_ACEOF
1429
 
 
1430
 
 
1431
 
cat >>confdefs.h <<_ACEOF
1432
 
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1433
 
_ACEOF
1434
 
 
1435
 
 
1436
 
cat >>confdefs.h <<_ACEOF
1437
 
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1438
 
_ACEOF
1439
 
 
1440
 
 
1441
 
cat >>confdefs.h <<_ACEOF
1442
 
#define PACKAGE_STRING "$PACKAGE_STRING"
1443
 
_ACEOF
1444
 
 
1445
 
 
1446
 
cat >>confdefs.h <<_ACEOF
1447
 
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1448
 
_ACEOF
1449
 
 
1450
 
 
1451
 
# Let the site file select an alternate cache file if it wants to.
1452
 
# Prefer explicitly selected file to automatically selected ones.
1453
 
if test -z "$CONFIG_SITE"; then
1454
 
  if test "x$prefix" != xNONE; then
1455
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1456
 
  else
1457
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1458
 
  fi
1459
 
fi
1460
 
for ac_site_file in $CONFIG_SITE; do
1461
 
  if test -r "$ac_site_file"; then
1462
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1463
 
echo "$as_me: loading site script $ac_site_file" >&6;}
1464
 
    sed 's/^/| /' "$ac_site_file" >&5
1465
 
    . "$ac_site_file"
1466
 
  fi
1467
 
done
1468
 
 
1469
 
if test -r "$cache_file"; then
1470
 
  # Some versions of bash will fail to source /dev/null (special
1471
 
  # files actually), so we avoid doing that.
1472
 
  if test -f "$cache_file"; then
1473
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1474
 
echo "$as_me: loading cache $cache_file" >&6;}
1475
 
    case $cache_file in
1476
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1477
 
      *)                      . ./$cache_file;;
1478
 
    esac
1479
 
  fi
1480
 
else
1481
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1482
 
echo "$as_me: creating cache $cache_file" >&6;}
1483
 
  >$cache_file
1484
 
fi
1485
 
 
1486
 
# Check that the precious variables saved in the cache have kept the same
1487
 
# value.
1488
 
ac_cache_corrupted=false
1489
 
for ac_var in `(set) 2>&1 |
1490
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1491
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1492
 
  eval ac_new_set=\$ac_env_${ac_var}_set
1493
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1494
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
1495
 
  case $ac_old_set,$ac_new_set in
1496
 
    set,)
1497
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1498
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1499
 
      ac_cache_corrupted=: ;;
1500
 
    ,set)
1501
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1502
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1503
 
      ac_cache_corrupted=: ;;
1504
 
    ,);;
1505
 
    *)
1506
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
1507
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1508
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1509
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1510
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1511
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1512
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1513
 
        ac_cache_corrupted=:
1514
 
      fi;;
1515
 
  esac
1516
 
  # Pass precious variables to config.status.
1517
 
  if test "$ac_new_set" = set; then
1518
 
    case $ac_new_val in
1519
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1520
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1521
 
    *) ac_arg=$ac_var=$ac_new_val ;;
1522
 
    esac
1523
 
    case " $ac_configure_args " in
1524
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1525
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1526
 
    esac
1527
 
  fi
1528
 
done
1529
 
if $ac_cache_corrupted; then
1530
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1531
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1532
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1533
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1534
 
   { (exit 1); exit 1; }; }
1535
 
fi
1536
 
 
1537
 
ac_ext=c
1538
 
ac_cpp='$CPP $CPPFLAGS'
1539
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1540
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1541
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1542
 
 
1543
 
 
1544
 
 
1545
 
 
1546
 
 
1547
 
 
1548
 
 
1549
 
 
1550
 
 
1551
 
 
1552
 
 
1553
 
 
1554
 
 
1555
 
 
1556
 
 
1557
 
 
1558
 
 
1559
 
 
1560
 
 
1561
 
 
1562
 
 
1563
 
 
1564
 
 
1565
 
 
1566
 
 
1567
 
 
1568
 
 
1569
 
 
1570
 
 
1571
 
 
1572
 
 
1573
 
                    ac_config_headers="$ac_config_headers lib/config.h src/config.h"
1574
 
 
1575
 
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1576
 
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1577
 
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1578
 
if test "${enable_maintainer_mode+set}" = set; then
1579
 
  enableval="$enable_maintainer_mode"
1580
 
  USE_MAINTAINER_MODE=$enableval
1581
 
else
1582
 
  USE_MAINTAINER_MODE=no
1583
 
fi;
1584
 
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1585
 
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1586
 
 
1587
 
 
1588
 
if test $USE_MAINTAINER_MODE = yes; then
1589
 
  MAINTAINER_MODE_TRUE=
1590
 
  MAINTAINER_MODE_FALSE='#'
1591
 
else
1592
 
  MAINTAINER_MODE_TRUE='#'
1593
 
  MAINTAINER_MODE_FALSE=
1594
 
fi
1595
 
 
1596
 
  MAINT=$MAINTAINER_MODE_TRUE
1597
 
 
1598
 
 
1599
 
 
1600
 
# Extract the first word of "sed", so it can be a program name with args.
1601
 
set dummy sed; ac_word=$2
1602
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1603
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604
 
if test "${ac_cv_path_SED+set}" = set; then
1605
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1606
 
else
1607
 
  case $SED in
1608
 
  [\\/]* | ?:[\\/]*)
1609
 
  ac_cv_path_SED="$SED" # Let the user override the test with a path.
1610
 
  ;;
1611
 
  *)
1612
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613
 
as_dummy="$PATH:/usr/bin:/usr/local/bin"
1614
 
for as_dir in $as_dummy
1615
 
do
1616
 
  IFS=$as_save_IFS
1617
 
  test -z "$as_dir" && as_dir=.
1618
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1619
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620
 
    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
1621
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622
 
    break 2
1623
 
  fi
1624
 
done
1625
 
done
1626
 
 
1627
 
  ;;
1628
 
esac
1629
 
fi
1630
 
SED=$ac_cv_path_SED
1631
 
 
1632
 
if test -n "$SED"; then
1633
 
  echo "$as_me:$LINENO: result: $SED" >&5
1634
 
echo "${ECHO_T}$SED" >&6
1635
 
else
1636
 
  echo "$as_me:$LINENO: result: no" >&5
1637
 
echo "${ECHO_T}no" >&6
1638
 
fi
1639
 
 
1640
 
 
1641
 
 
1642
 
# Extract the first word of "ar", so it can be a program name with args.
1643
 
set dummy ar; ac_word=$2
1644
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1645
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646
 
if test "${ac_cv_path_AR+set}" = set; then
1647
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1648
 
else
1649
 
  case $AR in
1650
 
  [\\/]* | ?:[\\/]*)
1651
 
  ac_cv_path_AR="$AR" # Let the user override the test with a path.
1652
 
  ;;
1653
 
  *)
1654
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655
 
as_dummy="$PATH:/usr/bin:/usr/local/bin:/usr/ccs/bin"
1656
 
for as_dir in $as_dummy
1657
 
do
1658
 
  IFS=$as_save_IFS
1659
 
  test -z "$as_dir" && as_dir=.
1660
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1661
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662
 
    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
1663
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664
 
    break 2
1665
 
  fi
1666
 
done
1667
 
done
1668
 
 
1669
 
  ;;
1670
 
esac
1671
 
fi
1672
 
AR=$ac_cv_path_AR
1673
 
 
1674
 
if test -n "$AR"; then
1675
 
  echo "$as_me:$LINENO: result: $AR" >&5
1676
 
echo "${ECHO_T}$AR" >&6
1677
 
else
1678
 
  echo "$as_me:$LINENO: result: no" >&5
1679
 
echo "${ECHO_T}no" >&6
1680
 
fi
1681
 
 
1682
 
 
1683
 
 
1684
 
VERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
1685
 
am__api_version="1.8"
1686
 
ac_aux_dir=
1687
 
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1688
 
  if test -f $ac_dir/install-sh; then
1689
 
    ac_aux_dir=$ac_dir
1690
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
1691
 
    break
1692
 
  elif test -f $ac_dir/install.sh; then
1693
 
    ac_aux_dir=$ac_dir
1694
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
1695
 
    break
1696
 
  elif test -f $ac_dir/shtool; then
1697
 
    ac_aux_dir=$ac_dir
1698
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
1699
 
    break
1700
 
  fi
1701
 
done
1702
 
if test -z "$ac_aux_dir"; then
1703
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1704
 
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1705
 
   { (exit 1); exit 1; }; }
1706
 
fi
1707
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1708
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1709
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1710
 
 
1711
 
# Find a good install program.  We prefer a C program (faster),
1712
 
# so one script is as good as another.  But avoid the broken or
1713
 
# incompatible versions:
1714
 
# SysV /etc/install, /usr/sbin/install
1715
 
# SunOS /usr/etc/install
1716
 
# IRIX /sbin/install
1717
 
# AIX /bin/install
1718
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
1719
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1720
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1721
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1722
 
# OS/2's system install, which has a completely different semantic
1723
 
# ./install, which can be erroneously created by make from ./install.sh.
1724
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1725
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1726
 
if test -z "$INSTALL"; then
1727
 
if test "${ac_cv_path_install+set}" = set; then
1728
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1729
 
else
1730
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731
 
for as_dir in $PATH
1732
 
do
1733
 
  IFS=$as_save_IFS
1734
 
  test -z "$as_dir" && as_dir=.
1735
 
  # Account for people who put trailing slashes in PATH elements.
1736
 
case $as_dir/ in
1737
 
  ./ | .// | /cC/* | \
1738
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1739
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1740
 
  /usr/ucb/* ) ;;
1741
 
  *)
1742
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
1743
 
    # Don't use installbsd from OSF since it installs stuff as root
1744
 
    # by default.
1745
 
    for ac_prog in ginstall scoinst install; do
1746
 
      for ac_exec_ext in '' $ac_executable_extensions; do
1747
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1748
 
          if test $ac_prog = install &&
1749
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1750
 
            # AIX install.  It has an incompatible calling convention.
1751
 
            :
1752
 
          elif test $ac_prog = install &&
1753
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1754
 
            # program-specific install script used by HP pwplus--don't use.
1755
 
            :
1756
 
          else
1757
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1758
 
            break 3
1759
 
          fi
1760
 
        fi
1761
 
      done
1762
 
    done
1763
 
    ;;
1764
 
esac
1765
 
done
1766
 
 
1767
 
 
1768
 
fi
1769
 
  if test "${ac_cv_path_install+set}" = set; then
1770
 
    INSTALL=$ac_cv_path_install
1771
 
  else
1772
 
    # As a last resort, use the slow shell script.  We don't cache a
1773
 
    # path for INSTALL within a source directory, because that will
1774
 
    # break other packages using the cache if that directory is
1775
 
    # removed, or if the path is relative.
1776
 
    INSTALL=$ac_install_sh
1777
 
  fi
1778
 
fi
1779
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
1780
 
echo "${ECHO_T}$INSTALL" >&6
1781
 
 
1782
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1783
 
# It thinks the first close brace ends the variable substitution.
1784
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1785
 
 
1786
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1787
 
 
1788
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1789
 
 
1790
 
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1791
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1792
 
# Just in case
1793
 
sleep 1
1794
 
echo timestamp > conftest.file
1795
 
# Do `set' in a subshell so we don't clobber the current shell's
1796
 
# arguments.  Must try -L first in case configure is actually a
1797
 
# symlink; some systems play weird games with the mod time of symlinks
1798
 
# (eg FreeBSD returns the mod time of the symlink's containing
1799
 
# directory).
1800
 
if (
1801
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1802
 
   if test "$*" = "X"; then
1803
 
      # -L didn't work.
1804
 
      set X `ls -t $srcdir/configure conftest.file`
1805
 
   fi
1806
 
   rm -f conftest.file
1807
 
   if test "$*" != "X $srcdir/configure conftest.file" \
1808
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
1809
 
 
1810
 
      # If neither matched, then we have a broken ls.  This can happen
1811
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1812
 
      # broken ls alias from the environment.  This has actually
1813
 
      # happened.  Such a system could not be considered "sane".
1814
 
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1815
 
alias in your environment" >&5
1816
 
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1817
 
alias in your environment" >&2;}
1818
 
   { (exit 1); exit 1; }; }
1819
 
   fi
1820
 
 
1821
 
   test "$2" = conftest.file
1822
 
   )
1823
 
then
1824
 
   # Ok.
1825
 
   :
1826
 
else
1827
 
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1828
 
Check your system clock" >&5
1829
 
echo "$as_me: error: newly created file is older than distributed files!
1830
 
Check your system clock" >&2;}
1831
 
   { (exit 1); exit 1; }; }
1832
 
fi
1833
 
echo "$as_me:$LINENO: result: yes" >&5
1834
 
echo "${ECHO_T}yes" >&6
1835
 
test "$program_prefix" != NONE &&
1836
 
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1837
 
# Use a double $ so make ignores it.
1838
 
test "$program_suffix" != NONE &&
1839
 
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1840
 
# Double any \ or $.  echo might interpret backslashes.
1841
 
# By default was `s,x,x', remove it if useless.
1842
 
cat <<\_ACEOF >conftest.sed
1843
 
s/[\\$]/&&/g;s/;s,x,x,$//
1844
 
_ACEOF
1845
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1846
 
rm conftest.sed
1847
 
 
1848
 
# expand $ac_aux_dir to an absolute path
1849
 
am_aux_dir=`cd $ac_aux_dir && pwd`
1850
 
 
1851
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1852
 
# Use eval to expand $SHELL
1853
 
if eval "$MISSING --run true"; then
1854
 
  am_missing_run="$MISSING --run "
1855
 
else
1856
 
  am_missing_run=
1857
 
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1858
 
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1859
 
fi
1860
 
 
1861
 
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1862
 
  # Keeping the `.' argument allows $(mkdir_p) to be used without
1863
 
  # argument.  Indeed, we sometimes output rules like
1864
 
  #   $(mkdir_p) $(somedir)
1865
 
  # where $(somedir) is conditionally defined.
1866
 
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1867
 
  # expensive solution, as it forces Make to start a sub-shell.)
1868
 
  mkdir_p='mkdir -p -- .'
1869
 
else
1870
 
  # On NextStep and OpenStep, the `mkdir' command does not
1871
 
  # recognize any option.  It will interpret all options as
1872
 
  # directories to create, and then abort because `.' already
1873
 
  # exists.
1874
 
  for d in ./-p ./--version;
1875
 
  do
1876
 
    test -d $d && rmdir $d
1877
 
  done
1878
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1879
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1880
 
    mkdir_p='$(mkinstalldirs)'
1881
 
  else
1882
 
    mkdir_p='$(install_sh) -d'
1883
 
  fi
1884
 
fi
1885
 
 
1886
 
for ac_prog in gawk mawk nawk awk
1887
 
do
1888
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1889
 
set dummy $ac_prog; ac_word=$2
1890
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1891
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892
 
if test "${ac_cv_prog_AWK+set}" = set; then
1893
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1894
 
else
1895
 
  if test -n "$AWK"; then
1896
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1897
 
else
1898
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899
 
for as_dir in $PATH
1900
 
do
1901
 
  IFS=$as_save_IFS
1902
 
  test -z "$as_dir" && as_dir=.
1903
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1904
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905
 
    ac_cv_prog_AWK="$ac_prog"
1906
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907
 
    break 2
1908
 
  fi
1909
 
done
1910
 
done
1911
 
 
1912
 
fi
1913
 
fi
1914
 
AWK=$ac_cv_prog_AWK
1915
 
if test -n "$AWK"; then
1916
 
  echo "$as_me:$LINENO: result: $AWK" >&5
1917
 
echo "${ECHO_T}$AWK" >&6
1918
 
else
1919
 
  echo "$as_me:$LINENO: result: no" >&5
1920
 
echo "${ECHO_T}no" >&6
1921
 
fi
1922
 
 
1923
 
  test -n "$AWK" && break
1924
 
done
1925
 
 
1926
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1927
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1928
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1929
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1930
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1931
 
else
1932
 
  cat >conftest.make <<\_ACEOF
1933
 
all:
1934
 
        @echo 'ac_maketemp="$(MAKE)"'
1935
 
_ACEOF
1936
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1937
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1938
 
if test -n "$ac_maketemp"; then
1939
 
  eval ac_cv_prog_make_${ac_make}_set=yes
1940
 
else
1941
 
  eval ac_cv_prog_make_${ac_make}_set=no
1942
 
fi
1943
 
rm -f conftest.make
1944
 
fi
1945
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1946
 
  echo "$as_me:$LINENO: result: yes" >&5
1947
 
echo "${ECHO_T}yes" >&6
1948
 
  SET_MAKE=
1949
 
else
1950
 
  echo "$as_me:$LINENO: result: no" >&5
1951
 
echo "${ECHO_T}no" >&6
1952
 
  SET_MAKE="MAKE=${MAKE-make}"
1953
 
fi
1954
 
 
1955
 
rm -rf .tst 2>/dev/null
1956
 
mkdir .tst 2>/dev/null
1957
 
if test -d .tst; then
1958
 
  am__leading_dot=.
1959
 
else
1960
 
  am__leading_dot=_
1961
 
fi
1962
 
rmdir .tst 2>/dev/null
1963
 
 
1964
 
# test to see if srcdir already configured
1965
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1966
 
   test -f $srcdir/config.status; then
1967
 
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1968
 
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1969
 
   { (exit 1); exit 1; }; }
1970
 
fi
1971
 
 
1972
 
# test whether we have cygpath
1973
 
if test -z "$CYGPATH_W"; then
1974
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
1975
 
    CYGPATH_W='cygpath -w'
1976
 
  else
1977
 
    CYGPATH_W=echo
1978
 
  fi
1979
 
fi
1980
 
 
1981
 
 
1982
 
# Define the identity of the package.
1983
 
 PACKAGE=curl
1984
 
 VERSION=$VERSION
1985
 
 
1986
 
 
1987
 
cat >>confdefs.h <<_ACEOF
1988
 
#define PACKAGE "$PACKAGE"
1989
 
_ACEOF
1990
 
 
1991
 
 
1992
 
cat >>confdefs.h <<_ACEOF
1993
 
#define VERSION "$VERSION"
1994
 
_ACEOF
1995
 
 
1996
 
# Some tools Automake needs.
1997
 
 
1998
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1999
 
 
2000
 
 
2001
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2002
 
 
2003
 
 
2004
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2005
 
 
2006
 
 
2007
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2008
 
 
2009
 
 
2010
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2011
 
 
2012
 
 
2013
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
2014
 
 
2015
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2016
 
 
2017
 
# Installed binaries are usually stripped using `strip' when the user
2018
 
# run `make install-strip'.  However `strip' might not be the right
2019
 
# tool to use in cross-compilation environments, therefore Automake
2020
 
# will honor the `STRIP' environment variable to overrule this program.
2021
 
if test "$cross_compiling" != no; then
2022
 
  if test -n "$ac_tool_prefix"; then
2023
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2024
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2025
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2026
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027
 
if test "${ac_cv_prog_STRIP+set}" = set; then
2028
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2029
 
else
2030
 
  if test -n "$STRIP"; then
2031
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2032
 
else
2033
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034
 
for as_dir in $PATH
2035
 
do
2036
 
  IFS=$as_save_IFS
2037
 
  test -z "$as_dir" && as_dir=.
2038
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2039
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2041
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042
 
    break 2
2043
 
  fi
2044
 
done
2045
 
done
2046
 
 
2047
 
fi
2048
 
fi
2049
 
STRIP=$ac_cv_prog_STRIP
2050
 
if test -n "$STRIP"; then
2051
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
2052
 
echo "${ECHO_T}$STRIP" >&6
2053
 
else
2054
 
  echo "$as_me:$LINENO: result: no" >&5
2055
 
echo "${ECHO_T}no" >&6
2056
 
fi
2057
 
 
2058
 
fi
2059
 
if test -z "$ac_cv_prog_STRIP"; then
2060
 
  ac_ct_STRIP=$STRIP
2061
 
  # Extract the first word of "strip", so it can be a program name with args.
2062
 
set dummy strip; ac_word=$2
2063
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2064
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2066
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2067
 
else
2068
 
  if test -n "$ac_ct_STRIP"; then
2069
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2070
 
else
2071
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072
 
for as_dir in $PATH
2073
 
do
2074
 
  IFS=$as_save_IFS
2075
 
  test -z "$as_dir" && as_dir=.
2076
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2077
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2078
 
    ac_cv_prog_ac_ct_STRIP="strip"
2079
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080
 
    break 2
2081
 
  fi
2082
 
done
2083
 
done
2084
 
 
2085
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2086
 
fi
2087
 
fi
2088
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2089
 
if test -n "$ac_ct_STRIP"; then
2090
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2091
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
2092
 
else
2093
 
  echo "$as_me:$LINENO: result: no" >&5
2094
 
echo "${ECHO_T}no" >&6
2095
 
fi
2096
 
 
2097
 
  STRIP=$ac_ct_STRIP
2098
 
else
2099
 
  STRIP="$ac_cv_prog_STRIP"
2100
 
fi
2101
 
 
2102
 
fi
2103
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2104
 
 
2105
 
# We need awk for the "check" target.  The system "awk" is bad on
2106
 
# some platforms.
2107
 
 
2108
 
 
2109
 
 
2110
 
echo "$as_me:$LINENO: checking curl version" >&5
2111
 
echo $ECHO_N "checking curl version... $ECHO_C" >&6
2112
 
echo "$as_me:$LINENO: result: $VERSION" >&5
2113
 
echo "${ECHO_T}$VERSION" >&6
2114
 
 
2115
 
VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
2116
 
 
2117
 
 
2118
 
PKGADD_PKG="HAXXcurl"
2119
 
PKGADD_NAME="cURL - a client that groks URLs"
2120
 
PKGADD_VENDOR="curl.haxx.se"
2121
 
 
2122
 
 
2123
 
 
2124
 
 
2125
 
 
2126
 
 
2127
 
# Make sure we can run config.sub.
2128
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
2129
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2130
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2131
 
   { (exit 1); exit 1; }; }
2132
 
 
2133
 
echo "$as_me:$LINENO: checking build system type" >&5
2134
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2135
 
if test "${ac_cv_build+set}" = set; then
2136
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2137
 
else
2138
 
  ac_cv_build_alias=$build_alias
2139
 
test -z "$ac_cv_build_alias" &&
2140
 
  ac_cv_build_alias=`$ac_config_guess`
2141
 
test -z "$ac_cv_build_alias" &&
2142
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2143
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2144
 
   { (exit 1); exit 1; }; }
2145
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2146
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2147
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2148
 
   { (exit 1); exit 1; }; }
2149
 
 
2150
 
fi
2151
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2152
 
echo "${ECHO_T}$ac_cv_build" >&6
2153
 
build=$ac_cv_build
2154
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2155
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2156
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2157
 
 
2158
 
 
2159
 
echo "$as_me:$LINENO: checking host system type" >&5
2160
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2161
 
if test "${ac_cv_host+set}" = set; then
2162
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2163
 
else
2164
 
  ac_cv_host_alias=$host_alias
2165
 
test -z "$ac_cv_host_alias" &&
2166
 
  ac_cv_host_alias=$ac_cv_build_alias
2167
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2168
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2169
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2170
 
   { (exit 1); exit 1; }; }
2171
 
 
2172
 
fi
2173
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2174
 
echo "${ECHO_T}$ac_cv_host" >&6
2175
 
host=$ac_cv_host
2176
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2177
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2178
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2179
 
 
2180
 
 
2181
 
 
2182
 
cat >>confdefs.h <<_ACEOF
2183
 
#define OS "${host}"
2184
 
_ACEOF
2185
 
 
2186
 
 
2187
 
DEPDIR="${am__leading_dot}deps"
2188
 
 
2189
 
          ac_config_commands="$ac_config_commands depfiles"
2190
 
 
2191
 
 
2192
 
am_make=${MAKE-make}
2193
 
cat > confinc << 'END'
2194
 
am__doit:
2195
 
        @echo done
2196
 
.PHONY: am__doit
2197
 
END
2198
 
# If we don't find an include directive, just comment out the code.
2199
 
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2200
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2201
 
am__include="#"
2202
 
am__quote=
2203
 
_am_result=none
2204
 
# First try GNU make style include.
2205
 
echo "include confinc" > confmf
2206
 
# We grep out `Entering directory' and `Leaving directory'
2207
 
# messages which can occur if `w' ends up in MAKEFLAGS.
2208
 
# In particular we don't look at `^make:' because GNU make might
2209
 
# be invoked under some other name (usually "gmake"), in which
2210
 
# case it prints its new name instead of `make'.
2211
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2212
 
   am__include=include
2213
 
   am__quote=
2214
 
   _am_result=GNU
2215
 
fi
2216
 
# Now try BSD make style include.
2217
 
if test "$am__include" = "#"; then
2218
 
   echo '.include "confinc"' > confmf
2219
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2220
 
      am__include=.include
2221
 
      am__quote="\""
2222
 
      _am_result=BSD
2223
 
   fi
2224
 
fi
2225
 
 
2226
 
 
2227
 
echo "$as_me:$LINENO: result: $_am_result" >&5
2228
 
echo "${ECHO_T}$_am_result" >&6
2229
 
rm -f confinc confmf
2230
 
 
2231
 
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2232
 
if test "${enable_dependency_tracking+set}" = set; then
2233
 
  enableval="$enable_dependency_tracking"
2234
 
 
2235
 
fi;
2236
 
if test "x$enable_dependency_tracking" != xno; then
2237
 
  am_depcomp="$ac_aux_dir/depcomp"
2238
 
  AMDEPBACKSLASH='\'
2239
 
fi
2240
 
 
2241
 
 
2242
 
if test "x$enable_dependency_tracking" != xno; then
2243
 
  AMDEP_TRUE=
2244
 
  AMDEP_FALSE='#'
2245
 
else
2246
 
  AMDEP_TRUE='#'
2247
 
  AMDEP_FALSE=
2248
 
fi
2249
 
 
2250
 
 
2251
 
 
2252
 
ac_ext=c
2253
 
ac_cpp='$CPP $CPPFLAGS'
2254
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2255
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2256
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2257
 
if test -n "$ac_tool_prefix"; then
2258
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2259
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2260
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2261
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262
 
if test "${ac_cv_prog_CC+set}" = set; then
2263
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2264
 
else
2265
 
  if test -n "$CC"; then
2266
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2267
 
else
2268
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269
 
for as_dir in $PATH
2270
 
do
2271
 
  IFS=$as_save_IFS
2272
 
  test -z "$as_dir" && as_dir=.
2273
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2274
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2275
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2276
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277
 
    break 2
2278
 
  fi
2279
 
done
2280
 
done
2281
 
 
2282
 
fi
2283
 
fi
2284
 
CC=$ac_cv_prog_CC
2285
 
if test -n "$CC"; then
2286
 
  echo "$as_me:$LINENO: result: $CC" >&5
2287
 
echo "${ECHO_T}$CC" >&6
2288
 
else
2289
 
  echo "$as_me:$LINENO: result: no" >&5
2290
 
echo "${ECHO_T}no" >&6
2291
 
fi
2292
 
 
2293
 
fi
2294
 
if test -z "$ac_cv_prog_CC"; then
2295
 
  ac_ct_CC=$CC
2296
 
  # Extract the first word of "gcc", so it can be a program name with args.
2297
 
set dummy gcc; ac_word=$2
2298
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2299
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2300
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2301
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2302
 
else
2303
 
  if test -n "$ac_ct_CC"; then
2304
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2305
 
else
2306
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307
 
for as_dir in $PATH
2308
 
do
2309
 
  IFS=$as_save_IFS
2310
 
  test -z "$as_dir" && as_dir=.
2311
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2312
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2313
 
    ac_cv_prog_ac_ct_CC="gcc"
2314
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315
 
    break 2
2316
 
  fi
2317
 
done
2318
 
done
2319
 
 
2320
 
fi
2321
 
fi
2322
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2323
 
if test -n "$ac_ct_CC"; then
2324
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2325
 
echo "${ECHO_T}$ac_ct_CC" >&6
2326
 
else
2327
 
  echo "$as_me:$LINENO: result: no" >&5
2328
 
echo "${ECHO_T}no" >&6
2329
 
fi
2330
 
 
2331
 
  CC=$ac_ct_CC
2332
 
else
2333
 
  CC="$ac_cv_prog_CC"
2334
 
fi
2335
 
 
2336
 
if test -z "$CC"; then
2337
 
  if test -n "$ac_tool_prefix"; then
2338
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2339
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
2340
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2341
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2342
 
if test "${ac_cv_prog_CC+set}" = set; then
2343
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2344
 
else
2345
 
  if test -n "$CC"; then
2346
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2347
 
else
2348
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349
 
for as_dir in $PATH
2350
 
do
2351
 
  IFS=$as_save_IFS
2352
 
  test -z "$as_dir" && as_dir=.
2353
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2354
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2355
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2356
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357
 
    break 2
2358
 
  fi
2359
 
done
2360
 
done
2361
 
 
2362
 
fi
2363
 
fi
2364
 
CC=$ac_cv_prog_CC
2365
 
if test -n "$CC"; then
2366
 
  echo "$as_me:$LINENO: result: $CC" >&5
2367
 
echo "${ECHO_T}$CC" >&6
2368
 
else
2369
 
  echo "$as_me:$LINENO: result: no" >&5
2370
 
echo "${ECHO_T}no" >&6
2371
 
fi
2372
 
 
2373
 
fi
2374
 
if test -z "$ac_cv_prog_CC"; then
2375
 
  ac_ct_CC=$CC
2376
 
  # Extract the first word of "cc", so it can be a program name with args.
2377
 
set dummy cc; ac_word=$2
2378
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2379
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2380
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2381
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2382
 
else
2383
 
  if test -n "$ac_ct_CC"; then
2384
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2385
 
else
2386
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387
 
for as_dir in $PATH
2388
 
do
2389
 
  IFS=$as_save_IFS
2390
 
  test -z "$as_dir" && as_dir=.
2391
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2392
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393
 
    ac_cv_prog_ac_ct_CC="cc"
2394
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395
 
    break 2
2396
 
  fi
2397
 
done
2398
 
done
2399
 
 
2400
 
fi
2401
 
fi
2402
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2403
 
if test -n "$ac_ct_CC"; then
2404
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2405
 
echo "${ECHO_T}$ac_ct_CC" >&6
2406
 
else
2407
 
  echo "$as_me:$LINENO: result: no" >&5
2408
 
echo "${ECHO_T}no" >&6
2409
 
fi
2410
 
 
2411
 
  CC=$ac_ct_CC
2412
 
else
2413
 
  CC="$ac_cv_prog_CC"
2414
 
fi
2415
 
 
2416
 
fi
2417
 
if test -z "$CC"; then
2418
 
  # Extract the first word of "cc", so it can be a program name with args.
2419
 
set dummy cc; ac_word=$2
2420
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2421
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2422
 
if test "${ac_cv_prog_CC+set}" = set; then
2423
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2424
 
else
2425
 
  if test -n "$CC"; then
2426
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2427
 
else
2428
 
  ac_prog_rejected=no
2429
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430
 
for as_dir in $PATH
2431
 
do
2432
 
  IFS=$as_save_IFS
2433
 
  test -z "$as_dir" && as_dir=.
2434
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2435
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2436
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2437
 
       ac_prog_rejected=yes
2438
 
       continue
2439
 
     fi
2440
 
    ac_cv_prog_CC="cc"
2441
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442
 
    break 2
2443
 
  fi
2444
 
done
2445
 
done
2446
 
 
2447
 
if test $ac_prog_rejected = yes; then
2448
 
  # We found a bogon in the path, so make sure we never use it.
2449
 
  set dummy $ac_cv_prog_CC
2450
 
  shift
2451
 
  if test $# != 0; then
2452
 
    # We chose a different compiler from the bogus one.
2453
 
    # However, it has the same basename, so the bogon will be chosen
2454
 
    # first if we set CC to just the basename; use the full file name.
2455
 
    shift
2456
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2457
 
  fi
2458
 
fi
2459
 
fi
2460
 
fi
2461
 
CC=$ac_cv_prog_CC
2462
 
if test -n "$CC"; then
2463
 
  echo "$as_me:$LINENO: result: $CC" >&5
2464
 
echo "${ECHO_T}$CC" >&6
2465
 
else
2466
 
  echo "$as_me:$LINENO: result: no" >&5
2467
 
echo "${ECHO_T}no" >&6
2468
 
fi
2469
 
 
2470
 
fi
2471
 
if test -z "$CC"; then
2472
 
  if test -n "$ac_tool_prefix"; then
2473
 
  for ac_prog in cl
2474
 
  do
2475
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2476
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2477
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2478
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2479
 
if test "${ac_cv_prog_CC+set}" = set; then
2480
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2481
 
else
2482
 
  if test -n "$CC"; then
2483
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2484
 
else
2485
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486
 
for as_dir in $PATH
2487
 
do
2488
 
  IFS=$as_save_IFS
2489
 
  test -z "$as_dir" && as_dir=.
2490
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2491
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2492
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2493
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494
 
    break 2
2495
 
  fi
2496
 
done
2497
 
done
2498
 
 
2499
 
fi
2500
 
fi
2501
 
CC=$ac_cv_prog_CC
2502
 
if test -n "$CC"; then
2503
 
  echo "$as_me:$LINENO: result: $CC" >&5
2504
 
echo "${ECHO_T}$CC" >&6
2505
 
else
2506
 
  echo "$as_me:$LINENO: result: no" >&5
2507
 
echo "${ECHO_T}no" >&6
2508
 
fi
2509
 
 
2510
 
    test -n "$CC" && break
2511
 
  done
2512
 
fi
2513
 
if test -z "$CC"; then
2514
 
  ac_ct_CC=$CC
2515
 
  for ac_prog in cl
2516
 
do
2517
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2518
 
set dummy $ac_prog; ac_word=$2
2519
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2520
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2521
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2522
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2523
 
else
2524
 
  if test -n "$ac_ct_CC"; then
2525
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2526
 
else
2527
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528
 
for as_dir in $PATH
2529
 
do
2530
 
  IFS=$as_save_IFS
2531
 
  test -z "$as_dir" && as_dir=.
2532
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2533
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2534
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
2535
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536
 
    break 2
2537
 
  fi
2538
 
done
2539
 
done
2540
 
 
2541
 
fi
2542
 
fi
2543
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2544
 
if test -n "$ac_ct_CC"; then
2545
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2546
 
echo "${ECHO_T}$ac_ct_CC" >&6
2547
 
else
2548
 
  echo "$as_me:$LINENO: result: no" >&5
2549
 
echo "${ECHO_T}no" >&6
2550
 
fi
2551
 
 
2552
 
  test -n "$ac_ct_CC" && break
2553
 
done
2554
 
 
2555
 
  CC=$ac_ct_CC
2556
 
fi
2557
 
 
2558
 
fi
2559
 
 
2560
 
 
2561
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2562
 
See \`config.log' for more details." >&5
2563
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
2564
 
See \`config.log' for more details." >&2;}
2565
 
   { (exit 1); exit 1; }; }
2566
 
 
2567
 
# Provide some information about the compiler.
2568
 
echo "$as_me:$LINENO:" \
2569
 
     "checking for C compiler version" >&5
2570
 
ac_compiler=`set X $ac_compile; echo $2`
2571
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2572
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2573
 
  ac_status=$?
2574
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575
 
  (exit $ac_status); }
2576
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2577
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2578
 
  ac_status=$?
2579
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580
 
  (exit $ac_status); }
2581
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2582
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2583
 
  ac_status=$?
2584
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585
 
  (exit $ac_status); }
2586
 
 
2587
 
cat >conftest.$ac_ext <<_ACEOF
2588
 
/* confdefs.h.  */
2589
 
_ACEOF
2590
 
cat confdefs.h >>conftest.$ac_ext
2591
 
cat >>conftest.$ac_ext <<_ACEOF
2592
 
/* end confdefs.h.  */
2593
 
 
2594
 
int
2595
 
main ()
2596
 
{
2597
 
 
2598
 
  ;
2599
 
  return 0;
2600
 
}
2601
 
_ACEOF
2602
 
ac_clean_files_save=$ac_clean_files
2603
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2604
 
# Try to create an executable without -o first, disregard a.out.
2605
 
# It will help us diagnose broken compilers, and finding out an intuition
2606
 
# of exeext.
2607
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2608
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2609
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2610
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2611
 
  (eval $ac_link_default) 2>&5
2612
 
  ac_status=$?
2613
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614
 
  (exit $ac_status); }; then
2615
 
  # Find the output, starting from the most likely.  This scheme is
2616
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2617
 
# resort.
2618
 
 
2619
 
# Be careful to initialize this variable, since it used to be cached.
2620
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2621
 
ac_cv_exeext=
2622
 
# b.out is created by i960 compilers.
2623
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2624
 
do
2625
 
  test -f "$ac_file" || continue
2626
 
  case $ac_file in
2627
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2628
 
        ;;
2629
 
    conftest.$ac_ext )
2630
 
        # This is the source file.
2631
 
        ;;
2632
 
    [ab].out )
2633
 
        # We found the default executable, but exeext='' is most
2634
 
        # certainly right.
2635
 
        break;;
2636
 
    *.* )
2637
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2638
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2639
 
        # but it would be cool to find out if it's true.  Does anybody
2640
 
        # maintain Libtool? --akim.
2641
 
        export ac_cv_exeext
2642
 
        break;;
2643
 
    * )
2644
 
        break;;
2645
 
  esac
2646
 
done
2647
 
else
2648
 
  echo "$as_me: failed program was:" >&5
2649
 
sed 's/^/| /' conftest.$ac_ext >&5
2650
 
 
2651
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2652
 
See \`config.log' for more details." >&5
2653
 
echo "$as_me: error: C compiler cannot create executables
2654
 
See \`config.log' for more details." >&2;}
2655
 
   { (exit 77); exit 77; }; }
2656
 
fi
2657
 
 
2658
 
ac_exeext=$ac_cv_exeext
2659
 
echo "$as_me:$LINENO: result: $ac_file" >&5
2660
 
echo "${ECHO_T}$ac_file" >&6
2661
 
 
2662
 
# Check the compiler produces executables we can run.  If not, either
2663
 
# the compiler is broken, or we cross compile.
2664
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2665
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2666
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2667
 
# If not cross compiling, check that we can run a simple program.
2668
 
if test "$cross_compiling" != yes; then
2669
 
  if { ac_try='./$ac_file'
2670
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671
 
  (eval $ac_try) 2>&5
2672
 
  ac_status=$?
2673
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674
 
  (exit $ac_status); }; }; then
2675
 
    cross_compiling=no
2676
 
  else
2677
 
    if test "$cross_compiling" = maybe; then
2678
 
        cross_compiling=yes
2679
 
    else
2680
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2681
 
If you meant to cross compile, use \`--host'.
2682
 
See \`config.log' for more details." >&5
2683
 
echo "$as_me: error: cannot run C compiled programs.
2684
 
If you meant to cross compile, use \`--host'.
2685
 
See \`config.log' for more details." >&2;}
2686
 
   { (exit 1); exit 1; }; }
2687
 
    fi
2688
 
  fi
2689
 
fi
2690
 
echo "$as_me:$LINENO: result: yes" >&5
2691
 
echo "${ECHO_T}yes" >&6
2692
 
 
2693
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2694
 
ac_clean_files=$ac_clean_files_save
2695
 
# Check the compiler produces executables we can run.  If not, either
2696
 
# the compiler is broken, or we cross compile.
2697
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2698
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2699
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2700
 
echo "${ECHO_T}$cross_compiling" >&6
2701
 
 
2702
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2703
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2704
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2705
 
  (eval $ac_link) 2>&5
2706
 
  ac_status=$?
2707
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708
 
  (exit $ac_status); }; then
2709
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2710
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2711
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
2712
 
# `rm'.
2713
 
for ac_file in conftest.exe conftest conftest.*; do
2714
 
  test -f "$ac_file" || continue
2715
 
  case $ac_file in
2716
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2717
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2718
 
          export ac_cv_exeext
2719
 
          break;;
2720
 
    * ) break;;
2721
 
  esac
2722
 
done
2723
 
else
2724
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2725
 
See \`config.log' for more details." >&5
2726
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2727
 
See \`config.log' for more details." >&2;}
2728
 
   { (exit 1); exit 1; }; }
2729
 
fi
2730
 
 
2731
 
rm -f conftest$ac_cv_exeext
2732
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2733
 
echo "${ECHO_T}$ac_cv_exeext" >&6
2734
 
 
2735
 
rm -f conftest.$ac_ext
2736
 
EXEEXT=$ac_cv_exeext
2737
 
ac_exeext=$EXEEXT
2738
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2739
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2740
 
if test "${ac_cv_objext+set}" = set; then
2741
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2742
 
else
2743
 
  cat >conftest.$ac_ext <<_ACEOF
2744
 
/* confdefs.h.  */
2745
 
_ACEOF
2746
 
cat confdefs.h >>conftest.$ac_ext
2747
 
cat >>conftest.$ac_ext <<_ACEOF
2748
 
/* end confdefs.h.  */
2749
 
 
2750
 
int
2751
 
main ()
2752
 
{
2753
 
 
2754
 
  ;
2755
 
  return 0;
2756
 
}
2757
 
_ACEOF
2758
 
rm -f conftest.o conftest.obj
2759
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2760
 
  (eval $ac_compile) 2>&5
2761
 
  ac_status=$?
2762
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763
 
  (exit $ac_status); }; then
2764
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2765
 
  case $ac_file in
2766
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2767
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2768
 
       break;;
2769
 
  esac
2770
 
done
2771
 
else
2772
 
  echo "$as_me: failed program was:" >&5
2773
 
sed 's/^/| /' conftest.$ac_ext >&5
2774
 
 
2775
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2776
 
See \`config.log' for more details." >&5
2777
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2778
 
See \`config.log' for more details." >&2;}
2779
 
   { (exit 1); exit 1; }; }
2780
 
fi
2781
 
 
2782
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2783
 
fi
2784
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2785
 
echo "${ECHO_T}$ac_cv_objext" >&6
2786
 
OBJEXT=$ac_cv_objext
2787
 
ac_objext=$OBJEXT
2788
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2789
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2790
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2791
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2792
 
else
2793
 
  cat >conftest.$ac_ext <<_ACEOF
2794
 
/* confdefs.h.  */
2795
 
_ACEOF
2796
 
cat confdefs.h >>conftest.$ac_ext
2797
 
cat >>conftest.$ac_ext <<_ACEOF
2798
 
/* end confdefs.h.  */
2799
 
 
2800
 
int
2801
 
main ()
2802
 
{
2803
 
#ifndef __GNUC__
2804
 
       choke me
2805
 
#endif
2806
 
 
2807
 
  ;
2808
 
  return 0;
2809
 
}
2810
 
_ACEOF
2811
 
rm -f conftest.$ac_objext
2812
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2813
 
  (eval $ac_compile) 2>conftest.er1
2814
 
  ac_status=$?
2815
 
  grep -v '^ *+' conftest.er1 >conftest.err
2816
 
  rm -f conftest.er1
2817
 
  cat conftest.err >&5
2818
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819
 
  (exit $ac_status); } &&
2820
 
         { ac_try='test -z "$ac_c_werror_flag"
2821
 
                         || test ! -s conftest.err'
2822
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823
 
  (eval $ac_try) 2>&5
2824
 
  ac_status=$?
2825
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826
 
  (exit $ac_status); }; } &&
2827
 
         { ac_try='test -s conftest.$ac_objext'
2828
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829
 
  (eval $ac_try) 2>&5
2830
 
  ac_status=$?
2831
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832
 
  (exit $ac_status); }; }; then
2833
 
  ac_compiler_gnu=yes
2834
 
else
2835
 
  echo "$as_me: failed program was:" >&5
2836
 
sed 's/^/| /' conftest.$ac_ext >&5
2837
 
 
2838
 
ac_compiler_gnu=no
2839
 
fi
2840
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2841
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2842
 
 
2843
 
fi
2844
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2845
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2846
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
2847
 
ac_test_CFLAGS=${CFLAGS+set}
2848
 
ac_save_CFLAGS=$CFLAGS
2849
 
CFLAGS="-g"
2850
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2851
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2852
 
if test "${ac_cv_prog_cc_g+set}" = set; then
2853
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2854
 
else
2855
 
  cat >conftest.$ac_ext <<_ACEOF
2856
 
/* confdefs.h.  */
2857
 
_ACEOF
2858
 
cat confdefs.h >>conftest.$ac_ext
2859
 
cat >>conftest.$ac_ext <<_ACEOF
2860
 
/* end confdefs.h.  */
2861
 
 
2862
 
int
2863
 
main ()
2864
 
{
2865
 
 
2866
 
  ;
2867
 
  return 0;
2868
 
}
2869
 
_ACEOF
2870
 
rm -f conftest.$ac_objext
2871
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872
 
  (eval $ac_compile) 2>conftest.er1
2873
 
  ac_status=$?
2874
 
  grep -v '^ *+' conftest.er1 >conftest.err
2875
 
  rm -f conftest.er1
2876
 
  cat conftest.err >&5
2877
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878
 
  (exit $ac_status); } &&
2879
 
         { ac_try='test -z "$ac_c_werror_flag"
2880
 
                         || test ! -s conftest.err'
2881
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882
 
  (eval $ac_try) 2>&5
2883
 
  ac_status=$?
2884
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885
 
  (exit $ac_status); }; } &&
2886
 
         { ac_try='test -s conftest.$ac_objext'
2887
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888
 
  (eval $ac_try) 2>&5
2889
 
  ac_status=$?
2890
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891
 
  (exit $ac_status); }; }; then
2892
 
  ac_cv_prog_cc_g=yes
2893
 
else
2894
 
  echo "$as_me: failed program was:" >&5
2895
 
sed 's/^/| /' conftest.$ac_ext >&5
2896
 
 
2897
 
ac_cv_prog_cc_g=no
2898
 
fi
2899
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2900
 
fi
2901
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2902
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2903
 
if test "$ac_test_CFLAGS" = set; then
2904
 
  CFLAGS=$ac_save_CFLAGS
2905
 
elif test $ac_cv_prog_cc_g = yes; then
2906
 
  if test "$GCC" = yes; then
2907
 
    CFLAGS="-g -O2"
2908
 
  else
2909
 
    CFLAGS="-g"
2910
 
  fi
2911
 
else
2912
 
  if test "$GCC" = yes; then
2913
 
    CFLAGS="-O2"
2914
 
  else
2915
 
    CFLAGS=
2916
 
  fi
2917
 
fi
2918
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2919
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2920
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2921
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2922
 
else
2923
 
  ac_cv_prog_cc_stdc=no
2924
 
ac_save_CC=$CC
2925
 
cat >conftest.$ac_ext <<_ACEOF
2926
 
/* confdefs.h.  */
2927
 
_ACEOF
2928
 
cat confdefs.h >>conftest.$ac_ext
2929
 
cat >>conftest.$ac_ext <<_ACEOF
2930
 
/* end confdefs.h.  */
2931
 
#include <stdarg.h>
2932
 
#include <stdio.h>
2933
 
#include <sys/types.h>
2934
 
#include <sys/stat.h>
2935
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2936
 
struct buf { int x; };
2937
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2938
 
static char *e (p, i)
2939
 
     char **p;
2940
 
     int i;
2941
 
{
2942
 
  return p[i];
2943
 
}
2944
 
static char *f (char * (*g) (char **, int), char **p, ...)
2945
 
{
2946
 
  char *s;
2947
 
  va_list v;
2948
 
  va_start (v,p);
2949
 
  s = g (p, va_arg (v,int));
2950
 
  va_end (v);
2951
 
  return s;
2952
 
}
2953
 
 
2954
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2955
 
   function prototypes and stuff, but not '\xHH' hex character constants.
2956
 
   These don't provoke an error unfortunately, instead are silently treated
2957
 
   as 'x'.  The following induces an error, until -std1 is added to get
2958
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2959
 
   array size at least.  It's necessary to write '\x00'==0 to get something
2960
 
   that's true only with -std1.  */
2961
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2962
 
 
2963
 
int test (int i, double x);
2964
 
struct s1 {int (*f) (int a);};
2965
 
struct s2 {int (*f) (double a);};
2966
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2967
 
int argc;
2968
 
char **argv;
2969
 
int
2970
 
main ()
2971
 
{
2972
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2973
 
  ;
2974
 
  return 0;
2975
 
}
2976
 
_ACEOF
2977
 
# Don't try gcc -ansi; that turns off useful extensions and
2978
 
# breaks some systems' header files.
2979
 
# AIX                   -qlanglvl=ansi
2980
 
# Ultrix and OSF/1      -std1
2981
 
# HP-UX 10.20 and later -Ae
2982
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2983
 
# SVR4                  -Xc -D__EXTENSIONS__
2984
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2985
 
do
2986
 
  CC="$ac_save_CC $ac_arg"
2987
 
  rm -f conftest.$ac_objext
2988
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2989
 
  (eval $ac_compile) 2>conftest.er1
2990
 
  ac_status=$?
2991
 
  grep -v '^ *+' conftest.er1 >conftest.err
2992
 
  rm -f conftest.er1
2993
 
  cat conftest.err >&5
2994
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995
 
  (exit $ac_status); } &&
2996
 
         { ac_try='test -z "$ac_c_werror_flag"
2997
 
                         || test ! -s conftest.err'
2998
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999
 
  (eval $ac_try) 2>&5
3000
 
  ac_status=$?
3001
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002
 
  (exit $ac_status); }; } &&
3003
 
         { ac_try='test -s conftest.$ac_objext'
3004
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005
 
  (eval $ac_try) 2>&5
3006
 
  ac_status=$?
3007
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008
 
  (exit $ac_status); }; }; then
3009
 
  ac_cv_prog_cc_stdc=$ac_arg
3010
 
break
3011
 
else
3012
 
  echo "$as_me: failed program was:" >&5
3013
 
sed 's/^/| /' conftest.$ac_ext >&5
3014
 
 
3015
 
fi
3016
 
rm -f conftest.err conftest.$ac_objext
3017
 
done
3018
 
rm -f conftest.$ac_ext conftest.$ac_objext
3019
 
CC=$ac_save_CC
3020
 
 
3021
 
fi
3022
 
 
3023
 
case "x$ac_cv_prog_cc_stdc" in
3024
 
  x|xno)
3025
 
    echo "$as_me:$LINENO: result: none needed" >&5
3026
 
echo "${ECHO_T}none needed" >&6 ;;
3027
 
  *)
3028
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3029
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3030
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
3031
 
esac
3032
 
 
3033
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
3034
 
# in C++ we need to declare it.  In case someone uses the same compiler
3035
 
# for both compiling C and C++ we need to have the C++ compiler decide
3036
 
# the declaration of exit, since it's the most demanding environment.
3037
 
cat >conftest.$ac_ext <<_ACEOF
3038
 
#ifndef __cplusplus
3039
 
  choke me
3040
 
#endif
3041
 
_ACEOF
3042
 
rm -f conftest.$ac_objext
3043
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3044
 
  (eval $ac_compile) 2>conftest.er1
3045
 
  ac_status=$?
3046
 
  grep -v '^ *+' conftest.er1 >conftest.err
3047
 
  rm -f conftest.er1
3048
 
  cat conftest.err >&5
3049
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050
 
  (exit $ac_status); } &&
3051
 
         { ac_try='test -z "$ac_c_werror_flag"
3052
 
                         || test ! -s conftest.err'
3053
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054
 
  (eval $ac_try) 2>&5
3055
 
  ac_status=$?
3056
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057
 
  (exit $ac_status); }; } &&
3058
 
         { ac_try='test -s conftest.$ac_objext'
3059
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060
 
  (eval $ac_try) 2>&5
3061
 
  ac_status=$?
3062
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063
 
  (exit $ac_status); }; }; then
3064
 
  for ac_declaration in \
3065
 
   '' \
3066
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
3067
 
   'extern "C" void std::exit (int); using std::exit;' \
3068
 
   'extern "C" void exit (int) throw ();' \
3069
 
   'extern "C" void exit (int);' \
3070
 
   'void exit (int);'
3071
 
do
3072
 
  cat >conftest.$ac_ext <<_ACEOF
3073
 
/* confdefs.h.  */
3074
 
_ACEOF
3075
 
cat confdefs.h >>conftest.$ac_ext
3076
 
cat >>conftest.$ac_ext <<_ACEOF
3077
 
/* end confdefs.h.  */
3078
 
$ac_declaration
3079
 
#include <stdlib.h>
3080
 
int
3081
 
main ()
3082
 
{
3083
 
exit (42);
3084
 
  ;
3085
 
  return 0;
3086
 
}
3087
 
_ACEOF
3088
 
rm -f conftest.$ac_objext
3089
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090
 
  (eval $ac_compile) 2>conftest.er1
3091
 
  ac_status=$?
3092
 
  grep -v '^ *+' conftest.er1 >conftest.err
3093
 
  rm -f conftest.er1
3094
 
  cat conftest.err >&5
3095
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096
 
  (exit $ac_status); } &&
3097
 
         { ac_try='test -z "$ac_c_werror_flag"
3098
 
                         || test ! -s conftest.err'
3099
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100
 
  (eval $ac_try) 2>&5
3101
 
  ac_status=$?
3102
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103
 
  (exit $ac_status); }; } &&
3104
 
         { ac_try='test -s conftest.$ac_objext'
3105
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106
 
  (eval $ac_try) 2>&5
3107
 
  ac_status=$?
3108
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109
 
  (exit $ac_status); }; }; then
3110
 
  :
3111
 
else
3112
 
  echo "$as_me: failed program was:" >&5
3113
 
sed 's/^/| /' conftest.$ac_ext >&5
3114
 
 
3115
 
continue
3116
 
fi
3117
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3118
 
  cat >conftest.$ac_ext <<_ACEOF
3119
 
/* confdefs.h.  */
3120
 
_ACEOF
3121
 
cat confdefs.h >>conftest.$ac_ext
3122
 
cat >>conftest.$ac_ext <<_ACEOF
3123
 
/* end confdefs.h.  */
3124
 
$ac_declaration
3125
 
int
3126
 
main ()
3127
 
{
3128
 
exit (42);
3129
 
  ;
3130
 
  return 0;
3131
 
}
3132
 
_ACEOF
3133
 
rm -f conftest.$ac_objext
3134
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3135
 
  (eval $ac_compile) 2>conftest.er1
3136
 
  ac_status=$?
3137
 
  grep -v '^ *+' conftest.er1 >conftest.err
3138
 
  rm -f conftest.er1
3139
 
  cat conftest.err >&5
3140
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141
 
  (exit $ac_status); } &&
3142
 
         { ac_try='test -z "$ac_c_werror_flag"
3143
 
                         || test ! -s conftest.err'
3144
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145
 
  (eval $ac_try) 2>&5
3146
 
  ac_status=$?
3147
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148
 
  (exit $ac_status); }; } &&
3149
 
         { ac_try='test -s conftest.$ac_objext'
3150
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151
 
  (eval $ac_try) 2>&5
3152
 
  ac_status=$?
3153
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154
 
  (exit $ac_status); }; }; then
3155
 
  break
3156
 
else
3157
 
  echo "$as_me: failed program was:" >&5
3158
 
sed 's/^/| /' conftest.$ac_ext >&5
3159
 
 
3160
 
fi
3161
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3162
 
done
3163
 
rm -f conftest*
3164
 
if test -n "$ac_declaration"; then
3165
 
  echo '#ifdef __cplusplus' >>confdefs.h
3166
 
  echo $ac_declaration      >>confdefs.h
3167
 
  echo '#endif'             >>confdefs.h
3168
 
fi
3169
 
 
3170
 
else
3171
 
  echo "$as_me: failed program was:" >&5
3172
 
sed 's/^/| /' conftest.$ac_ext >&5
3173
 
 
3174
 
fi
3175
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3176
 
ac_ext=c
3177
 
ac_cpp='$CPP $CPPFLAGS'
3178
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3181
 
 
3182
 
depcc="$CC"   am_compiler_list=
3183
 
 
3184
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3185
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3186
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3187
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3188
 
else
3189
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3190
 
  # We make a subdir and do the tests there.  Otherwise we can end up
3191
 
  # making bogus files that we don't know about and never remove.  For
3192
 
  # instance it was reported that on HP-UX the gcc test will end up
3193
 
  # making a dummy file named `D' -- because `-MD' means `put the output
3194
 
  # in D'.
3195
 
  mkdir conftest.dir
3196
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
3197
 
  # using a relative directory.
3198
 
  cp "$am_depcomp" conftest.dir
3199
 
  cd conftest.dir
3200
 
  # We will build objects and dependencies in a subdirectory because
3201
 
  # it helps to detect inapplicable dependency modes.  For instance
3202
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
3203
 
  # side effect of compilation, but ICC will put the dependencies in
3204
 
  # the current directory while Tru64 will put them in the object
3205
 
  # directory.
3206
 
  mkdir sub
3207
 
 
3208
 
  am_cv_CC_dependencies_compiler_type=none
3209
 
  if test "$am_compiler_list" = ""; then
3210
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3211
 
  fi
3212
 
  for depmode in $am_compiler_list; do
3213
 
    # Setup a source with many dependencies, because some compilers
3214
 
    # like to wrap large dependency lists on column 80 (with \), and
3215
 
    # we should not choose a depcomp mode which is confused by this.
3216
 
    #
3217
 
    # We need to recreate these files for each test, as the compiler may
3218
 
    # overwrite some of them when testing with obscure command lines.
3219
 
    # This happens at least with the AIX C compiler.
3220
 
    : > sub/conftest.c
3221
 
    for i in 1 2 3 4 5 6; do
3222
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3223
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3224
 
      # Solaris 8's {/usr,}/bin/sh.
3225
 
      touch sub/conftst$i.h
3226
 
    done
3227
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3228
 
 
3229
 
    case $depmode in
3230
 
    nosideeffect)
3231
 
      # after this tag, mechanisms are not by side-effect, so they'll
3232
 
      # only be used when explicitly requested
3233
 
      if test "x$enable_dependency_tracking" = xyes; then
3234
 
        continue
3235
 
      else
3236
 
        break
3237
 
      fi
3238
 
      ;;
3239
 
    none) break ;;
3240
 
    esac
3241
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3242
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3243
 
    # handle `-M -o', and we need to detect this.
3244
 
    if depmode=$depmode \
3245
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3246
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3247
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3248
 
         >/dev/null 2>conftest.err &&
3249
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3250
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3251
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3252
 
      # icc doesn't choke on unknown options, it will just issue warnings
3253
 
      # (even with -Werror).  So we grep stderr for any message
3254
 
      # that says an option was ignored.
3255
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3256
 
        am_cv_CC_dependencies_compiler_type=$depmode
3257
 
        break
3258
 
      fi
3259
 
    fi
3260
 
  done
3261
 
 
3262
 
  cd ..
3263
 
  rm -rf conftest.dir
3264
 
else
3265
 
  am_cv_CC_dependencies_compiler_type=none
3266
 
fi
3267
 
 
3268
 
fi
3269
 
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3270
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3271
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3272
 
 
3273
 
 
3274
 
 
3275
 
if
3276
 
  test "x$enable_dependency_tracking" != xno \
3277
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3278
 
  am__fastdepCC_TRUE=
3279
 
  am__fastdepCC_FALSE='#'
3280
 
else
3281
 
  am__fastdepCC_TRUE='#'
3282
 
  am__fastdepCC_FALSE=
3283
 
fi
3284
 
 
3285
 
 
3286
 
 
3287
 
ac_ext=c
3288
 
ac_cpp='$CPP $CPPFLAGS'
3289
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3293
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3294
 
# On Suns, sometimes $CPP names a directory.
3295
 
if test -n "$CPP" && test -d "$CPP"; then
3296
 
  CPP=
3297
 
fi
3298
 
if test -z "$CPP"; then
3299
 
  if test "${ac_cv_prog_CPP+set}" = set; then
3300
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3301
 
else
3302
 
      # Double quotes because CPP needs to be expanded
3303
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3304
 
    do
3305
 
      ac_preproc_ok=false
3306
 
for ac_c_preproc_warn_flag in '' yes
3307
 
do
3308
 
  # Use a header file that comes with gcc, so configuring glibc
3309
 
  # with a fresh cross-compiler works.
3310
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3311
 
  # <limits.h> exists even on freestanding compilers.
3312
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3313
 
  # not just through cpp. "Syntax error" is here to catch this case.
3314
 
  cat >conftest.$ac_ext <<_ACEOF
3315
 
/* confdefs.h.  */
3316
 
_ACEOF
3317
 
cat confdefs.h >>conftest.$ac_ext
3318
 
cat >>conftest.$ac_ext <<_ACEOF
3319
 
/* end confdefs.h.  */
3320
 
#ifdef __STDC__
3321
 
# include <limits.h>
3322
 
#else
3323
 
# include <assert.h>
3324
 
#endif
3325
 
                     Syntax error
3326
 
_ACEOF
3327
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3328
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3329
 
  ac_status=$?
3330
 
  grep -v '^ *+' conftest.er1 >conftest.err
3331
 
  rm -f conftest.er1
3332
 
  cat conftest.err >&5
3333
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334
 
  (exit $ac_status); } >/dev/null; then
3335
 
  if test -s conftest.err; then
3336
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3337
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3338
 
  else
3339
 
    ac_cpp_err=
3340
 
  fi
3341
 
else
3342
 
  ac_cpp_err=yes
3343
 
fi
3344
 
if test -z "$ac_cpp_err"; then
3345
 
  :
3346
 
else
3347
 
  echo "$as_me: failed program was:" >&5
3348
 
sed 's/^/| /' conftest.$ac_ext >&5
3349
 
 
3350
 
  # Broken: fails on valid input.
3351
 
continue
3352
 
fi
3353
 
rm -f conftest.err conftest.$ac_ext
3354
 
 
3355
 
  # OK, works on sane cases.  Now check whether non-existent headers
3356
 
  # can be detected and how.
3357
 
  cat >conftest.$ac_ext <<_ACEOF
3358
 
/* confdefs.h.  */
3359
 
_ACEOF
3360
 
cat confdefs.h >>conftest.$ac_ext
3361
 
cat >>conftest.$ac_ext <<_ACEOF
3362
 
/* end confdefs.h.  */
3363
 
#include <ac_nonexistent.h>
3364
 
_ACEOF
3365
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3366
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3367
 
  ac_status=$?
3368
 
  grep -v '^ *+' conftest.er1 >conftest.err
3369
 
  rm -f conftest.er1
3370
 
  cat conftest.err >&5
3371
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372
 
  (exit $ac_status); } >/dev/null; then
3373
 
  if test -s conftest.err; then
3374
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3375
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3376
 
  else
3377
 
    ac_cpp_err=
3378
 
  fi
3379
 
else
3380
 
  ac_cpp_err=yes
3381
 
fi
3382
 
if test -z "$ac_cpp_err"; then
3383
 
  # Broken: success on invalid input.
3384
 
continue
3385
 
else
3386
 
  echo "$as_me: failed program was:" >&5
3387
 
sed 's/^/| /' conftest.$ac_ext >&5
3388
 
 
3389
 
  # Passes both tests.
3390
 
ac_preproc_ok=:
3391
 
break
3392
 
fi
3393
 
rm -f conftest.err conftest.$ac_ext
3394
 
 
3395
 
done
3396
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3397
 
rm -f conftest.err conftest.$ac_ext
3398
 
if $ac_preproc_ok; then
3399
 
  break
3400
 
fi
3401
 
 
3402
 
    done
3403
 
    ac_cv_prog_CPP=$CPP
3404
 
 
3405
 
fi
3406
 
  CPP=$ac_cv_prog_CPP
3407
 
else
3408
 
  ac_cv_prog_CPP=$CPP
3409
 
fi
3410
 
echo "$as_me:$LINENO: result: $CPP" >&5
3411
 
echo "${ECHO_T}$CPP" >&6
3412
 
ac_preproc_ok=false
3413
 
for ac_c_preproc_warn_flag in '' yes
3414
 
do
3415
 
  # Use a header file that comes with gcc, so configuring glibc
3416
 
  # with a fresh cross-compiler works.
3417
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3418
 
  # <limits.h> exists even on freestanding compilers.
3419
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3420
 
  # not just through cpp. "Syntax error" is here to catch this case.
3421
 
  cat >conftest.$ac_ext <<_ACEOF
3422
 
/* confdefs.h.  */
3423
 
_ACEOF
3424
 
cat confdefs.h >>conftest.$ac_ext
3425
 
cat >>conftest.$ac_ext <<_ACEOF
3426
 
/* end confdefs.h.  */
3427
 
#ifdef __STDC__
3428
 
# include <limits.h>
3429
 
#else
3430
 
# include <assert.h>
3431
 
#endif
3432
 
                     Syntax error
3433
 
_ACEOF
3434
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3435
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3436
 
  ac_status=$?
3437
 
  grep -v '^ *+' conftest.er1 >conftest.err
3438
 
  rm -f conftest.er1
3439
 
  cat conftest.err >&5
3440
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441
 
  (exit $ac_status); } >/dev/null; then
3442
 
  if test -s conftest.err; then
3443
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3444
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3445
 
  else
3446
 
    ac_cpp_err=
3447
 
  fi
3448
 
else
3449
 
  ac_cpp_err=yes
3450
 
fi
3451
 
if test -z "$ac_cpp_err"; then
3452
 
  :
3453
 
else
3454
 
  echo "$as_me: failed program was:" >&5
3455
 
sed 's/^/| /' conftest.$ac_ext >&5
3456
 
 
3457
 
  # Broken: fails on valid input.
3458
 
continue
3459
 
fi
3460
 
rm -f conftest.err conftest.$ac_ext
3461
 
 
3462
 
  # OK, works on sane cases.  Now check whether non-existent headers
3463
 
  # can be detected and how.
3464
 
  cat >conftest.$ac_ext <<_ACEOF
3465
 
/* confdefs.h.  */
3466
 
_ACEOF
3467
 
cat confdefs.h >>conftest.$ac_ext
3468
 
cat >>conftest.$ac_ext <<_ACEOF
3469
 
/* end confdefs.h.  */
3470
 
#include <ac_nonexistent.h>
3471
 
_ACEOF
3472
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3473
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3474
 
  ac_status=$?
3475
 
  grep -v '^ *+' conftest.er1 >conftest.err
3476
 
  rm -f conftest.er1
3477
 
  cat conftest.err >&5
3478
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479
 
  (exit $ac_status); } >/dev/null; then
3480
 
  if test -s conftest.err; then
3481
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3482
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3483
 
  else
3484
 
    ac_cpp_err=
3485
 
  fi
3486
 
else
3487
 
  ac_cpp_err=yes
3488
 
fi
3489
 
if test -z "$ac_cpp_err"; then
3490
 
  # Broken: success on invalid input.
3491
 
continue
3492
 
else
3493
 
  echo "$as_me: failed program was:" >&5
3494
 
sed 's/^/| /' conftest.$ac_ext >&5
3495
 
 
3496
 
  # Passes both tests.
3497
 
ac_preproc_ok=:
3498
 
break
3499
 
fi
3500
 
rm -f conftest.err conftest.$ac_ext
3501
 
 
3502
 
done
3503
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3504
 
rm -f conftest.err conftest.$ac_ext
3505
 
if $ac_preproc_ok; then
3506
 
  :
3507
 
else
3508
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3509
 
See \`config.log' for more details." >&5
3510
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3511
 
See \`config.log' for more details." >&2;}
3512
 
   { (exit 1); exit 1; }; }
3513
 
fi
3514
 
 
3515
 
ac_ext=c
3516
 
ac_cpp='$CPP $CPPFLAGS'
3517
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3520
 
 
3521
 
 
3522
 
echo "$as_me:$LINENO: checking for egrep" >&5
3523
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3524
 
if test "${ac_cv_prog_egrep+set}" = set; then
3525
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3526
 
else
3527
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3528
 
    then ac_cv_prog_egrep='grep -E'
3529
 
    else ac_cv_prog_egrep='egrep'
3530
 
    fi
3531
 
fi
3532
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3533
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3534
 
 EGREP=$ac_cv_prog_egrep
3535
 
 
3536
 
 
3537
 
 
3538
 
echo "$as_me:$LINENO: checking for AIX" >&5
3539
 
echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3540
 
cat >conftest.$ac_ext <<_ACEOF
3541
 
/* confdefs.h.  */
3542
 
_ACEOF
3543
 
cat confdefs.h >>conftest.$ac_ext
3544
 
cat >>conftest.$ac_ext <<_ACEOF
3545
 
/* end confdefs.h.  */
3546
 
#ifdef _AIX
3547
 
  yes
3548
 
#endif
3549
 
 
3550
 
_ACEOF
3551
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3552
 
  $EGREP "yes" >/dev/null 2>&1; then
3553
 
  echo "$as_me:$LINENO: result: yes" >&5
3554
 
echo "${ECHO_T}yes" >&6
3555
 
cat >>confdefs.h <<\_ACEOF
3556
 
#define _ALL_SOURCE 1
3557
 
_ACEOF
3558
 
 
3559
 
else
3560
 
  echo "$as_me:$LINENO: result: no" >&5
3561
 
echo "${ECHO_T}no" >&6
3562
 
fi
3563
 
rm -f conftest*
3564
 
 
3565
 
 
3566
 
 
3567
 
ac_ext=c
3568
 
ac_cpp='$CPP $CPPFLAGS'
3569
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572
 
if test -n "$ac_tool_prefix"; then
3573
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3574
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3575
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3576
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3577
 
if test "${ac_cv_prog_CC+set}" = set; then
3578
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3579
 
else
3580
 
  if test -n "$CC"; then
3581
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3582
 
else
3583
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584
 
for as_dir in $PATH
3585
 
do
3586
 
  IFS=$as_save_IFS
3587
 
  test -z "$as_dir" && as_dir=.
3588
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3589
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3590
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3591
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3592
 
    break 2
3593
 
  fi
3594
 
done
3595
 
done
3596
 
 
3597
 
fi
3598
 
fi
3599
 
CC=$ac_cv_prog_CC
3600
 
if test -n "$CC"; then
3601
 
  echo "$as_me:$LINENO: result: $CC" >&5
3602
 
echo "${ECHO_T}$CC" >&6
3603
 
else
3604
 
  echo "$as_me:$LINENO: result: no" >&5
3605
 
echo "${ECHO_T}no" >&6
3606
 
fi
3607
 
 
3608
 
fi
3609
 
if test -z "$ac_cv_prog_CC"; then
3610
 
  ac_ct_CC=$CC
3611
 
  # Extract the first word of "gcc", so it can be a program name with args.
3612
 
set dummy gcc; ac_word=$2
3613
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3614
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3615
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3616
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3617
 
else
3618
 
  if test -n "$ac_ct_CC"; then
3619
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3620
 
else
3621
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622
 
for as_dir in $PATH
3623
 
do
3624
 
  IFS=$as_save_IFS
3625
 
  test -z "$as_dir" && as_dir=.
3626
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3627
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628
 
    ac_cv_prog_ac_ct_CC="gcc"
3629
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3630
 
    break 2
3631
 
  fi
3632
 
done
3633
 
done
3634
 
 
3635
 
fi
3636
 
fi
3637
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3638
 
if test -n "$ac_ct_CC"; then
3639
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3640
 
echo "${ECHO_T}$ac_ct_CC" >&6
3641
 
else
3642
 
  echo "$as_me:$LINENO: result: no" >&5
3643
 
echo "${ECHO_T}no" >&6
3644
 
fi
3645
 
 
3646
 
  CC=$ac_ct_CC
3647
 
else
3648
 
  CC="$ac_cv_prog_CC"
3649
 
fi
3650
 
 
3651
 
if test -z "$CC"; then
3652
 
  if test -n "$ac_tool_prefix"; then
3653
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3654
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
3655
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3656
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3657
 
if test "${ac_cv_prog_CC+set}" = set; then
3658
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3659
 
else
3660
 
  if test -n "$CC"; then
3661
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3662
 
else
3663
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664
 
for as_dir in $PATH
3665
 
do
3666
 
  IFS=$as_save_IFS
3667
 
  test -z "$as_dir" && as_dir=.
3668
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3669
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3671
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3672
 
    break 2
3673
 
  fi
3674
 
done
3675
 
done
3676
 
 
3677
 
fi
3678
 
fi
3679
 
CC=$ac_cv_prog_CC
3680
 
if test -n "$CC"; then
3681
 
  echo "$as_me:$LINENO: result: $CC" >&5
3682
 
echo "${ECHO_T}$CC" >&6
3683
 
else
3684
 
  echo "$as_me:$LINENO: result: no" >&5
3685
 
echo "${ECHO_T}no" >&6
3686
 
fi
3687
 
 
3688
 
fi
3689
 
if test -z "$ac_cv_prog_CC"; then
3690
 
  ac_ct_CC=$CC
3691
 
  # Extract the first word of "cc", so it can be a program name with args.
3692
 
set dummy cc; ac_word=$2
3693
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3694
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3695
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3696
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3697
 
else
3698
 
  if test -n "$ac_ct_CC"; then
3699
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3700
 
else
3701
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702
 
for as_dir in $PATH
3703
 
do
3704
 
  IFS=$as_save_IFS
3705
 
  test -z "$as_dir" && as_dir=.
3706
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3707
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708
 
    ac_cv_prog_ac_ct_CC="cc"
3709
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710
 
    break 2
3711
 
  fi
3712
 
done
3713
 
done
3714
 
 
3715
 
fi
3716
 
fi
3717
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3718
 
if test -n "$ac_ct_CC"; then
3719
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3720
 
echo "${ECHO_T}$ac_ct_CC" >&6
3721
 
else
3722
 
  echo "$as_me:$LINENO: result: no" >&5
3723
 
echo "${ECHO_T}no" >&6
3724
 
fi
3725
 
 
3726
 
  CC=$ac_ct_CC
3727
 
else
3728
 
  CC="$ac_cv_prog_CC"
3729
 
fi
3730
 
 
3731
 
fi
3732
 
if test -z "$CC"; then
3733
 
  # Extract the first word of "cc", so it can be a program name with args.
3734
 
set dummy cc; ac_word=$2
3735
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3736
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737
 
if test "${ac_cv_prog_CC+set}" = set; then
3738
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3739
 
else
3740
 
  if test -n "$CC"; then
3741
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3742
 
else
3743
 
  ac_prog_rejected=no
3744
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745
 
for as_dir in $PATH
3746
 
do
3747
 
  IFS=$as_save_IFS
3748
 
  test -z "$as_dir" && as_dir=.
3749
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3750
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3751
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3752
 
       ac_prog_rejected=yes
3753
 
       continue
3754
 
     fi
3755
 
    ac_cv_prog_CC="cc"
3756
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3757
 
    break 2
3758
 
  fi
3759
 
done
3760
 
done
3761
 
 
3762
 
if test $ac_prog_rejected = yes; then
3763
 
  # We found a bogon in the path, so make sure we never use it.
3764
 
  set dummy $ac_cv_prog_CC
3765
 
  shift
3766
 
  if test $# != 0; then
3767
 
    # We chose a different compiler from the bogus one.
3768
 
    # However, it has the same basename, so the bogon will be chosen
3769
 
    # first if we set CC to just the basename; use the full file name.
3770
 
    shift
3771
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3772
 
  fi
3773
 
fi
3774
 
fi
3775
 
fi
3776
 
CC=$ac_cv_prog_CC
3777
 
if test -n "$CC"; then
3778
 
  echo "$as_me:$LINENO: result: $CC" >&5
3779
 
echo "${ECHO_T}$CC" >&6
3780
 
else
3781
 
  echo "$as_me:$LINENO: result: no" >&5
3782
 
echo "${ECHO_T}no" >&6
3783
 
fi
3784
 
 
3785
 
fi
3786
 
if test -z "$CC"; then
3787
 
  if test -n "$ac_tool_prefix"; then
3788
 
  for ac_prog in cl
3789
 
  do
3790
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3791
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3792
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3793
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3794
 
if test "${ac_cv_prog_CC+set}" = set; then
3795
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3796
 
else
3797
 
  if test -n "$CC"; then
3798
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3799
 
else
3800
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801
 
for as_dir in $PATH
3802
 
do
3803
 
  IFS=$as_save_IFS
3804
 
  test -z "$as_dir" && as_dir=.
3805
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3806
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3808
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3809
 
    break 2
3810
 
  fi
3811
 
done
3812
 
done
3813
 
 
3814
 
fi
3815
 
fi
3816
 
CC=$ac_cv_prog_CC
3817
 
if test -n "$CC"; then
3818
 
  echo "$as_me:$LINENO: result: $CC" >&5
3819
 
echo "${ECHO_T}$CC" >&6
3820
 
else
3821
 
  echo "$as_me:$LINENO: result: no" >&5
3822
 
echo "${ECHO_T}no" >&6
3823
 
fi
3824
 
 
3825
 
    test -n "$CC" && break
3826
 
  done
3827
 
fi
3828
 
if test -z "$CC"; then
3829
 
  ac_ct_CC=$CC
3830
 
  for ac_prog in cl
3831
 
do
3832
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3833
 
set dummy $ac_prog; ac_word=$2
3834
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3835
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3836
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3837
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3838
 
else
3839
 
  if test -n "$ac_ct_CC"; then
3840
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3841
 
else
3842
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843
 
for as_dir in $PATH
3844
 
do
3845
 
  IFS=$as_save_IFS
3846
 
  test -z "$as_dir" && as_dir=.
3847
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3848
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
3850
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3851
 
    break 2
3852
 
  fi
3853
 
done
3854
 
done
3855
 
 
3856
 
fi
3857
 
fi
3858
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3859
 
if test -n "$ac_ct_CC"; then
3860
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3861
 
echo "${ECHO_T}$ac_ct_CC" >&6
3862
 
else
3863
 
  echo "$as_me:$LINENO: result: no" >&5
3864
 
echo "${ECHO_T}no" >&6
3865
 
fi
3866
 
 
3867
 
  test -n "$ac_ct_CC" && break
3868
 
done
3869
 
 
3870
 
  CC=$ac_ct_CC
3871
 
fi
3872
 
 
3873
 
fi
3874
 
 
3875
 
 
3876
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3877
 
See \`config.log' for more details." >&5
3878
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
3879
 
See \`config.log' for more details." >&2;}
3880
 
   { (exit 1); exit 1; }; }
3881
 
 
3882
 
# Provide some information about the compiler.
3883
 
echo "$as_me:$LINENO:" \
3884
 
     "checking for C compiler version" >&5
3885
 
ac_compiler=`set X $ac_compile; echo $2`
3886
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3887
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
3888
 
  ac_status=$?
3889
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890
 
  (exit $ac_status); }
3891
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3892
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
3893
 
  ac_status=$?
3894
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895
 
  (exit $ac_status); }
3896
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3897
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
3898
 
  ac_status=$?
3899
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900
 
  (exit $ac_status); }
3901
 
 
3902
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3903
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3904
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3905
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3906
 
else
3907
 
  cat >conftest.$ac_ext <<_ACEOF
3908
 
/* confdefs.h.  */
3909
 
_ACEOF
3910
 
cat confdefs.h >>conftest.$ac_ext
3911
 
cat >>conftest.$ac_ext <<_ACEOF
3912
 
/* end confdefs.h.  */
3913
 
 
3914
 
int
3915
 
main ()
3916
 
{
3917
 
#ifndef __GNUC__
3918
 
       choke me
3919
 
#endif
3920
 
 
3921
 
  ;
3922
 
  return 0;
3923
 
}
3924
 
_ACEOF
3925
 
rm -f conftest.$ac_objext
3926
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3927
 
  (eval $ac_compile) 2>conftest.er1
3928
 
  ac_status=$?
3929
 
  grep -v '^ *+' conftest.er1 >conftest.err
3930
 
  rm -f conftest.er1
3931
 
  cat conftest.err >&5
3932
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933
 
  (exit $ac_status); } &&
3934
 
         { ac_try='test -z "$ac_c_werror_flag"
3935
 
                         || test ! -s conftest.err'
3936
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937
 
  (eval $ac_try) 2>&5
3938
 
  ac_status=$?
3939
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940
 
  (exit $ac_status); }; } &&
3941
 
         { ac_try='test -s conftest.$ac_objext'
3942
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943
 
  (eval $ac_try) 2>&5
3944
 
  ac_status=$?
3945
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946
 
  (exit $ac_status); }; }; then
3947
 
  ac_compiler_gnu=yes
3948
 
else
3949
 
  echo "$as_me: failed program was:" >&5
3950
 
sed 's/^/| /' conftest.$ac_ext >&5
3951
 
 
3952
 
ac_compiler_gnu=no
3953
 
fi
3954
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3955
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3956
 
 
3957
 
fi
3958
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3959
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3960
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
3961
 
ac_test_CFLAGS=${CFLAGS+set}
3962
 
ac_save_CFLAGS=$CFLAGS
3963
 
CFLAGS="-g"
3964
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3965
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3966
 
if test "${ac_cv_prog_cc_g+set}" = set; then
3967
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3968
 
else
3969
 
  cat >conftest.$ac_ext <<_ACEOF
3970
 
/* confdefs.h.  */
3971
 
_ACEOF
3972
 
cat confdefs.h >>conftest.$ac_ext
3973
 
cat >>conftest.$ac_ext <<_ACEOF
3974
 
/* end confdefs.h.  */
3975
 
 
3976
 
int
3977
 
main ()
3978
 
{
3979
 
 
3980
 
  ;
3981
 
  return 0;
3982
 
}
3983
 
_ACEOF
3984
 
rm -f conftest.$ac_objext
3985
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986
 
  (eval $ac_compile) 2>conftest.er1
3987
 
  ac_status=$?
3988
 
  grep -v '^ *+' conftest.er1 >conftest.err
3989
 
  rm -f conftest.er1
3990
 
  cat conftest.err >&5
3991
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992
 
  (exit $ac_status); } &&
3993
 
         { ac_try='test -z "$ac_c_werror_flag"
3994
 
                         || test ! -s conftest.err'
3995
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996
 
  (eval $ac_try) 2>&5
3997
 
  ac_status=$?
3998
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999
 
  (exit $ac_status); }; } &&
4000
 
         { ac_try='test -s conftest.$ac_objext'
4001
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002
 
  (eval $ac_try) 2>&5
4003
 
  ac_status=$?
4004
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005
 
  (exit $ac_status); }; }; then
4006
 
  ac_cv_prog_cc_g=yes
4007
 
else
4008
 
  echo "$as_me: failed program was:" >&5
4009
 
sed 's/^/| /' conftest.$ac_ext >&5
4010
 
 
4011
 
ac_cv_prog_cc_g=no
4012
 
fi
4013
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4014
 
fi
4015
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4016
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4017
 
if test "$ac_test_CFLAGS" = set; then
4018
 
  CFLAGS=$ac_save_CFLAGS
4019
 
elif test $ac_cv_prog_cc_g = yes; then
4020
 
  if test "$GCC" = yes; then
4021
 
    CFLAGS="-g -O2"
4022
 
  else
4023
 
    CFLAGS="-g"
4024
 
  fi
4025
 
else
4026
 
  if test "$GCC" = yes; then
4027
 
    CFLAGS="-O2"
4028
 
  else
4029
 
    CFLAGS=
4030
 
  fi
4031
 
fi
4032
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4033
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4034
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
4035
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4036
 
else
4037
 
  ac_cv_prog_cc_stdc=no
4038
 
ac_save_CC=$CC
4039
 
cat >conftest.$ac_ext <<_ACEOF
4040
 
/* confdefs.h.  */
4041
 
_ACEOF
4042
 
cat confdefs.h >>conftest.$ac_ext
4043
 
cat >>conftest.$ac_ext <<_ACEOF
4044
 
/* end confdefs.h.  */
4045
 
#include <stdarg.h>
4046
 
#include <stdio.h>
4047
 
#include <sys/types.h>
4048
 
#include <sys/stat.h>
4049
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4050
 
struct buf { int x; };
4051
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4052
 
static char *e (p, i)
4053
 
     char **p;
4054
 
     int i;
4055
 
{
4056
 
  return p[i];
4057
 
}
4058
 
static char *f (char * (*g) (char **, int), char **p, ...)
4059
 
{
4060
 
  char *s;
4061
 
  va_list v;
4062
 
  va_start (v,p);
4063
 
  s = g (p, va_arg (v,int));
4064
 
  va_end (v);
4065
 
  return s;
4066
 
}
4067
 
 
4068
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4069
 
   function prototypes and stuff, but not '\xHH' hex character constants.
4070
 
   These don't provoke an error unfortunately, instead are silently treated
4071
 
   as 'x'.  The following induces an error, until -std1 is added to get
4072
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4073
 
   array size at least.  It's necessary to write '\x00'==0 to get something
4074
 
   that's true only with -std1.  */
4075
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4076
 
 
4077
 
int test (int i, double x);
4078
 
struct s1 {int (*f) (int a);};
4079
 
struct s2 {int (*f) (double a);};
4080
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4081
 
int argc;
4082
 
char **argv;
4083
 
int
4084
 
main ()
4085
 
{
4086
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4087
 
  ;
4088
 
  return 0;
4089
 
}
4090
 
_ACEOF
4091
 
# Don't try gcc -ansi; that turns off useful extensions and
4092
 
# breaks some systems' header files.
4093
 
# AIX                   -qlanglvl=ansi
4094
 
# Ultrix and OSF/1      -std1
4095
 
# HP-UX 10.20 and later -Ae
4096
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
4097
 
# SVR4                  -Xc -D__EXTENSIONS__
4098
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4099
 
do
4100
 
  CC="$ac_save_CC $ac_arg"
4101
 
  rm -f conftest.$ac_objext
4102
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4103
 
  (eval $ac_compile) 2>conftest.er1
4104
 
  ac_status=$?
4105
 
  grep -v '^ *+' conftest.er1 >conftest.err
4106
 
  rm -f conftest.er1
4107
 
  cat conftest.err >&5
4108
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109
 
  (exit $ac_status); } &&
4110
 
         { ac_try='test -z "$ac_c_werror_flag"
4111
 
                         || test ! -s conftest.err'
4112
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113
 
  (eval $ac_try) 2>&5
4114
 
  ac_status=$?
4115
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116
 
  (exit $ac_status); }; } &&
4117
 
         { ac_try='test -s conftest.$ac_objext'
4118
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119
 
  (eval $ac_try) 2>&5
4120
 
  ac_status=$?
4121
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122
 
  (exit $ac_status); }; }; then
4123
 
  ac_cv_prog_cc_stdc=$ac_arg
4124
 
break
4125
 
else
4126
 
  echo "$as_me: failed program was:" >&5
4127
 
sed 's/^/| /' conftest.$ac_ext >&5
4128
 
 
4129
 
fi
4130
 
rm -f conftest.err conftest.$ac_objext
4131
 
done
4132
 
rm -f conftest.$ac_ext conftest.$ac_objext
4133
 
CC=$ac_save_CC
4134
 
 
4135
 
fi
4136
 
 
4137
 
case "x$ac_cv_prog_cc_stdc" in
4138
 
  x|xno)
4139
 
    echo "$as_me:$LINENO: result: none needed" >&5
4140
 
echo "${ECHO_T}none needed" >&6 ;;
4141
 
  *)
4142
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4143
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4144
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
4145
 
esac
4146
 
 
4147
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
4148
 
# in C++ we need to declare it.  In case someone uses the same compiler
4149
 
# for both compiling C and C++ we need to have the C++ compiler decide
4150
 
# the declaration of exit, since it's the most demanding environment.
4151
 
cat >conftest.$ac_ext <<_ACEOF
4152
 
#ifndef __cplusplus
4153
 
  choke me
4154
 
#endif
4155
 
_ACEOF
4156
 
rm -f conftest.$ac_objext
4157
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4158
 
  (eval $ac_compile) 2>conftest.er1
4159
 
  ac_status=$?
4160
 
  grep -v '^ *+' conftest.er1 >conftest.err
4161
 
  rm -f conftest.er1
4162
 
  cat conftest.err >&5
4163
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164
 
  (exit $ac_status); } &&
4165
 
         { ac_try='test -z "$ac_c_werror_flag"
4166
 
                         || test ! -s conftest.err'
4167
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168
 
  (eval $ac_try) 2>&5
4169
 
  ac_status=$?
4170
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171
 
  (exit $ac_status); }; } &&
4172
 
         { ac_try='test -s conftest.$ac_objext'
4173
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174
 
  (eval $ac_try) 2>&5
4175
 
  ac_status=$?
4176
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177
 
  (exit $ac_status); }; }; then
4178
 
  for ac_declaration in \
4179
 
   '' \
4180
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4181
 
   'extern "C" void std::exit (int); using std::exit;' \
4182
 
   'extern "C" void exit (int) throw ();' \
4183
 
   'extern "C" void exit (int);' \
4184
 
   'void exit (int);'
4185
 
do
4186
 
  cat >conftest.$ac_ext <<_ACEOF
4187
 
/* confdefs.h.  */
4188
 
_ACEOF
4189
 
cat confdefs.h >>conftest.$ac_ext
4190
 
cat >>conftest.$ac_ext <<_ACEOF
4191
 
/* end confdefs.h.  */
4192
 
$ac_declaration
4193
 
#include <stdlib.h>
4194
 
int
4195
 
main ()
4196
 
{
4197
 
exit (42);
4198
 
  ;
4199
 
  return 0;
4200
 
}
4201
 
_ACEOF
4202
 
rm -f conftest.$ac_objext
4203
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4204
 
  (eval $ac_compile) 2>conftest.er1
4205
 
  ac_status=$?
4206
 
  grep -v '^ *+' conftest.er1 >conftest.err
4207
 
  rm -f conftest.er1
4208
 
  cat conftest.err >&5
4209
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210
 
  (exit $ac_status); } &&
4211
 
         { ac_try='test -z "$ac_c_werror_flag"
4212
 
                         || test ! -s conftest.err'
4213
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214
 
  (eval $ac_try) 2>&5
4215
 
  ac_status=$?
4216
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217
 
  (exit $ac_status); }; } &&
4218
 
         { ac_try='test -s conftest.$ac_objext'
4219
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220
 
  (eval $ac_try) 2>&5
4221
 
  ac_status=$?
4222
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223
 
  (exit $ac_status); }; }; then
4224
 
  :
4225
 
else
4226
 
  echo "$as_me: failed program was:" >&5
4227
 
sed 's/^/| /' conftest.$ac_ext >&5
4228
 
 
4229
 
continue
4230
 
fi
4231
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4232
 
  cat >conftest.$ac_ext <<_ACEOF
4233
 
/* confdefs.h.  */
4234
 
_ACEOF
4235
 
cat confdefs.h >>conftest.$ac_ext
4236
 
cat >>conftest.$ac_ext <<_ACEOF
4237
 
/* end confdefs.h.  */
4238
 
$ac_declaration
4239
 
int
4240
 
main ()
4241
 
{
4242
 
exit (42);
4243
 
  ;
4244
 
  return 0;
4245
 
}
4246
 
_ACEOF
4247
 
rm -f conftest.$ac_objext
4248
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4249
 
  (eval $ac_compile) 2>conftest.er1
4250
 
  ac_status=$?
4251
 
  grep -v '^ *+' conftest.er1 >conftest.err
4252
 
  rm -f conftest.er1
4253
 
  cat conftest.err >&5
4254
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255
 
  (exit $ac_status); } &&
4256
 
         { ac_try='test -z "$ac_c_werror_flag"
4257
 
                         || test ! -s conftest.err'
4258
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259
 
  (eval $ac_try) 2>&5
4260
 
  ac_status=$?
4261
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262
 
  (exit $ac_status); }; } &&
4263
 
         { ac_try='test -s conftest.$ac_objext'
4264
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265
 
  (eval $ac_try) 2>&5
4266
 
  ac_status=$?
4267
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268
 
  (exit $ac_status); }; }; then
4269
 
  break
4270
 
else
4271
 
  echo "$as_me: failed program was:" >&5
4272
 
sed 's/^/| /' conftest.$ac_ext >&5
4273
 
 
4274
 
fi
4275
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4276
 
done
4277
 
rm -f conftest*
4278
 
if test -n "$ac_declaration"; then
4279
 
  echo '#ifdef __cplusplus' >>confdefs.h
4280
 
  echo $ac_declaration      >>confdefs.h
4281
 
  echo '#endif'             >>confdefs.h
4282
 
fi
4283
 
 
4284
 
else
4285
 
  echo "$as_me: failed program was:" >&5
4286
 
sed 's/^/| /' conftest.$ac_ext >&5
4287
 
 
4288
 
fi
4289
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4290
 
ac_ext=c
4291
 
ac_cpp='$CPP $CPPFLAGS'
4292
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295
 
 
4296
 
depcc="$CC"   am_compiler_list=
4297
 
 
4298
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4299
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4300
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4301
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4302
 
else
4303
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4304
 
  # We make a subdir and do the tests there.  Otherwise we can end up
4305
 
  # making bogus files that we don't know about and never remove.  For
4306
 
  # instance it was reported that on HP-UX the gcc test will end up
4307
 
  # making a dummy file named `D' -- because `-MD' means `put the output
4308
 
  # in D'.
4309
 
  mkdir conftest.dir
4310
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
4311
 
  # using a relative directory.
4312
 
  cp "$am_depcomp" conftest.dir
4313
 
  cd conftest.dir
4314
 
  # We will build objects and dependencies in a subdirectory because
4315
 
  # it helps to detect inapplicable dependency modes.  For instance
4316
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
4317
 
  # side effect of compilation, but ICC will put the dependencies in
4318
 
  # the current directory while Tru64 will put them in the object
4319
 
  # directory.
4320
 
  mkdir sub
4321
 
 
4322
 
  am_cv_CC_dependencies_compiler_type=none
4323
 
  if test "$am_compiler_list" = ""; then
4324
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4325
 
  fi
4326
 
  for depmode in $am_compiler_list; do
4327
 
    # Setup a source with many dependencies, because some compilers
4328
 
    # like to wrap large dependency lists on column 80 (with \), and
4329
 
    # we should not choose a depcomp mode which is confused by this.
4330
 
    #
4331
 
    # We need to recreate these files for each test, as the compiler may
4332
 
    # overwrite some of them when testing with obscure command lines.
4333
 
    # This happens at least with the AIX C compiler.
4334
 
    : > sub/conftest.c
4335
 
    for i in 1 2 3 4 5 6; do
4336
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4337
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4338
 
      # Solaris 8's {/usr,}/bin/sh.
4339
 
      touch sub/conftst$i.h
4340
 
    done
4341
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4342
 
 
4343
 
    case $depmode in
4344
 
    nosideeffect)
4345
 
      # after this tag, mechanisms are not by side-effect, so they'll
4346
 
      # only be used when explicitly requested
4347
 
      if test "x$enable_dependency_tracking" = xyes; then
4348
 
        continue
4349
 
      else
4350
 
        break
4351
 
      fi
4352
 
      ;;
4353
 
    none) break ;;
4354
 
    esac
4355
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4356
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
4357
 
    # handle `-M -o', and we need to detect this.
4358
 
    if depmode=$depmode \
4359
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4360
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4361
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4362
 
         >/dev/null 2>conftest.err &&
4363
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4364
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4365
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4366
 
      # icc doesn't choke on unknown options, it will just issue warnings
4367
 
      # (even with -Werror).  So we grep stderr for any message
4368
 
      # that says an option was ignored.
4369
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4370
 
        am_cv_CC_dependencies_compiler_type=$depmode
4371
 
        break
4372
 
      fi
4373
 
    fi
4374
 
  done
4375
 
 
4376
 
  cd ..
4377
 
  rm -rf conftest.dir
4378
 
else
4379
 
  am_cv_CC_dependencies_compiler_type=none
4380
 
fi
4381
 
 
4382
 
fi
4383
 
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4384
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4385
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4386
 
 
4387
 
 
4388
 
 
4389
 
if
4390
 
  test "x$enable_dependency_tracking" != xno \
4391
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4392
 
  am__fastdepCC_TRUE=
4393
 
  am__fastdepCC_FALSE='#'
4394
 
else
4395
 
  am__fastdepCC_TRUE='#'
4396
 
  am__fastdepCC_FALSE=
4397
 
fi
4398
 
 
4399
 
 
4400
 
 
4401
 
# Check whether --enable-largefile or --disable-largefile was given.
4402
 
if test "${enable_largefile+set}" = set; then
4403
 
  enableval="$enable_largefile"
4404
 
 
4405
 
fi;
4406
 
if test "$enable_largefile" != no; then
4407
 
 
4408
 
  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4409
 
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4410
 
if test "${ac_cv_sys_largefile_CC+set}" = set; then
4411
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4412
 
else
4413
 
  ac_cv_sys_largefile_CC=no
4414
 
     if test "$GCC" != yes; then
4415
 
       ac_save_CC=$CC
4416
 
       while :; do
4417
 
         # IRIX 6.2 and later do not support large files by default,
4418
 
         # so use the C compiler's -n32 option if that helps.
4419
 
         cat >conftest.$ac_ext <<_ACEOF
4420
 
/* confdefs.h.  */
4421
 
_ACEOF
4422
 
cat confdefs.h >>conftest.$ac_ext
4423
 
cat >>conftest.$ac_ext <<_ACEOF
4424
 
/* end confdefs.h.  */
4425
 
#include <sys/types.h>
4426
 
 /* Check that off_t can represent 2**63 - 1 correctly.
4427
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4428
 
    since some C++ compilers masquerading as C compilers
4429
 
    incorrectly reject 9223372036854775807.  */
4430
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4431
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4432
 
                       && LARGE_OFF_T % 2147483647 == 1)
4433
 
                      ? 1 : -1];
4434
 
int
4435
 
main ()
4436
 
{
4437
 
 
4438
 
  ;
4439
 
  return 0;
4440
 
}
4441
 
_ACEOF
4442
 
         rm -f conftest.$ac_objext
4443
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444
 
  (eval $ac_compile) 2>conftest.er1
4445
 
  ac_status=$?
4446
 
  grep -v '^ *+' conftest.er1 >conftest.err
4447
 
  rm -f conftest.er1
4448
 
  cat conftest.err >&5
4449
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450
 
  (exit $ac_status); } &&
4451
 
         { ac_try='test -z "$ac_c_werror_flag"
4452
 
                         || test ! -s conftest.err'
4453
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454
 
  (eval $ac_try) 2>&5
4455
 
  ac_status=$?
4456
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457
 
  (exit $ac_status); }; } &&
4458
 
         { ac_try='test -s conftest.$ac_objext'
4459
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460
 
  (eval $ac_try) 2>&5
4461
 
  ac_status=$?
4462
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463
 
  (exit $ac_status); }; }; then
4464
 
  break
4465
 
else
4466
 
  echo "$as_me: failed program was:" >&5
4467
 
sed 's/^/| /' conftest.$ac_ext >&5
4468
 
 
4469
 
fi
4470
 
rm -f conftest.err conftest.$ac_objext
4471
 
         CC="$CC -n32"
4472
 
         rm -f conftest.$ac_objext
4473
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474
 
  (eval $ac_compile) 2>conftest.er1
4475
 
  ac_status=$?
4476
 
  grep -v '^ *+' conftest.er1 >conftest.err
4477
 
  rm -f conftest.er1
4478
 
  cat conftest.err >&5
4479
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480
 
  (exit $ac_status); } &&
4481
 
         { ac_try='test -z "$ac_c_werror_flag"
4482
 
                         || test ! -s conftest.err'
4483
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484
 
  (eval $ac_try) 2>&5
4485
 
  ac_status=$?
4486
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487
 
  (exit $ac_status); }; } &&
4488
 
         { ac_try='test -s conftest.$ac_objext'
4489
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490
 
  (eval $ac_try) 2>&5
4491
 
  ac_status=$?
4492
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493
 
  (exit $ac_status); }; }; then
4494
 
  ac_cv_sys_largefile_CC=' -n32'; break
4495
 
else
4496
 
  echo "$as_me: failed program was:" >&5
4497
 
sed 's/^/| /' conftest.$ac_ext >&5
4498
 
 
4499
 
fi
4500
 
rm -f conftest.err conftest.$ac_objext
4501
 
         break
4502
 
       done
4503
 
       CC=$ac_save_CC
4504
 
       rm -f conftest.$ac_ext
4505
 
    fi
4506
 
fi
4507
 
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4508
 
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4509
 
  if test "$ac_cv_sys_largefile_CC" != no; then
4510
 
    CC=$CC$ac_cv_sys_largefile_CC
4511
 
  fi
4512
 
 
4513
 
  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4514
 
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4515
 
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4516
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4517
 
else
4518
 
  while :; do
4519
 
  ac_cv_sys_file_offset_bits=no
4520
 
  cat >conftest.$ac_ext <<_ACEOF
4521
 
/* confdefs.h.  */
4522
 
_ACEOF
4523
 
cat confdefs.h >>conftest.$ac_ext
4524
 
cat >>conftest.$ac_ext <<_ACEOF
4525
 
/* end confdefs.h.  */
4526
 
#include <sys/types.h>
4527
 
 /* Check that off_t can represent 2**63 - 1 correctly.
4528
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4529
 
    since some C++ compilers masquerading as C compilers
4530
 
    incorrectly reject 9223372036854775807.  */
4531
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4532
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4533
 
                       && LARGE_OFF_T % 2147483647 == 1)
4534
 
                      ? 1 : -1];
4535
 
int
4536
 
main ()
4537
 
{
4538
 
 
4539
 
  ;
4540
 
  return 0;
4541
 
}
4542
 
_ACEOF
4543
 
rm -f conftest.$ac_objext
4544
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545
 
  (eval $ac_compile) 2>conftest.er1
4546
 
  ac_status=$?
4547
 
  grep -v '^ *+' conftest.er1 >conftest.err
4548
 
  rm -f conftest.er1
4549
 
  cat conftest.err >&5
4550
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551
 
  (exit $ac_status); } &&
4552
 
         { ac_try='test -z "$ac_c_werror_flag"
4553
 
                         || test ! -s conftest.err'
4554
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555
 
  (eval $ac_try) 2>&5
4556
 
  ac_status=$?
4557
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558
 
  (exit $ac_status); }; } &&
4559
 
         { ac_try='test -s conftest.$ac_objext'
4560
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561
 
  (eval $ac_try) 2>&5
4562
 
  ac_status=$?
4563
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564
 
  (exit $ac_status); }; }; then
4565
 
  break
4566
 
else
4567
 
  echo "$as_me: failed program was:" >&5
4568
 
sed 's/^/| /' conftest.$ac_ext >&5
4569
 
 
4570
 
fi
4571
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4572
 
  cat >conftest.$ac_ext <<_ACEOF
4573
 
/* confdefs.h.  */
4574
 
_ACEOF
4575
 
cat confdefs.h >>conftest.$ac_ext
4576
 
cat >>conftest.$ac_ext <<_ACEOF
4577
 
/* end confdefs.h.  */
4578
 
#define _FILE_OFFSET_BITS 64
4579
 
#include <sys/types.h>
4580
 
 /* Check that off_t can represent 2**63 - 1 correctly.
4581
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4582
 
    since some C++ compilers masquerading as C compilers
4583
 
    incorrectly reject 9223372036854775807.  */
4584
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4585
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4586
 
                       && LARGE_OFF_T % 2147483647 == 1)
4587
 
                      ? 1 : -1];
4588
 
int
4589
 
main ()
4590
 
{
4591
 
 
4592
 
  ;
4593
 
  return 0;
4594
 
}
4595
 
_ACEOF
4596
 
rm -f conftest.$ac_objext
4597
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598
 
  (eval $ac_compile) 2>conftest.er1
4599
 
  ac_status=$?
4600
 
  grep -v '^ *+' conftest.er1 >conftest.err
4601
 
  rm -f conftest.er1
4602
 
  cat conftest.err >&5
4603
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604
 
  (exit $ac_status); } &&
4605
 
         { ac_try='test -z "$ac_c_werror_flag"
4606
 
                         || test ! -s conftest.err'
4607
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608
 
  (eval $ac_try) 2>&5
4609
 
  ac_status=$?
4610
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611
 
  (exit $ac_status); }; } &&
4612
 
         { ac_try='test -s conftest.$ac_objext'
4613
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614
 
  (eval $ac_try) 2>&5
4615
 
  ac_status=$?
4616
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617
 
  (exit $ac_status); }; }; then
4618
 
  ac_cv_sys_file_offset_bits=64; break
4619
 
else
4620
 
  echo "$as_me: failed program was:" >&5
4621
 
sed 's/^/| /' conftest.$ac_ext >&5
4622
 
 
4623
 
fi
4624
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4625
 
  break
4626
 
done
4627
 
fi
4628
 
echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4629
 
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4630
 
if test "$ac_cv_sys_file_offset_bits" != no; then
4631
 
 
4632
 
cat >>confdefs.h <<_ACEOF
4633
 
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4634
 
_ACEOF
4635
 
 
4636
 
fi
4637
 
rm -f conftest*
4638
 
  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4639
 
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4640
 
if test "${ac_cv_sys_large_files+set}" = set; then
4641
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4642
 
else
4643
 
  while :; do
4644
 
  ac_cv_sys_large_files=no
4645
 
  cat >conftest.$ac_ext <<_ACEOF
4646
 
/* confdefs.h.  */
4647
 
_ACEOF
4648
 
cat confdefs.h >>conftest.$ac_ext
4649
 
cat >>conftest.$ac_ext <<_ACEOF
4650
 
/* end confdefs.h.  */
4651
 
#include <sys/types.h>
4652
 
 /* Check that off_t can represent 2**63 - 1 correctly.
4653
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4654
 
    since some C++ compilers masquerading as C compilers
4655
 
    incorrectly reject 9223372036854775807.  */
4656
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4657
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4658
 
                       && LARGE_OFF_T % 2147483647 == 1)
4659
 
                      ? 1 : -1];
4660
 
int
4661
 
main ()
4662
 
{
4663
 
 
4664
 
  ;
4665
 
  return 0;
4666
 
}
4667
 
_ACEOF
4668
 
rm -f conftest.$ac_objext
4669
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4670
 
  (eval $ac_compile) 2>conftest.er1
4671
 
  ac_status=$?
4672
 
  grep -v '^ *+' conftest.er1 >conftest.err
4673
 
  rm -f conftest.er1
4674
 
  cat conftest.err >&5
4675
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676
 
  (exit $ac_status); } &&
4677
 
         { ac_try='test -z "$ac_c_werror_flag"
4678
 
                         || test ! -s conftest.err'
4679
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680
 
  (eval $ac_try) 2>&5
4681
 
  ac_status=$?
4682
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683
 
  (exit $ac_status); }; } &&
4684
 
         { ac_try='test -s conftest.$ac_objext'
4685
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686
 
  (eval $ac_try) 2>&5
4687
 
  ac_status=$?
4688
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689
 
  (exit $ac_status); }; }; then
4690
 
  break
4691
 
else
4692
 
  echo "$as_me: failed program was:" >&5
4693
 
sed 's/^/| /' conftest.$ac_ext >&5
4694
 
 
4695
 
fi
4696
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4697
 
  cat >conftest.$ac_ext <<_ACEOF
4698
 
/* confdefs.h.  */
4699
 
_ACEOF
4700
 
cat confdefs.h >>conftest.$ac_ext
4701
 
cat >>conftest.$ac_ext <<_ACEOF
4702
 
/* end confdefs.h.  */
4703
 
#define _LARGE_FILES 1
4704
 
#include <sys/types.h>
4705
 
 /* Check that off_t can represent 2**63 - 1 correctly.
4706
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4707
 
    since some C++ compilers masquerading as C compilers
4708
 
    incorrectly reject 9223372036854775807.  */
4709
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4710
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4711
 
                       && LARGE_OFF_T % 2147483647 == 1)
4712
 
                      ? 1 : -1];
4713
 
int
4714
 
main ()
4715
 
{
4716
 
 
4717
 
  ;
4718
 
  return 0;
4719
 
}
4720
 
_ACEOF
4721
 
rm -f conftest.$ac_objext
4722
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4723
 
  (eval $ac_compile) 2>conftest.er1
4724
 
  ac_status=$?
4725
 
  grep -v '^ *+' conftest.er1 >conftest.err
4726
 
  rm -f conftest.er1
4727
 
  cat conftest.err >&5
4728
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729
 
  (exit $ac_status); } &&
4730
 
         { ac_try='test -z "$ac_c_werror_flag"
4731
 
                         || test ! -s conftest.err'
4732
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733
 
  (eval $ac_try) 2>&5
4734
 
  ac_status=$?
4735
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736
 
  (exit $ac_status); }; } &&
4737
 
         { ac_try='test -s conftest.$ac_objext'
4738
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739
 
  (eval $ac_try) 2>&5
4740
 
  ac_status=$?
4741
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742
 
  (exit $ac_status); }; }; then
4743
 
  ac_cv_sys_large_files=1; break
4744
 
else
4745
 
  echo "$as_me: failed program was:" >&5
4746
 
sed 's/^/| /' conftest.$ac_ext >&5
4747
 
 
4748
 
fi
4749
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4750
 
  break
4751
 
done
4752
 
fi
4753
 
echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4754
 
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4755
 
if test "$ac_cv_sys_large_files" != no; then
4756
 
 
4757
 
cat >>confdefs.h <<_ACEOF
4758
 
#define _LARGE_FILES $ac_cv_sys_large_files
4759
 
_ACEOF
4760
 
 
4761
 
fi
4762
 
rm -f conftest*
4763
 
fi
4764
 
 
4765
 
 
4766
 
 
4767
 
 
4768
 
 
4769
 
# Check whether --enable-shared or --disable-shared was given.
4770
 
if test "${enable_shared+set}" = set; then
4771
 
  enableval="$enable_shared"
4772
 
  p=${PACKAGE-default}
4773
 
    case $enableval in
4774
 
    yes) enable_shared=yes ;;
4775
 
    no) enable_shared=no ;;
4776
 
    *)
4777
 
      enable_shared=no
4778
 
      # Look at the argument we got.  We use all the common list separators.
4779
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4780
 
      for pkg in $enableval; do
4781
 
        IFS="$lt_save_ifs"
4782
 
        if test "X$pkg" = "X$p"; then
4783
 
          enable_shared=yes
4784
 
        fi
4785
 
      done
4786
 
      IFS="$lt_save_ifs"
4787
 
      ;;
4788
 
    esac
4789
 
else
4790
 
  enable_shared=yes
4791
 
fi;
4792
 
 
4793
 
# Check whether --enable-static or --disable-static was given.
4794
 
if test "${enable_static+set}" = set; then
4795
 
  enableval="$enable_static"
4796
 
  p=${PACKAGE-default}
4797
 
    case $enableval in
4798
 
    yes) enable_static=yes ;;
4799
 
    no) enable_static=no ;;
4800
 
    *)
4801
 
     enable_static=no
4802
 
      # Look at the argument we got.  We use all the common list separators.
4803
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4804
 
      for pkg in $enableval; do
4805
 
        IFS="$lt_save_ifs"
4806
 
        if test "X$pkg" = "X$p"; then
4807
 
          enable_static=yes
4808
 
        fi
4809
 
      done
4810
 
      IFS="$lt_save_ifs"
4811
 
      ;;
4812
 
    esac
4813
 
else
4814
 
  enable_static=yes
4815
 
fi;
4816
 
 
4817
 
# Check whether --enable-fast-install or --disable-fast-install was given.
4818
 
if test "${enable_fast_install+set}" = set; then
4819
 
  enableval="$enable_fast_install"
4820
 
  p=${PACKAGE-default}
4821
 
    case $enableval in
4822
 
    yes) enable_fast_install=yes ;;
4823
 
    no) enable_fast_install=no ;;
4824
 
    *)
4825
 
      enable_fast_install=no
4826
 
      # Look at the argument we got.  We use all the common list separators.
4827
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4828
 
      for pkg in $enableval; do
4829
 
        IFS="$lt_save_ifs"
4830
 
        if test "X$pkg" = "X$p"; then
4831
 
          enable_fast_install=yes
4832
 
        fi
4833
 
      done
4834
 
      IFS="$lt_save_ifs"
4835
 
      ;;
4836
 
    esac
4837
 
else
4838
 
  enable_fast_install=yes
4839
 
fi;
4840
 
 
4841
 
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4842
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4843
 
if test "${lt_cv_path_SED+set}" = set; then
4844
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4845
 
else
4846
 
  # Loop through the user's path and test for sed and gsed.
4847
 
# Then use that list of sed's as ones to test for truncation.
4848
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849
 
for as_dir in $PATH
4850
 
do
4851
 
  IFS=$as_save_IFS
4852
 
  test -z "$as_dir" && as_dir=.
4853
 
  for lt_ac_prog in sed gsed; do
4854
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4855
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4856
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4857
 
      fi
4858
 
    done
4859
 
  done
4860
 
done
4861
 
lt_ac_max=0
4862
 
lt_ac_count=0
4863
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4864
 
# along with /bin/sed that truncates output.
4865
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4866
 
  test ! -f $lt_ac_sed && break
4867
 
  cat /dev/null > conftest.in
4868
 
  lt_ac_count=0
4869
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4870
 
  # Check for GNU sed and select it if it is found.
4871
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4872
 
    lt_cv_path_SED=$lt_ac_sed
4873
 
    break
4874
 
  fi
4875
 
  while true; do
4876
 
    cat conftest.in conftest.in >conftest.tmp
4877
 
    mv -f conftest.tmp conftest.in
4878
 
    cp conftest.in conftest.nl
4879
 
    echo >>conftest.nl
4880
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4881
 
    cmp -s conftest.out conftest.nl || break
4882
 
    # 10000 chars as input seems more than enough
4883
 
    test $lt_ac_count -gt 10 && break
4884
 
    lt_ac_count=`expr $lt_ac_count + 1`
4885
 
    if test $lt_ac_count -gt $lt_ac_max; then
4886
 
      lt_ac_max=$lt_ac_count
4887
 
      lt_cv_path_SED=$lt_ac_sed
4888
 
    fi
4889
 
  done
4890
 
done
4891
 
SED=$lt_cv_path_SED
4892
 
 
4893
 
fi
4894
 
 
4895
 
echo "$as_me:$LINENO: result: $SED" >&5
4896
 
echo "${ECHO_T}$SED" >&6
4897
 
 
4898
 
 
4899
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4900
 
if test "${with_gnu_ld+set}" = set; then
4901
 
  withval="$with_gnu_ld"
4902
 
  test "$withval" = no || with_gnu_ld=yes
4903
 
else
4904
 
  with_gnu_ld=no
4905
 
fi;
4906
 
ac_prog=ld
4907
 
if test "$GCC" = yes; then
4908
 
  # Check if gcc -print-prog-name=ld gives a path.
4909
 
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4910
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4911
 
  case $host in
4912
 
  *-*-mingw*)
4913
 
    # gcc leaves a trailing carriage return which upsets mingw
4914
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4915
 
  *)
4916
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4917
 
  esac
4918
 
  case $ac_prog in
4919
 
    # Accept absolute paths.
4920
 
    [\\/]* | ?:[\\/]*)
4921
 
      re_direlt='/[^/][^/]*/\.\./'
4922
 
      # Canonicalize the pathname of ld
4923
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4924
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4925
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4926
 
      done
4927
 
      test -z "$LD" && LD="$ac_prog"
4928
 
      ;;
4929
 
  "")
4930
 
    # If it fails, then pretend we aren't using GCC.
4931
 
    ac_prog=ld
4932
 
    ;;
4933
 
  *)
4934
 
    # If it is relative, then search for the first ld in PATH.
4935
 
    with_gnu_ld=unknown
4936
 
    ;;
4937
 
  esac
4938
 
elif test "$with_gnu_ld" = yes; then
4939
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
4940
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4941
 
else
4942
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4943
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4944
 
fi
4945
 
if test "${lt_cv_path_LD+set}" = set; then
4946
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4947
 
else
4948
 
  if test -z "$LD"; then
4949
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4950
 
  for ac_dir in $PATH; do
4951
 
    IFS="$lt_save_ifs"
4952
 
    test -z "$ac_dir" && ac_dir=.
4953
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4954
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
4955
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
4956
 
      # but apparently some GNU ld's only accept -v.
4957
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
4958
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4959
 
      *GNU* | *'with BFD'*)
4960
 
        test "$with_gnu_ld" != no && break
4961
 
        ;;
4962
 
      *)
4963
 
        test "$with_gnu_ld" != yes && break
4964
 
        ;;
4965
 
      esac
4966
 
    fi
4967
 
  done
4968
 
  IFS="$lt_save_ifs"
4969
 
else
4970
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4971
 
fi
4972
 
fi
4973
 
 
4974
 
LD="$lt_cv_path_LD"
4975
 
if test -n "$LD"; then
4976
 
  echo "$as_me:$LINENO: result: $LD" >&5
4977
 
echo "${ECHO_T}$LD" >&6
4978
 
else
4979
 
  echo "$as_me:$LINENO: result: no" >&5
4980
 
echo "${ECHO_T}no" >&6
4981
 
fi
4982
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4983
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4984
 
   { (exit 1); exit 1; }; }
4985
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4986
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4987
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4988
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4989
 
else
4990
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4991
 
case `$LD -v 2>&1 </dev/null` in
4992
 
*GNU* | *'with BFD'*)
4993
 
  lt_cv_prog_gnu_ld=yes
4994
 
  ;;
4995
 
*)
4996
 
  lt_cv_prog_gnu_ld=no
4997
 
  ;;
4998
 
esac
4999
 
fi
5000
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5001
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5002
 
with_gnu_ld=$lt_cv_prog_gnu_ld
5003
 
 
5004
 
 
5005
 
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5006
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5007
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
5008
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5009
 
else
5010
 
  lt_cv_ld_reload_flag='-r'
5011
 
fi
5012
 
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5013
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5014
 
reload_flag=$lt_cv_ld_reload_flag
5015
 
case $reload_flag in
5016
 
"" | " "*) ;;
5017
 
*) reload_flag=" $reload_flag" ;;
5018
 
esac
5019
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5020
 
 
5021
 
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5022
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5023
 
if test "${lt_cv_path_NM+set}" = set; then
5024
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5025
 
else
5026
 
  if test -n "$NM"; then
5027
 
  # Let the user override the test.
5028
 
  lt_cv_path_NM="$NM"
5029
 
else
5030
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5031
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5032
 
    IFS="$lt_save_ifs"
5033
 
    test -z "$ac_dir" && ac_dir=.
5034
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5035
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5036
 
      # Check to see if the nm accepts a BSD-compat flag.
5037
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5038
 
      #   nm: unknown option "B" ignored
5039
 
      # Tru64's nm complains that /dev/null is an invalid object file
5040
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5041
 
      */dev/null* | *'Invalid file or object type'*)
5042
 
        lt_cv_path_NM="$tmp_nm -B"
5043
 
        break
5044
 
        ;;
5045
 
      *)
5046
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5047
 
        */dev/null*)
5048
 
          lt_cv_path_NM="$tmp_nm -p"
5049
 
          break
5050
 
          ;;
5051
 
        *)
5052
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5053
 
          continue # so that we can try to find one that supports BSD flags
5054
 
          ;;
5055
 
        esac
5056
 
      esac
5057
 
    fi
5058
 
  done
5059
 
  IFS="$lt_save_ifs"
5060
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5061
 
fi
5062
 
fi
5063
 
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5064
 
echo "${ECHO_T}$lt_cv_path_NM" >&6
5065
 
NM="$lt_cv_path_NM"
5066
 
 
5067
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
5068
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5069
 
LN_S=$as_ln_s
5070
 
if test "$LN_S" = "ln -s"; then
5071
 
  echo "$as_me:$LINENO: result: yes" >&5
5072
 
echo "${ECHO_T}yes" >&6
5073
 
else
5074
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5075
 
echo "${ECHO_T}no, using $LN_S" >&6
5076
 
fi
5077
 
 
5078
 
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5079
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5080
 
if test "${lt_cv_deplibs_check_method+set}" = set; then
5081
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5082
 
else
5083
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5084
 
lt_cv_file_magic_test_file=
5085
 
lt_cv_deplibs_check_method='unknown'
5086
 
# Need to set the preceding variable on all platforms that support
5087
 
# interlibrary dependencies.
5088
 
# 'none' -- dependencies not supported.
5089
 
# `unknown' -- same as none, but documents that we really don't know.
5090
 
# 'pass_all' -- all dependencies passed with no checks.
5091
 
# 'test_compile' -- check by making test program.
5092
 
# 'file_magic [[regex]]' -- check by looking for files in library path
5093
 
# which responds to the $file_magic_cmd with a given extended regex.
5094
 
# If you have `file' or equivalent on your system and you're not sure
5095
 
# whether `pass_all' will *always* work, you probably want this one.
5096
 
 
5097
 
case $host_os in
5098
 
aix4* | aix5*)
5099
 
  lt_cv_deplibs_check_method=pass_all
5100
 
  ;;
5101
 
 
5102
 
beos*)
5103
 
  lt_cv_deplibs_check_method=pass_all
5104
 
  ;;
5105
 
 
5106
 
bsdi4*)
5107
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5108
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5109
 
  lt_cv_file_magic_test_file=/shlib/libc.so
5110
 
  ;;
5111
 
 
5112
 
cygwin*)
5113
 
  # func_win32_libid is a shell function defined in ltmain.sh
5114
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5115
 
  lt_cv_file_magic_cmd='func_win32_libid'
5116
 
  ;;
5117
 
 
5118
 
mingw* | pw32*)
5119
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
5120
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5121
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5122
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5123
 
  ;;
5124
 
 
5125
 
darwin* | rhapsody*)
5126
 
  lt_cv_deplibs_check_method=pass_all
5127
 
  ;;
5128
 
 
5129
 
freebsd* | kfreebsd*-gnu)
5130
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5131
 
    case $host_cpu in
5132
 
    i*86 )
5133
 
      # Not sure whether the presence of OpenBSD here was a mistake.
5134
 
      # Let's accept both of them until this is cleared up.
5135
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5136
 
      lt_cv_file_magic_cmd=/usr/bin/file
5137
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5138
 
      ;;
5139
 
    esac
5140
 
  else
5141
 
    lt_cv_deplibs_check_method=pass_all
5142
 
  fi
5143
 
  ;;
5144
 
 
5145
 
gnu*)
5146
 
  lt_cv_deplibs_check_method=pass_all
5147
 
  ;;
5148
 
 
5149
 
hpux10.20* | hpux11*)
5150
 
  lt_cv_file_magic_cmd=/usr/bin/file
5151
 
  case "$host_cpu" in
5152
 
  ia64*)
5153
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5154
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5155
 
    ;;
5156
 
  hppa*64*)
5157
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5158
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5159
 
    ;;
5160
 
  *)
5161
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5162
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5163
 
    ;;
5164
 
  esac
5165
 
  ;;
5166
 
 
5167
 
irix5* | irix6* | nonstopux*)
5168
 
  case $LD in
5169
 
  *-32|*"-32 ") libmagic=32-bit;;
5170
 
  *-n32|*"-n32 ") libmagic=N32;;
5171
 
  *-64|*"-64 ") libmagic=64-bit;;
5172
 
  *) libmagic=never-match;;
5173
 
  esac
5174
 
  lt_cv_deplibs_check_method=pass_all
5175
 
  ;;
5176
 
 
5177
 
# This must be Linux ELF.
5178
 
linux*)
5179
 
  case $host_cpu in
5180
 
  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
5181
 
    lt_cv_deplibs_check_method=pass_all ;;
5182
 
  *)
5183
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
5184
 
    # this will be overridden with pass_all, but let us keep it just in case
5185
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5186
 
  esac
5187
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5188
 
  lt_cv_deplibs_check_method=pass_all
5189
 
  ;;
5190
 
 
5191
 
netbsd*)
5192
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5193
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5194
 
  else
5195
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5196
 
  fi
5197
 
  ;;
5198
 
 
5199
 
newos6*)
5200
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5201
 
  lt_cv_file_magic_cmd=/usr/bin/file
5202
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5203
 
  ;;
5204
 
 
5205
 
nto-qnx*)
5206
 
  lt_cv_deplibs_check_method=unknown
5207
 
  ;;
5208
 
 
5209
 
openbsd*)
5210
 
  lt_cv_file_magic_cmd=/usr/bin/file
5211
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5212
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5213
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
5214
 
  else
5215
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
5216
 
  fi
5217
 
  ;;
5218
 
 
5219
 
osf3* | osf4* | osf5*)
5220
 
  lt_cv_deplibs_check_method=pass_all
5221
 
  ;;
5222
 
 
5223
 
sco3.2v5*)
5224
 
  lt_cv_deplibs_check_method=pass_all
5225
 
  ;;
5226
 
 
5227
 
solaris*)
5228
 
  lt_cv_deplibs_check_method=pass_all
5229
 
  ;;
5230
 
 
5231
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5232
 
  case $host_vendor in
5233
 
  motorola)
5234
 
    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]'
5235
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5236
 
    ;;
5237
 
  ncr)
5238
 
    lt_cv_deplibs_check_method=pass_all
5239
 
    ;;
5240
 
  sequent)
5241
 
    lt_cv_file_magic_cmd='/bin/file'
5242
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5243
 
    ;;
5244
 
  sni)
5245
 
    lt_cv_file_magic_cmd='/bin/file'
5246
 
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5247
 
    lt_cv_file_magic_test_file=/lib/libc.so
5248
 
    ;;
5249
 
  siemens)
5250
 
    lt_cv_deplibs_check_method=pass_all
5251
 
    ;;
5252
 
  esac
5253
 
  ;;
5254
 
 
5255
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5256
 
  lt_cv_deplibs_check_method=pass_all
5257
 
  ;;
5258
 
esac
5259
 
 
5260
 
fi
5261
 
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5262
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5263
 
file_magic_cmd=$lt_cv_file_magic_cmd
5264
 
deplibs_check_method=$lt_cv_deplibs_check_method
5265
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5266
 
 
5267
 
 
5268
 
 
5269
 
 
5270
 
# If no C compiler was specified, use CC.
5271
 
LTCC=${LTCC-"$CC"}
5272
 
 
5273
 
# Allow CC to be a program name with arguments.
5274
 
compiler=$CC
5275
 
 
5276
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5277
 
if test "${enable_libtool_lock+set}" = set; then
5278
 
  enableval="$enable_libtool_lock"
5279
 
 
5280
 
fi;
5281
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5282
 
 
5283
 
# Some flags need to be propagated to the compiler or linker for good
5284
 
# libtool support.
5285
 
case $host in
5286
 
ia64-*-hpux*)
5287
 
  # Find out which ABI we are using.
5288
 
  echo 'int i;' > conftest.$ac_ext
5289
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5290
 
  (eval $ac_compile) 2>&5
5291
 
  ac_status=$?
5292
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293
 
  (exit $ac_status); }; then
5294
 
    case `/usr/bin/file conftest.$ac_objext` in
5295
 
    *ELF-32*)
5296
 
      HPUX_IA64_MODE="32"
5297
 
      ;;
5298
 
    *ELF-64*)
5299
 
      HPUX_IA64_MODE="64"
5300
 
      ;;
5301
 
    esac
5302
 
  fi
5303
 
  rm -rf conftest*
5304
 
  ;;
5305
 
*-*-irix6*)
5306
 
  # Find out which ABI we are using.
5307
 
  echo '#line 5307 "configure"' > conftest.$ac_ext
5308
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5309
 
  (eval $ac_compile) 2>&5
5310
 
  ac_status=$?
5311
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312
 
  (exit $ac_status); }; then
5313
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
5314
 
    case `/usr/bin/file conftest.$ac_objext` in
5315
 
    *32-bit*)
5316
 
      LD="${LD-ld} -melf32bsmip"
5317
 
      ;;
5318
 
    *N32*)
5319
 
      LD="${LD-ld} -melf32bmipn32"
5320
 
      ;;
5321
 
    *64-bit*)
5322
 
      LD="${LD-ld} -melf64bmip"
5323
 
      ;;
5324
 
    esac
5325
 
   else
5326
 
    case `/usr/bin/file conftest.$ac_objext` in
5327
 
    *32-bit*)
5328
 
      LD="${LD-ld} -32"
5329
 
      ;;
5330
 
    *N32*)
5331
 
      LD="${LD-ld} -n32"
5332
 
      ;;
5333
 
    *64-bit*)
5334
 
      LD="${LD-ld} -64"
5335
 
      ;;
5336
 
    esac
5337
 
   fi
5338
 
  fi
5339
 
  rm -rf conftest*
5340
 
  ;;
5341
 
 
5342
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5343
 
  # Find out which ABI we are using.
5344
 
  echo 'int i;' > conftest.$ac_ext
5345
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346
 
  (eval $ac_compile) 2>&5
5347
 
  ac_status=$?
5348
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349
 
  (exit $ac_status); }; then
5350
 
    case "`/usr/bin/file conftest.o`" in
5351
 
    *32-bit*)
5352
 
      case $host in
5353
 
        x86_64-*linux*)
5354
 
          LD="${LD-ld} -m elf_i386"
5355
 
          ;;
5356
 
        ppc64-*linux*|powerpc64-*linux*)
5357
 
          LD="${LD-ld} -m elf32ppclinux"
5358
 
          ;;
5359
 
        s390x-*linux*)
5360
 
          LD="${LD-ld} -m elf_s390"
5361
 
          ;;
5362
 
        sparc64-*linux*)
5363
 
          LD="${LD-ld} -m elf32_sparc"
5364
 
          ;;
5365
 
      esac
5366
 
      ;;
5367
 
    *64-bit*)
5368
 
      case $host in
5369
 
        x86_64-*linux*)
5370
 
          LD="${LD-ld} -m elf_x86_64"
5371
 
          ;;
5372
 
        ppc*-*linux*|powerpc*-*linux*)
5373
 
          LD="${LD-ld} -m elf64ppc"
5374
 
          ;;
5375
 
        s390*-*linux*)
5376
 
          LD="${LD-ld} -m elf64_s390"
5377
 
          ;;
5378
 
        sparc*-*linux*)
5379
 
          LD="${LD-ld} -m elf64_sparc"
5380
 
          ;;
5381
 
      esac
5382
 
      ;;
5383
 
    esac
5384
 
  fi
5385
 
  rm -rf conftest*
5386
 
  ;;
5387
 
 
5388
 
*-*-sco3.2v5*)
5389
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5390
 
  SAVE_CFLAGS="$CFLAGS"
5391
 
  CFLAGS="$CFLAGS -belf"
5392
 
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5393
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5394
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
5395
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5396
 
else
5397
 
  ac_ext=c
5398
 
ac_cpp='$CPP $CPPFLAGS'
5399
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5400
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5401
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5402
 
 
5403
 
     cat >conftest.$ac_ext <<_ACEOF
5404
 
/* confdefs.h.  */
5405
 
_ACEOF
5406
 
cat confdefs.h >>conftest.$ac_ext
5407
 
cat >>conftest.$ac_ext <<_ACEOF
5408
 
/* end confdefs.h.  */
5409
 
 
5410
 
int
5411
 
main ()
5412
 
{
5413
 
 
5414
 
  ;
5415
 
  return 0;
5416
 
}
5417
 
_ACEOF
5418
 
rm -f conftest.$ac_objext conftest$ac_exeext
5419
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5420
 
  (eval $ac_link) 2>conftest.er1
5421
 
  ac_status=$?
5422
 
  grep -v '^ *+' conftest.er1 >conftest.err
5423
 
  rm -f conftest.er1
5424
 
  cat conftest.err >&5
5425
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426
 
  (exit $ac_status); } &&
5427
 
         { ac_try='test -z "$ac_c_werror_flag"
5428
 
                         || test ! -s conftest.err'
5429
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430
 
  (eval $ac_try) 2>&5
5431
 
  ac_status=$?
5432
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433
 
  (exit $ac_status); }; } &&
5434
 
         { ac_try='test -s conftest$ac_exeext'
5435
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436
 
  (eval $ac_try) 2>&5
5437
 
  ac_status=$?
5438
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439
 
  (exit $ac_status); }; }; then
5440
 
  lt_cv_cc_needs_belf=yes
5441
 
else
5442
 
  echo "$as_me: failed program was:" >&5
5443
 
sed 's/^/| /' conftest.$ac_ext >&5
5444
 
 
5445
 
lt_cv_cc_needs_belf=no
5446
 
fi
5447
 
rm -f conftest.err conftest.$ac_objext \
5448
 
      conftest$ac_exeext conftest.$ac_ext
5449
 
     ac_ext=c
5450
 
ac_cpp='$CPP $CPPFLAGS'
5451
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5452
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5453
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5454
 
 
5455
 
fi
5456
 
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5457
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5458
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5459
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5460
 
    CFLAGS="$SAVE_CFLAGS"
5461
 
  fi
5462
 
  ;;
5463
 
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
5464
 
  if test -n "$ac_tool_prefix"; then
5465
 
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5466
 
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5467
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5468
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5469
 
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5470
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5471
 
else
5472
 
  if test -n "$DLLTOOL"; then
5473
 
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5474
 
else
5475
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476
 
for as_dir in $PATH
5477
 
do
5478
 
  IFS=$as_save_IFS
5479
 
  test -z "$as_dir" && as_dir=.
5480
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5481
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5482
 
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5483
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5484
 
    break 2
5485
 
  fi
5486
 
done
5487
 
done
5488
 
 
5489
 
fi
5490
 
fi
5491
 
DLLTOOL=$ac_cv_prog_DLLTOOL
5492
 
if test -n "$DLLTOOL"; then
5493
 
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5494
 
echo "${ECHO_T}$DLLTOOL" >&6
5495
 
else
5496
 
  echo "$as_me:$LINENO: result: no" >&5
5497
 
echo "${ECHO_T}no" >&6
5498
 
fi
5499
 
 
5500
 
fi
5501
 
if test -z "$ac_cv_prog_DLLTOOL"; then
5502
 
  ac_ct_DLLTOOL=$DLLTOOL
5503
 
  # Extract the first word of "dlltool", so it can be a program name with args.
5504
 
set dummy dlltool; ac_word=$2
5505
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5506
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507
 
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5508
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5509
 
else
5510
 
  if test -n "$ac_ct_DLLTOOL"; then
5511
 
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5512
 
else
5513
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514
 
for as_dir in $PATH
5515
 
do
5516
 
  IFS=$as_save_IFS
5517
 
  test -z "$as_dir" && as_dir=.
5518
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5519
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520
 
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5521
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522
 
    break 2
5523
 
  fi
5524
 
done
5525
 
done
5526
 
 
5527
 
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5528
 
fi
5529
 
fi
5530
 
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5531
 
if test -n "$ac_ct_DLLTOOL"; then
5532
 
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5533
 
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5534
 
else
5535
 
  echo "$as_me:$LINENO: result: no" >&5
5536
 
echo "${ECHO_T}no" >&6
5537
 
fi
5538
 
 
5539
 
  DLLTOOL=$ac_ct_DLLTOOL
5540
 
else
5541
 
  DLLTOOL="$ac_cv_prog_DLLTOOL"
5542
 
fi
5543
 
 
5544
 
  if test -n "$ac_tool_prefix"; then
5545
 
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5546
 
set dummy ${ac_tool_prefix}as; ac_word=$2
5547
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5548
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5549
 
if test "${ac_cv_prog_AS+set}" = set; then
5550
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5551
 
else
5552
 
  if test -n "$AS"; then
5553
 
  ac_cv_prog_AS="$AS" # Let the user override the test.
5554
 
else
5555
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556
 
for as_dir in $PATH
5557
 
do
5558
 
  IFS=$as_save_IFS
5559
 
  test -z "$as_dir" && as_dir=.
5560
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5561
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562
 
    ac_cv_prog_AS="${ac_tool_prefix}as"
5563
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5564
 
    break 2
5565
 
  fi
5566
 
done
5567
 
done
5568
 
 
5569
 
fi
5570
 
fi
5571
 
AS=$ac_cv_prog_AS
5572
 
if test -n "$AS"; then
5573
 
  echo "$as_me:$LINENO: result: $AS" >&5
5574
 
echo "${ECHO_T}$AS" >&6
5575
 
else
5576
 
  echo "$as_me:$LINENO: result: no" >&5
5577
 
echo "${ECHO_T}no" >&6
5578
 
fi
5579
 
 
5580
 
fi
5581
 
if test -z "$ac_cv_prog_AS"; then
5582
 
  ac_ct_AS=$AS
5583
 
  # Extract the first word of "as", so it can be a program name with args.
5584
 
set dummy as; ac_word=$2
5585
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5586
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5587
 
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5588
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5589
 
else
5590
 
  if test -n "$ac_ct_AS"; then
5591
 
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5592
 
else
5593
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594
 
for as_dir in $PATH
5595
 
do
5596
 
  IFS=$as_save_IFS
5597
 
  test -z "$as_dir" && as_dir=.
5598
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5599
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600
 
    ac_cv_prog_ac_ct_AS="as"
5601
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5602
 
    break 2
5603
 
  fi
5604
 
done
5605
 
done
5606
 
 
5607
 
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5608
 
fi
5609
 
fi
5610
 
ac_ct_AS=$ac_cv_prog_ac_ct_AS
5611
 
if test -n "$ac_ct_AS"; then
5612
 
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5613
 
echo "${ECHO_T}$ac_ct_AS" >&6
5614
 
else
5615
 
  echo "$as_me:$LINENO: result: no" >&5
5616
 
echo "${ECHO_T}no" >&6
5617
 
fi
5618
 
 
5619
 
  AS=$ac_ct_AS
5620
 
else
5621
 
  AS="$ac_cv_prog_AS"
5622
 
fi
5623
 
 
5624
 
  if test -n "$ac_tool_prefix"; then
5625
 
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5626
 
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5627
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5628
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5629
 
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5630
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5631
 
else
5632
 
  if test -n "$OBJDUMP"; then
5633
 
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5634
 
else
5635
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636
 
for as_dir in $PATH
5637
 
do
5638
 
  IFS=$as_save_IFS
5639
 
  test -z "$as_dir" && as_dir=.
5640
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5641
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5642
 
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5643
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5644
 
    break 2
5645
 
  fi
5646
 
done
5647
 
done
5648
 
 
5649
 
fi
5650
 
fi
5651
 
OBJDUMP=$ac_cv_prog_OBJDUMP
5652
 
if test -n "$OBJDUMP"; then
5653
 
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5654
 
echo "${ECHO_T}$OBJDUMP" >&6
5655
 
else
5656
 
  echo "$as_me:$LINENO: result: no" >&5
5657
 
echo "${ECHO_T}no" >&6
5658
 
fi
5659
 
 
5660
 
fi
5661
 
if test -z "$ac_cv_prog_OBJDUMP"; then
5662
 
  ac_ct_OBJDUMP=$OBJDUMP
5663
 
  # Extract the first word of "objdump", so it can be a program name with args.
5664
 
set dummy objdump; ac_word=$2
5665
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5666
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5667
 
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5668
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5669
 
else
5670
 
  if test -n "$ac_ct_OBJDUMP"; then
5671
 
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5672
 
else
5673
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674
 
for as_dir in $PATH
5675
 
do
5676
 
  IFS=$as_save_IFS
5677
 
  test -z "$as_dir" && as_dir=.
5678
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5679
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680
 
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5681
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5682
 
    break 2
5683
 
  fi
5684
 
done
5685
 
done
5686
 
 
5687
 
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5688
 
fi
5689
 
fi
5690
 
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5691
 
if test -n "$ac_ct_OBJDUMP"; then
5692
 
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5693
 
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5694
 
else
5695
 
  echo "$as_me:$LINENO: result: no" >&5
5696
 
echo "${ECHO_T}no" >&6
5697
 
fi
5698
 
 
5699
 
  OBJDUMP=$ac_ct_OBJDUMP
5700
 
else
5701
 
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5702
 
fi
5703
 
 
5704
 
  ;;
5705
 
 
5706
 
esac
5707
 
 
5708
 
need_locks="$enable_libtool_lock"
5709
 
 
5710
 
 
5711
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5712
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5713
 
if test "${ac_cv_header_stdc+set}" = set; then
5714
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5715
 
else
5716
 
  cat >conftest.$ac_ext <<_ACEOF
5717
 
/* confdefs.h.  */
5718
 
_ACEOF
5719
 
cat confdefs.h >>conftest.$ac_ext
5720
 
cat >>conftest.$ac_ext <<_ACEOF
5721
 
/* end confdefs.h.  */
5722
 
#include <stdlib.h>
5723
 
#include <stdarg.h>
5724
 
#include <string.h>
5725
 
#include <float.h>
5726
 
 
5727
 
int
5728
 
main ()
5729
 
{
5730
 
 
5731
 
  ;
5732
 
  return 0;
5733
 
}
5734
 
_ACEOF
5735
 
rm -f conftest.$ac_objext
5736
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5737
 
  (eval $ac_compile) 2>conftest.er1
5738
 
  ac_status=$?
5739
 
  grep -v '^ *+' conftest.er1 >conftest.err
5740
 
  rm -f conftest.er1
5741
 
  cat conftest.err >&5
5742
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743
 
  (exit $ac_status); } &&
5744
 
         { ac_try='test -z "$ac_c_werror_flag"
5745
 
                         || test ! -s conftest.err'
5746
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747
 
  (eval $ac_try) 2>&5
5748
 
  ac_status=$?
5749
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750
 
  (exit $ac_status); }; } &&
5751
 
         { ac_try='test -s conftest.$ac_objext'
5752
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753
 
  (eval $ac_try) 2>&5
5754
 
  ac_status=$?
5755
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756
 
  (exit $ac_status); }; }; then
5757
 
  ac_cv_header_stdc=yes
5758
 
else
5759
 
  echo "$as_me: failed program was:" >&5
5760
 
sed 's/^/| /' conftest.$ac_ext >&5
5761
 
 
5762
 
ac_cv_header_stdc=no
5763
 
fi
5764
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5765
 
 
5766
 
if test $ac_cv_header_stdc = yes; then
5767
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5768
 
  cat >conftest.$ac_ext <<_ACEOF
5769
 
/* confdefs.h.  */
5770
 
_ACEOF
5771
 
cat confdefs.h >>conftest.$ac_ext
5772
 
cat >>conftest.$ac_ext <<_ACEOF
5773
 
/* end confdefs.h.  */
5774
 
#include <string.h>
5775
 
 
5776
 
_ACEOF
5777
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5778
 
  $EGREP "memchr" >/dev/null 2>&1; then
5779
 
  :
5780
 
else
5781
 
  ac_cv_header_stdc=no
5782
 
fi
5783
 
rm -f conftest*
5784
 
 
5785
 
fi
5786
 
 
5787
 
if test $ac_cv_header_stdc = yes; then
5788
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5789
 
  cat >conftest.$ac_ext <<_ACEOF
5790
 
/* confdefs.h.  */
5791
 
_ACEOF
5792
 
cat confdefs.h >>conftest.$ac_ext
5793
 
cat >>conftest.$ac_ext <<_ACEOF
5794
 
/* end confdefs.h.  */
5795
 
#include <stdlib.h>
5796
 
 
5797
 
_ACEOF
5798
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5799
 
  $EGREP "free" >/dev/null 2>&1; then
5800
 
  :
5801
 
else
5802
 
  ac_cv_header_stdc=no
5803
 
fi
5804
 
rm -f conftest*
5805
 
 
5806
 
fi
5807
 
 
5808
 
if test $ac_cv_header_stdc = yes; then
5809
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5810
 
  if test "$cross_compiling" = yes; then
5811
 
  :
5812
 
else
5813
 
  cat >conftest.$ac_ext <<_ACEOF
5814
 
/* confdefs.h.  */
5815
 
_ACEOF
5816
 
cat confdefs.h >>conftest.$ac_ext
5817
 
cat >>conftest.$ac_ext <<_ACEOF
5818
 
/* end confdefs.h.  */
5819
 
#include <ctype.h>
5820
 
#if ((' ' & 0x0FF) == 0x020)
5821
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5822
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5823
 
#else
5824
 
# define ISLOWER(c) \
5825
 
                   (('a' <= (c) && (c) <= 'i') \
5826
 
                     || ('j' <= (c) && (c) <= 'r') \
5827
 
                     || ('s' <= (c) && (c) <= 'z'))
5828
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5829
 
#endif
5830
 
 
5831
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5832
 
int
5833
 
main ()
5834
 
{
5835
 
  int i;
5836
 
  for (i = 0; i < 256; i++)
5837
 
    if (XOR (islower (i), ISLOWER (i))
5838
 
        || toupper (i) != TOUPPER (i))
5839
 
      exit(2);
5840
 
  exit (0);
5841
 
}
5842
 
_ACEOF
5843
 
rm -f conftest$ac_exeext
5844
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5845
 
  (eval $ac_link) 2>&5
5846
 
  ac_status=$?
5847
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5849
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850
 
  (eval $ac_try) 2>&5
5851
 
  ac_status=$?
5852
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853
 
  (exit $ac_status); }; }; then
5854
 
  :
5855
 
else
5856
 
  echo "$as_me: program exited with status $ac_status" >&5
5857
 
echo "$as_me: failed program was:" >&5
5858
 
sed 's/^/| /' conftest.$ac_ext >&5
5859
 
 
5860
 
( exit $ac_status )
5861
 
ac_cv_header_stdc=no
5862
 
fi
5863
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5864
 
fi
5865
 
fi
5866
 
fi
5867
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5868
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
5869
 
if test $ac_cv_header_stdc = yes; then
5870
 
 
5871
 
cat >>confdefs.h <<\_ACEOF
5872
 
#define STDC_HEADERS 1
5873
 
_ACEOF
5874
 
 
5875
 
fi
5876
 
 
5877
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5878
 
 
5879
 
 
5880
 
 
5881
 
 
5882
 
 
5883
 
 
5884
 
 
5885
 
 
5886
 
 
5887
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5888
 
                  inttypes.h stdint.h unistd.h
5889
 
do
5890
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5891
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
5892
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5893
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5894
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5895
 
else
5896
 
  cat >conftest.$ac_ext <<_ACEOF
5897
 
/* confdefs.h.  */
5898
 
_ACEOF
5899
 
cat confdefs.h >>conftest.$ac_ext
5900
 
cat >>conftest.$ac_ext <<_ACEOF
5901
 
/* end confdefs.h.  */
5902
 
$ac_includes_default
5903
 
 
5904
 
#include <$ac_header>
5905
 
_ACEOF
5906
 
rm -f conftest.$ac_objext
5907
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5908
 
  (eval $ac_compile) 2>conftest.er1
5909
 
  ac_status=$?
5910
 
  grep -v '^ *+' conftest.er1 >conftest.err
5911
 
  rm -f conftest.er1
5912
 
  cat conftest.err >&5
5913
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914
 
  (exit $ac_status); } &&
5915
 
         { ac_try='test -z "$ac_c_werror_flag"
5916
 
                         || test ! -s conftest.err'
5917
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918
 
  (eval $ac_try) 2>&5
5919
 
  ac_status=$?
5920
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921
 
  (exit $ac_status); }; } &&
5922
 
         { ac_try='test -s conftest.$ac_objext'
5923
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924
 
  (eval $ac_try) 2>&5
5925
 
  ac_status=$?
5926
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927
 
  (exit $ac_status); }; }; then
5928
 
  eval "$as_ac_Header=yes"
5929
 
else
5930
 
  echo "$as_me: failed program was:" >&5
5931
 
sed 's/^/| /' conftest.$ac_ext >&5
5932
 
 
5933
 
eval "$as_ac_Header=no"
5934
 
fi
5935
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5936
 
fi
5937
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5938
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5939
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5940
 
  cat >>confdefs.h <<_ACEOF
5941
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5942
 
_ACEOF
5943
 
 
5944
 
fi
5945
 
 
5946
 
done
5947
 
 
5948
 
 
5949
 
 
5950
 
for ac_header in dlfcn.h
5951
 
do
5952
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5953
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5954
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
5955
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5956
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5957
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5958
 
fi
5959
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5960
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5961
 
else
5962
 
  # Is the header compilable?
5963
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5964
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5965
 
cat >conftest.$ac_ext <<_ACEOF
5966
 
/* confdefs.h.  */
5967
 
_ACEOF
5968
 
cat confdefs.h >>conftest.$ac_ext
5969
 
cat >>conftest.$ac_ext <<_ACEOF
5970
 
/* end confdefs.h.  */
5971
 
$ac_includes_default
5972
 
#include <$ac_header>
5973
 
_ACEOF
5974
 
rm -f conftest.$ac_objext
5975
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976
 
  (eval $ac_compile) 2>conftest.er1
5977
 
  ac_status=$?
5978
 
  grep -v '^ *+' conftest.er1 >conftest.err
5979
 
  rm -f conftest.er1
5980
 
  cat conftest.err >&5
5981
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982
 
  (exit $ac_status); } &&
5983
 
         { ac_try='test -z "$ac_c_werror_flag"
5984
 
                         || test ! -s conftest.err'
5985
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986
 
  (eval $ac_try) 2>&5
5987
 
  ac_status=$?
5988
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989
 
  (exit $ac_status); }; } &&
5990
 
         { ac_try='test -s conftest.$ac_objext'
5991
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992
 
  (eval $ac_try) 2>&5
5993
 
  ac_status=$?
5994
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995
 
  (exit $ac_status); }; }; then
5996
 
  ac_header_compiler=yes
5997
 
else
5998
 
  echo "$as_me: failed program was:" >&5
5999
 
sed 's/^/| /' conftest.$ac_ext >&5
6000
 
 
6001
 
ac_header_compiler=no
6002
 
fi
6003
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6004
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6005
 
echo "${ECHO_T}$ac_header_compiler" >&6
6006
 
 
6007
 
# Is the header present?
6008
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6009
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6010
 
cat >conftest.$ac_ext <<_ACEOF
6011
 
/* confdefs.h.  */
6012
 
_ACEOF
6013
 
cat confdefs.h >>conftest.$ac_ext
6014
 
cat >>conftest.$ac_ext <<_ACEOF
6015
 
/* end confdefs.h.  */
6016
 
#include <$ac_header>
6017
 
_ACEOF
6018
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6019
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6020
 
  ac_status=$?
6021
 
  grep -v '^ *+' conftest.er1 >conftest.err
6022
 
  rm -f conftest.er1
6023
 
  cat conftest.err >&5
6024
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025
 
  (exit $ac_status); } >/dev/null; then
6026
 
  if test -s conftest.err; then
6027
 
    ac_cpp_err=$ac_c_preproc_warn_flag
6028
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6029
 
  else
6030
 
    ac_cpp_err=
6031
 
  fi
6032
 
else
6033
 
  ac_cpp_err=yes
6034
 
fi
6035
 
if test -z "$ac_cpp_err"; then
6036
 
  ac_header_preproc=yes
6037
 
else
6038
 
  echo "$as_me: failed program was:" >&5
6039
 
sed 's/^/| /' conftest.$ac_ext >&5
6040
 
 
6041
 
  ac_header_preproc=no
6042
 
fi
6043
 
rm -f conftest.err conftest.$ac_ext
6044
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6045
 
echo "${ECHO_T}$ac_header_preproc" >&6
6046
 
 
6047
 
# So?  What about this header?
6048
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6049
 
  yes:no: )
6050
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6051
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6052
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6053
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6054
 
    ac_header_preproc=yes
6055
 
    ;;
6056
 
  no:yes:* )
6057
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6058
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6059
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6060
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6061
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6062
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6063
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6064
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6065
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6066
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6067
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6068
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6069
 
    (
6070
 
      cat <<\_ASBOX
6071
 
## ------------------------------- ##
6072
 
## Report this to curl-bug@haxx.se ##
6073
 
## ------------------------------- ##
6074
 
_ASBOX
6075
 
    ) |
6076
 
      sed "s/^/$as_me: WARNING:     /" >&2
6077
 
    ;;
6078
 
esac
6079
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
6080
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6081
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6082
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6083
 
else
6084
 
  eval "$as_ac_Header=\$ac_header_preproc"
6085
 
fi
6086
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6087
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6088
 
 
6089
 
fi
6090
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6091
 
  cat >>confdefs.h <<_ACEOF
6092
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6093
 
_ACEOF
6094
 
 
6095
 
fi
6096
 
 
6097
 
done
6098
 
 
6099
 
ac_ext=cc
6100
 
ac_cpp='$CXXCPP $CPPFLAGS'
6101
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6102
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6103
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6104
 
if test -n "$ac_tool_prefix"; then
6105
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6106
 
  do
6107
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6108
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6109
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6110
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6111
 
if test "${ac_cv_prog_CXX+set}" = set; then
6112
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6113
 
else
6114
 
  if test -n "$CXX"; then
6115
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6116
 
else
6117
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118
 
for as_dir in $PATH
6119
 
do
6120
 
  IFS=$as_save_IFS
6121
 
  test -z "$as_dir" && as_dir=.
6122
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6123
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6124
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6125
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6126
 
    break 2
6127
 
  fi
6128
 
done
6129
 
done
6130
 
 
6131
 
fi
6132
 
fi
6133
 
CXX=$ac_cv_prog_CXX
6134
 
if test -n "$CXX"; then
6135
 
  echo "$as_me:$LINENO: result: $CXX" >&5
6136
 
echo "${ECHO_T}$CXX" >&6
6137
 
else
6138
 
  echo "$as_me:$LINENO: result: no" >&5
6139
 
echo "${ECHO_T}no" >&6
6140
 
fi
6141
 
 
6142
 
    test -n "$CXX" && break
6143
 
  done
6144
 
fi
6145
 
if test -z "$CXX"; then
6146
 
  ac_ct_CXX=$CXX
6147
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6148
 
do
6149
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6150
 
set dummy $ac_prog; ac_word=$2
6151
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6152
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6153
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6154
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6155
 
else
6156
 
  if test -n "$ac_ct_CXX"; then
6157
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6158
 
else
6159
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160
 
for as_dir in $PATH
6161
 
do
6162
 
  IFS=$as_save_IFS
6163
 
  test -z "$as_dir" && as_dir=.
6164
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6165
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6166
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
6167
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168
 
    break 2
6169
 
  fi
6170
 
done
6171
 
done
6172
 
 
6173
 
fi
6174
 
fi
6175
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6176
 
if test -n "$ac_ct_CXX"; then
6177
 
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6178
 
echo "${ECHO_T}$ac_ct_CXX" >&6
6179
 
else
6180
 
  echo "$as_me:$LINENO: result: no" >&5
6181
 
echo "${ECHO_T}no" >&6
6182
 
fi
6183
 
 
6184
 
  test -n "$ac_ct_CXX" && break
6185
 
done
6186
 
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6187
 
 
6188
 
  CXX=$ac_ct_CXX
6189
 
fi
6190
 
 
6191
 
 
6192
 
# Provide some information about the compiler.
6193
 
echo "$as_me:$LINENO:" \
6194
 
     "checking for C++ compiler version" >&5
6195
 
ac_compiler=`set X $ac_compile; echo $2`
6196
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6197
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
6198
 
  ac_status=$?
6199
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200
 
  (exit $ac_status); }
6201
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6202
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
6203
 
  ac_status=$?
6204
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205
 
  (exit $ac_status); }
6206
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6207
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
6208
 
  ac_status=$?
6209
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210
 
  (exit $ac_status); }
6211
 
 
6212
 
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6213
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6214
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6215
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6216
 
else
6217
 
  cat >conftest.$ac_ext <<_ACEOF
6218
 
/* confdefs.h.  */
6219
 
_ACEOF
6220
 
cat confdefs.h >>conftest.$ac_ext
6221
 
cat >>conftest.$ac_ext <<_ACEOF
6222
 
/* end confdefs.h.  */
6223
 
 
6224
 
int
6225
 
main ()
6226
 
{
6227
 
#ifndef __GNUC__
6228
 
       choke me
6229
 
#endif
6230
 
 
6231
 
  ;
6232
 
  return 0;
6233
 
}
6234
 
_ACEOF
6235
 
rm -f conftest.$ac_objext
6236
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6237
 
  (eval $ac_compile) 2>conftest.er1
6238
 
  ac_status=$?
6239
 
  grep -v '^ *+' conftest.er1 >conftest.err
6240
 
  rm -f conftest.er1
6241
 
  cat conftest.err >&5
6242
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243
 
  (exit $ac_status); } &&
6244
 
         { ac_try='test -z "$ac_cxx_werror_flag"
6245
 
                         || test ! -s conftest.err'
6246
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247
 
  (eval $ac_try) 2>&5
6248
 
  ac_status=$?
6249
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250
 
  (exit $ac_status); }; } &&
6251
 
         { ac_try='test -s conftest.$ac_objext'
6252
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253
 
  (eval $ac_try) 2>&5
6254
 
  ac_status=$?
6255
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256
 
  (exit $ac_status); }; }; then
6257
 
  ac_compiler_gnu=yes
6258
 
else
6259
 
  echo "$as_me: failed program was:" >&5
6260
 
sed 's/^/| /' conftest.$ac_ext >&5
6261
 
 
6262
 
ac_compiler_gnu=no
6263
 
fi
6264
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6265
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6266
 
 
6267
 
fi
6268
 
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6269
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6270
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
6271
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
6272
 
ac_save_CXXFLAGS=$CXXFLAGS
6273
 
CXXFLAGS="-g"
6274
 
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6275
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6276
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
6277
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6278
 
else
6279
 
  cat >conftest.$ac_ext <<_ACEOF
6280
 
/* confdefs.h.  */
6281
 
_ACEOF
6282
 
cat confdefs.h >>conftest.$ac_ext
6283
 
cat >>conftest.$ac_ext <<_ACEOF
6284
 
/* end confdefs.h.  */
6285
 
 
6286
 
int
6287
 
main ()
6288
 
{
6289
 
 
6290
 
  ;
6291
 
  return 0;
6292
 
}
6293
 
_ACEOF
6294
 
rm -f conftest.$ac_objext
6295
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6296
 
  (eval $ac_compile) 2>conftest.er1
6297
 
  ac_status=$?
6298
 
  grep -v '^ *+' conftest.er1 >conftest.err
6299
 
  rm -f conftest.er1
6300
 
  cat conftest.err >&5
6301
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302
 
  (exit $ac_status); } &&
6303
 
         { ac_try='test -z "$ac_cxx_werror_flag"
6304
 
                         || test ! -s conftest.err'
6305
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306
 
  (eval $ac_try) 2>&5
6307
 
  ac_status=$?
6308
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309
 
  (exit $ac_status); }; } &&
6310
 
         { ac_try='test -s conftest.$ac_objext'
6311
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312
 
  (eval $ac_try) 2>&5
6313
 
  ac_status=$?
6314
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315
 
  (exit $ac_status); }; }; then
6316
 
  ac_cv_prog_cxx_g=yes
6317
 
else
6318
 
  echo "$as_me: failed program was:" >&5
6319
 
sed 's/^/| /' conftest.$ac_ext >&5
6320
 
 
6321
 
ac_cv_prog_cxx_g=no
6322
 
fi
6323
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6324
 
fi
6325
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6326
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6327
 
if test "$ac_test_CXXFLAGS" = set; then
6328
 
  CXXFLAGS=$ac_save_CXXFLAGS
6329
 
elif test $ac_cv_prog_cxx_g = yes; then
6330
 
  if test "$GXX" = yes; then
6331
 
    CXXFLAGS="-g -O2"
6332
 
  else
6333
 
    CXXFLAGS="-g"
6334
 
  fi
6335
 
else
6336
 
  if test "$GXX" = yes; then
6337
 
    CXXFLAGS="-O2"
6338
 
  else
6339
 
    CXXFLAGS=
6340
 
  fi
6341
 
fi
6342
 
for ac_declaration in \
6343
 
   '' \
6344
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
6345
 
   'extern "C" void std::exit (int); using std::exit;' \
6346
 
   'extern "C" void exit (int) throw ();' \
6347
 
   'extern "C" void exit (int);' \
6348
 
   'void exit (int);'
6349
 
do
6350
 
  cat >conftest.$ac_ext <<_ACEOF
6351
 
/* confdefs.h.  */
6352
 
_ACEOF
6353
 
cat confdefs.h >>conftest.$ac_ext
6354
 
cat >>conftest.$ac_ext <<_ACEOF
6355
 
/* end confdefs.h.  */
6356
 
$ac_declaration
6357
 
#include <stdlib.h>
6358
 
int
6359
 
main ()
6360
 
{
6361
 
exit (42);
6362
 
  ;
6363
 
  return 0;
6364
 
}
6365
 
_ACEOF
6366
 
rm -f conftest.$ac_objext
6367
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6368
 
  (eval $ac_compile) 2>conftest.er1
6369
 
  ac_status=$?
6370
 
  grep -v '^ *+' conftest.er1 >conftest.err
6371
 
  rm -f conftest.er1
6372
 
  cat conftest.err >&5
6373
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374
 
  (exit $ac_status); } &&
6375
 
         { ac_try='test -z "$ac_cxx_werror_flag"
6376
 
                         || test ! -s conftest.err'
6377
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378
 
  (eval $ac_try) 2>&5
6379
 
  ac_status=$?
6380
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381
 
  (exit $ac_status); }; } &&
6382
 
         { ac_try='test -s conftest.$ac_objext'
6383
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384
 
  (eval $ac_try) 2>&5
6385
 
  ac_status=$?
6386
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387
 
  (exit $ac_status); }; }; then
6388
 
  :
6389
 
else
6390
 
  echo "$as_me: failed program was:" >&5
6391
 
sed 's/^/| /' conftest.$ac_ext >&5
6392
 
 
6393
 
continue
6394
 
fi
6395
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6396
 
  cat >conftest.$ac_ext <<_ACEOF
6397
 
/* confdefs.h.  */
6398
 
_ACEOF
6399
 
cat confdefs.h >>conftest.$ac_ext
6400
 
cat >>conftest.$ac_ext <<_ACEOF
6401
 
/* end confdefs.h.  */
6402
 
$ac_declaration
6403
 
int
6404
 
main ()
6405
 
{
6406
 
exit (42);
6407
 
  ;
6408
 
  return 0;
6409
 
}
6410
 
_ACEOF
6411
 
rm -f conftest.$ac_objext
6412
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413
 
  (eval $ac_compile) 2>conftest.er1
6414
 
  ac_status=$?
6415
 
  grep -v '^ *+' conftest.er1 >conftest.err
6416
 
  rm -f conftest.er1
6417
 
  cat conftest.err >&5
6418
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419
 
  (exit $ac_status); } &&
6420
 
         { ac_try='test -z "$ac_cxx_werror_flag"
6421
 
                         || test ! -s conftest.err'
6422
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423
 
  (eval $ac_try) 2>&5
6424
 
  ac_status=$?
6425
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426
 
  (exit $ac_status); }; } &&
6427
 
         { ac_try='test -s conftest.$ac_objext'
6428
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429
 
  (eval $ac_try) 2>&5
6430
 
  ac_status=$?
6431
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432
 
  (exit $ac_status); }; }; then
6433
 
  break
6434
 
else
6435
 
  echo "$as_me: failed program was:" >&5
6436
 
sed 's/^/| /' conftest.$ac_ext >&5
6437
 
 
6438
 
fi
6439
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6440
 
done
6441
 
rm -f conftest*
6442
 
if test -n "$ac_declaration"; then
6443
 
  echo '#ifdef __cplusplus' >>confdefs.h
6444
 
  echo $ac_declaration      >>confdefs.h
6445
 
  echo '#endif'             >>confdefs.h
6446
 
fi
6447
 
 
6448
 
ac_ext=cc
6449
 
ac_cpp='$CXXCPP $CPPFLAGS'
6450
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6451
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6452
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6453
 
 
6454
 
depcc="$CXX"  am_compiler_list=
6455
 
 
6456
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6457
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6458
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6459
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6460
 
else
6461
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6462
 
  # We make a subdir and do the tests there.  Otherwise we can end up
6463
 
  # making bogus files that we don't know about and never remove.  For
6464
 
  # instance it was reported that on HP-UX the gcc test will end up
6465
 
  # making a dummy file named `D' -- because `-MD' means `put the output
6466
 
  # in D'.
6467
 
  mkdir conftest.dir
6468
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
6469
 
  # using a relative directory.
6470
 
  cp "$am_depcomp" conftest.dir
6471
 
  cd conftest.dir
6472
 
  # We will build objects and dependencies in a subdirectory because
6473
 
  # it helps to detect inapplicable dependency modes.  For instance
6474
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
6475
 
  # side effect of compilation, but ICC will put the dependencies in
6476
 
  # the current directory while Tru64 will put them in the object
6477
 
  # directory.
6478
 
  mkdir sub
6479
 
 
6480
 
  am_cv_CXX_dependencies_compiler_type=none
6481
 
  if test "$am_compiler_list" = ""; then
6482
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6483
 
  fi
6484
 
  for depmode in $am_compiler_list; do
6485
 
    # Setup a source with many dependencies, because some compilers
6486
 
    # like to wrap large dependency lists on column 80 (with \), and
6487
 
    # we should not choose a depcomp mode which is confused by this.
6488
 
    #
6489
 
    # We need to recreate these files for each test, as the compiler may
6490
 
    # overwrite some of them when testing with obscure command lines.
6491
 
    # This happens at least with the AIX C compiler.
6492
 
    : > sub/conftest.c
6493
 
    for i in 1 2 3 4 5 6; do
6494
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6495
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6496
 
      # Solaris 8's {/usr,}/bin/sh.
6497
 
      touch sub/conftst$i.h
6498
 
    done
6499
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6500
 
 
6501
 
    case $depmode in
6502
 
    nosideeffect)
6503
 
      # after this tag, mechanisms are not by side-effect, so they'll
6504
 
      # only be used when explicitly requested
6505
 
      if test "x$enable_dependency_tracking" = xyes; then
6506
 
        continue
6507
 
      else
6508
 
        break
6509
 
      fi
6510
 
      ;;
6511
 
    none) break ;;
6512
 
    esac
6513
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6514
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
6515
 
    # handle `-M -o', and we need to detect this.
6516
 
    if depmode=$depmode \
6517
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6518
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6519
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6520
 
         >/dev/null 2>conftest.err &&
6521
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6522
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6523
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6524
 
      # icc doesn't choke on unknown options, it will just issue warnings
6525
 
      # (even with -Werror).  So we grep stderr for any message
6526
 
      # that says an option was ignored.
6527
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
6528
 
        am_cv_CXX_dependencies_compiler_type=$depmode
6529
 
        break
6530
 
      fi
6531
 
    fi
6532
 
  done
6533
 
 
6534
 
  cd ..
6535
 
  rm -rf conftest.dir
6536
 
else
6537
 
  am_cv_CXX_dependencies_compiler_type=none
6538
 
fi
6539
 
 
6540
 
fi
6541
 
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6542
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6543
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6544
 
 
6545
 
 
6546
 
 
6547
 
if
6548
 
  test "x$enable_dependency_tracking" != xno \
6549
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6550
 
  am__fastdepCXX_TRUE=
6551
 
  am__fastdepCXX_FALSE='#'
6552
 
else
6553
 
  am__fastdepCXX_TRUE='#'
6554
 
  am__fastdepCXX_FALSE=
6555
 
fi
6556
 
 
6557
 
 
6558
 
ac_ext=cc
6559
 
ac_cpp='$CXXCPP $CPPFLAGS'
6560
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6561
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6562
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6563
 
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6564
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6565
 
if test -z "$CXXCPP"; then
6566
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6567
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6568
 
else
6569
 
      # Double quotes because CXXCPP needs to be expanded
6570
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
6571
 
    do
6572
 
      ac_preproc_ok=false
6573
 
for ac_cxx_preproc_warn_flag in '' yes
6574
 
do
6575
 
  # Use a header file that comes with gcc, so configuring glibc
6576
 
  # with a fresh cross-compiler works.
6577
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6578
 
  # <limits.h> exists even on freestanding compilers.
6579
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6580
 
  # not just through cpp. "Syntax error" is here to catch this case.
6581
 
  cat >conftest.$ac_ext <<_ACEOF
6582
 
/* confdefs.h.  */
6583
 
_ACEOF
6584
 
cat confdefs.h >>conftest.$ac_ext
6585
 
cat >>conftest.$ac_ext <<_ACEOF
6586
 
/* end confdefs.h.  */
6587
 
#ifdef __STDC__
6588
 
# include <limits.h>
6589
 
#else
6590
 
# include <assert.h>
6591
 
#endif
6592
 
                     Syntax error
6593
 
_ACEOF
6594
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6595
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6596
 
  ac_status=$?
6597
 
  grep -v '^ *+' conftest.er1 >conftest.err
6598
 
  rm -f conftest.er1
6599
 
  cat conftest.err >&5
6600
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601
 
  (exit $ac_status); } >/dev/null; then
6602
 
  if test -s conftest.err; then
6603
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
6604
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6605
 
  else
6606
 
    ac_cpp_err=
6607
 
  fi
6608
 
else
6609
 
  ac_cpp_err=yes
6610
 
fi
6611
 
if test -z "$ac_cpp_err"; then
6612
 
  :
6613
 
else
6614
 
  echo "$as_me: failed program was:" >&5
6615
 
sed 's/^/| /' conftest.$ac_ext >&5
6616
 
 
6617
 
  # Broken: fails on valid input.
6618
 
continue
6619
 
fi
6620
 
rm -f conftest.err conftest.$ac_ext
6621
 
 
6622
 
  # OK, works on sane cases.  Now check whether non-existent headers
6623
 
  # can be detected and how.
6624
 
  cat >conftest.$ac_ext <<_ACEOF
6625
 
/* confdefs.h.  */
6626
 
_ACEOF
6627
 
cat confdefs.h >>conftest.$ac_ext
6628
 
cat >>conftest.$ac_ext <<_ACEOF
6629
 
/* end confdefs.h.  */
6630
 
#include <ac_nonexistent.h>
6631
 
_ACEOF
6632
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6633
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6634
 
  ac_status=$?
6635
 
  grep -v '^ *+' conftest.er1 >conftest.err
6636
 
  rm -f conftest.er1
6637
 
  cat conftest.err >&5
6638
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639
 
  (exit $ac_status); } >/dev/null; then
6640
 
  if test -s conftest.err; then
6641
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
6642
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6643
 
  else
6644
 
    ac_cpp_err=
6645
 
  fi
6646
 
else
6647
 
  ac_cpp_err=yes
6648
 
fi
6649
 
if test -z "$ac_cpp_err"; then
6650
 
  # Broken: success on invalid input.
6651
 
continue
6652
 
else
6653
 
  echo "$as_me: failed program was:" >&5
6654
 
sed 's/^/| /' conftest.$ac_ext >&5
6655
 
 
6656
 
  # Passes both tests.
6657
 
ac_preproc_ok=:
6658
 
break
6659
 
fi
6660
 
rm -f conftest.err conftest.$ac_ext
6661
 
 
6662
 
done
6663
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6664
 
rm -f conftest.err conftest.$ac_ext
6665
 
if $ac_preproc_ok; then
6666
 
  break
6667
 
fi
6668
 
 
6669
 
    done
6670
 
    ac_cv_prog_CXXCPP=$CXXCPP
6671
 
 
6672
 
fi
6673
 
  CXXCPP=$ac_cv_prog_CXXCPP
6674
 
else
6675
 
  ac_cv_prog_CXXCPP=$CXXCPP
6676
 
fi
6677
 
echo "$as_me:$LINENO: result: $CXXCPP" >&5
6678
 
echo "${ECHO_T}$CXXCPP" >&6
6679
 
ac_preproc_ok=false
6680
 
for ac_cxx_preproc_warn_flag in '' yes
6681
 
do
6682
 
  # Use a header file that comes with gcc, so configuring glibc
6683
 
  # with a fresh cross-compiler works.
6684
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6685
 
  # <limits.h> exists even on freestanding compilers.
6686
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6687
 
  # not just through cpp. "Syntax error" is here to catch this case.
6688
 
  cat >conftest.$ac_ext <<_ACEOF
6689
 
/* confdefs.h.  */
6690
 
_ACEOF
6691
 
cat confdefs.h >>conftest.$ac_ext
6692
 
cat >>conftest.$ac_ext <<_ACEOF
6693
 
/* end confdefs.h.  */
6694
 
#ifdef __STDC__
6695
 
# include <limits.h>
6696
 
#else
6697
 
# include <assert.h>
6698
 
#endif
6699
 
                     Syntax error
6700
 
_ACEOF
6701
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6702
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6703
 
  ac_status=$?
6704
 
  grep -v '^ *+' conftest.er1 >conftest.err
6705
 
  rm -f conftest.er1
6706
 
  cat conftest.err >&5
6707
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708
 
  (exit $ac_status); } >/dev/null; then
6709
 
  if test -s conftest.err; then
6710
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
6711
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6712
 
  else
6713
 
    ac_cpp_err=
6714
 
  fi
6715
 
else
6716
 
  ac_cpp_err=yes
6717
 
fi
6718
 
if test -z "$ac_cpp_err"; then
6719
 
  :
6720
 
else
6721
 
  echo "$as_me: failed program was:" >&5
6722
 
sed 's/^/| /' conftest.$ac_ext >&5
6723
 
 
6724
 
  # Broken: fails on valid input.
6725
 
continue
6726
 
fi
6727
 
rm -f conftest.err conftest.$ac_ext
6728
 
 
6729
 
  # OK, works on sane cases.  Now check whether non-existent headers
6730
 
  # can be detected and how.
6731
 
  cat >conftest.$ac_ext <<_ACEOF
6732
 
/* confdefs.h.  */
6733
 
_ACEOF
6734
 
cat confdefs.h >>conftest.$ac_ext
6735
 
cat >>conftest.$ac_ext <<_ACEOF
6736
 
/* end confdefs.h.  */
6737
 
#include <ac_nonexistent.h>
6738
 
_ACEOF
6739
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6740
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6741
 
  ac_status=$?
6742
 
  grep -v '^ *+' conftest.er1 >conftest.err
6743
 
  rm -f conftest.er1
6744
 
  cat conftest.err >&5
6745
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746
 
  (exit $ac_status); } >/dev/null; then
6747
 
  if test -s conftest.err; then
6748
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
6749
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6750
 
  else
6751
 
    ac_cpp_err=
6752
 
  fi
6753
 
else
6754
 
  ac_cpp_err=yes
6755
 
fi
6756
 
if test -z "$ac_cpp_err"; then
6757
 
  # Broken: success on invalid input.
6758
 
continue
6759
 
else
6760
 
  echo "$as_me: failed program was:" >&5
6761
 
sed 's/^/| /' conftest.$ac_ext >&5
6762
 
 
6763
 
  # Passes both tests.
6764
 
ac_preproc_ok=:
6765
 
break
6766
 
fi
6767
 
rm -f conftest.err conftest.$ac_ext
6768
 
 
6769
 
done
6770
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6771
 
rm -f conftest.err conftest.$ac_ext
6772
 
if $ac_preproc_ok; then
6773
 
  :
6774
 
else
6775
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6776
 
See \`config.log' for more details." >&5
6777
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6778
 
See \`config.log' for more details." >&2;}
6779
 
   { (exit 1); exit 1; }; }
6780
 
fi
6781
 
 
6782
 
ac_ext=cc
6783
 
ac_cpp='$CXXCPP $CPPFLAGS'
6784
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6785
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6786
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6787
 
 
6788
 
 
6789
 
ac_ext=f
6790
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6791
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6792
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6793
 
if test -n "$ac_tool_prefix"; then
6794
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6795
 
  do
6796
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6797
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6798
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6799
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6800
 
if test "${ac_cv_prog_F77+set}" = set; then
6801
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6802
 
else
6803
 
  if test -n "$F77"; then
6804
 
  ac_cv_prog_F77="$F77" # Let the user override the test.
6805
 
else
6806
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807
 
for as_dir in $PATH
6808
 
do
6809
 
  IFS=$as_save_IFS
6810
 
  test -z "$as_dir" && as_dir=.
6811
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6812
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813
 
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6814
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6815
 
    break 2
6816
 
  fi
6817
 
done
6818
 
done
6819
 
 
6820
 
fi
6821
 
fi
6822
 
F77=$ac_cv_prog_F77
6823
 
if test -n "$F77"; then
6824
 
  echo "$as_me:$LINENO: result: $F77" >&5
6825
 
echo "${ECHO_T}$F77" >&6
6826
 
else
6827
 
  echo "$as_me:$LINENO: result: no" >&5
6828
 
echo "${ECHO_T}no" >&6
6829
 
fi
6830
 
 
6831
 
    test -n "$F77" && break
6832
 
  done
6833
 
fi
6834
 
if test -z "$F77"; then
6835
 
  ac_ct_F77=$F77
6836
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6837
 
do
6838
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6839
 
set dummy $ac_prog; ac_word=$2
6840
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6841
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6842
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6843
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6844
 
else
6845
 
  if test -n "$ac_ct_F77"; then
6846
 
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6847
 
else
6848
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849
 
for as_dir in $PATH
6850
 
do
6851
 
  IFS=$as_save_IFS
6852
 
  test -z "$as_dir" && as_dir=.
6853
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6854
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6855
 
    ac_cv_prog_ac_ct_F77="$ac_prog"
6856
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6857
 
    break 2
6858
 
  fi
6859
 
done
6860
 
done
6861
 
 
6862
 
fi
6863
 
fi
6864
 
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6865
 
if test -n "$ac_ct_F77"; then
6866
 
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6867
 
echo "${ECHO_T}$ac_ct_F77" >&6
6868
 
else
6869
 
  echo "$as_me:$LINENO: result: no" >&5
6870
 
echo "${ECHO_T}no" >&6
6871
 
fi
6872
 
 
6873
 
  test -n "$ac_ct_F77" && break
6874
 
done
6875
 
 
6876
 
  F77=$ac_ct_F77
6877
 
fi
6878
 
 
6879
 
 
6880
 
# Provide some information about the compiler.
6881
 
echo "$as_me:6881:" \
6882
 
     "checking for Fortran 77 compiler version" >&5
6883
 
ac_compiler=`set X $ac_compile; echo $2`
6884
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6885
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
6886
 
  ac_status=$?
6887
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888
 
  (exit $ac_status); }
6889
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6890
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
6891
 
  ac_status=$?
6892
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893
 
  (exit $ac_status); }
6894
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6895
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
6896
 
  ac_status=$?
6897
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898
 
  (exit $ac_status); }
6899
 
rm -f a.out
6900
 
 
6901
 
# If we don't use `.F' as extension, the preprocessor is not run on the
6902
 
# input file.  (Note that this only needs to work for GNU compilers.)
6903
 
ac_save_ext=$ac_ext
6904
 
ac_ext=F
6905
 
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6906
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6907
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6908
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6909
 
else
6910
 
  cat >conftest.$ac_ext <<_ACEOF
6911
 
      program main
6912
 
#ifndef __GNUC__
6913
 
       choke me
6914
 
#endif
6915
 
 
6916
 
      end
6917
 
_ACEOF
6918
 
rm -f conftest.$ac_objext
6919
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6920
 
  (eval $ac_compile) 2>conftest.er1
6921
 
  ac_status=$?
6922
 
  grep -v '^ *+' conftest.er1 >conftest.err
6923
 
  rm -f conftest.er1
6924
 
  cat conftest.err >&5
6925
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926
 
  (exit $ac_status); } &&
6927
 
         { ac_try='test -z "$ac_f77_werror_flag"
6928
 
                         || test ! -s conftest.err'
6929
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930
 
  (eval $ac_try) 2>&5
6931
 
  ac_status=$?
6932
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933
 
  (exit $ac_status); }; } &&
6934
 
         { ac_try='test -s conftest.$ac_objext'
6935
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936
 
  (eval $ac_try) 2>&5
6937
 
  ac_status=$?
6938
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939
 
  (exit $ac_status); }; }; then
6940
 
  ac_compiler_gnu=yes
6941
 
else
6942
 
  echo "$as_me: failed program was:" >&5
6943
 
sed 's/^/| /' conftest.$ac_ext >&5
6944
 
 
6945
 
ac_compiler_gnu=no
6946
 
fi
6947
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6948
 
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6949
 
 
6950
 
fi
6951
 
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6952
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6953
 
ac_ext=$ac_save_ext
6954
 
ac_test_FFLAGS=${FFLAGS+set}
6955
 
ac_save_FFLAGS=$FFLAGS
6956
 
FFLAGS=
6957
 
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6958
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6959
 
if test "${ac_cv_prog_f77_g+set}" = set; then
6960
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6961
 
else
6962
 
  FFLAGS=-g
6963
 
cat >conftest.$ac_ext <<_ACEOF
6964
 
      program main
6965
 
 
6966
 
      end
6967
 
_ACEOF
6968
 
rm -f conftest.$ac_objext
6969
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6970
 
  (eval $ac_compile) 2>conftest.er1
6971
 
  ac_status=$?
6972
 
  grep -v '^ *+' conftest.er1 >conftest.err
6973
 
  rm -f conftest.er1
6974
 
  cat conftest.err >&5
6975
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976
 
  (exit $ac_status); } &&
6977
 
         { ac_try='test -z "$ac_f77_werror_flag"
6978
 
                         || test ! -s conftest.err'
6979
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980
 
  (eval $ac_try) 2>&5
6981
 
  ac_status=$?
6982
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983
 
  (exit $ac_status); }; } &&
6984
 
         { ac_try='test -s conftest.$ac_objext'
6985
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986
 
  (eval $ac_try) 2>&5
6987
 
  ac_status=$?
6988
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989
 
  (exit $ac_status); }; }; then
6990
 
  ac_cv_prog_f77_g=yes
6991
 
else
6992
 
  echo "$as_me: failed program was:" >&5
6993
 
sed 's/^/| /' conftest.$ac_ext >&5
6994
 
 
6995
 
ac_cv_prog_f77_g=no
6996
 
fi
6997
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6998
 
 
6999
 
fi
7000
 
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7001
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7002
 
if test "$ac_test_FFLAGS" = set; then
7003
 
  FFLAGS=$ac_save_FFLAGS
7004
 
elif test $ac_cv_prog_f77_g = yes; then
7005
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7006
 
    FFLAGS="-g -O2"
7007
 
  else
7008
 
    FFLAGS="-g"
7009
 
  fi
7010
 
else
7011
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7012
 
    FFLAGS="-O2"
7013
 
  else
7014
 
    FFLAGS=
7015
 
  fi
7016
 
fi
7017
 
 
7018
 
G77=`test $ac_compiler_gnu = yes && echo yes`
7019
 
ac_ext=c
7020
 
ac_cpp='$CPP $CPPFLAGS'
7021
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7022
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7023
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7024
 
 
7025
 
 
7026
 
 
7027
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7028
 
 
7029
 
# find the maximum length of command line arguments
7030
 
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7031
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7032
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7033
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7034
 
else
7035
 
    i=0
7036
 
  teststring="ABCD"
7037
 
 
7038
 
  case $build_os in
7039
 
  msdosdjgpp*)
7040
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
7041
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
7042
 
    # during glob expansion).  Even if it were fixed, the result of this
7043
 
    # check would be larger than it should be.
7044
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7045
 
    ;;
7046
 
 
7047
 
  gnu*)
7048
 
    # Under GNU Hurd, this test is not required because there is
7049
 
    # no limit to the length of command line arguments.
7050
 
    # Libtool will interpret -1 as no limit whatsoever
7051
 
    lt_cv_sys_max_cmd_len=-1;
7052
 
    ;;
7053
 
 
7054
 
  cygwin* | mingw*)
7055
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
7056
 
    # about 5 minutes as the teststring grows exponentially.
7057
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
7058
 
    # you end up with a "frozen" computer, even though with patience
7059
 
    # the test eventually succeeds (with a max line length of 256k).
7060
 
    # Instead, let's just punt: use the minimum linelength reported by
7061
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
7062
 
    lt_cv_sys_max_cmd_len=8192;
7063
 
    ;;
7064
 
 
7065
 
  amigaos*)
7066
 
    # On AmigaOS with pdksh, this test takes hours, literally.
7067
 
    # So we just punt and use a minimum line length of 8192.
7068
 
    lt_cv_sys_max_cmd_len=8192;
7069
 
    ;;
7070
 
 
7071
 
 *)
7072
 
    # If test is not a shell built-in, we'll probably end up computing a
7073
 
    # maximum length that is only half of the actual maximum length, but
7074
 
    # we can't tell.
7075
 
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7076
 
               = "XX$teststring") >/dev/null 2>&1 &&
7077
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7078
 
            lt_cv_sys_max_cmd_len=$new_result &&
7079
 
            test $i != 17 # 1/2 MB should be enough
7080
 
    do
7081
 
      i=`expr $i + 1`
7082
 
      teststring=$teststring$teststring
7083
 
    done
7084
 
    teststring=
7085
 
    # Add a significant safety factor because C++ compilers can tack on massive
7086
 
    # amounts of additional arguments before passing them to the linker.
7087
 
    # It appears as though 1/2 is a usable value.
7088
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7089
 
    ;;
7090
 
  esac
7091
 
 
7092
 
fi
7093
 
 
7094
 
if test -n $lt_cv_sys_max_cmd_len ; then
7095
 
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7096
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7097
 
else
7098
 
  echo "$as_me:$LINENO: result: none" >&5
7099
 
echo "${ECHO_T}none" >&6
7100
 
fi
7101
 
 
7102
 
 
7103
 
 
7104
 
 
7105
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
7106
 
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7107
 
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7108
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7109
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7110
 
else
7111
 
 
7112
 
# These are sane defaults that work on at least a few old systems.
7113
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7114
 
 
7115
 
# Character class describing NM global symbol codes.
7116
 
symcode='[BCDEGRST]'
7117
 
 
7118
 
# Regexp to match symbols that can be accessed directly from C.
7119
 
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7120
 
 
7121
 
# Transform the above into a raw symbol and a C symbol.
7122
 
symxfrm='\1 \2\3 \3'
7123
 
 
7124
 
# Transform an extracted symbol line into a proper C declaration
7125
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7126
 
 
7127
 
# Transform an extracted symbol line into symbol name and symbol address
7128
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7129
 
 
7130
 
# Define system-specific variables.
7131
 
case $host_os in
7132
 
aix*)
7133
 
  symcode='[BCDT]'
7134
 
  ;;
7135
 
cygwin* | mingw* | pw32*)
7136
 
  symcode='[ABCDGISTW]'
7137
 
  ;;
7138
 
hpux*) # Its linker distinguishes data from code symbols
7139
 
  if test "$host_cpu" = ia64; then
7140
 
    symcode='[ABCDEGRST]'
7141
 
  fi
7142
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7143
 
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7144
 
  ;;
7145
 
irix* | nonstopux*)
7146
 
  symcode='[BCDEGRST]'
7147
 
  ;;
7148
 
osf*)
7149
 
  symcode='[BCDEGQRST]'
7150
 
  ;;
7151
 
solaris* | sysv5*)
7152
 
  symcode='[BDRT]'
7153
 
  ;;
7154
 
sysv4)
7155
 
  symcode='[DFNSTU]'
7156
 
  ;;
7157
 
esac
7158
 
 
7159
 
# Handle CRLF in mingw tool chain
7160
 
opt_cr=
7161
 
case $build_os in
7162
 
mingw*)
7163
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7164
 
  ;;
7165
 
esac
7166
 
 
7167
 
# If we're using GNU nm, then use its standard symbol codes.
7168
 
case `$NM -V 2>&1` in
7169
 
*GNU* | *'with BFD'*)
7170
 
  symcode='[ABCDGIRSTW]' ;;
7171
 
esac
7172
 
 
7173
 
# Try without a prefix undercore, then with it.
7174
 
for ac_symprfx in "" "_"; do
7175
 
 
7176
 
  # Write the raw and C identifiers.
7177
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7178
 
 
7179
 
  # Check to see that the pipe works correctly.
7180
 
  pipe_works=no
7181
 
 
7182
 
  rm -f conftest*
7183
 
  cat > conftest.$ac_ext <<EOF
7184
 
#ifdef __cplusplus
7185
 
extern "C" {
7186
 
#endif
7187
 
char nm_test_var;
7188
 
void nm_test_func(){}
7189
 
#ifdef __cplusplus
7190
 
}
7191
 
#endif
7192
 
int main(){nm_test_var='a';nm_test_func();return(0);}
7193
 
EOF
7194
 
 
7195
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196
 
  (eval $ac_compile) 2>&5
7197
 
  ac_status=$?
7198
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199
 
  (exit $ac_status); }; then
7200
 
    # Now try to grab the symbols.
7201
 
    nlist=conftest.nm
7202
 
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7203
 
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7204
 
  ac_status=$?
7205
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206
 
  (exit $ac_status); } && test -s "$nlist"; then
7207
 
      # Try sorting and uniquifying the output.
7208
 
      if sort "$nlist" | uniq > "$nlist"T; then
7209
 
        mv -f "$nlist"T "$nlist"
7210
 
      else
7211
 
        rm -f "$nlist"T
7212
 
      fi
7213
 
 
7214
 
      # Make sure that we snagged all the symbols we need.
7215
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7216
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7217
 
          cat <<EOF > conftest.$ac_ext
7218
 
#ifdef __cplusplus
7219
 
extern "C" {
7220
 
#endif
7221
 
 
7222
 
EOF
7223
 
          # Now generate the symbol file.
7224
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7225
 
 
7226
 
          cat <<EOF >> conftest.$ac_ext
7227
 
#if defined (__STDC__) && __STDC__
7228
 
# define lt_ptr_t void *
7229
 
#else
7230
 
# define lt_ptr_t char *
7231
 
# define const
7232
 
#endif
7233
 
 
7234
 
/* The mapping between symbol names and symbols. */
7235
 
const struct {
7236
 
  const char *name;
7237
 
  lt_ptr_t address;
7238
 
}
7239
 
lt_preloaded_symbols[] =
7240
 
{
7241
 
EOF
7242
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7243
 
          cat <<\EOF >> conftest.$ac_ext
7244
 
  {0, (lt_ptr_t) 0}
7245
 
};
7246
 
 
7247
 
#ifdef __cplusplus
7248
 
}
7249
 
#endif
7250
 
EOF
7251
 
          # Now try linking the two files.
7252
 
          mv -f conftest.$ac_objext conftstm.$ac_objext
7253
 
          lt_save_LIBS="$LIBS"
7254
 
          lt_save_CFLAGS="$CFLAGS"
7255
 
          LIBS="conftstm.$ac_objext"
7256
 
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7257
 
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7258
 
  (eval $ac_link) 2>&5
7259
 
  ac_status=$?
7260
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261
 
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7262
 
            pipe_works=yes
7263
 
          fi
7264
 
          LIBS="$lt_save_LIBS"
7265
 
          CFLAGS="$lt_save_CFLAGS"
7266
 
        else
7267
 
          echo "cannot find nm_test_func in $nlist" >&5
7268
 
        fi
7269
 
      else
7270
 
        echo "cannot find nm_test_var in $nlist" >&5
7271
 
      fi
7272
 
    else
7273
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7274
 
    fi
7275
 
  else
7276
 
    echo "$progname: failed program was:" >&5
7277
 
    cat conftest.$ac_ext >&5
7278
 
  fi
7279
 
  rm -f conftest* conftst*
7280
 
 
7281
 
  # Do not use the global_symbol_pipe unless it works.
7282
 
  if test "$pipe_works" = yes; then
7283
 
    break
7284
 
  else
7285
 
    lt_cv_sys_global_symbol_pipe=
7286
 
  fi
7287
 
done
7288
 
 
7289
 
fi
7290
 
 
7291
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7292
 
  lt_cv_sys_global_symbol_to_cdecl=
7293
 
fi
7294
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7295
 
  echo "$as_me:$LINENO: result: failed" >&5
7296
 
echo "${ECHO_T}failed" >&6
7297
 
else
7298
 
  echo "$as_me:$LINENO: result: ok" >&5
7299
 
echo "${ECHO_T}ok" >&6
7300
 
fi
7301
 
 
7302
 
echo "$as_me:$LINENO: checking for objdir" >&5
7303
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7304
 
if test "${lt_cv_objdir+set}" = set; then
7305
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7306
 
else
7307
 
  rm -f .libs 2>/dev/null
7308
 
mkdir .libs 2>/dev/null
7309
 
if test -d .libs; then
7310
 
  lt_cv_objdir=.libs
7311
 
else
7312
 
  # MS-DOS does not allow filenames that begin with a dot.
7313
 
  lt_cv_objdir=_libs
7314
 
fi
7315
 
rmdir .libs 2>/dev/null
7316
 
fi
7317
 
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7318
 
echo "${ECHO_T}$lt_cv_objdir" >&6
7319
 
objdir=$lt_cv_objdir
7320
 
 
7321
 
 
7322
 
 
7323
 
 
7324
 
 
7325
 
case $host_os in
7326
 
aix3*)
7327
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
7328
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7329
 
  # vanish in a puff of smoke.
7330
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
7331
 
    COLLECT_NAMES=
7332
 
    export COLLECT_NAMES
7333
 
  fi
7334
 
  ;;
7335
 
esac
7336
 
 
7337
 
# Sed substitution that helps us do robust quoting.  It backslashifies
7338
 
# metacharacters that are still active within double-quoted strings.
7339
 
Xsed='sed -e s/^X//'
7340
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7341
 
 
7342
 
# Same as above, but do not quote variable references.
7343
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7344
 
 
7345
 
# Sed substitution to delay expansion of an escaped shell variable in a
7346
 
# double_quote_subst'ed string.
7347
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7348
 
 
7349
 
# Sed substitution to avoid accidental globbing in evaled expressions
7350
 
no_glob_subst='s/\*/\\\*/g'
7351
 
 
7352
 
# Constants:
7353
 
rm="rm -f"
7354
 
 
7355
 
# Global variables:
7356
 
default_ofile=libtool
7357
 
can_build_shared=yes
7358
 
 
7359
 
# All known linkers require a `.a' archive for static linking (except M$VC,
7360
 
# which needs '.lib').
7361
 
libext=a
7362
 
ltmain="$ac_aux_dir/ltmain.sh"
7363
 
ofile="$default_ofile"
7364
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
7365
 
 
7366
 
if test -n "$ac_tool_prefix"; then
7367
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7368
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
7369
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7370
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7371
 
if test "${ac_cv_prog_AR+set}" = set; then
7372
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7373
 
else
7374
 
  if test -n "$AR"; then
7375
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
7376
 
else
7377
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378
 
for as_dir in $PATH
7379
 
do
7380
 
  IFS=$as_save_IFS
7381
 
  test -z "$as_dir" && as_dir=.
7382
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7383
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7384
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
7385
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7386
 
    break 2
7387
 
  fi
7388
 
done
7389
 
done
7390
 
 
7391
 
fi
7392
 
fi
7393
 
AR=$ac_cv_prog_AR
7394
 
if test -n "$AR"; then
7395
 
  echo "$as_me:$LINENO: result: $AR" >&5
7396
 
echo "${ECHO_T}$AR" >&6
7397
 
else
7398
 
  echo "$as_me:$LINENO: result: no" >&5
7399
 
echo "${ECHO_T}no" >&6
7400
 
fi
7401
 
 
7402
 
fi
7403
 
if test -z "$ac_cv_prog_AR"; then
7404
 
  ac_ct_AR=$AR
7405
 
  # Extract the first word of "ar", so it can be a program name with args.
7406
 
set dummy ar; ac_word=$2
7407
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7408
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7409
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7410
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7411
 
else
7412
 
  if test -n "$ac_ct_AR"; then
7413
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7414
 
else
7415
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416
 
for as_dir in $PATH
7417
 
do
7418
 
  IFS=$as_save_IFS
7419
 
  test -z "$as_dir" && as_dir=.
7420
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7421
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7422
 
    ac_cv_prog_ac_ct_AR="ar"
7423
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7424
 
    break 2
7425
 
  fi
7426
 
done
7427
 
done
7428
 
 
7429
 
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7430
 
fi
7431
 
fi
7432
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7433
 
if test -n "$ac_ct_AR"; then
7434
 
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7435
 
echo "${ECHO_T}$ac_ct_AR" >&6
7436
 
else
7437
 
  echo "$as_me:$LINENO: result: no" >&5
7438
 
echo "${ECHO_T}no" >&6
7439
 
fi
7440
 
 
7441
 
  AR=$ac_ct_AR
7442
 
else
7443
 
  AR="$ac_cv_prog_AR"
7444
 
fi
7445
 
 
7446
 
if test -n "$ac_tool_prefix"; then
7447
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7448
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7449
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7450
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7451
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
7452
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7453
 
else
7454
 
  if test -n "$RANLIB"; then
7455
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7456
 
else
7457
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458
 
for as_dir in $PATH
7459
 
do
7460
 
  IFS=$as_save_IFS
7461
 
  test -z "$as_dir" && as_dir=.
7462
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7463
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7465
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466
 
    break 2
7467
 
  fi
7468
 
done
7469
 
done
7470
 
 
7471
 
fi
7472
 
fi
7473
 
RANLIB=$ac_cv_prog_RANLIB
7474
 
if test -n "$RANLIB"; then
7475
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
7476
 
echo "${ECHO_T}$RANLIB" >&6
7477
 
else
7478
 
  echo "$as_me:$LINENO: result: no" >&5
7479
 
echo "${ECHO_T}no" >&6
7480
 
fi
7481
 
 
7482
 
fi
7483
 
if test -z "$ac_cv_prog_RANLIB"; then
7484
 
  ac_ct_RANLIB=$RANLIB
7485
 
  # Extract the first word of "ranlib", so it can be a program name with args.
7486
 
set dummy ranlib; ac_word=$2
7487
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7488
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7489
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7490
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7491
 
else
7492
 
  if test -n "$ac_ct_RANLIB"; then
7493
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7494
 
else
7495
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496
 
for as_dir in $PATH
7497
 
do
7498
 
  IFS=$as_save_IFS
7499
 
  test -z "$as_dir" && as_dir=.
7500
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7501
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7502
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
7503
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7504
 
    break 2
7505
 
  fi
7506
 
done
7507
 
done
7508
 
 
7509
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7510
 
fi
7511
 
fi
7512
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7513
 
if test -n "$ac_ct_RANLIB"; then
7514
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7515
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
7516
 
else
7517
 
  echo "$as_me:$LINENO: result: no" >&5
7518
 
echo "${ECHO_T}no" >&6
7519
 
fi
7520
 
 
7521
 
  RANLIB=$ac_ct_RANLIB
7522
 
else
7523
 
  RANLIB="$ac_cv_prog_RANLIB"
7524
 
fi
7525
 
 
7526
 
if test -n "$ac_tool_prefix"; then
7527
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7528
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
7529
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7530
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7531
 
if test "${ac_cv_prog_STRIP+set}" = set; then
7532
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7533
 
else
7534
 
  if test -n "$STRIP"; then
7535
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7536
 
else
7537
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538
 
for as_dir in $PATH
7539
 
do
7540
 
  IFS=$as_save_IFS
7541
 
  test -z "$as_dir" && as_dir=.
7542
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7543
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7545
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7546
 
    break 2
7547
 
  fi
7548
 
done
7549
 
done
7550
 
 
7551
 
fi
7552
 
fi
7553
 
STRIP=$ac_cv_prog_STRIP
7554
 
if test -n "$STRIP"; then
7555
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
7556
 
echo "${ECHO_T}$STRIP" >&6
7557
 
else
7558
 
  echo "$as_me:$LINENO: result: no" >&5
7559
 
echo "${ECHO_T}no" >&6
7560
 
fi
7561
 
 
7562
 
fi
7563
 
if test -z "$ac_cv_prog_STRIP"; then
7564
 
  ac_ct_STRIP=$STRIP
7565
 
  # Extract the first word of "strip", so it can be a program name with args.
7566
 
set dummy strip; ac_word=$2
7567
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7568
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7569
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7570
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7571
 
else
7572
 
  if test -n "$ac_ct_STRIP"; then
7573
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7574
 
else
7575
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576
 
for as_dir in $PATH
7577
 
do
7578
 
  IFS=$as_save_IFS
7579
 
  test -z "$as_dir" && as_dir=.
7580
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7581
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582
 
    ac_cv_prog_ac_ct_STRIP="strip"
7583
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7584
 
    break 2
7585
 
  fi
7586
 
done
7587
 
done
7588
 
 
7589
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7590
 
fi
7591
 
fi
7592
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7593
 
if test -n "$ac_ct_STRIP"; then
7594
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7595
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
7596
 
else
7597
 
  echo "$as_me:$LINENO: result: no" >&5
7598
 
echo "${ECHO_T}no" >&6
7599
 
fi
7600
 
 
7601
 
  STRIP=$ac_ct_STRIP
7602
 
else
7603
 
  STRIP="$ac_cv_prog_STRIP"
7604
 
fi
7605
 
 
7606
 
 
7607
 
old_CC="$CC"
7608
 
old_CFLAGS="$CFLAGS"
7609
 
 
7610
 
# Set sane defaults for various variables
7611
 
test -z "$AR" && AR=ar
7612
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
7613
 
test -z "$AS" && AS=as
7614
 
test -z "$CC" && CC=cc
7615
 
test -z "$LTCC" && LTCC=$CC
7616
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
7617
 
test -z "$LD" && LD=ld
7618
 
test -z "$LN_S" && LN_S="ln -s"
7619
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7620
 
test -z "$NM" && NM=nm
7621
 
test -z "$SED" && SED=sed
7622
 
test -z "$OBJDUMP" && OBJDUMP=objdump
7623
 
test -z "$RANLIB" && RANLIB=:
7624
 
test -z "$STRIP" && STRIP=:
7625
 
test -z "$ac_objext" && ac_objext=o
7626
 
 
7627
 
# Determine commands to create old-style static archives.
7628
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7629
 
old_postinstall_cmds='chmod 644 $oldlib'
7630
 
old_postuninstall_cmds=
7631
 
 
7632
 
if test -n "$RANLIB"; then
7633
 
  case $host_os in
7634
 
  openbsd*)
7635
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7636
 
    ;;
7637
 
  *)
7638
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7639
 
    ;;
7640
 
  esac
7641
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7642
 
fi
7643
 
 
7644
 
# Only perform the check for file, if the check method requires it
7645
 
case $deplibs_check_method in
7646
 
file_magic*)
7647
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7648
 
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7649
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7650
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7651
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7652
 
else
7653
 
  case $MAGIC_CMD in
7654
 
[\\/*] |  ?:[\\/]*)
7655
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7656
 
  ;;
7657
 
*)
7658
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7659
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7660
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7661
 
  for ac_dir in $ac_dummy; do
7662
 
    IFS="$lt_save_ifs"
7663
 
    test -z "$ac_dir" && ac_dir=.
7664
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
7665
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7666
 
      if test -n "$file_magic_test_file"; then
7667
 
        case $deplibs_check_method in
7668
 
        "file_magic "*)
7669
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7670
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7671
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7672
 
            $EGREP "$file_magic_regex" > /dev/null; then
7673
 
            :
7674
 
          else
7675
 
            cat <<EOF 1>&2
7676
 
 
7677
 
*** Warning: the command libtool uses to detect shared libraries,
7678
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7679
 
*** The result is that libtool may fail to recognize shared libraries
7680
 
*** as such.  This will affect the creation of libtool libraries that
7681
 
*** depend on shared libraries, but programs linked with such libtool
7682
 
*** libraries will work regardless of this problem.  Nevertheless, you
7683
 
*** may want to report the problem to your system manager and/or to
7684
 
*** bug-libtool@gnu.org
7685
 
 
7686
 
EOF
7687
 
          fi ;;
7688
 
        esac
7689
 
      fi
7690
 
      break
7691
 
    fi
7692
 
  done
7693
 
  IFS="$lt_save_ifs"
7694
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7695
 
  ;;
7696
 
esac
7697
 
fi
7698
 
 
7699
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7700
 
if test -n "$MAGIC_CMD"; then
7701
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7702
 
echo "${ECHO_T}$MAGIC_CMD" >&6
7703
 
else
7704
 
  echo "$as_me:$LINENO: result: no" >&5
7705
 
echo "${ECHO_T}no" >&6
7706
 
fi
7707
 
 
7708
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
7709
 
  if test -n "$ac_tool_prefix"; then
7710
 
    echo "$as_me:$LINENO: checking for file" >&5
7711
 
echo $ECHO_N "checking for file... $ECHO_C" >&6
7712
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7713
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7714
 
else
7715
 
  case $MAGIC_CMD in
7716
 
[\\/*] |  ?:[\\/]*)
7717
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7718
 
  ;;
7719
 
*)
7720
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7721
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7722
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7723
 
  for ac_dir in $ac_dummy; do
7724
 
    IFS="$lt_save_ifs"
7725
 
    test -z "$ac_dir" && ac_dir=.
7726
 
    if test -f $ac_dir/file; then
7727
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7728
 
      if test -n "$file_magic_test_file"; then
7729
 
        case $deplibs_check_method in
7730
 
        "file_magic "*)
7731
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7732
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7733
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7734
 
            $EGREP "$file_magic_regex" > /dev/null; then
7735
 
            :
7736
 
          else
7737
 
            cat <<EOF 1>&2
7738
 
 
7739
 
*** Warning: the command libtool uses to detect shared libraries,
7740
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7741
 
*** The result is that libtool may fail to recognize shared libraries
7742
 
*** as such.  This will affect the creation of libtool libraries that
7743
 
*** depend on shared libraries, but programs linked with such libtool
7744
 
*** libraries will work regardless of this problem.  Nevertheless, you
7745
 
*** may want to report the problem to your system manager and/or to
7746
 
*** bug-libtool@gnu.org
7747
 
 
7748
 
EOF
7749
 
          fi ;;
7750
 
        esac
7751
 
      fi
7752
 
      break
7753
 
    fi
7754
 
  done
7755
 
  IFS="$lt_save_ifs"
7756
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7757
 
  ;;
7758
 
esac
7759
 
fi
7760
 
 
7761
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7762
 
if test -n "$MAGIC_CMD"; then
7763
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7764
 
echo "${ECHO_T}$MAGIC_CMD" >&6
7765
 
else
7766
 
  echo "$as_me:$LINENO: result: no" >&5
7767
 
echo "${ECHO_T}no" >&6
7768
 
fi
7769
 
 
7770
 
  else
7771
 
    MAGIC_CMD=:
7772
 
  fi
7773
 
fi
7774
 
 
7775
 
  fi
7776
 
  ;;
7777
 
esac
7778
 
 
7779
 
enable_dlopen=no
7780
 
enable_win32_dll=yes
7781
 
 
7782
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7783
 
if test "${enable_libtool_lock+set}" = set; then
7784
 
  enableval="$enable_libtool_lock"
7785
 
 
7786
 
fi;
7787
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7788
 
 
7789
 
 
7790
 
# Check whether --with-pic or --without-pic was given.
7791
 
if test "${with_pic+set}" = set; then
7792
 
  withval="$with_pic"
7793
 
  pic_mode="$withval"
7794
 
else
7795
 
  pic_mode=default
7796
 
fi;
7797
 
test -z "$pic_mode" && pic_mode=default
7798
 
 
7799
 
# Use C for the default configuration in the libtool script
7800
 
tagname=
7801
 
lt_save_CC="$CC"
7802
 
ac_ext=c
7803
 
ac_cpp='$CPP $CPPFLAGS'
7804
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7807
 
 
7808
 
 
7809
 
# Source file extension for C test sources.
7810
 
ac_ext=c
7811
 
 
7812
 
# Object file extension for compiled C test sources.
7813
 
objext=o
7814
 
objext=$objext
7815
 
 
7816
 
# Code to be used in simple compile tests
7817
 
lt_simple_compile_test_code="int some_variable = 0;\n"
7818
 
 
7819
 
# Code to be used in simple link tests
7820
 
lt_simple_link_test_code='int main(){return(0);}\n'
7821
 
 
7822
 
 
7823
 
# If no C compiler was specified, use CC.
7824
 
LTCC=${LTCC-"$CC"}
7825
 
 
7826
 
# Allow CC to be a program name with arguments.
7827
 
compiler=$CC
7828
 
 
7829
 
 
7830
 
#
7831
 
# Check for any special shared library compilation flags.
7832
 
#
7833
 
lt_prog_cc_shlib=
7834
 
if test "$GCC" = no; then
7835
 
  case $host_os in
7836
 
  sco3.2v5*)
7837
 
    lt_prog_cc_shlib='-belf'
7838
 
    ;;
7839
 
  esac
7840
 
fi
7841
 
if test -n "$lt_prog_cc_shlib"; then
7842
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7843
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7844
 
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7845
 
  else
7846
 
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7847
 
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7848
 
    lt_cv_prog_cc_can_build_shared=no
7849
 
  fi
7850
 
fi
7851
 
 
7852
 
 
7853
 
#
7854
 
# Check to make sure the static flag actually works.
7855
 
#
7856
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7857
 
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7858
 
if test "${lt_prog_compiler_static_works+set}" = set; then
7859
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7860
 
else
7861
 
  lt_prog_compiler_static_works=no
7862
 
   save_LDFLAGS="$LDFLAGS"
7863
 
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7864
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7865
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7866
 
     # The compiler can only warn and ignore the option if not recognized
7867
 
     # So say no if there are warnings
7868
 
     if test -s conftest.err; then
7869
 
       # Append any errors to the config.log.
7870
 
       cat conftest.err 1>&5
7871
 
     else
7872
 
       lt_prog_compiler_static_works=yes
7873
 
     fi
7874
 
   fi
7875
 
   $rm conftest*
7876
 
   LDFLAGS="$save_LDFLAGS"
7877
 
 
7878
 
fi
7879
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7880
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7881
 
 
7882
 
if test x"$lt_prog_compiler_static_works" = xyes; then
7883
 
    :
7884
 
else
7885
 
    lt_prog_compiler_static=
7886
 
fi
7887
 
 
7888
 
 
7889
 
 
7890
 
 
7891
 
lt_prog_compiler_no_builtin_flag=
7892
 
 
7893
 
if test "$GCC" = yes; then
7894
 
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7895
 
 
7896
 
 
7897
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7898
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7899
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7900
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7901
 
else
7902
 
  lt_cv_prog_compiler_rtti_exceptions=no
7903
 
  ac_outfile=conftest.$ac_objext
7904
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7905
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7906
 
   # Insert the option either (1) after the last *FLAGS variable, or
7907
 
   # (2) before a word containing "conftest.", or (3) at the end.
7908
 
   # Note that $ac_compile itself does not contain backslashes and begins
7909
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7910
 
   # The option is referenced via a variable to avoid confusing sed.
7911
 
   lt_compile=`echo "$ac_compile" | $SED \
7912
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7913
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7914
 
   -e 's:$: $lt_compiler_flag:'`
7915
 
   (eval echo "\"\$as_me:7915: $lt_compile\"" >&5)
7916
 
   (eval "$lt_compile" 2>conftest.err)
7917
 
   ac_status=$?
7918
 
   cat conftest.err >&5
7919
 
   echo "$as_me:7919: \$? = $ac_status" >&5
7920
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
7921
 
     # The compiler can only warn and ignore the option if not recognized
7922
 
     # So say no if there are warnings
7923
 
     if test ! -s conftest.err; then
7924
 
       lt_cv_prog_compiler_rtti_exceptions=yes
7925
 
     fi
7926
 
   fi
7927
 
   $rm conftest*
7928
 
 
7929
 
fi
7930
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7931
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7932
 
 
7933
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7934
 
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7935
 
else
7936
 
    :
7937
 
fi
7938
 
 
7939
 
fi
7940
 
 
7941
 
lt_prog_compiler_wl=
7942
 
lt_prog_compiler_pic=
7943
 
lt_prog_compiler_static=
7944
 
 
7945
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7946
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7947
 
 
7948
 
  if test "$GCC" = yes; then
7949
 
    lt_prog_compiler_wl='-Wl,'
7950
 
    lt_prog_compiler_static='-static'
7951
 
 
7952
 
    case $host_os in
7953
 
      aix*)
7954
 
      # All AIX code is PIC.
7955
 
      if test "$host_cpu" = ia64; then
7956
 
        # AIX 5 now supports IA64 processor
7957
 
        lt_prog_compiler_static='-Bstatic'
7958
 
      fi
7959
 
      ;;
7960
 
 
7961
 
    amigaos*)
7962
 
      # FIXME: we need at least 68020 code to build shared libraries, but
7963
 
      # adding the `-m68020' flag to GCC prevents building anything better,
7964
 
      # like `-m68040'.
7965
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7966
 
      ;;
7967
 
 
7968
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7969
 
      # PIC is the default for these OSes.
7970
 
      ;;
7971
 
 
7972
 
    mingw* | pw32* | os2*)
7973
 
      # This hack is so that the source file can tell whether it is being
7974
 
      # built for inclusion in a dll (and should export symbols for example).
7975
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
7976
 
      ;;
7977
 
 
7978
 
    darwin* | rhapsody*)
7979
 
      # PIC is the default on this platform
7980
 
      # Common symbols not allowed in MH_DYLIB files
7981
 
      lt_prog_compiler_pic='-fno-common'
7982
 
      ;;
7983
 
 
7984
 
    msdosdjgpp*)
7985
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7986
 
      # on systems that don't support them.
7987
 
      lt_prog_compiler_can_build_shared=no
7988
 
      enable_shared=no
7989
 
      ;;
7990
 
 
7991
 
    sysv4*MP*)
7992
 
      if test -d /usr/nec; then
7993
 
        lt_prog_compiler_pic=-Kconform_pic
7994
 
      fi
7995
 
      ;;
7996
 
 
7997
 
    hpux*)
7998
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7999
 
      # not for PA HP-UX.
8000
 
      case "$host_cpu" in
8001
 
      hppa*64*|ia64*)
8002
 
        # +Z the default
8003
 
        ;;
8004
 
      *)
8005
 
        lt_prog_compiler_pic='-fPIC'
8006
 
        ;;
8007
 
      esac
8008
 
      ;;
8009
 
 
8010
 
    *)
8011
 
      lt_prog_compiler_pic='-fPIC'
8012
 
      ;;
8013
 
    esac
8014
 
  else
8015
 
    # PORTME Check for flag to pass linker flags through the system compiler.
8016
 
    case $host_os in
8017
 
    aix*)
8018
 
      lt_prog_compiler_wl='-Wl,'
8019
 
      if test "$host_cpu" = ia64; then
8020
 
        # AIX 5 now supports IA64 processor
8021
 
        lt_prog_compiler_static='-Bstatic'
8022
 
      else
8023
 
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8024
 
      fi
8025
 
      ;;
8026
 
 
8027
 
    mingw* | pw32* | os2*)
8028
 
      # This hack is so that the source file can tell whether it is being
8029
 
      # built for inclusion in a dll (and should export symbols for example).
8030
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
8031
 
      ;;
8032
 
 
8033
 
    hpux9* | hpux10* | hpux11*)
8034
 
      lt_prog_compiler_wl='-Wl,'
8035
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8036
 
      # not for PA HP-UX.
8037
 
      case "$host_cpu" in
8038
 
      hppa*64*|ia64*)
8039
 
        # +Z the default
8040
 
        ;;
8041
 
      *)
8042
 
        lt_prog_compiler_pic='+Z'
8043
 
        ;;
8044
 
      esac
8045
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8046
 
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8047
 
      ;;
8048
 
 
8049
 
    irix5* | irix6* | nonstopux*)
8050
 
      lt_prog_compiler_wl='-Wl,'
8051
 
      # PIC (with -KPIC) is the default.
8052
 
      lt_prog_compiler_static='-non_shared'
8053
 
      ;;
8054
 
 
8055
 
    newsos6)
8056
 
      lt_prog_compiler_pic='-KPIC'
8057
 
      lt_prog_compiler_static='-Bstatic'
8058
 
      ;;
8059
 
 
8060
 
    linux*)
8061
 
      case $CC in
8062
 
      icc* | ecc*)
8063
 
        lt_prog_compiler_wl='-Wl,'
8064
 
        lt_prog_compiler_pic='-KPIC'
8065
 
        lt_prog_compiler_static='-static'
8066
 
        ;;
8067
 
      ccc*)
8068
 
        lt_prog_compiler_wl='-Wl,'
8069
 
        # All Alpha code is PIC.
8070
 
        lt_prog_compiler_static='-non_shared'
8071
 
        ;;
8072
 
      esac
8073
 
      ;;
8074
 
 
8075
 
    osf3* | osf4* | osf5*)
8076
 
      lt_prog_compiler_wl='-Wl,'
8077
 
      # All OSF/1 code is PIC.
8078
 
      lt_prog_compiler_static='-non_shared'
8079
 
      ;;
8080
 
 
8081
 
    sco3.2v5*)
8082
 
      lt_prog_compiler_pic='-Kpic'
8083
 
      lt_prog_compiler_static='-dn'
8084
 
      ;;
8085
 
 
8086
 
    solaris*)
8087
 
      lt_prog_compiler_wl='-Wl,'
8088
 
      lt_prog_compiler_pic='-KPIC'
8089
 
      lt_prog_compiler_static='-Bstatic'
8090
 
      ;;
8091
 
 
8092
 
    sunos4*)
8093
 
      lt_prog_compiler_wl='-Qoption ld '
8094
 
      lt_prog_compiler_pic='-PIC'
8095
 
      lt_prog_compiler_static='-Bstatic'
8096
 
      ;;
8097
 
 
8098
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8099
 
      lt_prog_compiler_wl='-Wl,'
8100
 
      lt_prog_compiler_pic='-KPIC'
8101
 
      lt_prog_compiler_static='-Bstatic'
8102
 
      ;;
8103
 
 
8104
 
    sysv4*MP*)
8105
 
      if test -d /usr/nec ;then
8106
 
        lt_prog_compiler_pic='-Kconform_pic'
8107
 
        lt_prog_compiler_static='-Bstatic'
8108
 
      fi
8109
 
      ;;
8110
 
 
8111
 
    uts4*)
8112
 
      lt_prog_compiler_pic='-pic'
8113
 
      lt_prog_compiler_static='-Bstatic'
8114
 
      ;;
8115
 
 
8116
 
    *)
8117
 
      lt_prog_compiler_can_build_shared=no
8118
 
      ;;
8119
 
    esac
8120
 
  fi
8121
 
 
8122
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8123
 
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8124
 
 
8125
 
#
8126
 
# Check to make sure the PIC flag actually works.
8127
 
#
8128
 
if test -n "$lt_prog_compiler_pic"; then
8129
 
 
8130
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8131
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8132
 
if test "${lt_prog_compiler_pic_works+set}" = set; then
8133
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8134
 
else
8135
 
  lt_prog_compiler_pic_works=no
8136
 
  ac_outfile=conftest.$ac_objext
8137
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8138
 
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8139
 
   # Insert the option either (1) after the last *FLAGS variable, or
8140
 
   # (2) before a word containing "conftest.", or (3) at the end.
8141
 
   # Note that $ac_compile itself does not contain backslashes and begins
8142
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8143
 
   # The option is referenced via a variable to avoid confusing sed.
8144
 
   lt_compile=`echo "$ac_compile" | $SED \
8145
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8146
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8147
 
   -e 's:$: $lt_compiler_flag:'`
8148
 
   (eval echo "\"\$as_me:8148: $lt_compile\"" >&5)
8149
 
   (eval "$lt_compile" 2>conftest.err)
8150
 
   ac_status=$?
8151
 
   cat conftest.err >&5
8152
 
   echo "$as_me:8152: \$? = $ac_status" >&5
8153
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
8154
 
     # The compiler can only warn and ignore the option if not recognized
8155
 
     # So say no if there are warnings
8156
 
     if test ! -s conftest.err; then
8157
 
       lt_prog_compiler_pic_works=yes
8158
 
     fi
8159
 
   fi
8160
 
   $rm conftest*
8161
 
 
8162
 
fi
8163
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8164
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8165
 
 
8166
 
if test x"$lt_prog_compiler_pic_works" = xyes; then
8167
 
    case $lt_prog_compiler_pic in
8168
 
     "" | " "*) ;;
8169
 
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8170
 
     esac
8171
 
else
8172
 
    lt_prog_compiler_pic=
8173
 
     lt_prog_compiler_can_build_shared=no
8174
 
fi
8175
 
 
8176
 
fi
8177
 
case "$host_os" in
8178
 
  # For platforms which do not support PIC, -DPIC is meaningless:
8179
 
  *djgpp*)
8180
 
    lt_prog_compiler_pic=
8181
 
    ;;
8182
 
  *)
8183
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8184
 
    ;;
8185
 
esac
8186
 
 
8187
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8188
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8189
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8190
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8191
 
else
8192
 
  lt_cv_prog_compiler_c_o=no
8193
 
   $rm -r conftest 2>/dev/null
8194
 
   mkdir conftest
8195
 
   cd conftest
8196
 
   mkdir out
8197
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8198
 
 
8199
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8200
 
   # Insert the option either (1) after the last *FLAGS variable, or
8201
 
   # (2) before a word containing "conftest.", or (3) at the end.
8202
 
   # Note that $ac_compile itself does not contain backslashes and begins
8203
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8204
 
   lt_compile=`echo "$ac_compile" | $SED \
8205
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8206
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8207
 
   -e 's:$: $lt_compiler_flag:'`
8208
 
   (eval echo "\"\$as_me:8208: $lt_compile\"" >&5)
8209
 
   (eval "$lt_compile" 2>out/conftest.err)
8210
 
   ac_status=$?
8211
 
   cat out/conftest.err >&5
8212
 
   echo "$as_me:8212: \$? = $ac_status" >&5
8213
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8214
 
   then
8215
 
     # The compiler can only warn and ignore the option if not recognized
8216
 
     # So say no if there are warnings
8217
 
     if test ! -s out/conftest.err; then
8218
 
       lt_cv_prog_compiler_c_o=yes
8219
 
     fi
8220
 
   fi
8221
 
   chmod u+w .
8222
 
   $rm conftest*
8223
 
   # SGI C++ compiler will create directory out/ii_files/ for
8224
 
   # template instantiation
8225
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8226
 
   $rm out/* && rmdir out
8227
 
   cd ..
8228
 
   rmdir conftest
8229
 
   $rm conftest*
8230
 
 
8231
 
fi
8232
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8233
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8234
 
 
8235
 
 
8236
 
hard_links="nottested"
8237
 
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8238
 
  # do not overwrite the value of need_locks provided by the user
8239
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8240
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8241
 
  hard_links=yes
8242
 
  $rm conftest*
8243
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8244
 
  touch conftest.a
8245
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
8246
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8247
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
8248
 
echo "${ECHO_T}$hard_links" >&6
8249
 
  if test "$hard_links" = no; then
8250
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8251
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8252
 
    need_locks=warn
8253
 
  fi
8254
 
else
8255
 
  need_locks=no
8256
 
fi
8257
 
 
8258
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8259
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8260
 
 
8261
 
  runpath_var=
8262
 
  allow_undefined_flag=
8263
 
  enable_shared_with_static_runtimes=no
8264
 
  archive_cmds=
8265
 
  archive_expsym_cmds=
8266
 
  old_archive_From_new_cmds=
8267
 
  old_archive_from_expsyms_cmds=
8268
 
  export_dynamic_flag_spec=
8269
 
  whole_archive_flag_spec=
8270
 
  thread_safe_flag_spec=
8271
 
  hardcode_libdir_flag_spec=
8272
 
  hardcode_libdir_flag_spec_ld=
8273
 
  hardcode_libdir_separator=
8274
 
  hardcode_direct=no
8275
 
  hardcode_minus_L=no
8276
 
  hardcode_shlibpath_var=unsupported
8277
 
  link_all_deplibs=unknown
8278
 
  hardcode_automatic=no
8279
 
  module_cmds=
8280
 
  module_expsym_cmds=
8281
 
  always_export_symbols=no
8282
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8283
 
  # include_expsyms should be a list of space-separated symbols to be *always*
8284
 
  # included in the symbol list
8285
 
  include_expsyms=
8286
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
8287
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8288
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8289
 
  # as well as any symbol that contains `d'.
8290
 
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8291
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8292
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
8293
 
  # the symbol is explicitly referenced.  Since portable code cannot
8294
 
  # rely on this symbol name, it's probably fine to never include it in
8295
 
  # preloaded symbol tables.
8296
 
  extract_expsyms_cmds=
8297
 
 
8298
 
  case $host_os in
8299
 
  cygwin* | mingw* | pw32*)
8300
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8301
 
    # When not using gcc, we currently assume that we are using
8302
 
    # Microsoft Visual C++.
8303
 
    if test "$GCC" != yes; then
8304
 
      with_gnu_ld=no
8305
 
    fi
8306
 
    ;;
8307
 
  openbsd*)
8308
 
    with_gnu_ld=no
8309
 
    ;;
8310
 
  esac
8311
 
 
8312
 
  ld_shlibs=yes
8313
 
  if test "$with_gnu_ld" = yes; then
8314
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
8315
 
    wlarc='${wl}'
8316
 
 
8317
 
    # See if GNU ld supports shared libraries.
8318
 
    case $host_os in
8319
 
    aix3* | aix4* | aix5*)
8320
 
      # On AIX/PPC, the GNU linker is very broken
8321
 
      if test "$host_cpu" != ia64; then
8322
 
        ld_shlibs=no
8323
 
        cat <<EOF 1>&2
8324
 
 
8325
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8326
 
*** to be unable to reliably create shared libraries on AIX.
8327
 
*** Therefore, libtool is disabling shared libraries support.  If you
8328
 
*** really care for shared libraries, you may want to modify your PATH
8329
 
*** so that a non-GNU linker is found, and then restart.
8330
 
 
8331
 
EOF
8332
 
      fi
8333
 
      ;;
8334
 
 
8335
 
    amigaos*)
8336
 
      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)'
8337
 
      hardcode_libdir_flag_spec='-L$libdir'
8338
 
      hardcode_minus_L=yes
8339
 
 
8340
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8341
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
8342
 
      # to version 4, is to share data among multiple programs linked
8343
 
      # with the same dynamic library.  Since this doesn't match the
8344
 
      # behavior of shared libraries on other platforms, we can't use
8345
 
      # them.
8346
 
      ld_shlibs=no
8347
 
      ;;
8348
 
 
8349
 
    beos*)
8350
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8351
 
        allow_undefined_flag=unsupported
8352
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8353
 
        # support --undefined.  This deserves some investigation.  FIXME
8354
 
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8355
 
      else
8356
 
        ld_shlibs=no
8357
 
      fi
8358
 
      ;;
8359
 
 
8360
 
    cygwin* | mingw* | pw32*)
8361
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8362
 
      # as there is no search path for DLLs.
8363
 
      hardcode_libdir_flag_spec='-L$libdir'
8364
 
      allow_undefined_flag=unsupported
8365
 
      always_export_symbols=no
8366
 
      enable_shared_with_static_runtimes=yes
8367
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8368
 
 
8369
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8370
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8371
 
        # If the export-symbols file already is a .def file (1st line
8372
 
        # is EXPORTS), use it as is; otherwise, prepend...
8373
 
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8374
 
          cp $export_symbols $output_objdir/$soname.def;
8375
 
        else
8376
 
          echo EXPORTS > $output_objdir/$soname.def;
8377
 
          cat $export_symbols >> $output_objdir/$soname.def;
8378
 
        fi~
8379
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8380
 
      else
8381
 
        ld_shlibs=no
8382
 
      fi
8383
 
      ;;
8384
 
 
8385
 
    netbsd*)
8386
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8387
 
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8388
 
        wlarc=
8389
 
      else
8390
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8391
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8392
 
      fi
8393
 
      ;;
8394
 
 
8395
 
    solaris* | sysv5*)
8396
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8397
 
        ld_shlibs=no
8398
 
        cat <<EOF 1>&2
8399
 
 
8400
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8401
 
*** create shared libraries on Solaris systems.  Therefore, libtool
8402
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
8403
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
8404
 
*** your PATH or compiler configuration so that the native linker is
8405
 
*** used, and then restart.
8406
 
 
8407
 
EOF
8408
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8409
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8410
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8411
 
      else
8412
 
        ld_shlibs=no
8413
 
      fi
8414
 
      ;;
8415
 
 
8416
 
    sunos4*)
8417
 
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8418
 
      wlarc=
8419
 
      hardcode_direct=yes
8420
 
      hardcode_shlibpath_var=no
8421
 
      ;;
8422
 
 
8423
 
  linux*)
8424
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8425
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8426
 
        archive_cmds="$tmp_archive_cmds"
8427
 
      supports_anon_versioning=no
8428
 
      case `$LD -v 2>/dev/null` in
8429
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8430
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8431
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8432
 
        *\ 2.11.*) ;; # other 2.11 versions
8433
 
        *) supports_anon_versioning=yes ;;
8434
 
      esac
8435
 
      if test $supports_anon_versioning = yes; then
8436
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8437
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8438
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
8439
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8440
 
      else
8441
 
        archive_expsym_cmds="$tmp_archive_cmds"
8442
 
      fi
8443
 
    else
8444
 
      ld_shlibs=no
8445
 
    fi
8446
 
    ;;
8447
 
 
8448
 
    *)
8449
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8450
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8451
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8452
 
      else
8453
 
        ld_shlibs=no
8454
 
      fi
8455
 
      ;;
8456
 
    esac
8457
 
 
8458
 
    if test "$ld_shlibs" = yes; then
8459
 
      runpath_var=LD_RUN_PATH
8460
 
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8461
 
      export_dynamic_flag_spec='${wl}--export-dynamic'
8462
 
      # ancient GNU ld didn't support --whole-archive et. al.
8463
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8464
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8465
 
      else
8466
 
        whole_archive_flag_spec=
8467
 
      fi
8468
 
    fi
8469
 
  else
8470
 
    # PORTME fill in a description of your system's linker (not GNU ld)
8471
 
    case $host_os in
8472
 
    aix3*)
8473
 
      allow_undefined_flag=unsupported
8474
 
      always_export_symbols=yes
8475
 
      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'
8476
 
      # Note: this linker hardcodes the directories in LIBPATH if there
8477
 
      # are no directories specified by -L.
8478
 
      hardcode_minus_L=yes
8479
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
8480
 
        # Neither direct hardcoding nor static linking is supported with a
8481
 
        # broken collect2.
8482
 
        hardcode_direct=unsupported
8483
 
      fi
8484
 
      ;;
8485
 
 
8486
 
    aix4* | aix5*)
8487
 
      if test "$host_cpu" = ia64; then
8488
 
        # On IA64, the linker does run time linking by default, so we don't
8489
 
        # have to do anything special.
8490
 
        aix_use_runtimelinking=no
8491
 
        exp_sym_flag='-Bexport'
8492
 
        no_entry_flag=""
8493
 
      else
8494
 
        # If we're using GNU nm, then we don't want the "-C" option.
8495
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8496
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8497
 
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8498
 
        else
8499
 
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8500
 
        fi
8501
 
        aix_use_runtimelinking=no
8502
 
 
8503
 
        # Test if we are trying to use run time linking or normal
8504
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8505
 
        # need to do runtime linking.
8506
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8507
 
          for ld_flag in $LDFLAGS; do
8508
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8509
 
            aix_use_runtimelinking=yes
8510
 
            break
8511
 
          fi
8512
 
          done
8513
 
        esac
8514
 
 
8515
 
        exp_sym_flag='-bexport'
8516
 
        no_entry_flag='-bnoentry'
8517
 
      fi
8518
 
 
8519
 
      # When large executables or shared objects are built, AIX ld can
8520
 
      # have problems creating the table of contents.  If linking a library
8521
 
      # or program results in "error TOC overflow" add -mminimal-toc to
8522
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8523
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8524
 
 
8525
 
      archive_cmds=''
8526
 
      hardcode_direct=yes
8527
 
      hardcode_libdir_separator=':'
8528
 
      link_all_deplibs=yes
8529
 
 
8530
 
      if test "$GCC" = yes; then
8531
 
        case $host_os in aix4.012|aix4.012.*)
8532
 
        # We only want to do this on AIX 4.2 and lower, the check
8533
 
        # below for broken collect2 doesn't work under 4.3+
8534
 
          collect2name=`${CC} -print-prog-name=collect2`
8535
 
          if test -f "$collect2name" && \
8536
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
8537
 
          then
8538
 
          # We have reworked collect2
8539
 
          hardcode_direct=yes
8540
 
          else
8541
 
          # We have old collect2
8542
 
          hardcode_direct=unsupported
8543
 
          # It fails to find uninstalled libraries when the uninstalled
8544
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
8545
 
          # to unsupported forces relinking
8546
 
          hardcode_minus_L=yes
8547
 
          hardcode_libdir_flag_spec='-L$libdir'
8548
 
          hardcode_libdir_separator=
8549
 
          fi
8550
 
        esac
8551
 
        shared_flag='-shared'
8552
 
      else
8553
 
        # not using gcc
8554
 
        if test "$host_cpu" = ia64; then
8555
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8556
 
        # chokes on -Wl,-G. The following line is correct:
8557
 
          shared_flag='-G'
8558
 
        else
8559
 
        if test "$aix_use_runtimelinking" = yes; then
8560
 
            shared_flag='${wl}-G'
8561
 
          else
8562
 
            shared_flag='${wl}-bM:SRE'
8563
 
        fi
8564
 
        fi
8565
 
      fi
8566
 
 
8567
 
      # It seems that -bexpall does not export symbols beginning with
8568
 
      # underscore (_), so it is better to generate a list of symbols to export.
8569
 
      always_export_symbols=yes
8570
 
      if test "$aix_use_runtimelinking" = yes; then
8571
 
        # Warning - without using the other runtime loading flags (-brtl),
8572
 
        # -berok will link without error, but may produce a broken library.
8573
 
        allow_undefined_flag='-berok'
8574
 
       # Determine the default libpath from the value encoded in an empty executable.
8575
 
       cat >conftest.$ac_ext <<_ACEOF
8576
 
/* confdefs.h.  */
8577
 
_ACEOF
8578
 
cat confdefs.h >>conftest.$ac_ext
8579
 
cat >>conftest.$ac_ext <<_ACEOF
8580
 
/* end confdefs.h.  */
8581
 
 
8582
 
int
8583
 
main ()
8584
 
{
8585
 
 
8586
 
  ;
8587
 
  return 0;
8588
 
}
8589
 
_ACEOF
8590
 
rm -f conftest.$ac_objext conftest$ac_exeext
8591
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8592
 
  (eval $ac_link) 2>conftest.er1
8593
 
  ac_status=$?
8594
 
  grep -v '^ *+' conftest.er1 >conftest.err
8595
 
  rm -f conftest.er1
8596
 
  cat conftest.err >&5
8597
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598
 
  (exit $ac_status); } &&
8599
 
         { ac_try='test -z "$ac_c_werror_flag"
8600
 
                         || test ! -s conftest.err'
8601
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602
 
  (eval $ac_try) 2>&5
8603
 
  ac_status=$?
8604
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605
 
  (exit $ac_status); }; } &&
8606
 
         { ac_try='test -s conftest$ac_exeext'
8607
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608
 
  (eval $ac_try) 2>&5
8609
 
  ac_status=$?
8610
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611
 
  (exit $ac_status); }; }; then
8612
 
 
8613
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8614
 
}'`
8615
 
# Check for a 64-bit object if we didn't find anything.
8616
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8617
 
}'`; fi
8618
 
else
8619
 
  echo "$as_me: failed program was:" >&5
8620
 
sed 's/^/| /' conftest.$ac_ext >&5
8621
 
 
8622
 
fi
8623
 
rm -f conftest.err conftest.$ac_objext \
8624
 
      conftest$ac_exeext conftest.$ac_ext
8625
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8626
 
 
8627
 
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8628
 
        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"
8629
 
       else
8630
 
        if test "$host_cpu" = ia64; then
8631
 
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8632
 
          allow_undefined_flag="-z nodefs"
8633
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8634
 
        else
8635
 
         # Determine the default libpath from the value encoded in an empty executable.
8636
 
         cat >conftest.$ac_ext <<_ACEOF
8637
 
/* confdefs.h.  */
8638
 
_ACEOF
8639
 
cat confdefs.h >>conftest.$ac_ext
8640
 
cat >>conftest.$ac_ext <<_ACEOF
8641
 
/* end confdefs.h.  */
8642
 
 
8643
 
int
8644
 
main ()
8645
 
{
8646
 
 
8647
 
  ;
8648
 
  return 0;
8649
 
}
8650
 
_ACEOF
8651
 
rm -f conftest.$ac_objext conftest$ac_exeext
8652
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8653
 
  (eval $ac_link) 2>conftest.er1
8654
 
  ac_status=$?
8655
 
  grep -v '^ *+' conftest.er1 >conftest.err
8656
 
  rm -f conftest.er1
8657
 
  cat conftest.err >&5
8658
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659
 
  (exit $ac_status); } &&
8660
 
         { ac_try='test -z "$ac_c_werror_flag"
8661
 
                         || test ! -s conftest.err'
8662
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663
 
  (eval $ac_try) 2>&5
8664
 
  ac_status=$?
8665
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666
 
  (exit $ac_status); }; } &&
8667
 
         { ac_try='test -s conftest$ac_exeext'
8668
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669
 
  (eval $ac_try) 2>&5
8670
 
  ac_status=$?
8671
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672
 
  (exit $ac_status); }; }; then
8673
 
 
8674
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8675
 
}'`
8676
 
# Check for a 64-bit object if we didn't find anything.
8677
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8678
 
}'`; fi
8679
 
else
8680
 
  echo "$as_me: failed program was:" >&5
8681
 
sed 's/^/| /' conftest.$ac_ext >&5
8682
 
 
8683
 
fi
8684
 
rm -f conftest.err conftest.$ac_objext \
8685
 
      conftest$ac_exeext conftest.$ac_ext
8686
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8687
 
 
8688
 
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8689
 
          # Warning - without using the other run time loading flags,
8690
 
          # -berok will link without error, but may produce a broken library.
8691
 
          no_undefined_flag=' ${wl}-bernotok'
8692
 
          allow_undefined_flag=' ${wl}-berok'
8693
 
          # -bexpall does not export symbols beginning with underscore (_)
8694
 
          always_export_symbols=yes
8695
 
          # Exported symbols can be pulled into shared objects from archives
8696
 
          whole_archive_flag_spec=' '
8697
 
          archive_cmds_need_lc=yes
8698
 
          # This is similar to how AIX traditionally builds it's shared libraries.
8699
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8700
 
        fi
8701
 
      fi
8702
 
      ;;
8703
 
 
8704
 
    amigaos*)
8705
 
      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)'
8706
 
      hardcode_libdir_flag_spec='-L$libdir'
8707
 
      hardcode_minus_L=yes
8708
 
      # see comment about different semantics on the GNU ld section
8709
 
      ld_shlibs=no
8710
 
      ;;
8711
 
 
8712
 
    bsdi4*)
8713
 
      export_dynamic_flag_spec=-rdynamic
8714
 
      ;;
8715
 
 
8716
 
    cygwin* | mingw* | pw32*)
8717
 
      # When not using gcc, we currently assume that we are using
8718
 
      # Microsoft Visual C++.
8719
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8720
 
      # no search path for DLLs.
8721
 
      hardcode_libdir_flag_spec=' '
8722
 
      allow_undefined_flag=unsupported
8723
 
      # Tell ltmain to make .lib files, not .a files.
8724
 
      libext=lib
8725
 
      # Tell ltmain to make .dll files, not .so files.
8726
 
      shrext_cmds=".dll"
8727
 
      # FIXME: Setting linknames here is a bad hack.
8728
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8729
 
      # The linker will automatically build a .lib file if we build a DLL.
8730
 
      old_archive_From_new_cmds='true'
8731
 
      # FIXME: Should let the user specify the lib program.
8732
 
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8733
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8734
 
      enable_shared_with_static_runtimes=yes
8735
 
      ;;
8736
 
 
8737
 
    darwin* | rhapsody*)
8738
 
    if test "$GXX" = yes ; then
8739
 
      archive_cmds_need_lc=no
8740
 
      case "$host_os" in
8741
 
      rhapsody* | darwin1.[012])
8742
 
        allow_undefined_flag='-undefined suppress'
8743
 
        ;;
8744
 
      *) # Darwin 1.3 on
8745
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8746
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
8747
 
      else
8748
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
8749
 
          10.[012])
8750
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
8751
 
            ;;
8752
 
          10.*)
8753
 
            allow_undefined_flag='-undefined dynamic_lookup'
8754
 
            ;;
8755
 
        esac
8756
 
      fi
8757
 
        ;;
8758
 
      esac
8759
 
        lt_int_apple_cc_single_mod=no
8760
 
        output_verbose_link_cmd='echo'
8761
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8762
 
          lt_int_apple_cc_single_mod=yes
8763
 
        fi
8764
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8765
 
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8766
 
        else
8767
 
        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8768
 
      fi
8769
 
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8770
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8771
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8772
 
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8773
 
        else
8774
 
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8775
 
        fi
8776
 
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8777
 
      hardcode_direct=no
8778
 
      hardcode_automatic=yes
8779
 
      hardcode_shlibpath_var=unsupported
8780
 
      whole_archive_flag_spec='-all_load $convenience'
8781
 
      link_all_deplibs=yes
8782
 
    else
8783
 
      ld_shlibs=no
8784
 
    fi
8785
 
      ;;
8786
 
 
8787
 
    dgux*)
8788
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8789
 
      hardcode_libdir_flag_spec='-L$libdir'
8790
 
      hardcode_shlibpath_var=no
8791
 
      ;;
8792
 
 
8793
 
    freebsd1*)
8794
 
      ld_shlibs=no
8795
 
      ;;
8796
 
 
8797
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8798
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8799
 
    # does not break anything, and helps significantly (at the cost of a little
8800
 
    # extra space).
8801
 
    freebsd2.2*)
8802
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8803
 
      hardcode_libdir_flag_spec='-R$libdir'
8804
 
      hardcode_direct=yes
8805
 
      hardcode_shlibpath_var=no
8806
 
      ;;
8807
 
 
8808
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8809
 
    freebsd2*)
8810
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8811
 
      hardcode_direct=yes
8812
 
      hardcode_minus_L=yes
8813
 
      hardcode_shlibpath_var=no
8814
 
      ;;
8815
 
 
8816
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8817
 
    freebsd* | kfreebsd*-gnu)
8818
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8819
 
      hardcode_libdir_flag_spec='-R$libdir'
8820
 
      hardcode_direct=yes
8821
 
      hardcode_shlibpath_var=no
8822
 
      ;;
8823
 
 
8824
 
    hpux9*)
8825
 
      if test "$GCC" = yes; then
8826
 
        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
8827
 
      else
8828
 
        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 -f $output_objdir/$soname $lib'
8829
 
      fi
8830
 
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8831
 
      hardcode_libdir_separator=:
8832
 
      hardcode_direct=yes
8833
 
 
8834
 
      # hardcode_minus_L: Not really in the search PATH,
8835
 
      # but as the default location of the library.
8836
 
      hardcode_minus_L=yes
8837
 
      export_dynamic_flag_spec='${wl}-E'
8838
 
      ;;
8839
 
 
8840
 
    hpux10* | hpux11*)
8841
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8842
 
        case "$host_cpu" in
8843
 
        hppa*64*|ia64*)
8844
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8845
 
          ;;
8846
 
        *)
8847
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8848
 
          ;;
8849
 
        esac
8850
 
      else
8851
 
        case "$host_cpu" in
8852
 
        hppa*64*|ia64*)
8853
 
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8854
 
          ;;
8855
 
        *)
8856
 
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8857
 
          ;;
8858
 
        esac
8859
 
      fi
8860
 
      if test "$with_gnu_ld" = no; then
8861
 
        case "$host_cpu" in
8862
 
        hppa*64*)
8863
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8864
 
          hardcode_libdir_flag_spec_ld='+b $libdir'
8865
 
          hardcode_libdir_separator=:
8866
 
          hardcode_direct=no
8867
 
          hardcode_shlibpath_var=no
8868
 
          ;;
8869
 
        ia64*)
8870
 
          hardcode_libdir_flag_spec='-L$libdir'
8871
 
          hardcode_direct=no
8872
 
          hardcode_shlibpath_var=no
8873
 
 
8874
 
          # hardcode_minus_L: Not really in the search PATH,
8875
 
          # but as the default location of the library.
8876
 
          hardcode_minus_L=yes
8877
 
          ;;
8878
 
        *)
8879
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8880
 
          hardcode_libdir_separator=:
8881
 
          hardcode_direct=yes
8882
 
          export_dynamic_flag_spec='${wl}-E'
8883
 
 
8884
 
          # hardcode_minus_L: Not really in the search PATH,
8885
 
          # but as the default location of the library.
8886
 
          hardcode_minus_L=yes
8887
 
          ;;
8888
 
        esac
8889
 
      fi
8890
 
      ;;
8891
 
 
8892
 
    irix5* | irix6* | nonstopux*)
8893
 
      if test "$GCC" = yes; then
8894
 
        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'
8895
 
      else
8896
 
        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'
8897
 
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8898
 
      fi
8899
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8900
 
      hardcode_libdir_separator=:
8901
 
      link_all_deplibs=yes
8902
 
      ;;
8903
 
 
8904
 
    netbsd*)
8905
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8906
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8907
 
      else
8908
 
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8909
 
      fi
8910
 
      hardcode_libdir_flag_spec='-R$libdir'
8911
 
      hardcode_direct=yes
8912
 
      hardcode_shlibpath_var=no
8913
 
      ;;
8914
 
 
8915
 
    newsos6)
8916
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8917
 
      hardcode_direct=yes
8918
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8919
 
      hardcode_libdir_separator=:
8920
 
      hardcode_shlibpath_var=no
8921
 
      ;;
8922
 
 
8923
 
    openbsd*)
8924
 
      hardcode_direct=yes
8925
 
      hardcode_shlibpath_var=no
8926
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8927
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8928
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8929
 
        export_dynamic_flag_spec='${wl}-E'
8930
 
      else
8931
 
       case $host_os in
8932
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8933
 
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8934
 
           hardcode_libdir_flag_spec='-R$libdir'
8935
 
           ;;
8936
 
         *)
8937
 
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8938
 
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8939
 
           ;;
8940
 
       esac
8941
 
      fi
8942
 
      ;;
8943
 
 
8944
 
    os2*)
8945
 
      hardcode_libdir_flag_spec='-L$libdir'
8946
 
      hardcode_minus_L=yes
8947
 
      allow_undefined_flag=unsupported
8948
 
      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'
8949
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8950
 
      ;;
8951
 
 
8952
 
    osf3*)
8953
 
      if test "$GCC" = yes; then
8954
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8955
 
        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'
8956
 
      else
8957
 
        allow_undefined_flag=' -expect_unresolved \*'
8958
 
        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'
8959
 
      fi
8960
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8961
 
      hardcode_libdir_separator=:
8962
 
      ;;
8963
 
 
8964
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8965
 
      if test "$GCC" = yes; then
8966
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8967
 
        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'
8968
 
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8969
 
      else
8970
 
        allow_undefined_flag=' -expect_unresolved \*'
8971
 
        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'
8972
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8973
 
        $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'
8974
 
 
8975
 
        # Both c and cxx compiler support -rpath directly
8976
 
        hardcode_libdir_flag_spec='-rpath $libdir'
8977
 
      fi
8978
 
      hardcode_libdir_separator=:
8979
 
      ;;
8980
 
 
8981
 
    sco3.2v5*)
8982
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8983
 
      hardcode_shlibpath_var=no
8984
 
      export_dynamic_flag_spec='${wl}-Bexport'
8985
 
      runpath_var=LD_RUN_PATH
8986
 
      hardcode_runpath_var=yes
8987
 
      ;;
8988
 
 
8989
 
    solaris*)
8990
 
      no_undefined_flag=' -z text'
8991
 
      if test "$GCC" = yes; then
8992
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8993
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8994
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8995
 
      else
8996
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8997
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8998
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8999
 
      fi
9000
 
      hardcode_libdir_flag_spec='-R$libdir'
9001
 
      hardcode_shlibpath_var=no
9002
 
      case $host_os in
9003
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9004
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
9005
 
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9006
 
      esac
9007
 
      link_all_deplibs=yes
9008
 
      ;;
9009
 
 
9010
 
    sunos4*)
9011
 
      if test "x$host_vendor" = xsequent; then
9012
 
        # Use $CC to link under sequent, because it throws in some extra .o
9013
 
        # files that make .init and .fini sections work.
9014
 
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9015
 
      else
9016
 
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9017
 
      fi
9018
 
      hardcode_libdir_flag_spec='-L$libdir'
9019
 
      hardcode_direct=yes
9020
 
      hardcode_minus_L=yes
9021
 
      hardcode_shlibpath_var=no
9022
 
      ;;
9023
 
 
9024
 
    sysv4)
9025
 
      case $host_vendor in
9026
 
        sni)
9027
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9028
 
          hardcode_direct=yes # is this really true???
9029
 
        ;;
9030
 
        siemens)
9031
 
          ## LD is ld it makes a PLAMLIB
9032
 
          ## CC just makes a GrossModule.
9033
 
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9034
 
          reload_cmds='$CC -r -o $output$reload_objs'
9035
 
          hardcode_direct=no
9036
 
        ;;
9037
 
        motorola)
9038
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9039
 
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9040
 
        ;;
9041
 
      esac
9042
 
      runpath_var='LD_RUN_PATH'
9043
 
      hardcode_shlibpath_var=no
9044
 
      ;;
9045
 
 
9046
 
    sysv4.3*)
9047
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9048
 
      hardcode_shlibpath_var=no
9049
 
      export_dynamic_flag_spec='-Bexport'
9050
 
      ;;
9051
 
 
9052
 
    sysv4*MP*)
9053
 
      if test -d /usr/nec; then
9054
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9055
 
        hardcode_shlibpath_var=no
9056
 
        runpath_var=LD_RUN_PATH
9057
 
        hardcode_runpath_var=yes
9058
 
        ld_shlibs=yes
9059
 
      fi
9060
 
      ;;
9061
 
 
9062
 
    sysv4.2uw2*)
9063
 
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9064
 
      hardcode_direct=yes
9065
 
      hardcode_minus_L=no
9066
 
      hardcode_shlibpath_var=no
9067
 
      hardcode_runpath_var=yes
9068
 
      runpath_var=LD_RUN_PATH
9069
 
      ;;
9070
 
 
9071
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9072
 
      no_undefined_flag='${wl}-z ${wl}text'
9073
 
      if test "$GCC" = yes; then
9074
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9075
 
      else
9076
 
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9077
 
      fi
9078
 
      runpath_var='LD_RUN_PATH'
9079
 
      hardcode_shlibpath_var=no
9080
 
      ;;
9081
 
 
9082
 
    sysv5*)
9083
 
      no_undefined_flag=' -z text'
9084
 
      # $CC -shared without GNU ld will not create a library from C++
9085
 
      # object files and a static libstdc++, better avoid it by now
9086
 
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9087
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9088
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9089
 
      hardcode_libdir_flag_spec=
9090
 
      hardcode_shlibpath_var=no
9091
 
      runpath_var='LD_RUN_PATH'
9092
 
      ;;
9093
 
 
9094
 
    uts4*)
9095
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9096
 
      hardcode_libdir_flag_spec='-L$libdir'
9097
 
      hardcode_shlibpath_var=no
9098
 
      ;;
9099
 
 
9100
 
    *)
9101
 
      ld_shlibs=no
9102
 
      ;;
9103
 
    esac
9104
 
  fi
9105
 
 
9106
 
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9107
 
echo "${ECHO_T}$ld_shlibs" >&6
9108
 
test "$ld_shlibs" = no && can_build_shared=no
9109
 
 
9110
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9111
 
if test "$GCC" = yes; then
9112
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9113
 
fi
9114
 
 
9115
 
#
9116
 
# Do we need to explicitly link libc?
9117
 
#
9118
 
case "x$archive_cmds_need_lc" in
9119
 
x|xyes)
9120
 
  # Assume -lc should be added
9121
 
  archive_cmds_need_lc=yes
9122
 
 
9123
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9124
 
    case $archive_cmds in
9125
 
    *'~'*)
9126
 
      # FIXME: we may have to deal with multi-command sequences.
9127
 
      ;;
9128
 
    '$CC '*)
9129
 
      # Test whether the compiler implicitly links with -lc since on some
9130
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9131
 
      # to ld, don't add -lc before -lgcc.
9132
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9133
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9134
 
      $rm conftest*
9135
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9136
 
 
9137
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9138
 
  (eval $ac_compile) 2>&5
9139
 
  ac_status=$?
9140
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141
 
  (exit $ac_status); } 2>conftest.err; then
9142
 
        soname=conftest
9143
 
        lib=conftest
9144
 
        libobjs=conftest.$ac_objext
9145
 
        deplibs=
9146
 
        wl=$lt_prog_compiler_wl
9147
 
        compiler_flags=-v
9148
 
        linker_flags=-v
9149
 
        verstring=
9150
 
        output_objdir=.
9151
 
        libname=conftest
9152
 
        lt_save_allow_undefined_flag=$allow_undefined_flag
9153
 
        allow_undefined_flag=
9154
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9155
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9156
 
  ac_status=$?
9157
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158
 
  (exit $ac_status); }
9159
 
        then
9160
 
          archive_cmds_need_lc=no
9161
 
        else
9162
 
          archive_cmds_need_lc=yes
9163
 
        fi
9164
 
        allow_undefined_flag=$lt_save_allow_undefined_flag
9165
 
      else
9166
 
        cat conftest.err 1>&5
9167
 
      fi
9168
 
      $rm conftest*
9169
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9170
 
echo "${ECHO_T}$archive_cmds_need_lc" >&6
9171
 
      ;;
9172
 
    esac
9173
 
  fi
9174
 
  ;;
9175
 
esac
9176
 
 
9177
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9178
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9179
 
library_names_spec=
9180
 
libname_spec='lib$name'
9181
 
soname_spec=
9182
 
shrext_cmds=".so"
9183
 
postinstall_cmds=
9184
 
postuninstall_cmds=
9185
 
finish_cmds=
9186
 
finish_eval=
9187
 
shlibpath_var=
9188
 
shlibpath_overrides_runpath=unknown
9189
 
version_type=none
9190
 
dynamic_linker="$host_os ld.so"
9191
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9192
 
if test "$GCC" = yes; then
9193
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9194
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9195
 
    # if the path contains ";" then we assume it to be the separator
9196
 
    # otherwise default to the standard path separator (i.e. ":") - it is
9197
 
    # assumed that no part of a normal pathname contains ";" but that should
9198
 
    # okay in the real world where ";" in dirpaths is itself problematic.
9199
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9200
 
  else
9201
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9202
 
  fi
9203
 
else
9204
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9205
 
fi
9206
 
need_lib_prefix=unknown
9207
 
hardcode_into_libs=no
9208
 
 
9209
 
# when you set need_version to no, make sure it does not cause -set_version
9210
 
# flags to be left without arguments
9211
 
need_version=unknown
9212
 
 
9213
 
case $host_os in
9214
 
aix3*)
9215
 
  version_type=linux
9216
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9217
 
  shlibpath_var=LIBPATH
9218
 
 
9219
 
  # AIX 3 has no versioning support, so we append a major version to the name.
9220
 
  soname_spec='${libname}${release}${shared_ext}$major'
9221
 
  ;;
9222
 
 
9223
 
aix4* | aix5*)
9224
 
  version_type=linux
9225
 
  need_lib_prefix=no
9226
 
  need_version=no
9227
 
  hardcode_into_libs=yes
9228
 
  if test "$host_cpu" = ia64; then
9229
 
    # AIX 5 supports IA64
9230
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9231
 
    shlibpath_var=LD_LIBRARY_PATH
9232
 
  else
9233
 
    # With GCC up to 2.95.x, collect2 would create an import file
9234
 
    # for dependence libraries.  The import file would start with
9235
 
    # the line `#! .'.  This would cause the generated library to
9236
 
    # depend on `.', always an invalid library.  This was fixed in
9237
 
    # development snapshots of GCC prior to 3.0.
9238
 
    case $host_os in
9239
 
      aix4 | aix4.[01] | aix4.[01].*)
9240
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9241
 
           echo ' yes '
9242
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9243
 
        :
9244
 
      else
9245
 
        can_build_shared=no
9246
 
      fi
9247
 
      ;;
9248
 
    esac
9249
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9250
 
    # soname into executable. Probably we can add versioning support to
9251
 
    # collect2, so additional links can be useful in future.
9252
 
    if test "$aix_use_runtimelinking" = yes; then
9253
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9254
 
      # instead of lib<name>.a to let people know that these are not
9255
 
      # typical AIX shared libraries.
9256
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9257
 
    else
9258
 
      # We preserve .a as extension for shared libraries through AIX4.2
9259
 
      # and later when we are not doing run time linking.
9260
 
      library_names_spec='${libname}${release}.a $libname.a'
9261
 
      soname_spec='${libname}${release}${shared_ext}$major'
9262
 
    fi
9263
 
    shlibpath_var=LIBPATH
9264
 
  fi
9265
 
  ;;
9266
 
 
9267
 
amigaos*)
9268
 
  library_names_spec='$libname.ixlibrary $libname.a'
9269
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9270
 
  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'
9271
 
  ;;
9272
 
 
9273
 
beos*)
9274
 
  library_names_spec='${libname}${shared_ext}'
9275
 
  dynamic_linker="$host_os ld.so"
9276
 
  shlibpath_var=LIBRARY_PATH
9277
 
  ;;
9278
 
 
9279
 
bsdi4*)
9280
 
  version_type=linux
9281
 
  need_version=no
9282
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283
 
  soname_spec='${libname}${release}${shared_ext}$major'
9284
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9285
 
  shlibpath_var=LD_LIBRARY_PATH
9286
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9287
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9288
 
  # the default ld.so.conf also contains /usr/contrib/lib and
9289
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9290
 
  # libtool to hard-code these into programs
9291
 
  ;;
9292
 
 
9293
 
cygwin* | mingw* | pw32*)
9294
 
  version_type=windows
9295
 
  shrext_cmds=".dll"
9296
 
  need_version=no
9297
 
  need_lib_prefix=no
9298
 
 
9299
 
  case $GCC,$host_os in
9300
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
9301
 
    library_names_spec='$libname.dll.a'
9302
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9303
 
    postinstall_cmds='base_file=`basename \${file}`~
9304
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9305
 
      dldir=$destdir/`dirname \$dlpath`~
9306
 
      test -d \$dldir || mkdir -p \$dldir~
9307
 
      $install_prog $dir/$dlname \$dldir/$dlname'
9308
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9309
 
      dlpath=$dir/\$dldll~
9310
 
       $rm \$dlpath'
9311
 
    shlibpath_overrides_runpath=yes
9312
 
 
9313
 
    case $host_os in
9314
 
    cygwin*)
9315
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9316
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9317
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9318
 
      ;;
9319
 
    mingw*)
9320
 
      # MinGW DLLs use traditional 'lib' prefix
9321
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9322
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9323
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9324
 
        # It is most probably a Windows format PATH printed by
9325
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9326
 
        # path with ; separators, and with drive letters. We can handle the
9327
 
        # drive letters (cygwin fileutils understands them), so leave them,
9328
 
        # especially as we might pass files found there to a mingw objdump,
9329
 
        # which wouldn't understand a cygwinified path. Ahh.
9330
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9331
 
      else
9332
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9333
 
      fi
9334
 
      ;;
9335
 
    pw32*)
9336
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9337
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9338
 
      ;;
9339
 
    esac
9340
 
    ;;
9341
 
 
9342
 
  *)
9343
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9344
 
    ;;
9345
 
  esac
9346
 
  dynamic_linker='Win32 ld.exe'
9347
 
  # FIXME: first we should search . and the directory the executable is in
9348
 
  shlibpath_var=PATH
9349
 
  ;;
9350
 
 
9351
 
darwin* | rhapsody*)
9352
 
  dynamic_linker="$host_os dyld"
9353
 
  version_type=darwin
9354
 
  need_lib_prefix=no
9355
 
  need_version=no
9356
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9357
 
  soname_spec='${libname}${release}${major}$shared_ext'
9358
 
  shlibpath_overrides_runpath=yes
9359
 
  shlibpath_var=DYLD_LIBRARY_PATH
9360
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9361
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9362
 
  if test "$GCC" = yes; then
9363
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9364
 
  else
9365
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9366
 
  fi
9367
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9368
 
  ;;
9369
 
 
9370
 
dgux*)
9371
 
  version_type=linux
9372
 
  need_lib_prefix=no
9373
 
  need_version=no
9374
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9375
 
  soname_spec='${libname}${release}${shared_ext}$major'
9376
 
  shlibpath_var=LD_LIBRARY_PATH
9377
 
  ;;
9378
 
 
9379
 
freebsd1*)
9380
 
  dynamic_linker=no
9381
 
  ;;
9382
 
 
9383
 
kfreebsd*-gnu)
9384
 
  version_type=linux
9385
 
  need_lib_prefix=no
9386
 
  need_version=no
9387
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9388
 
  soname_spec='${libname}${release}${shared_ext}$major'
9389
 
  shlibpath_var=LD_LIBRARY_PATH
9390
 
  shlibpath_overrides_runpath=no
9391
 
  hardcode_into_libs=yes
9392
 
  dynamic_linker='GNU ld.so'
9393
 
  ;;
9394
 
 
9395
 
freebsd*)
9396
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9397
 
  version_type=freebsd-$objformat
9398
 
  case $version_type in
9399
 
    freebsd-elf*)
9400
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9401
 
      need_version=no
9402
 
      need_lib_prefix=no
9403
 
      ;;
9404
 
    freebsd-*)
9405
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9406
 
      need_version=yes
9407
 
      ;;
9408
 
  esac
9409
 
  shlibpath_var=LD_LIBRARY_PATH
9410
 
  case $host_os in
9411
 
  freebsd2*)
9412
 
    shlibpath_overrides_runpath=yes
9413
 
    ;;
9414
 
  freebsd3.01* | freebsdelf3.01*)
9415
 
    shlibpath_overrides_runpath=yes
9416
 
    hardcode_into_libs=yes
9417
 
    ;;
9418
 
  *) # from 3.2 on
9419
 
    shlibpath_overrides_runpath=no
9420
 
    hardcode_into_libs=yes
9421
 
    ;;
9422
 
  esac
9423
 
  ;;
9424
 
 
9425
 
gnu*)
9426
 
  version_type=linux
9427
 
  need_lib_prefix=no
9428
 
  need_version=no
9429
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9430
 
  soname_spec='${libname}${release}${shared_ext}$major'
9431
 
  shlibpath_var=LD_LIBRARY_PATH
9432
 
  hardcode_into_libs=yes
9433
 
  ;;
9434
 
 
9435
 
hpux9* | hpux10* | hpux11*)
9436
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
9437
 
  # link against other versions.
9438
 
  version_type=sunos
9439
 
  need_lib_prefix=no
9440
 
  need_version=no
9441
 
  case "$host_cpu" in
9442
 
  ia64*)
9443
 
    shrext_cmds='.so'
9444
 
    hardcode_into_libs=yes
9445
 
    dynamic_linker="$host_os dld.so"
9446
 
    shlibpath_var=LD_LIBRARY_PATH
9447
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9448
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449
 
    soname_spec='${libname}${release}${shared_ext}$major'
9450
 
    if test "X$HPUX_IA64_MODE" = X32; then
9451
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9452
 
    else
9453
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9454
 
    fi
9455
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9456
 
    ;;
9457
 
   hppa*64*)
9458
 
     shrext_cmds='.sl'
9459
 
     hardcode_into_libs=yes
9460
 
     dynamic_linker="$host_os dld.sl"
9461
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9462
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9463
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464
 
     soname_spec='${libname}${release}${shared_ext}$major'
9465
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9466
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9467
 
     ;;
9468
 
   *)
9469
 
    shrext_cmds='.sl'
9470
 
    dynamic_linker="$host_os dld.sl"
9471
 
    shlibpath_var=SHLIB_PATH
9472
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9473
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474
 
    soname_spec='${libname}${release}${shared_ext}$major'
9475
 
    ;;
9476
 
  esac
9477
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9478
 
  postinstall_cmds='chmod 555 $lib'
9479
 
  ;;
9480
 
 
9481
 
irix5* | irix6* | nonstopux*)
9482
 
  case $host_os in
9483
 
    nonstopux*) version_type=nonstopux ;;
9484
 
    *)
9485
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
9486
 
                version_type=linux
9487
 
        else
9488
 
                version_type=irix
9489
 
        fi ;;
9490
 
  esac
9491
 
  need_lib_prefix=no
9492
 
  need_version=no
9493
 
  soname_spec='${libname}${release}${shared_ext}$major'
9494
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9495
 
  case $host_os in
9496
 
  irix5* | nonstopux*)
9497
 
    libsuff= shlibsuff=
9498
 
    ;;
9499
 
  *)
9500
 
    case $LD in # libtool.m4 will add one of these switches to LD
9501
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9502
 
      libsuff= shlibsuff= libmagic=32-bit;;
9503
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9504
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9505
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9506
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9507
 
    *) libsuff= shlibsuff= libmagic=never-match;;
9508
 
    esac
9509
 
    ;;
9510
 
  esac
9511
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9512
 
  shlibpath_overrides_runpath=no
9513
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9514
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9515
 
  hardcode_into_libs=yes
9516
 
  ;;
9517
 
 
9518
 
# No shared lib support for Linux oldld, aout, or coff.
9519
 
linux*oldld* | linux*aout* | linux*coff*)
9520
 
  dynamic_linker=no
9521
 
  ;;
9522
 
 
9523
 
# This must be Linux ELF.
9524
 
linux*)
9525
 
  version_type=linux
9526
 
  need_lib_prefix=no
9527
 
  need_version=no
9528
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529
 
  soname_spec='${libname}${release}${shared_ext}$major'
9530
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9531
 
  shlibpath_var=LD_LIBRARY_PATH
9532
 
  shlibpath_overrides_runpath=no
9533
 
  # This implies no fast_install, which is unacceptable.
9534
 
  # Some rework will be needed to allow for fast_install
9535
 
  # before this can be enabled.
9536
 
  hardcode_into_libs=yes
9537
 
 
9538
 
  # Append ld.so.conf contents to the search path
9539
 
  if test -f /etc/ld.so.conf; then
9540
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9541
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9542
 
  fi
9543
 
 
9544
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9545
 
  # powerpc, because MkLinux only supported shared libraries with the
9546
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
9547
 
  # most powerpc-linux boxes support dynamic linking these days and
9548
 
  # people can always --disable-shared, the test was removed, and we
9549
 
  # assume the GNU/Linux dynamic linker is in use.
9550
 
  dynamic_linker='GNU/Linux ld.so'
9551
 
  ;;
9552
 
 
9553
 
knetbsd*-gnu)
9554
 
  version_type=linux
9555
 
  need_lib_prefix=no
9556
 
  need_version=no
9557
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9558
 
  soname_spec='${libname}${release}${shared_ext}$major'
9559
 
  shlibpath_var=LD_LIBRARY_PATH
9560
 
  shlibpath_overrides_runpath=no
9561
 
  hardcode_into_libs=yes
9562
 
  dynamic_linker='GNU ld.so'
9563
 
  ;;
9564
 
 
9565
 
netbsd*)
9566
 
  version_type=sunos
9567
 
  need_lib_prefix=no
9568
 
  need_version=no
9569
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9570
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9571
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9572
 
    dynamic_linker='NetBSD (a.out) ld.so'
9573
 
  else
9574
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9575
 
    soname_spec='${libname}${release}${shared_ext}$major'
9576
 
    dynamic_linker='NetBSD ld.elf_so'
9577
 
  fi
9578
 
  shlibpath_var=LD_LIBRARY_PATH
9579
 
  shlibpath_overrides_runpath=yes
9580
 
  hardcode_into_libs=yes
9581
 
  ;;
9582
 
 
9583
 
newsos6)
9584
 
  version_type=linux
9585
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9586
 
  shlibpath_var=LD_LIBRARY_PATH
9587
 
  shlibpath_overrides_runpath=yes
9588
 
  ;;
9589
 
 
9590
 
nto-qnx*)
9591
 
  version_type=linux
9592
 
  need_lib_prefix=no
9593
 
  need_version=no
9594
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9595
 
  soname_spec='${libname}${release}${shared_ext}$major'
9596
 
  shlibpath_var=LD_LIBRARY_PATH
9597
 
  shlibpath_overrides_runpath=yes
9598
 
  ;;
9599
 
 
9600
 
openbsd*)
9601
 
  version_type=sunos
9602
 
  need_lib_prefix=no
9603
 
  need_version=yes
9604
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9605
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9606
 
  shlibpath_var=LD_LIBRARY_PATH
9607
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9608
 
    case $host_os in
9609
 
      openbsd2.[89] | openbsd2.[89].*)
9610
 
        shlibpath_overrides_runpath=no
9611
 
        ;;
9612
 
      *)
9613
 
        shlibpath_overrides_runpath=yes
9614
 
        ;;
9615
 
      esac
9616
 
  else
9617
 
    shlibpath_overrides_runpath=yes
9618
 
  fi
9619
 
  ;;
9620
 
 
9621
 
os2*)
9622
 
  libname_spec='$name'
9623
 
  shrext_cmds=".dll"
9624
 
  need_lib_prefix=no
9625
 
  library_names_spec='$libname${shared_ext} $libname.a'
9626
 
  dynamic_linker='OS/2 ld.exe'
9627
 
  shlibpath_var=LIBPATH
9628
 
  ;;
9629
 
 
9630
 
osf3* | osf4* | osf5*)
9631
 
  version_type=osf
9632
 
  need_lib_prefix=no
9633
 
  need_version=no
9634
 
  soname_spec='${libname}${release}${shared_ext}$major'
9635
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9636
 
  shlibpath_var=LD_LIBRARY_PATH
9637
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9638
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9639
 
  ;;
9640
 
 
9641
 
sco3.2v5*)
9642
 
  version_type=osf
9643
 
  soname_spec='${libname}${release}${shared_ext}$major'
9644
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9645
 
  shlibpath_var=LD_LIBRARY_PATH
9646
 
  ;;
9647
 
 
9648
 
solaris*)
9649
 
  version_type=linux
9650
 
  need_lib_prefix=no
9651
 
  need_version=no
9652
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653
 
  soname_spec='${libname}${release}${shared_ext}$major'
9654
 
  shlibpath_var=LD_LIBRARY_PATH
9655
 
  shlibpath_overrides_runpath=yes
9656
 
  hardcode_into_libs=yes
9657
 
  # ldd complains unless libraries are executable
9658
 
  postinstall_cmds='chmod +x $lib'
9659
 
  ;;
9660
 
 
9661
 
sunos4*)
9662
 
  version_type=sunos
9663
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9664
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9665
 
  shlibpath_var=LD_LIBRARY_PATH
9666
 
  shlibpath_overrides_runpath=yes
9667
 
  if test "$with_gnu_ld" = yes; then
9668
 
    need_lib_prefix=no
9669
 
  fi
9670
 
  need_version=yes
9671
 
  ;;
9672
 
 
9673
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9674
 
  version_type=linux
9675
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676
 
  soname_spec='${libname}${release}${shared_ext}$major'
9677
 
  shlibpath_var=LD_LIBRARY_PATH
9678
 
  case $host_vendor in
9679
 
    sni)
9680
 
      shlibpath_overrides_runpath=no
9681
 
      need_lib_prefix=no
9682
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
9683
 
      runpath_var=LD_RUN_PATH
9684
 
      ;;
9685
 
    siemens)
9686
 
      need_lib_prefix=no
9687
 
      ;;
9688
 
    motorola)
9689
 
      need_lib_prefix=no
9690
 
      need_version=no
9691
 
      shlibpath_overrides_runpath=no
9692
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9693
 
      ;;
9694
 
  esac
9695
 
  ;;
9696
 
 
9697
 
sysv4*MP*)
9698
 
  if test -d /usr/nec ;then
9699
 
    version_type=linux
9700
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9701
 
    soname_spec='$libname${shared_ext}.$major'
9702
 
    shlibpath_var=LD_LIBRARY_PATH
9703
 
  fi
9704
 
  ;;
9705
 
 
9706
 
uts4*)
9707
 
  version_type=linux
9708
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9709
 
  soname_spec='${libname}${release}${shared_ext}$major'
9710
 
  shlibpath_var=LD_LIBRARY_PATH
9711
 
  ;;
9712
 
 
9713
 
*)
9714
 
  dynamic_linker=no
9715
 
  ;;
9716
 
esac
9717
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9718
 
echo "${ECHO_T}$dynamic_linker" >&6
9719
 
test "$dynamic_linker" = no && can_build_shared=no
9720
 
 
9721
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9722
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9723
 
hardcode_action=
9724
 
if test -n "$hardcode_libdir_flag_spec" || \
9725
 
   test -n "$runpath_var " || \
9726
 
   test "X$hardcode_automatic"="Xyes" ; then
9727
 
 
9728
 
  # We can hardcode non-existant directories.
9729
 
  if test "$hardcode_direct" != no &&
9730
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9731
 
     # have to relink, otherwise we might link with an installed library
9732
 
     # when we should be linking with a yet-to-be-installed one
9733
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9734
 
     test "$hardcode_minus_L" != no; then
9735
 
    # Linking always hardcodes the temporary library directory.
9736
 
    hardcode_action=relink
9737
 
  else
9738
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9739
 
    hardcode_action=immediate
9740
 
  fi
9741
 
else
9742
 
  # We cannot hardcode anything, or else we can only hardcode existing
9743
 
  # directories.
9744
 
  hardcode_action=unsupported
9745
 
fi
9746
 
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9747
 
echo "${ECHO_T}$hardcode_action" >&6
9748
 
 
9749
 
if test "$hardcode_action" = relink; then
9750
 
  # Fast installation is not supported
9751
 
  enable_fast_install=no
9752
 
elif test "$shlibpath_overrides_runpath" = yes ||
9753
 
     test "$enable_shared" = no; then
9754
 
  # Fast installation is not necessary
9755
 
  enable_fast_install=needless
9756
 
fi
9757
 
 
9758
 
striplib=
9759
 
old_striplib=
9760
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9761
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9762
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9763
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9764
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9765
 
  echo "$as_me:$LINENO: result: yes" >&5
9766
 
echo "${ECHO_T}yes" >&6
9767
 
else
9768
 
# FIXME - insert some real tests, host_os isn't really good enough
9769
 
  case $host_os in
9770
 
   darwin*)
9771
 
       if test -n "$STRIP" ; then
9772
 
         striplib="$STRIP -x"
9773
 
         echo "$as_me:$LINENO: result: yes" >&5
9774
 
echo "${ECHO_T}yes" >&6
9775
 
       else
9776
 
  echo "$as_me:$LINENO: result: no" >&5
9777
 
echo "${ECHO_T}no" >&6
9778
 
fi
9779
 
       ;;
9780
 
   *)
9781
 
  echo "$as_me:$LINENO: result: no" >&5
9782
 
echo "${ECHO_T}no" >&6
9783
 
    ;;
9784
 
  esac
9785
 
fi
9786
 
 
9787
 
if test "x$enable_dlopen" != xyes; then
9788
 
  enable_dlopen=unknown
9789
 
  enable_dlopen_self=unknown
9790
 
  enable_dlopen_self_static=unknown
9791
 
else
9792
 
  lt_cv_dlopen=no
9793
 
  lt_cv_dlopen_libs=
9794
 
 
9795
 
  case $host_os in
9796
 
  beos*)
9797
 
    lt_cv_dlopen="load_add_on"
9798
 
    lt_cv_dlopen_libs=
9799
 
    lt_cv_dlopen_self=yes
9800
 
    ;;
9801
 
 
9802
 
  mingw* | pw32*)
9803
 
    lt_cv_dlopen="LoadLibrary"
9804
 
    lt_cv_dlopen_libs=
9805
 
   ;;
9806
 
 
9807
 
  cygwin*)
9808
 
    lt_cv_dlopen="dlopen"
9809
 
    lt_cv_dlopen_libs=
9810
 
   ;;
9811
 
 
9812
 
  darwin*)
9813
 
  # if libdl is installed we need to link against it
9814
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9815
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9816
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9817
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9818
 
else
9819
 
  ac_check_lib_save_LIBS=$LIBS
9820
 
LIBS="-ldl  $LIBS"
9821
 
cat >conftest.$ac_ext <<_ACEOF
9822
 
/* confdefs.h.  */
9823
 
_ACEOF
9824
 
cat confdefs.h >>conftest.$ac_ext
9825
 
cat >>conftest.$ac_ext <<_ACEOF
9826
 
/* end confdefs.h.  */
9827
 
 
9828
 
/* Override any gcc2 internal prototype to avoid an error.  */
9829
 
#ifdef __cplusplus
9830
 
extern "C"
9831
 
#endif
9832
 
/* We use char because int might match the return type of a gcc2
9833
 
   builtin and then its argument prototype would still apply.  */
9834
 
char dlopen ();
9835
 
int
9836
 
main ()
9837
 
{
9838
 
dlopen ();
9839
 
  ;
9840
 
  return 0;
9841
 
}
9842
 
_ACEOF
9843
 
rm -f conftest.$ac_objext conftest$ac_exeext
9844
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9845
 
  (eval $ac_link) 2>conftest.er1
9846
 
  ac_status=$?
9847
 
  grep -v '^ *+' conftest.er1 >conftest.err
9848
 
  rm -f conftest.er1
9849
 
  cat conftest.err >&5
9850
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851
 
  (exit $ac_status); } &&
9852
 
         { ac_try='test -z "$ac_c_werror_flag"
9853
 
                         || test ! -s conftest.err'
9854
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855
 
  (eval $ac_try) 2>&5
9856
 
  ac_status=$?
9857
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858
 
  (exit $ac_status); }; } &&
9859
 
         { ac_try='test -s conftest$ac_exeext'
9860
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861
 
  (eval $ac_try) 2>&5
9862
 
  ac_status=$?
9863
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864
 
  (exit $ac_status); }; }; then
9865
 
  ac_cv_lib_dl_dlopen=yes
9866
 
else
9867
 
  echo "$as_me: failed program was:" >&5
9868
 
sed 's/^/| /' conftest.$ac_ext >&5
9869
 
 
9870
 
ac_cv_lib_dl_dlopen=no
9871
 
fi
9872
 
rm -f conftest.err conftest.$ac_objext \
9873
 
      conftest$ac_exeext conftest.$ac_ext
9874
 
LIBS=$ac_check_lib_save_LIBS
9875
 
fi
9876
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9877
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9878
 
if test $ac_cv_lib_dl_dlopen = yes; then
9879
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9880
 
else
9881
 
 
9882
 
    lt_cv_dlopen="dyld"
9883
 
    lt_cv_dlopen_libs=
9884
 
    lt_cv_dlopen_self=yes
9885
 
 
9886
 
fi
9887
 
 
9888
 
   ;;
9889
 
 
9890
 
  *)
9891
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
9892
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9893
 
if test "${ac_cv_func_shl_load+set}" = set; then
9894
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9895
 
else
9896
 
  cat >conftest.$ac_ext <<_ACEOF
9897
 
/* confdefs.h.  */
9898
 
_ACEOF
9899
 
cat confdefs.h >>conftest.$ac_ext
9900
 
cat >>conftest.$ac_ext <<_ACEOF
9901
 
/* end confdefs.h.  */
9902
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9903
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9904
 
#define shl_load innocuous_shl_load
9905
 
 
9906
 
/* System header to define __stub macros and hopefully few prototypes,
9907
 
    which can conflict with char shl_load (); below.
9908
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9909
 
    <limits.h> exists even on freestanding compilers.  */
9910
 
 
9911
 
#ifdef __STDC__
9912
 
# include <limits.h>
9913
 
#else
9914
 
# include <assert.h>
9915
 
#endif
9916
 
 
9917
 
#undef shl_load
9918
 
 
9919
 
/* Override any gcc2 internal prototype to avoid an error.  */
9920
 
#ifdef __cplusplus
9921
 
extern "C"
9922
 
{
9923
 
#endif
9924
 
/* We use char because int might match the return type of a gcc2
9925
 
   builtin and then its argument prototype would still apply.  */
9926
 
char shl_load ();
9927
 
/* The GNU C library defines this for functions which it implements
9928
 
    to always fail with ENOSYS.  Some functions are actually named
9929
 
    something starting with __ and the normal name is an alias.  */
9930
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9931
 
choke me
9932
 
#else
9933
 
char (*f) () = shl_load;
9934
 
#endif
9935
 
#ifdef __cplusplus
9936
 
}
9937
 
#endif
9938
 
 
9939
 
int
9940
 
main ()
9941
 
{
9942
 
return f != shl_load;
9943
 
  ;
9944
 
  return 0;
9945
 
}
9946
 
_ACEOF
9947
 
rm -f conftest.$ac_objext conftest$ac_exeext
9948
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949
 
  (eval $ac_link) 2>conftest.er1
9950
 
  ac_status=$?
9951
 
  grep -v '^ *+' conftest.er1 >conftest.err
9952
 
  rm -f conftest.er1
9953
 
  cat conftest.err >&5
9954
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955
 
  (exit $ac_status); } &&
9956
 
         { ac_try='test -z "$ac_c_werror_flag"
9957
 
                         || test ! -s conftest.err'
9958
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959
 
  (eval $ac_try) 2>&5
9960
 
  ac_status=$?
9961
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962
 
  (exit $ac_status); }; } &&
9963
 
         { ac_try='test -s conftest$ac_exeext'
9964
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965
 
  (eval $ac_try) 2>&5
9966
 
  ac_status=$?
9967
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968
 
  (exit $ac_status); }; }; then
9969
 
  ac_cv_func_shl_load=yes
9970
 
else
9971
 
  echo "$as_me: failed program was:" >&5
9972
 
sed 's/^/| /' conftest.$ac_ext >&5
9973
 
 
9974
 
ac_cv_func_shl_load=no
9975
 
fi
9976
 
rm -f conftest.err conftest.$ac_objext \
9977
 
      conftest$ac_exeext conftest.$ac_ext
9978
 
fi
9979
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9980
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9981
 
if test $ac_cv_func_shl_load = yes; then
9982
 
  lt_cv_dlopen="shl_load"
9983
 
else
9984
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9985
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9986
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9987
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9988
 
else
9989
 
  ac_check_lib_save_LIBS=$LIBS
9990
 
LIBS="-ldld  $LIBS"
9991
 
cat >conftest.$ac_ext <<_ACEOF
9992
 
/* confdefs.h.  */
9993
 
_ACEOF
9994
 
cat confdefs.h >>conftest.$ac_ext
9995
 
cat >>conftest.$ac_ext <<_ACEOF
9996
 
/* end confdefs.h.  */
9997
 
 
9998
 
/* Override any gcc2 internal prototype to avoid an error.  */
9999
 
#ifdef __cplusplus
10000
 
extern "C"
10001
 
#endif
10002
 
/* We use char because int might match the return type of a gcc2
10003
 
   builtin and then its argument prototype would still apply.  */
10004
 
char shl_load ();
10005
 
int
10006
 
main ()
10007
 
{
10008
 
shl_load ();
10009
 
  ;
10010
 
  return 0;
10011
 
}
10012
 
_ACEOF
10013
 
rm -f conftest.$ac_objext conftest$ac_exeext
10014
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015
 
  (eval $ac_link) 2>conftest.er1
10016
 
  ac_status=$?
10017
 
  grep -v '^ *+' conftest.er1 >conftest.err
10018
 
  rm -f conftest.er1
10019
 
  cat conftest.err >&5
10020
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021
 
  (exit $ac_status); } &&
10022
 
         { ac_try='test -z "$ac_c_werror_flag"
10023
 
                         || test ! -s conftest.err'
10024
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025
 
  (eval $ac_try) 2>&5
10026
 
  ac_status=$?
10027
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028
 
  (exit $ac_status); }; } &&
10029
 
         { ac_try='test -s conftest$ac_exeext'
10030
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031
 
  (eval $ac_try) 2>&5
10032
 
  ac_status=$?
10033
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034
 
  (exit $ac_status); }; }; then
10035
 
  ac_cv_lib_dld_shl_load=yes
10036
 
else
10037
 
  echo "$as_me: failed program was:" >&5
10038
 
sed 's/^/| /' conftest.$ac_ext >&5
10039
 
 
10040
 
ac_cv_lib_dld_shl_load=no
10041
 
fi
10042
 
rm -f conftest.err conftest.$ac_objext \
10043
 
      conftest$ac_exeext conftest.$ac_ext
10044
 
LIBS=$ac_check_lib_save_LIBS
10045
 
fi
10046
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10047
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10048
 
if test $ac_cv_lib_dld_shl_load = yes; then
10049
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10050
 
else
10051
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
10052
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10053
 
if test "${ac_cv_func_dlopen+set}" = set; then
10054
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10055
 
else
10056
 
  cat >conftest.$ac_ext <<_ACEOF
10057
 
/* confdefs.h.  */
10058
 
_ACEOF
10059
 
cat confdefs.h >>conftest.$ac_ext
10060
 
cat >>conftest.$ac_ext <<_ACEOF
10061
 
/* end confdefs.h.  */
10062
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10063
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10064
 
#define dlopen innocuous_dlopen
10065
 
 
10066
 
/* System header to define __stub macros and hopefully few prototypes,
10067
 
    which can conflict with char dlopen (); below.
10068
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10069
 
    <limits.h> exists even on freestanding compilers.  */
10070
 
 
10071
 
#ifdef __STDC__
10072
 
# include <limits.h>
10073
 
#else
10074
 
# include <assert.h>
10075
 
#endif
10076
 
 
10077
 
#undef dlopen
10078
 
 
10079
 
/* Override any gcc2 internal prototype to avoid an error.  */
10080
 
#ifdef __cplusplus
10081
 
extern "C"
10082
 
{
10083
 
#endif
10084
 
/* We use char because int might match the return type of a gcc2
10085
 
   builtin and then its argument prototype would still apply.  */
10086
 
char dlopen ();
10087
 
/* The GNU C library defines this for functions which it implements
10088
 
    to always fail with ENOSYS.  Some functions are actually named
10089
 
    something starting with __ and the normal name is an alias.  */
10090
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
10091
 
choke me
10092
 
#else
10093
 
char (*f) () = dlopen;
10094
 
#endif
10095
 
#ifdef __cplusplus
10096
 
}
10097
 
#endif
10098
 
 
10099
 
int
10100
 
main ()
10101
 
{
10102
 
return f != dlopen;
10103
 
  ;
10104
 
  return 0;
10105
 
}
10106
 
_ACEOF
10107
 
rm -f conftest.$ac_objext conftest$ac_exeext
10108
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10109
 
  (eval $ac_link) 2>conftest.er1
10110
 
  ac_status=$?
10111
 
  grep -v '^ *+' conftest.er1 >conftest.err
10112
 
  rm -f conftest.er1
10113
 
  cat conftest.err >&5
10114
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115
 
  (exit $ac_status); } &&
10116
 
         { ac_try='test -z "$ac_c_werror_flag"
10117
 
                         || test ! -s conftest.err'
10118
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119
 
  (eval $ac_try) 2>&5
10120
 
  ac_status=$?
10121
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122
 
  (exit $ac_status); }; } &&
10123
 
         { ac_try='test -s conftest$ac_exeext'
10124
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125
 
  (eval $ac_try) 2>&5
10126
 
  ac_status=$?
10127
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128
 
  (exit $ac_status); }; }; then
10129
 
  ac_cv_func_dlopen=yes
10130
 
else
10131
 
  echo "$as_me: failed program was:" >&5
10132
 
sed 's/^/| /' conftest.$ac_ext >&5
10133
 
 
10134
 
ac_cv_func_dlopen=no
10135
 
fi
10136
 
rm -f conftest.err conftest.$ac_objext \
10137
 
      conftest$ac_exeext conftest.$ac_ext
10138
 
fi
10139
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10140
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10141
 
if test $ac_cv_func_dlopen = yes; then
10142
 
  lt_cv_dlopen="dlopen"
10143
 
else
10144
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10145
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10146
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10147
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10148
 
else
10149
 
  ac_check_lib_save_LIBS=$LIBS
10150
 
LIBS="-ldl  $LIBS"
10151
 
cat >conftest.$ac_ext <<_ACEOF
10152
 
/* confdefs.h.  */
10153
 
_ACEOF
10154
 
cat confdefs.h >>conftest.$ac_ext
10155
 
cat >>conftest.$ac_ext <<_ACEOF
10156
 
/* end confdefs.h.  */
10157
 
 
10158
 
/* Override any gcc2 internal prototype to avoid an error.  */
10159
 
#ifdef __cplusplus
10160
 
extern "C"
10161
 
#endif
10162
 
/* We use char because int might match the return type of a gcc2
10163
 
   builtin and then its argument prototype would still apply.  */
10164
 
char dlopen ();
10165
 
int
10166
 
main ()
10167
 
{
10168
 
dlopen ();
10169
 
  ;
10170
 
  return 0;
10171
 
}
10172
 
_ACEOF
10173
 
rm -f conftest.$ac_objext conftest$ac_exeext
10174
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175
 
  (eval $ac_link) 2>conftest.er1
10176
 
  ac_status=$?
10177
 
  grep -v '^ *+' conftest.er1 >conftest.err
10178
 
  rm -f conftest.er1
10179
 
  cat conftest.err >&5
10180
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181
 
  (exit $ac_status); } &&
10182
 
         { ac_try='test -z "$ac_c_werror_flag"
10183
 
                         || test ! -s conftest.err'
10184
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185
 
  (eval $ac_try) 2>&5
10186
 
  ac_status=$?
10187
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188
 
  (exit $ac_status); }; } &&
10189
 
         { ac_try='test -s conftest$ac_exeext'
10190
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191
 
  (eval $ac_try) 2>&5
10192
 
  ac_status=$?
10193
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194
 
  (exit $ac_status); }; }; then
10195
 
  ac_cv_lib_dl_dlopen=yes
10196
 
else
10197
 
  echo "$as_me: failed program was:" >&5
10198
 
sed 's/^/| /' conftest.$ac_ext >&5
10199
 
 
10200
 
ac_cv_lib_dl_dlopen=no
10201
 
fi
10202
 
rm -f conftest.err conftest.$ac_objext \
10203
 
      conftest$ac_exeext conftest.$ac_ext
10204
 
LIBS=$ac_check_lib_save_LIBS
10205
 
fi
10206
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10207
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10208
 
if test $ac_cv_lib_dl_dlopen = yes; then
10209
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10210
 
else
10211
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10212
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10213
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10214
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10215
 
else
10216
 
  ac_check_lib_save_LIBS=$LIBS
10217
 
LIBS="-lsvld  $LIBS"
10218
 
cat >conftest.$ac_ext <<_ACEOF
10219
 
/* confdefs.h.  */
10220
 
_ACEOF
10221
 
cat confdefs.h >>conftest.$ac_ext
10222
 
cat >>conftest.$ac_ext <<_ACEOF
10223
 
/* end confdefs.h.  */
10224
 
 
10225
 
/* Override any gcc2 internal prototype to avoid an error.  */
10226
 
#ifdef __cplusplus
10227
 
extern "C"
10228
 
#endif
10229
 
/* We use char because int might match the return type of a gcc2
10230
 
   builtin and then its argument prototype would still apply.  */
10231
 
char dlopen ();
10232
 
int
10233
 
main ()
10234
 
{
10235
 
dlopen ();
10236
 
  ;
10237
 
  return 0;
10238
 
}
10239
 
_ACEOF
10240
 
rm -f conftest.$ac_objext conftest$ac_exeext
10241
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10242
 
  (eval $ac_link) 2>conftest.er1
10243
 
  ac_status=$?
10244
 
  grep -v '^ *+' conftest.er1 >conftest.err
10245
 
  rm -f conftest.er1
10246
 
  cat conftest.err >&5
10247
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248
 
  (exit $ac_status); } &&
10249
 
         { ac_try='test -z "$ac_c_werror_flag"
10250
 
                         || test ! -s conftest.err'
10251
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252
 
  (eval $ac_try) 2>&5
10253
 
  ac_status=$?
10254
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255
 
  (exit $ac_status); }; } &&
10256
 
         { ac_try='test -s conftest$ac_exeext'
10257
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258
 
  (eval $ac_try) 2>&5
10259
 
  ac_status=$?
10260
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261
 
  (exit $ac_status); }; }; then
10262
 
  ac_cv_lib_svld_dlopen=yes
10263
 
else
10264
 
  echo "$as_me: failed program was:" >&5
10265
 
sed 's/^/| /' conftest.$ac_ext >&5
10266
 
 
10267
 
ac_cv_lib_svld_dlopen=no
10268
 
fi
10269
 
rm -f conftest.err conftest.$ac_objext \
10270
 
      conftest$ac_exeext conftest.$ac_ext
10271
 
LIBS=$ac_check_lib_save_LIBS
10272
 
fi
10273
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10274
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10275
 
if test $ac_cv_lib_svld_dlopen = yes; then
10276
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10277
 
else
10278
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10279
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10280
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10281
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10282
 
else
10283
 
  ac_check_lib_save_LIBS=$LIBS
10284
 
LIBS="-ldld  $LIBS"
10285
 
cat >conftest.$ac_ext <<_ACEOF
10286
 
/* confdefs.h.  */
10287
 
_ACEOF
10288
 
cat confdefs.h >>conftest.$ac_ext
10289
 
cat >>conftest.$ac_ext <<_ACEOF
10290
 
/* end confdefs.h.  */
10291
 
 
10292
 
/* Override any gcc2 internal prototype to avoid an error.  */
10293
 
#ifdef __cplusplus
10294
 
extern "C"
10295
 
#endif
10296
 
/* We use char because int might match the return type of a gcc2
10297
 
   builtin and then its argument prototype would still apply.  */
10298
 
char dld_link ();
10299
 
int
10300
 
main ()
10301
 
{
10302
 
dld_link ();
10303
 
  ;
10304
 
  return 0;
10305
 
}
10306
 
_ACEOF
10307
 
rm -f conftest.$ac_objext conftest$ac_exeext
10308
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10309
 
  (eval $ac_link) 2>conftest.er1
10310
 
  ac_status=$?
10311
 
  grep -v '^ *+' conftest.er1 >conftest.err
10312
 
  rm -f conftest.er1
10313
 
  cat conftest.err >&5
10314
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315
 
  (exit $ac_status); } &&
10316
 
         { ac_try='test -z "$ac_c_werror_flag"
10317
 
                         || test ! -s conftest.err'
10318
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319
 
  (eval $ac_try) 2>&5
10320
 
  ac_status=$?
10321
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322
 
  (exit $ac_status); }; } &&
10323
 
         { ac_try='test -s conftest$ac_exeext'
10324
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325
 
  (eval $ac_try) 2>&5
10326
 
  ac_status=$?
10327
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328
 
  (exit $ac_status); }; }; then
10329
 
  ac_cv_lib_dld_dld_link=yes
10330
 
else
10331
 
  echo "$as_me: failed program was:" >&5
10332
 
sed 's/^/| /' conftest.$ac_ext >&5
10333
 
 
10334
 
ac_cv_lib_dld_dld_link=no
10335
 
fi
10336
 
rm -f conftest.err conftest.$ac_objext \
10337
 
      conftest$ac_exeext conftest.$ac_ext
10338
 
LIBS=$ac_check_lib_save_LIBS
10339
 
fi
10340
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10341
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10342
 
if test $ac_cv_lib_dld_dld_link = yes; then
10343
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10344
 
fi
10345
 
 
10346
 
 
10347
 
fi
10348
 
 
10349
 
 
10350
 
fi
10351
 
 
10352
 
 
10353
 
fi
10354
 
 
10355
 
 
10356
 
fi
10357
 
 
10358
 
 
10359
 
fi
10360
 
 
10361
 
    ;;
10362
 
  esac
10363
 
 
10364
 
  if test "x$lt_cv_dlopen" != xno; then
10365
 
    enable_dlopen=yes
10366
 
  else
10367
 
    enable_dlopen=no
10368
 
  fi
10369
 
 
10370
 
  case $lt_cv_dlopen in
10371
 
  dlopen)
10372
 
    save_CPPFLAGS="$CPPFLAGS"
10373
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10374
 
 
10375
 
    save_LDFLAGS="$LDFLAGS"
10376
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10377
 
 
10378
 
    save_LIBS="$LIBS"
10379
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
10380
 
 
10381
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10382
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10383
 
if test "${lt_cv_dlopen_self+set}" = set; then
10384
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10385
 
else
10386
 
          if test "$cross_compiling" = yes; then :
10387
 
  lt_cv_dlopen_self=cross
10388
 
else
10389
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10390
 
  lt_status=$lt_dlunknown
10391
 
  cat > conftest.$ac_ext <<EOF
10392
 
#line 10392 "configure"
10393
 
#include "confdefs.h"
10394
 
 
10395
 
#if HAVE_DLFCN_H
10396
 
#include <dlfcn.h>
10397
 
#endif
10398
 
 
10399
 
#include <stdio.h>
10400
 
 
10401
 
#ifdef RTLD_GLOBAL
10402
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
10403
 
#else
10404
 
#  ifdef DL_GLOBAL
10405
 
#    define LT_DLGLOBAL         DL_GLOBAL
10406
 
#  else
10407
 
#    define LT_DLGLOBAL         0
10408
 
#  endif
10409
 
#endif
10410
 
 
10411
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10412
 
   find out it does not work in some platform. */
10413
 
#ifndef LT_DLLAZY_OR_NOW
10414
 
#  ifdef RTLD_LAZY
10415
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10416
 
#  else
10417
 
#    ifdef DL_LAZY
10418
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10419
 
#    else
10420
 
#      ifdef RTLD_NOW
10421
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10422
 
#      else
10423
 
#        ifdef DL_NOW
10424
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
10425
 
#        else
10426
 
#          define LT_DLLAZY_OR_NOW      0
10427
 
#        endif
10428
 
#      endif
10429
 
#    endif
10430
 
#  endif
10431
 
#endif
10432
 
 
10433
 
#ifdef __cplusplus
10434
 
extern "C" void exit (int);
10435
 
#endif
10436
 
 
10437
 
void fnord() { int i=42;}
10438
 
int main ()
10439
 
{
10440
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10441
 
  int status = $lt_dlunknown;
10442
 
 
10443
 
  if (self)
10444
 
    {
10445
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10446
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10447
 
      /* dlclose (self); */
10448
 
    }
10449
 
 
10450
 
    exit (status);
10451
 
}
10452
 
EOF
10453
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10454
 
  (eval $ac_link) 2>&5
10455
 
  ac_status=$?
10456
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10458
 
    (./conftest; exit; ) 2>/dev/null
10459
 
    lt_status=$?
10460
 
    case x$lt_status in
10461
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10462
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10463
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10464
 
    esac
10465
 
  else :
10466
 
    # compilation failed
10467
 
    lt_cv_dlopen_self=no
10468
 
  fi
10469
 
fi
10470
 
rm -fr conftest*
10471
 
 
10472
 
 
10473
 
fi
10474
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10475
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10476
 
 
10477
 
    if test "x$lt_cv_dlopen_self" = xyes; then
10478
 
      LDFLAGS="$LDFLAGS $link_static_flag"
10479
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10480
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10481
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
10482
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10483
 
else
10484
 
          if test "$cross_compiling" = yes; then :
10485
 
  lt_cv_dlopen_self_static=cross
10486
 
else
10487
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10488
 
  lt_status=$lt_dlunknown
10489
 
  cat > conftest.$ac_ext <<EOF
10490
 
#line 10490 "configure"
10491
 
#include "confdefs.h"
10492
 
 
10493
 
#if HAVE_DLFCN_H
10494
 
#include <dlfcn.h>
10495
 
#endif
10496
 
 
10497
 
#include <stdio.h>
10498
 
 
10499
 
#ifdef RTLD_GLOBAL
10500
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
10501
 
#else
10502
 
#  ifdef DL_GLOBAL
10503
 
#    define LT_DLGLOBAL         DL_GLOBAL
10504
 
#  else
10505
 
#    define LT_DLGLOBAL         0
10506
 
#  endif
10507
 
#endif
10508
 
 
10509
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10510
 
   find out it does not work in some platform. */
10511
 
#ifndef LT_DLLAZY_OR_NOW
10512
 
#  ifdef RTLD_LAZY
10513
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10514
 
#  else
10515
 
#    ifdef DL_LAZY
10516
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10517
 
#    else
10518
 
#      ifdef RTLD_NOW
10519
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10520
 
#      else
10521
 
#        ifdef DL_NOW
10522
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
10523
 
#        else
10524
 
#          define LT_DLLAZY_OR_NOW      0
10525
 
#        endif
10526
 
#      endif
10527
 
#    endif
10528
 
#  endif
10529
 
#endif
10530
 
 
10531
 
#ifdef __cplusplus
10532
 
extern "C" void exit (int);
10533
 
#endif
10534
 
 
10535
 
void fnord() { int i=42;}
10536
 
int main ()
10537
 
{
10538
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10539
 
  int status = $lt_dlunknown;
10540
 
 
10541
 
  if (self)
10542
 
    {
10543
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10544
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10545
 
      /* dlclose (self); */
10546
 
    }
10547
 
 
10548
 
    exit (status);
10549
 
}
10550
 
EOF
10551
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10552
 
  (eval $ac_link) 2>&5
10553
 
  ac_status=$?
10554
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10556
 
    (./conftest; exit; ) 2>/dev/null
10557
 
    lt_status=$?
10558
 
    case x$lt_status in
10559
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10560
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10561
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10562
 
    esac
10563
 
  else :
10564
 
    # compilation failed
10565
 
    lt_cv_dlopen_self_static=no
10566
 
  fi
10567
 
fi
10568
 
rm -fr conftest*
10569
 
 
10570
 
 
10571
 
fi
10572
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10573
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10574
 
    fi
10575
 
 
10576
 
    CPPFLAGS="$save_CPPFLAGS"
10577
 
    LDFLAGS="$save_LDFLAGS"
10578
 
    LIBS="$save_LIBS"
10579
 
    ;;
10580
 
  esac
10581
 
 
10582
 
  case $lt_cv_dlopen_self in
10583
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10584
 
  *) enable_dlopen_self=unknown ;;
10585
 
  esac
10586
 
 
10587
 
  case $lt_cv_dlopen_self_static in
10588
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10589
 
  *) enable_dlopen_self_static=unknown ;;
10590
 
  esac
10591
 
fi
10592
 
 
10593
 
 
10594
 
# Report which librarie types wil actually be built
10595
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10596
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10597
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
10598
 
echo "${ECHO_T}$can_build_shared" >&6
10599
 
 
10600
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10601
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10602
 
test "$can_build_shared" = "no" && enable_shared=no
10603
 
 
10604
 
# On AIX, shared libraries and static libraries use the same namespace, and
10605
 
# are all built from PIC.
10606
 
case "$host_os" in
10607
 
aix3*)
10608
 
  test "$enable_shared" = yes && enable_static=no
10609
 
  if test -n "$RANLIB"; then
10610
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10611
 
    postinstall_cmds='$RANLIB $lib'
10612
 
  fi
10613
 
  ;;
10614
 
 
10615
 
aix4* | aix5*)
10616
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10617
 
    test "$enable_shared" = yes && enable_static=no
10618
 
  fi
10619
 
  ;;
10620
 
  darwin* | rhapsody*)
10621
 
  if test "$GCC" = yes; then
10622
 
    archive_cmds_need_lc=no
10623
 
    case "$host_os" in
10624
 
    rhapsody* | darwin1.[012])
10625
 
      allow_undefined_flag='-undefined suppress'
10626
 
      ;;
10627
 
    *) # Darwin 1.3 on
10628
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10629
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
10630
 
      else
10631
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
10632
 
          10.[012])
10633
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
10634
 
            ;;
10635
 
          10.*)
10636
 
            allow_undefined_flag='-undefined dynamic_lookup'
10637
 
            ;;
10638
 
        esac
10639
 
      fi
10640
 
      ;;
10641
 
    esac
10642
 
    output_verbose_link_cmd='echo'
10643
 
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10644
 
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10645
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10646
 
    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10647
 
    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10648
 
    hardcode_direct=no
10649
 
    hardcode_automatic=yes
10650
 
    hardcode_shlibpath_var=unsupported
10651
 
    whole_archive_flag_spec='-all_load $convenience'
10652
 
    link_all_deplibs=yes
10653
 
  else
10654
 
    ld_shlibs=no
10655
 
  fi
10656
 
    ;;
10657
 
esac
10658
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
10659
 
echo "${ECHO_T}$enable_shared" >&6
10660
 
 
10661
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10662
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10663
 
# Make sure either enable_shared or enable_static is yes.
10664
 
test "$enable_shared" = yes || enable_static=yes
10665
 
echo "$as_me:$LINENO: result: $enable_static" >&5
10666
 
echo "${ECHO_T}$enable_static" >&6
10667
 
 
10668
 
# The else clause should only fire when bootstrapping the
10669
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
10670
 
# with your package, and you will get complaints that there are
10671
 
# no rules to generate ltmain.sh.
10672
 
if test -f "$ltmain"; then
10673
 
  # See if we are running on zsh, and set the options which allow our commands through
10674
 
  # without removal of \ escapes.
10675
 
  if test -n "${ZSH_VERSION+set}" ; then
10676
 
    setopt NO_GLOB_SUBST
10677
 
  fi
10678
 
  # Now quote all the things that may contain metacharacters while being
10679
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10680
 
  # variables and quote the copies for generation of the libtool script.
10681
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10682
 
    SED SHELL STRIP \
10683
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10684
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10685
 
    deplibs_check_method reload_flag reload_cmds need_locks \
10686
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10687
 
    lt_cv_sys_global_symbol_to_c_name_address \
10688
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10689
 
    old_postinstall_cmds old_postuninstall_cmds \
10690
 
    compiler \
10691
 
    CC \
10692
 
    LD \
10693
 
    lt_prog_compiler_wl \
10694
 
    lt_prog_compiler_pic \
10695
 
    lt_prog_compiler_static \
10696
 
    lt_prog_compiler_no_builtin_flag \
10697
 
    export_dynamic_flag_spec \
10698
 
    thread_safe_flag_spec \
10699
 
    whole_archive_flag_spec \
10700
 
    enable_shared_with_static_runtimes \
10701
 
    old_archive_cmds \
10702
 
    old_archive_from_new_cmds \
10703
 
    predep_objects \
10704
 
    postdep_objects \
10705
 
    predeps \
10706
 
    postdeps \
10707
 
    compiler_lib_search_path \
10708
 
    archive_cmds \
10709
 
    archive_expsym_cmds \
10710
 
    postinstall_cmds \
10711
 
    postuninstall_cmds \
10712
 
    old_archive_from_expsyms_cmds \
10713
 
    allow_undefined_flag \
10714
 
    no_undefined_flag \
10715
 
    export_symbols_cmds \
10716
 
    hardcode_libdir_flag_spec \
10717
 
    hardcode_libdir_flag_spec_ld \
10718
 
    hardcode_libdir_separator \
10719
 
    hardcode_automatic \
10720
 
    module_cmds \
10721
 
    module_expsym_cmds \
10722
 
    lt_cv_prog_compiler_c_o \
10723
 
    exclude_expsyms \
10724
 
    include_expsyms; do
10725
 
 
10726
 
    case $var in
10727
 
    old_archive_cmds | \
10728
 
    old_archive_from_new_cmds | \
10729
 
    archive_cmds | \
10730
 
    archive_expsym_cmds | \
10731
 
    module_cmds | \
10732
 
    module_expsym_cmds | \
10733
 
    old_archive_from_expsyms_cmds | \
10734
 
    export_symbols_cmds | \
10735
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10736
 
    postinstall_cmds | postuninstall_cmds | \
10737
 
    old_postinstall_cmds | old_postuninstall_cmds | \
10738
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10739
 
      # Double-quote double-evaled strings.
10740
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10741
 
      ;;
10742
 
    *)
10743
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10744
 
      ;;
10745
 
    esac
10746
 
  done
10747
 
 
10748
 
  case $lt_echo in
10749
 
  *'\$0 --fallback-echo"')
10750
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10751
 
    ;;
10752
 
  esac
10753
 
 
10754
 
cfgfile="${ofile}T"
10755
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10756
 
  $rm -f "$cfgfile"
10757
 
  { echo "$as_me:$LINENO: creating $ofile" >&5
10758
 
echo "$as_me: creating $ofile" >&6;}
10759
 
 
10760
 
  cat <<__EOF__ >> "$cfgfile"
10761
 
#! $SHELL
10762
 
 
10763
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10764
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10765
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10766
 
#
10767
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10768
 
# Free Software Foundation, Inc.
10769
 
#
10770
 
# This file is part of GNU Libtool:
10771
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10772
 
#
10773
 
# This program is free software; you can redistribute it and/or modify
10774
 
# it under the terms of the GNU General Public License as published by
10775
 
# the Free Software Foundation; either version 2 of the License, or
10776
 
# (at your option) any later version.
10777
 
#
10778
 
# This program is distributed in the hope that it will be useful, but
10779
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
10780
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10781
 
# General Public License for more details.
10782
 
#
10783
 
# You should have received a copy of the GNU General Public License
10784
 
# along with this program; if not, write to the Free Software
10785
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10786
 
#
10787
 
# As a special exception to the GNU General Public License, if you
10788
 
# distribute this file as part of a program that contains a
10789
 
# configuration script generated by Autoconf, you may include it under
10790
 
# the same distribution terms that you use for the rest of that program.
10791
 
 
10792
 
# A sed program that does not truncate output.
10793
 
SED=$lt_SED
10794
 
 
10795
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10796
 
Xsed="$SED -e s/^X//"
10797
 
 
10798
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
10799
 
# if CDPATH is set.
10800
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10801
 
 
10802
 
# The names of the tagged configurations supported by this script.
10803
 
available_tags=
10804
 
 
10805
 
# ### BEGIN LIBTOOL CONFIG
10806
 
 
10807
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10808
 
 
10809
 
# Shell to use when invoking shell scripts.
10810
 
SHELL=$lt_SHELL
10811
 
 
10812
 
# Whether or not to build shared libraries.
10813
 
build_libtool_libs=$enable_shared
10814
 
 
10815
 
# Whether or not to build static libraries.
10816
 
build_old_libs=$enable_static
10817
 
 
10818
 
# Whether or not to add -lc for building shared libraries.
10819
 
build_libtool_need_lc=$archive_cmds_need_lc
10820
 
 
10821
 
# Whether or not to disallow shared libs when runtime libs are static
10822
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10823
 
 
10824
 
# Whether or not to optimize for fast installation.
10825
 
fast_install=$enable_fast_install
10826
 
 
10827
 
# The host system.
10828
 
host_alias=$host_alias
10829
 
host=$host
10830
 
 
10831
 
# An echo program that does not interpret backslashes.
10832
 
echo=$lt_echo
10833
 
 
10834
 
# The archiver.
10835
 
AR=$lt_AR
10836
 
AR_FLAGS=$lt_AR_FLAGS
10837
 
 
10838
 
# A C compiler.
10839
 
LTCC=$lt_LTCC
10840
 
 
10841
 
# A language-specific compiler.
10842
 
CC=$lt_compiler
10843
 
 
10844
 
# Is the compiler the GNU C compiler?
10845
 
with_gcc=$GCC
10846
 
 
10847
 
# An ERE matcher.
10848
 
EGREP=$lt_EGREP
10849
 
 
10850
 
# The linker used to build libraries.
10851
 
LD=$lt_LD
10852
 
 
10853
 
# Whether we need hard or soft links.
10854
 
LN_S=$lt_LN_S
10855
 
 
10856
 
# A BSD-compatible nm program.
10857
 
NM=$lt_NM
10858
 
 
10859
 
# A symbol stripping program
10860
 
STRIP=$lt_STRIP
10861
 
 
10862
 
# Used to examine libraries when file_magic_cmd begins "file"
10863
 
MAGIC_CMD=$MAGIC_CMD
10864
 
 
10865
 
# Used on cygwin: DLL creation program.
10866
 
DLLTOOL="$DLLTOOL"
10867
 
 
10868
 
# Used on cygwin: object dumper.
10869
 
OBJDUMP="$OBJDUMP"
10870
 
 
10871
 
# Used on cygwin: assembler.
10872
 
AS="$AS"
10873
 
 
10874
 
# The name of the directory that contains temporary libtool files.
10875
 
objdir=$objdir
10876
 
 
10877
 
# How to create reloadable object files.
10878
 
reload_flag=$lt_reload_flag
10879
 
reload_cmds=$lt_reload_cmds
10880
 
 
10881
 
# How to pass a linker flag through the compiler.
10882
 
wl=$lt_lt_prog_compiler_wl
10883
 
 
10884
 
# Object file suffix (normally "o").
10885
 
objext="$ac_objext"
10886
 
 
10887
 
# Old archive suffix (normally "a").
10888
 
libext="$libext"
10889
 
 
10890
 
# Shared library suffix (normally ".so").
10891
 
shrext_cmds='$shrext_cmds'
10892
 
 
10893
 
# Executable file suffix (normally "").
10894
 
exeext="$exeext"
10895
 
 
10896
 
# Additional compiler flags for building library objects.
10897
 
pic_flag=$lt_lt_prog_compiler_pic
10898
 
pic_mode=$pic_mode
10899
 
 
10900
 
# What is the maximum length of a command?
10901
 
max_cmd_len=$lt_cv_sys_max_cmd_len
10902
 
 
10903
 
# Does compiler simultaneously support -c and -o options?
10904
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10905
 
 
10906
 
# Must we lock files when doing compilation ?
10907
 
need_locks=$lt_need_locks
10908
 
 
10909
 
# Do we need the lib prefix for modules?
10910
 
need_lib_prefix=$need_lib_prefix
10911
 
 
10912
 
# Do we need a version for libraries?
10913
 
need_version=$need_version
10914
 
 
10915
 
# Whether dlopen is supported.
10916
 
dlopen_support=$enable_dlopen
10917
 
 
10918
 
# Whether dlopen of programs is supported.
10919
 
dlopen_self=$enable_dlopen_self
10920
 
 
10921
 
# Whether dlopen of statically linked programs is supported.
10922
 
dlopen_self_static=$enable_dlopen_self_static
10923
 
 
10924
 
# Compiler flag to prevent dynamic linking.
10925
 
link_static_flag=$lt_lt_prog_compiler_static
10926
 
 
10927
 
# Compiler flag to turn off builtin functions.
10928
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10929
 
 
10930
 
# Compiler flag to allow reflexive dlopens.
10931
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10932
 
 
10933
 
# Compiler flag to generate shared objects directly from archives.
10934
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10935
 
 
10936
 
# Compiler flag to generate thread-safe objects.
10937
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10938
 
 
10939
 
# Library versioning type.
10940
 
version_type=$version_type
10941
 
 
10942
 
# Format of library name prefix.
10943
 
libname_spec=$lt_libname_spec
10944
 
 
10945
 
# List of archive names.  First name is the real one, the rest are links.
10946
 
# The last name is the one that the linker finds with -lNAME.
10947
 
library_names_spec=$lt_library_names_spec
10948
 
 
10949
 
# The coded name of the library, if different from the real name.
10950
 
soname_spec=$lt_soname_spec
10951
 
 
10952
 
# Commands used to build and install an old-style archive.
10953
 
RANLIB=$lt_RANLIB
10954
 
old_archive_cmds=$lt_old_archive_cmds
10955
 
old_postinstall_cmds=$lt_old_postinstall_cmds
10956
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10957
 
 
10958
 
# Create an old-style archive from a shared archive.
10959
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10960
 
 
10961
 
# Create a temporary old-style archive to link instead of a shared archive.
10962
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10963
 
 
10964
 
# Commands used to build and install a shared archive.
10965
 
archive_cmds=$lt_archive_cmds
10966
 
archive_expsym_cmds=$lt_archive_expsym_cmds
10967
 
postinstall_cmds=$lt_postinstall_cmds
10968
 
postuninstall_cmds=$lt_postuninstall_cmds
10969
 
 
10970
 
# Commands used to build a loadable module (assumed same as above if empty)
10971
 
module_cmds=$lt_module_cmds
10972
 
module_expsym_cmds=$lt_module_expsym_cmds
10973
 
 
10974
 
# Commands to strip libraries.
10975
 
old_striplib=$lt_old_striplib
10976
 
striplib=$lt_striplib
10977
 
 
10978
 
# Dependencies to place before the objects being linked to create a
10979
 
# shared library.
10980
 
predep_objects=$lt_predep_objects
10981
 
 
10982
 
# Dependencies to place after the objects being linked to create a
10983
 
# shared library.
10984
 
postdep_objects=$lt_postdep_objects
10985
 
 
10986
 
# Dependencies to place before the objects being linked to create a
10987
 
# shared library.
10988
 
predeps=$lt_predeps
10989
 
 
10990
 
# Dependencies to place after the objects being linked to create a
10991
 
# shared library.
10992
 
postdeps=$lt_postdeps
10993
 
 
10994
 
# The library search path used internally by the compiler when linking
10995
 
# a shared library.
10996
 
compiler_lib_search_path=$lt_compiler_lib_search_path
10997
 
 
10998
 
# Method to check whether dependent libraries are shared objects.
10999
 
deplibs_check_method=$lt_deplibs_check_method
11000
 
 
11001
 
# Command to use when deplibs_check_method == file_magic.
11002
 
file_magic_cmd=$lt_file_magic_cmd
11003
 
 
11004
 
# Flag that allows shared libraries with undefined symbols to be built.
11005
 
allow_undefined_flag=$lt_allow_undefined_flag
11006
 
 
11007
 
# Flag that forces no undefined symbols.
11008
 
no_undefined_flag=$lt_no_undefined_flag
11009
 
 
11010
 
# Commands used to finish a libtool library installation in a directory.
11011
 
finish_cmds=$lt_finish_cmds
11012
 
 
11013
 
# Same as above, but a single script fragment to be evaled but not shown.
11014
 
finish_eval=$lt_finish_eval
11015
 
 
11016
 
# Take the output of nm and produce a listing of raw symbols and C names.
11017
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11018
 
 
11019
 
# Transform the output of nm in a proper C declaration
11020
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11021
 
 
11022
 
# Transform the output of nm in a C name address pair
11023
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11024
 
 
11025
 
# This is the shared library runtime path variable.
11026
 
runpath_var=$runpath_var
11027
 
 
11028
 
# This is the shared library path variable.
11029
 
shlibpath_var=$shlibpath_var
11030
 
 
11031
 
# Is shlibpath searched before the hard-coded library search path?
11032
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11033
 
 
11034
 
# How to hardcode a shared library path into an executable.
11035
 
hardcode_action=$hardcode_action
11036
 
 
11037
 
# Whether we should hardcode library paths into libraries.
11038
 
hardcode_into_libs=$hardcode_into_libs
11039
 
 
11040
 
# Flag to hardcode \$libdir into a binary during linking.
11041
 
# This must work even if \$libdir does not exist.
11042
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11043
 
 
11044
 
# If ld is used when linking, flag to hardcode \$libdir into
11045
 
# a binary during linking. This must work even if \$libdir does
11046
 
# not exist.
11047
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11048
 
 
11049
 
# Whether we need a single -rpath flag with a separated argument.
11050
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11051
 
 
11052
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11053
 
# resulting binary.
11054
 
hardcode_direct=$hardcode_direct
11055
 
 
11056
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11057
 
# resulting binary.
11058
 
hardcode_minus_L=$hardcode_minus_L
11059
 
 
11060
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11061
 
# the resulting binary.
11062
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
11063
 
 
11064
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
11065
 
# and all subsequent libraries and executables linked against it.
11066
 
hardcode_automatic=$hardcode_automatic
11067
 
 
11068
 
# Variables whose values should be saved in libtool wrapper scripts and
11069
 
# restored at relink time.
11070
 
variables_saved_for_relink="$variables_saved_for_relink"
11071
 
 
11072
 
# Whether libtool must link a program against all its dependency libraries.
11073
 
link_all_deplibs=$link_all_deplibs
11074
 
 
11075
 
# Compile-time system search path for libraries
11076
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11077
 
 
11078
 
# Run-time system search path for libraries
11079
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11080
 
 
11081
 
# Fix the shell variable \$srcfile for the compiler.
11082
 
fix_srcfile_path="$fix_srcfile_path"
11083
 
 
11084
 
# Set to yes if exported symbols are required.
11085
 
always_export_symbols=$always_export_symbols
11086
 
 
11087
 
# The commands to list exported symbols.
11088
 
export_symbols_cmds=$lt_export_symbols_cmds
11089
 
 
11090
 
# The commands to extract the exported symbol list from a shared archive.
11091
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11092
 
 
11093
 
# Symbols that should not be listed in the preloaded symbols.
11094
 
exclude_expsyms=$lt_exclude_expsyms
11095
 
 
11096
 
# Symbols that must always be exported.
11097
 
include_expsyms=$lt_include_expsyms
11098
 
 
11099
 
# ### END LIBTOOL CONFIG
11100
 
 
11101
 
__EOF__
11102
 
 
11103
 
 
11104
 
  case $host_os in
11105
 
  aix3*)
11106
 
    cat <<\EOF >> "$cfgfile"
11107
 
 
11108
 
# AIX sometimes has problems with the GCC collect2 program.  For some
11109
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
11110
 
# vanish in a puff of smoke.
11111
 
if test "X${COLLECT_NAMES+set}" != Xset; then
11112
 
  COLLECT_NAMES=
11113
 
  export COLLECT_NAMES
11114
 
fi
11115
 
EOF
11116
 
    ;;
11117
 
  esac
11118
 
 
11119
 
  # We use sed instead of cat because bash on DJGPP gets confused if
11120
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11121
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
11122
 
  # is reportedly fixed, but why not run on old versions too?
11123
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11124
 
 
11125
 
  mv -f "$cfgfile" "$ofile" || \
11126
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11127
 
  chmod +x "$ofile"
11128
 
 
11129
 
else
11130
 
  # If there is no Makefile yet, we rely on a make rule to execute
11131
 
  # `config.status --recheck' to rerun these tests and create the
11132
 
  # libtool script then.
11133
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11134
 
  if test -f "$ltmain_in"; then
11135
 
    test -f Makefile && make "$ltmain"
11136
 
  fi
11137
 
fi
11138
 
 
11139
 
 
11140
 
ac_ext=c
11141
 
ac_cpp='$CPP $CPPFLAGS'
11142
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11143
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11144
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11145
 
 
11146
 
CC="$lt_save_CC"
11147
 
 
11148
 
 
11149
 
# Check whether --with-tags or --without-tags was given.
11150
 
if test "${with_tags+set}" = set; then
11151
 
  withval="$with_tags"
11152
 
  tagnames="$withval"
11153
 
fi;
11154
 
 
11155
 
if test -f "$ltmain" && test -n "$tagnames"; then
11156
 
  if test ! -f "${ofile}"; then
11157
 
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11158
 
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11159
 
  fi
11160
 
 
11161
 
  if test -z "$LTCC"; then
11162
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11163
 
    if test -z "$LTCC"; then
11164
 
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11165
 
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11166
 
    else
11167
 
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11168
 
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11169
 
    fi
11170
 
  fi
11171
 
 
11172
 
  # Extract list of available tagged configurations in $ofile.
11173
 
  # Note that this assumes the entire list is on one line.
11174
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11175
 
 
11176
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11177
 
  for tagname in $tagnames; do
11178
 
    IFS="$lt_save_ifs"
11179
 
    # Check whether tagname contains only valid characters
11180
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11181
 
    "") ;;
11182
 
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11183
 
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11184
 
   { (exit 1); exit 1; }; }
11185
 
        ;;
11186
 
    esac
11187
 
 
11188
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11189
 
    then
11190
 
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11191
 
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11192
 
   { (exit 1); exit 1; }; }
11193
 
    fi
11194
 
 
11195
 
    # Update the list of available tags.
11196
 
    if test -n "$tagname"; then
11197
 
      echo appending configuration tag \"$tagname\" to $ofile
11198
 
 
11199
 
      case $tagname in
11200
 
      CXX)
11201
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
11202
 
          ac_ext=cc
11203
 
ac_cpp='$CXXCPP $CPPFLAGS'
11204
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11205
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11206
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11207
 
 
11208
 
 
11209
 
 
11210
 
 
11211
 
archive_cmds_need_lc_CXX=no
11212
 
allow_undefined_flag_CXX=
11213
 
always_export_symbols_CXX=no
11214
 
archive_expsym_cmds_CXX=
11215
 
export_dynamic_flag_spec_CXX=
11216
 
hardcode_direct_CXX=no
11217
 
hardcode_libdir_flag_spec_CXX=
11218
 
hardcode_libdir_flag_spec_ld_CXX=
11219
 
hardcode_libdir_separator_CXX=
11220
 
hardcode_minus_L_CXX=no
11221
 
hardcode_automatic_CXX=no
11222
 
module_cmds_CXX=
11223
 
module_expsym_cmds_CXX=
11224
 
link_all_deplibs_CXX=unknown
11225
 
old_archive_cmds_CXX=$old_archive_cmds
11226
 
no_undefined_flag_CXX=
11227
 
whole_archive_flag_spec_CXX=
11228
 
enable_shared_with_static_runtimes_CXX=no
11229
 
 
11230
 
# Dependencies to place before and after the object being linked:
11231
 
predep_objects_CXX=
11232
 
postdep_objects_CXX=
11233
 
predeps_CXX=
11234
 
postdeps_CXX=
11235
 
compiler_lib_search_path_CXX=
11236
 
 
11237
 
# Source file extension for C++ test sources.
11238
 
ac_ext=cc
11239
 
 
11240
 
# Object file extension for compiled C++ test sources.
11241
 
objext=o
11242
 
objext_CXX=$objext
11243
 
 
11244
 
# Code to be used in simple compile tests
11245
 
lt_simple_compile_test_code="int some_variable = 0;\n"
11246
 
 
11247
 
# Code to be used in simple link tests
11248
 
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11249
 
 
11250
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11251
 
 
11252
 
# If no C compiler was specified, use CC.
11253
 
LTCC=${LTCC-"$CC"}
11254
 
 
11255
 
# Allow CC to be a program name with arguments.
11256
 
compiler=$CC
11257
 
 
11258
 
 
11259
 
# Allow CC to be a program name with arguments.
11260
 
lt_save_CC=$CC
11261
 
lt_save_LD=$LD
11262
 
lt_save_GCC=$GCC
11263
 
GCC=$GXX
11264
 
lt_save_with_gnu_ld=$with_gnu_ld
11265
 
lt_save_path_LD=$lt_cv_path_LD
11266
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11267
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11268
 
else
11269
 
  unset lt_cv_prog_gnu_ld
11270
 
fi
11271
 
if test -n "${lt_cv_path_LDCXX+set}"; then
11272
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
11273
 
else
11274
 
  unset lt_cv_path_LD
11275
 
fi
11276
 
test -z "${LDCXX+set}" || LD=$LDCXX
11277
 
CC=${CXX-"c++"}
11278
 
compiler=$CC
11279
 
compiler_CXX=$CC
11280
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11281
 
 
11282
 
# We don't want -fno-exception wen compiling C++ code, so set the
11283
 
# no_builtin_flag separately
11284
 
if test "$GXX" = yes; then
11285
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11286
 
else
11287
 
  lt_prog_compiler_no_builtin_flag_CXX=
11288
 
fi
11289
 
 
11290
 
if test "$GXX" = yes; then
11291
 
  # Set up default GNU C++ configuration
11292
 
 
11293
 
 
11294
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
11295
 
if test "${with_gnu_ld+set}" = set; then
11296
 
  withval="$with_gnu_ld"
11297
 
  test "$withval" = no || with_gnu_ld=yes
11298
 
else
11299
 
  with_gnu_ld=no
11300
 
fi;
11301
 
ac_prog=ld
11302
 
if test "$GCC" = yes; then
11303
 
  # Check if gcc -print-prog-name=ld gives a path.
11304
 
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11305
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11306
 
  case $host in
11307
 
  *-*-mingw*)
11308
 
    # gcc leaves a trailing carriage return which upsets mingw
11309
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11310
 
  *)
11311
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11312
 
  esac
11313
 
  case $ac_prog in
11314
 
    # Accept absolute paths.
11315
 
    [\\/]* | ?:[\\/]*)
11316
 
      re_direlt='/[^/][^/]*/\.\./'
11317
 
      # Canonicalize the pathname of ld
11318
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11319
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11320
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11321
 
      done
11322
 
      test -z "$LD" && LD="$ac_prog"
11323
 
      ;;
11324
 
  "")
11325
 
    # If it fails, then pretend we aren't using GCC.
11326
 
    ac_prog=ld
11327
 
    ;;
11328
 
  *)
11329
 
    # If it is relative, then search for the first ld in PATH.
11330
 
    with_gnu_ld=unknown
11331
 
    ;;
11332
 
  esac
11333
 
elif test "$with_gnu_ld" = yes; then
11334
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
11335
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11336
 
else
11337
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11338
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11339
 
fi
11340
 
if test "${lt_cv_path_LD+set}" = set; then
11341
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11342
 
else
11343
 
  if test -z "$LD"; then
11344
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11345
 
  for ac_dir in $PATH; do
11346
 
    IFS="$lt_save_ifs"
11347
 
    test -z "$ac_dir" && ac_dir=.
11348
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11349
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
11350
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
11351
 
      # but apparently some GNU ld's only accept -v.
11352
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
11353
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11354
 
      *GNU* | *'with BFD'*)
11355
 
        test "$with_gnu_ld" != no && break
11356
 
        ;;
11357
 
      *)
11358
 
        test "$with_gnu_ld" != yes && break
11359
 
        ;;
11360
 
      esac
11361
 
    fi
11362
 
  done
11363
 
  IFS="$lt_save_ifs"
11364
 
else
11365
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11366
 
fi
11367
 
fi
11368
 
 
11369
 
LD="$lt_cv_path_LD"
11370
 
if test -n "$LD"; then
11371
 
  echo "$as_me:$LINENO: result: $LD" >&5
11372
 
echo "${ECHO_T}$LD" >&6
11373
 
else
11374
 
  echo "$as_me:$LINENO: result: no" >&5
11375
 
echo "${ECHO_T}no" >&6
11376
 
fi
11377
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11378
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11379
 
   { (exit 1); exit 1; }; }
11380
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11381
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11382
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11383
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11384
 
else
11385
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11386
 
case `$LD -v 2>&1 </dev/null` in
11387
 
*GNU* | *'with BFD'*)
11388
 
  lt_cv_prog_gnu_ld=yes
11389
 
  ;;
11390
 
*)
11391
 
  lt_cv_prog_gnu_ld=no
11392
 
  ;;
11393
 
esac
11394
 
fi
11395
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11396
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11397
 
with_gnu_ld=$lt_cv_prog_gnu_ld
11398
 
 
11399
 
 
11400
 
 
11401
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11402
 
  # archiving commands below assume that GNU ld is being used.
11403
 
  if test "$with_gnu_ld" = yes; then
11404
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11405
 
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11406
 
 
11407
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11408
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11409
 
 
11410
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
11411
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11412
 
    #     investigate it a little bit more. (MM)
11413
 
    wlarc='${wl}'
11414
 
 
11415
 
    # ancient GNU ld didn't support --whole-archive et. al.
11416
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11417
 
        grep 'no-whole-archive' > /dev/null; then
11418
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11419
 
    else
11420
 
      whole_archive_flag_spec_CXX=
11421
 
    fi
11422
 
  else
11423
 
    with_gnu_ld=no
11424
 
    wlarc=
11425
 
 
11426
 
    # A generic and very simple default shared library creation
11427
 
    # command for GNU C++ for the case where it uses the native
11428
 
    # linker, instead of GNU ld.  If possible, this setting should
11429
 
    # overridden to take advantage of the native linker features on
11430
 
    # the platform it is being used on.
11431
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11432
 
  fi
11433
 
 
11434
 
  # Commands to make compiler produce verbose output that lists
11435
 
  # what "hidden" libraries, object files and flags are used when
11436
 
  # linking a shared library.
11437
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11438
 
 
11439
 
else
11440
 
  GXX=no
11441
 
  with_gnu_ld=no
11442
 
  wlarc=
11443
 
fi
11444
 
 
11445
 
# PORTME: fill in a description of your system's C++ link characteristics
11446
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11447
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11448
 
ld_shlibs_CXX=yes
11449
 
case $host_os in
11450
 
  aix3*)
11451
 
    # FIXME: insert proper C++ library support
11452
 
    ld_shlibs_CXX=no
11453
 
    ;;
11454
 
  aix4* | aix5*)
11455
 
    if test "$host_cpu" = ia64; then
11456
 
      # On IA64, the linker does run time linking by default, so we don't
11457
 
      # have to do anything special.
11458
 
      aix_use_runtimelinking=no
11459
 
      exp_sym_flag='-Bexport'
11460
 
      no_entry_flag=""
11461
 
    else
11462
 
      aix_use_runtimelinking=no
11463
 
 
11464
 
      # Test if we are trying to use run time linking or normal
11465
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11466
 
      # need to do runtime linking.
11467
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11468
 
        for ld_flag in $LDFLAGS; do
11469
 
          case $ld_flag in
11470
 
          *-brtl*)
11471
 
            aix_use_runtimelinking=yes
11472
 
            break
11473
 
            ;;
11474
 
          esac
11475
 
        done
11476
 
      esac
11477
 
 
11478
 
      exp_sym_flag='-bexport'
11479
 
      no_entry_flag='-bnoentry'
11480
 
    fi
11481
 
 
11482
 
    # When large executables or shared objects are built, AIX ld can
11483
 
    # have problems creating the table of contents.  If linking a library
11484
 
    # or program results in "error TOC overflow" add -mminimal-toc to
11485
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11486
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11487
 
 
11488
 
    archive_cmds_CXX=''
11489
 
    hardcode_direct_CXX=yes
11490
 
    hardcode_libdir_separator_CXX=':'
11491
 
    link_all_deplibs_CXX=yes
11492
 
 
11493
 
    if test "$GXX" = yes; then
11494
 
      case $host_os in aix4.012|aix4.012.*)
11495
 
      # We only want to do this on AIX 4.2 and lower, the check
11496
 
      # below for broken collect2 doesn't work under 4.3+
11497
 
        collect2name=`${CC} -print-prog-name=collect2`
11498
 
        if test -f "$collect2name" && \
11499
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
11500
 
        then
11501
 
          # We have reworked collect2
11502
 
          hardcode_direct_CXX=yes
11503
 
        else
11504
 
          # We have old collect2
11505
 
          hardcode_direct_CXX=unsupported
11506
 
          # It fails to find uninstalled libraries when the uninstalled
11507
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
11508
 
          # to unsupported forces relinking
11509
 
          hardcode_minus_L_CXX=yes
11510
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
11511
 
          hardcode_libdir_separator_CXX=
11512
 
        fi
11513
 
      esac
11514
 
      shared_flag='-shared'
11515
 
    else
11516
 
      # not using gcc
11517
 
      if test "$host_cpu" = ia64; then
11518
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11519
 
        # chokes on -Wl,-G. The following line is correct:
11520
 
        shared_flag='-G'
11521
 
      else
11522
 
        if test "$aix_use_runtimelinking" = yes; then
11523
 
          shared_flag='${wl}-G'
11524
 
        else
11525
 
          shared_flag='${wl}-bM:SRE'
11526
 
        fi
11527
 
      fi
11528
 
    fi
11529
 
 
11530
 
    # It seems that -bexpall does not export symbols beginning with
11531
 
    # underscore (_), so it is better to generate a list of symbols to export.
11532
 
    always_export_symbols_CXX=yes
11533
 
    if test "$aix_use_runtimelinking" = yes; then
11534
 
      # Warning - without using the other runtime loading flags (-brtl),
11535
 
      # -berok will link without error, but may produce a broken library.
11536
 
      allow_undefined_flag_CXX='-berok'
11537
 
      # Determine the default libpath from the value encoded in an empty executable.
11538
 
      cat >conftest.$ac_ext <<_ACEOF
11539
 
/* confdefs.h.  */
11540
 
_ACEOF
11541
 
cat confdefs.h >>conftest.$ac_ext
11542
 
cat >>conftest.$ac_ext <<_ACEOF
11543
 
/* end confdefs.h.  */
11544
 
 
11545
 
int
11546
 
main ()
11547
 
{
11548
 
 
11549
 
  ;
11550
 
  return 0;
11551
 
}
11552
 
_ACEOF
11553
 
rm -f conftest.$ac_objext conftest$ac_exeext
11554
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11555
 
  (eval $ac_link) 2>conftest.er1
11556
 
  ac_status=$?
11557
 
  grep -v '^ *+' conftest.er1 >conftest.err
11558
 
  rm -f conftest.er1
11559
 
  cat conftest.err >&5
11560
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561
 
  (exit $ac_status); } &&
11562
 
         { ac_try='test -z "$ac_cxx_werror_flag"
11563
 
                         || test ! -s conftest.err'
11564
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565
 
  (eval $ac_try) 2>&5
11566
 
  ac_status=$?
11567
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568
 
  (exit $ac_status); }; } &&
11569
 
         { ac_try='test -s conftest$ac_exeext'
11570
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571
 
  (eval $ac_try) 2>&5
11572
 
  ac_status=$?
11573
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574
 
  (exit $ac_status); }; }; then
11575
 
 
11576
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11577
 
}'`
11578
 
# Check for a 64-bit object if we didn't find anything.
11579
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11580
 
}'`; fi
11581
 
else
11582
 
  echo "$as_me: failed program was:" >&5
11583
 
sed 's/^/| /' conftest.$ac_ext >&5
11584
 
 
11585
 
fi
11586
 
rm -f conftest.err conftest.$ac_objext \
11587
 
      conftest$ac_exeext conftest.$ac_ext
11588
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11589
 
 
11590
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11591
 
 
11592
 
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11593
 
     else
11594
 
      if test "$host_cpu" = ia64; then
11595
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11596
 
        allow_undefined_flag_CXX="-z nodefs"
11597
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11598
 
      else
11599
 
        # Determine the default libpath from the value encoded in an empty executable.
11600
 
        cat >conftest.$ac_ext <<_ACEOF
11601
 
/* confdefs.h.  */
11602
 
_ACEOF
11603
 
cat confdefs.h >>conftest.$ac_ext
11604
 
cat >>conftest.$ac_ext <<_ACEOF
11605
 
/* end confdefs.h.  */
11606
 
 
11607
 
int
11608
 
main ()
11609
 
{
11610
 
 
11611
 
  ;
11612
 
  return 0;
11613
 
}
11614
 
_ACEOF
11615
 
rm -f conftest.$ac_objext conftest$ac_exeext
11616
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11617
 
  (eval $ac_link) 2>conftest.er1
11618
 
  ac_status=$?
11619
 
  grep -v '^ *+' conftest.er1 >conftest.err
11620
 
  rm -f conftest.er1
11621
 
  cat conftest.err >&5
11622
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623
 
  (exit $ac_status); } &&
11624
 
         { ac_try='test -z "$ac_cxx_werror_flag"
11625
 
                         || test ! -s conftest.err'
11626
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627
 
  (eval $ac_try) 2>&5
11628
 
  ac_status=$?
11629
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630
 
  (exit $ac_status); }; } &&
11631
 
         { ac_try='test -s conftest$ac_exeext'
11632
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633
 
  (eval $ac_try) 2>&5
11634
 
  ac_status=$?
11635
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636
 
  (exit $ac_status); }; }; then
11637
 
 
11638
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11639
 
}'`
11640
 
# Check for a 64-bit object if we didn't find anything.
11641
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11642
 
}'`; fi
11643
 
else
11644
 
  echo "$as_me: failed program was:" >&5
11645
 
sed 's/^/| /' conftest.$ac_ext >&5
11646
 
 
11647
 
fi
11648
 
rm -f conftest.err conftest.$ac_objext \
11649
 
      conftest$ac_exeext conftest.$ac_ext
11650
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11651
 
 
11652
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11653
 
        # Warning - without using the other run time loading flags,
11654
 
        # -berok will link without error, but may produce a broken library.
11655
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
11656
 
        allow_undefined_flag_CXX=' ${wl}-berok'
11657
 
        # -bexpall does not export symbols beginning with underscore (_)
11658
 
        always_export_symbols_CXX=yes
11659
 
        # Exported symbols can be pulled into shared objects from archives
11660
 
        whole_archive_flag_spec_CXX=' '
11661
 
        archive_cmds_need_lc_CXX=yes
11662
 
        # This is similar to how AIX traditionally builds it's shared libraries.
11663
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11664
 
      fi
11665
 
    fi
11666
 
    ;;
11667
 
  chorus*)
11668
 
    case $cc_basename in
11669
 
      *)
11670
 
        # FIXME: insert proper C++ library support
11671
 
        ld_shlibs_CXX=no
11672
 
        ;;
11673
 
    esac
11674
 
    ;;
11675
 
 
11676
 
  cygwin* | mingw* | pw32*)
11677
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11678
 
    # as there is no search path for DLLs.
11679
 
    hardcode_libdir_flag_spec_CXX='-L$libdir'
11680
 
    allow_undefined_flag_CXX=unsupported
11681
 
    always_export_symbols_CXX=no
11682
 
    enable_shared_with_static_runtimes_CXX=yes
11683
 
 
11684
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11685
 
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11686
 
      # If the export-symbols file already is a .def file (1st line
11687
 
      # is EXPORTS), use it as is; otherwise, prepend...
11688
 
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11689
 
        cp $export_symbols $output_objdir/$soname.def;
11690
 
      else
11691
 
        echo EXPORTS > $output_objdir/$soname.def;
11692
 
        cat $export_symbols >> $output_objdir/$soname.def;
11693
 
      fi~
11694
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11695
 
    else
11696
 
      ld_shlibs_CXX=no
11697
 
    fi
11698
 
  ;;
11699
 
 
11700
 
  darwin* | rhapsody*)
11701
 
  if test "$GXX" = yes; then
11702
 
    archive_cmds_need_lc_CXX=no
11703
 
    case "$host_os" in
11704
 
    rhapsody* | darwin1.[012])
11705
 
      allow_undefined_flag_CXX='-undefined suppress'
11706
 
      ;;
11707
 
    *) # Darwin 1.3 on
11708
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11709
 
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11710
 
      else
11711
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
11712
 
          10.[012])
11713
 
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11714
 
            ;;
11715
 
          10.*)
11716
 
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
11717
 
            ;;
11718
 
        esac
11719
 
      fi
11720
 
      ;;
11721
 
    esac
11722
 
    lt_int_apple_cc_single_mod=no
11723
 
    output_verbose_link_cmd='echo'
11724
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11725
 
      lt_int_apple_cc_single_mod=yes
11726
 
    fi
11727
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11728
 
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11729
 
    else
11730
 
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11731
 
    fi
11732
 
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11733
 
 
11734
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11735
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11736
 
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11737
 
    else
11738
 
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11739
 
    fi
11740
 
    module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11741
 
    hardcode_direct_CXX=no
11742
 
    hardcode_automatic_CXX=yes
11743
 
    hardcode_shlibpath_var_CXX=unsupported
11744
 
    whole_archive_flag_spec_CXX='-all_load $convenience'
11745
 
    link_all_deplibs_CXX=yes
11746
 
  else
11747
 
    ld_shlibs_CXX=no
11748
 
  fi
11749
 
    ;;
11750
 
 
11751
 
  dgux*)
11752
 
    case $cc_basename in
11753
 
      ec++)
11754
 
        # FIXME: insert proper C++ library support
11755
 
        ld_shlibs_CXX=no
11756
 
        ;;
11757
 
      ghcx)
11758
 
        # Green Hills C++ Compiler
11759
 
        # FIXME: insert proper C++ library support
11760
 
        ld_shlibs_CXX=no
11761
 
        ;;
11762
 
      *)
11763
 
        # FIXME: insert proper C++ library support
11764
 
        ld_shlibs_CXX=no
11765
 
        ;;
11766
 
    esac
11767
 
    ;;
11768
 
  freebsd12*)
11769
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
11770
 
    ld_shlibs_CXX=no
11771
 
    ;;
11772
 
  freebsd-elf*)
11773
 
    archive_cmds_need_lc_CXX=no
11774
 
    ;;
11775
 
  freebsd* | kfreebsd*-gnu)
11776
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11777
 
    # conventions
11778
 
    ld_shlibs_CXX=yes
11779
 
    ;;
11780
 
  gnu*)
11781
 
    ;;
11782
 
  hpux9*)
11783
 
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11784
 
    hardcode_libdir_separator_CXX=:
11785
 
    export_dynamic_flag_spec_CXX='${wl}-E'
11786
 
    hardcode_direct_CXX=yes
11787
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
11788
 
                                # but as the default
11789
 
                                # location of the library.
11790
 
 
11791
 
    case $cc_basename in
11792
 
    CC)
11793
 
      # FIXME: insert proper C++ library support
11794
 
      ld_shlibs_CXX=no
11795
 
      ;;
11796
 
    aCC)
11797
 
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
11798
 
      # Commands to make compiler produce verbose output that lists
11799
 
      # what "hidden" libraries, object files and flags are used when
11800
 
      # linking a shared library.
11801
 
      #
11802
 
      # There doesn't appear to be a way to prevent this compiler from
11803
 
      # explicitly linking system object files so we need to strip them
11804
 
      # from the output so that they don't get included in the library
11805
 
      # dependencies.
11806
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11807
 
      ;;
11808
 
    *)
11809
 
      if test "$GXX" = yes; then
11810
 
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
11811
 
      else
11812
 
        # FIXME: insert proper C++ library support
11813
 
        ld_shlibs_CXX=no
11814
 
      fi
11815
 
      ;;
11816
 
    esac
11817
 
    ;;
11818
 
  hpux10*|hpux11*)
11819
 
    if test $with_gnu_ld = no; then
11820
 
      case "$host_cpu" in
11821
 
      hppa*64*)
11822
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11823
 
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11824
 
        hardcode_libdir_separator_CXX=:
11825
 
        ;;
11826
 
      ia64*)
11827
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
11828
 
        ;;
11829
 
      *)
11830
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11831
 
        hardcode_libdir_separator_CXX=:
11832
 
        export_dynamic_flag_spec_CXX='${wl}-E'
11833
 
        ;;
11834
 
      esac
11835
 
    fi
11836
 
    case "$host_cpu" in
11837
 
    hppa*64*)
11838
 
      hardcode_direct_CXX=no
11839
 
      hardcode_shlibpath_var_CXX=no
11840
 
      ;;
11841
 
    ia64*)
11842
 
      hardcode_direct_CXX=no
11843
 
      hardcode_shlibpath_var_CXX=no
11844
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
11845
 
                                              # but as the default
11846
 
                                              # location of the library.
11847
 
      ;;
11848
 
    *)
11849
 
      hardcode_direct_CXX=yes
11850
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
11851
 
                                              # but as the default
11852
 
                                              # location of the library.
11853
 
      ;;
11854
 
    esac
11855
 
 
11856
 
    case $cc_basename in
11857
 
      CC)
11858
 
        # FIXME: insert proper C++ library support
11859
 
        ld_shlibs_CXX=no
11860
 
        ;;
11861
 
      aCC)
11862
 
        case "$host_cpu" in
11863
 
        hppa*64*|ia64*)
11864
 
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11865
 
          ;;
11866
 
        *)
11867
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11868
 
          ;;
11869
 
        esac
11870
 
        # Commands to make compiler produce verbose output that lists
11871
 
        # what "hidden" libraries, object files and flags are used when
11872
 
        # linking a shared library.
11873
 
        #
11874
 
        # There doesn't appear to be a way to prevent this compiler from
11875
 
        # explicitly linking system object files so we need to strip them
11876
 
        # from the output so that they don't get included in the library
11877
 
        # dependencies.
11878
 
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11879
 
        ;;
11880
 
      *)
11881
 
        if test "$GXX" = yes; then
11882
 
          if test $with_gnu_ld = no; then
11883
 
            case "$host_cpu" in
11884
 
            ia64*|hppa*64*)
11885
 
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11886
 
              ;;
11887
 
            *)
11888
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11889
 
              ;;
11890
 
            esac
11891
 
          fi
11892
 
        else
11893
 
          # FIXME: insert proper C++ library support
11894
 
          ld_shlibs_CXX=no
11895
 
        fi
11896
 
        ;;
11897
 
    esac
11898
 
    ;;
11899
 
  irix5* | irix6*)
11900
 
    case $cc_basename in
11901
 
      CC)
11902
 
        # SGI C++
11903
 
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11904
 
 
11905
 
        # Archives containing C++ object files must be created using
11906
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11907
 
        # necessary to make sure instantiated templates are included
11908
 
        # in the archive.
11909
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11910
 
        ;;
11911
 
      *)
11912
 
        if test "$GXX" = yes; then
11913
 
          if test "$with_gnu_ld" = no; then
11914
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11915
 
          else
11916
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11917
 
          fi
11918
 
        fi
11919
 
        link_all_deplibs_CXX=yes
11920
 
        ;;
11921
 
    esac
11922
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11923
 
    hardcode_libdir_separator_CXX=:
11924
 
    ;;
11925
 
  linux*)
11926
 
    case $cc_basename in
11927
 
      KCC)
11928
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11929
 
 
11930
 
        # KCC will only create a shared library if the output file
11931
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11932
 
        # to its proper name (with version) after linking.
11933
 
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv -f \$templib $lib'
11934
 
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv -f \$templib $lib'
11935
 
        # Commands to make compiler produce verbose output that lists
11936
 
        # what "hidden" libraries, object files and flags are used when
11937
 
        # linking a shared library.
11938
 
        #
11939
 
        # There doesn't appear to be a way to prevent this compiler from
11940
 
        # explicitly linking system object files so we need to strip them
11941
 
        # from the output so that they don't get included in the library
11942
 
        # dependencies.
11943
 
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11944
 
 
11945
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11946
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11947
 
 
11948
 
        # Archives containing C++ object files must be created using
11949
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11950
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11951
 
        ;;
11952
 
      icpc)
11953
 
        # Intel C++
11954
 
        with_gnu_ld=yes
11955
 
        archive_cmds_need_lc_CXX=no
11956
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11957
 
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11958
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11959
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11960
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11961
 
        ;;
11962
 
      cxx)
11963
 
        # Compaq C++
11964
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11965
 
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11966
 
 
11967
 
        runpath_var=LD_RUN_PATH
11968
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11969
 
        hardcode_libdir_separator_CXX=:
11970
 
 
11971
 
        # Commands to make compiler produce verbose output that lists
11972
 
        # what "hidden" libraries, object files and flags are used when
11973
 
        # linking a shared library.
11974
 
        #
11975
 
        # There doesn't appear to be a way to prevent this compiler from
11976
 
        # explicitly linking system object files so we need to strip them
11977
 
        # from the output so that they don't get included in the library
11978
 
        # dependencies.
11979
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11980
 
        ;;
11981
 
    esac
11982
 
    ;;
11983
 
  lynxos*)
11984
 
    # FIXME: insert proper C++ library support
11985
 
    ld_shlibs_CXX=no
11986
 
    ;;
11987
 
  m88k*)
11988
 
    # FIXME: insert proper C++ library support
11989
 
    ld_shlibs_CXX=no
11990
 
    ;;
11991
 
  mvs*)
11992
 
    case $cc_basename in
11993
 
      cxx)
11994
 
        # FIXME: insert proper C++ library support
11995
 
        ld_shlibs_CXX=no
11996
 
        ;;
11997
 
      *)
11998
 
        # FIXME: insert proper C++ library support
11999
 
        ld_shlibs_CXX=no
12000
 
        ;;
12001
 
    esac
12002
 
    ;;
12003
 
  netbsd*)
12004
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12005
 
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12006
 
      wlarc=
12007
 
      hardcode_libdir_flag_spec_CXX='-R$libdir'
12008
 
      hardcode_direct_CXX=yes
12009
 
      hardcode_shlibpath_var_CXX=no
12010
 
    fi
12011
 
    # Workaround some broken pre-1.5 toolchains
12012
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12013
 
    ;;
12014
 
  osf3*)
12015
 
    case $cc_basename in
12016
 
      KCC)
12017
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12018
 
 
12019
 
        # KCC will only create a shared library if the output file
12020
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
12021
 
        # to its proper name (with version) after linking.
12022
 
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv -f \$templib $lib'
12023
 
 
12024
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12025
 
        hardcode_libdir_separator_CXX=:
12026
 
 
12027
 
        # Archives containing C++ object files must be created using
12028
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12029
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12030
 
 
12031
 
        ;;
12032
 
      RCC)
12033
 
        # Rational C++ 2.4.1
12034
 
        # FIXME: insert proper C++ library support
12035
 
        ld_shlibs_CXX=no
12036
 
        ;;
12037
 
      cxx)
12038
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12039
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12040
 
 
12041
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12042
 
        hardcode_libdir_separator_CXX=:
12043
 
 
12044
 
        # Commands to make compiler produce verbose output that lists
12045
 
        # what "hidden" libraries, object files and flags are used when
12046
 
        # linking a shared library.
12047
 
        #
12048
 
        # There doesn't appear to be a way to prevent this compiler from
12049
 
        # explicitly linking system object files so we need to strip them
12050
 
        # from the output so that they don't get included in the library
12051
 
        # dependencies.
12052
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12053
 
        ;;
12054
 
      *)
12055
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12056
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12057
 
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12058
 
 
12059
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12060
 
          hardcode_libdir_separator_CXX=:
12061
 
 
12062
 
          # Commands to make compiler produce verbose output that lists
12063
 
          # what "hidden" libraries, object files and flags are used when
12064
 
          # linking a shared library.
12065
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12066
 
 
12067
 
        else
12068
 
          # FIXME: insert proper C++ library support
12069
 
          ld_shlibs_CXX=no
12070
 
        fi
12071
 
        ;;
12072
 
    esac
12073
 
    ;;
12074
 
  osf4* | osf5*)
12075
 
    case $cc_basename in
12076
 
      KCC)
12077
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12078
 
 
12079
 
        # KCC will only create a shared library if the output file
12080
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
12081
 
        # to its proper name (with version) after linking.
12082
 
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv -f \$templib $lib'
12083
 
 
12084
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12085
 
        hardcode_libdir_separator_CXX=:
12086
 
 
12087
 
        # Archives containing C++ object files must be created using
12088
 
        # the KAI C++ compiler.
12089
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12090
 
        ;;
12091
 
      RCC)
12092
 
        # Rational C++ 2.4.1
12093
 
        # FIXME: insert proper C++ library support
12094
 
        ld_shlibs_CXX=no
12095
 
        ;;
12096
 
      cxx)
12097
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
12098
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12099
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12100
 
          echo "-hidden">> $lib.exp~
12101
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
12102
 
          $rm $lib.exp'
12103
 
 
12104
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12105
 
        hardcode_libdir_separator_CXX=:
12106
 
 
12107
 
        # Commands to make compiler produce verbose output that lists
12108
 
        # what "hidden" libraries, object files and flags are used when
12109
 
        # linking a shared library.
12110
 
        #
12111
 
        # There doesn't appear to be a way to prevent this compiler from
12112
 
        # explicitly linking system object files so we need to strip them
12113
 
        # from the output so that they don't get included in the library
12114
 
        # dependencies.
12115
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12116
 
        ;;
12117
 
      *)
12118
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12119
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12120
 
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12121
 
 
12122
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12123
 
          hardcode_libdir_separator_CXX=:
12124
 
 
12125
 
          # Commands to make compiler produce verbose output that lists
12126
 
          # what "hidden" libraries, object files and flags are used when
12127
 
          # linking a shared library.
12128
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12129
 
 
12130
 
        else
12131
 
          # FIXME: insert proper C++ library support
12132
 
          ld_shlibs_CXX=no
12133
 
        fi
12134
 
        ;;
12135
 
    esac
12136
 
    ;;
12137
 
  psos*)
12138
 
    # FIXME: insert proper C++ library support
12139
 
    ld_shlibs_CXX=no
12140
 
    ;;
12141
 
  sco*)
12142
 
    archive_cmds_need_lc_CXX=no
12143
 
    case $cc_basename in
12144
 
      CC)
12145
 
        # FIXME: insert proper C++ library support
12146
 
        ld_shlibs_CXX=no
12147
 
        ;;
12148
 
      *)
12149
 
        # FIXME: insert proper C++ library support
12150
 
        ld_shlibs_CXX=no
12151
 
        ;;
12152
 
    esac
12153
 
    ;;
12154
 
  sunos4*)
12155
 
    case $cc_basename in
12156
 
      CC)
12157
 
        # Sun C++ 4.x
12158
 
        # FIXME: insert proper C++ library support
12159
 
        ld_shlibs_CXX=no
12160
 
        ;;
12161
 
      lcc)
12162
 
        # Lucid
12163
 
        # FIXME: insert proper C++ library support
12164
 
        ld_shlibs_CXX=no
12165
 
        ;;
12166
 
      *)
12167
 
        # FIXME: insert proper C++ library support
12168
 
        ld_shlibs_CXX=no
12169
 
        ;;
12170
 
    esac
12171
 
    ;;
12172
 
  solaris*)
12173
 
    case $cc_basename in
12174
 
      CC)
12175
 
        # Sun C++ 4.2, 5.x and Centerline C++
12176
 
        no_undefined_flag_CXX=' -zdefs'
12177
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12178
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12179
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12180
 
 
12181
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
12182
 
        hardcode_shlibpath_var_CXX=no
12183
 
        case $host_os in
12184
 
          solaris2.0-5 | solaris2.0-5.*) ;;
12185
 
          *)
12186
 
            # The C++ compiler is used as linker so we must use $wl
12187
 
            # flag to pass the commands to the underlying system
12188
 
            # linker.
12189
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
12190
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12191
 
            ;;
12192
 
        esac
12193
 
        link_all_deplibs_CXX=yes
12194
 
 
12195
 
        # Commands to make compiler produce verbose output that lists
12196
 
        # what "hidden" libraries, object files and flags are used when
12197
 
        # linking a shared library.
12198
 
        #
12199
 
        # There doesn't appear to be a way to prevent this compiler from
12200
 
        # explicitly linking system object files so we need to strip them
12201
 
        # from the output so that they don't get included in the library
12202
 
        # dependencies.
12203
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12204
 
 
12205
 
        # Archives containing C++ object files must be created using
12206
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12207
 
        # necessary to make sure instantiated templates are included
12208
 
        # in the archive.
12209
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12210
 
        ;;
12211
 
      gcx)
12212
 
        # Green Hills C++ Compiler
12213
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12214
 
 
12215
 
        # The C++ compiler must be used to create the archive.
12216
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12217
 
        ;;
12218
 
      *)
12219
 
        # GNU C++ compiler with Solaris linker
12220
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12221
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12222
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
12223
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12224
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12225
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12226
 
 
12227
 
            # Commands to make compiler produce verbose output that lists
12228
 
            # what "hidden" libraries, object files and flags are used when
12229
 
            # linking a shared library.
12230
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12231
 
          else
12232
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
12233
 
            # platform.
12234
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12235
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12236
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12237
 
 
12238
 
            # Commands to make compiler produce verbose output that lists
12239
 
            # what "hidden" libraries, object files and flags are used when
12240
 
            # linking a shared library.
12241
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12242
 
          fi
12243
 
 
12244
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12245
 
        fi
12246
 
        ;;
12247
 
    esac
12248
 
    ;;
12249
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12250
 
    archive_cmds_need_lc_CXX=no
12251
 
    ;;
12252
 
  tandem*)
12253
 
    case $cc_basename in
12254
 
      NCC)
12255
 
        # NonStop-UX NCC 3.20
12256
 
        # FIXME: insert proper C++ library support
12257
 
        ld_shlibs_CXX=no
12258
 
        ;;
12259
 
      *)
12260
 
        # FIXME: insert proper C++ library support
12261
 
        ld_shlibs_CXX=no
12262
 
        ;;
12263
 
    esac
12264
 
    ;;
12265
 
  vxworks*)
12266
 
    # FIXME: insert proper C++ library support
12267
 
    ld_shlibs_CXX=no
12268
 
    ;;
12269
 
  *)
12270
 
    # FIXME: insert proper C++ library support
12271
 
    ld_shlibs_CXX=no
12272
 
    ;;
12273
 
esac
12274
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12275
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12276
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
12277
 
 
12278
 
GCC_CXX="$GXX"
12279
 
LD_CXX="$LD"
12280
 
 
12281
 
 
12282
 
cat > conftest.$ac_ext <<EOF
12283
 
class Foo
12284
 
{
12285
 
public:
12286
 
  Foo (void) { a = 0; }
12287
 
private:
12288
 
  int a;
12289
 
};
12290
 
EOF
12291
 
 
12292
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12293
 
  (eval $ac_compile) 2>&5
12294
 
  ac_status=$?
12295
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296
 
  (exit $ac_status); }; then
12297
 
  # Parse the compiler output and extract the necessary
12298
 
  # objects, libraries and library flags.
12299
 
 
12300
 
  # Sentinel used to keep track of whether or not we are before
12301
 
  # the conftest object file.
12302
 
  pre_test_object_deps_done=no
12303
 
 
12304
 
  # The `*' in the case matches for architectures that use `case' in
12305
 
  # $output_verbose_cmd can trigger glob expansion during the loop
12306
 
  # eval without this substitution.
12307
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12308
 
 
12309
 
  for p in `eval $output_verbose_link_cmd`; do
12310
 
    case $p in
12311
 
 
12312
 
    -L* | -R* | -l*)
12313
 
       # Some compilers place space between "-{L,R}" and the path.
12314
 
       # Remove the space.
12315
 
       if test $p = "-L" \
12316
 
          || test $p = "-R"; then
12317
 
         prev=$p
12318
 
         continue
12319
 
       else
12320
 
         prev=
12321
 
       fi
12322
 
 
12323
 
       if test "$pre_test_object_deps_done" = no; then
12324
 
         case $p in
12325
 
         -L* | -R*)
12326
 
           # Internal compiler library paths should come after those
12327
 
           # provided the user.  The postdeps already come after the
12328
 
           # user supplied libs so there is no need to process them.
12329
 
           if test -z "$compiler_lib_search_path_CXX"; then
12330
 
             compiler_lib_search_path_CXX="${prev}${p}"
12331
 
           else
12332
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12333
 
           fi
12334
 
           ;;
12335
 
         # The "-l" case would never come before the object being
12336
 
         # linked, so don't bother handling this case.
12337
 
         esac
12338
 
       else
12339
 
         if test -z "$postdeps_CXX"; then
12340
 
           postdeps_CXX="${prev}${p}"
12341
 
         else
12342
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12343
 
         fi
12344
 
       fi
12345
 
       ;;
12346
 
 
12347
 
    *.$objext)
12348
 
       # This assumes that the test object file only shows up
12349
 
       # once in the compiler output.
12350
 
       if test "$p" = "conftest.$objext"; then
12351
 
         pre_test_object_deps_done=yes
12352
 
         continue
12353
 
       fi
12354
 
 
12355
 
       if test "$pre_test_object_deps_done" = no; then
12356
 
         if test -z "$predep_objects_CXX"; then
12357
 
           predep_objects_CXX="$p"
12358
 
         else
12359
 
           predep_objects_CXX="$predep_objects_CXX $p"
12360
 
         fi
12361
 
       else
12362
 
         if test -z "$postdep_objects_CXX"; then
12363
 
           postdep_objects_CXX="$p"
12364
 
         else
12365
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
12366
 
         fi
12367
 
       fi
12368
 
       ;;
12369
 
 
12370
 
    *) ;; # Ignore the rest.
12371
 
 
12372
 
    esac
12373
 
  done
12374
 
 
12375
 
  # Clean up.
12376
 
  rm -f a.out a.exe
12377
 
else
12378
 
  echo "libtool.m4: error: problem compiling CXX test program"
12379
 
fi
12380
 
 
12381
 
$rm -f confest.$objext
12382
 
 
12383
 
case " $postdeps_CXX " in
12384
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12385
 
esac
12386
 
 
12387
 
lt_prog_compiler_wl_CXX=
12388
 
lt_prog_compiler_pic_CXX=
12389
 
lt_prog_compiler_static_CXX=
12390
 
 
12391
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12392
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12393
 
 
12394
 
  # C++ specific cases for pic, static, wl, etc.
12395
 
  if test "$GXX" = yes; then
12396
 
    lt_prog_compiler_wl_CXX='-Wl,'
12397
 
    lt_prog_compiler_static_CXX='-static'
12398
 
 
12399
 
    case $host_os in
12400
 
    aix*)
12401
 
      # All AIX code is PIC.
12402
 
      if test "$host_cpu" = ia64; then
12403
 
        # AIX 5 now supports IA64 processor
12404
 
        lt_prog_compiler_static_CXX='-Bstatic'
12405
 
      fi
12406
 
      ;;
12407
 
    amigaos*)
12408
 
      # FIXME: we need at least 68020 code to build shared libraries, but
12409
 
      # adding the `-m68020' flag to GCC prevents building anything better,
12410
 
      # like `-m68040'.
12411
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12412
 
      ;;
12413
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12414
 
      # PIC is the default for these OSes.
12415
 
      ;;
12416
 
    mingw* | os2* | pw32*)
12417
 
      # This hack is so that the source file can tell whether it is being
12418
 
      # built for inclusion in a dll (and should export symbols for example).
12419
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12420
 
      ;;
12421
 
    darwin* | rhapsody*)
12422
 
      # PIC is the default on this platform
12423
 
      # Common symbols not allowed in MH_DYLIB files
12424
 
      lt_prog_compiler_pic_CXX='-fno-common'
12425
 
      ;;
12426
 
    *djgpp*)
12427
 
      # DJGPP does not support shared libraries at all
12428
 
      lt_prog_compiler_pic_CXX=
12429
 
      ;;
12430
 
    sysv4*MP*)
12431
 
      if test -d /usr/nec; then
12432
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
12433
 
      fi
12434
 
      ;;
12435
 
    hpux*)
12436
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12437
 
      # not for PA HP-UX.
12438
 
      case "$host_cpu" in
12439
 
      hppa*64*|ia64*)
12440
 
        ;;
12441
 
      *)
12442
 
        lt_prog_compiler_pic_CXX='-fPIC'
12443
 
        ;;
12444
 
      esac
12445
 
      ;;
12446
 
    *)
12447
 
      lt_prog_compiler_pic_CXX='-fPIC'
12448
 
      ;;
12449
 
    esac
12450
 
  else
12451
 
    case $host_os in
12452
 
      aix4* | aix5*)
12453
 
        # All AIX code is PIC.
12454
 
        if test "$host_cpu" = ia64; then
12455
 
          # AIX 5 now supports IA64 processor
12456
 
          lt_prog_compiler_static_CXX='-Bstatic'
12457
 
        else
12458
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12459
 
        fi
12460
 
        ;;
12461
 
      chorus*)
12462
 
        case $cc_basename in
12463
 
        cxch68)
12464
 
          # Green Hills C++ Compiler
12465
 
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12466
 
          ;;
12467
 
        esac
12468
 
        ;;
12469
 
      dgux*)
12470
 
        case $cc_basename in
12471
 
          ec++)
12472
 
            lt_prog_compiler_pic_CXX='-KPIC'
12473
 
            ;;
12474
 
          ghcx)
12475
 
            # Green Hills C++ Compiler
12476
 
            lt_prog_compiler_pic_CXX='-pic'
12477
 
            ;;
12478
 
          *)
12479
 
            ;;
12480
 
        esac
12481
 
        ;;
12482
 
      freebsd* | kfreebsd*-gnu)
12483
 
        # FreeBSD uses GNU C++
12484
 
        ;;
12485
 
      hpux9* | hpux10* | hpux11*)
12486
 
        case $cc_basename in
12487
 
          CC)
12488
 
            lt_prog_compiler_wl_CXX='-Wl,'
12489
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12490
 
            if test "$host_cpu" != ia64; then
12491
 
              lt_prog_compiler_pic_CXX='+Z'
12492
 
            fi
12493
 
            ;;
12494
 
          aCC)
12495
 
            lt_prog_compiler_wl_CXX='-Wl,'
12496
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12497
 
            case "$host_cpu" in
12498
 
            hppa*64*|ia64*)
12499
 
              # +Z the default
12500
 
              ;;
12501
 
            *)
12502
 
              lt_prog_compiler_pic_CXX='+Z'
12503
 
              ;;
12504
 
            esac
12505
 
            ;;
12506
 
          *)
12507
 
            ;;
12508
 
        esac
12509
 
        ;;
12510
 
      irix5* | irix6* | nonstopux*)
12511
 
        case $cc_basename in
12512
 
          CC)
12513
 
            lt_prog_compiler_wl_CXX='-Wl,'
12514
 
            lt_prog_compiler_static_CXX='-non_shared'
12515
 
            # CC pic flag -KPIC is the default.
12516
 
            ;;
12517
 
          *)
12518
 
            ;;
12519
 
        esac
12520
 
        ;;
12521
 
      linux*)
12522
 
        case $cc_basename in
12523
 
          KCC)
12524
 
            # KAI C++ Compiler
12525
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12526
 
            lt_prog_compiler_pic_CXX='-fPIC'
12527
 
            ;;
12528
 
          icpc)
12529
 
            # Intel C++
12530
 
            lt_prog_compiler_wl_CXX='-Wl,'
12531
 
            lt_prog_compiler_pic_CXX='-KPIC'
12532
 
            lt_prog_compiler_static_CXX='-static'
12533
 
            ;;
12534
 
          cxx)
12535
 
            # Compaq C++
12536
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12537
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12538
 
            lt_prog_compiler_pic_CXX=
12539
 
            lt_prog_compiler_static_CXX='-non_shared'
12540
 
            ;;
12541
 
          *)
12542
 
            ;;
12543
 
        esac
12544
 
        ;;
12545
 
      lynxos*)
12546
 
        ;;
12547
 
      m88k*)
12548
 
        ;;
12549
 
      mvs*)
12550
 
        case $cc_basename in
12551
 
          cxx)
12552
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
12553
 
            ;;
12554
 
          *)
12555
 
            ;;
12556
 
        esac
12557
 
        ;;
12558
 
      netbsd*)
12559
 
        ;;
12560
 
      osf3* | osf4* | osf5*)
12561
 
        case $cc_basename in
12562
 
          KCC)
12563
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12564
 
            ;;
12565
 
          RCC)
12566
 
            # Rational C++ 2.4.1
12567
 
            lt_prog_compiler_pic_CXX='-pic'
12568
 
            ;;
12569
 
          cxx)
12570
 
            # Digital/Compaq C++
12571
 
            lt_prog_compiler_wl_CXX='-Wl,'
12572
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12573
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12574
 
            lt_prog_compiler_pic_CXX=
12575
 
            lt_prog_compiler_static_CXX='-non_shared'
12576
 
            ;;
12577
 
          *)
12578
 
            ;;
12579
 
        esac
12580
 
        ;;
12581
 
      psos*)
12582
 
        ;;
12583
 
      sco*)
12584
 
        case $cc_basename in
12585
 
          CC)
12586
 
            lt_prog_compiler_pic_CXX='-fPIC'
12587
 
            ;;
12588
 
          *)
12589
 
            ;;
12590
 
        esac
12591
 
        ;;
12592
 
      solaris*)
12593
 
        case $cc_basename in
12594
 
          CC)
12595
 
            # Sun C++ 4.2, 5.x and Centerline C++
12596
 
            lt_prog_compiler_pic_CXX='-KPIC'
12597
 
            lt_prog_compiler_static_CXX='-Bstatic'
12598
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
12599
 
            ;;
12600
 
          gcx)
12601
 
            # Green Hills C++ Compiler
12602
 
            lt_prog_compiler_pic_CXX='-PIC'
12603
 
            ;;
12604
 
          *)
12605
 
            ;;
12606
 
        esac
12607
 
        ;;
12608
 
      sunos4*)
12609
 
        case $cc_basename in
12610
 
          CC)
12611
 
            # Sun C++ 4.x
12612
 
            lt_prog_compiler_pic_CXX='-pic'
12613
 
            lt_prog_compiler_static_CXX='-Bstatic'
12614
 
            ;;
12615
 
          lcc)
12616
 
            # Lucid
12617
 
            lt_prog_compiler_pic_CXX='-pic'
12618
 
            ;;
12619
 
          *)
12620
 
            ;;
12621
 
        esac
12622
 
        ;;
12623
 
      tandem*)
12624
 
        case $cc_basename in
12625
 
          NCC)
12626
 
            # NonStop-UX NCC 3.20
12627
 
            lt_prog_compiler_pic_CXX='-KPIC'
12628
 
            ;;
12629
 
          *)
12630
 
            ;;
12631
 
        esac
12632
 
        ;;
12633
 
      unixware*)
12634
 
        ;;
12635
 
      vxworks*)
12636
 
        ;;
12637
 
      *)
12638
 
        lt_prog_compiler_can_build_shared_CXX=no
12639
 
        ;;
12640
 
    esac
12641
 
  fi
12642
 
 
12643
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12644
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12645
 
 
12646
 
#
12647
 
# Check to make sure the PIC flag actually works.
12648
 
#
12649
 
if test -n "$lt_prog_compiler_pic_CXX"; then
12650
 
 
12651
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12652
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12653
 
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12654
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12655
 
else
12656
 
  lt_prog_compiler_pic_works_CXX=no
12657
 
  ac_outfile=conftest.$ac_objext
12658
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12659
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12660
 
   # Insert the option either (1) after the last *FLAGS variable, or
12661
 
   # (2) before a word containing "conftest.", or (3) at the end.
12662
 
   # Note that $ac_compile itself does not contain backslashes and begins
12663
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12664
 
   # The option is referenced via a variable to avoid confusing sed.
12665
 
   lt_compile=`echo "$ac_compile" | $SED \
12666
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12667
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12668
 
   -e 's:$: $lt_compiler_flag:'`
12669
 
   (eval echo "\"\$as_me:12669: $lt_compile\"" >&5)
12670
 
   (eval "$lt_compile" 2>conftest.err)
12671
 
   ac_status=$?
12672
 
   cat conftest.err >&5
12673
 
   echo "$as_me:12673: \$? = $ac_status" >&5
12674
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
12675
 
     # The compiler can only warn and ignore the option if not recognized
12676
 
     # So say no if there are warnings
12677
 
     if test ! -s conftest.err; then
12678
 
       lt_prog_compiler_pic_works_CXX=yes
12679
 
     fi
12680
 
   fi
12681
 
   $rm conftest*
12682
 
 
12683
 
fi
12684
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12685
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12686
 
 
12687
 
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12688
 
    case $lt_prog_compiler_pic_CXX in
12689
 
     "" | " "*) ;;
12690
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12691
 
     esac
12692
 
else
12693
 
    lt_prog_compiler_pic_CXX=
12694
 
     lt_prog_compiler_can_build_shared_CXX=no
12695
 
fi
12696
 
 
12697
 
fi
12698
 
case "$host_os" in
12699
 
  # For platforms which do not support PIC, -DPIC is meaningless:
12700
 
  *djgpp*)
12701
 
    lt_prog_compiler_pic_CXX=
12702
 
    ;;
12703
 
  *)
12704
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12705
 
    ;;
12706
 
esac
12707
 
 
12708
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12709
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12710
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12711
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12712
 
else
12713
 
  lt_cv_prog_compiler_c_o_CXX=no
12714
 
   $rm -r conftest 2>/dev/null
12715
 
   mkdir conftest
12716
 
   cd conftest
12717
 
   mkdir out
12718
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12719
 
 
12720
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12721
 
   # Insert the option either (1) after the last *FLAGS variable, or
12722
 
   # (2) before a word containing "conftest.", or (3) at the end.
12723
 
   # Note that $ac_compile itself does not contain backslashes and begins
12724
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12725
 
   lt_compile=`echo "$ac_compile" | $SED \
12726
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12727
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12728
 
   -e 's:$: $lt_compiler_flag:'`
12729
 
   (eval echo "\"\$as_me:12729: $lt_compile\"" >&5)
12730
 
   (eval "$lt_compile" 2>out/conftest.err)
12731
 
   ac_status=$?
12732
 
   cat out/conftest.err >&5
12733
 
   echo "$as_me:12733: \$? = $ac_status" >&5
12734
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12735
 
   then
12736
 
     # The compiler can only warn and ignore the option if not recognized
12737
 
     # So say no if there are warnings
12738
 
     if test ! -s out/conftest.err; then
12739
 
       lt_cv_prog_compiler_c_o_CXX=yes
12740
 
     fi
12741
 
   fi
12742
 
   chmod u+w .
12743
 
   $rm conftest*
12744
 
   # SGI C++ compiler will create directory out/ii_files/ for
12745
 
   # template instantiation
12746
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12747
 
   $rm out/* && rmdir out
12748
 
   cd ..
12749
 
   rmdir conftest
12750
 
   $rm conftest*
12751
 
 
12752
 
fi
12753
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12754
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12755
 
 
12756
 
 
12757
 
hard_links="nottested"
12758
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12759
 
  # do not overwrite the value of need_locks provided by the user
12760
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12761
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12762
 
  hard_links=yes
12763
 
  $rm conftest*
12764
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12765
 
  touch conftest.a
12766
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
12767
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12768
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
12769
 
echo "${ECHO_T}$hard_links" >&6
12770
 
  if test "$hard_links" = no; then
12771
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12772
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12773
 
    need_locks=warn
12774
 
  fi
12775
 
else
12776
 
  need_locks=no
12777
 
fi
12778
 
 
12779
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12780
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12781
 
 
12782
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12783
 
  case $host_os in
12784
 
  aix4* | aix5*)
12785
 
    # If we're using GNU nm, then we don't want the "-C" option.
12786
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12787
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12788
 
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12789
 
    else
12790
 
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12791
 
    fi
12792
 
    ;;
12793
 
  pw32*)
12794
 
    export_symbols_cmds_CXX="$ltdll_cmds"
12795
 
  ;;
12796
 
  cygwin* | mingw*)
12797
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12798
 
  ;;
12799
 
  *)
12800
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12801
 
  ;;
12802
 
  esac
12803
 
 
12804
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12805
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12806
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
12807
 
 
12808
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12809
 
if test "$GCC" = yes; then
12810
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12811
 
fi
12812
 
 
12813
 
#
12814
 
# Do we need to explicitly link libc?
12815
 
#
12816
 
case "x$archive_cmds_need_lc_CXX" in
12817
 
x|xyes)
12818
 
  # Assume -lc should be added
12819
 
  archive_cmds_need_lc_CXX=yes
12820
 
 
12821
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
12822
 
    case $archive_cmds_CXX in
12823
 
    *'~'*)
12824
 
      # FIXME: we may have to deal with multi-command sequences.
12825
 
      ;;
12826
 
    '$CC '*)
12827
 
      # Test whether the compiler implicitly links with -lc since on some
12828
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12829
 
      # to ld, don't add -lc before -lgcc.
12830
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12831
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12832
 
      $rm conftest*
12833
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12834
 
 
12835
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12836
 
  (eval $ac_compile) 2>&5
12837
 
  ac_status=$?
12838
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839
 
  (exit $ac_status); } 2>conftest.err; then
12840
 
        soname=conftest
12841
 
        lib=conftest
12842
 
        libobjs=conftest.$ac_objext
12843
 
        deplibs=
12844
 
        wl=$lt_prog_compiler_wl_CXX
12845
 
        compiler_flags=-v
12846
 
        linker_flags=-v
12847
 
        verstring=
12848
 
        output_objdir=.
12849
 
        libname=conftest
12850
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12851
 
        allow_undefined_flag_CXX=
12852
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12853
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12854
 
  ac_status=$?
12855
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856
 
  (exit $ac_status); }
12857
 
        then
12858
 
          archive_cmds_need_lc_CXX=no
12859
 
        else
12860
 
          archive_cmds_need_lc_CXX=yes
12861
 
        fi
12862
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12863
 
      else
12864
 
        cat conftest.err 1>&5
12865
 
      fi
12866
 
      $rm conftest*
12867
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12868
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12869
 
      ;;
12870
 
    esac
12871
 
  fi
12872
 
  ;;
12873
 
esac
12874
 
 
12875
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12876
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12877
 
library_names_spec=
12878
 
libname_spec='lib$name'
12879
 
soname_spec=
12880
 
shrext_cmds=".so"
12881
 
postinstall_cmds=
12882
 
postuninstall_cmds=
12883
 
finish_cmds=
12884
 
finish_eval=
12885
 
shlibpath_var=
12886
 
shlibpath_overrides_runpath=unknown
12887
 
version_type=none
12888
 
dynamic_linker="$host_os ld.so"
12889
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12890
 
if test "$GCC" = yes; then
12891
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12892
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12893
 
    # if the path contains ";" then we assume it to be the separator
12894
 
    # otherwise default to the standard path separator (i.e. ":") - it is
12895
 
    # assumed that no part of a normal pathname contains ";" but that should
12896
 
    # okay in the real world where ";" in dirpaths is itself problematic.
12897
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12898
 
  else
12899
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12900
 
  fi
12901
 
else
12902
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12903
 
fi
12904
 
need_lib_prefix=unknown
12905
 
hardcode_into_libs=no
12906
 
 
12907
 
# when you set need_version to no, make sure it does not cause -set_version
12908
 
# flags to be left without arguments
12909
 
need_version=unknown
12910
 
 
12911
 
case $host_os in
12912
 
aix3*)
12913
 
  version_type=linux
12914
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12915
 
  shlibpath_var=LIBPATH
12916
 
 
12917
 
  # AIX 3 has no versioning support, so we append a major version to the name.
12918
 
  soname_spec='${libname}${release}${shared_ext}$major'
12919
 
  ;;
12920
 
 
12921
 
aix4* | aix5*)
12922
 
  version_type=linux
12923
 
  need_lib_prefix=no
12924
 
  need_version=no
12925
 
  hardcode_into_libs=yes
12926
 
  if test "$host_cpu" = ia64; then
12927
 
    # AIX 5 supports IA64
12928
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12929
 
    shlibpath_var=LD_LIBRARY_PATH
12930
 
  else
12931
 
    # With GCC up to 2.95.x, collect2 would create an import file
12932
 
    # for dependence libraries.  The import file would start with
12933
 
    # the line `#! .'.  This would cause the generated library to
12934
 
    # depend on `.', always an invalid library.  This was fixed in
12935
 
    # development snapshots of GCC prior to 3.0.
12936
 
    case $host_os in
12937
 
      aix4 | aix4.[01] | aix4.[01].*)
12938
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12939
 
           echo ' yes '
12940
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12941
 
        :
12942
 
      else
12943
 
        can_build_shared=no
12944
 
      fi
12945
 
      ;;
12946
 
    esac
12947
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12948
 
    # soname into executable. Probably we can add versioning support to
12949
 
    # collect2, so additional links can be useful in future.
12950
 
    if test "$aix_use_runtimelinking" = yes; then
12951
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12952
 
      # instead of lib<name>.a to let people know that these are not
12953
 
      # typical AIX shared libraries.
12954
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12955
 
    else
12956
 
      # We preserve .a as extension for shared libraries through AIX4.2
12957
 
      # and later when we are not doing run time linking.
12958
 
      library_names_spec='${libname}${release}.a $libname.a'
12959
 
      soname_spec='${libname}${release}${shared_ext}$major'
12960
 
    fi
12961
 
    shlibpath_var=LIBPATH
12962
 
  fi
12963
 
  ;;
12964
 
 
12965
 
amigaos*)
12966
 
  library_names_spec='$libname.ixlibrary $libname.a'
12967
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12968
 
  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'
12969
 
  ;;
12970
 
 
12971
 
beos*)
12972
 
  library_names_spec='${libname}${shared_ext}'
12973
 
  dynamic_linker="$host_os ld.so"
12974
 
  shlibpath_var=LIBRARY_PATH
12975
 
  ;;
12976
 
 
12977
 
bsdi4*)
12978
 
  version_type=linux
12979
 
  need_version=no
12980
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12981
 
  soname_spec='${libname}${release}${shared_ext}$major'
12982
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12983
 
  shlibpath_var=LD_LIBRARY_PATH
12984
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12985
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12986
 
  # the default ld.so.conf also contains /usr/contrib/lib and
12987
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12988
 
  # libtool to hard-code these into programs
12989
 
  ;;
12990
 
 
12991
 
cygwin* | mingw* | pw32*)
12992
 
  version_type=windows
12993
 
  shrext_cmds=".dll"
12994
 
  need_version=no
12995
 
  need_lib_prefix=no
12996
 
 
12997
 
  case $GCC,$host_os in
12998
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
12999
 
    library_names_spec='$libname.dll.a'
13000
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13001
 
    postinstall_cmds='base_file=`basename \${file}`~
13002
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13003
 
      dldir=$destdir/`dirname \$dlpath`~
13004
 
      test -d \$dldir || mkdir -p \$dldir~
13005
 
      $install_prog $dir/$dlname \$dldir/$dlname'
13006
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13007
 
      dlpath=$dir/\$dldll~
13008
 
       $rm \$dlpath'
13009
 
    shlibpath_overrides_runpath=yes
13010
 
 
13011
 
    case $host_os in
13012
 
    cygwin*)
13013
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13014
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13015
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13016
 
      ;;
13017
 
    mingw*)
13018
 
      # MinGW DLLs use traditional 'lib' prefix
13019
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13020
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13021
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13022
 
        # It is most probably a Windows format PATH printed by
13023
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13024
 
        # path with ; separators, and with drive letters. We can handle the
13025
 
        # drive letters (cygwin fileutils understands them), so leave them,
13026
 
        # especially as we might pass files found there to a mingw objdump,
13027
 
        # which wouldn't understand a cygwinified path. Ahh.
13028
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13029
 
      else
13030
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13031
 
      fi
13032
 
      ;;
13033
 
    pw32*)
13034
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
13035
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13036
 
      ;;
13037
 
    esac
13038
 
    ;;
13039
 
 
13040
 
  *)
13041
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13042
 
    ;;
13043
 
  esac
13044
 
  dynamic_linker='Win32 ld.exe'
13045
 
  # FIXME: first we should search . and the directory the executable is in
13046
 
  shlibpath_var=PATH
13047
 
  ;;
13048
 
 
13049
 
darwin* | rhapsody*)
13050
 
  dynamic_linker="$host_os dyld"
13051
 
  version_type=darwin
13052
 
  need_lib_prefix=no
13053
 
  need_version=no
13054
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13055
 
  soname_spec='${libname}${release}${major}$shared_ext'
13056
 
  shlibpath_overrides_runpath=yes
13057
 
  shlibpath_var=DYLD_LIBRARY_PATH
13058
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13059
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13060
 
  if test "$GCC" = yes; then
13061
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13062
 
  else
13063
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13064
 
  fi
13065
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13066
 
  ;;
13067
 
 
13068
 
dgux*)
13069
 
  version_type=linux
13070
 
  need_lib_prefix=no
13071
 
  need_version=no
13072
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13073
 
  soname_spec='${libname}${release}${shared_ext}$major'
13074
 
  shlibpath_var=LD_LIBRARY_PATH
13075
 
  ;;
13076
 
 
13077
 
freebsd1*)
13078
 
  dynamic_linker=no
13079
 
  ;;
13080
 
 
13081
 
kfreebsd*-gnu)
13082
 
  version_type=linux
13083
 
  need_lib_prefix=no
13084
 
  need_version=no
13085
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13086
 
  soname_spec='${libname}${release}${shared_ext}$major'
13087
 
  shlibpath_var=LD_LIBRARY_PATH
13088
 
  shlibpath_overrides_runpath=no
13089
 
  hardcode_into_libs=yes
13090
 
  dynamic_linker='GNU ld.so'
13091
 
  ;;
13092
 
 
13093
 
freebsd*)
13094
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13095
 
  version_type=freebsd-$objformat
13096
 
  case $version_type in
13097
 
    freebsd-elf*)
13098
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13099
 
      need_version=no
13100
 
      need_lib_prefix=no
13101
 
      ;;
13102
 
    freebsd-*)
13103
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13104
 
      need_version=yes
13105
 
      ;;
13106
 
  esac
13107
 
  shlibpath_var=LD_LIBRARY_PATH
13108
 
  case $host_os in
13109
 
  freebsd2*)
13110
 
    shlibpath_overrides_runpath=yes
13111
 
    ;;
13112
 
  freebsd3.01* | freebsdelf3.01*)
13113
 
    shlibpath_overrides_runpath=yes
13114
 
    hardcode_into_libs=yes
13115
 
    ;;
13116
 
  *) # from 3.2 on
13117
 
    shlibpath_overrides_runpath=no
13118
 
    hardcode_into_libs=yes
13119
 
    ;;
13120
 
  esac
13121
 
  ;;
13122
 
 
13123
 
gnu*)
13124
 
  version_type=linux
13125
 
  need_lib_prefix=no
13126
 
  need_version=no
13127
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13128
 
  soname_spec='${libname}${release}${shared_ext}$major'
13129
 
  shlibpath_var=LD_LIBRARY_PATH
13130
 
  hardcode_into_libs=yes
13131
 
  ;;
13132
 
 
13133
 
hpux9* | hpux10* | hpux11*)
13134
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
13135
 
  # link against other versions.
13136
 
  version_type=sunos
13137
 
  need_lib_prefix=no
13138
 
  need_version=no
13139
 
  case "$host_cpu" in
13140
 
  ia64*)
13141
 
    shrext_cmds='.so'
13142
 
    hardcode_into_libs=yes
13143
 
    dynamic_linker="$host_os dld.so"
13144
 
    shlibpath_var=LD_LIBRARY_PATH
13145
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13146
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13147
 
    soname_spec='${libname}${release}${shared_ext}$major'
13148
 
    if test "X$HPUX_IA64_MODE" = X32; then
13149
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13150
 
    else
13151
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13152
 
    fi
13153
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13154
 
    ;;
13155
 
   hppa*64*)
13156
 
     shrext_cmds='.sl'
13157
 
     hardcode_into_libs=yes
13158
 
     dynamic_linker="$host_os dld.sl"
13159
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13160
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13161
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13162
 
     soname_spec='${libname}${release}${shared_ext}$major'
13163
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13164
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13165
 
     ;;
13166
 
   *)
13167
 
    shrext_cmds='.sl'
13168
 
    dynamic_linker="$host_os dld.sl"
13169
 
    shlibpath_var=SHLIB_PATH
13170
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13171
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13172
 
    soname_spec='${libname}${release}${shared_ext}$major'
13173
 
    ;;
13174
 
  esac
13175
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13176
 
  postinstall_cmds='chmod 555 $lib'
13177
 
  ;;
13178
 
 
13179
 
irix5* | irix6* | nonstopux*)
13180
 
  case $host_os in
13181
 
    nonstopux*) version_type=nonstopux ;;
13182
 
    *)
13183
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
13184
 
                version_type=linux
13185
 
        else
13186
 
                version_type=irix
13187
 
        fi ;;
13188
 
  esac
13189
 
  need_lib_prefix=no
13190
 
  need_version=no
13191
 
  soname_spec='${libname}${release}${shared_ext}$major'
13192
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13193
 
  case $host_os in
13194
 
  irix5* | nonstopux*)
13195
 
    libsuff= shlibsuff=
13196
 
    ;;
13197
 
  *)
13198
 
    case $LD in # libtool.m4 will add one of these switches to LD
13199
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13200
 
      libsuff= shlibsuff= libmagic=32-bit;;
13201
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13202
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
13203
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13204
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13205
 
    *) libsuff= shlibsuff= libmagic=never-match;;
13206
 
    esac
13207
 
    ;;
13208
 
  esac
13209
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13210
 
  shlibpath_overrides_runpath=no
13211
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13212
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13213
 
  hardcode_into_libs=yes
13214
 
  ;;
13215
 
 
13216
 
# No shared lib support for Linux oldld, aout, or coff.
13217
 
linux*oldld* | linux*aout* | linux*coff*)
13218
 
  dynamic_linker=no
13219
 
  ;;
13220
 
 
13221
 
# This must be Linux ELF.
13222
 
linux*)
13223
 
  version_type=linux
13224
 
  need_lib_prefix=no
13225
 
  need_version=no
13226
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13227
 
  soname_spec='${libname}${release}${shared_ext}$major'
13228
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13229
 
  shlibpath_var=LD_LIBRARY_PATH
13230
 
  shlibpath_overrides_runpath=no
13231
 
  # This implies no fast_install, which is unacceptable.
13232
 
  # Some rework will be needed to allow for fast_install
13233
 
  # before this can be enabled.
13234
 
  hardcode_into_libs=yes
13235
 
 
13236
 
  # Append ld.so.conf contents to the search path
13237
 
  if test -f /etc/ld.so.conf; then
13238
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13239
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13240
 
  fi
13241
 
 
13242
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
13243
 
  # powerpc, because MkLinux only supported shared libraries with the
13244
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
13245
 
  # most powerpc-linux boxes support dynamic linking these days and
13246
 
  # people can always --disable-shared, the test was removed, and we
13247
 
  # assume the GNU/Linux dynamic linker is in use.
13248
 
  dynamic_linker='GNU/Linux ld.so'
13249
 
  ;;
13250
 
 
13251
 
knetbsd*-gnu)
13252
 
  version_type=linux
13253
 
  need_lib_prefix=no
13254
 
  need_version=no
13255
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13256
 
  soname_spec='${libname}${release}${shared_ext}$major'
13257
 
  shlibpath_var=LD_LIBRARY_PATH
13258
 
  shlibpath_overrides_runpath=no
13259
 
  hardcode_into_libs=yes
13260
 
  dynamic_linker='GNU ld.so'
13261
 
  ;;
13262
 
 
13263
 
netbsd*)
13264
 
  version_type=sunos
13265
 
  need_lib_prefix=no
13266
 
  need_version=no
13267
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13268
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13269
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13270
 
    dynamic_linker='NetBSD (a.out) ld.so'
13271
 
  else
13272
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13273
 
    soname_spec='${libname}${release}${shared_ext}$major'
13274
 
    dynamic_linker='NetBSD ld.elf_so'
13275
 
  fi
13276
 
  shlibpath_var=LD_LIBRARY_PATH
13277
 
  shlibpath_overrides_runpath=yes
13278
 
  hardcode_into_libs=yes
13279
 
  ;;
13280
 
 
13281
 
newsos6)
13282
 
  version_type=linux
13283
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13284
 
  shlibpath_var=LD_LIBRARY_PATH
13285
 
  shlibpath_overrides_runpath=yes
13286
 
  ;;
13287
 
 
13288
 
nto-qnx*)
13289
 
  version_type=linux
13290
 
  need_lib_prefix=no
13291
 
  need_version=no
13292
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13293
 
  soname_spec='${libname}${release}${shared_ext}$major'
13294
 
  shlibpath_var=LD_LIBRARY_PATH
13295
 
  shlibpath_overrides_runpath=yes
13296
 
  ;;
13297
 
 
13298
 
openbsd*)
13299
 
  version_type=sunos
13300
 
  need_lib_prefix=no
13301
 
  need_version=yes
13302
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13303
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13304
 
  shlibpath_var=LD_LIBRARY_PATH
13305
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13306
 
    case $host_os in
13307
 
      openbsd2.[89] | openbsd2.[89].*)
13308
 
        shlibpath_overrides_runpath=no
13309
 
        ;;
13310
 
      *)
13311
 
        shlibpath_overrides_runpath=yes
13312
 
        ;;
13313
 
      esac
13314
 
  else
13315
 
    shlibpath_overrides_runpath=yes
13316
 
  fi
13317
 
  ;;
13318
 
 
13319
 
os2*)
13320
 
  libname_spec='$name'
13321
 
  shrext_cmds=".dll"
13322
 
  need_lib_prefix=no
13323
 
  library_names_spec='$libname${shared_ext} $libname.a'
13324
 
  dynamic_linker='OS/2 ld.exe'
13325
 
  shlibpath_var=LIBPATH
13326
 
  ;;
13327
 
 
13328
 
osf3* | osf4* | osf5*)
13329
 
  version_type=osf
13330
 
  need_lib_prefix=no
13331
 
  need_version=no
13332
 
  soname_spec='${libname}${release}${shared_ext}$major'
13333
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13334
 
  shlibpath_var=LD_LIBRARY_PATH
13335
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13336
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13337
 
  ;;
13338
 
 
13339
 
sco3.2v5*)
13340
 
  version_type=osf
13341
 
  soname_spec='${libname}${release}${shared_ext}$major'
13342
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13343
 
  shlibpath_var=LD_LIBRARY_PATH
13344
 
  ;;
13345
 
 
13346
 
solaris*)
13347
 
  version_type=linux
13348
 
  need_lib_prefix=no
13349
 
  need_version=no
13350
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13351
 
  soname_spec='${libname}${release}${shared_ext}$major'
13352
 
  shlibpath_var=LD_LIBRARY_PATH
13353
 
  shlibpath_overrides_runpath=yes
13354
 
  hardcode_into_libs=yes
13355
 
  # ldd complains unless libraries are executable
13356
 
  postinstall_cmds='chmod +x $lib'
13357
 
  ;;
13358
 
 
13359
 
sunos4*)
13360
 
  version_type=sunos
13361
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13362
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13363
 
  shlibpath_var=LD_LIBRARY_PATH
13364
 
  shlibpath_overrides_runpath=yes
13365
 
  if test "$with_gnu_ld" = yes; then
13366
 
    need_lib_prefix=no
13367
 
  fi
13368
 
  need_version=yes
13369
 
  ;;
13370
 
 
13371
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13372
 
  version_type=linux
13373
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13374
 
  soname_spec='${libname}${release}${shared_ext}$major'
13375
 
  shlibpath_var=LD_LIBRARY_PATH
13376
 
  case $host_vendor in
13377
 
    sni)
13378
 
      shlibpath_overrides_runpath=no
13379
 
      need_lib_prefix=no
13380
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
13381
 
      runpath_var=LD_RUN_PATH
13382
 
      ;;
13383
 
    siemens)
13384
 
      need_lib_prefix=no
13385
 
      ;;
13386
 
    motorola)
13387
 
      need_lib_prefix=no
13388
 
      need_version=no
13389
 
      shlibpath_overrides_runpath=no
13390
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13391
 
      ;;
13392
 
  esac
13393
 
  ;;
13394
 
 
13395
 
sysv4*MP*)
13396
 
  if test -d /usr/nec ;then
13397
 
    version_type=linux
13398
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13399
 
    soname_spec='$libname${shared_ext}.$major'
13400
 
    shlibpath_var=LD_LIBRARY_PATH
13401
 
  fi
13402
 
  ;;
13403
 
 
13404
 
uts4*)
13405
 
  version_type=linux
13406
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13407
 
  soname_spec='${libname}${release}${shared_ext}$major'
13408
 
  shlibpath_var=LD_LIBRARY_PATH
13409
 
  ;;
13410
 
 
13411
 
*)
13412
 
  dynamic_linker=no
13413
 
  ;;
13414
 
esac
13415
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13416
 
echo "${ECHO_T}$dynamic_linker" >&6
13417
 
test "$dynamic_linker" = no && can_build_shared=no
13418
 
 
13419
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13420
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13421
 
hardcode_action_CXX=
13422
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13423
 
   test -n "$runpath_var CXX" || \
13424
 
   test "X$hardcode_automatic_CXX"="Xyes" ; then
13425
 
 
13426
 
  # We can hardcode non-existant directories.
13427
 
  if test "$hardcode_direct_CXX" != no &&
13428
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13429
 
     # have to relink, otherwise we might link with an installed library
13430
 
     # when we should be linking with a yet-to-be-installed one
13431
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13432
 
     test "$hardcode_minus_L_CXX" != no; then
13433
 
    # Linking always hardcodes the temporary library directory.
13434
 
    hardcode_action_CXX=relink
13435
 
  else
13436
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13437
 
    hardcode_action_CXX=immediate
13438
 
  fi
13439
 
else
13440
 
  # We cannot hardcode anything, or else we can only hardcode existing
13441
 
  # directories.
13442
 
  hardcode_action_CXX=unsupported
13443
 
fi
13444
 
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13445
 
echo "${ECHO_T}$hardcode_action_CXX" >&6
13446
 
 
13447
 
if test "$hardcode_action_CXX" = relink; then
13448
 
  # Fast installation is not supported
13449
 
  enable_fast_install=no
13450
 
elif test "$shlibpath_overrides_runpath" = yes ||
13451
 
     test "$enable_shared" = no; then
13452
 
  # Fast installation is not necessary
13453
 
  enable_fast_install=needless
13454
 
fi
13455
 
 
13456
 
striplib=
13457
 
old_striplib=
13458
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13459
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13460
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13461
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13462
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13463
 
  echo "$as_me:$LINENO: result: yes" >&5
13464
 
echo "${ECHO_T}yes" >&6
13465
 
else
13466
 
# FIXME - insert some real tests, host_os isn't really good enough
13467
 
  case $host_os in
13468
 
   darwin*)
13469
 
       if test -n "$STRIP" ; then
13470
 
         striplib="$STRIP -x"
13471
 
         echo "$as_me:$LINENO: result: yes" >&5
13472
 
echo "${ECHO_T}yes" >&6
13473
 
       else
13474
 
  echo "$as_me:$LINENO: result: no" >&5
13475
 
echo "${ECHO_T}no" >&6
13476
 
fi
13477
 
       ;;
13478
 
   *)
13479
 
  echo "$as_me:$LINENO: result: no" >&5
13480
 
echo "${ECHO_T}no" >&6
13481
 
    ;;
13482
 
  esac
13483
 
fi
13484
 
 
13485
 
if test "x$enable_dlopen" != xyes; then
13486
 
  enable_dlopen=unknown
13487
 
  enable_dlopen_self=unknown
13488
 
  enable_dlopen_self_static=unknown
13489
 
else
13490
 
  lt_cv_dlopen=no
13491
 
  lt_cv_dlopen_libs=
13492
 
 
13493
 
  case $host_os in
13494
 
  beos*)
13495
 
    lt_cv_dlopen="load_add_on"
13496
 
    lt_cv_dlopen_libs=
13497
 
    lt_cv_dlopen_self=yes
13498
 
    ;;
13499
 
 
13500
 
  mingw* | pw32*)
13501
 
    lt_cv_dlopen="LoadLibrary"
13502
 
    lt_cv_dlopen_libs=
13503
 
   ;;
13504
 
 
13505
 
  cygwin*)
13506
 
    lt_cv_dlopen="dlopen"
13507
 
    lt_cv_dlopen_libs=
13508
 
   ;;
13509
 
 
13510
 
  darwin*)
13511
 
  # if libdl is installed we need to link against it
13512
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13513
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13514
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13515
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13516
 
else
13517
 
  ac_check_lib_save_LIBS=$LIBS
13518
 
LIBS="-ldl  $LIBS"
13519
 
cat >conftest.$ac_ext <<_ACEOF
13520
 
/* confdefs.h.  */
13521
 
_ACEOF
13522
 
cat confdefs.h >>conftest.$ac_ext
13523
 
cat >>conftest.$ac_ext <<_ACEOF
13524
 
/* end confdefs.h.  */
13525
 
 
13526
 
/* Override any gcc2 internal prototype to avoid an error.  */
13527
 
#ifdef __cplusplus
13528
 
extern "C"
13529
 
#endif
13530
 
/* We use char because int might match the return type of a gcc2
13531
 
   builtin and then its argument prototype would still apply.  */
13532
 
char dlopen ();
13533
 
int
13534
 
main ()
13535
 
{
13536
 
dlopen ();
13537
 
  ;
13538
 
  return 0;
13539
 
}
13540
 
_ACEOF
13541
 
rm -f conftest.$ac_objext conftest$ac_exeext
13542
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13543
 
  (eval $ac_link) 2>conftest.er1
13544
 
  ac_status=$?
13545
 
  grep -v '^ *+' conftest.er1 >conftest.err
13546
 
  rm -f conftest.er1
13547
 
  cat conftest.err >&5
13548
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549
 
  (exit $ac_status); } &&
13550
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13551
 
                         || test ! -s conftest.err'
13552
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553
 
  (eval $ac_try) 2>&5
13554
 
  ac_status=$?
13555
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556
 
  (exit $ac_status); }; } &&
13557
 
         { ac_try='test -s conftest$ac_exeext'
13558
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559
 
  (eval $ac_try) 2>&5
13560
 
  ac_status=$?
13561
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562
 
  (exit $ac_status); }; }; then
13563
 
  ac_cv_lib_dl_dlopen=yes
13564
 
else
13565
 
  echo "$as_me: failed program was:" >&5
13566
 
sed 's/^/| /' conftest.$ac_ext >&5
13567
 
 
13568
 
ac_cv_lib_dl_dlopen=no
13569
 
fi
13570
 
rm -f conftest.err conftest.$ac_objext \
13571
 
      conftest$ac_exeext conftest.$ac_ext
13572
 
LIBS=$ac_check_lib_save_LIBS
13573
 
fi
13574
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13575
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13576
 
if test $ac_cv_lib_dl_dlopen = yes; then
13577
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13578
 
else
13579
 
 
13580
 
    lt_cv_dlopen="dyld"
13581
 
    lt_cv_dlopen_libs=
13582
 
    lt_cv_dlopen_self=yes
13583
 
 
13584
 
fi
13585
 
 
13586
 
   ;;
13587
 
 
13588
 
  *)
13589
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
13590
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13591
 
if test "${ac_cv_func_shl_load+set}" = set; then
13592
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13593
 
else
13594
 
  cat >conftest.$ac_ext <<_ACEOF
13595
 
/* confdefs.h.  */
13596
 
_ACEOF
13597
 
cat confdefs.h >>conftest.$ac_ext
13598
 
cat >>conftest.$ac_ext <<_ACEOF
13599
 
/* end confdefs.h.  */
13600
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13601
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13602
 
#define shl_load innocuous_shl_load
13603
 
 
13604
 
/* System header to define __stub macros and hopefully few prototypes,
13605
 
    which can conflict with char shl_load (); below.
13606
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13607
 
    <limits.h> exists even on freestanding compilers.  */
13608
 
 
13609
 
#ifdef __STDC__
13610
 
# include <limits.h>
13611
 
#else
13612
 
# include <assert.h>
13613
 
#endif
13614
 
 
13615
 
#undef shl_load
13616
 
 
13617
 
/* Override any gcc2 internal prototype to avoid an error.  */
13618
 
#ifdef __cplusplus
13619
 
extern "C"
13620
 
{
13621
 
#endif
13622
 
/* We use char because int might match the return type of a gcc2
13623
 
   builtin and then its argument prototype would still apply.  */
13624
 
char shl_load ();
13625
 
/* The GNU C library defines this for functions which it implements
13626
 
    to always fail with ENOSYS.  Some functions are actually named
13627
 
    something starting with __ and the normal name is an alias.  */
13628
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
13629
 
choke me
13630
 
#else
13631
 
char (*f) () = shl_load;
13632
 
#endif
13633
 
#ifdef __cplusplus
13634
 
}
13635
 
#endif
13636
 
 
13637
 
int
13638
 
main ()
13639
 
{
13640
 
return f != shl_load;
13641
 
  ;
13642
 
  return 0;
13643
 
}
13644
 
_ACEOF
13645
 
rm -f conftest.$ac_objext conftest$ac_exeext
13646
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13647
 
  (eval $ac_link) 2>conftest.er1
13648
 
  ac_status=$?
13649
 
  grep -v '^ *+' conftest.er1 >conftest.err
13650
 
  rm -f conftest.er1
13651
 
  cat conftest.err >&5
13652
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653
 
  (exit $ac_status); } &&
13654
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13655
 
                         || test ! -s conftest.err'
13656
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657
 
  (eval $ac_try) 2>&5
13658
 
  ac_status=$?
13659
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660
 
  (exit $ac_status); }; } &&
13661
 
         { ac_try='test -s conftest$ac_exeext'
13662
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663
 
  (eval $ac_try) 2>&5
13664
 
  ac_status=$?
13665
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666
 
  (exit $ac_status); }; }; then
13667
 
  ac_cv_func_shl_load=yes
13668
 
else
13669
 
  echo "$as_me: failed program was:" >&5
13670
 
sed 's/^/| /' conftest.$ac_ext >&5
13671
 
 
13672
 
ac_cv_func_shl_load=no
13673
 
fi
13674
 
rm -f conftest.err conftest.$ac_objext \
13675
 
      conftest$ac_exeext conftest.$ac_ext
13676
 
fi
13677
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13678
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13679
 
if test $ac_cv_func_shl_load = yes; then
13680
 
  lt_cv_dlopen="shl_load"
13681
 
else
13682
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13683
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13684
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13685
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13686
 
else
13687
 
  ac_check_lib_save_LIBS=$LIBS
13688
 
LIBS="-ldld  $LIBS"
13689
 
cat >conftest.$ac_ext <<_ACEOF
13690
 
/* confdefs.h.  */
13691
 
_ACEOF
13692
 
cat confdefs.h >>conftest.$ac_ext
13693
 
cat >>conftest.$ac_ext <<_ACEOF
13694
 
/* end confdefs.h.  */
13695
 
 
13696
 
/* Override any gcc2 internal prototype to avoid an error.  */
13697
 
#ifdef __cplusplus
13698
 
extern "C"
13699
 
#endif
13700
 
/* We use char because int might match the return type of a gcc2
13701
 
   builtin and then its argument prototype would still apply.  */
13702
 
char shl_load ();
13703
 
int
13704
 
main ()
13705
 
{
13706
 
shl_load ();
13707
 
  ;
13708
 
  return 0;
13709
 
}
13710
 
_ACEOF
13711
 
rm -f conftest.$ac_objext conftest$ac_exeext
13712
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13713
 
  (eval $ac_link) 2>conftest.er1
13714
 
  ac_status=$?
13715
 
  grep -v '^ *+' conftest.er1 >conftest.err
13716
 
  rm -f conftest.er1
13717
 
  cat conftest.err >&5
13718
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719
 
  (exit $ac_status); } &&
13720
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13721
 
                         || test ! -s conftest.err'
13722
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723
 
  (eval $ac_try) 2>&5
13724
 
  ac_status=$?
13725
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726
 
  (exit $ac_status); }; } &&
13727
 
         { ac_try='test -s conftest$ac_exeext'
13728
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729
 
  (eval $ac_try) 2>&5
13730
 
  ac_status=$?
13731
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732
 
  (exit $ac_status); }; }; then
13733
 
  ac_cv_lib_dld_shl_load=yes
13734
 
else
13735
 
  echo "$as_me: failed program was:" >&5
13736
 
sed 's/^/| /' conftest.$ac_ext >&5
13737
 
 
13738
 
ac_cv_lib_dld_shl_load=no
13739
 
fi
13740
 
rm -f conftest.err conftest.$ac_objext \
13741
 
      conftest$ac_exeext conftest.$ac_ext
13742
 
LIBS=$ac_check_lib_save_LIBS
13743
 
fi
13744
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13745
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13746
 
if test $ac_cv_lib_dld_shl_load = yes; then
13747
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13748
 
else
13749
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
13750
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13751
 
if test "${ac_cv_func_dlopen+set}" = set; then
13752
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13753
 
else
13754
 
  cat >conftest.$ac_ext <<_ACEOF
13755
 
/* confdefs.h.  */
13756
 
_ACEOF
13757
 
cat confdefs.h >>conftest.$ac_ext
13758
 
cat >>conftest.$ac_ext <<_ACEOF
13759
 
/* end confdefs.h.  */
13760
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13761
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13762
 
#define dlopen innocuous_dlopen
13763
 
 
13764
 
/* System header to define __stub macros and hopefully few prototypes,
13765
 
    which can conflict with char dlopen (); below.
13766
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13767
 
    <limits.h> exists even on freestanding compilers.  */
13768
 
 
13769
 
#ifdef __STDC__
13770
 
# include <limits.h>
13771
 
#else
13772
 
# include <assert.h>
13773
 
#endif
13774
 
 
13775
 
#undef dlopen
13776
 
 
13777
 
/* Override any gcc2 internal prototype to avoid an error.  */
13778
 
#ifdef __cplusplus
13779
 
extern "C"
13780
 
{
13781
 
#endif
13782
 
/* We use char because int might match the return type of a gcc2
13783
 
   builtin and then its argument prototype would still apply.  */
13784
 
char dlopen ();
13785
 
/* The GNU C library defines this for functions which it implements
13786
 
    to always fail with ENOSYS.  Some functions are actually named
13787
 
    something starting with __ and the normal name is an alias.  */
13788
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
13789
 
choke me
13790
 
#else
13791
 
char (*f) () = dlopen;
13792
 
#endif
13793
 
#ifdef __cplusplus
13794
 
}
13795
 
#endif
13796
 
 
13797
 
int
13798
 
main ()
13799
 
{
13800
 
return f != dlopen;
13801
 
  ;
13802
 
  return 0;
13803
 
}
13804
 
_ACEOF
13805
 
rm -f conftest.$ac_objext conftest$ac_exeext
13806
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13807
 
  (eval $ac_link) 2>conftest.er1
13808
 
  ac_status=$?
13809
 
  grep -v '^ *+' conftest.er1 >conftest.err
13810
 
  rm -f conftest.er1
13811
 
  cat conftest.err >&5
13812
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813
 
  (exit $ac_status); } &&
13814
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13815
 
                         || test ! -s conftest.err'
13816
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817
 
  (eval $ac_try) 2>&5
13818
 
  ac_status=$?
13819
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820
 
  (exit $ac_status); }; } &&
13821
 
         { ac_try='test -s conftest$ac_exeext'
13822
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823
 
  (eval $ac_try) 2>&5
13824
 
  ac_status=$?
13825
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826
 
  (exit $ac_status); }; }; then
13827
 
  ac_cv_func_dlopen=yes
13828
 
else
13829
 
  echo "$as_me: failed program was:" >&5
13830
 
sed 's/^/| /' conftest.$ac_ext >&5
13831
 
 
13832
 
ac_cv_func_dlopen=no
13833
 
fi
13834
 
rm -f conftest.err conftest.$ac_objext \
13835
 
      conftest$ac_exeext conftest.$ac_ext
13836
 
fi
13837
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13838
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13839
 
if test $ac_cv_func_dlopen = yes; then
13840
 
  lt_cv_dlopen="dlopen"
13841
 
else
13842
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13843
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13844
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13845
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13846
 
else
13847
 
  ac_check_lib_save_LIBS=$LIBS
13848
 
LIBS="-ldl  $LIBS"
13849
 
cat >conftest.$ac_ext <<_ACEOF
13850
 
/* confdefs.h.  */
13851
 
_ACEOF
13852
 
cat confdefs.h >>conftest.$ac_ext
13853
 
cat >>conftest.$ac_ext <<_ACEOF
13854
 
/* end confdefs.h.  */
13855
 
 
13856
 
/* Override any gcc2 internal prototype to avoid an error.  */
13857
 
#ifdef __cplusplus
13858
 
extern "C"
13859
 
#endif
13860
 
/* We use char because int might match the return type of a gcc2
13861
 
   builtin and then its argument prototype would still apply.  */
13862
 
char dlopen ();
13863
 
int
13864
 
main ()
13865
 
{
13866
 
dlopen ();
13867
 
  ;
13868
 
  return 0;
13869
 
}
13870
 
_ACEOF
13871
 
rm -f conftest.$ac_objext conftest$ac_exeext
13872
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13873
 
  (eval $ac_link) 2>conftest.er1
13874
 
  ac_status=$?
13875
 
  grep -v '^ *+' conftest.er1 >conftest.err
13876
 
  rm -f conftest.er1
13877
 
  cat conftest.err >&5
13878
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879
 
  (exit $ac_status); } &&
13880
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13881
 
                         || test ! -s conftest.err'
13882
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883
 
  (eval $ac_try) 2>&5
13884
 
  ac_status=$?
13885
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886
 
  (exit $ac_status); }; } &&
13887
 
         { ac_try='test -s conftest$ac_exeext'
13888
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889
 
  (eval $ac_try) 2>&5
13890
 
  ac_status=$?
13891
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892
 
  (exit $ac_status); }; }; then
13893
 
  ac_cv_lib_dl_dlopen=yes
13894
 
else
13895
 
  echo "$as_me: failed program was:" >&5
13896
 
sed 's/^/| /' conftest.$ac_ext >&5
13897
 
 
13898
 
ac_cv_lib_dl_dlopen=no
13899
 
fi
13900
 
rm -f conftest.err conftest.$ac_objext \
13901
 
      conftest$ac_exeext conftest.$ac_ext
13902
 
LIBS=$ac_check_lib_save_LIBS
13903
 
fi
13904
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13905
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13906
 
if test $ac_cv_lib_dl_dlopen = yes; then
13907
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13908
 
else
13909
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13910
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13911
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13912
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13913
 
else
13914
 
  ac_check_lib_save_LIBS=$LIBS
13915
 
LIBS="-lsvld  $LIBS"
13916
 
cat >conftest.$ac_ext <<_ACEOF
13917
 
/* confdefs.h.  */
13918
 
_ACEOF
13919
 
cat confdefs.h >>conftest.$ac_ext
13920
 
cat >>conftest.$ac_ext <<_ACEOF
13921
 
/* end confdefs.h.  */
13922
 
 
13923
 
/* Override any gcc2 internal prototype to avoid an error.  */
13924
 
#ifdef __cplusplus
13925
 
extern "C"
13926
 
#endif
13927
 
/* We use char because int might match the return type of a gcc2
13928
 
   builtin and then its argument prototype would still apply.  */
13929
 
char dlopen ();
13930
 
int
13931
 
main ()
13932
 
{
13933
 
dlopen ();
13934
 
  ;
13935
 
  return 0;
13936
 
}
13937
 
_ACEOF
13938
 
rm -f conftest.$ac_objext conftest$ac_exeext
13939
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13940
 
  (eval $ac_link) 2>conftest.er1
13941
 
  ac_status=$?
13942
 
  grep -v '^ *+' conftest.er1 >conftest.err
13943
 
  rm -f conftest.er1
13944
 
  cat conftest.err >&5
13945
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946
 
  (exit $ac_status); } &&
13947
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13948
 
                         || test ! -s conftest.err'
13949
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950
 
  (eval $ac_try) 2>&5
13951
 
  ac_status=$?
13952
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953
 
  (exit $ac_status); }; } &&
13954
 
         { ac_try='test -s conftest$ac_exeext'
13955
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956
 
  (eval $ac_try) 2>&5
13957
 
  ac_status=$?
13958
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959
 
  (exit $ac_status); }; }; then
13960
 
  ac_cv_lib_svld_dlopen=yes
13961
 
else
13962
 
  echo "$as_me: failed program was:" >&5
13963
 
sed 's/^/| /' conftest.$ac_ext >&5
13964
 
 
13965
 
ac_cv_lib_svld_dlopen=no
13966
 
fi
13967
 
rm -f conftest.err conftest.$ac_objext \
13968
 
      conftest$ac_exeext conftest.$ac_ext
13969
 
LIBS=$ac_check_lib_save_LIBS
13970
 
fi
13971
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13972
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13973
 
if test $ac_cv_lib_svld_dlopen = yes; then
13974
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13975
 
else
13976
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13977
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13978
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13979
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13980
 
else
13981
 
  ac_check_lib_save_LIBS=$LIBS
13982
 
LIBS="-ldld  $LIBS"
13983
 
cat >conftest.$ac_ext <<_ACEOF
13984
 
/* confdefs.h.  */
13985
 
_ACEOF
13986
 
cat confdefs.h >>conftest.$ac_ext
13987
 
cat >>conftest.$ac_ext <<_ACEOF
13988
 
/* end confdefs.h.  */
13989
 
 
13990
 
/* Override any gcc2 internal prototype to avoid an error.  */
13991
 
#ifdef __cplusplus
13992
 
extern "C"
13993
 
#endif
13994
 
/* We use char because int might match the return type of a gcc2
13995
 
   builtin and then its argument prototype would still apply.  */
13996
 
char dld_link ();
13997
 
int
13998
 
main ()
13999
 
{
14000
 
dld_link ();
14001
 
  ;
14002
 
  return 0;
14003
 
}
14004
 
_ACEOF
14005
 
rm -f conftest.$ac_objext conftest$ac_exeext
14006
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14007
 
  (eval $ac_link) 2>conftest.er1
14008
 
  ac_status=$?
14009
 
  grep -v '^ *+' conftest.er1 >conftest.err
14010
 
  rm -f conftest.er1
14011
 
  cat conftest.err >&5
14012
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013
 
  (exit $ac_status); } &&
14014
 
         { ac_try='test -z "$ac_cxx_werror_flag"
14015
 
                         || test ! -s conftest.err'
14016
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017
 
  (eval $ac_try) 2>&5
14018
 
  ac_status=$?
14019
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020
 
  (exit $ac_status); }; } &&
14021
 
         { ac_try='test -s conftest$ac_exeext'
14022
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023
 
  (eval $ac_try) 2>&5
14024
 
  ac_status=$?
14025
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026
 
  (exit $ac_status); }; }; then
14027
 
  ac_cv_lib_dld_dld_link=yes
14028
 
else
14029
 
  echo "$as_me: failed program was:" >&5
14030
 
sed 's/^/| /' conftest.$ac_ext >&5
14031
 
 
14032
 
ac_cv_lib_dld_dld_link=no
14033
 
fi
14034
 
rm -f conftest.err conftest.$ac_objext \
14035
 
      conftest$ac_exeext conftest.$ac_ext
14036
 
LIBS=$ac_check_lib_save_LIBS
14037
 
fi
14038
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14039
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14040
 
if test $ac_cv_lib_dld_dld_link = yes; then
14041
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14042
 
fi
14043
 
 
14044
 
 
14045
 
fi
14046
 
 
14047
 
 
14048
 
fi
14049
 
 
14050
 
 
14051
 
fi
14052
 
 
14053
 
 
14054
 
fi
14055
 
 
14056
 
 
14057
 
fi
14058
 
 
14059
 
    ;;
14060
 
  esac
14061
 
 
14062
 
  if test "x$lt_cv_dlopen" != xno; then
14063
 
    enable_dlopen=yes
14064
 
  else
14065
 
    enable_dlopen=no
14066
 
  fi
14067
 
 
14068
 
  case $lt_cv_dlopen in
14069
 
  dlopen)
14070
 
    save_CPPFLAGS="$CPPFLAGS"
14071
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14072
 
 
14073
 
    save_LDFLAGS="$LDFLAGS"
14074
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14075
 
 
14076
 
    save_LIBS="$LIBS"
14077
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
14078
 
 
14079
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14080
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14081
 
if test "${lt_cv_dlopen_self+set}" = set; then
14082
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14083
 
else
14084
 
          if test "$cross_compiling" = yes; then :
14085
 
  lt_cv_dlopen_self=cross
14086
 
else
14087
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14088
 
  lt_status=$lt_dlunknown
14089
 
  cat > conftest.$ac_ext <<EOF
14090
 
#line 14090 "configure"
14091
 
#include "confdefs.h"
14092
 
 
14093
 
#if HAVE_DLFCN_H
14094
 
#include <dlfcn.h>
14095
 
#endif
14096
 
 
14097
 
#include <stdio.h>
14098
 
 
14099
 
#ifdef RTLD_GLOBAL
14100
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
14101
 
#else
14102
 
#  ifdef DL_GLOBAL
14103
 
#    define LT_DLGLOBAL         DL_GLOBAL
14104
 
#  else
14105
 
#    define LT_DLGLOBAL         0
14106
 
#  endif
14107
 
#endif
14108
 
 
14109
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14110
 
   find out it does not work in some platform. */
14111
 
#ifndef LT_DLLAZY_OR_NOW
14112
 
#  ifdef RTLD_LAZY
14113
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14114
 
#  else
14115
 
#    ifdef DL_LAZY
14116
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
14117
 
#    else
14118
 
#      ifdef RTLD_NOW
14119
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
14120
 
#      else
14121
 
#        ifdef DL_NOW
14122
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
14123
 
#        else
14124
 
#          define LT_DLLAZY_OR_NOW      0
14125
 
#        endif
14126
 
#      endif
14127
 
#    endif
14128
 
#  endif
14129
 
#endif
14130
 
 
14131
 
#ifdef __cplusplus
14132
 
extern "C" void exit (int);
14133
 
#endif
14134
 
 
14135
 
void fnord() { int i=42;}
14136
 
int main ()
14137
 
{
14138
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14139
 
  int status = $lt_dlunknown;
14140
 
 
14141
 
  if (self)
14142
 
    {
14143
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14144
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14145
 
      /* dlclose (self); */
14146
 
    }
14147
 
 
14148
 
    exit (status);
14149
 
}
14150
 
EOF
14151
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14152
 
  (eval $ac_link) 2>&5
14153
 
  ac_status=$?
14154
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14156
 
    (./conftest; exit; ) 2>/dev/null
14157
 
    lt_status=$?
14158
 
    case x$lt_status in
14159
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14160
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14161
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14162
 
    esac
14163
 
  else :
14164
 
    # compilation failed
14165
 
    lt_cv_dlopen_self=no
14166
 
  fi
14167
 
fi
14168
 
rm -fr conftest*
14169
 
 
14170
 
 
14171
 
fi
14172
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14173
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14174
 
 
14175
 
    if test "x$lt_cv_dlopen_self" = xyes; then
14176
 
      LDFLAGS="$LDFLAGS $link_static_flag"
14177
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14178
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14179
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
14180
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14181
 
else
14182
 
          if test "$cross_compiling" = yes; then :
14183
 
  lt_cv_dlopen_self_static=cross
14184
 
else
14185
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14186
 
  lt_status=$lt_dlunknown
14187
 
  cat > conftest.$ac_ext <<EOF
14188
 
#line 14188 "configure"
14189
 
#include "confdefs.h"
14190
 
 
14191
 
#if HAVE_DLFCN_H
14192
 
#include <dlfcn.h>
14193
 
#endif
14194
 
 
14195
 
#include <stdio.h>
14196
 
 
14197
 
#ifdef RTLD_GLOBAL
14198
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
14199
 
#else
14200
 
#  ifdef DL_GLOBAL
14201
 
#    define LT_DLGLOBAL         DL_GLOBAL
14202
 
#  else
14203
 
#    define LT_DLGLOBAL         0
14204
 
#  endif
14205
 
#endif
14206
 
 
14207
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14208
 
   find out it does not work in some platform. */
14209
 
#ifndef LT_DLLAZY_OR_NOW
14210
 
#  ifdef RTLD_LAZY
14211
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14212
 
#  else
14213
 
#    ifdef DL_LAZY
14214
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
14215
 
#    else
14216
 
#      ifdef RTLD_NOW
14217
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
14218
 
#      else
14219
 
#        ifdef DL_NOW
14220
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
14221
 
#        else
14222
 
#          define LT_DLLAZY_OR_NOW      0
14223
 
#        endif
14224
 
#      endif
14225
 
#    endif
14226
 
#  endif
14227
 
#endif
14228
 
 
14229
 
#ifdef __cplusplus
14230
 
extern "C" void exit (int);
14231
 
#endif
14232
 
 
14233
 
void fnord() { int i=42;}
14234
 
int main ()
14235
 
{
14236
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14237
 
  int status = $lt_dlunknown;
14238
 
 
14239
 
  if (self)
14240
 
    {
14241
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14242
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14243
 
      /* dlclose (self); */
14244
 
    }
14245
 
 
14246
 
    exit (status);
14247
 
}
14248
 
EOF
14249
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14250
 
  (eval $ac_link) 2>&5
14251
 
  ac_status=$?
14252
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14254
 
    (./conftest; exit; ) 2>/dev/null
14255
 
    lt_status=$?
14256
 
    case x$lt_status in
14257
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14258
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14259
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14260
 
    esac
14261
 
  else :
14262
 
    # compilation failed
14263
 
    lt_cv_dlopen_self_static=no
14264
 
  fi
14265
 
fi
14266
 
rm -fr conftest*
14267
 
 
14268
 
 
14269
 
fi
14270
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14271
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14272
 
    fi
14273
 
 
14274
 
    CPPFLAGS="$save_CPPFLAGS"
14275
 
    LDFLAGS="$save_LDFLAGS"
14276
 
    LIBS="$save_LIBS"
14277
 
    ;;
14278
 
  esac
14279
 
 
14280
 
  case $lt_cv_dlopen_self in
14281
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14282
 
  *) enable_dlopen_self=unknown ;;
14283
 
  esac
14284
 
 
14285
 
  case $lt_cv_dlopen_self_static in
14286
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14287
 
  *) enable_dlopen_self_static=unknown ;;
14288
 
  esac
14289
 
fi
14290
 
 
14291
 
 
14292
 
# The else clause should only fire when bootstrapping the
14293
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
14294
 
# with your package, and you will get complaints that there are
14295
 
# no rules to generate ltmain.sh.
14296
 
if test -f "$ltmain"; then
14297
 
  # See if we are running on zsh, and set the options which allow our commands through
14298
 
  # without removal of \ escapes.
14299
 
  if test -n "${ZSH_VERSION+set}" ; then
14300
 
    setopt NO_GLOB_SUBST
14301
 
  fi
14302
 
  # Now quote all the things that may contain metacharacters while being
14303
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14304
 
  # variables and quote the copies for generation of the libtool script.
14305
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14306
 
    SED SHELL STRIP \
14307
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14308
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14309
 
    deplibs_check_method reload_flag reload_cmds need_locks \
14310
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14311
 
    lt_cv_sys_global_symbol_to_c_name_address \
14312
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14313
 
    old_postinstall_cmds old_postuninstall_cmds \
14314
 
    compiler_CXX \
14315
 
    CC_CXX \
14316
 
    LD_CXX \
14317
 
    lt_prog_compiler_wl_CXX \
14318
 
    lt_prog_compiler_pic_CXX \
14319
 
    lt_prog_compiler_static_CXX \
14320
 
    lt_prog_compiler_no_builtin_flag_CXX \
14321
 
    export_dynamic_flag_spec_CXX \
14322
 
    thread_safe_flag_spec_CXX \
14323
 
    whole_archive_flag_spec_CXX \
14324
 
    enable_shared_with_static_runtimes_CXX \
14325
 
    old_archive_cmds_CXX \
14326
 
    old_archive_from_new_cmds_CXX \
14327
 
    predep_objects_CXX \
14328
 
    postdep_objects_CXX \
14329
 
    predeps_CXX \
14330
 
    postdeps_CXX \
14331
 
    compiler_lib_search_path_CXX \
14332
 
    archive_cmds_CXX \
14333
 
    archive_expsym_cmds_CXX \
14334
 
    postinstall_cmds_CXX \
14335
 
    postuninstall_cmds_CXX \
14336
 
    old_archive_from_expsyms_cmds_CXX \
14337
 
    allow_undefined_flag_CXX \
14338
 
    no_undefined_flag_CXX \
14339
 
    export_symbols_cmds_CXX \
14340
 
    hardcode_libdir_flag_spec_CXX \
14341
 
    hardcode_libdir_flag_spec_ld_CXX \
14342
 
    hardcode_libdir_separator_CXX \
14343
 
    hardcode_automatic_CXX \
14344
 
    module_cmds_CXX \
14345
 
    module_expsym_cmds_CXX \
14346
 
    lt_cv_prog_compiler_c_o_CXX \
14347
 
    exclude_expsyms_CXX \
14348
 
    include_expsyms_CXX; do
14349
 
 
14350
 
    case $var in
14351
 
    old_archive_cmds_CXX | \
14352
 
    old_archive_from_new_cmds_CXX | \
14353
 
    archive_cmds_CXX | \
14354
 
    archive_expsym_cmds_CXX | \
14355
 
    module_cmds_CXX | \
14356
 
    module_expsym_cmds_CXX | \
14357
 
    old_archive_from_expsyms_cmds_CXX | \
14358
 
    export_symbols_cmds_CXX | \
14359
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14360
 
    postinstall_cmds | postuninstall_cmds | \
14361
 
    old_postinstall_cmds | old_postuninstall_cmds | \
14362
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14363
 
      # Double-quote double-evaled strings.
14364
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14365
 
      ;;
14366
 
    *)
14367
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14368
 
      ;;
14369
 
    esac
14370
 
  done
14371
 
 
14372
 
  case $lt_echo in
14373
 
  *'\$0 --fallback-echo"')
14374
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14375
 
    ;;
14376
 
  esac
14377
 
 
14378
 
cfgfile="$ofile"
14379
 
 
14380
 
  cat <<__EOF__ >> "$cfgfile"
14381
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14382
 
 
14383
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14384
 
 
14385
 
# Shell to use when invoking shell scripts.
14386
 
SHELL=$lt_SHELL
14387
 
 
14388
 
# Whether or not to build shared libraries.
14389
 
build_libtool_libs=$enable_shared
14390
 
 
14391
 
# Whether or not to build static libraries.
14392
 
build_old_libs=$enable_static
14393
 
 
14394
 
# Whether or not to add -lc for building shared libraries.
14395
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14396
 
 
14397
 
# Whether or not to disallow shared libs when runtime libs are static
14398
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14399
 
 
14400
 
# Whether or not to optimize for fast installation.
14401
 
fast_install=$enable_fast_install
14402
 
 
14403
 
# The host system.
14404
 
host_alias=$host_alias
14405
 
host=$host
14406
 
 
14407
 
# An echo program that does not interpret backslashes.
14408
 
echo=$lt_echo
14409
 
 
14410
 
# The archiver.
14411
 
AR=$lt_AR
14412
 
AR_FLAGS=$lt_AR_FLAGS
14413
 
 
14414
 
# A C compiler.
14415
 
LTCC=$lt_LTCC
14416
 
 
14417
 
# A language-specific compiler.
14418
 
CC=$lt_compiler_CXX
14419
 
 
14420
 
# Is the compiler the GNU C compiler?
14421
 
with_gcc=$GCC_CXX
14422
 
 
14423
 
# An ERE matcher.
14424
 
EGREP=$lt_EGREP
14425
 
 
14426
 
# The linker used to build libraries.
14427
 
LD=$lt_LD_CXX
14428
 
 
14429
 
# Whether we need hard or soft links.
14430
 
LN_S=$lt_LN_S
14431
 
 
14432
 
# A BSD-compatible nm program.
14433
 
NM=$lt_NM
14434
 
 
14435
 
# A symbol stripping program
14436
 
STRIP=$lt_STRIP
14437
 
 
14438
 
# Used to examine libraries when file_magic_cmd begins "file"
14439
 
MAGIC_CMD=$MAGIC_CMD
14440
 
 
14441
 
# Used on cygwin: DLL creation program.
14442
 
DLLTOOL="$DLLTOOL"
14443
 
 
14444
 
# Used on cygwin: object dumper.
14445
 
OBJDUMP="$OBJDUMP"
14446
 
 
14447
 
# Used on cygwin: assembler.
14448
 
AS="$AS"
14449
 
 
14450
 
# The name of the directory that contains temporary libtool files.
14451
 
objdir=$objdir
14452
 
 
14453
 
# How to create reloadable object files.
14454
 
reload_flag=$lt_reload_flag
14455
 
reload_cmds=$lt_reload_cmds
14456
 
 
14457
 
# How to pass a linker flag through the compiler.
14458
 
wl=$lt_lt_prog_compiler_wl_CXX
14459
 
 
14460
 
# Object file suffix (normally "o").
14461
 
objext="$ac_objext"
14462
 
 
14463
 
# Old archive suffix (normally "a").
14464
 
libext="$libext"
14465
 
 
14466
 
# Shared library suffix (normally ".so").
14467
 
shrext_cmds='$shrext_cmds'
14468
 
 
14469
 
# Executable file suffix (normally "").
14470
 
exeext="$exeext"
14471
 
 
14472
 
# Additional compiler flags for building library objects.
14473
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
14474
 
pic_mode=$pic_mode
14475
 
 
14476
 
# What is the maximum length of a command?
14477
 
max_cmd_len=$lt_cv_sys_max_cmd_len
14478
 
 
14479
 
# Does compiler simultaneously support -c and -o options?
14480
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14481
 
 
14482
 
# Must we lock files when doing compilation ?
14483
 
need_locks=$lt_need_locks
14484
 
 
14485
 
# Do we need the lib prefix for modules?
14486
 
need_lib_prefix=$need_lib_prefix
14487
 
 
14488
 
# Do we need a version for libraries?
14489
 
need_version=$need_version
14490
 
 
14491
 
# Whether dlopen is supported.
14492
 
dlopen_support=$enable_dlopen
14493
 
 
14494
 
# Whether dlopen of programs is supported.
14495
 
dlopen_self=$enable_dlopen_self
14496
 
 
14497
 
# Whether dlopen of statically linked programs is supported.
14498
 
dlopen_self_static=$enable_dlopen_self_static
14499
 
 
14500
 
# Compiler flag to prevent dynamic linking.
14501
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
14502
 
 
14503
 
# Compiler flag to turn off builtin functions.
14504
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14505
 
 
14506
 
# Compiler flag to allow reflexive dlopens.
14507
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14508
 
 
14509
 
# Compiler flag to generate shared objects directly from archives.
14510
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14511
 
 
14512
 
# Compiler flag to generate thread-safe objects.
14513
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14514
 
 
14515
 
# Library versioning type.
14516
 
version_type=$version_type
14517
 
 
14518
 
# Format of library name prefix.
14519
 
libname_spec=$lt_libname_spec
14520
 
 
14521
 
# List of archive names.  First name is the real one, the rest are links.
14522
 
# The last name is the one that the linker finds with -lNAME.
14523
 
library_names_spec=$lt_library_names_spec
14524
 
 
14525
 
# The coded name of the library, if different from the real name.
14526
 
soname_spec=$lt_soname_spec
14527
 
 
14528
 
# Commands used to build and install an old-style archive.
14529
 
RANLIB=$lt_RANLIB
14530
 
old_archive_cmds=$lt_old_archive_cmds_CXX
14531
 
old_postinstall_cmds=$lt_old_postinstall_cmds
14532
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14533
 
 
14534
 
# Create an old-style archive from a shared archive.
14535
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14536
 
 
14537
 
# Create a temporary old-style archive to link instead of a shared archive.
14538
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14539
 
 
14540
 
# Commands used to build and install a shared archive.
14541
 
archive_cmds=$lt_archive_cmds_CXX
14542
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14543
 
postinstall_cmds=$lt_postinstall_cmds
14544
 
postuninstall_cmds=$lt_postuninstall_cmds
14545
 
 
14546
 
# Commands used to build a loadable module (assumed same as above if empty)
14547
 
module_cmds=$lt_module_cmds_CXX
14548
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14549
 
 
14550
 
# Commands to strip libraries.
14551
 
old_striplib=$lt_old_striplib
14552
 
striplib=$lt_striplib
14553
 
 
14554
 
# Dependencies to place before the objects being linked to create a
14555
 
# shared library.
14556
 
predep_objects=$lt_predep_objects_CXX
14557
 
 
14558
 
# Dependencies to place after the objects being linked to create a
14559
 
# shared library.
14560
 
postdep_objects=$lt_postdep_objects_CXX
14561
 
 
14562
 
# Dependencies to place before the objects being linked to create a
14563
 
# shared library.
14564
 
predeps=$lt_predeps_CXX
14565
 
 
14566
 
# Dependencies to place after the objects being linked to create a
14567
 
# shared library.
14568
 
postdeps=$lt_postdeps_CXX
14569
 
 
14570
 
# The library search path used internally by the compiler when linking
14571
 
# a shared library.
14572
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14573
 
 
14574
 
# Method to check whether dependent libraries are shared objects.
14575
 
deplibs_check_method=$lt_deplibs_check_method
14576
 
 
14577
 
# Command to use when deplibs_check_method == file_magic.
14578
 
file_magic_cmd=$lt_file_magic_cmd
14579
 
 
14580
 
# Flag that allows shared libraries with undefined symbols to be built.
14581
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14582
 
 
14583
 
# Flag that forces no undefined symbols.
14584
 
no_undefined_flag=$lt_no_undefined_flag_CXX
14585
 
 
14586
 
# Commands used to finish a libtool library installation in a directory.
14587
 
finish_cmds=$lt_finish_cmds
14588
 
 
14589
 
# Same as above, but a single script fragment to be evaled but not shown.
14590
 
finish_eval=$lt_finish_eval
14591
 
 
14592
 
# Take the output of nm and produce a listing of raw symbols and C names.
14593
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14594
 
 
14595
 
# Transform the output of nm in a proper C declaration
14596
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14597
 
 
14598
 
# Transform the output of nm in a C name address pair
14599
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14600
 
 
14601
 
# This is the shared library runtime path variable.
14602
 
runpath_var=$runpath_var
14603
 
 
14604
 
# This is the shared library path variable.
14605
 
shlibpath_var=$shlibpath_var
14606
 
 
14607
 
# Is shlibpath searched before the hard-coded library search path?
14608
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14609
 
 
14610
 
# How to hardcode a shared library path into an executable.
14611
 
hardcode_action=$hardcode_action_CXX
14612
 
 
14613
 
# Whether we should hardcode library paths into libraries.
14614
 
hardcode_into_libs=$hardcode_into_libs
14615
 
 
14616
 
# Flag to hardcode \$libdir into a binary during linking.
14617
 
# This must work even if \$libdir does not exist.
14618
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14619
 
 
14620
 
# If ld is used when linking, flag to hardcode \$libdir into
14621
 
# a binary during linking. This must work even if \$libdir does
14622
 
# not exist.
14623
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14624
 
 
14625
 
# Whether we need a single -rpath flag with a separated argument.
14626
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14627
 
 
14628
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14629
 
# resulting binary.
14630
 
hardcode_direct=$hardcode_direct_CXX
14631
 
 
14632
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14633
 
# resulting binary.
14634
 
hardcode_minus_L=$hardcode_minus_L_CXX
14635
 
 
14636
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14637
 
# the resulting binary.
14638
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14639
 
 
14640
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
14641
 
# and all subsequent libraries and executables linked against it.
14642
 
hardcode_automatic=$hardcode_automatic_CXX
14643
 
 
14644
 
# Variables whose values should be saved in libtool wrapper scripts and
14645
 
# restored at relink time.
14646
 
variables_saved_for_relink="$variables_saved_for_relink"
14647
 
 
14648
 
# Whether libtool must link a program against all its dependency libraries.
14649
 
link_all_deplibs=$link_all_deplibs_CXX
14650
 
 
14651
 
# Compile-time system search path for libraries
14652
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14653
 
 
14654
 
# Run-time system search path for libraries
14655
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14656
 
 
14657
 
# Fix the shell variable \$srcfile for the compiler.
14658
 
fix_srcfile_path="$fix_srcfile_path_CXX"
14659
 
 
14660
 
# Set to yes if exported symbols are required.
14661
 
always_export_symbols=$always_export_symbols_CXX
14662
 
 
14663
 
# The commands to list exported symbols.
14664
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14665
 
 
14666
 
# The commands to extract the exported symbol list from a shared archive.
14667
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14668
 
 
14669
 
# Symbols that should not be listed in the preloaded symbols.
14670
 
exclude_expsyms=$lt_exclude_expsyms_CXX
14671
 
 
14672
 
# Symbols that must always be exported.
14673
 
include_expsyms=$lt_include_expsyms_CXX
14674
 
 
14675
 
# ### END LIBTOOL TAG CONFIG: $tagname
14676
 
 
14677
 
__EOF__
14678
 
 
14679
 
 
14680
 
else
14681
 
  # If there is no Makefile yet, we rely on a make rule to execute
14682
 
  # `config.status --recheck' to rerun these tests and create the
14683
 
  # libtool script then.
14684
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14685
 
  if test -f "$ltmain_in"; then
14686
 
    test -f Makefile && make "$ltmain"
14687
 
  fi
14688
 
fi
14689
 
 
14690
 
 
14691
 
ac_ext=c
14692
 
ac_cpp='$CPP $CPPFLAGS'
14693
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14694
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14695
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14696
 
 
14697
 
CC=$lt_save_CC
14698
 
LDCXX=$LD
14699
 
LD=$lt_save_LD
14700
 
GCC=$lt_save_GCC
14701
 
with_gnu_ldcxx=$with_gnu_ld
14702
 
with_gnu_ld=$lt_save_with_gnu_ld
14703
 
lt_cv_path_LDCXX=$lt_cv_path_LD
14704
 
lt_cv_path_LD=$lt_save_path_LD
14705
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14706
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14707
 
 
14708
 
        else
14709
 
          tagname=""
14710
 
        fi
14711
 
        ;;
14712
 
 
14713
 
      F77)
14714
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
14715
 
 
14716
 
ac_ext=f
14717
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14718
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14719
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14720
 
 
14721
 
 
14722
 
archive_cmds_need_lc_F77=no
14723
 
allow_undefined_flag_F77=
14724
 
always_export_symbols_F77=no
14725
 
archive_expsym_cmds_F77=
14726
 
export_dynamic_flag_spec_F77=
14727
 
hardcode_direct_F77=no
14728
 
hardcode_libdir_flag_spec_F77=
14729
 
hardcode_libdir_flag_spec_ld_F77=
14730
 
hardcode_libdir_separator_F77=
14731
 
hardcode_minus_L_F77=no
14732
 
hardcode_automatic_F77=no
14733
 
module_cmds_F77=
14734
 
module_expsym_cmds_F77=
14735
 
link_all_deplibs_F77=unknown
14736
 
old_archive_cmds_F77=$old_archive_cmds
14737
 
no_undefined_flag_F77=
14738
 
whole_archive_flag_spec_F77=
14739
 
enable_shared_with_static_runtimes_F77=no
14740
 
 
14741
 
# Source file extension for f77 test sources.
14742
 
ac_ext=f
14743
 
 
14744
 
# Object file extension for compiled f77 test sources.
14745
 
objext=o
14746
 
objext_F77=$objext
14747
 
 
14748
 
# Code to be used in simple compile tests
14749
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14750
 
 
14751
 
# Code to be used in simple link tests
14752
 
lt_simple_link_test_code="      program t\n      end\n"
14753
 
 
14754
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14755
 
 
14756
 
# If no C compiler was specified, use CC.
14757
 
LTCC=${LTCC-"$CC"}
14758
 
 
14759
 
# Allow CC to be a program name with arguments.
14760
 
compiler=$CC
14761
 
 
14762
 
 
14763
 
# Allow CC to be a program name with arguments.
14764
 
lt_save_CC="$CC"
14765
 
CC=${F77-"f77"}
14766
 
compiler=$CC
14767
 
compiler_F77=$CC
14768
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14769
 
 
14770
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14771
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14772
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
14773
 
echo "${ECHO_T}$can_build_shared" >&6
14774
 
 
14775
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14776
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14777
 
test "$can_build_shared" = "no" && enable_shared=no
14778
 
 
14779
 
# On AIX, shared libraries and static libraries use the same namespace, and
14780
 
# are all built from PIC.
14781
 
case "$host_os" in
14782
 
aix3*)
14783
 
  test "$enable_shared" = yes && enable_static=no
14784
 
  if test -n "$RANLIB"; then
14785
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14786
 
    postinstall_cmds='$RANLIB $lib'
14787
 
  fi
14788
 
  ;;
14789
 
aix4* | aix5*)
14790
 
  test "$enable_shared" = yes && enable_static=no
14791
 
  ;;
14792
 
esac
14793
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
14794
 
echo "${ECHO_T}$enable_shared" >&6
14795
 
 
14796
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14797
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14798
 
# Make sure either enable_shared or enable_static is yes.
14799
 
test "$enable_shared" = yes || enable_static=yes
14800
 
echo "$as_me:$LINENO: result: $enable_static" >&5
14801
 
echo "${ECHO_T}$enable_static" >&6
14802
 
 
14803
 
test "$ld_shlibs_F77" = no && can_build_shared=no
14804
 
 
14805
 
GCC_F77="$G77"
14806
 
LD_F77="$LD"
14807
 
 
14808
 
lt_prog_compiler_wl_F77=
14809
 
lt_prog_compiler_pic_F77=
14810
 
lt_prog_compiler_static_F77=
14811
 
 
14812
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14813
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14814
 
 
14815
 
  if test "$GCC" = yes; then
14816
 
    lt_prog_compiler_wl_F77='-Wl,'
14817
 
    lt_prog_compiler_static_F77='-static'
14818
 
 
14819
 
    case $host_os in
14820
 
      aix*)
14821
 
      # All AIX code is PIC.
14822
 
      if test "$host_cpu" = ia64; then
14823
 
        # AIX 5 now supports IA64 processor
14824
 
        lt_prog_compiler_static_F77='-Bstatic'
14825
 
      fi
14826
 
      ;;
14827
 
 
14828
 
    amigaos*)
14829
 
      # FIXME: we need at least 68020 code to build shared libraries, but
14830
 
      # adding the `-m68020' flag to GCC prevents building anything better,
14831
 
      # like `-m68040'.
14832
 
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14833
 
      ;;
14834
 
 
14835
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14836
 
      # PIC is the default for these OSes.
14837
 
      ;;
14838
 
 
14839
 
    mingw* | pw32* | os2*)
14840
 
      # This hack is so that the source file can tell whether it is being
14841
 
      # built for inclusion in a dll (and should export symbols for example).
14842
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14843
 
      ;;
14844
 
 
14845
 
    darwin* | rhapsody*)
14846
 
      # PIC is the default on this platform
14847
 
      # Common symbols not allowed in MH_DYLIB files
14848
 
      lt_prog_compiler_pic_F77='-fno-common'
14849
 
      ;;
14850
 
 
14851
 
    msdosdjgpp*)
14852
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
14853
 
      # on systems that don't support them.
14854
 
      lt_prog_compiler_can_build_shared_F77=no
14855
 
      enable_shared=no
14856
 
      ;;
14857
 
 
14858
 
    sysv4*MP*)
14859
 
      if test -d /usr/nec; then
14860
 
        lt_prog_compiler_pic_F77=-Kconform_pic
14861
 
      fi
14862
 
      ;;
14863
 
 
14864
 
    hpux*)
14865
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14866
 
      # not for PA HP-UX.
14867
 
      case "$host_cpu" in
14868
 
      hppa*64*|ia64*)
14869
 
        # +Z the default
14870
 
        ;;
14871
 
      *)
14872
 
        lt_prog_compiler_pic_F77='-fPIC'
14873
 
        ;;
14874
 
      esac
14875
 
      ;;
14876
 
 
14877
 
    *)
14878
 
      lt_prog_compiler_pic_F77='-fPIC'
14879
 
      ;;
14880
 
    esac
14881
 
  else
14882
 
    # PORTME Check for flag to pass linker flags through the system compiler.
14883
 
    case $host_os in
14884
 
    aix*)
14885
 
      lt_prog_compiler_wl_F77='-Wl,'
14886
 
      if test "$host_cpu" = ia64; then
14887
 
        # AIX 5 now supports IA64 processor
14888
 
        lt_prog_compiler_static_F77='-Bstatic'
14889
 
      else
14890
 
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14891
 
      fi
14892
 
      ;;
14893
 
 
14894
 
    mingw* | pw32* | os2*)
14895
 
      # This hack is so that the source file can tell whether it is being
14896
 
      # built for inclusion in a dll (and should export symbols for example).
14897
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14898
 
      ;;
14899
 
 
14900
 
    hpux9* | hpux10* | hpux11*)
14901
 
      lt_prog_compiler_wl_F77='-Wl,'
14902
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14903
 
      # not for PA HP-UX.
14904
 
      case "$host_cpu" in
14905
 
      hppa*64*|ia64*)
14906
 
        # +Z the default
14907
 
        ;;
14908
 
      *)
14909
 
        lt_prog_compiler_pic_F77='+Z'
14910
 
        ;;
14911
 
      esac
14912
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14913
 
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14914
 
      ;;
14915
 
 
14916
 
    irix5* | irix6* | nonstopux*)
14917
 
      lt_prog_compiler_wl_F77='-Wl,'
14918
 
      # PIC (with -KPIC) is the default.
14919
 
      lt_prog_compiler_static_F77='-non_shared'
14920
 
      ;;
14921
 
 
14922
 
    newsos6)
14923
 
      lt_prog_compiler_pic_F77='-KPIC'
14924
 
      lt_prog_compiler_static_F77='-Bstatic'
14925
 
      ;;
14926
 
 
14927
 
    linux*)
14928
 
      case $CC in
14929
 
      icc* | ecc*)
14930
 
        lt_prog_compiler_wl_F77='-Wl,'
14931
 
        lt_prog_compiler_pic_F77='-KPIC'
14932
 
        lt_prog_compiler_static_F77='-static'
14933
 
        ;;
14934
 
      ccc*)
14935
 
        lt_prog_compiler_wl_F77='-Wl,'
14936
 
        # All Alpha code is PIC.
14937
 
        lt_prog_compiler_static_F77='-non_shared'
14938
 
        ;;
14939
 
      esac
14940
 
      ;;
14941
 
 
14942
 
    osf3* | osf4* | osf5*)
14943
 
      lt_prog_compiler_wl_F77='-Wl,'
14944
 
      # All OSF/1 code is PIC.
14945
 
      lt_prog_compiler_static_F77='-non_shared'
14946
 
      ;;
14947
 
 
14948
 
    sco3.2v5*)
14949
 
      lt_prog_compiler_pic_F77='-Kpic'
14950
 
      lt_prog_compiler_static_F77='-dn'
14951
 
      ;;
14952
 
 
14953
 
    solaris*)
14954
 
      lt_prog_compiler_wl_F77='-Wl,'
14955
 
      lt_prog_compiler_pic_F77='-KPIC'
14956
 
      lt_prog_compiler_static_F77='-Bstatic'
14957
 
      ;;
14958
 
 
14959
 
    sunos4*)
14960
 
      lt_prog_compiler_wl_F77='-Qoption ld '
14961
 
      lt_prog_compiler_pic_F77='-PIC'
14962
 
      lt_prog_compiler_static_F77='-Bstatic'
14963
 
      ;;
14964
 
 
14965
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14966
 
      lt_prog_compiler_wl_F77='-Wl,'
14967
 
      lt_prog_compiler_pic_F77='-KPIC'
14968
 
      lt_prog_compiler_static_F77='-Bstatic'
14969
 
      ;;
14970
 
 
14971
 
    sysv4*MP*)
14972
 
      if test -d /usr/nec ;then
14973
 
        lt_prog_compiler_pic_F77='-Kconform_pic'
14974
 
        lt_prog_compiler_static_F77='-Bstatic'
14975
 
      fi
14976
 
      ;;
14977
 
 
14978
 
    uts4*)
14979
 
      lt_prog_compiler_pic_F77='-pic'
14980
 
      lt_prog_compiler_static_F77='-Bstatic'
14981
 
      ;;
14982
 
 
14983
 
    *)
14984
 
      lt_prog_compiler_can_build_shared_F77=no
14985
 
      ;;
14986
 
    esac
14987
 
  fi
14988
 
 
14989
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14990
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14991
 
 
14992
 
#
14993
 
# Check to make sure the PIC flag actually works.
14994
 
#
14995
 
if test -n "$lt_prog_compiler_pic_F77"; then
14996
 
 
14997
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14998
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14999
 
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15000
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15001
 
else
15002
 
  lt_prog_compiler_pic_works_F77=no
15003
 
  ac_outfile=conftest.$ac_objext
15004
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15005
 
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
15006
 
   # Insert the option either (1) after the last *FLAGS variable, or
15007
 
   # (2) before a word containing "conftest.", or (3) at the end.
15008
 
   # Note that $ac_compile itself does not contain backslashes and begins
15009
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15010
 
   # The option is referenced via a variable to avoid confusing sed.
15011
 
   lt_compile=`echo "$ac_compile" | $SED \
15012
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15013
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15014
 
   -e 's:$: $lt_compiler_flag:'`
15015
 
   (eval echo "\"\$as_me:15015: $lt_compile\"" >&5)
15016
 
   (eval "$lt_compile" 2>conftest.err)
15017
 
   ac_status=$?
15018
 
   cat conftest.err >&5
15019
 
   echo "$as_me:15019: \$? = $ac_status" >&5
15020
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
15021
 
     # The compiler can only warn and ignore the option if not recognized
15022
 
     # So say no if there are warnings
15023
 
     if test ! -s conftest.err; then
15024
 
       lt_prog_compiler_pic_works_F77=yes
15025
 
     fi
15026
 
   fi
15027
 
   $rm conftest*
15028
 
 
15029
 
fi
15030
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15031
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15032
 
 
15033
 
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15034
 
    case $lt_prog_compiler_pic_F77 in
15035
 
     "" | " "*) ;;
15036
 
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15037
 
     esac
15038
 
else
15039
 
    lt_prog_compiler_pic_F77=
15040
 
     lt_prog_compiler_can_build_shared_F77=no
15041
 
fi
15042
 
 
15043
 
fi
15044
 
case "$host_os" in
15045
 
  # For platforms which do not support PIC, -DPIC is meaningless:
15046
 
  *djgpp*)
15047
 
    lt_prog_compiler_pic_F77=
15048
 
    ;;
15049
 
  *)
15050
 
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15051
 
    ;;
15052
 
esac
15053
 
 
15054
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15055
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15056
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15057
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15058
 
else
15059
 
  lt_cv_prog_compiler_c_o_F77=no
15060
 
   $rm -r conftest 2>/dev/null
15061
 
   mkdir conftest
15062
 
   cd conftest
15063
 
   mkdir out
15064
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15065
 
 
15066
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
15067
 
   # Insert the option either (1) after the last *FLAGS variable, or
15068
 
   # (2) before a word containing "conftest.", or (3) at the end.
15069
 
   # Note that $ac_compile itself does not contain backslashes and begins
15070
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15071
 
   lt_compile=`echo "$ac_compile" | $SED \
15072
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15073
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15074
 
   -e 's:$: $lt_compiler_flag:'`
15075
 
   (eval echo "\"\$as_me:15075: $lt_compile\"" >&5)
15076
 
   (eval "$lt_compile" 2>out/conftest.err)
15077
 
   ac_status=$?
15078
 
   cat out/conftest.err >&5
15079
 
   echo "$as_me:15079: \$? = $ac_status" >&5
15080
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15081
 
   then
15082
 
     # The compiler can only warn and ignore the option if not recognized
15083
 
     # So say no if there are warnings
15084
 
     if test ! -s out/conftest.err; then
15085
 
       lt_cv_prog_compiler_c_o_F77=yes
15086
 
     fi
15087
 
   fi
15088
 
   chmod u+w .
15089
 
   $rm conftest*
15090
 
   # SGI C++ compiler will create directory out/ii_files/ for
15091
 
   # template instantiation
15092
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15093
 
   $rm out/* && rmdir out
15094
 
   cd ..
15095
 
   rmdir conftest
15096
 
   $rm conftest*
15097
 
 
15098
 
fi
15099
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15100
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15101
 
 
15102
 
 
15103
 
hard_links="nottested"
15104
 
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15105
 
  # do not overwrite the value of need_locks provided by the user
15106
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15107
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15108
 
  hard_links=yes
15109
 
  $rm conftest*
15110
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15111
 
  touch conftest.a
15112
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
15113
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15114
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
15115
 
echo "${ECHO_T}$hard_links" >&6
15116
 
  if test "$hard_links" = no; then
15117
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15118
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15119
 
    need_locks=warn
15120
 
  fi
15121
 
else
15122
 
  need_locks=no
15123
 
fi
15124
 
 
15125
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15126
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15127
 
 
15128
 
  runpath_var=
15129
 
  allow_undefined_flag_F77=
15130
 
  enable_shared_with_static_runtimes_F77=no
15131
 
  archive_cmds_F77=
15132
 
  archive_expsym_cmds_F77=
15133
 
  old_archive_From_new_cmds_F77=
15134
 
  old_archive_from_expsyms_cmds_F77=
15135
 
  export_dynamic_flag_spec_F77=
15136
 
  whole_archive_flag_spec_F77=
15137
 
  thread_safe_flag_spec_F77=
15138
 
  hardcode_libdir_flag_spec_F77=
15139
 
  hardcode_libdir_flag_spec_ld_F77=
15140
 
  hardcode_libdir_separator_F77=
15141
 
  hardcode_direct_F77=no
15142
 
  hardcode_minus_L_F77=no
15143
 
  hardcode_shlibpath_var_F77=unsupported
15144
 
  link_all_deplibs_F77=unknown
15145
 
  hardcode_automatic_F77=no
15146
 
  module_cmds_F77=
15147
 
  module_expsym_cmds_F77=
15148
 
  always_export_symbols_F77=no
15149
 
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15150
 
  # include_expsyms should be a list of space-separated symbols to be *always*
15151
 
  # included in the symbol list
15152
 
  include_expsyms_F77=
15153
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
15154
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15155
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15156
 
  # as well as any symbol that contains `d'.
15157
 
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15158
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15159
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
15160
 
  # the symbol is explicitly referenced.  Since portable code cannot
15161
 
  # rely on this symbol name, it's probably fine to never include it in
15162
 
  # preloaded symbol tables.
15163
 
  extract_expsyms_cmds=
15164
 
 
15165
 
  case $host_os in
15166
 
  cygwin* | mingw* | pw32*)
15167
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15168
 
    # When not using gcc, we currently assume that we are using
15169
 
    # Microsoft Visual C++.
15170
 
    if test "$GCC" != yes; then
15171
 
      with_gnu_ld=no
15172
 
    fi
15173
 
    ;;
15174
 
  openbsd*)
15175
 
    with_gnu_ld=no
15176
 
    ;;
15177
 
  esac
15178
 
 
15179
 
  ld_shlibs_F77=yes
15180
 
  if test "$with_gnu_ld" = yes; then
15181
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
15182
 
    wlarc='${wl}'
15183
 
 
15184
 
    # See if GNU ld supports shared libraries.
15185
 
    case $host_os in
15186
 
    aix3* | aix4* | aix5*)
15187
 
      # On AIX/PPC, the GNU linker is very broken
15188
 
      if test "$host_cpu" != ia64; then
15189
 
        ld_shlibs_F77=no
15190
 
        cat <<EOF 1>&2
15191
 
 
15192
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15193
 
*** to be unable to reliably create shared libraries on AIX.
15194
 
*** Therefore, libtool is disabling shared libraries support.  If you
15195
 
*** really care for shared libraries, you may want to modify your PATH
15196
 
*** so that a non-GNU linker is found, and then restart.
15197
 
 
15198
 
EOF
15199
 
      fi
15200
 
      ;;
15201
 
 
15202
 
    amigaos*)
15203
 
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15204
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15205
 
      hardcode_minus_L_F77=yes
15206
 
 
15207
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15208
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
15209
 
      # to version 4, is to share data among multiple programs linked
15210
 
      # with the same dynamic library.  Since this doesn't match the
15211
 
      # behavior of shared libraries on other platforms, we can't use
15212
 
      # them.
15213
 
      ld_shlibs_F77=no
15214
 
      ;;
15215
 
 
15216
 
    beos*)
15217
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15218
 
        allow_undefined_flag_F77=unsupported
15219
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15220
 
        # support --undefined.  This deserves some investigation.  FIXME
15221
 
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15222
 
      else
15223
 
        ld_shlibs_F77=no
15224
 
      fi
15225
 
      ;;
15226
 
 
15227
 
    cygwin* | mingw* | pw32*)
15228
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15229
 
      # as there is no search path for DLLs.
15230
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15231
 
      allow_undefined_flag_F77=unsupported
15232
 
      always_export_symbols_F77=no
15233
 
      enable_shared_with_static_runtimes_F77=yes
15234
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15235
 
 
15236
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15237
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15238
 
        # If the export-symbols file already is a .def file (1st line
15239
 
        # is EXPORTS), use it as is; otherwise, prepend...
15240
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15241
 
          cp $export_symbols $output_objdir/$soname.def;
15242
 
        else
15243
 
          echo EXPORTS > $output_objdir/$soname.def;
15244
 
          cat $export_symbols >> $output_objdir/$soname.def;
15245
 
        fi~
15246
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15247
 
      else
15248
 
        ld_shlibs=no
15249
 
      fi
15250
 
      ;;
15251
 
 
15252
 
    netbsd*)
15253
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15254
 
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15255
 
        wlarc=
15256
 
      else
15257
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15258
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15259
 
      fi
15260
 
      ;;
15261
 
 
15262
 
    solaris* | sysv5*)
15263
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15264
 
        ld_shlibs_F77=no
15265
 
        cat <<EOF 1>&2
15266
 
 
15267
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15268
 
*** create shared libraries on Solaris systems.  Therefore, libtool
15269
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
15270
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
15271
 
*** your PATH or compiler configuration so that the native linker is
15272
 
*** used, and then restart.
15273
 
 
15274
 
EOF
15275
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15276
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15277
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15278
 
      else
15279
 
        ld_shlibs_F77=no
15280
 
      fi
15281
 
      ;;
15282
 
 
15283
 
    sunos4*)
15284
 
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15285
 
      wlarc=
15286
 
      hardcode_direct_F77=yes
15287
 
      hardcode_shlibpath_var_F77=no
15288
 
      ;;
15289
 
 
15290
 
  linux*)
15291
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15292
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15293
 
        archive_cmds_F77="$tmp_archive_cmds"
15294
 
      supports_anon_versioning=no
15295
 
      case `$LD -v 2>/dev/null` in
15296
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15297
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15298
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15299
 
        *\ 2.11.*) ;; # other 2.11 versions
15300
 
        *) supports_anon_versioning=yes ;;
15301
 
      esac
15302
 
      if test $supports_anon_versioning = yes; then
15303
 
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15304
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15305
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
15306
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15307
 
      else
15308
 
        archive_expsym_cmds_F77="$tmp_archive_cmds"
15309
 
      fi
15310
 
    else
15311
 
      ld_shlibs_F77=no
15312
 
    fi
15313
 
    ;;
15314
 
 
15315
 
    *)
15316
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15317
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15318
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15319
 
      else
15320
 
        ld_shlibs_F77=no
15321
 
      fi
15322
 
      ;;
15323
 
    esac
15324
 
 
15325
 
    if test "$ld_shlibs_F77" = yes; then
15326
 
      runpath_var=LD_RUN_PATH
15327
 
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15328
 
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15329
 
      # ancient GNU ld didn't support --whole-archive et. al.
15330
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15331
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15332
 
      else
15333
 
        whole_archive_flag_spec_F77=
15334
 
      fi
15335
 
    fi
15336
 
  else
15337
 
    # PORTME fill in a description of your system's linker (not GNU ld)
15338
 
    case $host_os in
15339
 
    aix3*)
15340
 
      allow_undefined_flag_F77=unsupported
15341
 
      always_export_symbols_F77=yes
15342
 
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15343
 
      # Note: this linker hardcodes the directories in LIBPATH if there
15344
 
      # are no directories specified by -L.
15345
 
      hardcode_minus_L_F77=yes
15346
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
15347
 
        # Neither direct hardcoding nor static linking is supported with a
15348
 
        # broken collect2.
15349
 
        hardcode_direct_F77=unsupported
15350
 
      fi
15351
 
      ;;
15352
 
 
15353
 
    aix4* | aix5*)
15354
 
      if test "$host_cpu" = ia64; then
15355
 
        # On IA64, the linker does run time linking by default, so we don't
15356
 
        # have to do anything special.
15357
 
        aix_use_runtimelinking=no
15358
 
        exp_sym_flag='-Bexport'
15359
 
        no_entry_flag=""
15360
 
      else
15361
 
        # If we're using GNU nm, then we don't want the "-C" option.
15362
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
15363
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15364
 
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15365
 
        else
15366
 
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15367
 
        fi
15368
 
        aix_use_runtimelinking=no
15369
 
 
15370
 
        # Test if we are trying to use run time linking or normal
15371
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15372
 
        # need to do runtime linking.
15373
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15374
 
          for ld_flag in $LDFLAGS; do
15375
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15376
 
            aix_use_runtimelinking=yes
15377
 
            break
15378
 
          fi
15379
 
          done
15380
 
        esac
15381
 
 
15382
 
        exp_sym_flag='-bexport'
15383
 
        no_entry_flag='-bnoentry'
15384
 
      fi
15385
 
 
15386
 
      # When large executables or shared objects are built, AIX ld can
15387
 
      # have problems creating the table of contents.  If linking a library
15388
 
      # or program results in "error TOC overflow" add -mminimal-toc to
15389
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15390
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15391
 
 
15392
 
      archive_cmds_F77=''
15393
 
      hardcode_direct_F77=yes
15394
 
      hardcode_libdir_separator_F77=':'
15395
 
      link_all_deplibs_F77=yes
15396
 
 
15397
 
      if test "$GCC" = yes; then
15398
 
        case $host_os in aix4.012|aix4.012.*)
15399
 
        # We only want to do this on AIX 4.2 and lower, the check
15400
 
        # below for broken collect2 doesn't work under 4.3+
15401
 
          collect2name=`${CC} -print-prog-name=collect2`
15402
 
          if test -f "$collect2name" && \
15403
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
15404
 
          then
15405
 
          # We have reworked collect2
15406
 
          hardcode_direct_F77=yes
15407
 
          else
15408
 
          # We have old collect2
15409
 
          hardcode_direct_F77=unsupported
15410
 
          # It fails to find uninstalled libraries when the uninstalled
15411
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
15412
 
          # to unsupported forces relinking
15413
 
          hardcode_minus_L_F77=yes
15414
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
15415
 
          hardcode_libdir_separator_F77=
15416
 
          fi
15417
 
        esac
15418
 
        shared_flag='-shared'
15419
 
      else
15420
 
        # not using gcc
15421
 
        if test "$host_cpu" = ia64; then
15422
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15423
 
        # chokes on -Wl,-G. The following line is correct:
15424
 
          shared_flag='-G'
15425
 
        else
15426
 
        if test "$aix_use_runtimelinking" = yes; then
15427
 
            shared_flag='${wl}-G'
15428
 
          else
15429
 
            shared_flag='${wl}-bM:SRE'
15430
 
        fi
15431
 
        fi
15432
 
      fi
15433
 
 
15434
 
      # It seems that -bexpall does not export symbols beginning with
15435
 
      # underscore (_), so it is better to generate a list of symbols to export.
15436
 
      always_export_symbols_F77=yes
15437
 
      if test "$aix_use_runtimelinking" = yes; then
15438
 
        # Warning - without using the other runtime loading flags (-brtl),
15439
 
        # -berok will link without error, but may produce a broken library.
15440
 
        allow_undefined_flag_F77='-berok'
15441
 
       # Determine the default libpath from the value encoded in an empty executable.
15442
 
       cat >conftest.$ac_ext <<_ACEOF
15443
 
      program main
15444
 
 
15445
 
      end
15446
 
_ACEOF
15447
 
rm -f conftest.$ac_objext conftest$ac_exeext
15448
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15449
 
  (eval $ac_link) 2>conftest.er1
15450
 
  ac_status=$?
15451
 
  grep -v '^ *+' conftest.er1 >conftest.err
15452
 
  rm -f conftest.er1
15453
 
  cat conftest.err >&5
15454
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455
 
  (exit $ac_status); } &&
15456
 
         { ac_try='test -z "$ac_f77_werror_flag"
15457
 
                         || test ! -s conftest.err'
15458
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459
 
  (eval $ac_try) 2>&5
15460
 
  ac_status=$?
15461
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462
 
  (exit $ac_status); }; } &&
15463
 
         { ac_try='test -s conftest$ac_exeext'
15464
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465
 
  (eval $ac_try) 2>&5
15466
 
  ac_status=$?
15467
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468
 
  (exit $ac_status); }; }; then
15469
 
 
15470
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15471
 
}'`
15472
 
# Check for a 64-bit object if we didn't find anything.
15473
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15474
 
}'`; fi
15475
 
else
15476
 
  echo "$as_me: failed program was:" >&5
15477
 
sed 's/^/| /' conftest.$ac_ext >&5
15478
 
 
15479
 
fi
15480
 
rm -f conftest.err conftest.$ac_objext \
15481
 
      conftest$ac_exeext conftest.$ac_ext
15482
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15483
 
 
15484
 
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15485
 
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15486
 
       else
15487
 
        if test "$host_cpu" = ia64; then
15488
 
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15489
 
          allow_undefined_flag_F77="-z nodefs"
15490
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15491
 
        else
15492
 
         # Determine the default libpath from the value encoded in an empty executable.
15493
 
         cat >conftest.$ac_ext <<_ACEOF
15494
 
      program main
15495
 
 
15496
 
      end
15497
 
_ACEOF
15498
 
rm -f conftest.$ac_objext conftest$ac_exeext
15499
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15500
 
  (eval $ac_link) 2>conftest.er1
15501
 
  ac_status=$?
15502
 
  grep -v '^ *+' conftest.er1 >conftest.err
15503
 
  rm -f conftest.er1
15504
 
  cat conftest.err >&5
15505
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506
 
  (exit $ac_status); } &&
15507
 
         { ac_try='test -z "$ac_f77_werror_flag"
15508
 
                         || test ! -s conftest.err'
15509
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510
 
  (eval $ac_try) 2>&5
15511
 
  ac_status=$?
15512
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513
 
  (exit $ac_status); }; } &&
15514
 
         { ac_try='test -s conftest$ac_exeext'
15515
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516
 
  (eval $ac_try) 2>&5
15517
 
  ac_status=$?
15518
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519
 
  (exit $ac_status); }; }; then
15520
 
 
15521
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15522
 
}'`
15523
 
# Check for a 64-bit object if we didn't find anything.
15524
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15525
 
}'`; fi
15526
 
else
15527
 
  echo "$as_me: failed program was:" >&5
15528
 
sed 's/^/| /' conftest.$ac_ext >&5
15529
 
 
15530
 
fi
15531
 
rm -f conftest.err conftest.$ac_objext \
15532
 
      conftest$ac_exeext conftest.$ac_ext
15533
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15534
 
 
15535
 
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15536
 
          # Warning - without using the other run time loading flags,
15537
 
          # -berok will link without error, but may produce a broken library.
15538
 
          no_undefined_flag_F77=' ${wl}-bernotok'
15539
 
          allow_undefined_flag_F77=' ${wl}-berok'
15540
 
          # -bexpall does not export symbols beginning with underscore (_)
15541
 
          always_export_symbols_F77=yes
15542
 
          # Exported symbols can be pulled into shared objects from archives
15543
 
          whole_archive_flag_spec_F77=' '
15544
 
          archive_cmds_need_lc_F77=yes
15545
 
          # This is similar to how AIX traditionally builds it's shared libraries.
15546
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15547
 
        fi
15548
 
      fi
15549
 
      ;;
15550
 
 
15551
 
    amigaos*)
15552
 
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15553
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15554
 
      hardcode_minus_L_F77=yes
15555
 
      # see comment about different semantics on the GNU ld section
15556
 
      ld_shlibs_F77=no
15557
 
      ;;
15558
 
 
15559
 
    bsdi4*)
15560
 
      export_dynamic_flag_spec_F77=-rdynamic
15561
 
      ;;
15562
 
 
15563
 
    cygwin* | mingw* | pw32*)
15564
 
      # When not using gcc, we currently assume that we are using
15565
 
      # Microsoft Visual C++.
15566
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
15567
 
      # no search path for DLLs.
15568
 
      hardcode_libdir_flag_spec_F77=' '
15569
 
      allow_undefined_flag_F77=unsupported
15570
 
      # Tell ltmain to make .lib files, not .a files.
15571
 
      libext=lib
15572
 
      # Tell ltmain to make .dll files, not .so files.
15573
 
      shrext_cmds=".dll"
15574
 
      # FIXME: Setting linknames here is a bad hack.
15575
 
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15576
 
      # The linker will automatically build a .lib file if we build a DLL.
15577
 
      old_archive_From_new_cmds_F77='true'
15578
 
      # FIXME: Should let the user specify the lib program.
15579
 
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15580
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
15581
 
      enable_shared_with_static_runtimes_F77=yes
15582
 
      ;;
15583
 
 
15584
 
    darwin* | rhapsody*)
15585
 
    if test "$GXX" = yes ; then
15586
 
      archive_cmds_need_lc_F77=no
15587
 
      case "$host_os" in
15588
 
      rhapsody* | darwin1.[012])
15589
 
        allow_undefined_flag_F77='-undefined suppress'
15590
 
        ;;
15591
 
      *) # Darwin 1.3 on
15592
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15593
 
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15594
 
      else
15595
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
15596
 
          10.[012])
15597
 
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15598
 
            ;;
15599
 
          10.*)
15600
 
            allow_undefined_flag_F77='-undefined dynamic_lookup'
15601
 
            ;;
15602
 
        esac
15603
 
      fi
15604
 
        ;;
15605
 
      esac
15606
 
        lt_int_apple_cc_single_mod=no
15607
 
        output_verbose_link_cmd='echo'
15608
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15609
 
          lt_int_apple_cc_single_mod=yes
15610
 
        fi
15611
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15612
 
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15613
 
        else
15614
 
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15615
 
      fi
15616
 
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15617
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15618
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15619
 
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15620
 
        else
15621
 
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15622
 
        fi
15623
 
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15624
 
      hardcode_direct_F77=no
15625
 
      hardcode_automatic_F77=yes
15626
 
      hardcode_shlibpath_var_F77=unsupported
15627
 
      whole_archive_flag_spec_F77='-all_load $convenience'
15628
 
      link_all_deplibs_F77=yes
15629
 
    else
15630
 
      ld_shlibs_F77=no
15631
 
    fi
15632
 
      ;;
15633
 
 
15634
 
    dgux*)
15635
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15636
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15637
 
      hardcode_shlibpath_var_F77=no
15638
 
      ;;
15639
 
 
15640
 
    freebsd1*)
15641
 
      ld_shlibs_F77=no
15642
 
      ;;
15643
 
 
15644
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15645
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
15646
 
    # does not break anything, and helps significantly (at the cost of a little
15647
 
    # extra space).
15648
 
    freebsd2.2*)
15649
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15650
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15651
 
      hardcode_direct_F77=yes
15652
 
      hardcode_shlibpath_var_F77=no
15653
 
      ;;
15654
 
 
15655
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15656
 
    freebsd2*)
15657
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15658
 
      hardcode_direct_F77=yes
15659
 
      hardcode_minus_L_F77=yes
15660
 
      hardcode_shlibpath_var_F77=no
15661
 
      ;;
15662
 
 
15663
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15664
 
    freebsd* | kfreebsd*-gnu)
15665
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15666
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15667
 
      hardcode_direct_F77=yes
15668
 
      hardcode_shlibpath_var_F77=no
15669
 
      ;;
15670
 
 
15671
 
    hpux9*)
15672
 
      if test "$GCC" = yes; then
15673
 
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
15674
 
      else
15675
 
        archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
15676
 
      fi
15677
 
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15678
 
      hardcode_libdir_separator_F77=:
15679
 
      hardcode_direct_F77=yes
15680
 
 
15681
 
      # hardcode_minus_L: Not really in the search PATH,
15682
 
      # but as the default location of the library.
15683
 
      hardcode_minus_L_F77=yes
15684
 
      export_dynamic_flag_spec_F77='${wl}-E'
15685
 
      ;;
15686
 
 
15687
 
    hpux10* | hpux11*)
15688
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15689
 
        case "$host_cpu" in
15690
 
        hppa*64*|ia64*)
15691
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15692
 
          ;;
15693
 
        *)
15694
 
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15695
 
          ;;
15696
 
        esac
15697
 
      else
15698
 
        case "$host_cpu" in
15699
 
        hppa*64*|ia64*)
15700
 
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15701
 
          ;;
15702
 
        *)
15703
 
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15704
 
          ;;
15705
 
        esac
15706
 
      fi
15707
 
      if test "$with_gnu_ld" = no; then
15708
 
        case "$host_cpu" in
15709
 
        hppa*64*)
15710
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15711
 
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15712
 
          hardcode_libdir_separator_F77=:
15713
 
          hardcode_direct_F77=no
15714
 
          hardcode_shlibpath_var_F77=no
15715
 
          ;;
15716
 
        ia64*)
15717
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
15718
 
          hardcode_direct_F77=no
15719
 
          hardcode_shlibpath_var_F77=no
15720
 
 
15721
 
          # hardcode_minus_L: Not really in the search PATH,
15722
 
          # but as the default location of the library.
15723
 
          hardcode_minus_L_F77=yes
15724
 
          ;;
15725
 
        *)
15726
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15727
 
          hardcode_libdir_separator_F77=:
15728
 
          hardcode_direct_F77=yes
15729
 
          export_dynamic_flag_spec_F77='${wl}-E'
15730
 
 
15731
 
          # hardcode_minus_L: Not really in the search PATH,
15732
 
          # but as the default location of the library.
15733
 
          hardcode_minus_L_F77=yes
15734
 
          ;;
15735
 
        esac
15736
 
      fi
15737
 
      ;;
15738
 
 
15739
 
    irix5* | irix6* | nonstopux*)
15740
 
      if test "$GCC" = yes; then
15741
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15742
 
      else
15743
 
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15744
 
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15745
 
      fi
15746
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15747
 
      hardcode_libdir_separator_F77=:
15748
 
      link_all_deplibs_F77=yes
15749
 
      ;;
15750
 
 
15751
 
    netbsd*)
15752
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15753
 
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15754
 
      else
15755
 
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15756
 
      fi
15757
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15758
 
      hardcode_direct_F77=yes
15759
 
      hardcode_shlibpath_var_F77=no
15760
 
      ;;
15761
 
 
15762
 
    newsos6)
15763
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15764
 
      hardcode_direct_F77=yes
15765
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15766
 
      hardcode_libdir_separator_F77=:
15767
 
      hardcode_shlibpath_var_F77=no
15768
 
      ;;
15769
 
 
15770
 
    openbsd*)
15771
 
      hardcode_direct_F77=yes
15772
 
      hardcode_shlibpath_var_F77=no
15773
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15774
 
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15775
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15776
 
        export_dynamic_flag_spec_F77='${wl}-E'
15777
 
      else
15778
 
       case $host_os in
15779
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15780
 
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15781
 
           hardcode_libdir_flag_spec_F77='-R$libdir'
15782
 
           ;;
15783
 
         *)
15784
 
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15785
 
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15786
 
           ;;
15787
 
       esac
15788
 
      fi
15789
 
      ;;
15790
 
 
15791
 
    os2*)
15792
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15793
 
      hardcode_minus_L_F77=yes
15794
 
      allow_undefined_flag_F77=unsupported
15795
 
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15796
 
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15797
 
      ;;
15798
 
 
15799
 
    osf3*)
15800
 
      if test "$GCC" = yes; then
15801
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15802
 
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15803
 
      else
15804
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
15805
 
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15806
 
      fi
15807
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15808
 
      hardcode_libdir_separator_F77=:
15809
 
      ;;
15810
 
 
15811
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
15812
 
      if test "$GCC" = yes; then
15813
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15814
 
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15815
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15816
 
      else
15817
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
15818
 
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15819
 
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15820
 
        $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'
15821
 
 
15822
 
        # Both c and cxx compiler support -rpath directly
15823
 
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
15824
 
      fi
15825
 
      hardcode_libdir_separator_F77=:
15826
 
      ;;
15827
 
 
15828
 
    sco3.2v5*)
15829
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15830
 
      hardcode_shlibpath_var_F77=no
15831
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
15832
 
      runpath_var=LD_RUN_PATH
15833
 
      hardcode_runpath_var=yes
15834
 
      ;;
15835
 
 
15836
 
    solaris*)
15837
 
      no_undefined_flag_F77=' -z text'
15838
 
      if test "$GCC" = yes; then
15839
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15840
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15841
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15842
 
      else
15843
 
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15844
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15845
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15846
 
      fi
15847
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15848
 
      hardcode_shlibpath_var_F77=no
15849
 
      case $host_os in
15850
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
15851
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15852
 
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15853
 
      esac
15854
 
      link_all_deplibs_F77=yes
15855
 
      ;;
15856
 
 
15857
 
    sunos4*)
15858
 
      if test "x$host_vendor" = xsequent; then
15859
 
        # Use $CC to link under sequent, because it throws in some extra .o
15860
 
        # files that make .init and .fini sections work.
15861
 
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15862
 
      else
15863
 
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15864
 
      fi
15865
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15866
 
      hardcode_direct_F77=yes
15867
 
      hardcode_minus_L_F77=yes
15868
 
      hardcode_shlibpath_var_F77=no
15869
 
      ;;
15870
 
 
15871
 
    sysv4)
15872
 
      case $host_vendor in
15873
 
        sni)
15874
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15875
 
          hardcode_direct_F77=yes # is this really true???
15876
 
        ;;
15877
 
        siemens)
15878
 
          ## LD is ld it makes a PLAMLIB
15879
 
          ## CC just makes a GrossModule.
15880
 
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15881
 
          reload_cmds_F77='$CC -r -o $output$reload_objs'
15882
 
          hardcode_direct_F77=no
15883
 
        ;;
15884
 
        motorola)
15885
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15886
 
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15887
 
        ;;
15888
 
      esac
15889
 
      runpath_var='LD_RUN_PATH'
15890
 
      hardcode_shlibpath_var_F77=no
15891
 
      ;;
15892
 
 
15893
 
    sysv4.3*)
15894
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15895
 
      hardcode_shlibpath_var_F77=no
15896
 
      export_dynamic_flag_spec_F77='-Bexport'
15897
 
      ;;
15898
 
 
15899
 
    sysv4*MP*)
15900
 
      if test -d /usr/nec; then
15901
 
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15902
 
        hardcode_shlibpath_var_F77=no
15903
 
        runpath_var=LD_RUN_PATH
15904
 
        hardcode_runpath_var=yes
15905
 
        ld_shlibs_F77=yes
15906
 
      fi
15907
 
      ;;
15908
 
 
15909
 
    sysv4.2uw2*)
15910
 
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15911
 
      hardcode_direct_F77=yes
15912
 
      hardcode_minus_L_F77=no
15913
 
      hardcode_shlibpath_var_F77=no
15914
 
      hardcode_runpath_var=yes
15915
 
      runpath_var=LD_RUN_PATH
15916
 
      ;;
15917
 
 
15918
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15919
 
      no_undefined_flag_F77='${wl}-z ${wl}text'
15920
 
      if test "$GCC" = yes; then
15921
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15922
 
      else
15923
 
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15924
 
      fi
15925
 
      runpath_var='LD_RUN_PATH'
15926
 
      hardcode_shlibpath_var_F77=no
15927
 
      ;;
15928
 
 
15929
 
    sysv5*)
15930
 
      no_undefined_flag_F77=' -z text'
15931
 
      # $CC -shared without GNU ld will not create a library from C++
15932
 
      # object files and a static libstdc++, better avoid it by now
15933
 
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15934
 
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15935
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15936
 
      hardcode_libdir_flag_spec_F77=
15937
 
      hardcode_shlibpath_var_F77=no
15938
 
      runpath_var='LD_RUN_PATH'
15939
 
      ;;
15940
 
 
15941
 
    uts4*)
15942
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15943
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15944
 
      hardcode_shlibpath_var_F77=no
15945
 
      ;;
15946
 
 
15947
 
    *)
15948
 
      ld_shlibs_F77=no
15949
 
      ;;
15950
 
    esac
15951
 
  fi
15952
 
 
15953
 
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15954
 
echo "${ECHO_T}$ld_shlibs_F77" >&6
15955
 
test "$ld_shlibs_F77" = no && can_build_shared=no
15956
 
 
15957
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15958
 
if test "$GCC" = yes; then
15959
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15960
 
fi
15961
 
 
15962
 
#
15963
 
# Do we need to explicitly link libc?
15964
 
#
15965
 
case "x$archive_cmds_need_lc_F77" in
15966
 
x|xyes)
15967
 
  # Assume -lc should be added
15968
 
  archive_cmds_need_lc_F77=yes
15969
 
 
15970
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
15971
 
    case $archive_cmds_F77 in
15972
 
    *'~'*)
15973
 
      # FIXME: we may have to deal with multi-command sequences.
15974
 
      ;;
15975
 
    '$CC '*)
15976
 
      # Test whether the compiler implicitly links with -lc since on some
15977
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15978
 
      # to ld, don't add -lc before -lgcc.
15979
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15980
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15981
 
      $rm conftest*
15982
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15983
 
 
15984
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15985
 
  (eval $ac_compile) 2>&5
15986
 
  ac_status=$?
15987
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988
 
  (exit $ac_status); } 2>conftest.err; then
15989
 
        soname=conftest
15990
 
        lib=conftest
15991
 
        libobjs=conftest.$ac_objext
15992
 
        deplibs=
15993
 
        wl=$lt_prog_compiler_wl_F77
15994
 
        compiler_flags=-v
15995
 
        linker_flags=-v
15996
 
        verstring=
15997
 
        output_objdir=.
15998
 
        libname=conftest
15999
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16000
 
        allow_undefined_flag_F77=
16001
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16002
 
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16003
 
  ac_status=$?
16004
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005
 
  (exit $ac_status); }
16006
 
        then
16007
 
          archive_cmds_need_lc_F77=no
16008
 
        else
16009
 
          archive_cmds_need_lc_F77=yes
16010
 
        fi
16011
 
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16012
 
      else
16013
 
        cat conftest.err 1>&5
16014
 
      fi
16015
 
      $rm conftest*
16016
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16017
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16018
 
      ;;
16019
 
    esac
16020
 
  fi
16021
 
  ;;
16022
 
esac
16023
 
 
16024
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16025
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16026
 
library_names_spec=
16027
 
libname_spec='lib$name'
16028
 
soname_spec=
16029
 
shrext_cmds=".so"
16030
 
postinstall_cmds=
16031
 
postuninstall_cmds=
16032
 
finish_cmds=
16033
 
finish_eval=
16034
 
shlibpath_var=
16035
 
shlibpath_overrides_runpath=unknown
16036
 
version_type=none
16037
 
dynamic_linker="$host_os ld.so"
16038
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16039
 
if test "$GCC" = yes; then
16040
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16041
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16042
 
    # if the path contains ";" then we assume it to be the separator
16043
 
    # otherwise default to the standard path separator (i.e. ":") - it is
16044
 
    # assumed that no part of a normal pathname contains ";" but that should
16045
 
    # okay in the real world where ";" in dirpaths is itself problematic.
16046
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16047
 
  else
16048
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16049
 
  fi
16050
 
else
16051
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16052
 
fi
16053
 
need_lib_prefix=unknown
16054
 
hardcode_into_libs=no
16055
 
 
16056
 
# when you set need_version to no, make sure it does not cause -set_version
16057
 
# flags to be left without arguments
16058
 
need_version=unknown
16059
 
 
16060
 
case $host_os in
16061
 
aix3*)
16062
 
  version_type=linux
16063
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16064
 
  shlibpath_var=LIBPATH
16065
 
 
16066
 
  # AIX 3 has no versioning support, so we append a major version to the name.
16067
 
  soname_spec='${libname}${release}${shared_ext}$major'
16068
 
  ;;
16069
 
 
16070
 
aix4* | aix5*)
16071
 
  version_type=linux
16072
 
  need_lib_prefix=no
16073
 
  need_version=no
16074
 
  hardcode_into_libs=yes
16075
 
  if test "$host_cpu" = ia64; then
16076
 
    # AIX 5 supports IA64
16077
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16078
 
    shlibpath_var=LD_LIBRARY_PATH
16079
 
  else
16080
 
    # With GCC up to 2.95.x, collect2 would create an import file
16081
 
    # for dependence libraries.  The import file would start with
16082
 
    # the line `#! .'.  This would cause the generated library to
16083
 
    # depend on `.', always an invalid library.  This was fixed in
16084
 
    # development snapshots of GCC prior to 3.0.
16085
 
    case $host_os in
16086
 
      aix4 | aix4.[01] | aix4.[01].*)
16087
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16088
 
           echo ' yes '
16089
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16090
 
        :
16091
 
      else
16092
 
        can_build_shared=no
16093
 
      fi
16094
 
      ;;
16095
 
    esac
16096
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16097
 
    # soname into executable. Probably we can add versioning support to
16098
 
    # collect2, so additional links can be useful in future.
16099
 
    if test "$aix_use_runtimelinking" = yes; then
16100
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16101
 
      # instead of lib<name>.a to let people know that these are not
16102
 
      # typical AIX shared libraries.
16103
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16104
 
    else
16105
 
      # We preserve .a as extension for shared libraries through AIX4.2
16106
 
      # and later when we are not doing run time linking.
16107
 
      library_names_spec='${libname}${release}.a $libname.a'
16108
 
      soname_spec='${libname}${release}${shared_ext}$major'
16109
 
    fi
16110
 
    shlibpath_var=LIBPATH
16111
 
  fi
16112
 
  ;;
16113
 
 
16114
 
amigaos*)
16115
 
  library_names_spec='$libname.ixlibrary $libname.a'
16116
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16117
 
  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'
16118
 
  ;;
16119
 
 
16120
 
beos*)
16121
 
  library_names_spec='${libname}${shared_ext}'
16122
 
  dynamic_linker="$host_os ld.so"
16123
 
  shlibpath_var=LIBRARY_PATH
16124
 
  ;;
16125
 
 
16126
 
bsdi4*)
16127
 
  version_type=linux
16128
 
  need_version=no
16129
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16130
 
  soname_spec='${libname}${release}${shared_ext}$major'
16131
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16132
 
  shlibpath_var=LD_LIBRARY_PATH
16133
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16134
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16135
 
  # the default ld.so.conf also contains /usr/contrib/lib and
16136
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16137
 
  # libtool to hard-code these into programs
16138
 
  ;;
16139
 
 
16140
 
cygwin* | mingw* | pw32*)
16141
 
  version_type=windows
16142
 
  shrext_cmds=".dll"
16143
 
  need_version=no
16144
 
  need_lib_prefix=no
16145
 
 
16146
 
  case $GCC,$host_os in
16147
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
16148
 
    library_names_spec='$libname.dll.a'
16149
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16150
 
    postinstall_cmds='base_file=`basename \${file}`~
16151
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16152
 
      dldir=$destdir/`dirname \$dlpath`~
16153
 
      test -d \$dldir || mkdir -p \$dldir~
16154
 
      $install_prog $dir/$dlname \$dldir/$dlname'
16155
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16156
 
      dlpath=$dir/\$dldll~
16157
 
       $rm \$dlpath'
16158
 
    shlibpath_overrides_runpath=yes
16159
 
 
16160
 
    case $host_os in
16161
 
    cygwin*)
16162
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16163
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16164
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16165
 
      ;;
16166
 
    mingw*)
16167
 
      # MinGW DLLs use traditional 'lib' prefix
16168
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16169
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16170
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16171
 
        # It is most probably a Windows format PATH printed by
16172
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16173
 
        # path with ; separators, and with drive letters. We can handle the
16174
 
        # drive letters (cygwin fileutils understands them), so leave them,
16175
 
        # especially as we might pass files found there to a mingw objdump,
16176
 
        # which wouldn't understand a cygwinified path. Ahh.
16177
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16178
 
      else
16179
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16180
 
      fi
16181
 
      ;;
16182
 
    pw32*)
16183
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
16184
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16185
 
      ;;
16186
 
    esac
16187
 
    ;;
16188
 
 
16189
 
  *)
16190
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16191
 
    ;;
16192
 
  esac
16193
 
  dynamic_linker='Win32 ld.exe'
16194
 
  # FIXME: first we should search . and the directory the executable is in
16195
 
  shlibpath_var=PATH
16196
 
  ;;
16197
 
 
16198
 
darwin* | rhapsody*)
16199
 
  dynamic_linker="$host_os dyld"
16200
 
  version_type=darwin
16201
 
  need_lib_prefix=no
16202
 
  need_version=no
16203
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16204
 
  soname_spec='${libname}${release}${major}$shared_ext'
16205
 
  shlibpath_overrides_runpath=yes
16206
 
  shlibpath_var=DYLD_LIBRARY_PATH
16207
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16208
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16209
 
  if test "$GCC" = yes; then
16210
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16211
 
  else
16212
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16213
 
  fi
16214
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16215
 
  ;;
16216
 
 
16217
 
dgux*)
16218
 
  version_type=linux
16219
 
  need_lib_prefix=no
16220
 
  need_version=no
16221
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16222
 
  soname_spec='${libname}${release}${shared_ext}$major'
16223
 
  shlibpath_var=LD_LIBRARY_PATH
16224
 
  ;;
16225
 
 
16226
 
freebsd1*)
16227
 
  dynamic_linker=no
16228
 
  ;;
16229
 
 
16230
 
kfreebsd*-gnu)
16231
 
  version_type=linux
16232
 
  need_lib_prefix=no
16233
 
  need_version=no
16234
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16235
 
  soname_spec='${libname}${release}${shared_ext}$major'
16236
 
  shlibpath_var=LD_LIBRARY_PATH
16237
 
  shlibpath_overrides_runpath=no
16238
 
  hardcode_into_libs=yes
16239
 
  dynamic_linker='GNU ld.so'
16240
 
  ;;
16241
 
 
16242
 
freebsd*)
16243
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16244
 
  version_type=freebsd-$objformat
16245
 
  case $version_type in
16246
 
    freebsd-elf*)
16247
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16248
 
      need_version=no
16249
 
      need_lib_prefix=no
16250
 
      ;;
16251
 
    freebsd-*)
16252
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16253
 
      need_version=yes
16254
 
      ;;
16255
 
  esac
16256
 
  shlibpath_var=LD_LIBRARY_PATH
16257
 
  case $host_os in
16258
 
  freebsd2*)
16259
 
    shlibpath_overrides_runpath=yes
16260
 
    ;;
16261
 
  freebsd3.01* | freebsdelf3.01*)
16262
 
    shlibpath_overrides_runpath=yes
16263
 
    hardcode_into_libs=yes
16264
 
    ;;
16265
 
  *) # from 3.2 on
16266
 
    shlibpath_overrides_runpath=no
16267
 
    hardcode_into_libs=yes
16268
 
    ;;
16269
 
  esac
16270
 
  ;;
16271
 
 
16272
 
gnu*)
16273
 
  version_type=linux
16274
 
  need_lib_prefix=no
16275
 
  need_version=no
16276
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16277
 
  soname_spec='${libname}${release}${shared_ext}$major'
16278
 
  shlibpath_var=LD_LIBRARY_PATH
16279
 
  hardcode_into_libs=yes
16280
 
  ;;
16281
 
 
16282
 
hpux9* | hpux10* | hpux11*)
16283
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
16284
 
  # link against other versions.
16285
 
  version_type=sunos
16286
 
  need_lib_prefix=no
16287
 
  need_version=no
16288
 
  case "$host_cpu" in
16289
 
  ia64*)
16290
 
    shrext_cmds='.so'
16291
 
    hardcode_into_libs=yes
16292
 
    dynamic_linker="$host_os dld.so"
16293
 
    shlibpath_var=LD_LIBRARY_PATH
16294
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16295
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16296
 
    soname_spec='${libname}${release}${shared_ext}$major'
16297
 
    if test "X$HPUX_IA64_MODE" = X32; then
16298
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16299
 
    else
16300
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16301
 
    fi
16302
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16303
 
    ;;
16304
 
   hppa*64*)
16305
 
     shrext_cmds='.sl'
16306
 
     hardcode_into_libs=yes
16307
 
     dynamic_linker="$host_os dld.sl"
16308
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16309
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16310
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16311
 
     soname_spec='${libname}${release}${shared_ext}$major'
16312
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16313
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16314
 
     ;;
16315
 
   *)
16316
 
    shrext_cmds='.sl'
16317
 
    dynamic_linker="$host_os dld.sl"
16318
 
    shlibpath_var=SHLIB_PATH
16319
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16320
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16321
 
    soname_spec='${libname}${release}${shared_ext}$major'
16322
 
    ;;
16323
 
  esac
16324
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16325
 
  postinstall_cmds='chmod 555 $lib'
16326
 
  ;;
16327
 
 
16328
 
irix5* | irix6* | nonstopux*)
16329
 
  case $host_os in
16330
 
    nonstopux*) version_type=nonstopux ;;
16331
 
    *)
16332
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
16333
 
                version_type=linux
16334
 
        else
16335
 
                version_type=irix
16336
 
        fi ;;
16337
 
  esac
16338
 
  need_lib_prefix=no
16339
 
  need_version=no
16340
 
  soname_spec='${libname}${release}${shared_ext}$major'
16341
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16342
 
  case $host_os in
16343
 
  irix5* | nonstopux*)
16344
 
    libsuff= shlibsuff=
16345
 
    ;;
16346
 
  *)
16347
 
    case $LD in # libtool.m4 will add one of these switches to LD
16348
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16349
 
      libsuff= shlibsuff= libmagic=32-bit;;
16350
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16351
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
16352
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16353
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16354
 
    *) libsuff= shlibsuff= libmagic=never-match;;
16355
 
    esac
16356
 
    ;;
16357
 
  esac
16358
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16359
 
  shlibpath_overrides_runpath=no
16360
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16361
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16362
 
  hardcode_into_libs=yes
16363
 
  ;;
16364
 
 
16365
 
# No shared lib support for Linux oldld, aout, or coff.
16366
 
linux*oldld* | linux*aout* | linux*coff*)
16367
 
  dynamic_linker=no
16368
 
  ;;
16369
 
 
16370
 
# This must be Linux ELF.
16371
 
linux*)
16372
 
  version_type=linux
16373
 
  need_lib_prefix=no
16374
 
  need_version=no
16375
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16376
 
  soname_spec='${libname}${release}${shared_ext}$major'
16377
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16378
 
  shlibpath_var=LD_LIBRARY_PATH
16379
 
  shlibpath_overrides_runpath=no
16380
 
  # This implies no fast_install, which is unacceptable.
16381
 
  # Some rework will be needed to allow for fast_install
16382
 
  # before this can be enabled.
16383
 
  hardcode_into_libs=yes
16384
 
 
16385
 
  # Append ld.so.conf contents to the search path
16386
 
  if test -f /etc/ld.so.conf; then
16387
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16388
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16389
 
  fi
16390
 
 
16391
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
16392
 
  # powerpc, because MkLinux only supported shared libraries with the
16393
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
16394
 
  # most powerpc-linux boxes support dynamic linking these days and
16395
 
  # people can always --disable-shared, the test was removed, and we
16396
 
  # assume the GNU/Linux dynamic linker is in use.
16397
 
  dynamic_linker='GNU/Linux ld.so'
16398
 
  ;;
16399
 
 
16400
 
knetbsd*-gnu)
16401
 
  version_type=linux
16402
 
  need_lib_prefix=no
16403
 
  need_version=no
16404
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16405
 
  soname_spec='${libname}${release}${shared_ext}$major'
16406
 
  shlibpath_var=LD_LIBRARY_PATH
16407
 
  shlibpath_overrides_runpath=no
16408
 
  hardcode_into_libs=yes
16409
 
  dynamic_linker='GNU ld.so'
16410
 
  ;;
16411
 
 
16412
 
netbsd*)
16413
 
  version_type=sunos
16414
 
  need_lib_prefix=no
16415
 
  need_version=no
16416
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16417
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16418
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16419
 
    dynamic_linker='NetBSD (a.out) ld.so'
16420
 
  else
16421
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16422
 
    soname_spec='${libname}${release}${shared_ext}$major'
16423
 
    dynamic_linker='NetBSD ld.elf_so'
16424
 
  fi
16425
 
  shlibpath_var=LD_LIBRARY_PATH
16426
 
  shlibpath_overrides_runpath=yes
16427
 
  hardcode_into_libs=yes
16428
 
  ;;
16429
 
 
16430
 
newsos6)
16431
 
  version_type=linux
16432
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16433
 
  shlibpath_var=LD_LIBRARY_PATH
16434
 
  shlibpath_overrides_runpath=yes
16435
 
  ;;
16436
 
 
16437
 
nto-qnx*)
16438
 
  version_type=linux
16439
 
  need_lib_prefix=no
16440
 
  need_version=no
16441
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16442
 
  soname_spec='${libname}${release}${shared_ext}$major'
16443
 
  shlibpath_var=LD_LIBRARY_PATH
16444
 
  shlibpath_overrides_runpath=yes
16445
 
  ;;
16446
 
 
16447
 
openbsd*)
16448
 
  version_type=sunos
16449
 
  need_lib_prefix=no
16450
 
  need_version=yes
16451
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16452
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16453
 
  shlibpath_var=LD_LIBRARY_PATH
16454
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16455
 
    case $host_os in
16456
 
      openbsd2.[89] | openbsd2.[89].*)
16457
 
        shlibpath_overrides_runpath=no
16458
 
        ;;
16459
 
      *)
16460
 
        shlibpath_overrides_runpath=yes
16461
 
        ;;
16462
 
      esac
16463
 
  else
16464
 
    shlibpath_overrides_runpath=yes
16465
 
  fi
16466
 
  ;;
16467
 
 
16468
 
os2*)
16469
 
  libname_spec='$name'
16470
 
  shrext_cmds=".dll"
16471
 
  need_lib_prefix=no
16472
 
  library_names_spec='$libname${shared_ext} $libname.a'
16473
 
  dynamic_linker='OS/2 ld.exe'
16474
 
  shlibpath_var=LIBPATH
16475
 
  ;;
16476
 
 
16477
 
osf3* | osf4* | osf5*)
16478
 
  version_type=osf
16479
 
  need_lib_prefix=no
16480
 
  need_version=no
16481
 
  soname_spec='${libname}${release}${shared_ext}$major'
16482
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16483
 
  shlibpath_var=LD_LIBRARY_PATH
16484
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16485
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16486
 
  ;;
16487
 
 
16488
 
sco3.2v5*)
16489
 
  version_type=osf
16490
 
  soname_spec='${libname}${release}${shared_ext}$major'
16491
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16492
 
  shlibpath_var=LD_LIBRARY_PATH
16493
 
  ;;
16494
 
 
16495
 
solaris*)
16496
 
  version_type=linux
16497
 
  need_lib_prefix=no
16498
 
  need_version=no
16499
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16500
 
  soname_spec='${libname}${release}${shared_ext}$major'
16501
 
  shlibpath_var=LD_LIBRARY_PATH
16502
 
  shlibpath_overrides_runpath=yes
16503
 
  hardcode_into_libs=yes
16504
 
  # ldd complains unless libraries are executable
16505
 
  postinstall_cmds='chmod +x $lib'
16506
 
  ;;
16507
 
 
16508
 
sunos4*)
16509
 
  version_type=sunos
16510
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16511
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16512
 
  shlibpath_var=LD_LIBRARY_PATH
16513
 
  shlibpath_overrides_runpath=yes
16514
 
  if test "$with_gnu_ld" = yes; then
16515
 
    need_lib_prefix=no
16516
 
  fi
16517
 
  need_version=yes
16518
 
  ;;
16519
 
 
16520
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16521
 
  version_type=linux
16522
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16523
 
  soname_spec='${libname}${release}${shared_ext}$major'
16524
 
  shlibpath_var=LD_LIBRARY_PATH
16525
 
  case $host_vendor in
16526
 
    sni)
16527
 
      shlibpath_overrides_runpath=no
16528
 
      need_lib_prefix=no
16529
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
16530
 
      runpath_var=LD_RUN_PATH
16531
 
      ;;
16532
 
    siemens)
16533
 
      need_lib_prefix=no
16534
 
      ;;
16535
 
    motorola)
16536
 
      need_lib_prefix=no
16537
 
      need_version=no
16538
 
      shlibpath_overrides_runpath=no
16539
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16540
 
      ;;
16541
 
  esac
16542
 
  ;;
16543
 
 
16544
 
sysv4*MP*)
16545
 
  if test -d /usr/nec ;then
16546
 
    version_type=linux
16547
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16548
 
    soname_spec='$libname${shared_ext}.$major'
16549
 
    shlibpath_var=LD_LIBRARY_PATH
16550
 
  fi
16551
 
  ;;
16552
 
 
16553
 
uts4*)
16554
 
  version_type=linux
16555
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16556
 
  soname_spec='${libname}${release}${shared_ext}$major'
16557
 
  shlibpath_var=LD_LIBRARY_PATH
16558
 
  ;;
16559
 
 
16560
 
*)
16561
 
  dynamic_linker=no
16562
 
  ;;
16563
 
esac
16564
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16565
 
echo "${ECHO_T}$dynamic_linker" >&6
16566
 
test "$dynamic_linker" = no && can_build_shared=no
16567
 
 
16568
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16569
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16570
 
hardcode_action_F77=
16571
 
if test -n "$hardcode_libdir_flag_spec_F77" || \
16572
 
   test -n "$runpath_var F77" || \
16573
 
   test "X$hardcode_automatic_F77"="Xyes" ; then
16574
 
 
16575
 
  # We can hardcode non-existant directories.
16576
 
  if test "$hardcode_direct_F77" != no &&
16577
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16578
 
     # have to relink, otherwise we might link with an installed library
16579
 
     # when we should be linking with a yet-to-be-installed one
16580
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16581
 
     test "$hardcode_minus_L_F77" != no; then
16582
 
    # Linking always hardcodes the temporary library directory.
16583
 
    hardcode_action_F77=relink
16584
 
  else
16585
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16586
 
    hardcode_action_F77=immediate
16587
 
  fi
16588
 
else
16589
 
  # We cannot hardcode anything, or else we can only hardcode existing
16590
 
  # directories.
16591
 
  hardcode_action_F77=unsupported
16592
 
fi
16593
 
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16594
 
echo "${ECHO_T}$hardcode_action_F77" >&6
16595
 
 
16596
 
if test "$hardcode_action_F77" = relink; then
16597
 
  # Fast installation is not supported
16598
 
  enable_fast_install=no
16599
 
elif test "$shlibpath_overrides_runpath" = yes ||
16600
 
     test "$enable_shared" = no; then
16601
 
  # Fast installation is not necessary
16602
 
  enable_fast_install=needless
16603
 
fi
16604
 
 
16605
 
striplib=
16606
 
old_striplib=
16607
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16608
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16609
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16610
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16611
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16612
 
  echo "$as_me:$LINENO: result: yes" >&5
16613
 
echo "${ECHO_T}yes" >&6
16614
 
else
16615
 
# FIXME - insert some real tests, host_os isn't really good enough
16616
 
  case $host_os in
16617
 
   darwin*)
16618
 
       if test -n "$STRIP" ; then
16619
 
         striplib="$STRIP -x"
16620
 
         echo "$as_me:$LINENO: result: yes" >&5
16621
 
echo "${ECHO_T}yes" >&6
16622
 
       else
16623
 
  echo "$as_me:$LINENO: result: no" >&5
16624
 
echo "${ECHO_T}no" >&6
16625
 
fi
16626
 
       ;;
16627
 
   *)
16628
 
  echo "$as_me:$LINENO: result: no" >&5
16629
 
echo "${ECHO_T}no" >&6
16630
 
    ;;
16631
 
  esac
16632
 
fi
16633
 
 
16634
 
 
16635
 
 
16636
 
# The else clause should only fire when bootstrapping the
16637
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
16638
 
# with your package, and you will get complaints that there are
16639
 
# no rules to generate ltmain.sh.
16640
 
if test -f "$ltmain"; then
16641
 
  # See if we are running on zsh, and set the options which allow our commands through
16642
 
  # without removal of \ escapes.
16643
 
  if test -n "${ZSH_VERSION+set}" ; then
16644
 
    setopt NO_GLOB_SUBST
16645
 
  fi
16646
 
  # Now quote all the things that may contain metacharacters while being
16647
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16648
 
  # variables and quote the copies for generation of the libtool script.
16649
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16650
 
    SED SHELL STRIP \
16651
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16652
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16653
 
    deplibs_check_method reload_flag reload_cmds need_locks \
16654
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16655
 
    lt_cv_sys_global_symbol_to_c_name_address \
16656
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16657
 
    old_postinstall_cmds old_postuninstall_cmds \
16658
 
    compiler_F77 \
16659
 
    CC_F77 \
16660
 
    LD_F77 \
16661
 
    lt_prog_compiler_wl_F77 \
16662
 
    lt_prog_compiler_pic_F77 \
16663
 
    lt_prog_compiler_static_F77 \
16664
 
    lt_prog_compiler_no_builtin_flag_F77 \
16665
 
    export_dynamic_flag_spec_F77 \
16666
 
    thread_safe_flag_spec_F77 \
16667
 
    whole_archive_flag_spec_F77 \
16668
 
    enable_shared_with_static_runtimes_F77 \
16669
 
    old_archive_cmds_F77 \
16670
 
    old_archive_from_new_cmds_F77 \
16671
 
    predep_objects_F77 \
16672
 
    postdep_objects_F77 \
16673
 
    predeps_F77 \
16674
 
    postdeps_F77 \
16675
 
    compiler_lib_search_path_F77 \
16676
 
    archive_cmds_F77 \
16677
 
    archive_expsym_cmds_F77 \
16678
 
    postinstall_cmds_F77 \
16679
 
    postuninstall_cmds_F77 \
16680
 
    old_archive_from_expsyms_cmds_F77 \
16681
 
    allow_undefined_flag_F77 \
16682
 
    no_undefined_flag_F77 \
16683
 
    export_symbols_cmds_F77 \
16684
 
    hardcode_libdir_flag_spec_F77 \
16685
 
    hardcode_libdir_flag_spec_ld_F77 \
16686
 
    hardcode_libdir_separator_F77 \
16687
 
    hardcode_automatic_F77 \
16688
 
    module_cmds_F77 \
16689
 
    module_expsym_cmds_F77 \
16690
 
    lt_cv_prog_compiler_c_o_F77 \
16691
 
    exclude_expsyms_F77 \
16692
 
    include_expsyms_F77; do
16693
 
 
16694
 
    case $var in
16695
 
    old_archive_cmds_F77 | \
16696
 
    old_archive_from_new_cmds_F77 | \
16697
 
    archive_cmds_F77 | \
16698
 
    archive_expsym_cmds_F77 | \
16699
 
    module_cmds_F77 | \
16700
 
    module_expsym_cmds_F77 | \
16701
 
    old_archive_from_expsyms_cmds_F77 | \
16702
 
    export_symbols_cmds_F77 | \
16703
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16704
 
    postinstall_cmds | postuninstall_cmds | \
16705
 
    old_postinstall_cmds | old_postuninstall_cmds | \
16706
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16707
 
      # Double-quote double-evaled strings.
16708
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16709
 
      ;;
16710
 
    *)
16711
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16712
 
      ;;
16713
 
    esac
16714
 
  done
16715
 
 
16716
 
  case $lt_echo in
16717
 
  *'\$0 --fallback-echo"')
16718
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16719
 
    ;;
16720
 
  esac
16721
 
 
16722
 
cfgfile="$ofile"
16723
 
 
16724
 
  cat <<__EOF__ >> "$cfgfile"
16725
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16726
 
 
16727
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16728
 
 
16729
 
# Shell to use when invoking shell scripts.
16730
 
SHELL=$lt_SHELL
16731
 
 
16732
 
# Whether or not to build shared libraries.
16733
 
build_libtool_libs=$enable_shared
16734
 
 
16735
 
# Whether or not to build static libraries.
16736
 
build_old_libs=$enable_static
16737
 
 
16738
 
# Whether or not to add -lc for building shared libraries.
16739
 
build_libtool_need_lc=$archive_cmds_need_lc_F77
16740
 
 
16741
 
# Whether or not to disallow shared libs when runtime libs are static
16742
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16743
 
 
16744
 
# Whether or not to optimize for fast installation.
16745
 
fast_install=$enable_fast_install
16746
 
 
16747
 
# The host system.
16748
 
host_alias=$host_alias
16749
 
host=$host
16750
 
 
16751
 
# An echo program that does not interpret backslashes.
16752
 
echo=$lt_echo
16753
 
 
16754
 
# The archiver.
16755
 
AR=$lt_AR
16756
 
AR_FLAGS=$lt_AR_FLAGS
16757
 
 
16758
 
# A C compiler.
16759
 
LTCC=$lt_LTCC
16760
 
 
16761
 
# A language-specific compiler.
16762
 
CC=$lt_compiler_F77
16763
 
 
16764
 
# Is the compiler the GNU C compiler?
16765
 
with_gcc=$GCC_F77
16766
 
 
16767
 
# An ERE matcher.
16768
 
EGREP=$lt_EGREP
16769
 
 
16770
 
# The linker used to build libraries.
16771
 
LD=$lt_LD_F77
16772
 
 
16773
 
# Whether we need hard or soft links.
16774
 
LN_S=$lt_LN_S
16775
 
 
16776
 
# A BSD-compatible nm program.
16777
 
NM=$lt_NM
16778
 
 
16779
 
# A symbol stripping program
16780
 
STRIP=$lt_STRIP
16781
 
 
16782
 
# Used to examine libraries when file_magic_cmd begins "file"
16783
 
MAGIC_CMD=$MAGIC_CMD
16784
 
 
16785
 
# Used on cygwin: DLL creation program.
16786
 
DLLTOOL="$DLLTOOL"
16787
 
 
16788
 
# Used on cygwin: object dumper.
16789
 
OBJDUMP="$OBJDUMP"
16790
 
 
16791
 
# Used on cygwin: assembler.
16792
 
AS="$AS"
16793
 
 
16794
 
# The name of the directory that contains temporary libtool files.
16795
 
objdir=$objdir
16796
 
 
16797
 
# How to create reloadable object files.
16798
 
reload_flag=$lt_reload_flag
16799
 
reload_cmds=$lt_reload_cmds
16800
 
 
16801
 
# How to pass a linker flag through the compiler.
16802
 
wl=$lt_lt_prog_compiler_wl_F77
16803
 
 
16804
 
# Object file suffix (normally "o").
16805
 
objext="$ac_objext"
16806
 
 
16807
 
# Old archive suffix (normally "a").
16808
 
libext="$libext"
16809
 
 
16810
 
# Shared library suffix (normally ".so").
16811
 
shrext_cmds='$shrext_cmds'
16812
 
 
16813
 
# Executable file suffix (normally "").
16814
 
exeext="$exeext"
16815
 
 
16816
 
# Additional compiler flags for building library objects.
16817
 
pic_flag=$lt_lt_prog_compiler_pic_F77
16818
 
pic_mode=$pic_mode
16819
 
 
16820
 
# What is the maximum length of a command?
16821
 
max_cmd_len=$lt_cv_sys_max_cmd_len
16822
 
 
16823
 
# Does compiler simultaneously support -c and -o options?
16824
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16825
 
 
16826
 
# Must we lock files when doing compilation ?
16827
 
need_locks=$lt_need_locks
16828
 
 
16829
 
# Do we need the lib prefix for modules?
16830
 
need_lib_prefix=$need_lib_prefix
16831
 
 
16832
 
# Do we need a version for libraries?
16833
 
need_version=$need_version
16834
 
 
16835
 
# Whether dlopen is supported.
16836
 
dlopen_support=$enable_dlopen
16837
 
 
16838
 
# Whether dlopen of programs is supported.
16839
 
dlopen_self=$enable_dlopen_self
16840
 
 
16841
 
# Whether dlopen of statically linked programs is supported.
16842
 
dlopen_self_static=$enable_dlopen_self_static
16843
 
 
16844
 
# Compiler flag to prevent dynamic linking.
16845
 
link_static_flag=$lt_lt_prog_compiler_static_F77
16846
 
 
16847
 
# Compiler flag to turn off builtin functions.
16848
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16849
 
 
16850
 
# Compiler flag to allow reflexive dlopens.
16851
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16852
 
 
16853
 
# Compiler flag to generate shared objects directly from archives.
16854
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16855
 
 
16856
 
# Compiler flag to generate thread-safe objects.
16857
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16858
 
 
16859
 
# Library versioning type.
16860
 
version_type=$version_type
16861
 
 
16862
 
# Format of library name prefix.
16863
 
libname_spec=$lt_libname_spec
16864
 
 
16865
 
# List of archive names.  First name is the real one, the rest are links.
16866
 
# The last name is the one that the linker finds with -lNAME.
16867
 
library_names_spec=$lt_library_names_spec
16868
 
 
16869
 
# The coded name of the library, if different from the real name.
16870
 
soname_spec=$lt_soname_spec
16871
 
 
16872
 
# Commands used to build and install an old-style archive.
16873
 
RANLIB=$lt_RANLIB
16874
 
old_archive_cmds=$lt_old_archive_cmds_F77
16875
 
old_postinstall_cmds=$lt_old_postinstall_cmds
16876
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16877
 
 
16878
 
# Create an old-style archive from a shared archive.
16879
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16880
 
 
16881
 
# Create a temporary old-style archive to link instead of a shared archive.
16882
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16883
 
 
16884
 
# Commands used to build and install a shared archive.
16885
 
archive_cmds=$lt_archive_cmds_F77
16886
 
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16887
 
postinstall_cmds=$lt_postinstall_cmds
16888
 
postuninstall_cmds=$lt_postuninstall_cmds
16889
 
 
16890
 
# Commands used to build a loadable module (assumed same as above if empty)
16891
 
module_cmds=$lt_module_cmds_F77
16892
 
module_expsym_cmds=$lt_module_expsym_cmds_F77
16893
 
 
16894
 
# Commands to strip libraries.
16895
 
old_striplib=$lt_old_striplib
16896
 
striplib=$lt_striplib
16897
 
 
16898
 
# Dependencies to place before the objects being linked to create a
16899
 
# shared library.
16900
 
predep_objects=$lt_predep_objects_F77
16901
 
 
16902
 
# Dependencies to place after the objects being linked to create a
16903
 
# shared library.
16904
 
postdep_objects=$lt_postdep_objects_F77
16905
 
 
16906
 
# Dependencies to place before the objects being linked to create a
16907
 
# shared library.
16908
 
predeps=$lt_predeps_F77
16909
 
 
16910
 
# Dependencies to place after the objects being linked to create a
16911
 
# shared library.
16912
 
postdeps=$lt_postdeps_F77
16913
 
 
16914
 
# The library search path used internally by the compiler when linking
16915
 
# a shared library.
16916
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16917
 
 
16918
 
# Method to check whether dependent libraries are shared objects.
16919
 
deplibs_check_method=$lt_deplibs_check_method
16920
 
 
16921
 
# Command to use when deplibs_check_method == file_magic.
16922
 
file_magic_cmd=$lt_file_magic_cmd
16923
 
 
16924
 
# Flag that allows shared libraries with undefined symbols to be built.
16925
 
allow_undefined_flag=$lt_allow_undefined_flag_F77
16926
 
 
16927
 
# Flag that forces no undefined symbols.
16928
 
no_undefined_flag=$lt_no_undefined_flag_F77
16929
 
 
16930
 
# Commands used to finish a libtool library installation in a directory.
16931
 
finish_cmds=$lt_finish_cmds
16932
 
 
16933
 
# Same as above, but a single script fragment to be evaled but not shown.
16934
 
finish_eval=$lt_finish_eval
16935
 
 
16936
 
# Take the output of nm and produce a listing of raw symbols and C names.
16937
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16938
 
 
16939
 
# Transform the output of nm in a proper C declaration
16940
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16941
 
 
16942
 
# Transform the output of nm in a C name address pair
16943
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16944
 
 
16945
 
# This is the shared library runtime path variable.
16946
 
runpath_var=$runpath_var
16947
 
 
16948
 
# This is the shared library path variable.
16949
 
shlibpath_var=$shlibpath_var
16950
 
 
16951
 
# Is shlibpath searched before the hard-coded library search path?
16952
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16953
 
 
16954
 
# How to hardcode a shared library path into an executable.
16955
 
hardcode_action=$hardcode_action_F77
16956
 
 
16957
 
# Whether we should hardcode library paths into libraries.
16958
 
hardcode_into_libs=$hardcode_into_libs
16959
 
 
16960
 
# Flag to hardcode \$libdir into a binary during linking.
16961
 
# This must work even if \$libdir does not exist.
16962
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16963
 
 
16964
 
# If ld is used when linking, flag to hardcode \$libdir into
16965
 
# a binary during linking. This must work even if \$libdir does
16966
 
# not exist.
16967
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16968
 
 
16969
 
# Whether we need a single -rpath flag with a separated argument.
16970
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16971
 
 
16972
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16973
 
# resulting binary.
16974
 
hardcode_direct=$hardcode_direct_F77
16975
 
 
16976
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16977
 
# resulting binary.
16978
 
hardcode_minus_L=$hardcode_minus_L_F77
16979
 
 
16980
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16981
 
# the resulting binary.
16982
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16983
 
 
16984
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
16985
 
# and all subsequent libraries and executables linked against it.
16986
 
hardcode_automatic=$hardcode_automatic_F77
16987
 
 
16988
 
# Variables whose values should be saved in libtool wrapper scripts and
16989
 
# restored at relink time.
16990
 
variables_saved_for_relink="$variables_saved_for_relink"
16991
 
 
16992
 
# Whether libtool must link a program against all its dependency libraries.
16993
 
link_all_deplibs=$link_all_deplibs_F77
16994
 
 
16995
 
# Compile-time system search path for libraries
16996
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16997
 
 
16998
 
# Run-time system search path for libraries
16999
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17000
 
 
17001
 
# Fix the shell variable \$srcfile for the compiler.
17002
 
fix_srcfile_path="$fix_srcfile_path_F77"
17003
 
 
17004
 
# Set to yes if exported symbols are required.
17005
 
always_export_symbols=$always_export_symbols_F77
17006
 
 
17007
 
# The commands to list exported symbols.
17008
 
export_symbols_cmds=$lt_export_symbols_cmds_F77
17009
 
 
17010
 
# The commands to extract the exported symbol list from a shared archive.
17011
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17012
 
 
17013
 
# Symbols that should not be listed in the preloaded symbols.
17014
 
exclude_expsyms=$lt_exclude_expsyms_F77
17015
 
 
17016
 
# Symbols that must always be exported.
17017
 
include_expsyms=$lt_include_expsyms_F77
17018
 
 
17019
 
# ### END LIBTOOL TAG CONFIG: $tagname
17020
 
 
17021
 
__EOF__
17022
 
 
17023
 
 
17024
 
else
17025
 
  # If there is no Makefile yet, we rely on a make rule to execute
17026
 
  # `config.status --recheck' to rerun these tests and create the
17027
 
  # libtool script then.
17028
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17029
 
  if test -f "$ltmain_in"; then
17030
 
    test -f Makefile && make "$ltmain"
17031
 
  fi
17032
 
fi
17033
 
 
17034
 
 
17035
 
ac_ext=c
17036
 
ac_cpp='$CPP $CPPFLAGS'
17037
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17038
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17039
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17040
 
 
17041
 
CC="$lt_save_CC"
17042
 
 
17043
 
        else
17044
 
          tagname=""
17045
 
        fi
17046
 
        ;;
17047
 
 
17048
 
      GCJ)
17049
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17050
 
 
17051
 
 
17052
 
 
17053
 
# Source file extension for Java test sources.
17054
 
ac_ext=java
17055
 
 
17056
 
# Object file extension for compiled Java test sources.
17057
 
objext=o
17058
 
objext_GCJ=$objext
17059
 
 
17060
 
# Code to be used in simple compile tests
17061
 
lt_simple_compile_test_code="class foo {}\n"
17062
 
 
17063
 
# Code to be used in simple link tests
17064
 
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17065
 
 
17066
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17067
 
 
17068
 
# If no C compiler was specified, use CC.
17069
 
LTCC=${LTCC-"$CC"}
17070
 
 
17071
 
# Allow CC to be a program name with arguments.
17072
 
compiler=$CC
17073
 
 
17074
 
 
17075
 
# Allow CC to be a program name with arguments.
17076
 
lt_save_CC="$CC"
17077
 
CC=${GCJ-"gcj"}
17078
 
compiler=$CC
17079
 
compiler_GCJ=$CC
17080
 
 
17081
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17082
 
archive_cmds_need_lc_GCJ=no
17083
 
 
17084
 
 
17085
 
lt_prog_compiler_no_builtin_flag_GCJ=
17086
 
 
17087
 
if test "$GCC" = yes; then
17088
 
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17089
 
 
17090
 
 
17091
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17092
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17093
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17094
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17095
 
else
17096
 
  lt_cv_prog_compiler_rtti_exceptions=no
17097
 
  ac_outfile=conftest.$ac_objext
17098
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17099
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
17100
 
   # Insert the option either (1) after the last *FLAGS variable, or
17101
 
   # (2) before a word containing "conftest.", or (3) at the end.
17102
 
   # Note that $ac_compile itself does not contain backslashes and begins
17103
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17104
 
   # The option is referenced via a variable to avoid confusing sed.
17105
 
   lt_compile=`echo "$ac_compile" | $SED \
17106
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17107
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17108
 
   -e 's:$: $lt_compiler_flag:'`
17109
 
   (eval echo "\"\$as_me:17109: $lt_compile\"" >&5)
17110
 
   (eval "$lt_compile" 2>conftest.err)
17111
 
   ac_status=$?
17112
 
   cat conftest.err >&5
17113
 
   echo "$as_me:17113: \$? = $ac_status" >&5
17114
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
17115
 
     # The compiler can only warn and ignore the option if not recognized
17116
 
     # So say no if there are warnings
17117
 
     if test ! -s conftest.err; then
17118
 
       lt_cv_prog_compiler_rtti_exceptions=yes
17119
 
     fi
17120
 
   fi
17121
 
   $rm conftest*
17122
 
 
17123
 
fi
17124
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17125
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17126
 
 
17127
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17128
 
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17129
 
else
17130
 
    :
17131
 
fi
17132
 
 
17133
 
fi
17134
 
 
17135
 
lt_prog_compiler_wl_GCJ=
17136
 
lt_prog_compiler_pic_GCJ=
17137
 
lt_prog_compiler_static_GCJ=
17138
 
 
17139
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17140
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17141
 
 
17142
 
  if test "$GCC" = yes; then
17143
 
    lt_prog_compiler_wl_GCJ='-Wl,'
17144
 
    lt_prog_compiler_static_GCJ='-static'
17145
 
 
17146
 
    case $host_os in
17147
 
      aix*)
17148
 
      # All AIX code is PIC.
17149
 
      if test "$host_cpu" = ia64; then
17150
 
        # AIX 5 now supports IA64 processor
17151
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17152
 
      fi
17153
 
      ;;
17154
 
 
17155
 
    amigaos*)
17156
 
      # FIXME: we need at least 68020 code to build shared libraries, but
17157
 
      # adding the `-m68020' flag to GCC prevents building anything better,
17158
 
      # like `-m68040'.
17159
 
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17160
 
      ;;
17161
 
 
17162
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17163
 
      # PIC is the default for these OSes.
17164
 
      ;;
17165
 
 
17166
 
    mingw* | pw32* | os2*)
17167
 
      # This hack is so that the source file can tell whether it is being
17168
 
      # built for inclusion in a dll (and should export symbols for example).
17169
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17170
 
      ;;
17171
 
 
17172
 
    darwin* | rhapsody*)
17173
 
      # PIC is the default on this platform
17174
 
      # Common symbols not allowed in MH_DYLIB files
17175
 
      lt_prog_compiler_pic_GCJ='-fno-common'
17176
 
      ;;
17177
 
 
17178
 
    msdosdjgpp*)
17179
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
17180
 
      # on systems that don't support them.
17181
 
      lt_prog_compiler_can_build_shared_GCJ=no
17182
 
      enable_shared=no
17183
 
      ;;
17184
 
 
17185
 
    sysv4*MP*)
17186
 
      if test -d /usr/nec; then
17187
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
17188
 
      fi
17189
 
      ;;
17190
 
 
17191
 
    hpux*)
17192
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17193
 
      # not for PA HP-UX.
17194
 
      case "$host_cpu" in
17195
 
      hppa*64*|ia64*)
17196
 
        # +Z the default
17197
 
        ;;
17198
 
      *)
17199
 
        lt_prog_compiler_pic_GCJ='-fPIC'
17200
 
        ;;
17201
 
      esac
17202
 
      ;;
17203
 
 
17204
 
    *)
17205
 
      lt_prog_compiler_pic_GCJ='-fPIC'
17206
 
      ;;
17207
 
    esac
17208
 
  else
17209
 
    # PORTME Check for flag to pass linker flags through the system compiler.
17210
 
    case $host_os in
17211
 
    aix*)
17212
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17213
 
      if test "$host_cpu" = ia64; then
17214
 
        # AIX 5 now supports IA64 processor
17215
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17216
 
      else
17217
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17218
 
      fi
17219
 
      ;;
17220
 
 
17221
 
    mingw* | pw32* | os2*)
17222
 
      # This hack is so that the source file can tell whether it is being
17223
 
      # built for inclusion in a dll (and should export symbols for example).
17224
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17225
 
      ;;
17226
 
 
17227
 
    hpux9* | hpux10* | hpux11*)
17228
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17229
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17230
 
      # not for PA HP-UX.
17231
 
      case "$host_cpu" in
17232
 
      hppa*64*|ia64*)
17233
 
        # +Z the default
17234
 
        ;;
17235
 
      *)
17236
 
        lt_prog_compiler_pic_GCJ='+Z'
17237
 
        ;;
17238
 
      esac
17239
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17240
 
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17241
 
      ;;
17242
 
 
17243
 
    irix5* | irix6* | nonstopux*)
17244
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17245
 
      # PIC (with -KPIC) is the default.
17246
 
      lt_prog_compiler_static_GCJ='-non_shared'
17247
 
      ;;
17248
 
 
17249
 
    newsos6)
17250
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17251
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17252
 
      ;;
17253
 
 
17254
 
    linux*)
17255
 
      case $CC in
17256
 
      icc* | ecc*)
17257
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17258
 
        lt_prog_compiler_pic_GCJ='-KPIC'
17259
 
        lt_prog_compiler_static_GCJ='-static'
17260
 
        ;;
17261
 
      ccc*)
17262
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17263
 
        # All Alpha code is PIC.
17264
 
        lt_prog_compiler_static_GCJ='-non_shared'
17265
 
        ;;
17266
 
      esac
17267
 
      ;;
17268
 
 
17269
 
    osf3* | osf4* | osf5*)
17270
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17271
 
      # All OSF/1 code is PIC.
17272
 
      lt_prog_compiler_static_GCJ='-non_shared'
17273
 
      ;;
17274
 
 
17275
 
    sco3.2v5*)
17276
 
      lt_prog_compiler_pic_GCJ='-Kpic'
17277
 
      lt_prog_compiler_static_GCJ='-dn'
17278
 
      ;;
17279
 
 
17280
 
    solaris*)
17281
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17282
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17283
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17284
 
      ;;
17285
 
 
17286
 
    sunos4*)
17287
 
      lt_prog_compiler_wl_GCJ='-Qoption ld '
17288
 
      lt_prog_compiler_pic_GCJ='-PIC'
17289
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17290
 
      ;;
17291
 
 
17292
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17293
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17294
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17295
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17296
 
      ;;
17297
 
 
17298
 
    sysv4*MP*)
17299
 
      if test -d /usr/nec ;then
17300
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
17301
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17302
 
      fi
17303
 
      ;;
17304
 
 
17305
 
    uts4*)
17306
 
      lt_prog_compiler_pic_GCJ='-pic'
17307
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17308
 
      ;;
17309
 
 
17310
 
    *)
17311
 
      lt_prog_compiler_can_build_shared_GCJ=no
17312
 
      ;;
17313
 
    esac
17314
 
  fi
17315
 
 
17316
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17317
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17318
 
 
17319
 
#
17320
 
# Check to make sure the PIC flag actually works.
17321
 
#
17322
 
if test -n "$lt_prog_compiler_pic_GCJ"; then
17323
 
 
17324
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17325
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17326
 
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17327
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17328
 
else
17329
 
  lt_prog_compiler_pic_works_GCJ=no
17330
 
  ac_outfile=conftest.$ac_objext
17331
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17332
 
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17333
 
   # Insert the option either (1) after the last *FLAGS variable, or
17334
 
   # (2) before a word containing "conftest.", or (3) at the end.
17335
 
   # Note that $ac_compile itself does not contain backslashes and begins
17336
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17337
 
   # The option is referenced via a variable to avoid confusing sed.
17338
 
   lt_compile=`echo "$ac_compile" | $SED \
17339
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17340
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17341
 
   -e 's:$: $lt_compiler_flag:'`
17342
 
   (eval echo "\"\$as_me:17342: $lt_compile\"" >&5)
17343
 
   (eval "$lt_compile" 2>conftest.err)
17344
 
   ac_status=$?
17345
 
   cat conftest.err >&5
17346
 
   echo "$as_me:17346: \$? = $ac_status" >&5
17347
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
17348
 
     # The compiler can only warn and ignore the option if not recognized
17349
 
     # So say no if there are warnings
17350
 
     if test ! -s conftest.err; then
17351
 
       lt_prog_compiler_pic_works_GCJ=yes
17352
 
     fi
17353
 
   fi
17354
 
   $rm conftest*
17355
 
 
17356
 
fi
17357
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17358
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17359
 
 
17360
 
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17361
 
    case $lt_prog_compiler_pic_GCJ in
17362
 
     "" | " "*) ;;
17363
 
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17364
 
     esac
17365
 
else
17366
 
    lt_prog_compiler_pic_GCJ=
17367
 
     lt_prog_compiler_can_build_shared_GCJ=no
17368
 
fi
17369
 
 
17370
 
fi
17371
 
case "$host_os" in
17372
 
  # For platforms which do not support PIC, -DPIC is meaningless:
17373
 
  *djgpp*)
17374
 
    lt_prog_compiler_pic_GCJ=
17375
 
    ;;
17376
 
  *)
17377
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17378
 
    ;;
17379
 
esac
17380
 
 
17381
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17382
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17383
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17384
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17385
 
else
17386
 
  lt_cv_prog_compiler_c_o_GCJ=no
17387
 
   $rm -r conftest 2>/dev/null
17388
 
   mkdir conftest
17389
 
   cd conftest
17390
 
   mkdir out
17391
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17392
 
 
17393
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
17394
 
   # Insert the option either (1) after the last *FLAGS variable, or
17395
 
   # (2) before a word containing "conftest.", or (3) at the end.
17396
 
   # Note that $ac_compile itself does not contain backslashes and begins
17397
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17398
 
   lt_compile=`echo "$ac_compile" | $SED \
17399
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17400
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17401
 
   -e 's:$: $lt_compiler_flag:'`
17402
 
   (eval echo "\"\$as_me:17402: $lt_compile\"" >&5)
17403
 
   (eval "$lt_compile" 2>out/conftest.err)
17404
 
   ac_status=$?
17405
 
   cat out/conftest.err >&5
17406
 
   echo "$as_me:17406: \$? = $ac_status" >&5
17407
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17408
 
   then
17409
 
     # The compiler can only warn and ignore the option if not recognized
17410
 
     # So say no if there are warnings
17411
 
     if test ! -s out/conftest.err; then
17412
 
       lt_cv_prog_compiler_c_o_GCJ=yes
17413
 
     fi
17414
 
   fi
17415
 
   chmod u+w .
17416
 
   $rm conftest*
17417
 
   # SGI C++ compiler will create directory out/ii_files/ for
17418
 
   # template instantiation
17419
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17420
 
   $rm out/* && rmdir out
17421
 
   cd ..
17422
 
   rmdir conftest
17423
 
   $rm conftest*
17424
 
 
17425
 
fi
17426
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17427
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17428
 
 
17429
 
 
17430
 
hard_links="nottested"
17431
 
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17432
 
  # do not overwrite the value of need_locks provided by the user
17433
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17434
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17435
 
  hard_links=yes
17436
 
  $rm conftest*
17437
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17438
 
  touch conftest.a
17439
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
17440
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17441
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
17442
 
echo "${ECHO_T}$hard_links" >&6
17443
 
  if test "$hard_links" = no; then
17444
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17445
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17446
 
    need_locks=warn
17447
 
  fi
17448
 
else
17449
 
  need_locks=no
17450
 
fi
17451
 
 
17452
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17453
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17454
 
 
17455
 
  runpath_var=
17456
 
  allow_undefined_flag_GCJ=
17457
 
  enable_shared_with_static_runtimes_GCJ=no
17458
 
  archive_cmds_GCJ=
17459
 
  archive_expsym_cmds_GCJ=
17460
 
  old_archive_From_new_cmds_GCJ=
17461
 
  old_archive_from_expsyms_cmds_GCJ=
17462
 
  export_dynamic_flag_spec_GCJ=
17463
 
  whole_archive_flag_spec_GCJ=
17464
 
  thread_safe_flag_spec_GCJ=
17465
 
  hardcode_libdir_flag_spec_GCJ=
17466
 
  hardcode_libdir_flag_spec_ld_GCJ=
17467
 
  hardcode_libdir_separator_GCJ=
17468
 
  hardcode_direct_GCJ=no
17469
 
  hardcode_minus_L_GCJ=no
17470
 
  hardcode_shlibpath_var_GCJ=unsupported
17471
 
  link_all_deplibs_GCJ=unknown
17472
 
  hardcode_automatic_GCJ=no
17473
 
  module_cmds_GCJ=
17474
 
  module_expsym_cmds_GCJ=
17475
 
  always_export_symbols_GCJ=no
17476
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17477
 
  # include_expsyms should be a list of space-separated symbols to be *always*
17478
 
  # included in the symbol list
17479
 
  include_expsyms_GCJ=
17480
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
17481
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17482
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17483
 
  # as well as any symbol that contains `d'.
17484
 
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17485
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17486
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
17487
 
  # the symbol is explicitly referenced.  Since portable code cannot
17488
 
  # rely on this symbol name, it's probably fine to never include it in
17489
 
  # preloaded symbol tables.
17490
 
  extract_expsyms_cmds=
17491
 
 
17492
 
  case $host_os in
17493
 
  cygwin* | mingw* | pw32*)
17494
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17495
 
    # When not using gcc, we currently assume that we are using
17496
 
    # Microsoft Visual C++.
17497
 
    if test "$GCC" != yes; then
17498
 
      with_gnu_ld=no
17499
 
    fi
17500
 
    ;;
17501
 
  openbsd*)
17502
 
    with_gnu_ld=no
17503
 
    ;;
17504
 
  esac
17505
 
 
17506
 
  ld_shlibs_GCJ=yes
17507
 
  if test "$with_gnu_ld" = yes; then
17508
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
17509
 
    wlarc='${wl}'
17510
 
 
17511
 
    # See if GNU ld supports shared libraries.
17512
 
    case $host_os in
17513
 
    aix3* | aix4* | aix5*)
17514
 
      # On AIX/PPC, the GNU linker is very broken
17515
 
      if test "$host_cpu" != ia64; then
17516
 
        ld_shlibs_GCJ=no
17517
 
        cat <<EOF 1>&2
17518
 
 
17519
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17520
 
*** to be unable to reliably create shared libraries on AIX.
17521
 
*** Therefore, libtool is disabling shared libraries support.  If you
17522
 
*** really care for shared libraries, you may want to modify your PATH
17523
 
*** so that a non-GNU linker is found, and then restart.
17524
 
 
17525
 
EOF
17526
 
      fi
17527
 
      ;;
17528
 
 
17529
 
    amigaos*)
17530
 
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17531
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17532
 
      hardcode_minus_L_GCJ=yes
17533
 
 
17534
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17535
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
17536
 
      # to version 4, is to share data among multiple programs linked
17537
 
      # with the same dynamic library.  Since this doesn't match the
17538
 
      # behavior of shared libraries on other platforms, we can't use
17539
 
      # them.
17540
 
      ld_shlibs_GCJ=no
17541
 
      ;;
17542
 
 
17543
 
    beos*)
17544
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17545
 
        allow_undefined_flag_GCJ=unsupported
17546
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17547
 
        # support --undefined.  This deserves some investigation.  FIXME
17548
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17549
 
      else
17550
 
        ld_shlibs_GCJ=no
17551
 
      fi
17552
 
      ;;
17553
 
 
17554
 
    cygwin* | mingw* | pw32*)
17555
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17556
 
      # as there is no search path for DLLs.
17557
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17558
 
      allow_undefined_flag_GCJ=unsupported
17559
 
      always_export_symbols_GCJ=no
17560
 
      enable_shared_with_static_runtimes_GCJ=yes
17561
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17562
 
 
17563
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17564
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17565
 
        # If the export-symbols file already is a .def file (1st line
17566
 
        # is EXPORTS), use it as is; otherwise, prepend...
17567
 
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17568
 
          cp $export_symbols $output_objdir/$soname.def;
17569
 
        else
17570
 
          echo EXPORTS > $output_objdir/$soname.def;
17571
 
          cat $export_symbols >> $output_objdir/$soname.def;
17572
 
        fi~
17573
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17574
 
      else
17575
 
        ld_shlibs=no
17576
 
      fi
17577
 
      ;;
17578
 
 
17579
 
    netbsd*)
17580
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17581
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17582
 
        wlarc=
17583
 
      else
17584
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17585
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17586
 
      fi
17587
 
      ;;
17588
 
 
17589
 
    solaris* | sysv5*)
17590
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17591
 
        ld_shlibs_GCJ=no
17592
 
        cat <<EOF 1>&2
17593
 
 
17594
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17595
 
*** create shared libraries on Solaris systems.  Therefore, libtool
17596
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
17597
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
17598
 
*** your PATH or compiler configuration so that the native linker is
17599
 
*** used, and then restart.
17600
 
 
17601
 
EOF
17602
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17603
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17604
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17605
 
      else
17606
 
        ld_shlibs_GCJ=no
17607
 
      fi
17608
 
      ;;
17609
 
 
17610
 
    sunos4*)
17611
 
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17612
 
      wlarc=
17613
 
      hardcode_direct_GCJ=yes
17614
 
      hardcode_shlibpath_var_GCJ=no
17615
 
      ;;
17616
 
 
17617
 
  linux*)
17618
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17619
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17620
 
        archive_cmds_GCJ="$tmp_archive_cmds"
17621
 
      supports_anon_versioning=no
17622
 
      case `$LD -v 2>/dev/null` in
17623
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17624
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17625
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17626
 
        *\ 2.11.*) ;; # other 2.11 versions
17627
 
        *) supports_anon_versioning=yes ;;
17628
 
      esac
17629
 
      if test $supports_anon_versioning = yes; then
17630
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17631
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17632
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
17633
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17634
 
      else
17635
 
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17636
 
      fi
17637
 
    else
17638
 
      ld_shlibs_GCJ=no
17639
 
    fi
17640
 
    ;;
17641
 
 
17642
 
    *)
17643
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17644
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17645
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17646
 
      else
17647
 
        ld_shlibs_GCJ=no
17648
 
      fi
17649
 
      ;;
17650
 
    esac
17651
 
 
17652
 
    if test "$ld_shlibs_GCJ" = yes; then
17653
 
      runpath_var=LD_RUN_PATH
17654
 
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17655
 
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17656
 
      # ancient GNU ld didn't support --whole-archive et. al.
17657
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17658
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17659
 
      else
17660
 
        whole_archive_flag_spec_GCJ=
17661
 
      fi
17662
 
    fi
17663
 
  else
17664
 
    # PORTME fill in a description of your system's linker (not GNU ld)
17665
 
    case $host_os in
17666
 
    aix3*)
17667
 
      allow_undefined_flag_GCJ=unsupported
17668
 
      always_export_symbols_GCJ=yes
17669
 
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17670
 
      # Note: this linker hardcodes the directories in LIBPATH if there
17671
 
      # are no directories specified by -L.
17672
 
      hardcode_minus_L_GCJ=yes
17673
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
17674
 
        # Neither direct hardcoding nor static linking is supported with a
17675
 
        # broken collect2.
17676
 
        hardcode_direct_GCJ=unsupported
17677
 
      fi
17678
 
      ;;
17679
 
 
17680
 
    aix4* | aix5*)
17681
 
      if test "$host_cpu" = ia64; then
17682
 
        # On IA64, the linker does run time linking by default, so we don't
17683
 
        # have to do anything special.
17684
 
        aix_use_runtimelinking=no
17685
 
        exp_sym_flag='-Bexport'
17686
 
        no_entry_flag=""
17687
 
      else
17688
 
        # If we're using GNU nm, then we don't want the "-C" option.
17689
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
17690
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17691
 
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17692
 
        else
17693
 
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17694
 
        fi
17695
 
        aix_use_runtimelinking=no
17696
 
 
17697
 
        # Test if we are trying to use run time linking or normal
17698
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17699
 
        # need to do runtime linking.
17700
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17701
 
          for ld_flag in $LDFLAGS; do
17702
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17703
 
            aix_use_runtimelinking=yes
17704
 
            break
17705
 
          fi
17706
 
          done
17707
 
        esac
17708
 
 
17709
 
        exp_sym_flag='-bexport'
17710
 
        no_entry_flag='-bnoentry'
17711
 
      fi
17712
 
 
17713
 
      # When large executables or shared objects are built, AIX ld can
17714
 
      # have problems creating the table of contents.  If linking a library
17715
 
      # or program results in "error TOC overflow" add -mminimal-toc to
17716
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17717
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17718
 
 
17719
 
      archive_cmds_GCJ=''
17720
 
      hardcode_direct_GCJ=yes
17721
 
      hardcode_libdir_separator_GCJ=':'
17722
 
      link_all_deplibs_GCJ=yes
17723
 
 
17724
 
      if test "$GCC" = yes; then
17725
 
        case $host_os in aix4.012|aix4.012.*)
17726
 
        # We only want to do this on AIX 4.2 and lower, the check
17727
 
        # below for broken collect2 doesn't work under 4.3+
17728
 
          collect2name=`${CC} -print-prog-name=collect2`
17729
 
          if test -f "$collect2name" && \
17730
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
17731
 
          then
17732
 
          # We have reworked collect2
17733
 
          hardcode_direct_GCJ=yes
17734
 
          else
17735
 
          # We have old collect2
17736
 
          hardcode_direct_GCJ=unsupported
17737
 
          # It fails to find uninstalled libraries when the uninstalled
17738
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
17739
 
          # to unsupported forces relinking
17740
 
          hardcode_minus_L_GCJ=yes
17741
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
17742
 
          hardcode_libdir_separator_GCJ=
17743
 
          fi
17744
 
        esac
17745
 
        shared_flag='-shared'
17746
 
      else
17747
 
        # not using gcc
17748
 
        if test "$host_cpu" = ia64; then
17749
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17750
 
        # chokes on -Wl,-G. The following line is correct:
17751
 
          shared_flag='-G'
17752
 
        else
17753
 
        if test "$aix_use_runtimelinking" = yes; then
17754
 
            shared_flag='${wl}-G'
17755
 
          else
17756
 
            shared_flag='${wl}-bM:SRE'
17757
 
        fi
17758
 
        fi
17759
 
      fi
17760
 
 
17761
 
      # It seems that -bexpall does not export symbols beginning with
17762
 
      # underscore (_), so it is better to generate a list of symbols to export.
17763
 
      always_export_symbols_GCJ=yes
17764
 
      if test "$aix_use_runtimelinking" = yes; then
17765
 
        # Warning - without using the other runtime loading flags (-brtl),
17766
 
        # -berok will link without error, but may produce a broken library.
17767
 
        allow_undefined_flag_GCJ='-berok'
17768
 
       # Determine the default libpath from the value encoded in an empty executable.
17769
 
       cat >conftest.$ac_ext <<_ACEOF
17770
 
/* confdefs.h.  */
17771
 
_ACEOF
17772
 
cat confdefs.h >>conftest.$ac_ext
17773
 
cat >>conftest.$ac_ext <<_ACEOF
17774
 
/* end confdefs.h.  */
17775
 
 
17776
 
int
17777
 
main ()
17778
 
{
17779
 
 
17780
 
  ;
17781
 
  return 0;
17782
 
}
17783
 
_ACEOF
17784
 
rm -f conftest.$ac_objext conftest$ac_exeext
17785
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17786
 
  (eval $ac_link) 2>conftest.er1
17787
 
  ac_status=$?
17788
 
  grep -v '^ *+' conftest.er1 >conftest.err
17789
 
  rm -f conftest.er1
17790
 
  cat conftest.err >&5
17791
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792
 
  (exit $ac_status); } &&
17793
 
         { ac_try='test -z "$ac_c_werror_flag"
17794
 
                         || test ! -s conftest.err'
17795
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796
 
  (eval $ac_try) 2>&5
17797
 
  ac_status=$?
17798
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799
 
  (exit $ac_status); }; } &&
17800
 
         { ac_try='test -s conftest$ac_exeext'
17801
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802
 
  (eval $ac_try) 2>&5
17803
 
  ac_status=$?
17804
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805
 
  (exit $ac_status); }; }; then
17806
 
 
17807
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17808
 
}'`
17809
 
# Check for a 64-bit object if we didn't find anything.
17810
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17811
 
}'`; fi
17812
 
else
17813
 
  echo "$as_me: failed program was:" >&5
17814
 
sed 's/^/| /' conftest.$ac_ext >&5
17815
 
 
17816
 
fi
17817
 
rm -f conftest.err conftest.$ac_objext \
17818
 
      conftest$ac_exeext conftest.$ac_ext
17819
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17820
 
 
17821
 
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17822
 
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17823
 
       else
17824
 
        if test "$host_cpu" = ia64; then
17825
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17826
 
          allow_undefined_flag_GCJ="-z nodefs"
17827
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17828
 
        else
17829
 
         # Determine the default libpath from the value encoded in an empty executable.
17830
 
         cat >conftest.$ac_ext <<_ACEOF
17831
 
/* confdefs.h.  */
17832
 
_ACEOF
17833
 
cat confdefs.h >>conftest.$ac_ext
17834
 
cat >>conftest.$ac_ext <<_ACEOF
17835
 
/* end confdefs.h.  */
17836
 
 
17837
 
int
17838
 
main ()
17839
 
{
17840
 
 
17841
 
  ;
17842
 
  return 0;
17843
 
}
17844
 
_ACEOF
17845
 
rm -f conftest.$ac_objext conftest$ac_exeext
17846
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17847
 
  (eval $ac_link) 2>conftest.er1
17848
 
  ac_status=$?
17849
 
  grep -v '^ *+' conftest.er1 >conftest.err
17850
 
  rm -f conftest.er1
17851
 
  cat conftest.err >&5
17852
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853
 
  (exit $ac_status); } &&
17854
 
         { ac_try='test -z "$ac_c_werror_flag"
17855
 
                         || test ! -s conftest.err'
17856
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857
 
  (eval $ac_try) 2>&5
17858
 
  ac_status=$?
17859
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860
 
  (exit $ac_status); }; } &&
17861
 
         { ac_try='test -s conftest$ac_exeext'
17862
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863
 
  (eval $ac_try) 2>&5
17864
 
  ac_status=$?
17865
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866
 
  (exit $ac_status); }; }; then
17867
 
 
17868
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17869
 
}'`
17870
 
# Check for a 64-bit object if we didn't find anything.
17871
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17872
 
}'`; fi
17873
 
else
17874
 
  echo "$as_me: failed program was:" >&5
17875
 
sed 's/^/| /' conftest.$ac_ext >&5
17876
 
 
17877
 
fi
17878
 
rm -f conftest.err conftest.$ac_objext \
17879
 
      conftest$ac_exeext conftest.$ac_ext
17880
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17881
 
 
17882
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17883
 
          # Warning - without using the other run time loading flags,
17884
 
          # -berok will link without error, but may produce a broken library.
17885
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
17886
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
17887
 
          # -bexpall does not export symbols beginning with underscore (_)
17888
 
          always_export_symbols_GCJ=yes
17889
 
          # Exported symbols can be pulled into shared objects from archives
17890
 
          whole_archive_flag_spec_GCJ=' '
17891
 
          archive_cmds_need_lc_GCJ=yes
17892
 
          # This is similar to how AIX traditionally builds it's shared libraries.
17893
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17894
 
        fi
17895
 
      fi
17896
 
      ;;
17897
 
 
17898
 
    amigaos*)
17899
 
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17900
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17901
 
      hardcode_minus_L_GCJ=yes
17902
 
      # see comment about different semantics on the GNU ld section
17903
 
      ld_shlibs_GCJ=no
17904
 
      ;;
17905
 
 
17906
 
    bsdi4*)
17907
 
      export_dynamic_flag_spec_GCJ=-rdynamic
17908
 
      ;;
17909
 
 
17910
 
    cygwin* | mingw* | pw32*)
17911
 
      # When not using gcc, we currently assume that we are using
17912
 
      # Microsoft Visual C++.
17913
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
17914
 
      # no search path for DLLs.
17915
 
      hardcode_libdir_flag_spec_GCJ=' '
17916
 
      allow_undefined_flag_GCJ=unsupported
17917
 
      # Tell ltmain to make .lib files, not .a files.
17918
 
      libext=lib
17919
 
      # Tell ltmain to make .dll files, not .so files.
17920
 
      shrext_cmds=".dll"
17921
 
      # FIXME: Setting linknames here is a bad hack.
17922
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17923
 
      # The linker will automatically build a .lib file if we build a DLL.
17924
 
      old_archive_From_new_cmds_GCJ='true'
17925
 
      # FIXME: Should let the user specify the lib program.
17926
 
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17927
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
17928
 
      enable_shared_with_static_runtimes_GCJ=yes
17929
 
      ;;
17930
 
 
17931
 
    darwin* | rhapsody*)
17932
 
    if test "$GXX" = yes ; then
17933
 
      archive_cmds_need_lc_GCJ=no
17934
 
      case "$host_os" in
17935
 
      rhapsody* | darwin1.[012])
17936
 
        allow_undefined_flag_GCJ='-undefined suppress'
17937
 
        ;;
17938
 
      *) # Darwin 1.3 on
17939
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17940
 
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17941
 
      else
17942
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
17943
 
          10.[012])
17944
 
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17945
 
            ;;
17946
 
          10.*)
17947
 
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17948
 
            ;;
17949
 
        esac
17950
 
      fi
17951
 
        ;;
17952
 
      esac
17953
 
        lt_int_apple_cc_single_mod=no
17954
 
        output_verbose_link_cmd='echo'
17955
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17956
 
          lt_int_apple_cc_single_mod=yes
17957
 
        fi
17958
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17959
 
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17960
 
        else
17961
 
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17962
 
      fi
17963
 
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17964
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17965
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17966
 
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17967
 
        else
17968
 
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17969
 
        fi
17970
 
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17971
 
      hardcode_direct_GCJ=no
17972
 
      hardcode_automatic_GCJ=yes
17973
 
      hardcode_shlibpath_var_GCJ=unsupported
17974
 
      whole_archive_flag_spec_GCJ='-all_load $convenience'
17975
 
      link_all_deplibs_GCJ=yes
17976
 
    else
17977
 
      ld_shlibs_GCJ=no
17978
 
    fi
17979
 
      ;;
17980
 
 
17981
 
    dgux*)
17982
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17983
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17984
 
      hardcode_shlibpath_var_GCJ=no
17985
 
      ;;
17986
 
 
17987
 
    freebsd1*)
17988
 
      ld_shlibs_GCJ=no
17989
 
      ;;
17990
 
 
17991
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17992
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
17993
 
    # does not break anything, and helps significantly (at the cost of a little
17994
 
    # extra space).
17995
 
    freebsd2.2*)
17996
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17997
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17998
 
      hardcode_direct_GCJ=yes
17999
 
      hardcode_shlibpath_var_GCJ=no
18000
 
      ;;
18001
 
 
18002
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18003
 
    freebsd2*)
18004
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18005
 
      hardcode_direct_GCJ=yes
18006
 
      hardcode_minus_L_GCJ=yes
18007
 
      hardcode_shlibpath_var_GCJ=no
18008
 
      ;;
18009
 
 
18010
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18011
 
    freebsd* | kfreebsd*-gnu)
18012
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18013
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18014
 
      hardcode_direct_GCJ=yes
18015
 
      hardcode_shlibpath_var_GCJ=no
18016
 
      ;;
18017
 
 
18018
 
    hpux9*)
18019
 
      if test "$GCC" = yes; then
18020
 
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
18021
 
      else
18022
 
        archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
18023
 
      fi
18024
 
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18025
 
      hardcode_libdir_separator_GCJ=:
18026
 
      hardcode_direct_GCJ=yes
18027
 
 
18028
 
      # hardcode_minus_L: Not really in the search PATH,
18029
 
      # but as the default location of the library.
18030
 
      hardcode_minus_L_GCJ=yes
18031
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
18032
 
      ;;
18033
 
 
18034
 
    hpux10* | hpux11*)
18035
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18036
 
        case "$host_cpu" in
18037
 
        hppa*64*|ia64*)
18038
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18039
 
          ;;
18040
 
        *)
18041
 
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18042
 
          ;;
18043
 
        esac
18044
 
      else
18045
 
        case "$host_cpu" in
18046
 
        hppa*64*|ia64*)
18047
 
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18048
 
          ;;
18049
 
        *)
18050
 
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18051
 
          ;;
18052
 
        esac
18053
 
      fi
18054
 
      if test "$with_gnu_ld" = no; then
18055
 
        case "$host_cpu" in
18056
 
        hppa*64*)
18057
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18058
 
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18059
 
          hardcode_libdir_separator_GCJ=:
18060
 
          hardcode_direct_GCJ=no
18061
 
          hardcode_shlibpath_var_GCJ=no
18062
 
          ;;
18063
 
        ia64*)
18064
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
18065
 
          hardcode_direct_GCJ=no
18066
 
          hardcode_shlibpath_var_GCJ=no
18067
 
 
18068
 
          # hardcode_minus_L: Not really in the search PATH,
18069
 
          # but as the default location of the library.
18070
 
          hardcode_minus_L_GCJ=yes
18071
 
          ;;
18072
 
        *)
18073
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18074
 
          hardcode_libdir_separator_GCJ=:
18075
 
          hardcode_direct_GCJ=yes
18076
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
18077
 
 
18078
 
          # hardcode_minus_L: Not really in the search PATH,
18079
 
          # but as the default location of the library.
18080
 
          hardcode_minus_L_GCJ=yes
18081
 
          ;;
18082
 
        esac
18083
 
      fi
18084
 
      ;;
18085
 
 
18086
 
    irix5* | irix6* | nonstopux*)
18087
 
      if test "$GCC" = yes; then
18088
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18089
 
      else
18090
 
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18091
 
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18092
 
      fi
18093
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18094
 
      hardcode_libdir_separator_GCJ=:
18095
 
      link_all_deplibs_GCJ=yes
18096
 
      ;;
18097
 
 
18098
 
    netbsd*)
18099
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18100
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18101
 
      else
18102
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18103
 
      fi
18104
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18105
 
      hardcode_direct_GCJ=yes
18106
 
      hardcode_shlibpath_var_GCJ=no
18107
 
      ;;
18108
 
 
18109
 
    newsos6)
18110
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18111
 
      hardcode_direct_GCJ=yes
18112
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18113
 
      hardcode_libdir_separator_GCJ=:
18114
 
      hardcode_shlibpath_var_GCJ=no
18115
 
      ;;
18116
 
 
18117
 
    openbsd*)
18118
 
      hardcode_direct_GCJ=yes
18119
 
      hardcode_shlibpath_var_GCJ=no
18120
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18121
 
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18122
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18123
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
18124
 
      else
18125
 
       case $host_os in
18126
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18127
 
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18128
 
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
18129
 
           ;;
18130
 
         *)
18131
 
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18132
 
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18133
 
           ;;
18134
 
       esac
18135
 
      fi
18136
 
      ;;
18137
 
 
18138
 
    os2*)
18139
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18140
 
      hardcode_minus_L_GCJ=yes
18141
 
      allow_undefined_flag_GCJ=unsupported
18142
 
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18143
 
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18144
 
      ;;
18145
 
 
18146
 
    osf3*)
18147
 
      if test "$GCC" = yes; then
18148
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18149
 
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18150
 
      else
18151
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
18152
 
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18153
 
      fi
18154
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18155
 
      hardcode_libdir_separator_GCJ=:
18156
 
      ;;
18157
 
 
18158
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
18159
 
      if test "$GCC" = yes; then
18160
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18161
 
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18162
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18163
 
      else
18164
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
18165
 
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18166
 
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18167
 
        $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'
18168
 
 
18169
 
        # Both c and cxx compiler support -rpath directly
18170
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18171
 
      fi
18172
 
      hardcode_libdir_separator_GCJ=:
18173
 
      ;;
18174
 
 
18175
 
    sco3.2v5*)
18176
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18177
 
      hardcode_shlibpath_var_GCJ=no
18178
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18179
 
      runpath_var=LD_RUN_PATH
18180
 
      hardcode_runpath_var=yes
18181
 
      ;;
18182
 
 
18183
 
    solaris*)
18184
 
      no_undefined_flag_GCJ=' -z text'
18185
 
      if test "$GCC" = yes; then
18186
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18187
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18188
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18189
 
      else
18190
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18191
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18192
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18193
 
      fi
18194
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18195
 
      hardcode_shlibpath_var_GCJ=no
18196
 
      case $host_os in
18197
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
18198
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18199
 
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18200
 
      esac
18201
 
      link_all_deplibs_GCJ=yes
18202
 
      ;;
18203
 
 
18204
 
    sunos4*)
18205
 
      if test "x$host_vendor" = xsequent; then
18206
 
        # Use $CC to link under sequent, because it throws in some extra .o
18207
 
        # files that make .init and .fini sections work.
18208
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18209
 
      else
18210
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18211
 
      fi
18212
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18213
 
      hardcode_direct_GCJ=yes
18214
 
      hardcode_minus_L_GCJ=yes
18215
 
      hardcode_shlibpath_var_GCJ=no
18216
 
      ;;
18217
 
 
18218
 
    sysv4)
18219
 
      case $host_vendor in
18220
 
        sni)
18221
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18222
 
          hardcode_direct_GCJ=yes # is this really true???
18223
 
        ;;
18224
 
        siemens)
18225
 
          ## LD is ld it makes a PLAMLIB
18226
 
          ## CC just makes a GrossModule.
18227
 
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18228
 
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18229
 
          hardcode_direct_GCJ=no
18230
 
        ;;
18231
 
        motorola)
18232
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18233
 
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18234
 
        ;;
18235
 
      esac
18236
 
      runpath_var='LD_RUN_PATH'
18237
 
      hardcode_shlibpath_var_GCJ=no
18238
 
      ;;
18239
 
 
18240
 
    sysv4.3*)
18241
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18242
 
      hardcode_shlibpath_var_GCJ=no
18243
 
      export_dynamic_flag_spec_GCJ='-Bexport'
18244
 
      ;;
18245
 
 
18246
 
    sysv4*MP*)
18247
 
      if test -d /usr/nec; then
18248
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18249
 
        hardcode_shlibpath_var_GCJ=no
18250
 
        runpath_var=LD_RUN_PATH
18251
 
        hardcode_runpath_var=yes
18252
 
        ld_shlibs_GCJ=yes
18253
 
      fi
18254
 
      ;;
18255
 
 
18256
 
    sysv4.2uw2*)
18257
 
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18258
 
      hardcode_direct_GCJ=yes
18259
 
      hardcode_minus_L_GCJ=no
18260
 
      hardcode_shlibpath_var_GCJ=no
18261
 
      hardcode_runpath_var=yes
18262
 
      runpath_var=LD_RUN_PATH
18263
 
      ;;
18264
 
 
18265
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18266
 
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
18267
 
      if test "$GCC" = yes; then
18268
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18269
 
      else
18270
 
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18271
 
      fi
18272
 
      runpath_var='LD_RUN_PATH'
18273
 
      hardcode_shlibpath_var_GCJ=no
18274
 
      ;;
18275
 
 
18276
 
    sysv5*)
18277
 
      no_undefined_flag_GCJ=' -z text'
18278
 
      # $CC -shared without GNU ld will not create a library from C++
18279
 
      # object files and a static libstdc++, better avoid it by now
18280
 
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18281
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18282
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18283
 
      hardcode_libdir_flag_spec_GCJ=
18284
 
      hardcode_shlibpath_var_GCJ=no
18285
 
      runpath_var='LD_RUN_PATH'
18286
 
      ;;
18287
 
 
18288
 
    uts4*)
18289
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18290
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18291
 
      hardcode_shlibpath_var_GCJ=no
18292
 
      ;;
18293
 
 
18294
 
    *)
18295
 
      ld_shlibs_GCJ=no
18296
 
      ;;
18297
 
    esac
18298
 
  fi
18299
 
 
18300
 
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18301
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18302
 
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18303
 
 
18304
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18305
 
if test "$GCC" = yes; then
18306
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18307
 
fi
18308
 
 
18309
 
#
18310
 
# Do we need to explicitly link libc?
18311
 
#
18312
 
case "x$archive_cmds_need_lc_GCJ" in
18313
 
x|xyes)
18314
 
  # Assume -lc should be added
18315
 
  archive_cmds_need_lc_GCJ=yes
18316
 
 
18317
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
18318
 
    case $archive_cmds_GCJ in
18319
 
    *'~'*)
18320
 
      # FIXME: we may have to deal with multi-command sequences.
18321
 
      ;;
18322
 
    '$CC '*)
18323
 
      # Test whether the compiler implicitly links with -lc since on some
18324
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18325
 
      # to ld, don't add -lc before -lgcc.
18326
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18327
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18328
 
      $rm conftest*
18329
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18330
 
 
18331
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18332
 
  (eval $ac_compile) 2>&5
18333
 
  ac_status=$?
18334
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335
 
  (exit $ac_status); } 2>conftest.err; then
18336
 
        soname=conftest
18337
 
        lib=conftest
18338
 
        libobjs=conftest.$ac_objext
18339
 
        deplibs=
18340
 
        wl=$lt_prog_compiler_wl_GCJ
18341
 
        compiler_flags=-v
18342
 
        linker_flags=-v
18343
 
        verstring=
18344
 
        output_objdir=.
18345
 
        libname=conftest
18346
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18347
 
        allow_undefined_flag_GCJ=
18348
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18349
 
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18350
 
  ac_status=$?
18351
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352
 
  (exit $ac_status); }
18353
 
        then
18354
 
          archive_cmds_need_lc_GCJ=no
18355
 
        else
18356
 
          archive_cmds_need_lc_GCJ=yes
18357
 
        fi
18358
 
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18359
 
      else
18360
 
        cat conftest.err 1>&5
18361
 
      fi
18362
 
      $rm conftest*
18363
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18364
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18365
 
      ;;
18366
 
    esac
18367
 
  fi
18368
 
  ;;
18369
 
esac
18370
 
 
18371
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18372
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18373
 
library_names_spec=
18374
 
libname_spec='lib$name'
18375
 
soname_spec=
18376
 
shrext_cmds=".so"
18377
 
postinstall_cmds=
18378
 
postuninstall_cmds=
18379
 
finish_cmds=
18380
 
finish_eval=
18381
 
shlibpath_var=
18382
 
shlibpath_overrides_runpath=unknown
18383
 
version_type=none
18384
 
dynamic_linker="$host_os ld.so"
18385
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18386
 
if test "$GCC" = yes; then
18387
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18388
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18389
 
    # if the path contains ";" then we assume it to be the separator
18390
 
    # otherwise default to the standard path separator (i.e. ":") - it is
18391
 
    # assumed that no part of a normal pathname contains ";" but that should
18392
 
    # okay in the real world where ";" in dirpaths is itself problematic.
18393
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18394
 
  else
18395
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18396
 
  fi
18397
 
else
18398
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18399
 
fi
18400
 
need_lib_prefix=unknown
18401
 
hardcode_into_libs=no
18402
 
 
18403
 
# when you set need_version to no, make sure it does not cause -set_version
18404
 
# flags to be left without arguments
18405
 
need_version=unknown
18406
 
 
18407
 
case $host_os in
18408
 
aix3*)
18409
 
  version_type=linux
18410
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18411
 
  shlibpath_var=LIBPATH
18412
 
 
18413
 
  # AIX 3 has no versioning support, so we append a major version to the name.
18414
 
  soname_spec='${libname}${release}${shared_ext}$major'
18415
 
  ;;
18416
 
 
18417
 
aix4* | aix5*)
18418
 
  version_type=linux
18419
 
  need_lib_prefix=no
18420
 
  need_version=no
18421
 
  hardcode_into_libs=yes
18422
 
  if test "$host_cpu" = ia64; then
18423
 
    # AIX 5 supports IA64
18424
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18425
 
    shlibpath_var=LD_LIBRARY_PATH
18426
 
  else
18427
 
    # With GCC up to 2.95.x, collect2 would create an import file
18428
 
    # for dependence libraries.  The import file would start with
18429
 
    # the line `#! .'.  This would cause the generated library to
18430
 
    # depend on `.', always an invalid library.  This was fixed in
18431
 
    # development snapshots of GCC prior to 3.0.
18432
 
    case $host_os in
18433
 
      aix4 | aix4.[01] | aix4.[01].*)
18434
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18435
 
           echo ' yes '
18436
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18437
 
        :
18438
 
      else
18439
 
        can_build_shared=no
18440
 
      fi
18441
 
      ;;
18442
 
    esac
18443
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18444
 
    # soname into executable. Probably we can add versioning support to
18445
 
    # collect2, so additional links can be useful in future.
18446
 
    if test "$aix_use_runtimelinking" = yes; then
18447
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18448
 
      # instead of lib<name>.a to let people know that these are not
18449
 
      # typical AIX shared libraries.
18450
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18451
 
    else
18452
 
      # We preserve .a as extension for shared libraries through AIX4.2
18453
 
      # and later when we are not doing run time linking.
18454
 
      library_names_spec='${libname}${release}.a $libname.a'
18455
 
      soname_spec='${libname}${release}${shared_ext}$major'
18456
 
    fi
18457
 
    shlibpath_var=LIBPATH
18458
 
  fi
18459
 
  ;;
18460
 
 
18461
 
amigaos*)
18462
 
  library_names_spec='$libname.ixlibrary $libname.a'
18463
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18464
 
  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'
18465
 
  ;;
18466
 
 
18467
 
beos*)
18468
 
  library_names_spec='${libname}${shared_ext}'
18469
 
  dynamic_linker="$host_os ld.so"
18470
 
  shlibpath_var=LIBRARY_PATH
18471
 
  ;;
18472
 
 
18473
 
bsdi4*)
18474
 
  version_type=linux
18475
 
  need_version=no
18476
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18477
 
  soname_spec='${libname}${release}${shared_ext}$major'
18478
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18479
 
  shlibpath_var=LD_LIBRARY_PATH
18480
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18481
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18482
 
  # the default ld.so.conf also contains /usr/contrib/lib and
18483
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18484
 
  # libtool to hard-code these into programs
18485
 
  ;;
18486
 
 
18487
 
cygwin* | mingw* | pw32*)
18488
 
  version_type=windows
18489
 
  shrext_cmds=".dll"
18490
 
  need_version=no
18491
 
  need_lib_prefix=no
18492
 
 
18493
 
  case $GCC,$host_os in
18494
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
18495
 
    library_names_spec='$libname.dll.a'
18496
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18497
 
    postinstall_cmds='base_file=`basename \${file}`~
18498
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18499
 
      dldir=$destdir/`dirname \$dlpath`~
18500
 
      test -d \$dldir || mkdir -p \$dldir~
18501
 
      $install_prog $dir/$dlname \$dldir/$dlname'
18502
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18503
 
      dlpath=$dir/\$dldll~
18504
 
       $rm \$dlpath'
18505
 
    shlibpath_overrides_runpath=yes
18506
 
 
18507
 
    case $host_os in
18508
 
    cygwin*)
18509
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18510
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18511
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18512
 
      ;;
18513
 
    mingw*)
18514
 
      # MinGW DLLs use traditional 'lib' prefix
18515
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18516
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18517
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18518
 
        # It is most probably a Windows format PATH printed by
18519
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18520
 
        # path with ; separators, and with drive letters. We can handle the
18521
 
        # drive letters (cygwin fileutils understands them), so leave them,
18522
 
        # especially as we might pass files found there to a mingw objdump,
18523
 
        # which wouldn't understand a cygwinified path. Ahh.
18524
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18525
 
      else
18526
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18527
 
      fi
18528
 
      ;;
18529
 
    pw32*)
18530
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
18531
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18532
 
      ;;
18533
 
    esac
18534
 
    ;;
18535
 
 
18536
 
  *)
18537
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18538
 
    ;;
18539
 
  esac
18540
 
  dynamic_linker='Win32 ld.exe'
18541
 
  # FIXME: first we should search . and the directory the executable is in
18542
 
  shlibpath_var=PATH
18543
 
  ;;
18544
 
 
18545
 
darwin* | rhapsody*)
18546
 
  dynamic_linker="$host_os dyld"
18547
 
  version_type=darwin
18548
 
  need_lib_prefix=no
18549
 
  need_version=no
18550
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18551
 
  soname_spec='${libname}${release}${major}$shared_ext'
18552
 
  shlibpath_overrides_runpath=yes
18553
 
  shlibpath_var=DYLD_LIBRARY_PATH
18554
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18555
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18556
 
  if test "$GCC" = yes; then
18557
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18558
 
  else
18559
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18560
 
  fi
18561
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18562
 
  ;;
18563
 
 
18564
 
dgux*)
18565
 
  version_type=linux
18566
 
  need_lib_prefix=no
18567
 
  need_version=no
18568
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18569
 
  soname_spec='${libname}${release}${shared_ext}$major'
18570
 
  shlibpath_var=LD_LIBRARY_PATH
18571
 
  ;;
18572
 
 
18573
 
freebsd1*)
18574
 
  dynamic_linker=no
18575
 
  ;;
18576
 
 
18577
 
kfreebsd*-gnu)
18578
 
  version_type=linux
18579
 
  need_lib_prefix=no
18580
 
  need_version=no
18581
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18582
 
  soname_spec='${libname}${release}${shared_ext}$major'
18583
 
  shlibpath_var=LD_LIBRARY_PATH
18584
 
  shlibpath_overrides_runpath=no
18585
 
  hardcode_into_libs=yes
18586
 
  dynamic_linker='GNU ld.so'
18587
 
  ;;
18588
 
 
18589
 
freebsd*)
18590
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18591
 
  version_type=freebsd-$objformat
18592
 
  case $version_type in
18593
 
    freebsd-elf*)
18594
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18595
 
      need_version=no
18596
 
      need_lib_prefix=no
18597
 
      ;;
18598
 
    freebsd-*)
18599
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18600
 
      need_version=yes
18601
 
      ;;
18602
 
  esac
18603
 
  shlibpath_var=LD_LIBRARY_PATH
18604
 
  case $host_os in
18605
 
  freebsd2*)
18606
 
    shlibpath_overrides_runpath=yes
18607
 
    ;;
18608
 
  freebsd3.01* | freebsdelf3.01*)
18609
 
    shlibpath_overrides_runpath=yes
18610
 
    hardcode_into_libs=yes
18611
 
    ;;
18612
 
  *) # from 3.2 on
18613
 
    shlibpath_overrides_runpath=no
18614
 
    hardcode_into_libs=yes
18615
 
    ;;
18616
 
  esac
18617
 
  ;;
18618
 
 
18619
 
gnu*)
18620
 
  version_type=linux
18621
 
  need_lib_prefix=no
18622
 
  need_version=no
18623
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18624
 
  soname_spec='${libname}${release}${shared_ext}$major'
18625
 
  shlibpath_var=LD_LIBRARY_PATH
18626
 
  hardcode_into_libs=yes
18627
 
  ;;
18628
 
 
18629
 
hpux9* | hpux10* | hpux11*)
18630
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
18631
 
  # link against other versions.
18632
 
  version_type=sunos
18633
 
  need_lib_prefix=no
18634
 
  need_version=no
18635
 
  case "$host_cpu" in
18636
 
  ia64*)
18637
 
    shrext_cmds='.so'
18638
 
    hardcode_into_libs=yes
18639
 
    dynamic_linker="$host_os dld.so"
18640
 
    shlibpath_var=LD_LIBRARY_PATH
18641
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18642
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18643
 
    soname_spec='${libname}${release}${shared_ext}$major'
18644
 
    if test "X$HPUX_IA64_MODE" = X32; then
18645
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18646
 
    else
18647
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18648
 
    fi
18649
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18650
 
    ;;
18651
 
   hppa*64*)
18652
 
     shrext_cmds='.sl'
18653
 
     hardcode_into_libs=yes
18654
 
     dynamic_linker="$host_os dld.sl"
18655
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18656
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18657
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18658
 
     soname_spec='${libname}${release}${shared_ext}$major'
18659
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18660
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18661
 
     ;;
18662
 
   *)
18663
 
    shrext_cmds='.sl'
18664
 
    dynamic_linker="$host_os dld.sl"
18665
 
    shlibpath_var=SHLIB_PATH
18666
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18667
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18668
 
    soname_spec='${libname}${release}${shared_ext}$major'
18669
 
    ;;
18670
 
  esac
18671
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18672
 
  postinstall_cmds='chmod 555 $lib'
18673
 
  ;;
18674
 
 
18675
 
irix5* | irix6* | nonstopux*)
18676
 
  case $host_os in
18677
 
    nonstopux*) version_type=nonstopux ;;
18678
 
    *)
18679
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
18680
 
                version_type=linux
18681
 
        else
18682
 
                version_type=irix
18683
 
        fi ;;
18684
 
  esac
18685
 
  need_lib_prefix=no
18686
 
  need_version=no
18687
 
  soname_spec='${libname}${release}${shared_ext}$major'
18688
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18689
 
  case $host_os in
18690
 
  irix5* | nonstopux*)
18691
 
    libsuff= shlibsuff=
18692
 
    ;;
18693
 
  *)
18694
 
    case $LD in # libtool.m4 will add one of these switches to LD
18695
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18696
 
      libsuff= shlibsuff= libmagic=32-bit;;
18697
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18698
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
18699
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18700
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18701
 
    *) libsuff= shlibsuff= libmagic=never-match;;
18702
 
    esac
18703
 
    ;;
18704
 
  esac
18705
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18706
 
  shlibpath_overrides_runpath=no
18707
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18708
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18709
 
  hardcode_into_libs=yes
18710
 
  ;;
18711
 
 
18712
 
# No shared lib support for Linux oldld, aout, or coff.
18713
 
linux*oldld* | linux*aout* | linux*coff*)
18714
 
  dynamic_linker=no
18715
 
  ;;
18716
 
 
18717
 
# This must be Linux ELF.
18718
 
linux*)
18719
 
  version_type=linux
18720
 
  need_lib_prefix=no
18721
 
  need_version=no
18722
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18723
 
  soname_spec='${libname}${release}${shared_ext}$major'
18724
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18725
 
  shlibpath_var=LD_LIBRARY_PATH
18726
 
  shlibpath_overrides_runpath=no
18727
 
  # This implies no fast_install, which is unacceptable.
18728
 
  # Some rework will be needed to allow for fast_install
18729
 
  # before this can be enabled.
18730
 
  hardcode_into_libs=yes
18731
 
 
18732
 
  # Append ld.so.conf contents to the search path
18733
 
  if test -f /etc/ld.so.conf; then
18734
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18735
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18736
 
  fi
18737
 
 
18738
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
18739
 
  # powerpc, because MkLinux only supported shared libraries with the
18740
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
18741
 
  # most powerpc-linux boxes support dynamic linking these days and
18742
 
  # people can always --disable-shared, the test was removed, and we
18743
 
  # assume the GNU/Linux dynamic linker is in use.
18744
 
  dynamic_linker='GNU/Linux ld.so'
18745
 
  ;;
18746
 
 
18747
 
knetbsd*-gnu)
18748
 
  version_type=linux
18749
 
  need_lib_prefix=no
18750
 
  need_version=no
18751
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18752
 
  soname_spec='${libname}${release}${shared_ext}$major'
18753
 
  shlibpath_var=LD_LIBRARY_PATH
18754
 
  shlibpath_overrides_runpath=no
18755
 
  hardcode_into_libs=yes
18756
 
  dynamic_linker='GNU ld.so'
18757
 
  ;;
18758
 
 
18759
 
netbsd*)
18760
 
  version_type=sunos
18761
 
  need_lib_prefix=no
18762
 
  need_version=no
18763
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18764
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18765
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18766
 
    dynamic_linker='NetBSD (a.out) ld.so'
18767
 
  else
18768
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18769
 
    soname_spec='${libname}${release}${shared_ext}$major'
18770
 
    dynamic_linker='NetBSD ld.elf_so'
18771
 
  fi
18772
 
  shlibpath_var=LD_LIBRARY_PATH
18773
 
  shlibpath_overrides_runpath=yes
18774
 
  hardcode_into_libs=yes
18775
 
  ;;
18776
 
 
18777
 
newsos6)
18778
 
  version_type=linux
18779
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18780
 
  shlibpath_var=LD_LIBRARY_PATH
18781
 
  shlibpath_overrides_runpath=yes
18782
 
  ;;
18783
 
 
18784
 
nto-qnx*)
18785
 
  version_type=linux
18786
 
  need_lib_prefix=no
18787
 
  need_version=no
18788
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18789
 
  soname_spec='${libname}${release}${shared_ext}$major'
18790
 
  shlibpath_var=LD_LIBRARY_PATH
18791
 
  shlibpath_overrides_runpath=yes
18792
 
  ;;
18793
 
 
18794
 
openbsd*)
18795
 
  version_type=sunos
18796
 
  need_lib_prefix=no
18797
 
  need_version=yes
18798
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18799
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18800
 
  shlibpath_var=LD_LIBRARY_PATH
18801
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18802
 
    case $host_os in
18803
 
      openbsd2.[89] | openbsd2.[89].*)
18804
 
        shlibpath_overrides_runpath=no
18805
 
        ;;
18806
 
      *)
18807
 
        shlibpath_overrides_runpath=yes
18808
 
        ;;
18809
 
      esac
18810
 
  else
18811
 
    shlibpath_overrides_runpath=yes
18812
 
  fi
18813
 
  ;;
18814
 
 
18815
 
os2*)
18816
 
  libname_spec='$name'
18817
 
  shrext_cmds=".dll"
18818
 
  need_lib_prefix=no
18819
 
  library_names_spec='$libname${shared_ext} $libname.a'
18820
 
  dynamic_linker='OS/2 ld.exe'
18821
 
  shlibpath_var=LIBPATH
18822
 
  ;;
18823
 
 
18824
 
osf3* | osf4* | osf5*)
18825
 
  version_type=osf
18826
 
  need_lib_prefix=no
18827
 
  need_version=no
18828
 
  soname_spec='${libname}${release}${shared_ext}$major'
18829
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18830
 
  shlibpath_var=LD_LIBRARY_PATH
18831
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18832
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18833
 
  ;;
18834
 
 
18835
 
sco3.2v5*)
18836
 
  version_type=osf
18837
 
  soname_spec='${libname}${release}${shared_ext}$major'
18838
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18839
 
  shlibpath_var=LD_LIBRARY_PATH
18840
 
  ;;
18841
 
 
18842
 
solaris*)
18843
 
  version_type=linux
18844
 
  need_lib_prefix=no
18845
 
  need_version=no
18846
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18847
 
  soname_spec='${libname}${release}${shared_ext}$major'
18848
 
  shlibpath_var=LD_LIBRARY_PATH
18849
 
  shlibpath_overrides_runpath=yes
18850
 
  hardcode_into_libs=yes
18851
 
  # ldd complains unless libraries are executable
18852
 
  postinstall_cmds='chmod +x $lib'
18853
 
  ;;
18854
 
 
18855
 
sunos4*)
18856
 
  version_type=sunos
18857
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18858
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18859
 
  shlibpath_var=LD_LIBRARY_PATH
18860
 
  shlibpath_overrides_runpath=yes
18861
 
  if test "$with_gnu_ld" = yes; then
18862
 
    need_lib_prefix=no
18863
 
  fi
18864
 
  need_version=yes
18865
 
  ;;
18866
 
 
18867
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18868
 
  version_type=linux
18869
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18870
 
  soname_spec='${libname}${release}${shared_ext}$major'
18871
 
  shlibpath_var=LD_LIBRARY_PATH
18872
 
  case $host_vendor in
18873
 
    sni)
18874
 
      shlibpath_overrides_runpath=no
18875
 
      need_lib_prefix=no
18876
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
18877
 
      runpath_var=LD_RUN_PATH
18878
 
      ;;
18879
 
    siemens)
18880
 
      need_lib_prefix=no
18881
 
      ;;
18882
 
    motorola)
18883
 
      need_lib_prefix=no
18884
 
      need_version=no
18885
 
      shlibpath_overrides_runpath=no
18886
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18887
 
      ;;
18888
 
  esac
18889
 
  ;;
18890
 
 
18891
 
sysv4*MP*)
18892
 
  if test -d /usr/nec ;then
18893
 
    version_type=linux
18894
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18895
 
    soname_spec='$libname${shared_ext}.$major'
18896
 
    shlibpath_var=LD_LIBRARY_PATH
18897
 
  fi
18898
 
  ;;
18899
 
 
18900
 
uts4*)
18901
 
  version_type=linux
18902
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18903
 
  soname_spec='${libname}${release}${shared_ext}$major'
18904
 
  shlibpath_var=LD_LIBRARY_PATH
18905
 
  ;;
18906
 
 
18907
 
*)
18908
 
  dynamic_linker=no
18909
 
  ;;
18910
 
esac
18911
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18912
 
echo "${ECHO_T}$dynamic_linker" >&6
18913
 
test "$dynamic_linker" = no && can_build_shared=no
18914
 
 
18915
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18916
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18917
 
hardcode_action_GCJ=
18918
 
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18919
 
   test -n "$runpath_var GCJ" || \
18920
 
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
18921
 
 
18922
 
  # We can hardcode non-existant directories.
18923
 
  if test "$hardcode_direct_GCJ" != no &&
18924
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18925
 
     # have to relink, otherwise we might link with an installed library
18926
 
     # when we should be linking with a yet-to-be-installed one
18927
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18928
 
     test "$hardcode_minus_L_GCJ" != no; then
18929
 
    # Linking always hardcodes the temporary library directory.
18930
 
    hardcode_action_GCJ=relink
18931
 
  else
18932
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18933
 
    hardcode_action_GCJ=immediate
18934
 
  fi
18935
 
else
18936
 
  # We cannot hardcode anything, or else we can only hardcode existing
18937
 
  # directories.
18938
 
  hardcode_action_GCJ=unsupported
18939
 
fi
18940
 
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18941
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6
18942
 
 
18943
 
if test "$hardcode_action_GCJ" = relink; then
18944
 
  # Fast installation is not supported
18945
 
  enable_fast_install=no
18946
 
elif test "$shlibpath_overrides_runpath" = yes ||
18947
 
     test "$enable_shared" = no; then
18948
 
  # Fast installation is not necessary
18949
 
  enable_fast_install=needless
18950
 
fi
18951
 
 
18952
 
striplib=
18953
 
old_striplib=
18954
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18955
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18956
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18957
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18958
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18959
 
  echo "$as_me:$LINENO: result: yes" >&5
18960
 
echo "${ECHO_T}yes" >&6
18961
 
else
18962
 
# FIXME - insert some real tests, host_os isn't really good enough
18963
 
  case $host_os in
18964
 
   darwin*)
18965
 
       if test -n "$STRIP" ; then
18966
 
         striplib="$STRIP -x"
18967
 
         echo "$as_me:$LINENO: result: yes" >&5
18968
 
echo "${ECHO_T}yes" >&6
18969
 
       else
18970
 
  echo "$as_me:$LINENO: result: no" >&5
18971
 
echo "${ECHO_T}no" >&6
18972
 
fi
18973
 
       ;;
18974
 
   *)
18975
 
  echo "$as_me:$LINENO: result: no" >&5
18976
 
echo "${ECHO_T}no" >&6
18977
 
    ;;
18978
 
  esac
18979
 
fi
18980
 
 
18981
 
if test "x$enable_dlopen" != xyes; then
18982
 
  enable_dlopen=unknown
18983
 
  enable_dlopen_self=unknown
18984
 
  enable_dlopen_self_static=unknown
18985
 
else
18986
 
  lt_cv_dlopen=no
18987
 
  lt_cv_dlopen_libs=
18988
 
 
18989
 
  case $host_os in
18990
 
  beos*)
18991
 
    lt_cv_dlopen="load_add_on"
18992
 
    lt_cv_dlopen_libs=
18993
 
    lt_cv_dlopen_self=yes
18994
 
    ;;
18995
 
 
18996
 
  mingw* | pw32*)
18997
 
    lt_cv_dlopen="LoadLibrary"
18998
 
    lt_cv_dlopen_libs=
18999
 
   ;;
19000
 
 
19001
 
  cygwin*)
19002
 
    lt_cv_dlopen="dlopen"
19003
 
    lt_cv_dlopen_libs=
19004
 
   ;;
19005
 
 
19006
 
  darwin*)
19007
 
  # if libdl is installed we need to link against it
19008
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19009
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19010
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19011
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19012
 
else
19013
 
  ac_check_lib_save_LIBS=$LIBS
19014
 
LIBS="-ldl  $LIBS"
19015
 
cat >conftest.$ac_ext <<_ACEOF
19016
 
/* confdefs.h.  */
19017
 
_ACEOF
19018
 
cat confdefs.h >>conftest.$ac_ext
19019
 
cat >>conftest.$ac_ext <<_ACEOF
19020
 
/* end confdefs.h.  */
19021
 
 
19022
 
/* Override any gcc2 internal prototype to avoid an error.  */
19023
 
#ifdef __cplusplus
19024
 
extern "C"
19025
 
#endif
19026
 
/* We use char because int might match the return type of a gcc2
19027
 
   builtin and then its argument prototype would still apply.  */
19028
 
char dlopen ();
19029
 
int
19030
 
main ()
19031
 
{
19032
 
dlopen ();
19033
 
  ;
19034
 
  return 0;
19035
 
}
19036
 
_ACEOF
19037
 
rm -f conftest.$ac_objext conftest$ac_exeext
19038
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19039
 
  (eval $ac_link) 2>conftest.er1
19040
 
  ac_status=$?
19041
 
  grep -v '^ *+' conftest.er1 >conftest.err
19042
 
  rm -f conftest.er1
19043
 
  cat conftest.err >&5
19044
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045
 
  (exit $ac_status); } &&
19046
 
         { ac_try='test -z "$ac_c_werror_flag"
19047
 
                         || test ! -s conftest.err'
19048
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19049
 
  (eval $ac_try) 2>&5
19050
 
  ac_status=$?
19051
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052
 
  (exit $ac_status); }; } &&
19053
 
         { ac_try='test -s conftest$ac_exeext'
19054
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055
 
  (eval $ac_try) 2>&5
19056
 
  ac_status=$?
19057
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058
 
  (exit $ac_status); }; }; then
19059
 
  ac_cv_lib_dl_dlopen=yes
19060
 
else
19061
 
  echo "$as_me: failed program was:" >&5
19062
 
sed 's/^/| /' conftest.$ac_ext >&5
19063
 
 
19064
 
ac_cv_lib_dl_dlopen=no
19065
 
fi
19066
 
rm -f conftest.err conftest.$ac_objext \
19067
 
      conftest$ac_exeext conftest.$ac_ext
19068
 
LIBS=$ac_check_lib_save_LIBS
19069
 
fi
19070
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19071
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19072
 
if test $ac_cv_lib_dl_dlopen = yes; then
19073
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19074
 
else
19075
 
 
19076
 
    lt_cv_dlopen="dyld"
19077
 
    lt_cv_dlopen_libs=
19078
 
    lt_cv_dlopen_self=yes
19079
 
 
19080
 
fi
19081
 
 
19082
 
   ;;
19083
 
 
19084
 
  *)
19085
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
19086
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19087
 
if test "${ac_cv_func_shl_load+set}" = set; then
19088
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19089
 
else
19090
 
  cat >conftest.$ac_ext <<_ACEOF
19091
 
/* confdefs.h.  */
19092
 
_ACEOF
19093
 
cat confdefs.h >>conftest.$ac_ext
19094
 
cat >>conftest.$ac_ext <<_ACEOF
19095
 
/* end confdefs.h.  */
19096
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19097
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19098
 
#define shl_load innocuous_shl_load
19099
 
 
19100
 
/* System header to define __stub macros and hopefully few prototypes,
19101
 
    which can conflict with char shl_load (); below.
19102
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19103
 
    <limits.h> exists even on freestanding compilers.  */
19104
 
 
19105
 
#ifdef __STDC__
19106
 
# include <limits.h>
19107
 
#else
19108
 
# include <assert.h>
19109
 
#endif
19110
 
 
19111
 
#undef shl_load
19112
 
 
19113
 
/* Override any gcc2 internal prototype to avoid an error.  */
19114
 
#ifdef __cplusplus
19115
 
extern "C"
19116
 
{
19117
 
#endif
19118
 
/* We use char because int might match the return type of a gcc2
19119
 
   builtin and then its argument prototype would still apply.  */
19120
 
char shl_load ();
19121
 
/* The GNU C library defines this for functions which it implements
19122
 
    to always fail with ENOSYS.  Some functions are actually named
19123
 
    something starting with __ and the normal name is an alias.  */
19124
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
19125
 
choke me
19126
 
#else
19127
 
char (*f) () = shl_load;
19128
 
#endif
19129
 
#ifdef __cplusplus
19130
 
}
19131
 
#endif
19132
 
 
19133
 
int
19134
 
main ()
19135
 
{
19136
 
return f != shl_load;
19137
 
  ;
19138
 
  return 0;
19139
 
}
19140
 
_ACEOF
19141
 
rm -f conftest.$ac_objext conftest$ac_exeext
19142
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19143
 
  (eval $ac_link) 2>conftest.er1
19144
 
  ac_status=$?
19145
 
  grep -v '^ *+' conftest.er1 >conftest.err
19146
 
  rm -f conftest.er1
19147
 
  cat conftest.err >&5
19148
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149
 
  (exit $ac_status); } &&
19150
 
         { ac_try='test -z "$ac_c_werror_flag"
19151
 
                         || test ! -s conftest.err'
19152
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19153
 
  (eval $ac_try) 2>&5
19154
 
  ac_status=$?
19155
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156
 
  (exit $ac_status); }; } &&
19157
 
         { ac_try='test -s conftest$ac_exeext'
19158
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19159
 
  (eval $ac_try) 2>&5
19160
 
  ac_status=$?
19161
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162
 
  (exit $ac_status); }; }; then
19163
 
  ac_cv_func_shl_load=yes
19164
 
else
19165
 
  echo "$as_me: failed program was:" >&5
19166
 
sed 's/^/| /' conftest.$ac_ext >&5
19167
 
 
19168
 
ac_cv_func_shl_load=no
19169
 
fi
19170
 
rm -f conftest.err conftest.$ac_objext \
19171
 
      conftest$ac_exeext conftest.$ac_ext
19172
 
fi
19173
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19174
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19175
 
if test $ac_cv_func_shl_load = yes; then
19176
 
  lt_cv_dlopen="shl_load"
19177
 
else
19178
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19179
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19180
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19181
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19182
 
else
19183
 
  ac_check_lib_save_LIBS=$LIBS
19184
 
LIBS="-ldld  $LIBS"
19185
 
cat >conftest.$ac_ext <<_ACEOF
19186
 
/* confdefs.h.  */
19187
 
_ACEOF
19188
 
cat confdefs.h >>conftest.$ac_ext
19189
 
cat >>conftest.$ac_ext <<_ACEOF
19190
 
/* end confdefs.h.  */
19191
 
 
19192
 
/* Override any gcc2 internal prototype to avoid an error.  */
19193
 
#ifdef __cplusplus
19194
 
extern "C"
19195
 
#endif
19196
 
/* We use char because int might match the return type of a gcc2
19197
 
   builtin and then its argument prototype would still apply.  */
19198
 
char shl_load ();
19199
 
int
19200
 
main ()
19201
 
{
19202
 
shl_load ();
19203
 
  ;
19204
 
  return 0;
19205
 
}
19206
 
_ACEOF
19207
 
rm -f conftest.$ac_objext conftest$ac_exeext
19208
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19209
 
  (eval $ac_link) 2>conftest.er1
19210
 
  ac_status=$?
19211
 
  grep -v '^ *+' conftest.er1 >conftest.err
19212
 
  rm -f conftest.er1
19213
 
  cat conftest.err >&5
19214
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215
 
  (exit $ac_status); } &&
19216
 
         { ac_try='test -z "$ac_c_werror_flag"
19217
 
                         || test ! -s conftest.err'
19218
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19219
 
  (eval $ac_try) 2>&5
19220
 
  ac_status=$?
19221
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222
 
  (exit $ac_status); }; } &&
19223
 
         { ac_try='test -s conftest$ac_exeext'
19224
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225
 
  (eval $ac_try) 2>&5
19226
 
  ac_status=$?
19227
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228
 
  (exit $ac_status); }; }; then
19229
 
  ac_cv_lib_dld_shl_load=yes
19230
 
else
19231
 
  echo "$as_me: failed program was:" >&5
19232
 
sed 's/^/| /' conftest.$ac_ext >&5
19233
 
 
19234
 
ac_cv_lib_dld_shl_load=no
19235
 
fi
19236
 
rm -f conftest.err conftest.$ac_objext \
19237
 
      conftest$ac_exeext conftest.$ac_ext
19238
 
LIBS=$ac_check_lib_save_LIBS
19239
 
fi
19240
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19241
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19242
 
if test $ac_cv_lib_dld_shl_load = yes; then
19243
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19244
 
else
19245
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
19246
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19247
 
if test "${ac_cv_func_dlopen+set}" = set; then
19248
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19249
 
else
19250
 
  cat >conftest.$ac_ext <<_ACEOF
19251
 
/* confdefs.h.  */
19252
 
_ACEOF
19253
 
cat confdefs.h >>conftest.$ac_ext
19254
 
cat >>conftest.$ac_ext <<_ACEOF
19255
 
/* end confdefs.h.  */
19256
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19257
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19258
 
#define dlopen innocuous_dlopen
19259
 
 
19260
 
/* System header to define __stub macros and hopefully few prototypes,
19261
 
    which can conflict with char dlopen (); below.
19262
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19263
 
    <limits.h> exists even on freestanding compilers.  */
19264
 
 
19265
 
#ifdef __STDC__
19266
 
# include <limits.h>
19267
 
#else
19268
 
# include <assert.h>
19269
 
#endif
19270
 
 
19271
 
#undef dlopen
19272
 
 
19273
 
/* Override any gcc2 internal prototype to avoid an error.  */
19274
 
#ifdef __cplusplus
19275
 
extern "C"
19276
 
{
19277
 
#endif
19278
 
/* We use char because int might match the return type of a gcc2
19279
 
   builtin and then its argument prototype would still apply.  */
19280
 
char dlopen ();
19281
 
/* The GNU C library defines this for functions which it implements
19282
 
    to always fail with ENOSYS.  Some functions are actually named
19283
 
    something starting with __ and the normal name is an alias.  */
19284
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
19285
 
choke me
19286
 
#else
19287
 
char (*f) () = dlopen;
19288
 
#endif
19289
 
#ifdef __cplusplus
19290
 
}
19291
 
#endif
19292
 
 
19293
 
int
19294
 
main ()
19295
 
{
19296
 
return f != dlopen;
19297
 
  ;
19298
 
  return 0;
19299
 
}
19300
 
_ACEOF
19301
 
rm -f conftest.$ac_objext conftest$ac_exeext
19302
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19303
 
  (eval $ac_link) 2>conftest.er1
19304
 
  ac_status=$?
19305
 
  grep -v '^ *+' conftest.er1 >conftest.err
19306
 
  rm -f conftest.er1
19307
 
  cat conftest.err >&5
19308
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309
 
  (exit $ac_status); } &&
19310
 
         { ac_try='test -z "$ac_c_werror_flag"
19311
 
                         || test ! -s conftest.err'
19312
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313
 
  (eval $ac_try) 2>&5
19314
 
  ac_status=$?
19315
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316
 
  (exit $ac_status); }; } &&
19317
 
         { ac_try='test -s conftest$ac_exeext'
19318
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319
 
  (eval $ac_try) 2>&5
19320
 
  ac_status=$?
19321
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322
 
  (exit $ac_status); }; }; then
19323
 
  ac_cv_func_dlopen=yes
19324
 
else
19325
 
  echo "$as_me: failed program was:" >&5
19326
 
sed 's/^/| /' conftest.$ac_ext >&5
19327
 
 
19328
 
ac_cv_func_dlopen=no
19329
 
fi
19330
 
rm -f conftest.err conftest.$ac_objext \
19331
 
      conftest$ac_exeext conftest.$ac_ext
19332
 
fi
19333
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19334
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19335
 
if test $ac_cv_func_dlopen = yes; then
19336
 
  lt_cv_dlopen="dlopen"
19337
 
else
19338
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19339
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19340
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19341
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19342
 
else
19343
 
  ac_check_lib_save_LIBS=$LIBS
19344
 
LIBS="-ldl  $LIBS"
19345
 
cat >conftest.$ac_ext <<_ACEOF
19346
 
/* confdefs.h.  */
19347
 
_ACEOF
19348
 
cat confdefs.h >>conftest.$ac_ext
19349
 
cat >>conftest.$ac_ext <<_ACEOF
19350
 
/* end confdefs.h.  */
19351
 
 
19352
 
/* Override any gcc2 internal prototype to avoid an error.  */
19353
 
#ifdef __cplusplus
19354
 
extern "C"
19355
 
#endif
19356
 
/* We use char because int might match the return type of a gcc2
19357
 
   builtin and then its argument prototype would still apply.  */
19358
 
char dlopen ();
19359
 
int
19360
 
main ()
19361
 
{
19362
 
dlopen ();
19363
 
  ;
19364
 
  return 0;
19365
 
}
19366
 
_ACEOF
19367
 
rm -f conftest.$ac_objext conftest$ac_exeext
19368
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19369
 
  (eval $ac_link) 2>conftest.er1
19370
 
  ac_status=$?
19371
 
  grep -v '^ *+' conftest.er1 >conftest.err
19372
 
  rm -f conftest.er1
19373
 
  cat conftest.err >&5
19374
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375
 
  (exit $ac_status); } &&
19376
 
         { ac_try='test -z "$ac_c_werror_flag"
19377
 
                         || test ! -s conftest.err'
19378
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379
 
  (eval $ac_try) 2>&5
19380
 
  ac_status=$?
19381
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382
 
  (exit $ac_status); }; } &&
19383
 
         { ac_try='test -s conftest$ac_exeext'
19384
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385
 
  (eval $ac_try) 2>&5
19386
 
  ac_status=$?
19387
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388
 
  (exit $ac_status); }; }; then
19389
 
  ac_cv_lib_dl_dlopen=yes
19390
 
else
19391
 
  echo "$as_me: failed program was:" >&5
19392
 
sed 's/^/| /' conftest.$ac_ext >&5
19393
 
 
19394
 
ac_cv_lib_dl_dlopen=no
19395
 
fi
19396
 
rm -f conftest.err conftest.$ac_objext \
19397
 
      conftest$ac_exeext conftest.$ac_ext
19398
 
LIBS=$ac_check_lib_save_LIBS
19399
 
fi
19400
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19401
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19402
 
if test $ac_cv_lib_dl_dlopen = yes; then
19403
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19404
 
else
19405
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19406
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19407
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19408
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19409
 
else
19410
 
  ac_check_lib_save_LIBS=$LIBS
19411
 
LIBS="-lsvld  $LIBS"
19412
 
cat >conftest.$ac_ext <<_ACEOF
19413
 
/* confdefs.h.  */
19414
 
_ACEOF
19415
 
cat confdefs.h >>conftest.$ac_ext
19416
 
cat >>conftest.$ac_ext <<_ACEOF
19417
 
/* end confdefs.h.  */
19418
 
 
19419
 
/* Override any gcc2 internal prototype to avoid an error.  */
19420
 
#ifdef __cplusplus
19421
 
extern "C"
19422
 
#endif
19423
 
/* We use char because int might match the return type of a gcc2
19424
 
   builtin and then its argument prototype would still apply.  */
19425
 
char dlopen ();
19426
 
int
19427
 
main ()
19428
 
{
19429
 
dlopen ();
19430
 
  ;
19431
 
  return 0;
19432
 
}
19433
 
_ACEOF
19434
 
rm -f conftest.$ac_objext conftest$ac_exeext
19435
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19436
 
  (eval $ac_link) 2>conftest.er1
19437
 
  ac_status=$?
19438
 
  grep -v '^ *+' conftest.er1 >conftest.err
19439
 
  rm -f conftest.er1
19440
 
  cat conftest.err >&5
19441
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442
 
  (exit $ac_status); } &&
19443
 
         { ac_try='test -z "$ac_c_werror_flag"
19444
 
                         || test ! -s conftest.err'
19445
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446
 
  (eval $ac_try) 2>&5
19447
 
  ac_status=$?
19448
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449
 
  (exit $ac_status); }; } &&
19450
 
         { ac_try='test -s conftest$ac_exeext'
19451
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19452
 
  (eval $ac_try) 2>&5
19453
 
  ac_status=$?
19454
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455
 
  (exit $ac_status); }; }; then
19456
 
  ac_cv_lib_svld_dlopen=yes
19457
 
else
19458
 
  echo "$as_me: failed program was:" >&5
19459
 
sed 's/^/| /' conftest.$ac_ext >&5
19460
 
 
19461
 
ac_cv_lib_svld_dlopen=no
19462
 
fi
19463
 
rm -f conftest.err conftest.$ac_objext \
19464
 
      conftest$ac_exeext conftest.$ac_ext
19465
 
LIBS=$ac_check_lib_save_LIBS
19466
 
fi
19467
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19468
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19469
 
if test $ac_cv_lib_svld_dlopen = yes; then
19470
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19471
 
else
19472
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19473
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19474
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19475
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19476
 
else
19477
 
  ac_check_lib_save_LIBS=$LIBS
19478
 
LIBS="-ldld  $LIBS"
19479
 
cat >conftest.$ac_ext <<_ACEOF
19480
 
/* confdefs.h.  */
19481
 
_ACEOF
19482
 
cat confdefs.h >>conftest.$ac_ext
19483
 
cat >>conftest.$ac_ext <<_ACEOF
19484
 
/* end confdefs.h.  */
19485
 
 
19486
 
/* Override any gcc2 internal prototype to avoid an error.  */
19487
 
#ifdef __cplusplus
19488
 
extern "C"
19489
 
#endif
19490
 
/* We use char because int might match the return type of a gcc2
19491
 
   builtin and then its argument prototype would still apply.  */
19492
 
char dld_link ();
19493
 
int
19494
 
main ()
19495
 
{
19496
 
dld_link ();
19497
 
  ;
19498
 
  return 0;
19499
 
}
19500
 
_ACEOF
19501
 
rm -f conftest.$ac_objext conftest$ac_exeext
19502
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19503
 
  (eval $ac_link) 2>conftest.er1
19504
 
  ac_status=$?
19505
 
  grep -v '^ *+' conftest.er1 >conftest.err
19506
 
  rm -f conftest.er1
19507
 
  cat conftest.err >&5
19508
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509
 
  (exit $ac_status); } &&
19510
 
         { ac_try='test -z "$ac_c_werror_flag"
19511
 
                         || test ! -s conftest.err'
19512
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513
 
  (eval $ac_try) 2>&5
19514
 
  ac_status=$?
19515
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516
 
  (exit $ac_status); }; } &&
19517
 
         { ac_try='test -s conftest$ac_exeext'
19518
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519
 
  (eval $ac_try) 2>&5
19520
 
  ac_status=$?
19521
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522
 
  (exit $ac_status); }; }; then
19523
 
  ac_cv_lib_dld_dld_link=yes
19524
 
else
19525
 
  echo "$as_me: failed program was:" >&5
19526
 
sed 's/^/| /' conftest.$ac_ext >&5
19527
 
 
19528
 
ac_cv_lib_dld_dld_link=no
19529
 
fi
19530
 
rm -f conftest.err conftest.$ac_objext \
19531
 
      conftest$ac_exeext conftest.$ac_ext
19532
 
LIBS=$ac_check_lib_save_LIBS
19533
 
fi
19534
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19535
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19536
 
if test $ac_cv_lib_dld_dld_link = yes; then
19537
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19538
 
fi
19539
 
 
19540
 
 
19541
 
fi
19542
 
 
19543
 
 
19544
 
fi
19545
 
 
19546
 
 
19547
 
fi
19548
 
 
19549
 
 
19550
 
fi
19551
 
 
19552
 
 
19553
 
fi
19554
 
 
19555
 
    ;;
19556
 
  esac
19557
 
 
19558
 
  if test "x$lt_cv_dlopen" != xno; then
19559
 
    enable_dlopen=yes
19560
 
  else
19561
 
    enable_dlopen=no
19562
 
  fi
19563
 
 
19564
 
  case $lt_cv_dlopen in
19565
 
  dlopen)
19566
 
    save_CPPFLAGS="$CPPFLAGS"
19567
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19568
 
 
19569
 
    save_LDFLAGS="$LDFLAGS"
19570
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19571
 
 
19572
 
    save_LIBS="$LIBS"
19573
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
19574
 
 
19575
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19576
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19577
 
if test "${lt_cv_dlopen_self+set}" = set; then
19578
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19579
 
else
19580
 
          if test "$cross_compiling" = yes; then :
19581
 
  lt_cv_dlopen_self=cross
19582
 
else
19583
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19584
 
  lt_status=$lt_dlunknown
19585
 
  cat > conftest.$ac_ext <<EOF
19586
 
#line 19586 "configure"
19587
 
#include "confdefs.h"
19588
 
 
19589
 
#if HAVE_DLFCN_H
19590
 
#include <dlfcn.h>
19591
 
#endif
19592
 
 
19593
 
#include <stdio.h>
19594
 
 
19595
 
#ifdef RTLD_GLOBAL
19596
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
19597
 
#else
19598
 
#  ifdef DL_GLOBAL
19599
 
#    define LT_DLGLOBAL         DL_GLOBAL
19600
 
#  else
19601
 
#    define LT_DLGLOBAL         0
19602
 
#  endif
19603
 
#endif
19604
 
 
19605
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19606
 
   find out it does not work in some platform. */
19607
 
#ifndef LT_DLLAZY_OR_NOW
19608
 
#  ifdef RTLD_LAZY
19609
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19610
 
#  else
19611
 
#    ifdef DL_LAZY
19612
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
19613
 
#    else
19614
 
#      ifdef RTLD_NOW
19615
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
19616
 
#      else
19617
 
#        ifdef DL_NOW
19618
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
19619
 
#        else
19620
 
#          define LT_DLLAZY_OR_NOW      0
19621
 
#        endif
19622
 
#      endif
19623
 
#    endif
19624
 
#  endif
19625
 
#endif
19626
 
 
19627
 
#ifdef __cplusplus
19628
 
extern "C" void exit (int);
19629
 
#endif
19630
 
 
19631
 
void fnord() { int i=42;}
19632
 
int main ()
19633
 
{
19634
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19635
 
  int status = $lt_dlunknown;
19636
 
 
19637
 
  if (self)
19638
 
    {
19639
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19640
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19641
 
      /* dlclose (self); */
19642
 
    }
19643
 
 
19644
 
    exit (status);
19645
 
}
19646
 
EOF
19647
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19648
 
  (eval $ac_link) 2>&5
19649
 
  ac_status=$?
19650
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19652
 
    (./conftest; exit; ) 2>/dev/null
19653
 
    lt_status=$?
19654
 
    case x$lt_status in
19655
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19656
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19657
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19658
 
    esac
19659
 
  else :
19660
 
    # compilation failed
19661
 
    lt_cv_dlopen_self=no
19662
 
  fi
19663
 
fi
19664
 
rm -fr conftest*
19665
 
 
19666
 
 
19667
 
fi
19668
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19669
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19670
 
 
19671
 
    if test "x$lt_cv_dlopen_self" = xyes; then
19672
 
      LDFLAGS="$LDFLAGS $link_static_flag"
19673
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19674
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19675
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
19676
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19677
 
else
19678
 
          if test "$cross_compiling" = yes; then :
19679
 
  lt_cv_dlopen_self_static=cross
19680
 
else
19681
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19682
 
  lt_status=$lt_dlunknown
19683
 
  cat > conftest.$ac_ext <<EOF
19684
 
#line 19684 "configure"
19685
 
#include "confdefs.h"
19686
 
 
19687
 
#if HAVE_DLFCN_H
19688
 
#include <dlfcn.h>
19689
 
#endif
19690
 
 
19691
 
#include <stdio.h>
19692
 
 
19693
 
#ifdef RTLD_GLOBAL
19694
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
19695
 
#else
19696
 
#  ifdef DL_GLOBAL
19697
 
#    define LT_DLGLOBAL         DL_GLOBAL
19698
 
#  else
19699
 
#    define LT_DLGLOBAL         0
19700
 
#  endif
19701
 
#endif
19702
 
 
19703
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19704
 
   find out it does not work in some platform. */
19705
 
#ifndef LT_DLLAZY_OR_NOW
19706
 
#  ifdef RTLD_LAZY
19707
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19708
 
#  else
19709
 
#    ifdef DL_LAZY
19710
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
19711
 
#    else
19712
 
#      ifdef RTLD_NOW
19713
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
19714
 
#      else
19715
 
#        ifdef DL_NOW
19716
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
19717
 
#        else
19718
 
#          define LT_DLLAZY_OR_NOW      0
19719
 
#        endif
19720
 
#      endif
19721
 
#    endif
19722
 
#  endif
19723
 
#endif
19724
 
 
19725
 
#ifdef __cplusplus
19726
 
extern "C" void exit (int);
19727
 
#endif
19728
 
 
19729
 
void fnord() { int i=42;}
19730
 
int main ()
19731
 
{
19732
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19733
 
  int status = $lt_dlunknown;
19734
 
 
19735
 
  if (self)
19736
 
    {
19737
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19738
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19739
 
      /* dlclose (self); */
19740
 
    }
19741
 
 
19742
 
    exit (status);
19743
 
}
19744
 
EOF
19745
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19746
 
  (eval $ac_link) 2>&5
19747
 
  ac_status=$?
19748
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19750
 
    (./conftest; exit; ) 2>/dev/null
19751
 
    lt_status=$?
19752
 
    case x$lt_status in
19753
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19754
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19755
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19756
 
    esac
19757
 
  else :
19758
 
    # compilation failed
19759
 
    lt_cv_dlopen_self_static=no
19760
 
  fi
19761
 
fi
19762
 
rm -fr conftest*
19763
 
 
19764
 
 
19765
 
fi
19766
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19767
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19768
 
    fi
19769
 
 
19770
 
    CPPFLAGS="$save_CPPFLAGS"
19771
 
    LDFLAGS="$save_LDFLAGS"
19772
 
    LIBS="$save_LIBS"
19773
 
    ;;
19774
 
  esac
19775
 
 
19776
 
  case $lt_cv_dlopen_self in
19777
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19778
 
  *) enable_dlopen_self=unknown ;;
19779
 
  esac
19780
 
 
19781
 
  case $lt_cv_dlopen_self_static in
19782
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19783
 
  *) enable_dlopen_self_static=unknown ;;
19784
 
  esac
19785
 
fi
19786
 
 
19787
 
 
19788
 
# The else clause should only fire when bootstrapping the
19789
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
19790
 
# with your package, and you will get complaints that there are
19791
 
# no rules to generate ltmain.sh.
19792
 
if test -f "$ltmain"; then
19793
 
  # See if we are running on zsh, and set the options which allow our commands through
19794
 
  # without removal of \ escapes.
19795
 
  if test -n "${ZSH_VERSION+set}" ; then
19796
 
    setopt NO_GLOB_SUBST
19797
 
  fi
19798
 
  # Now quote all the things that may contain metacharacters while being
19799
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19800
 
  # variables and quote the copies for generation of the libtool script.
19801
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19802
 
    SED SHELL STRIP \
19803
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19804
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19805
 
    deplibs_check_method reload_flag reload_cmds need_locks \
19806
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19807
 
    lt_cv_sys_global_symbol_to_c_name_address \
19808
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19809
 
    old_postinstall_cmds old_postuninstall_cmds \
19810
 
    compiler_GCJ \
19811
 
    CC_GCJ \
19812
 
    LD_GCJ \
19813
 
    lt_prog_compiler_wl_GCJ \
19814
 
    lt_prog_compiler_pic_GCJ \
19815
 
    lt_prog_compiler_static_GCJ \
19816
 
    lt_prog_compiler_no_builtin_flag_GCJ \
19817
 
    export_dynamic_flag_spec_GCJ \
19818
 
    thread_safe_flag_spec_GCJ \
19819
 
    whole_archive_flag_spec_GCJ \
19820
 
    enable_shared_with_static_runtimes_GCJ \
19821
 
    old_archive_cmds_GCJ \
19822
 
    old_archive_from_new_cmds_GCJ \
19823
 
    predep_objects_GCJ \
19824
 
    postdep_objects_GCJ \
19825
 
    predeps_GCJ \
19826
 
    postdeps_GCJ \
19827
 
    compiler_lib_search_path_GCJ \
19828
 
    archive_cmds_GCJ \
19829
 
    archive_expsym_cmds_GCJ \
19830
 
    postinstall_cmds_GCJ \
19831
 
    postuninstall_cmds_GCJ \
19832
 
    old_archive_from_expsyms_cmds_GCJ \
19833
 
    allow_undefined_flag_GCJ \
19834
 
    no_undefined_flag_GCJ \
19835
 
    export_symbols_cmds_GCJ \
19836
 
    hardcode_libdir_flag_spec_GCJ \
19837
 
    hardcode_libdir_flag_spec_ld_GCJ \
19838
 
    hardcode_libdir_separator_GCJ \
19839
 
    hardcode_automatic_GCJ \
19840
 
    module_cmds_GCJ \
19841
 
    module_expsym_cmds_GCJ \
19842
 
    lt_cv_prog_compiler_c_o_GCJ \
19843
 
    exclude_expsyms_GCJ \
19844
 
    include_expsyms_GCJ; do
19845
 
 
19846
 
    case $var in
19847
 
    old_archive_cmds_GCJ | \
19848
 
    old_archive_from_new_cmds_GCJ | \
19849
 
    archive_cmds_GCJ | \
19850
 
    archive_expsym_cmds_GCJ | \
19851
 
    module_cmds_GCJ | \
19852
 
    module_expsym_cmds_GCJ | \
19853
 
    old_archive_from_expsyms_cmds_GCJ | \
19854
 
    export_symbols_cmds_GCJ | \
19855
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19856
 
    postinstall_cmds | postuninstall_cmds | \
19857
 
    old_postinstall_cmds | old_postuninstall_cmds | \
19858
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19859
 
      # Double-quote double-evaled strings.
19860
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19861
 
      ;;
19862
 
    *)
19863
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19864
 
      ;;
19865
 
    esac
19866
 
  done
19867
 
 
19868
 
  case $lt_echo in
19869
 
  *'\$0 --fallback-echo"')
19870
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19871
 
    ;;
19872
 
  esac
19873
 
 
19874
 
cfgfile="$ofile"
19875
 
 
19876
 
  cat <<__EOF__ >> "$cfgfile"
19877
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19878
 
 
19879
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19880
 
 
19881
 
# Shell to use when invoking shell scripts.
19882
 
SHELL=$lt_SHELL
19883
 
 
19884
 
# Whether or not to build shared libraries.
19885
 
build_libtool_libs=$enable_shared
19886
 
 
19887
 
# Whether or not to build static libraries.
19888
 
build_old_libs=$enable_static
19889
 
 
19890
 
# Whether or not to add -lc for building shared libraries.
19891
 
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19892
 
 
19893
 
# Whether or not to disallow shared libs when runtime libs are static
19894
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19895
 
 
19896
 
# Whether or not to optimize for fast installation.
19897
 
fast_install=$enable_fast_install
19898
 
 
19899
 
# The host system.
19900
 
host_alias=$host_alias
19901
 
host=$host
19902
 
 
19903
 
# An echo program that does not interpret backslashes.
19904
 
echo=$lt_echo
19905
 
 
19906
 
# The archiver.
19907
 
AR=$lt_AR
19908
 
AR_FLAGS=$lt_AR_FLAGS
19909
 
 
19910
 
# A C compiler.
19911
 
LTCC=$lt_LTCC
19912
 
 
19913
 
# A language-specific compiler.
19914
 
CC=$lt_compiler_GCJ
19915
 
 
19916
 
# Is the compiler the GNU C compiler?
19917
 
with_gcc=$GCC_GCJ
19918
 
 
19919
 
# An ERE matcher.
19920
 
EGREP=$lt_EGREP
19921
 
 
19922
 
# The linker used to build libraries.
19923
 
LD=$lt_LD_GCJ
19924
 
 
19925
 
# Whether we need hard or soft links.
19926
 
LN_S=$lt_LN_S
19927
 
 
19928
 
# A BSD-compatible nm program.
19929
 
NM=$lt_NM
19930
 
 
19931
 
# A symbol stripping program
19932
 
STRIP=$lt_STRIP
19933
 
 
19934
 
# Used to examine libraries when file_magic_cmd begins "file"
19935
 
MAGIC_CMD=$MAGIC_CMD
19936
 
 
19937
 
# Used on cygwin: DLL creation program.
19938
 
DLLTOOL="$DLLTOOL"
19939
 
 
19940
 
# Used on cygwin: object dumper.
19941
 
OBJDUMP="$OBJDUMP"
19942
 
 
19943
 
# Used on cygwin: assembler.
19944
 
AS="$AS"
19945
 
 
19946
 
# The name of the directory that contains temporary libtool files.
19947
 
objdir=$objdir
19948
 
 
19949
 
# How to create reloadable object files.
19950
 
reload_flag=$lt_reload_flag
19951
 
reload_cmds=$lt_reload_cmds
19952
 
 
19953
 
# How to pass a linker flag through the compiler.
19954
 
wl=$lt_lt_prog_compiler_wl_GCJ
19955
 
 
19956
 
# Object file suffix (normally "o").
19957
 
objext="$ac_objext"
19958
 
 
19959
 
# Old archive suffix (normally "a").
19960
 
libext="$libext"
19961
 
 
19962
 
# Shared library suffix (normally ".so").
19963
 
shrext_cmds='$shrext_cmds'
19964
 
 
19965
 
# Executable file suffix (normally "").
19966
 
exeext="$exeext"
19967
 
 
19968
 
# Additional compiler flags for building library objects.
19969
 
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19970
 
pic_mode=$pic_mode
19971
 
 
19972
 
# What is the maximum length of a command?
19973
 
max_cmd_len=$lt_cv_sys_max_cmd_len
19974
 
 
19975
 
# Does compiler simultaneously support -c and -o options?
19976
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19977
 
 
19978
 
# Must we lock files when doing compilation ?
19979
 
need_locks=$lt_need_locks
19980
 
 
19981
 
# Do we need the lib prefix for modules?
19982
 
need_lib_prefix=$need_lib_prefix
19983
 
 
19984
 
# Do we need a version for libraries?
19985
 
need_version=$need_version
19986
 
 
19987
 
# Whether dlopen is supported.
19988
 
dlopen_support=$enable_dlopen
19989
 
 
19990
 
# Whether dlopen of programs is supported.
19991
 
dlopen_self=$enable_dlopen_self
19992
 
 
19993
 
# Whether dlopen of statically linked programs is supported.
19994
 
dlopen_self_static=$enable_dlopen_self_static
19995
 
 
19996
 
# Compiler flag to prevent dynamic linking.
19997
 
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19998
 
 
19999
 
# Compiler flag to turn off builtin functions.
20000
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20001
 
 
20002
 
# Compiler flag to allow reflexive dlopens.
20003
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20004
 
 
20005
 
# Compiler flag to generate shared objects directly from archives.
20006
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20007
 
 
20008
 
# Compiler flag to generate thread-safe objects.
20009
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20010
 
 
20011
 
# Library versioning type.
20012
 
version_type=$version_type
20013
 
 
20014
 
# Format of library name prefix.
20015
 
libname_spec=$lt_libname_spec
20016
 
 
20017
 
# List of archive names.  First name is the real one, the rest are links.
20018
 
# The last name is the one that the linker finds with -lNAME.
20019
 
library_names_spec=$lt_library_names_spec
20020
 
 
20021
 
# The coded name of the library, if different from the real name.
20022
 
soname_spec=$lt_soname_spec
20023
 
 
20024
 
# Commands used to build and install an old-style archive.
20025
 
RANLIB=$lt_RANLIB
20026
 
old_archive_cmds=$lt_old_archive_cmds_GCJ
20027
 
old_postinstall_cmds=$lt_old_postinstall_cmds
20028
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20029
 
 
20030
 
# Create an old-style archive from a shared archive.
20031
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20032
 
 
20033
 
# Create a temporary old-style archive to link instead of a shared archive.
20034
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20035
 
 
20036
 
# Commands used to build and install a shared archive.
20037
 
archive_cmds=$lt_archive_cmds_GCJ
20038
 
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20039
 
postinstall_cmds=$lt_postinstall_cmds
20040
 
postuninstall_cmds=$lt_postuninstall_cmds
20041
 
 
20042
 
# Commands used to build a loadable module (assumed same as above if empty)
20043
 
module_cmds=$lt_module_cmds_GCJ
20044
 
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20045
 
 
20046
 
# Commands to strip libraries.
20047
 
old_striplib=$lt_old_striplib
20048
 
striplib=$lt_striplib
20049
 
 
20050
 
# Dependencies to place before the objects being linked to create a
20051
 
# shared library.
20052
 
predep_objects=$lt_predep_objects_GCJ
20053
 
 
20054
 
# Dependencies to place after the objects being linked to create a
20055
 
# shared library.
20056
 
postdep_objects=$lt_postdep_objects_GCJ
20057
 
 
20058
 
# Dependencies to place before the objects being linked to create a
20059
 
# shared library.
20060
 
predeps=$lt_predeps_GCJ
20061
 
 
20062
 
# Dependencies to place after the objects being linked to create a
20063
 
# shared library.
20064
 
postdeps=$lt_postdeps_GCJ
20065
 
 
20066
 
# The library search path used internally by the compiler when linking
20067
 
# a shared library.
20068
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20069
 
 
20070
 
# Method to check whether dependent libraries are shared objects.
20071
 
deplibs_check_method=$lt_deplibs_check_method
20072
 
 
20073
 
# Command to use when deplibs_check_method == file_magic.
20074
 
file_magic_cmd=$lt_file_magic_cmd
20075
 
 
20076
 
# Flag that allows shared libraries with undefined symbols to be built.
20077
 
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20078
 
 
20079
 
# Flag that forces no undefined symbols.
20080
 
no_undefined_flag=$lt_no_undefined_flag_GCJ
20081
 
 
20082
 
# Commands used to finish a libtool library installation in a directory.
20083
 
finish_cmds=$lt_finish_cmds
20084
 
 
20085
 
# Same as above, but a single script fragment to be evaled but not shown.
20086
 
finish_eval=$lt_finish_eval
20087
 
 
20088
 
# Take the output of nm and produce a listing of raw symbols and C names.
20089
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20090
 
 
20091
 
# Transform the output of nm in a proper C declaration
20092
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20093
 
 
20094
 
# Transform the output of nm in a C name address pair
20095
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20096
 
 
20097
 
# This is the shared library runtime path variable.
20098
 
runpath_var=$runpath_var
20099
 
 
20100
 
# This is the shared library path variable.
20101
 
shlibpath_var=$shlibpath_var
20102
 
 
20103
 
# Is shlibpath searched before the hard-coded library search path?
20104
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20105
 
 
20106
 
# How to hardcode a shared library path into an executable.
20107
 
hardcode_action=$hardcode_action_GCJ
20108
 
 
20109
 
# Whether we should hardcode library paths into libraries.
20110
 
hardcode_into_libs=$hardcode_into_libs
20111
 
 
20112
 
# Flag to hardcode \$libdir into a binary during linking.
20113
 
# This must work even if \$libdir does not exist.
20114
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20115
 
 
20116
 
# If ld is used when linking, flag to hardcode \$libdir into
20117
 
# a binary during linking. This must work even if \$libdir does
20118
 
# not exist.
20119
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20120
 
 
20121
 
# Whether we need a single -rpath flag with a separated argument.
20122
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20123
 
 
20124
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20125
 
# resulting binary.
20126
 
hardcode_direct=$hardcode_direct_GCJ
20127
 
 
20128
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20129
 
# resulting binary.
20130
 
hardcode_minus_L=$hardcode_minus_L_GCJ
20131
 
 
20132
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20133
 
# the resulting binary.
20134
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20135
 
 
20136
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
20137
 
# and all subsequent libraries and executables linked against it.
20138
 
hardcode_automatic=$hardcode_automatic_GCJ
20139
 
 
20140
 
# Variables whose values should be saved in libtool wrapper scripts and
20141
 
# restored at relink time.
20142
 
variables_saved_for_relink="$variables_saved_for_relink"
20143
 
 
20144
 
# Whether libtool must link a program against all its dependency libraries.
20145
 
link_all_deplibs=$link_all_deplibs_GCJ
20146
 
 
20147
 
# Compile-time system search path for libraries
20148
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20149
 
 
20150
 
# Run-time system search path for libraries
20151
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20152
 
 
20153
 
# Fix the shell variable \$srcfile for the compiler.
20154
 
fix_srcfile_path="$fix_srcfile_path_GCJ"
20155
 
 
20156
 
# Set to yes if exported symbols are required.
20157
 
always_export_symbols=$always_export_symbols_GCJ
20158
 
 
20159
 
# The commands to list exported symbols.
20160
 
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20161
 
 
20162
 
# The commands to extract the exported symbol list from a shared archive.
20163
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20164
 
 
20165
 
# Symbols that should not be listed in the preloaded symbols.
20166
 
exclude_expsyms=$lt_exclude_expsyms_GCJ
20167
 
 
20168
 
# Symbols that must always be exported.
20169
 
include_expsyms=$lt_include_expsyms_GCJ
20170
 
 
20171
 
# ### END LIBTOOL TAG CONFIG: $tagname
20172
 
 
20173
 
__EOF__
20174
 
 
20175
 
 
20176
 
else
20177
 
  # If there is no Makefile yet, we rely on a make rule to execute
20178
 
  # `config.status --recheck' to rerun these tests and create the
20179
 
  # libtool script then.
20180
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20181
 
  if test -f "$ltmain_in"; then
20182
 
    test -f Makefile && make "$ltmain"
20183
 
  fi
20184
 
fi
20185
 
 
20186
 
 
20187
 
ac_ext=c
20188
 
ac_cpp='$CPP $CPPFLAGS'
20189
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20190
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20191
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20192
 
 
20193
 
CC="$lt_save_CC"
20194
 
 
20195
 
        else
20196
 
          tagname=""
20197
 
        fi
20198
 
        ;;
20199
 
 
20200
 
      RC)
20201
 
 
20202
 
 
20203
 
 
20204
 
# Source file extension for RC test sources.
20205
 
ac_ext=rc
20206
 
 
20207
 
# Object file extension for compiled RC test sources.
20208
 
objext=o
20209
 
objext_RC=$objext
20210
 
 
20211
 
# Code to be used in simple compile tests
20212
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20213
 
 
20214
 
# Code to be used in simple link tests
20215
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
20216
 
 
20217
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20218
 
 
20219
 
# If no C compiler was specified, use CC.
20220
 
LTCC=${LTCC-"$CC"}
20221
 
 
20222
 
# Allow CC to be a program name with arguments.
20223
 
compiler=$CC
20224
 
 
20225
 
 
20226
 
# Allow CC to be a program name with arguments.
20227
 
lt_save_CC="$CC"
20228
 
CC=${RC-"windres"}
20229
 
compiler=$CC
20230
 
compiler_RC=$CC
20231
 
lt_cv_prog_compiler_c_o_RC=yes
20232
 
 
20233
 
# The else clause should only fire when bootstrapping the
20234
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
20235
 
# with your package, and you will get complaints that there are
20236
 
# no rules to generate ltmain.sh.
20237
 
if test -f "$ltmain"; then
20238
 
  # See if we are running on zsh, and set the options which allow our commands through
20239
 
  # without removal of \ escapes.
20240
 
  if test -n "${ZSH_VERSION+set}" ; then
20241
 
    setopt NO_GLOB_SUBST
20242
 
  fi
20243
 
  # Now quote all the things that may contain metacharacters while being
20244
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20245
 
  # variables and quote the copies for generation of the libtool script.
20246
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20247
 
    SED SHELL STRIP \
20248
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20249
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20250
 
    deplibs_check_method reload_flag reload_cmds need_locks \
20251
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20252
 
    lt_cv_sys_global_symbol_to_c_name_address \
20253
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20254
 
    old_postinstall_cmds old_postuninstall_cmds \
20255
 
    compiler_RC \
20256
 
    CC_RC \
20257
 
    LD_RC \
20258
 
    lt_prog_compiler_wl_RC \
20259
 
    lt_prog_compiler_pic_RC \
20260
 
    lt_prog_compiler_static_RC \
20261
 
    lt_prog_compiler_no_builtin_flag_RC \
20262
 
    export_dynamic_flag_spec_RC \
20263
 
    thread_safe_flag_spec_RC \
20264
 
    whole_archive_flag_spec_RC \
20265
 
    enable_shared_with_static_runtimes_RC \
20266
 
    old_archive_cmds_RC \
20267
 
    old_archive_from_new_cmds_RC \
20268
 
    predep_objects_RC \
20269
 
    postdep_objects_RC \
20270
 
    predeps_RC \
20271
 
    postdeps_RC \
20272
 
    compiler_lib_search_path_RC \
20273
 
    archive_cmds_RC \
20274
 
    archive_expsym_cmds_RC \
20275
 
    postinstall_cmds_RC \
20276
 
    postuninstall_cmds_RC \
20277
 
    old_archive_from_expsyms_cmds_RC \
20278
 
    allow_undefined_flag_RC \
20279
 
    no_undefined_flag_RC \
20280
 
    export_symbols_cmds_RC \
20281
 
    hardcode_libdir_flag_spec_RC \
20282
 
    hardcode_libdir_flag_spec_ld_RC \
20283
 
    hardcode_libdir_separator_RC \
20284
 
    hardcode_automatic_RC \
20285
 
    module_cmds_RC \
20286
 
    module_expsym_cmds_RC \
20287
 
    lt_cv_prog_compiler_c_o_RC \
20288
 
    exclude_expsyms_RC \
20289
 
    include_expsyms_RC; do
20290
 
 
20291
 
    case $var in
20292
 
    old_archive_cmds_RC | \
20293
 
    old_archive_from_new_cmds_RC | \
20294
 
    archive_cmds_RC | \
20295
 
    archive_expsym_cmds_RC | \
20296
 
    module_cmds_RC | \
20297
 
    module_expsym_cmds_RC | \
20298
 
    old_archive_from_expsyms_cmds_RC | \
20299
 
    export_symbols_cmds_RC | \
20300
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20301
 
    postinstall_cmds | postuninstall_cmds | \
20302
 
    old_postinstall_cmds | old_postuninstall_cmds | \
20303
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20304
 
      # Double-quote double-evaled strings.
20305
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20306
 
      ;;
20307
 
    *)
20308
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20309
 
      ;;
20310
 
    esac
20311
 
  done
20312
 
 
20313
 
  case $lt_echo in
20314
 
  *'\$0 --fallback-echo"')
20315
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20316
 
    ;;
20317
 
  esac
20318
 
 
20319
 
cfgfile="$ofile"
20320
 
 
20321
 
  cat <<__EOF__ >> "$cfgfile"
20322
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20323
 
 
20324
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20325
 
 
20326
 
# Shell to use when invoking shell scripts.
20327
 
SHELL=$lt_SHELL
20328
 
 
20329
 
# Whether or not to build shared libraries.
20330
 
build_libtool_libs=$enable_shared
20331
 
 
20332
 
# Whether or not to build static libraries.
20333
 
build_old_libs=$enable_static
20334
 
 
20335
 
# Whether or not to add -lc for building shared libraries.
20336
 
build_libtool_need_lc=$archive_cmds_need_lc_RC
20337
 
 
20338
 
# Whether or not to disallow shared libs when runtime libs are static
20339
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20340
 
 
20341
 
# Whether or not to optimize for fast installation.
20342
 
fast_install=$enable_fast_install
20343
 
 
20344
 
# The host system.
20345
 
host_alias=$host_alias
20346
 
host=$host
20347
 
 
20348
 
# An echo program that does not interpret backslashes.
20349
 
echo=$lt_echo
20350
 
 
20351
 
# The archiver.
20352
 
AR=$lt_AR
20353
 
AR_FLAGS=$lt_AR_FLAGS
20354
 
 
20355
 
# A C compiler.
20356
 
LTCC=$lt_LTCC
20357
 
 
20358
 
# A language-specific compiler.
20359
 
CC=$lt_compiler_RC
20360
 
 
20361
 
# Is the compiler the GNU C compiler?
20362
 
with_gcc=$GCC_RC
20363
 
 
20364
 
# An ERE matcher.
20365
 
EGREP=$lt_EGREP
20366
 
 
20367
 
# The linker used to build libraries.
20368
 
LD=$lt_LD_RC
20369
 
 
20370
 
# Whether we need hard or soft links.
20371
 
LN_S=$lt_LN_S
20372
 
 
20373
 
# A BSD-compatible nm program.
20374
 
NM=$lt_NM
20375
 
 
20376
 
# A symbol stripping program
20377
 
STRIP=$lt_STRIP
20378
 
 
20379
 
# Used to examine libraries when file_magic_cmd begins "file"
20380
 
MAGIC_CMD=$MAGIC_CMD
20381
 
 
20382
 
# Used on cygwin: DLL creation program.
20383
 
DLLTOOL="$DLLTOOL"
20384
 
 
20385
 
# Used on cygwin: object dumper.
20386
 
OBJDUMP="$OBJDUMP"
20387
 
 
20388
 
# Used on cygwin: assembler.
20389
 
AS="$AS"
20390
 
 
20391
 
# The name of the directory that contains temporary libtool files.
20392
 
objdir=$objdir
20393
 
 
20394
 
# How to create reloadable object files.
20395
 
reload_flag=$lt_reload_flag
20396
 
reload_cmds=$lt_reload_cmds
20397
 
 
20398
 
# How to pass a linker flag through the compiler.
20399
 
wl=$lt_lt_prog_compiler_wl_RC
20400
 
 
20401
 
# Object file suffix (normally "o").
20402
 
objext="$ac_objext"
20403
 
 
20404
 
# Old archive suffix (normally "a").
20405
 
libext="$libext"
20406
 
 
20407
 
# Shared library suffix (normally ".so").
20408
 
shrext_cmds='$shrext_cmds'
20409
 
 
20410
 
# Executable file suffix (normally "").
20411
 
exeext="$exeext"
20412
 
 
20413
 
# Additional compiler flags for building library objects.
20414
 
pic_flag=$lt_lt_prog_compiler_pic_RC
20415
 
pic_mode=$pic_mode
20416
 
 
20417
 
# What is the maximum length of a command?
20418
 
max_cmd_len=$lt_cv_sys_max_cmd_len
20419
 
 
20420
 
# Does compiler simultaneously support -c and -o options?
20421
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20422
 
 
20423
 
# Must we lock files when doing compilation ?
20424
 
need_locks=$lt_need_locks
20425
 
 
20426
 
# Do we need the lib prefix for modules?
20427
 
need_lib_prefix=$need_lib_prefix
20428
 
 
20429
 
# Do we need a version for libraries?
20430
 
need_version=$need_version
20431
 
 
20432
 
# Whether dlopen is supported.
20433
 
dlopen_support=$enable_dlopen
20434
 
 
20435
 
# Whether dlopen of programs is supported.
20436
 
dlopen_self=$enable_dlopen_self
20437
 
 
20438
 
# Whether dlopen of statically linked programs is supported.
20439
 
dlopen_self_static=$enable_dlopen_self_static
20440
 
 
20441
 
# Compiler flag to prevent dynamic linking.
20442
 
link_static_flag=$lt_lt_prog_compiler_static_RC
20443
 
 
20444
 
# Compiler flag to turn off builtin functions.
20445
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20446
 
 
20447
 
# Compiler flag to allow reflexive dlopens.
20448
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20449
 
 
20450
 
# Compiler flag to generate shared objects directly from archives.
20451
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20452
 
 
20453
 
# Compiler flag to generate thread-safe objects.
20454
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20455
 
 
20456
 
# Library versioning type.
20457
 
version_type=$version_type
20458
 
 
20459
 
# Format of library name prefix.
20460
 
libname_spec=$lt_libname_spec
20461
 
 
20462
 
# List of archive names.  First name is the real one, the rest are links.
20463
 
# The last name is the one that the linker finds with -lNAME.
20464
 
library_names_spec=$lt_library_names_spec
20465
 
 
20466
 
# The coded name of the library, if different from the real name.
20467
 
soname_spec=$lt_soname_spec
20468
 
 
20469
 
# Commands used to build and install an old-style archive.
20470
 
RANLIB=$lt_RANLIB
20471
 
old_archive_cmds=$lt_old_archive_cmds_RC
20472
 
old_postinstall_cmds=$lt_old_postinstall_cmds
20473
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20474
 
 
20475
 
# Create an old-style archive from a shared archive.
20476
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20477
 
 
20478
 
# Create a temporary old-style archive to link instead of a shared archive.
20479
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20480
 
 
20481
 
# Commands used to build and install a shared archive.
20482
 
archive_cmds=$lt_archive_cmds_RC
20483
 
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20484
 
postinstall_cmds=$lt_postinstall_cmds
20485
 
postuninstall_cmds=$lt_postuninstall_cmds
20486
 
 
20487
 
# Commands used to build a loadable module (assumed same as above if empty)
20488
 
module_cmds=$lt_module_cmds_RC
20489
 
module_expsym_cmds=$lt_module_expsym_cmds_RC
20490
 
 
20491
 
# Commands to strip libraries.
20492
 
old_striplib=$lt_old_striplib
20493
 
striplib=$lt_striplib
20494
 
 
20495
 
# Dependencies to place before the objects being linked to create a
20496
 
# shared library.
20497
 
predep_objects=$lt_predep_objects_RC
20498
 
 
20499
 
# Dependencies to place after the objects being linked to create a
20500
 
# shared library.
20501
 
postdep_objects=$lt_postdep_objects_RC
20502
 
 
20503
 
# Dependencies to place before the objects being linked to create a
20504
 
# shared library.
20505
 
predeps=$lt_predeps_RC
20506
 
 
20507
 
# Dependencies to place after the objects being linked to create a
20508
 
# shared library.
20509
 
postdeps=$lt_postdeps_RC
20510
 
 
20511
 
# The library search path used internally by the compiler when linking
20512
 
# a shared library.
20513
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20514
 
 
20515
 
# Method to check whether dependent libraries are shared objects.
20516
 
deplibs_check_method=$lt_deplibs_check_method
20517
 
 
20518
 
# Command to use when deplibs_check_method == file_magic.
20519
 
file_magic_cmd=$lt_file_magic_cmd
20520
 
 
20521
 
# Flag that allows shared libraries with undefined symbols to be built.
20522
 
allow_undefined_flag=$lt_allow_undefined_flag_RC
20523
 
 
20524
 
# Flag that forces no undefined symbols.
20525
 
no_undefined_flag=$lt_no_undefined_flag_RC
20526
 
 
20527
 
# Commands used to finish a libtool library installation in a directory.
20528
 
finish_cmds=$lt_finish_cmds
20529
 
 
20530
 
# Same as above, but a single script fragment to be evaled but not shown.
20531
 
finish_eval=$lt_finish_eval
20532
 
 
20533
 
# Take the output of nm and produce a listing of raw symbols and C names.
20534
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20535
 
 
20536
 
# Transform the output of nm in a proper C declaration
20537
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20538
 
 
20539
 
# Transform the output of nm in a C name address pair
20540
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20541
 
 
20542
 
# This is the shared library runtime path variable.
20543
 
runpath_var=$runpath_var
20544
 
 
20545
 
# This is the shared library path variable.
20546
 
shlibpath_var=$shlibpath_var
20547
 
 
20548
 
# Is shlibpath searched before the hard-coded library search path?
20549
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20550
 
 
20551
 
# How to hardcode a shared library path into an executable.
20552
 
hardcode_action=$hardcode_action_RC
20553
 
 
20554
 
# Whether we should hardcode library paths into libraries.
20555
 
hardcode_into_libs=$hardcode_into_libs
20556
 
 
20557
 
# Flag to hardcode \$libdir into a binary during linking.
20558
 
# This must work even if \$libdir does not exist.
20559
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20560
 
 
20561
 
# If ld is used when linking, flag to hardcode \$libdir into
20562
 
# a binary during linking. This must work even if \$libdir does
20563
 
# not exist.
20564
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20565
 
 
20566
 
# Whether we need a single -rpath flag with a separated argument.
20567
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20568
 
 
20569
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20570
 
# resulting binary.
20571
 
hardcode_direct=$hardcode_direct_RC
20572
 
 
20573
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20574
 
# resulting binary.
20575
 
hardcode_minus_L=$hardcode_minus_L_RC
20576
 
 
20577
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20578
 
# the resulting binary.
20579
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20580
 
 
20581
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
20582
 
# and all subsequent libraries and executables linked against it.
20583
 
hardcode_automatic=$hardcode_automatic_RC
20584
 
 
20585
 
# Variables whose values should be saved in libtool wrapper scripts and
20586
 
# restored at relink time.
20587
 
variables_saved_for_relink="$variables_saved_for_relink"
20588
 
 
20589
 
# Whether libtool must link a program against all its dependency libraries.
20590
 
link_all_deplibs=$link_all_deplibs_RC
20591
 
 
20592
 
# Compile-time system search path for libraries
20593
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20594
 
 
20595
 
# Run-time system search path for libraries
20596
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20597
 
 
20598
 
# Fix the shell variable \$srcfile for the compiler.
20599
 
fix_srcfile_path="$fix_srcfile_path_RC"
20600
 
 
20601
 
# Set to yes if exported symbols are required.
20602
 
always_export_symbols=$always_export_symbols_RC
20603
 
 
20604
 
# The commands to list exported symbols.
20605
 
export_symbols_cmds=$lt_export_symbols_cmds_RC
20606
 
 
20607
 
# The commands to extract the exported symbol list from a shared archive.
20608
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20609
 
 
20610
 
# Symbols that should not be listed in the preloaded symbols.
20611
 
exclude_expsyms=$lt_exclude_expsyms_RC
20612
 
 
20613
 
# Symbols that must always be exported.
20614
 
include_expsyms=$lt_include_expsyms_RC
20615
 
 
20616
 
# ### END LIBTOOL TAG CONFIG: $tagname
20617
 
 
20618
 
__EOF__
20619
 
 
20620
 
 
20621
 
else
20622
 
  # If there is no Makefile yet, we rely on a make rule to execute
20623
 
  # `config.status --recheck' to rerun these tests and create the
20624
 
  # libtool script then.
20625
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20626
 
  if test -f "$ltmain_in"; then
20627
 
    test -f Makefile && make "$ltmain"
20628
 
  fi
20629
 
fi
20630
 
 
20631
 
 
20632
 
ac_ext=c
20633
 
ac_cpp='$CPP $CPPFLAGS'
20634
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20635
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20636
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20637
 
 
20638
 
CC="$lt_save_CC"
20639
 
 
20640
 
        ;;
20641
 
 
20642
 
      *)
20643
 
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20644
 
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20645
 
   { (exit 1); exit 1; }; }
20646
 
        ;;
20647
 
      esac
20648
 
 
20649
 
      # Append the new tag name to the list of available tags.
20650
 
      if test -n "$tagname" ; then
20651
 
      available_tags="$available_tags $tagname"
20652
 
    fi
20653
 
    fi
20654
 
  done
20655
 
  IFS="$lt_save_ifs"
20656
 
 
20657
 
  # Now substitute the updated list of available tags.
20658
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20659
 
    mv -f "${ofile}T" "$ofile"
20660
 
    chmod +x "$ofile"
20661
 
  else
20662
 
    rm -f "${ofile}T"
20663
 
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20664
 
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20665
 
   { (exit 1); exit 1; }; }
20666
 
  fi
20667
 
fi
20668
 
 
20669
 
 
20670
 
 
20671
 
# This can be used to rebuild libtool when needed
20672
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20673
 
 
20674
 
# Always use our own libtool.
20675
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20676
 
 
20677
 
# Prevent multiple expansion
20678
 
 
20679
 
 
20680
 
 
20681
 
 
20682
 
 
20683
 
 
20684
 
 
20685
 
 
20686
 
 
20687
 
 
20688
 
 
20689
 
 
20690
 
 
20691
 
 
20692
 
 
20693
 
 
20694
 
 
20695
 
 
20696
 
 
20697
 
 
20698
 
 
20699
 
echo "$as_me:$LINENO: checking if we need -no-undefined" >&5
20700
 
echo $ECHO_N "checking if we need -no-undefined... $ECHO_C" >&6
20701
 
case $host in
20702
 
  *-*-cygwin | *-*-mingw* | *-*-pw32*)
20703
 
    need_no_undefined=yes
20704
 
    ;;
20705
 
  *)
20706
 
    need_no_undefined=no
20707
 
    ;;
20708
 
esac
20709
 
echo "$as_me:$LINENO: result: $need_no_undefined" >&5
20710
 
echo "${ECHO_T}$need_no_undefined" >&6
20711
 
 
20712
 
 
20713
 
if test x$need_no_undefined = xyes; then
20714
 
  NO_UNDEFINED_TRUE=
20715
 
  NO_UNDEFINED_FALSE='#'
20716
 
else
20717
 
  NO_UNDEFINED_TRUE='#'
20718
 
  NO_UNDEFINED_FALSE=
20719
 
fi
20720
 
 
20721
 
 
20722
 
echo "$as_me:$LINENO: checking if we need -mimpure-text" >&5
20723
 
echo $ECHO_N "checking if we need -mimpure-text... $ECHO_C" >&6
20724
 
case $host in
20725
 
  *-*-solaris2*)
20726
 
    if test "$GCC" = "yes"; then
20727
 
      mimpure="yes"
20728
 
    fi
20729
 
    ;;
20730
 
  *)
20731
 
    mimpure=no
20732
 
    ;;
20733
 
esac
20734
 
echo "$as_me:$LINENO: result: $mimpure" >&5
20735
 
echo "${ECHO_T}$mimpure" >&6
20736
 
 
20737
 
 
20738
 
if test x$mimpure = xyes; then
20739
 
  MIMPURE_TRUE=
20740
 
  MIMPURE_FALSE='#'
20741
 
else
20742
 
  MIMPURE_TRUE='#'
20743
 
  MIMPURE_FALSE=
20744
 
fi
20745
 
 
20746
 
 
20747
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20748
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
20749
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
20750
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20751
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20752
 
else
20753
 
  cat >conftest.make <<\_ACEOF
20754
 
all:
20755
 
        @echo 'ac_maketemp="$(MAKE)"'
20756
 
_ACEOF
20757
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20758
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
20759
 
if test -n "$ac_maketemp"; then
20760
 
  eval ac_cv_prog_make_${ac_make}_set=yes
20761
 
else
20762
 
  eval ac_cv_prog_make_${ac_make}_set=no
20763
 
fi
20764
 
rm -f conftest.make
20765
 
fi
20766
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20767
 
  echo "$as_me:$LINENO: result: yes" >&5
20768
 
echo "${ECHO_T}yes" >&6
20769
 
  SET_MAKE=
20770
 
else
20771
 
  echo "$as_me:$LINENO: result: no" >&5
20772
 
echo "${ECHO_T}no" >&6
20773
 
  SET_MAKE="MAKE=${MAKE-make}"
20774
 
fi
20775
 
 
20776
 
 
20777
 
echo "$as_me:$LINENO: checking whether to support http" >&5
20778
 
echo $ECHO_N "checking whether to support http... $ECHO_C" >&6
20779
 
# Check whether --enable-http or --disable-http was given.
20780
 
if test "${enable_http+set}" = set; then
20781
 
  enableval="$enable_http"
20782
 
   case "$enableval" in
20783
 
  no)
20784
 
       echo "$as_me:$LINENO: result: no" >&5
20785
 
echo "${ECHO_T}no" >&6
20786
 
 
20787
 
cat >>confdefs.h <<\_ACEOF
20788
 
#define CURL_DISABLE_HTTP 1
20789
 
_ACEOF
20790
 
 
20791
 
       { echo "$as_me:$LINENO: WARNING: disable HTTP disables FTP over proxy and GOPHER too" >&5
20792
 
echo "$as_me: WARNING: disable HTTP disables FTP over proxy and GOPHER too" >&2;}
20793
 
 
20794
 
cat >>confdefs.h <<\_ACEOF
20795
 
#define CURL_DISABLE_GOPHER 1
20796
 
_ACEOF
20797
 
 
20798
 
 
20799
 
 
20800
 
       ;;
20801
 
  *)   echo "$as_me:$LINENO: result: yes" >&5
20802
 
echo "${ECHO_T}yes" >&6
20803
 
       ;;
20804
 
  esac
20805
 
else
20806
 
  echo "$as_me:$LINENO: result: yes" >&5
20807
 
echo "${ECHO_T}yes" >&6
20808
 
 
20809
 
fi;
20810
 
echo "$as_me:$LINENO: checking whether to support ftp" >&5
20811
 
echo $ECHO_N "checking whether to support ftp... $ECHO_C" >&6
20812
 
# Check whether --enable-ftp or --disable-ftp was given.
20813
 
if test "${enable_ftp+set}" = set; then
20814
 
  enableval="$enable_ftp"
20815
 
   case "$enableval" in
20816
 
  no)
20817
 
       echo "$as_me:$LINENO: result: no" >&5
20818
 
echo "${ECHO_T}no" >&6
20819
 
 
20820
 
cat >>confdefs.h <<\_ACEOF
20821
 
#define CURL_DISABLE_FTP 1
20822
 
_ACEOF
20823
 
 
20824
 
 
20825
 
       ;;
20826
 
  *)   echo "$as_me:$LINENO: result: yes" >&5
20827
 
echo "${ECHO_T}yes" >&6
20828
 
       ;;
20829
 
  esac
20830
 
else
20831
 
  echo "$as_me:$LINENO: result: yes" >&5
20832
 
echo "${ECHO_T}yes" >&6
20833
 
 
20834
 
fi;
20835
 
echo "$as_me:$LINENO: checking whether to support gopher" >&5
20836
 
echo $ECHO_N "checking whether to support gopher... $ECHO_C" >&6
20837
 
# Check whether --enable-gopher or --disable-gopher was given.
20838
 
if test "${enable_gopher+set}" = set; then
20839
 
  enableval="$enable_gopher"
20840
 
   case "$enableval" in
20841
 
  no)
20842
 
       echo "$as_me:$LINENO: result: no" >&5
20843
 
echo "${ECHO_T}no" >&6
20844
 
 
20845
 
cat >>confdefs.h <<\_ACEOF
20846
 
#define CURL_DISABLE_GOPHER 1
20847
 
_ACEOF
20848
 
 
20849
 
 
20850
 
       ;;
20851
 
  *)   echo "$as_me:$LINENO: result: yes" >&5
20852
 
echo "${ECHO_T}yes" >&6
20853
 
       ;;
20854
 
  esac
20855
 
else
20856
 
  echo "$as_me:$LINENO: result: yes" >&5
20857
 
echo "${ECHO_T}yes" >&6
20858
 
 
20859
 
fi;
20860
 
echo "$as_me:$LINENO: checking whether to support file" >&5
20861
 
echo $ECHO_N "checking whether to support file... $ECHO_C" >&6
20862
 
# Check whether --enable-file or --disable-file was given.
20863
 
if test "${enable_file+set}" = set; then
20864
 
  enableval="$enable_file"
20865
 
   case "$enableval" in
20866
 
  no)
20867
 
       echo "$as_me:$LINENO: result: no" >&5
20868
 
echo "${ECHO_T}no" >&6
20869
 
 
20870
 
cat >>confdefs.h <<\_ACEOF
20871
 
#define CURL_DISABLE_FILE 1
20872
 
_ACEOF
20873
 
 
20874
 
 
20875
 
       ;;
20876
 
  *)   echo "$as_me:$LINENO: result: yes" >&5
20877
 
echo "${ECHO_T}yes" >&6
20878
 
       ;;
20879
 
  esac
20880
 
else
20881
 
  echo "$as_me:$LINENO: result: yes" >&5
20882
 
echo "${ECHO_T}yes" >&6
20883
 
 
20884
 
fi;
20885
 
echo "$as_me:$LINENO: checking whether to support ldap" >&5
20886
 
echo $ECHO_N "checking whether to support ldap... $ECHO_C" >&6
20887
 
# Check whether --enable-ldap or --disable-ldap was given.
20888
 
if test "${enable_ldap+set}" = set; then
20889
 
  enableval="$enable_ldap"
20890
 
   case "$enableval" in
20891
 
  no)
20892
 
       echo "$as_me:$LINENO: result: no" >&5
20893
 
echo "${ECHO_T}no" >&6
20894
 
 
20895
 
cat >>confdefs.h <<\_ACEOF
20896
 
#define CURL_DISABLE_LDAP 1
20897
 
_ACEOF
20898
 
 
20899
 
 
20900
 
       ;;
20901
 
  *)   echo "$as_me:$LINENO: result: yes" >&5
20902
 
echo "${ECHO_T}yes" >&6
20903
 
       ;;
20904
 
  esac
20905
 
else
20906
 
  echo "$as_me:$LINENO: result: yes" >&5
20907
 
echo "${ECHO_T}yes" >&6
20908
 
 
20909
 
fi;
20910
 
echo "$as_me:$LINENO: checking whether to support dict" >&5
20911
 
echo $ECHO_N "checking whether to support dict... $ECHO_C" >&6
20912
 
# Check whether --enable-dict or --disable-dict was given.
20913
 
if test "${enable_dict+set}" = set; then
20914
 
  enableval="$enable_dict"
20915
 
   case "$enableval" in
20916
 
  no)
20917
 
       echo "$as_me:$LINENO: result: no" >&5
20918
 
echo "${ECHO_T}no" >&6
20919
 
 
20920
 
cat >>confdefs.h <<\_ACEOF
20921
 
#define CURL_DISABLE_DICT 1
20922
 
_ACEOF
20923
 
 
20924
 
 
20925
 
       ;;
20926
 
  *)   echo "$as_me:$LINENO: result: yes" >&5
20927
 
echo "${ECHO_T}yes" >&6
20928
 
       ;;
20929
 
  esac
20930
 
else
20931
 
  echo "$as_me:$LINENO: result: yes" >&5
20932
 
echo "${ECHO_T}yes" >&6
20933
 
 
20934
 
fi;
20935
 
echo "$as_me:$LINENO: checking whether to support telnet" >&5
20936
 
echo $ECHO_N "checking whether to support telnet... $ECHO_C" >&6
20937
 
# Check whether --enable-telnet or --disable-telnet was given.
20938
 
if test "${enable_telnet+set}" = set; then
20939
 
  enableval="$enable_telnet"
20940
 
   case "$enableval" in
20941
 
  no)
20942
 
       echo "$as_me:$LINENO: result: no" >&5
20943
 
echo "${ECHO_T}no" >&6
20944
 
 
20945
 
cat >>confdefs.h <<\_ACEOF
20946
 
#define CURL_DISABLE_TELNET 1
20947
 
_ACEOF
20948
 
 
20949
 
 
20950
 
       ;;
20951
 
  *)   echo "$as_me:$LINENO: result: yes" >&5
20952
 
echo "${ECHO_T}yes" >&6
20953
 
       ;;
20954
 
  esac
20955
 
else
20956
 
  echo "$as_me:$LINENO: result: yes" >&5
20957
 
echo "${ECHO_T}yes" >&6
20958
 
 
20959
 
fi;
20960
 
 
20961
 
 
20962
 
echo "$as_me:$LINENO: checking whether to provide built-in manual" >&5
20963
 
echo $ECHO_N "checking whether to provide built-in manual... $ECHO_C" >&6
20964
 
# Check whether --enable-manual or --disable-manual was given.
20965
 
if test "${enable_manual+set}" = set; then
20966
 
  enableval="$enable_manual"
20967
 
   case "$enableval" in
20968
 
  no)
20969
 
       echo "$as_me:$LINENO: result: no" >&5
20970
 
echo "${ECHO_T}no" >&6
20971
 
       ;;
20972
 
  *)   echo "$as_me:$LINENO: result: yes" >&5
20973
 
echo "${ECHO_T}yes" >&6
20974
 
       USE_MANUAL="1"
20975
 
       ;;
20976
 
  esac
20977
 
else
20978
 
  echo "$as_me:$LINENO: result: yes" >&5
20979
 
echo "${ECHO_T}yes" >&6
20980
 
       USE_MANUAL="1"
20981
 
 
20982
 
fi;
20983
 
 
20984
 
 
20985
 
 
20986
 
echo "$as_me:$LINENO: checking for gethostbyname" >&5
20987
 
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
20988
 
if test "${ac_cv_func_gethostbyname+set}" = set; then
20989
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20990
 
else
20991
 
  cat >conftest.$ac_ext <<_ACEOF
20992
 
/* confdefs.h.  */
20993
 
_ACEOF
20994
 
cat confdefs.h >>conftest.$ac_ext
20995
 
cat >>conftest.$ac_ext <<_ACEOF
20996
 
/* end confdefs.h.  */
20997
 
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20998
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20999
 
#define gethostbyname innocuous_gethostbyname
21000
 
 
21001
 
/* System header to define __stub macros and hopefully few prototypes,
21002
 
    which can conflict with char gethostbyname (); below.
21003
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21004
 
    <limits.h> exists even on freestanding compilers.  */
21005
 
 
21006
 
#ifdef __STDC__
21007
 
# include <limits.h>
21008
 
#else
21009
 
# include <assert.h>
21010
 
#endif
21011
 
 
21012
 
#undef gethostbyname
21013
 
 
21014
 
/* Override any gcc2 internal prototype to avoid an error.  */
21015
 
#ifdef __cplusplus
21016
 
extern "C"
21017
 
{
21018
 
#endif
21019
 
/* We use char because int might match the return type of a gcc2
21020
 
   builtin and then its argument prototype would still apply.  */
21021
 
char gethostbyname ();
21022
 
/* The GNU C library defines this for functions which it implements
21023
 
    to always fail with ENOSYS.  Some functions are actually named
21024
 
    something starting with __ and the normal name is an alias.  */
21025
 
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21026
 
choke me
21027
 
#else
21028
 
char (*f) () = gethostbyname;
21029
 
#endif
21030
 
#ifdef __cplusplus
21031
 
}
21032
 
#endif
21033
 
 
21034
 
int
21035
 
main ()
21036
 
{
21037
 
return f != gethostbyname;
21038
 
  ;
21039
 
  return 0;
21040
 
}
21041
 
_ACEOF
21042
 
rm -f conftest.$ac_objext conftest$ac_exeext
21043
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21044
 
  (eval $ac_link) 2>conftest.er1
21045
 
  ac_status=$?
21046
 
  grep -v '^ *+' conftest.er1 >conftest.err
21047
 
  rm -f conftest.er1
21048
 
  cat conftest.err >&5
21049
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050
 
  (exit $ac_status); } &&
21051
 
         { ac_try='test -z "$ac_c_werror_flag"
21052
 
                         || test ! -s conftest.err'
21053
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054
 
  (eval $ac_try) 2>&5
21055
 
  ac_status=$?
21056
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057
 
  (exit $ac_status); }; } &&
21058
 
         { ac_try='test -s conftest$ac_exeext'
21059
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060
 
  (eval $ac_try) 2>&5
21061
 
  ac_status=$?
21062
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063
 
  (exit $ac_status); }; }; then
21064
 
  ac_cv_func_gethostbyname=yes
21065
 
else
21066
 
  echo "$as_me: failed program was:" >&5
21067
 
sed 's/^/| /' conftest.$ac_ext >&5
21068
 
 
21069
 
ac_cv_func_gethostbyname=no
21070
 
fi
21071
 
rm -f conftest.err conftest.$ac_objext \
21072
 
      conftest$ac_exeext conftest.$ac_ext
21073
 
fi
21074
 
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21075
 
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
21076
 
if test $ac_cv_func_gethostbyname = yes; then
21077
 
  HAVE_GETHOSTBYNAME="1"
21078
 
 
21079
 
else
21080
 
   echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21081
 
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21082
 
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21083
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21084
 
else
21085
 
  ac_check_lib_save_LIBS=$LIBS
21086
 
LIBS="-lnsl  $LIBS"
21087
 
cat >conftest.$ac_ext <<_ACEOF
21088
 
/* confdefs.h.  */
21089
 
_ACEOF
21090
 
cat confdefs.h >>conftest.$ac_ext
21091
 
cat >>conftest.$ac_ext <<_ACEOF
21092
 
/* end confdefs.h.  */
21093
 
 
21094
 
/* Override any gcc2 internal prototype to avoid an error.  */
21095
 
#ifdef __cplusplus
21096
 
extern "C"
21097
 
#endif
21098
 
/* We use char because int might match the return type of a gcc2
21099
 
   builtin and then its argument prototype would still apply.  */
21100
 
char gethostbyname ();
21101
 
int
21102
 
main ()
21103
 
{
21104
 
gethostbyname ();
21105
 
  ;
21106
 
  return 0;
21107
 
}
21108
 
_ACEOF
21109
 
rm -f conftest.$ac_objext conftest$ac_exeext
21110
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21111
 
  (eval $ac_link) 2>conftest.er1
21112
 
  ac_status=$?
21113
 
  grep -v '^ *+' conftest.er1 >conftest.err
21114
 
  rm -f conftest.er1
21115
 
  cat conftest.err >&5
21116
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117
 
  (exit $ac_status); } &&
21118
 
         { ac_try='test -z "$ac_c_werror_flag"
21119
 
                         || test ! -s conftest.err'
21120
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21121
 
  (eval $ac_try) 2>&5
21122
 
  ac_status=$?
21123
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124
 
  (exit $ac_status); }; } &&
21125
 
         { ac_try='test -s conftest$ac_exeext'
21126
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21127
 
  (eval $ac_try) 2>&5
21128
 
  ac_status=$?
21129
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130
 
  (exit $ac_status); }; }; then
21131
 
  ac_cv_lib_nsl_gethostbyname=yes
21132
 
else
21133
 
  echo "$as_me: failed program was:" >&5
21134
 
sed 's/^/| /' conftest.$ac_ext >&5
21135
 
 
21136
 
ac_cv_lib_nsl_gethostbyname=no
21137
 
fi
21138
 
rm -f conftest.err conftest.$ac_objext \
21139
 
      conftest$ac_exeext conftest.$ac_ext
21140
 
LIBS=$ac_check_lib_save_LIBS
21141
 
fi
21142
 
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21143
 
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21144
 
if test $ac_cv_lib_nsl_gethostbyname = yes; then
21145
 
  HAVE_GETHOSTBYNAME="1"
21146
 
                             LIBS="$LIBS -lnsl"
21147
 
 
21148
 
fi
21149
 
 
21150
 
 
21151
 
fi
21152
 
 
21153
 
 
21154
 
if test "$HAVE_GETHOSTBYNAME" != "1"
21155
 
then
21156
 
    echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
21157
 
echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
21158
 
if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
21159
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21160
 
else
21161
 
  ac_check_lib_save_LIBS=$LIBS
21162
 
LIBS="-lsocket  $LIBS"
21163
 
cat >conftest.$ac_ext <<_ACEOF
21164
 
/* confdefs.h.  */
21165
 
_ACEOF
21166
 
cat confdefs.h >>conftest.$ac_ext
21167
 
cat >>conftest.$ac_ext <<_ACEOF
21168
 
/* end confdefs.h.  */
21169
 
 
21170
 
/* Override any gcc2 internal prototype to avoid an error.  */
21171
 
#ifdef __cplusplus
21172
 
extern "C"
21173
 
#endif
21174
 
/* We use char because int might match the return type of a gcc2
21175
 
   builtin and then its argument prototype would still apply.  */
21176
 
char gethostbyname ();
21177
 
int
21178
 
main ()
21179
 
{
21180
 
gethostbyname ();
21181
 
  ;
21182
 
  return 0;
21183
 
}
21184
 
_ACEOF
21185
 
rm -f conftest.$ac_objext conftest$ac_exeext
21186
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21187
 
  (eval $ac_link) 2>conftest.er1
21188
 
  ac_status=$?
21189
 
  grep -v '^ *+' conftest.er1 >conftest.err
21190
 
  rm -f conftest.er1
21191
 
  cat conftest.err >&5
21192
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193
 
  (exit $ac_status); } &&
21194
 
         { ac_try='test -z "$ac_c_werror_flag"
21195
 
                         || test ! -s conftest.err'
21196
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197
 
  (eval $ac_try) 2>&5
21198
 
  ac_status=$?
21199
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200
 
  (exit $ac_status); }; } &&
21201
 
         { ac_try='test -s conftest$ac_exeext'
21202
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203
 
  (eval $ac_try) 2>&5
21204
 
  ac_status=$?
21205
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206
 
  (exit $ac_status); }; }; then
21207
 
  ac_cv_lib_socket_gethostbyname=yes
21208
 
else
21209
 
  echo "$as_me: failed program was:" >&5
21210
 
sed 's/^/| /' conftest.$ac_ext >&5
21211
 
 
21212
 
ac_cv_lib_socket_gethostbyname=no
21213
 
fi
21214
 
rm -f conftest.err conftest.$ac_objext \
21215
 
      conftest$ac_exeext conftest.$ac_ext
21216
 
LIBS=$ac_check_lib_save_LIBS
21217
 
fi
21218
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
21219
 
echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
21220
 
if test $ac_cv_lib_socket_gethostbyname = yes; then
21221
 
  HAVE_GETHOSTBYNAME="1"
21222
 
               LIBS="$LIBS -lsocket"
21223
 
 
21224
 
fi
21225
 
 
21226
 
fi
21227
 
 
21228
 
if test "$HAVE_GETHOSTBYNAME" != "1"
21229
 
then
21230
 
  echo "$as_me:$LINENO: checking trying gethostbyname with both nsl and socket libs" >&5
21231
 
echo $ECHO_N "checking trying gethostbyname with both nsl and socket libs... $ECHO_C" >&6
21232
 
  my_ac_save_LIBS=$LIBS
21233
 
  LIBS="-lnsl -lsocket $LIBS"
21234
 
  cat >conftest.$ac_ext <<_ACEOF
21235
 
/* confdefs.h.  */
21236
 
_ACEOF
21237
 
cat confdefs.h >>conftest.$ac_ext
21238
 
cat >>conftest.$ac_ext <<_ACEOF
21239
 
/* end confdefs.h.  */
21240
 
 
21241
 
int
21242
 
main ()
21243
 
{
21244
 
gethostbyname();
21245
 
  ;
21246
 
  return 0;
21247
 
}
21248
 
_ACEOF
21249
 
rm -f conftest.$ac_objext conftest$ac_exeext
21250
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21251
 
  (eval $ac_link) 2>conftest.er1
21252
 
  ac_status=$?
21253
 
  grep -v '^ *+' conftest.er1 >conftest.err
21254
 
  rm -f conftest.er1
21255
 
  cat conftest.err >&5
21256
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257
 
  (exit $ac_status); } &&
21258
 
         { ac_try='test -z "$ac_c_werror_flag"
21259
 
                         || test ! -s conftest.err'
21260
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261
 
  (eval $ac_try) 2>&5
21262
 
  ac_status=$?
21263
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264
 
  (exit $ac_status); }; } &&
21265
 
         { ac_try='test -s conftest$ac_exeext'
21266
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267
 
  (eval $ac_try) 2>&5
21268
 
  ac_status=$?
21269
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270
 
  (exit $ac_status); }; }; then
21271
 
                HAVE_GETHOSTBYNAME="1",
21272
 
             echo "$as_me:$LINENO: result: yes" >&5
21273
 
echo "${ECHO_T}yes" >&6
21274
 
else
21275
 
  echo "$as_me: failed program was:" >&5
21276
 
sed 's/^/| /' conftest.$ac_ext >&5
21277
 
 
21278
 
              echo "$as_me:$LINENO: result: no" >&5
21279
 
echo "${ECHO_T}no" >&6
21280
 
                          LIBS=$my_ac_save_LIBS
21281
 
 
21282
 
fi
21283
 
rm -f conftest.err conftest.$ac_objext \
21284
 
      conftest$ac_exeext conftest.$ac_ext
21285
 
fi
21286
 
 
21287
 
if test "$HAVE_GETHOSTBYNAME" != "1"
21288
 
then
21289
 
    echo "$as_me:$LINENO: checking for gethostbyname in ws2_32" >&5
21290
 
echo $ECHO_N "checking for gethostbyname in ws2_32... $ECHO_C" >&6
21291
 
  my_ac_save_LIBS=$LIBS
21292
 
  LIBS="-lws2_32 $LIBS"
21293
 
  cat >conftest.$ac_ext <<_ACEOF
21294
 
/* confdefs.h.  */
21295
 
_ACEOF
21296
 
cat confdefs.h >>conftest.$ac_ext
21297
 
cat >>conftest.$ac_ext <<_ACEOF
21298
 
/* end confdefs.h.  */
21299
 
#include <winsock2.h>
21300
 
int
21301
 
main ()
21302
 
{
21303
 
gethostbyname("www.dummysite.com");
21304
 
  ;
21305
 
  return 0;
21306
 
}
21307
 
_ACEOF
21308
 
rm -f conftest.$ac_objext conftest$ac_exeext
21309
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21310
 
  (eval $ac_link) 2>conftest.er1
21311
 
  ac_status=$?
21312
 
  grep -v '^ *+' conftest.er1 >conftest.err
21313
 
  rm -f conftest.er1
21314
 
  cat conftest.err >&5
21315
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316
 
  (exit $ac_status); } &&
21317
 
         { ac_try='test -z "$ac_c_werror_flag"
21318
 
                         || test ! -s conftest.err'
21319
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21320
 
  (eval $ac_try) 2>&5
21321
 
  ac_status=$?
21322
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323
 
  (exit $ac_status); }; } &&
21324
 
         { ac_try='test -s conftest$ac_exeext'
21325
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21326
 
  (eval $ac_try) 2>&5
21327
 
  ac_status=$?
21328
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329
 
  (exit $ac_status); }; }; then
21330
 
                  echo "$as_me:$LINENO: result: yes" >&5
21331
 
echo "${ECHO_T}yes" >&6
21332
 
               HAVE_GETHOSTBYNAME="1"
21333
 
else
21334
 
  echo "$as_me: failed program was:" >&5
21335
 
sed 's/^/| /' conftest.$ac_ext >&5
21336
 
 
21337
 
                LIBS=$my_ac_save_LIBS
21338
 
               echo "$as_me:$LINENO: result: no" >&5
21339
 
echo "${ECHO_T}no" >&6
21340
 
 
21341
 
fi
21342
 
rm -f conftest.err conftest.$ac_objext \
21343
 
      conftest$ac_exeext conftest.$ac_ext
21344
 
fi
21345
 
 
21346
 
if test "$HAVE_GETHOSTBYNAME" = "1"; then
21347
 
 
21348
 
cat >>confdefs.h <<\_ACEOF
21349
 
#define HAVE_GETHOSTBYNAME 1
21350
 
_ACEOF
21351
 
 
21352
 
else
21353
 
  { { echo "$as_me:$LINENO: error: couldn't find libraries for gethostbyname()" >&5
21354
 
echo "$as_me: error: couldn't find libraries for gethostbyname()" >&2;}
21355
 
   { (exit 1); exit 1; }; }
21356
 
fi
21357
 
 
21358
 
echo "$as_me:$LINENO: checking for strcasecmp" >&5
21359
 
echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
21360
 
if test "${ac_cv_func_strcasecmp+set}" = set; then
21361
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21362
 
else
21363
 
  cat >conftest.$ac_ext <<_ACEOF
21364
 
/* confdefs.h.  */
21365
 
_ACEOF
21366
 
cat confdefs.h >>conftest.$ac_ext
21367
 
cat >>conftest.$ac_ext <<_ACEOF
21368
 
/* end confdefs.h.  */
21369
 
/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
21370
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21371
 
#define strcasecmp innocuous_strcasecmp
21372
 
 
21373
 
/* System header to define __stub macros and hopefully few prototypes,
21374
 
    which can conflict with char strcasecmp (); below.
21375
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21376
 
    <limits.h> exists even on freestanding compilers.  */
21377
 
 
21378
 
#ifdef __STDC__
21379
 
# include <limits.h>
21380
 
#else
21381
 
# include <assert.h>
21382
 
#endif
21383
 
 
21384
 
#undef strcasecmp
21385
 
 
21386
 
/* Override any gcc2 internal prototype to avoid an error.  */
21387
 
#ifdef __cplusplus
21388
 
extern "C"
21389
 
{
21390
 
#endif
21391
 
/* We use char because int might match the return type of a gcc2
21392
 
   builtin and then its argument prototype would still apply.  */
21393
 
char strcasecmp ();
21394
 
/* The GNU C library defines this for functions which it implements
21395
 
    to always fail with ENOSYS.  Some functions are actually named
21396
 
    something starting with __ and the normal name is an alias.  */
21397
 
#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
21398
 
choke me
21399
 
#else
21400
 
char (*f) () = strcasecmp;
21401
 
#endif
21402
 
#ifdef __cplusplus
21403
 
}
21404
 
#endif
21405
 
 
21406
 
int
21407
 
main ()
21408
 
{
21409
 
return f != strcasecmp;
21410
 
  ;
21411
 
  return 0;
21412
 
}
21413
 
_ACEOF
21414
 
rm -f conftest.$ac_objext conftest$ac_exeext
21415
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21416
 
  (eval $ac_link) 2>conftest.er1
21417
 
  ac_status=$?
21418
 
  grep -v '^ *+' conftest.er1 >conftest.err
21419
 
  rm -f conftest.er1
21420
 
  cat conftest.err >&5
21421
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422
 
  (exit $ac_status); } &&
21423
 
         { ac_try='test -z "$ac_c_werror_flag"
21424
 
                         || test ! -s conftest.err'
21425
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426
 
  (eval $ac_try) 2>&5
21427
 
  ac_status=$?
21428
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429
 
  (exit $ac_status); }; } &&
21430
 
         { ac_try='test -s conftest$ac_exeext'
21431
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432
 
  (eval $ac_try) 2>&5
21433
 
  ac_status=$?
21434
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435
 
  (exit $ac_status); }; }; then
21436
 
  ac_cv_func_strcasecmp=yes
21437
 
else
21438
 
  echo "$as_me: failed program was:" >&5
21439
 
sed 's/^/| /' conftest.$ac_ext >&5
21440
 
 
21441
 
ac_cv_func_strcasecmp=no
21442
 
fi
21443
 
rm -f conftest.err conftest.$ac_objext \
21444
 
      conftest$ac_exeext conftest.$ac_ext
21445
 
fi
21446
 
echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
21447
 
echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
21448
 
if test $ac_cv_func_strcasecmp = yes; then
21449
 
  :
21450
 
else
21451
 
 
21452
 
echo "$as_me:$LINENO: checking for strcasecmp in -lresolve" >&5
21453
 
echo $ECHO_N "checking for strcasecmp in -lresolve... $ECHO_C" >&6
21454
 
if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then
21455
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21456
 
else
21457
 
  ac_check_lib_save_LIBS=$LIBS
21458
 
LIBS="-lresolve  $LIBS"
21459
 
cat >conftest.$ac_ext <<_ACEOF
21460
 
/* confdefs.h.  */
21461
 
_ACEOF
21462
 
cat confdefs.h >>conftest.$ac_ext
21463
 
cat >>conftest.$ac_ext <<_ACEOF
21464
 
/* end confdefs.h.  */
21465
 
 
21466
 
/* Override any gcc2 internal prototype to avoid an error.  */
21467
 
#ifdef __cplusplus
21468
 
extern "C"
21469
 
#endif
21470
 
/* We use char because int might match the return type of a gcc2
21471
 
   builtin and then its argument prototype would still apply.  */
21472
 
char strcasecmp ();
21473
 
int
21474
 
main ()
21475
 
{
21476
 
strcasecmp ();
21477
 
  ;
21478
 
  return 0;
21479
 
}
21480
 
_ACEOF
21481
 
rm -f conftest.$ac_objext conftest$ac_exeext
21482
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21483
 
  (eval $ac_link) 2>conftest.er1
21484
 
  ac_status=$?
21485
 
  grep -v '^ *+' conftest.er1 >conftest.err
21486
 
  rm -f conftest.er1
21487
 
  cat conftest.err >&5
21488
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489
 
  (exit $ac_status); } &&
21490
 
         { ac_try='test -z "$ac_c_werror_flag"
21491
 
                         || test ! -s conftest.err'
21492
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21493
 
  (eval $ac_try) 2>&5
21494
 
  ac_status=$?
21495
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496
 
  (exit $ac_status); }; } &&
21497
 
         { ac_try='test -s conftest$ac_exeext'
21498
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499
 
  (eval $ac_try) 2>&5
21500
 
  ac_status=$?
21501
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502
 
  (exit $ac_status); }; }; then
21503
 
  ac_cv_lib_resolve_strcasecmp=yes
21504
 
else
21505
 
  echo "$as_me: failed program was:" >&5
21506
 
sed 's/^/| /' conftest.$ac_ext >&5
21507
 
 
21508
 
ac_cv_lib_resolve_strcasecmp=no
21509
 
fi
21510
 
rm -f conftest.err conftest.$ac_objext \
21511
 
      conftest$ac_exeext conftest.$ac_ext
21512
 
LIBS=$ac_check_lib_save_LIBS
21513
 
fi
21514
 
echo "$as_me:$LINENO: result: $ac_cv_lib_resolve_strcasecmp" >&5
21515
 
echo "${ECHO_T}$ac_cv_lib_resolve_strcasecmp" >&6
21516
 
if test $ac_cv_lib_resolve_strcasecmp = yes; then
21517
 
  cat >>confdefs.h <<_ACEOF
21518
 
#define HAVE_LIBRESOLVE 1
21519
 
_ACEOF
21520
 
 
21521
 
  LIBS="-lresolve $LIBS"
21522
 
 
21523
 
fi
21524
 
 
21525
 
fi
21526
 
 
21527
 
 
21528
 
if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
21529
 
  echo "$as_me:$LINENO: checking for strcasecmp in -lresolve" >&5
21530
 
echo $ECHO_N "checking for strcasecmp in -lresolve... $ECHO_C" >&6
21531
 
if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then
21532
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21533
 
else
21534
 
  ac_check_lib_save_LIBS=$LIBS
21535
 
LIBS="-lresolve -lnsl $LIBS"
21536
 
cat >conftest.$ac_ext <<_ACEOF
21537
 
/* confdefs.h.  */
21538
 
_ACEOF
21539
 
cat confdefs.h >>conftest.$ac_ext
21540
 
cat >>conftest.$ac_ext <<_ACEOF
21541
 
/* end confdefs.h.  */
21542
 
 
21543
 
/* Override any gcc2 internal prototype to avoid an error.  */
21544
 
#ifdef __cplusplus
21545
 
extern "C"
21546
 
#endif
21547
 
/* We use char because int might match the return type of a gcc2
21548
 
   builtin and then its argument prototype would still apply.  */
21549
 
char strcasecmp ();
21550
 
int
21551
 
main ()
21552
 
{
21553
 
strcasecmp ();
21554
 
  ;
21555
 
  return 0;
21556
 
}
21557
 
_ACEOF
21558
 
rm -f conftest.$ac_objext conftest$ac_exeext
21559
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21560
 
  (eval $ac_link) 2>conftest.er1
21561
 
  ac_status=$?
21562
 
  grep -v '^ *+' conftest.er1 >conftest.err
21563
 
  rm -f conftest.er1
21564
 
  cat conftest.err >&5
21565
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566
 
  (exit $ac_status); } &&
21567
 
         { ac_try='test -z "$ac_c_werror_flag"
21568
 
                         || test ! -s conftest.err'
21569
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570
 
  (eval $ac_try) 2>&5
21571
 
  ac_status=$?
21572
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573
 
  (exit $ac_status); }; } &&
21574
 
         { ac_try='test -s conftest$ac_exeext'
21575
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576
 
  (eval $ac_try) 2>&5
21577
 
  ac_status=$?
21578
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579
 
  (exit $ac_status); }; }; then
21580
 
  ac_cv_lib_resolve_strcasecmp=yes
21581
 
else
21582
 
  echo "$as_me: failed program was:" >&5
21583
 
sed 's/^/| /' conftest.$ac_ext >&5
21584
 
 
21585
 
ac_cv_lib_resolve_strcasecmp=no
21586
 
fi
21587
 
rm -f conftest.err conftest.$ac_objext \
21588
 
      conftest$ac_exeext conftest.$ac_ext
21589
 
LIBS=$ac_check_lib_save_LIBS
21590
 
fi
21591
 
echo "$as_me:$LINENO: result: $ac_cv_lib_resolve_strcasecmp" >&5
21592
 
echo "${ECHO_T}$ac_cv_lib_resolve_strcasecmp" >&6
21593
 
if test $ac_cv_lib_resolve_strcasecmp = yes; then
21594
 
  LIBS="-lresolve $LIBS"
21595
 
fi
21596
 
 
21597
 
fi
21598
 
 
21599
 
echo "$as_me:$LINENO: checking for connect" >&5
21600
 
echo $ECHO_N "checking for connect... $ECHO_C" >&6
21601
 
if test "${ac_cv_func_connect+set}" = set; then
21602
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21603
 
else
21604
 
  cat >conftest.$ac_ext <<_ACEOF
21605
 
/* confdefs.h.  */
21606
 
_ACEOF
21607
 
cat confdefs.h >>conftest.$ac_ext
21608
 
cat >>conftest.$ac_ext <<_ACEOF
21609
 
/* end confdefs.h.  */
21610
 
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
21611
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21612
 
#define connect innocuous_connect
21613
 
 
21614
 
/* System header to define __stub macros and hopefully few prototypes,
21615
 
    which can conflict with char connect (); below.
21616
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21617
 
    <limits.h> exists even on freestanding compilers.  */
21618
 
 
21619
 
#ifdef __STDC__
21620
 
# include <limits.h>
21621
 
#else
21622
 
# include <assert.h>
21623
 
#endif
21624
 
 
21625
 
#undef connect
21626
 
 
21627
 
/* Override any gcc2 internal prototype to avoid an error.  */
21628
 
#ifdef __cplusplus
21629
 
extern "C"
21630
 
{
21631
 
#endif
21632
 
/* We use char because int might match the return type of a gcc2
21633
 
   builtin and then its argument prototype would still apply.  */
21634
 
char connect ();
21635
 
/* The GNU C library defines this for functions which it implements
21636
 
    to always fail with ENOSYS.  Some functions are actually named
21637
 
    something starting with __ and the normal name is an alias.  */
21638
 
#if defined (__stub_connect) || defined (__stub___connect)
21639
 
choke me
21640
 
#else
21641
 
char (*f) () = connect;
21642
 
#endif
21643
 
#ifdef __cplusplus
21644
 
}
21645
 
#endif
21646
 
 
21647
 
int
21648
 
main ()
21649
 
{
21650
 
return f != connect;
21651
 
  ;
21652
 
  return 0;
21653
 
}
21654
 
_ACEOF
21655
 
rm -f conftest.$ac_objext conftest$ac_exeext
21656
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21657
 
  (eval $ac_link) 2>conftest.er1
21658
 
  ac_status=$?
21659
 
  grep -v '^ *+' conftest.er1 >conftest.err
21660
 
  rm -f conftest.er1
21661
 
  cat conftest.err >&5
21662
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663
 
  (exit $ac_status); } &&
21664
 
         { ac_try='test -z "$ac_c_werror_flag"
21665
 
                         || test ! -s conftest.err'
21666
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21667
 
  (eval $ac_try) 2>&5
21668
 
  ac_status=$?
21669
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670
 
  (exit $ac_status); }; } &&
21671
 
         { ac_try='test -s conftest$ac_exeext'
21672
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21673
 
  (eval $ac_try) 2>&5
21674
 
  ac_status=$?
21675
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676
 
  (exit $ac_status); }; }; then
21677
 
  ac_cv_func_connect=yes
21678
 
else
21679
 
  echo "$as_me: failed program was:" >&5
21680
 
sed 's/^/| /' conftest.$ac_ext >&5
21681
 
 
21682
 
ac_cv_func_connect=no
21683
 
fi
21684
 
rm -f conftest.err conftest.$ac_objext \
21685
 
      conftest$ac_exeext conftest.$ac_ext
21686
 
fi
21687
 
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21688
 
echo "${ECHO_T}$ac_cv_func_connect" >&6
21689
 
if test $ac_cv_func_connect = yes; then
21690
 
  :
21691
 
else
21692
 
 
21693
 
echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21694
 
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21695
 
if test "${ac_cv_lib_socket_connect+set}" = set; then
21696
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21697
 
else
21698
 
  ac_check_lib_save_LIBS=$LIBS
21699
 
LIBS="-lsocket  $LIBS"
21700
 
cat >conftest.$ac_ext <<_ACEOF
21701
 
/* confdefs.h.  */
21702
 
_ACEOF
21703
 
cat confdefs.h >>conftest.$ac_ext
21704
 
cat >>conftest.$ac_ext <<_ACEOF
21705
 
/* end confdefs.h.  */
21706
 
 
21707
 
/* Override any gcc2 internal prototype to avoid an error.  */
21708
 
#ifdef __cplusplus
21709
 
extern "C"
21710
 
#endif
21711
 
/* We use char because int might match the return type of a gcc2
21712
 
   builtin and then its argument prototype would still apply.  */
21713
 
char connect ();
21714
 
int
21715
 
main ()
21716
 
{
21717
 
connect ();
21718
 
  ;
21719
 
  return 0;
21720
 
}
21721
 
_ACEOF
21722
 
rm -f conftest.$ac_objext conftest$ac_exeext
21723
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21724
 
  (eval $ac_link) 2>conftest.er1
21725
 
  ac_status=$?
21726
 
  grep -v '^ *+' conftest.er1 >conftest.err
21727
 
  rm -f conftest.er1
21728
 
  cat conftest.err >&5
21729
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730
 
  (exit $ac_status); } &&
21731
 
         { ac_try='test -z "$ac_c_werror_flag"
21732
 
                         || test ! -s conftest.err'
21733
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734
 
  (eval $ac_try) 2>&5
21735
 
  ac_status=$?
21736
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737
 
  (exit $ac_status); }; } &&
21738
 
         { ac_try='test -s conftest$ac_exeext'
21739
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740
 
  (eval $ac_try) 2>&5
21741
 
  ac_status=$?
21742
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743
 
  (exit $ac_status); }; }; then
21744
 
  ac_cv_lib_socket_connect=yes
21745
 
else
21746
 
  echo "$as_me: failed program was:" >&5
21747
 
sed 's/^/| /' conftest.$ac_ext >&5
21748
 
 
21749
 
ac_cv_lib_socket_connect=no
21750
 
fi
21751
 
rm -f conftest.err conftest.$ac_objext \
21752
 
      conftest$ac_exeext conftest.$ac_ext
21753
 
LIBS=$ac_check_lib_save_LIBS
21754
 
fi
21755
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21756
 
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21757
 
if test $ac_cv_lib_socket_connect = yes; then
21758
 
  cat >>confdefs.h <<_ACEOF
21759
 
#define HAVE_LIBSOCKET 1
21760
 
_ACEOF
21761
 
 
21762
 
  LIBS="-lsocket $LIBS"
21763
 
 
21764
 
fi
21765
 
 
21766
 
fi
21767
 
 
21768
 
 
21769
 
echo "$as_me:$LINENO: checking for dlclose" >&5
21770
 
echo $ECHO_N "checking for dlclose... $ECHO_C" >&6
21771
 
if test "${ac_cv_func_dlclose+set}" = set; then
21772
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21773
 
else
21774
 
  cat >conftest.$ac_ext <<_ACEOF
21775
 
/* confdefs.h.  */
21776
 
_ACEOF
21777
 
cat confdefs.h >>conftest.$ac_ext
21778
 
cat >>conftest.$ac_ext <<_ACEOF
21779
 
/* end confdefs.h.  */
21780
 
/* Define dlclose to an innocuous variant, in case <limits.h> declares dlclose.
21781
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21782
 
#define dlclose innocuous_dlclose
21783
 
 
21784
 
/* System header to define __stub macros and hopefully few prototypes,
21785
 
    which can conflict with char dlclose (); below.
21786
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21787
 
    <limits.h> exists even on freestanding compilers.  */
21788
 
 
21789
 
#ifdef __STDC__
21790
 
# include <limits.h>
21791
 
#else
21792
 
# include <assert.h>
21793
 
#endif
21794
 
 
21795
 
#undef dlclose
21796
 
 
21797
 
/* Override any gcc2 internal prototype to avoid an error.  */
21798
 
#ifdef __cplusplus
21799
 
extern "C"
21800
 
{
21801
 
#endif
21802
 
/* We use char because int might match the return type of a gcc2
21803
 
   builtin and then its argument prototype would still apply.  */
21804
 
char dlclose ();
21805
 
/* The GNU C library defines this for functions which it implements
21806
 
    to always fail with ENOSYS.  Some functions are actually named
21807
 
    something starting with __ and the normal name is an alias.  */
21808
 
#if defined (__stub_dlclose) || defined (__stub___dlclose)
21809
 
choke me
21810
 
#else
21811
 
char (*f) () = dlclose;
21812
 
#endif
21813
 
#ifdef __cplusplus
21814
 
}
21815
 
#endif
21816
 
 
21817
 
int
21818
 
main ()
21819
 
{
21820
 
return f != dlclose;
21821
 
  ;
21822
 
  return 0;
21823
 
}
21824
 
_ACEOF
21825
 
rm -f conftest.$ac_objext conftest$ac_exeext
21826
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21827
 
  (eval $ac_link) 2>conftest.er1
21828
 
  ac_status=$?
21829
 
  grep -v '^ *+' conftest.er1 >conftest.err
21830
 
  rm -f conftest.er1
21831
 
  cat conftest.err >&5
21832
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833
 
  (exit $ac_status); } &&
21834
 
         { ac_try='test -z "$ac_c_werror_flag"
21835
 
                         || test ! -s conftest.err'
21836
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21837
 
  (eval $ac_try) 2>&5
21838
 
  ac_status=$?
21839
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840
 
  (exit $ac_status); }; } &&
21841
 
         { ac_try='test -s conftest$ac_exeext'
21842
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21843
 
  (eval $ac_try) 2>&5
21844
 
  ac_status=$?
21845
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846
 
  (exit $ac_status); }; }; then
21847
 
  ac_cv_func_dlclose=yes
21848
 
else
21849
 
  echo "$as_me: failed program was:" >&5
21850
 
sed 's/^/| /' conftest.$ac_ext >&5
21851
 
 
21852
 
ac_cv_func_dlclose=no
21853
 
fi
21854
 
rm -f conftest.err conftest.$ac_objext \
21855
 
      conftest$ac_exeext conftest.$ac_ext
21856
 
fi
21857
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlclose" >&5
21858
 
echo "${ECHO_T}$ac_cv_func_dlclose" >&6
21859
 
if test $ac_cv_func_dlclose = yes; then
21860
 
  :
21861
 
else
21862
 
 
21863
 
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21864
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21865
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21866
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21867
 
else
21868
 
  ac_check_lib_save_LIBS=$LIBS
21869
 
LIBS="-ldl  $LIBS"
21870
 
cat >conftest.$ac_ext <<_ACEOF
21871
 
/* confdefs.h.  */
21872
 
_ACEOF
21873
 
cat confdefs.h >>conftest.$ac_ext
21874
 
cat >>conftest.$ac_ext <<_ACEOF
21875
 
/* end confdefs.h.  */
21876
 
 
21877
 
/* Override any gcc2 internal prototype to avoid an error.  */
21878
 
#ifdef __cplusplus
21879
 
extern "C"
21880
 
#endif
21881
 
/* We use char because int might match the return type of a gcc2
21882
 
   builtin and then its argument prototype would still apply.  */
21883
 
char dlopen ();
21884
 
int
21885
 
main ()
21886
 
{
21887
 
dlopen ();
21888
 
  ;
21889
 
  return 0;
21890
 
}
21891
 
_ACEOF
21892
 
rm -f conftest.$ac_objext conftest$ac_exeext
21893
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21894
 
  (eval $ac_link) 2>conftest.er1
21895
 
  ac_status=$?
21896
 
  grep -v '^ *+' conftest.er1 >conftest.err
21897
 
  rm -f conftest.er1
21898
 
  cat conftest.err >&5
21899
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900
 
  (exit $ac_status); } &&
21901
 
         { ac_try='test -z "$ac_c_werror_flag"
21902
 
                         || test ! -s conftest.err'
21903
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904
 
  (eval $ac_try) 2>&5
21905
 
  ac_status=$?
21906
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907
 
  (exit $ac_status); }; } &&
21908
 
         { ac_try='test -s conftest$ac_exeext'
21909
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21910
 
  (eval $ac_try) 2>&5
21911
 
  ac_status=$?
21912
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913
 
  (exit $ac_status); }; }; then
21914
 
  ac_cv_lib_dl_dlopen=yes
21915
 
else
21916
 
  echo "$as_me: failed program was:" >&5
21917
 
sed 's/^/| /' conftest.$ac_ext >&5
21918
 
 
21919
 
ac_cv_lib_dl_dlopen=no
21920
 
fi
21921
 
rm -f conftest.err conftest.$ac_objext \
21922
 
      conftest$ac_exeext conftest.$ac_ext
21923
 
LIBS=$ac_check_lib_save_LIBS
21924
 
fi
21925
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21926
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21927
 
if test $ac_cv_lib_dl_dlopen = yes; then
21928
 
  cat >>confdefs.h <<_ACEOF
21929
 
#define HAVE_LIBDL 1
21930
 
_ACEOF
21931
 
 
21932
 
  LIBS="-ldl $LIBS"
21933
 
 
21934
 
fi
21935
 
 
21936
 
fi
21937
 
 
21938
 
 
21939
 
echo "$as_me:$LINENO: checking whether to use libgcc" >&5
21940
 
echo $ECHO_N "checking whether to use libgcc... $ECHO_C" >&6
21941
 
# Check whether --enable-libgcc or --disable-libgcc was given.
21942
 
if test "${enable_libgcc+set}" = set; then
21943
 
  enableval="$enable_libgcc"
21944
 
   case "$enableval" in
21945
 
  yes)
21946
 
        LIBS="$LIBS -lgcc"
21947
 
       echo "$as_me:$LINENO: result: yes" >&5
21948
 
echo "${ECHO_T}yes" >&6
21949
 
       ;;
21950
 
  *)   echo "$as_me:$LINENO: result: no" >&5
21951
 
echo "${ECHO_T}no" >&6
21952
 
       ;;
21953
 
  esac
21954
 
else
21955
 
  echo "$as_me:$LINENO: result: no" >&5
21956
 
echo "${ECHO_T}no" >&6
21957
 
 
21958
 
fi;
21959
 
 
21960
 
 
21961
 
echo "$as_me:$LINENO: checking for timeGetTime in winmm" >&5
21962
 
echo $ECHO_N "checking for timeGetTime in winmm... $ECHO_C" >&6
21963
 
my_ac_save_LIBS=$LIBS
21964
 
LIBS="-lwinmm $LIBS"
21965
 
cat >conftest.$ac_ext <<_ACEOF
21966
 
/* confdefs.h.  */
21967
 
_ACEOF
21968
 
cat confdefs.h >>conftest.$ac_ext
21969
 
cat >>conftest.$ac_ext <<_ACEOF
21970
 
/* end confdefs.h.  */
21971
 
#include <windef.h>
21972
 
             #include <mmsystem.h>
21973
 
 
21974
 
int
21975
 
main ()
21976
 
{
21977
 
timeGetTime();
21978
 
  ;
21979
 
  return 0;
21980
 
}
21981
 
_ACEOF
21982
 
rm -f conftest.$ac_objext conftest$ac_exeext
21983
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21984
 
  (eval $ac_link) 2>conftest.er1
21985
 
  ac_status=$?
21986
 
  grep -v '^ *+' conftest.er1 >conftest.err
21987
 
  rm -f conftest.er1
21988
 
  cat conftest.err >&5
21989
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990
 
  (exit $ac_status); } &&
21991
 
         { ac_try='test -z "$ac_c_werror_flag"
21992
 
                         || test ! -s conftest.err'
21993
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21994
 
  (eval $ac_try) 2>&5
21995
 
  ac_status=$?
21996
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997
 
  (exit $ac_status); }; } &&
21998
 
         { ac_try='test -s conftest$ac_exeext'
21999
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22000
 
  (eval $ac_try) 2>&5
22001
 
  ac_status=$?
22002
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003
 
  (exit $ac_status); }; }; then
22004
 
                echo "$as_me:$LINENO: result: yes" >&5
22005
 
echo "${ECHO_T}yes" >&6
22006
 
 
22007
 
else
22008
 
  echo "$as_me: failed program was:" >&5
22009
 
sed 's/^/| /' conftest.$ac_ext >&5
22010
 
 
22011
 
              LIBS=$my_ac_save_LIBS
22012
 
             echo "$as_me:$LINENO: result: no" >&5
22013
 
echo "${ECHO_T}no" >&6
22014
 
 
22015
 
fi
22016
 
rm -f conftest.err conftest.$ac_objext \
22017
 
      conftest$ac_exeext conftest.$ac_ext
22018
 
 
22019
 
 
22020
 
echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
22021
 
echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
22022
 
# Check whether --enable-ipv6 or --disable-ipv6 was given.
22023
 
if test "${enable_ipv6+set}" = set; then
22024
 
  enableval="$enable_ipv6"
22025
 
   case "$enableval" in
22026
 
  no)
22027
 
       echo "$as_me:$LINENO: result: no" >&5
22028
 
echo "${ECHO_T}no" >&6
22029
 
       ipv6=no
22030
 
       ;;
22031
 
  *)   echo "$as_me:$LINENO: result: yes" >&5
22032
 
echo "${ECHO_T}yes" >&6
22033
 
       ipv6=yes
22034
 
       ;;
22035
 
  esac
22036
 
else
22037
 
  if test "$cross_compiling" = yes; then
22038
 
  echo "$as_me:$LINENO: result: no" >&5
22039
 
echo "${ECHO_T}no" >&6
22040
 
  ipv6=no
22041
 
 
22042
 
else
22043
 
  cat >conftest.$ac_ext <<_ACEOF
22044
 
/* confdefs.h.  */
22045
 
_ACEOF
22046
 
cat confdefs.h >>conftest.$ac_ext
22047
 
cat >>conftest.$ac_ext <<_ACEOF
22048
 
/* end confdefs.h.  */
22049
 
 /* is AF_INET6 available? */
22050
 
#include <sys/types.h>
22051
 
#include <sys/socket.h>
22052
 
main()
22053
 
{
22054
 
 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
22055
 
   exit(1);
22056
 
 else
22057
 
   exit(0);
22058
 
}
22059
 
 
22060
 
_ACEOF
22061
 
rm -f conftest$ac_exeext
22062
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22063
 
  (eval $ac_link) 2>&5
22064
 
  ac_status=$?
22065
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22067
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22068
 
  (eval $ac_try) 2>&5
22069
 
  ac_status=$?
22070
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071
 
  (exit $ac_status); }; }; then
22072
 
  echo "$as_me:$LINENO: result: yes" >&5
22073
 
echo "${ECHO_T}yes" >&6
22074
 
  ipv6=yes
22075
 
else
22076
 
  echo "$as_me: program exited with status $ac_status" >&5
22077
 
echo "$as_me: failed program was:" >&5
22078
 
sed 's/^/| /' conftest.$ac_ext >&5
22079
 
 
22080
 
( exit $ac_status )
22081
 
echo "$as_me:$LINENO: result: no" >&5
22082
 
echo "${ECHO_T}no" >&6
22083
 
  ipv6=no
22084
 
fi
22085
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22086
 
fi
22087
 
fi;
22088
 
 
22089
 
if test "$ipv6" = "yes"; then
22090
 
 
22091
 
  echo "$as_me:$LINENO: checking for working getaddrinfo" >&5
22092
 
echo $ECHO_N "checking for working getaddrinfo... $ECHO_C" >&6
22093
 
if test "${ac_cv_working_getaddrinfo+set}" = set; then
22094
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22095
 
else
22096
 
 
22097
 
  if test "$cross_compiling" = yes; then
22098
 
 
22099
 
  ac_cv_working_getaddrinfo="yes"
22100
 
 
22101
 
else
22102
 
  cat >conftest.$ac_ext <<_ACEOF
22103
 
/* confdefs.h.  */
22104
 
_ACEOF
22105
 
cat confdefs.h >>conftest.$ac_ext
22106
 
cat >>conftest.$ac_ext <<_ACEOF
22107
 
/* end confdefs.h.  */
22108
 
 
22109
 
#include <netdb.h>
22110
 
#include <sys/types.h>
22111
 
#include <sys/socket.h>
22112
 
 
22113
 
int main(void)
22114
 
{
22115
 
    struct addrinfo hints, *ai;
22116
 
    int error;
22117
 
 
22118
 
    memset(&hints, 0, sizeof(hints));
22119
 
    hints.ai_family = AF_UNSPEC;
22120
 
    hints.ai_socktype = SOCK_STREAM;
22121
 
    error = getaddrinfo("127.0.0.1", "8080", &hints, &ai);
22122
 
    if (error) {
22123
 
        return 1;
22124
 
    }
22125
 
    return 0;
22126
 
}
22127
 
 
22128
 
_ACEOF
22129
 
rm -f conftest$ac_exeext
22130
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22131
 
  (eval $ac_link) 2>&5
22132
 
  ac_status=$?
22133
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22135
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22136
 
  (eval $ac_try) 2>&5
22137
 
  ac_status=$?
22138
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139
 
  (exit $ac_status); }; }; then
22140
 
 
22141
 
  ac_cv_working_getaddrinfo="yes"
22142
 
 
22143
 
else
22144
 
  echo "$as_me: program exited with status $ac_status" >&5
22145
 
echo "$as_me: failed program was:" >&5
22146
 
sed 's/^/| /' conftest.$ac_ext >&5
22147
 
 
22148
 
( exit $ac_status )
22149
 
 
22150
 
  ac_cv_working_getaddrinfo="no"
22151
 
 
22152
 
fi
22153
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22154
 
fi
22155
 
fi
22156
 
echo "$as_me:$LINENO: result: $ac_cv_working_getaddrinfo" >&5
22157
 
echo "${ECHO_T}$ac_cv_working_getaddrinfo" >&6
22158
 
if test "$ac_cv_working_getaddrinfo" = "yes"; then
22159
 
 
22160
 
cat >>confdefs.h <<\_ACEOF
22161
 
#define HAVE_GETADDRINFO 1
22162
 
_ACEOF
22163
 
 
22164
 
 
22165
 
cat >>confdefs.h <<\_ACEOF
22166
 
#define ENABLE_IPV6 1
22167
 
_ACEOF
22168
 
 
22169
 
 
22170
 
  IPV6_ENABLED=1
22171
 
 
22172
 
fi
22173
 
 
22174
 
 
22175
 
 
22176
 
  echo "$as_me:$LINENO: checking for working NI_WITHSCOPEID" >&5
22177
 
echo $ECHO_N "checking for working NI_WITHSCOPEID... $ECHO_C" >&6
22178
 
if test "${ac_cv_working_ni_withscopeid+set}" = set; then
22179
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22180
 
else
22181
 
 
22182
 
 
22183
 
 if test "$cross_compiling" = yes; then
22184
 
   ac_cv_working_ni_withscopeid="yes"
22185
 
 
22186
 
else
22187
 
  cat >conftest.$ac_ext <<_ACEOF
22188
 
 
22189
 
#include <stdio.h>
22190
 
#include <sys/types.h>
22191
 
#include <sys/socket.h>
22192
 
#include <netdb.h>
22193
 
int main()
22194
 
{
22195
 
#ifdef NI_WITHSCOPEID
22196
 
   struct sockaddr_storage ss;
22197
 
   int sslen = sizeof(ss);
22198
 
   int rc;
22199
 
   char hbuf[NI_MAXHOST];
22200
 
   int fd = socket(AF_INET6, SOCK_STREAM, 0);
22201
 
   if(fd < 0) {
22202
 
     perror("socket()");
22203
 
     return 1; /* couldn't create socket of either kind */
22204
 
   }
22205
 
 
22206
 
   rc = getsockname(fd, (struct sockaddr *)&ss, &sslen);
22207
 
   if(rc) {
22208
 
     perror("getsockname()");
22209
 
     return 2;
22210
 
   }
22211
 
 
22212
 
   rc = getnameinfo((struct sockaddr *)&ss, sslen, hbuf, sizeof(hbuf),
22213
 
                     NULL, 0,
22214
 
                     NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID);
22215
 
 
22216
 
   if(rc) {
22217
 
     printf("rc = %s\n", gai_strerror(rc));
22218
 
     return 3;
22219
 
   }
22220
 
 
22221
 
   return 0; /* everything works fine, use NI_WITHSCOPEID! */
22222
 
#else
22223
 
   return 4; /* we don't seem to have the definition, don't use it */
22224
 
#endif
22225
 
}
22226
 
 
22227
 
_ACEOF
22228
 
rm -f conftest$ac_exeext
22229
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22230
 
  (eval $ac_link) 2>&5
22231
 
  ac_status=$?
22232
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22234
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22235
 
  (eval $ac_try) 2>&5
22236
 
  ac_status=$?
22237
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238
 
  (exit $ac_status); }; }; then
22239
 
   ac_cv_working_ni_withscopeid="yes"
22240
 
else
22241
 
  echo "$as_me: program exited with status $ac_status" >&5
22242
 
echo "$as_me: failed program was:" >&5
22243
 
sed 's/^/| /' conftest.$ac_ext >&5
22244
 
 
22245
 
( exit $ac_status )
22246
 
 ac_cv_working_ni_withscopeid="no"
22247
 
fi
22248
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22249
 
fi
22250
 
 
22251
 
fi
22252
 
echo "$as_me:$LINENO: result: $ac_cv_working_ni_withscopeid" >&5
22253
 
echo "${ECHO_T}$ac_cv_working_ni_withscopeid" >&6
22254
 
if test "$ac_cv_working_ni_withscopeid" = "yes"; then
22255
 
 
22256
 
cat >>confdefs.h <<\_ACEOF
22257
 
#define HAVE_NI_WITHSCOPEID 1
22258
 
_ACEOF
22259
 
 
22260
 
fi
22261
 
 
22262
 
 
22263
 
fi
22264
 
 
22265
 
# Check whether --enable-nonblocking or --disable-nonblocking was given.
22266
 
if test "${enable_nonblocking+set}" = set; then
22267
 
  enableval="$enable_nonblocking"
22268
 
 
22269
 
  if test "$enableval" = "no" ; then
22270
 
    { echo "$as_me:$LINENO: WARNING: non-blocking sockets disabled" >&5
22271
 
echo "$as_me: WARNING: non-blocking sockets disabled" >&2;}
22272
 
 
22273
 
cat >>confdefs.h <<\_ACEOF
22274
 
#define HAVE_DISABLED_NONBLOCKING 1
22275
 
_ACEOF
22276
 
 
22277
 
  else
22278
 
 
22279
 
  echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
22280
 
echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6
22281
 
 
22282
 
  cat >conftest.$ac_ext <<_ACEOF
22283
 
/* confdefs.h.  */
22284
 
_ACEOF
22285
 
cat confdefs.h >>conftest.$ac_ext
22286
 
cat >>conftest.$ac_ext <<_ACEOF
22287
 
/* end confdefs.h.  */
22288
 
 
22289
 
/* headers for O_NONBLOCK test */
22290
 
#include <sys/types.h>
22291
 
#include <unistd.h>
22292
 
#include <fcntl.h>
22293
 
 
22294
 
int
22295
 
main ()
22296
 
{
22297
 
 
22298
 
/* try to compile O_NONBLOCK */
22299
 
 
22300
 
#if defined(sun) || defined(__sun__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
22301
 
# if defined(__SVR4) || defined(__srv4__)
22302
 
#  define PLATFORM_SOLARIS
22303
 
# else
22304
 
#  define PLATFORM_SUNOS4
22305
 
# endif
22306
 
#endif
22307
 
#if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX4)
22308
 
# define PLATFORM_AIX_V3
22309
 
#endif
22310
 
 
22311
 
#if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
22312
 
#error "O_NONBLOCK does not work on this platform"
22313
 
#endif
22314
 
  int socket;
22315
 
  int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
22316
 
 
22317
 
  ;
22318
 
  return 0;
22319
 
}
22320
 
_ACEOF
22321
 
rm -f conftest.$ac_objext
22322
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22323
 
  (eval $ac_compile) 2>conftest.er1
22324
 
  ac_status=$?
22325
 
  grep -v '^ *+' conftest.er1 >conftest.err
22326
 
  rm -f conftest.er1
22327
 
  cat conftest.err >&5
22328
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329
 
  (exit $ac_status); } &&
22330
 
         { ac_try='test -z "$ac_c_werror_flag"
22331
 
                         || test ! -s conftest.err'
22332
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22333
 
  (eval $ac_try) 2>&5
22334
 
  ac_status=$?
22335
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336
 
  (exit $ac_status); }; } &&
22337
 
         { ac_try='test -s conftest.$ac_objext'
22338
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22339
 
  (eval $ac_try) 2>&5
22340
 
  ac_status=$?
22341
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342
 
  (exit $ac_status); }; }; then
22343
 
 
22344
 
nonblock="O_NONBLOCK"
22345
 
 
22346
 
cat >>confdefs.h <<\_ACEOF
22347
 
#define HAVE_O_NONBLOCK 1
22348
 
_ACEOF
22349
 
 
22350
 
 
22351
 
else
22352
 
  echo "$as_me: failed program was:" >&5
22353
 
sed 's/^/| /' conftest.$ac_ext >&5
22354
 
 
22355
 
 
22356
 
 
22357
 
  cat >conftest.$ac_ext <<_ACEOF
22358
 
/* confdefs.h.  */
22359
 
_ACEOF
22360
 
cat confdefs.h >>conftest.$ac_ext
22361
 
cat >>conftest.$ac_ext <<_ACEOF
22362
 
/* end confdefs.h.  */
22363
 
 
22364
 
/* headers for FIONBIO test */
22365
 
#include <unistd.h>
22366
 
#include <stropts.h>
22367
 
 
22368
 
int
22369
 
main ()
22370
 
{
22371
 
 
22372
 
/* FIONBIO source test (old-style unix) */
22373
 
 int socket;
22374
 
 int flags = ioctl(socket, FIONBIO, &flags);
22375
 
 
22376
 
  ;
22377
 
  return 0;
22378
 
}
22379
 
_ACEOF
22380
 
rm -f conftest.$ac_objext
22381
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22382
 
  (eval $ac_compile) 2>conftest.er1
22383
 
  ac_status=$?
22384
 
  grep -v '^ *+' conftest.er1 >conftest.err
22385
 
  rm -f conftest.er1
22386
 
  cat conftest.err >&5
22387
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388
 
  (exit $ac_status); } &&
22389
 
         { ac_try='test -z "$ac_c_werror_flag"
22390
 
                         || test ! -s conftest.err'
22391
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392
 
  (eval $ac_try) 2>&5
22393
 
  ac_status=$?
22394
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395
 
  (exit $ac_status); }; } &&
22396
 
         { ac_try='test -s conftest.$ac_objext'
22397
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22398
 
  (eval $ac_try) 2>&5
22399
 
  ac_status=$?
22400
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401
 
  (exit $ac_status); }; }; then
22402
 
 
22403
 
nonblock="FIONBIO"
22404
 
 
22405
 
cat >>confdefs.h <<\_ACEOF
22406
 
#define HAVE_FIONBIO 1
22407
 
_ACEOF
22408
 
 
22409
 
 
22410
 
else
22411
 
  echo "$as_me: failed program was:" >&5
22412
 
sed 's/^/| /' conftest.$ac_ext >&5
22413
 
 
22414
 
 
22415
 
 
22416
 
  cat >conftest.$ac_ext <<_ACEOF
22417
 
/* confdefs.h.  */
22418
 
_ACEOF
22419
 
cat confdefs.h >>conftest.$ac_ext
22420
 
cat >>conftest.$ac_ext <<_ACEOF
22421
 
/* end confdefs.h.  */
22422
 
 
22423
 
/* headers for ioctlsocket test (cygwin?) */
22424
 
#include <windows.h>
22425
 
 
22426
 
int
22427
 
main ()
22428
 
{
22429
 
 
22430
 
/* ioctlsocket source code */
22431
 
 int socket;
22432
 
 unsigned long flags = ioctlsocket(socket, FIONBIO, &flags);
22433
 
 
22434
 
  ;
22435
 
  return 0;
22436
 
}
22437
 
_ACEOF
22438
 
rm -f conftest.$ac_objext
22439
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22440
 
  (eval $ac_compile) 2>conftest.er1
22441
 
  ac_status=$?
22442
 
  grep -v '^ *+' conftest.er1 >conftest.err
22443
 
  rm -f conftest.er1
22444
 
  cat conftest.err >&5
22445
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446
 
  (exit $ac_status); } &&
22447
 
         { ac_try='test -z "$ac_c_werror_flag"
22448
 
                         || test ! -s conftest.err'
22449
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450
 
  (eval $ac_try) 2>&5
22451
 
  ac_status=$?
22452
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453
 
  (exit $ac_status); }; } &&
22454
 
         { ac_try='test -s conftest.$ac_objext'
22455
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456
 
  (eval $ac_try) 2>&5
22457
 
  ac_status=$?
22458
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459
 
  (exit $ac_status); }; }; then
22460
 
 
22461
 
nonblock="ioctlsocket"
22462
 
 
22463
 
cat >>confdefs.h <<\_ACEOF
22464
 
#define HAVE_IOCTLSOCKET 1
22465
 
_ACEOF
22466
 
 
22467
 
 
22468
 
else
22469
 
  echo "$as_me: failed program was:" >&5
22470
 
sed 's/^/| /' conftest.$ac_ext >&5
22471
 
 
22472
 
 
22473
 
 
22474
 
  cat >conftest.$ac_ext <<_ACEOF
22475
 
/* confdefs.h.  */
22476
 
_ACEOF
22477
 
cat confdefs.h >>conftest.$ac_ext
22478
 
cat >>conftest.$ac_ext <<_ACEOF
22479
 
/* end confdefs.h.  */
22480
 
 
22481
 
/* headers for IoctlSocket test (Amiga?) */
22482
 
#include <sys/ioctl.h>
22483
 
 
22484
 
int
22485
 
main ()
22486
 
{
22487
 
 
22488
 
/* IoctlSocket source code */
22489
 
 int socket;
22490
 
 int flags = IoctlSocket(socket, FIONBIO, (long)1);
22491
 
 
22492
 
  ;
22493
 
  return 0;
22494
 
}
22495
 
_ACEOF
22496
 
rm -f conftest.$ac_objext conftest$ac_exeext
22497
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22498
 
  (eval $ac_link) 2>conftest.er1
22499
 
  ac_status=$?
22500
 
  grep -v '^ *+' conftest.er1 >conftest.err
22501
 
  rm -f conftest.er1
22502
 
  cat conftest.err >&5
22503
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504
 
  (exit $ac_status); } &&
22505
 
         { ac_try='test -z "$ac_c_werror_flag"
22506
 
                         || test ! -s conftest.err'
22507
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22508
 
  (eval $ac_try) 2>&5
22509
 
  ac_status=$?
22510
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511
 
  (exit $ac_status); }; } &&
22512
 
         { ac_try='test -s conftest$ac_exeext'
22513
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514
 
  (eval $ac_try) 2>&5
22515
 
  ac_status=$?
22516
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517
 
  (exit $ac_status); }; }; then
22518
 
 
22519
 
nonblock="IoctlSocket"
22520
 
 
22521
 
cat >>confdefs.h <<\_ACEOF
22522
 
#define HAVE_IOCTLSOCKET_CASE 1
22523
 
_ACEOF
22524
 
 
22525
 
 
22526
 
else
22527
 
  echo "$as_me: failed program was:" >&5
22528
 
sed 's/^/| /' conftest.$ac_ext >&5
22529
 
 
22530
 
 
22531
 
  cat >conftest.$ac_ext <<_ACEOF
22532
 
/* confdefs.h.  */
22533
 
_ACEOF
22534
 
cat confdefs.h >>conftest.$ac_ext
22535
 
cat >>conftest.$ac_ext <<_ACEOF
22536
 
/* end confdefs.h.  */
22537
 
 
22538
 
/* headers for SO_NONBLOCK test (BeOS) */
22539
 
#include <sys/types.h>
22540
 
#include <unistd.h>
22541
 
#include <fcntl.h>
22542
 
 
22543
 
int
22544
 
main ()
22545
 
{
22546
 
 
22547
 
/* SO_NONBLOCK source code */
22548
 
 long b = 1;
22549
 
 int socket;
22550
 
 int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
22551
 
 
22552
 
  ;
22553
 
  return 0;
22554
 
}
22555
 
_ACEOF
22556
 
rm -f conftest.$ac_objext
22557
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22558
 
  (eval $ac_compile) 2>conftest.er1
22559
 
  ac_status=$?
22560
 
  grep -v '^ *+' conftest.er1 >conftest.err
22561
 
  rm -f conftest.er1
22562
 
  cat conftest.err >&5
22563
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564
 
  (exit $ac_status); } &&
22565
 
         { ac_try='test -z "$ac_c_werror_flag"
22566
 
                         || test ! -s conftest.err'
22567
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22568
 
  (eval $ac_try) 2>&5
22569
 
  ac_status=$?
22570
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571
 
  (exit $ac_status); }; } &&
22572
 
         { ac_try='test -s conftest.$ac_objext'
22573
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574
 
  (eval $ac_try) 2>&5
22575
 
  ac_status=$?
22576
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577
 
  (exit $ac_status); }; }; then
22578
 
 
22579
 
nonblock="SO_NONBLOCK"
22580
 
 
22581
 
cat >>confdefs.h <<\_ACEOF
22582
 
#define HAVE_SO_NONBLOCK 1
22583
 
_ACEOF
22584
 
 
22585
 
 
22586
 
else
22587
 
  echo "$as_me: failed program was:" >&5
22588
 
sed 's/^/| /' conftest.$ac_ext >&5
22589
 
 
22590
 
 
22591
 
nonblock="nada"
22592
 
 
22593
 
cat >>confdefs.h <<\_ACEOF
22594
 
#define HAVE_DISABLED_NONBLOCKING 1
22595
 
_ACEOF
22596
 
 
22597
 
 
22598
 
fi
22599
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22600
 
 
22601
 
 
22602
 
fi
22603
 
rm -f conftest.err conftest.$ac_objext \
22604
 
      conftest$ac_exeext conftest.$ac_ext
22605
 
 
22606
 
 
22607
 
fi
22608
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22609
 
 
22610
 
 
22611
 
fi
22612
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22613
 
 
22614
 
 
22615
 
fi
22616
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22617
 
  echo "$as_me:$LINENO: result: $nonblock" >&5
22618
 
echo "${ECHO_T}$nonblock" >&6
22619
 
 
22620
 
  if test "$nonblock" = "nada"; then
22621
 
    { echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
22622
 
echo "$as_me: WARNING: non-block sockets disabled" >&2;}
22623
 
  fi
22624
 
 
22625
 
  fi
22626
 
 
22627
 
else
22628
 
 
22629
 
 
22630
 
  echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
22631
 
echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6
22632
 
 
22633
 
  cat >conftest.$ac_ext <<_ACEOF
22634
 
/* confdefs.h.  */
22635
 
_ACEOF
22636
 
cat confdefs.h >>conftest.$ac_ext
22637
 
cat >>conftest.$ac_ext <<_ACEOF
22638
 
/* end confdefs.h.  */
22639
 
 
22640
 
/* headers for O_NONBLOCK test */
22641
 
#include <sys/types.h>
22642
 
#include <unistd.h>
22643
 
#include <fcntl.h>
22644
 
 
22645
 
int
22646
 
main ()
22647
 
{
22648
 
 
22649
 
/* try to compile O_NONBLOCK */
22650
 
 
22651
 
#if defined(sun) || defined(__sun__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
22652
 
# if defined(__SVR4) || defined(__srv4__)
22653
 
#  define PLATFORM_SOLARIS
22654
 
# else
22655
 
#  define PLATFORM_SUNOS4
22656
 
# endif
22657
 
#endif
22658
 
#if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX4)
22659
 
# define PLATFORM_AIX_V3
22660
 
#endif
22661
 
 
22662
 
#if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
22663
 
#error "O_NONBLOCK does not work on this platform"
22664
 
#endif
22665
 
  int socket;
22666
 
  int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
22667
 
 
22668
 
  ;
22669
 
  return 0;
22670
 
}
22671
 
_ACEOF
22672
 
rm -f conftest.$ac_objext
22673
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22674
 
  (eval $ac_compile) 2>conftest.er1
22675
 
  ac_status=$?
22676
 
  grep -v '^ *+' conftest.er1 >conftest.err
22677
 
  rm -f conftest.er1
22678
 
  cat conftest.err >&5
22679
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680
 
  (exit $ac_status); } &&
22681
 
         { ac_try='test -z "$ac_c_werror_flag"
22682
 
                         || test ! -s conftest.err'
22683
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684
 
  (eval $ac_try) 2>&5
22685
 
  ac_status=$?
22686
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687
 
  (exit $ac_status); }; } &&
22688
 
         { ac_try='test -s conftest.$ac_objext'
22689
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22690
 
  (eval $ac_try) 2>&5
22691
 
  ac_status=$?
22692
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693
 
  (exit $ac_status); }; }; then
22694
 
 
22695
 
nonblock="O_NONBLOCK"
22696
 
 
22697
 
cat >>confdefs.h <<\_ACEOF
22698
 
#define HAVE_O_NONBLOCK 1
22699
 
_ACEOF
22700
 
 
22701
 
 
22702
 
else
22703
 
  echo "$as_me: failed program was:" >&5
22704
 
sed 's/^/| /' conftest.$ac_ext >&5
22705
 
 
22706
 
 
22707
 
 
22708
 
  cat >conftest.$ac_ext <<_ACEOF
22709
 
/* confdefs.h.  */
22710
 
_ACEOF
22711
 
cat confdefs.h >>conftest.$ac_ext
22712
 
cat >>conftest.$ac_ext <<_ACEOF
22713
 
/* end confdefs.h.  */
22714
 
 
22715
 
/* headers for FIONBIO test */
22716
 
#include <unistd.h>
22717
 
#include <stropts.h>
22718
 
 
22719
 
int
22720
 
main ()
22721
 
{
22722
 
 
22723
 
/* FIONBIO source test (old-style unix) */
22724
 
 int socket;
22725
 
 int flags = ioctl(socket, FIONBIO, &flags);
22726
 
 
22727
 
  ;
22728
 
  return 0;
22729
 
}
22730
 
_ACEOF
22731
 
rm -f conftest.$ac_objext
22732
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22733
 
  (eval $ac_compile) 2>conftest.er1
22734
 
  ac_status=$?
22735
 
  grep -v '^ *+' conftest.er1 >conftest.err
22736
 
  rm -f conftest.er1
22737
 
  cat conftest.err >&5
22738
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739
 
  (exit $ac_status); } &&
22740
 
         { ac_try='test -z "$ac_c_werror_flag"
22741
 
                         || test ! -s conftest.err'
22742
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22743
 
  (eval $ac_try) 2>&5
22744
 
  ac_status=$?
22745
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746
 
  (exit $ac_status); }; } &&
22747
 
         { ac_try='test -s conftest.$ac_objext'
22748
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22749
 
  (eval $ac_try) 2>&5
22750
 
  ac_status=$?
22751
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752
 
  (exit $ac_status); }; }; then
22753
 
 
22754
 
nonblock="FIONBIO"
22755
 
 
22756
 
cat >>confdefs.h <<\_ACEOF
22757
 
#define HAVE_FIONBIO 1
22758
 
_ACEOF
22759
 
 
22760
 
 
22761
 
else
22762
 
  echo "$as_me: failed program was:" >&5
22763
 
sed 's/^/| /' conftest.$ac_ext >&5
22764
 
 
22765
 
 
22766
 
 
22767
 
  cat >conftest.$ac_ext <<_ACEOF
22768
 
/* confdefs.h.  */
22769
 
_ACEOF
22770
 
cat confdefs.h >>conftest.$ac_ext
22771
 
cat >>conftest.$ac_ext <<_ACEOF
22772
 
/* end confdefs.h.  */
22773
 
 
22774
 
/* headers for ioctlsocket test (cygwin?) */
22775
 
#include <windows.h>
22776
 
 
22777
 
int
22778
 
main ()
22779
 
{
22780
 
 
22781
 
/* ioctlsocket source code */
22782
 
 int socket;
22783
 
 unsigned long flags = ioctlsocket(socket, FIONBIO, &flags);
22784
 
 
22785
 
  ;
22786
 
  return 0;
22787
 
}
22788
 
_ACEOF
22789
 
rm -f conftest.$ac_objext
22790
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22791
 
  (eval $ac_compile) 2>conftest.er1
22792
 
  ac_status=$?
22793
 
  grep -v '^ *+' conftest.er1 >conftest.err
22794
 
  rm -f conftest.er1
22795
 
  cat conftest.err >&5
22796
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797
 
  (exit $ac_status); } &&
22798
 
         { ac_try='test -z "$ac_c_werror_flag"
22799
 
                         || test ! -s conftest.err'
22800
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22801
 
  (eval $ac_try) 2>&5
22802
 
  ac_status=$?
22803
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804
 
  (exit $ac_status); }; } &&
22805
 
         { ac_try='test -s conftest.$ac_objext'
22806
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22807
 
  (eval $ac_try) 2>&5
22808
 
  ac_status=$?
22809
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810
 
  (exit $ac_status); }; }; then
22811
 
 
22812
 
nonblock="ioctlsocket"
22813
 
 
22814
 
cat >>confdefs.h <<\_ACEOF
22815
 
#define HAVE_IOCTLSOCKET 1
22816
 
_ACEOF
22817
 
 
22818
 
 
22819
 
else
22820
 
  echo "$as_me: failed program was:" >&5
22821
 
sed 's/^/| /' conftest.$ac_ext >&5
22822
 
 
22823
 
 
22824
 
 
22825
 
  cat >conftest.$ac_ext <<_ACEOF
22826
 
/* confdefs.h.  */
22827
 
_ACEOF
22828
 
cat confdefs.h >>conftest.$ac_ext
22829
 
cat >>conftest.$ac_ext <<_ACEOF
22830
 
/* end confdefs.h.  */
22831
 
 
22832
 
/* headers for IoctlSocket test (Amiga?) */
22833
 
#include <sys/ioctl.h>
22834
 
 
22835
 
int
22836
 
main ()
22837
 
{
22838
 
 
22839
 
/* IoctlSocket source code */
22840
 
 int socket;
22841
 
 int flags = IoctlSocket(socket, FIONBIO, (long)1);
22842
 
 
22843
 
  ;
22844
 
  return 0;
22845
 
}
22846
 
_ACEOF
22847
 
rm -f conftest.$ac_objext conftest$ac_exeext
22848
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22849
 
  (eval $ac_link) 2>conftest.er1
22850
 
  ac_status=$?
22851
 
  grep -v '^ *+' conftest.er1 >conftest.err
22852
 
  rm -f conftest.er1
22853
 
  cat conftest.err >&5
22854
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855
 
  (exit $ac_status); } &&
22856
 
         { ac_try='test -z "$ac_c_werror_flag"
22857
 
                         || test ! -s conftest.err'
22858
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22859
 
  (eval $ac_try) 2>&5
22860
 
  ac_status=$?
22861
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862
 
  (exit $ac_status); }; } &&
22863
 
         { ac_try='test -s conftest$ac_exeext'
22864
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22865
 
  (eval $ac_try) 2>&5
22866
 
  ac_status=$?
22867
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868
 
  (exit $ac_status); }; }; then
22869
 
 
22870
 
nonblock="IoctlSocket"
22871
 
 
22872
 
cat >>confdefs.h <<\_ACEOF
22873
 
#define HAVE_IOCTLSOCKET_CASE 1
22874
 
_ACEOF
22875
 
 
22876
 
 
22877
 
else
22878
 
  echo "$as_me: failed program was:" >&5
22879
 
sed 's/^/| /' conftest.$ac_ext >&5
22880
 
 
22881
 
 
22882
 
  cat >conftest.$ac_ext <<_ACEOF
22883
 
/* confdefs.h.  */
22884
 
_ACEOF
22885
 
cat confdefs.h >>conftest.$ac_ext
22886
 
cat >>conftest.$ac_ext <<_ACEOF
22887
 
/* end confdefs.h.  */
22888
 
 
22889
 
/* headers for SO_NONBLOCK test (BeOS) */
22890
 
#include <sys/types.h>
22891
 
#include <unistd.h>
22892
 
#include <fcntl.h>
22893
 
 
22894
 
int
22895
 
main ()
22896
 
{
22897
 
 
22898
 
/* SO_NONBLOCK source code */
22899
 
 long b = 1;
22900
 
 int socket;
22901
 
 int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
22902
 
 
22903
 
  ;
22904
 
  return 0;
22905
 
}
22906
 
_ACEOF
22907
 
rm -f conftest.$ac_objext
22908
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22909
 
  (eval $ac_compile) 2>conftest.er1
22910
 
  ac_status=$?
22911
 
  grep -v '^ *+' conftest.er1 >conftest.err
22912
 
  rm -f conftest.er1
22913
 
  cat conftest.err >&5
22914
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915
 
  (exit $ac_status); } &&
22916
 
         { ac_try='test -z "$ac_c_werror_flag"
22917
 
                         || test ! -s conftest.err'
22918
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22919
 
  (eval $ac_try) 2>&5
22920
 
  ac_status=$?
22921
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922
 
  (exit $ac_status); }; } &&
22923
 
         { ac_try='test -s conftest.$ac_objext'
22924
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925
 
  (eval $ac_try) 2>&5
22926
 
  ac_status=$?
22927
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928
 
  (exit $ac_status); }; }; then
22929
 
 
22930
 
nonblock="SO_NONBLOCK"
22931
 
 
22932
 
cat >>confdefs.h <<\_ACEOF
22933
 
#define HAVE_SO_NONBLOCK 1
22934
 
_ACEOF
22935
 
 
22936
 
 
22937
 
else
22938
 
  echo "$as_me: failed program was:" >&5
22939
 
sed 's/^/| /' conftest.$ac_ext >&5
22940
 
 
22941
 
 
22942
 
nonblock="nada"
22943
 
 
22944
 
cat >>confdefs.h <<\_ACEOF
22945
 
#define HAVE_DISABLED_NONBLOCKING 1
22946
 
_ACEOF
22947
 
 
22948
 
 
22949
 
fi
22950
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22951
 
 
22952
 
 
22953
 
fi
22954
 
rm -f conftest.err conftest.$ac_objext \
22955
 
      conftest$ac_exeext conftest.$ac_ext
22956
 
 
22957
 
 
22958
 
fi
22959
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22960
 
 
22961
 
 
22962
 
fi
22963
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22964
 
 
22965
 
 
22966
 
fi
22967
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22968
 
  echo "$as_me:$LINENO: result: $nonblock" >&5
22969
 
echo "${ECHO_T}$nonblock" >&6
22970
 
 
22971
 
  if test "$nonblock" = "nada"; then
22972
 
    { echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
22973
 
echo "$as_me: WARNING: non-block sockets disabled" >&2;}
22974
 
  fi
22975
 
 
22976
 
 
22977
 
fi;
22978
 
 
22979
 
 
22980
 
 
22981
 
# Check whether --with-egd-socket or --without-egd-socket was given.
22982
 
if test "${with_egd_socket+set}" = set; then
22983
 
  withval="$with_egd_socket"
22984
 
   EGD_SOCKET="$withval"
22985
 
 
22986
 
fi;
22987
 
if test -n "$EGD_SOCKET" ; then
22988
 
 
22989
 
cat >>confdefs.h <<_ACEOF
22990
 
#define EGD_SOCKET "$EGD_SOCKET"
22991
 
_ACEOF
22992
 
 
22993
 
fi
22994
 
 
22995
 
 
22996
 
# Check whether --with-random or --without-random was given.
22997
 
if test "${with_random+set}" = set; then
22998
 
  withval="$with_random"
22999
 
   RANDOM_FILE="$withval"
23000
 
else
23001
 
 
23002
 
                echo "$as_me:$LINENO: checking for \"/dev/urandom\"" >&5
23003
 
echo $ECHO_N "checking for \"/dev/urandom\"... $ECHO_C" >&6
23004
 
if test "${ac_cv_file___dev_urandom_+set}" = set; then
23005
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23006
 
else
23007
 
  test "$cross_compiling" = yes &&
23008
 
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23009
 
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23010
 
   { (exit 1); exit 1; }; }
23011
 
if test -r ""/dev/urandom""; then
23012
 
  ac_cv_file___dev_urandom_=yes
23013
 
else
23014
 
  ac_cv_file___dev_urandom_=no
23015
 
fi
23016
 
fi
23017
 
echo "$as_me:$LINENO: result: $ac_cv_file___dev_urandom_" >&5
23018
 
echo "${ECHO_T}$ac_cv_file___dev_urandom_" >&6
23019
 
if test $ac_cv_file___dev_urandom_ = yes; then
23020
 
   RANDOM_FILE="/dev/urandom"
23021
 
fi
23022
 
 
23023
 
 
23024
 
 
23025
 
fi;
23026
 
if test -n "$RANDOM_FILE" ; then
23027
 
 
23028
 
 
23029
 
cat >>confdefs.h <<_ACEOF
23030
 
#define RANDOM_FILE "$RANDOM_FILE"
23031
 
_ACEOF
23032
 
 
23033
 
fi
23034
 
 
23035
 
 
23036
 
echo "$as_me:$LINENO: checking if argv can be written to" >&5
23037
 
echo $ECHO_N "checking if argv can be written to... $ECHO_C" >&6
23038
 
if test "${curl_cv_writable_argv+set}" = set; then
23039
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23040
 
else
23041
 
 
23042
 
if test "$cross_compiling" = yes; then
23043
 
  curl_cv_writable_argv=cross
23044
 
else
23045
 
  cat >conftest.$ac_ext <<_ACEOF
23046
 
 
23047
 
int main(int argc, char ** argv) {
23048
 
        argv[0][0] = ' ';
23049
 
        return (argv[0][0] == ' ')?0:1;
23050
 
}
23051
 
 
23052
 
_ACEOF
23053
 
rm -f conftest$ac_exeext
23054
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23055
 
  (eval $ac_link) 2>&5
23056
 
  ac_status=$?
23057
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23059
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060
 
  (eval $ac_try) 2>&5
23061
 
  ac_status=$?
23062
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063
 
  (exit $ac_status); }; }; then
23064
 
  curl_cv_writable_argv=yes
23065
 
else
23066
 
  echo "$as_me: program exited with status $ac_status" >&5
23067
 
echo "$as_me: failed program was:" >&5
23068
 
sed 's/^/| /' conftest.$ac_ext >&5
23069
 
 
23070
 
( exit $ac_status )
23071
 
curl_cv_writable_argv=no
23072
 
fi
23073
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23074
 
fi
23075
 
 
23076
 
fi
23077
 
 
23078
 
case $curl_cv_writable_argv in
23079
 
yes)
23080
 
 
23081
 
cat >>confdefs.h <<\_ACEOF
23082
 
#define HAVE_WRITABLE_ARGV 1
23083
 
_ACEOF
23084
 
 
23085
 
        echo "$as_me:$LINENO: result: yes" >&5
23086
 
echo "${ECHO_T}yes" >&6
23087
 
        ;;
23088
 
no)
23089
 
        echo "$as_me:$LINENO: result: no" >&5
23090
 
echo "${ECHO_T}no" >&6
23091
 
        ;;
23092
 
*)
23093
 
        echo "$as_me:$LINENO: result: no" >&5
23094
 
echo "${ECHO_T}no" >&6
23095
 
        { echo "$as_me:$LINENO: WARNING: the previous check could not be made default was used" >&5
23096
 
echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
23097
 
        ;;
23098
 
esac
23099
 
 
23100
 
 
23101
 
 
23102
 
# Check whether --with-krb4-includes or --without-krb4-includes was given.
23103
 
if test "${with_krb4_includes+set}" = set; then
23104
 
  withval="$with_krb4_includes"
23105
 
 
23106
 
 CPPFLAGS="$CPPFLAGS -I$withval"
23107
 
 KRB4INC="$withval"
23108
 
 want_krb4=yes
23109
 
 
23110
 
fi;
23111
 
 
23112
 
 
23113
 
# Check whether --with-krb4-libs or --without-krb4-libs was given.
23114
 
if test "${with_krb4_libs+set}" = set; then
23115
 
  withval="$with_krb4_libs"
23116
 
 
23117
 
 LDFLAGS="$LDFLAGS -L$withval"
23118
 
 KRB4LIB="$withval"
23119
 
 want_krb4=yes
23120
 
 
23121
 
fi;
23122
 
 
23123
 
 
23124
 
OPT_KRB4=off
23125
 
 
23126
 
# Check whether --with-krb4 or --without-krb4 was given.
23127
 
if test "${with_krb4+set}" = set; then
23128
 
  withval="$with_krb4"
23129
 
 
23130
 
  OPT_KRB4="$withval"
23131
 
  if test X"$OPT_KRB4" != Xyes
23132
 
  then
23133
 
    LDFLAGS="$LDFLAGS -L$OPT_KRB4/lib$libsuff"
23134
 
    KRB4LIB="$OPT_KRB4/lib$libsuff"
23135
 
    CPPFLAGS="$CPPFLAGS -I$OPT_KRB4/include"
23136
 
    KRB4INC="$OPT_KRB4/include"
23137
 
  fi
23138
 
  want_krb4="yes"
23139
 
 
23140
 
fi;
23141
 
 
23142
 
echo "$as_me:$LINENO: checking if Kerberos4 support is requested" >&5
23143
 
echo $ECHO_N "checking if Kerberos4 support is requested... $ECHO_C" >&6
23144
 
 
23145
 
if test "$want_krb4" = yes
23146
 
then
23147
 
  if test "$ipv6" = "yes"; then
23148
 
    echo krb4 is not compatible with IPv6
23149
 
    exit 1
23150
 
  fi
23151
 
  echo "$as_me:$LINENO: result: yes" >&5
23152
 
echo "${ECHO_T}yes" >&6
23153
 
 
23154
 
 
23155
 
  echo "$as_me:$LINENO: checking where to look for Kerberos4" >&5
23156
 
echo $ECHO_N "checking where to look for Kerberos4... $ECHO_C" >&6
23157
 
  if test X"$OPT_KRB4" = Xyes
23158
 
  then
23159
 
    echo "$as_me:$LINENO: result: defaults" >&5
23160
 
echo "${ECHO_T}defaults" >&6
23161
 
  else
23162
 
    echo "$as_me:$LINENO: result: libs in $KRB4LIB, headers in $KRB4INC" >&5
23163
 
echo "${ECHO_T}libs in $KRB4LIB, headers in $KRB4INC" >&6
23164
 
  fi
23165
 
 
23166
 
    echo "$as_me:$LINENO: checking for des_pcbc_encrypt in -ldes" >&5
23167
 
echo $ECHO_N "checking for des_pcbc_encrypt in -ldes... $ECHO_C" >&6
23168
 
if test "${ac_cv_lib_des_des_pcbc_encrypt+set}" = set; then
23169
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23170
 
else
23171
 
  ac_check_lib_save_LIBS=$LIBS
23172
 
LIBS="-ldes  $LIBS"
23173
 
cat >conftest.$ac_ext <<_ACEOF
23174
 
/* confdefs.h.  */
23175
 
_ACEOF
23176
 
cat confdefs.h >>conftest.$ac_ext
23177
 
cat >>conftest.$ac_ext <<_ACEOF
23178
 
/* end confdefs.h.  */
23179
 
 
23180
 
/* Override any gcc2 internal prototype to avoid an error.  */
23181
 
#ifdef __cplusplus
23182
 
extern "C"
23183
 
#endif
23184
 
/* We use char because int might match the return type of a gcc2
23185
 
   builtin and then its argument prototype would still apply.  */
23186
 
char des_pcbc_encrypt ();
23187
 
int
23188
 
main ()
23189
 
{
23190
 
des_pcbc_encrypt ();
23191
 
  ;
23192
 
  return 0;
23193
 
}
23194
 
_ACEOF
23195
 
rm -f conftest.$ac_objext conftest$ac_exeext
23196
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23197
 
  (eval $ac_link) 2>conftest.er1
23198
 
  ac_status=$?
23199
 
  grep -v '^ *+' conftest.er1 >conftest.err
23200
 
  rm -f conftest.er1
23201
 
  cat conftest.err >&5
23202
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203
 
  (exit $ac_status); } &&
23204
 
         { ac_try='test -z "$ac_c_werror_flag"
23205
 
                         || test ! -s conftest.err'
23206
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23207
 
  (eval $ac_try) 2>&5
23208
 
  ac_status=$?
23209
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210
 
  (exit $ac_status); }; } &&
23211
 
         { ac_try='test -s conftest$ac_exeext'
23212
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23213
 
  (eval $ac_try) 2>&5
23214
 
  ac_status=$?
23215
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216
 
  (exit $ac_status); }; }; then
23217
 
  ac_cv_lib_des_des_pcbc_encrypt=yes
23218
 
else
23219
 
  echo "$as_me: failed program was:" >&5
23220
 
sed 's/^/| /' conftest.$ac_ext >&5
23221
 
 
23222
 
ac_cv_lib_des_des_pcbc_encrypt=no
23223
 
fi
23224
 
rm -f conftest.err conftest.$ac_objext \
23225
 
      conftest$ac_exeext conftest.$ac_ext
23226
 
LIBS=$ac_check_lib_save_LIBS
23227
 
fi
23228
 
echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_pcbc_encrypt" >&5
23229
 
echo "${ECHO_T}$ac_cv_lib_des_des_pcbc_encrypt" >&6
23230
 
if test $ac_cv_lib_des_des_pcbc_encrypt = yes; then
23231
 
 
23232
 
 
23233
 
for ac_header in des.h
23234
 
do
23235
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23236
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23237
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
23238
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23239
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23240
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23241
 
fi
23242
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23243
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23244
 
else
23245
 
  # Is the header compilable?
23246
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
23247
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23248
 
cat >conftest.$ac_ext <<_ACEOF
23249
 
/* confdefs.h.  */
23250
 
_ACEOF
23251
 
cat confdefs.h >>conftest.$ac_ext
23252
 
cat >>conftest.$ac_ext <<_ACEOF
23253
 
/* end confdefs.h.  */
23254
 
$ac_includes_default
23255
 
#include <$ac_header>
23256
 
_ACEOF
23257
 
rm -f conftest.$ac_objext
23258
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23259
 
  (eval $ac_compile) 2>conftest.er1
23260
 
  ac_status=$?
23261
 
  grep -v '^ *+' conftest.er1 >conftest.err
23262
 
  rm -f conftest.er1
23263
 
  cat conftest.err >&5
23264
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265
 
  (exit $ac_status); } &&
23266
 
         { ac_try='test -z "$ac_c_werror_flag"
23267
 
                         || test ! -s conftest.err'
23268
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23269
 
  (eval $ac_try) 2>&5
23270
 
  ac_status=$?
23271
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272
 
  (exit $ac_status); }; } &&
23273
 
         { ac_try='test -s conftest.$ac_objext'
23274
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275
 
  (eval $ac_try) 2>&5
23276
 
  ac_status=$?
23277
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278
 
  (exit $ac_status); }; }; then
23279
 
  ac_header_compiler=yes
23280
 
else
23281
 
  echo "$as_me: failed program was:" >&5
23282
 
sed 's/^/| /' conftest.$ac_ext >&5
23283
 
 
23284
 
ac_header_compiler=no
23285
 
fi
23286
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23287
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23288
 
echo "${ECHO_T}$ac_header_compiler" >&6
23289
 
 
23290
 
# Is the header present?
23291
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
23292
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23293
 
cat >conftest.$ac_ext <<_ACEOF
23294
 
/* confdefs.h.  */
23295
 
_ACEOF
23296
 
cat confdefs.h >>conftest.$ac_ext
23297
 
cat >>conftest.$ac_ext <<_ACEOF
23298
 
/* end confdefs.h.  */
23299
 
#include <$ac_header>
23300
 
_ACEOF
23301
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23302
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23303
 
  ac_status=$?
23304
 
  grep -v '^ *+' conftest.er1 >conftest.err
23305
 
  rm -f conftest.er1
23306
 
  cat conftest.err >&5
23307
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308
 
  (exit $ac_status); } >/dev/null; then
23309
 
  if test -s conftest.err; then
23310
 
    ac_cpp_err=$ac_c_preproc_warn_flag
23311
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23312
 
  else
23313
 
    ac_cpp_err=
23314
 
  fi
23315
 
else
23316
 
  ac_cpp_err=yes
23317
 
fi
23318
 
if test -z "$ac_cpp_err"; then
23319
 
  ac_header_preproc=yes
23320
 
else
23321
 
  echo "$as_me: failed program was:" >&5
23322
 
sed 's/^/| /' conftest.$ac_ext >&5
23323
 
 
23324
 
  ac_header_preproc=no
23325
 
fi
23326
 
rm -f conftest.err conftest.$ac_ext
23327
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23328
 
echo "${ECHO_T}$ac_header_preproc" >&6
23329
 
 
23330
 
# So?  What about this header?
23331
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23332
 
  yes:no: )
23333
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23334
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23335
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23336
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23337
 
    ac_header_preproc=yes
23338
 
    ;;
23339
 
  no:yes:* )
23340
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23341
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23342
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23343
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23344
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23345
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23346
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23347
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23348
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23349
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23350
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23351
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23352
 
    (
23353
 
      cat <<\_ASBOX
23354
 
## ------------------------------- ##
23355
 
## Report this to curl-bug@haxx.se ##
23356
 
## ------------------------------- ##
23357
 
_ASBOX
23358
 
    ) |
23359
 
      sed "s/^/$as_me: WARNING:     /" >&2
23360
 
    ;;
23361
 
esac
23362
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
23363
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23364
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23365
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23366
 
else
23367
 
  eval "$as_ac_Header=\$ac_header_preproc"
23368
 
fi
23369
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23370
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23371
 
 
23372
 
fi
23373
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23374
 
  cat >>confdefs.h <<_ACEOF
23375
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23376
 
_ACEOF
23377
 
 
23378
 
fi
23379
 
 
23380
 
done
23381
 
 
23382
 
 
23383
 
        echo "$as_me:$LINENO: checking for res_search" >&5
23384
 
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
23385
 
if test "${ac_cv_func_res_search+set}" = set; then
23386
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23387
 
else
23388
 
  cat >conftest.$ac_ext <<_ACEOF
23389
 
/* confdefs.h.  */
23390
 
_ACEOF
23391
 
cat confdefs.h >>conftest.$ac_ext
23392
 
cat >>conftest.$ac_ext <<_ACEOF
23393
 
/* end confdefs.h.  */
23394
 
/* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
23395
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23396
 
#define res_search innocuous_res_search
23397
 
 
23398
 
/* System header to define __stub macros and hopefully few prototypes,
23399
 
    which can conflict with char res_search (); below.
23400
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23401
 
    <limits.h> exists even on freestanding compilers.  */
23402
 
 
23403
 
#ifdef __STDC__
23404
 
# include <limits.h>
23405
 
#else
23406
 
# include <assert.h>
23407
 
#endif
23408
 
 
23409
 
#undef res_search
23410
 
 
23411
 
/* Override any gcc2 internal prototype to avoid an error.  */
23412
 
#ifdef __cplusplus
23413
 
extern "C"
23414
 
{
23415
 
#endif
23416
 
/* We use char because int might match the return type of a gcc2
23417
 
   builtin and then its argument prototype would still apply.  */
23418
 
char res_search ();
23419
 
/* The GNU C library defines this for functions which it implements
23420
 
    to always fail with ENOSYS.  Some functions are actually named
23421
 
    something starting with __ and the normal name is an alias.  */
23422
 
#if defined (__stub_res_search) || defined (__stub___res_search)
23423
 
choke me
23424
 
#else
23425
 
char (*f) () = res_search;
23426
 
#endif
23427
 
#ifdef __cplusplus
23428
 
}
23429
 
#endif
23430
 
 
23431
 
int
23432
 
main ()
23433
 
{
23434
 
return f != res_search;
23435
 
  ;
23436
 
  return 0;
23437
 
}
23438
 
_ACEOF
23439
 
rm -f conftest.$ac_objext conftest$ac_exeext
23440
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23441
 
  (eval $ac_link) 2>conftest.er1
23442
 
  ac_status=$?
23443
 
  grep -v '^ *+' conftest.er1 >conftest.err
23444
 
  rm -f conftest.er1
23445
 
  cat conftest.err >&5
23446
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447
 
  (exit $ac_status); } &&
23448
 
         { ac_try='test -z "$ac_c_werror_flag"
23449
 
                         || test ! -s conftest.err'
23450
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23451
 
  (eval $ac_try) 2>&5
23452
 
  ac_status=$?
23453
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454
 
  (exit $ac_status); }; } &&
23455
 
         { ac_try='test -s conftest$ac_exeext'
23456
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457
 
  (eval $ac_try) 2>&5
23458
 
  ac_status=$?
23459
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460
 
  (exit $ac_status); }; }; then
23461
 
  ac_cv_func_res_search=yes
23462
 
else
23463
 
  echo "$as_me: failed program was:" >&5
23464
 
sed 's/^/| /' conftest.$ac_ext >&5
23465
 
 
23466
 
ac_cv_func_res_search=no
23467
 
fi
23468
 
rm -f conftest.err conftest.$ac_objext \
23469
 
      conftest$ac_exeext conftest.$ac_ext
23470
 
fi
23471
 
echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
23472
 
echo "${ECHO_T}$ac_cv_func_res_search" >&6
23473
 
if test $ac_cv_func_res_search = yes; then
23474
 
  :
23475
 
else
23476
 
 
23477
 
echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
23478
 
echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
23479
 
if test "${ac_cv_lib_resolv_res_search+set}" = set; then
23480
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23481
 
else
23482
 
  ac_check_lib_save_LIBS=$LIBS
23483
 
LIBS="-lresolv  $LIBS"
23484
 
cat >conftest.$ac_ext <<_ACEOF
23485
 
/* confdefs.h.  */
23486
 
_ACEOF
23487
 
cat confdefs.h >>conftest.$ac_ext
23488
 
cat >>conftest.$ac_ext <<_ACEOF
23489
 
/* end confdefs.h.  */
23490
 
 
23491
 
/* Override any gcc2 internal prototype to avoid an error.  */
23492
 
#ifdef __cplusplus
23493
 
extern "C"
23494
 
#endif
23495
 
/* We use char because int might match the return type of a gcc2
23496
 
   builtin and then its argument prototype would still apply.  */
23497
 
char res_search ();
23498
 
int
23499
 
main ()
23500
 
{
23501
 
res_search ();
23502
 
  ;
23503
 
  return 0;
23504
 
}
23505
 
_ACEOF
23506
 
rm -f conftest.$ac_objext conftest$ac_exeext
23507
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23508
 
  (eval $ac_link) 2>conftest.er1
23509
 
  ac_status=$?
23510
 
  grep -v '^ *+' conftest.er1 >conftest.err
23511
 
  rm -f conftest.er1
23512
 
  cat conftest.err >&5
23513
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514
 
  (exit $ac_status); } &&
23515
 
         { ac_try='test -z "$ac_c_werror_flag"
23516
 
                         || test ! -s conftest.err'
23517
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518
 
  (eval $ac_try) 2>&5
23519
 
  ac_status=$?
23520
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521
 
  (exit $ac_status); }; } &&
23522
 
         { ac_try='test -s conftest$ac_exeext'
23523
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23524
 
  (eval $ac_try) 2>&5
23525
 
  ac_status=$?
23526
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527
 
  (exit $ac_status); }; }; then
23528
 
  ac_cv_lib_resolv_res_search=yes
23529
 
else
23530
 
  echo "$as_me: failed program was:" >&5
23531
 
sed 's/^/| /' conftest.$ac_ext >&5
23532
 
 
23533
 
ac_cv_lib_resolv_res_search=no
23534
 
fi
23535
 
rm -f conftest.err conftest.$ac_objext \
23536
 
      conftest$ac_exeext conftest.$ac_ext
23537
 
LIBS=$ac_check_lib_save_LIBS
23538
 
fi
23539
 
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
23540
 
echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
23541
 
if test $ac_cv_lib_resolv_res_search = yes; then
23542
 
  cat >>confdefs.h <<_ACEOF
23543
 
#define HAVE_LIBRESOLV 1
23544
 
_ACEOF
23545
 
 
23546
 
  LIBS="-lresolv $LIBS"
23547
 
 
23548
 
fi
23549
 
 
23550
 
fi
23551
 
 
23552
 
 
23553
 
        echo "$as_me:$LINENO: checking for krb_net_read in -lkrb" >&5
23554
 
echo $ECHO_N "checking for krb_net_read in -lkrb... $ECHO_C" >&6
23555
 
if test "${ac_cv_lib_krb_krb_net_read+set}" = set; then
23556
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23557
 
else
23558
 
  ac_check_lib_save_LIBS=$LIBS
23559
 
LIBS="-lkrb  $LIBS"
23560
 
cat >conftest.$ac_ext <<_ACEOF
23561
 
/* confdefs.h.  */
23562
 
_ACEOF
23563
 
cat confdefs.h >>conftest.$ac_ext
23564
 
cat >>conftest.$ac_ext <<_ACEOF
23565
 
/* end confdefs.h.  */
23566
 
 
23567
 
/* Override any gcc2 internal prototype to avoid an error.  */
23568
 
#ifdef __cplusplus
23569
 
extern "C"
23570
 
#endif
23571
 
/* We use char because int might match the return type of a gcc2
23572
 
   builtin and then its argument prototype would still apply.  */
23573
 
char krb_net_read ();
23574
 
int
23575
 
main ()
23576
 
{
23577
 
krb_net_read ();
23578
 
  ;
23579
 
  return 0;
23580
 
}
23581
 
_ACEOF
23582
 
rm -f conftest.$ac_objext conftest$ac_exeext
23583
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23584
 
  (eval $ac_link) 2>conftest.er1
23585
 
  ac_status=$?
23586
 
  grep -v '^ *+' conftest.er1 >conftest.err
23587
 
  rm -f conftest.er1
23588
 
  cat conftest.err >&5
23589
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590
 
  (exit $ac_status); } &&
23591
 
         { ac_try='test -z "$ac_c_werror_flag"
23592
 
                         || test ! -s conftest.err'
23593
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23594
 
  (eval $ac_try) 2>&5
23595
 
  ac_status=$?
23596
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597
 
  (exit $ac_status); }; } &&
23598
 
         { ac_try='test -s conftest$ac_exeext'
23599
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23600
 
  (eval $ac_try) 2>&5
23601
 
  ac_status=$?
23602
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603
 
  (exit $ac_status); }; }; then
23604
 
  ac_cv_lib_krb_krb_net_read=yes
23605
 
else
23606
 
  echo "$as_me: failed program was:" >&5
23607
 
sed 's/^/| /' conftest.$ac_ext >&5
23608
 
 
23609
 
ac_cv_lib_krb_krb_net_read=no
23610
 
fi
23611
 
rm -f conftest.err conftest.$ac_objext \
23612
 
      conftest$ac_exeext conftest.$ac_ext
23613
 
LIBS=$ac_check_lib_save_LIBS
23614
 
fi
23615
 
echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_net_read" >&5
23616
 
echo "${ECHO_T}$ac_cv_lib_krb_krb_net_read" >&6
23617
 
if test $ac_cv_lib_krb_krb_net_read = yes; then
23618
 
 
23619
 
 
23620
 
for ac_header in krb.h
23621
 
do
23622
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23623
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23624
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
23625
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23626
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23627
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23628
 
fi
23629
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23630
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23631
 
else
23632
 
  # Is the header compilable?
23633
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
23634
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23635
 
cat >conftest.$ac_ext <<_ACEOF
23636
 
/* confdefs.h.  */
23637
 
_ACEOF
23638
 
cat confdefs.h >>conftest.$ac_ext
23639
 
cat >>conftest.$ac_ext <<_ACEOF
23640
 
/* end confdefs.h.  */
23641
 
$ac_includes_default
23642
 
#include <$ac_header>
23643
 
_ACEOF
23644
 
rm -f conftest.$ac_objext
23645
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23646
 
  (eval $ac_compile) 2>conftest.er1
23647
 
  ac_status=$?
23648
 
  grep -v '^ *+' conftest.er1 >conftest.err
23649
 
  rm -f conftest.er1
23650
 
  cat conftest.err >&5
23651
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652
 
  (exit $ac_status); } &&
23653
 
         { ac_try='test -z "$ac_c_werror_flag"
23654
 
                         || test ! -s conftest.err'
23655
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656
 
  (eval $ac_try) 2>&5
23657
 
  ac_status=$?
23658
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659
 
  (exit $ac_status); }; } &&
23660
 
         { ac_try='test -s conftest.$ac_objext'
23661
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23662
 
  (eval $ac_try) 2>&5
23663
 
  ac_status=$?
23664
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665
 
  (exit $ac_status); }; }; then
23666
 
  ac_header_compiler=yes
23667
 
else
23668
 
  echo "$as_me: failed program was:" >&5
23669
 
sed 's/^/| /' conftest.$ac_ext >&5
23670
 
 
23671
 
ac_header_compiler=no
23672
 
fi
23673
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23674
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23675
 
echo "${ECHO_T}$ac_header_compiler" >&6
23676
 
 
23677
 
# Is the header present?
23678
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
23679
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23680
 
cat >conftest.$ac_ext <<_ACEOF
23681
 
/* confdefs.h.  */
23682
 
_ACEOF
23683
 
cat confdefs.h >>conftest.$ac_ext
23684
 
cat >>conftest.$ac_ext <<_ACEOF
23685
 
/* end confdefs.h.  */
23686
 
#include <$ac_header>
23687
 
_ACEOF
23688
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23689
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23690
 
  ac_status=$?
23691
 
  grep -v '^ *+' conftest.er1 >conftest.err
23692
 
  rm -f conftest.er1
23693
 
  cat conftest.err >&5
23694
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695
 
  (exit $ac_status); } >/dev/null; then
23696
 
  if test -s conftest.err; then
23697
 
    ac_cpp_err=$ac_c_preproc_warn_flag
23698
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23699
 
  else
23700
 
    ac_cpp_err=
23701
 
  fi
23702
 
else
23703
 
  ac_cpp_err=yes
23704
 
fi
23705
 
if test -z "$ac_cpp_err"; then
23706
 
  ac_header_preproc=yes
23707
 
else
23708
 
  echo "$as_me: failed program was:" >&5
23709
 
sed 's/^/| /' conftest.$ac_ext >&5
23710
 
 
23711
 
  ac_header_preproc=no
23712
 
fi
23713
 
rm -f conftest.err conftest.$ac_ext
23714
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23715
 
echo "${ECHO_T}$ac_header_preproc" >&6
23716
 
 
23717
 
# So?  What about this header?
23718
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23719
 
  yes:no: )
23720
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23721
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23722
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23723
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23724
 
    ac_header_preproc=yes
23725
 
    ;;
23726
 
  no:yes:* )
23727
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23728
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23729
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23730
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23731
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23732
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23733
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23734
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23735
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23736
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23737
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23738
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23739
 
    (
23740
 
      cat <<\_ASBOX
23741
 
## ------------------------------- ##
23742
 
## Report this to curl-bug@haxx.se ##
23743
 
## ------------------------------- ##
23744
 
_ASBOX
23745
 
    ) |
23746
 
      sed "s/^/$as_me: WARNING:     /" >&2
23747
 
    ;;
23748
 
esac
23749
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
23750
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23751
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23752
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23753
 
else
23754
 
  eval "$as_ac_Header=\$ac_header_preproc"
23755
 
fi
23756
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23757
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23758
 
 
23759
 
fi
23760
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23761
 
  cat >>confdefs.h <<_ACEOF
23762
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23763
 
_ACEOF
23764
 
 
23765
 
fi
23766
 
 
23767
 
done
23768
 
 
23769
 
 
23770
 
            LIBS="-lkrb -ldes $LIBS"
23771
 
 
23772
 
 
23773
 
for ac_func in krb_get_our_ip_for_realm
23774
 
do
23775
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23776
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
23777
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23778
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
23779
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23780
 
else
23781
 
  cat >conftest.$ac_ext <<_ACEOF
23782
 
/* confdefs.h.  */
23783
 
_ACEOF
23784
 
cat confdefs.h >>conftest.$ac_ext
23785
 
cat >>conftest.$ac_ext <<_ACEOF
23786
 
/* end confdefs.h.  */
23787
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23788
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23789
 
#define $ac_func innocuous_$ac_func
23790
 
 
23791
 
/* System header to define __stub macros and hopefully few prototypes,
23792
 
    which can conflict with char $ac_func (); below.
23793
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23794
 
    <limits.h> exists even on freestanding compilers.  */
23795
 
 
23796
 
#ifdef __STDC__
23797
 
# include <limits.h>
23798
 
#else
23799
 
# include <assert.h>
23800
 
#endif
23801
 
 
23802
 
#undef $ac_func
23803
 
 
23804
 
/* Override any gcc2 internal prototype to avoid an error.  */
23805
 
#ifdef __cplusplus
23806
 
extern "C"
23807
 
{
23808
 
#endif
23809
 
/* We use char because int might match the return type of a gcc2
23810
 
   builtin and then its argument prototype would still apply.  */
23811
 
char $ac_func ();
23812
 
/* The GNU C library defines this for functions which it implements
23813
 
    to always fail with ENOSYS.  Some functions are actually named
23814
 
    something starting with __ and the normal name is an alias.  */
23815
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23816
 
choke me
23817
 
#else
23818
 
char (*f) () = $ac_func;
23819
 
#endif
23820
 
#ifdef __cplusplus
23821
 
}
23822
 
#endif
23823
 
 
23824
 
int
23825
 
main ()
23826
 
{
23827
 
return f != $ac_func;
23828
 
  ;
23829
 
  return 0;
23830
 
}
23831
 
_ACEOF
23832
 
rm -f conftest.$ac_objext conftest$ac_exeext
23833
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23834
 
  (eval $ac_link) 2>conftest.er1
23835
 
  ac_status=$?
23836
 
  grep -v '^ *+' conftest.er1 >conftest.err
23837
 
  rm -f conftest.er1
23838
 
  cat conftest.err >&5
23839
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840
 
  (exit $ac_status); } &&
23841
 
         { ac_try='test -z "$ac_c_werror_flag"
23842
 
                         || test ! -s conftest.err'
23843
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23844
 
  (eval $ac_try) 2>&5
23845
 
  ac_status=$?
23846
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847
 
  (exit $ac_status); }; } &&
23848
 
         { ac_try='test -s conftest$ac_exeext'
23849
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23850
 
  (eval $ac_try) 2>&5
23851
 
  ac_status=$?
23852
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853
 
  (exit $ac_status); }; }; then
23854
 
  eval "$as_ac_var=yes"
23855
 
else
23856
 
  echo "$as_me: failed program was:" >&5
23857
 
sed 's/^/| /' conftest.$ac_ext >&5
23858
 
 
23859
 
eval "$as_ac_var=no"
23860
 
fi
23861
 
rm -f conftest.err conftest.$ac_objext \
23862
 
      conftest$ac_exeext conftest.$ac_ext
23863
 
fi
23864
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23865
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23866
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
23867
 
  cat >>confdefs.h <<_ACEOF
23868
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23869
 
_ACEOF
23870
 
 
23871
 
fi
23872
 
done
23873
 
 
23874
 
 
23875
 
 
23876
 
cat >>confdefs.h <<\_ACEOF
23877
 
#define HAVE_KRB4 1
23878
 
_ACEOF
23879
 
 
23880
 
 
23881
 
            KRB4_ENABLED=1
23882
 
 
23883
 
 
23884
 
 
23885
 
for ac_func in strlcpy
23886
 
do
23887
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23888
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
23889
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23890
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
23891
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23892
 
else
23893
 
  cat >conftest.$ac_ext <<_ACEOF
23894
 
/* confdefs.h.  */
23895
 
_ACEOF
23896
 
cat confdefs.h >>conftest.$ac_ext
23897
 
cat >>conftest.$ac_ext <<_ACEOF
23898
 
/* end confdefs.h.  */
23899
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23900
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23901
 
#define $ac_func innocuous_$ac_func
23902
 
 
23903
 
/* System header to define __stub macros and hopefully few prototypes,
23904
 
    which can conflict with char $ac_func (); below.
23905
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23906
 
    <limits.h> exists even on freestanding compilers.  */
23907
 
 
23908
 
#ifdef __STDC__
23909
 
# include <limits.h>
23910
 
#else
23911
 
# include <assert.h>
23912
 
#endif
23913
 
 
23914
 
#undef $ac_func
23915
 
 
23916
 
/* Override any gcc2 internal prototype to avoid an error.  */
23917
 
#ifdef __cplusplus
23918
 
extern "C"
23919
 
{
23920
 
#endif
23921
 
/* We use char because int might match the return type of a gcc2
23922
 
   builtin and then its argument prototype would still apply.  */
23923
 
char $ac_func ();
23924
 
/* The GNU C library defines this for functions which it implements
23925
 
    to always fail with ENOSYS.  Some functions are actually named
23926
 
    something starting with __ and the normal name is an alias.  */
23927
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23928
 
choke me
23929
 
#else
23930
 
char (*f) () = $ac_func;
23931
 
#endif
23932
 
#ifdef __cplusplus
23933
 
}
23934
 
#endif
23935
 
 
23936
 
int
23937
 
main ()
23938
 
{
23939
 
return f != $ac_func;
23940
 
  ;
23941
 
  return 0;
23942
 
}
23943
 
_ACEOF
23944
 
rm -f conftest.$ac_objext conftest$ac_exeext
23945
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23946
 
  (eval $ac_link) 2>conftest.er1
23947
 
  ac_status=$?
23948
 
  grep -v '^ *+' conftest.er1 >conftest.err
23949
 
  rm -f conftest.er1
23950
 
  cat conftest.err >&5
23951
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952
 
  (exit $ac_status); } &&
23953
 
         { ac_try='test -z "$ac_c_werror_flag"
23954
 
                         || test ! -s conftest.err'
23955
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23956
 
  (eval $ac_try) 2>&5
23957
 
  ac_status=$?
23958
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959
 
  (exit $ac_status); }; } &&
23960
 
         { ac_try='test -s conftest$ac_exeext'
23961
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23962
 
  (eval $ac_try) 2>&5
23963
 
  ac_status=$?
23964
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965
 
  (exit $ac_status); }; }; then
23966
 
  eval "$as_ac_var=yes"
23967
 
else
23968
 
  echo "$as_me: failed program was:" >&5
23969
 
sed 's/^/| /' conftest.$ac_ext >&5
23970
 
 
23971
 
eval "$as_ac_var=no"
23972
 
fi
23973
 
rm -f conftest.err conftest.$ac_objext \
23974
 
      conftest$ac_exeext conftest.$ac_ext
23975
 
fi
23976
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23977
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23978
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
23979
 
  cat >>confdefs.h <<_ACEOF
23980
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23981
 
_ACEOF
23982
 
 
23983
 
fi
23984
 
done
23985
 
 
23986
 
 
23987
 
 
23988
 
fi
23989
 
 
23990
 
 
23991
 
fi
23992
 
 
23993
 
else
23994
 
  echo "$as_me:$LINENO: result: no" >&5
23995
 
echo "${ECHO_T}no" >&6
23996
 
fi
23997
 
 
23998
 
 
23999
 
 
24000
 
# Check whether --with-spnego or --without-spnego was given.
24001
 
if test "${with_spnego+set}" = set; then
24002
 
  withval="$with_spnego"
24003
 
   SPNEGO_ROOT="$withval"
24004
 
    want_spnego="yes"
24005
 
 
24006
 
fi;
24007
 
echo "$as_me:$LINENO: checking if SPNEGO support is requested" >&5
24008
 
echo $ECHO_N "checking if SPNEGO support is requested... $ECHO_C" >&6
24009
 
if test x"$want_spnego" = xyes; then
24010
 
 
24011
 
  if test X"$SPNEGO_ROOT" = Xyes; then
24012
 
     { { echo "$as_me:$LINENO: error: FBOpenSSL libs and/or directories were not found where specified!" >&5
24013
 
echo "$as_me: error: FBOpenSSL libs and/or directories were not found where specified!" >&2;}
24014
 
   { (exit 1); exit 1; }; }
24015
 
     echo "$as_me:$LINENO: result: no" >&5
24016
 
echo "${ECHO_T}no" >&6
24017
 
  else
24018
 
     if test -z "$SPNEGO_LIB_DIR"; then
24019
 
        LDFLAGS="$LDFLAGS -L$SPNEGO_ROOT -lfbopenssl"
24020
 
     else
24021
 
        LDFLAGS="$LDFLAGS $SPNEGO_LIB_DIR"
24022
 
     fi
24023
 
 
24024
 
     echo "$as_me:$LINENO: result: yes" >&5
24025
 
echo "${ECHO_T}yes" >&6
24026
 
 
24027
 
cat >>confdefs.h <<\_ACEOF
24028
 
#define HAVE_SPNEGO 1
24029
 
_ACEOF
24030
 
 
24031
 
  fi
24032
 
else
24033
 
  echo "$as_me:$LINENO: result: no" >&5
24034
 
echo "${ECHO_T}no" >&6
24035
 
fi
24036
 
 
24037
 
 
24038
 
 
24039
 
# Check whether --with-gssapi-includes or --without-gssapi-includes was given.
24040
 
if test "${with_gssapi_includes+set}" = set; then
24041
 
  withval="$with_gssapi_includes"
24042
 
   GSSAPI_INCS="-I$withval"
24043
 
    want_gss="yes"
24044
 
 
24045
 
fi;
24046
 
 
24047
 
 
24048
 
# Check whether --with-gssapi-libs or --without-gssapi-libs was given.
24049
 
if test "${with_gssapi_libs+set}" = set; then
24050
 
  withval="$with_gssapi_libs"
24051
 
   GSSAPI_LIBS="-L$withval -lgssapi"
24052
 
    want_gss="yes"
24053
 
 
24054
 
fi;
24055
 
 
24056
 
 
24057
 
# Check whether --with-gssapi or --without-gssapi was given.
24058
 
if test "${with_gssapi+set}" = set; then
24059
 
  withval="$with_gssapi"
24060
 
   GSSAPI_ROOT="$withval"
24061
 
    want_gss="yes"
24062
 
 
24063
 
fi;
24064
 
 
24065
 
echo "$as_me:$LINENO: checking if GSSAPI support is requested" >&5
24066
 
echo $ECHO_N "checking if GSSAPI support is requested... $ECHO_C" >&6
24067
 
if test x"$want_gss" = xyes; then
24068
 
  if test -z "$GSSAPI_INCS"; then
24069
 
     if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
24070
 
        GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
24071
 
     else
24072
 
        GSSAPI_INCS="-I$GSSAPI_ROOT/include"
24073
 
     fi
24074
 
  fi
24075
 
  CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
24076
 
 
24077
 
  if test -z "$GSSAPI_LIB_DIR"; then
24078
 
     if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
24079
 
        gss_ldflags=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
24080
 
        LDFLAGS="$LDFLAGS $gss_ldflags"
24081
 
     else
24082
 
        LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff -lgssapi"
24083
 
     fi
24084
 
  else
24085
 
     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
24086
 
  fi
24087
 
 
24088
 
  echo "$as_me:$LINENO: result: yes" >&5
24089
 
echo "${ECHO_T}yes" >&6
24090
 
 
24091
 
cat >>confdefs.h <<\_ACEOF
24092
 
#define HAVE_GSSAPI 1
24093
 
_ACEOF
24094
 
 
24095
 
 
24096
 
  if test -n "$GSSAPI_INCS"; then
24097
 
    # cut off the preceding -I from the include path
24098
 
    GSSAPI_INCS=`echo $GSSAPI_INCS | sed -e s/^-I//g`
24099
 
  fi
24100
 
 
24101
 
  if test -f "$GSSAPI_INCS/gssapi.h"; then
24102
 
 
24103
 
cat >>confdefs.h <<\_ACEOF
24104
 
#define HAVE_GSSHEIMDAL 1
24105
 
_ACEOF
24106
 
 
24107
 
  else
24108
 
 
24109
 
cat >>confdefs.h <<\_ACEOF
24110
 
#define HAVE_GSSMIT 1
24111
 
_ACEOF
24112
 
 
24113
 
  fi
24114
 
 
24115
 
else
24116
 
  echo "$as_me:$LINENO: result: no" >&5
24117
 
echo "${ECHO_T}no" >&6
24118
 
fi
24119
 
 
24120
 
 
24121
 
# Extract the first word of "pkg-config", so it can be a program name with args.
24122
 
set dummy pkg-config; ac_word=$2
24123
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
24124
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24125
 
if test "${ac_cv_path_PKGCONFIG+set}" = set; then
24126
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24127
 
else
24128
 
  case $PKGCONFIG in
24129
 
  [\\/]* | ?:[\\/]*)
24130
 
  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24131
 
  ;;
24132
 
  *)
24133
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24134
 
as_dummy="$PATH:/usr/bin:/usr/local/bin"
24135
 
for as_dir in $as_dummy
24136
 
do
24137
 
  IFS=$as_save_IFS
24138
 
  test -z "$as_dir" && as_dir=.
24139
 
  for ac_exec_ext in '' $ac_executable_extensions; do
24140
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24141
 
    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24142
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24143
 
    break 2
24144
 
  fi
24145
 
done
24146
 
done
24147
 
 
24148
 
  test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
24149
 
  ;;
24150
 
esac
24151
 
fi
24152
 
PKGCONFIG=$ac_cv_path_PKGCONFIG
24153
 
 
24154
 
if test -n "$PKGCONFIG"; then
24155
 
  echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
24156
 
echo "${ECHO_T}$PKGCONFIG" >&6
24157
 
else
24158
 
  echo "$as_me:$LINENO: result: no" >&5
24159
 
echo "${ECHO_T}no" >&6
24160
 
fi
24161
 
 
24162
 
if test "$PKGCONFIG" != "no" ; then
24163
 
  echo "$as_me:$LINENO: checking for OpenSSL options using pkg-config" >&5
24164
 
echo $ECHO_N "checking for OpenSSL options using pkg-config... $ECHO_C" >&6
24165
 
 
24166
 
  $PKGCONFIG --exists openssl
24167
 
  SSL_EXISTS=$?
24168
 
 
24169
 
  if test "$SSL_EXISTS" -eq "0"; then
24170
 
    SSL_LIBS=`$PKGCONFIG --libs-only-l openssl 2>/dev/null`
24171
 
    SSL_LDFLAGS=`$PKGCONFIG --libs-only-L openssl 2>/dev/null`
24172
 
    SSL_CPPFLAGS=`$PKGCONFIG --cflags-only-I openssl 2>/dev/null`
24173
 
 
24174
 
    LIBS="$LIBS $SSL_LIBS"
24175
 
    CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
24176
 
    LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
24177
 
 
24178
 
    echo "$as_me:$LINENO: result: yes" >&5
24179
 
echo "${ECHO_T}yes" >&6
24180
 
  else
24181
 
    echo "$as_me:$LINENO: result: no" >&5
24182
 
echo "${ECHO_T}no" >&6
24183
 
  fi
24184
 
 
24185
 
fi
24186
 
 
24187
 
 
24188
 
OPT_SSL=off
24189
 
ca="no"
24190
 
 
24191
 
# Check whether --with-ssl or --without-ssl was given.
24192
 
if test "${with_ssl+set}" = set; then
24193
 
  withval="$with_ssl"
24194
 
  OPT_SSL=$withval
24195
 
fi;
24196
 
 
24197
 
if test X"$OPT_SSL" = Xno
24198
 
then
24199
 
  { echo "$as_me:$LINENO: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more" >&5
24200
 
echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more" >&2;}
24201
 
else
24202
 
 
24203
 
 
24204
 
    CLEANLDFLAGS="$LDFLAGS"
24205
 
  CLEANCPPFLAGS="$CPPFLAGS"
24206
 
 
24207
 
  case "$OPT_SSL" in
24208
 
  yes)
24209
 
    EXTRA_SSL=/usr/local/ssl ;;
24210
 
  off)
24211
 
    EXTRA_SSL= ;;
24212
 
  *)
24213
 
        EXTRA_SSL=$OPT_SSL
24214
 
    LDFLAGS="$LDFLAGS -L$EXTRA_SSL/lib$libsuff"
24215
 
    CPPFLAGS="$CPPFLAGS -I$EXTRA_SSL/include/openssl -I$EXTRA_SSL/include"
24216
 
    ;;
24217
 
  esac
24218
 
 
24219
 
  echo "$as_me:$LINENO: checking for CRYPTO_lock in -lcrypto" >&5
24220
 
echo $ECHO_N "checking for CRYPTO_lock in -lcrypto... $ECHO_C" >&6
24221
 
if test "${ac_cv_lib_crypto_CRYPTO_lock+set}" = set; then
24222
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24223
 
else
24224
 
  ac_check_lib_save_LIBS=$LIBS
24225
 
LIBS="-lcrypto  $LIBS"
24226
 
cat >conftest.$ac_ext <<_ACEOF
24227
 
/* confdefs.h.  */
24228
 
_ACEOF
24229
 
cat confdefs.h >>conftest.$ac_ext
24230
 
cat >>conftest.$ac_ext <<_ACEOF
24231
 
/* end confdefs.h.  */
24232
 
 
24233
 
/* Override any gcc2 internal prototype to avoid an error.  */
24234
 
#ifdef __cplusplus
24235
 
extern "C"
24236
 
#endif
24237
 
/* We use char because int might match the return type of a gcc2
24238
 
   builtin and then its argument prototype would still apply.  */
24239
 
char CRYPTO_lock ();
24240
 
int
24241
 
main ()
24242
 
{
24243
 
CRYPTO_lock ();
24244
 
  ;
24245
 
  return 0;
24246
 
}
24247
 
_ACEOF
24248
 
rm -f conftest.$ac_objext conftest$ac_exeext
24249
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24250
 
  (eval $ac_link) 2>conftest.er1
24251
 
  ac_status=$?
24252
 
  grep -v '^ *+' conftest.er1 >conftest.err
24253
 
  rm -f conftest.er1
24254
 
  cat conftest.err >&5
24255
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256
 
  (exit $ac_status); } &&
24257
 
         { ac_try='test -z "$ac_c_werror_flag"
24258
 
                         || test ! -s conftest.err'
24259
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24260
 
  (eval $ac_try) 2>&5
24261
 
  ac_status=$?
24262
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263
 
  (exit $ac_status); }; } &&
24264
 
         { ac_try='test -s conftest$ac_exeext'
24265
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24266
 
  (eval $ac_try) 2>&5
24267
 
  ac_status=$?
24268
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24269
 
  (exit $ac_status); }; }; then
24270
 
  ac_cv_lib_crypto_CRYPTO_lock=yes
24271
 
else
24272
 
  echo "$as_me: failed program was:" >&5
24273
 
sed 's/^/| /' conftest.$ac_ext >&5
24274
 
 
24275
 
ac_cv_lib_crypto_CRYPTO_lock=no
24276
 
fi
24277
 
rm -f conftest.err conftest.$ac_objext \
24278
 
      conftest$ac_exeext conftest.$ac_ext
24279
 
LIBS=$ac_check_lib_save_LIBS
24280
 
fi
24281
 
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
24282
 
echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_lock" >&6
24283
 
if test $ac_cv_lib_crypto_CRYPTO_lock = yes; then
24284
 
 
24285
 
     HAVECRYPTO="yes"
24286
 
 
24287
 
else
24288
 
 
24289
 
     OLDLDFLAGS="$LDFLAGS"
24290
 
     OLDCPPFLAGS="$CPPFLAGS"
24291
 
     LDFLAGS="$CLEANLDFLAGS -L$EXTRA_SSL/lib$libsuff"
24292
 
     CPPFLAGS="$CLEANCPPFLAGS -I$EXTRA_SSL/include/openssl -I$EXTRA_SSL/include"
24293
 
     echo "$as_me:$LINENO: checking for CRYPTO_add_lock in -lcrypto" >&5
24294
 
echo $ECHO_N "checking for CRYPTO_add_lock in -lcrypto... $ECHO_C" >&6
24295
 
if test "${ac_cv_lib_crypto_CRYPTO_add_lock+set}" = set; then
24296
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24297
 
else
24298
 
  ac_check_lib_save_LIBS=$LIBS
24299
 
LIBS="-lcrypto  $LIBS"
24300
 
cat >conftest.$ac_ext <<_ACEOF
24301
 
/* confdefs.h.  */
24302
 
_ACEOF
24303
 
cat confdefs.h >>conftest.$ac_ext
24304
 
cat >>conftest.$ac_ext <<_ACEOF
24305
 
/* end confdefs.h.  */
24306
 
 
24307
 
/* Override any gcc2 internal prototype to avoid an error.  */
24308
 
#ifdef __cplusplus
24309
 
extern "C"
24310
 
#endif
24311
 
/* We use char because int might match the return type of a gcc2
24312
 
   builtin and then its argument prototype would still apply.  */
24313
 
char CRYPTO_add_lock ();
24314
 
int
24315
 
main ()
24316
 
{
24317
 
CRYPTO_add_lock ();
24318
 
  ;
24319
 
  return 0;
24320
 
}
24321
 
_ACEOF
24322
 
rm -f conftest.$ac_objext conftest$ac_exeext
24323
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24324
 
  (eval $ac_link) 2>conftest.er1
24325
 
  ac_status=$?
24326
 
  grep -v '^ *+' conftest.er1 >conftest.err
24327
 
  rm -f conftest.er1
24328
 
  cat conftest.err >&5
24329
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330
 
  (exit $ac_status); } &&
24331
 
         { ac_try='test -z "$ac_c_werror_flag"
24332
 
                         || test ! -s conftest.err'
24333
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24334
 
  (eval $ac_try) 2>&5
24335
 
  ac_status=$?
24336
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337
 
  (exit $ac_status); }; } &&
24338
 
         { ac_try='test -s conftest$ac_exeext'
24339
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24340
 
  (eval $ac_try) 2>&5
24341
 
  ac_status=$?
24342
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343
 
  (exit $ac_status); }; }; then
24344
 
  ac_cv_lib_crypto_CRYPTO_add_lock=yes
24345
 
else
24346
 
  echo "$as_me: failed program was:" >&5
24347
 
sed 's/^/| /' conftest.$ac_ext >&5
24348
 
 
24349
 
ac_cv_lib_crypto_CRYPTO_add_lock=no
24350
 
fi
24351
 
rm -f conftest.err conftest.$ac_objext \
24352
 
      conftest$ac_exeext conftest.$ac_ext
24353
 
LIBS=$ac_check_lib_save_LIBS
24354
 
fi
24355
 
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
24356
 
echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_add_lock" >&6
24357
 
if test $ac_cv_lib_crypto_CRYPTO_add_lock = yes; then
24358
 
 
24359
 
       HAVECRYPTO="yes"
24360
 
else
24361
 
 
24362
 
       LDFLAGS="$OLDLDFLAGS"
24363
 
       CPPFLAGS="$OLDCPPFLAGS"
24364
 
 
24365
 
fi
24366
 
 
24367
 
 
24368
 
fi
24369
 
 
24370
 
 
24371
 
 
24372
 
  if test "$HAVECRYPTO" = "yes"; then
24373
 
 
24374
 
        echo "$as_me:$LINENO: checking for gdi32" >&5
24375
 
echo $ECHO_N "checking for gdi32... $ECHO_C" >&6
24376
 
    my_ac_save_LIBS=$LIBS
24377
 
    LIBS="-lgdi32 $LIBS"
24378
 
    cat >conftest.$ac_ext <<_ACEOF
24379
 
/* confdefs.h.  */
24380
 
_ACEOF
24381
 
cat confdefs.h >>conftest.$ac_ext
24382
 
cat >>conftest.$ac_ext <<_ACEOF
24383
 
/* end confdefs.h.  */
24384
 
#include <windef.h>
24385
 
                 #include <wingdi.h>
24386
 
int
24387
 
main ()
24388
 
{
24389
 
GdiFlush();
24390
 
  ;
24391
 
  return 0;
24392
 
}
24393
 
_ACEOF
24394
 
rm -f conftest.$ac_objext conftest$ac_exeext
24395
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24396
 
  (eval $ac_link) 2>conftest.er1
24397
 
  ac_status=$?
24398
 
  grep -v '^ *+' conftest.er1 >conftest.err
24399
 
  rm -f conftest.er1
24400
 
  cat conftest.err >&5
24401
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402
 
  (exit $ac_status); } &&
24403
 
         { ac_try='test -z "$ac_c_werror_flag"
24404
 
                         || test ! -s conftest.err'
24405
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24406
 
  (eval $ac_try) 2>&5
24407
 
  ac_status=$?
24408
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409
 
  (exit $ac_status); }; } &&
24410
 
         { ac_try='test -s conftest$ac_exeext'
24411
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24412
 
  (eval $ac_try) 2>&5
24413
 
  ac_status=$?
24414
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415
 
  (exit $ac_status); }; }; then
24416
 
                  echo "$as_me:$LINENO: result: yes" >&5
24417
 
echo "${ECHO_T}yes" >&6
24418
 
else
24419
 
  echo "$as_me: failed program was:" >&5
24420
 
sed 's/^/| /' conftest.$ac_ext >&5
24421
 
 
24422
 
                LIBS=$my_ac_save_LIBS
24423
 
               echo "$as_me:$LINENO: result: no" >&5
24424
 
echo "${ECHO_T}no" >&6
24425
 
 
24426
 
fi
24427
 
rm -f conftest.err conftest.$ac_objext \
24428
 
      conftest$ac_exeext conftest.$ac_ext
24429
 
 
24430
 
 
24431
 
echo "$as_me:$LINENO: checking for CRYPTO_add_lock in -lcrypto" >&5
24432
 
echo $ECHO_N "checking for CRYPTO_add_lock in -lcrypto... $ECHO_C" >&6
24433
 
if test "${ac_cv_lib_crypto_CRYPTO_add_lock+set}" = set; then
24434
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24435
 
else
24436
 
  ac_check_lib_save_LIBS=$LIBS
24437
 
LIBS="-lcrypto  $LIBS"
24438
 
cat >conftest.$ac_ext <<_ACEOF
24439
 
/* confdefs.h.  */
24440
 
_ACEOF
24441
 
cat confdefs.h >>conftest.$ac_ext
24442
 
cat >>conftest.$ac_ext <<_ACEOF
24443
 
/* end confdefs.h.  */
24444
 
 
24445
 
/* Override any gcc2 internal prototype to avoid an error.  */
24446
 
#ifdef __cplusplus
24447
 
extern "C"
24448
 
#endif
24449
 
/* We use char because int might match the return type of a gcc2
24450
 
   builtin and then its argument prototype would still apply.  */
24451
 
char CRYPTO_add_lock ();
24452
 
int
24453
 
main ()
24454
 
{
24455
 
CRYPTO_add_lock ();
24456
 
  ;
24457
 
  return 0;
24458
 
}
24459
 
_ACEOF
24460
 
rm -f conftest.$ac_objext conftest$ac_exeext
24461
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24462
 
  (eval $ac_link) 2>conftest.er1
24463
 
  ac_status=$?
24464
 
  grep -v '^ *+' conftest.er1 >conftest.err
24465
 
  rm -f conftest.er1
24466
 
  cat conftest.err >&5
24467
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468
 
  (exit $ac_status); } &&
24469
 
         { ac_try='test -z "$ac_c_werror_flag"
24470
 
                         || test ! -s conftest.err'
24471
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24472
 
  (eval $ac_try) 2>&5
24473
 
  ac_status=$?
24474
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475
 
  (exit $ac_status); }; } &&
24476
 
         { ac_try='test -s conftest$ac_exeext'
24477
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24478
 
  (eval $ac_try) 2>&5
24479
 
  ac_status=$?
24480
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481
 
  (exit $ac_status); }; }; then
24482
 
  ac_cv_lib_crypto_CRYPTO_add_lock=yes
24483
 
else
24484
 
  echo "$as_me: failed program was:" >&5
24485
 
sed 's/^/| /' conftest.$ac_ext >&5
24486
 
 
24487
 
ac_cv_lib_crypto_CRYPTO_add_lock=no
24488
 
fi
24489
 
rm -f conftest.err conftest.$ac_objext \
24490
 
      conftest$ac_exeext conftest.$ac_ext
24491
 
LIBS=$ac_check_lib_save_LIBS
24492
 
fi
24493
 
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
24494
 
echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_add_lock" >&6
24495
 
if test $ac_cv_lib_crypto_CRYPTO_add_lock = yes; then
24496
 
  cat >>confdefs.h <<_ACEOF
24497
 
#define HAVE_LIBCRYPTO 1
24498
 
_ACEOF
24499
 
 
24500
 
  LIBS="-lcrypto $LIBS"
24501
 
 
24502
 
fi
24503
 
 
24504
 
 
24505
 
echo "$as_me:$LINENO: checking for SSL_connect in -lssl" >&5
24506
 
echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6
24507
 
if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then
24508
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24509
 
else
24510
 
  ac_check_lib_save_LIBS=$LIBS
24511
 
LIBS="-lssl  $LIBS"
24512
 
cat >conftest.$ac_ext <<_ACEOF
24513
 
/* confdefs.h.  */
24514
 
_ACEOF
24515
 
cat confdefs.h >>conftest.$ac_ext
24516
 
cat >>conftest.$ac_ext <<_ACEOF
24517
 
/* end confdefs.h.  */
24518
 
 
24519
 
/* Override any gcc2 internal prototype to avoid an error.  */
24520
 
#ifdef __cplusplus
24521
 
extern "C"
24522
 
#endif
24523
 
/* We use char because int might match the return type of a gcc2
24524
 
   builtin and then its argument prototype would still apply.  */
24525
 
char SSL_connect ();
24526
 
int
24527
 
main ()
24528
 
{
24529
 
SSL_connect ();
24530
 
  ;
24531
 
  return 0;
24532
 
}
24533
 
_ACEOF
24534
 
rm -f conftest.$ac_objext conftest$ac_exeext
24535
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24536
 
  (eval $ac_link) 2>conftest.er1
24537
 
  ac_status=$?
24538
 
  grep -v '^ *+' conftest.er1 >conftest.err
24539
 
  rm -f conftest.er1
24540
 
  cat conftest.err >&5
24541
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542
 
  (exit $ac_status); } &&
24543
 
         { ac_try='test -z "$ac_c_werror_flag"
24544
 
                         || test ! -s conftest.err'
24545
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24546
 
  (eval $ac_try) 2>&5
24547
 
  ac_status=$?
24548
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549
 
  (exit $ac_status); }; } &&
24550
 
         { ac_try='test -s conftest$ac_exeext'
24551
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24552
 
  (eval $ac_try) 2>&5
24553
 
  ac_status=$?
24554
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555
 
  (exit $ac_status); }; }; then
24556
 
  ac_cv_lib_ssl_SSL_connect=yes
24557
 
else
24558
 
  echo "$as_me: failed program was:" >&5
24559
 
sed 's/^/| /' conftest.$ac_ext >&5
24560
 
 
24561
 
ac_cv_lib_ssl_SSL_connect=no
24562
 
fi
24563
 
rm -f conftest.err conftest.$ac_objext \
24564
 
      conftest$ac_exeext conftest.$ac_ext
24565
 
LIBS=$ac_check_lib_save_LIBS
24566
 
fi
24567
 
echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_connect" >&5
24568
 
echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6
24569
 
if test $ac_cv_lib_ssl_SSL_connect = yes; then
24570
 
  cat >>confdefs.h <<_ACEOF
24571
 
#define HAVE_LIBSSL 1
24572
 
_ACEOF
24573
 
 
24574
 
  LIBS="-lssl $LIBS"
24575
 
 
24576
 
fi
24577
 
 
24578
 
 
24579
 
    if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
24580
 
                echo "$as_me:$LINENO: checking for ssl with RSAglue/rsaref libs in use" >&5
24581
 
echo $ECHO_N "checking for ssl with RSAglue/rsaref libs in use... $ECHO_C" >&6;
24582
 
        OLIBS=$LIBS
24583
 
        LIBS="$LIBS -lRSAglue -lrsaref"
24584
 
 
24585
 
echo "$as_me:$LINENO: checking for SSL_connect in -lssl" >&5
24586
 
echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6
24587
 
if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then
24588
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24589
 
else
24590
 
  ac_check_lib_save_LIBS=$LIBS
24591
 
LIBS="-lssl  $LIBS"
24592
 
cat >conftest.$ac_ext <<_ACEOF
24593
 
/* confdefs.h.  */
24594
 
_ACEOF
24595
 
cat confdefs.h >>conftest.$ac_ext
24596
 
cat >>conftest.$ac_ext <<_ACEOF
24597
 
/* end confdefs.h.  */
24598
 
 
24599
 
/* Override any gcc2 internal prototype to avoid an error.  */
24600
 
#ifdef __cplusplus
24601
 
extern "C"
24602
 
#endif
24603
 
/* We use char because int might match the return type of a gcc2
24604
 
   builtin and then its argument prototype would still apply.  */
24605
 
char SSL_connect ();
24606
 
int
24607
 
main ()
24608
 
{
24609
 
SSL_connect ();
24610
 
  ;
24611
 
  return 0;
24612
 
}
24613
 
_ACEOF
24614
 
rm -f conftest.$ac_objext conftest$ac_exeext
24615
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24616
 
  (eval $ac_link) 2>conftest.er1
24617
 
  ac_status=$?
24618
 
  grep -v '^ *+' conftest.er1 >conftest.err
24619
 
  rm -f conftest.er1
24620
 
  cat conftest.err >&5
24621
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622
 
  (exit $ac_status); } &&
24623
 
         { ac_try='test -z "$ac_c_werror_flag"
24624
 
                         || test ! -s conftest.err'
24625
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24626
 
  (eval $ac_try) 2>&5
24627
 
  ac_status=$?
24628
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629
 
  (exit $ac_status); }; } &&
24630
 
         { ac_try='test -s conftest$ac_exeext'
24631
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24632
 
  (eval $ac_try) 2>&5
24633
 
  ac_status=$?
24634
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24635
 
  (exit $ac_status); }; }; then
24636
 
  ac_cv_lib_ssl_SSL_connect=yes
24637
 
else
24638
 
  echo "$as_me: failed program was:" >&5
24639
 
sed 's/^/| /' conftest.$ac_ext >&5
24640
 
 
24641
 
ac_cv_lib_ssl_SSL_connect=no
24642
 
fi
24643
 
rm -f conftest.err conftest.$ac_objext \
24644
 
      conftest$ac_exeext conftest.$ac_ext
24645
 
LIBS=$ac_check_lib_save_LIBS
24646
 
fi
24647
 
echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_connect" >&5
24648
 
echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6
24649
 
if test $ac_cv_lib_ssl_SSL_connect = yes; then
24650
 
  cat >>confdefs.h <<_ACEOF
24651
 
#define HAVE_LIBSSL 1
24652
 
_ACEOF
24653
 
 
24654
 
  LIBS="-lssl $LIBS"
24655
 
 
24656
 
fi
24657
 
 
24658
 
        if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
24659
 
                        echo "$as_me:$LINENO: result: no" >&5
24660
 
echo "${ECHO_T}no" >&6
24661
 
            LIBS=$OLIBS
24662
 
        else
24663
 
            echo "$as_me:$LINENO: result: yes" >&5
24664
 
echo "${ECHO_T}yes" >&6
24665
 
        fi
24666
 
    fi
24667
 
 
24668
 
 
24669
 
 
24670
 
 
24671
 
 
24672
 
 
24673
 
 
24674
 
 
24675
 
for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
24676
 
                     openssl/pem.h openssl/ssl.h openssl/err.h
24677
 
do
24678
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24679
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24680
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
24681
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24682
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24683
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24684
 
fi
24685
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24686
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24687
 
else
24688
 
  # Is the header compilable?
24689
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
24690
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24691
 
cat >conftest.$ac_ext <<_ACEOF
24692
 
/* confdefs.h.  */
24693
 
_ACEOF
24694
 
cat confdefs.h >>conftest.$ac_ext
24695
 
cat >>conftest.$ac_ext <<_ACEOF
24696
 
/* end confdefs.h.  */
24697
 
$ac_includes_default
24698
 
#include <$ac_header>
24699
 
_ACEOF
24700
 
rm -f conftest.$ac_objext
24701
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24702
 
  (eval $ac_compile) 2>conftest.er1
24703
 
  ac_status=$?
24704
 
  grep -v '^ *+' conftest.er1 >conftest.err
24705
 
  rm -f conftest.er1
24706
 
  cat conftest.err >&5
24707
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24708
 
  (exit $ac_status); } &&
24709
 
         { ac_try='test -z "$ac_c_werror_flag"
24710
 
                         || test ! -s conftest.err'
24711
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24712
 
  (eval $ac_try) 2>&5
24713
 
  ac_status=$?
24714
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24715
 
  (exit $ac_status); }; } &&
24716
 
         { ac_try='test -s conftest.$ac_objext'
24717
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24718
 
  (eval $ac_try) 2>&5
24719
 
  ac_status=$?
24720
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721
 
  (exit $ac_status); }; }; then
24722
 
  ac_header_compiler=yes
24723
 
else
24724
 
  echo "$as_me: failed program was:" >&5
24725
 
sed 's/^/| /' conftest.$ac_ext >&5
24726
 
 
24727
 
ac_header_compiler=no
24728
 
fi
24729
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24730
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24731
 
echo "${ECHO_T}$ac_header_compiler" >&6
24732
 
 
24733
 
# Is the header present?
24734
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
24735
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24736
 
cat >conftest.$ac_ext <<_ACEOF
24737
 
/* confdefs.h.  */
24738
 
_ACEOF
24739
 
cat confdefs.h >>conftest.$ac_ext
24740
 
cat >>conftest.$ac_ext <<_ACEOF
24741
 
/* end confdefs.h.  */
24742
 
#include <$ac_header>
24743
 
_ACEOF
24744
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24745
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24746
 
  ac_status=$?
24747
 
  grep -v '^ *+' conftest.er1 >conftest.err
24748
 
  rm -f conftest.er1
24749
 
  cat conftest.err >&5
24750
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24751
 
  (exit $ac_status); } >/dev/null; then
24752
 
  if test -s conftest.err; then
24753
 
    ac_cpp_err=$ac_c_preproc_warn_flag
24754
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24755
 
  else
24756
 
    ac_cpp_err=
24757
 
  fi
24758
 
else
24759
 
  ac_cpp_err=yes
24760
 
fi
24761
 
if test -z "$ac_cpp_err"; then
24762
 
  ac_header_preproc=yes
24763
 
else
24764
 
  echo "$as_me: failed program was:" >&5
24765
 
sed 's/^/| /' conftest.$ac_ext >&5
24766
 
 
24767
 
  ac_header_preproc=no
24768
 
fi
24769
 
rm -f conftest.err conftest.$ac_ext
24770
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24771
 
echo "${ECHO_T}$ac_header_preproc" >&6
24772
 
 
24773
 
# So?  What about this header?
24774
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24775
 
  yes:no: )
24776
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24777
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24778
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24779
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24780
 
    ac_header_preproc=yes
24781
 
    ;;
24782
 
  no:yes:* )
24783
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24784
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24785
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24786
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24787
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24788
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24789
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24790
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24791
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24792
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24793
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24794
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24795
 
    (
24796
 
      cat <<\_ASBOX
24797
 
## ------------------------------- ##
24798
 
## Report this to curl-bug@haxx.se ##
24799
 
## ------------------------------- ##
24800
 
_ASBOX
24801
 
    ) |
24802
 
      sed "s/^/$as_me: WARNING:     /" >&2
24803
 
    ;;
24804
 
esac
24805
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
24806
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24807
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24808
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24809
 
else
24810
 
  eval "$as_ac_Header=\$ac_header_preproc"
24811
 
fi
24812
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24813
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24814
 
 
24815
 
fi
24816
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
24817
 
  cat >>confdefs.h <<_ACEOF
24818
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24819
 
_ACEOF
24820
 
 OPENSSL_ENABLED=1
24821
 
fi
24822
 
 
24823
 
done
24824
 
 
24825
 
 
24826
 
    if test $ac_cv_header_openssl_x509_h = no; then
24827
 
 
24828
 
 
24829
 
 
24830
 
 
24831
 
 
24832
 
 
24833
 
for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
24834
 
do
24835
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24836
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24837
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
24838
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24839
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24840
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24841
 
fi
24842
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24843
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24844
 
else
24845
 
  # Is the header compilable?
24846
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
24847
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24848
 
cat >conftest.$ac_ext <<_ACEOF
24849
 
/* confdefs.h.  */
24850
 
_ACEOF
24851
 
cat confdefs.h >>conftest.$ac_ext
24852
 
cat >>conftest.$ac_ext <<_ACEOF
24853
 
/* end confdefs.h.  */
24854
 
$ac_includes_default
24855
 
#include <$ac_header>
24856
 
_ACEOF
24857
 
rm -f conftest.$ac_objext
24858
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24859
 
  (eval $ac_compile) 2>conftest.er1
24860
 
  ac_status=$?
24861
 
  grep -v '^ *+' conftest.er1 >conftest.err
24862
 
  rm -f conftest.er1
24863
 
  cat conftest.err >&5
24864
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865
 
  (exit $ac_status); } &&
24866
 
         { ac_try='test -z "$ac_c_werror_flag"
24867
 
                         || test ! -s conftest.err'
24868
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24869
 
  (eval $ac_try) 2>&5
24870
 
  ac_status=$?
24871
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24872
 
  (exit $ac_status); }; } &&
24873
 
         { ac_try='test -s conftest.$ac_objext'
24874
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24875
 
  (eval $ac_try) 2>&5
24876
 
  ac_status=$?
24877
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878
 
  (exit $ac_status); }; }; then
24879
 
  ac_header_compiler=yes
24880
 
else
24881
 
  echo "$as_me: failed program was:" >&5
24882
 
sed 's/^/| /' conftest.$ac_ext >&5
24883
 
 
24884
 
ac_header_compiler=no
24885
 
fi
24886
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24887
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24888
 
echo "${ECHO_T}$ac_header_compiler" >&6
24889
 
 
24890
 
# Is the header present?
24891
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
24892
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24893
 
cat >conftest.$ac_ext <<_ACEOF
24894
 
/* confdefs.h.  */
24895
 
_ACEOF
24896
 
cat confdefs.h >>conftest.$ac_ext
24897
 
cat >>conftest.$ac_ext <<_ACEOF
24898
 
/* end confdefs.h.  */
24899
 
#include <$ac_header>
24900
 
_ACEOF
24901
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24902
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24903
 
  ac_status=$?
24904
 
  grep -v '^ *+' conftest.er1 >conftest.err
24905
 
  rm -f conftest.er1
24906
 
  cat conftest.err >&5
24907
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908
 
  (exit $ac_status); } >/dev/null; then
24909
 
  if test -s conftest.err; then
24910
 
    ac_cpp_err=$ac_c_preproc_warn_flag
24911
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24912
 
  else
24913
 
    ac_cpp_err=
24914
 
  fi
24915
 
else
24916
 
  ac_cpp_err=yes
24917
 
fi
24918
 
if test -z "$ac_cpp_err"; then
24919
 
  ac_header_preproc=yes
24920
 
else
24921
 
  echo "$as_me: failed program was:" >&5
24922
 
sed 's/^/| /' conftest.$ac_ext >&5
24923
 
 
24924
 
  ac_header_preproc=no
24925
 
fi
24926
 
rm -f conftest.err conftest.$ac_ext
24927
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24928
 
echo "${ECHO_T}$ac_header_preproc" >&6
24929
 
 
24930
 
# So?  What about this header?
24931
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24932
 
  yes:no: )
24933
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24934
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24935
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24936
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24937
 
    ac_header_preproc=yes
24938
 
    ;;
24939
 
  no:yes:* )
24940
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24941
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24942
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24943
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24944
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24945
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24946
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24947
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24948
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24949
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24950
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24951
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24952
 
    (
24953
 
      cat <<\_ASBOX
24954
 
## ------------------------------- ##
24955
 
## Report this to curl-bug@haxx.se ##
24956
 
## ------------------------------- ##
24957
 
_ASBOX
24958
 
    ) |
24959
 
      sed "s/^/$as_me: WARNING:     /" >&2
24960
 
    ;;
24961
 
esac
24962
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
24963
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24964
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24965
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24966
 
else
24967
 
  eval "$as_ac_Header=\$ac_header_preproc"
24968
 
fi
24969
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24970
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24971
 
 
24972
 
fi
24973
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
24974
 
  cat >>confdefs.h <<_ACEOF
24975
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24976
 
_ACEOF
24977
 
 OPENSSL_ENABLED=1
24978
 
fi
24979
 
 
24980
 
done
24981
 
 
24982
 
    fi
24983
 
 
24984
 
            echo "$as_me:$LINENO: checking for ENGINE_init" >&5
24985
 
echo $ECHO_N "checking for ENGINE_init... $ECHO_C" >&6
24986
 
if test "${ac_cv_func_ENGINE_init+set}" = set; then
24987
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24988
 
else
24989
 
  cat >conftest.$ac_ext <<_ACEOF
24990
 
/* confdefs.h.  */
24991
 
_ACEOF
24992
 
cat confdefs.h >>conftest.$ac_ext
24993
 
cat >>conftest.$ac_ext <<_ACEOF
24994
 
/* end confdefs.h.  */
24995
 
/* Define ENGINE_init to an innocuous variant, in case <limits.h> declares ENGINE_init.
24996
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24997
 
#define ENGINE_init innocuous_ENGINE_init
24998
 
 
24999
 
/* System header to define __stub macros and hopefully few prototypes,
25000
 
    which can conflict with char ENGINE_init (); below.
25001
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25002
 
    <limits.h> exists even on freestanding compilers.  */
25003
 
 
25004
 
#ifdef __STDC__
25005
 
# include <limits.h>
25006
 
#else
25007
 
# include <assert.h>
25008
 
#endif
25009
 
 
25010
 
#undef ENGINE_init
25011
 
 
25012
 
/* Override any gcc2 internal prototype to avoid an error.  */
25013
 
#ifdef __cplusplus
25014
 
extern "C"
25015
 
{
25016
 
#endif
25017
 
/* We use char because int might match the return type of a gcc2
25018
 
   builtin and then its argument prototype would still apply.  */
25019
 
char ENGINE_init ();
25020
 
/* The GNU C library defines this for functions which it implements
25021
 
    to always fail with ENOSYS.  Some functions are actually named
25022
 
    something starting with __ and the normal name is an alias.  */
25023
 
#if defined (__stub_ENGINE_init) || defined (__stub___ENGINE_init)
25024
 
choke me
25025
 
#else
25026
 
char (*f) () = ENGINE_init;
25027
 
#endif
25028
 
#ifdef __cplusplus
25029
 
}
25030
 
#endif
25031
 
 
25032
 
int
25033
 
main ()
25034
 
{
25035
 
return f != ENGINE_init;
25036
 
  ;
25037
 
  return 0;
25038
 
}
25039
 
_ACEOF
25040
 
rm -f conftest.$ac_objext conftest$ac_exeext
25041
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25042
 
  (eval $ac_link) 2>conftest.er1
25043
 
  ac_status=$?
25044
 
  grep -v '^ *+' conftest.er1 >conftest.err
25045
 
  rm -f conftest.er1
25046
 
  cat conftest.err >&5
25047
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048
 
  (exit $ac_status); } &&
25049
 
         { ac_try='test -z "$ac_c_werror_flag"
25050
 
                         || test ! -s conftest.err'
25051
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25052
 
  (eval $ac_try) 2>&5
25053
 
  ac_status=$?
25054
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055
 
  (exit $ac_status); }; } &&
25056
 
         { ac_try='test -s conftest$ac_exeext'
25057
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25058
 
  (eval $ac_try) 2>&5
25059
 
  ac_status=$?
25060
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061
 
  (exit $ac_status); }; }; then
25062
 
  ac_cv_func_ENGINE_init=yes
25063
 
else
25064
 
  echo "$as_me: failed program was:" >&5
25065
 
sed 's/^/| /' conftest.$ac_ext >&5
25066
 
 
25067
 
ac_cv_func_ENGINE_init=no
25068
 
fi
25069
 
rm -f conftest.err conftest.$ac_objext \
25070
 
      conftest$ac_exeext conftest.$ac_ext
25071
 
fi
25072
 
echo "$as_me:$LINENO: result: $ac_cv_func_ENGINE_init" >&5
25073
 
echo "${ECHO_T}$ac_cv_func_ENGINE_init" >&6
25074
 
if test $ac_cv_func_ENGINE_init = yes; then
25075
 
 
25076
 
for ac_header in openssl/engine.h
25077
 
do
25078
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25079
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
25080
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
25081
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25082
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
25083
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25084
 
fi
25085
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25086
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25087
 
else
25088
 
  # Is the header compilable?
25089
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
25090
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25091
 
cat >conftest.$ac_ext <<_ACEOF
25092
 
/* confdefs.h.  */
25093
 
_ACEOF
25094
 
cat confdefs.h >>conftest.$ac_ext
25095
 
cat >>conftest.$ac_ext <<_ACEOF
25096
 
/* end confdefs.h.  */
25097
 
$ac_includes_default
25098
 
#include <$ac_header>
25099
 
_ACEOF
25100
 
rm -f conftest.$ac_objext
25101
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25102
 
  (eval $ac_compile) 2>conftest.er1
25103
 
  ac_status=$?
25104
 
  grep -v '^ *+' conftest.er1 >conftest.err
25105
 
  rm -f conftest.er1
25106
 
  cat conftest.err >&5
25107
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108
 
  (exit $ac_status); } &&
25109
 
         { ac_try='test -z "$ac_c_werror_flag"
25110
 
                         || test ! -s conftest.err'
25111
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25112
 
  (eval $ac_try) 2>&5
25113
 
  ac_status=$?
25114
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115
 
  (exit $ac_status); }; } &&
25116
 
         { ac_try='test -s conftest.$ac_objext'
25117
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25118
 
  (eval $ac_try) 2>&5
25119
 
  ac_status=$?
25120
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121
 
  (exit $ac_status); }; }; then
25122
 
  ac_header_compiler=yes
25123
 
else
25124
 
  echo "$as_me: failed program was:" >&5
25125
 
sed 's/^/| /' conftest.$ac_ext >&5
25126
 
 
25127
 
ac_header_compiler=no
25128
 
fi
25129
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25130
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25131
 
echo "${ECHO_T}$ac_header_compiler" >&6
25132
 
 
25133
 
# Is the header present?
25134
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
25135
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25136
 
cat >conftest.$ac_ext <<_ACEOF
25137
 
/* confdefs.h.  */
25138
 
_ACEOF
25139
 
cat confdefs.h >>conftest.$ac_ext
25140
 
cat >>conftest.$ac_ext <<_ACEOF
25141
 
/* end confdefs.h.  */
25142
 
#include <$ac_header>
25143
 
_ACEOF
25144
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25145
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25146
 
  ac_status=$?
25147
 
  grep -v '^ *+' conftest.er1 >conftest.err
25148
 
  rm -f conftest.er1
25149
 
  cat conftest.err >&5
25150
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151
 
  (exit $ac_status); } >/dev/null; then
25152
 
  if test -s conftest.err; then
25153
 
    ac_cpp_err=$ac_c_preproc_warn_flag
25154
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25155
 
  else
25156
 
    ac_cpp_err=
25157
 
  fi
25158
 
else
25159
 
  ac_cpp_err=yes
25160
 
fi
25161
 
if test -z "$ac_cpp_err"; then
25162
 
  ac_header_preproc=yes
25163
 
else
25164
 
  echo "$as_me: failed program was:" >&5
25165
 
sed 's/^/| /' conftest.$ac_ext >&5
25166
 
 
25167
 
  ac_header_preproc=no
25168
 
fi
25169
 
rm -f conftest.err conftest.$ac_ext
25170
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25171
 
echo "${ECHO_T}$ac_header_preproc" >&6
25172
 
 
25173
 
# So?  What about this header?
25174
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25175
 
  yes:no: )
25176
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25177
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25178
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25179
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25180
 
    ac_header_preproc=yes
25181
 
    ;;
25182
 
  no:yes:* )
25183
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25184
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25185
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25186
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25187
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25188
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25189
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25190
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25191
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25192
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25193
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25194
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25195
 
    (
25196
 
      cat <<\_ASBOX
25197
 
## ------------------------------- ##
25198
 
## Report this to curl-bug@haxx.se ##
25199
 
## ------------------------------- ##
25200
 
_ASBOX
25201
 
    ) |
25202
 
      sed "s/^/$as_me: WARNING:     /" >&2
25203
 
    ;;
25204
 
esac
25205
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
25206
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25207
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
25208
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25209
 
else
25210
 
  eval "$as_ac_Header=\$ac_header_preproc"
25211
 
fi
25212
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25213
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25214
 
 
25215
 
fi
25216
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
25217
 
  cat >>confdefs.h <<_ACEOF
25218
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25219
 
_ACEOF
25220
 
 
25221
 
fi
25222
 
 
25223
 
done
25224
 
 
25225
 
fi
25226
 
 
25227
 
 
25228
 
 
25229
 
 
25230
 
    echo "$as_me:$LINENO: checking CA cert bundle install path" >&5
25231
 
echo $ECHO_N "checking CA cert bundle install path... $ECHO_C" >&6
25232
 
 
25233
 
 
25234
 
# Check whether --with-ca-bundle or --without-ca-bundle was given.
25235
 
if test "${with_ca_bundle+set}" = set; then
25236
 
  withval="$with_ca_bundle"
25237
 
   ca="$withval"
25238
 
else
25239
 
 
25240
 
      if test "x$prefix" != xNONE; then
25241
 
        ca="\${prefix}/share/curl/curl-ca-bundle.crt"
25242
 
      else
25243
 
        ca="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25244
 
      fi
25245
 
 
25246
 
fi;
25247
 
 
25248
 
    if test X"$OPT_SSL" = Xno; then
25249
 
      ca="no"
25250
 
    fi
25251
 
 
25252
 
    if test "x$ca" != "xno"; then
25253
 
      CURL_CA_BUNDLE='"'$ca'"'
25254
 
 
25255
 
    fi
25256
 
    echo "$as_me:$LINENO: result: $ca" >&5
25257
 
echo "${ECHO_T}$ca" >&6
25258
 
 
25259
 
 
25260
 
 
25261
 
 
25262
 
 
25263
 
 
25264
 
for ac_func in RAND_status \
25265
 
                    RAND_screen \
25266
 
                    RAND_egd \
25267
 
                    CRYPTO_cleanup_all_ex_data
25268
 
do
25269
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25270
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
25271
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25272
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
25273
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25274
 
else
25275
 
  cat >conftest.$ac_ext <<_ACEOF
25276
 
/* confdefs.h.  */
25277
 
_ACEOF
25278
 
cat confdefs.h >>conftest.$ac_ext
25279
 
cat >>conftest.$ac_ext <<_ACEOF
25280
 
/* end confdefs.h.  */
25281
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25282
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25283
 
#define $ac_func innocuous_$ac_func
25284
 
 
25285
 
/* System header to define __stub macros and hopefully few prototypes,
25286
 
    which can conflict with char $ac_func (); below.
25287
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25288
 
    <limits.h> exists even on freestanding compilers.  */
25289
 
 
25290
 
#ifdef __STDC__
25291
 
# include <limits.h>
25292
 
#else
25293
 
# include <assert.h>
25294
 
#endif
25295
 
 
25296
 
#undef $ac_func
25297
 
 
25298
 
/* Override any gcc2 internal prototype to avoid an error.  */
25299
 
#ifdef __cplusplus
25300
 
extern "C"
25301
 
{
25302
 
#endif
25303
 
/* We use char because int might match the return type of a gcc2
25304
 
   builtin and then its argument prototype would still apply.  */
25305
 
char $ac_func ();
25306
 
/* The GNU C library defines this for functions which it implements
25307
 
    to always fail with ENOSYS.  Some functions are actually named
25308
 
    something starting with __ and the normal name is an alias.  */
25309
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25310
 
choke me
25311
 
#else
25312
 
char (*f) () = $ac_func;
25313
 
#endif
25314
 
#ifdef __cplusplus
25315
 
}
25316
 
#endif
25317
 
 
25318
 
int
25319
 
main ()
25320
 
{
25321
 
return f != $ac_func;
25322
 
  ;
25323
 
  return 0;
25324
 
}
25325
 
_ACEOF
25326
 
rm -f conftest.$ac_objext conftest$ac_exeext
25327
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25328
 
  (eval $ac_link) 2>conftest.er1
25329
 
  ac_status=$?
25330
 
  grep -v '^ *+' conftest.er1 >conftest.err
25331
 
  rm -f conftest.er1
25332
 
  cat conftest.err >&5
25333
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334
 
  (exit $ac_status); } &&
25335
 
         { ac_try='test -z "$ac_c_werror_flag"
25336
 
                         || test ! -s conftest.err'
25337
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25338
 
  (eval $ac_try) 2>&5
25339
 
  ac_status=$?
25340
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341
 
  (exit $ac_status); }; } &&
25342
 
         { ac_try='test -s conftest$ac_exeext'
25343
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25344
 
  (eval $ac_try) 2>&5
25345
 
  ac_status=$?
25346
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347
 
  (exit $ac_status); }; }; then
25348
 
  eval "$as_ac_var=yes"
25349
 
else
25350
 
  echo "$as_me: failed program was:" >&5
25351
 
sed 's/^/| /' conftest.$ac_ext >&5
25352
 
 
25353
 
eval "$as_ac_var=no"
25354
 
fi
25355
 
rm -f conftest.err conftest.$ac_objext \
25356
 
      conftest$ac_exeext conftest.$ac_ext
25357
 
fi
25358
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25359
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25360
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
25361
 
  cat >>confdefs.h <<_ACEOF
25362
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25363
 
_ACEOF
25364
 
 
25365
 
fi
25366
 
done
25367
 
 
25368
 
 
25369
 
  fi
25370
 
 
25371
 
  if test X"$OPT_SSL" != Xoff &&
25372
 
     test "$OPENSSL_ENABLED" != "1"; then
25373
 
    { { echo "$as_me:$LINENO: error: OpenSSL libs and/or directories were not found where specified!" >&5
25374
 
echo "$as_me: error: OpenSSL libs and/or directories were not found where specified!" >&2;}
25375
 
   { (exit 1); exit 1; }; }
25376
 
  fi
25377
 
 
25378
 
fi
25379
 
 
25380
 
 
25381
 
 
25382
 
if test x$ca != xno; then
25383
 
  CABUNDLE_TRUE=
25384
 
  CABUNDLE_FALSE='#'
25385
 
else
25386
 
  CABUNDLE_TRUE='#'
25387
 
  CABUNDLE_FALSE=
25388
 
fi
25389
 
 
25390
 
 
25391
 
 
25392
 
 
25393
 
_cppflags=$CPPFLAGS
25394
 
_ldflags=$LDFLAGS
25395
 
OPT_ZLIB="/usr/local"
25396
 
 
25397
 
# Check whether --with-zlib or --without-zlib was given.
25398
 
if test "${with_zlib+set}" = set; then
25399
 
  withval="$with_zlib"
25400
 
  OPT_ZLIB="$withval"
25401
 
fi;
25402
 
 
25403
 
case "$OPT_ZLIB" in
25404
 
  no)
25405
 
    { echo "$as_me:$LINENO: WARNING: zlib disabled" >&5
25406
 
echo "$as_me: WARNING: zlib disabled" >&2;} ;;
25407
 
  *)
25408
 
 
25409
 
    echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
25410
 
echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
25411
 
if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
25412
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25413
 
else
25414
 
  ac_check_lib_save_LIBS=$LIBS
25415
 
LIBS="-lz  $LIBS"
25416
 
cat >conftest.$ac_ext <<_ACEOF
25417
 
/* confdefs.h.  */
25418
 
_ACEOF
25419
 
cat confdefs.h >>conftest.$ac_ext
25420
 
cat >>conftest.$ac_ext <<_ACEOF
25421
 
/* end confdefs.h.  */
25422
 
 
25423
 
/* Override any gcc2 internal prototype to avoid an error.  */
25424
 
#ifdef __cplusplus
25425
 
extern "C"
25426
 
#endif
25427
 
/* We use char because int might match the return type of a gcc2
25428
 
   builtin and then its argument prototype would still apply.  */
25429
 
char inflateEnd ();
25430
 
int
25431
 
main ()
25432
 
{
25433
 
inflateEnd ();
25434
 
  ;
25435
 
  return 0;
25436
 
}
25437
 
_ACEOF
25438
 
rm -f conftest.$ac_objext conftest$ac_exeext
25439
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25440
 
  (eval $ac_link) 2>conftest.er1
25441
 
  ac_status=$?
25442
 
  grep -v '^ *+' conftest.er1 >conftest.err
25443
 
  rm -f conftest.er1
25444
 
  cat conftest.err >&5
25445
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446
 
  (exit $ac_status); } &&
25447
 
         { ac_try='test -z "$ac_c_werror_flag"
25448
 
                         || test ! -s conftest.err'
25449
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25450
 
  (eval $ac_try) 2>&5
25451
 
  ac_status=$?
25452
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453
 
  (exit $ac_status); }; } &&
25454
 
         { ac_try='test -s conftest$ac_exeext'
25455
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25456
 
  (eval $ac_try) 2>&5
25457
 
  ac_status=$?
25458
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459
 
  (exit $ac_status); }; }; then
25460
 
  ac_cv_lib_z_inflateEnd=yes
25461
 
else
25462
 
  echo "$as_me: failed program was:" >&5
25463
 
sed 's/^/| /' conftest.$ac_ext >&5
25464
 
 
25465
 
ac_cv_lib_z_inflateEnd=no
25466
 
fi
25467
 
rm -f conftest.err conftest.$ac_objext \
25468
 
      conftest$ac_exeext conftest.$ac_ext
25469
 
LIBS=$ac_check_lib_save_LIBS
25470
 
fi
25471
 
echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
25472
 
echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
25473
 
if test $ac_cv_lib_z_inflateEnd = yes; then
25474
 
                     HAVE_LIBZ="1"
25475
 
else
25476
 
                     if test -d "$OPT_ZLIB"; then
25477
 
                      CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
25478
 
                      LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
25479
 
                   fi
25480
 
fi
25481
 
 
25482
 
 
25483
 
    if test "${ac_cv_header_zlib_h+set}" = set; then
25484
 
  echo "$as_me:$LINENO: checking for zlib.h" >&5
25485
 
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25486
 
if test "${ac_cv_header_zlib_h+set}" = set; then
25487
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25488
 
fi
25489
 
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25490
 
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25491
 
else
25492
 
  # Is the header compilable?
25493
 
echo "$as_me:$LINENO: checking zlib.h usability" >&5
25494
 
echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25495
 
cat >conftest.$ac_ext <<_ACEOF
25496
 
/* confdefs.h.  */
25497
 
_ACEOF
25498
 
cat confdefs.h >>conftest.$ac_ext
25499
 
cat >>conftest.$ac_ext <<_ACEOF
25500
 
/* end confdefs.h.  */
25501
 
$ac_includes_default
25502
 
#include <zlib.h>
25503
 
_ACEOF
25504
 
rm -f conftest.$ac_objext
25505
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25506
 
  (eval $ac_compile) 2>conftest.er1
25507
 
  ac_status=$?
25508
 
  grep -v '^ *+' conftest.er1 >conftest.err
25509
 
  rm -f conftest.er1
25510
 
  cat conftest.err >&5
25511
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512
 
  (exit $ac_status); } &&
25513
 
         { ac_try='test -z "$ac_c_werror_flag"
25514
 
                         || test ! -s conftest.err'
25515
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25516
 
  (eval $ac_try) 2>&5
25517
 
  ac_status=$?
25518
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519
 
  (exit $ac_status); }; } &&
25520
 
         { ac_try='test -s conftest.$ac_objext'
25521
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25522
 
  (eval $ac_try) 2>&5
25523
 
  ac_status=$?
25524
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525
 
  (exit $ac_status); }; }; then
25526
 
  ac_header_compiler=yes
25527
 
else
25528
 
  echo "$as_me: failed program was:" >&5
25529
 
sed 's/^/| /' conftest.$ac_ext >&5
25530
 
 
25531
 
ac_header_compiler=no
25532
 
fi
25533
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25534
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25535
 
echo "${ECHO_T}$ac_header_compiler" >&6
25536
 
 
25537
 
# Is the header present?
25538
 
echo "$as_me:$LINENO: checking zlib.h presence" >&5
25539
 
echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25540
 
cat >conftest.$ac_ext <<_ACEOF
25541
 
/* confdefs.h.  */
25542
 
_ACEOF
25543
 
cat confdefs.h >>conftest.$ac_ext
25544
 
cat >>conftest.$ac_ext <<_ACEOF
25545
 
/* end confdefs.h.  */
25546
 
#include <zlib.h>
25547
 
_ACEOF
25548
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25549
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25550
 
  ac_status=$?
25551
 
  grep -v '^ *+' conftest.er1 >conftest.err
25552
 
  rm -f conftest.er1
25553
 
  cat conftest.err >&5
25554
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555
 
  (exit $ac_status); } >/dev/null; then
25556
 
  if test -s conftest.err; then
25557
 
    ac_cpp_err=$ac_c_preproc_warn_flag
25558
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25559
 
  else
25560
 
    ac_cpp_err=
25561
 
  fi
25562
 
else
25563
 
  ac_cpp_err=yes
25564
 
fi
25565
 
if test -z "$ac_cpp_err"; then
25566
 
  ac_header_preproc=yes
25567
 
else
25568
 
  echo "$as_me: failed program was:" >&5
25569
 
sed 's/^/| /' conftest.$ac_ext >&5
25570
 
 
25571
 
  ac_header_preproc=no
25572
 
fi
25573
 
rm -f conftest.err conftest.$ac_ext
25574
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25575
 
echo "${ECHO_T}$ac_header_preproc" >&6
25576
 
 
25577
 
# So?  What about this header?
25578
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25579
 
  yes:no: )
25580
 
    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25581
 
echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25582
 
    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25583
 
echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25584
 
    ac_header_preproc=yes
25585
 
    ;;
25586
 
  no:yes:* )
25587
 
    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25588
 
echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
25589
 
    { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
25590
 
echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
25591
 
    { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25592
 
echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25593
 
    { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
25594
 
echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25595
 
    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25596
 
echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
25597
 
    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25598
 
echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
25599
 
    (
25600
 
      cat <<\_ASBOX
25601
 
## ------------------------------- ##
25602
 
## Report this to curl-bug@haxx.se ##
25603
 
## ------------------------------- ##
25604
 
_ASBOX
25605
 
    ) |
25606
 
      sed "s/^/$as_me: WARNING:     /" >&2
25607
 
    ;;
25608
 
esac
25609
 
echo "$as_me:$LINENO: checking for zlib.h" >&5
25610
 
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25611
 
if test "${ac_cv_header_zlib_h+set}" = set; then
25612
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25613
 
else
25614
 
  ac_cv_header_zlib_h=$ac_header_preproc
25615
 
fi
25616
 
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25617
 
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25618
 
 
25619
 
fi
25620
 
if test $ac_cv_header_zlib_h = yes; then
25621
 
 
25622
 
            HAVE_ZLIB_H="1"
25623
 
            if test "$HAVE_LIBZ" != "1"; then
25624
 
        echo "$as_me:$LINENO: checking for gzread in -lz" >&5
25625
 
echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6
25626
 
if test "${ac_cv_lib_z_gzread+set}" = set; then
25627
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25628
 
else
25629
 
  ac_check_lib_save_LIBS=$LIBS
25630
 
LIBS="-lz  $LIBS"
25631
 
cat >conftest.$ac_ext <<_ACEOF
25632
 
/* confdefs.h.  */
25633
 
_ACEOF
25634
 
cat confdefs.h >>conftest.$ac_ext
25635
 
cat >>conftest.$ac_ext <<_ACEOF
25636
 
/* end confdefs.h.  */
25637
 
 
25638
 
/* Override any gcc2 internal prototype to avoid an error.  */
25639
 
#ifdef __cplusplus
25640
 
extern "C"
25641
 
#endif
25642
 
/* We use char because int might match the return type of a gcc2
25643
 
   builtin and then its argument prototype would still apply.  */
25644
 
char gzread ();
25645
 
int
25646
 
main ()
25647
 
{
25648
 
gzread ();
25649
 
  ;
25650
 
  return 0;
25651
 
}
25652
 
_ACEOF
25653
 
rm -f conftest.$ac_objext conftest$ac_exeext
25654
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25655
 
  (eval $ac_link) 2>conftest.er1
25656
 
  ac_status=$?
25657
 
  grep -v '^ *+' conftest.er1 >conftest.err
25658
 
  rm -f conftest.er1
25659
 
  cat conftest.err >&5
25660
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25661
 
  (exit $ac_status); } &&
25662
 
         { ac_try='test -z "$ac_c_werror_flag"
25663
 
                         || test ! -s conftest.err'
25664
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25665
 
  (eval $ac_try) 2>&5
25666
 
  ac_status=$?
25667
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668
 
  (exit $ac_status); }; } &&
25669
 
         { ac_try='test -s conftest$ac_exeext'
25670
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25671
 
  (eval $ac_try) 2>&5
25672
 
  ac_status=$?
25673
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674
 
  (exit $ac_status); }; }; then
25675
 
  ac_cv_lib_z_gzread=yes
25676
 
else
25677
 
  echo "$as_me: failed program was:" >&5
25678
 
sed 's/^/| /' conftest.$ac_ext >&5
25679
 
 
25680
 
ac_cv_lib_z_gzread=no
25681
 
fi
25682
 
rm -f conftest.err conftest.$ac_objext \
25683
 
      conftest$ac_exeext conftest.$ac_ext
25684
 
LIBS=$ac_check_lib_save_LIBS
25685
 
fi
25686
 
echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
25687
 
echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6
25688
 
if test $ac_cv_lib_z_gzread = yes; then
25689
 
 
25690
 
                                          HAVE_LIBZ="1"
25691
 
 
25692
 
else
25693
 
   CPPFLAGS=$_cppflags
25694
 
                     LDFLAGS=$_ldflags
25695
 
fi
25696
 
 
25697
 
      fi
25698
 
 
25699
 
else
25700
 
 
25701
 
                CPPFLAGS=$_cppflags
25702
 
        LDFLAGS=$_ldflags
25703
 
 
25704
 
fi
25705
 
 
25706
 
 
25707
 
 
25708
 
    if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
25709
 
    then
25710
 
      { echo "$as_me:$LINENO: WARNING: configure found only the libz lib, not the header file!" >&5
25711
 
echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
25712
 
    elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
25713
 
    then
25714
 
      { echo "$as_me:$LINENO: WARNING: configure found only the libz header file, not the lib!" >&5
25715
 
echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
25716
 
    elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
25717
 
    then
25718
 
 
25719
 
 
25720
 
cat >>confdefs.h <<\_ACEOF
25721
 
#define HAVE_ZLIB_H 1
25722
 
_ACEOF
25723
 
 
25724
 
 
25725
 
cat >>confdefs.h <<\_ACEOF
25726
 
#define HAVE_LIBZ 1
25727
 
_ACEOF
25728
 
 
25729
 
 
25730
 
      LIBS="$LIBS -lz"
25731
 
 
25732
 
            AMFIXLIB="1"
25733
 
      { echo "$as_me:$LINENO: found both libz and libz.h header" >&5
25734
 
echo "$as_me: found both libz and libz.h header" >&6;}
25735
 
    fi
25736
 
    ;;
25737
 
esac
25738
 
 
25739
 
 
25740
 
 
25741
 
if test x"$AMFIXLIB" = x1; then
25742
 
  HAVE_LIBZ_TRUE=
25743
 
  HAVE_LIBZ_FALSE='#'
25744
 
else
25745
 
  HAVE_LIBZ_TRUE='#'
25746
 
  HAVE_LIBZ_FALSE=
25747
 
fi
25748
 
 
25749
 
 
25750
 
OPT_THREAD=on
25751
 
 
25752
 
echo "$as_me:$LINENO: checking AIX 4.3 or later" >&5
25753
 
echo $ECHO_N "checking AIX 4.3 or later... $ECHO_C" >&6
25754
 
cat >conftest.$ac_ext <<_ACEOF
25755
 
 
25756
 
#if defined(_AIX) && defined(_AIX43)
25757
 
printf("just fine");
25758
 
#else
25759
 
#error "this is not AIX 4.3 or later"
25760
 
#endif
25761
 
 
25762
 
_ACEOF
25763
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25764
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25765
 
  ac_status=$?
25766
 
  grep -v '^ *+' conftest.er1 >conftest.err
25767
 
  rm -f conftest.er1
25768
 
  cat conftest.err >&5
25769
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770
 
  (exit $ac_status); } >/dev/null; then
25771
 
  if test -s conftest.err; then
25772
 
    ac_cpp_err=$ac_c_preproc_warn_flag
25773
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25774
 
  else
25775
 
    ac_cpp_err=
25776
 
  fi
25777
 
else
25778
 
  ac_cpp_err=yes
25779
 
fi
25780
 
if test -z "$ac_cpp_err"; then
25781
 
   echo "$as_me:$LINENO: result: yes" >&5
25782
 
echo "${ECHO_T}yes" >&6
25783
 
   RECENTAIX=yes
25784
 
   OPT_THREAD=off
25785
 
else
25786
 
  echo "$as_me: failed program was:" >&5
25787
 
sed 's/^/| /' conftest.$ac_ext >&5
25788
 
 
25789
 
   echo "$as_me:$LINENO: result: no" >&5
25790
 
echo "${ECHO_T}no" >&6
25791
 
 
25792
 
fi
25793
 
rm -f conftest.err conftest.$ac_ext
25794
 
 
25795
 
# Check whether --enable-thread or --disable-thread was given.
25796
 
if test "${enable_thread+set}" = set; then
25797
 
  enableval="$enable_thread"
25798
 
   case "$enableval" in
25799
 
  no)
25800
 
    OPT_THREAD=off
25801
 
    { echo "$as_me:$LINENO: WARNING: libcurl will not get built using thread-safe functions" >&5
25802
 
echo "$as_me: WARNING: libcurl will not get built using thread-safe functions" >&2;}
25803
 
    ;;
25804
 
  *)
25805
 
    ;;
25806
 
  esac
25807
 
 
25808
 
 
25809
 
fi;
25810
 
 
25811
 
if test X"$OPT_THREAD" = Xoff
25812
 
then
25813
 
 
25814
 
cat >>confdefs.h <<\_ACEOF
25815
 
#define DISABLED_THREADSAFE 1
25816
 
_ACEOF
25817
 
 
25818
 
else
25819
 
  if test "$ipv6" != "yes"; then
25820
 
 
25821
 
 
25822
 
for ac_func in gethostbyname_r
25823
 
do
25824
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25825
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
25826
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25827
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
25828
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25829
 
else
25830
 
  cat >conftest.$ac_ext <<_ACEOF
25831
 
/* confdefs.h.  */
25832
 
_ACEOF
25833
 
cat confdefs.h >>conftest.$ac_ext
25834
 
cat >>conftest.$ac_ext <<_ACEOF
25835
 
/* end confdefs.h.  */
25836
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25837
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25838
 
#define $ac_func innocuous_$ac_func
25839
 
 
25840
 
/* System header to define __stub macros and hopefully few prototypes,
25841
 
    which can conflict with char $ac_func (); below.
25842
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25843
 
    <limits.h> exists even on freestanding compilers.  */
25844
 
 
25845
 
#ifdef __STDC__
25846
 
# include <limits.h>
25847
 
#else
25848
 
# include <assert.h>
25849
 
#endif
25850
 
 
25851
 
#undef $ac_func
25852
 
 
25853
 
/* Override any gcc2 internal prototype to avoid an error.  */
25854
 
#ifdef __cplusplus
25855
 
extern "C"
25856
 
{
25857
 
#endif
25858
 
/* We use char because int might match the return type of a gcc2
25859
 
   builtin and then its argument prototype would still apply.  */
25860
 
char $ac_func ();
25861
 
/* The GNU C library defines this for functions which it implements
25862
 
    to always fail with ENOSYS.  Some functions are actually named
25863
 
    something starting with __ and the normal name is an alias.  */
25864
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25865
 
choke me
25866
 
#else
25867
 
char (*f) () = $ac_func;
25868
 
#endif
25869
 
#ifdef __cplusplus
25870
 
}
25871
 
#endif
25872
 
 
25873
 
int
25874
 
main ()
25875
 
{
25876
 
return f != $ac_func;
25877
 
  ;
25878
 
  return 0;
25879
 
}
25880
 
_ACEOF
25881
 
rm -f conftest.$ac_objext conftest$ac_exeext
25882
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25883
 
  (eval $ac_link) 2>conftest.er1
25884
 
  ac_status=$?
25885
 
  grep -v '^ *+' conftest.er1 >conftest.err
25886
 
  rm -f conftest.er1
25887
 
  cat conftest.err >&5
25888
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889
 
  (exit $ac_status); } &&
25890
 
         { ac_try='test -z "$ac_c_werror_flag"
25891
 
                         || test ! -s conftest.err'
25892
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25893
 
  (eval $ac_try) 2>&5
25894
 
  ac_status=$?
25895
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896
 
  (exit $ac_status); }; } &&
25897
 
         { ac_try='test -s conftest$ac_exeext'
25898
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25899
 
  (eval $ac_try) 2>&5
25900
 
  ac_status=$?
25901
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902
 
  (exit $ac_status); }; }; then
25903
 
  eval "$as_ac_var=yes"
25904
 
else
25905
 
  echo "$as_me: failed program was:" >&5
25906
 
sed 's/^/| /' conftest.$ac_ext >&5
25907
 
 
25908
 
eval "$as_ac_var=no"
25909
 
fi
25910
 
rm -f conftest.err conftest.$ac_objext \
25911
 
      conftest$ac_exeext conftest.$ac_ext
25912
 
fi
25913
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25914
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25915
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
25916
 
  cat >>confdefs.h <<_ACEOF
25917
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25918
 
_ACEOF
25919
 
 
25920
 
    echo "$as_me:$LINENO: checking if gethostbyname_r takes 3 arguments" >&5
25921
 
echo $ECHO_N "checking if gethostbyname_r takes 3 arguments... $ECHO_C" >&6
25922
 
    cat >conftest.$ac_ext <<_ACEOF
25923
 
/* confdefs.h.  */
25924
 
_ACEOF
25925
 
cat confdefs.h >>conftest.$ac_ext
25926
 
cat >>conftest.$ac_ext <<_ACEOF
25927
 
/* end confdefs.h.  */
25928
 
 
25929
 
#include <string.h>
25930
 
#include <sys/types.h>
25931
 
#include <netdb.h>
25932
 
#undef NULL
25933
 
#define NULL (void *)0
25934
 
 
25935
 
int
25936
 
gethostbyname_r(const char *, struct hostent *, struct hostent_data *);
25937
 
int
25938
 
main ()
25939
 
{
25940
 
 
25941
 
struct hostent_data data;
25942
 
gethostbyname_r(NULL, NULL, NULL);
25943
 
  ;
25944
 
  return 0;
25945
 
}
25946
 
_ACEOF
25947
 
rm -f conftest.$ac_objext
25948
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25949
 
  (eval $ac_compile) 2>conftest.er1
25950
 
  ac_status=$?
25951
 
  grep -v '^ *+' conftest.er1 >conftest.err
25952
 
  rm -f conftest.er1
25953
 
  cat conftest.err >&5
25954
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955
 
  (exit $ac_status); } &&
25956
 
         { ac_try='test -z "$ac_c_werror_flag"
25957
 
                         || test ! -s conftest.err'
25958
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25959
 
  (eval $ac_try) 2>&5
25960
 
  ac_status=$?
25961
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962
 
  (exit $ac_status); }; } &&
25963
 
         { ac_try='test -s conftest.$ac_objext'
25964
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965
 
  (eval $ac_try) 2>&5
25966
 
  ac_status=$?
25967
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968
 
  (exit $ac_status); }; }; then
25969
 
 
25970
 
      echo "$as_me:$LINENO: result: yes" >&5
25971
 
echo "${ECHO_T}yes" >&6
25972
 
 
25973
 
cat >>confdefs.h <<\_ACEOF
25974
 
#define HAVE_GETHOSTBYNAME_R_3 1
25975
 
_ACEOF
25976
 
 
25977
 
      ac_cv_gethostbyname_args=3
25978
 
else
25979
 
  echo "$as_me: failed program was:" >&5
25980
 
sed 's/^/| /' conftest.$ac_ext >&5
25981
 
 
25982
 
 
25983
 
      echo "$as_me:$LINENO: result: no" >&5
25984
 
echo "${ECHO_T}no" >&6
25985
 
      echo "$as_me:$LINENO: checking if gethostbyname_r with -D_REENTRANT takes 3 arguments" >&5
25986
 
echo $ECHO_N "checking if gethostbyname_r with -D_REENTRANT takes 3 arguments... $ECHO_C" >&6
25987
 
      cat >conftest.$ac_ext <<_ACEOF
25988
 
/* confdefs.h.  */
25989
 
_ACEOF
25990
 
cat confdefs.h >>conftest.$ac_ext
25991
 
cat >>conftest.$ac_ext <<_ACEOF
25992
 
/* end confdefs.h.  */
25993
 
 
25994
 
#define _REENTRANT
25995
 
 
25996
 
#include <string.h>
25997
 
#include <sys/types.h>
25998
 
#include <netdb.h>
25999
 
#undef NULL
26000
 
#define NULL (void *)0
26001
 
 
26002
 
int
26003
 
gethostbyname_r(const char *,struct hostent *, struct hostent_data *);
26004
 
int
26005
 
main ()
26006
 
{
26007
 
 
26008
 
struct hostent_data data;
26009
 
gethostbyname_r(NULL, NULL, NULL);
26010
 
  ;
26011
 
  return 0;
26012
 
}
26013
 
_ACEOF
26014
 
rm -f conftest.$ac_objext
26015
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26016
 
  (eval $ac_compile) 2>conftest.er1
26017
 
  ac_status=$?
26018
 
  grep -v '^ *+' conftest.er1 >conftest.err
26019
 
  rm -f conftest.er1
26020
 
  cat conftest.err >&5
26021
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022
 
  (exit $ac_status); } &&
26023
 
         { ac_try='test -z "$ac_c_werror_flag"
26024
 
                         || test ! -s conftest.err'
26025
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26026
 
  (eval $ac_try) 2>&5
26027
 
  ac_status=$?
26028
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029
 
  (exit $ac_status); }; } &&
26030
 
         { ac_try='test -s conftest.$ac_objext'
26031
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26032
 
  (eval $ac_try) 2>&5
26033
 
  ac_status=$?
26034
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035
 
  (exit $ac_status); }; }; then
26036
 
 
26037
 
        echo "$as_me:$LINENO: result: yes" >&5
26038
 
echo "${ECHO_T}yes" >&6
26039
 
 
26040
 
cat >>confdefs.h <<\_ACEOF
26041
 
#define HAVE_GETHOSTBYNAME_R_3 1
26042
 
_ACEOF
26043
 
 
26044
 
 
26045
 
cat >>confdefs.h <<\_ACEOF
26046
 
#define NEED_REENTRANT 1
26047
 
_ACEOF
26048
 
 
26049
 
        ac_cv_gethostbyname_args=3
26050
 
else
26051
 
  echo "$as_me: failed program was:" >&5
26052
 
sed 's/^/| /' conftest.$ac_ext >&5
26053
 
 
26054
 
 
26055
 
        echo "$as_me:$LINENO: result: no" >&5
26056
 
echo "${ECHO_T}no" >&6
26057
 
        echo "$as_me:$LINENO: checking if gethostbyname_r takes 5 arguments" >&5
26058
 
echo $ECHO_N "checking if gethostbyname_r takes 5 arguments... $ECHO_C" >&6
26059
 
        cat >conftest.$ac_ext <<_ACEOF
26060
 
/* confdefs.h.  */
26061
 
_ACEOF
26062
 
cat confdefs.h >>conftest.$ac_ext
26063
 
cat >>conftest.$ac_ext <<_ACEOF
26064
 
/* end confdefs.h.  */
26065
 
 
26066
 
#include <sys/types.h>
26067
 
#include <netdb.h>
26068
 
#undef NULL
26069
 
#define NULL (void *)0
26070
 
 
26071
 
struct hostent *
26072
 
gethostbyname_r(const char *, struct hostent *, char *, int, int *);
26073
 
int
26074
 
main ()
26075
 
{
26076
 
 
26077
 
gethostbyname_r(NULL, NULL, NULL, 0, NULL);
26078
 
  ;
26079
 
  return 0;
26080
 
}
26081
 
_ACEOF
26082
 
rm -f conftest.$ac_objext
26083
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26084
 
  (eval $ac_compile) 2>conftest.er1
26085
 
  ac_status=$?
26086
 
  grep -v '^ *+' conftest.er1 >conftest.err
26087
 
  rm -f conftest.er1
26088
 
  cat conftest.err >&5
26089
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090
 
  (exit $ac_status); } &&
26091
 
         { ac_try='test -z "$ac_c_werror_flag"
26092
 
                         || test ! -s conftest.err'
26093
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094
 
  (eval $ac_try) 2>&5
26095
 
  ac_status=$?
26096
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097
 
  (exit $ac_status); }; } &&
26098
 
         { ac_try='test -s conftest.$ac_objext'
26099
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26100
 
  (eval $ac_try) 2>&5
26101
 
  ac_status=$?
26102
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103
 
  (exit $ac_status); }; }; then
26104
 
 
26105
 
          echo "$as_me:$LINENO: result: yes" >&5
26106
 
echo "${ECHO_T}yes" >&6
26107
 
 
26108
 
cat >>confdefs.h <<\_ACEOF
26109
 
#define HAVE_GETHOSTBYNAME_R_5 1
26110
 
_ACEOF
26111
 
 
26112
 
          ac_cv_gethostbyname_args=5
26113
 
else
26114
 
  echo "$as_me: failed program was:" >&5
26115
 
sed 's/^/| /' conftest.$ac_ext >&5
26116
 
 
26117
 
 
26118
 
          echo "$as_me:$LINENO: result: no" >&5
26119
 
echo "${ECHO_T}no" >&6
26120
 
          echo "$as_me:$LINENO: checking if gethostbyname_r takes 6 arguments" >&5
26121
 
echo $ECHO_N "checking if gethostbyname_r takes 6 arguments... $ECHO_C" >&6
26122
 
          cat >conftest.$ac_ext <<_ACEOF
26123
 
/* confdefs.h.  */
26124
 
_ACEOF
26125
 
cat confdefs.h >>conftest.$ac_ext
26126
 
cat >>conftest.$ac_ext <<_ACEOF
26127
 
/* end confdefs.h.  */
26128
 
 
26129
 
#include <sys/types.h>
26130
 
#include <netdb.h>
26131
 
#undef NULL
26132
 
#define NULL (void *)0
26133
 
 
26134
 
int
26135
 
gethostbyname_r(const char *, struct hostent *, char *, size_t,
26136
 
struct hostent **, int *);
26137
 
int
26138
 
main ()
26139
 
{
26140
 
 
26141
 
gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL);
26142
 
  ;
26143
 
  return 0;
26144
 
}
26145
 
_ACEOF
26146
 
rm -f conftest.$ac_objext
26147
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26148
 
  (eval $ac_compile) 2>conftest.er1
26149
 
  ac_status=$?
26150
 
  grep -v '^ *+' conftest.er1 >conftest.err
26151
 
  rm -f conftest.er1
26152
 
  cat conftest.err >&5
26153
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154
 
  (exit $ac_status); } &&
26155
 
         { ac_try='test -z "$ac_c_werror_flag"
26156
 
                         || test ! -s conftest.err'
26157
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26158
 
  (eval $ac_try) 2>&5
26159
 
  ac_status=$?
26160
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161
 
  (exit $ac_status); }; } &&
26162
 
         { ac_try='test -s conftest.$ac_objext'
26163
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26164
 
  (eval $ac_try) 2>&5
26165
 
  ac_status=$?
26166
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26167
 
  (exit $ac_status); }; }; then
26168
 
 
26169
 
            echo "$as_me:$LINENO: result: yes" >&5
26170
 
echo "${ECHO_T}yes" >&6
26171
 
 
26172
 
cat >>confdefs.h <<\_ACEOF
26173
 
#define HAVE_GETHOSTBYNAME_R_6 1
26174
 
_ACEOF
26175
 
 
26176
 
            ac_cv_gethostbyname_args=6
26177
 
else
26178
 
  echo "$as_me: failed program was:" >&5
26179
 
sed 's/^/| /' conftest.$ac_ext >&5
26180
 
 
26181
 
 
26182
 
            echo "$as_me:$LINENO: result: no" >&5
26183
 
echo "${ECHO_T}no" >&6
26184
 
            have_missing_r_funcs="$have_missing_r_funcs gethostbyname_r"
26185
 
fi
26186
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26187
 
fi
26188
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26189
 
fi
26190
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26191
 
fi
26192
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26193
 
fi
26194
 
done
26195
 
 
26196
 
 
26197
 
if test "$ac_cv_func_gethostbyname_r" = "yes"; then
26198
 
  if test "$ac_cv_gethostbyname_args" = "0"; then
26199
 
            { { echo "$as_me:$LINENO: error: couldn't figure out how to use gethostbyname_r()" >&5
26200
 
echo "$as_me: error: couldn't figure out how to use gethostbyname_r()" >&2;}
26201
 
   { (exit 1); exit 1; }; }
26202
 
  fi
26203
 
fi
26204
 
 
26205
 
 
26206
 
 
26207
 
 
26208
 
for ac_func in gethostbyaddr_r
26209
 
do
26210
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26211
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
26212
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26213
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
26214
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
26215
 
else
26216
 
  cat >conftest.$ac_ext <<_ACEOF
26217
 
/* confdefs.h.  */
26218
 
_ACEOF
26219
 
cat confdefs.h >>conftest.$ac_ext
26220
 
cat >>conftest.$ac_ext <<_ACEOF
26221
 
/* end confdefs.h.  */
26222
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26223
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26224
 
#define $ac_func innocuous_$ac_func
26225
 
 
26226
 
/* System header to define __stub macros and hopefully few prototypes,
26227
 
    which can conflict with char $ac_func (); below.
26228
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26229
 
    <limits.h> exists even on freestanding compilers.  */
26230
 
 
26231
 
#ifdef __STDC__
26232
 
# include <limits.h>
26233
 
#else
26234
 
# include <assert.h>
26235
 
#endif
26236
 
 
26237
 
#undef $ac_func
26238
 
 
26239
 
/* Override any gcc2 internal prototype to avoid an error.  */
26240
 
#ifdef __cplusplus
26241
 
extern "C"
26242
 
{
26243
 
#endif
26244
 
/* We use char because int might match the return type of a gcc2
26245
 
   builtin and then its argument prototype would still apply.  */
26246
 
char $ac_func ();
26247
 
/* The GNU C library defines this for functions which it implements
26248
 
    to always fail with ENOSYS.  Some functions are actually named
26249
 
    something starting with __ and the normal name is an alias.  */
26250
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26251
 
choke me
26252
 
#else
26253
 
char (*f) () = $ac_func;
26254
 
#endif
26255
 
#ifdef __cplusplus
26256
 
}
26257
 
#endif
26258
 
 
26259
 
int
26260
 
main ()
26261
 
{
26262
 
return f != $ac_func;
26263
 
  ;
26264
 
  return 0;
26265
 
}
26266
 
_ACEOF
26267
 
rm -f conftest.$ac_objext conftest$ac_exeext
26268
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26269
 
  (eval $ac_link) 2>conftest.er1
26270
 
  ac_status=$?
26271
 
  grep -v '^ *+' conftest.er1 >conftest.err
26272
 
  rm -f conftest.er1
26273
 
  cat conftest.err >&5
26274
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275
 
  (exit $ac_status); } &&
26276
 
         { ac_try='test -z "$ac_c_werror_flag"
26277
 
                         || test ! -s conftest.err'
26278
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26279
 
  (eval $ac_try) 2>&5
26280
 
  ac_status=$?
26281
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26282
 
  (exit $ac_status); }; } &&
26283
 
         { ac_try='test -s conftest$ac_exeext'
26284
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26285
 
  (eval $ac_try) 2>&5
26286
 
  ac_status=$?
26287
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26288
 
  (exit $ac_status); }; }; then
26289
 
  eval "$as_ac_var=yes"
26290
 
else
26291
 
  echo "$as_me: failed program was:" >&5
26292
 
sed 's/^/| /' conftest.$ac_ext >&5
26293
 
 
26294
 
eval "$as_ac_var=no"
26295
 
fi
26296
 
rm -f conftest.err conftest.$ac_objext \
26297
 
      conftest$ac_exeext conftest.$ac_ext
26298
 
fi
26299
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26300
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26301
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
26302
 
  cat >>confdefs.h <<_ACEOF
26303
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26304
 
_ACEOF
26305
 
 
26306
 
    echo "$as_me:$LINENO: checking if gethostbyaddr_r takes 5 arguments" >&5
26307
 
echo $ECHO_N "checking if gethostbyaddr_r takes 5 arguments... $ECHO_C" >&6
26308
 
    cat >conftest.$ac_ext <<_ACEOF
26309
 
/* confdefs.h.  */
26310
 
_ACEOF
26311
 
cat confdefs.h >>conftest.$ac_ext
26312
 
cat >>conftest.$ac_ext <<_ACEOF
26313
 
/* end confdefs.h.  */
26314
 
 
26315
 
#include <sys/types.h>
26316
 
#include <netdb.h>
26317
 
int
26318
 
main ()
26319
 
{
26320
 
 
26321
 
char * address;
26322
 
int length;
26323
 
int type;
26324
 
struct hostent h;
26325
 
struct hostent_data hdata;
26326
 
int rc;
26327
 
rc = gethostbyaddr_r(address, length, type, &h, &hdata);
26328
 
  ;
26329
 
  return 0;
26330
 
}
26331
 
_ACEOF
26332
 
rm -f conftest.$ac_objext
26333
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26334
 
  (eval $ac_compile) 2>conftest.er1
26335
 
  ac_status=$?
26336
 
  grep -v '^ *+' conftest.er1 >conftest.err
26337
 
  rm -f conftest.er1
26338
 
  cat conftest.err >&5
26339
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26340
 
  (exit $ac_status); } &&
26341
 
         { ac_try='test -z "$ac_c_werror_flag"
26342
 
                         || test ! -s conftest.err'
26343
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26344
 
  (eval $ac_try) 2>&5
26345
 
  ac_status=$?
26346
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347
 
  (exit $ac_status); }; } &&
26348
 
         { ac_try='test -s conftest.$ac_objext'
26349
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26350
 
  (eval $ac_try) 2>&5
26351
 
  ac_status=$?
26352
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353
 
  (exit $ac_status); }; }; then
26354
 
 
26355
 
      echo "$as_me:$LINENO: result: yes" >&5
26356
 
echo "${ECHO_T}yes" >&6
26357
 
 
26358
 
cat >>confdefs.h <<\_ACEOF
26359
 
#define HAVE_GETHOSTBYADDR_R_5 1
26360
 
_ACEOF
26361
 
 
26362
 
      ac_cv_gethostbyaddr_args=5
26363
 
else
26364
 
  echo "$as_me: failed program was:" >&5
26365
 
sed 's/^/| /' conftest.$ac_ext >&5
26366
 
 
26367
 
 
26368
 
      echo "$as_me:$LINENO: result: no" >&5
26369
 
echo "${ECHO_T}no" >&6
26370
 
      echo "$as_me:$LINENO: checking if gethostbyaddr_r with -D_REENTRANT takes 5 arguments" >&5
26371
 
echo $ECHO_N "checking if gethostbyaddr_r with -D_REENTRANT takes 5 arguments... $ECHO_C" >&6
26372
 
      cat >conftest.$ac_ext <<_ACEOF
26373
 
/* confdefs.h.  */
26374
 
_ACEOF
26375
 
cat confdefs.h >>conftest.$ac_ext
26376
 
cat >>conftest.$ac_ext <<_ACEOF
26377
 
/* end confdefs.h.  */
26378
 
 
26379
 
#define _REENTRANT
26380
 
#include <sys/types.h>
26381
 
#include <netdb.h>
26382
 
int
26383
 
main ()
26384
 
{
26385
 
 
26386
 
char * address;
26387
 
int length;
26388
 
int type;
26389
 
struct hostent h;
26390
 
struct hostent_data hdata;
26391
 
int rc;
26392
 
rc = gethostbyaddr_r(address, length, type, &h, &hdata);
26393
 
  ;
26394
 
  return 0;
26395
 
}
26396
 
_ACEOF
26397
 
rm -f conftest.$ac_objext
26398
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26399
 
  (eval $ac_compile) 2>conftest.er1
26400
 
  ac_status=$?
26401
 
  grep -v '^ *+' conftest.er1 >conftest.err
26402
 
  rm -f conftest.er1
26403
 
  cat conftest.err >&5
26404
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405
 
  (exit $ac_status); } &&
26406
 
         { ac_try='test -z "$ac_c_werror_flag"
26407
 
                         || test ! -s conftest.err'
26408
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26409
 
  (eval $ac_try) 2>&5
26410
 
  ac_status=$?
26411
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26412
 
  (exit $ac_status); }; } &&
26413
 
         { ac_try='test -s conftest.$ac_objext'
26414
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26415
 
  (eval $ac_try) 2>&5
26416
 
  ac_status=$?
26417
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418
 
  (exit $ac_status); }; }; then
26419
 
 
26420
 
        echo "$as_me:$LINENO: result: yes" >&5
26421
 
echo "${ECHO_T}yes" >&6
26422
 
 
26423
 
cat >>confdefs.h <<\_ACEOF
26424
 
#define HAVE_GETHOSTBYADDR_R_5 1
26425
 
_ACEOF
26426
 
 
26427
 
 
26428
 
cat >>confdefs.h <<\_ACEOF
26429
 
#define NEED_REENTRANT 1
26430
 
_ACEOF
26431
 
 
26432
 
        ac_cv_gethostbyaddr_args=5
26433
 
else
26434
 
  echo "$as_me: failed program was:" >&5
26435
 
sed 's/^/| /' conftest.$ac_ext >&5
26436
 
 
26437
 
 
26438
 
        echo "$as_me:$LINENO: result: no" >&5
26439
 
echo "${ECHO_T}no" >&6
26440
 
        echo "$as_me:$LINENO: checking if gethostbyaddr_r takes 7 arguments" >&5
26441
 
echo $ECHO_N "checking if gethostbyaddr_r takes 7 arguments... $ECHO_C" >&6
26442
 
        cat >conftest.$ac_ext <<_ACEOF
26443
 
/* confdefs.h.  */
26444
 
_ACEOF
26445
 
cat confdefs.h >>conftest.$ac_ext
26446
 
cat >>conftest.$ac_ext <<_ACEOF
26447
 
/* end confdefs.h.  */
26448
 
 
26449
 
#include <sys/types.h>
26450
 
#include <netdb.h>
26451
 
int
26452
 
main ()
26453
 
{
26454
 
 
26455
 
char * address;
26456
 
int length;
26457
 
int type;
26458
 
struct hostent h;
26459
 
char buffer[8192];
26460
 
int h_errnop;
26461
 
struct hostent * hp;
26462
 
 
26463
 
hp = gethostbyaddr_r(address, length, type, &h,
26464
 
                     buffer, 8192, &h_errnop);
26465
 
  ;
26466
 
  return 0;
26467
 
}
26468
 
_ACEOF
26469
 
rm -f conftest.$ac_objext
26470
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26471
 
  (eval $ac_compile) 2>conftest.er1
26472
 
  ac_status=$?
26473
 
  grep -v '^ *+' conftest.er1 >conftest.err
26474
 
  rm -f conftest.er1
26475
 
  cat conftest.err >&5
26476
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26477
 
  (exit $ac_status); } &&
26478
 
         { ac_try='test -z "$ac_c_werror_flag"
26479
 
                         || test ! -s conftest.err'
26480
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481
 
  (eval $ac_try) 2>&5
26482
 
  ac_status=$?
26483
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484
 
  (exit $ac_status); }; } &&
26485
 
         { ac_try='test -s conftest.$ac_objext'
26486
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26487
 
  (eval $ac_try) 2>&5
26488
 
  ac_status=$?
26489
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490
 
  (exit $ac_status); }; }; then
26491
 
 
26492
 
          echo "$as_me:$LINENO: result: yes" >&5
26493
 
echo "${ECHO_T}yes" >&6
26494
 
 
26495
 
cat >>confdefs.h <<\_ACEOF
26496
 
#define HAVE_GETHOSTBYADDR_R_7 1
26497
 
_ACEOF
26498
 
 
26499
 
          ac_cv_gethostbyaddr_args=7
26500
 
else
26501
 
  echo "$as_me: failed program was:" >&5
26502
 
sed 's/^/| /' conftest.$ac_ext >&5
26503
 
 
26504
 
 
26505
 
          echo "$as_me:$LINENO: result: no" >&5
26506
 
echo "${ECHO_T}no" >&6
26507
 
          echo "$as_me:$LINENO: checking if gethostbyaddr_r takes 8 arguments" >&5
26508
 
echo $ECHO_N "checking if gethostbyaddr_r takes 8 arguments... $ECHO_C" >&6
26509
 
          cat >conftest.$ac_ext <<_ACEOF
26510
 
/* confdefs.h.  */
26511
 
_ACEOF
26512
 
cat confdefs.h >>conftest.$ac_ext
26513
 
cat >>conftest.$ac_ext <<_ACEOF
26514
 
/* end confdefs.h.  */
26515
 
 
26516
 
#include <sys/types.h>
26517
 
#include <netdb.h>
26518
 
int
26519
 
main ()
26520
 
{
26521
 
 
26522
 
char * address;
26523
 
int length;
26524
 
int type;
26525
 
struct hostent h;
26526
 
char buffer[8192];
26527
 
int h_errnop;
26528
 
struct hostent * hp;
26529
 
int rc;
26530
 
 
26531
 
rc = gethostbyaddr_r(address, length, type, &h,
26532
 
                     buffer, 8192, &hp, &h_errnop);
26533
 
  ;
26534
 
  return 0;
26535
 
}
26536
 
_ACEOF
26537
 
rm -f conftest.$ac_objext
26538
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26539
 
  (eval $ac_compile) 2>conftest.er1
26540
 
  ac_status=$?
26541
 
  grep -v '^ *+' conftest.er1 >conftest.err
26542
 
  rm -f conftest.er1
26543
 
  cat conftest.err >&5
26544
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545
 
  (exit $ac_status); } &&
26546
 
         { ac_try='test -z "$ac_c_werror_flag"
26547
 
                         || test ! -s conftest.err'
26548
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26549
 
  (eval $ac_try) 2>&5
26550
 
  ac_status=$?
26551
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552
 
  (exit $ac_status); }; } &&
26553
 
         { ac_try='test -s conftest.$ac_objext'
26554
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26555
 
  (eval $ac_try) 2>&5
26556
 
  ac_status=$?
26557
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26558
 
  (exit $ac_status); }; }; then
26559
 
 
26560
 
            echo "$as_me:$LINENO: result: yes" >&5
26561
 
echo "${ECHO_T}yes" >&6
26562
 
 
26563
 
cat >>confdefs.h <<\_ACEOF
26564
 
#define HAVE_GETHOSTBYADDR_R_8 1
26565
 
_ACEOF
26566
 
 
26567
 
            ac_cv_gethostbyaddr_args=8
26568
 
else
26569
 
  echo "$as_me: failed program was:" >&5
26570
 
sed 's/^/| /' conftest.$ac_ext >&5
26571
 
 
26572
 
 
26573
 
            echo "$as_me:$LINENO: result: no" >&5
26574
 
echo "${ECHO_T}no" >&6
26575
 
            have_missing_r_funcs="$have_missing_r_funcs gethostbyaddr_r"
26576
 
fi
26577
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26578
 
fi
26579
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26580
 
fi
26581
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26582
 
fi
26583
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26584
 
fi
26585
 
done
26586
 
 
26587
 
 
26588
 
  fi
26589
 
 
26590
 
 
26591
 
 
26592
 
for ac_func in inet_ntoa_r
26593
 
do
26594
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26595
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
26596
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26597
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
26598
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
26599
 
else
26600
 
  cat >conftest.$ac_ext <<_ACEOF
26601
 
/* confdefs.h.  */
26602
 
_ACEOF
26603
 
cat confdefs.h >>conftest.$ac_ext
26604
 
cat >>conftest.$ac_ext <<_ACEOF
26605
 
/* end confdefs.h.  */
26606
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26607
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26608
 
#define $ac_func innocuous_$ac_func
26609
 
 
26610
 
/* System header to define __stub macros and hopefully few prototypes,
26611
 
    which can conflict with char $ac_func (); below.
26612
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26613
 
    <limits.h> exists even on freestanding compilers.  */
26614
 
 
26615
 
#ifdef __STDC__
26616
 
# include <limits.h>
26617
 
#else
26618
 
# include <assert.h>
26619
 
#endif
26620
 
 
26621
 
#undef $ac_func
26622
 
 
26623
 
/* Override any gcc2 internal prototype to avoid an error.  */
26624
 
#ifdef __cplusplus
26625
 
extern "C"
26626
 
{
26627
 
#endif
26628
 
/* We use char because int might match the return type of a gcc2
26629
 
   builtin and then its argument prototype would still apply.  */
26630
 
char $ac_func ();
26631
 
/* The GNU C library defines this for functions which it implements
26632
 
    to always fail with ENOSYS.  Some functions are actually named
26633
 
    something starting with __ and the normal name is an alias.  */
26634
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26635
 
choke me
26636
 
#else
26637
 
char (*f) () = $ac_func;
26638
 
#endif
26639
 
#ifdef __cplusplus
26640
 
}
26641
 
#endif
26642
 
 
26643
 
int
26644
 
main ()
26645
 
{
26646
 
return f != $ac_func;
26647
 
  ;
26648
 
  return 0;
26649
 
}
26650
 
_ACEOF
26651
 
rm -f conftest.$ac_objext conftest$ac_exeext
26652
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26653
 
  (eval $ac_link) 2>conftest.er1
26654
 
  ac_status=$?
26655
 
  grep -v '^ *+' conftest.er1 >conftest.err
26656
 
  rm -f conftest.er1
26657
 
  cat conftest.err >&5
26658
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659
 
  (exit $ac_status); } &&
26660
 
         { ac_try='test -z "$ac_c_werror_flag"
26661
 
                         || test ! -s conftest.err'
26662
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26663
 
  (eval $ac_try) 2>&5
26664
 
  ac_status=$?
26665
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666
 
  (exit $ac_status); }; } &&
26667
 
         { ac_try='test -s conftest$ac_exeext'
26668
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26669
 
  (eval $ac_try) 2>&5
26670
 
  ac_status=$?
26671
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672
 
  (exit $ac_status); }; }; then
26673
 
  eval "$as_ac_var=yes"
26674
 
else
26675
 
  echo "$as_me: failed program was:" >&5
26676
 
sed 's/^/| /' conftest.$ac_ext >&5
26677
 
 
26678
 
eval "$as_ac_var=no"
26679
 
fi
26680
 
rm -f conftest.err conftest.$ac_objext \
26681
 
      conftest$ac_exeext conftest.$ac_ext
26682
 
fi
26683
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26684
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26685
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
26686
 
  cat >>confdefs.h <<_ACEOF
26687
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26688
 
_ACEOF
26689
 
 
26690
 
    echo "$as_me:$LINENO: checking whether inet_ntoa_r is declared" >&5
26691
 
echo $ECHO_N "checking whether inet_ntoa_r is declared... $ECHO_C" >&6
26692
 
    cat >conftest.$ac_ext <<_ACEOF
26693
 
/* confdefs.h.  */
26694
 
_ACEOF
26695
 
cat confdefs.h >>conftest.$ac_ext
26696
 
cat >>conftest.$ac_ext <<_ACEOF
26697
 
/* end confdefs.h.  */
26698
 
 
26699
 
#include <arpa/inet.h>
26700
 
_ACEOF
26701
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26702
 
  $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
26703
 
 
26704
 
 
26705
 
cat >>confdefs.h <<\_ACEOF
26706
 
#define HAVE_INET_NTOA_R_DECL 1
26707
 
_ACEOF
26708
 
 
26709
 
      echo "$as_me:$LINENO: result: yes" >&5
26710
 
echo "${ECHO_T}yes" >&6
26711
 
else
26712
 
 
26713
 
      echo "$as_me:$LINENO: result: no" >&5
26714
 
echo "${ECHO_T}no" >&6
26715
 
      echo "$as_me:$LINENO: checking whether inet_ntoa_r with -D_REENTRANT is declared" >&5
26716
 
echo $ECHO_N "checking whether inet_ntoa_r with -D_REENTRANT is declared... $ECHO_C" >&6
26717
 
      cat >conftest.$ac_ext <<_ACEOF
26718
 
/* confdefs.h.  */
26719
 
_ACEOF
26720
 
cat confdefs.h >>conftest.$ac_ext
26721
 
cat >>conftest.$ac_ext <<_ACEOF
26722
 
/* end confdefs.h.  */
26723
 
 
26724
 
#define _REENTRANT
26725
 
#include <arpa/inet.h>
26726
 
_ACEOF
26727
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26728
 
  $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
26729
 
 
26730
 
 
26731
 
cat >>confdefs.h <<\_ACEOF
26732
 
#define HAVE_INET_NTOA_R_DECL 1
26733
 
_ACEOF
26734
 
 
26735
 
 
26736
 
cat >>confdefs.h <<\_ACEOF
26737
 
#define NEED_REENTRANT 1
26738
 
_ACEOF
26739
 
 
26740
 
        echo "$as_me:$LINENO: result: yes" >&5
26741
 
echo "${ECHO_T}yes" >&6
26742
 
else
26743
 
  echo "$as_me:$LINENO: result: no" >&5
26744
 
echo "${ECHO_T}no" >&6
26745
 
fi
26746
 
rm -f conftest*
26747
 
 
26748
 
fi
26749
 
rm -f conftest*
26750
 
 
26751
 
fi
26752
 
done
26753
 
 
26754
 
 
26755
 
 
26756
 
 
26757
 
 
26758
 
for ac_func in localtime_r
26759
 
do
26760
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26761
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
26762
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26763
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
26764
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
26765
 
else
26766
 
  cat >conftest.$ac_ext <<_ACEOF
26767
 
/* confdefs.h.  */
26768
 
_ACEOF
26769
 
cat confdefs.h >>conftest.$ac_ext
26770
 
cat >>conftest.$ac_ext <<_ACEOF
26771
 
/* end confdefs.h.  */
26772
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26773
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26774
 
#define $ac_func innocuous_$ac_func
26775
 
 
26776
 
/* System header to define __stub macros and hopefully few prototypes,
26777
 
    which can conflict with char $ac_func (); below.
26778
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26779
 
    <limits.h> exists even on freestanding compilers.  */
26780
 
 
26781
 
#ifdef __STDC__
26782
 
# include <limits.h>
26783
 
#else
26784
 
# include <assert.h>
26785
 
#endif
26786
 
 
26787
 
#undef $ac_func
26788
 
 
26789
 
/* Override any gcc2 internal prototype to avoid an error.  */
26790
 
#ifdef __cplusplus
26791
 
extern "C"
26792
 
{
26793
 
#endif
26794
 
/* We use char because int might match the return type of a gcc2
26795
 
   builtin and then its argument prototype would still apply.  */
26796
 
char $ac_func ();
26797
 
/* The GNU C library defines this for functions which it implements
26798
 
    to always fail with ENOSYS.  Some functions are actually named
26799
 
    something starting with __ and the normal name is an alias.  */
26800
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26801
 
choke me
26802
 
#else
26803
 
char (*f) () = $ac_func;
26804
 
#endif
26805
 
#ifdef __cplusplus
26806
 
}
26807
 
#endif
26808
 
 
26809
 
int
26810
 
main ()
26811
 
{
26812
 
return f != $ac_func;
26813
 
  ;
26814
 
  return 0;
26815
 
}
26816
 
_ACEOF
26817
 
rm -f conftest.$ac_objext conftest$ac_exeext
26818
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26819
 
  (eval $ac_link) 2>conftest.er1
26820
 
  ac_status=$?
26821
 
  grep -v '^ *+' conftest.er1 >conftest.err
26822
 
  rm -f conftest.er1
26823
 
  cat conftest.err >&5
26824
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825
 
  (exit $ac_status); } &&
26826
 
         { ac_try='test -z "$ac_c_werror_flag"
26827
 
                         || test ! -s conftest.err'
26828
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26829
 
  (eval $ac_try) 2>&5
26830
 
  ac_status=$?
26831
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832
 
  (exit $ac_status); }; } &&
26833
 
         { ac_try='test -s conftest$ac_exeext'
26834
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26835
 
  (eval $ac_try) 2>&5
26836
 
  ac_status=$?
26837
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838
 
  (exit $ac_status); }; }; then
26839
 
  eval "$as_ac_var=yes"
26840
 
else
26841
 
  echo "$as_me: failed program was:" >&5
26842
 
sed 's/^/| /' conftest.$ac_ext >&5
26843
 
 
26844
 
eval "$as_ac_var=no"
26845
 
fi
26846
 
rm -f conftest.err conftest.$ac_objext \
26847
 
      conftest$ac_exeext conftest.$ac_ext
26848
 
fi
26849
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26850
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26851
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
26852
 
  cat >>confdefs.h <<_ACEOF
26853
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26854
 
_ACEOF
26855
 
 
26856
 
    echo "$as_me:$LINENO: checking whether localtime_r is declared" >&5
26857
 
echo $ECHO_N "checking whether localtime_r is declared... $ECHO_C" >&6
26858
 
    cat >conftest.$ac_ext <<_ACEOF
26859
 
/* confdefs.h.  */
26860
 
_ACEOF
26861
 
cat confdefs.h >>conftest.$ac_ext
26862
 
cat >>conftest.$ac_ext <<_ACEOF
26863
 
/* end confdefs.h.  */
26864
 
 
26865
 
#include <time.h>
26866
 
_ACEOF
26867
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26868
 
  $EGREP "localtime_r" >/dev/null 2>&1; then
26869
 
 
26870
 
      echo "$as_me:$LINENO: result: yes" >&5
26871
 
echo "${ECHO_T}yes" >&6
26872
 
else
26873
 
 
26874
 
      echo "$as_me:$LINENO: result: no" >&5
26875
 
echo "${ECHO_T}no" >&6
26876
 
      echo "$as_me:$LINENO: checking whether localtime_r with -D_REENTRANT is declared" >&5
26877
 
echo $ECHO_N "checking whether localtime_r with -D_REENTRANT is declared... $ECHO_C" >&6
26878
 
      cat >conftest.$ac_ext <<_ACEOF
26879
 
/* confdefs.h.  */
26880
 
_ACEOF
26881
 
cat confdefs.h >>conftest.$ac_ext
26882
 
cat >>conftest.$ac_ext <<_ACEOF
26883
 
/* end confdefs.h.  */
26884
 
 
26885
 
#define _REENTRANT
26886
 
#include <time.h>
26887
 
_ACEOF
26888
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26889
 
  $EGREP "localtime_r" >/dev/null 2>&1; then
26890
 
 
26891
 
        cat >>confdefs.h <<\_ACEOF
26892
 
#define NEED_REENTRANT 1
26893
 
_ACEOF
26894
 
 
26895
 
        echo "$as_me:$LINENO: result: yes" >&5
26896
 
echo "${ECHO_T}yes" >&6
26897
 
else
26898
 
  echo "$as_me:$LINENO: result: no" >&5
26899
 
echo "${ECHO_T}no" >&6
26900
 
fi
26901
 
rm -f conftest*
26902
 
 
26903
 
fi
26904
 
rm -f conftest*
26905
 
 
26906
 
fi
26907
 
done
26908
 
 
26909
 
 
26910
 
 
26911
 
 
26912
 
 
26913
 
for ac_func in strerror_r
26914
 
do
26915
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26916
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
26917
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26918
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
26919
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
26920
 
else
26921
 
  cat >conftest.$ac_ext <<_ACEOF
26922
 
/* confdefs.h.  */
26923
 
_ACEOF
26924
 
cat confdefs.h >>conftest.$ac_ext
26925
 
cat >>conftest.$ac_ext <<_ACEOF
26926
 
/* end confdefs.h.  */
26927
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26928
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26929
 
#define $ac_func innocuous_$ac_func
26930
 
 
26931
 
/* System header to define __stub macros and hopefully few prototypes,
26932
 
    which can conflict with char $ac_func (); below.
26933
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26934
 
    <limits.h> exists even on freestanding compilers.  */
26935
 
 
26936
 
#ifdef __STDC__
26937
 
# include <limits.h>
26938
 
#else
26939
 
# include <assert.h>
26940
 
#endif
26941
 
 
26942
 
#undef $ac_func
26943
 
 
26944
 
/* Override any gcc2 internal prototype to avoid an error.  */
26945
 
#ifdef __cplusplus
26946
 
extern "C"
26947
 
{
26948
 
#endif
26949
 
/* We use char because int might match the return type of a gcc2
26950
 
   builtin and then its argument prototype would still apply.  */
26951
 
char $ac_func ();
26952
 
/* The GNU C library defines this for functions which it implements
26953
 
    to always fail with ENOSYS.  Some functions are actually named
26954
 
    something starting with __ and the normal name is an alias.  */
26955
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26956
 
choke me
26957
 
#else
26958
 
char (*f) () = $ac_func;
26959
 
#endif
26960
 
#ifdef __cplusplus
26961
 
}
26962
 
#endif
26963
 
 
26964
 
int
26965
 
main ()
26966
 
{
26967
 
return f != $ac_func;
26968
 
  ;
26969
 
  return 0;
26970
 
}
26971
 
_ACEOF
26972
 
rm -f conftest.$ac_objext conftest$ac_exeext
26973
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26974
 
  (eval $ac_link) 2>conftest.er1
26975
 
  ac_status=$?
26976
 
  grep -v '^ *+' conftest.er1 >conftest.err
26977
 
  rm -f conftest.er1
26978
 
  cat conftest.err >&5
26979
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980
 
  (exit $ac_status); } &&
26981
 
         { ac_try='test -z "$ac_c_werror_flag"
26982
 
                         || test ! -s conftest.err'
26983
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26984
 
  (eval $ac_try) 2>&5
26985
 
  ac_status=$?
26986
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987
 
  (exit $ac_status); }; } &&
26988
 
         { ac_try='test -s conftest$ac_exeext'
26989
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26990
 
  (eval $ac_try) 2>&5
26991
 
  ac_status=$?
26992
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993
 
  (exit $ac_status); }; }; then
26994
 
  eval "$as_ac_var=yes"
26995
 
else
26996
 
  echo "$as_me: failed program was:" >&5
26997
 
sed 's/^/| /' conftest.$ac_ext >&5
26998
 
 
26999
 
eval "$as_ac_var=no"
27000
 
fi
27001
 
rm -f conftest.err conftest.$ac_objext \
27002
 
      conftest$ac_exeext conftest.$ac_ext
27003
 
fi
27004
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27005
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27006
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
27007
 
  cat >>confdefs.h <<_ACEOF
27008
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27009
 
_ACEOF
27010
 
 
27011
 
    echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
27012
 
echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
27013
 
    cat >conftest.$ac_ext <<_ACEOF
27014
 
/* confdefs.h.  */
27015
 
_ACEOF
27016
 
cat confdefs.h >>conftest.$ac_ext
27017
 
cat >>conftest.$ac_ext <<_ACEOF
27018
 
/* end confdefs.h.  */
27019
 
 
27020
 
#include <string.h>
27021
 
_ACEOF
27022
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27023
 
  $EGREP "strerror_r" >/dev/null 2>&1; then
27024
 
 
27025
 
      strerror_r="yes"
27026
 
      echo "$as_me:$LINENO: result: yes" >&5
27027
 
echo "${ECHO_T}yes" >&6
27028
 
else
27029
 
 
27030
 
      echo "$as_me:$LINENO: result: no" >&5
27031
 
echo "${ECHO_T}no" >&6
27032
 
      echo "$as_me:$LINENO: checking whether strerror_r with -D_THREAD_SAFE is declared" >&5
27033
 
echo $ECHO_N "checking whether strerror_r with -D_THREAD_SAFE is declared... $ECHO_C" >&6
27034
 
      cat >conftest.$ac_ext <<_ACEOF
27035
 
/* confdefs.h.  */
27036
 
_ACEOF
27037
 
cat confdefs.h >>conftest.$ac_ext
27038
 
cat >>conftest.$ac_ext <<_ACEOF
27039
 
/* end confdefs.h.  */
27040
 
 
27041
 
#define _THREAD_SAFE
27042
 
#include <string.h>
27043
 
_ACEOF
27044
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27045
 
  $EGREP "strerror_r" >/dev/null 2>&1; then
27046
 
 
27047
 
        strerror_r="yes"
27048
 
        CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS"
27049
 
        echo "$as_me:$LINENO: result: yes" >&5
27050
 
echo "${ECHO_T}yes" >&6
27051
 
else
27052
 
  echo "$as_me:$LINENO: result: no" >&5
27053
 
echo "${ECHO_T}no" >&6
27054
 
fi
27055
 
rm -f conftest*
27056
 
 
27057
 
fi
27058
 
rm -f conftest*
27059
 
 
27060
 
fi
27061
 
done
27062
 
 
27063
 
 
27064
 
  if test "x$strerror_r" = "xyes"; then
27065
 
        echo "$as_me:$LINENO: checking for a glibc strerror_r API" >&5
27066
 
echo $ECHO_N "checking for a glibc strerror_r API... $ECHO_C" >&6
27067
 
    if test "$cross_compiling" = yes; then
27068
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27069
 
See \`config.log' for more details." >&5
27070
 
echo "$as_me: error: cannot run test program while cross compiling
27071
 
See \`config.log' for more details." >&2;}
27072
 
   { (exit 1); exit 1; }; }
27073
 
else
27074
 
  cat >conftest.$ac_ext <<_ACEOF
27075
 
/* confdefs.h.  */
27076
 
_ACEOF
27077
 
cat confdefs.h >>conftest.$ac_ext
27078
 
cat >>conftest.$ac_ext <<_ACEOF
27079
 
/* end confdefs.h.  */
27080
 
 
27081
 
#include <string.h>
27082
 
#include <errno.h>
27083
 
int
27084
 
main () {
27085
 
  char buffer[1024]; /* big enough to play with */
27086
 
  char *string =
27087
 
    strerror_r(EACCES, buffer, sizeof(buffer));
27088
 
    /* this should've returned a string */
27089
 
    if(!string || !string[0])
27090
 
      return 99;
27091
 
    return 0;
27092
 
}
27093
 
 
27094
 
_ACEOF
27095
 
rm -f conftest$ac_exeext
27096
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27097
 
  (eval $ac_link) 2>&5
27098
 
  ac_status=$?
27099
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27101
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27102
 
  (eval $ac_try) 2>&5
27103
 
  ac_status=$?
27104
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105
 
  (exit $ac_status); }; }; then
27106
 
 
27107
 
cat >>confdefs.h <<\_ACEOF
27108
 
#define HAVE_GLIBC_STRERROR_R 1
27109
 
_ACEOF
27110
 
 
27111
 
    echo "$as_me:$LINENO: result: yes" >&5
27112
 
echo "${ECHO_T}yes" >&6
27113
 
else
27114
 
  echo "$as_me: program exited with status $ac_status" >&5
27115
 
echo "$as_me: failed program was:" >&5
27116
 
sed 's/^/| /' conftest.$ac_ext >&5
27117
 
 
27118
 
( exit $ac_status )
27119
 
echo "$as_me:$LINENO: result: no" >&5
27120
 
echo "${ECHO_T}no" >&6
27121
 
 
27122
 
fi
27123
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27124
 
fi
27125
 
 
27126
 
    echo "$as_me:$LINENO: checking for a POSIX strerror_r API" >&5
27127
 
echo $ECHO_N "checking for a POSIX strerror_r API... $ECHO_C" >&6
27128
 
    if test "$cross_compiling" = yes; then
27129
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27130
 
See \`config.log' for more details." >&5
27131
 
echo "$as_me: error: cannot run test program while cross compiling
27132
 
See \`config.log' for more details." >&2;}
27133
 
   { (exit 1); exit 1; }; }
27134
 
else
27135
 
  cat >conftest.$ac_ext <<_ACEOF
27136
 
/* confdefs.h.  */
27137
 
_ACEOF
27138
 
cat confdefs.h >>conftest.$ac_ext
27139
 
cat >>conftest.$ac_ext <<_ACEOF
27140
 
/* end confdefs.h.  */
27141
 
 
27142
 
#include <string.h>
27143
 
#include <errno.h>
27144
 
int
27145
 
main () {
27146
 
  char buffer[1024]; /* big enough to play with */
27147
 
  int error =
27148
 
    strerror_r(EACCES, buffer, sizeof(buffer));
27149
 
    /* This should've returned zero, and written an error string in the
27150
 
       buffer.*/
27151
 
    if(!buffer[0] || error)
27152
 
      return 99;
27153
 
    return 0;
27154
 
}
27155
 
 
27156
 
_ACEOF
27157
 
rm -f conftest$ac_exeext
27158
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27159
 
  (eval $ac_link) 2>&5
27160
 
  ac_status=$?
27161
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27163
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27164
 
  (eval $ac_try) 2>&5
27165
 
  ac_status=$?
27166
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167
 
  (exit $ac_status); }; }; then
27168
 
 
27169
 
cat >>confdefs.h <<\_ACEOF
27170
 
#define HAVE_POSIX_STRERROR_R 1
27171
 
_ACEOF
27172
 
 
27173
 
    echo "$as_me:$LINENO: result: yes" >&5
27174
 
echo "${ECHO_T}yes" >&6
27175
 
else
27176
 
  echo "$as_me: program exited with status $ac_status" >&5
27177
 
echo "$as_me: failed program was:" >&5
27178
 
sed 's/^/| /' conftest.$ac_ext >&5
27179
 
 
27180
 
( exit $ac_status )
27181
 
echo "$as_me:$LINENO: result: no" >&5
27182
 
echo "${ECHO_T}no" >&6
27183
 
 
27184
 
fi
27185
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27186
 
fi
27187
 
 
27188
 
  fi
27189
 
 
27190
 
 
27191
 
 
27192
 
 
27193
 
for ac_func in gmtime_r
27194
 
do
27195
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27196
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
27197
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27198
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
27199
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
27200
 
else
27201
 
  cat >conftest.$ac_ext <<_ACEOF
27202
 
/* confdefs.h.  */
27203
 
_ACEOF
27204
 
cat confdefs.h >>conftest.$ac_ext
27205
 
cat >>conftest.$ac_ext <<_ACEOF
27206
 
/* end confdefs.h.  */
27207
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27208
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27209
 
#define $ac_func innocuous_$ac_func
27210
 
 
27211
 
/* System header to define __stub macros and hopefully few prototypes,
27212
 
    which can conflict with char $ac_func (); below.
27213
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27214
 
    <limits.h> exists even on freestanding compilers.  */
27215
 
 
27216
 
#ifdef __STDC__
27217
 
# include <limits.h>
27218
 
#else
27219
 
# include <assert.h>
27220
 
#endif
27221
 
 
27222
 
#undef $ac_func
27223
 
 
27224
 
/* Override any gcc2 internal prototype to avoid an error.  */
27225
 
#ifdef __cplusplus
27226
 
extern "C"
27227
 
{
27228
 
#endif
27229
 
/* We use char because int might match the return type of a gcc2
27230
 
   builtin and then its argument prototype would still apply.  */
27231
 
char $ac_func ();
27232
 
/* The GNU C library defines this for functions which it implements
27233
 
    to always fail with ENOSYS.  Some functions are actually named
27234
 
    something starting with __ and the normal name is an alias.  */
27235
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27236
 
choke me
27237
 
#else
27238
 
char (*f) () = $ac_func;
27239
 
#endif
27240
 
#ifdef __cplusplus
27241
 
}
27242
 
#endif
27243
 
 
27244
 
int
27245
 
main ()
27246
 
{
27247
 
return f != $ac_func;
27248
 
  ;
27249
 
  return 0;
27250
 
}
27251
 
_ACEOF
27252
 
rm -f conftest.$ac_objext conftest$ac_exeext
27253
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27254
 
  (eval $ac_link) 2>conftest.er1
27255
 
  ac_status=$?
27256
 
  grep -v '^ *+' conftest.er1 >conftest.err
27257
 
  rm -f conftest.er1
27258
 
  cat conftest.err >&5
27259
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260
 
  (exit $ac_status); } &&
27261
 
         { ac_try='test -z "$ac_c_werror_flag"
27262
 
                         || test ! -s conftest.err'
27263
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27264
 
  (eval $ac_try) 2>&5
27265
 
  ac_status=$?
27266
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267
 
  (exit $ac_status); }; } &&
27268
 
         { ac_try='test -s conftest$ac_exeext'
27269
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27270
 
  (eval $ac_try) 2>&5
27271
 
  ac_status=$?
27272
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273
 
  (exit $ac_status); }; }; then
27274
 
  eval "$as_ac_var=yes"
27275
 
else
27276
 
  echo "$as_me: failed program was:" >&5
27277
 
sed 's/^/| /' conftest.$ac_ext >&5
27278
 
 
27279
 
eval "$as_ac_var=no"
27280
 
fi
27281
 
rm -f conftest.err conftest.$ac_objext \
27282
 
      conftest$ac_exeext conftest.$ac_ext
27283
 
fi
27284
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27285
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27286
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
27287
 
  cat >>confdefs.h <<_ACEOF
27288
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27289
 
_ACEOF
27290
 
 
27291
 
fi
27292
 
done
27293
 
 
27294
 
fi
27295
 
 
27296
 
 
27297
 
 
27298
 
if test "x$RECENTAIX" = "xyes"; then
27299
 
 
27300
 
 
27301
 
for ac_func in localtime_r
27302
 
do
27303
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27304
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
27305
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27306
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
27307
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
27308
 
else
27309
 
  cat >conftest.$ac_ext <<_ACEOF
27310
 
/* confdefs.h.  */
27311
 
_ACEOF
27312
 
cat confdefs.h >>conftest.$ac_ext
27313
 
cat >>conftest.$ac_ext <<_ACEOF
27314
 
/* end confdefs.h.  */
27315
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27316
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27317
 
#define $ac_func innocuous_$ac_func
27318
 
 
27319
 
/* System header to define __stub macros and hopefully few prototypes,
27320
 
    which can conflict with char $ac_func (); below.
27321
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27322
 
    <limits.h> exists even on freestanding compilers.  */
27323
 
 
27324
 
#ifdef __STDC__
27325
 
# include <limits.h>
27326
 
#else
27327
 
# include <assert.h>
27328
 
#endif
27329
 
 
27330
 
#undef $ac_func
27331
 
 
27332
 
/* Override any gcc2 internal prototype to avoid an error.  */
27333
 
#ifdef __cplusplus
27334
 
extern "C"
27335
 
{
27336
 
#endif
27337
 
/* We use char because int might match the return type of a gcc2
27338
 
   builtin and then its argument prototype would still apply.  */
27339
 
char $ac_func ();
27340
 
/* The GNU C library defines this for functions which it implements
27341
 
    to always fail with ENOSYS.  Some functions are actually named
27342
 
    something starting with __ and the normal name is an alias.  */
27343
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27344
 
choke me
27345
 
#else
27346
 
char (*f) () = $ac_func;
27347
 
#endif
27348
 
#ifdef __cplusplus
27349
 
}
27350
 
#endif
27351
 
 
27352
 
int
27353
 
main ()
27354
 
{
27355
 
return f != $ac_func;
27356
 
  ;
27357
 
  return 0;
27358
 
}
27359
 
_ACEOF
27360
 
rm -f conftest.$ac_objext conftest$ac_exeext
27361
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27362
 
  (eval $ac_link) 2>conftest.er1
27363
 
  ac_status=$?
27364
 
  grep -v '^ *+' conftest.er1 >conftest.err
27365
 
  rm -f conftest.er1
27366
 
  cat conftest.err >&5
27367
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368
 
  (exit $ac_status); } &&
27369
 
         { ac_try='test -z "$ac_c_werror_flag"
27370
 
                         || test ! -s conftest.err'
27371
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27372
 
  (eval $ac_try) 2>&5
27373
 
  ac_status=$?
27374
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375
 
  (exit $ac_status); }; } &&
27376
 
         { ac_try='test -s conftest$ac_exeext'
27377
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27378
 
  (eval $ac_try) 2>&5
27379
 
  ac_status=$?
27380
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381
 
  (exit $ac_status); }; }; then
27382
 
  eval "$as_ac_var=yes"
27383
 
else
27384
 
  echo "$as_me: failed program was:" >&5
27385
 
sed 's/^/| /' conftest.$ac_ext >&5
27386
 
 
27387
 
eval "$as_ac_var=no"
27388
 
fi
27389
 
rm -f conftest.err conftest.$ac_objext \
27390
 
      conftest$ac_exeext conftest.$ac_ext
27391
 
fi
27392
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27393
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27394
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
27395
 
  cat >>confdefs.h <<_ACEOF
27396
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27397
 
_ACEOF
27398
 
 
27399
 
    echo "$as_me:$LINENO: checking whether localtime_r is declared" >&5
27400
 
echo $ECHO_N "checking whether localtime_r is declared... $ECHO_C" >&6
27401
 
    cat >conftest.$ac_ext <<_ACEOF
27402
 
/* confdefs.h.  */
27403
 
_ACEOF
27404
 
cat confdefs.h >>conftest.$ac_ext
27405
 
cat >>conftest.$ac_ext <<_ACEOF
27406
 
/* end confdefs.h.  */
27407
 
 
27408
 
#include <time.h>
27409
 
_ACEOF
27410
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27411
 
  $EGREP "localtime_r" >/dev/null 2>&1; then
27412
 
 
27413
 
      echo "$as_me:$LINENO: result: yes" >&5
27414
 
echo "${ECHO_T}yes" >&6
27415
 
else
27416
 
 
27417
 
      echo "$as_me:$LINENO: result: no" >&5
27418
 
echo "${ECHO_T}no" >&6
27419
 
      echo "$as_me:$LINENO: checking whether localtime_r with -D_REENTRANT is declared" >&5
27420
 
echo $ECHO_N "checking whether localtime_r with -D_REENTRANT is declared... $ECHO_C" >&6
27421
 
      cat >conftest.$ac_ext <<_ACEOF
27422
 
/* confdefs.h.  */
27423
 
_ACEOF
27424
 
cat confdefs.h >>conftest.$ac_ext
27425
 
cat >>conftest.$ac_ext <<_ACEOF
27426
 
/* end confdefs.h.  */
27427
 
 
27428
 
#define _REENTRANT
27429
 
#include <time.h>
27430
 
_ACEOF
27431
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27432
 
  $EGREP "localtime_r" >/dev/null 2>&1; then
27433
 
 
27434
 
        cat >>confdefs.h <<\_ACEOF
27435
 
#define NEED_REENTRANT 1
27436
 
_ACEOF
27437
 
 
27438
 
        echo "$as_me:$LINENO: result: yes" >&5
27439
 
echo "${ECHO_T}yes" >&6
27440
 
else
27441
 
  echo "$as_me:$LINENO: result: no" >&5
27442
 
echo "${ECHO_T}no" >&6
27443
 
fi
27444
 
rm -f conftest*
27445
 
 
27446
 
fi
27447
 
rm -f conftest*
27448
 
 
27449
 
fi
27450
 
done
27451
 
 
27452
 
 
27453
 
 
27454
 
 
27455
 
 
27456
 
for ac_func in strerror_r
27457
 
do
27458
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27459
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
27460
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27461
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
27462
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
27463
 
else
27464
 
  cat >conftest.$ac_ext <<_ACEOF
27465
 
/* confdefs.h.  */
27466
 
_ACEOF
27467
 
cat confdefs.h >>conftest.$ac_ext
27468
 
cat >>conftest.$ac_ext <<_ACEOF
27469
 
/* end confdefs.h.  */
27470
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27471
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27472
 
#define $ac_func innocuous_$ac_func
27473
 
 
27474
 
/* System header to define __stub macros and hopefully few prototypes,
27475
 
    which can conflict with char $ac_func (); below.
27476
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27477
 
    <limits.h> exists even on freestanding compilers.  */
27478
 
 
27479
 
#ifdef __STDC__
27480
 
# include <limits.h>
27481
 
#else
27482
 
# include <assert.h>
27483
 
#endif
27484
 
 
27485
 
#undef $ac_func
27486
 
 
27487
 
/* Override any gcc2 internal prototype to avoid an error.  */
27488
 
#ifdef __cplusplus
27489
 
extern "C"
27490
 
{
27491
 
#endif
27492
 
/* We use char because int might match the return type of a gcc2
27493
 
   builtin and then its argument prototype would still apply.  */
27494
 
char $ac_func ();
27495
 
/* The GNU C library defines this for functions which it implements
27496
 
    to always fail with ENOSYS.  Some functions are actually named
27497
 
    something starting with __ and the normal name is an alias.  */
27498
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27499
 
choke me
27500
 
#else
27501
 
char (*f) () = $ac_func;
27502
 
#endif
27503
 
#ifdef __cplusplus
27504
 
}
27505
 
#endif
27506
 
 
27507
 
int
27508
 
main ()
27509
 
{
27510
 
return f != $ac_func;
27511
 
  ;
27512
 
  return 0;
27513
 
}
27514
 
_ACEOF
27515
 
rm -f conftest.$ac_objext conftest$ac_exeext
27516
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27517
 
  (eval $ac_link) 2>conftest.er1
27518
 
  ac_status=$?
27519
 
  grep -v '^ *+' conftest.er1 >conftest.err
27520
 
  rm -f conftest.er1
27521
 
  cat conftest.err >&5
27522
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523
 
  (exit $ac_status); } &&
27524
 
         { ac_try='test -z "$ac_c_werror_flag"
27525
 
                         || test ! -s conftest.err'
27526
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27527
 
  (eval $ac_try) 2>&5
27528
 
  ac_status=$?
27529
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530
 
  (exit $ac_status); }; } &&
27531
 
         { ac_try='test -s conftest$ac_exeext'
27532
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27533
 
  (eval $ac_try) 2>&5
27534
 
  ac_status=$?
27535
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27536
 
  (exit $ac_status); }; }; then
27537
 
  eval "$as_ac_var=yes"
27538
 
else
27539
 
  echo "$as_me: failed program was:" >&5
27540
 
sed 's/^/| /' conftest.$ac_ext >&5
27541
 
 
27542
 
eval "$as_ac_var=no"
27543
 
fi
27544
 
rm -f conftest.err conftest.$ac_objext \
27545
 
      conftest$ac_exeext conftest.$ac_ext
27546
 
fi
27547
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27548
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27549
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
27550
 
  cat >>confdefs.h <<_ACEOF
27551
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27552
 
_ACEOF
27553
 
 
27554
 
    echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
27555
 
echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
27556
 
    cat >conftest.$ac_ext <<_ACEOF
27557
 
/* confdefs.h.  */
27558
 
_ACEOF
27559
 
cat confdefs.h >>conftest.$ac_ext
27560
 
cat >>conftest.$ac_ext <<_ACEOF
27561
 
/* end confdefs.h.  */
27562
 
 
27563
 
#include <string.h>
27564
 
_ACEOF
27565
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27566
 
  $EGREP "strerror_r" >/dev/null 2>&1; then
27567
 
 
27568
 
      strerror_r="yes"
27569
 
      echo "$as_me:$LINENO: result: yes" >&5
27570
 
echo "${ECHO_T}yes" >&6
27571
 
else
27572
 
 
27573
 
      echo "$as_me:$LINENO: result: no" >&5
27574
 
echo "${ECHO_T}no" >&6
27575
 
      echo "$as_me:$LINENO: checking whether strerror_r with -D_THREAD_SAFE is declared" >&5
27576
 
echo $ECHO_N "checking whether strerror_r with -D_THREAD_SAFE is declared... $ECHO_C" >&6
27577
 
      cat >conftest.$ac_ext <<_ACEOF
27578
 
/* confdefs.h.  */
27579
 
_ACEOF
27580
 
cat confdefs.h >>conftest.$ac_ext
27581
 
cat >>conftest.$ac_ext <<_ACEOF
27582
 
/* end confdefs.h.  */
27583
 
 
27584
 
#define _THREAD_SAFE
27585
 
#include <string.h>
27586
 
_ACEOF
27587
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27588
 
  $EGREP "strerror_r" >/dev/null 2>&1; then
27589
 
 
27590
 
        strerror_r="yes"
27591
 
        CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS"
27592
 
        echo "$as_me:$LINENO: result: yes" >&5
27593
 
echo "${ECHO_T}yes" >&6
27594
 
else
27595
 
  echo "$as_me:$LINENO: result: no" >&5
27596
 
echo "${ECHO_T}no" >&6
27597
 
fi
27598
 
rm -f conftest*
27599
 
 
27600
 
fi
27601
 
rm -f conftest*
27602
 
 
27603
 
fi
27604
 
done
27605
 
 
27606
 
 
27607
 
  if test "x$strerror_r" = "xyes"; then
27608
 
        echo "$as_me:$LINENO: checking for a glibc strerror_r API" >&5
27609
 
echo $ECHO_N "checking for a glibc strerror_r API... $ECHO_C" >&6
27610
 
    if test "$cross_compiling" = yes; then
27611
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27612
 
See \`config.log' for more details." >&5
27613
 
echo "$as_me: error: cannot run test program while cross compiling
27614
 
See \`config.log' for more details." >&2;}
27615
 
   { (exit 1); exit 1; }; }
27616
 
else
27617
 
  cat >conftest.$ac_ext <<_ACEOF
27618
 
/* confdefs.h.  */
27619
 
_ACEOF
27620
 
cat confdefs.h >>conftest.$ac_ext
27621
 
cat >>conftest.$ac_ext <<_ACEOF
27622
 
/* end confdefs.h.  */
27623
 
 
27624
 
#include <string.h>
27625
 
#include <errno.h>
27626
 
int
27627
 
main () {
27628
 
  char buffer[1024]; /* big enough to play with */
27629
 
  char *string =
27630
 
    strerror_r(EACCES, buffer, sizeof(buffer));
27631
 
    /* this should've returned a string */
27632
 
    if(!string || !string[0])
27633
 
      return 99;
27634
 
    return 0;
27635
 
}
27636
 
 
27637
 
_ACEOF
27638
 
rm -f conftest$ac_exeext
27639
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27640
 
  (eval $ac_link) 2>&5
27641
 
  ac_status=$?
27642
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27644
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27645
 
  (eval $ac_try) 2>&5
27646
 
  ac_status=$?
27647
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648
 
  (exit $ac_status); }; }; then
27649
 
 
27650
 
cat >>confdefs.h <<\_ACEOF
27651
 
#define HAVE_GLIBC_STRERROR_R 1
27652
 
_ACEOF
27653
 
 
27654
 
    echo "$as_me:$LINENO: result: yes" >&5
27655
 
echo "${ECHO_T}yes" >&6
27656
 
else
27657
 
  echo "$as_me: program exited with status $ac_status" >&5
27658
 
echo "$as_me: failed program was:" >&5
27659
 
sed 's/^/| /' conftest.$ac_ext >&5
27660
 
 
27661
 
( exit $ac_status )
27662
 
echo "$as_me:$LINENO: result: no" >&5
27663
 
echo "${ECHO_T}no" >&6
27664
 
 
27665
 
fi
27666
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27667
 
fi
27668
 
 
27669
 
    echo "$as_me:$LINENO: checking for a POSIX strerror_r API" >&5
27670
 
echo $ECHO_N "checking for a POSIX strerror_r API... $ECHO_C" >&6
27671
 
    if test "$cross_compiling" = yes; then
27672
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27673
 
See \`config.log' for more details." >&5
27674
 
echo "$as_me: error: cannot run test program while cross compiling
27675
 
See \`config.log' for more details." >&2;}
27676
 
   { (exit 1); exit 1; }; }
27677
 
else
27678
 
  cat >conftest.$ac_ext <<_ACEOF
27679
 
/* confdefs.h.  */
27680
 
_ACEOF
27681
 
cat confdefs.h >>conftest.$ac_ext
27682
 
cat >>conftest.$ac_ext <<_ACEOF
27683
 
/* end confdefs.h.  */
27684
 
 
27685
 
#include <string.h>
27686
 
#include <errno.h>
27687
 
int
27688
 
main () {
27689
 
  char buffer[1024]; /* big enough to play with */
27690
 
  int error =
27691
 
    strerror_r(EACCES, buffer, sizeof(buffer));
27692
 
    /* This should've returned zero, and written an error string in the
27693
 
       buffer.*/
27694
 
    if(!buffer[0] || error)
27695
 
      return 99;
27696
 
    return 0;
27697
 
}
27698
 
 
27699
 
_ACEOF
27700
 
rm -f conftest$ac_exeext
27701
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27702
 
  (eval $ac_link) 2>&5
27703
 
  ac_status=$?
27704
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27706
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27707
 
  (eval $ac_try) 2>&5
27708
 
  ac_status=$?
27709
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710
 
  (exit $ac_status); }; }; then
27711
 
 
27712
 
cat >>confdefs.h <<\_ACEOF
27713
 
#define HAVE_POSIX_STRERROR_R 1
27714
 
_ACEOF
27715
 
 
27716
 
    echo "$as_me:$LINENO: result: yes" >&5
27717
 
echo "${ECHO_T}yes" >&6
27718
 
else
27719
 
  echo "$as_me: program exited with status $ac_status" >&5
27720
 
echo "$as_me: failed program was:" >&5
27721
 
sed 's/^/| /' conftest.$ac_ext >&5
27722
 
 
27723
 
( exit $ac_status )
27724
 
echo "$as_me:$LINENO: result: no" >&5
27725
 
echo "${ECHO_T}no" >&6
27726
 
 
27727
 
fi
27728
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27729
 
fi
27730
 
 
27731
 
  fi
27732
 
 
27733
 
 
27734
 
 
27735
 
 
27736
 
for ac_func in gmtime_r
27737
 
do
27738
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27739
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
27740
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27741
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
27742
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
27743
 
else
27744
 
  cat >conftest.$ac_ext <<_ACEOF
27745
 
/* confdefs.h.  */
27746
 
_ACEOF
27747
 
cat confdefs.h >>conftest.$ac_ext
27748
 
cat >>conftest.$ac_ext <<_ACEOF
27749
 
/* end confdefs.h.  */
27750
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27751
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27752
 
#define $ac_func innocuous_$ac_func
27753
 
 
27754
 
/* System header to define __stub macros and hopefully few prototypes,
27755
 
    which can conflict with char $ac_func (); below.
27756
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27757
 
    <limits.h> exists even on freestanding compilers.  */
27758
 
 
27759
 
#ifdef __STDC__
27760
 
# include <limits.h>
27761
 
#else
27762
 
# include <assert.h>
27763
 
#endif
27764
 
 
27765
 
#undef $ac_func
27766
 
 
27767
 
/* Override any gcc2 internal prototype to avoid an error.  */
27768
 
#ifdef __cplusplus
27769
 
extern "C"
27770
 
{
27771
 
#endif
27772
 
/* We use char because int might match the return type of a gcc2
27773
 
   builtin and then its argument prototype would still apply.  */
27774
 
char $ac_func ();
27775
 
/* The GNU C library defines this for functions which it implements
27776
 
    to always fail with ENOSYS.  Some functions are actually named
27777
 
    something starting with __ and the normal name is an alias.  */
27778
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27779
 
choke me
27780
 
#else
27781
 
char (*f) () = $ac_func;
27782
 
#endif
27783
 
#ifdef __cplusplus
27784
 
}
27785
 
#endif
27786
 
 
27787
 
int
27788
 
main ()
27789
 
{
27790
 
return f != $ac_func;
27791
 
  ;
27792
 
  return 0;
27793
 
}
27794
 
_ACEOF
27795
 
rm -f conftest.$ac_objext conftest$ac_exeext
27796
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27797
 
  (eval $ac_link) 2>conftest.er1
27798
 
  ac_status=$?
27799
 
  grep -v '^ *+' conftest.er1 >conftest.err
27800
 
  rm -f conftest.er1
27801
 
  cat conftest.err >&5
27802
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27803
 
  (exit $ac_status); } &&
27804
 
         { ac_try='test -z "$ac_c_werror_flag"
27805
 
                         || test ! -s conftest.err'
27806
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27807
 
  (eval $ac_try) 2>&5
27808
 
  ac_status=$?
27809
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810
 
  (exit $ac_status); }; } &&
27811
 
         { ac_try='test -s conftest$ac_exeext'
27812
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27813
 
  (eval $ac_try) 2>&5
27814
 
  ac_status=$?
27815
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816
 
  (exit $ac_status); }; }; then
27817
 
  eval "$as_ac_var=yes"
27818
 
else
27819
 
  echo "$as_me: failed program was:" >&5
27820
 
sed 's/^/| /' conftest.$ac_ext >&5
27821
 
 
27822
 
eval "$as_ac_var=no"
27823
 
fi
27824
 
rm -f conftest.err conftest.$ac_objext \
27825
 
      conftest$ac_exeext conftest.$ac_ext
27826
 
fi
27827
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27828
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27829
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
27830
 
  cat >>confdefs.h <<_ACEOF
27831
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27832
 
_ACEOF
27833
 
 
27834
 
fi
27835
 
done
27836
 
 
27837
 
fi
27838
 
 
27839
 
 
27840
 
 
27841
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27842
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
27843
 
if test "${ac_cv_header_stdc+set}" = set; then
27844
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
27845
 
else
27846
 
  cat >conftest.$ac_ext <<_ACEOF
27847
 
/* confdefs.h.  */
27848
 
_ACEOF
27849
 
cat confdefs.h >>conftest.$ac_ext
27850
 
cat >>conftest.$ac_ext <<_ACEOF
27851
 
/* end confdefs.h.  */
27852
 
#include <stdlib.h>
27853
 
#include <stdarg.h>
27854
 
#include <string.h>
27855
 
#include <float.h>
27856
 
 
27857
 
int
27858
 
main ()
27859
 
{
27860
 
 
27861
 
  ;
27862
 
  return 0;
27863
 
}
27864
 
_ACEOF
27865
 
rm -f conftest.$ac_objext
27866
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27867
 
  (eval $ac_compile) 2>conftest.er1
27868
 
  ac_status=$?
27869
 
  grep -v '^ *+' conftest.er1 >conftest.err
27870
 
  rm -f conftest.er1
27871
 
  cat conftest.err >&5
27872
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27873
 
  (exit $ac_status); } &&
27874
 
         { ac_try='test -z "$ac_c_werror_flag"
27875
 
                         || test ! -s conftest.err'
27876
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27877
 
  (eval $ac_try) 2>&5
27878
 
  ac_status=$?
27879
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880
 
  (exit $ac_status); }; } &&
27881
 
         { ac_try='test -s conftest.$ac_objext'
27882
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27883
 
  (eval $ac_try) 2>&5
27884
 
  ac_status=$?
27885
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886
 
  (exit $ac_status); }; }; then
27887
 
  ac_cv_header_stdc=yes
27888
 
else
27889
 
  echo "$as_me: failed program was:" >&5
27890
 
sed 's/^/| /' conftest.$ac_ext >&5
27891
 
 
27892
 
ac_cv_header_stdc=no
27893
 
fi
27894
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27895
 
 
27896
 
if test $ac_cv_header_stdc = yes; then
27897
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27898
 
  cat >conftest.$ac_ext <<_ACEOF
27899
 
/* confdefs.h.  */
27900
 
_ACEOF
27901
 
cat confdefs.h >>conftest.$ac_ext
27902
 
cat >>conftest.$ac_ext <<_ACEOF
27903
 
/* end confdefs.h.  */
27904
 
#include <string.h>
27905
 
 
27906
 
_ACEOF
27907
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27908
 
  $EGREP "memchr" >/dev/null 2>&1; then
27909
 
  :
27910
 
else
27911
 
  ac_cv_header_stdc=no
27912
 
fi
27913
 
rm -f conftest*
27914
 
 
27915
 
fi
27916
 
 
27917
 
if test $ac_cv_header_stdc = yes; then
27918
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27919
 
  cat >conftest.$ac_ext <<_ACEOF
27920
 
/* confdefs.h.  */
27921
 
_ACEOF
27922
 
cat confdefs.h >>conftest.$ac_ext
27923
 
cat >>conftest.$ac_ext <<_ACEOF
27924
 
/* end confdefs.h.  */
27925
 
#include <stdlib.h>
27926
 
 
27927
 
_ACEOF
27928
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27929
 
  $EGREP "free" >/dev/null 2>&1; then
27930
 
  :
27931
 
else
27932
 
  ac_cv_header_stdc=no
27933
 
fi
27934
 
rm -f conftest*
27935
 
 
27936
 
fi
27937
 
 
27938
 
if test $ac_cv_header_stdc = yes; then
27939
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27940
 
  if test "$cross_compiling" = yes; then
27941
 
  :
27942
 
else
27943
 
  cat >conftest.$ac_ext <<_ACEOF
27944
 
/* confdefs.h.  */
27945
 
_ACEOF
27946
 
cat confdefs.h >>conftest.$ac_ext
27947
 
cat >>conftest.$ac_ext <<_ACEOF
27948
 
/* end confdefs.h.  */
27949
 
#include <ctype.h>
27950
 
#if ((' ' & 0x0FF) == 0x020)
27951
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27952
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27953
 
#else
27954
 
# define ISLOWER(c) \
27955
 
                   (('a' <= (c) && (c) <= 'i') \
27956
 
                     || ('j' <= (c) && (c) <= 'r') \
27957
 
                     || ('s' <= (c) && (c) <= 'z'))
27958
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27959
 
#endif
27960
 
 
27961
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27962
 
int
27963
 
main ()
27964
 
{
27965
 
  int i;
27966
 
  for (i = 0; i < 256; i++)
27967
 
    if (XOR (islower (i), ISLOWER (i))
27968
 
        || toupper (i) != TOUPPER (i))
27969
 
      exit(2);
27970
 
  exit (0);
27971
 
}
27972
 
_ACEOF
27973
 
rm -f conftest$ac_exeext
27974
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27975
 
  (eval $ac_link) 2>&5
27976
 
  ac_status=$?
27977
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27979
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27980
 
  (eval $ac_try) 2>&5
27981
 
  ac_status=$?
27982
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983
 
  (exit $ac_status); }; }; then
27984
 
  :
27985
 
else
27986
 
  echo "$as_me: program exited with status $ac_status" >&5
27987
 
echo "$as_me: failed program was:" >&5
27988
 
sed 's/^/| /' conftest.$ac_ext >&5
27989
 
 
27990
 
( exit $ac_status )
27991
 
ac_cv_header_stdc=no
27992
 
fi
27993
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27994
 
fi
27995
 
fi
27996
 
fi
27997
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27998
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
27999
 
if test $ac_cv_header_stdc = yes; then
28000
 
 
28001
 
cat >>confdefs.h <<\_ACEOF
28002
 
#define STDC_HEADERS 1
28003
 
_ACEOF
28004
 
 
28005
 
fi
28006
 
 
28007
 
 
28008
 
 
28009
 
 
28010
 
 
28011
 
 
28012
 
 
28013
 
 
28014
 
 
28015
 
 
28016
 
 
28017
 
 
28018
 
 
28019
 
 
28020
 
 
28021
 
 
28022
 
 
28023
 
 
28024
 
 
28025
 
 
28026
 
 
28027
 
 
28028
 
 
28029
 
 
28030
 
 
28031
 
 
28032
 
 
28033
 
 
28034
 
 
28035
 
 
28036
 
 
28037
 
 
28038
 
 
28039
 
 
28040
 
for ac_header in sys/types.h \
28041
 
        sys/time.h \
28042
 
        sys/select.h \
28043
 
        sys/socket.h \
28044
 
        sys/ioctl.h \
28045
 
        assert.h \
28046
 
        unistd.h \
28047
 
        malloc.h \
28048
 
        stdlib.h \
28049
 
        limits.h \
28050
 
        arpa/inet.h \
28051
 
        net/if.h \
28052
 
        netinet/in.h \
28053
 
        netinet/tcp.h \
28054
 
        netdb.h \
28055
 
        sys/sockio.h \
28056
 
        sys/stat.h \
28057
 
        sys/param.h \
28058
 
        termios.h \
28059
 
        termio.h \
28060
 
        sgtty.h \
28061
 
        fcntl.h \
28062
 
        dlfcn.h \
28063
 
        alloca.h \
28064
 
        winsock.h \
28065
 
        time.h \
28066
 
        io.h \
28067
 
        pwd.h \
28068
 
        utime.h \
28069
 
        sys/utime.h \
28070
 
        sys/poll.h \
28071
 
        setjmp.h
28072
 
do
28073
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28074
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
28075
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28076
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
28077
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
28078
 
else
28079
 
  cat >conftest.$ac_ext <<_ACEOF
28080
 
/* confdefs.h.  */
28081
 
_ACEOF
28082
 
cat confdefs.h >>conftest.$ac_ext
28083
 
cat >>conftest.$ac_ext <<_ACEOF
28084
 
/* end confdefs.h.  */
28085
 
 
28086
 
#ifdef HAVE_SYS_TYPES_H
28087
 
#include <sys/types.h>
28088
 
#endif
28089
 
#ifdef HAVE_SYS_TIME_H
28090
 
#include <sys/time.h>
28091
 
#endif
28092
 
#ifdef HAVE_SYS_SELECT_H
28093
 
#include <sys/select.h>
28094
 
#endif
28095
 
#ifdef HAVE_SYS_SOCKET_H
28096
 
#include <sys/socket.h>
28097
 
#endif
28098
 
#ifdef HAVE_NETINET_IN_H
28099
 
#include <netinet/in.h>
28100
 
#endif
28101
 
 
28102
 
 
28103
 
 
28104
 
#include <$ac_header>
28105
 
_ACEOF
28106
 
rm -f conftest.$ac_objext
28107
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28108
 
  (eval $ac_compile) 2>conftest.er1
28109
 
  ac_status=$?
28110
 
  grep -v '^ *+' conftest.er1 >conftest.err
28111
 
  rm -f conftest.er1
28112
 
  cat conftest.err >&5
28113
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114
 
  (exit $ac_status); } &&
28115
 
         { ac_try='test -z "$ac_c_werror_flag"
28116
 
                         || test ! -s conftest.err'
28117
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118
 
  (eval $ac_try) 2>&5
28119
 
  ac_status=$?
28120
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121
 
  (exit $ac_status); }; } &&
28122
 
         { ac_try='test -s conftest.$ac_objext'
28123
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28124
 
  (eval $ac_try) 2>&5
28125
 
  ac_status=$?
28126
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127
 
  (exit $ac_status); }; }; then
28128
 
  eval "$as_ac_Header=yes"
28129
 
else
28130
 
  echo "$as_me: failed program was:" >&5
28131
 
sed 's/^/| /' conftest.$ac_ext >&5
28132
 
 
28133
 
eval "$as_ac_Header=no"
28134
 
fi
28135
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28136
 
fi
28137
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28138
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28139
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
28140
 
  cat >>confdefs.h <<_ACEOF
28141
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28142
 
_ACEOF
28143
 
 
28144
 
fi
28145
 
 
28146
 
done
28147
 
 
28148
 
 
28149
 
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
28150
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
28151
 
if test "${ac_cv_c_const+set}" = set; then
28152
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
28153
 
else
28154
 
  cat >conftest.$ac_ext <<_ACEOF
28155
 
/* confdefs.h.  */
28156
 
_ACEOF
28157
 
cat confdefs.h >>conftest.$ac_ext
28158
 
cat >>conftest.$ac_ext <<_ACEOF
28159
 
/* end confdefs.h.  */
28160
 
 
28161
 
int
28162
 
main ()
28163
 
{
28164
 
/* FIXME: Include the comments suggested by Paul. */
28165
 
#ifndef __cplusplus
28166
 
  /* Ultrix mips cc rejects this.  */
28167
 
  typedef int charset[2];
28168
 
  const charset x;
28169
 
  /* SunOS 4.1.1 cc rejects this.  */
28170
 
  char const *const *ccp;
28171
 
  char **p;
28172
 
  /* NEC SVR4.0.2 mips cc rejects this.  */
28173
 
  struct point {int x, y;};
28174
 
  static struct point const zero = {0,0};
28175
 
  /* AIX XL C 1.02.0.0 rejects this.
28176
 
     It does not let you subtract one const X* pointer from another in
28177
 
     an arm of an if-expression whose if-part is not a constant
28178
 
     expression */
28179
 
  const char *g = "string";
28180
 
  ccp = &g + (g ? g-g : 0);
28181
 
  /* HPUX 7.0 cc rejects these. */
28182
 
  ++ccp;
28183
 
  p = (char**) ccp;
28184
 
  ccp = (char const *const *) p;
28185
 
  { /* SCO 3.2v4 cc rejects this.  */
28186
 
    char *t;
28187
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
28188
 
 
28189
 
    *t++ = 0;
28190
 
  }
28191
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
28192
 
    int x[] = {25, 17};
28193
 
    const int *foo = &x[0];
28194
 
    ++foo;
28195
 
  }
28196
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28197
 
    typedef const int *iptr;
28198
 
    iptr p = 0;
28199
 
    ++p;
28200
 
  }
28201
 
  { /* AIX XL C 1.02.0.0 rejects this saying
28202
 
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28203
 
    struct s { int j; const int *ap[3]; };
28204
 
    struct s *b; b->j = 5;
28205
 
  }
28206
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28207
 
    const int foo = 10;
28208
 
  }
28209
 
#endif
28210
 
 
28211
 
  ;
28212
 
  return 0;
28213
 
}
28214
 
_ACEOF
28215
 
rm -f conftest.$ac_objext
28216
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28217
 
  (eval $ac_compile) 2>conftest.er1
28218
 
  ac_status=$?
28219
 
  grep -v '^ *+' conftest.er1 >conftest.err
28220
 
  rm -f conftest.er1
28221
 
  cat conftest.err >&5
28222
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223
 
  (exit $ac_status); } &&
28224
 
         { ac_try='test -z "$ac_c_werror_flag"
28225
 
                         || test ! -s conftest.err'
28226
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28227
 
  (eval $ac_try) 2>&5
28228
 
  ac_status=$?
28229
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230
 
  (exit $ac_status); }; } &&
28231
 
         { ac_try='test -s conftest.$ac_objext'
28232
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28233
 
  (eval $ac_try) 2>&5
28234
 
  ac_status=$?
28235
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236
 
  (exit $ac_status); }; }; then
28237
 
  ac_cv_c_const=yes
28238
 
else
28239
 
  echo "$as_me: failed program was:" >&5
28240
 
sed 's/^/| /' conftest.$ac_ext >&5
28241
 
 
28242
 
ac_cv_c_const=no
28243
 
fi
28244
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28245
 
fi
28246
 
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
28247
 
echo "${ECHO_T}$ac_cv_c_const" >&6
28248
 
if test $ac_cv_c_const = no; then
28249
 
 
28250
 
cat >>confdefs.h <<\_ACEOF
28251
 
#define const
28252
 
_ACEOF
28253
 
 
28254
 
fi
28255
 
 
28256
 
echo "$as_me:$LINENO: checking for size_t" >&5
28257
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28258
 
if test "${ac_cv_type_size_t+set}" = set; then
28259
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
28260
 
else
28261
 
  cat >conftest.$ac_ext <<_ACEOF
28262
 
/* confdefs.h.  */
28263
 
_ACEOF
28264
 
cat confdefs.h >>conftest.$ac_ext
28265
 
cat >>conftest.$ac_ext <<_ACEOF
28266
 
/* end confdefs.h.  */
28267
 
$ac_includes_default
28268
 
int
28269
 
main ()
28270
 
{
28271
 
if ((size_t *) 0)
28272
 
  return 0;
28273
 
if (sizeof (size_t))
28274
 
  return 0;
28275
 
  ;
28276
 
  return 0;
28277
 
}
28278
 
_ACEOF
28279
 
rm -f conftest.$ac_objext
28280
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28281
 
  (eval $ac_compile) 2>conftest.er1
28282
 
  ac_status=$?
28283
 
  grep -v '^ *+' conftest.er1 >conftest.err
28284
 
  rm -f conftest.er1
28285
 
  cat conftest.err >&5
28286
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287
 
  (exit $ac_status); } &&
28288
 
         { ac_try='test -z "$ac_c_werror_flag"
28289
 
                         || test ! -s conftest.err'
28290
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28291
 
  (eval $ac_try) 2>&5
28292
 
  ac_status=$?
28293
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294
 
  (exit $ac_status); }; } &&
28295
 
         { ac_try='test -s conftest.$ac_objext'
28296
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28297
 
  (eval $ac_try) 2>&5
28298
 
  ac_status=$?
28299
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300
 
  (exit $ac_status); }; }; then
28301
 
  ac_cv_type_size_t=yes
28302
 
else
28303
 
  echo "$as_me: failed program was:" >&5
28304
 
sed 's/^/| /' conftest.$ac_ext >&5
28305
 
 
28306
 
ac_cv_type_size_t=no
28307
 
fi
28308
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28309
 
fi
28310
 
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28311
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6
28312
 
if test $ac_cv_type_size_t = yes; then
28313
 
  :
28314
 
else
28315
 
 
28316
 
cat >>confdefs.h <<_ACEOF
28317
 
#define size_t unsigned
28318
 
_ACEOF
28319
 
 
28320
 
fi
28321
 
 
28322
 
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28323
 
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
28324
 
if test "${ac_cv_header_time+set}" = set; then
28325
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
28326
 
else
28327
 
  cat >conftest.$ac_ext <<_ACEOF
28328
 
/* confdefs.h.  */
28329
 
_ACEOF
28330
 
cat confdefs.h >>conftest.$ac_ext
28331
 
cat >>conftest.$ac_ext <<_ACEOF
28332
 
/* end confdefs.h.  */
28333
 
#include <sys/types.h>
28334
 
#include <sys/time.h>
28335
 
#include <time.h>
28336
 
 
28337
 
int
28338
 
main ()
28339
 
{
28340
 
if ((struct tm *) 0)
28341
 
return 0;
28342
 
  ;
28343
 
  return 0;
28344
 
}
28345
 
_ACEOF
28346
 
rm -f conftest.$ac_objext
28347
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28348
 
  (eval $ac_compile) 2>conftest.er1
28349
 
  ac_status=$?
28350
 
  grep -v '^ *+' conftest.er1 >conftest.err
28351
 
  rm -f conftest.er1
28352
 
  cat conftest.err >&5
28353
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28354
 
  (exit $ac_status); } &&
28355
 
         { ac_try='test -z "$ac_c_werror_flag"
28356
 
                         || test ! -s conftest.err'
28357
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28358
 
  (eval $ac_try) 2>&5
28359
 
  ac_status=$?
28360
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361
 
  (exit $ac_status); }; } &&
28362
 
         { ac_try='test -s conftest.$ac_objext'
28363
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28364
 
  (eval $ac_try) 2>&5
28365
 
  ac_status=$?
28366
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367
 
  (exit $ac_status); }; }; then
28368
 
  ac_cv_header_time=yes
28369
 
else
28370
 
  echo "$as_me: failed program was:" >&5
28371
 
sed 's/^/| /' conftest.$ac_ext >&5
28372
 
 
28373
 
ac_cv_header_time=no
28374
 
fi
28375
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28376
 
fi
28377
 
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28378
 
echo "${ECHO_T}$ac_cv_header_time" >&6
28379
 
if test $ac_cv_header_time = yes; then
28380
 
 
28381
 
cat >>confdefs.h <<\_ACEOF
28382
 
#define TIME_WITH_SYS_TIME 1
28383
 
_ACEOF
28384
 
 
28385
 
fi
28386
 
 
28387
 
 
28388
 
echo "$as_me:$LINENO: checking for curl_off_t" >&5
28389
 
echo $ECHO_N "checking for curl_off_t... $ECHO_C" >&6
28390
 
if test "${ac_cv_type_curl_off_t+set}" = set; then
28391
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
28392
 
else
28393
 
  cat >conftest.$ac_ext <<_ACEOF
28394
 
/* confdefs.h.  */
28395
 
_ACEOF
28396
 
cat confdefs.h >>conftest.$ac_ext
28397
 
cat >>conftest.$ac_ext <<_ACEOF
28398
 
/* end confdefs.h.  */
28399
 
 
28400
 
#include <stdio.h>
28401
 
#include "$srcdir/include/curl/curl.h"
28402
 
 
28403
 
 
28404
 
int
28405
 
main ()
28406
 
{
28407
 
if ((curl_off_t *) 0)
28408
 
  return 0;
28409
 
if (sizeof (curl_off_t))
28410
 
  return 0;
28411
 
  ;
28412
 
  return 0;
28413
 
}
28414
 
_ACEOF
28415
 
rm -f conftest.$ac_objext
28416
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28417
 
  (eval $ac_compile) 2>conftest.er1
28418
 
  ac_status=$?
28419
 
  grep -v '^ *+' conftest.er1 >conftest.err
28420
 
  rm -f conftest.er1
28421
 
  cat conftest.err >&5
28422
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423
 
  (exit $ac_status); } &&
28424
 
         { ac_try='test -z "$ac_c_werror_flag"
28425
 
                         || test ! -s conftest.err'
28426
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28427
 
  (eval $ac_try) 2>&5
28428
 
  ac_status=$?
28429
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430
 
  (exit $ac_status); }; } &&
28431
 
         { ac_try='test -s conftest.$ac_objext'
28432
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28433
 
  (eval $ac_try) 2>&5
28434
 
  ac_status=$?
28435
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436
 
  (exit $ac_status); }; }; then
28437
 
  ac_cv_type_curl_off_t=yes
28438
 
else
28439
 
  echo "$as_me: failed program was:" >&5
28440
 
sed 's/^/| /' conftest.$ac_ext >&5
28441
 
 
28442
 
ac_cv_type_curl_off_t=no
28443
 
fi
28444
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28445
 
fi
28446
 
echo "$as_me:$LINENO: result: $ac_cv_type_curl_off_t" >&5
28447
 
echo "${ECHO_T}$ac_cv_type_curl_off_t" >&6
28448
 
 
28449
 
echo "$as_me:$LINENO: checking size of curl_off_t" >&5
28450
 
echo $ECHO_N "checking size of curl_off_t... $ECHO_C" >&6
28451
 
if test "${ac_cv_sizeof_curl_off_t+set}" = set; then
28452
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
28453
 
else
28454
 
  if test "$ac_cv_type_curl_off_t" = yes; then
28455
 
  # The cast to unsigned long works around a bug in the HP C Compiler
28456
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28457
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28458
 
  # This bug is HP SR number 8606223364.
28459
 
  if test "$cross_compiling" = yes; then
28460
 
  # Depending upon the size, compute the lo and hi bounds.
28461
 
cat >conftest.$ac_ext <<_ACEOF
28462
 
/* confdefs.h.  */
28463
 
_ACEOF
28464
 
cat confdefs.h >>conftest.$ac_ext
28465
 
cat >>conftest.$ac_ext <<_ACEOF
28466
 
/* end confdefs.h.  */
28467
 
 
28468
 
#include <stdio.h>
28469
 
#include "$srcdir/include/curl/curl.h"
28470
 
 
28471
 
 
28472
 
int
28473
 
main ()
28474
 
{
28475
 
static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) >= 0)];
28476
 
test_array [0] = 0
28477
 
 
28478
 
  ;
28479
 
  return 0;
28480
 
}
28481
 
_ACEOF
28482
 
rm -f conftest.$ac_objext
28483
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28484
 
  (eval $ac_compile) 2>conftest.er1
28485
 
  ac_status=$?
28486
 
  grep -v '^ *+' conftest.er1 >conftest.err
28487
 
  rm -f conftest.er1
28488
 
  cat conftest.err >&5
28489
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490
 
  (exit $ac_status); } &&
28491
 
         { ac_try='test -z "$ac_c_werror_flag"
28492
 
                         || test ! -s conftest.err'
28493
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28494
 
  (eval $ac_try) 2>&5
28495
 
  ac_status=$?
28496
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497
 
  (exit $ac_status); }; } &&
28498
 
         { ac_try='test -s conftest.$ac_objext'
28499
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28500
 
  (eval $ac_try) 2>&5
28501
 
  ac_status=$?
28502
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503
 
  (exit $ac_status); }; }; then
28504
 
  ac_lo=0 ac_mid=0
28505
 
  while :; do
28506
 
    cat >conftest.$ac_ext <<_ACEOF
28507
 
/* confdefs.h.  */
28508
 
_ACEOF
28509
 
cat confdefs.h >>conftest.$ac_ext
28510
 
cat >>conftest.$ac_ext <<_ACEOF
28511
 
/* end confdefs.h.  */
28512
 
 
28513
 
#include <stdio.h>
28514
 
#include "$srcdir/include/curl/curl.h"
28515
 
 
28516
 
 
28517
 
int
28518
 
main ()
28519
 
{
28520
 
static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) <= $ac_mid)];
28521
 
test_array [0] = 0
28522
 
 
28523
 
  ;
28524
 
  return 0;
28525
 
}
28526
 
_ACEOF
28527
 
rm -f conftest.$ac_objext
28528
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28529
 
  (eval $ac_compile) 2>conftest.er1
28530
 
  ac_status=$?
28531
 
  grep -v '^ *+' conftest.er1 >conftest.err
28532
 
  rm -f conftest.er1
28533
 
  cat conftest.err >&5
28534
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28535
 
  (exit $ac_status); } &&
28536
 
         { ac_try='test -z "$ac_c_werror_flag"
28537
 
                         || test ! -s conftest.err'
28538
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28539
 
  (eval $ac_try) 2>&5
28540
 
  ac_status=$?
28541
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542
 
  (exit $ac_status); }; } &&
28543
 
         { ac_try='test -s conftest.$ac_objext'
28544
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28545
 
  (eval $ac_try) 2>&5
28546
 
  ac_status=$?
28547
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28548
 
  (exit $ac_status); }; }; then
28549
 
  ac_hi=$ac_mid; break
28550
 
else
28551
 
  echo "$as_me: failed program was:" >&5
28552
 
sed 's/^/| /' conftest.$ac_ext >&5
28553
 
 
28554
 
ac_lo=`expr $ac_mid + 1`
28555
 
                    if test $ac_lo -le $ac_mid; then
28556
 
                      ac_lo= ac_hi=
28557
 
                      break
28558
 
                    fi
28559
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
28560
 
fi
28561
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28562
 
  done
28563
 
else
28564
 
  echo "$as_me: failed program was:" >&5
28565
 
sed 's/^/| /' conftest.$ac_ext >&5
28566
 
 
28567
 
cat >conftest.$ac_ext <<_ACEOF
28568
 
/* confdefs.h.  */
28569
 
_ACEOF
28570
 
cat confdefs.h >>conftest.$ac_ext
28571
 
cat >>conftest.$ac_ext <<_ACEOF
28572
 
/* end confdefs.h.  */
28573
 
 
28574
 
#include <stdio.h>
28575
 
#include "$srcdir/include/curl/curl.h"
28576
 
 
28577
 
 
28578
 
int
28579
 
main ()
28580
 
{
28581
 
static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) < 0)];
28582
 
test_array [0] = 0
28583
 
 
28584
 
  ;
28585
 
  return 0;
28586
 
}
28587
 
_ACEOF
28588
 
rm -f conftest.$ac_objext
28589
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28590
 
  (eval $ac_compile) 2>conftest.er1
28591
 
  ac_status=$?
28592
 
  grep -v '^ *+' conftest.er1 >conftest.err
28593
 
  rm -f conftest.er1
28594
 
  cat conftest.err >&5
28595
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596
 
  (exit $ac_status); } &&
28597
 
         { ac_try='test -z "$ac_c_werror_flag"
28598
 
                         || test ! -s conftest.err'
28599
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28600
 
  (eval $ac_try) 2>&5
28601
 
  ac_status=$?
28602
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603
 
  (exit $ac_status); }; } &&
28604
 
         { ac_try='test -s conftest.$ac_objext'
28605
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28606
 
  (eval $ac_try) 2>&5
28607
 
  ac_status=$?
28608
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609
 
  (exit $ac_status); }; }; then
28610
 
  ac_hi=-1 ac_mid=-1
28611
 
  while :; do
28612
 
    cat >conftest.$ac_ext <<_ACEOF
28613
 
/* confdefs.h.  */
28614
 
_ACEOF
28615
 
cat confdefs.h >>conftest.$ac_ext
28616
 
cat >>conftest.$ac_ext <<_ACEOF
28617
 
/* end confdefs.h.  */
28618
 
 
28619
 
#include <stdio.h>
28620
 
#include "$srcdir/include/curl/curl.h"
28621
 
 
28622
 
 
28623
 
int
28624
 
main ()
28625
 
{
28626
 
static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) >= $ac_mid)];
28627
 
test_array [0] = 0
28628
 
 
28629
 
  ;
28630
 
  return 0;
28631
 
}
28632
 
_ACEOF
28633
 
rm -f conftest.$ac_objext
28634
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28635
 
  (eval $ac_compile) 2>conftest.er1
28636
 
  ac_status=$?
28637
 
  grep -v '^ *+' conftest.er1 >conftest.err
28638
 
  rm -f conftest.er1
28639
 
  cat conftest.err >&5
28640
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641
 
  (exit $ac_status); } &&
28642
 
         { ac_try='test -z "$ac_c_werror_flag"
28643
 
                         || test ! -s conftest.err'
28644
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28645
 
  (eval $ac_try) 2>&5
28646
 
  ac_status=$?
28647
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28648
 
  (exit $ac_status); }; } &&
28649
 
         { ac_try='test -s conftest.$ac_objext'
28650
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28651
 
  (eval $ac_try) 2>&5
28652
 
  ac_status=$?
28653
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654
 
  (exit $ac_status); }; }; then
28655
 
  ac_lo=$ac_mid; break
28656
 
else
28657
 
  echo "$as_me: failed program was:" >&5
28658
 
sed 's/^/| /' conftest.$ac_ext >&5
28659
 
 
28660
 
ac_hi=`expr '(' $ac_mid ')' - 1`
28661
 
                       if test $ac_mid -le $ac_hi; then
28662
 
                         ac_lo= ac_hi=
28663
 
                         break
28664
 
                       fi
28665
 
                       ac_mid=`expr 2 '*' $ac_mid`
28666
 
fi
28667
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28668
 
  done
28669
 
else
28670
 
  echo "$as_me: failed program was:" >&5
28671
 
sed 's/^/| /' conftest.$ac_ext >&5
28672
 
 
28673
 
ac_lo= ac_hi=
28674
 
fi
28675
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28676
 
fi
28677
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28678
 
# Binary search between lo and hi bounds.
28679
 
while test "x$ac_lo" != "x$ac_hi"; do
28680
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28681
 
  cat >conftest.$ac_ext <<_ACEOF
28682
 
/* confdefs.h.  */
28683
 
_ACEOF
28684
 
cat confdefs.h >>conftest.$ac_ext
28685
 
cat >>conftest.$ac_ext <<_ACEOF
28686
 
/* end confdefs.h.  */
28687
 
 
28688
 
#include <stdio.h>
28689
 
#include "$srcdir/include/curl/curl.h"
28690
 
 
28691
 
 
28692
 
int
28693
 
main ()
28694
 
{
28695
 
static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) <= $ac_mid)];
28696
 
test_array [0] = 0
28697
 
 
28698
 
  ;
28699
 
  return 0;
28700
 
}
28701
 
_ACEOF
28702
 
rm -f conftest.$ac_objext
28703
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28704
 
  (eval $ac_compile) 2>conftest.er1
28705
 
  ac_status=$?
28706
 
  grep -v '^ *+' conftest.er1 >conftest.err
28707
 
  rm -f conftest.er1
28708
 
  cat conftest.err >&5
28709
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28710
 
  (exit $ac_status); } &&
28711
 
         { ac_try='test -z "$ac_c_werror_flag"
28712
 
                         || test ! -s conftest.err'
28713
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28714
 
  (eval $ac_try) 2>&5
28715
 
  ac_status=$?
28716
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717
 
  (exit $ac_status); }; } &&
28718
 
         { ac_try='test -s conftest.$ac_objext'
28719
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28720
 
  (eval $ac_try) 2>&5
28721
 
  ac_status=$?
28722
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723
 
  (exit $ac_status); }; }; then
28724
 
  ac_hi=$ac_mid
28725
 
else
28726
 
  echo "$as_me: failed program was:" >&5
28727
 
sed 's/^/| /' conftest.$ac_ext >&5
28728
 
 
28729
 
ac_lo=`expr '(' $ac_mid ')' + 1`
28730
 
fi
28731
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28732
 
done
28733
 
case $ac_lo in
28734
 
?*) ac_cv_sizeof_curl_off_t=$ac_lo;;
28735
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (curl_off_t), 77
28736
 
See \`config.log' for more details." >&5
28737
 
echo "$as_me: error: cannot compute sizeof (curl_off_t), 77
28738
 
See \`config.log' for more details." >&2;}
28739
 
   { (exit 1); exit 1; }; } ;;
28740
 
esac
28741
 
else
28742
 
  if test "$cross_compiling" = yes; then
28743
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28744
 
See \`config.log' for more details." >&5
28745
 
echo "$as_me: error: cannot run test program while cross compiling
28746
 
See \`config.log' for more details." >&2;}
28747
 
   { (exit 1); exit 1; }; }
28748
 
else
28749
 
  cat >conftest.$ac_ext <<_ACEOF
28750
 
/* confdefs.h.  */
28751
 
_ACEOF
28752
 
cat confdefs.h >>conftest.$ac_ext
28753
 
cat >>conftest.$ac_ext <<_ACEOF
28754
 
/* end confdefs.h.  */
28755
 
 
28756
 
#include <stdio.h>
28757
 
#include "$srcdir/include/curl/curl.h"
28758
 
 
28759
 
 
28760
 
long longval () { return (long) (sizeof (curl_off_t)); }
28761
 
unsigned long ulongval () { return (long) (sizeof (curl_off_t)); }
28762
 
#include <stdio.h>
28763
 
#include <stdlib.h>
28764
 
int
28765
 
main ()
28766
 
{
28767
 
 
28768
 
  FILE *f = fopen ("conftest.val", "w");
28769
 
  if (! f)
28770
 
    exit (1);
28771
 
  if (((long) (sizeof (curl_off_t))) < 0)
28772
 
    {
28773
 
      long i = longval ();
28774
 
      if (i != ((long) (sizeof (curl_off_t))))
28775
 
        exit (1);
28776
 
      fprintf (f, "%ld\n", i);
28777
 
    }
28778
 
  else
28779
 
    {
28780
 
      unsigned long i = ulongval ();
28781
 
      if (i != ((long) (sizeof (curl_off_t))))
28782
 
        exit (1);
28783
 
      fprintf (f, "%lu\n", i);
28784
 
    }
28785
 
  exit (ferror (f) || fclose (f) != 0);
28786
 
 
28787
 
  ;
28788
 
  return 0;
28789
 
}
28790
 
_ACEOF
28791
 
rm -f conftest$ac_exeext
28792
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28793
 
  (eval $ac_link) 2>&5
28794
 
  ac_status=$?
28795
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28797
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28798
 
  (eval $ac_try) 2>&5
28799
 
  ac_status=$?
28800
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801
 
  (exit $ac_status); }; }; then
28802
 
  ac_cv_sizeof_curl_off_t=`cat conftest.val`
28803
 
else
28804
 
  echo "$as_me: program exited with status $ac_status" >&5
28805
 
echo "$as_me: failed program was:" >&5
28806
 
sed 's/^/| /' conftest.$ac_ext >&5
28807
 
 
28808
 
( exit $ac_status )
28809
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (curl_off_t), 77
28810
 
See \`config.log' for more details." >&5
28811
 
echo "$as_me: error: cannot compute sizeof (curl_off_t), 77
28812
 
See \`config.log' for more details." >&2;}
28813
 
   { (exit 1); exit 1; }; }
28814
 
fi
28815
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28816
 
fi
28817
 
fi
28818
 
rm -f conftest.val
28819
 
else
28820
 
  ac_cv_sizeof_curl_off_t=0
28821
 
fi
28822
 
fi
28823
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_curl_off_t" >&5
28824
 
echo "${ECHO_T}$ac_cv_sizeof_curl_off_t" >&6
28825
 
cat >>confdefs.h <<_ACEOF
28826
 
#define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
28827
 
_ACEOF
28828
 
 
28829
 
 
28830
 
 
28831
 
echo "$as_me:$LINENO: checking for long long" >&5
28832
 
echo $ECHO_N "checking for long long... $ECHO_C" >&6
28833
 
if test "${ac_cv_type_long_long+set}" = set; then
28834
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
28835
 
else
28836
 
  cat >conftest.$ac_ext <<_ACEOF
28837
 
/* confdefs.h.  */
28838
 
_ACEOF
28839
 
cat confdefs.h >>conftest.$ac_ext
28840
 
cat >>conftest.$ac_ext <<_ACEOF
28841
 
/* end confdefs.h.  */
28842
 
$ac_includes_default
28843
 
int
28844
 
main ()
28845
 
{
28846
 
if ((long long *) 0)
28847
 
  return 0;
28848
 
if (sizeof (long long))
28849
 
  return 0;
28850
 
  ;
28851
 
  return 0;
28852
 
}
28853
 
_ACEOF
28854
 
rm -f conftest.$ac_objext
28855
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28856
 
  (eval $ac_compile) 2>conftest.er1
28857
 
  ac_status=$?
28858
 
  grep -v '^ *+' conftest.er1 >conftest.err
28859
 
  rm -f conftest.er1
28860
 
  cat conftest.err >&5
28861
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862
 
  (exit $ac_status); } &&
28863
 
         { ac_try='test -z "$ac_c_werror_flag"
28864
 
                         || test ! -s conftest.err'
28865
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28866
 
  (eval $ac_try) 2>&5
28867
 
  ac_status=$?
28868
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869
 
  (exit $ac_status); }; } &&
28870
 
         { ac_try='test -s conftest.$ac_objext'
28871
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28872
 
  (eval $ac_try) 2>&5
28873
 
  ac_status=$?
28874
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875
 
  (exit $ac_status); }; }; then
28876
 
  ac_cv_type_long_long=yes
28877
 
else
28878
 
  echo "$as_me: failed program was:" >&5
28879
 
sed 's/^/| /' conftest.$ac_ext >&5
28880
 
 
28881
 
ac_cv_type_long_long=no
28882
 
fi
28883
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28884
 
fi
28885
 
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
28886
 
echo "${ECHO_T}$ac_cv_type_long_long" >&6
28887
 
if test $ac_cv_type_long_long = yes; then
28888
 
 
28889
 
cat >>confdefs.h <<\_ACEOF
28890
 
#define HAVE_LONGLONG 1
28891
 
_ACEOF
28892
 
 
28893
 
fi
28894
 
 
28895
 
 
28896
 
# check for ssize_t
28897
 
echo "$as_me:$LINENO: checking for ssize_t" >&5
28898
 
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
28899
 
if test "${ac_cv_type_ssize_t+set}" = set; then
28900
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
28901
 
else
28902
 
  cat >conftest.$ac_ext <<_ACEOF
28903
 
/* confdefs.h.  */
28904
 
_ACEOF
28905
 
cat confdefs.h >>conftest.$ac_ext
28906
 
cat >>conftest.$ac_ext <<_ACEOF
28907
 
/* end confdefs.h.  */
28908
 
$ac_includes_default
28909
 
int
28910
 
main ()
28911
 
{
28912
 
if ((ssize_t *) 0)
28913
 
  return 0;
28914
 
if (sizeof (ssize_t))
28915
 
  return 0;
28916
 
  ;
28917
 
  return 0;
28918
 
}
28919
 
_ACEOF
28920
 
rm -f conftest.$ac_objext
28921
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28922
 
  (eval $ac_compile) 2>conftest.er1
28923
 
  ac_status=$?
28924
 
  grep -v '^ *+' conftest.er1 >conftest.err
28925
 
  rm -f conftest.er1
28926
 
  cat conftest.err >&5
28927
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928
 
  (exit $ac_status); } &&
28929
 
         { ac_try='test -z "$ac_c_werror_flag"
28930
 
                         || test ! -s conftest.err'
28931
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28932
 
  (eval $ac_try) 2>&5
28933
 
  ac_status=$?
28934
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935
 
  (exit $ac_status); }; } &&
28936
 
         { ac_try='test -s conftest.$ac_objext'
28937
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28938
 
  (eval $ac_try) 2>&5
28939
 
  ac_status=$?
28940
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28941
 
  (exit $ac_status); }; }; then
28942
 
  ac_cv_type_ssize_t=yes
28943
 
else
28944
 
  echo "$as_me: failed program was:" >&5
28945
 
sed 's/^/| /' conftest.$ac_ext >&5
28946
 
 
28947
 
ac_cv_type_ssize_t=no
28948
 
fi
28949
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28950
 
fi
28951
 
echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
28952
 
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
28953
 
if test $ac_cv_type_ssize_t = yes; then
28954
 
  :
28955
 
else
28956
 
 
28957
 
cat >>confdefs.h <<\_ACEOF
28958
 
#define ssize_t int
28959
 
_ACEOF
28960
 
 
28961
 
fi
28962
 
 
28963
 
 
28964
 
 
28965
 
   echo "$as_me:$LINENO: checking for socklen_t" >&5
28966
 
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
28967
 
if test "${ac_cv_type_socklen_t+set}" = set; then
28968
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
28969
 
else
28970
 
  cat >conftest.$ac_ext <<_ACEOF
28971
 
/* confdefs.h.  */
28972
 
_ACEOF
28973
 
cat confdefs.h >>conftest.$ac_ext
28974
 
cat >>conftest.$ac_ext <<_ACEOF
28975
 
/* end confdefs.h.  */
28976
 
#include <sys/types.h>
28977
 
#include <sys/socket.h>
28978
 
 
28979
 
int
28980
 
main ()
28981
 
{
28982
 
if ((socklen_t *) 0)
28983
 
  return 0;
28984
 
if (sizeof (socklen_t))
28985
 
  return 0;
28986
 
  ;
28987
 
  return 0;
28988
 
}
28989
 
_ACEOF
28990
 
rm -f conftest.$ac_objext
28991
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28992
 
  (eval $ac_compile) 2>conftest.er1
28993
 
  ac_status=$?
28994
 
  grep -v '^ *+' conftest.er1 >conftest.err
28995
 
  rm -f conftest.er1
28996
 
  cat conftest.err >&5
28997
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998
 
  (exit $ac_status); } &&
28999
 
         { ac_try='test -z "$ac_c_werror_flag"
29000
 
                         || test ! -s conftest.err'
29001
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29002
 
  (eval $ac_try) 2>&5
29003
 
  ac_status=$?
29004
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005
 
  (exit $ac_status); }; } &&
29006
 
         { ac_try='test -s conftest.$ac_objext'
29007
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29008
 
  (eval $ac_try) 2>&5
29009
 
  ac_status=$?
29010
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011
 
  (exit $ac_status); }; }; then
29012
 
  ac_cv_type_socklen_t=yes
29013
 
else
29014
 
  echo "$as_me: failed program was:" >&5
29015
 
sed 's/^/| /' conftest.$ac_ext >&5
29016
 
 
29017
 
ac_cv_type_socklen_t=no
29018
 
fi
29019
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29020
 
fi
29021
 
echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29022
 
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
29023
 
if test $ac_cv_type_socklen_t = yes; then
29024
 
  :
29025
 
else
29026
 
 
29027
 
      echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
29028
 
echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
29029
 
      if test "${curl_cv_socklen_t_equiv+set}" = set; then
29030
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
29031
 
else
29032
 
 
29033
 
         # Systems have either "struct sockaddr *" or
29034
 
         # "void *" as the second argument to getpeername
29035
 
         curl_cv_socklen_t_equiv=
29036
 
         for arg2 in "struct sockaddr" void; do
29037
 
            for t in int size_t unsigned long "unsigned long"; do
29038
 
               cat >conftest.$ac_ext <<_ACEOF
29039
 
/* confdefs.h.  */
29040
 
_ACEOF
29041
 
cat confdefs.h >>conftest.$ac_ext
29042
 
cat >>conftest.$ac_ext <<_ACEOF
29043
 
/* end confdefs.h.  */
29044
 
 
29045
 
                  #ifdef HAVE_SYS_TYPES_H
29046
 
                  #include <sys/types.h>
29047
 
                  #endif
29048
 
                  #ifdef HAVE_SYS_SOCKET_H
29049
 
                  #include <sys/socket.h>
29050
 
                  #endif
29051
 
 
29052
 
                  int getpeername (int, $arg2 *, $t *);
29053
 
 
29054
 
int
29055
 
main ()
29056
 
{
29057
 
 
29058
 
                  $t len;
29059
 
                  getpeername(0,0,&len);
29060
 
 
29061
 
  ;
29062
 
  return 0;
29063
 
}
29064
 
_ACEOF
29065
 
rm -f conftest.$ac_objext
29066
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29067
 
  (eval $ac_compile) 2>conftest.er1
29068
 
  ac_status=$?
29069
 
  grep -v '^ *+' conftest.er1 >conftest.err
29070
 
  rm -f conftest.er1
29071
 
  cat conftest.err >&5
29072
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073
 
  (exit $ac_status); } &&
29074
 
         { ac_try='test -z "$ac_c_werror_flag"
29075
 
                         || test ! -s conftest.err'
29076
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29077
 
  (eval $ac_try) 2>&5
29078
 
  ac_status=$?
29079
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080
 
  (exit $ac_status); }; } &&
29081
 
         { ac_try='test -s conftest.$ac_objext'
29082
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29083
 
  (eval $ac_try) 2>&5
29084
 
  ac_status=$?
29085
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086
 
  (exit $ac_status); }; }; then
29087
 
 
29088
 
                  curl_cv_socklen_t_equiv="$t"
29089
 
                  break
29090
 
 
29091
 
else
29092
 
  echo "$as_me: failed program was:" >&5
29093
 
sed 's/^/| /' conftest.$ac_ext >&5
29094
 
 
29095
 
fi
29096
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29097
 
            done
29098
 
         done
29099
 
 
29100
 
         if test "x$curl_cv_socklen_t_equiv" = x; then
29101
 
            { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
29102
 
echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
29103
 
   { (exit 1); exit 1; }; }
29104
 
         fi
29105
 
 
29106
 
fi
29107
 
 
29108
 
      echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
29109
 
echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
29110
 
 
29111
 
cat >>confdefs.h <<_ACEOF
29112
 
#define socklen_t $curl_cv_socklen_t_equiv
29113
 
_ACEOF
29114
 
 
29115
 
fi
29116
 
 
29117
 
 
29118
 
 
29119
 
   echo "$as_me:$LINENO: checking for in_addr_t" >&5
29120
 
echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
29121
 
if test "${ac_cv_type_in_addr_t+set}" = set; then
29122
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
29123
 
else
29124
 
  cat >conftest.$ac_ext <<_ACEOF
29125
 
/* confdefs.h.  */
29126
 
_ACEOF
29127
 
cat confdefs.h >>conftest.$ac_ext
29128
 
cat >>conftest.$ac_ext <<_ACEOF
29129
 
/* end confdefs.h.  */
29130
 
#include <sys/types.h>
29131
 
#include <sys/socket.h>
29132
 
#include <arpa/inet.h>
29133
 
 
29134
 
int
29135
 
main ()
29136
 
{
29137
 
if ((in_addr_t *) 0)
29138
 
  return 0;
29139
 
if (sizeof (in_addr_t))
29140
 
  return 0;
29141
 
  ;
29142
 
  return 0;
29143
 
}
29144
 
_ACEOF
29145
 
rm -f conftest.$ac_objext
29146
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29147
 
  (eval $ac_compile) 2>conftest.er1
29148
 
  ac_status=$?
29149
 
  grep -v '^ *+' conftest.er1 >conftest.err
29150
 
  rm -f conftest.er1
29151
 
  cat conftest.err >&5
29152
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29153
 
  (exit $ac_status); } &&
29154
 
         { ac_try='test -z "$ac_c_werror_flag"
29155
 
                         || test ! -s conftest.err'
29156
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29157
 
  (eval $ac_try) 2>&5
29158
 
  ac_status=$?
29159
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160
 
  (exit $ac_status); }; } &&
29161
 
         { ac_try='test -s conftest.$ac_objext'
29162
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29163
 
  (eval $ac_try) 2>&5
29164
 
  ac_status=$?
29165
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166
 
  (exit $ac_status); }; }; then
29167
 
  ac_cv_type_in_addr_t=yes
29168
 
else
29169
 
  echo "$as_me: failed program was:" >&5
29170
 
sed 's/^/| /' conftest.$ac_ext >&5
29171
 
 
29172
 
ac_cv_type_in_addr_t=no
29173
 
fi
29174
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29175
 
fi
29176
 
echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
29177
 
echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6
29178
 
if test $ac_cv_type_in_addr_t = yes; then
29179
 
  :
29180
 
else
29181
 
 
29182
 
      echo "$as_me:$LINENO: checking for in_addr_t equivalent" >&5
29183
 
echo $ECHO_N "checking for in_addr_t equivalent... $ECHO_C" >&6
29184
 
      if test "${curl_cv_in_addr_t_equiv+set}" = set; then
29185
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
29186
 
else
29187
 
 
29188
 
         curl_cv_in_addr_t_equiv=
29189
 
         for t in "unsigned long" int size_t unsigned long; do
29190
 
            cat >conftest.$ac_ext <<_ACEOF
29191
 
/* confdefs.h.  */
29192
 
_ACEOF
29193
 
cat confdefs.h >>conftest.$ac_ext
29194
 
cat >>conftest.$ac_ext <<_ACEOF
29195
 
/* end confdefs.h.  */
29196
 
 
29197
 
               #ifdef HAVE_SYS_TYPES_H
29198
 
               #include <sys/types.h>
29199
 
               #endif
29200
 
               #ifdef HAVE_SYS_SOCKET_H
29201
 
               #include <sys/socket.h>
29202
 
               #endif
29203
 
               #ifdef HAVE_ARPA_INET_H
29204
 
               #include <arpa/inet.h>
29205
 
               #endif
29206
 
 
29207
 
int
29208
 
main ()
29209
 
{
29210
 
 
29211
 
               $t data = inet_addr ("1.2.3.4");
29212
 
 
29213
 
  ;
29214
 
  return 0;
29215
 
}
29216
 
_ACEOF
29217
 
rm -f conftest.$ac_objext
29218
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29219
 
  (eval $ac_compile) 2>conftest.er1
29220
 
  ac_status=$?
29221
 
  grep -v '^ *+' conftest.er1 >conftest.err
29222
 
  rm -f conftest.er1
29223
 
  cat conftest.err >&5
29224
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225
 
  (exit $ac_status); } &&
29226
 
         { ac_try='test -z "$ac_c_werror_flag"
29227
 
                         || test ! -s conftest.err'
29228
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29229
 
  (eval $ac_try) 2>&5
29230
 
  ac_status=$?
29231
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232
 
  (exit $ac_status); }; } &&
29233
 
         { ac_try='test -s conftest.$ac_objext'
29234
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29235
 
  (eval $ac_try) 2>&5
29236
 
  ac_status=$?
29237
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238
 
  (exit $ac_status); }; }; then
29239
 
 
29240
 
               curl_cv_in_addr_t_equiv="$t"
29241
 
               break
29242
 
 
29243
 
else
29244
 
  echo "$as_me: failed program was:" >&5
29245
 
sed 's/^/| /' conftest.$ac_ext >&5
29246
 
 
29247
 
fi
29248
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29249
 
         done
29250
 
 
29251
 
         if test "x$curl_cv_in_addr_t_equiv" = x; then
29252
 
            { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of in_addr_t" >&5
29253
 
echo "$as_me: error: Cannot find a type to use in place of in_addr_t" >&2;}
29254
 
   { (exit 1); exit 1; }; }
29255
 
         fi
29256
 
 
29257
 
fi
29258
 
 
29259
 
      echo "$as_me:$LINENO: result: $curl_cv_in_addr_t_equiv" >&5
29260
 
echo "${ECHO_T}$curl_cv_in_addr_t_equiv" >&6
29261
 
 
29262
 
cat >>confdefs.h <<_ACEOF
29263
 
#define in_addr_t $curl_cv_in_addr_t_equiv
29264
 
_ACEOF
29265
 
 
29266
 
fi
29267
 
 
29268
 
 
29269
 
 
29270
 
 
29271
 
 
29272
 
for ac_header in sys/select.h sys/socket.h
29273
 
do
29274
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29275
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
29276
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
29277
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29278
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
29279
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
29280
 
fi
29281
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29282
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29283
 
else
29284
 
  # Is the header compilable?
29285
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
29286
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29287
 
cat >conftest.$ac_ext <<_ACEOF
29288
 
/* confdefs.h.  */
29289
 
_ACEOF
29290
 
cat confdefs.h >>conftest.$ac_ext
29291
 
cat >>conftest.$ac_ext <<_ACEOF
29292
 
/* end confdefs.h.  */
29293
 
$ac_includes_default
29294
 
#include <$ac_header>
29295
 
_ACEOF
29296
 
rm -f conftest.$ac_objext
29297
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29298
 
  (eval $ac_compile) 2>conftest.er1
29299
 
  ac_status=$?
29300
 
  grep -v '^ *+' conftest.er1 >conftest.err
29301
 
  rm -f conftest.er1
29302
 
  cat conftest.err >&5
29303
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304
 
  (exit $ac_status); } &&
29305
 
         { ac_try='test -z "$ac_c_werror_flag"
29306
 
                         || test ! -s conftest.err'
29307
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29308
 
  (eval $ac_try) 2>&5
29309
 
  ac_status=$?
29310
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311
 
  (exit $ac_status); }; } &&
29312
 
         { ac_try='test -s conftest.$ac_objext'
29313
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29314
 
  (eval $ac_try) 2>&5
29315
 
  ac_status=$?
29316
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29317
 
  (exit $ac_status); }; }; then
29318
 
  ac_header_compiler=yes
29319
 
else
29320
 
  echo "$as_me: failed program was:" >&5
29321
 
sed 's/^/| /' conftest.$ac_ext >&5
29322
 
 
29323
 
ac_header_compiler=no
29324
 
fi
29325
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29326
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29327
 
echo "${ECHO_T}$ac_header_compiler" >&6
29328
 
 
29329
 
# Is the header present?
29330
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
29331
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29332
 
cat >conftest.$ac_ext <<_ACEOF
29333
 
/* confdefs.h.  */
29334
 
_ACEOF
29335
 
cat confdefs.h >>conftest.$ac_ext
29336
 
cat >>conftest.$ac_ext <<_ACEOF
29337
 
/* end confdefs.h.  */
29338
 
#include <$ac_header>
29339
 
_ACEOF
29340
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29341
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29342
 
  ac_status=$?
29343
 
  grep -v '^ *+' conftest.er1 >conftest.err
29344
 
  rm -f conftest.er1
29345
 
  cat conftest.err >&5
29346
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347
 
  (exit $ac_status); } >/dev/null; then
29348
 
  if test -s conftest.err; then
29349
 
    ac_cpp_err=$ac_c_preproc_warn_flag
29350
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29351
 
  else
29352
 
    ac_cpp_err=
29353
 
  fi
29354
 
else
29355
 
  ac_cpp_err=yes
29356
 
fi
29357
 
if test -z "$ac_cpp_err"; then
29358
 
  ac_header_preproc=yes
29359
 
else
29360
 
  echo "$as_me: failed program was:" >&5
29361
 
sed 's/^/| /' conftest.$ac_ext >&5
29362
 
 
29363
 
  ac_header_preproc=no
29364
 
fi
29365
 
rm -f conftest.err conftest.$ac_ext
29366
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29367
 
echo "${ECHO_T}$ac_header_preproc" >&6
29368
 
 
29369
 
# So?  What about this header?
29370
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29371
 
  yes:no: )
29372
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29373
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29374
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29375
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29376
 
    ac_header_preproc=yes
29377
 
    ;;
29378
 
  no:yes:* )
29379
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29380
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29381
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29382
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29383
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29384
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29385
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29386
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29387
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29388
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29389
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29390
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29391
 
    (
29392
 
      cat <<\_ASBOX
29393
 
## ------------------------------- ##
29394
 
## Report this to curl-bug@haxx.se ##
29395
 
## ------------------------------- ##
29396
 
_ASBOX
29397
 
    ) |
29398
 
      sed "s/^/$as_me: WARNING:     /" >&2
29399
 
    ;;
29400
 
esac
29401
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
29402
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29403
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
29404
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
29405
 
else
29406
 
  eval "$as_ac_Header=\$ac_header_preproc"
29407
 
fi
29408
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29409
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29410
 
 
29411
 
fi
29412
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
29413
 
  cat >>confdefs.h <<_ACEOF
29414
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29415
 
_ACEOF
29416
 
 
29417
 
fi
29418
 
 
29419
 
done
29420
 
 
29421
 
echo "$as_me:$LINENO: checking types of arguments for select" >&5
29422
 
echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
29423
 
if test "${ac_cv_func_select_args+set}" = set; then
29424
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
29425
 
else
29426
 
  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
29427
 
 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
29428
 
  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
29429
 
   cat >conftest.$ac_ext <<_ACEOF
29430
 
/* confdefs.h.  */
29431
 
_ACEOF
29432
 
cat confdefs.h >>conftest.$ac_ext
29433
 
cat >>conftest.$ac_ext <<_ACEOF
29434
 
/* end confdefs.h.  */
29435
 
$ac_includes_default
29436
 
#if HAVE_SYS_SELECT_H
29437
 
# include <sys/select.h>
29438
 
#endif
29439
 
#if HAVE_SYS_SOCKET_H
29440
 
# include <sys/socket.h>
29441
 
#endif
29442
 
 
29443
 
int
29444
 
main ()
29445
 
{
29446
 
extern int select ($ac_arg1,
29447
 
                                            $ac_arg234, $ac_arg234, $ac_arg234,
29448
 
                                            $ac_arg5);
29449
 
  ;
29450
 
  return 0;
29451
 
}
29452
 
_ACEOF
29453
 
rm -f conftest.$ac_objext
29454
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29455
 
  (eval $ac_compile) 2>conftest.er1
29456
 
  ac_status=$?
29457
 
  grep -v '^ *+' conftest.er1 >conftest.err
29458
 
  rm -f conftest.er1
29459
 
  cat conftest.err >&5
29460
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461
 
  (exit $ac_status); } &&
29462
 
         { ac_try='test -z "$ac_c_werror_flag"
29463
 
                         || test ! -s conftest.err'
29464
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29465
 
  (eval $ac_try) 2>&5
29466
 
  ac_status=$?
29467
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468
 
  (exit $ac_status); }; } &&
29469
 
         { ac_try='test -s conftest.$ac_objext'
29470
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29471
 
  (eval $ac_try) 2>&5
29472
 
  ac_status=$?
29473
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474
 
  (exit $ac_status); }; }; then
29475
 
  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
29476
 
else
29477
 
  echo "$as_me: failed program was:" >&5
29478
 
sed 's/^/| /' conftest.$ac_ext >&5
29479
 
 
29480
 
fi
29481
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29482
 
  done
29483
 
 done
29484
 
done
29485
 
# Provide a safe default value.
29486
 
: ${ac_cv_func_select_args='int,int *,struct timeval *'}
29487
 
 
29488
 
fi
29489
 
echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
29490
 
echo "${ECHO_T}$ac_cv_func_select_args" >&6
29491
 
ac_save_IFS=$IFS; IFS=','
29492
 
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
29493
 
IFS=$ac_save_IFS
29494
 
shift
29495
 
 
29496
 
cat >>confdefs.h <<_ACEOF
29497
 
#define SELECT_TYPE_ARG1 $1
29498
 
_ACEOF
29499
 
 
29500
 
 
29501
 
cat >>confdefs.h <<_ACEOF
29502
 
#define SELECT_TYPE_ARG234 ($2)
29503
 
_ACEOF
29504
 
 
29505
 
 
29506
 
cat >>confdefs.h <<_ACEOF
29507
 
#define SELECT_TYPE_ARG5 ($3)
29508
 
_ACEOF
29509
 
 
29510
 
rm -f conftest*
29511
 
 
29512
 
 
29513
 
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29514
 
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
29515
 
if test "${ac_cv_type_signal+set}" = set; then
29516
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
29517
 
else
29518
 
  cat >conftest.$ac_ext <<_ACEOF
29519
 
/* confdefs.h.  */
29520
 
_ACEOF
29521
 
cat confdefs.h >>conftest.$ac_ext
29522
 
cat >>conftest.$ac_ext <<_ACEOF
29523
 
/* end confdefs.h.  */
29524
 
#include <sys/types.h>
29525
 
#include <signal.h>
29526
 
#ifdef signal
29527
 
# undef signal
29528
 
#endif
29529
 
#ifdef __cplusplus
29530
 
extern "C" void (*signal (int, void (*)(int)))(int);
29531
 
#else
29532
 
void (*signal ()) ();
29533
 
#endif
29534
 
 
29535
 
int
29536
 
main ()
29537
 
{
29538
 
int i;
29539
 
  ;
29540
 
  return 0;
29541
 
}
29542
 
_ACEOF
29543
 
rm -f conftest.$ac_objext
29544
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29545
 
  (eval $ac_compile) 2>conftest.er1
29546
 
  ac_status=$?
29547
 
  grep -v '^ *+' conftest.er1 >conftest.err
29548
 
  rm -f conftest.er1
29549
 
  cat conftest.err >&5
29550
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551
 
  (exit $ac_status); } &&
29552
 
         { ac_try='test -z "$ac_c_werror_flag"
29553
 
                         || test ! -s conftest.err'
29554
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29555
 
  (eval $ac_try) 2>&5
29556
 
  ac_status=$?
29557
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558
 
  (exit $ac_status); }; } &&
29559
 
         { ac_try='test -s conftest.$ac_objext'
29560
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29561
 
  (eval $ac_try) 2>&5
29562
 
  ac_status=$?
29563
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29564
 
  (exit $ac_status); }; }; then
29565
 
  ac_cv_type_signal=void
29566
 
else
29567
 
  echo "$as_me: failed program was:" >&5
29568
 
sed 's/^/| /' conftest.$ac_ext >&5
29569
 
 
29570
 
ac_cv_type_signal=int
29571
 
fi
29572
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29573
 
fi
29574
 
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29575
 
echo "${ECHO_T}$ac_cv_type_signal" >&6
29576
 
 
29577
 
cat >>confdefs.h <<_ACEOF
29578
 
#define RETSIGTYPE $ac_cv_type_signal
29579
 
_ACEOF
29580
 
 
29581
 
 
29582
 
 
29583
 
 
29584
 
 
29585
 
 
29586
 
 
29587
 
 
29588
 
 
29589
 
 
29590
 
 
29591
 
 
29592
 
 
29593
 
 
29594
 
 
29595
 
 
29596
 
 
29597
 
 
29598
 
 
29599
 
 
29600
 
 
29601
 
 
29602
 
 
29603
 
 
29604
 
 
29605
 
 
29606
 
 
29607
 
 
29608
 
 
29609
 
 
29610
 
 
29611
 
 
29612
 
 
29613
 
for ac_func in strtoll \
29614
 
                socket \
29615
 
                select \
29616
 
                strdup \
29617
 
                strstr \
29618
 
                strtok_r \
29619
 
                strftime \
29620
 
                uname \
29621
 
                strcasecmp \
29622
 
                stricmp \
29623
 
                strcmpi \
29624
 
                gethostbyaddr \
29625
 
                gettimeofday \
29626
 
                inet_addr \
29627
 
                inet_ntoa \
29628
 
                inet_pton \
29629
 
                tcsetattr \
29630
 
                tcgetattr \
29631
 
                perror \
29632
 
                closesocket \
29633
 
                siginterrupt \
29634
 
                sigaction \
29635
 
                signal \
29636
 
                getpass_r \
29637
 
                strlcat \
29638
 
                getpwuid \
29639
 
                geteuid \
29640
 
                dlopen \
29641
 
                utime \
29642
 
                sigsetjmp \
29643
 
                poll
29644
 
do
29645
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29646
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
29647
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29648
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
29649
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
29650
 
else
29651
 
  cat >conftest.$ac_ext <<_ACEOF
29652
 
/* confdefs.h.  */
29653
 
_ACEOF
29654
 
cat confdefs.h >>conftest.$ac_ext
29655
 
cat >>conftest.$ac_ext <<_ACEOF
29656
 
/* end confdefs.h.  */
29657
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29658
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29659
 
#define $ac_func innocuous_$ac_func
29660
 
 
29661
 
/* System header to define __stub macros and hopefully few prototypes,
29662
 
    which can conflict with char $ac_func (); below.
29663
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29664
 
    <limits.h> exists even on freestanding compilers.  */
29665
 
 
29666
 
#ifdef __STDC__
29667
 
# include <limits.h>
29668
 
#else
29669
 
# include <assert.h>
29670
 
#endif
29671
 
 
29672
 
#undef $ac_func
29673
 
 
29674
 
/* Override any gcc2 internal prototype to avoid an error.  */
29675
 
#ifdef __cplusplus
29676
 
extern "C"
29677
 
{
29678
 
#endif
29679
 
/* We use char because int might match the return type of a gcc2
29680
 
   builtin and then its argument prototype would still apply.  */
29681
 
char $ac_func ();
29682
 
/* The GNU C library defines this for functions which it implements
29683
 
    to always fail with ENOSYS.  Some functions are actually named
29684
 
    something starting with __ and the normal name is an alias.  */
29685
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29686
 
choke me
29687
 
#else
29688
 
char (*f) () = $ac_func;
29689
 
#endif
29690
 
#ifdef __cplusplus
29691
 
}
29692
 
#endif
29693
 
 
29694
 
int
29695
 
main ()
29696
 
{
29697
 
return f != $ac_func;
29698
 
  ;
29699
 
  return 0;
29700
 
}
29701
 
_ACEOF
29702
 
rm -f conftest.$ac_objext conftest$ac_exeext
29703
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29704
 
  (eval $ac_link) 2>conftest.er1
29705
 
  ac_status=$?
29706
 
  grep -v '^ *+' conftest.er1 >conftest.err
29707
 
  rm -f conftest.er1
29708
 
  cat conftest.err >&5
29709
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710
 
  (exit $ac_status); } &&
29711
 
         { ac_try='test -z "$ac_c_werror_flag"
29712
 
                         || test ! -s conftest.err'
29713
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29714
 
  (eval $ac_try) 2>&5
29715
 
  ac_status=$?
29716
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717
 
  (exit $ac_status); }; } &&
29718
 
         { ac_try='test -s conftest$ac_exeext'
29719
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29720
 
  (eval $ac_try) 2>&5
29721
 
  ac_status=$?
29722
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723
 
  (exit $ac_status); }; }; then
29724
 
  eval "$as_ac_var=yes"
29725
 
else
29726
 
  echo "$as_me: failed program was:" >&5
29727
 
sed 's/^/| /' conftest.$ac_ext >&5
29728
 
 
29729
 
eval "$as_ac_var=no"
29730
 
fi
29731
 
rm -f conftest.err conftest.$ac_objext \
29732
 
      conftest$ac_exeext conftest.$ac_ext
29733
 
fi
29734
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29735
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29736
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
29737
 
  cat >>confdefs.h <<_ACEOF
29738
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29739
 
_ACEOF
29740
 
 
29741
 
else
29742
 
    func="$ac_func"
29743
 
  echo "$as_me:$LINENO: checking deeper for $func" >&5
29744
 
echo $ECHO_N "checking deeper for $func... $ECHO_C" >&6
29745
 
  cat >conftest.$ac_ext <<_ACEOF
29746
 
/* confdefs.h.  */
29747
 
_ACEOF
29748
 
cat confdefs.h >>conftest.$ac_ext
29749
 
cat >>conftest.$ac_ext <<_ACEOF
29750
 
/* end confdefs.h.  */
29751
 
 
29752
 
int
29753
 
main ()
29754
 
{
29755
 
 $func ();
29756
 
  ;
29757
 
  return 0;
29758
 
}
29759
 
_ACEOF
29760
 
rm -f conftest.$ac_objext conftest$ac_exeext
29761
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29762
 
  (eval $ac_link) 2>conftest.er1
29763
 
  ac_status=$?
29764
 
  grep -v '^ *+' conftest.er1 >conftest.err
29765
 
  rm -f conftest.er1
29766
 
  cat conftest.err >&5
29767
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768
 
  (exit $ac_status); } &&
29769
 
         { ac_try='test -z "$ac_c_werror_flag"
29770
 
                         || test ! -s conftest.err'
29771
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29772
 
  (eval $ac_try) 2>&5
29773
 
  ac_status=$?
29774
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775
 
  (exit $ac_status); }; } &&
29776
 
         { ac_try='test -s conftest$ac_exeext'
29777
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29778
 
  (eval $ac_try) 2>&5
29779
 
  ac_status=$?
29780
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29781
 
  (exit $ac_status); }; }; then
29782
 
  echo "$as_me:$LINENO: result: yes!" >&5
29783
 
echo "${ECHO_T}yes!" >&6
29784
 
               eval "ac_cv_func_$func=yes"
29785
 
               def=`echo "HAVE_$func" | tr 'a-z' 'A-Z'`
29786
 
 
29787
 
cat >>confdefs.h <<_ACEOF
29788
 
#define $def 1
29789
 
_ACEOF
29790
 
 
29791
 
else
29792
 
  echo "$as_me: failed program was:" >&5
29793
 
sed 's/^/| /' conftest.$ac_ext >&5
29794
 
 
29795
 
echo "$as_me:$LINENO: result: but still no" >&5
29796
 
echo "${ECHO_T}but still no" >&6
29797
 
 
29798
 
fi
29799
 
rm -f conftest.err conftest.$ac_objext \
29800
 
      conftest$ac_exeext conftest.$ac_ext
29801
 
 
29802
 
 
29803
 
fi
29804
 
done
29805
 
 
29806
 
 
29807
 
if test "$ac_cv_func_sigsetjmp" != "yes"; then
29808
 
  echo "$as_me:$LINENO: checking for sigsetjmp defined as macro" >&5
29809
 
echo $ECHO_N "checking for sigsetjmp defined as macro... $ECHO_C" >&6
29810
 
  cat >conftest.$ac_ext <<_ACEOF
29811
 
/* confdefs.h.  */
29812
 
_ACEOF
29813
 
cat confdefs.h >>conftest.$ac_ext
29814
 
cat >>conftest.$ac_ext <<_ACEOF
29815
 
/* end confdefs.h.  */
29816
 
#include <setjmp.h>
29817
 
int
29818
 
main ()
29819
 
{
29820
 
sigjmp_buf jmpenv;
29821
 
                sigsetjmp(jmpenv, 1);
29822
 
  ;
29823
 
  return 0;
29824
 
}
29825
 
_ACEOF
29826
 
rm -f conftest.$ac_objext conftest$ac_exeext
29827
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29828
 
  (eval $ac_link) 2>conftest.er1
29829
 
  ac_status=$?
29830
 
  grep -v '^ *+' conftest.er1 >conftest.err
29831
 
  rm -f conftest.er1
29832
 
  cat conftest.err >&5
29833
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834
 
  (exit $ac_status); } &&
29835
 
         { ac_try='test -z "$ac_c_werror_flag"
29836
 
                         || test ! -s conftest.err'
29837
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29838
 
  (eval $ac_try) 2>&5
29839
 
  ac_status=$?
29840
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841
 
  (exit $ac_status); }; } &&
29842
 
         { ac_try='test -s conftest$ac_exeext'
29843
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29844
 
  (eval $ac_try) 2>&5
29845
 
  ac_status=$?
29846
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847
 
  (exit $ac_status); }; }; then
29848
 
  echo "$as_me:$LINENO: result: yes" >&5
29849
 
echo "${ECHO_T}yes" >&6
29850
 
 
29851
 
cat >>confdefs.h <<\_ACEOF
29852
 
#define HAVE_SIGSETJMP 1
29853
 
_ACEOF
29854
 
 
29855
 
else
29856
 
  echo "$as_me: failed program was:" >&5
29857
 
sed 's/^/| /' conftest.$ac_ext >&5
29858
 
 
29859
 
echo "$as_me:$LINENO: result: no" >&5
29860
 
echo "${ECHO_T}no" >&6
29861
 
 
29862
 
fi
29863
 
rm -f conftest.err conftest.$ac_objext \
29864
 
      conftest$ac_exeext conftest.$ac_ext
29865
 
fi
29866
 
 
29867
 
# Extract the first word of "perl", so it can be a program name with args.
29868
 
set dummy perl; ac_word=$2
29869
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
29870
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29871
 
if test "${ac_cv_path_PERL+set}" = set; then
29872
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
29873
 
else
29874
 
  case $PERL in
29875
 
  [\\/]* | ?:[\\/]*)
29876
 
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
29877
 
  ;;
29878
 
  *)
29879
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29880
 
as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
29881
 
for as_dir in $as_dummy
29882
 
do
29883
 
  IFS=$as_save_IFS
29884
 
  test -z "$as_dir" && as_dir=.
29885
 
  for ac_exec_ext in '' $ac_executable_extensions; do
29886
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29887
 
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
29888
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29889
 
    break 2
29890
 
  fi
29891
 
done
29892
 
done
29893
 
 
29894
 
  ;;
29895
 
esac
29896
 
fi
29897
 
PERL=$ac_cv_path_PERL
29898
 
 
29899
 
if test -n "$PERL"; then
29900
 
  echo "$as_me:$LINENO: result: $PERL" >&5
29901
 
echo "${ECHO_T}$PERL" >&6
29902
 
else
29903
 
  echo "$as_me:$LINENO: result: no" >&5
29904
 
echo "${ECHO_T}no" >&6
29905
 
fi
29906
 
 
29907
 
 
29908
 
 
29909
 
for ac_prog in gnroff nroff
29910
 
do
29911
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
29912
 
set dummy $ac_prog; ac_word=$2
29913
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
29914
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29915
 
if test "${ac_cv_path_NROFF+set}" = set; then
29916
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
29917
 
else
29918
 
  case $NROFF in
29919
 
  [\\/]* | ?:[\\/]*)
29920
 
  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
29921
 
  ;;
29922
 
  *)
29923
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29924
 
as_dummy="$PATH:/usr/bin/:/usr/local/bin "
29925
 
for as_dir in $as_dummy
29926
 
do
29927
 
  IFS=$as_save_IFS
29928
 
  test -z "$as_dir" && as_dir=.
29929
 
  for ac_exec_ext in '' $ac_executable_extensions; do
29930
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29931
 
    ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
29932
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29933
 
    break 2
29934
 
  fi
29935
 
done
29936
 
done
29937
 
 
29938
 
  ;;
29939
 
esac
29940
 
fi
29941
 
NROFF=$ac_cv_path_NROFF
29942
 
 
29943
 
if test -n "$NROFF"; then
29944
 
  echo "$as_me:$LINENO: result: $NROFF" >&5
29945
 
echo "${ECHO_T}$NROFF" >&6
29946
 
else
29947
 
  echo "$as_me:$LINENO: result: no" >&5
29948
 
echo "${ECHO_T}no" >&6
29949
 
fi
29950
 
 
29951
 
  test -n "$NROFF" && break
29952
 
done
29953
 
 
29954
 
 
29955
 
 
29956
 
if test -n "$NROFF"; then
29957
 
 
29958
 
  echo "$as_me:$LINENO: checking how to use *nroff to get plain text from man pages" >&5
29959
 
echo $ECHO_N "checking how to use *nroff to get plain text from man pages... $ECHO_C" >&6
29960
 
  MANOPT="-man"
29961
 
  mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
29962
 
  if test -z "$mancheck"; then
29963
 
    MANOPT="-mandoc"
29964
 
   mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
29965
 
    if test -z "$mancheck"; then
29966
 
      MANOPT=""
29967
 
      echo "$as_me:$LINENO: result: failed" >&5
29968
 
echo "${ECHO_T}failed" >&6
29969
 
      { echo "$as_me:$LINENO: WARNING: found no *nroff option to get plaintext from man pages" >&5
29970
 
echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
29971
 
    else
29972
 
      echo "$as_me:$LINENO: result: $MANOPT" >&5
29973
 
echo "${ECHO_T}$MANOPT" >&6
29974
 
    fi
29975
 
  else
29976
 
    echo "$as_me:$LINENO: result: $MANOPT" >&5
29977
 
echo "${ECHO_T}$MANOPT" >&6
29978
 
  fi
29979
 
 
29980
 
fi
29981
 
 
29982
 
if test -z "$MANOPT"
29983
 
then
29984
 
      { echo "$as_me:$LINENO: WARNING: disabling built-in manual" >&5
29985
 
echo "$as_me: WARNING: disabling built-in manual" >&2;}
29986
 
  USE_MANUAL="no";
29987
 
fi
29988
 
 
29989
 
for ac_prog in 'bison -y' byacc
29990
 
do
29991
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
29992
 
set dummy $ac_prog; ac_word=$2
29993
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
29994
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29995
 
if test "${ac_cv_prog_YACC+set}" = set; then
29996
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
29997
 
else
29998
 
  if test -n "$YACC"; then
29999
 
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
30000
 
else
30001
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30002
 
for as_dir in $PATH
30003
 
do
30004
 
  IFS=$as_save_IFS
30005
 
  test -z "$as_dir" && as_dir=.
30006
 
  for ac_exec_ext in '' $ac_executable_extensions; do
30007
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30008
 
    ac_cv_prog_YACC="$ac_prog"
30009
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30010
 
    break 2
30011
 
  fi
30012
 
done
30013
 
done
30014
 
 
30015
 
fi
30016
 
fi
30017
 
YACC=$ac_cv_prog_YACC
30018
 
if test -n "$YACC"; then
30019
 
  echo "$as_me:$LINENO: result: $YACC" >&5
30020
 
echo "${ECHO_T}$YACC" >&6
30021
 
else
30022
 
  echo "$as_me:$LINENO: result: no" >&5
30023
 
echo "${ECHO_T}no" >&6
30024
 
fi
30025
 
 
30026
 
  test -n "$YACC" && break
30027
 
done
30028
 
test -n "$YACC" || YACC="yacc"
30029
 
 
30030
 
 
30031
 
if test -z "$YACC"
30032
 
then
30033
 
  echo "$as_me:$LINENO: checking if OK to build without bison/yacc" >&5
30034
 
echo $ECHO_N "checking if OK to build without bison/yacc... $ECHO_C" >&6
30035
 
    if test -r "$srcdir/lib/getdate.c"
30036
 
  then
30037
 
        echo "$as_me:$LINENO: result: yes" >&5
30038
 
echo "${ECHO_T}yes" >&6
30039
 
  else
30040
 
    echo "$as_me:$LINENO: result: no" >&5
30041
 
echo "${ECHO_T}no" >&6
30042
 
    { { echo "$as_me:$LINENO: error: no yacc or bison found, can't build libcurl!" >&5
30043
 
echo "$as_me: error: no yacc or bison found, can't build libcurl!" >&2;}
30044
 
   { (exit 1); exit 1; }; }
30045
 
  fi
30046
 
fi
30047
 
 
30048
 
 
30049
 
if test "$USE_MANUAL" = "1"; then
30050
 
 
30051
 
cat >>confdefs.h <<\_ACEOF
30052
 
#define USE_MANUAL 1
30053
 
_ACEOF
30054
 
 
30055
 
fi
30056
 
 
30057
 
 
30058
 
 
30059
 
if test x"$USE_MANUAL" = x1; then
30060
 
  USE_MANUAL_TRUE=
30061
 
  USE_MANUAL_FALSE='#'
30062
 
else
30063
 
  USE_MANUAL_TRUE='#'
30064
 
  USE_MANUAL_FALSE=
30065
 
fi
30066
 
 
30067
 
 
30068
 
 
30069
 
 
30070
 
echo "$as_me:$LINENO: checking whether to enable debug options" >&5
30071
 
echo $ECHO_N "checking whether to enable debug options... $ECHO_C" >&6
30072
 
# Check whether --enable-debug or --disable-debug was given.
30073
 
if test "${enable_debug+set}" = set; then
30074
 
  enableval="$enable_debug"
30075
 
   case "$enableval" in
30076
 
  no)
30077
 
       echo "$as_me:$LINENO: result: no" >&5
30078
 
echo "${ECHO_T}no" >&6
30079
 
       ;;
30080
 
  *)   echo "$as_me:$LINENO: result: yes" >&5
30081
 
echo "${ECHO_T}yes" >&6
30082
 
 
30083
 
    CPPFLAGS="$CPPFLAGS -DCURLDEBUG"
30084
 
    CFLAGS="$CFLAGS -g"
30085
 
 
30086
 
 
30087
 
    if test "$GCC" = "yes"; then
30088
 
 
30089
 
              echo "$as_me:$LINENO: checking gcc version" >&5
30090
 
echo $ECHO_N "checking gcc version... $ECHO_C" >&6
30091
 
       gccver=`$CC -dumpversion`
30092
 
       num1=`echo $gccver | cut -d . -f1`
30093
 
       num2=`echo $gccver | cut -d . -f2`
30094
 
       gccnum=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
30095
 
       echo "$as_me:$LINENO: result: $gccver" >&5
30096
 
echo "${ECHO_T}$gccver" >&6
30097
 
 
30098
 
       echo "$as_me:$LINENO: checking if this is icc in disguise" >&5
30099
 
echo $ECHO_N "checking if this is icc in disguise... $ECHO_C" >&6
30100
 
       cat >conftest.$ac_ext <<_ACEOF
30101
 
/* confdefs.h.  */
30102
 
_ACEOF
30103
 
cat confdefs.h >>conftest.$ac_ext
30104
 
cat >>conftest.$ac_ext <<_ACEOF
30105
 
/* end confdefs.h.  */
30106
 
__INTEL_COMPILER
30107
 
_ACEOF
30108
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30109
 
  $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
30110
 
                    ICC="no"
30111
 
         echo "$as_me:$LINENO: result: no" >&5
30112
 
echo "${ECHO_T}no" >&6
30113
 
else
30114
 
           ICC="yes"
30115
 
         echo "$as_me:$LINENO: result: yes" >&5
30116
 
echo "${ECHO_T}yes" >&6
30117
 
 
30118
 
fi
30119
 
rm -f conftest*
30120
 
 
30121
 
 
30122
 
       if test "$ICC" = "yes"; then
30123
 
 
30124
 
 
30125
 
         WARN="-wd279,269,1419,981"
30126
 
 
30127
 
         if test "$gccnum" -gt "600"; then
30128
 
                        WARN="-Wall $WARN"
30129
 
         fi
30130
 
       else                   WARN="-W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wpointer-arith -Wnested-externs -Winline -Wmissing-declarations -Wmissing-prototypes -Wsign-compare"
30131
 
 
30132
 
 
30133
 
         if test "$gccnum" -gt "295"; then
30134
 
                                            WARN="$WARN -Wundef"
30135
 
         fi
30136
 
 
30137
 
         if test "$gccnum" -ge "296"; then
30138
 
                      WARN="$WARN -Wfloat-equal"
30139
 
         fi
30140
 
 
30141
 
         if test "$gccnum" -gt "296"; then
30142
 
                      WARN="$WARN -Wno-format-nonliteral"
30143
 
         fi
30144
 
 
30145
 
                           if test "$gccnum" -ge "303"; then
30146
 
                      WARN="$WARN -Wendif-labels -Wstrict-prototypes"
30147
 
         fi
30148
 
 
30149
 
         for flag in $CPPFLAGS; do
30150
 
           case "$flag" in
30151
 
            -I*)
30152
 
                                                        add=`echo $flag | sed 's/^-I/-isystem /g'`
30153
 
              WARN="$WARN $add"
30154
 
              ;;
30155
 
           esac
30156
 
         done
30157
 
 
30158
 
       fi
30159
 
       CFLAGS="$CFLAGS $WARN"
30160
 
 
30161
 
      { echo "$as_me:$LINENO: Added this set of compiler options: $WARN" >&5
30162
 
echo "$as_me: Added this set of compiler options: $WARN" >&6;}
30163
 
 
30164
 
    else
30165
 
      { echo "$as_me:$LINENO: Added no extra compiler options" >&5
30166
 
echo "$as_me: Added no extra compiler options" >&6;}
30167
 
 
30168
 
    fi
30169
 
        NEWFLAGS=""
30170
 
    for flag in $CFLAGS; do
30171
 
      case "$flag" in
30172
 
      -O*)
30173
 
                ;;
30174
 
      *)
30175
 
        NEWFLAGS="$NEWFLAGS $flag"
30176
 
        ;;
30177
 
      esac
30178
 
    done
30179
 
    CFLAGS=$NEWFLAGS
30180
 
 
30181
 
 
30182
 
       ;;
30183
 
  esac
30184
 
 
30185
 
else
30186
 
  echo "$as_me:$LINENO: result: no" >&5
30187
 
echo "${ECHO_T}no" >&6
30188
 
 
30189
 
fi;
30190
 
 
30191
 
echo "$as_me:$LINENO: checking whether to enable ares" >&5
30192
 
echo $ECHO_N "checking whether to enable ares... $ECHO_C" >&6
30193
 
# Check whether --enable-ares or --disable-ares was given.
30194
 
if test "${enable_ares+set}" = set; then
30195
 
  enableval="$enable_ares"
30196
 
   case "$enableval" in
30197
 
  no)
30198
 
       echo "$as_me:$LINENO: result: no" >&5
30199
 
echo "${ECHO_T}no" >&6
30200
 
       ;;
30201
 
  *)   echo "$as_me:$LINENO: result: yes" >&5
30202
 
echo "${ECHO_T}yes" >&6
30203
 
 
30204
 
       if test "x$IPV6_ENABLED" = "x1"; then
30205
 
         { { echo "$as_me:$LINENO: error: ares doesn't work with ipv6, disable ipv6 to use ares" >&5
30206
 
echo "$as_me: error: ares doesn't work with ipv6, disable ipv6 to use ares" >&2;}
30207
 
   { (exit 1); exit 1; }; }
30208
 
       fi
30209
 
 
30210
 
 
30211
 
cat >>confdefs.h <<\_ACEOF
30212
 
#define USE_ARES 1
30213
 
_ACEOF
30214
 
 
30215
 
              HAVE_ARES="1"
30216
 
 
30217
 
 
30218
 
       LIBS="$LIBS -lcares"
30219
 
 
30220
 
                                   if test "x$enableval" = "xyes" ; then
30221
 
         if test -d "$srcdir/ares"; then
30222
 
            aresembedded="yes"
30223
 
 
30224
 
 
30225
 
subdirs="$subdirs ares"
30226
 
 
30227
 
            aresinc=`cd $srcdir/ares && pwd`
30228
 
            CPPFLAGS="$CPPFLAGS -I$aresinc"
30229
 
 
30230
 
                                                pwd=`pwd`
30231
 
            LDFLAGS="$LDFLAGS -L$pwd/ares"
30232
 
         fi
30233
 
       else
30234
 
         CPPFLAGS="$CPPFLAGS -I$enableval/include"
30235
 
         LDFLAGS="$LDFLAGS -L$enableval/lib"
30236
 
       fi
30237
 
 
30238
 
       if test -z "$aresembedded"; then
30239
 
                                    echo "$as_me:$LINENO: checking that c-ares is good and recent enough" >&5
30240
 
echo $ECHO_N "checking that c-ares is good and recent enough... $ECHO_C" >&6
30241
 
         cat >conftest.$ac_ext <<_ACEOF
30242
 
 
30243
 
#include <ares.h>
30244
 
/* provide a set of dummy functions in case c-ares was built with debug */
30245
 
void curl_dofree() { }
30246
 
void curl_sclose() { }
30247
 
void curl_domalloc() { }
30248
 
 
30249
 
int main(void)
30250
 
{
30251
 
  ares_channel channel;
30252
 
  ares_cancel(channel);
30253
 
  return 0;
30254
 
}
30255
 
 
30256
 
_ACEOF
30257
 
rm -f conftest.$ac_objext conftest$ac_exeext
30258
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30259
 
  (eval $ac_link) 2>conftest.er1
30260
 
  ac_status=$?
30261
 
  grep -v '^ *+' conftest.er1 >conftest.err
30262
 
  rm -f conftest.er1
30263
 
  cat conftest.err >&5
30264
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265
 
  (exit $ac_status); } &&
30266
 
         { ac_try='test -z "$ac_c_werror_flag"
30267
 
                         || test ! -s conftest.err'
30268
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30269
 
  (eval $ac_try) 2>&5
30270
 
  ac_status=$?
30271
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272
 
  (exit $ac_status); }; } &&
30273
 
         { ac_try='test -s conftest$ac_exeext'
30274
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30275
 
  (eval $ac_try) 2>&5
30276
 
  ac_status=$?
30277
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278
 
  (exit $ac_status); }; }; then
30279
 
  echo "$as_me:$LINENO: result: yes" >&5
30280
 
echo "${ECHO_T}yes" >&6
30281
 
else
30282
 
  echo "$as_me: failed program was:" >&5
30283
 
sed 's/^/| /' conftest.$ac_ext >&5
30284
 
 
30285
 
echo "$as_me:$LINENO: result: no" >&5
30286
 
echo "${ECHO_T}no" >&6
30287
 
          { { echo "$as_me:$LINENO: error: c-ares library defective or too old" >&5
30288
 
echo "$as_me: error: c-ares library defective or too old" >&2;}
30289
 
   { (exit 1); exit 1; }; }
30290
 
 
30291
 
fi
30292
 
rm -f conftest.err conftest.$ac_objext \
30293
 
      conftest$ac_exeext conftest.$ac_ext
30294
 
       fi
30295
 
       ;;
30296
 
  esac
30297
 
else
30298
 
  echo "$as_me:$LINENO: result: no" >&5
30299
 
echo "${ECHO_T}no" >&6
30300
 
 
30301
 
fi;
30302
 
 
30303
 
                                                                                                                                                                                                                                                          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 tests/libtest/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/DOS/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile curl-config"
30304
 
 
30305
 
cat >confcache <<\_ACEOF
30306
 
# This file is a shell script that caches the results of configure
30307
 
# tests run on this system so they can be shared between configure
30308
 
# scripts and configure runs, see configure's option --config-cache.
30309
 
# It is not useful on other systems.  If it contains results you don't
30310
 
# want to keep, you may remove or edit it.
30311
 
#
30312
 
# config.status only pays attention to the cache file if you give it
30313
 
# the --recheck option to rerun configure.
30314
 
#
30315
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
30316
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
30317
 
# following values.
30318
 
 
30319
 
_ACEOF
30320
 
 
30321
 
# The following way of writing the cache mishandles newlines in values,
30322
 
# but we know of no workaround that is simple, portable, and efficient.
30323
 
# So, don't put newlines in cache variables' values.
30324
 
# Ultrix sh set writes to stderr and can't be redirected directly,
30325
 
# and sets the high bit in the cache file unless we assign to the vars.
30326
 
{
30327
 
  (set) 2>&1 |
30328
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
30329
 
    *ac_space=\ *)
30330
 
      # `set' does not quote correctly, so add quotes (double-quote
30331
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
30332
 
      sed -n \
30333
 
        "s/'/'\\\\''/g;
30334
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30335
 
      ;;
30336
 
    *)
30337
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
30338
 
      sed -n \
30339
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30340
 
      ;;
30341
 
    esac;
30342
 
} |
30343
 
  sed '
30344
 
     t clear
30345
 
     : clear
30346
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30347
 
     t end
30348
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30349
 
     : end' >>confcache
30350
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
30351
 
  if test -w $cache_file; then
30352
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30353
 
    cat confcache >$cache_file
30354
 
  else
30355
 
    echo "not updating unwritable cache $cache_file"
30356
 
  fi
30357
 
fi
30358
 
rm -f confcache
30359
 
 
30360
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
30361
 
# Let make expand exec_prefix.
30362
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30363
 
 
30364
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
30365
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30366
 
# trailing colons and then remove the whole line if VPATH becomes empty
30367
 
# (actually we leave an empty line to preserve line numbers).
30368
 
if test "x$srcdir" = x.; then
30369
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
30370
 
s/:*\$(srcdir):*/:/;
30371
 
s/:*\${srcdir}:*/:/;
30372
 
s/:*@srcdir@:*/:/;
30373
 
s/^\([^=]*=[     ]*\):*/\1/;
30374
 
s/:*$//;
30375
 
s/^[^=]*=[       ]*$//;
30376
 
}'
30377
 
fi
30378
 
 
30379
 
DEFS=-DHAVE_CONFIG_H
30380
 
 
30381
 
ac_libobjs=
30382
 
ac_ltlibobjs=
30383
 
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30384
 
  # 1. Remove the extension, and $U if already installed.
30385
 
  ac_i=`echo "$ac_i" |
30386
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30387
 
  # 2. Add them.
30388
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30389
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30390
 
done
30391
 
LIBOBJS=$ac_libobjs
30392
 
 
30393
 
LTLIBOBJS=$ac_ltlibobjs
30394
 
 
30395
 
 
30396
 
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30397
 
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30398
 
Usually this means the macro was only invoked conditionally." >&5
30399
 
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30400
 
Usually this means the macro was only invoked conditionally." >&2;}
30401
 
   { (exit 1); exit 1; }; }
30402
 
fi
30403
 
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30404
 
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30405
 
Usually this means the macro was only invoked conditionally." >&5
30406
 
echo "$as_me: error: conditional \"AMDEP\" was never defined.
30407
 
Usually this means the macro was only invoked conditionally." >&2;}
30408
 
   { (exit 1); exit 1; }; }
30409
 
fi
30410
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30411
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30412
 
Usually this means the macro was only invoked conditionally." >&5
30413
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30414
 
Usually this means the macro was only invoked conditionally." >&2;}
30415
 
   { (exit 1); exit 1; }; }
30416
 
fi
30417
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30418
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30419
 
Usually this means the macro was only invoked conditionally." >&5
30420
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30421
 
Usually this means the macro was only invoked conditionally." >&2;}
30422
 
   { (exit 1); exit 1; }; }
30423
 
fi
30424
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30425
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30426
 
Usually this means the macro was only invoked conditionally." >&5
30427
 
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30428
 
Usually this means the macro was only invoked conditionally." >&2;}
30429
 
   { (exit 1); exit 1; }; }
30430
 
fi
30431
 
if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
30432
 
  { { echo "$as_me:$LINENO: error: conditional \"NO_UNDEFINED\" was never defined.
30433
 
Usually this means the macro was only invoked conditionally." >&5
30434
 
echo "$as_me: error: conditional \"NO_UNDEFINED\" was never defined.
30435
 
Usually this means the macro was only invoked conditionally." >&2;}
30436
 
   { (exit 1); exit 1; }; }
30437
 
fi
30438
 
if test -z "${MIMPURE_TRUE}" && test -z "${MIMPURE_FALSE}"; then
30439
 
  { { echo "$as_me:$LINENO: error: conditional \"MIMPURE\" was never defined.
30440
 
Usually this means the macro was only invoked conditionally." >&5
30441
 
echo "$as_me: error: conditional \"MIMPURE\" was never defined.
30442
 
Usually this means the macro was only invoked conditionally." >&2;}
30443
 
   { (exit 1); exit 1; }; }
30444
 
fi
30445
 
if test -z "${CABUNDLE_TRUE}" && test -z "${CABUNDLE_FALSE}"; then
30446
 
  { { echo "$as_me:$LINENO: error: conditional \"CABUNDLE\" was never defined.
30447
 
Usually this means the macro was only invoked conditionally." >&5
30448
 
echo "$as_me: error: conditional \"CABUNDLE\" was never defined.
30449
 
Usually this means the macro was only invoked conditionally." >&2;}
30450
 
   { (exit 1); exit 1; }; }
30451
 
fi
30452
 
if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
30453
 
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
30454
 
Usually this means the macro was only invoked conditionally." >&5
30455
 
echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
30456
 
Usually this means the macro was only invoked conditionally." >&2;}
30457
 
   { (exit 1); exit 1; }; }
30458
 
fi
30459
 
if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
30460
 
  { { echo "$as_me:$LINENO: error: conditional \"USE_MANUAL\" was never defined.
30461
 
Usually this means the macro was only invoked conditionally." >&5
30462
 
echo "$as_me: error: conditional \"USE_MANUAL\" was never defined.
30463
 
Usually this means the macro was only invoked conditionally." >&2;}
30464
 
   { (exit 1); exit 1; }; }
30465
 
fi
30466
 
 
30467
 
: ${CONFIG_STATUS=./config.status}
30468
 
ac_clean_files_save=$ac_clean_files
30469
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30470
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30471
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
30472
 
cat >$CONFIG_STATUS <<_ACEOF
30473
 
#! $SHELL
30474
 
# Generated by $as_me.
30475
 
# Run this file to recreate the current configuration.
30476
 
# Compiler output produced by configure, useful for debugging
30477
 
# configure, is in config.log if it exists.
30478
 
 
30479
 
debug=false
30480
 
ac_cs_recheck=false
30481
 
ac_cs_silent=false
30482
 
SHELL=\${CONFIG_SHELL-$SHELL}
30483
 
_ACEOF
30484
 
 
30485
 
cat >>$CONFIG_STATUS <<\_ACEOF
30486
 
## --------------------- ##
30487
 
## M4sh Initialization.  ##
30488
 
## --------------------- ##
30489
 
 
30490
 
# Be Bourne compatible
30491
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30492
 
  emulate sh
30493
 
  NULLCMD=:
30494
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30495
 
  # is contrary to our usage.  Disable this feature.
30496
 
  alias -g '${1+"$@"}'='"$@"'
30497
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30498
 
  set -o posix
30499
 
fi
30500
 
DUALCASE=1; export DUALCASE # for MKS sh
30501
 
 
30502
 
# Support unset when possible.
30503
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30504
 
  as_unset=unset
30505
 
else
30506
 
  as_unset=false
30507
 
fi
30508
 
 
30509
 
 
30510
 
# Work around bugs in pre-3.0 UWIN ksh.
30511
 
$as_unset ENV MAIL MAILPATH
30512
 
PS1='$ '
30513
 
PS2='> '
30514
 
PS4='+ '
30515
 
 
30516
 
# NLS nuisances.
30517
 
for as_var in \
30518
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30519
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30520
 
  LC_TELEPHONE LC_TIME
30521
 
do
30522
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30523
 
    eval $as_var=C; export $as_var
30524
 
  else
30525
 
    $as_unset $as_var
30526
 
  fi
30527
 
done
30528
 
 
30529
 
# Required to use basename.
30530
 
if expr a : '\(a\)' >/dev/null 2>&1; then
30531
 
  as_expr=expr
30532
 
else
30533
 
  as_expr=false
30534
 
fi
30535
 
 
30536
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30537
 
  as_basename=basename
30538
 
else
30539
 
  as_basename=false
30540
 
fi
30541
 
 
30542
 
 
30543
 
# Name of the executable.
30544
 
as_me=`$as_basename "$0" ||
30545
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30546
 
         X"$0" : 'X\(//\)$' \| \
30547
 
         X"$0" : 'X\(/\)$' \| \
30548
 
         .     : '\(.\)' 2>/dev/null ||
30549
 
echo X/"$0" |
30550
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30551
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
30552
 
          /^X\/\(\/\).*/{ s//\1/; q; }
30553
 
          s/.*/./; q'`
30554
 
 
30555
 
 
30556
 
# PATH needs CR, and LINENO needs CR and PATH.
30557
 
# Avoid depending upon Character Ranges.
30558
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30559
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30560
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30561
 
as_cr_digits='0123456789'
30562
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
30563
 
 
30564
 
# The user is always right.
30565
 
if test "${PATH_SEPARATOR+set}" != set; then
30566
 
  echo "#! /bin/sh" >conf$$.sh
30567
 
  echo  "exit 0"   >>conf$$.sh
30568
 
  chmod +x conf$$.sh
30569
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30570
 
    PATH_SEPARATOR=';'
30571
 
  else
30572
 
    PATH_SEPARATOR=:
30573
 
  fi
30574
 
  rm -f conf$$.sh
30575
 
fi
30576
 
 
30577
 
 
30578
 
  as_lineno_1=$LINENO
30579
 
  as_lineno_2=$LINENO
30580
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30581
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
30582
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30583
 
  # Find who we are.  Look in the path if we contain no path at all
30584
 
  # relative or not.
30585
 
  case $0 in
30586
 
    *[\\/]* ) as_myself=$0 ;;
30587
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30588
 
for as_dir in $PATH
30589
 
do
30590
 
  IFS=$as_save_IFS
30591
 
  test -z "$as_dir" && as_dir=.
30592
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30593
 
done
30594
 
 
30595
 
       ;;
30596
 
  esac
30597
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
30598
 
  # in which case we are not to be found in the path.
30599
 
  if test "x$as_myself" = x; then
30600
 
    as_myself=$0
30601
 
  fi
30602
 
  if test ! -f "$as_myself"; then
30603
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30604
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30605
 
   { (exit 1); exit 1; }; }
30606
 
  fi
30607
 
  case $CONFIG_SHELL in
30608
 
  '')
30609
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30610
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30611
 
do
30612
 
  IFS=$as_save_IFS
30613
 
  test -z "$as_dir" && as_dir=.
30614
 
  for as_base in sh bash ksh sh5; do
30615
 
         case $as_dir in
30616
 
         /*)
30617
 
           if ("$as_dir/$as_base" -c '
30618
 
  as_lineno_1=$LINENO
30619
 
  as_lineno_2=$LINENO
30620
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30621
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
30622
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30623
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30624
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30625
 
             CONFIG_SHELL=$as_dir/$as_base
30626
 
             export CONFIG_SHELL
30627
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30628
 
           fi;;
30629
 
         esac
30630
 
       done
30631
 
done
30632
 
;;
30633
 
  esac
30634
 
 
30635
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30636
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
30637
 
  # line-number line before each line; the second 'sed' does the real
30638
 
  # work.  The second script uses 'N' to pair each line-number line
30639
 
  # with the numbered line, and appends trailing '-' during
30640
 
  # substitution so that $LINENO is not a special case at line end.
30641
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30642
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30643
 
  sed '=' <$as_myself |
30644
 
    sed '
30645
 
      N
30646
 
      s,$,-,
30647
 
      : loop
30648
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30649
 
      t loop
30650
 
      s,-$,,
30651
 
      s,^['$as_cr_digits']*\n,,
30652
 
    ' >$as_me.lineno &&
30653
 
  chmod +x $as_me.lineno ||
30654
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30655
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30656
 
   { (exit 1); exit 1; }; }
30657
 
 
30658
 
  # Don't try to exec as it changes $[0], causing all sort of problems
30659
 
  # (the dirname of $[0] is not the place where we might find the
30660
 
  # original and so on.  Autoconf is especially sensible to this).
30661
 
  . ./$as_me.lineno
30662
 
  # Exit status is that of the last command.
30663
 
  exit
30664
 
}
30665
 
 
30666
 
 
30667
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30668
 
  *c*,-n*) ECHO_N= ECHO_C='
30669
 
' ECHO_T='      ' ;;
30670
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30671
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30672
 
esac
30673
 
 
30674
 
if expr a : '\(a\)' >/dev/null 2>&1; then
30675
 
  as_expr=expr
30676
 
else
30677
 
  as_expr=false
30678
 
fi
30679
 
 
30680
 
rm -f conf$$ conf$$.exe conf$$.file
30681
 
echo >conf$$.file
30682
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
30683
 
  # We could just check for DJGPP; but this test a) works b) is more generic
30684
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30685
 
  if test -f conf$$.exe; then
30686
 
    # Don't use ln at all; we don't have any links
30687
 
    as_ln_s='cp -p'
30688
 
  else
30689
 
    as_ln_s='ln -s'
30690
 
  fi
30691
 
elif ln conf$$.file conf$$ 2>/dev/null; then
30692
 
  as_ln_s=ln
30693
 
else
30694
 
  as_ln_s='cp -p'
30695
 
fi
30696
 
rm -f conf$$ conf$$.exe conf$$.file
30697
 
 
30698
 
if mkdir -p . 2>/dev/null; then
30699
 
  as_mkdir_p=:
30700
 
else
30701
 
  test -d ./-p && rmdir ./-p
30702
 
  as_mkdir_p=false
30703
 
fi
30704
 
 
30705
 
as_executable_p="test -f"
30706
 
 
30707
 
# Sed expression to map a string onto a valid CPP name.
30708
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30709
 
 
30710
 
# Sed expression to map a string onto a valid variable name.
30711
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30712
 
 
30713
 
 
30714
 
# IFS
30715
 
# We need space, tab and new line, in precisely that order.
30716
 
as_nl='
30717
 
'
30718
 
IFS="   $as_nl"
30719
 
 
30720
 
# CDPATH.
30721
 
$as_unset CDPATH
30722
 
 
30723
 
exec 6>&1
30724
 
 
30725
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
30726
 
# report actual input values of CONFIG_FILES etc. instead of their
30727
 
# values after options handling.  Logging --version etc. is OK.
30728
 
exec 5>>config.log
30729
 
{
30730
 
  echo
30731
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30732
 
## Running $as_me. ##
30733
 
_ASBOX
30734
 
} >&5
30735
 
cat >&5 <<_CSEOF
30736
 
 
30737
 
This file was extended by curl $as_me -, which was
30738
 
generated by GNU Autoconf 2.59.  Invocation command line was
30739
 
 
30740
 
  CONFIG_FILES    = $CONFIG_FILES
30741
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
30742
 
  CONFIG_LINKS    = $CONFIG_LINKS
30743
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
30744
 
  $ $0 $@
30745
 
 
30746
 
_CSEOF
30747
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30748
 
echo >&5
30749
 
_ACEOF
30750
 
 
30751
 
# Files that config.status was made for.
30752
 
if test -n "$ac_config_files"; then
30753
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30754
 
fi
30755
 
 
30756
 
if test -n "$ac_config_headers"; then
30757
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30758
 
fi
30759
 
 
30760
 
if test -n "$ac_config_links"; then
30761
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30762
 
fi
30763
 
 
30764
 
if test -n "$ac_config_commands"; then
30765
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30766
 
fi
30767
 
 
30768
 
cat >>$CONFIG_STATUS <<\_ACEOF
30769
 
 
30770
 
ac_cs_usage="\
30771
 
\`$as_me' instantiates files from templates according to the
30772
 
current configuration.
30773
 
 
30774
 
Usage: $0 [OPTIONS] [FILE]...
30775
 
 
30776
 
  -h, --help       print this help, then exit
30777
 
  -V, --version    print version number, then exit
30778
 
  -q, --quiet      do not print progress messages
30779
 
  -d, --debug      don't remove temporary files
30780
 
      --recheck    update $as_me by reconfiguring in the same conditions
30781
 
  --file=FILE[:TEMPLATE]
30782
 
                   instantiate the configuration file FILE
30783
 
  --header=FILE[:TEMPLATE]
30784
 
                   instantiate the configuration header FILE
30785
 
 
30786
 
Configuration files:
30787
 
$config_files
30788
 
 
30789
 
Configuration headers:
30790
 
$config_headers
30791
 
 
30792
 
Configuration commands:
30793
 
$config_commands
30794
 
 
30795
 
Report bugs to <bug-autoconf@gnu.org>."
30796
 
_ACEOF
30797
 
 
30798
 
cat >>$CONFIG_STATUS <<_ACEOF
30799
 
ac_cs_version="\\
30800
 
curl config.status -
30801
 
configured by $0, generated by GNU Autoconf 2.59,
30802
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30803
 
 
30804
 
Copyright (C) 2003 Free Software Foundation, Inc.
30805
 
This config.status script is free software; the Free Software Foundation
30806
 
gives unlimited permission to copy, distribute and modify it."
30807
 
srcdir=$srcdir
30808
 
INSTALL="$INSTALL"
30809
 
_ACEOF
30810
 
 
30811
 
cat >>$CONFIG_STATUS <<\_ACEOF
30812
 
# If no file are specified by the user, then we need to provide default
30813
 
# value.  By we need to know if files were specified by the user.
30814
 
ac_need_defaults=:
30815
 
while test $# != 0
30816
 
do
30817
 
  case $1 in
30818
 
  --*=*)
30819
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
30820
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30821
 
    ac_shift=:
30822
 
    ;;
30823
 
  -*)
30824
 
    ac_option=$1
30825
 
    ac_optarg=$2
30826
 
    ac_shift=shift
30827
 
    ;;
30828
 
  *) # This is not an option, so the user has probably given explicit
30829
 
     # arguments.
30830
 
     ac_option=$1
30831
 
     ac_need_defaults=false;;
30832
 
  esac
30833
 
 
30834
 
  case $ac_option in
30835
 
  # Handling of the options.
30836
 
_ACEOF
30837
 
cat >>$CONFIG_STATUS <<\_ACEOF
30838
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30839
 
    ac_cs_recheck=: ;;
30840
 
  --version | --vers* | -V )
30841
 
    echo "$ac_cs_version"; exit 0 ;;
30842
 
  --he | --h)
30843
 
    # Conflict between --help and --header
30844
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
30845
 
Try \`$0 --help' for more information." >&5
30846
 
echo "$as_me: error: ambiguous option: $1
30847
 
Try \`$0 --help' for more information." >&2;}
30848
 
   { (exit 1); exit 1; }; };;
30849
 
  --help | --hel | -h )
30850
 
    echo "$ac_cs_usage"; exit 0 ;;
30851
 
  --debug | --d* | -d )
30852
 
    debug=: ;;
30853
 
  --file | --fil | --fi | --f )
30854
 
    $ac_shift
30855
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30856
 
    ac_need_defaults=false;;
30857
 
  --header | --heade | --head | --hea )
30858
 
    $ac_shift
30859
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30860
 
    ac_need_defaults=false;;
30861
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30862
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
30863
 
    ac_cs_silent=: ;;
30864
 
 
30865
 
  # This is an error.
30866
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30867
 
Try \`$0 --help' for more information." >&5
30868
 
echo "$as_me: error: unrecognized option: $1
30869
 
Try \`$0 --help' for more information." >&2;}
30870
 
   { (exit 1); exit 1; }; } ;;
30871
 
 
30872
 
  *) ac_config_targets="$ac_config_targets $1" ;;
30873
 
 
30874
 
  esac
30875
 
  shift
30876
 
done
30877
 
 
30878
 
ac_configure_extra_args=
30879
 
 
30880
 
if $ac_cs_silent; then
30881
 
  exec 6>/dev/null
30882
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
30883
 
fi
30884
 
 
30885
 
_ACEOF
30886
 
cat >>$CONFIG_STATUS <<_ACEOF
30887
 
if \$ac_cs_recheck; then
30888
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30889
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30890
 
fi
30891
 
 
30892
 
_ACEOF
30893
 
 
30894
 
cat >>$CONFIG_STATUS <<_ACEOF
30895
 
#
30896
 
# INIT-COMMANDS section.
30897
 
#
30898
 
 
30899
 
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30900
 
 
30901
 
_ACEOF
30902
 
 
30903
 
 
30904
 
 
30905
 
cat >>$CONFIG_STATUS <<\_ACEOF
30906
 
for ac_config_target in $ac_config_targets
30907
 
do
30908
 
  case "$ac_config_target" in
30909
 
  # Handling of arguments.
30910
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30911
 
  "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
30912
 
  "docs/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
30913
 
  "docs/libcurl/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
30914
 
  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
30915
 
  "include/curl/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
30916
 
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30917
 
  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
30918
 
  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
30919
 
  "tests/data/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
30920
 
  "tests/server/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
30921
 
  "tests/libtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
30922
 
  "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
30923
 
  "packages/Win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
30924
 
  "packages/Win32/cygwin/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
30925
 
  "packages/Linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
30926
 
  "packages/Linux/RPM/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
30927
 
  "packages/Linux/RPM/curl.spec" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
30928
 
  "packages/Linux/RPM/curl-ssl.spec" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
30929
 
  "packages/Solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
30930
 
  "packages/DOS/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/DOS/Makefile" ;;
30931
 
  "packages/EPM/curl.list" ) CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
30932
 
  "packages/EPM/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
30933
 
  "packages/vms/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
30934
 
  "curl-config" ) CONFIG_FILES="$CONFIG_FILES curl-config" ;;
30935
 
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30936
 
  "lib/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
30937
 
  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
30938
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30939
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30940
 
   { (exit 1); exit 1; }; };;
30941
 
  esac
30942
 
done
30943
 
 
30944
 
# If the user did not use the arguments to specify the items to instantiate,
30945
 
# then the envvar interface is used.  Set only those that are not.
30946
 
# We use the long form for the default assignment because of an extremely
30947
 
# bizarre bug on SunOS 4.1.3.
30948
 
if $ac_need_defaults; then
30949
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30950
 
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30951
 
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30952
 
fi
30953
 
 
30954
 
# Have a temporary directory for convenience.  Make it in the build tree
30955
 
# simply because there is no reason to put it here, and in addition,
30956
 
# creating and moving files from /tmp can sometimes cause problems.
30957
 
# Create a temporary directory, and hook for its removal unless debugging.
30958
 
$debug ||
30959
 
{
30960
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30961
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
30962
 
}
30963
 
 
30964
 
# Create a (secure) tmp directory for tmp files.
30965
 
 
30966
 
{
30967
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30968
 
  test -n "$tmp" && test -d "$tmp"
30969
 
}  ||
30970
 
{
30971
 
  tmp=./confstat$$-$RANDOM
30972
 
  (umask 077 && mkdir $tmp)
30973
 
} ||
30974
 
{
30975
 
   echo "$me: cannot create a temporary directory in ." >&2
30976
 
   { (exit 1); exit 1; }
30977
 
}
30978
 
 
30979
 
_ACEOF
30980
 
 
30981
 
cat >>$CONFIG_STATUS <<_ACEOF
30982
 
 
30983
 
#
30984
 
# CONFIG_FILES section.
30985
 
#
30986
 
 
30987
 
# No need to generate the scripts if there are no CONFIG_FILES.
30988
 
# This happens for instance when ./config.status config.h
30989
 
if test -n "\$CONFIG_FILES"; then
30990
 
  # Protect against being on the right side of a sed subst in config.status.
30991
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30992
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30993
 
s,@SHELL@,$SHELL,;t t
30994
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30995
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30996
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30997
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30998
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30999
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31000
 
s,@exec_prefix@,$exec_prefix,;t t
31001
 
s,@prefix@,$prefix,;t t
31002
 
s,@program_transform_name@,$program_transform_name,;t t
31003
 
s,@bindir@,$bindir,;t t
31004
 
s,@sbindir@,$sbindir,;t t
31005
 
s,@libexecdir@,$libexecdir,;t t
31006
 
s,@datadir@,$datadir,;t t
31007
 
s,@sysconfdir@,$sysconfdir,;t t
31008
 
s,@sharedstatedir@,$sharedstatedir,;t t
31009
 
s,@localstatedir@,$localstatedir,;t t
31010
 
s,@libdir@,$libdir,;t t
31011
 
s,@includedir@,$includedir,;t t
31012
 
s,@oldincludedir@,$oldincludedir,;t t
31013
 
s,@infodir@,$infodir,;t t
31014
 
s,@mandir@,$mandir,;t t
31015
 
s,@build_alias@,$build_alias,;t t
31016
 
s,@host_alias@,$host_alias,;t t
31017
 
s,@target_alias@,$target_alias,;t t
31018
 
s,@DEFS@,$DEFS,;t t
31019
 
s,@ECHO_C@,$ECHO_C,;t t
31020
 
s,@ECHO_N@,$ECHO_N,;t t
31021
 
s,@ECHO_T@,$ECHO_T,;t t
31022
 
s,@LIBS@,$LIBS,;t t
31023
 
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
31024
 
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
31025
 
s,@MAINT@,$MAINT,;t t
31026
 
s,@SED@,$SED,;t t
31027
 
s,@AR@,$AR,;t t
31028
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31029
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31030
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31031
 
s,@CYGPATH_W@,$CYGPATH_W,;t t
31032
 
s,@PACKAGE@,$PACKAGE,;t t
31033
 
s,@VERSION@,$VERSION,;t t
31034
 
s,@ACLOCAL@,$ACLOCAL,;t t
31035
 
s,@AUTOCONF@,$AUTOCONF,;t t
31036
 
s,@AUTOMAKE@,$AUTOMAKE,;t t
31037
 
s,@AUTOHEADER@,$AUTOHEADER,;t t
31038
 
s,@MAKEINFO@,$MAKEINFO,;t t
31039
 
s,@AMTAR@,$AMTAR,;t t
31040
 
s,@install_sh@,$install_sh,;t t
31041
 
s,@STRIP@,$STRIP,;t t
31042
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31043
 
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
31044
 
s,@mkdir_p@,$mkdir_p,;t t
31045
 
s,@AWK@,$AWK,;t t
31046
 
s,@SET_MAKE@,$SET_MAKE,;t t
31047
 
s,@am__leading_dot@,$am__leading_dot,;t t
31048
 
s,@VERSIONNUM@,$VERSIONNUM,;t t
31049
 
s,@PKGADD_PKG@,$PKGADD_PKG,;t t
31050
 
s,@PKGADD_NAME@,$PKGADD_NAME,;t t
31051
 
s,@PKGADD_VENDOR@,$PKGADD_VENDOR,;t t
31052
 
s,@build@,$build,;t t
31053
 
s,@build_cpu@,$build_cpu,;t t
31054
 
s,@build_vendor@,$build_vendor,;t t
31055
 
s,@build_os@,$build_os,;t t
31056
 
s,@host@,$host,;t t
31057
 
s,@host_cpu@,$host_cpu,;t t
31058
 
s,@host_vendor@,$host_vendor,;t t
31059
 
s,@host_os@,$host_os,;t t
31060
 
s,@CC@,$CC,;t t
31061
 
s,@CFLAGS@,$CFLAGS,;t t
31062
 
s,@LDFLAGS@,$LDFLAGS,;t t
31063
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
31064
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
31065
 
s,@EXEEXT@,$EXEEXT,;t t
31066
 
s,@OBJEXT@,$OBJEXT,;t t
31067
 
s,@DEPDIR@,$DEPDIR,;t t
31068
 
s,@am__include@,$am__include,;t t
31069
 
s,@am__quote@,$am__quote,;t t
31070
 
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
31071
 
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
31072
 
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
31073
 
s,@CCDEPMODE@,$CCDEPMODE,;t t
31074
 
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
31075
 
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
31076
 
s,@CPP@,$CPP,;t t
31077
 
s,@EGREP@,$EGREP,;t t
31078
 
s,@LN_S@,$LN_S,;t t
31079
 
s,@ECHO@,$ECHO,;t t
31080
 
s,@ac_ct_AR@,$ac_ct_AR,;t t
31081
 
s,@RANLIB@,$RANLIB,;t t
31082
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31083
 
s,@DLLTOOL@,$DLLTOOL,;t t
31084
 
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
31085
 
s,@AS@,$AS,;t t
31086
 
s,@ac_ct_AS@,$ac_ct_AS,;t t
31087
 
s,@OBJDUMP@,$OBJDUMP,;t t
31088
 
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
31089
 
s,@CXX@,$CXX,;t t
31090
 
s,@CXXFLAGS@,$CXXFLAGS,;t t
31091
 
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31092
 
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
31093
 
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
31094
 
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
31095
 
s,@CXXCPP@,$CXXCPP,;t t
31096
 
s,@F77@,$F77,;t t
31097
 
s,@FFLAGS@,$FFLAGS,;t t
31098
 
s,@ac_ct_F77@,$ac_ct_F77,;t t
31099
 
s,@LIBTOOL@,$LIBTOOL,;t t
31100
 
s,@NO_UNDEFINED_TRUE@,$NO_UNDEFINED_TRUE,;t t
31101
 
s,@NO_UNDEFINED_FALSE@,$NO_UNDEFINED_FALSE,;t t
31102
 
s,@MIMPURE_TRUE@,$MIMPURE_TRUE,;t t
31103
 
s,@MIMPURE_FALSE@,$MIMPURE_FALSE,;t t
31104
 
s,@CURL_DISABLE_HTTP@,$CURL_DISABLE_HTTP,;t t
31105
 
s,@CURL_DISABLE_GOPHER@,$CURL_DISABLE_GOPHER,;t t
31106
 
s,@CURL_DISABLE_FTP@,$CURL_DISABLE_FTP,;t t
31107
 
s,@CURL_DISABLE_FILE@,$CURL_DISABLE_FILE,;t t
31108
 
s,@CURL_DISABLE_LDAP@,$CURL_DISABLE_LDAP,;t t
31109
 
s,@CURL_DISABLE_DICT@,$CURL_DISABLE_DICT,;t t
31110
 
s,@CURL_DISABLE_TELNET@,$CURL_DISABLE_TELNET,;t t
31111
 
s,@IPV6_ENABLED@,$IPV6_ENABLED,;t t
31112
 
s,@RANDOM_FILE@,$RANDOM_FILE,;t t
31113
 
s,@KRB4_ENABLED@,$KRB4_ENABLED,;t t
31114
 
s,@PKGCONFIG@,$PKGCONFIG,;t t
31115
 
s,@OPENSSL_ENABLED@,$OPENSSL_ENABLED,;t t
31116
 
s,@CURL_CA_BUNDLE@,$CURL_CA_BUNDLE,;t t
31117
 
s,@CABUNDLE_TRUE@,$CABUNDLE_TRUE,;t t
31118
 
s,@CABUNDLE_FALSE@,$CABUNDLE_FALSE,;t t
31119
 
s,@HAVE_LIBZ@,$HAVE_LIBZ,;t t
31120
 
s,@HAVE_LIBZ_TRUE@,$HAVE_LIBZ_TRUE,;t t
31121
 
s,@HAVE_LIBZ_FALSE@,$HAVE_LIBZ_FALSE,;t t
31122
 
s,@PERL@,$PERL,;t t
31123
 
s,@NROFF@,$NROFF,;t t
31124
 
s,@MANOPT@,$MANOPT,;t t
31125
 
s,@YACC@,$YACC,;t t
31126
 
s,@USE_MANUAL_TRUE@,$USE_MANUAL_TRUE,;t t
31127
 
s,@USE_MANUAL_FALSE@,$USE_MANUAL_FALSE,;t t
31128
 
s,@HAVE_ARES@,$HAVE_ARES,;t t
31129
 
s,@subdirs@,$subdirs,;t t
31130
 
s,@LIBOBJS@,$LIBOBJS,;t t
31131
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31132
 
CEOF
31133
 
 
31134
 
_ACEOF
31135
 
 
31136
 
  cat >>$CONFIG_STATUS <<\_ACEOF
31137
 
  # Split the substitutions into bite-sized pieces for seds with
31138
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
31139
 
  ac_max_sed_lines=48
31140
 
  ac_sed_frag=1 # Number of current file.
31141
 
  ac_beg=1 # First line for current file.
31142
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
31143
 
  ac_more_lines=:
31144
 
  ac_sed_cmds=
31145
 
  while $ac_more_lines; do
31146
 
    if test $ac_beg -gt 1; then
31147
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31148
 
    else
31149
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31150
 
    fi
31151
 
    if test ! -s $tmp/subs.frag; then
31152
 
      ac_more_lines=false
31153
 
    else
31154
 
      # The purpose of the label and of the branching condition is to
31155
 
      # speed up the sed processing (if there are no `@' at all, there
31156
 
      # is no need to browse any of the substitutions).
31157
 
      # These are the two extra sed commands mentioned above.
31158
 
      (echo ':t
31159
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31160
 
      if test -z "$ac_sed_cmds"; then
31161
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31162
 
      else
31163
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31164
 
      fi
31165
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
31166
 
      ac_beg=$ac_end
31167
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
31168
 
    fi
31169
 
  done
31170
 
  if test -z "$ac_sed_cmds"; then
31171
 
    ac_sed_cmds=cat
31172
 
  fi
31173
 
fi # test -n "$CONFIG_FILES"
31174
 
 
31175
 
_ACEOF
31176
 
cat >>$CONFIG_STATUS <<\_ACEOF
31177
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31178
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31179
 
  case $ac_file in
31180
 
  - | *:- | *:-:* ) # input from stdin
31181
 
        cat >$tmp/stdin
31182
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31183
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31184
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31185
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31186
 
  * )   ac_file_in=$ac_file.in ;;
31187
 
  esac
31188
 
 
31189
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31190
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31191
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31192
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
31193
 
         X"$ac_file" : 'X\(//\)$' \| \
31194
 
         X"$ac_file" : 'X\(/\)' \| \
31195
 
         .     : '\(.\)' 2>/dev/null ||
31196
 
echo X"$ac_file" |
31197
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31198
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31199
 
          /^X\(\/\/\)$/{ s//\1/; q; }
31200
 
          /^X\(\/\).*/{ s//\1/; q; }
31201
 
          s/.*/./; q'`
31202
 
  { if $as_mkdir_p; then
31203
 
    mkdir -p "$ac_dir"
31204
 
  else
31205
 
    as_dir="$ac_dir"
31206
 
    as_dirs=
31207
 
    while test ! -d "$as_dir"; do
31208
 
      as_dirs="$as_dir $as_dirs"
31209
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31210
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31211
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
31212
 
         X"$as_dir" : 'X\(//\)$' \| \
31213
 
         X"$as_dir" : 'X\(/\)' \| \
31214
 
         .     : '\(.\)' 2>/dev/null ||
31215
 
echo X"$as_dir" |
31216
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31217
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31218
 
          /^X\(\/\/\)$/{ s//\1/; q; }
31219
 
          /^X\(\/\).*/{ s//\1/; q; }
31220
 
          s/.*/./; q'`
31221
 
    done
31222
 
    test ! -n "$as_dirs" || mkdir $as_dirs
31223
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31224
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31225
 
   { (exit 1); exit 1; }; }; }
31226
 
 
31227
 
  ac_builddir=.
31228
 
 
31229
 
if test "$ac_dir" != .; then
31230
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31231
 
  # A "../" for each directory in $ac_dir_suffix.
31232
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31233
 
else
31234
 
  ac_dir_suffix= ac_top_builddir=
31235
 
fi
31236
 
 
31237
 
case $srcdir in
31238
 
  .)  # No --srcdir option.  We are building in place.
31239
 
    ac_srcdir=.
31240
 
    if test -z "$ac_top_builddir"; then
31241
 
       ac_top_srcdir=.
31242
 
    else
31243
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31244
 
    fi ;;
31245
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
31246
 
    ac_srcdir=$srcdir$ac_dir_suffix;
31247
 
    ac_top_srcdir=$srcdir ;;
31248
 
  *) # Relative path.
31249
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31250
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31251
 
esac
31252
 
 
31253
 
# Do not use `cd foo && pwd` to compute absolute paths, because
31254
 
# the directories may not exist.
31255
 
case `pwd` in
31256
 
.) ac_abs_builddir="$ac_dir";;
31257
 
*)
31258
 
  case "$ac_dir" in
31259
 
  .) ac_abs_builddir=`pwd`;;
31260
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31261
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31262
 
  esac;;
31263
 
esac
31264
 
case $ac_abs_builddir in
31265
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
31266
 
*)
31267
 
  case ${ac_top_builddir}. in
31268
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
31269
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31270
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31271
 
  esac;;
31272
 
esac
31273
 
case $ac_abs_builddir in
31274
 
.) ac_abs_srcdir=$ac_srcdir;;
31275
 
*)
31276
 
  case $ac_srcdir in
31277
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
31278
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31279
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31280
 
  esac;;
31281
 
esac
31282
 
case $ac_abs_builddir in
31283
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
31284
 
*)
31285
 
  case $ac_top_srcdir in
31286
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31287
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31288
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31289
 
  esac;;
31290
 
esac
31291
 
 
31292
 
 
31293
 
  case $INSTALL in
31294
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31295
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31296
 
  esac
31297
 
 
31298
 
  if test x"$ac_file" != x-; then
31299
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
31300
 
echo "$as_me: creating $ac_file" >&6;}
31301
 
    rm -f "$ac_file"
31302
 
  fi
31303
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
31304
 
  # use $as_me), people would be surprised to read:
31305
 
  #    /* config.h.  Generated by config.status.  */
31306
 
  if test x"$ac_file" = x-; then
31307
 
    configure_input=
31308
 
  else
31309
 
    configure_input="$ac_file.  "
31310
 
  fi
31311
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
31312
 
                                     sed 's,.*/,,'` by configure."
31313
 
 
31314
 
  # First look for the input files in the build tree, otherwise in the
31315
 
  # src tree.
31316
 
  ac_file_inputs=`IFS=:
31317
 
    for f in $ac_file_in; do
31318
 
      case $f in
31319
 
      -) echo $tmp/stdin ;;
31320
 
      [\\/$]*)
31321
 
         # Absolute (can't be DOS-style, as IFS=:)
31322
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31323
 
echo "$as_me: error: cannot find input file: $f" >&2;}
31324
 
   { (exit 1); exit 1; }; }
31325
 
         echo "$f";;
31326
 
      *) # Relative
31327
 
         if test -f "$f"; then
31328
 
           # Build tree
31329
 
           echo "$f"
31330
 
         elif test -f "$srcdir/$f"; then
31331
 
           # Source tree
31332
 
           echo "$srcdir/$f"
31333
 
         else
31334
 
           # /dev/null tree
31335
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31336
 
echo "$as_me: error: cannot find input file: $f" >&2;}
31337
 
   { (exit 1); exit 1; }; }
31338
 
         fi;;
31339
 
      esac
31340
 
    done` || { (exit 1); exit 1; }
31341
 
_ACEOF
31342
 
cat >>$CONFIG_STATUS <<_ACEOF
31343
 
  sed "$ac_vpsub
31344
 
$extrasub
31345
 
_ACEOF
31346
 
cat >>$CONFIG_STATUS <<\_ACEOF
31347
 
:t
31348
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31349
 
s,@configure_input@,$configure_input,;t t
31350
 
s,@srcdir@,$ac_srcdir,;t t
31351
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
31352
 
s,@top_srcdir@,$ac_top_srcdir,;t t
31353
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31354
 
s,@builddir@,$ac_builddir,;t t
31355
 
s,@abs_builddir@,$ac_abs_builddir,;t t
31356
 
s,@top_builddir@,$ac_top_builddir,;t t
31357
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31358
 
s,@INSTALL@,$ac_INSTALL,;t t
31359
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31360
 
  rm -f $tmp/stdin
31361
 
  if test x"$ac_file" != x-; then
31362
 
    mv $tmp/out $ac_file
31363
 
  else
31364
 
    cat $tmp/out
31365
 
    rm -f $tmp/out
31366
 
  fi
31367
 
 
31368
 
done
31369
 
_ACEOF
31370
 
cat >>$CONFIG_STATUS <<\_ACEOF
31371
 
 
31372
 
#
31373
 
# CONFIG_HEADER section.
31374
 
#
31375
 
 
31376
 
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31377
 
# NAME is the cpp macro being defined and VALUE is the value it is being given.
31378
 
#
31379
 
# ac_d sets the value in "#define NAME VALUE" lines.
31380
 
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31381
 
ac_dB='[         ].*$,\1#\2'
31382
 
ac_dC=' '
31383
 
ac_dD=',;t'
31384
 
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31385
 
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31386
 
ac_uB='$,\1#\2define\3'
31387
 
ac_uC=' '
31388
 
ac_uD=',;t'
31389
 
 
31390
 
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31391
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31392
 
  case $ac_file in
31393
 
  - | *:- | *:-:* ) # input from stdin
31394
 
        cat >$tmp/stdin
31395
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31396
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31397
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31398
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31399
 
  * )   ac_file_in=$ac_file.in ;;
31400
 
  esac
31401
 
 
31402
 
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31403
 
echo "$as_me: creating $ac_file" >&6;}
31404
 
 
31405
 
  # First look for the input files in the build tree, otherwise in the
31406
 
  # src tree.
31407
 
  ac_file_inputs=`IFS=:
31408
 
    for f in $ac_file_in; do
31409
 
      case $f in
31410
 
      -) echo $tmp/stdin ;;
31411
 
      [\\/$]*)
31412
 
         # Absolute (can't be DOS-style, as IFS=:)
31413
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31414
 
echo "$as_me: error: cannot find input file: $f" >&2;}
31415
 
   { (exit 1); exit 1; }; }
31416
 
         # Do quote $f, to prevent DOS paths from being IFS'd.
31417
 
         echo "$f";;
31418
 
      *) # Relative
31419
 
         if test -f "$f"; then
31420
 
           # Build tree
31421
 
           echo "$f"
31422
 
         elif test -f "$srcdir/$f"; then
31423
 
           # Source tree
31424
 
           echo "$srcdir/$f"
31425
 
         else
31426
 
           # /dev/null tree
31427
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31428
 
echo "$as_me: error: cannot find input file: $f" >&2;}
31429
 
   { (exit 1); exit 1; }; }
31430
 
         fi;;
31431
 
      esac
31432
 
    done` || { (exit 1); exit 1; }
31433
 
  # Remove the trailing spaces.
31434
 
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31435
 
 
31436
 
_ACEOF
31437
 
 
31438
 
# Transform confdefs.h into two sed scripts, `conftest.defines' and
31439
 
# `conftest.undefs', that substitutes the proper values into
31440
 
# config.h.in to produce config.h.  The first handles `#define'
31441
 
# templates, and the second `#undef' templates.
31442
 
# And first: Protect against being on the right side of a sed subst in
31443
 
# config.status.  Protect against being in an unquoted here document
31444
 
# in config.status.
31445
 
rm -f conftest.defines conftest.undefs
31446
 
# Using a here document instead of a string reduces the quoting nightmare.
31447
 
# Putting comments in sed scripts is not portable.
31448
 
#
31449
 
# `end' is used to avoid that the second main sed command (meant for
31450
 
# 0-ary CPP macros) applies to n-ary macro definitions.
31451
 
# See the Autoconf documentation for `clear'.
31452
 
cat >confdef2sed.sed <<\_ACEOF
31453
 
s/[\\&,]/\\&/g
31454
 
s,[\\$`],\\&,g
31455
 
t clear
31456
 
: clear
31457
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31458
 
t end
31459
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31460
 
: end
31461
 
_ACEOF
31462
 
# If some macros were called several times there might be several times
31463
 
# the same #defines, which is useless.  Nevertheless, we may not want to
31464
 
# sort them, since we want the *last* AC-DEFINE to be honored.
31465
 
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31466
 
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31467
 
rm -f confdef2sed.sed
31468
 
 
31469
 
# This sed command replaces #undef with comments.  This is necessary, for
31470
 
# example, in the case of _POSIX_SOURCE, which is predefined and required
31471
 
# on some systems where configure will not decide to define it.
31472
 
cat >>conftest.undefs <<\_ACEOF
31473
 
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31474
 
_ACEOF
31475
 
 
31476
 
# Break up conftest.defines because some shells have a limit on the size
31477
 
# of here documents, and old seds have small limits too (100 cmds).
31478
 
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31479
 
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31480
 
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31481
 
echo '  :' >>$CONFIG_STATUS
31482
 
rm -f conftest.tail
31483
 
while grep . conftest.defines >/dev/null
31484
 
do
31485
 
  # Write a limited-size here document to $tmp/defines.sed.
31486
 
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31487
 
  # Speed up: don't consider the non `#define' lines.
31488
 
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31489
 
  # Work around the forget-to-reset-the-flag bug.
31490
 
  echo 't clr' >>$CONFIG_STATUS
31491
 
  echo ': clr' >>$CONFIG_STATUS
31492
 
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31493
 
  echo 'CEOF
31494
 
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
31495
 
  rm -f $tmp/in
31496
 
  mv $tmp/out $tmp/in
31497
 
' >>$CONFIG_STATUS
31498
 
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31499
 
  rm -f conftest.defines
31500
 
  mv conftest.tail conftest.defines
31501
 
done
31502
 
rm -f conftest.defines
31503
 
echo '  fi # grep' >>$CONFIG_STATUS
31504
 
echo >>$CONFIG_STATUS
31505
 
 
31506
 
# Break up conftest.undefs because some shells have a limit on the size
31507
 
# of here documents, and old seds have small limits too (100 cmds).
31508
 
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31509
 
rm -f conftest.tail
31510
 
while grep . conftest.undefs >/dev/null
31511
 
do
31512
 
  # Write a limited-size here document to $tmp/undefs.sed.
31513
 
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31514
 
  # Speed up: don't consider the non `#undef'
31515
 
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31516
 
  # Work around the forget-to-reset-the-flag bug.
31517
 
  echo 't clr' >>$CONFIG_STATUS
31518
 
  echo ': clr' >>$CONFIG_STATUS
31519
 
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31520
 
  echo 'CEOF
31521
 
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31522
 
  rm -f $tmp/in
31523
 
  mv $tmp/out $tmp/in
31524
 
' >>$CONFIG_STATUS
31525
 
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31526
 
  rm -f conftest.undefs
31527
 
  mv conftest.tail conftest.undefs
31528
 
done
31529
 
rm -f conftest.undefs
31530
 
 
31531
 
cat >>$CONFIG_STATUS <<\_ACEOF
31532
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
31533
 
  # use $as_me), people would be surprised to read:
31534
 
  #    /* config.h.  Generated by config.status.  */
31535
 
  if test x"$ac_file" = x-; then
31536
 
    echo "/* Generated by configure.  */" >$tmp/config.h
31537
 
  else
31538
 
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31539
 
  fi
31540
 
  cat $tmp/in >>$tmp/config.h
31541
 
  rm -f $tmp/in
31542
 
  if test x"$ac_file" != x-; then
31543
 
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31544
 
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31545
 
echo "$as_me: $ac_file is unchanged" >&6;}
31546
 
    else
31547
 
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31548
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31549
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
31550
 
         X"$ac_file" : 'X\(//\)$' \| \
31551
 
         X"$ac_file" : 'X\(/\)' \| \
31552
 
         .     : '\(.\)' 2>/dev/null ||
31553
 
echo X"$ac_file" |
31554
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31555
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31556
 
          /^X\(\/\/\)$/{ s//\1/; q; }
31557
 
          /^X\(\/\).*/{ s//\1/; q; }
31558
 
          s/.*/./; q'`
31559
 
      { if $as_mkdir_p; then
31560
 
    mkdir -p "$ac_dir"
31561
 
  else
31562
 
    as_dir="$ac_dir"
31563
 
    as_dirs=
31564
 
    while test ! -d "$as_dir"; do
31565
 
      as_dirs="$as_dir $as_dirs"
31566
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31567
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31568
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
31569
 
         X"$as_dir" : 'X\(//\)$' \| \
31570
 
         X"$as_dir" : 'X\(/\)' \| \
31571
 
         .     : '\(.\)' 2>/dev/null ||
31572
 
echo X"$as_dir" |
31573
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31574
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31575
 
          /^X\(\/\/\)$/{ s//\1/; q; }
31576
 
          /^X\(\/\).*/{ s//\1/; q; }
31577
 
          s/.*/./; q'`
31578
 
    done
31579
 
    test ! -n "$as_dirs" || mkdir $as_dirs
31580
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31581
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31582
 
   { (exit 1); exit 1; }; }; }
31583
 
 
31584
 
      rm -f $ac_file
31585
 
      mv $tmp/config.h $ac_file
31586
 
    fi
31587
 
  else
31588
 
    cat $tmp/config.h
31589
 
    rm -f $tmp/config.h
31590
 
  fi
31591
 
# Compute $ac_file's index in $config_headers.
31592
 
_am_stamp_count=1
31593
 
for _am_header in $config_headers :; do
31594
 
  case $_am_header in
31595
 
    $ac_file | $ac_file:* )
31596
 
      break ;;
31597
 
    * )
31598
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31599
 
  esac
31600
 
done
31601
 
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
31602
 
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31603
 
         X$ac_file : 'X\(//\)[^/]' \| \
31604
 
         X$ac_file : 'X\(//\)$' \| \
31605
 
         X$ac_file : 'X\(/\)' \| \
31606
 
         .     : '\(.\)' 2>/dev/null ||
31607
 
echo X$ac_file |
31608
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31609
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31610
 
          /^X\(\/\/\)$/{ s//\1/; q; }
31611
 
          /^X\(\/\).*/{ s//\1/; q; }
31612
 
          s/.*/./; q'`/stamp-h$_am_stamp_count
31613
 
done
31614
 
_ACEOF
31615
 
cat >>$CONFIG_STATUS <<\_ACEOF
31616
 
 
31617
 
#
31618
 
# CONFIG_COMMANDS section.
31619
 
#
31620
 
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31621
 
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31622
 
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31623
 
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31624
 
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31625
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
31626
 
         X"$ac_dest" : 'X\(//\)$' \| \
31627
 
         X"$ac_dest" : 'X\(/\)' \| \
31628
 
         .     : '\(.\)' 2>/dev/null ||
31629
 
echo X"$ac_dest" |
31630
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31631
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31632
 
          /^X\(\/\/\)$/{ s//\1/; q; }
31633
 
          /^X\(\/\).*/{ s//\1/; q; }
31634
 
          s/.*/./; q'`
31635
 
  { if $as_mkdir_p; then
31636
 
    mkdir -p "$ac_dir"
31637
 
  else
31638
 
    as_dir="$ac_dir"
31639
 
    as_dirs=
31640
 
    while test ! -d "$as_dir"; do
31641
 
      as_dirs="$as_dir $as_dirs"
31642
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31643
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31644
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
31645
 
         X"$as_dir" : 'X\(//\)$' \| \
31646
 
         X"$as_dir" : 'X\(/\)' \| \
31647
 
         .     : '\(.\)' 2>/dev/null ||
31648
 
echo X"$as_dir" |
31649
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31650
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31651
 
          /^X\(\/\/\)$/{ s//\1/; q; }
31652
 
          /^X\(\/\).*/{ s//\1/; q; }
31653
 
          s/.*/./; q'`
31654
 
    done
31655
 
    test ! -n "$as_dirs" || mkdir $as_dirs
31656
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31657
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31658
 
   { (exit 1); exit 1; }; }; }
31659
 
 
31660
 
  ac_builddir=.
31661
 
 
31662
 
if test "$ac_dir" != .; then
31663
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31664
 
  # A "../" for each directory in $ac_dir_suffix.
31665
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31666
 
else
31667
 
  ac_dir_suffix= ac_top_builddir=
31668
 
fi
31669
 
 
31670
 
case $srcdir in
31671
 
  .)  # No --srcdir option.  We are building in place.
31672
 
    ac_srcdir=.
31673
 
    if test -z "$ac_top_builddir"; then
31674
 
       ac_top_srcdir=.
31675
 
    else
31676
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31677
 
    fi ;;
31678
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
31679
 
    ac_srcdir=$srcdir$ac_dir_suffix;
31680
 
    ac_top_srcdir=$srcdir ;;
31681
 
  *) # Relative path.
31682
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31683
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31684
 
esac
31685
 
 
31686
 
# Do not use `cd foo && pwd` to compute absolute paths, because
31687
 
# the directories may not exist.
31688
 
case `pwd` in
31689
 
.) ac_abs_builddir="$ac_dir";;
31690
 
*)
31691
 
  case "$ac_dir" in
31692
 
  .) ac_abs_builddir=`pwd`;;
31693
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31694
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31695
 
  esac;;
31696
 
esac
31697
 
case $ac_abs_builddir in
31698
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
31699
 
*)
31700
 
  case ${ac_top_builddir}. in
31701
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
31702
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31703
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31704
 
  esac;;
31705
 
esac
31706
 
case $ac_abs_builddir in
31707
 
.) ac_abs_srcdir=$ac_srcdir;;
31708
 
*)
31709
 
  case $ac_srcdir in
31710
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
31711
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31712
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31713
 
  esac;;
31714
 
esac
31715
 
case $ac_abs_builddir in
31716
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
31717
 
*)
31718
 
  case $ac_top_srcdir in
31719
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31720
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31721
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31722
 
  esac;;
31723
 
esac
31724
 
 
31725
 
 
31726
 
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31727
 
echo "$as_me: executing $ac_dest commands" >&6;}
31728
 
  case $ac_dest in
31729
 
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31730
 
  # Strip MF so we end up with the name of the file.
31731
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
31732
 
  # Check whether this is an Automake generated Makefile or not.
31733
 
  # We used to match only the files named `Makefile.in', but
31734
 
  # some people rename them; so instead we look at the file content.
31735
 
  # Grep'ing the first line is not enough: some people post-process
31736
 
  # each Makefile.in and add a new line on top of each file to say so.
31737
 
  # So let's grep whole file.
31738
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31739
 
    dirpart=`(dirname "$mf") 2>/dev/null ||
31740
 
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31741
 
         X"$mf" : 'X\(//\)[^/]' \| \
31742
 
         X"$mf" : 'X\(//\)$' \| \
31743
 
         X"$mf" : 'X\(/\)' \| \
31744
 
         .     : '\(.\)' 2>/dev/null ||
31745
 
echo X"$mf" |
31746
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31747
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31748
 
          /^X\(\/\/\)$/{ s//\1/; q; }
31749
 
          /^X\(\/\).*/{ s//\1/; q; }
31750
 
          s/.*/./; q'`
31751
 
  else
31752
 
    continue
31753
 
  fi
31754
 
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
31755
 
  # Extract the definition of DEP_FILES from the Makefile without
31756
 
  # running `make'.
31757
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31758
 
  test -z "$DEPDIR" && continue
31759
 
  # When using ansi2knr, U may be empty or an underscore; expand it
31760
 
  U=`sed -n 's/^U = //p' < "$mf"`
31761
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
31762
 
  # We invoke sed twice because it is the simplest approach to
31763
 
  # changing $(DEPDIR) to its actual value in the expansion.
31764
 
  for file in `sed -n '
31765
 
    /^DEP_FILES = .*\\\\$/ {
31766
 
      s/^DEP_FILES = //
31767
 
      :loop
31768
 
        s/\\\\$//
31769
 
        p
31770
 
        n
31771
 
        /\\\\$/ b loop
31772
 
      p
31773
 
    }
31774
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
31775
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31776
 
    # Make sure the directory exists.
31777
 
    test -f "$dirpart/$file" && continue
31778
 
    fdir=`(dirname "$file") 2>/dev/null ||
31779
 
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31780
 
         X"$file" : 'X\(//\)[^/]' \| \
31781
 
         X"$file" : 'X\(//\)$' \| \
31782
 
         X"$file" : 'X\(/\)' \| \
31783
 
         .     : '\(.\)' 2>/dev/null ||
31784
 
echo X"$file" |
31785
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31786
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31787
 
          /^X\(\/\/\)$/{ s//\1/; q; }
31788
 
          /^X\(\/\).*/{ s//\1/; q; }
31789
 
          s/.*/./; q'`
31790
 
    { if $as_mkdir_p; then
31791
 
    mkdir -p $dirpart/$fdir
31792
 
  else
31793
 
    as_dir=$dirpart/$fdir
31794
 
    as_dirs=
31795
 
    while test ! -d "$as_dir"; do
31796
 
      as_dirs="$as_dir $as_dirs"
31797
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31798
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31799
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
31800
 
         X"$as_dir" : 'X\(//\)$' \| \
31801
 
         X"$as_dir" : 'X\(/\)' \| \
31802
 
         .     : '\(.\)' 2>/dev/null ||
31803
 
echo X"$as_dir" |
31804
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31805
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31806
 
          /^X\(\/\/\)$/{ s//\1/; q; }
31807
 
          /^X\(\/\).*/{ s//\1/; q; }
31808
 
          s/.*/./; q'`
31809
 
    done
31810
 
    test ! -n "$as_dirs" || mkdir $as_dirs
31811
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
31812
 
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
31813
 
   { (exit 1); exit 1; }; }; }
31814
 
 
31815
 
    # echo "creating $dirpart/$file"
31816
 
    echo '# dummy' > "$dirpart/$file"
31817
 
  done
31818
 
done
31819
 
 ;;
31820
 
  esac
31821
 
done
31822
 
_ACEOF
31823
 
 
31824
 
cat >>$CONFIG_STATUS <<\_ACEOF
31825
 
 
31826
 
{ (exit 0); exit 0; }
31827
 
_ACEOF
31828
 
chmod +x $CONFIG_STATUS
31829
 
ac_clean_files=$ac_clean_files_save
31830
 
 
31831
 
 
31832
 
# configure is writing to config.log, and then calls config.status.
31833
 
# config.status does its own redirection, appending to config.log.
31834
 
# Unfortunately, on DOS this fails, as config.log is still kept open
31835
 
# by configure, so config.status won't be able to write to it; its
31836
 
# output is simply discarded.  So we exec the FD to /dev/null,
31837
 
# effectively closing config.log, so it can be properly (re)opened and
31838
 
# appended to by config.status.  When coming back to configure, we
31839
 
# need to make the FD available again.
31840
 
if test "$no_create" != yes; then
31841
 
  ac_cs_success=:
31842
 
  ac_config_status_args=
31843
 
  test "$silent" = yes &&
31844
 
    ac_config_status_args="$ac_config_status_args --quiet"
31845
 
  exec 5>/dev/null
31846
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31847
 
  exec 5>>config.log
31848
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31849
 
  # would make configure fail if this is the last instruction.
31850
 
  $ac_cs_success || { (exit 1); exit 1; }
31851
 
fi
31852
 
 
31853
 
#
31854
 
# CONFIG_SUBDIRS section.
31855
 
#
31856
 
if test "$no_recursion" != yes; then
31857
 
 
31858
 
  # Remove --cache-file and --srcdir arguments so they do not pile up.
31859
 
  ac_sub_configure_args=
31860
 
  ac_prev=
31861
 
  for ac_arg in $ac_configure_args; do
31862
 
    if test -n "$ac_prev"; then
31863
 
      ac_prev=
31864
 
      continue
31865
 
    fi
31866
 
    case $ac_arg in
31867
 
    -cache-file | --cache-file | --cache-fil | --cache-fi \
31868
 
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31869
 
      ac_prev=cache_file ;;
31870
 
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31871
 
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31872
 
    | --c=*)
31873
 
      ;;
31874
 
    --config-cache | -C)
31875
 
      ;;
31876
 
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31877
 
      ac_prev=srcdir ;;
31878
 
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31879
 
      ;;
31880
 
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31881
 
      ac_prev=prefix ;;
31882
 
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31883
 
      ;;
31884
 
    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31885
 
    esac
31886
 
  done
31887
 
 
31888
 
  # Always prepend --prefix to ensure using the same prefix
31889
 
  # in subdir configurations.
31890
 
  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31891
 
 
31892
 
  ac_popdir=`pwd`
31893
 
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31894
 
 
31895
 
    # Do not complain, so a configure script can configure whichever
31896
 
    # parts of a large source tree are present.
31897
 
    test -d $srcdir/$ac_dir || continue
31898
 
 
31899
 
    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31900
 
echo "$as_me: configuring in $ac_dir" >&6;}
31901
 
    { if $as_mkdir_p; then
31902
 
    mkdir -p "$ac_dir"
31903
 
  else
31904
 
    as_dir="$ac_dir"
31905
 
    as_dirs=
31906
 
    while test ! -d "$as_dir"; do
31907
 
      as_dirs="$as_dir $as_dirs"
31908
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31909
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31910
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
31911
 
         X"$as_dir" : 'X\(//\)$' \| \
31912
 
         X"$as_dir" : 'X\(/\)' \| \
31913
 
         .     : '\(.\)' 2>/dev/null ||
31914
 
echo X"$as_dir" |
31915
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31916
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31917
 
          /^X\(\/\/\)$/{ s//\1/; q; }
31918
 
          /^X\(\/\).*/{ s//\1/; q; }
31919
 
          s/.*/./; q'`
31920
 
    done
31921
 
    test ! -n "$as_dirs" || mkdir $as_dirs
31922
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31923
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31924
 
   { (exit 1); exit 1; }; }; }
31925
 
 
31926
 
    ac_builddir=.
31927
 
 
31928
 
if test "$ac_dir" != .; then
31929
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31930
 
  # A "../" for each directory in $ac_dir_suffix.
31931
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31932
 
else
31933
 
  ac_dir_suffix= ac_top_builddir=
31934
 
fi
31935
 
 
31936
 
case $srcdir in
31937
 
  .)  # No --srcdir option.  We are building in place.
31938
 
    ac_srcdir=.
31939
 
    if test -z "$ac_top_builddir"; then
31940
 
       ac_top_srcdir=.
31941
 
    else
31942
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31943
 
    fi ;;
31944
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
31945
 
    ac_srcdir=$srcdir$ac_dir_suffix;
31946
 
    ac_top_srcdir=$srcdir ;;
31947
 
  *) # Relative path.
31948
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31949
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31950
 
esac
31951
 
 
31952
 
# Do not use `cd foo && pwd` to compute absolute paths, because
31953
 
# the directories may not exist.
31954
 
case `pwd` in
31955
 
.) ac_abs_builddir="$ac_dir";;
31956
 
*)
31957
 
  case "$ac_dir" in
31958
 
  .) ac_abs_builddir=`pwd`;;
31959
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31960
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31961
 
  esac;;
31962
 
esac
31963
 
case $ac_abs_builddir in
31964
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
31965
 
*)
31966
 
  case ${ac_top_builddir}. in
31967
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
31968
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31969
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31970
 
  esac;;
31971
 
esac
31972
 
case $ac_abs_builddir in
31973
 
.) ac_abs_srcdir=$ac_srcdir;;
31974
 
*)
31975
 
  case $ac_srcdir in
31976
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
31977
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31978
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31979
 
  esac;;
31980
 
esac
31981
 
case $ac_abs_builddir in
31982
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
31983
 
*)
31984
 
  case $ac_top_srcdir in
31985
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31986
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31987
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31988
 
  esac;;
31989
 
esac
31990
 
 
31991
 
 
31992
 
    cd $ac_dir
31993
 
 
31994
 
    # Check for guested configure; otherwise get Cygnus style configure.
31995
 
    if test -f $ac_srcdir/configure.gnu; then
31996
 
      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31997
 
    elif test -f $ac_srcdir/configure; then
31998
 
      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31999
 
    elif test -f $ac_srcdir/configure.in; then
32000
 
      ac_sub_configure=$ac_configure
32001
 
    else
32002
 
      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32003
 
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32004
 
      ac_sub_configure=
32005
 
    fi
32006
 
 
32007
 
    # The recursion is here.
32008
 
    if test -n "$ac_sub_configure"; then
32009
 
      # Make the cache file name correct relative to the subdirectory.
32010
 
      case $cache_file in
32011
 
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32012
 
      *) # Relative path.
32013
 
        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32014
 
      esac
32015
 
 
32016
 
      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32017
 
echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32018
 
      # The eval makes quoting arguments work.
32019
 
      eval $ac_sub_configure $ac_sub_configure_args \
32020
 
           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32021
 
        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32022
 
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32023
 
   { (exit 1); exit 1; }; }
32024
 
    fi
32025
 
 
32026
 
    cd $ac_popdir
32027
 
  done
32028
 
fi
32029