~ubuntu-branches/ubuntu/precise/netatalk/precise

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Rittau
  • Date: 2004-01-19 12:43:49 UTC
  • Revision ID: james.westby@ubuntu.com-20040119124349-es563jbp0hk0ae51
Tags: upstream-1.6.4
ImportĀ upstreamĀ versionĀ 1.6.4

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.58.
 
4
#
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
 
6
# This configure script is free software; the Free Software Foundation
 
7
# gives unlimited permission to copy, distribute and modify it.
 
8
## --------------------- ##
 
9
## M4sh Initialization.  ##
 
10
## --------------------- ##
 
11
 
 
12
# Be Bourne compatible
 
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
14
  emulate sh
 
15
  NULLCMD=:
 
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
17
  # is contrary to our usage.  Disable this feature.
 
18
  alias -g '${1+"$@"}'='"$@"'
 
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20
  set -o posix
 
21
fi
 
22
DUALCASE=1; export DUALCASE # for MKS sh
 
23
 
 
24
# Support unset when possible.
 
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
26
  as_unset=unset
 
27
else
 
28
  as_unset=false
 
29
fi
 
30
 
 
31
 
 
32
# Work around bugs in pre-3.0 UWIN ksh.
 
33
$as_unset ENV MAIL MAILPATH
 
34
PS1='$ '
 
35
PS2='> '
 
36
PS4='+ '
 
37
 
 
38
# NLS nuisances.
 
39
for as_var in \
 
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
42
  LC_TELEPHONE LC_TIME
 
43
do
 
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
45
    eval $as_var=C; export $as_var
 
46
  else
 
47
    $as_unset $as_var
 
48
  fi
 
49
done
 
50
 
 
51
# Required to use basename.
 
52
if expr a : '\(a\)' >/dev/null 2>&1; then
 
53
  as_expr=expr
 
54
else
 
55
  as_expr=false
 
56
fi
 
57
 
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
59
  as_basename=basename
 
60
else
 
61
  as_basename=false
 
62
fi
 
63
 
 
64
 
 
65
# Name of the executable.
 
66
as_me=`$as_basename "$0" ||
 
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
68
         X"$0" : 'X\(//\)$' \| \
 
69
         X"$0" : 'X\(/\)$' \| \
 
70
         .     : '\(.\)' 2>/dev/null ||
 
71
echo X/"$0" |
 
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
74
          /^X\/\(\/\).*/{ s//\1/; q; }
 
75
          s/.*/./; q'`
 
76
 
 
77
 
 
78
# PATH needs CR, and LINENO needs CR and PATH.
 
79
# Avoid depending upon Character Ranges.
 
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
83
as_cr_digits='0123456789'
 
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
85
 
 
86
# The user is always right.
 
87
if test "${PATH_SEPARATOR+set}" != set; then
 
88
  echo "#! /bin/sh" >conf$$.sh
 
89
  echo  "exit 0"   >>conf$$.sh
 
90
  chmod +x conf$$.sh
 
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
92
    PATH_SEPARATOR=';'
 
93
  else
 
94
    PATH_SEPARATOR=:
 
95
  fi
 
96
  rm -f conf$$.sh
 
97
fi
 
98
 
 
99
 
 
100
  as_lineno_1=$LINENO
 
101
  as_lineno_2=$LINENO
 
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
105
  # Find who we are.  Look in the path if we contain no path at all
 
106
  # relative or not.
 
107
  case $0 in
 
108
    *[\\/]* ) as_myself=$0 ;;
 
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
110
for as_dir in $PATH
 
111
do
 
112
  IFS=$as_save_IFS
 
113
  test -z "$as_dir" && as_dir=.
 
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
115
done
 
116
 
 
117
       ;;
 
118
  esac
 
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
120
  # in which case we are not to be found in the path.
 
121
  if test "x$as_myself" = x; then
 
122
    as_myself=$0
 
123
  fi
 
124
  if test ! -f "$as_myself"; then
 
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
126
   { (exit 1); exit 1; }; }
 
127
  fi
 
128
  case $CONFIG_SHELL in
 
129
  '')
 
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
132
do
 
133
  IFS=$as_save_IFS
 
134
  test -z "$as_dir" && as_dir=.
 
135
  for as_base in sh bash ksh sh5; do
 
136
         case $as_dir in
 
137
         /*)
 
138
           if ("$as_dir/$as_base" -c '
 
139
  as_lineno_1=$LINENO
 
140
  as_lineno_2=$LINENO
 
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
146
             CONFIG_SHELL=$as_dir/$as_base
 
147
             export CONFIG_SHELL
 
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
149
           fi;;
 
150
         esac
 
151
       done
 
152
done
 
153
;;
 
154
  esac
 
155
 
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
158
  # line-number line before each line; the second 'sed' does the real
 
159
  # work.  The second script uses 'N' to pair each line-number line
 
160
  # with the numbered line, and appends trailing '-' during
 
161
  # substitution so that $LINENO is not a special case at line end.
 
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
164
  sed '=' <$as_myself |
 
165
    sed '
 
166
      N
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
170
      t loop
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
 
173
    ' >$as_me.lineno &&
 
174
  chmod +x $as_me.lineno ||
 
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
176
   { (exit 1); exit 1; }; }
 
177
 
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
 
179
  # (the dirname of $[0] is not the place where we might find the
 
180
  # original and so on.  Autoconf is especially sensible to this).
 
181
  . ./$as_me.lineno
 
182
  # Exit status is that of the last command.
 
183
  exit
 
184
}
 
185
 
 
186
 
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
188
  *c*,-n*) ECHO_N= ECHO_C='
 
189
' ECHO_T='      ' ;;
 
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
192
esac
 
193
 
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
 
195
  as_expr=expr
 
196
else
 
197
  as_expr=false
 
198
fi
 
199
 
 
200
rm -f conf$$ conf$$.exe conf$$.file
 
201
echo >conf$$.file
 
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
203
  # We could just check for DJGPP; but this test a) works b) is more generic
 
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
205
  if test -f conf$$.exe; then
 
206
    # Don't use ln at all; we don't have any links
 
207
    as_ln_s='cp -p'
 
208
  else
 
209
    as_ln_s='ln -s'
 
210
  fi
 
211
elif ln conf$$.file conf$$ 2>/dev/null; then
 
212
  as_ln_s=ln
 
213
else
 
214
  as_ln_s='cp -p'
 
215
fi
 
216
rm -f conf$$ conf$$.exe conf$$.file
 
217
 
 
218
if mkdir -p . 2>/dev/null; then
 
219
  as_mkdir_p=:
 
220
else
 
221
  test -d ./-p && rmdir ./-p
 
222
  as_mkdir_p=false
 
223
fi
 
224
 
 
225
as_executable_p="test -f"
 
226
 
 
227
# Sed expression to map a string onto a valid CPP name.
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
229
 
 
230
# Sed expression to map a string onto a valid variable name.
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
232
 
 
233
 
 
234
# IFS
 
235
# We need space, tab and new line, in precisely that order.
 
236
as_nl='
 
237
'
 
238
IFS="   $as_nl"
 
239
 
 
240
# CDPATH.
 
241
$as_unset CDPATH
 
242
 
 
243
 
 
244
 
 
245
# Check that we are running under the correct shell.
 
246
SHELL=${CONFIG_SHELL-/bin/sh}
 
247
 
 
248
case X$ECHO in
 
249
X*--fallback-echo)
 
250
  # Remove one level of quotation (which was required for Make).
 
251
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
252
  ;;
 
253
esac
 
254
 
 
255
echo=${ECHO-echo}
 
256
if test "X$1" = X--no-reexec; then
 
257
  # Discard the --no-reexec flag, and continue.
 
258
  shift
 
259
elif test "X$1" = X--fallback-echo; then
 
260
  # Avoid inline document here, it may be left over
 
261
  :
 
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
263
  # Yippee, $echo works!
 
264
  :
 
265
else
 
266
  # Restart under the correct shell.
 
267
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
268
fi
 
269
 
 
270
if test "X$1" = X--fallback-echo; then
 
271
  # used as fallback echo
 
272
  shift
 
273
  cat <<EOF
 
274
$*
 
275
EOF
 
276
  exit 0
 
277
fi
 
278
 
 
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
280
# if CDPATH is set.
 
281
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
282
 
 
283
if test -z "$ECHO"; then
 
284
if test "X${echo_test_string+set}" != Xset; then
 
285
# find a string as large as possible, as long as the shell can cope with it
 
286
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
287
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
288
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
289
       echo_test_string="`eval $cmd`" &&
 
290
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
291
    then
 
292
      break
 
293
    fi
 
294
  done
 
295
fi
 
296
 
 
297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
298
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
299
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
300
  :
 
301
else
 
302
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
303
  # backslashes.  This makes it impossible to quote backslashes using
 
304
  #   echo "$something" | sed 's/\\/\\\\/g'
 
305
  #
 
306
  # So, first we look for a working echo in the user's PATH.
 
307
 
 
308
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
309
  for dir in $PATH /usr/ucb; do
 
310
    IFS="$lt_save_ifs"
 
311
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
312
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
313
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
314
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
315
      echo="$dir/echo"
 
316
      break
 
317
    fi
 
318
  done
 
319
  IFS="$lt_save_ifs"
 
320
 
 
321
  if test "X$echo" = Xecho; then
 
322
    # We didn't find a better echo, so look for alternatives.
 
323
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
324
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
325
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
326
      # This shell has a builtin print -r that does the trick.
 
327
      echo='print -r'
 
328
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
329
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
330
      # If we have ksh, try running configure again with it.
 
331
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
332
      export ORIGINAL_CONFIG_SHELL
 
333
      CONFIG_SHELL=/bin/ksh
 
334
      export CONFIG_SHELL
 
335
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
336
    else
 
337
      # Try using printf.
 
338
      echo='printf %s\n'
 
339
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
340
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
341
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
342
        # Cool, printf works
 
343
        :
 
344
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
345
           test "X$echo_testing_string" = 'X\t' &&
 
346
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
347
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
348
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
349
        export CONFIG_SHELL
 
350
        SHELL="$CONFIG_SHELL"
 
351
        export SHELL
 
352
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
353
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
354
           test "X$echo_testing_string" = 'X\t' &&
 
355
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
357
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
358
      else
 
359
        # maybe with a smaller string...
 
360
        prev=:
 
361
 
 
362
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
363
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
364
          then
 
365
            break
 
366
          fi
 
367
          prev="$cmd"
 
368
        done
 
369
 
 
370
        if test "$prev" != 'sed 50q "$0"'; then
 
371
          echo_test_string=`eval $prev`
 
372
          export echo_test_string
 
373
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
374
        else
 
375
          # Oops.  We lost completely, so just stick with echo.
 
376
          echo=echo
 
377
        fi
 
378
      fi
 
379
    fi
 
380
  fi
 
381
fi
 
382
fi
 
383
 
 
384
# Copy echo and quote the copy suitably for passing to libtool from
 
385
# the Makefile, instead of quoting the original, which is used later.
 
386
ECHO=$echo
 
387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
388
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
389
fi
 
390
 
 
391
 
 
392
 
 
393
 
 
394
tagnames=${tagnames+${tagnames},}CXX
 
395
 
 
396
tagnames=${tagnames+${tagnames},}F77
 
397
 
 
398
# Name of the host.
 
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
400
# so uname gets run too.
 
401
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
402
 
 
403
exec 6>&1
 
404
 
 
405
#
 
406
# Initializations.
 
407
#
 
408
ac_default_prefix=/usr/local
 
409
ac_config_libobj_dir=.
 
410
cross_compiling=no
 
411
subdirs=
 
412
MFLAGS=
 
413
MAKEFLAGS=
 
414
SHELL=${CONFIG_SHELL-/bin/sh}
 
415
 
 
416
# Maximum number of lines to put in a shell here document.
 
417
# This variable seems obsolete.  It should probably be removed, and
 
418
# only ac_max_sed_lines should be used.
 
419
: ${ac_max_here_lines=38}
 
420
 
 
421
# Identity of this package.
 
422
PACKAGE_NAME=
 
423
PACKAGE_TARNAME=
 
424
PACKAGE_VERSION=
 
425
PACKAGE_STRING=
 
426
PACKAGE_BUGREPORT=
 
427
 
 
428
ac_unique_file="bin/adv1tov2/adv1tov2.c"
 
429
# Factoring default headers for most tests.
 
430
ac_includes_default="\
 
431
#include <stdio.h>
 
432
#if HAVE_SYS_TYPES_H
 
433
# include <sys/types.h>
 
434
#endif
 
435
#if HAVE_SYS_STAT_H
 
436
# include <sys/stat.h>
 
437
#endif
 
438
#if STDC_HEADERS
 
439
# include <stdlib.h>
 
440
# include <stddef.h>
 
441
#else
 
442
# if HAVE_STDLIB_H
 
443
#  include <stdlib.h>
 
444
# endif
 
445
#endif
 
446
#if HAVE_STRING_H
 
447
# if !STDC_HEADERS && HAVE_MEMORY_H
 
448
#  include <memory.h>
 
449
# endif
 
450
# include <string.h>
 
451
#endif
 
452
#if HAVE_STRINGS_H
 
453
# include <strings.h>
 
454
#endif
 
455
#if HAVE_INTTYPES_H
 
456
# include <inttypes.h>
 
457
#else
 
458
# if HAVE_STDINT_H
 
459
#  include <stdint.h>
 
460
# endif
 
461
#endif
 
462
#if HAVE_UNISTD_H
 
463
# include <unistd.h>
 
464
#endif"
 
465
 
 
466
ac_subst_vars='PERL GREP PS 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 NETATALK_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 AWK SET_MAKE am__leading_dot 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 LN_S EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS AFS_LIBS AFS_CFLAGS PKGCONFDIR NLSDIR SERVERTEXT COMPILE_CNID_TRUE COMPILE_CNID_FALSE BDB_CFLAGS BDB_LIBS BDB_BIN BDB_PATH QUOTA_LIBS SLP_LIBS SLP_CFLAGS PAMDIR PAM_CFLAGS PAM_LIBS UAMS_PATH SSL_CFLAGS SSL_LIBS AFPD_LIBS PAPD_LIBS OVERWRITE_CONFIG SOLARIS_MODULE_TRUE SOLARIS_MODULE_FALSE COMPILE_TIMELORD_TRUE COMPILE_TIMELORD_FALSE USE_DHX_TRUE USE_DHX_FALSE USE_KERBEROS_TRUE USE_KERBEROS_FALSE USE_PAM_SO_TRUE USE_PAM_SO_FALSE USE_PAM_TRUE USE_PAM_FALSE BUILD_PAM_TRUE BUILD_PAM_FALSE USE_PGP_TRUE USE_PGP_FALSE USE_COBALT_TRUE USE_COBALT_FALSE USE_NETBSD_TRUE USE_NETBSD_FALSE USE_REDHAT_TRUE USE_REDHAT_FALSE USE_SUSE_TRUE USE_SUSE_FALSE USE_SHADOWPW_TRUE USE_SHADOWPW_FALSE USE_TRU64_TRUE USE_TRU64_FALSE LTLIBOBJS'
 
467
ac_subst_files=''
 
468
 
 
469
# Initialize some variables set by options.
 
470
ac_init_help=
 
471
ac_init_version=false
 
472
# The variables have the same names as the options, with
 
473
# dashes changed to underlines.
 
474
cache_file=/dev/null
 
475
exec_prefix=NONE
 
476
no_create=
 
477
no_recursion=
 
478
prefix=NONE
 
479
program_prefix=NONE
 
480
program_suffix=NONE
 
481
program_transform_name=s,x,x,
 
482
silent=
 
483
site=
 
484
srcdir=
 
485
verbose=
 
486
x_includes=NONE
 
487
x_libraries=NONE
 
488
 
 
489
# Installation directory options.
 
490
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
491
# and all the variables that are supposed to be based on exec_prefix
 
492
# by default will actually change.
 
493
# Use braces instead of parens because sh, perl, etc. also accept them.
 
494
bindir='${exec_prefix}/bin'
 
495
sbindir='${exec_prefix}/sbin'
 
496
libexecdir='${exec_prefix}/libexec'
 
497
datadir='${prefix}/share'
 
498
sysconfdir='${prefix}/etc'
 
499
sharedstatedir='${prefix}/com'
 
500
localstatedir='${prefix}/var'
 
501
libdir='${exec_prefix}/lib'
 
502
includedir='${prefix}/include'
 
503
oldincludedir='/usr/include'
 
504
infodir='${prefix}/info'
 
505
mandir='${prefix}/man'
 
506
 
 
507
ac_prev=
 
508
for ac_option
 
509
do
 
510
  # If the previous option needs an argument, assign it.
 
511
  if test -n "$ac_prev"; then
 
512
    eval "$ac_prev=\$ac_option"
 
513
    ac_prev=
 
514
    continue
 
515
  fi
 
516
 
 
517
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
518
 
 
519
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
520
 
 
521
  case $ac_option in
 
522
 
 
523
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
524
    ac_prev=bindir ;;
 
525
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
526
    bindir=$ac_optarg ;;
 
527
 
 
528
  -build | --build | --buil | --bui | --bu)
 
529
    ac_prev=build_alias ;;
 
530
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
531
    build_alias=$ac_optarg ;;
 
532
 
 
533
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
534
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
535
    ac_prev=cache_file ;;
 
536
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
537
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
538
    cache_file=$ac_optarg ;;
 
539
 
 
540
  --config-cache | -C)
 
541
    cache_file=config.cache ;;
 
542
 
 
543
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
544
    ac_prev=datadir ;;
 
545
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
546
  | --da=*)
 
547
    datadir=$ac_optarg ;;
 
548
 
 
549
  -disable-* | --disable-*)
 
550
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
551
    # Reject names that are not valid shell variable names.
 
552
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
553
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
554
   { (exit 1); exit 1; }; }
 
555
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
556
    eval "enable_$ac_feature=no" ;;
 
557
 
 
558
  -enable-* | --enable-*)
 
559
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
560
    # Reject names that are not valid shell variable names.
 
561
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
562
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
563
   { (exit 1); exit 1; }; }
 
564
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
565
    case $ac_option in
 
566
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
567
      *) ac_optarg=yes ;;
 
568
    esac
 
569
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
570
 
 
571
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
572
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
573
  | --exec | --exe | --ex)
 
574
    ac_prev=exec_prefix ;;
 
575
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
576
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
577
  | --exec=* | --exe=* | --ex=*)
 
578
    exec_prefix=$ac_optarg ;;
 
579
 
 
580
  -gas | --gas | --ga | --g)
 
581
    # Obsolete; use --with-gas.
 
582
    with_gas=yes ;;
 
583
 
 
584
  -help | --help | --hel | --he | -h)
 
585
    ac_init_help=long ;;
 
586
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
587
    ac_init_help=recursive ;;
 
588
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
589
    ac_init_help=short ;;
 
590
 
 
591
  -host | --host | --hos | --ho)
 
592
    ac_prev=host_alias ;;
 
593
  -host=* | --host=* | --hos=* | --ho=*)
 
594
    host_alias=$ac_optarg ;;
 
595
 
 
596
  -includedir | --includedir | --includedi | --included | --include \
 
597
  | --includ | --inclu | --incl | --inc)
 
598
    ac_prev=includedir ;;
 
599
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
600
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
601
    includedir=$ac_optarg ;;
 
602
 
 
603
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
604
    ac_prev=infodir ;;
 
605
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
606
    infodir=$ac_optarg ;;
 
607
 
 
608
  -libdir | --libdir | --libdi | --libd)
 
609
    ac_prev=libdir ;;
 
610
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
611
    libdir=$ac_optarg ;;
 
612
 
 
613
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
614
  | --libexe | --libex | --libe)
 
615
    ac_prev=libexecdir ;;
 
616
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
617
  | --libexe=* | --libex=* | --libe=*)
 
618
    libexecdir=$ac_optarg ;;
 
619
 
 
620
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
621
  | --localstate | --localstat | --localsta | --localst \
 
622
  | --locals | --local | --loca | --loc | --lo)
 
623
    ac_prev=localstatedir ;;
 
624
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
625
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
626
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
627
    localstatedir=$ac_optarg ;;
 
628
 
 
629
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
630
    ac_prev=mandir ;;
 
631
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
632
    mandir=$ac_optarg ;;
 
633
 
 
634
  -nfp | --nfp | --nf)
 
635
    # Obsolete; use --without-fp.
 
636
    with_fp=no ;;
 
637
 
 
638
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
639
  | --no-cr | --no-c | -n)
 
640
    no_create=yes ;;
 
641
 
 
642
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
643
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
644
    no_recursion=yes ;;
 
645
 
 
646
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
647
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
648
  | --oldin | --oldi | --old | --ol | --o)
 
649
    ac_prev=oldincludedir ;;
 
650
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
651
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
652
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
653
    oldincludedir=$ac_optarg ;;
 
654
 
 
655
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
656
    ac_prev=prefix ;;
 
657
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
658
    prefix=$ac_optarg ;;
 
659
 
 
660
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
661
  | --program-pre | --program-pr | --program-p)
 
662
    ac_prev=program_prefix ;;
 
663
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
664
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
665
    program_prefix=$ac_optarg ;;
 
666
 
 
667
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
668
  | --program-suf | --program-su | --program-s)
 
669
    ac_prev=program_suffix ;;
 
670
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
671
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
672
    program_suffix=$ac_optarg ;;
 
673
 
 
674
  -program-transform-name | --program-transform-name \
 
675
  | --program-transform-nam | --program-transform-na \
 
676
  | --program-transform-n | --program-transform- \
 
677
  | --program-transform | --program-transfor \
 
678
  | --program-transfo | --program-transf \
 
679
  | --program-trans | --program-tran \
 
680
  | --progr-tra | --program-tr | --program-t)
 
681
    ac_prev=program_transform_name ;;
 
682
  -program-transform-name=* | --program-transform-name=* \
 
683
  | --program-transform-nam=* | --program-transform-na=* \
 
684
  | --program-transform-n=* | --program-transform-=* \
 
685
  | --program-transform=* | --program-transfor=* \
 
686
  | --program-transfo=* | --program-transf=* \
 
687
  | --program-trans=* | --program-tran=* \
 
688
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
689
    program_transform_name=$ac_optarg ;;
 
690
 
 
691
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
692
  | -silent | --silent | --silen | --sile | --sil)
 
693
    silent=yes ;;
 
694
 
 
695
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
696
    ac_prev=sbindir ;;
 
697
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
698
  | --sbi=* | --sb=*)
 
699
    sbindir=$ac_optarg ;;
 
700
 
 
701
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
702
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
703
  | --sharedst | --shareds | --shared | --share | --shar \
 
704
  | --sha | --sh)
 
705
    ac_prev=sharedstatedir ;;
 
706
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
707
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
708
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
709
  | --sha=* | --sh=*)
 
710
    sharedstatedir=$ac_optarg ;;
 
711
 
 
712
  -site | --site | --sit)
 
713
    ac_prev=site ;;
 
714
  -site=* | --site=* | --sit=*)
 
715
    site=$ac_optarg ;;
 
716
 
 
717
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
718
    ac_prev=srcdir ;;
 
719
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
720
    srcdir=$ac_optarg ;;
 
721
 
 
722
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
723
  | --syscon | --sysco | --sysc | --sys | --sy)
 
724
    ac_prev=sysconfdir ;;
 
725
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
726
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
727
    sysconfdir=$ac_optarg ;;
 
728
 
 
729
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
730
    ac_prev=target_alias ;;
 
731
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
732
    target_alias=$ac_optarg ;;
 
733
 
 
734
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
735
    verbose=yes ;;
 
736
 
 
737
  -version | --version | --versio | --versi | --vers | -V)
 
738
    ac_init_version=: ;;
 
739
 
 
740
  -with-* | --with-*)
 
741
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
742
    # Reject names that are not valid shell variable names.
 
743
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
744
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
745
   { (exit 1); exit 1; }; }
 
746
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
747
    case $ac_option in
 
748
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
749
      *) ac_optarg=yes ;;
 
750
    esac
 
751
    eval "with_$ac_package='$ac_optarg'" ;;
 
752
 
 
753
  -without-* | --without-*)
 
754
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
755
    # Reject names that are not valid shell variable names.
 
756
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
757
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
758
   { (exit 1); exit 1; }; }
 
759
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
760
    eval "with_$ac_package=no" ;;
 
761
 
 
762
  --x)
 
763
    # Obsolete; use --with-x.
 
764
    with_x=yes ;;
 
765
 
 
766
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
767
  | --x-incl | --x-inc | --x-in | --x-i)
 
768
    ac_prev=x_includes ;;
 
769
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
770
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
771
    x_includes=$ac_optarg ;;
 
772
 
 
773
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
774
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
775
    ac_prev=x_libraries ;;
 
776
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
777
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
778
    x_libraries=$ac_optarg ;;
 
779
 
 
780
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
781
Try \`$0 --help' for more information." >&2
 
782
   { (exit 1); exit 1; }; }
 
783
    ;;
 
784
 
 
785
  *=*)
 
786
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
787
    # Reject names that are not valid shell variable names.
 
788
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
789
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
790
   { (exit 1); exit 1; }; }
 
791
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
792
    eval "$ac_envvar='$ac_optarg'"
 
793
    export $ac_envvar ;;
 
794
 
 
795
  *)
 
796
    # FIXME: should be removed in autoconf 3.0.
 
797
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
798
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
799
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
800
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
801
    ;;
 
802
 
 
803
  esac
 
804
done
 
805
 
 
806
if test -n "$ac_prev"; then
 
807
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
808
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
809
   { (exit 1); exit 1; }; }
 
810
fi
 
811
 
 
812
# Be sure to have absolute paths.
 
813
for ac_var in exec_prefix prefix
 
814
do
 
815
  eval ac_val=$`echo $ac_var`
 
816
  case $ac_val in
 
817
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
818
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
819
   { (exit 1); exit 1; }; };;
 
820
  esac
 
821
done
 
822
 
 
823
# Be sure to have absolute paths.
 
824
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
825
              localstatedir libdir includedir oldincludedir infodir mandir
 
826
do
 
827
  eval ac_val=$`echo $ac_var`
 
828
  case $ac_val in
 
829
    [\\/$]* | ?:[\\/]* ) ;;
 
830
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
831
   { (exit 1); exit 1; }; };;
 
832
  esac
 
833
done
 
834
 
 
835
# There might be people who depend on the old broken behavior: `$host'
 
836
# used to hold the argument of --host etc.
 
837
# FIXME: To remove some day.
 
838
build=$build_alias
 
839
host=$host_alias
 
840
target=$target_alias
 
841
 
 
842
# FIXME: To remove some day.
 
843
if test "x$host_alias" != x; then
 
844
  if test "x$build_alias" = x; then
 
845
    cross_compiling=maybe
 
846
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
847
    If a cross compiler is detected then cross compile mode will be used." >&2
 
848
  elif test "x$build_alias" != "x$host_alias"; then
 
849
    cross_compiling=yes
 
850
  fi
 
851
fi
 
852
 
 
853
ac_tool_prefix=
 
854
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
855
 
 
856
test "$silent" = yes && exec 6>/dev/null
 
857
 
 
858
 
 
859
# Find the source files, if location was not specified.
 
860
if test -z "$srcdir"; then
 
861
  ac_srcdir_defaulted=yes
 
862
  # Try the directory containing this script, then its parent.
 
863
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
864
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
865
         X"$0" : 'X\(//\)[^/]' \| \
 
866
         X"$0" : 'X\(//\)$' \| \
 
867
         X"$0" : 'X\(/\)' \| \
 
868
         .     : '\(.\)' 2>/dev/null ||
 
869
echo X"$0" |
 
870
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
871
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
872
          /^X\(\/\/\)$/{ s//\1/; q; }
 
873
          /^X\(\/\).*/{ s//\1/; q; }
 
874
          s/.*/./; q'`
 
875
  srcdir=$ac_confdir
 
876
  if test ! -r $srcdir/$ac_unique_file; then
 
877
    srcdir=..
 
878
  fi
 
879
else
 
880
  ac_srcdir_defaulted=no
 
881
fi
 
882
if test ! -r $srcdir/$ac_unique_file; then
 
883
  if test "$ac_srcdir_defaulted" = yes; then
 
884
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
885
   { (exit 1); exit 1; }; }
 
886
  else
 
887
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
888
   { (exit 1); exit 1; }; }
 
889
  fi
 
890
fi
 
891
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
892
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
893
   { (exit 1); exit 1; }; }
 
894
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
895
ac_env_build_alias_set=${build_alias+set}
 
896
ac_env_build_alias_value=$build_alias
 
897
ac_cv_env_build_alias_set=${build_alias+set}
 
898
ac_cv_env_build_alias_value=$build_alias
 
899
ac_env_host_alias_set=${host_alias+set}
 
900
ac_env_host_alias_value=$host_alias
 
901
ac_cv_env_host_alias_set=${host_alias+set}
 
902
ac_cv_env_host_alias_value=$host_alias
 
903
ac_env_target_alias_set=${target_alias+set}
 
904
ac_env_target_alias_value=$target_alias
 
905
ac_cv_env_target_alias_set=${target_alias+set}
 
906
ac_cv_env_target_alias_value=$target_alias
 
907
ac_env_CC_set=${CC+set}
 
908
ac_env_CC_value=$CC
 
909
ac_cv_env_CC_set=${CC+set}
 
910
ac_cv_env_CC_value=$CC
 
911
ac_env_CFLAGS_set=${CFLAGS+set}
 
912
ac_env_CFLAGS_value=$CFLAGS
 
913
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
914
ac_cv_env_CFLAGS_value=$CFLAGS
 
915
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
916
ac_env_LDFLAGS_value=$LDFLAGS
 
917
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
918
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
919
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
920
ac_env_CPPFLAGS_value=$CPPFLAGS
 
921
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
922
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
923
ac_env_CPP_set=${CPP+set}
 
924
ac_env_CPP_value=$CPP
 
925
ac_cv_env_CPP_set=${CPP+set}
 
926
ac_cv_env_CPP_value=$CPP
 
927
ac_env_CXX_set=${CXX+set}
 
928
ac_env_CXX_value=$CXX
 
929
ac_cv_env_CXX_set=${CXX+set}
 
930
ac_cv_env_CXX_value=$CXX
 
931
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
932
ac_env_CXXFLAGS_value=$CXXFLAGS
 
933
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
934
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
935
ac_env_CXXCPP_set=${CXXCPP+set}
 
936
ac_env_CXXCPP_value=$CXXCPP
 
937
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
938
ac_cv_env_CXXCPP_value=$CXXCPP
 
939
ac_env_F77_set=${F77+set}
 
940
ac_env_F77_value=$F77
 
941
ac_cv_env_F77_set=${F77+set}
 
942
ac_cv_env_F77_value=$F77
 
943
ac_env_FFLAGS_set=${FFLAGS+set}
 
944
ac_env_FFLAGS_value=$FFLAGS
 
945
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
946
ac_cv_env_FFLAGS_value=$FFLAGS
 
947
 
 
948
#
 
949
# Report the --help message.
 
950
#
 
951
if test "$ac_init_help" = "long"; then
 
952
  # Omit some internal or obsolete options to make the list less imposing.
 
953
  # This message is too long to be a string in the A/UX 3.1 sh.
 
954
  cat <<_ACEOF
 
955
\`configure' configures this package to adapt to many kinds of systems.
 
956
 
 
957
Usage: $0 [OPTION]... [VAR=VALUE]...
 
958
 
 
959
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
960
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
961
 
 
962
Defaults for the options are specified in brackets.
 
963
 
 
964
Configuration:
 
965
  -h, --help              display this help and exit
 
966
      --help=short        display options specific to this package
 
967
      --help=recursive    display the short help of all the included packages
 
968
  -V, --version           display version information and exit
 
969
  -q, --quiet, --silent   do not print \`checking...' messages
 
970
      --cache-file=FILE   cache test results in FILE [disabled]
 
971
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
972
  -n, --no-create         do not create output files
 
973
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
974
 
 
975
_ACEOF
 
976
 
 
977
  cat <<_ACEOF
 
978
Installation directories:
 
979
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
980
                          [$ac_default_prefix]
 
981
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
982
                          [PREFIX]
 
983
 
 
984
By default, \`make install' will install all the files in
 
985
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
986
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
987
for instance \`--prefix=\$HOME'.
 
988
 
 
989
For better control, use the options below.
 
990
 
 
991
Fine tuning of the installation directories:
 
992
  --bindir=DIR           user executables [EPREFIX/bin]
 
993
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
994
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
995
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
996
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
997
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
998
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
999
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1000
  --includedir=DIR       C header files [PREFIX/include]
 
1001
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1002
  --infodir=DIR          info documentation [PREFIX/info]
 
1003
  --mandir=DIR           man documentation [PREFIX/man]
 
1004
_ACEOF
 
1005
 
 
1006
  cat <<\_ACEOF
 
1007
 
 
1008
Program names:
 
1009
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1010
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1011
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1012
 
 
1013
System types:
 
1014
  --build=BUILD     configure for building on BUILD [guessed]
 
1015
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1016
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1017
_ACEOF
 
1018
fi
 
1019
 
 
1020
if test -n "$ac_init_help"; then
 
1021
 
 
1022
  cat <<\_ACEOF
 
1023
 
 
1024
Optional Features:
 
1025
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1026
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1027
  --disable-dependency-tracking Speeds up one-time builds
 
1028
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
1029
  --enable-shared[=PKGS]
 
1030
                          build shared libraries [default=yes]
 
1031
  --enable-static[=PKGS]
 
1032
                          build static libraries [default=yes]
 
1033
  --enable-fast-install[=PKGS]
 
1034
                          optimize for fast installation [default=yes]
 
1035
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1036
  --enable-afs            enable AFS support
 
1037
  --disable-ddp           disable DDP
 
1038
  --enable-debug          enable debug code
 
1039
  --enable-dropkludge     enable the experimental dropbox fix (INSECURE!)
 
1040
  --enable-force-uidgid   allow forcing of uid/gid per volume (BROKEN)
 
1041
  --enable-srvloc=DIR     turn on Server Location Protocol support
 
1042
  --disable-shell-check   disable checking for a valid shell
 
1043
  --enable-redhat         use redhat-style sysv configuration
 
1044
  --enable-suse           use suse-style sysv configuration
 
1045
  --enable-cobalt         use cobalt-style sysv configuration
 
1046
  --enable-netbsd         use NetBSD-style rc.d configuration
 
1047
  --enable-timelord       enable compilation of timelord server
 
1048
  --enable-fhs            use Filesystem Hierarchy Standard (FHS) compatibility
 
1049
  --enable-pgp-uam        enable build of PGP UAM module
 
1050
  --enable-krb4-uam       enable build of Kerberos v4 UAM module
 
1051
  --enable-overwrite      overwrite configuration files during installation
 
1052
 
 
1053
Optional Packages:
 
1054
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1055
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1056
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1057
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1058
                          both]
 
1059
  --with-tags[=TAGS]
 
1060
                          include additional configurations [automatic]
 
1061
  --disable-admin-group   disable admin group
 
1062
  --with-pkgconfdir=DIR   package specific configuration in DIR
 
1063
                          SYSCONF/netatalk
 
1064
  --with-nls-dir=PATH     path to NLS files PKGCONF/nls
 
1065
  --with-message-dir=PATH path to server message files PKGCONF/msg
 
1066
  --with-logfile=PATH     path for file used by logger /var/log/netatalk.log
 
1067
                          use --without-logfile to disable logger
 
1068
  --with-cracklib=DICT    enable/set location of cracklib dictionary
 
1069
  --with-did=SCHEME       set DID scheme (cnid,last)
 
1070
  --with-mangling         enable filename mangling
 
1071
  --with-cdb              enable CNID with Concurrent Data Store
 
1072
  --with-bdb=PATH         specify path to Berkeley DB installation
 
1073
  --with-pam=PATH         specify path to PAM installation
 
1074
  --with-shadow           enable shadow password support
 
1075
  --with-tcp-wrappers     enable TCP wrappers support
 
1076
  --with-uams-path=PATH   path to UAMs [PKGCONF/uams]
 
1077
  --with-ssl-dir=PATH     specify path to OpenSSL installation (must contain
 
1078
                          lib and include dirs)
 
1079
 
 
1080
Some influential environment variables:
 
1081
  CC          C compiler command
 
1082
  CFLAGS      C compiler flags
 
1083
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1084
              nonstandard directory <lib dir>
 
1085
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1086
              headers in a nonstandard directory <include dir>
 
1087
  CPP         C preprocessor
 
1088
  CXX         C++ compiler command
 
1089
  CXXFLAGS    C++ compiler flags
 
1090
  CXXCPP      C++ preprocessor
 
1091
  F77         Fortran 77 compiler command
 
1092
  FFLAGS      Fortran 77 compiler flags
 
1093
 
 
1094
Use these variables to override the choices made by `configure' or to help
 
1095
it to find libraries and programs with nonstandard names/locations.
 
1096
 
 
1097
_ACEOF
 
1098
fi
 
1099
 
 
1100
if test "$ac_init_help" = "recursive"; then
 
1101
  # If there are subdirs, report their specific --help.
 
1102
  ac_popdir=`pwd`
 
1103
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1104
    test -d $ac_dir || continue
 
1105
    ac_builddir=.
 
1106
 
 
1107
if test "$ac_dir" != .; then
 
1108
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1109
  # A "../" for each directory in $ac_dir_suffix.
 
1110
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1111
else
 
1112
  ac_dir_suffix= ac_top_builddir=
 
1113
fi
 
1114
 
 
1115
case $srcdir in
 
1116
  .)  # No --srcdir option.  We are building in place.
 
1117
    ac_srcdir=.
 
1118
    if test -z "$ac_top_builddir"; then
 
1119
       ac_top_srcdir=.
 
1120
    else
 
1121
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1122
    fi ;;
 
1123
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1124
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1125
    ac_top_srcdir=$srcdir ;;
 
1126
  *) # Relative path.
 
1127
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1128
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1129
esac
 
1130
 
 
1131
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1132
# the directories may not exist.
 
1133
case `pwd` in
 
1134
.) ac_abs_builddir="$ac_dir";;
 
1135
*)
 
1136
  case "$ac_dir" in
 
1137
  .) ac_abs_builddir=`pwd`;;
 
1138
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1139
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1140
  esac;;
 
1141
esac
 
1142
case $ac_abs_builddir in
 
1143
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1144
*)
 
1145
  case ${ac_top_builddir}. in
 
1146
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1147
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1148
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1149
  esac;;
 
1150
esac
 
1151
case $ac_abs_builddir in
 
1152
.) ac_abs_srcdir=$ac_srcdir;;
 
1153
*)
 
1154
  case $ac_srcdir in
 
1155
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1156
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1157
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1158
  esac;;
 
1159
esac
 
1160
case $ac_abs_builddir in
 
1161
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1162
*)
 
1163
  case $ac_top_srcdir in
 
1164
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1165
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1166
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1167
  esac;;
 
1168
esac
 
1169
 
 
1170
    cd $ac_dir
 
1171
    # Check for guested configure; otherwise get Cygnus style configure.
 
1172
    if test -f $ac_srcdir/configure.gnu; then
 
1173
      echo
 
1174
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1175
    elif test -f $ac_srcdir/configure; then
 
1176
      echo
 
1177
      $SHELL $ac_srcdir/configure  --help=recursive
 
1178
    elif test -f $ac_srcdir/configure.ac ||
 
1179
           test -f $ac_srcdir/configure.in; then
 
1180
      echo
 
1181
      $ac_configure --help
 
1182
    else
 
1183
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1184
    fi
 
1185
    cd "$ac_popdir"
 
1186
  done
 
1187
fi
 
1188
 
 
1189
test -n "$ac_init_help" && exit 0
 
1190
if $ac_init_version; then
 
1191
  cat <<\_ACEOF
 
1192
 
 
1193
Copyright (C) 2003 Free Software Foundation, Inc.
 
1194
This configure script is free software; the Free Software Foundation
 
1195
gives unlimited permission to copy, distribute and modify it.
 
1196
_ACEOF
 
1197
  exit 0
 
1198
fi
 
1199
exec 5>config.log
 
1200
cat >&5 <<_ACEOF
 
1201
This file contains any messages produced by compilers while
 
1202
running configure, to aid debugging if configure makes a mistake.
 
1203
 
 
1204
It was created by $as_me, which was
 
1205
generated by GNU Autoconf 2.58.  Invocation command line was
 
1206
 
 
1207
  $ $0 $@
 
1208
 
 
1209
_ACEOF
 
1210
{
 
1211
cat <<_ASUNAME
 
1212
## --------- ##
 
1213
## Platform. ##
 
1214
## --------- ##
 
1215
 
 
1216
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1217
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1218
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1219
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1220
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1221
 
 
1222
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1223
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1224
 
 
1225
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1226
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1227
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1228
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1229
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1230
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1231
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1232
 
 
1233
_ASUNAME
 
1234
 
 
1235
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1236
for as_dir in $PATH
 
1237
do
 
1238
  IFS=$as_save_IFS
 
1239
  test -z "$as_dir" && as_dir=.
 
1240
  echo "PATH: $as_dir"
 
1241
done
 
1242
 
 
1243
} >&5
 
1244
 
 
1245
cat >&5 <<_ACEOF
 
1246
 
 
1247
 
 
1248
## ----------- ##
 
1249
## Core tests. ##
 
1250
## ----------- ##
 
1251
 
 
1252
_ACEOF
 
1253
 
 
1254
 
 
1255
# Keep a trace of the command line.
 
1256
# Strip out --no-create and --no-recursion so they do not pile up.
 
1257
# Strip out --silent because we don't want to record it for future runs.
 
1258
# Also quote any args containing shell meta-characters.
 
1259
# Make two passes to allow for proper duplicate-argument suppression.
 
1260
ac_configure_args=
 
1261
ac_configure_args0=
 
1262
ac_configure_args1=
 
1263
ac_sep=
 
1264
ac_must_keep_next=false
 
1265
for ac_pass in 1 2
 
1266
do
 
1267
  for ac_arg
 
1268
  do
 
1269
    case $ac_arg in
 
1270
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1271
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1272
    | -silent | --silent | --silen | --sile | --sil)
 
1273
      continue ;;
 
1274
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1275
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1276
    esac
 
1277
    case $ac_pass in
 
1278
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1279
    2)
 
1280
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1281
      if test $ac_must_keep_next = true; then
 
1282
        ac_must_keep_next=false # Got value, back to normal.
 
1283
      else
 
1284
        case $ac_arg in
 
1285
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1286
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1287
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1288
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1289
            case "$ac_configure_args0 " in
 
1290
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1291
            esac
 
1292
            ;;
 
1293
          -* ) ac_must_keep_next=true ;;
 
1294
        esac
 
1295
      fi
 
1296
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1297
      # Get rid of the leading space.
 
1298
      ac_sep=" "
 
1299
      ;;
 
1300
    esac
 
1301
  done
 
1302
done
 
1303
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1304
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1305
 
 
1306
# When interrupted or exit'd, cleanup temporary files, and complete
 
1307
# config.log.  We remove comments because anyway the quotes in there
 
1308
# would cause problems or look ugly.
 
1309
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1310
# such as our DU 5.0 friend, will then `close' the trap.
 
1311
trap 'exit_status=$?
 
1312
  # Save into config.log some information that might help in debugging.
 
1313
  {
 
1314
    echo
 
1315
 
 
1316
    cat <<\_ASBOX
 
1317
## ---------------- ##
 
1318
## Cache variables. ##
 
1319
## ---------------- ##
 
1320
_ASBOX
 
1321
    echo
 
1322
    # The following way of writing the cache mishandles newlines in values,
 
1323
{
 
1324
  (set) 2>&1 |
 
1325
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1326
    *ac_space=\ *)
 
1327
      sed -n \
 
1328
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1329
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1330
      ;;
 
1331
    *)
 
1332
      sed -n \
 
1333
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1334
      ;;
 
1335
    esac;
 
1336
}
 
1337
    echo
 
1338
 
 
1339
    cat <<\_ASBOX
 
1340
## ----------------- ##
 
1341
## Output variables. ##
 
1342
## ----------------- ##
 
1343
_ASBOX
 
1344
    echo
 
1345
    for ac_var in $ac_subst_vars
 
1346
    do
 
1347
      eval ac_val=$`echo $ac_var`
 
1348
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1349
    done | sort
 
1350
    echo
 
1351
 
 
1352
    if test -n "$ac_subst_files"; then
 
1353
      cat <<\_ASBOX
 
1354
## ------------- ##
 
1355
## Output files. ##
 
1356
## ------------- ##
 
1357
_ASBOX
 
1358
      echo
 
1359
      for ac_var in $ac_subst_files
 
1360
      do
 
1361
        eval ac_val=$`echo $ac_var`
 
1362
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1363
      done | sort
 
1364
      echo
 
1365
    fi
 
1366
 
 
1367
    if test -s confdefs.h; then
 
1368
      cat <<\_ASBOX
 
1369
## ----------- ##
 
1370
## confdefs.h. ##
 
1371
## ----------- ##
 
1372
_ASBOX
 
1373
      echo
 
1374
      sed "/^$/d" confdefs.h | sort
 
1375
      echo
 
1376
    fi
 
1377
    test "$ac_signal" != 0 &&
 
1378
      echo "$as_me: caught signal $ac_signal"
 
1379
    echo "$as_me: exit $exit_status"
 
1380
  } >&5
 
1381
  rm -f core *.core &&
 
1382
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1383
    exit $exit_status
 
1384
     ' 0
 
1385
for ac_signal in 1 2 13 15; do
 
1386
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1387
done
 
1388
ac_signal=0
 
1389
 
 
1390
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1391
rm -rf conftest* confdefs.h
 
1392
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1393
echo >confdefs.h
 
1394
 
 
1395
# Predefined preprocessor variables.
 
1396
 
 
1397
cat >>confdefs.h <<_ACEOF
 
1398
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1399
_ACEOF
 
1400
 
 
1401
 
 
1402
cat >>confdefs.h <<_ACEOF
 
1403
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1404
_ACEOF
 
1405
 
 
1406
 
 
1407
cat >>confdefs.h <<_ACEOF
 
1408
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1409
_ACEOF
 
1410
 
 
1411
 
 
1412
cat >>confdefs.h <<_ACEOF
 
1413
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1414
_ACEOF
 
1415
 
 
1416
 
 
1417
cat >>confdefs.h <<_ACEOF
 
1418
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1419
_ACEOF
 
1420
 
 
1421
 
 
1422
# Let the site file select an alternate cache file if it wants to.
 
1423
# Prefer explicitly selected file to automatically selected ones.
 
1424
if test -z "$CONFIG_SITE"; then
 
1425
  if test "x$prefix" != xNONE; then
 
1426
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1427
  else
 
1428
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1429
  fi
 
1430
fi
 
1431
for ac_site_file in $CONFIG_SITE; do
 
1432
  if test -r "$ac_site_file"; then
 
1433
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1434
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1435
    sed 's/^/| /' "$ac_site_file" >&5
 
1436
    . "$ac_site_file"
 
1437
  fi
 
1438
done
 
1439
 
 
1440
if test -r "$cache_file"; then
 
1441
  # Some versions of bash will fail to source /dev/null (special
 
1442
  # files actually), so we avoid doing that.
 
1443
  if test -f "$cache_file"; then
 
1444
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1445
echo "$as_me: loading cache $cache_file" >&6;}
 
1446
    case $cache_file in
 
1447
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1448
      *)                      . ./$cache_file;;
 
1449
    esac
 
1450
  fi
 
1451
else
 
1452
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1453
echo "$as_me: creating cache $cache_file" >&6;}
 
1454
  >$cache_file
 
1455
fi
 
1456
 
 
1457
# Check that the precious variables saved in the cache have kept the same
 
1458
# value.
 
1459
ac_cache_corrupted=false
 
1460
for ac_var in `(set) 2>&1 |
 
1461
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1462
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1463
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1464
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1465
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1466
  case $ac_old_set,$ac_new_set in
 
1467
    set,)
 
1468
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1469
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1470
      ac_cache_corrupted=: ;;
 
1471
    ,set)
 
1472
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1473
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1474
      ac_cache_corrupted=: ;;
 
1475
    ,);;
 
1476
    *)
 
1477
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1478
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1479
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1480
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1481
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1482
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1483
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1484
        ac_cache_corrupted=:
 
1485
      fi;;
 
1486
  esac
 
1487
  # Pass precious variables to config.status.
 
1488
  if test "$ac_new_set" = set; then
 
1489
    case $ac_new_val in
 
1490
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1491
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1492
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1493
    esac
 
1494
    case " $ac_configure_args " in
 
1495
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1496
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1497
    esac
 
1498
  fi
 
1499
done
 
1500
if $ac_cache_corrupted; then
 
1501
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1502
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1503
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1504
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1505
   { (exit 1); exit 1; }; }
 
1506
fi
 
1507
 
 
1508
ac_ext=c
 
1509
ac_cpp='$CPP $CPPFLAGS'
 
1510
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1511
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1512
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1513
 
 
1514
 
 
1515
 
 
1516
 
 
1517
 
 
1518
 
 
1519
 
 
1520
 
 
1521
 
 
1522
 
 
1523
 
 
1524
 
 
1525
 
 
1526
 
 
1527
 
 
1528
 
 
1529
 
 
1530
 
 
1531
 
 
1532
 
 
1533
NETATALK_VERSION=`cat $srcdir/VERSION`
 
1534
 
 
1535
 
 
1536
ac_aux_dir=
 
1537
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1538
  if test -f $ac_dir/install-sh; then
 
1539
    ac_aux_dir=$ac_dir
 
1540
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1541
    break
 
1542
  elif test -f $ac_dir/install.sh; then
 
1543
    ac_aux_dir=$ac_dir
 
1544
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1545
    break
 
1546
  elif test -f $ac_dir/shtool; then
 
1547
    ac_aux_dir=$ac_dir
 
1548
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1549
    break
 
1550
  fi
 
1551
done
 
1552
if test -z "$ac_aux_dir"; then
 
1553
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1554
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1555
   { (exit 1); exit 1; }; }
 
1556
fi
 
1557
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1558
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1559
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1560
 
 
1561
# Make sure we can run config.sub.
 
1562
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1563
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1564
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1565
   { (exit 1); exit 1; }; }
 
1566
 
 
1567
echo "$as_me:$LINENO: checking build system type" >&5
 
1568
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1569
if test "${ac_cv_build+set}" = set; then
 
1570
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1571
else
 
1572
  ac_cv_build_alias=$build_alias
 
1573
test -z "$ac_cv_build_alias" &&
 
1574
  ac_cv_build_alias=`$ac_config_guess`
 
1575
test -z "$ac_cv_build_alias" &&
 
1576
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1577
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1578
   { (exit 1); exit 1; }; }
 
1579
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1580
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1581
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1582
   { (exit 1); exit 1; }; }
 
1583
 
 
1584
fi
 
1585
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1586
echo "${ECHO_T}$ac_cv_build" >&6
 
1587
build=$ac_cv_build
 
1588
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1589
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1590
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1591
 
 
1592
 
 
1593
echo "$as_me:$LINENO: checking host system type" >&5
 
1594
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1595
if test "${ac_cv_host+set}" = set; then
 
1596
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1597
else
 
1598
  ac_cv_host_alias=$host_alias
 
1599
test -z "$ac_cv_host_alias" &&
 
1600
  ac_cv_host_alias=$ac_cv_build_alias
 
1601
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1602
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1603
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1604
   { (exit 1); exit 1; }; }
 
1605
 
 
1606
fi
 
1607
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1608
echo "${ECHO_T}$ac_cv_host" >&6
 
1609
host=$ac_cv_host
 
1610
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1611
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1612
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1613
 
 
1614
 
 
1615
echo "$as_me:$LINENO: checking target system type" >&5
 
1616
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
1617
if test "${ac_cv_target+set}" = set; then
 
1618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1619
else
 
1620
  ac_cv_target_alias=$target_alias
 
1621
test "x$ac_cv_target_alias" = "x" &&
 
1622
  ac_cv_target_alias=$ac_cv_host_alias
 
1623
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
1624
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
1625
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
1626
   { (exit 1); exit 1; }; }
 
1627
 
 
1628
fi
 
1629
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
1630
echo "${ECHO_T}$ac_cv_target" >&6
 
1631
target=$ac_cv_target
 
1632
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1633
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1634
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1635
 
 
1636
 
 
1637
# The aliases save the names the user supplied, while $host etc.
 
1638
# will get canonicalized.
 
1639
test -n "$target_alias" &&
 
1640
  test "$program_prefix$program_suffix$program_transform_name" = \
 
1641
    NONENONEs,x,x, &&
 
1642
  program_prefix=${target_alias}-
 
1643
am__api_version="1.7"
 
1644
# Find a good install program.  We prefer a C program (faster),
 
1645
# so one script is as good as another.  But avoid the broken or
 
1646
# incompatible versions:
 
1647
# SysV /etc/install, /usr/sbin/install
 
1648
# SunOS /usr/etc/install
 
1649
# IRIX /sbin/install
 
1650
# AIX /bin/install
 
1651
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1652
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1653
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1654
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1655
# OS/2's system install, which has a completely different semantic
 
1656
# ./install, which can be erroneously created by make from ./install.sh.
 
1657
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1658
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1659
if test -z "$INSTALL"; then
 
1660
if test "${ac_cv_path_install+set}" = set; then
 
1661
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1662
else
 
1663
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1664
for as_dir in $PATH
 
1665
do
 
1666
  IFS=$as_save_IFS
 
1667
  test -z "$as_dir" && as_dir=.
 
1668
  # Account for people who put trailing slashes in PATH elements.
 
1669
case $as_dir/ in
 
1670
  ./ | .// | /cC/* | \
 
1671
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1672
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1673
  /usr/ucb/* ) ;;
 
1674
  *)
 
1675
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1676
    # Don't use installbsd from OSF since it installs stuff as root
 
1677
    # by default.
 
1678
    for ac_prog in ginstall scoinst install; do
 
1679
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1680
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1681
          if test $ac_prog = install &&
 
1682
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1683
            # AIX install.  It has an incompatible calling convention.
 
1684
            :
 
1685
          elif test $ac_prog = install &&
 
1686
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1687
            # program-specific install script used by HP pwplus--don't use.
 
1688
            :
 
1689
          else
 
1690
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1691
            break 3
 
1692
          fi
 
1693
        fi
 
1694
      done
 
1695
    done
 
1696
    ;;
 
1697
esac
 
1698
done
 
1699
 
 
1700
 
 
1701
fi
 
1702
  if test "${ac_cv_path_install+set}" = set; then
 
1703
    INSTALL=$ac_cv_path_install
 
1704
  else
 
1705
    # As a last resort, use the slow shell script.  We don't cache a
 
1706
    # path for INSTALL within a source directory, because that will
 
1707
    # break other packages using the cache if that directory is
 
1708
    # removed, or if the path is relative.
 
1709
    INSTALL=$ac_install_sh
 
1710
  fi
 
1711
fi
 
1712
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1713
echo "${ECHO_T}$INSTALL" >&6
 
1714
 
 
1715
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1716
# It thinks the first close brace ends the variable substitution.
 
1717
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1718
 
 
1719
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1720
 
 
1721
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1722
 
 
1723
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1724
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1725
# Just in case
 
1726
sleep 1
 
1727
echo timestamp > conftest.file
 
1728
# Do `set' in a subshell so we don't clobber the current shell's
 
1729
# arguments.  Must try -L first in case configure is actually a
 
1730
# symlink; some systems play weird games with the mod time of symlinks
 
1731
# (eg FreeBSD returns the mod time of the symlink's containing
 
1732
# directory).
 
1733
if (
 
1734
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1735
   if test "$*" = "X"; then
 
1736
      # -L didn't work.
 
1737
      set X `ls -t $srcdir/configure conftest.file`
 
1738
   fi
 
1739
   rm -f conftest.file
 
1740
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1741
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1742
 
 
1743
      # If neither matched, then we have a broken ls.  This can happen
 
1744
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1745
      # broken ls alias from the environment.  This has actually
 
1746
      # happened.  Such a system could not be considered "sane".
 
1747
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1748
alias in your environment" >&5
 
1749
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1750
alias in your environment" >&2;}
 
1751
   { (exit 1); exit 1; }; }
 
1752
   fi
 
1753
 
 
1754
   test "$2" = conftest.file
 
1755
   )
 
1756
then
 
1757
   # Ok.
 
1758
   :
 
1759
else
 
1760
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1761
Check your system clock" >&5
 
1762
echo "$as_me: error: newly created file is older than distributed files!
 
1763
Check your system clock" >&2;}
 
1764
   { (exit 1); exit 1; }; }
 
1765
fi
 
1766
echo "$as_me:$LINENO: result: yes" >&5
 
1767
echo "${ECHO_T}yes" >&6
 
1768
test "$program_prefix" != NONE &&
 
1769
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1770
# Use a double $ so make ignores it.
 
1771
test "$program_suffix" != NONE &&
 
1772
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1773
# Double any \ or $.  echo might interpret backslashes.
 
1774
# By default was `s,x,x', remove it if useless.
 
1775
cat <<\_ACEOF >conftest.sed
 
1776
s/[\\$]/&&/g;s/;s,x,x,$//
 
1777
_ACEOF
 
1778
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1779
rm conftest.sed
 
1780
 
 
1781
 
 
1782
# expand $ac_aux_dir to an absolute path
 
1783
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1784
 
 
1785
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1786
# Use eval to expand $SHELL
 
1787
if eval "$MISSING --run true"; then
 
1788
  am_missing_run="$MISSING --run "
 
1789
else
 
1790
  am_missing_run=
 
1791
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1792
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1793
fi
 
1794
 
 
1795
for ac_prog in gawk mawk nawk awk
 
1796
do
 
1797
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1798
set dummy $ac_prog; ac_word=$2
 
1799
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1800
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1801
if test "${ac_cv_prog_AWK+set}" = set; then
 
1802
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1803
else
 
1804
  if test -n "$AWK"; then
 
1805
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1806
else
 
1807
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1808
for as_dir in $PATH
 
1809
do
 
1810
  IFS=$as_save_IFS
 
1811
  test -z "$as_dir" && as_dir=.
 
1812
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1813
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1814
    ac_cv_prog_AWK="$ac_prog"
 
1815
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1816
    break 2
 
1817
  fi
 
1818
done
 
1819
done
 
1820
 
 
1821
fi
 
1822
fi
 
1823
AWK=$ac_cv_prog_AWK
 
1824
if test -n "$AWK"; then
 
1825
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1826
echo "${ECHO_T}$AWK" >&6
 
1827
else
 
1828
  echo "$as_me:$LINENO: result: no" >&5
 
1829
echo "${ECHO_T}no" >&6
 
1830
fi
 
1831
 
 
1832
  test -n "$AWK" && break
 
1833
done
 
1834
 
 
1835
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1836
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1837
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1838
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1839
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1840
else
 
1841
  cat >conftest.make <<\_ACEOF
 
1842
all:
 
1843
        @echo 'ac_maketemp="$(MAKE)"'
 
1844
_ACEOF
 
1845
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1846
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1847
if test -n "$ac_maketemp"; then
 
1848
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1849
else
 
1850
  eval ac_cv_prog_make_${ac_make}_set=no
 
1851
fi
 
1852
rm -f conftest.make
 
1853
fi
 
1854
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1855
  echo "$as_me:$LINENO: result: yes" >&5
 
1856
echo "${ECHO_T}yes" >&6
 
1857
  SET_MAKE=
 
1858
else
 
1859
  echo "$as_me:$LINENO: result: no" >&5
 
1860
echo "${ECHO_T}no" >&6
 
1861
  SET_MAKE="MAKE=${MAKE-make}"
 
1862
fi
 
1863
 
 
1864
rm -rf .tst 2>/dev/null
 
1865
mkdir .tst 2>/dev/null
 
1866
if test -d .tst; then
 
1867
  am__leading_dot=.
 
1868
else
 
1869
  am__leading_dot=_
 
1870
fi
 
1871
rmdir .tst 2>/dev/null
 
1872
 
 
1873
 # test to see if srcdir already configured
 
1874
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1875
   test -f $srcdir/config.status; then
 
1876
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1877
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1878
   { (exit 1); exit 1; }; }
 
1879
fi
 
1880
 
 
1881
# test whether we have cygpath
 
1882
if test -z "$CYGPATH_W"; then
 
1883
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1884
    CYGPATH_W='cygpath -w'
 
1885
  else
 
1886
    CYGPATH_W=echo
 
1887
  fi
 
1888
fi
 
1889
 
 
1890
 
 
1891
# Define the identity of the package.
 
1892
 PACKAGE=netatalk
 
1893
 VERSION=${NETATALK_VERSION}
 
1894
 
 
1895
 
 
1896
cat >>confdefs.h <<_ACEOF
 
1897
#define PACKAGE "$PACKAGE"
 
1898
_ACEOF
 
1899
 
 
1900
 
 
1901
cat >>confdefs.h <<_ACEOF
 
1902
#define VERSION "$VERSION"
 
1903
_ACEOF
 
1904
 
 
1905
# Some tools Automake needs.
 
1906
 
 
1907
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1908
 
 
1909
 
 
1910
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1911
 
 
1912
 
 
1913
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1914
 
 
1915
 
 
1916
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1917
 
 
1918
 
 
1919
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1920
 
 
1921
 
 
1922
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1923
 
 
1924
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1925
 
 
1926
# Installed binaries are usually stripped using `strip' when the user
 
1927
# run `make install-strip'.  However `strip' might not be the right
 
1928
# tool to use in cross-compilation environments, therefore Automake
 
1929
# will honor the `STRIP' environment variable to overrule this program.
 
1930
if test "$cross_compiling" != no; then
 
1931
  if test -n "$ac_tool_prefix"; then
 
1932
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1933
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1934
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1935
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1936
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1937
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1938
else
 
1939
  if test -n "$STRIP"; then
 
1940
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1941
else
 
1942
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1943
for as_dir in $PATH
 
1944
do
 
1945
  IFS=$as_save_IFS
 
1946
  test -z "$as_dir" && as_dir=.
 
1947
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1948
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1949
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1950
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1951
    break 2
 
1952
  fi
 
1953
done
 
1954
done
 
1955
 
 
1956
fi
 
1957
fi
 
1958
STRIP=$ac_cv_prog_STRIP
 
1959
if test -n "$STRIP"; then
 
1960
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1961
echo "${ECHO_T}$STRIP" >&6
 
1962
else
 
1963
  echo "$as_me:$LINENO: result: no" >&5
 
1964
echo "${ECHO_T}no" >&6
 
1965
fi
 
1966
 
 
1967
fi
 
1968
if test -z "$ac_cv_prog_STRIP"; then
 
1969
  ac_ct_STRIP=$STRIP
 
1970
  # Extract the first word of "strip", so it can be a program name with args.
 
1971
set dummy strip; ac_word=$2
 
1972
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1973
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1974
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1975
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1976
else
 
1977
  if test -n "$ac_ct_STRIP"; then
 
1978
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1979
else
 
1980
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1981
for as_dir in $PATH
 
1982
do
 
1983
  IFS=$as_save_IFS
 
1984
  test -z "$as_dir" && as_dir=.
 
1985
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1986
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1987
    ac_cv_prog_ac_ct_STRIP="strip"
 
1988
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1989
    break 2
 
1990
  fi
 
1991
done
 
1992
done
 
1993
 
 
1994
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1995
fi
 
1996
fi
 
1997
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1998
if test -n "$ac_ct_STRIP"; then
 
1999
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2000
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
2001
else
 
2002
  echo "$as_me:$LINENO: result: no" >&5
 
2003
echo "${ECHO_T}no" >&6
 
2004
fi
 
2005
 
 
2006
  STRIP=$ac_ct_STRIP
 
2007
else
 
2008
  STRIP="$ac_cv_prog_STRIP"
 
2009
fi
 
2010
 
 
2011
fi
 
2012
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
2013
 
 
2014
# We need awk for the "check" target.  The system "awk" is bad on
 
2015
# some platforms.
 
2016
 
 
2017
 
 
2018
 
 
2019
          ac_config_headers="$ac_config_headers config.h"
 
2020
 
 
2021
 
 
2022
for ac_prog in gawk mawk nawk awk
 
2023
do
 
2024
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2025
set dummy $ac_prog; ac_word=$2
 
2026
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2027
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2028
if test "${ac_cv_prog_AWK+set}" = set; then
 
2029
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2030
else
 
2031
  if test -n "$AWK"; then
 
2032
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2033
else
 
2034
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2035
for as_dir in $PATH
 
2036
do
 
2037
  IFS=$as_save_IFS
 
2038
  test -z "$as_dir" && as_dir=.
 
2039
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2040
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2041
    ac_cv_prog_AWK="$ac_prog"
 
2042
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2043
    break 2
 
2044
  fi
 
2045
done
 
2046
done
 
2047
 
 
2048
fi
 
2049
fi
 
2050
AWK=$ac_cv_prog_AWK
 
2051
if test -n "$AWK"; then
 
2052
  echo "$as_me:$LINENO: result: $AWK" >&5
 
2053
echo "${ECHO_T}$AWK" >&6
 
2054
else
 
2055
  echo "$as_me:$LINENO: result: no" >&5
 
2056
echo "${ECHO_T}no" >&6
 
2057
fi
 
2058
 
 
2059
  test -n "$AWK" && break
 
2060
done
 
2061
 
 
2062
ac_ext=c
 
2063
ac_cpp='$CPP $CPPFLAGS'
 
2064
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2065
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2066
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2067
if test -n "$ac_tool_prefix"; then
 
2068
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2069
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2070
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2071
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2072
if test "${ac_cv_prog_CC+set}" = set; then
 
2073
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2074
else
 
2075
  if test -n "$CC"; then
 
2076
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2077
else
 
2078
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2079
for as_dir in $PATH
 
2080
do
 
2081
  IFS=$as_save_IFS
 
2082
  test -z "$as_dir" && as_dir=.
 
2083
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2084
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2085
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2086
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2087
    break 2
 
2088
  fi
 
2089
done
 
2090
done
 
2091
 
 
2092
fi
 
2093
fi
 
2094
CC=$ac_cv_prog_CC
 
2095
if test -n "$CC"; then
 
2096
  echo "$as_me:$LINENO: result: $CC" >&5
 
2097
echo "${ECHO_T}$CC" >&6
 
2098
else
 
2099
  echo "$as_me:$LINENO: result: no" >&5
 
2100
echo "${ECHO_T}no" >&6
 
2101
fi
 
2102
 
 
2103
fi
 
2104
if test -z "$ac_cv_prog_CC"; then
 
2105
  ac_ct_CC=$CC
 
2106
  # Extract the first word of "gcc", so it can be a program name with args.
 
2107
set dummy gcc; ac_word=$2
 
2108
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2109
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2110
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2111
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2112
else
 
2113
  if test -n "$ac_ct_CC"; then
 
2114
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2115
else
 
2116
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2117
for as_dir in $PATH
 
2118
do
 
2119
  IFS=$as_save_IFS
 
2120
  test -z "$as_dir" && as_dir=.
 
2121
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2122
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2123
    ac_cv_prog_ac_ct_CC="gcc"
 
2124
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2125
    break 2
 
2126
  fi
 
2127
done
 
2128
done
 
2129
 
 
2130
fi
 
2131
fi
 
2132
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2133
if test -n "$ac_ct_CC"; then
 
2134
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2135
echo "${ECHO_T}$ac_ct_CC" >&6
 
2136
else
 
2137
  echo "$as_me:$LINENO: result: no" >&5
 
2138
echo "${ECHO_T}no" >&6
 
2139
fi
 
2140
 
 
2141
  CC=$ac_ct_CC
 
2142
else
 
2143
  CC="$ac_cv_prog_CC"
 
2144
fi
 
2145
 
 
2146
if test -z "$CC"; then
 
2147
  if test -n "$ac_tool_prefix"; then
 
2148
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2149
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2150
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2151
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2152
if test "${ac_cv_prog_CC+set}" = set; then
 
2153
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2154
else
 
2155
  if test -n "$CC"; then
 
2156
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2157
else
 
2158
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2159
for as_dir in $PATH
 
2160
do
 
2161
  IFS=$as_save_IFS
 
2162
  test -z "$as_dir" && as_dir=.
 
2163
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2164
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2165
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2166
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2167
    break 2
 
2168
  fi
 
2169
done
 
2170
done
 
2171
 
 
2172
fi
 
2173
fi
 
2174
CC=$ac_cv_prog_CC
 
2175
if test -n "$CC"; then
 
2176
  echo "$as_me:$LINENO: result: $CC" >&5
 
2177
echo "${ECHO_T}$CC" >&6
 
2178
else
 
2179
  echo "$as_me:$LINENO: result: no" >&5
 
2180
echo "${ECHO_T}no" >&6
 
2181
fi
 
2182
 
 
2183
fi
 
2184
if test -z "$ac_cv_prog_CC"; then
 
2185
  ac_ct_CC=$CC
 
2186
  # Extract the first word of "cc", so it can be a program name with args.
 
2187
set dummy cc; ac_word=$2
 
2188
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2189
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2190
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2191
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2192
else
 
2193
  if test -n "$ac_ct_CC"; then
 
2194
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2195
else
 
2196
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2197
for as_dir in $PATH
 
2198
do
 
2199
  IFS=$as_save_IFS
 
2200
  test -z "$as_dir" && as_dir=.
 
2201
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2202
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2203
    ac_cv_prog_ac_ct_CC="cc"
 
2204
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2205
    break 2
 
2206
  fi
 
2207
done
 
2208
done
 
2209
 
 
2210
fi
 
2211
fi
 
2212
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2213
if test -n "$ac_ct_CC"; then
 
2214
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2215
echo "${ECHO_T}$ac_ct_CC" >&6
 
2216
else
 
2217
  echo "$as_me:$LINENO: result: no" >&5
 
2218
echo "${ECHO_T}no" >&6
 
2219
fi
 
2220
 
 
2221
  CC=$ac_ct_CC
 
2222
else
 
2223
  CC="$ac_cv_prog_CC"
 
2224
fi
 
2225
 
 
2226
fi
 
2227
if test -z "$CC"; then
 
2228
  # Extract the first word of "cc", so it can be a program name with args.
 
2229
set dummy cc; ac_word=$2
 
2230
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2231
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2232
if test "${ac_cv_prog_CC+set}" = set; then
 
2233
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2234
else
 
2235
  if test -n "$CC"; then
 
2236
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2237
else
 
2238
  ac_prog_rejected=no
 
2239
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2240
for as_dir in $PATH
 
2241
do
 
2242
  IFS=$as_save_IFS
 
2243
  test -z "$as_dir" && as_dir=.
 
2244
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2245
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2246
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2247
       ac_prog_rejected=yes
 
2248
       continue
 
2249
     fi
 
2250
    ac_cv_prog_CC="cc"
 
2251
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2252
    break 2
 
2253
  fi
 
2254
done
 
2255
done
 
2256
 
 
2257
if test $ac_prog_rejected = yes; then
 
2258
  # We found a bogon in the path, so make sure we never use it.
 
2259
  set dummy $ac_cv_prog_CC
 
2260
  shift
 
2261
  if test $# != 0; then
 
2262
    # We chose a different compiler from the bogus one.
 
2263
    # However, it has the same basename, so the bogon will be chosen
 
2264
    # first if we set CC to just the basename; use the full file name.
 
2265
    shift
 
2266
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2267
  fi
 
2268
fi
 
2269
fi
 
2270
fi
 
2271
CC=$ac_cv_prog_CC
 
2272
if test -n "$CC"; then
 
2273
  echo "$as_me:$LINENO: result: $CC" >&5
 
2274
echo "${ECHO_T}$CC" >&6
 
2275
else
 
2276
  echo "$as_me:$LINENO: result: no" >&5
 
2277
echo "${ECHO_T}no" >&6
 
2278
fi
 
2279
 
 
2280
fi
 
2281
if test -z "$CC"; then
 
2282
  if test -n "$ac_tool_prefix"; then
 
2283
  for ac_prog in cl
 
2284
  do
 
2285
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2286
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2287
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2288
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2289
if test "${ac_cv_prog_CC+set}" = set; then
 
2290
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2291
else
 
2292
  if test -n "$CC"; then
 
2293
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2294
else
 
2295
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2296
for as_dir in $PATH
 
2297
do
 
2298
  IFS=$as_save_IFS
 
2299
  test -z "$as_dir" && as_dir=.
 
2300
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2301
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2302
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2303
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2304
    break 2
 
2305
  fi
 
2306
done
 
2307
done
 
2308
 
 
2309
fi
 
2310
fi
 
2311
CC=$ac_cv_prog_CC
 
2312
if test -n "$CC"; then
 
2313
  echo "$as_me:$LINENO: result: $CC" >&5
 
2314
echo "${ECHO_T}$CC" >&6
 
2315
else
 
2316
  echo "$as_me:$LINENO: result: no" >&5
 
2317
echo "${ECHO_T}no" >&6
 
2318
fi
 
2319
 
 
2320
    test -n "$CC" && break
 
2321
  done
 
2322
fi
 
2323
if test -z "$CC"; then
 
2324
  ac_ct_CC=$CC
 
2325
  for ac_prog in cl
 
2326
do
 
2327
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2328
set dummy $ac_prog; ac_word=$2
 
2329
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2330
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2331
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2332
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2333
else
 
2334
  if test -n "$ac_ct_CC"; then
 
2335
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2336
else
 
2337
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2338
for as_dir in $PATH
 
2339
do
 
2340
  IFS=$as_save_IFS
 
2341
  test -z "$as_dir" && as_dir=.
 
2342
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2343
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2344
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2345
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2346
    break 2
 
2347
  fi
 
2348
done
 
2349
done
 
2350
 
 
2351
fi
 
2352
fi
 
2353
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2354
if test -n "$ac_ct_CC"; then
 
2355
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2356
echo "${ECHO_T}$ac_ct_CC" >&6
 
2357
else
 
2358
  echo "$as_me:$LINENO: result: no" >&5
 
2359
echo "${ECHO_T}no" >&6
 
2360
fi
 
2361
 
 
2362
  test -n "$ac_ct_CC" && break
 
2363
done
 
2364
 
 
2365
  CC=$ac_ct_CC
 
2366
fi
 
2367
 
 
2368
fi
 
2369
 
 
2370
 
 
2371
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2372
See \`config.log' for more details." >&5
 
2373
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2374
See \`config.log' for more details." >&2;}
 
2375
   { (exit 1); exit 1; }; }
 
2376
 
 
2377
# Provide some information about the compiler.
 
2378
echo "$as_me:$LINENO:" \
 
2379
     "checking for C compiler version" >&5
 
2380
ac_compiler=`set X $ac_compile; echo $2`
 
2381
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2382
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2383
  ac_status=$?
 
2384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2385
  (exit $ac_status); }
 
2386
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2387
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2388
  ac_status=$?
 
2389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2390
  (exit $ac_status); }
 
2391
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2392
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2393
  ac_status=$?
 
2394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2395
  (exit $ac_status); }
 
2396
 
 
2397
cat >conftest.$ac_ext <<_ACEOF
 
2398
/* confdefs.h.  */
 
2399
_ACEOF
 
2400
cat confdefs.h >>conftest.$ac_ext
 
2401
cat >>conftest.$ac_ext <<_ACEOF
 
2402
/* end confdefs.h.  */
 
2403
 
 
2404
int
 
2405
main ()
 
2406
{
 
2407
 
 
2408
  ;
 
2409
  return 0;
 
2410
}
 
2411
_ACEOF
 
2412
ac_clean_files_save=$ac_clean_files
 
2413
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2414
# Try to create an executable without -o first, disregard a.out.
 
2415
# It will help us diagnose broken compilers, and finding out an intuition
 
2416
# of exeext.
 
2417
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2418
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2419
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2420
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2421
  (eval $ac_link_default) 2>&5
 
2422
  ac_status=$?
 
2423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2424
  (exit $ac_status); }; then
 
2425
  # Find the output, starting from the most likely.  This scheme is
 
2426
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2427
# resort.
 
2428
 
 
2429
# Be careful to initialize this variable, since it used to be cached.
 
2430
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2431
ac_cv_exeext=
 
2432
# b.out is created by i960 compilers.
 
2433
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2434
do
 
2435
  test -f "$ac_file" || continue
 
2436
  case $ac_file in
 
2437
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2438
        ;;
 
2439
    conftest.$ac_ext )
 
2440
        # This is the source file.
 
2441
        ;;
 
2442
    [ab].out )
 
2443
        # We found the default executable, but exeext='' is most
 
2444
        # certainly right.
 
2445
        break;;
 
2446
    *.* )
 
2447
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2448
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2449
        # but it would be cool to find out if it's true.  Does anybody
 
2450
        # maintain Libtool? --akim.
 
2451
        export ac_cv_exeext
 
2452
        break;;
 
2453
    * )
 
2454
        break;;
 
2455
  esac
 
2456
done
 
2457
else
 
2458
  echo "$as_me: failed program was:" >&5
 
2459
sed 's/^/| /' conftest.$ac_ext >&5
 
2460
 
 
2461
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2462
See \`config.log' for more details." >&5
 
2463
echo "$as_me: error: C compiler cannot create executables
 
2464
See \`config.log' for more details." >&2;}
 
2465
   { (exit 77); exit 77; }; }
 
2466
fi
 
2467
 
 
2468
ac_exeext=$ac_cv_exeext
 
2469
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2470
echo "${ECHO_T}$ac_file" >&6
 
2471
 
 
2472
# Check the compiler produces executables we can run.  If not, either
 
2473
# the compiler is broken, or we cross compile.
 
2474
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2475
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2476
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2477
# If not cross compiling, check that we can run a simple program.
 
2478
if test "$cross_compiling" != yes; then
 
2479
  if { ac_try='./$ac_file'
 
2480
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2481
  (eval $ac_try) 2>&5
 
2482
  ac_status=$?
 
2483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2484
  (exit $ac_status); }; }; then
 
2485
    cross_compiling=no
 
2486
  else
 
2487
    if test "$cross_compiling" = maybe; then
 
2488
        cross_compiling=yes
 
2489
    else
 
2490
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2491
If you meant to cross compile, use \`--host'.
 
2492
See \`config.log' for more details." >&5
 
2493
echo "$as_me: error: cannot run C compiled programs.
 
2494
If you meant to cross compile, use \`--host'.
 
2495
See \`config.log' for more details." >&2;}
 
2496
   { (exit 1); exit 1; }; }
 
2497
    fi
 
2498
  fi
 
2499
fi
 
2500
echo "$as_me:$LINENO: result: yes" >&5
 
2501
echo "${ECHO_T}yes" >&6
 
2502
 
 
2503
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2504
ac_clean_files=$ac_clean_files_save
 
2505
# Check the compiler produces executables we can run.  If not, either
 
2506
# the compiler is broken, or we cross compile.
 
2507
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2508
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2509
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2510
echo "${ECHO_T}$cross_compiling" >&6
 
2511
 
 
2512
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2513
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2514
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2515
  (eval $ac_link) 2>&5
 
2516
  ac_status=$?
 
2517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2518
  (exit $ac_status); }; then
 
2519
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2520
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2521
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2522
# `rm'.
 
2523
for ac_file in conftest.exe conftest conftest.*; do
 
2524
  test -f "$ac_file" || continue
 
2525
  case $ac_file in
 
2526
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2527
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2528
          export ac_cv_exeext
 
2529
          break;;
 
2530
    * ) break;;
 
2531
  esac
 
2532
done
 
2533
else
 
2534
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2535
See \`config.log' for more details." >&5
 
2536
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2537
See \`config.log' for more details." >&2;}
 
2538
   { (exit 1); exit 1; }; }
 
2539
fi
 
2540
 
 
2541
rm -f conftest$ac_cv_exeext
 
2542
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2543
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2544
 
 
2545
rm -f conftest.$ac_ext
 
2546
EXEEXT=$ac_cv_exeext
 
2547
ac_exeext=$EXEEXT
 
2548
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2549
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2550
if test "${ac_cv_objext+set}" = set; then
 
2551
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2552
else
 
2553
  cat >conftest.$ac_ext <<_ACEOF
 
2554
/* confdefs.h.  */
 
2555
_ACEOF
 
2556
cat confdefs.h >>conftest.$ac_ext
 
2557
cat >>conftest.$ac_ext <<_ACEOF
 
2558
/* end confdefs.h.  */
 
2559
 
 
2560
int
 
2561
main ()
 
2562
{
 
2563
 
 
2564
  ;
 
2565
  return 0;
 
2566
}
 
2567
_ACEOF
 
2568
rm -f conftest.o conftest.obj
 
2569
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2570
  (eval $ac_compile) 2>&5
 
2571
  ac_status=$?
 
2572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2573
  (exit $ac_status); }; then
 
2574
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2575
  case $ac_file in
 
2576
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2577
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2578
       break;;
 
2579
  esac
 
2580
done
 
2581
else
 
2582
  echo "$as_me: failed program was:" >&5
 
2583
sed 's/^/| /' conftest.$ac_ext >&5
 
2584
 
 
2585
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2586
See \`config.log' for more details." >&5
 
2587
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2588
See \`config.log' for more details." >&2;}
 
2589
   { (exit 1); exit 1; }; }
 
2590
fi
 
2591
 
 
2592
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2593
fi
 
2594
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2595
echo "${ECHO_T}$ac_cv_objext" >&6
 
2596
OBJEXT=$ac_cv_objext
 
2597
ac_objext=$OBJEXT
 
2598
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2599
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2600
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2601
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2602
else
 
2603
  cat >conftest.$ac_ext <<_ACEOF
 
2604
/* confdefs.h.  */
 
2605
_ACEOF
 
2606
cat confdefs.h >>conftest.$ac_ext
 
2607
cat >>conftest.$ac_ext <<_ACEOF
 
2608
/* end confdefs.h.  */
 
2609
 
 
2610
int
 
2611
main ()
 
2612
{
 
2613
#ifndef __GNUC__
 
2614
       choke me
 
2615
#endif
 
2616
 
 
2617
  ;
 
2618
  return 0;
 
2619
}
 
2620
_ACEOF
 
2621
rm -f conftest.$ac_objext
 
2622
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2623
  (eval $ac_compile) 2>conftest.er1
 
2624
  ac_status=$?
 
2625
  grep -v '^ *+' conftest.er1 >conftest.err
 
2626
  rm -f conftest.er1
 
2627
  cat conftest.err >&5
 
2628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2629
  (exit $ac_status); } &&
 
2630
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2631
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2632
  (eval $ac_try) 2>&5
 
2633
  ac_status=$?
 
2634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2635
  (exit $ac_status); }; } &&
 
2636
         { ac_try='test -s conftest.$ac_objext'
 
2637
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2638
  (eval $ac_try) 2>&5
 
2639
  ac_status=$?
 
2640
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2641
  (exit $ac_status); }; }; then
 
2642
  ac_compiler_gnu=yes
 
2643
else
 
2644
  echo "$as_me: failed program was:" >&5
 
2645
sed 's/^/| /' conftest.$ac_ext >&5
 
2646
 
 
2647
ac_compiler_gnu=no
 
2648
fi
 
2649
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2650
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2651
 
 
2652
fi
 
2653
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2654
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2655
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2656
ac_test_CFLAGS=${CFLAGS+set}
 
2657
ac_save_CFLAGS=$CFLAGS
 
2658
CFLAGS="-g"
 
2659
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2660
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2661
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2662
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2663
else
 
2664
  cat >conftest.$ac_ext <<_ACEOF
 
2665
/* confdefs.h.  */
 
2666
_ACEOF
 
2667
cat confdefs.h >>conftest.$ac_ext
 
2668
cat >>conftest.$ac_ext <<_ACEOF
 
2669
/* end confdefs.h.  */
 
2670
 
 
2671
int
 
2672
main ()
 
2673
{
 
2674
 
 
2675
  ;
 
2676
  return 0;
 
2677
}
 
2678
_ACEOF
 
2679
rm -f conftest.$ac_objext
 
2680
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2681
  (eval $ac_compile) 2>conftest.er1
 
2682
  ac_status=$?
 
2683
  grep -v '^ *+' conftest.er1 >conftest.err
 
2684
  rm -f conftest.er1
 
2685
  cat conftest.err >&5
 
2686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2687
  (exit $ac_status); } &&
 
2688
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2689
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2690
  (eval $ac_try) 2>&5
 
2691
  ac_status=$?
 
2692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2693
  (exit $ac_status); }; } &&
 
2694
         { ac_try='test -s conftest.$ac_objext'
 
2695
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2696
  (eval $ac_try) 2>&5
 
2697
  ac_status=$?
 
2698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2699
  (exit $ac_status); }; }; then
 
2700
  ac_cv_prog_cc_g=yes
 
2701
else
 
2702
  echo "$as_me: failed program was:" >&5
 
2703
sed 's/^/| /' conftest.$ac_ext >&5
 
2704
 
 
2705
ac_cv_prog_cc_g=no
 
2706
fi
 
2707
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2708
fi
 
2709
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2710
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2711
if test "$ac_test_CFLAGS" = set; then
 
2712
  CFLAGS=$ac_save_CFLAGS
 
2713
elif test $ac_cv_prog_cc_g = yes; then
 
2714
  if test "$GCC" = yes; then
 
2715
    CFLAGS="-g -O2"
 
2716
  else
 
2717
    CFLAGS="-g"
 
2718
  fi
 
2719
else
 
2720
  if test "$GCC" = yes; then
 
2721
    CFLAGS="-O2"
 
2722
  else
 
2723
    CFLAGS=
 
2724
  fi
 
2725
fi
 
2726
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2727
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2728
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2729
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2730
else
 
2731
  ac_cv_prog_cc_stdc=no
 
2732
ac_save_CC=$CC
 
2733
cat >conftest.$ac_ext <<_ACEOF
 
2734
/* confdefs.h.  */
 
2735
_ACEOF
 
2736
cat confdefs.h >>conftest.$ac_ext
 
2737
cat >>conftest.$ac_ext <<_ACEOF
 
2738
/* end confdefs.h.  */
 
2739
#include <stdarg.h>
 
2740
#include <stdio.h>
 
2741
#include <sys/types.h>
 
2742
#include <sys/stat.h>
 
2743
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2744
struct buf { int x; };
 
2745
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2746
static char *e (p, i)
 
2747
     char **p;
 
2748
     int i;
 
2749
{
 
2750
  return p[i];
 
2751
}
 
2752
static char *f (char * (*g) (char **, int), char **p, ...)
 
2753
{
 
2754
  char *s;
 
2755
  va_list v;
 
2756
  va_start (v,p);
 
2757
  s = g (p, va_arg (v,int));
 
2758
  va_end (v);
 
2759
  return s;
 
2760
}
 
2761
 
 
2762
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2763
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2764
   These don't provoke an error unfortunately, instead are silently treated
 
2765
   as 'x'.  The following induces an error, until -std1 is added to get
 
2766
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2767
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2768
   that's true only with -std1.  */
 
2769
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2770
 
 
2771
int test (int i, double x);
 
2772
struct s1 {int (*f) (int a);};
 
2773
struct s2 {int (*f) (double a);};
 
2774
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2775
int argc;
 
2776
char **argv;
 
2777
int
 
2778
main ()
 
2779
{
 
2780
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2781
  ;
 
2782
  return 0;
 
2783
}
 
2784
_ACEOF
 
2785
# Don't try gcc -ansi; that turns off useful extensions and
 
2786
# breaks some systems' header files.
 
2787
# AIX                   -qlanglvl=ansi
 
2788
# Ultrix and OSF/1      -std1
 
2789
# HP-UX 10.20 and later -Ae
 
2790
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2791
# SVR4                  -Xc -D__EXTENSIONS__
 
2792
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2793
do
 
2794
  CC="$ac_save_CC $ac_arg"
 
2795
  rm -f conftest.$ac_objext
 
2796
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2797
  (eval $ac_compile) 2>conftest.er1
 
2798
  ac_status=$?
 
2799
  grep -v '^ *+' conftest.er1 >conftest.err
 
2800
  rm -f conftest.er1
 
2801
  cat conftest.err >&5
 
2802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2803
  (exit $ac_status); } &&
 
2804
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2806
  (eval $ac_try) 2>&5
 
2807
  ac_status=$?
 
2808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2809
  (exit $ac_status); }; } &&
 
2810
         { ac_try='test -s conftest.$ac_objext'
 
2811
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2812
  (eval $ac_try) 2>&5
 
2813
  ac_status=$?
 
2814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2815
  (exit $ac_status); }; }; then
 
2816
  ac_cv_prog_cc_stdc=$ac_arg
 
2817
break
 
2818
else
 
2819
  echo "$as_me: failed program was:" >&5
 
2820
sed 's/^/| /' conftest.$ac_ext >&5
 
2821
 
 
2822
fi
 
2823
rm -f conftest.err conftest.$ac_objext
 
2824
done
 
2825
rm -f conftest.$ac_ext conftest.$ac_objext
 
2826
CC=$ac_save_CC
 
2827
 
 
2828
fi
 
2829
 
 
2830
case "x$ac_cv_prog_cc_stdc" in
 
2831
  x|xno)
 
2832
    echo "$as_me:$LINENO: result: none needed" >&5
 
2833
echo "${ECHO_T}none needed" >&6 ;;
 
2834
  *)
 
2835
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2836
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2837
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2838
esac
 
2839
 
 
2840
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2841
# in C++ we need to declare it.  In case someone uses the same compiler
 
2842
# for both compiling C and C++ we need to have the C++ compiler decide
 
2843
# the declaration of exit, since it's the most demanding environment.
 
2844
cat >conftest.$ac_ext <<_ACEOF
 
2845
#ifndef __cplusplus
 
2846
  choke me
 
2847
#endif
 
2848
_ACEOF
 
2849
rm -f conftest.$ac_objext
 
2850
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2851
  (eval $ac_compile) 2>conftest.er1
 
2852
  ac_status=$?
 
2853
  grep -v '^ *+' conftest.er1 >conftest.err
 
2854
  rm -f conftest.er1
 
2855
  cat conftest.err >&5
 
2856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2857
  (exit $ac_status); } &&
 
2858
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2859
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2860
  (eval $ac_try) 2>&5
 
2861
  ac_status=$?
 
2862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2863
  (exit $ac_status); }; } &&
 
2864
         { ac_try='test -s conftest.$ac_objext'
 
2865
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2866
  (eval $ac_try) 2>&5
 
2867
  ac_status=$?
 
2868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2869
  (exit $ac_status); }; }; then
 
2870
  for ac_declaration in \
 
2871
   '' \
 
2872
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2873
   'extern "C" void std::exit (int); using std::exit;' \
 
2874
   'extern "C" void exit (int) throw ();' \
 
2875
   'extern "C" void exit (int);' \
 
2876
   'void exit (int);'
 
2877
do
 
2878
  cat >conftest.$ac_ext <<_ACEOF
 
2879
/* confdefs.h.  */
 
2880
_ACEOF
 
2881
cat confdefs.h >>conftest.$ac_ext
 
2882
cat >>conftest.$ac_ext <<_ACEOF
 
2883
/* end confdefs.h.  */
 
2884
$ac_declaration
 
2885
#include <stdlib.h>
 
2886
int
 
2887
main ()
 
2888
{
 
2889
exit (42);
 
2890
  ;
 
2891
  return 0;
 
2892
}
 
2893
_ACEOF
 
2894
rm -f conftest.$ac_objext
 
2895
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2896
  (eval $ac_compile) 2>conftest.er1
 
2897
  ac_status=$?
 
2898
  grep -v '^ *+' conftest.er1 >conftest.err
 
2899
  rm -f conftest.er1
 
2900
  cat conftest.err >&5
 
2901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2902
  (exit $ac_status); } &&
 
2903
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2904
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2905
  (eval $ac_try) 2>&5
 
2906
  ac_status=$?
 
2907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2908
  (exit $ac_status); }; } &&
 
2909
         { ac_try='test -s conftest.$ac_objext'
 
2910
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2911
  (eval $ac_try) 2>&5
 
2912
  ac_status=$?
 
2913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2914
  (exit $ac_status); }; }; then
 
2915
  :
 
2916
else
 
2917
  echo "$as_me: failed program was:" >&5
 
2918
sed 's/^/| /' conftest.$ac_ext >&5
 
2919
 
 
2920
continue
 
2921
fi
 
2922
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2923
  cat >conftest.$ac_ext <<_ACEOF
 
2924
/* confdefs.h.  */
 
2925
_ACEOF
 
2926
cat confdefs.h >>conftest.$ac_ext
 
2927
cat >>conftest.$ac_ext <<_ACEOF
 
2928
/* end confdefs.h.  */
 
2929
$ac_declaration
 
2930
int
 
2931
main ()
 
2932
{
 
2933
exit (42);
 
2934
  ;
 
2935
  return 0;
 
2936
}
 
2937
_ACEOF
 
2938
rm -f conftest.$ac_objext
 
2939
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2940
  (eval $ac_compile) 2>conftest.er1
 
2941
  ac_status=$?
 
2942
  grep -v '^ *+' conftest.er1 >conftest.err
 
2943
  rm -f conftest.er1
 
2944
  cat conftest.err >&5
 
2945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2946
  (exit $ac_status); } &&
 
2947
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2948
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2949
  (eval $ac_try) 2>&5
 
2950
  ac_status=$?
 
2951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2952
  (exit $ac_status); }; } &&
 
2953
         { ac_try='test -s conftest.$ac_objext'
 
2954
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2955
  (eval $ac_try) 2>&5
 
2956
  ac_status=$?
 
2957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2958
  (exit $ac_status); }; }; then
 
2959
  break
 
2960
else
 
2961
  echo "$as_me: failed program was:" >&5
 
2962
sed 's/^/| /' conftest.$ac_ext >&5
 
2963
 
 
2964
fi
 
2965
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2966
done
 
2967
rm -f conftest*
 
2968
if test -n "$ac_declaration"; then
 
2969
  echo '#ifdef __cplusplus' >>confdefs.h
 
2970
  echo $ac_declaration      >>confdefs.h
 
2971
  echo '#endif'             >>confdefs.h
 
2972
fi
 
2973
 
 
2974
else
 
2975
  echo "$as_me: failed program was:" >&5
 
2976
sed 's/^/| /' conftest.$ac_ext >&5
 
2977
 
 
2978
fi
 
2979
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2980
ac_ext=c
 
2981
ac_cpp='$CPP $CPPFLAGS'
 
2982
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2983
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2984
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2985
DEPDIR="${am__leading_dot}deps"
 
2986
 
 
2987
          ac_config_commands="$ac_config_commands depfiles"
 
2988
 
 
2989
 
 
2990
am_make=${MAKE-make}
 
2991
cat > confinc << 'END'
 
2992
am__doit:
 
2993
        @echo done
 
2994
.PHONY: am__doit
 
2995
END
 
2996
# If we don't find an include directive, just comment out the code.
 
2997
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2998
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2999
am__include="#"
 
3000
am__quote=
 
3001
_am_result=none
 
3002
# First try GNU make style include.
 
3003
echo "include confinc" > confmf
 
3004
# We grep out `Entering directory' and `Leaving directory'
 
3005
# messages which can occur if `w' ends up in MAKEFLAGS.
 
3006
# In particular we don't look at `^make:' because GNU make might
 
3007
# be invoked under some other name (usually "gmake"), in which
 
3008
# case it prints its new name instead of `make'.
 
3009
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
3010
   am__include=include
 
3011
   am__quote=
 
3012
   _am_result=GNU
 
3013
fi
 
3014
# Now try BSD make style include.
 
3015
if test "$am__include" = "#"; then
 
3016
   echo '.include "confinc"' > confmf
 
3017
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
3018
      am__include=.include
 
3019
      am__quote="\""
 
3020
      _am_result=BSD
 
3021
   fi
 
3022
fi
 
3023
 
 
3024
 
 
3025
echo "$as_me:$LINENO: result: $_am_result" >&5
 
3026
echo "${ECHO_T}$_am_result" >&6
 
3027
rm -f confinc confmf
 
3028
 
 
3029
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
3030
if test "${enable_dependency_tracking+set}" = set; then
 
3031
  enableval="$enable_dependency_tracking"
 
3032
 
 
3033
fi;
 
3034
if test "x$enable_dependency_tracking" != xno; then
 
3035
  am_depcomp="$ac_aux_dir/depcomp"
 
3036
  AMDEPBACKSLASH='\'
 
3037
fi
 
3038
 
 
3039
 
 
3040
if test "x$enable_dependency_tracking" != xno; then
 
3041
  AMDEP_TRUE=
 
3042
  AMDEP_FALSE='#'
 
3043
else
 
3044
  AMDEP_TRUE='#'
 
3045
  AMDEP_FALSE=
 
3046
fi
 
3047
 
 
3048
 
 
3049
 
 
3050
 
 
3051
depcc="$CC"   am_compiler_list=
 
3052
 
 
3053
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3054
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3055
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3056
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3057
else
 
3058
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3059
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3060
  # making bogus files that we don't know about and never remove.  For
 
3061
  # instance it was reported that on HP-UX the gcc test will end up
 
3062
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3063
  # in D'.
 
3064
  mkdir conftest.dir
 
3065
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3066
  # using a relative directory.
 
3067
  cp "$am_depcomp" conftest.dir
 
3068
  cd conftest.dir
 
3069
  # We will build objects and dependencies in a subdirectory because
 
3070
  # it helps to detect inapplicable dependency modes.  For instance
 
3071
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3072
  # side effect of compilation, but ICC will put the dependencies in
 
3073
  # the current directory while Tru64 will put them in the object
 
3074
  # directory.
 
3075
  mkdir sub
 
3076
 
 
3077
  am_cv_CC_dependencies_compiler_type=none
 
3078
  if test "$am_compiler_list" = ""; then
 
3079
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3080
  fi
 
3081
  for depmode in $am_compiler_list; do
 
3082
    # Setup a source with many dependencies, because some compilers
 
3083
    # like to wrap large dependency lists on column 80 (with \), and
 
3084
    # we should not choose a depcomp mode which is confused by this.
 
3085
    #
 
3086
    # We need to recreate these files for each test, as the compiler may
 
3087
    # overwrite some of them when testing with obscure command lines.
 
3088
    # This happens at least with the AIX C compiler.
 
3089
    : > sub/conftest.c
 
3090
    for i in 1 2 3 4 5 6; do
 
3091
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3092
      : > sub/conftst$i.h
 
3093
    done
 
3094
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3095
 
 
3096
    case $depmode in
 
3097
    nosideeffect)
 
3098
      # after this tag, mechanisms are not by side-effect, so they'll
 
3099
      # only be used when explicitly requested
 
3100
      if test "x$enable_dependency_tracking" = xyes; then
 
3101
        continue
 
3102
      else
 
3103
        break
 
3104
      fi
 
3105
      ;;
 
3106
    none) break ;;
 
3107
    esac
 
3108
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3109
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3110
    # handle `-M -o', and we need to detect this.
 
3111
    if depmode=$depmode \
 
3112
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3113
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3114
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3115
         >/dev/null 2>conftest.err &&
 
3116
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3117
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3118
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3119
      # icc doesn't choke on unknown options, it will just issue warnings
 
3120
      # (even with -Werror).  So we grep stderr for any message
 
3121
      # that says an option was ignored.
 
3122
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
3123
        am_cv_CC_dependencies_compiler_type=$depmode
 
3124
        break
 
3125
      fi
 
3126
    fi
 
3127
  done
 
3128
 
 
3129
  cd ..
 
3130
  rm -rf conftest.dir
 
3131
else
 
3132
  am_cv_CC_dependencies_compiler_type=none
 
3133
fi
 
3134
 
 
3135
fi
 
3136
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3137
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3138
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3139
 
 
3140
 
 
3141
 
 
3142
if
 
3143
  test "x$enable_dependency_tracking" != xno \
 
3144
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3145
  am__fastdepCC_TRUE=
 
3146
  am__fastdepCC_FALSE='#'
 
3147
else
 
3148
  am__fastdepCC_TRUE='#'
 
3149
  am__fastdepCC_FALSE=
 
3150
fi
 
3151
 
 
3152
 
 
3153
# Find a good install program.  We prefer a C program (faster),
 
3154
# so one script is as good as another.  But avoid the broken or
 
3155
# incompatible versions:
 
3156
# SysV /etc/install, /usr/sbin/install
 
3157
# SunOS /usr/etc/install
 
3158
# IRIX /sbin/install
 
3159
# AIX /bin/install
 
3160
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3161
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3162
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3163
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3164
# OS/2's system install, which has a completely different semantic
 
3165
# ./install, which can be erroneously created by make from ./install.sh.
 
3166
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3167
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
3168
if test -z "$INSTALL"; then
 
3169
if test "${ac_cv_path_install+set}" = set; then
 
3170
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3171
else
 
3172
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3173
for as_dir in $PATH
 
3174
do
 
3175
  IFS=$as_save_IFS
 
3176
  test -z "$as_dir" && as_dir=.
 
3177
  # Account for people who put trailing slashes in PATH elements.
 
3178
case $as_dir/ in
 
3179
  ./ | .// | /cC/* | \
 
3180
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3181
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3182
  /usr/ucb/* ) ;;
 
3183
  *)
 
3184
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3185
    # Don't use installbsd from OSF since it installs stuff as root
 
3186
    # by default.
 
3187
    for ac_prog in ginstall scoinst install; do
 
3188
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3189
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
3190
          if test $ac_prog = install &&
 
3191
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3192
            # AIX install.  It has an incompatible calling convention.
 
3193
            :
 
3194
          elif test $ac_prog = install &&
 
3195
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3196
            # program-specific install script used by HP pwplus--don't use.
 
3197
            :
 
3198
          else
 
3199
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3200
            break 3
 
3201
          fi
 
3202
        fi
 
3203
      done
 
3204
    done
 
3205
    ;;
 
3206
esac
 
3207
done
 
3208
 
 
3209
 
 
3210
fi
 
3211
  if test "${ac_cv_path_install+set}" = set; then
 
3212
    INSTALL=$ac_cv_path_install
 
3213
  else
 
3214
    # As a last resort, use the slow shell script.  We don't cache a
 
3215
    # path for INSTALL within a source directory, because that will
 
3216
    # break other packages using the cache if that directory is
 
3217
    # removed, or if the path is relative.
 
3218
    INSTALL=$ac_install_sh
 
3219
  fi
 
3220
fi
 
3221
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3222
echo "${ECHO_T}$INSTALL" >&6
 
3223
 
 
3224
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3225
# It thinks the first close brace ends the variable substitution.
 
3226
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3227
 
 
3228
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3229
 
 
3230
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3231
 
 
3232
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3233
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3234
LN_S=$as_ln_s
 
3235
if test "$LN_S" = "ln -s"; then
 
3236
  echo "$as_me:$LINENO: result: yes" >&5
 
3237
echo "${ECHO_T}yes" >&6
 
3238
else
 
3239
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3240
echo "${ECHO_T}no, using $LN_S" >&6
 
3241
fi
 
3242
 
 
3243
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3244
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
3245
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
3246
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
3247
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3248
else
 
3249
  cat >conftest.make <<\_ACEOF
 
3250
all:
 
3251
        @echo 'ac_maketemp="$(MAKE)"'
 
3252
_ACEOF
 
3253
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3254
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
3255
if test -n "$ac_maketemp"; then
 
3256
  eval ac_cv_prog_make_${ac_make}_set=yes
 
3257
else
 
3258
  eval ac_cv_prog_make_${ac_make}_set=no
 
3259
fi
 
3260
rm -f conftest.make
 
3261
fi
 
3262
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
3263
  echo "$as_me:$LINENO: result: yes" >&5
 
3264
echo "${ECHO_T}yes" >&6
 
3265
  SET_MAKE=
 
3266
else
 
3267
  echo "$as_me:$LINENO: result: no" >&5
 
3268
echo "${ECHO_T}no" >&6
 
3269
  SET_MAKE="MAKE=${MAKE-make}"
 
3270
fi
 
3271
 
 
3272
 
 
3273
 
 
3274
# Check whether --enable-shared or --disable-shared was given.
 
3275
if test "${enable_shared+set}" = set; then
 
3276
  enableval="$enable_shared"
 
3277
  p=${PACKAGE-default}
 
3278
    case $enableval in
 
3279
    yes) enable_shared=yes ;;
 
3280
    no) enable_shared=no ;;
 
3281
    *)
 
3282
      enable_shared=no
 
3283
      # Look at the argument we got.  We use all the common list separators.
 
3284
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3285
      for pkg in $enableval; do
 
3286
        IFS="$lt_save_ifs"
 
3287
        if test "X$pkg" = "X$p"; then
 
3288
          enable_shared=yes
 
3289
        fi
 
3290
      done
 
3291
      IFS="$lt_save_ifs"
 
3292
      ;;
 
3293
    esac
 
3294
else
 
3295
  enable_shared=yes
 
3296
fi;
 
3297
 
 
3298
# Check whether --enable-static or --disable-static was given.
 
3299
if test "${enable_static+set}" = set; then
 
3300
  enableval="$enable_static"
 
3301
  p=${PACKAGE-default}
 
3302
    case $enableval in
 
3303
    yes) enable_static=yes ;;
 
3304
    no) enable_static=no ;;
 
3305
    *)
 
3306
     enable_static=no
 
3307
      # Look at the argument we got.  We use all the common list separators.
 
3308
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3309
      for pkg in $enableval; do
 
3310
        IFS="$lt_save_ifs"
 
3311
        if test "X$pkg" = "X$p"; then
 
3312
          enable_static=yes
 
3313
        fi
 
3314
      done
 
3315
      IFS="$lt_save_ifs"
 
3316
      ;;
 
3317
    esac
 
3318
else
 
3319
  enable_static=yes
 
3320
fi;
 
3321
 
 
3322
# Check whether --enable-fast-install or --disable-fast-install was given.
 
3323
if test "${enable_fast_install+set}" = set; then
 
3324
  enableval="$enable_fast_install"
 
3325
  p=${PACKAGE-default}
 
3326
    case $enableval in
 
3327
    yes) enable_fast_install=yes ;;
 
3328
    no) enable_fast_install=no ;;
 
3329
    *)
 
3330
      enable_fast_install=no
 
3331
      # Look at the argument we got.  We use all the common list separators.
 
3332
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3333
      for pkg in $enableval; do
 
3334
        IFS="$lt_save_ifs"
 
3335
        if test "X$pkg" = "X$p"; then
 
3336
          enable_fast_install=yes
 
3337
        fi
 
3338
      done
 
3339
      IFS="$lt_save_ifs"
 
3340
      ;;
 
3341
    esac
 
3342
else
 
3343
  enable_fast_install=yes
 
3344
fi;
 
3345
 
 
3346
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3347
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
3348
if test "${lt_cv_path_SED+set}" = set; then
 
3349
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3350
else
 
3351
  # Loop through the user's path and test for sed and gsed.
 
3352
# Then use that list of sed's as ones to test for truncation.
 
3353
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3354
for as_dir in $PATH
 
3355
do
 
3356
  IFS=$as_save_IFS
 
3357
  test -z "$as_dir" && as_dir=.
 
3358
  for lt_ac_prog in sed gsed; do
 
3359
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3360
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3361
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3362
      fi
 
3363
    done
 
3364
  done
 
3365
done
 
3366
lt_ac_max=0
 
3367
lt_ac_count=0
 
3368
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3369
# along with /bin/sed that truncates output.
 
3370
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3371
  test ! -f $lt_ac_sed && break
 
3372
  cat /dev/null > conftest.in
 
3373
  lt_ac_count=0
 
3374
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3375
  # Check for GNU sed and select it if it is found.
 
3376
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3377
    lt_cv_path_SED=$lt_ac_sed
 
3378
    break
 
3379
  fi
 
3380
  while true; do
 
3381
    cat conftest.in conftest.in >conftest.tmp
 
3382
    mv conftest.tmp conftest.in
 
3383
    cp conftest.in conftest.nl
 
3384
    echo >>conftest.nl
 
3385
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3386
    cmp -s conftest.out conftest.nl || break
 
3387
    # 10000 chars as input seems more than enough
 
3388
    test $lt_ac_count -gt 10 && break
 
3389
    lt_ac_count=`expr $lt_ac_count + 1`
 
3390
    if test $lt_ac_count -gt $lt_ac_max; then
 
3391
      lt_ac_max=$lt_ac_count
 
3392
      lt_cv_path_SED=$lt_ac_sed
 
3393
    fi
 
3394
  done
 
3395
done
 
3396
SED=$lt_cv_path_SED
 
3397
 
 
3398
fi
 
3399
 
 
3400
echo "$as_me:$LINENO: result: $SED" >&5
 
3401
echo "${ECHO_T}$SED" >&6
 
3402
 
 
3403
echo "$as_me:$LINENO: checking for egrep" >&5
 
3404
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3405
if test "${ac_cv_prog_egrep+set}" = set; then
 
3406
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3407
else
 
3408
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3409
    then ac_cv_prog_egrep='grep -E'
 
3410
    else ac_cv_prog_egrep='egrep'
 
3411
    fi
 
3412
fi
 
3413
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3414
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3415
 EGREP=$ac_cv_prog_egrep
 
3416
 
 
3417
 
 
3418
 
 
3419
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
3420
if test "${with_gnu_ld+set}" = set; then
 
3421
  withval="$with_gnu_ld"
 
3422
  test "$withval" = no || with_gnu_ld=yes
 
3423
else
 
3424
  with_gnu_ld=no
 
3425
fi;
 
3426
ac_prog=ld
 
3427
if test "$GCC" = yes; then
 
3428
  # Check if gcc -print-prog-name=ld gives a path.
 
3429
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3430
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
3431
  case $host in
 
3432
  *-*-mingw*)
 
3433
    # gcc leaves a trailing carriage return which upsets mingw
 
3434
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3435
  *)
 
3436
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3437
  esac
 
3438
  case $ac_prog in
 
3439
    # Accept absolute paths.
 
3440
    [\\/]* | ?:[\\/]*)
 
3441
      re_direlt='/[^/][^/]*/\.\./'
 
3442
      # Canonicalize the pathname of ld
 
3443
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
3444
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3445
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3446
      done
 
3447
      test -z "$LD" && LD="$ac_prog"
 
3448
      ;;
 
3449
  "")
 
3450
    # If it fails, then pretend we aren't using GCC.
 
3451
    ac_prog=ld
 
3452
    ;;
 
3453
  *)
 
3454
    # If it is relative, then search for the first ld in PATH.
 
3455
    with_gnu_ld=unknown
 
3456
    ;;
 
3457
  esac
 
3458
elif test "$with_gnu_ld" = yes; then
 
3459
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3460
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
3461
else
 
3462
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3463
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
3464
fi
 
3465
if test "${lt_cv_path_LD+set}" = set; then
 
3466
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3467
else
 
3468
  if test -z "$LD"; then
 
3469
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3470
  for ac_dir in $PATH; do
 
3471
    IFS="$lt_save_ifs"
 
3472
    test -z "$ac_dir" && ac_dir=.
 
3473
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3474
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3475
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3476
      # but apparently some GNU ld's only accept -v.
 
3477
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3478
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3479
      *GNU* | *'with BFD'*)
 
3480
        test "$with_gnu_ld" != no && break
 
3481
        ;;
 
3482
      *)
 
3483
        test "$with_gnu_ld" != yes && break
 
3484
        ;;
 
3485
      esac
 
3486
    fi
 
3487
  done
 
3488
  IFS="$lt_save_ifs"
 
3489
else
 
3490
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
3491
fi
 
3492
fi
 
3493
 
 
3494
LD="$lt_cv_path_LD"
 
3495
if test -n "$LD"; then
 
3496
  echo "$as_me:$LINENO: result: $LD" >&5
 
3497
echo "${ECHO_T}$LD" >&6
 
3498
else
 
3499
  echo "$as_me:$LINENO: result: no" >&5
 
3500
echo "${ECHO_T}no" >&6
 
3501
fi
 
3502
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
3503
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
3504
   { (exit 1); exit 1; }; }
 
3505
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
3506
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
3507
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
3508
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3509
else
 
3510
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3511
case `$LD -v 2>&1 </dev/null` in
 
3512
*GNU* | *'with BFD'*)
 
3513
  lt_cv_prog_gnu_ld=yes
 
3514
  ;;
 
3515
*)
 
3516
  lt_cv_prog_gnu_ld=no
 
3517
  ;;
 
3518
esac
 
3519
fi
 
3520
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
3521
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
3522
with_gnu_ld=$lt_cv_prog_gnu_ld
 
3523
 
 
3524
 
 
3525
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
3526
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
3527
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
3528
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3529
else
 
3530
  lt_cv_ld_reload_flag='-r'
 
3531
fi
 
3532
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
3533
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
3534
reload_flag=$lt_cv_ld_reload_flag
 
3535
case $reload_flag in
 
3536
"" | " "*) ;;
 
3537
*) reload_flag=" $reload_flag" ;;
 
3538
esac
 
3539
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3540
 
 
3541
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
3542
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
3543
if test "${lt_cv_path_NM+set}" = set; then
 
3544
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3545
else
 
3546
  if test -n "$NM"; then
 
3547
  # Let the user override the test.
 
3548
  lt_cv_path_NM="$NM"
 
3549
else
 
3550
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3551
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
3552
    IFS="$lt_save_ifs"
 
3553
    test -z "$ac_dir" && ac_dir=.
 
3554
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
3555
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3556
      # Check to see if the nm accepts a BSD-compat flag.
 
3557
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3558
      #   nm: unknown option "B" ignored
 
3559
      # Tru64's nm complains that /dev/null is an invalid object file
 
3560
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3561
      */dev/null* | *'Invalid file or object type'*)
 
3562
        lt_cv_path_NM="$tmp_nm -B"
 
3563
        break
 
3564
        ;;
 
3565
      *)
 
3566
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3567
        */dev/null*)
 
3568
          lt_cv_path_NM="$tmp_nm -p"
 
3569
          break
 
3570
          ;;
 
3571
        *)
 
3572
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3573
          continue # so that we can try to find one that supports BSD flags
 
3574
          ;;
 
3575
        esac
 
3576
      esac
 
3577
    fi
 
3578
  done
 
3579
  IFS="$lt_save_ifs"
 
3580
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3581
fi
 
3582
fi
 
3583
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
3584
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
3585
NM="$lt_cv_path_NM"
 
3586
 
 
3587
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
3588
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
3589
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
3590
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3591
else
 
3592
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
3593
lt_cv_file_magic_test_file=
 
3594
lt_cv_deplibs_check_method='unknown'
 
3595
# Need to set the preceding variable on all platforms that support
 
3596
# interlibrary dependencies.
 
3597
# 'none' -- dependencies not supported.
 
3598
# `unknown' -- same as none, but documents that we really don't know.
 
3599
# 'pass_all' -- all dependencies passed with no checks.
 
3600
# 'test_compile' -- check by making test program.
 
3601
# 'file_magic [[regex]]' -- check by looking for files in library path
 
3602
# which responds to the $file_magic_cmd with a given extended regex.
 
3603
# If you have `file' or equivalent on your system and you're not sure
 
3604
# whether `pass_all' will *always* work, you probably want this one.
 
3605
 
 
3606
case $host_os in
 
3607
aix4* | aix5*)
 
3608
  lt_cv_deplibs_check_method=pass_all
 
3609
  ;;
 
3610
 
 
3611
beos*)
 
3612
  lt_cv_deplibs_check_method=pass_all
 
3613
  ;;
 
3614
 
 
3615
bsdi4*)
 
3616
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
3617
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3618
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3619
  ;;
 
3620
 
 
3621
cygwin*)
 
3622
  # win32_libid is a shell function defined in ltmain.sh
 
3623
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3624
  lt_cv_file_magic_cmd='win32_libid'
 
3625
  ;;
 
3626
 
 
3627
mingw* | pw32*)
 
3628
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
3629
  # win32_libid shell function, so use a weaker test based on 'objdump'.
 
3630
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3631
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3632
  ;;
 
3633
 
 
3634
darwin* | rhapsody*)
 
3635
  lt_cv_deplibs_check_method=pass_all
 
3636
  ;;
 
3637
 
 
3638
freebsd* | kfreebsd*-gnu)
 
3639
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3640
    case $host_cpu in
 
3641
    i*86 )
 
3642
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3643
      # Let's accept both of them until this is cleared up.
 
3644
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
3645
      lt_cv_file_magic_cmd=/usr/bin/file
 
3646
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3647
      ;;
 
3648
    esac
 
3649
  else
 
3650
    lt_cv_deplibs_check_method=pass_all
 
3651
  fi
 
3652
  ;;
 
3653
 
 
3654
gnu*)
 
3655
  lt_cv_deplibs_check_method=pass_all
 
3656
  ;;
 
3657
 
 
3658
hpux10.20* | hpux11*)
 
3659
  lt_cv_file_magic_cmd=/usr/bin/file
 
3660
  case "$host_cpu" in
 
3661
  ia64*)
 
3662
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
3663
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
3664
    ;;
 
3665
  hppa*64*)
 
3666
    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]'
 
3667
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
3668
    ;;
 
3669
  *)
 
3670
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3671
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3672
    ;;
 
3673
  esac
 
3674
  ;;
 
3675
 
 
3676
irix5* | irix6* | nonstopux*)
 
3677
  case $LD in
 
3678
  *-32|*"-32 ") libmagic=32-bit;;
 
3679
  *-n32|*"-n32 ") libmagic=N32;;
 
3680
  *-64|*"-64 ") libmagic=64-bit;;
 
3681
  *) libmagic=never-match;;
 
3682
  esac
 
3683
  lt_cv_deplibs_check_method=pass_all
 
3684
  ;;
 
3685
 
 
3686
# This must be Linux ELF.
 
3687
linux*)
 
3688
  lt_cv_deplibs_check_method=pass_all
 
3689
  ;;
 
3690
 
 
3691
netbsd*)
 
3692
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3693
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
3694
  else
 
3695
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
3696
  fi
 
3697
  ;;
 
3698
 
 
3699
newos6*)
 
3700
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
3701
  lt_cv_file_magic_cmd=/usr/bin/file
 
3702
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3703
  ;;
 
3704
 
 
3705
nto-qnx*)
 
3706
  lt_cv_deplibs_check_method=unknown
 
3707
  ;;
 
3708
 
 
3709
openbsd*)
 
3710
  lt_cv_file_magic_cmd=/usr/bin/file
 
3711
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3712
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3713
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
3714
  else
 
3715
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3716
  fi
 
3717
  ;;
 
3718
 
 
3719
osf3* | osf4* | osf5*)
 
3720
  lt_cv_deplibs_check_method=pass_all
 
3721
  ;;
 
3722
 
 
3723
sco3.2v5*)
 
3724
  lt_cv_deplibs_check_method=pass_all
 
3725
  ;;
 
3726
 
 
3727
solaris*)
 
3728
  lt_cv_deplibs_check_method=pass_all
 
3729
  ;;
 
3730
 
 
3731
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3732
  case $host_vendor in
 
3733
  motorola)
 
3734
    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]'
 
3735
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3736
    ;;
 
3737
  ncr)
 
3738
    lt_cv_deplibs_check_method=pass_all
 
3739
    ;;
 
3740
  sequent)
 
3741
    lt_cv_file_magic_cmd='/bin/file'
 
3742
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
3743
    ;;
 
3744
  sni)
 
3745
    lt_cv_file_magic_cmd='/bin/file'
 
3746
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
3747
    lt_cv_file_magic_test_file=/lib/libc.so
 
3748
    ;;
 
3749
  siemens)
 
3750
    lt_cv_deplibs_check_method=pass_all
 
3751
    ;;
 
3752
  esac
 
3753
  ;;
 
3754
 
 
3755
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
3756
  lt_cv_deplibs_check_method=pass_all
 
3757
  ;;
 
3758
esac
 
3759
 
 
3760
fi
 
3761
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
3762
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
3763
file_magic_cmd=$lt_cv_file_magic_cmd
 
3764
deplibs_check_method=$lt_cv_deplibs_check_method
 
3765
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3766
 
 
3767
 
 
3768
 
 
3769
 
 
3770
# If no C compiler was specified, use CC.
 
3771
LTCC=${LTCC-"$CC"}
 
3772
 
 
3773
# Allow CC to be a program name with arguments.
 
3774
compiler=$CC
 
3775
 
 
3776
 
 
3777
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
3778
if test "${enable_libtool_lock+set}" = set; then
 
3779
  enableval="$enable_libtool_lock"
 
3780
 
 
3781
fi;
 
3782
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
3783
 
 
3784
# Some flags need to be propagated to the compiler or linker for good
 
3785
# libtool support.
 
3786
case $host in
 
3787
ia64-*-hpux*)
 
3788
  # Find out which ABI we are using.
 
3789
  echo 'int i;' > conftest.$ac_ext
 
3790
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3791
  (eval $ac_compile) 2>&5
 
3792
  ac_status=$?
 
3793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3794
  (exit $ac_status); }; then
 
3795
    case `/usr/bin/file conftest.$ac_objext` in
 
3796
    *ELF-32*)
 
3797
      HPUX_IA64_MODE="32"
 
3798
      ;;
 
3799
    *ELF-64*)
 
3800
      HPUX_IA64_MODE="64"
 
3801
      ;;
 
3802
    esac
 
3803
  fi
 
3804
  rm -rf conftest*
 
3805
  ;;
 
3806
*-*-irix6*)
 
3807
  # Find out which ABI we are using.
 
3808
  echo '#line 3808 "configure"' > conftest.$ac_ext
 
3809
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3810
  (eval $ac_compile) 2>&5
 
3811
  ac_status=$?
 
3812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3813
  (exit $ac_status); }; then
 
3814
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
3815
    case `/usr/bin/file conftest.$ac_objext` in
 
3816
    *32-bit*)
 
3817
      LD="${LD-ld} -melf32bsmip"
 
3818
      ;;
 
3819
    *N32*)
 
3820
      LD="${LD-ld} -melf32bmipn32"
 
3821
      ;;
 
3822
    *64-bit*)
 
3823
      LD="${LD-ld} -melf64bmip"
 
3824
      ;;
 
3825
    esac
 
3826
   else
 
3827
    case `/usr/bin/file conftest.$ac_objext` in
 
3828
    *32-bit*)
 
3829
      LD="${LD-ld} -32"
 
3830
      ;;
 
3831
    *N32*)
 
3832
      LD="${LD-ld} -n32"
 
3833
      ;;
 
3834
    *64-bit*)
 
3835
      LD="${LD-ld} -64"
 
3836
      ;;
 
3837
    esac
 
3838
   fi
 
3839
  fi
 
3840
  rm -rf conftest*
 
3841
  ;;
 
3842
 
 
3843
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
3844
  # Find out which ABI we are using.
 
3845
  echo 'int i;' > conftest.$ac_ext
 
3846
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3847
  (eval $ac_compile) 2>&5
 
3848
  ac_status=$?
 
3849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3850
  (exit $ac_status); }; then
 
3851
    case "`/usr/bin/file conftest.o`" in
 
3852
    *32-bit*)
 
3853
      case $host in
 
3854
        x86_64-*linux*)
 
3855
          LD="${LD-ld} -m elf_i386"
 
3856
          ;;
 
3857
        ppc64-*linux*|powerpc64-*linux*)
 
3858
          LD="${LD-ld} -m elf32ppclinux"
 
3859
          ;;
 
3860
        s390x-*linux*)
 
3861
          LD="${LD-ld} -m elf_s390"
 
3862
          ;;
 
3863
        sparc64-*linux*)
 
3864
          LD="${LD-ld} -m elf32_sparc"
 
3865
          ;;
 
3866
      esac
 
3867
      ;;
 
3868
    *64-bit*)
 
3869
      case $host in
 
3870
        x86_64-*linux*)
 
3871
          LD="${LD-ld} -m elf_x86_64"
 
3872
          ;;
 
3873
        ppc*-*linux*|powerpc*-*linux*)
 
3874
          LD="${LD-ld} -m elf64ppc"
 
3875
          ;;
 
3876
        s390*-*linux*)
 
3877
          LD="${LD-ld} -m elf64_s390"
 
3878
          ;;
 
3879
        sparc*-*linux*)
 
3880
          LD="${LD-ld} -m elf64_sparc"
 
3881
          ;;
 
3882
      esac
 
3883
      ;;
 
3884
    esac
 
3885
  fi
 
3886
  rm -rf conftest*
 
3887
  ;;
 
3888
 
 
3889
*-*-sco3.2v5*)
 
3890
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
3891
  SAVE_CFLAGS="$CFLAGS"
 
3892
  CFLAGS="$CFLAGS -belf"
 
3893
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
3894
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
3895
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
3896
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3897
else
 
3898
  ac_ext=c
 
3899
ac_cpp='$CPP $CPPFLAGS'
 
3900
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3901
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3902
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3903
 
 
3904
     cat >conftest.$ac_ext <<_ACEOF
 
3905
/* confdefs.h.  */
 
3906
_ACEOF
 
3907
cat confdefs.h >>conftest.$ac_ext
 
3908
cat >>conftest.$ac_ext <<_ACEOF
 
3909
/* end confdefs.h.  */
 
3910
 
 
3911
int
 
3912
main ()
 
3913
{
 
3914
 
 
3915
  ;
 
3916
  return 0;
 
3917
}
 
3918
_ACEOF
 
3919
rm -f conftest.$ac_objext conftest$ac_exeext
 
3920
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3921
  (eval $ac_link) 2>conftest.er1
 
3922
  ac_status=$?
 
3923
  grep -v '^ *+' conftest.er1 >conftest.err
 
3924
  rm -f conftest.er1
 
3925
  cat conftest.err >&5
 
3926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3927
  (exit $ac_status); } &&
 
3928
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3929
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3930
  (eval $ac_try) 2>&5
 
3931
  ac_status=$?
 
3932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3933
  (exit $ac_status); }; } &&
 
3934
         { ac_try='test -s conftest$ac_exeext'
 
3935
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3936
  (eval $ac_try) 2>&5
 
3937
  ac_status=$?
 
3938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3939
  (exit $ac_status); }; }; then
 
3940
  lt_cv_cc_needs_belf=yes
 
3941
else
 
3942
  echo "$as_me: failed program was:" >&5
 
3943
sed 's/^/| /' conftest.$ac_ext >&5
 
3944
 
 
3945
lt_cv_cc_needs_belf=no
 
3946
fi
 
3947
rm -f conftest.err conftest.$ac_objext \
 
3948
      conftest$ac_exeext conftest.$ac_ext
 
3949
     ac_ext=c
 
3950
ac_cpp='$CPP $CPPFLAGS'
 
3951
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3952
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3953
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3954
 
 
3955
fi
 
3956
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
3957
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
3958
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
3959
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
3960
    CFLAGS="$SAVE_CFLAGS"
 
3961
  fi
 
3962
  ;;
 
3963
 
 
3964
esac
 
3965
 
 
3966
need_locks="$enable_libtool_lock"
 
3967
 
 
3968
 
 
3969
ac_ext=c
 
3970
ac_cpp='$CPP $CPPFLAGS'
 
3971
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3972
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3973
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3974
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3975
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3976
# On Suns, sometimes $CPP names a directory.
 
3977
if test -n "$CPP" && test -d "$CPP"; then
 
3978
  CPP=
 
3979
fi
 
3980
if test -z "$CPP"; then
 
3981
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3982
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3983
else
 
3984
      # Double quotes because CPP needs to be expanded
 
3985
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3986
    do
 
3987
      ac_preproc_ok=false
 
3988
for ac_c_preproc_warn_flag in '' yes
 
3989
do
 
3990
  # Use a header file that comes with gcc, so configuring glibc
 
3991
  # with a fresh cross-compiler works.
 
3992
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3993
  # <limits.h> exists even on freestanding compilers.
 
3994
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3995
  # not just through cpp. "Syntax error" is here to catch this case.
 
3996
  cat >conftest.$ac_ext <<_ACEOF
 
3997
/* confdefs.h.  */
 
3998
_ACEOF
 
3999
cat confdefs.h >>conftest.$ac_ext
 
4000
cat >>conftest.$ac_ext <<_ACEOF
 
4001
/* end confdefs.h.  */
 
4002
#ifdef __STDC__
 
4003
# include <limits.h>
 
4004
#else
 
4005
# include <assert.h>
 
4006
#endif
 
4007
                     Syntax error
 
4008
_ACEOF
 
4009
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4010
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4011
  ac_status=$?
 
4012
  grep -v '^ *+' conftest.er1 >conftest.err
 
4013
  rm -f conftest.er1
 
4014
  cat conftest.err >&5
 
4015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4016
  (exit $ac_status); } >/dev/null; then
 
4017
  if test -s conftest.err; then
 
4018
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4019
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4020
  else
 
4021
    ac_cpp_err=
 
4022
  fi
 
4023
else
 
4024
  ac_cpp_err=yes
 
4025
fi
 
4026
if test -z "$ac_cpp_err"; then
 
4027
  :
 
4028
else
 
4029
  echo "$as_me: failed program was:" >&5
 
4030
sed 's/^/| /' conftest.$ac_ext >&5
 
4031
 
 
4032
  # Broken: fails on valid input.
 
4033
continue
 
4034
fi
 
4035
rm -f conftest.err conftest.$ac_ext
 
4036
 
 
4037
  # OK, works on sane cases.  Now check whether non-existent headers
 
4038
  # can be detected and how.
 
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 <ac_nonexistent.h>
 
4046
_ACEOF
 
4047
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4048
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4049
  ac_status=$?
 
4050
  grep -v '^ *+' conftest.er1 >conftest.err
 
4051
  rm -f conftest.er1
 
4052
  cat conftest.err >&5
 
4053
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4054
  (exit $ac_status); } >/dev/null; then
 
4055
  if test -s conftest.err; then
 
4056
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4057
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4058
  else
 
4059
    ac_cpp_err=
 
4060
  fi
 
4061
else
 
4062
  ac_cpp_err=yes
 
4063
fi
 
4064
if test -z "$ac_cpp_err"; then
 
4065
  # Broken: success on invalid input.
 
4066
continue
 
4067
else
 
4068
  echo "$as_me: failed program was:" >&5
 
4069
sed 's/^/| /' conftest.$ac_ext >&5
 
4070
 
 
4071
  # Passes both tests.
 
4072
ac_preproc_ok=:
 
4073
break
 
4074
fi
 
4075
rm -f conftest.err conftest.$ac_ext
 
4076
 
 
4077
done
 
4078
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4079
rm -f conftest.err conftest.$ac_ext
 
4080
if $ac_preproc_ok; then
 
4081
  break
 
4082
fi
 
4083
 
 
4084
    done
 
4085
    ac_cv_prog_CPP=$CPP
 
4086
 
 
4087
fi
 
4088
  CPP=$ac_cv_prog_CPP
 
4089
else
 
4090
  ac_cv_prog_CPP=$CPP
 
4091
fi
 
4092
echo "$as_me:$LINENO: result: $CPP" >&5
 
4093
echo "${ECHO_T}$CPP" >&6
 
4094
ac_preproc_ok=false
 
4095
for ac_c_preproc_warn_flag in '' yes
 
4096
do
 
4097
  # Use a header file that comes with gcc, so configuring glibc
 
4098
  # with a fresh cross-compiler works.
 
4099
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4100
  # <limits.h> exists even on freestanding compilers.
 
4101
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4102
  # not just through cpp. "Syntax error" is here to catch this case.
 
4103
  cat >conftest.$ac_ext <<_ACEOF
 
4104
/* confdefs.h.  */
 
4105
_ACEOF
 
4106
cat confdefs.h >>conftest.$ac_ext
 
4107
cat >>conftest.$ac_ext <<_ACEOF
 
4108
/* end confdefs.h.  */
 
4109
#ifdef __STDC__
 
4110
# include <limits.h>
 
4111
#else
 
4112
# include <assert.h>
 
4113
#endif
 
4114
                     Syntax error
 
4115
_ACEOF
 
4116
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4117
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4118
  ac_status=$?
 
4119
  grep -v '^ *+' conftest.er1 >conftest.err
 
4120
  rm -f conftest.er1
 
4121
  cat conftest.err >&5
 
4122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4123
  (exit $ac_status); } >/dev/null; then
 
4124
  if test -s conftest.err; then
 
4125
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4126
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4127
  else
 
4128
    ac_cpp_err=
 
4129
  fi
 
4130
else
 
4131
  ac_cpp_err=yes
 
4132
fi
 
4133
if test -z "$ac_cpp_err"; then
 
4134
  :
 
4135
else
 
4136
  echo "$as_me: failed program was:" >&5
 
4137
sed 's/^/| /' conftest.$ac_ext >&5
 
4138
 
 
4139
  # Broken: fails on valid input.
 
4140
continue
 
4141
fi
 
4142
rm -f conftest.err conftest.$ac_ext
 
4143
 
 
4144
  # OK, works on sane cases.  Now check whether non-existent headers
 
4145
  # can be detected and how.
 
4146
  cat >conftest.$ac_ext <<_ACEOF
 
4147
/* confdefs.h.  */
 
4148
_ACEOF
 
4149
cat confdefs.h >>conftest.$ac_ext
 
4150
cat >>conftest.$ac_ext <<_ACEOF
 
4151
/* end confdefs.h.  */
 
4152
#include <ac_nonexistent.h>
 
4153
_ACEOF
 
4154
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4155
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4156
  ac_status=$?
 
4157
  grep -v '^ *+' conftest.er1 >conftest.err
 
4158
  rm -f conftest.er1
 
4159
  cat conftest.err >&5
 
4160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4161
  (exit $ac_status); } >/dev/null; then
 
4162
  if test -s conftest.err; then
 
4163
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4164
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4165
  else
 
4166
    ac_cpp_err=
 
4167
  fi
 
4168
else
 
4169
  ac_cpp_err=yes
 
4170
fi
 
4171
if test -z "$ac_cpp_err"; then
 
4172
  # Broken: success on invalid input.
 
4173
continue
 
4174
else
 
4175
  echo "$as_me: failed program was:" >&5
 
4176
sed 's/^/| /' conftest.$ac_ext >&5
 
4177
 
 
4178
  # Passes both tests.
 
4179
ac_preproc_ok=:
 
4180
break
 
4181
fi
 
4182
rm -f conftest.err conftest.$ac_ext
 
4183
 
 
4184
done
 
4185
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4186
rm -f conftest.err conftest.$ac_ext
 
4187
if $ac_preproc_ok; then
 
4188
  :
 
4189
else
 
4190
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4191
See \`config.log' for more details." >&5
 
4192
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4193
See \`config.log' for more details." >&2;}
 
4194
   { (exit 1); exit 1; }; }
 
4195
fi
 
4196
 
 
4197
ac_ext=c
 
4198
ac_cpp='$CPP $CPPFLAGS'
 
4199
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4200
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4201
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4202
 
 
4203
 
 
4204
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4205
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4206
if test "${ac_cv_header_stdc+set}" = set; then
 
4207
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4208
else
 
4209
  cat >conftest.$ac_ext <<_ACEOF
 
4210
/* confdefs.h.  */
 
4211
_ACEOF
 
4212
cat confdefs.h >>conftest.$ac_ext
 
4213
cat >>conftest.$ac_ext <<_ACEOF
 
4214
/* end confdefs.h.  */
 
4215
#include <stdlib.h>
 
4216
#include <stdarg.h>
 
4217
#include <string.h>
 
4218
#include <float.h>
 
4219
 
 
4220
int
 
4221
main ()
 
4222
{
 
4223
 
 
4224
  ;
 
4225
  return 0;
 
4226
}
 
4227
_ACEOF
 
4228
rm -f conftest.$ac_objext
 
4229
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4230
  (eval $ac_compile) 2>conftest.er1
 
4231
  ac_status=$?
 
4232
  grep -v '^ *+' conftest.er1 >conftest.err
 
4233
  rm -f conftest.er1
 
4234
  cat conftest.err >&5
 
4235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4236
  (exit $ac_status); } &&
 
4237
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4238
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4239
  (eval $ac_try) 2>&5
 
4240
  ac_status=$?
 
4241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4242
  (exit $ac_status); }; } &&
 
4243
         { ac_try='test -s conftest.$ac_objext'
 
4244
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4245
  (eval $ac_try) 2>&5
 
4246
  ac_status=$?
 
4247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4248
  (exit $ac_status); }; }; then
 
4249
  ac_cv_header_stdc=yes
 
4250
else
 
4251
  echo "$as_me: failed program was:" >&5
 
4252
sed 's/^/| /' conftest.$ac_ext >&5
 
4253
 
 
4254
ac_cv_header_stdc=no
 
4255
fi
 
4256
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4257
 
 
4258
if test $ac_cv_header_stdc = yes; then
 
4259
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4260
  cat >conftest.$ac_ext <<_ACEOF
 
4261
/* confdefs.h.  */
 
4262
_ACEOF
 
4263
cat confdefs.h >>conftest.$ac_ext
 
4264
cat >>conftest.$ac_ext <<_ACEOF
 
4265
/* end confdefs.h.  */
 
4266
#include <string.h>
 
4267
 
 
4268
_ACEOF
 
4269
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4270
  $EGREP "memchr" >/dev/null 2>&1; then
 
4271
  :
 
4272
else
 
4273
  ac_cv_header_stdc=no
 
4274
fi
 
4275
rm -f conftest*
 
4276
 
 
4277
fi
 
4278
 
 
4279
if test $ac_cv_header_stdc = yes; then
 
4280
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4281
  cat >conftest.$ac_ext <<_ACEOF
 
4282
/* confdefs.h.  */
 
4283
_ACEOF
 
4284
cat confdefs.h >>conftest.$ac_ext
 
4285
cat >>conftest.$ac_ext <<_ACEOF
 
4286
/* end confdefs.h.  */
 
4287
#include <stdlib.h>
 
4288
 
 
4289
_ACEOF
 
4290
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4291
  $EGREP "free" >/dev/null 2>&1; then
 
4292
  :
 
4293
else
 
4294
  ac_cv_header_stdc=no
 
4295
fi
 
4296
rm -f conftest*
 
4297
 
 
4298
fi
 
4299
 
 
4300
if test $ac_cv_header_stdc = yes; then
 
4301
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4302
  if test "$cross_compiling" = yes; then
 
4303
  :
 
4304
else
 
4305
  cat >conftest.$ac_ext <<_ACEOF
 
4306
/* confdefs.h.  */
 
4307
_ACEOF
 
4308
cat confdefs.h >>conftest.$ac_ext
 
4309
cat >>conftest.$ac_ext <<_ACEOF
 
4310
/* end confdefs.h.  */
 
4311
#include <ctype.h>
 
4312
#if ((' ' & 0x0FF) == 0x020)
 
4313
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4314
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4315
#else
 
4316
# define ISLOWER(c) \
 
4317
                   (('a' <= (c) && (c) <= 'i') \
 
4318
                     || ('j' <= (c) && (c) <= 'r') \
 
4319
                     || ('s' <= (c) && (c) <= 'z'))
 
4320
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4321
#endif
 
4322
 
 
4323
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4324
int
 
4325
main ()
 
4326
{
 
4327
  int i;
 
4328
  for (i = 0; i < 256; i++)
 
4329
    if (XOR (islower (i), ISLOWER (i))
 
4330
        || toupper (i) != TOUPPER (i))
 
4331
      exit(2);
 
4332
  exit (0);
 
4333
}
 
4334
_ACEOF
 
4335
rm -f conftest$ac_exeext
 
4336
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4337
  (eval $ac_link) 2>&5
 
4338
  ac_status=$?
 
4339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4340
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4341
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4342
  (eval $ac_try) 2>&5
 
4343
  ac_status=$?
 
4344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4345
  (exit $ac_status); }; }; then
 
4346
  :
 
4347
else
 
4348
  echo "$as_me: program exited with status $ac_status" >&5
 
4349
echo "$as_me: failed program was:" >&5
 
4350
sed 's/^/| /' conftest.$ac_ext >&5
 
4351
 
 
4352
( exit $ac_status )
 
4353
ac_cv_header_stdc=no
 
4354
fi
 
4355
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4356
fi
 
4357
fi
 
4358
fi
 
4359
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4360
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4361
if test $ac_cv_header_stdc = yes; then
 
4362
 
 
4363
cat >>confdefs.h <<\_ACEOF
 
4364
#define STDC_HEADERS 1
 
4365
_ACEOF
 
4366
 
 
4367
fi
 
4368
 
 
4369
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4370
 
 
4371
 
 
4372
 
 
4373
 
 
4374
 
 
4375
 
 
4376
 
 
4377
 
 
4378
 
 
4379
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4380
                  inttypes.h stdint.h unistd.h
 
4381
do
 
4382
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4383
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4384
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4385
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4386
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4387
else
 
4388
  cat >conftest.$ac_ext <<_ACEOF
 
4389
/* confdefs.h.  */
 
4390
_ACEOF
 
4391
cat confdefs.h >>conftest.$ac_ext
 
4392
cat >>conftest.$ac_ext <<_ACEOF
 
4393
/* end confdefs.h.  */
 
4394
$ac_includes_default
 
4395
 
 
4396
#include <$ac_header>
 
4397
_ACEOF
 
4398
rm -f conftest.$ac_objext
 
4399
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4400
  (eval $ac_compile) 2>conftest.er1
 
4401
  ac_status=$?
 
4402
  grep -v '^ *+' conftest.er1 >conftest.err
 
4403
  rm -f conftest.er1
 
4404
  cat conftest.err >&5
 
4405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4406
  (exit $ac_status); } &&
 
4407
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4408
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4409
  (eval $ac_try) 2>&5
 
4410
  ac_status=$?
 
4411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4412
  (exit $ac_status); }; } &&
 
4413
         { ac_try='test -s conftest.$ac_objext'
 
4414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4415
  (eval $ac_try) 2>&5
 
4416
  ac_status=$?
 
4417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4418
  (exit $ac_status); }; }; then
 
4419
  eval "$as_ac_Header=yes"
 
4420
else
 
4421
  echo "$as_me: failed program was:" >&5
 
4422
sed 's/^/| /' conftest.$ac_ext >&5
 
4423
 
 
4424
eval "$as_ac_Header=no"
 
4425
fi
 
4426
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4427
fi
 
4428
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4429
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4430
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4431
  cat >>confdefs.h <<_ACEOF
 
4432
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4433
_ACEOF
 
4434
 
 
4435
fi
 
4436
 
 
4437
done
 
4438
 
 
4439
 
 
4440
 
 
4441
for ac_header in dlfcn.h
 
4442
do
 
4443
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4444
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4445
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4446
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4447
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4448
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4449
fi
 
4450
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4451
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4452
else
 
4453
  # Is the header compilable?
 
4454
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4455
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4456
cat >conftest.$ac_ext <<_ACEOF
 
4457
/* confdefs.h.  */
 
4458
_ACEOF
 
4459
cat confdefs.h >>conftest.$ac_ext
 
4460
cat >>conftest.$ac_ext <<_ACEOF
 
4461
/* end confdefs.h.  */
 
4462
$ac_includes_default
 
4463
#include <$ac_header>
 
4464
_ACEOF
 
4465
rm -f conftest.$ac_objext
 
4466
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4467
  (eval $ac_compile) 2>conftest.er1
 
4468
  ac_status=$?
 
4469
  grep -v '^ *+' conftest.er1 >conftest.err
 
4470
  rm -f conftest.er1
 
4471
  cat conftest.err >&5
 
4472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4473
  (exit $ac_status); } &&
 
4474
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4475
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4476
  (eval $ac_try) 2>&5
 
4477
  ac_status=$?
 
4478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4479
  (exit $ac_status); }; } &&
 
4480
         { ac_try='test -s conftest.$ac_objext'
 
4481
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4482
  (eval $ac_try) 2>&5
 
4483
  ac_status=$?
 
4484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4485
  (exit $ac_status); }; }; then
 
4486
  ac_header_compiler=yes
 
4487
else
 
4488
  echo "$as_me: failed program was:" >&5
 
4489
sed 's/^/| /' conftest.$ac_ext >&5
 
4490
 
 
4491
ac_header_compiler=no
 
4492
fi
 
4493
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4494
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4495
echo "${ECHO_T}$ac_header_compiler" >&6
 
4496
 
 
4497
# Is the header present?
 
4498
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4499
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4500
cat >conftest.$ac_ext <<_ACEOF
 
4501
/* confdefs.h.  */
 
4502
_ACEOF
 
4503
cat confdefs.h >>conftest.$ac_ext
 
4504
cat >>conftest.$ac_ext <<_ACEOF
 
4505
/* end confdefs.h.  */
 
4506
#include <$ac_header>
 
4507
_ACEOF
 
4508
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4509
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4510
  ac_status=$?
 
4511
  grep -v '^ *+' conftest.er1 >conftest.err
 
4512
  rm -f conftest.er1
 
4513
  cat conftest.err >&5
 
4514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4515
  (exit $ac_status); } >/dev/null; then
 
4516
  if test -s conftest.err; then
 
4517
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4518
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4519
  else
 
4520
    ac_cpp_err=
 
4521
  fi
 
4522
else
 
4523
  ac_cpp_err=yes
 
4524
fi
 
4525
if test -z "$ac_cpp_err"; then
 
4526
  ac_header_preproc=yes
 
4527
else
 
4528
  echo "$as_me: failed program was:" >&5
 
4529
sed 's/^/| /' conftest.$ac_ext >&5
 
4530
 
 
4531
  ac_header_preproc=no
 
4532
fi
 
4533
rm -f conftest.err conftest.$ac_ext
 
4534
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4535
echo "${ECHO_T}$ac_header_preproc" >&6
 
4536
 
 
4537
# So?  What about this header?
 
4538
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4539
  yes:no: )
 
4540
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4541
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4542
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4543
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4544
    ac_header_preproc=yes
 
4545
    ;;
 
4546
  no:yes:* )
 
4547
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4548
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4549
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4550
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4551
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4552
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4553
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4554
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4555
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4556
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4557
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4558
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4559
    (
 
4560
      cat <<\_ASBOX
 
4561
## ------------------------------------------ ##
 
4562
## Report this to the AC_PACKAGE_NAME lists.  ##
 
4563
## ------------------------------------------ ##
 
4564
_ASBOX
 
4565
    ) |
 
4566
      sed "s/^/$as_me: WARNING:     /" >&2
 
4567
    ;;
 
4568
esac
 
4569
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4570
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4571
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4572
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4573
else
 
4574
  eval "$as_ac_Header=\$ac_header_preproc"
 
4575
fi
 
4576
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4577
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4578
 
 
4579
fi
 
4580
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4581
  cat >>confdefs.h <<_ACEOF
 
4582
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4583
_ACEOF
 
4584
 
 
4585
fi
 
4586
 
 
4587
done
 
4588
 
 
4589
ac_ext=cc
 
4590
ac_cpp='$CXXCPP $CPPFLAGS'
 
4591
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4592
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4593
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4594
if test -n "$ac_tool_prefix"; then
 
4595
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4596
  do
 
4597
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4598
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4599
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4600
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4601
if test "${ac_cv_prog_CXX+set}" = set; then
 
4602
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4603
else
 
4604
  if test -n "$CXX"; then
 
4605
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4606
else
 
4607
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4608
for as_dir in $PATH
 
4609
do
 
4610
  IFS=$as_save_IFS
 
4611
  test -z "$as_dir" && as_dir=.
 
4612
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4613
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4614
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4615
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4616
    break 2
 
4617
  fi
 
4618
done
 
4619
done
 
4620
 
 
4621
fi
 
4622
fi
 
4623
CXX=$ac_cv_prog_CXX
 
4624
if test -n "$CXX"; then
 
4625
  echo "$as_me:$LINENO: result: $CXX" >&5
 
4626
echo "${ECHO_T}$CXX" >&6
 
4627
else
 
4628
  echo "$as_me:$LINENO: result: no" >&5
 
4629
echo "${ECHO_T}no" >&6
 
4630
fi
 
4631
 
 
4632
    test -n "$CXX" && break
 
4633
  done
 
4634
fi
 
4635
if test -z "$CXX"; then
 
4636
  ac_ct_CXX=$CXX
 
4637
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4638
do
 
4639
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4640
set dummy $ac_prog; ac_word=$2
 
4641
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4642
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4643
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
4644
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4645
else
 
4646
  if test -n "$ac_ct_CXX"; then
 
4647
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4648
else
 
4649
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4650
for as_dir in $PATH
 
4651
do
 
4652
  IFS=$as_save_IFS
 
4653
  test -z "$as_dir" && as_dir=.
 
4654
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4655
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4656
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4657
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4658
    break 2
 
4659
  fi
 
4660
done
 
4661
done
 
4662
 
 
4663
fi
 
4664
fi
 
4665
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4666
if test -n "$ac_ct_CXX"; then
 
4667
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
4668
echo "${ECHO_T}$ac_ct_CXX" >&6
 
4669
else
 
4670
  echo "$as_me:$LINENO: result: no" >&5
 
4671
echo "${ECHO_T}no" >&6
 
4672
fi
 
4673
 
 
4674
  test -n "$ac_ct_CXX" && break
 
4675
done
 
4676
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
4677
 
 
4678
  CXX=$ac_ct_CXX
 
4679
fi
 
4680
 
 
4681
 
 
4682
# Provide some information about the compiler.
 
4683
echo "$as_me:$LINENO:" \
 
4684
     "checking for C++ compiler version" >&5
 
4685
ac_compiler=`set X $ac_compile; echo $2`
 
4686
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4687
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4688
  ac_status=$?
 
4689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4690
  (exit $ac_status); }
 
4691
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4692
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4693
  ac_status=$?
 
4694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4695
  (exit $ac_status); }
 
4696
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4697
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4698
  ac_status=$?
 
4699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4700
  (exit $ac_status); }
 
4701
 
 
4702
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
4703
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
4704
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
4705
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4706
else
 
4707
  cat >conftest.$ac_ext <<_ACEOF
 
4708
/* confdefs.h.  */
 
4709
_ACEOF
 
4710
cat confdefs.h >>conftest.$ac_ext
 
4711
cat >>conftest.$ac_ext <<_ACEOF
 
4712
/* end confdefs.h.  */
 
4713
 
 
4714
int
 
4715
main ()
 
4716
{
 
4717
#ifndef __GNUC__
 
4718
       choke me
 
4719
#endif
 
4720
 
 
4721
  ;
 
4722
  return 0;
 
4723
}
 
4724
_ACEOF
 
4725
rm -f conftest.$ac_objext
 
4726
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4727
  (eval $ac_compile) 2>conftest.er1
 
4728
  ac_status=$?
 
4729
  grep -v '^ *+' conftest.er1 >conftest.err
 
4730
  rm -f conftest.er1
 
4731
  cat conftest.err >&5
 
4732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4733
  (exit $ac_status); } &&
 
4734
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4735
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4736
  (eval $ac_try) 2>&5
 
4737
  ac_status=$?
 
4738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4739
  (exit $ac_status); }; } &&
 
4740
         { ac_try='test -s conftest.$ac_objext'
 
4741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4742
  (eval $ac_try) 2>&5
 
4743
  ac_status=$?
 
4744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4745
  (exit $ac_status); }; }; then
 
4746
  ac_compiler_gnu=yes
 
4747
else
 
4748
  echo "$as_me: failed program was:" >&5
 
4749
sed 's/^/| /' conftest.$ac_ext >&5
 
4750
 
 
4751
ac_compiler_gnu=no
 
4752
fi
 
4753
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4754
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4755
 
 
4756
fi
 
4757
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
4758
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
4759
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
4760
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4761
ac_save_CXXFLAGS=$CXXFLAGS
 
4762
CXXFLAGS="-g"
 
4763
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
4764
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
4765
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
4766
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4767
else
 
4768
  cat >conftest.$ac_ext <<_ACEOF
 
4769
/* confdefs.h.  */
 
4770
_ACEOF
 
4771
cat confdefs.h >>conftest.$ac_ext
 
4772
cat >>conftest.$ac_ext <<_ACEOF
 
4773
/* end confdefs.h.  */
 
4774
 
 
4775
int
 
4776
main ()
 
4777
{
 
4778
 
 
4779
  ;
 
4780
  return 0;
 
4781
}
 
4782
_ACEOF
 
4783
rm -f conftest.$ac_objext
 
4784
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4785
  (eval $ac_compile) 2>conftest.er1
 
4786
  ac_status=$?
 
4787
  grep -v '^ *+' conftest.er1 >conftest.err
 
4788
  rm -f conftest.er1
 
4789
  cat conftest.err >&5
 
4790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4791
  (exit $ac_status); } &&
 
4792
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4793
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4794
  (eval $ac_try) 2>&5
 
4795
  ac_status=$?
 
4796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4797
  (exit $ac_status); }; } &&
 
4798
         { ac_try='test -s conftest.$ac_objext'
 
4799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4800
  (eval $ac_try) 2>&5
 
4801
  ac_status=$?
 
4802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4803
  (exit $ac_status); }; }; then
 
4804
  ac_cv_prog_cxx_g=yes
 
4805
else
 
4806
  echo "$as_me: failed program was:" >&5
 
4807
sed 's/^/| /' conftest.$ac_ext >&5
 
4808
 
 
4809
ac_cv_prog_cxx_g=no
 
4810
fi
 
4811
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4812
fi
 
4813
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
4814
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
4815
if test "$ac_test_CXXFLAGS" = set; then
 
4816
  CXXFLAGS=$ac_save_CXXFLAGS
 
4817
elif test $ac_cv_prog_cxx_g = yes; then
 
4818
  if test "$GXX" = yes; then
 
4819
    CXXFLAGS="-g -O2"
 
4820
  else
 
4821
    CXXFLAGS="-g"
 
4822
  fi
 
4823
else
 
4824
  if test "$GXX" = yes; then
 
4825
    CXXFLAGS="-O2"
 
4826
  else
 
4827
    CXXFLAGS=
 
4828
  fi
 
4829
fi
 
4830
for ac_declaration in \
 
4831
   '' \
 
4832
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4833
   'extern "C" void std::exit (int); using std::exit;' \
 
4834
   'extern "C" void exit (int) throw ();' \
 
4835
   'extern "C" void exit (int);' \
 
4836
   'void exit (int);'
 
4837
do
 
4838
  cat >conftest.$ac_ext <<_ACEOF
 
4839
/* confdefs.h.  */
 
4840
_ACEOF
 
4841
cat confdefs.h >>conftest.$ac_ext
 
4842
cat >>conftest.$ac_ext <<_ACEOF
 
4843
/* end confdefs.h.  */
 
4844
$ac_declaration
 
4845
#include <stdlib.h>
 
4846
int
 
4847
main ()
 
4848
{
 
4849
exit (42);
 
4850
  ;
 
4851
  return 0;
 
4852
}
 
4853
_ACEOF
 
4854
rm -f conftest.$ac_objext
 
4855
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4856
  (eval $ac_compile) 2>conftest.er1
 
4857
  ac_status=$?
 
4858
  grep -v '^ *+' conftest.er1 >conftest.err
 
4859
  rm -f conftest.er1
 
4860
  cat conftest.err >&5
 
4861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4862
  (exit $ac_status); } &&
 
4863
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4864
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4865
  (eval $ac_try) 2>&5
 
4866
  ac_status=$?
 
4867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4868
  (exit $ac_status); }; } &&
 
4869
         { ac_try='test -s conftest.$ac_objext'
 
4870
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4871
  (eval $ac_try) 2>&5
 
4872
  ac_status=$?
 
4873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4874
  (exit $ac_status); }; }; then
 
4875
  :
 
4876
else
 
4877
  echo "$as_me: failed program was:" >&5
 
4878
sed 's/^/| /' conftest.$ac_ext >&5
 
4879
 
 
4880
continue
 
4881
fi
 
4882
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4883
  cat >conftest.$ac_ext <<_ACEOF
 
4884
/* confdefs.h.  */
 
4885
_ACEOF
 
4886
cat confdefs.h >>conftest.$ac_ext
 
4887
cat >>conftest.$ac_ext <<_ACEOF
 
4888
/* end confdefs.h.  */
 
4889
$ac_declaration
 
4890
int
 
4891
main ()
 
4892
{
 
4893
exit (42);
 
4894
  ;
 
4895
  return 0;
 
4896
}
 
4897
_ACEOF
 
4898
rm -f conftest.$ac_objext
 
4899
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4900
  (eval $ac_compile) 2>conftest.er1
 
4901
  ac_status=$?
 
4902
  grep -v '^ *+' conftest.er1 >conftest.err
 
4903
  rm -f conftest.er1
 
4904
  cat conftest.err >&5
 
4905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4906
  (exit $ac_status); } &&
 
4907
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4908
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4909
  (eval $ac_try) 2>&5
 
4910
  ac_status=$?
 
4911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4912
  (exit $ac_status); }; } &&
 
4913
         { ac_try='test -s conftest.$ac_objext'
 
4914
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4915
  (eval $ac_try) 2>&5
 
4916
  ac_status=$?
 
4917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4918
  (exit $ac_status); }; }; then
 
4919
  break
 
4920
else
 
4921
  echo "$as_me: failed program was:" >&5
 
4922
sed 's/^/| /' conftest.$ac_ext >&5
 
4923
 
 
4924
fi
 
4925
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4926
done
 
4927
rm -f conftest*
 
4928
if test -n "$ac_declaration"; then
 
4929
  echo '#ifdef __cplusplus' >>confdefs.h
 
4930
  echo $ac_declaration      >>confdefs.h
 
4931
  echo '#endif'             >>confdefs.h
 
4932
fi
 
4933
 
 
4934
ac_ext=cc
 
4935
ac_cpp='$CXXCPP $CPPFLAGS'
 
4936
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4937
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4938
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4939
 
 
4940
depcc="$CXX"  am_compiler_list=
 
4941
 
 
4942
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4943
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
4944
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
4945
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4946
else
 
4947
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4948
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4949
  # making bogus files that we don't know about and never remove.  For
 
4950
  # instance it was reported that on HP-UX the gcc test will end up
 
4951
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4952
  # in D'.
 
4953
  mkdir conftest.dir
 
4954
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4955
  # using a relative directory.
 
4956
  cp "$am_depcomp" conftest.dir
 
4957
  cd conftest.dir
 
4958
  # We will build objects and dependencies in a subdirectory because
 
4959
  # it helps to detect inapplicable dependency modes.  For instance
 
4960
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4961
  # side effect of compilation, but ICC will put the dependencies in
 
4962
  # the current directory while Tru64 will put them in the object
 
4963
  # directory.
 
4964
  mkdir sub
 
4965
 
 
4966
  am_cv_CXX_dependencies_compiler_type=none
 
4967
  if test "$am_compiler_list" = ""; then
 
4968
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4969
  fi
 
4970
  for depmode in $am_compiler_list; do
 
4971
    # Setup a source with many dependencies, because some compilers
 
4972
    # like to wrap large dependency lists on column 80 (with \), and
 
4973
    # we should not choose a depcomp mode which is confused by this.
 
4974
    #
 
4975
    # We need to recreate these files for each test, as the compiler may
 
4976
    # overwrite some of them when testing with obscure command lines.
 
4977
    # This happens at least with the AIX C compiler.
 
4978
    : > sub/conftest.c
 
4979
    for i in 1 2 3 4 5 6; do
 
4980
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4981
      : > sub/conftst$i.h
 
4982
    done
 
4983
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4984
 
 
4985
    case $depmode in
 
4986
    nosideeffect)
 
4987
      # after this tag, mechanisms are not by side-effect, so they'll
 
4988
      # only be used when explicitly requested
 
4989
      if test "x$enable_dependency_tracking" = xyes; then
 
4990
        continue
 
4991
      else
 
4992
        break
 
4993
      fi
 
4994
      ;;
 
4995
    none) break ;;
 
4996
    esac
 
4997
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4998
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4999
    # handle `-M -o', and we need to detect this.
 
5000
    if depmode=$depmode \
 
5001
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
5002
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5003
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
5004
         >/dev/null 2>conftest.err &&
 
5005
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5006
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
5007
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5008
      # icc doesn't choke on unknown options, it will just issue warnings
 
5009
      # (even with -Werror).  So we grep stderr for any message
 
5010
      # that says an option was ignored.
 
5011
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
5012
        am_cv_CXX_dependencies_compiler_type=$depmode
 
5013
        break
 
5014
      fi
 
5015
    fi
 
5016
  done
 
5017
 
 
5018
  cd ..
 
5019
  rm -rf conftest.dir
 
5020
else
 
5021
  am_cv_CXX_dependencies_compiler_type=none
 
5022
fi
 
5023
 
 
5024
fi
 
5025
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
5026
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
5027
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
5028
 
 
5029
 
 
5030
 
 
5031
if
 
5032
  test "x$enable_dependency_tracking" != xno \
 
5033
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
5034
  am__fastdepCXX_TRUE=
 
5035
  am__fastdepCXX_FALSE='#'
 
5036
else
 
5037
  am__fastdepCXX_TRUE='#'
 
5038
  am__fastdepCXX_FALSE=
 
5039
fi
 
5040
 
 
5041
 
 
5042
ac_ext=cc
 
5043
ac_cpp='$CXXCPP $CPPFLAGS'
 
5044
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5045
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5046
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5047
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5048
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
5049
if test -z "$CXXCPP"; then
 
5050
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5051
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5052
else
 
5053
      # Double quotes because CXXCPP needs to be expanded
 
5054
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5055
    do
 
5056
      ac_preproc_ok=false
 
5057
for ac_cxx_preproc_warn_flag in '' yes
 
5058
do
 
5059
  # Use a header file that comes with gcc, so configuring glibc
 
5060
  # with a fresh cross-compiler works.
 
5061
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5062
  # <limits.h> exists even on freestanding compilers.
 
5063
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5064
  # not just through cpp. "Syntax error" is here to catch this case.
 
5065
  cat >conftest.$ac_ext <<_ACEOF
 
5066
/* confdefs.h.  */
 
5067
_ACEOF
 
5068
cat confdefs.h >>conftest.$ac_ext
 
5069
cat >>conftest.$ac_ext <<_ACEOF
 
5070
/* end confdefs.h.  */
 
5071
#ifdef __STDC__
 
5072
# include <limits.h>
 
5073
#else
 
5074
# include <assert.h>
 
5075
#endif
 
5076
                     Syntax error
 
5077
_ACEOF
 
5078
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5079
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5080
  ac_status=$?
 
5081
  grep -v '^ *+' conftest.er1 >conftest.err
 
5082
  rm -f conftest.er1
 
5083
  cat conftest.err >&5
 
5084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5085
  (exit $ac_status); } >/dev/null; then
 
5086
  if test -s conftest.err; then
 
5087
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5088
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5089
  else
 
5090
    ac_cpp_err=
 
5091
  fi
 
5092
else
 
5093
  ac_cpp_err=yes
 
5094
fi
 
5095
if test -z "$ac_cpp_err"; then
 
5096
  :
 
5097
else
 
5098
  echo "$as_me: failed program was:" >&5
 
5099
sed 's/^/| /' conftest.$ac_ext >&5
 
5100
 
 
5101
  # Broken: fails on valid input.
 
5102
continue
 
5103
fi
 
5104
rm -f conftest.err conftest.$ac_ext
 
5105
 
 
5106
  # OK, works on sane cases.  Now check whether non-existent headers
 
5107
  # can be detected and how.
 
5108
  cat >conftest.$ac_ext <<_ACEOF
 
5109
/* confdefs.h.  */
 
5110
_ACEOF
 
5111
cat confdefs.h >>conftest.$ac_ext
 
5112
cat >>conftest.$ac_ext <<_ACEOF
 
5113
/* end confdefs.h.  */
 
5114
#include <ac_nonexistent.h>
 
5115
_ACEOF
 
5116
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5117
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5118
  ac_status=$?
 
5119
  grep -v '^ *+' conftest.er1 >conftest.err
 
5120
  rm -f conftest.er1
 
5121
  cat conftest.err >&5
 
5122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5123
  (exit $ac_status); } >/dev/null; then
 
5124
  if test -s conftest.err; then
 
5125
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5126
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5127
  else
 
5128
    ac_cpp_err=
 
5129
  fi
 
5130
else
 
5131
  ac_cpp_err=yes
 
5132
fi
 
5133
if test -z "$ac_cpp_err"; then
 
5134
  # Broken: success on invalid input.
 
5135
continue
 
5136
else
 
5137
  echo "$as_me: failed program was:" >&5
 
5138
sed 's/^/| /' conftest.$ac_ext >&5
 
5139
 
 
5140
  # Passes both tests.
 
5141
ac_preproc_ok=:
 
5142
break
 
5143
fi
 
5144
rm -f conftest.err conftest.$ac_ext
 
5145
 
 
5146
done
 
5147
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5148
rm -f conftest.err conftest.$ac_ext
 
5149
if $ac_preproc_ok; then
 
5150
  break
 
5151
fi
 
5152
 
 
5153
    done
 
5154
    ac_cv_prog_CXXCPP=$CXXCPP
 
5155
 
 
5156
fi
 
5157
  CXXCPP=$ac_cv_prog_CXXCPP
 
5158
else
 
5159
  ac_cv_prog_CXXCPP=$CXXCPP
 
5160
fi
 
5161
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5162
echo "${ECHO_T}$CXXCPP" >&6
 
5163
ac_preproc_ok=false
 
5164
for ac_cxx_preproc_warn_flag in '' yes
 
5165
do
 
5166
  # Use a header file that comes with gcc, so configuring glibc
 
5167
  # with a fresh cross-compiler works.
 
5168
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5169
  # <limits.h> exists even on freestanding compilers.
 
5170
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5171
  # not just through cpp. "Syntax error" is here to catch this case.
 
5172
  cat >conftest.$ac_ext <<_ACEOF
 
5173
/* confdefs.h.  */
 
5174
_ACEOF
 
5175
cat confdefs.h >>conftest.$ac_ext
 
5176
cat >>conftest.$ac_ext <<_ACEOF
 
5177
/* end confdefs.h.  */
 
5178
#ifdef __STDC__
 
5179
# include <limits.h>
 
5180
#else
 
5181
# include <assert.h>
 
5182
#endif
 
5183
                     Syntax error
 
5184
_ACEOF
 
5185
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5186
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5187
  ac_status=$?
 
5188
  grep -v '^ *+' conftest.er1 >conftest.err
 
5189
  rm -f conftest.er1
 
5190
  cat conftest.err >&5
 
5191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5192
  (exit $ac_status); } >/dev/null; then
 
5193
  if test -s conftest.err; then
 
5194
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5195
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5196
  else
 
5197
    ac_cpp_err=
 
5198
  fi
 
5199
else
 
5200
  ac_cpp_err=yes
 
5201
fi
 
5202
if test -z "$ac_cpp_err"; then
 
5203
  :
 
5204
else
 
5205
  echo "$as_me: failed program was:" >&5
 
5206
sed 's/^/| /' conftest.$ac_ext >&5
 
5207
 
 
5208
  # Broken: fails on valid input.
 
5209
continue
 
5210
fi
 
5211
rm -f conftest.err conftest.$ac_ext
 
5212
 
 
5213
  # OK, works on sane cases.  Now check whether non-existent headers
 
5214
  # can be detected and how.
 
5215
  cat >conftest.$ac_ext <<_ACEOF
 
5216
/* confdefs.h.  */
 
5217
_ACEOF
 
5218
cat confdefs.h >>conftest.$ac_ext
 
5219
cat >>conftest.$ac_ext <<_ACEOF
 
5220
/* end confdefs.h.  */
 
5221
#include <ac_nonexistent.h>
 
5222
_ACEOF
 
5223
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5224
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5225
  ac_status=$?
 
5226
  grep -v '^ *+' conftest.er1 >conftest.err
 
5227
  rm -f conftest.er1
 
5228
  cat conftest.err >&5
 
5229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5230
  (exit $ac_status); } >/dev/null; then
 
5231
  if test -s conftest.err; then
 
5232
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5233
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5234
  else
 
5235
    ac_cpp_err=
 
5236
  fi
 
5237
else
 
5238
  ac_cpp_err=yes
 
5239
fi
 
5240
if test -z "$ac_cpp_err"; then
 
5241
  # Broken: success on invalid input.
 
5242
continue
 
5243
else
 
5244
  echo "$as_me: failed program was:" >&5
 
5245
sed 's/^/| /' conftest.$ac_ext >&5
 
5246
 
 
5247
  # Passes both tests.
 
5248
ac_preproc_ok=:
 
5249
break
 
5250
fi
 
5251
rm -f conftest.err conftest.$ac_ext
 
5252
 
 
5253
done
 
5254
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5255
rm -f conftest.err conftest.$ac_ext
 
5256
if $ac_preproc_ok; then
 
5257
  :
 
5258
else
 
5259
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5260
See \`config.log' for more details." >&5
 
5261
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5262
See \`config.log' for more details." >&2;}
 
5263
   { (exit 1); exit 1; }; }
 
5264
fi
 
5265
 
 
5266
ac_ext=cc
 
5267
ac_cpp='$CXXCPP $CPPFLAGS'
 
5268
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5269
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5270
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5271
 
 
5272
 
 
5273
ac_ext=f
 
5274
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5275
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5276
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5277
if test -n "$ac_tool_prefix"; then
 
5278
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5279
  do
 
5280
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5281
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5282
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5283
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5284
if test "${ac_cv_prog_F77+set}" = set; then
 
5285
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5286
else
 
5287
  if test -n "$F77"; then
 
5288
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5289
else
 
5290
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5291
for as_dir in $PATH
 
5292
do
 
5293
  IFS=$as_save_IFS
 
5294
  test -z "$as_dir" && as_dir=.
 
5295
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5296
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5297
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5298
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5299
    break 2
 
5300
  fi
 
5301
done
 
5302
done
 
5303
 
 
5304
fi
 
5305
fi
 
5306
F77=$ac_cv_prog_F77
 
5307
if test -n "$F77"; then
 
5308
  echo "$as_me:$LINENO: result: $F77" >&5
 
5309
echo "${ECHO_T}$F77" >&6
 
5310
else
 
5311
  echo "$as_me:$LINENO: result: no" >&5
 
5312
echo "${ECHO_T}no" >&6
 
5313
fi
 
5314
 
 
5315
    test -n "$F77" && break
 
5316
  done
 
5317
fi
 
5318
if test -z "$F77"; then
 
5319
  ac_ct_F77=$F77
 
5320
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5321
do
 
5322
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5323
set dummy $ac_prog; ac_word=$2
 
5324
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5325
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5326
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5327
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5328
else
 
5329
  if test -n "$ac_ct_F77"; then
 
5330
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
5331
else
 
5332
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5333
for as_dir in $PATH
 
5334
do
 
5335
  IFS=$as_save_IFS
 
5336
  test -z "$as_dir" && as_dir=.
 
5337
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5338
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5339
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
5340
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5341
    break 2
 
5342
  fi
 
5343
done
 
5344
done
 
5345
 
 
5346
fi
 
5347
fi
 
5348
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
5349
if test -n "$ac_ct_F77"; then
 
5350
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
5351
echo "${ECHO_T}$ac_ct_F77" >&6
 
5352
else
 
5353
  echo "$as_me:$LINENO: result: no" >&5
 
5354
echo "${ECHO_T}no" >&6
 
5355
fi
 
5356
 
 
5357
  test -n "$ac_ct_F77" && break
 
5358
done
 
5359
 
 
5360
  F77=$ac_ct_F77
 
5361
fi
 
5362
 
 
5363
 
 
5364
# Provide some information about the compiler.
 
5365
echo "$as_me:5365:" \
 
5366
     "checking for Fortran 77 compiler version" >&5
 
5367
ac_compiler=`set X $ac_compile; echo $2`
 
5368
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
5369
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
5370
  ac_status=$?
 
5371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5372
  (exit $ac_status); }
 
5373
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
5374
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
5375
  ac_status=$?
 
5376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5377
  (exit $ac_status); }
 
5378
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5379
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5380
  ac_status=$?
 
5381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5382
  (exit $ac_status); }
 
5383
rm -f a.out
 
5384
 
 
5385
# If we don't use `.F' as extension, the preprocessor is not run on the
 
5386
# input file.  (Note that this only needs to work for GNU compilers.)
 
5387
ac_save_ext=$ac_ext
 
5388
ac_ext=F
 
5389
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
5390
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
5391
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
5392
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5393
else
 
5394
  cat >conftest.$ac_ext <<_ACEOF
 
5395
      program main
 
5396
#ifndef __GNUC__
 
5397
       choke me
 
5398
#endif
 
5399
 
 
5400
      end
 
5401
_ACEOF
 
5402
rm -f conftest.$ac_objext
 
5403
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5404
  (eval $ac_compile) 2>conftest.er1
 
5405
  ac_status=$?
 
5406
  grep -v '^ *+' conftest.er1 >conftest.err
 
5407
  rm -f conftest.er1
 
5408
  cat conftest.err >&5
 
5409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5410
  (exit $ac_status); } &&
 
5411
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5412
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5413
  (eval $ac_try) 2>&5
 
5414
  ac_status=$?
 
5415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5416
  (exit $ac_status); }; } &&
 
5417
         { ac_try='test -s conftest.$ac_objext'
 
5418
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5419
  (eval $ac_try) 2>&5
 
5420
  ac_status=$?
 
5421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5422
  (exit $ac_status); }; }; then
 
5423
  ac_compiler_gnu=yes
 
5424
else
 
5425
  echo "$as_me: failed program was:" >&5
 
5426
sed 's/^/| /' conftest.$ac_ext >&5
 
5427
 
 
5428
ac_compiler_gnu=no
 
5429
fi
 
5430
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5431
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
5432
 
 
5433
fi
 
5434
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
5435
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
5436
ac_ext=$ac_save_ext
 
5437
ac_test_FFLAGS=${FFLAGS+set}
 
5438
ac_save_FFLAGS=$FFLAGS
 
5439
FFLAGS=
 
5440
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
5441
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
5442
if test "${ac_cv_prog_f77_g+set}" = set; then
 
5443
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5444
else
 
5445
  FFLAGS=-g
 
5446
cat >conftest.$ac_ext <<_ACEOF
 
5447
      program main
 
5448
 
 
5449
      end
 
5450
_ACEOF
 
5451
rm -f conftest.$ac_objext
 
5452
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5453
  (eval $ac_compile) 2>conftest.er1
 
5454
  ac_status=$?
 
5455
  grep -v '^ *+' conftest.er1 >conftest.err
 
5456
  rm -f conftest.er1
 
5457
  cat conftest.err >&5
 
5458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5459
  (exit $ac_status); } &&
 
5460
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5461
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5462
  (eval $ac_try) 2>&5
 
5463
  ac_status=$?
 
5464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5465
  (exit $ac_status); }; } &&
 
5466
         { ac_try='test -s conftest.$ac_objext'
 
5467
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5468
  (eval $ac_try) 2>&5
 
5469
  ac_status=$?
 
5470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5471
  (exit $ac_status); }; }; then
 
5472
  ac_cv_prog_f77_g=yes
 
5473
else
 
5474
  echo "$as_me: failed program was:" >&5
 
5475
sed 's/^/| /' conftest.$ac_ext >&5
 
5476
 
 
5477
ac_cv_prog_f77_g=no
 
5478
fi
 
5479
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5480
 
 
5481
fi
 
5482
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
5483
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
5484
if test "$ac_test_FFLAGS" = set; then
 
5485
  FFLAGS=$ac_save_FFLAGS
 
5486
elif test $ac_cv_prog_f77_g = yes; then
 
5487
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5488
    FFLAGS="-g -O2"
 
5489
  else
 
5490
    FFLAGS="-g"
 
5491
  fi
 
5492
else
 
5493
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5494
    FFLAGS="-O2"
 
5495
  else
 
5496
    FFLAGS=
 
5497
  fi
 
5498
fi
 
5499
 
 
5500
G77=`test $ac_compiler_gnu = yes && echo yes`
 
5501
ac_ext=c
 
5502
ac_cpp='$CPP $CPPFLAGS'
 
5503
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5504
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5505
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5506
 
 
5507
 
 
5508
 
 
5509
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
5510
 
 
5511
# find the maximum length of command line arguments
 
5512
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
5513
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
5514
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
5515
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5516
else
 
5517
    i=0
 
5518
  testring="ABCD"
 
5519
 
 
5520
  case $build_os in
 
5521
  msdosdjgpp*)
 
5522
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5523
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5524
    # during glob expansion).  Even if it were fixed, the result of this
 
5525
    # check would be larger than it should be.
 
5526
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5527
    ;;
 
5528
 
 
5529
  gnu*)
 
5530
    # Under GNU Hurd, this test is not required because there is
 
5531
    # no limit to the length of command line arguments.
 
5532
    # Libtool will interpret -1 as no limit whatsoever
 
5533
    lt_cv_sys_max_cmd_len=-1;
 
5534
    ;;
 
5535
 
 
5536
  cygwin* | mingw*)
 
5537
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5538
    # about 5 minutes as the teststring grows exponentially.
 
5539
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5540
    # you end up with a "frozen" computer, even though with patience
 
5541
    # the test eventually succeeds (with a max line length of 256k).
 
5542
    # Instead, let's just punt: use the minimum linelength reported by
 
5543
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5544
    lt_cv_sys_max_cmd_len=8192;
 
5545
    ;;
 
5546
 
 
5547
  amigaos*)
 
5548
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5549
    # So we just punt and use a minimum line length of 8192.
 
5550
    lt_cv_sys_max_cmd_len=8192;
 
5551
    ;;
 
5552
 
 
5553
 *)
 
5554
    # If test is not a shell built-in, we'll probably end up computing a
 
5555
    # maximum length that is only half of the actual maximum length, but
 
5556
    # we can't tell.
 
5557
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
 
5558
               = "XX$testring") >/dev/null 2>&1 &&
 
5559
            new_result=`expr "X$testring" : ".*" 2>&1` &&
 
5560
            lt_cv_sys_max_cmd_len=$new_result &&
 
5561
            test $i != 17 # 1/2 MB should be enough
 
5562
    do
 
5563
      i=`expr $i + 1`
 
5564
      testring=$testring$testring
 
5565
    done
 
5566
    testring=
 
5567
    # Add a significant safety factor because C++ compilers can tack on massive
 
5568
    # amounts of additional arguments before passing them to the linker.
 
5569
    # It appears as though 1/2 is a usable value.
 
5570
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5571
    ;;
 
5572
  esac
 
5573
 
 
5574
fi
 
5575
 
 
5576
if test -n $lt_cv_sys_max_cmd_len ; then
 
5577
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5578
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
5579
else
 
5580
  echo "$as_me:$LINENO: result: none" >&5
 
5581
echo "${ECHO_T}none" >&6
 
5582
fi
 
5583
 
 
5584
 
 
5585
 
 
5586
 
 
5587
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5588
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5589
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
5590
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
5591
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5592
else
 
5593
 
 
5594
# These are sane defaults that work on at least a few old systems.
 
5595
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5596
 
 
5597
# Character class describing NM global symbol codes.
 
5598
symcode='[BCDEGRST]'
 
5599
 
 
5600
# Regexp to match symbols that can be accessed directly from C.
 
5601
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5602
 
 
5603
# Transform the above into a raw symbol and a C symbol.
 
5604
symxfrm='\1 \2\3 \3'
 
5605
 
 
5606
# Transform an extracted symbol line into a proper C declaration
 
5607
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5608
 
 
5609
# Transform an extracted symbol line into symbol name and symbol address
 
5610
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'"
 
5611
 
 
5612
# Define system-specific variables.
 
5613
case $host_os in
 
5614
aix*)
 
5615
  symcode='[BCDT]'
 
5616
  ;;
 
5617
cygwin* | mingw* | pw32*)
 
5618
  symcode='[ABCDGISTW]'
 
5619
  ;;
 
5620
hpux*) # Its linker distinguishes data from code symbols
 
5621
  if test "$host_cpu" = ia64; then
 
5622
    symcode='[ABCDEGRST]'
 
5623
  fi
 
5624
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5625
  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'"
 
5626
  ;;
 
5627
irix* | nonstopux*)
 
5628
  symcode='[BCDEGRST]'
 
5629
  ;;
 
5630
osf*)
 
5631
  symcode='[BCDEGQRST]'
 
5632
  ;;
 
5633
solaris* | sysv5*)
 
5634
  symcode='[BDRT]'
 
5635
  ;;
 
5636
sysv4)
 
5637
  symcode='[DFNSTU]'
 
5638
  ;;
 
5639
esac
 
5640
 
 
5641
# Handle CRLF in mingw tool chain
 
5642
opt_cr=
 
5643
case $build_os in
 
5644
mingw*)
 
5645
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5646
  ;;
 
5647
esac
 
5648
 
 
5649
# If we're using GNU nm, then use its standard symbol codes.
 
5650
case `$NM -V 2>&1` in
 
5651
*GNU* | *'with BFD'*)
 
5652
  symcode='[ABCDGIRSTW]' ;;
 
5653
esac
 
5654
 
 
5655
# Try without a prefix undercore, then with it.
 
5656
for ac_symprfx in "" "_"; do
 
5657
 
 
5658
  # Write the raw and C identifiers.
 
5659
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
5660
 
 
5661
  # Check to see that the pipe works correctly.
 
5662
  pipe_works=no
 
5663
 
 
5664
  rm -f conftest*
 
5665
  cat > conftest.$ac_ext <<EOF
 
5666
#ifdef __cplusplus
 
5667
extern "C" {
 
5668
#endif
 
5669
char nm_test_var;
 
5670
void nm_test_func(){}
 
5671
#ifdef __cplusplus
 
5672
}
 
5673
#endif
 
5674
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5675
EOF
 
5676
 
 
5677
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5678
  (eval $ac_compile) 2>&5
 
5679
  ac_status=$?
 
5680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5681
  (exit $ac_status); }; then
 
5682
    # Now try to grab the symbols.
 
5683
    nlist=conftest.nm
 
5684
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
5685
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5686
  ac_status=$?
 
5687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5688
  (exit $ac_status); } && test -s "$nlist"; then
 
5689
      # Try sorting and uniquifying the output.
 
5690
      if sort "$nlist" | uniq > "$nlist"T; then
 
5691
        mv -f "$nlist"T "$nlist"
 
5692
      else
 
5693
        rm -f "$nlist"T
 
5694
      fi
 
5695
 
 
5696
      # Make sure that we snagged all the symbols we need.
 
5697
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5698
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5699
          cat <<EOF > conftest.$ac_ext
 
5700
#ifdef __cplusplus
 
5701
extern "C" {
 
5702
#endif
 
5703
 
 
5704
EOF
 
5705
          # Now generate the symbol file.
 
5706
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5707
 
 
5708
          cat <<EOF >> conftest.$ac_ext
 
5709
#if defined (__STDC__) && __STDC__
 
5710
# define lt_ptr_t void *
 
5711
#else
 
5712
# define lt_ptr_t char *
 
5713
# define const
 
5714
#endif
 
5715
 
 
5716
/* The mapping between symbol names and symbols. */
 
5717
const struct {
 
5718
  const char *name;
 
5719
  lt_ptr_t address;
 
5720
}
 
5721
lt_preloaded_symbols[] =
 
5722
{
 
5723
EOF
 
5724
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
5725
          cat <<\EOF >> conftest.$ac_ext
 
5726
  {0, (lt_ptr_t) 0}
 
5727
};
 
5728
 
 
5729
#ifdef __cplusplus
 
5730
}
 
5731
#endif
 
5732
EOF
 
5733
          # Now try linking the two files.
 
5734
          mv conftest.$ac_objext conftstm.$ac_objext
 
5735
          lt_save_LIBS="$LIBS"
 
5736
          lt_save_CFLAGS="$CFLAGS"
 
5737
          LIBS="conftstm.$ac_objext"
 
5738
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
5739
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5740
  (eval $ac_link) 2>&5
 
5741
  ac_status=$?
 
5742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5743
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
5744
            pipe_works=yes
 
5745
          fi
 
5746
          LIBS="$lt_save_LIBS"
 
5747
          CFLAGS="$lt_save_CFLAGS"
 
5748
        else
 
5749
          echo "cannot find nm_test_func in $nlist" >&5
 
5750
        fi
 
5751
      else
 
5752
        echo "cannot find nm_test_var in $nlist" >&5
 
5753
      fi
 
5754
    else
 
5755
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
5756
    fi
 
5757
  else
 
5758
    echo "$progname: failed program was:" >&5
 
5759
    cat conftest.$ac_ext >&5
 
5760
  fi
 
5761
  rm -f conftest* conftst*
 
5762
 
 
5763
  # Do not use the global_symbol_pipe unless it works.
 
5764
  if test "$pipe_works" = yes; then
 
5765
    break
 
5766
  else
 
5767
    lt_cv_sys_global_symbol_pipe=
 
5768
  fi
 
5769
done
 
5770
 
 
5771
fi
 
5772
 
 
5773
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5774
  lt_cv_sys_global_symbol_to_cdecl=
 
5775
fi
 
5776
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5777
  echo "$as_me:$LINENO: result: failed" >&5
 
5778
echo "${ECHO_T}failed" >&6
 
5779
else
 
5780
  echo "$as_me:$LINENO: result: ok" >&5
 
5781
echo "${ECHO_T}ok" >&6
 
5782
fi
 
5783
 
 
5784
echo "$as_me:$LINENO: checking for objdir" >&5
 
5785
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
5786
if test "${lt_cv_objdir+set}" = set; then
 
5787
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5788
else
 
5789
  rm -f .libs 2>/dev/null
 
5790
mkdir .libs 2>/dev/null
 
5791
if test -d .libs; then
 
5792
  lt_cv_objdir=.libs
 
5793
else
 
5794
  # MS-DOS does not allow filenames that begin with a dot.
 
5795
  lt_cv_objdir=_libs
 
5796
fi
 
5797
rmdir .libs 2>/dev/null
 
5798
fi
 
5799
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
5800
echo "${ECHO_T}$lt_cv_objdir" >&6
 
5801
objdir=$lt_cv_objdir
 
5802
 
 
5803
 
 
5804
 
 
5805
 
 
5806
 
 
5807
case $host_os in
 
5808
aix3*)
 
5809
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
5810
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
5811
  # vanish in a puff of smoke.
 
5812
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
5813
    COLLECT_NAMES=
 
5814
    export COLLECT_NAMES
 
5815
  fi
 
5816
  ;;
 
5817
esac
 
5818
 
 
5819
# Sed substitution that helps us do robust quoting.  It backslashifies
 
5820
# metacharacters that are still active within double-quoted strings.
 
5821
Xsed='sed -e s/^X//'
 
5822
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
5823
 
 
5824
# Same as above, but do not quote variable references.
 
5825
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
5826
 
 
5827
# Sed substitution to delay expansion of an escaped shell variable in a
 
5828
# double_quote_subst'ed string.
 
5829
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5830
 
 
5831
# Sed substitution to avoid accidental globbing in evaled expressions
 
5832
no_glob_subst='s/\*/\\\*/g'
 
5833
 
 
5834
# Constants:
 
5835
rm="rm -f"
 
5836
 
 
5837
# Global variables:
 
5838
default_ofile=libtool
 
5839
can_build_shared=yes
 
5840
 
 
5841
# All known linkers require a `.a' archive for static linking (except M$VC,
 
5842
# which needs '.lib').
 
5843
libext=a
 
5844
ltmain="$ac_aux_dir/ltmain.sh"
 
5845
ofile="$default_ofile"
 
5846
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
5847
 
 
5848
if test -n "$ac_tool_prefix"; then
 
5849
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5850
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5851
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5852
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5853
if test "${ac_cv_prog_AR+set}" = set; then
 
5854
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5855
else
 
5856
  if test -n "$AR"; then
 
5857
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5858
else
 
5859
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5860
for as_dir in $PATH
 
5861
do
 
5862
  IFS=$as_save_IFS
 
5863
  test -z "$as_dir" && as_dir=.
 
5864
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5865
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5866
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5867
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5868
    break 2
 
5869
  fi
 
5870
done
 
5871
done
 
5872
 
 
5873
fi
 
5874
fi
 
5875
AR=$ac_cv_prog_AR
 
5876
if test -n "$AR"; then
 
5877
  echo "$as_me:$LINENO: result: $AR" >&5
 
5878
echo "${ECHO_T}$AR" >&6
 
5879
else
 
5880
  echo "$as_me:$LINENO: result: no" >&5
 
5881
echo "${ECHO_T}no" >&6
 
5882
fi
 
5883
 
 
5884
fi
 
5885
if test -z "$ac_cv_prog_AR"; then
 
5886
  ac_ct_AR=$AR
 
5887
  # Extract the first word of "ar", so it can be a program name with args.
 
5888
set dummy ar; ac_word=$2
 
5889
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5890
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5891
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5892
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5893
else
 
5894
  if test -n "$ac_ct_AR"; then
 
5895
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5896
else
 
5897
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5898
for as_dir in $PATH
 
5899
do
 
5900
  IFS=$as_save_IFS
 
5901
  test -z "$as_dir" && as_dir=.
 
5902
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5903
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5904
    ac_cv_prog_ac_ct_AR="ar"
 
5905
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5906
    break 2
 
5907
  fi
 
5908
done
 
5909
done
 
5910
 
 
5911
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
5912
fi
 
5913
fi
 
5914
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5915
if test -n "$ac_ct_AR"; then
 
5916
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5917
echo "${ECHO_T}$ac_ct_AR" >&6
 
5918
else
 
5919
  echo "$as_me:$LINENO: result: no" >&5
 
5920
echo "${ECHO_T}no" >&6
 
5921
fi
 
5922
 
 
5923
  AR=$ac_ct_AR
 
5924
else
 
5925
  AR="$ac_cv_prog_AR"
 
5926
fi
 
5927
 
 
5928
if test -n "$ac_tool_prefix"; then
 
5929
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5930
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5931
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5932
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5933
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5934
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5935
else
 
5936
  if test -n "$RANLIB"; then
 
5937
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5938
else
 
5939
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5940
for as_dir in $PATH
 
5941
do
 
5942
  IFS=$as_save_IFS
 
5943
  test -z "$as_dir" && as_dir=.
 
5944
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5945
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5946
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5947
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5948
    break 2
 
5949
  fi
 
5950
done
 
5951
done
 
5952
 
 
5953
fi
 
5954
fi
 
5955
RANLIB=$ac_cv_prog_RANLIB
 
5956
if test -n "$RANLIB"; then
 
5957
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5958
echo "${ECHO_T}$RANLIB" >&6
 
5959
else
 
5960
  echo "$as_me:$LINENO: result: no" >&5
 
5961
echo "${ECHO_T}no" >&6
 
5962
fi
 
5963
 
 
5964
fi
 
5965
if test -z "$ac_cv_prog_RANLIB"; then
 
5966
  ac_ct_RANLIB=$RANLIB
 
5967
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5968
set dummy ranlib; ac_word=$2
 
5969
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5970
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5971
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5972
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5973
else
 
5974
  if test -n "$ac_ct_RANLIB"; then
 
5975
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5976
else
 
5977
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5978
for as_dir in $PATH
 
5979
do
 
5980
  IFS=$as_save_IFS
 
5981
  test -z "$as_dir" && as_dir=.
 
5982
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5983
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5984
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5985
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5986
    break 2
 
5987
  fi
 
5988
done
 
5989
done
 
5990
 
 
5991
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
5992
fi
 
5993
fi
 
5994
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5995
if test -n "$ac_ct_RANLIB"; then
 
5996
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5997
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
5998
else
 
5999
  echo "$as_me:$LINENO: result: no" >&5
 
6000
echo "${ECHO_T}no" >&6
 
6001
fi
 
6002
 
 
6003
  RANLIB=$ac_ct_RANLIB
 
6004
else
 
6005
  RANLIB="$ac_cv_prog_RANLIB"
 
6006
fi
 
6007
 
 
6008
if test -n "$ac_tool_prefix"; then
 
6009
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6010
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6011
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6012
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6013
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6014
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6015
else
 
6016
  if test -n "$STRIP"; then
 
6017
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6018
else
 
6019
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6020
for as_dir in $PATH
 
6021
do
 
6022
  IFS=$as_save_IFS
 
6023
  test -z "$as_dir" && as_dir=.
 
6024
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6025
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6026
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6027
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6028
    break 2
 
6029
  fi
 
6030
done
 
6031
done
 
6032
 
 
6033
fi
 
6034
fi
 
6035
STRIP=$ac_cv_prog_STRIP
 
6036
if test -n "$STRIP"; then
 
6037
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
6038
echo "${ECHO_T}$STRIP" >&6
 
6039
else
 
6040
  echo "$as_me:$LINENO: result: no" >&5
 
6041
echo "${ECHO_T}no" >&6
 
6042
fi
 
6043
 
 
6044
fi
 
6045
if test -z "$ac_cv_prog_STRIP"; then
 
6046
  ac_ct_STRIP=$STRIP
 
6047
  # Extract the first word of "strip", so it can be a program name with args.
 
6048
set dummy strip; ac_word=$2
 
6049
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6050
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6051
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6052
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6053
else
 
6054
  if test -n "$ac_ct_STRIP"; then
 
6055
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6056
else
 
6057
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6058
for as_dir in $PATH
 
6059
do
 
6060
  IFS=$as_save_IFS
 
6061
  test -z "$as_dir" && as_dir=.
 
6062
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6063
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6064
    ac_cv_prog_ac_ct_STRIP="strip"
 
6065
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6066
    break 2
 
6067
  fi
 
6068
done
 
6069
done
 
6070
 
 
6071
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
6072
fi
 
6073
fi
 
6074
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6075
if test -n "$ac_ct_STRIP"; then
 
6076
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6077
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
6078
else
 
6079
  echo "$as_me:$LINENO: result: no" >&5
 
6080
echo "${ECHO_T}no" >&6
 
6081
fi
 
6082
 
 
6083
  STRIP=$ac_ct_STRIP
 
6084
else
 
6085
  STRIP="$ac_cv_prog_STRIP"
 
6086
fi
 
6087
 
 
6088
 
 
6089
old_CC="$CC"
 
6090
old_CFLAGS="$CFLAGS"
 
6091
 
 
6092
# Set sane defaults for various variables
 
6093
test -z "$AR" && AR=ar
 
6094
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6095
test -z "$AS" && AS=as
 
6096
test -z "$CC" && CC=cc
 
6097
test -z "$LTCC" && LTCC=$CC
 
6098
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6099
test -z "$LD" && LD=ld
 
6100
test -z "$LN_S" && LN_S="ln -s"
 
6101
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6102
test -z "$NM" && NM=nm
 
6103
test -z "$SED" && SED=sed
 
6104
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6105
test -z "$RANLIB" && RANLIB=:
 
6106
test -z "$STRIP" && STRIP=:
 
6107
test -z "$ac_objext" && ac_objext=o
 
6108
 
 
6109
# Determine commands to create old-style static archives.
 
6110
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6111
old_postinstall_cmds='chmod 644 $oldlib'
 
6112
old_postuninstall_cmds=
 
6113
 
 
6114
if test -n "$RANLIB"; then
 
6115
  case $host_os in
 
6116
  openbsd*)
 
6117
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
6118
    ;;
 
6119
  *)
 
6120
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
6121
    ;;
 
6122
  esac
 
6123
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6124
fi
 
6125
 
 
6126
# Only perform the check for file, if the check method requires it
 
6127
case $deplibs_check_method in
 
6128
file_magic*)
 
6129
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6130
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6131
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
6132
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6133
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6134
else
 
6135
  case $MAGIC_CMD in
 
6136
[\\/*] |  ?:[\\/]*)
 
6137
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6138
  ;;
 
6139
*)
 
6140
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6141
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6142
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6143
  for ac_dir in $ac_dummy; do
 
6144
    IFS="$lt_save_ifs"
 
6145
    test -z "$ac_dir" && ac_dir=.
 
6146
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6147
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6148
      if test -n "$file_magic_test_file"; then
 
6149
        case $deplibs_check_method in
 
6150
        "file_magic "*)
 
6151
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6152
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6153
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6154
            $EGREP "$file_magic_regex" > /dev/null; then
 
6155
            :
 
6156
          else
 
6157
            cat <<EOF 1>&2
 
6158
 
 
6159
*** Warning: the command libtool uses to detect shared libraries,
 
6160
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6161
*** The result is that libtool may fail to recognize shared libraries
 
6162
*** as such.  This will affect the creation of libtool libraries that
 
6163
*** depend on shared libraries, but programs linked with such libtool
 
6164
*** libraries will work regardless of this problem.  Nevertheless, you
 
6165
*** may want to report the problem to your system manager and/or to
 
6166
*** bug-libtool@gnu.org
 
6167
 
 
6168
EOF
 
6169
          fi ;;
 
6170
        esac
 
6171
      fi
 
6172
      break
 
6173
    fi
 
6174
  done
 
6175
  IFS="$lt_save_ifs"
 
6176
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6177
  ;;
 
6178
esac
 
6179
fi
 
6180
 
 
6181
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6182
if test -n "$MAGIC_CMD"; then
 
6183
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6184
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6185
else
 
6186
  echo "$as_me:$LINENO: result: no" >&5
 
6187
echo "${ECHO_T}no" >&6
 
6188
fi
 
6189
 
 
6190
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6191
  if test -n "$ac_tool_prefix"; then
 
6192
    echo "$as_me:$LINENO: checking for file" >&5
 
6193
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
6194
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6195
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6196
else
 
6197
  case $MAGIC_CMD in
 
6198
[\\/*] |  ?:[\\/]*)
 
6199
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6200
  ;;
 
6201
*)
 
6202
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6203
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6204
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6205
  for ac_dir in $ac_dummy; do
 
6206
    IFS="$lt_save_ifs"
 
6207
    test -z "$ac_dir" && ac_dir=.
 
6208
    if test -f $ac_dir/file; then
 
6209
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
6210
      if test -n "$file_magic_test_file"; then
 
6211
        case $deplibs_check_method in
 
6212
        "file_magic "*)
 
6213
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6214
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6215
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6216
            $EGREP "$file_magic_regex" > /dev/null; then
 
6217
            :
 
6218
          else
 
6219
            cat <<EOF 1>&2
 
6220
 
 
6221
*** Warning: the command libtool uses to detect shared libraries,
 
6222
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6223
*** The result is that libtool may fail to recognize shared libraries
 
6224
*** as such.  This will affect the creation of libtool libraries that
 
6225
*** depend on shared libraries, but programs linked with such libtool
 
6226
*** libraries will work regardless of this problem.  Nevertheless, you
 
6227
*** may want to report the problem to your system manager and/or to
 
6228
*** bug-libtool@gnu.org
 
6229
 
 
6230
EOF
 
6231
          fi ;;
 
6232
        esac
 
6233
      fi
 
6234
      break
 
6235
    fi
 
6236
  done
 
6237
  IFS="$lt_save_ifs"
 
6238
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6239
  ;;
 
6240
esac
 
6241
fi
 
6242
 
 
6243
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6244
if test -n "$MAGIC_CMD"; then
 
6245
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6246
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6247
else
 
6248
  echo "$as_me:$LINENO: result: no" >&5
 
6249
echo "${ECHO_T}no" >&6
 
6250
fi
 
6251
 
 
6252
  else
 
6253
    MAGIC_CMD=:
 
6254
  fi
 
6255
fi
 
6256
 
 
6257
  fi
 
6258
  ;;
 
6259
esac
 
6260
 
 
6261
enable_dlopen=yes
 
6262
enable_win32_dll=no
 
6263
 
 
6264
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
6265
if test "${enable_libtool_lock+set}" = set; then
 
6266
  enableval="$enable_libtool_lock"
 
6267
 
 
6268
fi;
 
6269
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6270
 
 
6271
 
 
6272
# Check whether --with-pic or --without-pic was given.
 
6273
if test "${with_pic+set}" = set; then
 
6274
  withval="$with_pic"
 
6275
  pic_mode="$withval"
 
6276
else
 
6277
  pic_mode=default
 
6278
fi;
 
6279
test -z "$pic_mode" && pic_mode=default
 
6280
 
 
6281
# Use C for the default configuration in the libtool script
 
6282
tagname=
 
6283
lt_save_CC="$CC"
 
6284
ac_ext=c
 
6285
ac_cpp='$CPP $CPPFLAGS'
 
6286
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6287
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6288
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6289
 
 
6290
 
 
6291
# Source file extension for C test sources.
 
6292
ac_ext=c
 
6293
 
 
6294
# Object file extension for compiled C test sources.
 
6295
objext=o
 
6296
objext=$objext
 
6297
 
 
6298
# Code to be used in simple compile tests
 
6299
lt_simple_compile_test_code="int some_variable = 0;\n"
 
6300
 
 
6301
# Code to be used in simple link tests
 
6302
lt_simple_link_test_code='int main(){return(0);}\n'
 
6303
 
 
6304
 
 
6305
# If no C compiler was specified, use CC.
 
6306
LTCC=${LTCC-"$CC"}
 
6307
 
 
6308
# Allow CC to be a program name with arguments.
 
6309
compiler=$CC
 
6310
 
 
6311
 
 
6312
#
 
6313
# Check for any special shared library compilation flags.
 
6314
#
 
6315
lt_prog_cc_shlib=
 
6316
if test "$GCC" = no; then
 
6317
  case $host_os in
 
6318
  sco3.2v5*)
 
6319
    lt_prog_cc_shlib='-belf'
 
6320
    ;;
 
6321
  esac
 
6322
fi
 
6323
if test -n "$lt_prog_cc_shlib"; then
 
6324
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
6325
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
6326
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
6327
  else
 
6328
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
6329
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
6330
    lt_cv_prog_cc_can_build_shared=no
 
6331
  fi
 
6332
fi
 
6333
 
 
6334
 
 
6335
#
 
6336
# Check to make sure the static flag actually works.
 
6337
#
 
6338
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
6339
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
6340
if test "${lt_prog_compiler_static_works+set}" = set; then
 
6341
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6342
else
 
6343
  lt_prog_compiler_static_works=no
 
6344
   save_LDFLAGS="$LDFLAGS"
 
6345
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
6346
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6347
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
6348
     # The compiler can only warn and ignore the option if not recognized
 
6349
     # So say no if there are warnings
 
6350
     if test -s conftest.err; then
 
6351
       # Append any errors to the config.log.
 
6352
       cat conftest.err 1>&5
 
6353
     else
 
6354
       lt_prog_compiler_static_works=yes
 
6355
     fi
 
6356
   fi
 
6357
   $rm conftest*
 
6358
   LDFLAGS="$save_LDFLAGS"
 
6359
 
 
6360
fi
 
6361
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
6362
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
6363
 
 
6364
if test x"$lt_prog_compiler_static_works" = xyes; then
 
6365
    :
 
6366
else
 
6367
    lt_prog_compiler_static=
 
6368
fi
 
6369
 
 
6370
 
 
6371
 
 
6372
 
 
6373
lt_prog_compiler_no_builtin_flag=
 
6374
 
 
6375
if test "$GCC" = yes; then
 
6376
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
6377
 
 
6378
 
 
6379
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
6380
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
6381
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
6382
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6383
else
 
6384
  lt_cv_prog_compiler_rtti_exceptions=no
 
6385
  ac_outfile=conftest.$ac_objext
 
6386
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6387
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
6388
   # Insert the option either (1) after the last *FLAGS variable, or
 
6389
   # (2) before a word containing "conftest.", or (3) at the end.
 
6390
   # Note that $ac_compile itself does not contain backslashes and begins
 
6391
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6392
   # The option is referenced via a variable to avoid confusing sed.
 
6393
   lt_compile=`echo "$ac_compile" | $SED \
 
6394
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6395
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6396
   -e 's:$: $lt_compiler_flag:'`
 
6397
   (eval echo "\"\$as_me:6397: $lt_compile\"" >&5)
 
6398
   (eval "$lt_compile" 2>conftest.err)
 
6399
   ac_status=$?
 
6400
   cat conftest.err >&5
 
6401
   echo "$as_me:6401: \$? = $ac_status" >&5
 
6402
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6403
     # The compiler can only warn and ignore the option if not recognized
 
6404
     # So say no if there are warnings
 
6405
     if test ! -s conftest.err; then
 
6406
       lt_cv_prog_compiler_rtti_exceptions=yes
 
6407
     fi
 
6408
   fi
 
6409
   $rm conftest*
 
6410
 
 
6411
fi
 
6412
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
6413
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
6414
 
 
6415
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
6416
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
6417
else
 
6418
    :
 
6419
fi
 
6420
 
 
6421
fi
 
6422
 
 
6423
lt_prog_compiler_wl=
 
6424
lt_prog_compiler_pic=
 
6425
lt_prog_compiler_static=
 
6426
 
 
6427
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
6428
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
6429
 
 
6430
  if test "$GCC" = yes; then
 
6431
    lt_prog_compiler_wl='-Wl,'
 
6432
    lt_prog_compiler_static='-static'
 
6433
 
 
6434
    case $host_os in
 
6435
      aix*)
 
6436
      # All AIX code is PIC.
 
6437
      if test "$host_cpu" = ia64; then
 
6438
        # AIX 5 now supports IA64 processor
 
6439
        lt_prog_compiler_static='-Bstatic'
 
6440
      fi
 
6441
      ;;
 
6442
 
 
6443
    amigaos*)
 
6444
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6445
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6446
      # like `-m68040'.
 
6447
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
6448
      ;;
 
6449
 
 
6450
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6451
      # PIC is the default for these OSes.
 
6452
      ;;
 
6453
 
 
6454
    mingw* | pw32* | os2*)
 
6455
      # This hack is so that the source file can tell whether it is being
 
6456
      # built for inclusion in a dll (and should export symbols for example).
 
6457
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6458
      ;;
 
6459
 
 
6460
    darwin* | rhapsody*)
 
6461
      # PIC is the default on this platform
 
6462
      # Common symbols not allowed in MH_DYLIB files
 
6463
      lt_prog_compiler_pic='-fno-common'
 
6464
      ;;
 
6465
 
 
6466
    msdosdjgpp*)
 
6467
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
6468
      # on systems that don't support them.
 
6469
      lt_prog_compiler_can_build_shared=no
 
6470
      enable_shared=no
 
6471
      ;;
 
6472
 
 
6473
    sysv4*MP*)
 
6474
      if test -d /usr/nec; then
 
6475
        lt_prog_compiler_pic=-Kconform_pic
 
6476
      fi
 
6477
      ;;
 
6478
 
 
6479
    hpux*)
 
6480
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6481
      # not for PA HP-UX.
 
6482
      case "$host_cpu" in
 
6483
      hppa*64*|ia64*)
 
6484
        # +Z the default
 
6485
        ;;
 
6486
      *)
 
6487
        lt_prog_compiler_pic='-fPIC'
 
6488
        ;;
 
6489
      esac
 
6490
      ;;
 
6491
 
 
6492
    *)
 
6493
      lt_prog_compiler_pic='-fPIC'
 
6494
      ;;
 
6495
    esac
 
6496
  else
 
6497
    # PORTME Check for flag to pass linker flags through the system compiler.
 
6498
    case $host_os in
 
6499
    aix*)
 
6500
      lt_prog_compiler_wl='-Wl,'
 
6501
      if test "$host_cpu" = ia64; then
 
6502
        # AIX 5 now supports IA64 processor
 
6503
        lt_prog_compiler_static='-Bstatic'
 
6504
      else
 
6505
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
6506
      fi
 
6507
      ;;
 
6508
 
 
6509
    mingw* | pw32* | os2*)
 
6510
      # This hack is so that the source file can tell whether it is being
 
6511
      # built for inclusion in a dll (and should export symbols for example).
 
6512
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6513
      ;;
 
6514
 
 
6515
    hpux9* | hpux10* | hpux11*)
 
6516
      lt_prog_compiler_wl='-Wl,'
 
6517
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6518
      # not for PA HP-UX.
 
6519
      case "$host_cpu" in
 
6520
      hppa*64*|ia64*)
 
6521
        # +Z the default
 
6522
        ;;
 
6523
      *)
 
6524
        lt_prog_compiler_pic='+Z'
 
6525
        ;;
 
6526
      esac
 
6527
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
6528
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
6529
      ;;
 
6530
 
 
6531
    irix5* | irix6* | nonstopux*)
 
6532
      lt_prog_compiler_wl='-Wl,'
 
6533
      # PIC (with -KPIC) is the default.
 
6534
      lt_prog_compiler_static='-non_shared'
 
6535
      ;;
 
6536
 
 
6537
    newsos6)
 
6538
      lt_prog_compiler_pic='-KPIC'
 
6539
      lt_prog_compiler_static='-Bstatic'
 
6540
      ;;
 
6541
 
 
6542
    linux*)
 
6543
      case $CC in
 
6544
      icc* | ecc*)
 
6545
        lt_prog_compiler_wl='-Wl,'
 
6546
        lt_prog_compiler_pic='-KPIC'
 
6547
        lt_prog_compiler_static='-static'
 
6548
        ;;
 
6549
      ccc*)
 
6550
        lt_prog_compiler_wl='-Wl,'
 
6551
        # All Alpha code is PIC.
 
6552
        lt_prog_compiler_static='-non_shared'
 
6553
        ;;
 
6554
      esac
 
6555
      ;;
 
6556
 
 
6557
    osf3* | osf4* | osf5*)
 
6558
      lt_prog_compiler_wl='-Wl,'
 
6559
      # All OSF/1 code is PIC.
 
6560
      lt_prog_compiler_static='-non_shared'
 
6561
      ;;
 
6562
 
 
6563
    sco3.2v5*)
 
6564
      lt_prog_compiler_pic='-Kpic'
 
6565
      lt_prog_compiler_static='-dn'
 
6566
      ;;
 
6567
 
 
6568
    solaris*)
 
6569
      lt_prog_compiler_wl='-Wl,'
 
6570
      lt_prog_compiler_pic='-KPIC'
 
6571
      lt_prog_compiler_static='-Bstatic'
 
6572
      ;;
 
6573
 
 
6574
    sunos4*)
 
6575
      lt_prog_compiler_wl='-Qoption ld '
 
6576
      lt_prog_compiler_pic='-PIC'
 
6577
      lt_prog_compiler_static='-Bstatic'
 
6578
      ;;
 
6579
 
 
6580
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6581
      lt_prog_compiler_wl='-Wl,'
 
6582
      lt_prog_compiler_pic='-KPIC'
 
6583
      lt_prog_compiler_static='-Bstatic'
 
6584
      ;;
 
6585
 
 
6586
    sysv4*MP*)
 
6587
      if test -d /usr/nec ;then
 
6588
        lt_prog_compiler_pic='-Kconform_pic'
 
6589
        lt_prog_compiler_static='-Bstatic'
 
6590
      fi
 
6591
      ;;
 
6592
 
 
6593
    uts4*)
 
6594
      lt_prog_compiler_pic='-pic'
 
6595
      lt_prog_compiler_static='-Bstatic'
 
6596
      ;;
 
6597
 
 
6598
    *)
 
6599
      lt_prog_compiler_can_build_shared=no
 
6600
      ;;
 
6601
    esac
 
6602
  fi
 
6603
 
 
6604
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
6605
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
6606
 
 
6607
#
 
6608
# Check to make sure the PIC flag actually works.
 
6609
#
 
6610
if test -n "$lt_prog_compiler_pic"; then
 
6611
 
 
6612
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
6613
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
6614
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
6615
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6616
else
 
6617
  lt_prog_compiler_pic_works=no
 
6618
  ac_outfile=conftest.$ac_objext
 
6619
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6620
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
6621
   # Insert the option either (1) after the last *FLAGS variable, or
 
6622
   # (2) before a word containing "conftest.", or (3) at the end.
 
6623
   # Note that $ac_compile itself does not contain backslashes and begins
 
6624
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6625
   # The option is referenced via a variable to avoid confusing sed.
 
6626
   lt_compile=`echo "$ac_compile" | $SED \
 
6627
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6628
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6629
   -e 's:$: $lt_compiler_flag:'`
 
6630
   (eval echo "\"\$as_me:6630: $lt_compile\"" >&5)
 
6631
   (eval "$lt_compile" 2>conftest.err)
 
6632
   ac_status=$?
 
6633
   cat conftest.err >&5
 
6634
   echo "$as_me:6634: \$? = $ac_status" >&5
 
6635
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6636
     # The compiler can only warn and ignore the option if not recognized
 
6637
     # So say no if there are warnings
 
6638
     if test ! -s conftest.err; then
 
6639
       lt_prog_compiler_pic_works=yes
 
6640
     fi
 
6641
   fi
 
6642
   $rm conftest*
 
6643
 
 
6644
fi
 
6645
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
6646
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
6647
 
 
6648
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
6649
    case $lt_prog_compiler_pic in
 
6650
     "" | " "*) ;;
 
6651
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
6652
     esac
 
6653
else
 
6654
    lt_prog_compiler_pic=
 
6655
     lt_prog_compiler_can_build_shared=no
 
6656
fi
 
6657
 
 
6658
fi
 
6659
case "$host_os" in
 
6660
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6661
  *djgpp*)
 
6662
    lt_prog_compiler_pic=
 
6663
    ;;
 
6664
  *)
 
6665
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
6666
    ;;
 
6667
esac
 
6668
 
 
6669
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
6670
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
6671
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
6672
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6673
else
 
6674
  lt_cv_prog_compiler_c_o=no
 
6675
   $rm -r conftest 2>/dev/null
 
6676
   mkdir conftest
 
6677
   cd conftest
 
6678
   mkdir out
 
6679
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6680
 
 
6681
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
6682
   # that will create temporary files in the current directory regardless of
 
6683
   # the output directory.  Thus, making CWD read-only will cause this test
 
6684
   # to fail, enabling locking or at least warning the user not to do parallel
 
6685
   # builds.
 
6686
   chmod -w .
 
6687
 
 
6688
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
6689
   # Insert the option either (1) after the last *FLAGS variable, or
 
6690
   # (2) before a word containing "conftest.", or (3) at the end.
 
6691
   # Note that $ac_compile itself does not contain backslashes and begins
 
6692
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6693
   lt_compile=`echo "$ac_compile" | $SED \
 
6694
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6695
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6696
   -e 's:$: $lt_compiler_flag:'`
 
6697
   (eval echo "\"\$as_me:6697: $lt_compile\"" >&5)
 
6698
   (eval "$lt_compile" 2>out/conftest.err)
 
6699
   ac_status=$?
 
6700
   cat out/conftest.err >&5
 
6701
   echo "$as_me:6701: \$? = $ac_status" >&5
 
6702
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
6703
   then
 
6704
     # The compiler can only warn and ignore the option if not recognized
 
6705
     # So say no if there are warnings
 
6706
     if test ! -s out/conftest.err; then
 
6707
       lt_cv_prog_compiler_c_o=yes
 
6708
     fi
 
6709
   fi
 
6710
   chmod u+w .
 
6711
   $rm conftest*
 
6712
   # SGI C++ compiler will create directory out/ii_files/ for
 
6713
   # template instantiation
 
6714
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
6715
   $rm out/* && rmdir out
 
6716
   cd ..
 
6717
   rmdir conftest
 
6718
   $rm conftest*
 
6719
 
 
6720
fi
 
6721
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
6722
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
6723
 
 
6724
 
 
6725
hard_links="nottested"
 
6726
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
6727
  # do not overwrite the value of need_locks provided by the user
 
6728
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
6729
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
6730
  hard_links=yes
 
6731
  $rm conftest*
 
6732
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6733
  touch conftest.a
 
6734
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
6735
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6736
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
6737
echo "${ECHO_T}$hard_links" >&6
 
6738
  if test "$hard_links" = no; then
 
6739
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
6740
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
6741
    need_locks=warn
 
6742
  fi
 
6743
else
 
6744
  need_locks=no
 
6745
fi
 
6746
 
 
6747
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
6748
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
6749
 
 
6750
  runpath_var=
 
6751
  allow_undefined_flag=
 
6752
  enable_shared_with_static_runtimes=no
 
6753
  archive_cmds=
 
6754
  archive_expsym_cmds=
 
6755
  old_archive_From_new_cmds=
 
6756
  old_archive_from_expsyms_cmds=
 
6757
  export_dynamic_flag_spec=
 
6758
  whole_archive_flag_spec=
 
6759
  thread_safe_flag_spec=
 
6760
  hardcode_libdir_flag_spec=
 
6761
  hardcode_libdir_flag_spec_ld=
 
6762
  hardcode_libdir_separator=
 
6763
  hardcode_direct=no
 
6764
  hardcode_minus_L=no
 
6765
  hardcode_shlibpath_var=unsupported
 
6766
  link_all_deplibs=unknown
 
6767
  hardcode_automatic=no
 
6768
  module_cmds=
 
6769
  module_expsym_cmds=
 
6770
  always_export_symbols=no
 
6771
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6772
  # include_expsyms should be a list of space-separated symbols to be *always*
 
6773
  # included in the symbol list
 
6774
  include_expsyms=
 
6775
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
6776
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
6777
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6778
  # as well as any symbol that contains `d'.
 
6779
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
6780
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6781
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
6782
  # the symbol is explicitly referenced.  Since portable code cannot
 
6783
  # rely on this symbol name, it's probably fine to never include it in
 
6784
  # preloaded symbol tables.
 
6785
  extract_expsyms_cmds=
 
6786
 
 
6787
  case $host_os in
 
6788
  cygwin* | mingw* | pw32*)
 
6789
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6790
    # When not using gcc, we currently assume that we are using
 
6791
    # Microsoft Visual C++.
 
6792
    if test "$GCC" != yes; then
 
6793
      with_gnu_ld=no
 
6794
    fi
 
6795
    ;;
 
6796
  openbsd*)
 
6797
    with_gnu_ld=no
 
6798
    ;;
 
6799
  esac
 
6800
 
 
6801
  ld_shlibs=yes
 
6802
  if test "$with_gnu_ld" = yes; then
 
6803
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
6804
    wlarc='${wl}'
 
6805
 
 
6806
    # See if GNU ld supports shared libraries.
 
6807
    case $host_os in
 
6808
    aix3* | aix4* | aix5*)
 
6809
      # On AIX/PPC, the GNU linker is very broken
 
6810
      if test "$host_cpu" != ia64; then
 
6811
        ld_shlibs=no
 
6812
        cat <<EOF 1>&2
 
6813
 
 
6814
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6815
*** to be unable to reliably create shared libraries on AIX.
 
6816
*** Therefore, libtool is disabling shared libraries support.  If you
 
6817
*** really care for shared libraries, you may want to modify your PATH
 
6818
*** so that a non-GNU linker is found, and then restart.
 
6819
 
 
6820
EOF
 
6821
      fi
 
6822
      ;;
 
6823
 
 
6824
    amigaos*)
 
6825
      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)'
 
6826
      hardcode_libdir_flag_spec='-L$libdir'
 
6827
      hardcode_minus_L=yes
 
6828
 
 
6829
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6830
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6831
      # to version 4, is to share data among multiple programs linked
 
6832
      # with the same dynamic library.  Since this doesn't match the
 
6833
      # behavior of shared libraries on other platforms, we can't use
 
6834
      # them.
 
6835
      ld_shlibs=no
 
6836
      ;;
 
6837
 
 
6838
    beos*)
 
6839
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6840
        allow_undefined_flag=unsupported
 
6841
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6842
        # support --undefined.  This deserves some investigation.  FIXME
 
6843
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6844
      else
 
6845
        ld_shlibs=no
 
6846
      fi
 
6847
      ;;
 
6848
 
 
6849
    cygwin* | mingw* | pw32*)
 
6850
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
6851
      # as there is no search path for DLLs.
 
6852
      hardcode_libdir_flag_spec='-L$libdir'
 
6853
      allow_undefined_flag=unsupported
 
6854
      always_export_symbols=no
 
6855
      enable_shared_with_static_runtimes=yes
 
6856
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6857
 
 
6858
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6859
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
6860
        # If the export-symbols file already is a .def file (1st line
 
6861
        # is EXPORTS), use it as is; otherwise, prepend...
 
6862
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6863
          cp $export_symbols $output_objdir/$soname.def;
 
6864
        else
 
6865
          echo EXPORTS > $output_objdir/$soname.def;
 
6866
          cat $export_symbols >> $output_objdir/$soname.def;
 
6867
        fi~
 
6868
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
6869
      else
 
6870
        ld_shlibs=no
 
6871
      fi
 
6872
      ;;
 
6873
 
 
6874
    netbsd*)
 
6875
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6876
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6877
        wlarc=
 
6878
      else
 
6879
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6880
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6881
      fi
 
6882
      ;;
 
6883
 
 
6884
    solaris* | sysv5*)
 
6885
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
6886
        ld_shlibs=no
 
6887
        cat <<EOF 1>&2
 
6888
 
 
6889
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
6890
*** create shared libraries on Solaris systems.  Therefore, libtool
 
6891
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6892
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
6893
*** your PATH or compiler configuration so that the native linker is
 
6894
*** used, and then restart.
 
6895
 
 
6896
EOF
 
6897
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6898
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6899
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6900
      else
 
6901
        ld_shlibs=no
 
6902
      fi
 
6903
      ;;
 
6904
 
 
6905
    sunos4*)
 
6906
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6907
      wlarc=
 
6908
      hardcode_direct=yes
 
6909
      hardcode_shlibpath_var=no
 
6910
      ;;
 
6911
 
 
6912
  linux*)
 
6913
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
6914
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6915
        archive_cmds="$tmp_archive_cmds"
 
6916
      supports_anon_versioning=no
 
6917
      case `$LD -v 2>/dev/null` in
 
6918
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6919
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6920
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6921
        *\ 2.11.*) ;; # other 2.11 versions
 
6922
        *) supports_anon_versioning=yes ;;
 
6923
      esac
 
6924
      if test $supports_anon_versioning = yes; then
 
6925
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
6926
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6927
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
6928
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6929
      else
 
6930
        archive_expsym_cmds="$tmp_archive_cmds"
 
6931
      fi
 
6932
    else
 
6933
      ld_shlibs=no
 
6934
    fi
 
6935
    ;;
 
6936
 
 
6937
    *)
 
6938
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6939
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6940
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6941
      else
 
6942
        ld_shlibs=no
 
6943
      fi
 
6944
      ;;
 
6945
    esac
 
6946
 
 
6947
    if test "$ld_shlibs" = yes; then
 
6948
      runpath_var=LD_RUN_PATH
 
6949
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6950
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
6951
      # ancient GNU ld didn't support --whole-archive et. al.
 
6952
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6953
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6954
      else
 
6955
        whole_archive_flag_spec=
 
6956
      fi
 
6957
    fi
 
6958
  else
 
6959
    # PORTME fill in a description of your system's linker (not GNU ld)
 
6960
    case $host_os in
 
6961
    aix3*)
 
6962
      allow_undefined_flag=unsupported
 
6963
      always_export_symbols=yes
 
6964
      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'
 
6965
      # Note: this linker hardcodes the directories in LIBPATH if there
 
6966
      # are no directories specified by -L.
 
6967
      hardcode_minus_L=yes
 
6968
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
6969
        # Neither direct hardcoding nor static linking is supported with a
 
6970
        # broken collect2.
 
6971
        hardcode_direct=unsupported
 
6972
      fi
 
6973
      ;;
 
6974
 
 
6975
    aix4* | aix5*)
 
6976
      if test "$host_cpu" = ia64; then
 
6977
        # On IA64, the linker does run time linking by default, so we don't
 
6978
        # have to do anything special.
 
6979
        aix_use_runtimelinking=no
 
6980
        exp_sym_flag='-Bexport'
 
6981
        no_entry_flag=""
 
6982
      else
 
6983
        # If we're using GNU nm, then we don't want the "-C" option.
 
6984
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6985
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6986
          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'
 
6987
        else
 
6988
          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'
 
6989
        fi
 
6990
        aix_use_runtimelinking=no
 
6991
 
 
6992
        # Test if we are trying to use run time linking or normal
 
6993
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6994
        # need to do runtime linking.
 
6995
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
6996
          for ld_flag in $LDFLAGS; do
 
6997
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6998
            aix_use_runtimelinking=yes
 
6999
            break
 
7000
          fi
 
7001
          done
 
7002
        esac
 
7003
 
 
7004
        exp_sym_flag='-bexport'
 
7005
        no_entry_flag='-bnoentry'
 
7006
      fi
 
7007
 
 
7008
      # When large executables or shared objects are built, AIX ld can
 
7009
      # have problems creating the table of contents.  If linking a library
 
7010
      # or program results in "error TOC overflow" add -mminimal-toc to
 
7011
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
7012
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
7013
 
 
7014
      archive_cmds=''
 
7015
      hardcode_direct=yes
 
7016
      hardcode_libdir_separator=':'
 
7017
      link_all_deplibs=yes
 
7018
 
 
7019
      if test "$GCC" = yes; then
 
7020
        case $host_os in aix4.012|aix4.012.*)
 
7021
        # We only want to do this on AIX 4.2 and lower, the check
 
7022
        # below for broken collect2 doesn't work under 4.3+
 
7023
          collect2name=`${CC} -print-prog-name=collect2`
 
7024
          if test -f "$collect2name" && \
 
7025
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
7026
          then
 
7027
          # We have reworked collect2
 
7028
          hardcode_direct=yes
 
7029
          else
 
7030
          # We have old collect2
 
7031
          hardcode_direct=unsupported
 
7032
          # It fails to find uninstalled libraries when the uninstalled
 
7033
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7034
          # to unsupported forces relinking
 
7035
          hardcode_minus_L=yes
 
7036
          hardcode_libdir_flag_spec='-L$libdir'
 
7037
          hardcode_libdir_separator=
 
7038
          fi
 
7039
        esac
 
7040
        shared_flag='-shared'
 
7041
      else
 
7042
        # not using gcc
 
7043
        if test "$host_cpu" = ia64; then
 
7044
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7045
        # chokes on -Wl,-G. The following line is correct:
 
7046
          shared_flag='-G'
 
7047
        else
 
7048
        if test "$aix_use_runtimelinking" = yes; then
 
7049
            shared_flag='${wl}-G'
 
7050
          else
 
7051
            shared_flag='${wl}-bM:SRE'
 
7052
        fi
 
7053
        fi
 
7054
      fi
 
7055
 
 
7056
      # It seems that -bexpall does not export symbols beginning with
 
7057
      # underscore (_), so it is better to generate a list of symbols to export.
 
7058
      always_export_symbols=yes
 
7059
      if test "$aix_use_runtimelinking" = yes; then
 
7060
        # Warning - without using the other runtime loading flags (-brtl),
 
7061
        # -berok will link without error, but may produce a broken library.
 
7062
        allow_undefined_flag='-berok'
 
7063
       # Determine the default libpath from the value encoded in an empty executable.
 
7064
       cat >conftest.$ac_ext <<_ACEOF
 
7065
/* confdefs.h.  */
 
7066
_ACEOF
 
7067
cat confdefs.h >>conftest.$ac_ext
 
7068
cat >>conftest.$ac_ext <<_ACEOF
 
7069
/* end confdefs.h.  */
 
7070
 
 
7071
int
 
7072
main ()
 
7073
{
 
7074
 
 
7075
  ;
 
7076
  return 0;
 
7077
}
 
7078
_ACEOF
 
7079
rm -f conftest.$ac_objext conftest$ac_exeext
 
7080
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7081
  (eval $ac_link) 2>conftest.er1
 
7082
  ac_status=$?
 
7083
  grep -v '^ *+' conftest.er1 >conftest.err
 
7084
  rm -f conftest.er1
 
7085
  cat conftest.err >&5
 
7086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7087
  (exit $ac_status); } &&
 
7088
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7089
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7090
  (eval $ac_try) 2>&5
 
7091
  ac_status=$?
 
7092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7093
  (exit $ac_status); }; } &&
 
7094
         { ac_try='test -s conftest$ac_exeext'
 
7095
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7096
  (eval $ac_try) 2>&5
 
7097
  ac_status=$?
 
7098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7099
  (exit $ac_status); }; }; then
 
7100
 
 
7101
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7102
}'`
 
7103
# Check for a 64-bit object if we didn't find anything.
 
7104
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; }
 
7105
}'`; fi
 
7106
else
 
7107
  echo "$as_me: failed program was:" >&5
 
7108
sed 's/^/| /' conftest.$ac_ext >&5
 
7109
 
 
7110
fi
 
7111
rm -f conftest.err conftest.$ac_objext \
 
7112
      conftest$ac_exeext conftest.$ac_ext
 
7113
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7114
 
 
7115
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7116
        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"
 
7117
       else
 
7118
        if test "$host_cpu" = ia64; then
 
7119
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
7120
          allow_undefined_flag="-z nodefs"
 
7121
          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"
 
7122
        else
 
7123
         # Determine the default libpath from the value encoded in an empty executable.
 
7124
         cat >conftest.$ac_ext <<_ACEOF
 
7125
/* confdefs.h.  */
 
7126
_ACEOF
 
7127
cat confdefs.h >>conftest.$ac_ext
 
7128
cat >>conftest.$ac_ext <<_ACEOF
 
7129
/* end confdefs.h.  */
 
7130
 
 
7131
int
 
7132
main ()
 
7133
{
 
7134
 
 
7135
  ;
 
7136
  return 0;
 
7137
}
 
7138
_ACEOF
 
7139
rm -f conftest.$ac_objext conftest$ac_exeext
 
7140
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7141
  (eval $ac_link) 2>conftest.er1
 
7142
  ac_status=$?
 
7143
  grep -v '^ *+' conftest.er1 >conftest.err
 
7144
  rm -f conftest.er1
 
7145
  cat conftest.err >&5
 
7146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7147
  (exit $ac_status); } &&
 
7148
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7149
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7150
  (eval $ac_try) 2>&5
 
7151
  ac_status=$?
 
7152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7153
  (exit $ac_status); }; } &&
 
7154
         { ac_try='test -s conftest$ac_exeext'
 
7155
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7156
  (eval $ac_try) 2>&5
 
7157
  ac_status=$?
 
7158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7159
  (exit $ac_status); }; }; then
 
7160
 
 
7161
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7162
}'`
 
7163
# Check for a 64-bit object if we didn't find anything.
 
7164
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; }
 
7165
}'`; fi
 
7166
else
 
7167
  echo "$as_me: failed program was:" >&5
 
7168
sed 's/^/| /' conftest.$ac_ext >&5
 
7169
 
 
7170
fi
 
7171
rm -f conftest.err conftest.$ac_objext \
 
7172
      conftest$ac_exeext conftest.$ac_ext
 
7173
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7174
 
 
7175
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7176
          # Warning - without using the other run time loading flags,
 
7177
          # -berok will link without error, but may produce a broken library.
 
7178
          no_undefined_flag=' ${wl}-bernotok'
 
7179
          allow_undefined_flag=' ${wl}-berok'
 
7180
          # -bexpall does not export symbols beginning with underscore (_)
 
7181
          always_export_symbols=yes
 
7182
          # Exported symbols can be pulled into shared objects from archives
 
7183
          whole_archive_flag_spec=' '
 
7184
          archive_cmds_need_lc=yes
 
7185
          # This is similar to how AIX traditionally builds it's shared libraries.
 
7186
          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'
 
7187
        fi
 
7188
      fi
 
7189
      ;;
 
7190
 
 
7191
    amigaos*)
 
7192
      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)'
 
7193
      hardcode_libdir_flag_spec='-L$libdir'
 
7194
      hardcode_minus_L=yes
 
7195
      # see comment about different semantics on the GNU ld section
 
7196
      ld_shlibs=no
 
7197
      ;;
 
7198
 
 
7199
    bsdi4*)
 
7200
      export_dynamic_flag_spec=-rdynamic
 
7201
      ;;
 
7202
 
 
7203
    cygwin* | mingw* | pw32*)
 
7204
      # When not using gcc, we currently assume that we are using
 
7205
      # Microsoft Visual C++.
 
7206
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7207
      # no search path for DLLs.
 
7208
      hardcode_libdir_flag_spec=' '
 
7209
      allow_undefined_flag=unsupported
 
7210
      # Tell ltmain to make .lib files, not .a files.
 
7211
      libext=lib
 
7212
      # Tell ltmain to make .dll files, not .so files.
 
7213
      shrext=".dll"
 
7214
      # FIXME: Setting linknames here is a bad hack.
 
7215
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7216
      # The linker will automatically build a .lib file if we build a DLL.
 
7217
      old_archive_From_new_cmds='true'
 
7218
      # FIXME: Should let the user specify the lib program.
 
7219
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
7220
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
7221
      enable_shared_with_static_runtimes=yes
 
7222
      ;;
 
7223
 
 
7224
    darwin* | rhapsody*)
 
7225
    if test "$GXX" = yes ; then
 
7226
      archive_cmds_need_lc=no
 
7227
      case "$host_os" in
 
7228
      rhapsody* | darwin1.[012])
 
7229
        allow_undefined_flag='-undefined suppress'
 
7230
        ;;
 
7231
      *) # Darwin 1.3 on
 
7232
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7233
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
7234
      else
 
7235
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
7236
          10.[012])
 
7237
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
7238
            ;;
 
7239
          10.*)
 
7240
            allow_undefined_flag='-undefined dynamic_lookup'
 
7241
            ;;
 
7242
        esac
 
7243
      fi
 
7244
        ;;
 
7245
      esac
 
7246
        lt_int_apple_cc_single_mod=no
 
7247
        output_verbose_link_cmd='echo'
 
7248
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
7249
          lt_int_apple_cc_single_mod=yes
 
7250
        fi
 
7251
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
7252
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7253
        else
 
7254
        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'
 
7255
      fi
 
7256
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7257
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
7258
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
7259
          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}'
 
7260
        else
 
7261
          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}'
 
7262
        fi
 
7263
          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}'
 
7264
      hardcode_direct=no
 
7265
      hardcode_automatic=yes
 
7266
      hardcode_shlibpath_var=unsupported
 
7267
      whole_archive_flag_spec='-all_load $convenience'
 
7268
      link_all_deplibs=yes
 
7269
    else
 
7270
      ld_shlibs=no
 
7271
    fi
 
7272
      ;;
 
7273
 
 
7274
    dgux*)
 
7275
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7276
      hardcode_libdir_flag_spec='-L$libdir'
 
7277
      hardcode_shlibpath_var=no
 
7278
      ;;
 
7279
 
 
7280
    freebsd1*)
 
7281
      ld_shlibs=no
 
7282
      ;;
 
7283
 
 
7284
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
7285
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
7286
    # does not break anything, and helps significantly (at the cost of a little
 
7287
    # extra space).
 
7288
    freebsd2.2*)
 
7289
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
7290
      hardcode_libdir_flag_spec='-R$libdir'
 
7291
      hardcode_direct=yes
 
7292
      hardcode_shlibpath_var=no
 
7293
      ;;
 
7294
 
 
7295
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
7296
    freebsd2*)
 
7297
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7298
      hardcode_direct=yes
 
7299
      hardcode_minus_L=yes
 
7300
      hardcode_shlibpath_var=no
 
7301
      ;;
 
7302
 
 
7303
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
7304
    freebsd* | kfreebsd*-gnu)
 
7305
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7306
      hardcode_libdir_flag_spec='-R$libdir'
 
7307
      hardcode_direct=yes
 
7308
      hardcode_shlibpath_var=no
 
7309
      ;;
 
7310
 
 
7311
    hpux9*)
 
7312
      if test "$GCC" = yes; then
 
7313
        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
7314
      else
 
7315
        archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
7316
      fi
 
7317
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7318
      hardcode_libdir_separator=:
 
7319
      hardcode_direct=yes
 
7320
 
 
7321
      # hardcode_minus_L: Not really in the search PATH,
 
7322
      # but as the default location of the library.
 
7323
      hardcode_minus_L=yes
 
7324
      export_dynamic_flag_spec='${wl}-E'
 
7325
      ;;
 
7326
 
 
7327
    hpux10* | hpux11*)
 
7328
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7329
        case "$host_cpu" in
 
7330
        hppa*64*|ia64*)
 
7331
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7332
          ;;
 
7333
        *)
 
7334
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7335
          ;;
 
7336
        esac
 
7337
      else
 
7338
        case "$host_cpu" in
 
7339
        hppa*64*|ia64*)
 
7340
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7341
          ;;
 
7342
        *)
 
7343
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7344
          ;;
 
7345
        esac
 
7346
      fi
 
7347
      if test "$with_gnu_ld" = no; then
 
7348
        case "$host_cpu" in
 
7349
        hppa*64*)
 
7350
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7351
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
7352
          hardcode_libdir_separator=:
 
7353
          hardcode_direct=no
 
7354
          hardcode_shlibpath_var=no
 
7355
          ;;
 
7356
        ia64*)
 
7357
          hardcode_libdir_flag_spec='-L$libdir'
 
7358
          hardcode_direct=no
 
7359
          hardcode_shlibpath_var=no
 
7360
 
 
7361
          # hardcode_minus_L: Not really in the search PATH,
 
7362
          # but as the default location of the library.
 
7363
          hardcode_minus_L=yes
 
7364
          ;;
 
7365
        *)
 
7366
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7367
          hardcode_libdir_separator=:
 
7368
          hardcode_direct=yes
 
7369
          export_dynamic_flag_spec='${wl}-E'
 
7370
 
 
7371
          # hardcode_minus_L: Not really in the search PATH,
 
7372
          # but as the default location of the library.
 
7373
          hardcode_minus_L=yes
 
7374
          ;;
 
7375
        esac
 
7376
      fi
 
7377
      ;;
 
7378
 
 
7379
    irix5* | irix6* | nonstopux*)
 
7380
      if test "$GCC" = yes; then
 
7381
        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'
 
7382
      else
 
7383
        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'
 
7384
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
7385
      fi
 
7386
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7387
      hardcode_libdir_separator=:
 
7388
      link_all_deplibs=yes
 
7389
      ;;
 
7390
 
 
7391
    netbsd*)
 
7392
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7393
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
7394
      else
 
7395
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
7396
      fi
 
7397
      hardcode_libdir_flag_spec='-R$libdir'
 
7398
      hardcode_direct=yes
 
7399
      hardcode_shlibpath_var=no
 
7400
      ;;
 
7401
 
 
7402
    newsos6)
 
7403
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7404
      hardcode_direct=yes
 
7405
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7406
      hardcode_libdir_separator=:
 
7407
      hardcode_shlibpath_var=no
 
7408
      ;;
 
7409
 
 
7410
    openbsd*)
 
7411
      hardcode_direct=yes
 
7412
      hardcode_shlibpath_var=no
 
7413
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7414
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7415
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7416
        export_dynamic_flag_spec='${wl}-E'
 
7417
      else
 
7418
       case $host_os in
 
7419
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
7420
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7421
           hardcode_libdir_flag_spec='-R$libdir'
 
7422
           ;;
 
7423
         *)
 
7424
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7425
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7426
           ;;
 
7427
       esac
 
7428
      fi
 
7429
      ;;
 
7430
 
 
7431
    os2*)
 
7432
      hardcode_libdir_flag_spec='-L$libdir'
 
7433
      hardcode_minus_L=yes
 
7434
      allow_undefined_flag=unsupported
 
7435
      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'
 
7436
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7437
      ;;
 
7438
 
 
7439
    osf3*)
 
7440
      if test "$GCC" = yes; then
 
7441
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7442
        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'
 
7443
      else
 
7444
        allow_undefined_flag=' -expect_unresolved \*'
 
7445
        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'
 
7446
      fi
 
7447
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7448
      hardcode_libdir_separator=:
 
7449
      ;;
 
7450
 
 
7451
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
7452
      if test "$GCC" = yes; then
 
7453
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7454
        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'
 
7455
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7456
      else
 
7457
        allow_undefined_flag=' -expect_unresolved \*'
 
7458
        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'
 
7459
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7460
        $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'
 
7461
 
 
7462
        # Both c and cxx compiler support -rpath directly
 
7463
        hardcode_libdir_flag_spec='-rpath $libdir'
 
7464
      fi
 
7465
      hardcode_libdir_separator=:
 
7466
      ;;
 
7467
 
 
7468
    sco3.2v5*)
 
7469
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7470
      hardcode_shlibpath_var=no
 
7471
      export_dynamic_flag_spec='${wl}-Bexport'
 
7472
      runpath_var=LD_RUN_PATH
 
7473
      hardcode_runpath_var=yes
 
7474
      ;;
 
7475
 
 
7476
    solaris*)
 
7477
      no_undefined_flag=' -z text'
 
7478
      if test "$GCC" = yes; then
 
7479
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7480
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7481
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
7482
      else
 
7483
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7484
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7485
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7486
      fi
 
7487
      hardcode_libdir_flag_spec='-R$libdir'
 
7488
      hardcode_shlibpath_var=no
 
7489
      case $host_os in
 
7490
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
7491
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7492
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7493
      esac
 
7494
      link_all_deplibs=yes
 
7495
      ;;
 
7496
 
 
7497
    sunos4*)
 
7498
      if test "x$host_vendor" = xsequent; then
 
7499
        # Use $CC to link under sequent, because it throws in some extra .o
 
7500
        # files that make .init and .fini sections work.
 
7501
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7502
      else
 
7503
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7504
      fi
 
7505
      hardcode_libdir_flag_spec='-L$libdir'
 
7506
      hardcode_direct=yes
 
7507
      hardcode_minus_L=yes
 
7508
      hardcode_shlibpath_var=no
 
7509
      ;;
 
7510
 
 
7511
    sysv4)
 
7512
      case $host_vendor in
 
7513
        sni)
 
7514
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7515
          hardcode_direct=yes # is this really true???
 
7516
        ;;
 
7517
        siemens)
 
7518
          ## LD is ld it makes a PLAMLIB
 
7519
          ## CC just makes a GrossModule.
 
7520
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7521
          reload_cmds='$CC -r -o $output$reload_objs'
 
7522
          hardcode_direct=no
 
7523
        ;;
 
7524
        motorola)
 
7525
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7526
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
7527
        ;;
 
7528
      esac
 
7529
      runpath_var='LD_RUN_PATH'
 
7530
      hardcode_shlibpath_var=no
 
7531
      ;;
 
7532
 
 
7533
    sysv4.3*)
 
7534
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7535
      hardcode_shlibpath_var=no
 
7536
      export_dynamic_flag_spec='-Bexport'
 
7537
      ;;
 
7538
 
 
7539
    sysv4*MP*)
 
7540
      if test -d /usr/nec; then
 
7541
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7542
        hardcode_shlibpath_var=no
 
7543
        runpath_var=LD_RUN_PATH
 
7544
        hardcode_runpath_var=yes
 
7545
        ld_shlibs=yes
 
7546
      fi
 
7547
      ;;
 
7548
 
 
7549
    sysv4.2uw2*)
 
7550
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7551
      hardcode_direct=yes
 
7552
      hardcode_minus_L=no
 
7553
      hardcode_shlibpath_var=no
 
7554
      hardcode_runpath_var=yes
 
7555
      runpath_var=LD_RUN_PATH
 
7556
      ;;
 
7557
 
 
7558
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
7559
      no_undefined_flag='${wl}-z ${wl}text'
 
7560
      if test "$GCC" = yes; then
 
7561
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7562
      else
 
7563
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7564
      fi
 
7565
      runpath_var='LD_RUN_PATH'
 
7566
      hardcode_shlibpath_var=no
 
7567
      ;;
 
7568
 
 
7569
    sysv5*)
 
7570
      no_undefined_flag=' -z text'
 
7571
      # $CC -shared without GNU ld will not create a library from C++
 
7572
      # object files and a static libstdc++, better avoid it by now
 
7573
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7574
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7575
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7576
      hardcode_libdir_flag_spec=
 
7577
      hardcode_shlibpath_var=no
 
7578
      runpath_var='LD_RUN_PATH'
 
7579
      ;;
 
7580
 
 
7581
    uts4*)
 
7582
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7583
      hardcode_libdir_flag_spec='-L$libdir'
 
7584
      hardcode_shlibpath_var=no
 
7585
      ;;
 
7586
 
 
7587
    *)
 
7588
      ld_shlibs=no
 
7589
      ;;
 
7590
    esac
 
7591
  fi
 
7592
 
 
7593
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
7594
echo "${ECHO_T}$ld_shlibs" >&6
 
7595
test "$ld_shlibs" = no && can_build_shared=no
 
7596
 
 
7597
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
7598
if test "$GCC" = yes; then
 
7599
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7600
fi
 
7601
 
 
7602
#
 
7603
# Do we need to explicitly link libc?
 
7604
#
 
7605
case "x$archive_cmds_need_lc" in
 
7606
x|xyes)
 
7607
  # Assume -lc should be added
 
7608
  archive_cmds_need_lc=yes
 
7609
 
 
7610
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7611
    case $archive_cmds in
 
7612
    *'~'*)
 
7613
      # FIXME: we may have to deal with multi-command sequences.
 
7614
      ;;
 
7615
    '$CC '*)
 
7616
      # Test whether the compiler implicitly links with -lc since on some
 
7617
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7618
      # to ld, don't add -lc before -lgcc.
 
7619
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
7620
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7621
      $rm conftest*
 
7622
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7623
 
 
7624
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7625
  (eval $ac_compile) 2>&5
 
7626
  ac_status=$?
 
7627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7628
  (exit $ac_status); } 2>conftest.err; then
 
7629
        soname=conftest
 
7630
        lib=conftest
 
7631
        libobjs=conftest.$ac_objext
 
7632
        deplibs=
 
7633
        wl=$lt_prog_compiler_wl
 
7634
        compiler_flags=-v
 
7635
        linker_flags=-v
 
7636
        verstring=
 
7637
        output_objdir=.
 
7638
        libname=conftest
 
7639
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
7640
        allow_undefined_flag=
 
7641
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7642
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7643
  ac_status=$?
 
7644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7645
  (exit $ac_status); }
 
7646
        then
 
7647
          archive_cmds_need_lc=no
 
7648
        else
 
7649
          archive_cmds_need_lc=yes
 
7650
        fi
 
7651
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
7652
      else
 
7653
        cat conftest.err 1>&5
 
7654
      fi
 
7655
      $rm conftest*
 
7656
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
7657
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
7658
      ;;
 
7659
    esac
 
7660
  fi
 
7661
  ;;
 
7662
esac
 
7663
 
 
7664
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
7665
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
7666
library_names_spec=
 
7667
libname_spec='lib$name'
 
7668
soname_spec=
 
7669
shrext=".so"
 
7670
postinstall_cmds=
 
7671
postuninstall_cmds=
 
7672
finish_cmds=
 
7673
finish_eval=
 
7674
shlibpath_var=
 
7675
shlibpath_overrides_runpath=unknown
 
7676
version_type=none
 
7677
dynamic_linker="$host_os ld.so"
 
7678
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
7679
if test "$GCC" = yes; then
 
7680
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7681
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
7682
    # if the path contains ";" then we assume it to be the separator
 
7683
    # otherwise default to the standard path separator (i.e. ":") - it is
 
7684
    # assumed that no part of a normal pathname contains ";" but that should
 
7685
    # okay in the real world where ";" in dirpaths is itself problematic.
 
7686
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7687
  else
 
7688
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7689
  fi
 
7690
else
 
7691
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
7692
fi
 
7693
need_lib_prefix=unknown
 
7694
hardcode_into_libs=no
 
7695
 
 
7696
# when you set need_version to no, make sure it does not cause -set_version
 
7697
# flags to be left without arguments
 
7698
need_version=unknown
 
7699
 
 
7700
case $host_os in
 
7701
aix3*)
 
7702
  version_type=linux
 
7703
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
7704
  shlibpath_var=LIBPATH
 
7705
 
 
7706
  # AIX 3 has no versioning support, so we append a major version to the name.
 
7707
  soname_spec='${libname}${release}${shared_ext}$major'
 
7708
  ;;
 
7709
 
 
7710
aix4* | aix5*)
 
7711
  version_type=linux
 
7712
  need_lib_prefix=no
 
7713
  need_version=no
 
7714
  hardcode_into_libs=yes
 
7715
  if test "$host_cpu" = ia64; then
 
7716
    # AIX 5 supports IA64
 
7717
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
7718
    shlibpath_var=LD_LIBRARY_PATH
 
7719
  else
 
7720
    # With GCC up to 2.95.x, collect2 would create an import file
 
7721
    # for dependence libraries.  The import file would start with
 
7722
    # the line `#! .'.  This would cause the generated library to
 
7723
    # depend on `.', always an invalid library.  This was fixed in
 
7724
    # development snapshots of GCC prior to 3.0.
 
7725
    case $host_os in
 
7726
      aix4 | aix4.[01] | aix4.[01].*)
 
7727
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
7728
           echo ' yes '
 
7729
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
7730
        :
 
7731
      else
 
7732
        can_build_shared=no
 
7733
      fi
 
7734
      ;;
 
7735
    esac
 
7736
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
7737
    # soname into executable. Probably we can add versioning support to
 
7738
    # collect2, so additional links can be useful in future.
 
7739
    if test "$aix_use_runtimelinking" = yes; then
 
7740
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
7741
      # instead of lib<name>.a to let people know that these are not
 
7742
      # typical AIX shared libraries.
 
7743
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7744
    else
 
7745
      # We preserve .a as extension for shared libraries through AIX4.2
 
7746
      # and later when we are not doing run time linking.
 
7747
      library_names_spec='${libname}${release}.a $libname.a'
 
7748
      soname_spec='${libname}${release}${shared_ext}$major'
 
7749
    fi
 
7750
    shlibpath_var=LIBPATH
 
7751
  fi
 
7752
  ;;
 
7753
 
 
7754
amigaos*)
 
7755
  library_names_spec='$libname.ixlibrary $libname.a'
 
7756
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
7757
  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'
 
7758
  ;;
 
7759
 
 
7760
beos*)
 
7761
  library_names_spec='${libname}${shared_ext}'
 
7762
  dynamic_linker="$host_os ld.so"
 
7763
  shlibpath_var=LIBRARY_PATH
 
7764
  ;;
 
7765
 
 
7766
bsdi4*)
 
7767
  version_type=linux
 
7768
  need_version=no
 
7769
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7770
  soname_spec='${libname}${release}${shared_ext}$major'
 
7771
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
7772
  shlibpath_var=LD_LIBRARY_PATH
 
7773
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
7774
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
7775
  # the default ld.so.conf also contains /usr/contrib/lib and
 
7776
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
7777
  # libtool to hard-code these into programs
 
7778
  ;;
 
7779
 
 
7780
cygwin* | mingw* | pw32*)
 
7781
  version_type=windows
 
7782
  shrext=".dll"
 
7783
  need_version=no
 
7784
  need_lib_prefix=no
 
7785
 
 
7786
  case $GCC,$host_os in
 
7787
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
7788
    library_names_spec='$libname.dll.a'
 
7789
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
7790
    postinstall_cmds='base_file=`basename \${file}`~
 
7791
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
7792
      dldir=$destdir/`dirname \$dlpath`~
 
7793
      test -d \$dldir || mkdir -p \$dldir~
 
7794
      $install_prog $dir/$dlname \$dldir/$dlname'
 
7795
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
7796
      dlpath=$dir/\$dldll~
 
7797
       $rm \$dlpath'
 
7798
    shlibpath_overrides_runpath=yes
 
7799
 
 
7800
    case $host_os in
 
7801
    cygwin*)
 
7802
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
7803
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7804
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
7805
      ;;
 
7806
    mingw*)
 
7807
      # MinGW DLLs use traditional 'lib' prefix
 
7808
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7809
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7810
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
7811
        # It is most probably a Windows format PATH printed by
 
7812
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
7813
        # path with ; separators, and with drive letters. We can handle the
 
7814
        # drive letters (cygwin fileutils understands them), so leave them,
 
7815
        # especially as we might pass files found there to a mingw objdump,
 
7816
        # which wouldn't understand a cygwinified path. Ahh.
 
7817
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7818
      else
 
7819
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7820
      fi
 
7821
      ;;
 
7822
    pw32*)
 
7823
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
7824
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
7825
      ;;
 
7826
    esac
 
7827
    ;;
 
7828
 
 
7829
  *)
 
7830
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
7831
    ;;
 
7832
  esac
 
7833
  dynamic_linker='Win32 ld.exe'
 
7834
  # FIXME: first we should search . and the directory the executable is in
 
7835
  shlibpath_var=PATH
 
7836
  ;;
 
7837
 
 
7838
darwin* | rhapsody*)
 
7839
  dynamic_linker="$host_os dyld"
 
7840
  version_type=darwin
 
7841
  need_lib_prefix=no
 
7842
  need_version=no
 
7843
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
7844
  soname_spec='${libname}${release}${major}$shared_ext'
 
7845
  shlibpath_overrides_runpath=yes
 
7846
  shlibpath_var=DYLD_LIBRARY_PATH
 
7847
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
7848
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
7849
  if test "$GCC" = yes; then
 
7850
    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"`
 
7851
  else
 
7852
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
7853
  fi
 
7854
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
7855
  ;;
 
7856
 
 
7857
dgux*)
 
7858
  version_type=linux
 
7859
  need_lib_prefix=no
 
7860
  need_version=no
 
7861
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
7862
  soname_spec='${libname}${release}${shared_ext}$major'
 
7863
  shlibpath_var=LD_LIBRARY_PATH
 
7864
  ;;
 
7865
 
 
7866
freebsd1*)
 
7867
  dynamic_linker=no
 
7868
  ;;
 
7869
 
 
7870
kfreebsd*-gnu)
 
7871
  version_type=linux
 
7872
  need_lib_prefix=no
 
7873
  need_version=no
 
7874
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7875
  soname_spec='${libname}${release}${shared_ext}$major'
 
7876
  shlibpath_var=LD_LIBRARY_PATH
 
7877
  shlibpath_overrides_runpath=no
 
7878
  hardcode_into_libs=yes
 
7879
  dynamic_linker='GNU ld.so'
 
7880
  ;;
 
7881
 
 
7882
freebsd*)
 
7883
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
7884
  version_type=freebsd-$objformat
 
7885
  case $version_type in
 
7886
    freebsd-elf*)
 
7887
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7888
      need_version=no
 
7889
      need_lib_prefix=no
 
7890
      ;;
 
7891
    freebsd-*)
 
7892
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
7893
      need_version=yes
 
7894
      ;;
 
7895
  esac
 
7896
  shlibpath_var=LD_LIBRARY_PATH
 
7897
  case $host_os in
 
7898
  freebsd2*)
 
7899
    shlibpath_overrides_runpath=yes
 
7900
    ;;
 
7901
  freebsd3.01* | freebsdelf3.01*)
 
7902
    shlibpath_overrides_runpath=yes
 
7903
    hardcode_into_libs=yes
 
7904
    ;;
 
7905
  *) # from 3.2 on
 
7906
    shlibpath_overrides_runpath=no
 
7907
    hardcode_into_libs=yes
 
7908
    ;;
 
7909
  esac
 
7910
  ;;
 
7911
 
 
7912
gnu*)
 
7913
  version_type=linux
 
7914
  need_lib_prefix=no
 
7915
  need_version=no
 
7916
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
7917
  soname_spec='${libname}${release}${shared_ext}$major'
 
7918
  shlibpath_var=LD_LIBRARY_PATH
 
7919
  hardcode_into_libs=yes
 
7920
  ;;
 
7921
 
 
7922
hpux9* | hpux10* | hpux11*)
 
7923
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
7924
  # link against other versions.
 
7925
  version_type=sunos
 
7926
  need_lib_prefix=no
 
7927
  need_version=no
 
7928
  case "$host_cpu" in
 
7929
  ia64*)
 
7930
    shrext='.so'
 
7931
    hardcode_into_libs=yes
 
7932
    dynamic_linker="$host_os dld.so"
 
7933
    shlibpath_var=LD_LIBRARY_PATH
 
7934
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7935
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7936
    soname_spec='${libname}${release}${shared_ext}$major'
 
7937
    if test "X$HPUX_IA64_MODE" = X32; then
 
7938
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
7939
    else
 
7940
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
7941
    fi
 
7942
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7943
    ;;
 
7944
   hppa*64*)
 
7945
     shrext='.sl'
 
7946
     hardcode_into_libs=yes
 
7947
     dynamic_linker="$host_os dld.sl"
 
7948
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
7949
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7950
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7951
     soname_spec='${libname}${release}${shared_ext}$major'
 
7952
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
7953
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7954
     ;;
 
7955
   *)
 
7956
    shrext='.sl'
 
7957
    dynamic_linker="$host_os dld.sl"
 
7958
    shlibpath_var=SHLIB_PATH
 
7959
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
7960
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7961
    soname_spec='${libname}${release}${shared_ext}$major'
 
7962
    ;;
 
7963
  esac
 
7964
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
7965
  postinstall_cmds='chmod 555 $lib'
 
7966
  ;;
 
7967
 
 
7968
irix5* | irix6* | nonstopux*)
 
7969
  case $host_os in
 
7970
    nonstopux*) version_type=nonstopux ;;
 
7971
    *)
 
7972
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
7973
                version_type=linux
 
7974
        else
 
7975
                version_type=irix
 
7976
        fi ;;
 
7977
  esac
 
7978
  need_lib_prefix=no
 
7979
  need_version=no
 
7980
  soname_spec='${libname}${release}${shared_ext}$major'
 
7981
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7982
  case $host_os in
 
7983
  irix5* | nonstopux*)
 
7984
    libsuff= shlibsuff=
 
7985
    ;;
 
7986
  *)
 
7987
    case $LD in # libtool.m4 will add one of these switches to LD
 
7988
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
7989
      libsuff= shlibsuff= libmagic=32-bit;;
 
7990
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
7991
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
7992
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
7993
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
7994
    *) libsuff= shlibsuff= libmagic=never-match;;
 
7995
    esac
 
7996
    ;;
 
7997
  esac
 
7998
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
7999
  shlibpath_overrides_runpath=no
 
8000
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
8001
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
8002
  hardcode_into_libs=yes
 
8003
  ;;
 
8004
 
 
8005
# No shared lib support for Linux oldld, aout, or coff.
 
8006
linux*oldld* | linux*aout* | linux*coff*)
 
8007
  dynamic_linker=no
 
8008
  ;;
 
8009
 
 
8010
# This must be Linux ELF.
 
8011
linux*)
 
8012
  version_type=linux
 
8013
  need_lib_prefix=no
 
8014
  need_version=no
 
8015
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8016
  soname_spec='${libname}${release}${shared_ext}$major'
 
8017
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
8018
  shlibpath_var=LD_LIBRARY_PATH
 
8019
  shlibpath_overrides_runpath=no
 
8020
  # This implies no fast_install, which is unacceptable.
 
8021
  # Some rework will be needed to allow for fast_install
 
8022
  # before this can be enabled.
 
8023
  hardcode_into_libs=yes
 
8024
 
 
8025
  # Append ld.so.conf contents to the search path
 
8026
  if test -f /etc/ld.so.conf; then
 
8027
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
 
8028
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
 
8029
  fi
 
8030
 
 
8031
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
8032
  # powerpc, because MkLinux only supported shared libraries with the
 
8033
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
8034
  # most powerpc-linux boxes support dynamic linking these days and
 
8035
  # people can always --disable-shared, the test was removed, and we
 
8036
  # assume the GNU/Linux dynamic linker is in use.
 
8037
  dynamic_linker='GNU/Linux ld.so'
 
8038
  ;;
 
8039
 
 
8040
knetbsd*-gnu)
 
8041
  version_type=linux
 
8042
  need_lib_prefix=no
 
8043
  need_version=no
 
8044
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8045
  soname_spec='${libname}${release}${shared_ext}$major'
 
8046
  shlibpath_var=LD_LIBRARY_PATH
 
8047
  shlibpath_overrides_runpath=no
 
8048
  hardcode_into_libs=yes
 
8049
  dynamic_linker='GNU ld.so'
 
8050
  ;;
 
8051
 
 
8052
netbsd*)
 
8053
  version_type=sunos
 
8054
  need_lib_prefix=no
 
8055
  need_version=no
 
8056
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8057
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8058
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8059
    dynamic_linker='NetBSD (a.out) ld.so'
 
8060
  else
 
8061
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
8062
    soname_spec='${libname}${release}${shared_ext}$major'
 
8063
    dynamic_linker='NetBSD ld.elf_so'
 
8064
  fi
 
8065
  shlibpath_var=LD_LIBRARY_PATH
 
8066
  shlibpath_overrides_runpath=yes
 
8067
  hardcode_into_libs=yes
 
8068
  ;;
 
8069
 
 
8070
newsos6)
 
8071
  version_type=linux
 
8072
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8073
  shlibpath_var=LD_LIBRARY_PATH
 
8074
  shlibpath_overrides_runpath=yes
 
8075
  ;;
 
8076
 
 
8077
nto-qnx*)
 
8078
  version_type=linux
 
8079
  need_lib_prefix=no
 
8080
  need_version=no
 
8081
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8082
  soname_spec='${libname}${release}${shared_ext}$major'
 
8083
  shlibpath_var=LD_LIBRARY_PATH
 
8084
  shlibpath_overrides_runpath=yes
 
8085
  ;;
 
8086
 
 
8087
openbsd*)
 
8088
  version_type=sunos
 
8089
  need_lib_prefix=no
 
8090
  need_version=yes
 
8091
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8092
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8093
  shlibpath_var=LD_LIBRARY_PATH
 
8094
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8095
    case $host_os in
 
8096
      openbsd2.[89] | openbsd2.[89].*)
 
8097
        shlibpath_overrides_runpath=no
 
8098
        ;;
 
8099
      *)
 
8100
        shlibpath_overrides_runpath=yes
 
8101
        ;;
 
8102
      esac
 
8103
  else
 
8104
    shlibpath_overrides_runpath=yes
 
8105
  fi
 
8106
  ;;
 
8107
 
 
8108
os2*)
 
8109
  libname_spec='$name'
 
8110
  shrext=".dll"
 
8111
  need_lib_prefix=no
 
8112
  library_names_spec='$libname${shared_ext} $libname.a'
 
8113
  dynamic_linker='OS/2 ld.exe'
 
8114
  shlibpath_var=LIBPATH
 
8115
  ;;
 
8116
 
 
8117
osf3* | osf4* | osf5*)
 
8118
  version_type=osf
 
8119
  need_lib_prefix=no
 
8120
  need_version=no
 
8121
  soname_spec='${libname}${release}${shared_ext}$major'
 
8122
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8123
  shlibpath_var=LD_LIBRARY_PATH
 
8124
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
8125
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
8126
  ;;
 
8127
 
 
8128
sco3.2v5*)
 
8129
  version_type=osf
 
8130
  soname_spec='${libname}${release}${shared_ext}$major'
 
8131
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8132
  shlibpath_var=LD_LIBRARY_PATH
 
8133
  ;;
 
8134
 
 
8135
solaris*)
 
8136
  version_type=linux
 
8137
  need_lib_prefix=no
 
8138
  need_version=no
 
8139
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8140
  soname_spec='${libname}${release}${shared_ext}$major'
 
8141
  shlibpath_var=LD_LIBRARY_PATH
 
8142
  shlibpath_overrides_runpath=yes
 
8143
  hardcode_into_libs=yes
 
8144
  # ldd complains unless libraries are executable
 
8145
  postinstall_cmds='chmod +x $lib'
 
8146
  ;;
 
8147
 
 
8148
sunos4*)
 
8149
  version_type=sunos
 
8150
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8151
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
8152
  shlibpath_var=LD_LIBRARY_PATH
 
8153
  shlibpath_overrides_runpath=yes
 
8154
  if test "$with_gnu_ld" = yes; then
 
8155
    need_lib_prefix=no
 
8156
  fi
 
8157
  need_version=yes
 
8158
  ;;
 
8159
 
 
8160
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8161
  version_type=linux
 
8162
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8163
  soname_spec='${libname}${release}${shared_ext}$major'
 
8164
  shlibpath_var=LD_LIBRARY_PATH
 
8165
  case $host_vendor in
 
8166
    sni)
 
8167
      shlibpath_overrides_runpath=no
 
8168
      need_lib_prefix=no
 
8169
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
8170
      runpath_var=LD_RUN_PATH
 
8171
      ;;
 
8172
    siemens)
 
8173
      need_lib_prefix=no
 
8174
      ;;
 
8175
    motorola)
 
8176
      need_lib_prefix=no
 
8177
      need_version=no
 
8178
      shlibpath_overrides_runpath=no
 
8179
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
8180
      ;;
 
8181
  esac
 
8182
  ;;
 
8183
 
 
8184
sysv4*MP*)
 
8185
  if test -d /usr/nec ;then
 
8186
    version_type=linux
 
8187
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
8188
    soname_spec='$libname${shared_ext}.$major'
 
8189
    shlibpath_var=LD_LIBRARY_PATH
 
8190
  fi
 
8191
  ;;
 
8192
 
 
8193
uts4*)
 
8194
  version_type=linux
 
8195
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8196
  soname_spec='${libname}${release}${shared_ext}$major'
 
8197
  shlibpath_var=LD_LIBRARY_PATH
 
8198
  ;;
 
8199
 
 
8200
*)
 
8201
  dynamic_linker=no
 
8202
  ;;
 
8203
esac
 
8204
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8205
echo "${ECHO_T}$dynamic_linker" >&6
 
8206
test "$dynamic_linker" = no && can_build_shared=no
 
8207
 
 
8208
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
8209
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
8210
hardcode_action=
 
8211
if test -n "$hardcode_libdir_flag_spec" || \
 
8212
   test -n "$runpath_var " || \
 
8213
   test "X$hardcode_automatic"="Xyes" ; then
 
8214
 
 
8215
  # We can hardcode non-existant directories.
 
8216
  if test "$hardcode_direct" != no &&
 
8217
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
8218
     # have to relink, otherwise we might link with an installed library
 
8219
     # when we should be linking with a yet-to-be-installed one
 
8220
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
8221
     test "$hardcode_minus_L" != no; then
 
8222
    # Linking always hardcodes the temporary library directory.
 
8223
    hardcode_action=relink
 
8224
  else
 
8225
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
8226
    hardcode_action=immediate
 
8227
  fi
 
8228
else
 
8229
  # We cannot hardcode anything, or else we can only hardcode existing
 
8230
  # directories.
 
8231
  hardcode_action=unsupported
 
8232
fi
 
8233
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
8234
echo "${ECHO_T}$hardcode_action" >&6
 
8235
 
 
8236
if test "$hardcode_action" = relink; then
 
8237
  # Fast installation is not supported
 
8238
  enable_fast_install=no
 
8239
elif test "$shlibpath_overrides_runpath" = yes ||
 
8240
     test "$enable_shared" = no; then
 
8241
  # Fast installation is not necessary
 
8242
  enable_fast_install=needless
 
8243
fi
 
8244
 
 
8245
striplib=
 
8246
old_striplib=
 
8247
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
8248
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
8249
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
8250
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
8251
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
8252
  echo "$as_me:$LINENO: result: yes" >&5
 
8253
echo "${ECHO_T}yes" >&6
 
8254
else
 
8255
# FIXME - insert some real tests, host_os isn't really good enough
 
8256
  case $host_os in
 
8257
   darwin*)
 
8258
       if test -n "$STRIP" ; then
 
8259
         striplib="$STRIP -x"
 
8260
         echo "$as_me:$LINENO: result: yes" >&5
 
8261
echo "${ECHO_T}yes" >&6
 
8262
       else
 
8263
  echo "$as_me:$LINENO: result: no" >&5
 
8264
echo "${ECHO_T}no" >&6
 
8265
fi
 
8266
       ;;
 
8267
   *)
 
8268
  echo "$as_me:$LINENO: result: no" >&5
 
8269
echo "${ECHO_T}no" >&6
 
8270
    ;;
 
8271
  esac
 
8272
fi
 
8273
 
 
8274
if test "x$enable_dlopen" != xyes; then
 
8275
  enable_dlopen=unknown
 
8276
  enable_dlopen_self=unknown
 
8277
  enable_dlopen_self_static=unknown
 
8278
else
 
8279
  lt_cv_dlopen=no
 
8280
  lt_cv_dlopen_libs=
 
8281
 
 
8282
  case $host_os in
 
8283
  beos*)
 
8284
    lt_cv_dlopen="load_add_on"
 
8285
    lt_cv_dlopen_libs=
 
8286
    lt_cv_dlopen_self=yes
 
8287
    ;;
 
8288
 
 
8289
  mingw* | pw32*)
 
8290
    lt_cv_dlopen="LoadLibrary"
 
8291
    lt_cv_dlopen_libs=
 
8292
   ;;
 
8293
 
 
8294
  cygwin*)
 
8295
    lt_cv_dlopen="dlopen"
 
8296
    lt_cv_dlopen_libs=
 
8297
   ;;
 
8298
 
 
8299
  darwin*)
 
8300
  # if libdl is installed we need to link against it
 
8301
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8302
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8303
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8304
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8305
else
 
8306
  ac_check_lib_save_LIBS=$LIBS
 
8307
LIBS="-ldl  $LIBS"
 
8308
cat >conftest.$ac_ext <<_ACEOF
 
8309
/* confdefs.h.  */
 
8310
_ACEOF
 
8311
cat confdefs.h >>conftest.$ac_ext
 
8312
cat >>conftest.$ac_ext <<_ACEOF
 
8313
/* end confdefs.h.  */
 
8314
 
 
8315
/* Override any gcc2 internal prototype to avoid an error.  */
 
8316
#ifdef __cplusplus
 
8317
extern "C"
 
8318
#endif
 
8319
/* We use char because int might match the return type of a gcc2
 
8320
   builtin and then its argument prototype would still apply.  */
 
8321
char dlopen ();
 
8322
int
 
8323
main ()
 
8324
{
 
8325
dlopen ();
 
8326
  ;
 
8327
  return 0;
 
8328
}
 
8329
_ACEOF
 
8330
rm -f conftest.$ac_objext conftest$ac_exeext
 
8331
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8332
  (eval $ac_link) 2>conftest.er1
 
8333
  ac_status=$?
 
8334
  grep -v '^ *+' conftest.er1 >conftest.err
 
8335
  rm -f conftest.er1
 
8336
  cat conftest.err >&5
 
8337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8338
  (exit $ac_status); } &&
 
8339
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8340
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8341
  (eval $ac_try) 2>&5
 
8342
  ac_status=$?
 
8343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8344
  (exit $ac_status); }; } &&
 
8345
         { ac_try='test -s conftest$ac_exeext'
 
8346
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8347
  (eval $ac_try) 2>&5
 
8348
  ac_status=$?
 
8349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8350
  (exit $ac_status); }; }; then
 
8351
  ac_cv_lib_dl_dlopen=yes
 
8352
else
 
8353
  echo "$as_me: failed program was:" >&5
 
8354
sed 's/^/| /' conftest.$ac_ext >&5
 
8355
 
 
8356
ac_cv_lib_dl_dlopen=no
 
8357
fi
 
8358
rm -f conftest.err conftest.$ac_objext \
 
8359
      conftest$ac_exeext conftest.$ac_ext
 
8360
LIBS=$ac_check_lib_save_LIBS
 
8361
fi
 
8362
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8363
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8364
if test $ac_cv_lib_dl_dlopen = yes; then
 
8365
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8366
else
 
8367
 
 
8368
    lt_cv_dlopen="dyld"
 
8369
    lt_cv_dlopen_libs=
 
8370
    lt_cv_dlopen_self=yes
 
8371
 
 
8372
fi
 
8373
 
 
8374
   ;;
 
8375
 
 
8376
  *)
 
8377
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
8378
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
8379
if test "${ac_cv_func_shl_load+set}" = set; then
 
8380
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8381
else
 
8382
  cat >conftest.$ac_ext <<_ACEOF
 
8383
/* confdefs.h.  */
 
8384
_ACEOF
 
8385
cat confdefs.h >>conftest.$ac_ext
 
8386
cat >>conftest.$ac_ext <<_ACEOF
 
8387
/* end confdefs.h.  */
 
8388
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
8389
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8390
#define shl_load innocuous_shl_load
 
8391
 
 
8392
/* System header to define __stub macros and hopefully few prototypes,
 
8393
    which can conflict with char shl_load (); below.
 
8394
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8395
    <limits.h> exists even on freestanding compilers.  */
 
8396
 
 
8397
#ifdef __STDC__
 
8398
# include <limits.h>
 
8399
#else
 
8400
# include <assert.h>
 
8401
#endif
 
8402
 
 
8403
#undef shl_load
 
8404
 
 
8405
/* Override any gcc2 internal prototype to avoid an error.  */
 
8406
#ifdef __cplusplus
 
8407
extern "C"
 
8408
{
 
8409
#endif
 
8410
/* We use char because int might match the return type of a gcc2
 
8411
   builtin and then its argument prototype would still apply.  */
 
8412
char shl_load ();
 
8413
/* The GNU C library defines this for functions which it implements
 
8414
    to always fail with ENOSYS.  Some functions are actually named
 
8415
    something starting with __ and the normal name is an alias.  */
 
8416
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
8417
choke me
 
8418
#else
 
8419
char (*f) () = shl_load;
 
8420
#endif
 
8421
#ifdef __cplusplus
 
8422
}
 
8423
#endif
 
8424
 
 
8425
int
 
8426
main ()
 
8427
{
 
8428
return f != shl_load;
 
8429
  ;
 
8430
  return 0;
 
8431
}
 
8432
_ACEOF
 
8433
rm -f conftest.$ac_objext conftest$ac_exeext
 
8434
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8435
  (eval $ac_link) 2>conftest.er1
 
8436
  ac_status=$?
 
8437
  grep -v '^ *+' conftest.er1 >conftest.err
 
8438
  rm -f conftest.er1
 
8439
  cat conftest.err >&5
 
8440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8441
  (exit $ac_status); } &&
 
8442
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8443
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8444
  (eval $ac_try) 2>&5
 
8445
  ac_status=$?
 
8446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8447
  (exit $ac_status); }; } &&
 
8448
         { ac_try='test -s conftest$ac_exeext'
 
8449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8450
  (eval $ac_try) 2>&5
 
8451
  ac_status=$?
 
8452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8453
  (exit $ac_status); }; }; then
 
8454
  ac_cv_func_shl_load=yes
 
8455
else
 
8456
  echo "$as_me: failed program was:" >&5
 
8457
sed 's/^/| /' conftest.$ac_ext >&5
 
8458
 
 
8459
ac_cv_func_shl_load=no
 
8460
fi
 
8461
rm -f conftest.err conftest.$ac_objext \
 
8462
      conftest$ac_exeext conftest.$ac_ext
 
8463
fi
 
8464
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
8465
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
8466
if test $ac_cv_func_shl_load = yes; then
 
8467
  lt_cv_dlopen="shl_load"
 
8468
else
 
8469
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
8470
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
8471
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
8472
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8473
else
 
8474
  ac_check_lib_save_LIBS=$LIBS
 
8475
LIBS="-ldld  $LIBS"
 
8476
cat >conftest.$ac_ext <<_ACEOF
 
8477
/* confdefs.h.  */
 
8478
_ACEOF
 
8479
cat confdefs.h >>conftest.$ac_ext
 
8480
cat >>conftest.$ac_ext <<_ACEOF
 
8481
/* end confdefs.h.  */
 
8482
 
 
8483
/* Override any gcc2 internal prototype to avoid an error.  */
 
8484
#ifdef __cplusplus
 
8485
extern "C"
 
8486
#endif
 
8487
/* We use char because int might match the return type of a gcc2
 
8488
   builtin and then its argument prototype would still apply.  */
 
8489
char shl_load ();
 
8490
int
 
8491
main ()
 
8492
{
 
8493
shl_load ();
 
8494
  ;
 
8495
  return 0;
 
8496
}
 
8497
_ACEOF
 
8498
rm -f conftest.$ac_objext conftest$ac_exeext
 
8499
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8500
  (eval $ac_link) 2>conftest.er1
 
8501
  ac_status=$?
 
8502
  grep -v '^ *+' conftest.er1 >conftest.err
 
8503
  rm -f conftest.er1
 
8504
  cat conftest.err >&5
 
8505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8506
  (exit $ac_status); } &&
 
8507
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8508
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8509
  (eval $ac_try) 2>&5
 
8510
  ac_status=$?
 
8511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8512
  (exit $ac_status); }; } &&
 
8513
         { ac_try='test -s conftest$ac_exeext'
 
8514
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8515
  (eval $ac_try) 2>&5
 
8516
  ac_status=$?
 
8517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8518
  (exit $ac_status); }; }; then
 
8519
  ac_cv_lib_dld_shl_load=yes
 
8520
else
 
8521
  echo "$as_me: failed program was:" >&5
 
8522
sed 's/^/| /' conftest.$ac_ext >&5
 
8523
 
 
8524
ac_cv_lib_dld_shl_load=no
 
8525
fi
 
8526
rm -f conftest.err conftest.$ac_objext \
 
8527
      conftest$ac_exeext conftest.$ac_ext
 
8528
LIBS=$ac_check_lib_save_LIBS
 
8529
fi
 
8530
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
8531
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
8532
if test $ac_cv_lib_dld_shl_load = yes; then
 
8533
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
8534
else
 
8535
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
8536
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
8537
if test "${ac_cv_func_dlopen+set}" = set; then
 
8538
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8539
else
 
8540
  cat >conftest.$ac_ext <<_ACEOF
 
8541
/* confdefs.h.  */
 
8542
_ACEOF
 
8543
cat confdefs.h >>conftest.$ac_ext
 
8544
cat >>conftest.$ac_ext <<_ACEOF
 
8545
/* end confdefs.h.  */
 
8546
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
8547
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8548
#define dlopen innocuous_dlopen
 
8549
 
 
8550
/* System header to define __stub macros and hopefully few prototypes,
 
8551
    which can conflict with char dlopen (); below.
 
8552
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8553
    <limits.h> exists even on freestanding compilers.  */
 
8554
 
 
8555
#ifdef __STDC__
 
8556
# include <limits.h>
 
8557
#else
 
8558
# include <assert.h>
 
8559
#endif
 
8560
 
 
8561
#undef dlopen
 
8562
 
 
8563
/* Override any gcc2 internal prototype to avoid an error.  */
 
8564
#ifdef __cplusplus
 
8565
extern "C"
 
8566
{
 
8567
#endif
 
8568
/* We use char because int might match the return type of a gcc2
 
8569
   builtin and then its argument prototype would still apply.  */
 
8570
char dlopen ();
 
8571
/* The GNU C library defines this for functions which it implements
 
8572
    to always fail with ENOSYS.  Some functions are actually named
 
8573
    something starting with __ and the normal name is an alias.  */
 
8574
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
8575
choke me
 
8576
#else
 
8577
char (*f) () = dlopen;
 
8578
#endif
 
8579
#ifdef __cplusplus
 
8580
}
 
8581
#endif
 
8582
 
 
8583
int
 
8584
main ()
 
8585
{
 
8586
return f != dlopen;
 
8587
  ;
 
8588
  return 0;
 
8589
}
 
8590
_ACEOF
 
8591
rm -f conftest.$ac_objext conftest$ac_exeext
 
8592
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8593
  (eval $ac_link) 2>conftest.er1
 
8594
  ac_status=$?
 
8595
  grep -v '^ *+' conftest.er1 >conftest.err
 
8596
  rm -f conftest.er1
 
8597
  cat conftest.err >&5
 
8598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8599
  (exit $ac_status); } &&
 
8600
         { ac_try='test -z "$ac_c_werror_flag"                   || 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
  ac_cv_func_dlopen=yes
 
8613
else
 
8614
  echo "$as_me: failed program was:" >&5
 
8615
sed 's/^/| /' conftest.$ac_ext >&5
 
8616
 
 
8617
ac_cv_func_dlopen=no
 
8618
fi
 
8619
rm -f conftest.err conftest.$ac_objext \
 
8620
      conftest$ac_exeext conftest.$ac_ext
 
8621
fi
 
8622
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
8623
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
8624
if test $ac_cv_func_dlopen = yes; then
 
8625
  lt_cv_dlopen="dlopen"
 
8626
else
 
8627
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8628
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8629
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8630
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8631
else
 
8632
  ac_check_lib_save_LIBS=$LIBS
 
8633
LIBS="-ldl  $LIBS"
 
8634
cat >conftest.$ac_ext <<_ACEOF
 
8635
/* confdefs.h.  */
 
8636
_ACEOF
 
8637
cat confdefs.h >>conftest.$ac_ext
 
8638
cat >>conftest.$ac_ext <<_ACEOF
 
8639
/* end confdefs.h.  */
 
8640
 
 
8641
/* Override any gcc2 internal prototype to avoid an error.  */
 
8642
#ifdef __cplusplus
 
8643
extern "C"
 
8644
#endif
 
8645
/* We use char because int might match the return type of a gcc2
 
8646
   builtin and then its argument prototype would still apply.  */
 
8647
char dlopen ();
 
8648
int
 
8649
main ()
 
8650
{
 
8651
dlopen ();
 
8652
  ;
 
8653
  return 0;
 
8654
}
 
8655
_ACEOF
 
8656
rm -f conftest.$ac_objext conftest$ac_exeext
 
8657
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8658
  (eval $ac_link) 2>conftest.er1
 
8659
  ac_status=$?
 
8660
  grep -v '^ *+' conftest.er1 >conftest.err
 
8661
  rm -f conftest.er1
 
8662
  cat conftest.err >&5
 
8663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8664
  (exit $ac_status); } &&
 
8665
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8666
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8667
  (eval $ac_try) 2>&5
 
8668
  ac_status=$?
 
8669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8670
  (exit $ac_status); }; } &&
 
8671
         { ac_try='test -s conftest$ac_exeext'
 
8672
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8673
  (eval $ac_try) 2>&5
 
8674
  ac_status=$?
 
8675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8676
  (exit $ac_status); }; }; then
 
8677
  ac_cv_lib_dl_dlopen=yes
 
8678
else
 
8679
  echo "$as_me: failed program was:" >&5
 
8680
sed 's/^/| /' conftest.$ac_ext >&5
 
8681
 
 
8682
ac_cv_lib_dl_dlopen=no
 
8683
fi
 
8684
rm -f conftest.err conftest.$ac_objext \
 
8685
      conftest$ac_exeext conftest.$ac_ext
 
8686
LIBS=$ac_check_lib_save_LIBS
 
8687
fi
 
8688
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8689
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8690
if test $ac_cv_lib_dl_dlopen = yes; then
 
8691
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8692
else
 
8693
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
8694
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
8695
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
8696
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8697
else
 
8698
  ac_check_lib_save_LIBS=$LIBS
 
8699
LIBS="-lsvld  $LIBS"
 
8700
cat >conftest.$ac_ext <<_ACEOF
 
8701
/* confdefs.h.  */
 
8702
_ACEOF
 
8703
cat confdefs.h >>conftest.$ac_ext
 
8704
cat >>conftest.$ac_ext <<_ACEOF
 
8705
/* end confdefs.h.  */
 
8706
 
 
8707
/* Override any gcc2 internal prototype to avoid an error.  */
 
8708
#ifdef __cplusplus
 
8709
extern "C"
 
8710
#endif
 
8711
/* We use char because int might match the return type of a gcc2
 
8712
   builtin and then its argument prototype would still apply.  */
 
8713
char dlopen ();
 
8714
int
 
8715
main ()
 
8716
{
 
8717
dlopen ();
 
8718
  ;
 
8719
  return 0;
 
8720
}
 
8721
_ACEOF
 
8722
rm -f conftest.$ac_objext conftest$ac_exeext
 
8723
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8724
  (eval $ac_link) 2>conftest.er1
 
8725
  ac_status=$?
 
8726
  grep -v '^ *+' conftest.er1 >conftest.err
 
8727
  rm -f conftest.er1
 
8728
  cat conftest.err >&5
 
8729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8730
  (exit $ac_status); } &&
 
8731
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8732
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8733
  (eval $ac_try) 2>&5
 
8734
  ac_status=$?
 
8735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8736
  (exit $ac_status); }; } &&
 
8737
         { ac_try='test -s conftest$ac_exeext'
 
8738
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8739
  (eval $ac_try) 2>&5
 
8740
  ac_status=$?
 
8741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8742
  (exit $ac_status); }; }; then
 
8743
  ac_cv_lib_svld_dlopen=yes
 
8744
else
 
8745
  echo "$as_me: failed program was:" >&5
 
8746
sed 's/^/| /' conftest.$ac_ext >&5
 
8747
 
 
8748
ac_cv_lib_svld_dlopen=no
 
8749
fi
 
8750
rm -f conftest.err conftest.$ac_objext \
 
8751
      conftest$ac_exeext conftest.$ac_ext
 
8752
LIBS=$ac_check_lib_save_LIBS
 
8753
fi
 
8754
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
8755
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
8756
if test $ac_cv_lib_svld_dlopen = yes; then
 
8757
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
8758
else
 
8759
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
8760
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
8761
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
8762
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8763
else
 
8764
  ac_check_lib_save_LIBS=$LIBS
 
8765
LIBS="-ldld  $LIBS"
 
8766
cat >conftest.$ac_ext <<_ACEOF
 
8767
/* confdefs.h.  */
 
8768
_ACEOF
 
8769
cat confdefs.h >>conftest.$ac_ext
 
8770
cat >>conftest.$ac_ext <<_ACEOF
 
8771
/* end confdefs.h.  */
 
8772
 
 
8773
/* Override any gcc2 internal prototype to avoid an error.  */
 
8774
#ifdef __cplusplus
 
8775
extern "C"
 
8776
#endif
 
8777
/* We use char because int might match the return type of a gcc2
 
8778
   builtin and then its argument prototype would still apply.  */
 
8779
char dld_link ();
 
8780
int
 
8781
main ()
 
8782
{
 
8783
dld_link ();
 
8784
  ;
 
8785
  return 0;
 
8786
}
 
8787
_ACEOF
 
8788
rm -f conftest.$ac_objext conftest$ac_exeext
 
8789
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8790
  (eval $ac_link) 2>conftest.er1
 
8791
  ac_status=$?
 
8792
  grep -v '^ *+' conftest.er1 >conftest.err
 
8793
  rm -f conftest.er1
 
8794
  cat conftest.err >&5
 
8795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8796
  (exit $ac_status); } &&
 
8797
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8798
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8799
  (eval $ac_try) 2>&5
 
8800
  ac_status=$?
 
8801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8802
  (exit $ac_status); }; } &&
 
8803
         { ac_try='test -s conftest$ac_exeext'
 
8804
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8805
  (eval $ac_try) 2>&5
 
8806
  ac_status=$?
 
8807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8808
  (exit $ac_status); }; }; then
 
8809
  ac_cv_lib_dld_dld_link=yes
 
8810
else
 
8811
  echo "$as_me: failed program was:" >&5
 
8812
sed 's/^/| /' conftest.$ac_ext >&5
 
8813
 
 
8814
ac_cv_lib_dld_dld_link=no
 
8815
fi
 
8816
rm -f conftest.err conftest.$ac_objext \
 
8817
      conftest$ac_exeext conftest.$ac_ext
 
8818
LIBS=$ac_check_lib_save_LIBS
 
8819
fi
 
8820
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
8821
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
8822
if test $ac_cv_lib_dld_dld_link = yes; then
 
8823
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
8824
fi
 
8825
 
 
8826
 
 
8827
fi
 
8828
 
 
8829
 
 
8830
fi
 
8831
 
 
8832
 
 
8833
fi
 
8834
 
 
8835
 
 
8836
fi
 
8837
 
 
8838
 
 
8839
fi
 
8840
 
 
8841
    ;;
 
8842
  esac
 
8843
 
 
8844
  if test "x$lt_cv_dlopen" != xno; then
 
8845
    enable_dlopen=yes
 
8846
  else
 
8847
    enable_dlopen=no
 
8848
  fi
 
8849
 
 
8850
  case $lt_cv_dlopen in
 
8851
  dlopen)
 
8852
    save_CPPFLAGS="$CPPFLAGS"
 
8853
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
8854
 
 
8855
    save_LDFLAGS="$LDFLAGS"
 
8856
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
8857
 
 
8858
    save_LIBS="$LIBS"
 
8859
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
8860
 
 
8861
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
8862
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
8863
if test "${lt_cv_dlopen_self+set}" = set; then
 
8864
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8865
else
 
8866
          if test "$cross_compiling" = yes; then :
 
8867
  lt_cv_dlopen_self=cross
 
8868
else
 
8869
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8870
  lt_status=$lt_dlunknown
 
8871
  cat > conftest.$ac_ext <<EOF
 
8872
#line 8872 "configure"
 
8873
#include "confdefs.h"
 
8874
 
 
8875
#if HAVE_DLFCN_H
 
8876
#include <dlfcn.h>
 
8877
#endif
 
8878
 
 
8879
#include <stdio.h>
 
8880
 
 
8881
#ifdef RTLD_GLOBAL
 
8882
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8883
#else
 
8884
#  ifdef DL_GLOBAL
 
8885
#    define LT_DLGLOBAL         DL_GLOBAL
 
8886
#  else
 
8887
#    define LT_DLGLOBAL         0
 
8888
#  endif
 
8889
#endif
 
8890
 
 
8891
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8892
   find out it does not work in some platform. */
 
8893
#ifndef LT_DLLAZY_OR_NOW
 
8894
#  ifdef RTLD_LAZY
 
8895
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8896
#  else
 
8897
#    ifdef DL_LAZY
 
8898
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8899
#    else
 
8900
#      ifdef RTLD_NOW
 
8901
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8902
#      else
 
8903
#        ifdef DL_NOW
 
8904
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8905
#        else
 
8906
#          define LT_DLLAZY_OR_NOW      0
 
8907
#        endif
 
8908
#      endif
 
8909
#    endif
 
8910
#  endif
 
8911
#endif
 
8912
 
 
8913
#ifdef __cplusplus
 
8914
extern "C" void exit (int);
 
8915
#endif
 
8916
 
 
8917
void fnord() { int i=42;}
 
8918
int main ()
 
8919
{
 
8920
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8921
  int status = $lt_dlunknown;
 
8922
 
 
8923
  if (self)
 
8924
    {
 
8925
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8926
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8927
      /* dlclose (self); */
 
8928
    }
 
8929
 
 
8930
    exit (status);
 
8931
}
 
8932
EOF
 
8933
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8934
  (eval $ac_link) 2>&5
 
8935
  ac_status=$?
 
8936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8937
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8938
    (./conftest; exit; ) 2>/dev/null
 
8939
    lt_status=$?
 
8940
    case x$lt_status in
 
8941
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
8942
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
8943
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
8944
    esac
 
8945
  else :
 
8946
    # compilation failed
 
8947
    lt_cv_dlopen_self=no
 
8948
  fi
 
8949
fi
 
8950
rm -fr conftest*
 
8951
 
 
8952
 
 
8953
fi
 
8954
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
8955
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
8956
 
 
8957
    if test "x$lt_cv_dlopen_self" = xyes; then
 
8958
      LDFLAGS="$LDFLAGS $link_static_flag"
 
8959
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
8960
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
8961
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
8962
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8963
else
 
8964
          if test "$cross_compiling" = yes; then :
 
8965
  lt_cv_dlopen_self_static=cross
 
8966
else
 
8967
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8968
  lt_status=$lt_dlunknown
 
8969
  cat > conftest.$ac_ext <<EOF
 
8970
#line 8970 "configure"
 
8971
#include "confdefs.h"
 
8972
 
 
8973
#if HAVE_DLFCN_H
 
8974
#include <dlfcn.h>
 
8975
#endif
 
8976
 
 
8977
#include <stdio.h>
 
8978
 
 
8979
#ifdef RTLD_GLOBAL
 
8980
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8981
#else
 
8982
#  ifdef DL_GLOBAL
 
8983
#    define LT_DLGLOBAL         DL_GLOBAL
 
8984
#  else
 
8985
#    define LT_DLGLOBAL         0
 
8986
#  endif
 
8987
#endif
 
8988
 
 
8989
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8990
   find out it does not work in some platform. */
 
8991
#ifndef LT_DLLAZY_OR_NOW
 
8992
#  ifdef RTLD_LAZY
 
8993
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8994
#  else
 
8995
#    ifdef DL_LAZY
 
8996
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8997
#    else
 
8998
#      ifdef RTLD_NOW
 
8999
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9000
#      else
 
9001
#        ifdef DL_NOW
 
9002
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9003
#        else
 
9004
#          define LT_DLLAZY_OR_NOW      0
 
9005
#        endif
 
9006
#      endif
 
9007
#    endif
 
9008
#  endif
 
9009
#endif
 
9010
 
 
9011
#ifdef __cplusplus
 
9012
extern "C" void exit (int);
 
9013
#endif
 
9014
 
 
9015
void fnord() { int i=42;}
 
9016
int main ()
 
9017
{
 
9018
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9019
  int status = $lt_dlunknown;
 
9020
 
 
9021
  if (self)
 
9022
    {
 
9023
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9024
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9025
      /* dlclose (self); */
 
9026
    }
 
9027
 
 
9028
    exit (status);
 
9029
}
 
9030
EOF
 
9031
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9032
  (eval $ac_link) 2>&5
 
9033
  ac_status=$?
 
9034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9035
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9036
    (./conftest; exit; ) 2>/dev/null
 
9037
    lt_status=$?
 
9038
    case x$lt_status in
 
9039
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
9040
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
9041
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
9042
    esac
 
9043
  else :
 
9044
    # compilation failed
 
9045
    lt_cv_dlopen_self_static=no
 
9046
  fi
 
9047
fi
 
9048
rm -fr conftest*
 
9049
 
 
9050
 
 
9051
fi
 
9052
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
9053
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
9054
    fi
 
9055
 
 
9056
    CPPFLAGS="$save_CPPFLAGS"
 
9057
    LDFLAGS="$save_LDFLAGS"
 
9058
    LIBS="$save_LIBS"
 
9059
    ;;
 
9060
  esac
 
9061
 
 
9062
  case $lt_cv_dlopen_self in
 
9063
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
9064
  *) enable_dlopen_self=unknown ;;
 
9065
  esac
 
9066
 
 
9067
  case $lt_cv_dlopen_self_static in
 
9068
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
9069
  *) enable_dlopen_self_static=unknown ;;
 
9070
  esac
 
9071
fi
 
9072
 
 
9073
 
 
9074
# Report which librarie types wil actually be built
 
9075
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
9076
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
9077
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
9078
echo "${ECHO_T}$can_build_shared" >&6
 
9079
 
 
9080
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
9081
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
9082
test "$can_build_shared" = "no" && enable_shared=no
 
9083
 
 
9084
# On AIX, shared libraries and static libraries use the same namespace, and
 
9085
# are all built from PIC.
 
9086
case "$host_os" in
 
9087
aix3*)
 
9088
  test "$enable_shared" = yes && enable_static=no
 
9089
  if test -n "$RANLIB"; then
 
9090
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
9091
    postinstall_cmds='$RANLIB $lib'
 
9092
  fi
 
9093
  ;;
 
9094
 
 
9095
aix4*)
 
9096
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
9097
    test "$enable_shared" = yes && enable_static=no
 
9098
  fi
 
9099
  ;;
 
9100
  darwin* | rhapsody*)
 
9101
  if test "$GCC" = yes; then
 
9102
    archive_cmds_need_lc=no
 
9103
    case "$host_os" in
 
9104
    rhapsody* | darwin1.[012])
 
9105
      allow_undefined_flag='-undefined suppress'
 
9106
      ;;
 
9107
    *) # Darwin 1.3 on
 
9108
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9109
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
9110
      else
 
9111
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
9112
          10.[012])
 
9113
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
9114
            ;;
 
9115
          10.*)
 
9116
            allow_undefined_flag='-undefined dynamic_lookup'
 
9117
            ;;
 
9118
        esac
 
9119
      fi
 
9120
      ;;
 
9121
    esac
 
9122
    output_verbose_link_cmd='echo'
 
9123
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
9124
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9125
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9126
    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}'
 
9127
    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}'
 
9128
    hardcode_direct=no
 
9129
    hardcode_automatic=yes
 
9130
    hardcode_shlibpath_var=unsupported
 
9131
    whole_archive_flag_spec='-all_load $convenience'
 
9132
    link_all_deplibs=yes
 
9133
  else
 
9134
    ld_shlibs=no
 
9135
  fi
 
9136
    ;;
 
9137
esac
 
9138
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
9139
echo "${ECHO_T}$enable_shared" >&6
 
9140
 
 
9141
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
9142
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
9143
# Make sure either enable_shared or enable_static is yes.
 
9144
test "$enable_shared" = yes || enable_static=yes
 
9145
echo "$as_me:$LINENO: result: $enable_static" >&5
 
9146
echo "${ECHO_T}$enable_static" >&6
 
9147
 
 
9148
# The else clause should only fire when bootstrapping the
 
9149
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
9150
# with your package, and you will get complaints that there are
 
9151
# no rules to generate ltmain.sh.
 
9152
if test -f "$ltmain"; then
 
9153
  # See if we are running on zsh, and set the options which allow our commands through
 
9154
  # without removal of \ escapes.
 
9155
  if test -n "${ZSH_VERSION+set}" ; then
 
9156
    setopt NO_GLOB_SUBST
 
9157
  fi
 
9158
  # Now quote all the things that may contain metacharacters while being
 
9159
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
9160
  # variables and quote the copies for generation of the libtool script.
 
9161
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
9162
    SED SHELL STRIP \
 
9163
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
9164
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
9165
    deplibs_check_method reload_flag reload_cmds need_locks \
 
9166
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
9167
    lt_cv_sys_global_symbol_to_c_name_address \
 
9168
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
9169
    old_postinstall_cmds old_postuninstall_cmds \
 
9170
    compiler \
 
9171
    CC \
 
9172
    LD \
 
9173
    lt_prog_compiler_wl \
 
9174
    lt_prog_compiler_pic \
 
9175
    lt_prog_compiler_static \
 
9176
    lt_prog_compiler_no_builtin_flag \
 
9177
    export_dynamic_flag_spec \
 
9178
    thread_safe_flag_spec \
 
9179
    whole_archive_flag_spec \
 
9180
    enable_shared_with_static_runtimes \
 
9181
    old_archive_cmds \
 
9182
    old_archive_from_new_cmds \
 
9183
    predep_objects \
 
9184
    postdep_objects \
 
9185
    predeps \
 
9186
    postdeps \
 
9187
    compiler_lib_search_path \
 
9188
    archive_cmds \
 
9189
    archive_expsym_cmds \
 
9190
    postinstall_cmds \
 
9191
    postuninstall_cmds \
 
9192
    old_archive_from_expsyms_cmds \
 
9193
    allow_undefined_flag \
 
9194
    no_undefined_flag \
 
9195
    export_symbols_cmds \
 
9196
    hardcode_libdir_flag_spec \
 
9197
    hardcode_libdir_flag_spec_ld \
 
9198
    hardcode_libdir_separator \
 
9199
    hardcode_automatic \
 
9200
    module_cmds \
 
9201
    module_expsym_cmds \
 
9202
    lt_cv_prog_compiler_c_o \
 
9203
    exclude_expsyms \
 
9204
    include_expsyms; do
 
9205
 
 
9206
    case $var in
 
9207
    old_archive_cmds | \
 
9208
    old_archive_from_new_cmds | \
 
9209
    archive_cmds | \
 
9210
    archive_expsym_cmds | \
 
9211
    module_cmds | \
 
9212
    module_expsym_cmds | \
 
9213
    old_archive_from_expsyms_cmds | \
 
9214
    export_symbols_cmds | \
 
9215
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
9216
    postinstall_cmds | postuninstall_cmds | \
 
9217
    old_postinstall_cmds | old_postuninstall_cmds | \
 
9218
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
9219
      # Double-quote double-evaled strings.
 
9220
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
9221
      ;;
 
9222
    *)
 
9223
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
9224
      ;;
 
9225
    esac
 
9226
  done
 
9227
 
 
9228
  case $lt_echo in
 
9229
  *'\$0 --fallback-echo"')
 
9230
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
9231
    ;;
 
9232
  esac
 
9233
 
 
9234
cfgfile="${ofile}T"
 
9235
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
9236
  $rm -f "$cfgfile"
 
9237
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
9238
echo "$as_me: creating $ofile" >&6;}
 
9239
 
 
9240
  cat <<__EOF__ >> "$cfgfile"
 
9241
#! $SHELL
 
9242
 
 
9243
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
9244
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
9245
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
9246
#
 
9247
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
9248
# Free Software Foundation, Inc.
 
9249
#
 
9250
# This file is part of GNU Libtool:
 
9251
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
9252
#
 
9253
# This program is free software; you can redistribute it and/or modify
 
9254
# it under the terms of the GNU General Public License as published by
 
9255
# the Free Software Foundation; either version 2 of the License, or
 
9256
# (at your option) any later version.
 
9257
#
 
9258
# This program is distributed in the hope that it will be useful, but
 
9259
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
9260
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
9261
# General Public License for more details.
 
9262
#
 
9263
# You should have received a copy of the GNU General Public License
 
9264
# along with this program; if not, write to the Free Software
 
9265
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
9266
#
 
9267
# As a special exception to the GNU General Public License, if you
 
9268
# distribute this file as part of a program that contains a
 
9269
# configuration script generated by Autoconf, you may include it under
 
9270
# the same distribution terms that you use for the rest of that program.
 
9271
 
 
9272
# A sed program that does not truncate output.
 
9273
SED=$lt_SED
 
9274
 
 
9275
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
9276
Xsed="$SED -e s/^X//"
 
9277
 
 
9278
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
9279
# if CDPATH is set.
 
9280
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
9281
 
 
9282
# The names of the tagged configurations supported by this script.
 
9283
available_tags=
 
9284
 
 
9285
# ### BEGIN LIBTOOL CONFIG
 
9286
 
 
9287
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
9288
 
 
9289
# Shell to use when invoking shell scripts.
 
9290
SHELL=$lt_SHELL
 
9291
 
 
9292
# Whether or not to build shared libraries.
 
9293
build_libtool_libs=$enable_shared
 
9294
 
 
9295
# Whether or not to build static libraries.
 
9296
build_old_libs=$enable_static
 
9297
 
 
9298
# Whether or not to add -lc for building shared libraries.
 
9299
build_libtool_need_lc=$archive_cmds_need_lc
 
9300
 
 
9301
# Whether or not to disallow shared libs when runtime libs are static
 
9302
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
9303
 
 
9304
# Whether or not to optimize for fast installation.
 
9305
fast_install=$enable_fast_install
 
9306
 
 
9307
# The host system.
 
9308
host_alias=$host_alias
 
9309
host=$host
 
9310
 
 
9311
# An echo program that does not interpret backslashes.
 
9312
echo=$lt_echo
 
9313
 
 
9314
# The archiver.
 
9315
AR=$lt_AR
 
9316
AR_FLAGS=$lt_AR_FLAGS
 
9317
 
 
9318
# A C compiler.
 
9319
LTCC=$lt_LTCC
 
9320
 
 
9321
# A language-specific compiler.
 
9322
CC=$lt_compiler
 
9323
 
 
9324
# Is the compiler the GNU C compiler?
 
9325
with_gcc=$GCC
 
9326
 
 
9327
# An ERE matcher.
 
9328
EGREP=$lt_EGREP
 
9329
 
 
9330
# The linker used to build libraries.
 
9331
LD=$lt_LD
 
9332
 
 
9333
# Whether we need hard or soft links.
 
9334
LN_S=$lt_LN_S
 
9335
 
 
9336
# A BSD-compatible nm program.
 
9337
NM=$lt_NM
 
9338
 
 
9339
# A symbol stripping program
 
9340
STRIP=$lt_STRIP
 
9341
 
 
9342
# Used to examine libraries when file_magic_cmd begins "file"
 
9343
MAGIC_CMD=$MAGIC_CMD
 
9344
 
 
9345
# Used on cygwin: DLL creation program.
 
9346
DLLTOOL="$DLLTOOL"
 
9347
 
 
9348
# Used on cygwin: object dumper.
 
9349
OBJDUMP="$OBJDUMP"
 
9350
 
 
9351
# Used on cygwin: assembler.
 
9352
AS="$AS"
 
9353
 
 
9354
# The name of the directory that contains temporary libtool files.
 
9355
objdir=$objdir
 
9356
 
 
9357
# How to create reloadable object files.
 
9358
reload_flag=$lt_reload_flag
 
9359
reload_cmds=$lt_reload_cmds
 
9360
 
 
9361
# How to pass a linker flag through the compiler.
 
9362
wl=$lt_lt_prog_compiler_wl
 
9363
 
 
9364
# Object file suffix (normally "o").
 
9365
objext="$ac_objext"
 
9366
 
 
9367
# Old archive suffix (normally "a").
 
9368
libext="$libext"
 
9369
 
 
9370
# Shared library suffix (normally ".so").
 
9371
shrext='$shrext'
 
9372
 
 
9373
# Executable file suffix (normally "").
 
9374
exeext="$exeext"
 
9375
 
 
9376
# Additional compiler flags for building library objects.
 
9377
pic_flag=$lt_lt_prog_compiler_pic
 
9378
pic_mode=$pic_mode
 
9379
 
 
9380
# What is the maximum length of a command?
 
9381
max_cmd_len=$lt_cv_sys_max_cmd_len
 
9382
 
 
9383
# Does compiler simultaneously support -c and -o options?
 
9384
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
9385
 
 
9386
# Must we lock files when doing compilation ?
 
9387
need_locks=$lt_need_locks
 
9388
 
 
9389
# Do we need the lib prefix for modules?
 
9390
need_lib_prefix=$need_lib_prefix
 
9391
 
 
9392
# Do we need a version for libraries?
 
9393
need_version=$need_version
 
9394
 
 
9395
# Whether dlopen is supported.
 
9396
dlopen_support=$enable_dlopen
 
9397
 
 
9398
# Whether dlopen of programs is supported.
 
9399
dlopen_self=$enable_dlopen_self
 
9400
 
 
9401
# Whether dlopen of statically linked programs is supported.
 
9402
dlopen_self_static=$enable_dlopen_self_static
 
9403
 
 
9404
# Compiler flag to prevent dynamic linking.
 
9405
link_static_flag=$lt_lt_prog_compiler_static
 
9406
 
 
9407
# Compiler flag to turn off builtin functions.
 
9408
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
9409
 
 
9410
# Compiler flag to allow reflexive dlopens.
 
9411
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
9412
 
 
9413
# Compiler flag to generate shared objects directly from archives.
 
9414
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
9415
 
 
9416
# Compiler flag to generate thread-safe objects.
 
9417
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
9418
 
 
9419
# Library versioning type.
 
9420
version_type=$version_type
 
9421
 
 
9422
# Format of library name prefix.
 
9423
libname_spec=$lt_libname_spec
 
9424
 
 
9425
# List of archive names.  First name is the real one, the rest are links.
 
9426
# The last name is the one that the linker finds with -lNAME.
 
9427
library_names_spec=$lt_library_names_spec
 
9428
 
 
9429
# The coded name of the library, if different from the real name.
 
9430
soname_spec=$lt_soname_spec
 
9431
 
 
9432
# Commands used to build and install an old-style archive.
 
9433
RANLIB=$lt_RANLIB
 
9434
old_archive_cmds=$lt_old_archive_cmds
 
9435
old_postinstall_cmds=$lt_old_postinstall_cmds
 
9436
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
9437
 
 
9438
# Create an old-style archive from a shared archive.
 
9439
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
9440
 
 
9441
# Create a temporary old-style archive to link instead of a shared archive.
 
9442
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
9443
 
 
9444
# Commands used to build and install a shared archive.
 
9445
archive_cmds=$lt_archive_cmds
 
9446
archive_expsym_cmds=$lt_archive_expsym_cmds
 
9447
postinstall_cmds=$lt_postinstall_cmds
 
9448
postuninstall_cmds=$lt_postuninstall_cmds
 
9449
 
 
9450
# Commands used to build a loadable module (assumed same as above if empty)
 
9451
module_cmds=$lt_module_cmds
 
9452
module_expsym_cmds=$lt_module_expsym_cmds
 
9453
 
 
9454
# Commands to strip libraries.
 
9455
old_striplib=$lt_old_striplib
 
9456
striplib=$lt_striplib
 
9457
 
 
9458
# Dependencies to place before the objects being linked to create a
 
9459
# shared library.
 
9460
predep_objects=$lt_predep_objects
 
9461
 
 
9462
# Dependencies to place after the objects being linked to create a
 
9463
# shared library.
 
9464
postdep_objects=$lt_postdep_objects
 
9465
 
 
9466
# Dependencies to place before the objects being linked to create a
 
9467
# shared library.
 
9468
predeps=$lt_predeps
 
9469
 
 
9470
# Dependencies to place after the objects being linked to create a
 
9471
# shared library.
 
9472
postdeps=$lt_postdeps
 
9473
 
 
9474
# The library search path used internally by the compiler when linking
 
9475
# a shared library.
 
9476
compiler_lib_search_path=$lt_compiler_lib_search_path
 
9477
 
 
9478
# Method to check whether dependent libraries are shared objects.
 
9479
deplibs_check_method=$lt_deplibs_check_method
 
9480
 
 
9481
# Command to use when deplibs_check_method == file_magic.
 
9482
file_magic_cmd=$lt_file_magic_cmd
 
9483
 
 
9484
# Flag that allows shared libraries with undefined symbols to be built.
 
9485
allow_undefined_flag=$lt_allow_undefined_flag
 
9486
 
 
9487
# Flag that forces no undefined symbols.
 
9488
no_undefined_flag=$lt_no_undefined_flag
 
9489
 
 
9490
# Commands used to finish a libtool library installation in a directory.
 
9491
finish_cmds=$lt_finish_cmds
 
9492
 
 
9493
# Same as above, but a single script fragment to be evaled but not shown.
 
9494
finish_eval=$lt_finish_eval
 
9495
 
 
9496
# Take the output of nm and produce a listing of raw symbols and C names.
 
9497
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
9498
 
 
9499
# Transform the output of nm in a proper C declaration
 
9500
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
9501
 
 
9502
# Transform the output of nm in a C name address pair
 
9503
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
9504
 
 
9505
# This is the shared library runtime path variable.
 
9506
runpath_var=$runpath_var
 
9507
 
 
9508
# This is the shared library path variable.
 
9509
shlibpath_var=$shlibpath_var
 
9510
 
 
9511
# Is shlibpath searched before the hard-coded library search path?
 
9512
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
9513
 
 
9514
# How to hardcode a shared library path into an executable.
 
9515
hardcode_action=$hardcode_action
 
9516
 
 
9517
# Whether we should hardcode library paths into libraries.
 
9518
hardcode_into_libs=$hardcode_into_libs
 
9519
 
 
9520
# Flag to hardcode \$libdir into a binary during linking.
 
9521
# This must work even if \$libdir does not exist.
 
9522
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
9523
 
 
9524
# If ld is used when linking, flag to hardcode \$libdir into
 
9525
# a binary during linking. This must work even if \$libdir does
 
9526
# not exist.
 
9527
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
9528
 
 
9529
# Whether we need a single -rpath flag with a separated argument.
 
9530
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
9531
 
 
9532
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
9533
# resulting binary.
 
9534
hardcode_direct=$hardcode_direct
 
9535
 
 
9536
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
9537
# resulting binary.
 
9538
hardcode_minus_L=$hardcode_minus_L
 
9539
 
 
9540
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
9541
# the resulting binary.
 
9542
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
9543
 
 
9544
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
9545
# and all subsequent libraries and executables linked against it.
 
9546
hardcode_automatic=$hardcode_automatic
 
9547
 
 
9548
# Variables whose values should be saved in libtool wrapper scripts and
 
9549
# restored at relink time.
 
9550
variables_saved_for_relink="$variables_saved_for_relink"
 
9551
 
 
9552
# Whether libtool must link a program against all its dependency libraries.
 
9553
link_all_deplibs=$link_all_deplibs
 
9554
 
 
9555
# Compile-time system search path for libraries
 
9556
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
9557
 
 
9558
# Run-time system search path for libraries
 
9559
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
9560
 
 
9561
# Fix the shell variable \$srcfile for the compiler.
 
9562
fix_srcfile_path="$fix_srcfile_path"
 
9563
 
 
9564
# Set to yes if exported symbols are required.
 
9565
always_export_symbols=$always_export_symbols
 
9566
 
 
9567
# The commands to list exported symbols.
 
9568
export_symbols_cmds=$lt_export_symbols_cmds
 
9569
 
 
9570
# The commands to extract the exported symbol list from a shared archive.
 
9571
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
9572
 
 
9573
# Symbols that should not be listed in the preloaded symbols.
 
9574
exclude_expsyms=$lt_exclude_expsyms
 
9575
 
 
9576
# Symbols that must always be exported.
 
9577
include_expsyms=$lt_include_expsyms
 
9578
 
 
9579
# ### END LIBTOOL CONFIG
 
9580
 
 
9581
__EOF__
 
9582
 
 
9583
 
 
9584
  case $host_os in
 
9585
  aix3*)
 
9586
    cat <<\EOF >> "$cfgfile"
 
9587
 
 
9588
# AIX sometimes has problems with the GCC collect2 program.  For some
 
9589
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
9590
# vanish in a puff of smoke.
 
9591
if test "X${COLLECT_NAMES+set}" != Xset; then
 
9592
  COLLECT_NAMES=
 
9593
  export COLLECT_NAMES
 
9594
fi
 
9595
EOF
 
9596
    ;;
 
9597
  esac
 
9598
 
 
9599
  # We use sed instead of cat because bash on DJGPP gets confused if
 
9600
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
9601
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
9602
  # is reportedly fixed, but why not run on old versions too?
 
9603
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
9604
 
 
9605
  mv -f "$cfgfile" "$ofile" || \
 
9606
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
9607
  chmod +x "$ofile"
 
9608
 
 
9609
else
 
9610
  # If there is no Makefile yet, we rely on a make rule to execute
 
9611
  # `config.status --recheck' to rerun these tests and create the
 
9612
  # libtool script then.
 
9613
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
9614
  if test -f "$ltmain_in"; then
 
9615
    test -f Makefile && make "$ltmain"
 
9616
  fi
 
9617
fi
 
9618
 
 
9619
 
 
9620
ac_ext=c
 
9621
ac_cpp='$CPP $CPPFLAGS'
 
9622
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9623
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9624
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9625
 
 
9626
CC="$lt_save_CC"
 
9627
 
 
9628
 
 
9629
# Check whether --with-tags or --without-tags was given.
 
9630
if test "${with_tags+set}" = set; then
 
9631
  withval="$with_tags"
 
9632
  tagnames="$withval"
 
9633
fi;
 
9634
 
 
9635
if test -f "$ltmain" && test -n "$tagnames"; then
 
9636
  if test ! -f "${ofile}"; then
 
9637
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
9638
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
9639
  fi
 
9640
 
 
9641
  if test -z "$LTCC"; then
 
9642
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
9643
    if test -z "$LTCC"; then
 
9644
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
9645
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
9646
    else
 
9647
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
9648
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
9649
    fi
 
9650
  fi
 
9651
 
 
9652
  # Extract list of available tagged configurations in $ofile.
 
9653
  # Note that this assumes the entire list is on one line.
 
9654
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
9655
 
 
9656
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9657
  for tagname in $tagnames; do
 
9658
    IFS="$lt_save_ifs"
 
9659
    # Check whether tagname contains only valid characters
 
9660
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
9661
    "") ;;
 
9662
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
9663
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
9664
   { (exit 1); exit 1; }; }
 
9665
        ;;
 
9666
    esac
 
9667
 
 
9668
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
9669
    then
 
9670
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
9671
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
9672
   { (exit 1); exit 1; }; }
 
9673
    fi
 
9674
 
 
9675
    # Update the list of available tags.
 
9676
    if test -n "$tagname"; then
 
9677
      echo appending configuration tag \"$tagname\" to $ofile
 
9678
 
 
9679
      case $tagname in
 
9680
      CXX)
 
9681
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
9682
          ac_ext=cc
 
9683
ac_cpp='$CXXCPP $CPPFLAGS'
 
9684
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9685
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9686
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9687
 
 
9688
 
 
9689
 
 
9690
 
 
9691
archive_cmds_need_lc_CXX=no
 
9692
allow_undefined_flag_CXX=
 
9693
always_export_symbols_CXX=no
 
9694
archive_expsym_cmds_CXX=
 
9695
export_dynamic_flag_spec_CXX=
 
9696
hardcode_direct_CXX=no
 
9697
hardcode_libdir_flag_spec_CXX=
 
9698
hardcode_libdir_flag_spec_ld_CXX=
 
9699
hardcode_libdir_separator_CXX=
 
9700
hardcode_minus_L_CXX=no
 
9701
hardcode_automatic_CXX=no
 
9702
module_cmds_CXX=
 
9703
module_expsym_cmds_CXX=
 
9704
link_all_deplibs_CXX=unknown
 
9705
old_archive_cmds_CXX=$old_archive_cmds
 
9706
no_undefined_flag_CXX=
 
9707
whole_archive_flag_spec_CXX=
 
9708
enable_shared_with_static_runtimes_CXX=no
 
9709
 
 
9710
# Dependencies to place before and after the object being linked:
 
9711
predep_objects_CXX=
 
9712
postdep_objects_CXX=
 
9713
predeps_CXX=
 
9714
postdeps_CXX=
 
9715
compiler_lib_search_path_CXX=
 
9716
 
 
9717
# Source file extension for C++ test sources.
 
9718
ac_ext=cc
 
9719
 
 
9720
# Object file extension for compiled C++ test sources.
 
9721
objext=o
 
9722
objext_CXX=$objext
 
9723
 
 
9724
# Code to be used in simple compile tests
 
9725
lt_simple_compile_test_code="int some_variable = 0;\n"
 
9726
 
 
9727
# Code to be used in simple link tests
 
9728
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
9729
 
 
9730
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
9731
 
 
9732
# If no C compiler was specified, use CC.
 
9733
LTCC=${LTCC-"$CC"}
 
9734
 
 
9735
# Allow CC to be a program name with arguments.
 
9736
compiler=$CC
 
9737
 
 
9738
 
 
9739
# Allow CC to be a program name with arguments.
 
9740
lt_save_CC=$CC
 
9741
lt_save_LD=$LD
 
9742
lt_save_GCC=$GCC
 
9743
GCC=$GXX
 
9744
lt_save_with_gnu_ld=$with_gnu_ld
 
9745
lt_save_path_LD=$lt_cv_path_LD
 
9746
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
9747
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
9748
else
 
9749
  unset lt_cv_prog_gnu_ld
 
9750
fi
 
9751
if test -n "${lt_cv_path_LDCXX+set}"; then
 
9752
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
9753
else
 
9754
  unset lt_cv_path_LD
 
9755
fi
 
9756
test -z "${LDCXX+set}" || LD=$LDCXX
 
9757
CC=${CXX-"c++"}
 
9758
compiler=$CC
 
9759
compiler_CXX=$CC
 
9760
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
9761
 
 
9762
# We don't want -fno-exception wen compiling C++ code, so set the
 
9763
# no_builtin_flag separately
 
9764
if test "$GXX" = yes; then
 
9765
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
9766
else
 
9767
  lt_prog_compiler_no_builtin_flag_CXX=
 
9768
fi
 
9769
 
 
9770
if test "$GXX" = yes; then
 
9771
  # Set up default GNU C++ configuration
 
9772
 
 
9773
 
 
9774
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
9775
if test "${with_gnu_ld+set}" = set; then
 
9776
  withval="$with_gnu_ld"
 
9777
  test "$withval" = no || with_gnu_ld=yes
 
9778
else
 
9779
  with_gnu_ld=no
 
9780
fi;
 
9781
ac_prog=ld
 
9782
if test "$GCC" = yes; then
 
9783
  # Check if gcc -print-prog-name=ld gives a path.
 
9784
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
9785
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
9786
  case $host in
 
9787
  *-*-mingw*)
 
9788
    # gcc leaves a trailing carriage return which upsets mingw
 
9789
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
9790
  *)
 
9791
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
9792
  esac
 
9793
  case $ac_prog in
 
9794
    # Accept absolute paths.
 
9795
    [\\/]* | ?:[\\/]*)
 
9796
      re_direlt='/[^/][^/]*/\.\./'
 
9797
      # Canonicalize the pathname of ld
 
9798
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
9799
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
9800
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
9801
      done
 
9802
      test -z "$LD" && LD="$ac_prog"
 
9803
      ;;
 
9804
  "")
 
9805
    # If it fails, then pretend we aren't using GCC.
 
9806
    ac_prog=ld
 
9807
    ;;
 
9808
  *)
 
9809
    # If it is relative, then search for the first ld in PATH.
 
9810
    with_gnu_ld=unknown
 
9811
    ;;
 
9812
  esac
 
9813
elif test "$with_gnu_ld" = yes; then
 
9814
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
9815
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
9816
else
 
9817
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
9818
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
9819
fi
 
9820
if test "${lt_cv_path_LD+set}" = set; then
 
9821
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9822
else
 
9823
  if test -z "$LD"; then
 
9824
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9825
  for ac_dir in $PATH; do
 
9826
    IFS="$lt_save_ifs"
 
9827
    test -z "$ac_dir" && ac_dir=.
 
9828
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
9829
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
9830
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
9831
      # but apparently some GNU ld's only accept -v.
 
9832
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
9833
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
9834
      *GNU* | *'with BFD'*)
 
9835
        test "$with_gnu_ld" != no && break
 
9836
        ;;
 
9837
      *)
 
9838
        test "$with_gnu_ld" != yes && break
 
9839
        ;;
 
9840
      esac
 
9841
    fi
 
9842
  done
 
9843
  IFS="$lt_save_ifs"
 
9844
else
 
9845
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
9846
fi
 
9847
fi
 
9848
 
 
9849
LD="$lt_cv_path_LD"
 
9850
if test -n "$LD"; then
 
9851
  echo "$as_me:$LINENO: result: $LD" >&5
 
9852
echo "${ECHO_T}$LD" >&6
 
9853
else
 
9854
  echo "$as_me:$LINENO: result: no" >&5
 
9855
echo "${ECHO_T}no" >&6
 
9856
fi
 
9857
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
9858
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
9859
   { (exit 1); exit 1; }; }
 
9860
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
9861
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
9862
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
9863
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9864
else
 
9865
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
9866
case `$LD -v 2>&1 </dev/null` in
 
9867
*GNU* | *'with BFD'*)
 
9868
  lt_cv_prog_gnu_ld=yes
 
9869
  ;;
 
9870
*)
 
9871
  lt_cv_prog_gnu_ld=no
 
9872
  ;;
 
9873
esac
 
9874
fi
 
9875
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
9876
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
9877
with_gnu_ld=$lt_cv_prog_gnu_ld
 
9878
 
 
9879
 
 
9880
 
 
9881
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
9882
  # archiving commands below assume that GNU ld is being used.
 
9883
  if test "$with_gnu_ld" = yes; then
 
9884
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9885
    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'
 
9886
 
 
9887
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
9888
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
9889
 
 
9890
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9891
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
9892
    #     investigate it a little bit more. (MM)
 
9893
    wlarc='${wl}'
 
9894
 
 
9895
    # ancient GNU ld didn't support --whole-archive et. al.
 
9896
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
9897
        grep 'no-whole-archive' > /dev/null; then
 
9898
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9899
    else
 
9900
      whole_archive_flag_spec_CXX=
 
9901
    fi
 
9902
  else
 
9903
    with_gnu_ld=no
 
9904
    wlarc=
 
9905
 
 
9906
    # A generic and very simple default shared library creation
 
9907
    # command for GNU C++ for the case where it uses the native
 
9908
    # linker, instead of GNU ld.  If possible, this setting should
 
9909
    # overridden to take advantage of the native linker features on
 
9910
    # the platform it is being used on.
 
9911
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
9912
  fi
 
9913
 
 
9914
  # Commands to make compiler produce verbose output that lists
 
9915
  # what "hidden" libraries, object files and flags are used when
 
9916
  # linking a shared library.
 
9917
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
9918
 
 
9919
else
 
9920
  GXX=no
 
9921
  with_gnu_ld=no
 
9922
  wlarc=
 
9923
fi
 
9924
 
 
9925
# PORTME: fill in a description of your system's C++ link characteristics
 
9926
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9927
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
9928
ld_shlibs_CXX=yes
 
9929
case $host_os in
 
9930
  aix3*)
 
9931
    # FIXME: insert proper C++ library support
 
9932
    ld_shlibs_CXX=no
 
9933
    ;;
 
9934
  aix4* | aix5*)
 
9935
    if test "$host_cpu" = ia64; then
 
9936
      # On IA64, the linker does run time linking by default, so we don't
 
9937
      # have to do anything special.
 
9938
      aix_use_runtimelinking=no
 
9939
      exp_sym_flag='-Bexport'
 
9940
      no_entry_flag=""
 
9941
    else
 
9942
      aix_use_runtimelinking=no
 
9943
 
 
9944
      # Test if we are trying to use run time linking or normal
 
9945
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9946
      # need to do runtime linking.
 
9947
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
9948
        for ld_flag in $LDFLAGS; do
 
9949
          case $ld_flag in
 
9950
          *-brtl*)
 
9951
            aix_use_runtimelinking=yes
 
9952
            break
 
9953
            ;;
 
9954
          esac
 
9955
        done
 
9956
      esac
 
9957
 
 
9958
      exp_sym_flag='-bexport'
 
9959
      no_entry_flag='-bnoentry'
 
9960
    fi
 
9961
 
 
9962
    # When large executables or shared objects are built, AIX ld can
 
9963
    # have problems creating the table of contents.  If linking a library
 
9964
    # or program results in "error TOC overflow" add -mminimal-toc to
 
9965
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9966
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9967
 
 
9968
    archive_cmds_CXX=''
 
9969
    hardcode_direct_CXX=yes
 
9970
    hardcode_libdir_separator_CXX=':'
 
9971
    link_all_deplibs_CXX=yes
 
9972
 
 
9973
    if test "$GXX" = yes; then
 
9974
      case $host_os in aix4.012|aix4.012.*)
 
9975
      # We only want to do this on AIX 4.2 and lower, the check
 
9976
      # below for broken collect2 doesn't work under 4.3+
 
9977
        collect2name=`${CC} -print-prog-name=collect2`
 
9978
        if test -f "$collect2name" && \
 
9979
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
9980
        then
 
9981
          # We have reworked collect2
 
9982
          hardcode_direct_CXX=yes
 
9983
        else
 
9984
          # We have old collect2
 
9985
          hardcode_direct_CXX=unsupported
 
9986
          # It fails to find uninstalled libraries when the uninstalled
 
9987
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9988
          # to unsupported forces relinking
 
9989
          hardcode_minus_L_CXX=yes
 
9990
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9991
          hardcode_libdir_separator_CXX=
 
9992
        fi
 
9993
      esac
 
9994
      shared_flag='-shared'
 
9995
    else
 
9996
      # not using gcc
 
9997
      if test "$host_cpu" = ia64; then
 
9998
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9999
        # chokes on -Wl,-G. The following line is correct:
 
10000
        shared_flag='-G'
 
10001
      else
 
10002
        if test "$aix_use_runtimelinking" = yes; then
 
10003
          shared_flag='${wl}-G'
 
10004
        else
 
10005
          shared_flag='${wl}-bM:SRE'
 
10006
        fi
 
10007
      fi
 
10008
    fi
 
10009
 
 
10010
    # It seems that -bexpall does not export symbols beginning with
 
10011
    # underscore (_), so it is better to generate a list of symbols to export.
 
10012
    always_export_symbols_CXX=yes
 
10013
    if test "$aix_use_runtimelinking" = yes; then
 
10014
      # Warning - without using the other runtime loading flags (-brtl),
 
10015
      # -berok will link without error, but may produce a broken library.
 
10016
      allow_undefined_flag_CXX='-berok'
 
10017
      # Determine the default libpath from the value encoded in an empty executable.
 
10018
      cat >conftest.$ac_ext <<_ACEOF
 
10019
/* confdefs.h.  */
 
10020
_ACEOF
 
10021
cat confdefs.h >>conftest.$ac_ext
 
10022
cat >>conftest.$ac_ext <<_ACEOF
 
10023
/* end confdefs.h.  */
 
10024
 
 
10025
int
 
10026
main ()
 
10027
{
 
10028
 
 
10029
  ;
 
10030
  return 0;
 
10031
}
 
10032
_ACEOF
 
10033
rm -f conftest.$ac_objext conftest$ac_exeext
 
10034
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10035
  (eval $ac_link) 2>conftest.er1
 
10036
  ac_status=$?
 
10037
  grep -v '^ *+' conftest.er1 >conftest.err
 
10038
  rm -f conftest.er1
 
10039
  cat conftest.err >&5
 
10040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10041
  (exit $ac_status); } &&
 
10042
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10043
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10044
  (eval $ac_try) 2>&5
 
10045
  ac_status=$?
 
10046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10047
  (exit $ac_status); }; } &&
 
10048
         { ac_try='test -s conftest$ac_exeext'
 
10049
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10050
  (eval $ac_try) 2>&5
 
10051
  ac_status=$?
 
10052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10053
  (exit $ac_status); }; }; then
 
10054
 
 
10055
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10056
}'`
 
10057
# Check for a 64-bit object if we didn't find anything.
 
10058
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; }
 
10059
}'`; fi
 
10060
else
 
10061
  echo "$as_me: failed program was:" >&5
 
10062
sed 's/^/| /' conftest.$ac_ext >&5
 
10063
 
 
10064
fi
 
10065
rm -f conftest.err conftest.$ac_objext \
 
10066
      conftest$ac_exeext conftest.$ac_ext
 
10067
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10068
 
 
10069
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10070
 
 
10071
      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"
 
10072
     else
 
10073
      if test "$host_cpu" = ia64; then
 
10074
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
10075
        allow_undefined_flag_CXX="-z nodefs"
 
10076
        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"
 
10077
      else
 
10078
        # Determine the default libpath from the value encoded in an empty executable.
 
10079
        cat >conftest.$ac_ext <<_ACEOF
 
10080
/* confdefs.h.  */
 
10081
_ACEOF
 
10082
cat confdefs.h >>conftest.$ac_ext
 
10083
cat >>conftest.$ac_ext <<_ACEOF
 
10084
/* end confdefs.h.  */
 
10085
 
 
10086
int
 
10087
main ()
 
10088
{
 
10089
 
 
10090
  ;
 
10091
  return 0;
 
10092
}
 
10093
_ACEOF
 
10094
rm -f conftest.$ac_objext conftest$ac_exeext
 
10095
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10096
  (eval $ac_link) 2>conftest.er1
 
10097
  ac_status=$?
 
10098
  grep -v '^ *+' conftest.er1 >conftest.err
 
10099
  rm -f conftest.er1
 
10100
  cat conftest.err >&5
 
10101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10102
  (exit $ac_status); } &&
 
10103
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10104
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10105
  (eval $ac_try) 2>&5
 
10106
  ac_status=$?
 
10107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10108
  (exit $ac_status); }; } &&
 
10109
         { ac_try='test -s conftest$ac_exeext'
 
10110
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10111
  (eval $ac_try) 2>&5
 
10112
  ac_status=$?
 
10113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10114
  (exit $ac_status); }; }; then
 
10115
 
 
10116
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10117
}'`
 
10118
# Check for a 64-bit object if we didn't find anything.
 
10119
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; }
 
10120
}'`; fi
 
10121
else
 
10122
  echo "$as_me: failed program was:" >&5
 
10123
sed 's/^/| /' conftest.$ac_ext >&5
 
10124
 
 
10125
fi
 
10126
rm -f conftest.err conftest.$ac_objext \
 
10127
      conftest$ac_exeext conftest.$ac_ext
 
10128
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10129
 
 
10130
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10131
        # Warning - without using the other run time loading flags,
 
10132
        # -berok will link without error, but may produce a broken library.
 
10133
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
10134
        allow_undefined_flag_CXX=' ${wl}-berok'
 
10135
        # -bexpall does not export symbols beginning with underscore (_)
 
10136
        always_export_symbols_CXX=yes
 
10137
        # Exported symbols can be pulled into shared objects from archives
 
10138
        whole_archive_flag_spec_CXX=' '
 
10139
        archive_cmds_need_lc_CXX=yes
 
10140
        # This is similar to how AIX traditionally builds it's shared libraries.
 
10141
        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'
 
10142
      fi
 
10143
    fi
 
10144
    ;;
 
10145
  chorus*)
 
10146
    case $cc_basename in
 
10147
      *)
 
10148
        # FIXME: insert proper C++ library support
 
10149
        ld_shlibs_CXX=no
 
10150
        ;;
 
10151
    esac
 
10152
    ;;
 
10153
 
 
10154
  cygwin* | mingw* | pw32*)
 
10155
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
10156
    # as there is no search path for DLLs.
 
10157
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10158
    allow_undefined_flag_CXX=unsupported
 
10159
    always_export_symbols_CXX=no
 
10160
    enable_shared_with_static_runtimes_CXX=yes
 
10161
 
 
10162
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
10163
      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'
 
10164
      # If the export-symbols file already is a .def file (1st line
 
10165
      # is EXPORTS), use it as is; otherwise, prepend...
 
10166
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10167
        cp $export_symbols $output_objdir/$soname.def;
 
10168
      else
 
10169
        echo EXPORTS > $output_objdir/$soname.def;
 
10170
        cat $export_symbols >> $output_objdir/$soname.def;
 
10171
      fi~
 
10172
      $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'
 
10173
    else
 
10174
      ld_shlibs_CXX=no
 
10175
    fi
 
10176
  ;;
 
10177
 
 
10178
  darwin* | rhapsody*)
 
10179
  if test "$GXX" = yes; then
 
10180
    archive_cmds_need_lc_CXX=no
 
10181
    case "$host_os" in
 
10182
    rhapsody* | darwin1.[012])
 
10183
      allow_undefined_flag_CXX='-undefined suppress'
 
10184
      ;;
 
10185
    *) # Darwin 1.3 on
 
10186
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10187
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
10188
      else
 
10189
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
10190
          10.[012])
 
10191
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
10192
            ;;
 
10193
          10.*)
 
10194
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
 
10195
            ;;
 
10196
        esac
 
10197
      fi
 
10198
      ;;
 
10199
    esac
 
10200
    lt_int_apple_cc_single_mod=no
 
10201
    output_verbose_link_cmd='echo'
 
10202
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
10203
      lt_int_apple_cc_single_mod=yes
 
10204
    fi
 
10205
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10206
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10207
    else
 
10208
      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'
 
10209
    fi
 
10210
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10211
 
 
10212
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
10213
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10214
      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}'
 
10215
    else
 
10216
      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}'
 
10217
    fi
 
10218
    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}'
 
10219
    hardcode_direct_CXX=no
 
10220
    hardcode_automatic_CXX=yes
 
10221
    hardcode_shlibpath_var_CXX=unsupported
 
10222
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
10223
    link_all_deplibs_CXX=yes
 
10224
  else
 
10225
    ld_shlibs_CXX=no
 
10226
  fi
 
10227
    ;;
 
10228
 
 
10229
  dgux*)
 
10230
    case $cc_basename in
 
10231
      ec++)
 
10232
        # FIXME: insert proper C++ library support
 
10233
        ld_shlibs_CXX=no
 
10234
        ;;
 
10235
      ghcx)
 
10236
        # Green Hills C++ Compiler
 
10237
        # FIXME: insert proper C++ library support
 
10238
        ld_shlibs_CXX=no
 
10239
        ;;
 
10240
      *)
 
10241
        # FIXME: insert proper C++ library support
 
10242
        ld_shlibs_CXX=no
 
10243
        ;;
 
10244
    esac
 
10245
    ;;
 
10246
  freebsd12*)
 
10247
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
10248
    ld_shlibs_CXX=no
 
10249
    ;;
 
10250
  freebsd-elf*)
 
10251
    archive_cmds_need_lc_CXX=no
 
10252
    ;;
 
10253
  freebsd* | kfreebsd*-gnu)
 
10254
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
10255
    # conventions
 
10256
    ld_shlibs_CXX=yes
 
10257
    ;;
 
10258
  gnu*)
 
10259
    ;;
 
10260
  hpux9*)
 
10261
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10262
    hardcode_libdir_separator_CXX=:
 
10263
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10264
    hardcode_direct_CXX=yes
 
10265
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10266
                                # but as the default
 
10267
                                # location of the library.
 
10268
 
 
10269
    case $cc_basename in
 
10270
    CC)
 
10271
      # FIXME: insert proper C++ library support
 
10272
      ld_shlibs_CXX=no
 
10273
      ;;
 
10274
    aCC)
 
10275
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
10276
      # Commands to make compiler produce verbose output that lists
 
10277
      # what "hidden" libraries, object files and flags are used when
 
10278
      # linking a shared library.
 
10279
      #
 
10280
      # There doesn't appear to be a way to prevent this compiler from
 
10281
      # explicitly linking system object files so we need to strip them
 
10282
      # from the output so that they don't get included in the library
 
10283
      # dependencies.
 
10284
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
10285
      ;;
 
10286
    *)
 
10287
      if test "$GXX" = yes; then
 
10288
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
10289
      else
 
10290
        # FIXME: insert proper C++ library support
 
10291
        ld_shlibs_CXX=no
 
10292
      fi
 
10293
      ;;
 
10294
    esac
 
10295
    ;;
 
10296
  hpux10*|hpux11*)
 
10297
    if test $with_gnu_ld = no; then
 
10298
      case "$host_cpu" in
 
10299
      hppa*64*)
 
10300
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10301
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
10302
        hardcode_libdir_separator_CXX=:
 
10303
        ;;
 
10304
      ia64*)
 
10305
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10306
        ;;
 
10307
      *)
 
10308
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10309
        hardcode_libdir_separator_CXX=:
 
10310
        export_dynamic_flag_spec_CXX='${wl}-E'
 
10311
        ;;
 
10312
      esac
 
10313
    fi
 
10314
    case "$host_cpu" in
 
10315
    hppa*64*)
 
10316
      hardcode_direct_CXX=no
 
10317
      hardcode_shlibpath_var_CXX=no
 
10318
      ;;
 
10319
    ia64*)
 
10320
      hardcode_direct_CXX=no
 
10321
      hardcode_shlibpath_var_CXX=no
 
10322
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10323
                                              # but as the default
 
10324
                                              # location of the library.
 
10325
      ;;
 
10326
    *)
 
10327
      hardcode_direct_CXX=yes
 
10328
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10329
                                              # but as the default
 
10330
                                              # location of the library.
 
10331
      ;;
 
10332
    esac
 
10333
 
 
10334
    case $cc_basename in
 
10335
      CC)
 
10336
        # FIXME: insert proper C++ library support
 
10337
        ld_shlibs_CXX=no
 
10338
        ;;
 
10339
      aCC)
 
10340
        case "$host_cpu" in
 
10341
        hppa*64*|ia64*)
 
10342
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10343
          ;;
 
10344
        *)
 
10345
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10346
          ;;
 
10347
        esac
 
10348
        # Commands to make compiler produce verbose output that lists
 
10349
        # what "hidden" libraries, object files and flags are used when
 
10350
        # linking a shared library.
 
10351
        #
 
10352
        # There doesn't appear to be a way to prevent this compiler from
 
10353
        # explicitly linking system object files so we need to strip them
 
10354
        # from the output so that they don't get included in the library
 
10355
        # dependencies.
 
10356
        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'
 
10357
        ;;
 
10358
      *)
 
10359
        if test "$GXX" = yes; then
 
10360
          if test $with_gnu_ld = no; then
 
10361
            case "$host_cpu" in
 
10362
            ia64*|hppa*64*)
 
10363
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10364
              ;;
 
10365
            *)
 
10366
              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'
 
10367
              ;;
 
10368
            esac
 
10369
          fi
 
10370
        else
 
10371
          # FIXME: insert proper C++ library support
 
10372
          ld_shlibs_CXX=no
 
10373
        fi
 
10374
        ;;
 
10375
    esac
 
10376
    ;;
 
10377
  irix5* | irix6*)
 
10378
    case $cc_basename in
 
10379
      CC)
 
10380
        # SGI C++
 
10381
        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'
 
10382
 
 
10383
        # Archives containing C++ object files must be created using
 
10384
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
10385
        # necessary to make sure instantiated templates are included
 
10386
        # in the archive.
 
10387
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
10388
        ;;
 
10389
      *)
 
10390
        if test "$GXX" = yes; then
 
10391
          if test "$with_gnu_ld" = no; then
 
10392
            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'
 
10393
          else
 
10394
            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'
 
10395
          fi
 
10396
        fi
 
10397
        link_all_deplibs_CXX=yes
 
10398
        ;;
 
10399
    esac
 
10400
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10401
    hardcode_libdir_separator_CXX=:
 
10402
    ;;
 
10403
  linux*)
 
10404
    case $cc_basename in
 
10405
      KCC)
 
10406
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10407
 
 
10408
        # KCC will only create a shared library if the output file
 
10409
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10410
        # to its proper name (with version) after linking.
 
10411
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
10412
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
10413
        # Commands to make compiler produce verbose output that lists
 
10414
        # what "hidden" libraries, object files and flags are used when
 
10415
        # linking a shared library.
 
10416
        #
 
10417
        # There doesn't appear to be a way to prevent this compiler from
 
10418
        # explicitly linking system object files so we need to strip them
 
10419
        # from the output so that they don't get included in the library
 
10420
        # dependencies.
 
10421
        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'
 
10422
 
 
10423
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
10424
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10425
 
 
10426
        # Archives containing C++ object files must be created using
 
10427
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10428
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10429
        ;;
 
10430
      icpc)
 
10431
        # Intel C++
 
10432
        with_gnu_ld=yes
 
10433
        archive_cmds_need_lc_CXX=no
 
10434
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10435
        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'
 
10436
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10437
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10438
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
10439
        ;;
 
10440
      cxx)
 
10441
        # Compaq C++
 
10442
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10443
        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'
 
10444
 
 
10445
        runpath_var=LD_RUN_PATH
 
10446
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10447
        hardcode_libdir_separator_CXX=:
 
10448
 
 
10449
        # Commands to make compiler produce verbose output that lists
 
10450
        # what "hidden" libraries, object files and flags are used when
 
10451
        # linking a shared library.
 
10452
        #
 
10453
        # There doesn't appear to be a way to prevent this compiler from
 
10454
        # explicitly linking system object files so we need to strip them
 
10455
        # from the output so that they don't get included in the library
 
10456
        # dependencies.
 
10457
        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'
 
10458
        ;;
 
10459
    esac
 
10460
    ;;
 
10461
  lynxos*)
 
10462
    # FIXME: insert proper C++ library support
 
10463
    ld_shlibs_CXX=no
 
10464
    ;;
 
10465
  m88k*)
 
10466
    # FIXME: insert proper C++ library support
 
10467
    ld_shlibs_CXX=no
 
10468
    ;;
 
10469
  mvs*)
 
10470
    case $cc_basename in
 
10471
      cxx)
 
10472
        # FIXME: insert proper C++ library support
 
10473
        ld_shlibs_CXX=no
 
10474
        ;;
 
10475
      *)
 
10476
        # FIXME: insert proper C++ library support
 
10477
        ld_shlibs_CXX=no
 
10478
        ;;
 
10479
    esac
 
10480
    ;;
 
10481
  netbsd*)
 
10482
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10483
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
10484
      wlarc=
 
10485
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10486
      hardcode_direct_CXX=yes
 
10487
      hardcode_shlibpath_var_CXX=no
 
10488
    fi
 
10489
    # Workaround some broken pre-1.5 toolchains
 
10490
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
10491
    ;;
 
10492
  osf3*)
 
10493
    case $cc_basename in
 
10494
      KCC)
 
10495
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10496
 
 
10497
        # KCC will only create a shared library if the output file
 
10498
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10499
        # to its proper name (with version) after linking.
 
10500
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
10501
 
 
10502
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10503
        hardcode_libdir_separator_CXX=:
 
10504
 
 
10505
        # Archives containing C++ object files must be created using
 
10506
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10507
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10508
 
 
10509
        ;;
 
10510
      RCC)
 
10511
        # Rational C++ 2.4.1
 
10512
        # FIXME: insert proper C++ library support
 
10513
        ld_shlibs_CXX=no
 
10514
        ;;
 
10515
      cxx)
 
10516
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10517
        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'
 
10518
 
 
10519
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10520
        hardcode_libdir_separator_CXX=:
 
10521
 
 
10522
        # Commands to make compiler produce verbose output that lists
 
10523
        # what "hidden" libraries, object files and flags are used when
 
10524
        # linking a shared library.
 
10525
        #
 
10526
        # There doesn't appear to be a way to prevent this compiler from
 
10527
        # explicitly linking system object files so we need to strip them
 
10528
        # from the output so that they don't get included in the library
 
10529
        # dependencies.
 
10530
        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'
 
10531
        ;;
 
10532
      *)
 
10533
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10534
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10535
          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'
 
10536
 
 
10537
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10538
          hardcode_libdir_separator_CXX=:
 
10539
 
 
10540
          # Commands to make compiler produce verbose output that lists
 
10541
          # what "hidden" libraries, object files and flags are used when
 
10542
          # linking a shared library.
 
10543
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10544
 
 
10545
        else
 
10546
          # FIXME: insert proper C++ library support
 
10547
          ld_shlibs_CXX=no
 
10548
        fi
 
10549
        ;;
 
10550
    esac
 
10551
    ;;
 
10552
  osf4* | osf5*)
 
10553
    case $cc_basename in
 
10554
      KCC)
 
10555
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10556
 
 
10557
        # KCC will only create a shared library if the output file
 
10558
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10559
        # to its proper name (with version) after linking.
 
10560
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
10561
 
 
10562
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10563
        hardcode_libdir_separator_CXX=:
 
10564
 
 
10565
        # Archives containing C++ object files must be created using
 
10566
        # the KAI C++ compiler.
 
10567
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
10568
        ;;
 
10569
      RCC)
 
10570
        # Rational C++ 2.4.1
 
10571
        # FIXME: insert proper C++ library support
 
10572
        ld_shlibs_CXX=no
 
10573
        ;;
 
10574
      cxx)
 
10575
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
10576
        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'
 
10577
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
10578
          echo "-hidden">> $lib.exp~
 
10579
          $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~
 
10580
          $rm $lib.exp'
 
10581
 
 
10582
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10583
        hardcode_libdir_separator_CXX=:
 
10584
 
 
10585
        # Commands to make compiler produce verbose output that lists
 
10586
        # what "hidden" libraries, object files and flags are used when
 
10587
        # linking a shared library.
 
10588
        #
 
10589
        # There doesn't appear to be a way to prevent this compiler from
 
10590
        # explicitly linking system object files so we need to strip them
 
10591
        # from the output so that they don't get included in the library
 
10592
        # dependencies.
 
10593
        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'
 
10594
        ;;
 
10595
      *)
 
10596
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10597
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10598
         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'
 
10599
 
 
10600
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10601
          hardcode_libdir_separator_CXX=:
 
10602
 
 
10603
          # Commands to make compiler produce verbose output that lists
 
10604
          # what "hidden" libraries, object files and flags are used when
 
10605
          # linking a shared library.
 
10606
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10607
 
 
10608
        else
 
10609
          # FIXME: insert proper C++ library support
 
10610
          ld_shlibs_CXX=no
 
10611
        fi
 
10612
        ;;
 
10613
    esac
 
10614
    ;;
 
10615
  psos*)
 
10616
    # FIXME: insert proper C++ library support
 
10617
    ld_shlibs_CXX=no
 
10618
    ;;
 
10619
  sco*)
 
10620
    archive_cmds_need_lc_CXX=no
 
10621
    case $cc_basename in
 
10622
      CC)
 
10623
        # FIXME: insert proper C++ library support
 
10624
        ld_shlibs_CXX=no
 
10625
        ;;
 
10626
      *)
 
10627
        # FIXME: insert proper C++ library support
 
10628
        ld_shlibs_CXX=no
 
10629
        ;;
 
10630
    esac
 
10631
    ;;
 
10632
  sunos4*)
 
10633
    case $cc_basename in
 
10634
      CC)
 
10635
        # Sun C++ 4.x
 
10636
        # FIXME: insert proper C++ library support
 
10637
        ld_shlibs_CXX=no
 
10638
        ;;
 
10639
      lcc)
 
10640
        # Lucid
 
10641
        # FIXME: insert proper C++ library support
 
10642
        ld_shlibs_CXX=no
 
10643
        ;;
 
10644
      *)
 
10645
        # FIXME: insert proper C++ library support
 
10646
        ld_shlibs_CXX=no
 
10647
        ;;
 
10648
    esac
 
10649
    ;;
 
10650
  solaris*)
 
10651
    case $cc_basename in
 
10652
      CC)
 
10653
        # Sun C++ 4.2, 5.x and Centerline C++
 
10654
        no_undefined_flag_CXX=' -zdefs'
 
10655
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10656
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10657
        $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'
 
10658
 
 
10659
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10660
        hardcode_shlibpath_var_CXX=no
 
10661
        case $host_os in
 
10662
          solaris2.0-5 | solaris2.0-5.*) ;;
 
10663
          *)
 
10664
            # The C++ compiler is used as linker so we must use $wl
 
10665
            # flag to pass the commands to the underlying system
 
10666
            # linker.
 
10667
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10668
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10669
            ;;
 
10670
        esac
 
10671
        link_all_deplibs_CXX=yes
 
10672
 
 
10673
        # Commands to make compiler produce verbose output that lists
 
10674
        # what "hidden" libraries, object files and flags are used when
 
10675
        # linking a shared library.
 
10676
        #
 
10677
        # There doesn't appear to be a way to prevent this compiler from
 
10678
        # explicitly linking system object files so we need to strip them
 
10679
        # from the output so that they don't get included in the library
 
10680
        # dependencies.
 
10681
        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'
 
10682
 
 
10683
        # Archives containing C++ object files must be created using
 
10684
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
10685
        # necessary to make sure instantiated templates are included
 
10686
        # in the archive.
 
10687
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
10688
        ;;
 
10689
      gcx)
 
10690
        # Green Hills C++ Compiler
 
10691
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10692
 
 
10693
        # The C++ compiler must be used to create the archive.
 
10694
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
10695
        ;;
 
10696
      *)
 
10697
        # GNU C++ compiler with Solaris linker
 
10698
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10699
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
10700
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
10701
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10702
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10703
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10704
 
 
10705
            # Commands to make compiler produce verbose output that lists
 
10706
            # what "hidden" libraries, object files and flags are used when
 
10707
            # linking a shared library.
 
10708
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10709
          else
 
10710
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
10711
            # platform.
 
10712
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10713
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10714
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10715
 
 
10716
            # Commands to make compiler produce verbose output that lists
 
10717
            # what "hidden" libraries, object files and flags are used when
 
10718
            # linking a shared library.
 
10719
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10720
          fi
 
10721
 
 
10722
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
10723
        fi
 
10724
        ;;
 
10725
    esac
 
10726
    ;;
 
10727
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
10728
    archive_cmds_need_lc_CXX=no
 
10729
    ;;
 
10730
  tandem*)
 
10731
    case $cc_basename in
 
10732
      NCC)
 
10733
        # NonStop-UX NCC 3.20
 
10734
        # FIXME: insert proper C++ library support
 
10735
        ld_shlibs_CXX=no
 
10736
        ;;
 
10737
      *)
 
10738
        # FIXME: insert proper C++ library support
 
10739
        ld_shlibs_CXX=no
 
10740
        ;;
 
10741
    esac
 
10742
    ;;
 
10743
  vxworks*)
 
10744
    # FIXME: insert proper C++ library support
 
10745
    ld_shlibs_CXX=no
 
10746
    ;;
 
10747
  *)
 
10748
    # FIXME: insert proper C++ library support
 
10749
    ld_shlibs_CXX=no
 
10750
    ;;
 
10751
esac
 
10752
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
10753
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
10754
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
10755
 
 
10756
GCC_CXX="$GXX"
 
10757
LD_CXX="$LD"
 
10758
 
 
10759
 
 
10760
cat > conftest.$ac_ext <<EOF
 
10761
class Foo
 
10762
{
 
10763
public:
 
10764
  Foo (void) { a = 0; }
 
10765
private:
 
10766
  int a;
 
10767
};
 
10768
EOF
 
10769
 
 
10770
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10771
  (eval $ac_compile) 2>&5
 
10772
  ac_status=$?
 
10773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10774
  (exit $ac_status); }; then
 
10775
  # Parse the compiler output and extract the necessary
 
10776
  # objects, libraries and library flags.
 
10777
 
 
10778
  # Sentinel used to keep track of whether or not we are before
 
10779
  # the conftest object file.
 
10780
  pre_test_object_deps_done=no
 
10781
 
 
10782
  # The `*' in the case matches for architectures that use `case' in
 
10783
  # $output_verbose_cmd can trigger glob expansion during the loop
 
10784
  # eval without this substitution.
 
10785
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
10786
 
 
10787
  for p in `eval $output_verbose_link_cmd`; do
 
10788
    case $p in
 
10789
 
 
10790
    -L* | -R* | -l*)
 
10791
       # Some compilers place space between "-{L,R}" and the path.
 
10792
       # Remove the space.
 
10793
       if test $p = "-L" \
 
10794
          || test $p = "-R"; then
 
10795
         prev=$p
 
10796
         continue
 
10797
       else
 
10798
         prev=
 
10799
       fi
 
10800
 
 
10801
       if test "$pre_test_object_deps_done" = no; then
 
10802
         case $p in
 
10803
         -L* | -R*)
 
10804
           # Internal compiler library paths should come after those
 
10805
           # provided the user.  The postdeps already come after the
 
10806
           # user supplied libs so there is no need to process them.
 
10807
           if test -z "$compiler_lib_search_path_CXX"; then
 
10808
             compiler_lib_search_path_CXX="${prev}${p}"
 
10809
           else
 
10810
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
10811
           fi
 
10812
           ;;
 
10813
         # The "-l" case would never come before the object being
 
10814
         # linked, so don't bother handling this case.
 
10815
         esac
 
10816
       else
 
10817
         if test -z "$postdeps_CXX"; then
 
10818
           postdeps_CXX="${prev}${p}"
 
10819
         else
 
10820
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
10821
         fi
 
10822
       fi
 
10823
       ;;
 
10824
 
 
10825
    *.$objext)
 
10826
       # This assumes that the test object file only shows up
 
10827
       # once in the compiler output.
 
10828
       if test "$p" = "conftest.$objext"; then
 
10829
         pre_test_object_deps_done=yes
 
10830
         continue
 
10831
       fi
 
10832
 
 
10833
       if test "$pre_test_object_deps_done" = no; then
 
10834
         if test -z "$predep_objects_CXX"; then
 
10835
           predep_objects_CXX="$p"
 
10836
         else
 
10837
           predep_objects_CXX="$predep_objects_CXX $p"
 
10838
         fi
 
10839
       else
 
10840
         if test -z "$postdep_objects_CXX"; then
 
10841
           postdep_objects_CXX="$p"
 
10842
         else
 
10843
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
10844
         fi
 
10845
       fi
 
10846
       ;;
 
10847
 
 
10848
    *) ;; # Ignore the rest.
 
10849
 
 
10850
    esac
 
10851
  done
 
10852
 
 
10853
  # Clean up.
 
10854
  rm -f a.out a.exe
 
10855
else
 
10856
  echo "libtool.m4: error: problem compiling CXX test program"
 
10857
fi
 
10858
 
 
10859
$rm -f confest.$objext
 
10860
 
 
10861
case " $postdeps_CXX " in
 
10862
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
10863
esac
 
10864
 
 
10865
lt_prog_compiler_wl_CXX=
 
10866
lt_prog_compiler_pic_CXX=
 
10867
lt_prog_compiler_static_CXX=
 
10868
 
 
10869
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
10870
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
10871
 
 
10872
  # C++ specific cases for pic, static, wl, etc.
 
10873
  if test "$GXX" = yes; then
 
10874
    lt_prog_compiler_wl_CXX='-Wl,'
 
10875
    lt_prog_compiler_static_CXX='-static'
 
10876
 
 
10877
    case $host_os in
 
10878
    aix*)
 
10879
      # All AIX code is PIC.
 
10880
      if test "$host_cpu" = ia64; then
 
10881
        # AIX 5 now supports IA64 processor
 
10882
        lt_prog_compiler_static_CXX='-Bstatic'
 
10883
      fi
 
10884
      ;;
 
10885
    amigaos*)
 
10886
      # FIXME: we need at least 68020 code to build shared libraries, but
 
10887
      # adding the `-m68020' flag to GCC prevents building anything better,
 
10888
      # like `-m68040'.
 
10889
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
10890
      ;;
 
10891
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
10892
      # PIC is the default for these OSes.
 
10893
      ;;
 
10894
    mingw* | os2* | pw32*)
 
10895
      # This hack is so that the source file can tell whether it is being
 
10896
      # built for inclusion in a dll (and should export symbols for example).
 
10897
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
10898
      ;;
 
10899
    darwin* | rhapsody*)
 
10900
      # PIC is the default on this platform
 
10901
      # Common symbols not allowed in MH_DYLIB files
 
10902
      lt_prog_compiler_pic_CXX='-fno-common'
 
10903
      ;;
 
10904
    *djgpp*)
 
10905
      # DJGPP does not support shared libraries at all
 
10906
      lt_prog_compiler_pic_CXX=
 
10907
      ;;
 
10908
    sysv4*MP*)
 
10909
      if test -d /usr/nec; then
 
10910
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
10911
      fi
 
10912
      ;;
 
10913
    hpux*)
 
10914
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
10915
      # not for PA HP-UX.
 
10916
      case "$host_cpu" in
 
10917
      hppa*64*|ia64*)
 
10918
        ;;
 
10919
      *)
 
10920
        lt_prog_compiler_pic_CXX='-fPIC'
 
10921
        ;;
 
10922
      esac
 
10923
      ;;
 
10924
    *)
 
10925
      lt_prog_compiler_pic_CXX='-fPIC'
 
10926
      ;;
 
10927
    esac
 
10928
  else
 
10929
    case $host_os in
 
10930
      aix4* | aix5*)
 
10931
        # All AIX code is PIC.
 
10932
        if test "$host_cpu" = ia64; then
 
10933
          # AIX 5 now supports IA64 processor
 
10934
          lt_prog_compiler_static_CXX='-Bstatic'
 
10935
        else
 
10936
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
10937
        fi
 
10938
        ;;
 
10939
      chorus*)
 
10940
        case $cc_basename in
 
10941
        cxch68)
 
10942
          # Green Hills C++ Compiler
 
10943
          # _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"
 
10944
          ;;
 
10945
        esac
 
10946
        ;;
 
10947
      dgux*)
 
10948
        case $cc_basename in
 
10949
          ec++)
 
10950
            lt_prog_compiler_pic_CXX='-KPIC'
 
10951
            ;;
 
10952
          ghcx)
 
10953
            # Green Hills C++ Compiler
 
10954
            lt_prog_compiler_pic_CXX='-pic'
 
10955
            ;;
 
10956
          *)
 
10957
            ;;
 
10958
        esac
 
10959
        ;;
 
10960
      freebsd* | kfreebsd*-gnu)
 
10961
        # FreeBSD uses GNU C++
 
10962
        ;;
 
10963
      hpux9* | hpux10* | hpux11*)
 
10964
        case $cc_basename in
 
10965
          CC)
 
10966
            lt_prog_compiler_wl_CXX='-Wl,'
 
10967
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10968
            if test "$host_cpu" != ia64; then
 
10969
              lt_prog_compiler_pic_CXX='+Z'
 
10970
            fi
 
10971
            ;;
 
10972
          aCC)
 
10973
            lt_prog_compiler_wl_CXX='-Wl,'
 
10974
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10975
            case "$host_cpu" in
 
10976
            hppa*64*|ia64*)
 
10977
              # +Z the default
 
10978
              ;;
 
10979
            *)
 
10980
              lt_prog_compiler_pic_CXX='+Z'
 
10981
              ;;
 
10982
            esac
 
10983
            ;;
 
10984
          *)
 
10985
            ;;
 
10986
        esac
 
10987
        ;;
 
10988
      irix5* | irix6* | nonstopux*)
 
10989
        case $cc_basename in
 
10990
          CC)
 
10991
            lt_prog_compiler_wl_CXX='-Wl,'
 
10992
            lt_prog_compiler_static_CXX='-non_shared'
 
10993
            # CC pic flag -KPIC is the default.
 
10994
            ;;
 
10995
          *)
 
10996
            ;;
 
10997
        esac
 
10998
        ;;
 
10999
      linux*)
 
11000
        case $cc_basename in
 
11001
          KCC)
 
11002
            # KAI C++ Compiler
 
11003
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11004
            lt_prog_compiler_pic_CXX='-fPIC'
 
11005
            ;;
 
11006
          icpc)
 
11007
            # Intel C++
 
11008
            lt_prog_compiler_wl_CXX='-Wl,'
 
11009
            lt_prog_compiler_pic_CXX='-KPIC'
 
11010
            lt_prog_compiler_static_CXX='-static'
 
11011
            ;;
 
11012
          cxx)
 
11013
            # Compaq C++
 
11014
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11015
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11016
            lt_prog_compiler_pic_CXX=
 
11017
            lt_prog_compiler_static_CXX='-non_shared'
 
11018
            ;;
 
11019
          *)
 
11020
            ;;
 
11021
        esac
 
11022
        ;;
 
11023
      lynxos*)
 
11024
        ;;
 
11025
      m88k*)
 
11026
        ;;
 
11027
      mvs*)
 
11028
        case $cc_basename in
 
11029
          cxx)
 
11030
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
11031
            ;;
 
11032
          *)
 
11033
            ;;
 
11034
        esac
 
11035
        ;;
 
11036
      netbsd*)
 
11037
        ;;
 
11038
      osf3* | osf4* | osf5*)
 
11039
        case $cc_basename in
 
11040
          KCC)
 
11041
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11042
            ;;
 
11043
          RCC)
 
11044
            # Rational C++ 2.4.1
 
11045
            lt_prog_compiler_pic_CXX='-pic'
 
11046
            ;;
 
11047
          cxx)
 
11048
            # Digital/Compaq C++
 
11049
            lt_prog_compiler_wl_CXX='-Wl,'
 
11050
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11051
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11052
            lt_prog_compiler_pic_CXX=
 
11053
            lt_prog_compiler_static_CXX='-non_shared'
 
11054
            ;;
 
11055
          *)
 
11056
            ;;
 
11057
        esac
 
11058
        ;;
 
11059
      psos*)
 
11060
        ;;
 
11061
      sco*)
 
11062
        case $cc_basename in
 
11063
          CC)
 
11064
            lt_prog_compiler_pic_CXX='-fPIC'
 
11065
            ;;
 
11066
          *)
 
11067
            ;;
 
11068
        esac
 
11069
        ;;
 
11070
      solaris*)
 
11071
        case $cc_basename in
 
11072
          CC)
 
11073
            # Sun C++ 4.2, 5.x and Centerline C++
 
11074
            lt_prog_compiler_pic_CXX='-KPIC'
 
11075
            lt_prog_compiler_static_CXX='-Bstatic'
 
11076
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
11077
            ;;
 
11078
          gcx)
 
11079
            # Green Hills C++ Compiler
 
11080
            lt_prog_compiler_pic_CXX='-PIC'
 
11081
            ;;
 
11082
          *)
 
11083
            ;;
 
11084
        esac
 
11085
        ;;
 
11086
      sunos4*)
 
11087
        case $cc_basename in
 
11088
          CC)
 
11089
            # Sun C++ 4.x
 
11090
            lt_prog_compiler_pic_CXX='-pic'
 
11091
            lt_prog_compiler_static_CXX='-Bstatic'
 
11092
            ;;
 
11093
          lcc)
 
11094
            # Lucid
 
11095
            lt_prog_compiler_pic_CXX='-pic'
 
11096
            ;;
 
11097
          *)
 
11098
            ;;
 
11099
        esac
 
11100
        ;;
 
11101
      tandem*)
 
11102
        case $cc_basename in
 
11103
          NCC)
 
11104
            # NonStop-UX NCC 3.20
 
11105
            lt_prog_compiler_pic_CXX='-KPIC'
 
11106
            ;;
 
11107
          *)
 
11108
            ;;
 
11109
        esac
 
11110
        ;;
 
11111
      unixware*)
 
11112
        ;;
 
11113
      vxworks*)
 
11114
        ;;
 
11115
      *)
 
11116
        lt_prog_compiler_can_build_shared_CXX=no
 
11117
        ;;
 
11118
    esac
 
11119
  fi
 
11120
 
 
11121
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
11122
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
11123
 
 
11124
#
 
11125
# Check to make sure the PIC flag actually works.
 
11126
#
 
11127
if test -n "$lt_prog_compiler_pic_CXX"; then
 
11128
 
 
11129
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
11130
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
11131
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
11132
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11133
else
 
11134
  lt_prog_compiler_pic_works_CXX=no
 
11135
  ac_outfile=conftest.$ac_objext
 
11136
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11137
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
11138
   # Insert the option either (1) after the last *FLAGS variable, or
 
11139
   # (2) before a word containing "conftest.", or (3) at the end.
 
11140
   # Note that $ac_compile itself does not contain backslashes and begins
 
11141
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11142
   # The option is referenced via a variable to avoid confusing sed.
 
11143
   lt_compile=`echo "$ac_compile" | $SED \
 
11144
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11145
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11146
   -e 's:$: $lt_compiler_flag:'`
 
11147
   (eval echo "\"\$as_me:11147: $lt_compile\"" >&5)
 
11148
   (eval "$lt_compile" 2>conftest.err)
 
11149
   ac_status=$?
 
11150
   cat conftest.err >&5
 
11151
   echo "$as_me:11151: \$? = $ac_status" >&5
 
11152
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
11153
     # The compiler can only warn and ignore the option if not recognized
 
11154
     # So say no if there are warnings
 
11155
     if test ! -s conftest.err; then
 
11156
       lt_prog_compiler_pic_works_CXX=yes
 
11157
     fi
 
11158
   fi
 
11159
   $rm conftest*
 
11160
 
 
11161
fi
 
11162
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
11163
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
11164
 
 
11165
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
11166
    case $lt_prog_compiler_pic_CXX in
 
11167
     "" | " "*) ;;
 
11168
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
11169
     esac
 
11170
else
 
11171
    lt_prog_compiler_pic_CXX=
 
11172
     lt_prog_compiler_can_build_shared_CXX=no
 
11173
fi
 
11174
 
 
11175
fi
 
11176
case "$host_os" in
 
11177
  # For platforms which do not support PIC, -DPIC is meaningless:
 
11178
  *djgpp*)
 
11179
    lt_prog_compiler_pic_CXX=
 
11180
    ;;
 
11181
  *)
 
11182
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
11183
    ;;
 
11184
esac
 
11185
 
 
11186
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
11187
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
11188
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
11189
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11190
else
 
11191
  lt_cv_prog_compiler_c_o_CXX=no
 
11192
   $rm -r conftest 2>/dev/null
 
11193
   mkdir conftest
 
11194
   cd conftest
 
11195
   mkdir out
 
11196
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11197
 
 
11198
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
11199
   # that will create temporary files in the current directory regardless of
 
11200
   # the output directory.  Thus, making CWD read-only will cause this test
 
11201
   # to fail, enabling locking or at least warning the user not to do parallel
 
11202
   # builds.
 
11203
   chmod -w .
 
11204
 
 
11205
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
11206
   # Insert the option either (1) after the last *FLAGS variable, or
 
11207
   # (2) before a word containing "conftest.", or (3) at the end.
 
11208
   # Note that $ac_compile itself does not contain backslashes and begins
 
11209
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11210
   lt_compile=`echo "$ac_compile" | $SED \
 
11211
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11212
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11213
   -e 's:$: $lt_compiler_flag:'`
 
11214
   (eval echo "\"\$as_me:11214: $lt_compile\"" >&5)
 
11215
   (eval "$lt_compile" 2>out/conftest.err)
 
11216
   ac_status=$?
 
11217
   cat out/conftest.err >&5
 
11218
   echo "$as_me:11218: \$? = $ac_status" >&5
 
11219
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
11220
   then
 
11221
     # The compiler can only warn and ignore the option if not recognized
 
11222
     # So say no if there are warnings
 
11223
     if test ! -s out/conftest.err; then
 
11224
       lt_cv_prog_compiler_c_o_CXX=yes
 
11225
     fi
 
11226
   fi
 
11227
   chmod u+w .
 
11228
   $rm conftest*
 
11229
   # SGI C++ compiler will create directory out/ii_files/ for
 
11230
   # template instantiation
 
11231
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
11232
   $rm out/* && rmdir out
 
11233
   cd ..
 
11234
   rmdir conftest
 
11235
   $rm conftest*
 
11236
 
 
11237
fi
 
11238
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
11239
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
11240
 
 
11241
 
 
11242
hard_links="nottested"
 
11243
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
11244
  # do not overwrite the value of need_locks provided by the user
 
11245
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
11246
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
11247
  hard_links=yes
 
11248
  $rm conftest*
 
11249
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11250
  touch conftest.a
 
11251
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
11252
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11253
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
11254
echo "${ECHO_T}$hard_links" >&6
 
11255
  if test "$hard_links" = no; then
 
11256
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
11257
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
11258
    need_locks=warn
 
11259
  fi
 
11260
else
 
11261
  need_locks=no
 
11262
fi
 
11263
 
 
11264
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11265
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11266
 
 
11267
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11268
  case $host_os in
 
11269
  aix4* | aix5*)
 
11270
    # If we're using GNU nm, then we don't want the "-C" option.
 
11271
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
11272
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
11273
      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'
 
11274
    else
 
11275
      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'
 
11276
    fi
 
11277
    ;;
 
11278
  pw32*)
 
11279
    export_symbols_cmds_CXX="$ltdll_cmds"
 
11280
  ;;
 
11281
  cygwin* | mingw*)
 
11282
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
11283
  ;;
 
11284
  *)
 
11285
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11286
  ;;
 
11287
  esac
 
11288
 
 
11289
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11290
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11291
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11292
 
 
11293
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11294
if test "$GCC" = yes; then
 
11295
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11296
fi
 
11297
 
 
11298
#
 
11299
# Do we need to explicitly link libc?
 
11300
#
 
11301
case "x$archive_cmds_need_lc_CXX" in
 
11302
x|xyes)
 
11303
  # Assume -lc should be added
 
11304
  archive_cmds_need_lc_CXX=yes
 
11305
 
 
11306
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11307
    case $archive_cmds_CXX in
 
11308
    *'~'*)
 
11309
      # FIXME: we may have to deal with multi-command sequences.
 
11310
      ;;
 
11311
    '$CC '*)
 
11312
      # Test whether the compiler implicitly links with -lc since on some
 
11313
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11314
      # to ld, don't add -lc before -lgcc.
 
11315
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
11316
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
11317
      $rm conftest*
 
11318
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11319
 
 
11320
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11321
  (eval $ac_compile) 2>&5
 
11322
  ac_status=$?
 
11323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11324
  (exit $ac_status); } 2>conftest.err; then
 
11325
        soname=conftest
 
11326
        lib=conftest
 
11327
        libobjs=conftest.$ac_objext
 
11328
        deplibs=
 
11329
        wl=$lt_prog_compiler_wl_CXX
 
11330
        compiler_flags=-v
 
11331
        linker_flags=-v
 
11332
        verstring=
 
11333
        output_objdir=.
 
11334
        libname=conftest
 
11335
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
11336
        allow_undefined_flag_CXX=
 
11337
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
11338
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11339
  ac_status=$?
 
11340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11341
  (exit $ac_status); }
 
11342
        then
 
11343
          archive_cmds_need_lc_CXX=no
 
11344
        else
 
11345
          archive_cmds_need_lc_CXX=yes
 
11346
        fi
 
11347
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
11348
      else
 
11349
        cat conftest.err 1>&5
 
11350
      fi
 
11351
      $rm conftest*
 
11352
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
11353
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
11354
      ;;
 
11355
    esac
 
11356
  fi
 
11357
  ;;
 
11358
esac
 
11359
 
 
11360
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
11361
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
11362
library_names_spec=
 
11363
libname_spec='lib$name'
 
11364
soname_spec=
 
11365
shrext=".so"
 
11366
postinstall_cmds=
 
11367
postuninstall_cmds=
 
11368
finish_cmds=
 
11369
finish_eval=
 
11370
shlibpath_var=
 
11371
shlibpath_overrides_runpath=unknown
 
11372
version_type=none
 
11373
dynamic_linker="$host_os ld.so"
 
11374
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11375
if test "$GCC" = yes; then
 
11376
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11377
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
11378
    # if the path contains ";" then we assume it to be the separator
 
11379
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11380
    # assumed that no part of a normal pathname contains ";" but that should
 
11381
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11382
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11383
  else
 
11384
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11385
  fi
 
11386
else
 
11387
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11388
fi
 
11389
need_lib_prefix=unknown
 
11390
hardcode_into_libs=no
 
11391
 
 
11392
# when you set need_version to no, make sure it does not cause -set_version
 
11393
# flags to be left without arguments
 
11394
need_version=unknown
 
11395
 
 
11396
case $host_os in
 
11397
aix3*)
 
11398
  version_type=linux
 
11399
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11400
  shlibpath_var=LIBPATH
 
11401
 
 
11402
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11403
  soname_spec='${libname}${release}${shared_ext}$major'
 
11404
  ;;
 
11405
 
 
11406
aix4* | aix5*)
 
11407
  version_type=linux
 
11408
  need_lib_prefix=no
 
11409
  need_version=no
 
11410
  hardcode_into_libs=yes
 
11411
  if test "$host_cpu" = ia64; then
 
11412
    # AIX 5 supports IA64
 
11413
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11414
    shlibpath_var=LD_LIBRARY_PATH
 
11415
  else
 
11416
    # With GCC up to 2.95.x, collect2 would create an import file
 
11417
    # for dependence libraries.  The import file would start with
 
11418
    # the line `#! .'.  This would cause the generated library to
 
11419
    # depend on `.', always an invalid library.  This was fixed in
 
11420
    # development snapshots of GCC prior to 3.0.
 
11421
    case $host_os in
 
11422
      aix4 | aix4.[01] | aix4.[01].*)
 
11423
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11424
           echo ' yes '
 
11425
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
11426
        :
 
11427
      else
 
11428
        can_build_shared=no
 
11429
      fi
 
11430
      ;;
 
11431
    esac
 
11432
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11433
    # soname into executable. Probably we can add versioning support to
 
11434
    # collect2, so additional links can be useful in future.
 
11435
    if test "$aix_use_runtimelinking" = yes; then
 
11436
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11437
      # instead of lib<name>.a to let people know that these are not
 
11438
      # typical AIX shared libraries.
 
11439
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11440
    else
 
11441
      # We preserve .a as extension for shared libraries through AIX4.2
 
11442
      # and later when we are not doing run time linking.
 
11443
      library_names_spec='${libname}${release}.a $libname.a'
 
11444
      soname_spec='${libname}${release}${shared_ext}$major'
 
11445
    fi
 
11446
    shlibpath_var=LIBPATH
 
11447
  fi
 
11448
  ;;
 
11449
 
 
11450
amigaos*)
 
11451
  library_names_spec='$libname.ixlibrary $libname.a'
 
11452
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11453
  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'
 
11454
  ;;
 
11455
 
 
11456
beos*)
 
11457
  library_names_spec='${libname}${shared_ext}'
 
11458
  dynamic_linker="$host_os ld.so"
 
11459
  shlibpath_var=LIBRARY_PATH
 
11460
  ;;
 
11461
 
 
11462
bsdi4*)
 
11463
  version_type=linux
 
11464
  need_version=no
 
11465
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11466
  soname_spec='${libname}${release}${shared_ext}$major'
 
11467
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11468
  shlibpath_var=LD_LIBRARY_PATH
 
11469
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11470
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11471
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11472
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11473
  # libtool to hard-code these into programs
 
11474
  ;;
 
11475
 
 
11476
cygwin* | mingw* | pw32*)
 
11477
  version_type=windows
 
11478
  shrext=".dll"
 
11479
  need_version=no
 
11480
  need_lib_prefix=no
 
11481
 
 
11482
  case $GCC,$host_os in
 
11483
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
11484
    library_names_spec='$libname.dll.a'
 
11485
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11486
    postinstall_cmds='base_file=`basename \${file}`~
 
11487
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
11488
      dldir=$destdir/`dirname \$dlpath`~
 
11489
      test -d \$dldir || mkdir -p \$dldir~
 
11490
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11491
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11492
      dlpath=$dir/\$dldll~
 
11493
       $rm \$dlpath'
 
11494
    shlibpath_overrides_runpath=yes
 
11495
 
 
11496
    case $host_os in
 
11497
    cygwin*)
 
11498
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11499
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11500
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
11501
      ;;
 
11502
    mingw*)
 
11503
      # MinGW DLLs use traditional 'lib' prefix
 
11504
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11505
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11506
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
11507
        # It is most probably a Windows format PATH printed by
 
11508
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
11509
        # path with ; separators, and with drive letters. We can handle the
 
11510
        # drive letters (cygwin fileutils understands them), so leave them,
 
11511
        # especially as we might pass files found there to a mingw objdump,
 
11512
        # which wouldn't understand a cygwinified path. Ahh.
 
11513
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11514
      else
 
11515
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11516
      fi
 
11517
      ;;
 
11518
    pw32*)
 
11519
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11520
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
11521
      ;;
 
11522
    esac
 
11523
    ;;
 
11524
 
 
11525
  *)
 
11526
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11527
    ;;
 
11528
  esac
 
11529
  dynamic_linker='Win32 ld.exe'
 
11530
  # FIXME: first we should search . and the directory the executable is in
 
11531
  shlibpath_var=PATH
 
11532
  ;;
 
11533
 
 
11534
darwin* | rhapsody*)
 
11535
  dynamic_linker="$host_os dyld"
 
11536
  version_type=darwin
 
11537
  need_lib_prefix=no
 
11538
  need_version=no
 
11539
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11540
  soname_spec='${libname}${release}${major}$shared_ext'
 
11541
  shlibpath_overrides_runpath=yes
 
11542
  shlibpath_var=DYLD_LIBRARY_PATH
 
11543
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
11544
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
11545
  if test "$GCC" = yes; then
 
11546
    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"`
 
11547
  else
 
11548
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
11549
  fi
 
11550
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11551
  ;;
 
11552
 
 
11553
dgux*)
 
11554
  version_type=linux
 
11555
  need_lib_prefix=no
 
11556
  need_version=no
 
11557
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11558
  soname_spec='${libname}${release}${shared_ext}$major'
 
11559
  shlibpath_var=LD_LIBRARY_PATH
 
11560
  ;;
 
11561
 
 
11562
freebsd1*)
 
11563
  dynamic_linker=no
 
11564
  ;;
 
11565
 
 
11566
kfreebsd*-gnu)
 
11567
  version_type=linux
 
11568
  need_lib_prefix=no
 
11569
  need_version=no
 
11570
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11571
  soname_spec='${libname}${release}${shared_ext}$major'
 
11572
  shlibpath_var=LD_LIBRARY_PATH
 
11573
  shlibpath_overrides_runpath=no
 
11574
  hardcode_into_libs=yes
 
11575
  dynamic_linker='GNU ld.so'
 
11576
  ;;
 
11577
 
 
11578
freebsd*)
 
11579
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
11580
  version_type=freebsd-$objformat
 
11581
  case $version_type in
 
11582
    freebsd-elf*)
 
11583
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11584
      need_version=no
 
11585
      need_lib_prefix=no
 
11586
      ;;
 
11587
    freebsd-*)
 
11588
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11589
      need_version=yes
 
11590
      ;;
 
11591
  esac
 
11592
  shlibpath_var=LD_LIBRARY_PATH
 
11593
  case $host_os in
 
11594
  freebsd2*)
 
11595
    shlibpath_overrides_runpath=yes
 
11596
    ;;
 
11597
  freebsd3.01* | freebsdelf3.01*)
 
11598
    shlibpath_overrides_runpath=yes
 
11599
    hardcode_into_libs=yes
 
11600
    ;;
 
11601
  *) # from 3.2 on
 
11602
    shlibpath_overrides_runpath=no
 
11603
    hardcode_into_libs=yes
 
11604
    ;;
 
11605
  esac
 
11606
  ;;
 
11607
 
 
11608
gnu*)
 
11609
  version_type=linux
 
11610
  need_lib_prefix=no
 
11611
  need_version=no
 
11612
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11613
  soname_spec='${libname}${release}${shared_ext}$major'
 
11614
  shlibpath_var=LD_LIBRARY_PATH
 
11615
  hardcode_into_libs=yes
 
11616
  ;;
 
11617
 
 
11618
hpux9* | hpux10* | hpux11*)
 
11619
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11620
  # link against other versions.
 
11621
  version_type=sunos
 
11622
  need_lib_prefix=no
 
11623
  need_version=no
 
11624
  case "$host_cpu" in
 
11625
  ia64*)
 
11626
    shrext='.so'
 
11627
    hardcode_into_libs=yes
 
11628
    dynamic_linker="$host_os dld.so"
 
11629
    shlibpath_var=LD_LIBRARY_PATH
 
11630
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11631
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11632
    soname_spec='${libname}${release}${shared_ext}$major'
 
11633
    if test "X$HPUX_IA64_MODE" = X32; then
 
11634
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11635
    else
 
11636
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11637
    fi
 
11638
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11639
    ;;
 
11640
   hppa*64*)
 
11641
     shrext='.sl'
 
11642
     hardcode_into_libs=yes
 
11643
     dynamic_linker="$host_os dld.sl"
 
11644
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11645
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11646
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11647
     soname_spec='${libname}${release}${shared_ext}$major'
 
11648
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11649
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11650
     ;;
 
11651
   *)
 
11652
    shrext='.sl'
 
11653
    dynamic_linker="$host_os dld.sl"
 
11654
    shlibpath_var=SHLIB_PATH
 
11655
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11656
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11657
    soname_spec='${libname}${release}${shared_ext}$major'
 
11658
    ;;
 
11659
  esac
 
11660
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
11661
  postinstall_cmds='chmod 555 $lib'
 
11662
  ;;
 
11663
 
 
11664
irix5* | irix6* | nonstopux*)
 
11665
  case $host_os in
 
11666
    nonstopux*) version_type=nonstopux ;;
 
11667
    *)
 
11668
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11669
                version_type=linux
 
11670
        else
 
11671
                version_type=irix
 
11672
        fi ;;
 
11673
  esac
 
11674
  need_lib_prefix=no
 
11675
  need_version=no
 
11676
  soname_spec='${libname}${release}${shared_ext}$major'
 
11677
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11678
  case $host_os in
 
11679
  irix5* | nonstopux*)
 
11680
    libsuff= shlibsuff=
 
11681
    ;;
 
11682
  *)
 
11683
    case $LD in # libtool.m4 will add one of these switches to LD
 
11684
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11685
      libsuff= shlibsuff= libmagic=32-bit;;
 
11686
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11687
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11688
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11689
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11690
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11691
    esac
 
11692
    ;;
 
11693
  esac
 
11694
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11695
  shlibpath_overrides_runpath=no
 
11696
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11697
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11698
  hardcode_into_libs=yes
 
11699
  ;;
 
11700
 
 
11701
# No shared lib support for Linux oldld, aout, or coff.
 
11702
linux*oldld* | linux*aout* | linux*coff*)
 
11703
  dynamic_linker=no
 
11704
  ;;
 
11705
 
 
11706
# This must be Linux ELF.
 
11707
linux*)
 
11708
  version_type=linux
 
11709
  need_lib_prefix=no
 
11710
  need_version=no
 
11711
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11712
  soname_spec='${libname}${release}${shared_ext}$major'
 
11713
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11714
  shlibpath_var=LD_LIBRARY_PATH
 
11715
  shlibpath_overrides_runpath=no
 
11716
  # This implies no fast_install, which is unacceptable.
 
11717
  # Some rework will be needed to allow for fast_install
 
11718
  # before this can be enabled.
 
11719
  hardcode_into_libs=yes
 
11720
 
 
11721
  # Append ld.so.conf contents to the search path
 
11722
  if test -f /etc/ld.so.conf; then
 
11723
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
 
11724
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
 
11725
  fi
 
11726
 
 
11727
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11728
  # powerpc, because MkLinux only supported shared libraries with the
 
11729
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11730
  # most powerpc-linux boxes support dynamic linking these days and
 
11731
  # people can always --disable-shared, the test was removed, and we
 
11732
  # assume the GNU/Linux dynamic linker is in use.
 
11733
  dynamic_linker='GNU/Linux ld.so'
 
11734
  ;;
 
11735
 
 
11736
knetbsd*-gnu)
 
11737
  version_type=linux
 
11738
  need_lib_prefix=no
 
11739
  need_version=no
 
11740
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11741
  soname_spec='${libname}${release}${shared_ext}$major'
 
11742
  shlibpath_var=LD_LIBRARY_PATH
 
11743
  shlibpath_overrides_runpath=no
 
11744
  hardcode_into_libs=yes
 
11745
  dynamic_linker='GNU ld.so'
 
11746
  ;;
 
11747
 
 
11748
netbsd*)
 
11749
  version_type=sunos
 
11750
  need_lib_prefix=no
 
11751
  need_version=no
 
11752
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11753
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11754
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11755
    dynamic_linker='NetBSD (a.out) ld.so'
 
11756
  else
 
11757
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
11758
    soname_spec='${libname}${release}${shared_ext}$major'
 
11759
    dynamic_linker='NetBSD ld.elf_so'
 
11760
  fi
 
11761
  shlibpath_var=LD_LIBRARY_PATH
 
11762
  shlibpath_overrides_runpath=yes
 
11763
  hardcode_into_libs=yes
 
11764
  ;;
 
11765
 
 
11766
newsos6)
 
11767
  version_type=linux
 
11768
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11769
  shlibpath_var=LD_LIBRARY_PATH
 
11770
  shlibpath_overrides_runpath=yes
 
11771
  ;;
 
11772
 
 
11773
nto-qnx*)
 
11774
  version_type=linux
 
11775
  need_lib_prefix=no
 
11776
  need_version=no
 
11777
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11778
  soname_spec='${libname}${release}${shared_ext}$major'
 
11779
  shlibpath_var=LD_LIBRARY_PATH
 
11780
  shlibpath_overrides_runpath=yes
 
11781
  ;;
 
11782
 
 
11783
openbsd*)
 
11784
  version_type=sunos
 
11785
  need_lib_prefix=no
 
11786
  need_version=yes
 
11787
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11788
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11789
  shlibpath_var=LD_LIBRARY_PATH
 
11790
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11791
    case $host_os in
 
11792
      openbsd2.[89] | openbsd2.[89].*)
 
11793
        shlibpath_overrides_runpath=no
 
11794
        ;;
 
11795
      *)
 
11796
        shlibpath_overrides_runpath=yes
 
11797
        ;;
 
11798
      esac
 
11799
  else
 
11800
    shlibpath_overrides_runpath=yes
 
11801
  fi
 
11802
  ;;
 
11803
 
 
11804
os2*)
 
11805
  libname_spec='$name'
 
11806
  shrext=".dll"
 
11807
  need_lib_prefix=no
 
11808
  library_names_spec='$libname${shared_ext} $libname.a'
 
11809
  dynamic_linker='OS/2 ld.exe'
 
11810
  shlibpath_var=LIBPATH
 
11811
  ;;
 
11812
 
 
11813
osf3* | osf4* | osf5*)
 
11814
  version_type=osf
 
11815
  need_lib_prefix=no
 
11816
  need_version=no
 
11817
  soname_spec='${libname}${release}${shared_ext}$major'
 
11818
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11819
  shlibpath_var=LD_LIBRARY_PATH
 
11820
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11821
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
11822
  ;;
 
11823
 
 
11824
sco3.2v5*)
 
11825
  version_type=osf
 
11826
  soname_spec='${libname}${release}${shared_ext}$major'
 
11827
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11828
  shlibpath_var=LD_LIBRARY_PATH
 
11829
  ;;
 
11830
 
 
11831
solaris*)
 
11832
  version_type=linux
 
11833
  need_lib_prefix=no
 
11834
  need_version=no
 
11835
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11836
  soname_spec='${libname}${release}${shared_ext}$major'
 
11837
  shlibpath_var=LD_LIBRARY_PATH
 
11838
  shlibpath_overrides_runpath=yes
 
11839
  hardcode_into_libs=yes
 
11840
  # ldd complains unless libraries are executable
 
11841
  postinstall_cmds='chmod +x $lib'
 
11842
  ;;
 
11843
 
 
11844
sunos4*)
 
11845
  version_type=sunos
 
11846
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11847
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11848
  shlibpath_var=LD_LIBRARY_PATH
 
11849
  shlibpath_overrides_runpath=yes
 
11850
  if test "$with_gnu_ld" = yes; then
 
11851
    need_lib_prefix=no
 
11852
  fi
 
11853
  need_version=yes
 
11854
  ;;
 
11855
 
 
11856
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
11857
  version_type=linux
 
11858
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11859
  soname_spec='${libname}${release}${shared_ext}$major'
 
11860
  shlibpath_var=LD_LIBRARY_PATH
 
11861
  case $host_vendor in
 
11862
    sni)
 
11863
      shlibpath_overrides_runpath=no
 
11864
      need_lib_prefix=no
 
11865
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
11866
      runpath_var=LD_RUN_PATH
 
11867
      ;;
 
11868
    siemens)
 
11869
      need_lib_prefix=no
 
11870
      ;;
 
11871
    motorola)
 
11872
      need_lib_prefix=no
 
11873
      need_version=no
 
11874
      shlibpath_overrides_runpath=no
 
11875
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11876
      ;;
 
11877
  esac
 
11878
  ;;
 
11879
 
 
11880
sysv4*MP*)
 
11881
  if test -d /usr/nec ;then
 
11882
    version_type=linux
 
11883
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11884
    soname_spec='$libname${shared_ext}.$major'
 
11885
    shlibpath_var=LD_LIBRARY_PATH
 
11886
  fi
 
11887
  ;;
 
11888
 
 
11889
uts4*)
 
11890
  version_type=linux
 
11891
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11892
  soname_spec='${libname}${release}${shared_ext}$major'
 
11893
  shlibpath_var=LD_LIBRARY_PATH
 
11894
  ;;
 
11895
 
 
11896
*)
 
11897
  dynamic_linker=no
 
11898
  ;;
 
11899
esac
 
11900
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
11901
echo "${ECHO_T}$dynamic_linker" >&6
 
11902
test "$dynamic_linker" = no && can_build_shared=no
 
11903
 
 
11904
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
11905
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
11906
hardcode_action_CXX=
 
11907
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
11908
   test -n "$runpath_var CXX" || \
 
11909
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
11910
 
 
11911
  # We can hardcode non-existant directories.
 
11912
  if test "$hardcode_direct_CXX" != no &&
 
11913
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11914
     # have to relink, otherwise we might link with an installed library
 
11915
     # when we should be linking with a yet-to-be-installed one
 
11916
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
11917
     test "$hardcode_minus_L_CXX" != no; then
 
11918
    # Linking always hardcodes the temporary library directory.
 
11919
    hardcode_action_CXX=relink
 
11920
  else
 
11921
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11922
    hardcode_action_CXX=immediate
 
11923
  fi
 
11924
else
 
11925
  # We cannot hardcode anything, or else we can only hardcode existing
 
11926
  # directories.
 
11927
  hardcode_action_CXX=unsupported
 
11928
fi
 
11929
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
11930
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
11931
 
 
11932
if test "$hardcode_action_CXX" = relink; then
 
11933
  # Fast installation is not supported
 
11934
  enable_fast_install=no
 
11935
elif test "$shlibpath_overrides_runpath" = yes ||
 
11936
     test "$enable_shared" = no; then
 
11937
  # Fast installation is not necessary
 
11938
  enable_fast_install=needless
 
11939
fi
 
11940
 
 
11941
striplib=
 
11942
old_striplib=
 
11943
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
11944
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
11945
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
11946
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11947
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11948
  echo "$as_me:$LINENO: result: yes" >&5
 
11949
echo "${ECHO_T}yes" >&6
 
11950
else
 
11951
# FIXME - insert some real tests, host_os isn't really good enough
 
11952
  case $host_os in
 
11953
   darwin*)
 
11954
       if test -n "$STRIP" ; then
 
11955
         striplib="$STRIP -x"
 
11956
         echo "$as_me:$LINENO: result: yes" >&5
 
11957
echo "${ECHO_T}yes" >&6
 
11958
       else
 
11959
  echo "$as_me:$LINENO: result: no" >&5
 
11960
echo "${ECHO_T}no" >&6
 
11961
fi
 
11962
       ;;
 
11963
   *)
 
11964
  echo "$as_me:$LINENO: result: no" >&5
 
11965
echo "${ECHO_T}no" >&6
 
11966
    ;;
 
11967
  esac
 
11968
fi
 
11969
 
 
11970
if test "x$enable_dlopen" != xyes; then
 
11971
  enable_dlopen=unknown
 
11972
  enable_dlopen_self=unknown
 
11973
  enable_dlopen_self_static=unknown
 
11974
else
 
11975
  lt_cv_dlopen=no
 
11976
  lt_cv_dlopen_libs=
 
11977
 
 
11978
  case $host_os in
 
11979
  beos*)
 
11980
    lt_cv_dlopen="load_add_on"
 
11981
    lt_cv_dlopen_libs=
 
11982
    lt_cv_dlopen_self=yes
 
11983
    ;;
 
11984
 
 
11985
  mingw* | pw32*)
 
11986
    lt_cv_dlopen="LoadLibrary"
 
11987
    lt_cv_dlopen_libs=
 
11988
   ;;
 
11989
 
 
11990
  cygwin*)
 
11991
    lt_cv_dlopen="dlopen"
 
11992
    lt_cv_dlopen_libs=
 
11993
   ;;
 
11994
 
 
11995
  darwin*)
 
11996
  # if libdl is installed we need to link against it
 
11997
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11998
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11999
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12000
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12001
else
 
12002
  ac_check_lib_save_LIBS=$LIBS
 
12003
LIBS="-ldl  $LIBS"
 
12004
cat >conftest.$ac_ext <<_ACEOF
 
12005
/* confdefs.h.  */
 
12006
_ACEOF
 
12007
cat confdefs.h >>conftest.$ac_ext
 
12008
cat >>conftest.$ac_ext <<_ACEOF
 
12009
/* end confdefs.h.  */
 
12010
 
 
12011
/* Override any gcc2 internal prototype to avoid an error.  */
 
12012
#ifdef __cplusplus
 
12013
extern "C"
 
12014
#endif
 
12015
/* We use char because int might match the return type of a gcc2
 
12016
   builtin and then its argument prototype would still apply.  */
 
12017
char dlopen ();
 
12018
int
 
12019
main ()
 
12020
{
 
12021
dlopen ();
 
12022
  ;
 
12023
  return 0;
 
12024
}
 
12025
_ACEOF
 
12026
rm -f conftest.$ac_objext conftest$ac_exeext
 
12027
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12028
  (eval $ac_link) 2>conftest.er1
 
12029
  ac_status=$?
 
12030
  grep -v '^ *+' conftest.er1 >conftest.err
 
12031
  rm -f conftest.er1
 
12032
  cat conftest.err >&5
 
12033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12034
  (exit $ac_status); } &&
 
12035
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12036
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12037
  (eval $ac_try) 2>&5
 
12038
  ac_status=$?
 
12039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12040
  (exit $ac_status); }; } &&
 
12041
         { ac_try='test -s conftest$ac_exeext'
 
12042
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12043
  (eval $ac_try) 2>&5
 
12044
  ac_status=$?
 
12045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12046
  (exit $ac_status); }; }; then
 
12047
  ac_cv_lib_dl_dlopen=yes
 
12048
else
 
12049
  echo "$as_me: failed program was:" >&5
 
12050
sed 's/^/| /' conftest.$ac_ext >&5
 
12051
 
 
12052
ac_cv_lib_dl_dlopen=no
 
12053
fi
 
12054
rm -f conftest.err conftest.$ac_objext \
 
12055
      conftest$ac_exeext conftest.$ac_ext
 
12056
LIBS=$ac_check_lib_save_LIBS
 
12057
fi
 
12058
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12059
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12060
if test $ac_cv_lib_dl_dlopen = yes; then
 
12061
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12062
else
 
12063
 
 
12064
    lt_cv_dlopen="dyld"
 
12065
    lt_cv_dlopen_libs=
 
12066
    lt_cv_dlopen_self=yes
 
12067
 
 
12068
fi
 
12069
 
 
12070
   ;;
 
12071
 
 
12072
  *)
 
12073
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
12074
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
12075
if test "${ac_cv_func_shl_load+set}" = set; then
 
12076
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12077
else
 
12078
  cat >conftest.$ac_ext <<_ACEOF
 
12079
/* confdefs.h.  */
 
12080
_ACEOF
 
12081
cat confdefs.h >>conftest.$ac_ext
 
12082
cat >>conftest.$ac_ext <<_ACEOF
 
12083
/* end confdefs.h.  */
 
12084
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
12085
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12086
#define shl_load innocuous_shl_load
 
12087
 
 
12088
/* System header to define __stub macros and hopefully few prototypes,
 
12089
    which can conflict with char shl_load (); below.
 
12090
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12091
    <limits.h> exists even on freestanding compilers.  */
 
12092
 
 
12093
#ifdef __STDC__
 
12094
# include <limits.h>
 
12095
#else
 
12096
# include <assert.h>
 
12097
#endif
 
12098
 
 
12099
#undef shl_load
 
12100
 
 
12101
/* Override any gcc2 internal prototype to avoid an error.  */
 
12102
#ifdef __cplusplus
 
12103
extern "C"
 
12104
{
 
12105
#endif
 
12106
/* We use char because int might match the return type of a gcc2
 
12107
   builtin and then its argument prototype would still apply.  */
 
12108
char shl_load ();
 
12109
/* The GNU C library defines this for functions which it implements
 
12110
    to always fail with ENOSYS.  Some functions are actually named
 
12111
    something starting with __ and the normal name is an alias.  */
 
12112
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
12113
choke me
 
12114
#else
 
12115
char (*f) () = shl_load;
 
12116
#endif
 
12117
#ifdef __cplusplus
 
12118
}
 
12119
#endif
 
12120
 
 
12121
int
 
12122
main ()
 
12123
{
 
12124
return f != shl_load;
 
12125
  ;
 
12126
  return 0;
 
12127
}
 
12128
_ACEOF
 
12129
rm -f conftest.$ac_objext conftest$ac_exeext
 
12130
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12131
  (eval $ac_link) 2>conftest.er1
 
12132
  ac_status=$?
 
12133
  grep -v '^ *+' conftest.er1 >conftest.err
 
12134
  rm -f conftest.er1
 
12135
  cat conftest.err >&5
 
12136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12137
  (exit $ac_status); } &&
 
12138
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12139
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12140
  (eval $ac_try) 2>&5
 
12141
  ac_status=$?
 
12142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12143
  (exit $ac_status); }; } &&
 
12144
         { ac_try='test -s conftest$ac_exeext'
 
12145
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12146
  (eval $ac_try) 2>&5
 
12147
  ac_status=$?
 
12148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12149
  (exit $ac_status); }; }; then
 
12150
  ac_cv_func_shl_load=yes
 
12151
else
 
12152
  echo "$as_me: failed program was:" >&5
 
12153
sed 's/^/| /' conftest.$ac_ext >&5
 
12154
 
 
12155
ac_cv_func_shl_load=no
 
12156
fi
 
12157
rm -f conftest.err conftest.$ac_objext \
 
12158
      conftest$ac_exeext conftest.$ac_ext
 
12159
fi
 
12160
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
12161
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
12162
if test $ac_cv_func_shl_load = yes; then
 
12163
  lt_cv_dlopen="shl_load"
 
12164
else
 
12165
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
12166
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
12167
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
12168
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12169
else
 
12170
  ac_check_lib_save_LIBS=$LIBS
 
12171
LIBS="-ldld  $LIBS"
 
12172
cat >conftest.$ac_ext <<_ACEOF
 
12173
/* confdefs.h.  */
 
12174
_ACEOF
 
12175
cat confdefs.h >>conftest.$ac_ext
 
12176
cat >>conftest.$ac_ext <<_ACEOF
 
12177
/* end confdefs.h.  */
 
12178
 
 
12179
/* Override any gcc2 internal prototype to avoid an error.  */
 
12180
#ifdef __cplusplus
 
12181
extern "C"
 
12182
#endif
 
12183
/* We use char because int might match the return type of a gcc2
 
12184
   builtin and then its argument prototype would still apply.  */
 
12185
char shl_load ();
 
12186
int
 
12187
main ()
 
12188
{
 
12189
shl_load ();
 
12190
  ;
 
12191
  return 0;
 
12192
}
 
12193
_ACEOF
 
12194
rm -f conftest.$ac_objext conftest$ac_exeext
 
12195
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12196
  (eval $ac_link) 2>conftest.er1
 
12197
  ac_status=$?
 
12198
  grep -v '^ *+' conftest.er1 >conftest.err
 
12199
  rm -f conftest.er1
 
12200
  cat conftest.err >&5
 
12201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12202
  (exit $ac_status); } &&
 
12203
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12204
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12205
  (eval $ac_try) 2>&5
 
12206
  ac_status=$?
 
12207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12208
  (exit $ac_status); }; } &&
 
12209
         { ac_try='test -s conftest$ac_exeext'
 
12210
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12211
  (eval $ac_try) 2>&5
 
12212
  ac_status=$?
 
12213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12214
  (exit $ac_status); }; }; then
 
12215
  ac_cv_lib_dld_shl_load=yes
 
12216
else
 
12217
  echo "$as_me: failed program was:" >&5
 
12218
sed 's/^/| /' conftest.$ac_ext >&5
 
12219
 
 
12220
ac_cv_lib_dld_shl_load=no
 
12221
fi
 
12222
rm -f conftest.err conftest.$ac_objext \
 
12223
      conftest$ac_exeext conftest.$ac_ext
 
12224
LIBS=$ac_check_lib_save_LIBS
 
12225
fi
 
12226
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
12227
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
12228
if test $ac_cv_lib_dld_shl_load = yes; then
 
12229
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
12230
else
 
12231
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
12232
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
12233
if test "${ac_cv_func_dlopen+set}" = set; then
 
12234
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12235
else
 
12236
  cat >conftest.$ac_ext <<_ACEOF
 
12237
/* confdefs.h.  */
 
12238
_ACEOF
 
12239
cat confdefs.h >>conftest.$ac_ext
 
12240
cat >>conftest.$ac_ext <<_ACEOF
 
12241
/* end confdefs.h.  */
 
12242
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
12243
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12244
#define dlopen innocuous_dlopen
 
12245
 
 
12246
/* System header to define __stub macros and hopefully few prototypes,
 
12247
    which can conflict with char dlopen (); below.
 
12248
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12249
    <limits.h> exists even on freestanding compilers.  */
 
12250
 
 
12251
#ifdef __STDC__
 
12252
# include <limits.h>
 
12253
#else
 
12254
# include <assert.h>
 
12255
#endif
 
12256
 
 
12257
#undef dlopen
 
12258
 
 
12259
/* Override any gcc2 internal prototype to avoid an error.  */
 
12260
#ifdef __cplusplus
 
12261
extern "C"
 
12262
{
 
12263
#endif
 
12264
/* We use char because int might match the return type of a gcc2
 
12265
   builtin and then its argument prototype would still apply.  */
 
12266
char dlopen ();
 
12267
/* The GNU C library defines this for functions which it implements
 
12268
    to always fail with ENOSYS.  Some functions are actually named
 
12269
    something starting with __ and the normal name is an alias.  */
 
12270
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
12271
choke me
 
12272
#else
 
12273
char (*f) () = dlopen;
 
12274
#endif
 
12275
#ifdef __cplusplus
 
12276
}
 
12277
#endif
 
12278
 
 
12279
int
 
12280
main ()
 
12281
{
 
12282
return f != dlopen;
 
12283
  ;
 
12284
  return 0;
 
12285
}
 
12286
_ACEOF
 
12287
rm -f conftest.$ac_objext conftest$ac_exeext
 
12288
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12289
  (eval $ac_link) 2>conftest.er1
 
12290
  ac_status=$?
 
12291
  grep -v '^ *+' conftest.er1 >conftest.err
 
12292
  rm -f conftest.er1
 
12293
  cat conftest.err >&5
 
12294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12295
  (exit $ac_status); } &&
 
12296
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12297
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12298
  (eval $ac_try) 2>&5
 
12299
  ac_status=$?
 
12300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12301
  (exit $ac_status); }; } &&
 
12302
         { ac_try='test -s conftest$ac_exeext'
 
12303
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12304
  (eval $ac_try) 2>&5
 
12305
  ac_status=$?
 
12306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12307
  (exit $ac_status); }; }; then
 
12308
  ac_cv_func_dlopen=yes
 
12309
else
 
12310
  echo "$as_me: failed program was:" >&5
 
12311
sed 's/^/| /' conftest.$ac_ext >&5
 
12312
 
 
12313
ac_cv_func_dlopen=no
 
12314
fi
 
12315
rm -f conftest.err conftest.$ac_objext \
 
12316
      conftest$ac_exeext conftest.$ac_ext
 
12317
fi
 
12318
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
12319
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
12320
if test $ac_cv_func_dlopen = yes; then
 
12321
  lt_cv_dlopen="dlopen"
 
12322
else
 
12323
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12324
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12325
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12326
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12327
else
 
12328
  ac_check_lib_save_LIBS=$LIBS
 
12329
LIBS="-ldl  $LIBS"
 
12330
cat >conftest.$ac_ext <<_ACEOF
 
12331
/* confdefs.h.  */
 
12332
_ACEOF
 
12333
cat confdefs.h >>conftest.$ac_ext
 
12334
cat >>conftest.$ac_ext <<_ACEOF
 
12335
/* end confdefs.h.  */
 
12336
 
 
12337
/* Override any gcc2 internal prototype to avoid an error.  */
 
12338
#ifdef __cplusplus
 
12339
extern "C"
 
12340
#endif
 
12341
/* We use char because int might match the return type of a gcc2
 
12342
   builtin and then its argument prototype would still apply.  */
 
12343
char dlopen ();
 
12344
int
 
12345
main ()
 
12346
{
 
12347
dlopen ();
 
12348
  ;
 
12349
  return 0;
 
12350
}
 
12351
_ACEOF
 
12352
rm -f conftest.$ac_objext conftest$ac_exeext
 
12353
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12354
  (eval $ac_link) 2>conftest.er1
 
12355
  ac_status=$?
 
12356
  grep -v '^ *+' conftest.er1 >conftest.err
 
12357
  rm -f conftest.er1
 
12358
  cat conftest.err >&5
 
12359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12360
  (exit $ac_status); } &&
 
12361
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12362
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12363
  (eval $ac_try) 2>&5
 
12364
  ac_status=$?
 
12365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12366
  (exit $ac_status); }; } &&
 
12367
         { ac_try='test -s conftest$ac_exeext'
 
12368
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12369
  (eval $ac_try) 2>&5
 
12370
  ac_status=$?
 
12371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12372
  (exit $ac_status); }; }; then
 
12373
  ac_cv_lib_dl_dlopen=yes
 
12374
else
 
12375
  echo "$as_me: failed program was:" >&5
 
12376
sed 's/^/| /' conftest.$ac_ext >&5
 
12377
 
 
12378
ac_cv_lib_dl_dlopen=no
 
12379
fi
 
12380
rm -f conftest.err conftest.$ac_objext \
 
12381
      conftest$ac_exeext conftest.$ac_ext
 
12382
LIBS=$ac_check_lib_save_LIBS
 
12383
fi
 
12384
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12385
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12386
if test $ac_cv_lib_dl_dlopen = yes; then
 
12387
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12388
else
 
12389
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
12390
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
12391
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
12392
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12393
else
 
12394
  ac_check_lib_save_LIBS=$LIBS
 
12395
LIBS="-lsvld  $LIBS"
 
12396
cat >conftest.$ac_ext <<_ACEOF
 
12397
/* confdefs.h.  */
 
12398
_ACEOF
 
12399
cat confdefs.h >>conftest.$ac_ext
 
12400
cat >>conftest.$ac_ext <<_ACEOF
 
12401
/* end confdefs.h.  */
 
12402
 
 
12403
/* Override any gcc2 internal prototype to avoid an error.  */
 
12404
#ifdef __cplusplus
 
12405
extern "C"
 
12406
#endif
 
12407
/* We use char because int might match the return type of a gcc2
 
12408
   builtin and then its argument prototype would still apply.  */
 
12409
char dlopen ();
 
12410
int
 
12411
main ()
 
12412
{
 
12413
dlopen ();
 
12414
  ;
 
12415
  return 0;
 
12416
}
 
12417
_ACEOF
 
12418
rm -f conftest.$ac_objext conftest$ac_exeext
 
12419
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12420
  (eval $ac_link) 2>conftest.er1
 
12421
  ac_status=$?
 
12422
  grep -v '^ *+' conftest.er1 >conftest.err
 
12423
  rm -f conftest.er1
 
12424
  cat conftest.err >&5
 
12425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12426
  (exit $ac_status); } &&
 
12427
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12428
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12429
  (eval $ac_try) 2>&5
 
12430
  ac_status=$?
 
12431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12432
  (exit $ac_status); }; } &&
 
12433
         { ac_try='test -s conftest$ac_exeext'
 
12434
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12435
  (eval $ac_try) 2>&5
 
12436
  ac_status=$?
 
12437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12438
  (exit $ac_status); }; }; then
 
12439
  ac_cv_lib_svld_dlopen=yes
 
12440
else
 
12441
  echo "$as_me: failed program was:" >&5
 
12442
sed 's/^/| /' conftest.$ac_ext >&5
 
12443
 
 
12444
ac_cv_lib_svld_dlopen=no
 
12445
fi
 
12446
rm -f conftest.err conftest.$ac_objext \
 
12447
      conftest$ac_exeext conftest.$ac_ext
 
12448
LIBS=$ac_check_lib_save_LIBS
 
12449
fi
 
12450
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
12451
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
12452
if test $ac_cv_lib_svld_dlopen = yes; then
 
12453
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
12454
else
 
12455
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
12456
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
12457
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
12458
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12459
else
 
12460
  ac_check_lib_save_LIBS=$LIBS
 
12461
LIBS="-ldld  $LIBS"
 
12462
cat >conftest.$ac_ext <<_ACEOF
 
12463
/* confdefs.h.  */
 
12464
_ACEOF
 
12465
cat confdefs.h >>conftest.$ac_ext
 
12466
cat >>conftest.$ac_ext <<_ACEOF
 
12467
/* end confdefs.h.  */
 
12468
 
 
12469
/* Override any gcc2 internal prototype to avoid an error.  */
 
12470
#ifdef __cplusplus
 
12471
extern "C"
 
12472
#endif
 
12473
/* We use char because int might match the return type of a gcc2
 
12474
   builtin and then its argument prototype would still apply.  */
 
12475
char dld_link ();
 
12476
int
 
12477
main ()
 
12478
{
 
12479
dld_link ();
 
12480
  ;
 
12481
  return 0;
 
12482
}
 
12483
_ACEOF
 
12484
rm -f conftest.$ac_objext conftest$ac_exeext
 
12485
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12486
  (eval $ac_link) 2>conftest.er1
 
12487
  ac_status=$?
 
12488
  grep -v '^ *+' conftest.er1 >conftest.err
 
12489
  rm -f conftest.er1
 
12490
  cat conftest.err >&5
 
12491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12492
  (exit $ac_status); } &&
 
12493
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12494
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12495
  (eval $ac_try) 2>&5
 
12496
  ac_status=$?
 
12497
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12498
  (exit $ac_status); }; } &&
 
12499
         { ac_try='test -s conftest$ac_exeext'
 
12500
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12501
  (eval $ac_try) 2>&5
 
12502
  ac_status=$?
 
12503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12504
  (exit $ac_status); }; }; then
 
12505
  ac_cv_lib_dld_dld_link=yes
 
12506
else
 
12507
  echo "$as_me: failed program was:" >&5
 
12508
sed 's/^/| /' conftest.$ac_ext >&5
 
12509
 
 
12510
ac_cv_lib_dld_dld_link=no
 
12511
fi
 
12512
rm -f conftest.err conftest.$ac_objext \
 
12513
      conftest$ac_exeext conftest.$ac_ext
 
12514
LIBS=$ac_check_lib_save_LIBS
 
12515
fi
 
12516
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
12517
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
12518
if test $ac_cv_lib_dld_dld_link = yes; then
 
12519
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
12520
fi
 
12521
 
 
12522
 
 
12523
fi
 
12524
 
 
12525
 
 
12526
fi
 
12527
 
 
12528
 
 
12529
fi
 
12530
 
 
12531
 
 
12532
fi
 
12533
 
 
12534
 
 
12535
fi
 
12536
 
 
12537
    ;;
 
12538
  esac
 
12539
 
 
12540
  if test "x$lt_cv_dlopen" != xno; then
 
12541
    enable_dlopen=yes
 
12542
  else
 
12543
    enable_dlopen=no
 
12544
  fi
 
12545
 
 
12546
  case $lt_cv_dlopen in
 
12547
  dlopen)
 
12548
    save_CPPFLAGS="$CPPFLAGS"
 
12549
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12550
 
 
12551
    save_LDFLAGS="$LDFLAGS"
 
12552
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12553
 
 
12554
    save_LIBS="$LIBS"
 
12555
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12556
 
 
12557
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
12558
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
12559
if test "${lt_cv_dlopen_self+set}" = set; then
 
12560
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12561
else
 
12562
          if test "$cross_compiling" = yes; then :
 
12563
  lt_cv_dlopen_self=cross
 
12564
else
 
12565
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12566
  lt_status=$lt_dlunknown
 
12567
  cat > conftest.$ac_ext <<EOF
 
12568
#line 12568 "configure"
 
12569
#include "confdefs.h"
 
12570
 
 
12571
#if HAVE_DLFCN_H
 
12572
#include <dlfcn.h>
 
12573
#endif
 
12574
 
 
12575
#include <stdio.h>
 
12576
 
 
12577
#ifdef RTLD_GLOBAL
 
12578
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12579
#else
 
12580
#  ifdef DL_GLOBAL
 
12581
#    define LT_DLGLOBAL         DL_GLOBAL
 
12582
#  else
 
12583
#    define LT_DLGLOBAL         0
 
12584
#  endif
 
12585
#endif
 
12586
 
 
12587
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12588
   find out it does not work in some platform. */
 
12589
#ifndef LT_DLLAZY_OR_NOW
 
12590
#  ifdef RTLD_LAZY
 
12591
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12592
#  else
 
12593
#    ifdef DL_LAZY
 
12594
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12595
#    else
 
12596
#      ifdef RTLD_NOW
 
12597
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12598
#      else
 
12599
#        ifdef DL_NOW
 
12600
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12601
#        else
 
12602
#          define LT_DLLAZY_OR_NOW      0
 
12603
#        endif
 
12604
#      endif
 
12605
#    endif
 
12606
#  endif
 
12607
#endif
 
12608
 
 
12609
#ifdef __cplusplus
 
12610
extern "C" void exit (int);
 
12611
#endif
 
12612
 
 
12613
void fnord() { int i=42;}
 
12614
int main ()
 
12615
{
 
12616
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12617
  int status = $lt_dlunknown;
 
12618
 
 
12619
  if (self)
 
12620
    {
 
12621
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12622
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12623
      /* dlclose (self); */
 
12624
    }
 
12625
 
 
12626
    exit (status);
 
12627
}
 
12628
EOF
 
12629
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12630
  (eval $ac_link) 2>&5
 
12631
  ac_status=$?
 
12632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12633
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12634
    (./conftest; exit; ) 2>/dev/null
 
12635
    lt_status=$?
 
12636
    case x$lt_status in
 
12637
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12638
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12639
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
12640
    esac
 
12641
  else :
 
12642
    # compilation failed
 
12643
    lt_cv_dlopen_self=no
 
12644
  fi
 
12645
fi
 
12646
rm -fr conftest*
 
12647
 
 
12648
 
 
12649
fi
 
12650
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
12651
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
12652
 
 
12653
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12654
      LDFLAGS="$LDFLAGS $link_static_flag"
 
12655
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
12656
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
12657
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
12658
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12659
else
 
12660
          if test "$cross_compiling" = yes; then :
 
12661
  lt_cv_dlopen_self_static=cross
 
12662
else
 
12663
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12664
  lt_status=$lt_dlunknown
 
12665
  cat > conftest.$ac_ext <<EOF
 
12666
#line 12666 "configure"
 
12667
#include "confdefs.h"
 
12668
 
 
12669
#if HAVE_DLFCN_H
 
12670
#include <dlfcn.h>
 
12671
#endif
 
12672
 
 
12673
#include <stdio.h>
 
12674
 
 
12675
#ifdef RTLD_GLOBAL
 
12676
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12677
#else
 
12678
#  ifdef DL_GLOBAL
 
12679
#    define LT_DLGLOBAL         DL_GLOBAL
 
12680
#  else
 
12681
#    define LT_DLGLOBAL         0
 
12682
#  endif
 
12683
#endif
 
12684
 
 
12685
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12686
   find out it does not work in some platform. */
 
12687
#ifndef LT_DLLAZY_OR_NOW
 
12688
#  ifdef RTLD_LAZY
 
12689
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12690
#  else
 
12691
#    ifdef DL_LAZY
 
12692
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12693
#    else
 
12694
#      ifdef RTLD_NOW
 
12695
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12696
#      else
 
12697
#        ifdef DL_NOW
 
12698
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12699
#        else
 
12700
#          define LT_DLLAZY_OR_NOW      0
 
12701
#        endif
 
12702
#      endif
 
12703
#    endif
 
12704
#  endif
 
12705
#endif
 
12706
 
 
12707
#ifdef __cplusplus
 
12708
extern "C" void exit (int);
 
12709
#endif
 
12710
 
 
12711
void fnord() { int i=42;}
 
12712
int main ()
 
12713
{
 
12714
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12715
  int status = $lt_dlunknown;
 
12716
 
 
12717
  if (self)
 
12718
    {
 
12719
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12720
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12721
      /* dlclose (self); */
 
12722
    }
 
12723
 
 
12724
    exit (status);
 
12725
}
 
12726
EOF
 
12727
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12728
  (eval $ac_link) 2>&5
 
12729
  ac_status=$?
 
12730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12731
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12732
    (./conftest; exit; ) 2>/dev/null
 
12733
    lt_status=$?
 
12734
    case x$lt_status in
 
12735
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12736
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12737
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
12738
    esac
 
12739
  else :
 
12740
    # compilation failed
 
12741
    lt_cv_dlopen_self_static=no
 
12742
  fi
 
12743
fi
 
12744
rm -fr conftest*
 
12745
 
 
12746
 
 
12747
fi
 
12748
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
12749
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
12750
    fi
 
12751
 
 
12752
    CPPFLAGS="$save_CPPFLAGS"
 
12753
    LDFLAGS="$save_LDFLAGS"
 
12754
    LIBS="$save_LIBS"
 
12755
    ;;
 
12756
  esac
 
12757
 
 
12758
  case $lt_cv_dlopen_self in
 
12759
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
12760
  *) enable_dlopen_self=unknown ;;
 
12761
  esac
 
12762
 
 
12763
  case $lt_cv_dlopen_self_static in
 
12764
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
12765
  *) enable_dlopen_self_static=unknown ;;
 
12766
  esac
 
12767
fi
 
12768
 
 
12769
 
 
12770
# The else clause should only fire when bootstrapping the
 
12771
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
12772
# with your package, and you will get complaints that there are
 
12773
# no rules to generate ltmain.sh.
 
12774
if test -f "$ltmain"; then
 
12775
  # See if we are running on zsh, and set the options which allow our commands through
 
12776
  # without removal of \ escapes.
 
12777
  if test -n "${ZSH_VERSION+set}" ; then
 
12778
    setopt NO_GLOB_SUBST
 
12779
  fi
 
12780
  # Now quote all the things that may contain metacharacters while being
 
12781
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
12782
  # variables and quote the copies for generation of the libtool script.
 
12783
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
12784
    SED SHELL STRIP \
 
12785
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
12786
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
12787
    deplibs_check_method reload_flag reload_cmds need_locks \
 
12788
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
12789
    lt_cv_sys_global_symbol_to_c_name_address \
 
12790
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
12791
    old_postinstall_cmds old_postuninstall_cmds \
 
12792
    compiler_CXX \
 
12793
    CC_CXX \
 
12794
    LD_CXX \
 
12795
    lt_prog_compiler_wl_CXX \
 
12796
    lt_prog_compiler_pic_CXX \
 
12797
    lt_prog_compiler_static_CXX \
 
12798
    lt_prog_compiler_no_builtin_flag_CXX \
 
12799
    export_dynamic_flag_spec_CXX \
 
12800
    thread_safe_flag_spec_CXX \
 
12801
    whole_archive_flag_spec_CXX \
 
12802
    enable_shared_with_static_runtimes_CXX \
 
12803
    old_archive_cmds_CXX \
 
12804
    old_archive_from_new_cmds_CXX \
 
12805
    predep_objects_CXX \
 
12806
    postdep_objects_CXX \
 
12807
    predeps_CXX \
 
12808
    postdeps_CXX \
 
12809
    compiler_lib_search_path_CXX \
 
12810
    archive_cmds_CXX \
 
12811
    archive_expsym_cmds_CXX \
 
12812
    postinstall_cmds_CXX \
 
12813
    postuninstall_cmds_CXX \
 
12814
    old_archive_from_expsyms_cmds_CXX \
 
12815
    allow_undefined_flag_CXX \
 
12816
    no_undefined_flag_CXX \
 
12817
    export_symbols_cmds_CXX \
 
12818
    hardcode_libdir_flag_spec_CXX \
 
12819
    hardcode_libdir_flag_spec_ld_CXX \
 
12820
    hardcode_libdir_separator_CXX \
 
12821
    hardcode_automatic_CXX \
 
12822
    module_cmds_CXX \
 
12823
    module_expsym_cmds_CXX \
 
12824
    lt_cv_prog_compiler_c_o_CXX \
 
12825
    exclude_expsyms_CXX \
 
12826
    include_expsyms_CXX; do
 
12827
 
 
12828
    case $var in
 
12829
    old_archive_cmds_CXX | \
 
12830
    old_archive_from_new_cmds_CXX | \
 
12831
    archive_cmds_CXX | \
 
12832
    archive_expsym_cmds_CXX | \
 
12833
    module_cmds_CXX | \
 
12834
    module_expsym_cmds_CXX | \
 
12835
    old_archive_from_expsyms_cmds_CXX | \
 
12836
    export_symbols_cmds_CXX | \
 
12837
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
12838
    postinstall_cmds | postuninstall_cmds | \
 
12839
    old_postinstall_cmds | old_postuninstall_cmds | \
 
12840
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
12841
      # Double-quote double-evaled strings.
 
12842
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
12843
      ;;
 
12844
    *)
 
12845
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
12846
      ;;
 
12847
    esac
 
12848
  done
 
12849
 
 
12850
  case $lt_echo in
 
12851
  *'\$0 --fallback-echo"')
 
12852
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
12853
    ;;
 
12854
  esac
 
12855
 
 
12856
cfgfile="$ofile"
 
12857
 
 
12858
  cat <<__EOF__ >> "$cfgfile"
 
12859
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
12860
 
 
12861
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
12862
 
 
12863
# Shell to use when invoking shell scripts.
 
12864
SHELL=$lt_SHELL
 
12865
 
 
12866
# Whether or not to build shared libraries.
 
12867
build_libtool_libs=$enable_shared
 
12868
 
 
12869
# Whether or not to build static libraries.
 
12870
build_old_libs=$enable_static
 
12871
 
 
12872
# Whether or not to add -lc for building shared libraries.
 
12873
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
12874
 
 
12875
# Whether or not to disallow shared libs when runtime libs are static
 
12876
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
12877
 
 
12878
# Whether or not to optimize for fast installation.
 
12879
fast_install=$enable_fast_install
 
12880
 
 
12881
# The host system.
 
12882
host_alias=$host_alias
 
12883
host=$host
 
12884
 
 
12885
# An echo program that does not interpret backslashes.
 
12886
echo=$lt_echo
 
12887
 
 
12888
# The archiver.
 
12889
AR=$lt_AR
 
12890
AR_FLAGS=$lt_AR_FLAGS
 
12891
 
 
12892
# A C compiler.
 
12893
LTCC=$lt_LTCC
 
12894
 
 
12895
# A language-specific compiler.
 
12896
CC=$lt_compiler_CXX
 
12897
 
 
12898
# Is the compiler the GNU C compiler?
 
12899
with_gcc=$GCC_CXX
 
12900
 
 
12901
# An ERE matcher.
 
12902
EGREP=$lt_EGREP
 
12903
 
 
12904
# The linker used to build libraries.
 
12905
LD=$lt_LD_CXX
 
12906
 
 
12907
# Whether we need hard or soft links.
 
12908
LN_S=$lt_LN_S
 
12909
 
 
12910
# A BSD-compatible nm program.
 
12911
NM=$lt_NM
 
12912
 
 
12913
# A symbol stripping program
 
12914
STRIP=$lt_STRIP
 
12915
 
 
12916
# Used to examine libraries when file_magic_cmd begins "file"
 
12917
MAGIC_CMD=$MAGIC_CMD
 
12918
 
 
12919
# Used on cygwin: DLL creation program.
 
12920
DLLTOOL="$DLLTOOL"
 
12921
 
 
12922
# Used on cygwin: object dumper.
 
12923
OBJDUMP="$OBJDUMP"
 
12924
 
 
12925
# Used on cygwin: assembler.
 
12926
AS="$AS"
 
12927
 
 
12928
# The name of the directory that contains temporary libtool files.
 
12929
objdir=$objdir
 
12930
 
 
12931
# How to create reloadable object files.
 
12932
reload_flag=$lt_reload_flag
 
12933
reload_cmds=$lt_reload_cmds
 
12934
 
 
12935
# How to pass a linker flag through the compiler.
 
12936
wl=$lt_lt_prog_compiler_wl_CXX
 
12937
 
 
12938
# Object file suffix (normally "o").
 
12939
objext="$ac_objext"
 
12940
 
 
12941
# Old archive suffix (normally "a").
 
12942
libext="$libext"
 
12943
 
 
12944
# Shared library suffix (normally ".so").
 
12945
shrext='$shrext'
 
12946
 
 
12947
# Executable file suffix (normally "").
 
12948
exeext="$exeext"
 
12949
 
 
12950
# Additional compiler flags for building library objects.
 
12951
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
12952
pic_mode=$pic_mode
 
12953
 
 
12954
# What is the maximum length of a command?
 
12955
max_cmd_len=$lt_cv_sys_max_cmd_len
 
12956
 
 
12957
# Does compiler simultaneously support -c and -o options?
 
12958
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
12959
 
 
12960
# Must we lock files when doing compilation ?
 
12961
need_locks=$lt_need_locks
 
12962
 
 
12963
# Do we need the lib prefix for modules?
 
12964
need_lib_prefix=$need_lib_prefix
 
12965
 
 
12966
# Do we need a version for libraries?
 
12967
need_version=$need_version
 
12968
 
 
12969
# Whether dlopen is supported.
 
12970
dlopen_support=$enable_dlopen
 
12971
 
 
12972
# Whether dlopen of programs is supported.
 
12973
dlopen_self=$enable_dlopen_self
 
12974
 
 
12975
# Whether dlopen of statically linked programs is supported.
 
12976
dlopen_self_static=$enable_dlopen_self_static
 
12977
 
 
12978
# Compiler flag to prevent dynamic linking.
 
12979
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
12980
 
 
12981
# Compiler flag to turn off builtin functions.
 
12982
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
12983
 
 
12984
# Compiler flag to allow reflexive dlopens.
 
12985
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
12986
 
 
12987
# Compiler flag to generate shared objects directly from archives.
 
12988
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
12989
 
 
12990
# Compiler flag to generate thread-safe objects.
 
12991
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
12992
 
 
12993
# Library versioning type.
 
12994
version_type=$version_type
 
12995
 
 
12996
# Format of library name prefix.
 
12997
libname_spec=$lt_libname_spec
 
12998
 
 
12999
# List of archive names.  First name is the real one, the rest are links.
 
13000
# The last name is the one that the linker finds with -lNAME.
 
13001
library_names_spec=$lt_library_names_spec
 
13002
 
 
13003
# The coded name of the library, if different from the real name.
 
13004
soname_spec=$lt_soname_spec
 
13005
 
 
13006
# Commands used to build and install an old-style archive.
 
13007
RANLIB=$lt_RANLIB
 
13008
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13009
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13010
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13011
 
 
13012
# Create an old-style archive from a shared archive.
 
13013
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13014
 
 
13015
# Create a temporary old-style archive to link instead of a shared archive.
 
13016
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13017
 
 
13018
# Commands used to build and install a shared archive.
 
13019
archive_cmds=$lt_archive_cmds_CXX
 
13020
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
13021
postinstall_cmds=$lt_postinstall_cmds
 
13022
postuninstall_cmds=$lt_postuninstall_cmds
 
13023
 
 
13024
# Commands used to build a loadable module (assumed same as above if empty)
 
13025
module_cmds=$lt_module_cmds_CXX
 
13026
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
13027
 
 
13028
# Commands to strip libraries.
 
13029
old_striplib=$lt_old_striplib
 
13030
striplib=$lt_striplib
 
13031
 
 
13032
# Dependencies to place before the objects being linked to create a
 
13033
# shared library.
 
13034
predep_objects=$lt_predep_objects_CXX
 
13035
 
 
13036
# Dependencies to place after the objects being linked to create a
 
13037
# shared library.
 
13038
postdep_objects=$lt_postdep_objects_CXX
 
13039
 
 
13040
# Dependencies to place before the objects being linked to create a
 
13041
# shared library.
 
13042
predeps=$lt_predeps_CXX
 
13043
 
 
13044
# Dependencies to place after the objects being linked to create a
 
13045
# shared library.
 
13046
postdeps=$lt_postdeps_CXX
 
13047
 
 
13048
# The library search path used internally by the compiler when linking
 
13049
# a shared library.
 
13050
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13051
 
 
13052
# Method to check whether dependent libraries are shared objects.
 
13053
deplibs_check_method=$lt_deplibs_check_method
 
13054
 
 
13055
# Command to use when deplibs_check_method == file_magic.
 
13056
file_magic_cmd=$lt_file_magic_cmd
 
13057
 
 
13058
# Flag that allows shared libraries with undefined symbols to be built.
 
13059
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
13060
 
 
13061
# Flag that forces no undefined symbols.
 
13062
no_undefined_flag=$lt_no_undefined_flag_CXX
 
13063
 
 
13064
# Commands used to finish a libtool library installation in a directory.
 
13065
finish_cmds=$lt_finish_cmds
 
13066
 
 
13067
# Same as above, but a single script fragment to be evaled but not shown.
 
13068
finish_eval=$lt_finish_eval
 
13069
 
 
13070
# Take the output of nm and produce a listing of raw symbols and C names.
 
13071
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13072
 
 
13073
# Transform the output of nm in a proper C declaration
 
13074
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13075
 
 
13076
# Transform the output of nm in a C name address pair
 
13077
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13078
 
 
13079
# This is the shared library runtime path variable.
 
13080
runpath_var=$runpath_var
 
13081
 
 
13082
# This is the shared library path variable.
 
13083
shlibpath_var=$shlibpath_var
 
13084
 
 
13085
# Is shlibpath searched before the hard-coded library search path?
 
13086
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13087
 
 
13088
# How to hardcode a shared library path into an executable.
 
13089
hardcode_action=$hardcode_action_CXX
 
13090
 
 
13091
# Whether we should hardcode library paths into libraries.
 
13092
hardcode_into_libs=$hardcode_into_libs
 
13093
 
 
13094
# Flag to hardcode \$libdir into a binary during linking.
 
13095
# This must work even if \$libdir does not exist.
 
13096
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13097
 
 
13098
# If ld is used when linking, flag to hardcode \$libdir into
 
13099
# a binary during linking. This must work even if \$libdir does
 
13100
# not exist.
 
13101
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13102
 
 
13103
# Whether we need a single -rpath flag with a separated argument.
 
13104
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13105
 
 
13106
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13107
# resulting binary.
 
13108
hardcode_direct=$hardcode_direct_CXX
 
13109
 
 
13110
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13111
# resulting binary.
 
13112
hardcode_minus_L=$hardcode_minus_L_CXX
 
13113
 
 
13114
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13115
# the resulting binary.
 
13116
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13117
 
 
13118
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13119
# and all subsequent libraries and executables linked against it.
 
13120
hardcode_automatic=$hardcode_automatic_CXX
 
13121
 
 
13122
# Variables whose values should be saved in libtool wrapper scripts and
 
13123
# restored at relink time.
 
13124
variables_saved_for_relink="$variables_saved_for_relink"
 
13125
 
 
13126
# Whether libtool must link a program against all its dependency libraries.
 
13127
link_all_deplibs=$link_all_deplibs_CXX
 
13128
 
 
13129
# Compile-time system search path for libraries
 
13130
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13131
 
 
13132
# Run-time system search path for libraries
 
13133
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13134
 
 
13135
# Fix the shell variable \$srcfile for the compiler.
 
13136
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13137
 
 
13138
# Set to yes if exported symbols are required.
 
13139
always_export_symbols=$always_export_symbols_CXX
 
13140
 
 
13141
# The commands to list exported symbols.
 
13142
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13143
 
 
13144
# The commands to extract the exported symbol list from a shared archive.
 
13145
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13146
 
 
13147
# Symbols that should not be listed in the preloaded symbols.
 
13148
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13149
 
 
13150
# Symbols that must always be exported.
 
13151
include_expsyms=$lt_include_expsyms_CXX
 
13152
 
 
13153
# ### END LIBTOOL TAG CONFIG: $tagname
 
13154
 
 
13155
__EOF__
 
13156
 
 
13157
 
 
13158
else
 
13159
  # If there is no Makefile yet, we rely on a make rule to execute
 
13160
  # `config.status --recheck' to rerun these tests and create the
 
13161
  # libtool script then.
 
13162
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13163
  if test -f "$ltmain_in"; then
 
13164
    test -f Makefile && make "$ltmain"
 
13165
  fi
 
13166
fi
 
13167
 
 
13168
 
 
13169
ac_ext=c
 
13170
ac_cpp='$CPP $CPPFLAGS'
 
13171
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13172
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13173
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13174
 
 
13175
CC=$lt_save_CC
 
13176
LDCXX=$LD
 
13177
LD=$lt_save_LD
 
13178
GCC=$lt_save_GCC
 
13179
with_gnu_ldcxx=$with_gnu_ld
 
13180
with_gnu_ld=$lt_save_with_gnu_ld
 
13181
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13182
lt_cv_path_LD=$lt_save_path_LD
 
13183
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13184
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13185
 
 
13186
        else
 
13187
          tagname=""
 
13188
        fi
 
13189
        ;;
 
13190
 
 
13191
      F77)
 
13192
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13193
 
 
13194
ac_ext=f
 
13195
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13196
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13197
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13198
 
 
13199
 
 
13200
archive_cmds_need_lc_F77=no
 
13201
allow_undefined_flag_F77=
 
13202
always_export_symbols_F77=no
 
13203
archive_expsym_cmds_F77=
 
13204
export_dynamic_flag_spec_F77=
 
13205
hardcode_direct_F77=no
 
13206
hardcode_libdir_flag_spec_F77=
 
13207
hardcode_libdir_flag_spec_ld_F77=
 
13208
hardcode_libdir_separator_F77=
 
13209
hardcode_minus_L_F77=no
 
13210
hardcode_automatic_F77=no
 
13211
module_cmds_F77=
 
13212
module_expsym_cmds_F77=
 
13213
link_all_deplibs_F77=unknown
 
13214
old_archive_cmds_F77=$old_archive_cmds
 
13215
no_undefined_flag_F77=
 
13216
whole_archive_flag_spec_F77=
 
13217
enable_shared_with_static_runtimes_F77=no
 
13218
 
 
13219
# Source file extension for f77 test sources.
 
13220
ac_ext=f
 
13221
 
 
13222
# Object file extension for compiled f77 test sources.
 
13223
objext=o
 
13224
objext_F77=$objext
 
13225
 
 
13226
# Code to be used in simple compile tests
 
13227
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
13228
 
 
13229
# Code to be used in simple link tests
 
13230
lt_simple_link_test_code="      program t\n      end\n"
 
13231
 
 
13232
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13233
 
 
13234
# If no C compiler was specified, use CC.
 
13235
LTCC=${LTCC-"$CC"}
 
13236
 
 
13237
# Allow CC to be a program name with arguments.
 
13238
compiler=$CC
 
13239
 
 
13240
 
 
13241
# Allow CC to be a program name with arguments.
 
13242
lt_save_CC="$CC"
 
13243
CC=${F77-"f77"}
 
13244
compiler=$CC
 
13245
compiler_F77=$CC
 
13246
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
13247
 
 
13248
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13249
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
13250
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13251
echo "${ECHO_T}$can_build_shared" >&6
 
13252
 
 
13253
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13254
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
13255
test "$can_build_shared" = "no" && enable_shared=no
 
13256
 
 
13257
# On AIX, shared libraries and static libraries use the same namespace, and
 
13258
# are all built from PIC.
 
13259
case "$host_os" in
 
13260
aix3*)
 
13261
  test "$enable_shared" = yes && enable_static=no
 
13262
  if test -n "$RANLIB"; then
 
13263
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13264
    postinstall_cmds='$RANLIB $lib'
 
13265
  fi
 
13266
  ;;
 
13267
aix4*)
 
13268
  test "$enable_shared" = yes && enable_static=no
 
13269
  ;;
 
13270
esac
 
13271
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13272
echo "${ECHO_T}$enable_shared" >&6
 
13273
 
 
13274
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13275
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
13276
# Make sure either enable_shared or enable_static is yes.
 
13277
test "$enable_shared" = yes || enable_static=yes
 
13278
echo "$as_me:$LINENO: result: $enable_static" >&5
 
13279
echo "${ECHO_T}$enable_static" >&6
 
13280
 
 
13281
test "$ld_shlibs_F77" = no && can_build_shared=no
 
13282
 
 
13283
GCC_F77="$G77"
 
13284
LD_F77="$LD"
 
13285
 
 
13286
lt_prog_compiler_wl_F77=
 
13287
lt_prog_compiler_pic_F77=
 
13288
lt_prog_compiler_static_F77=
 
13289
 
 
13290
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13291
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
13292
 
 
13293
  if test "$GCC" = yes; then
 
13294
    lt_prog_compiler_wl_F77='-Wl,'
 
13295
    lt_prog_compiler_static_F77='-static'
 
13296
 
 
13297
    case $host_os in
 
13298
      aix*)
 
13299
      # All AIX code is PIC.
 
13300
      if test "$host_cpu" = ia64; then
 
13301
        # AIX 5 now supports IA64 processor
 
13302
        lt_prog_compiler_static_F77='-Bstatic'
 
13303
      fi
 
13304
      ;;
 
13305
 
 
13306
    amigaos*)
 
13307
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13308
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13309
      # like `-m68040'.
 
13310
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
13311
      ;;
 
13312
 
 
13313
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13314
      # PIC is the default for these OSes.
 
13315
      ;;
 
13316
 
 
13317
    mingw* | pw32* | os2*)
 
13318
      # This hack is so that the source file can tell whether it is being
 
13319
      # built for inclusion in a dll (and should export symbols for example).
 
13320
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13321
      ;;
 
13322
 
 
13323
    darwin* | rhapsody*)
 
13324
      # PIC is the default on this platform
 
13325
      # Common symbols not allowed in MH_DYLIB files
 
13326
      lt_prog_compiler_pic_F77='-fno-common'
 
13327
      ;;
 
13328
 
 
13329
    msdosdjgpp*)
 
13330
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13331
      # on systems that don't support them.
 
13332
      lt_prog_compiler_can_build_shared_F77=no
 
13333
      enable_shared=no
 
13334
      ;;
 
13335
 
 
13336
    sysv4*MP*)
 
13337
      if test -d /usr/nec; then
 
13338
        lt_prog_compiler_pic_F77=-Kconform_pic
 
13339
      fi
 
13340
      ;;
 
13341
 
 
13342
    hpux*)
 
13343
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13344
      # not for PA HP-UX.
 
13345
      case "$host_cpu" in
 
13346
      hppa*64*|ia64*)
 
13347
        # +Z the default
 
13348
        ;;
 
13349
      *)
 
13350
        lt_prog_compiler_pic_F77='-fPIC'
 
13351
        ;;
 
13352
      esac
 
13353
      ;;
 
13354
 
 
13355
    *)
 
13356
      lt_prog_compiler_pic_F77='-fPIC'
 
13357
      ;;
 
13358
    esac
 
13359
  else
 
13360
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13361
    case $host_os in
 
13362
    aix*)
 
13363
      lt_prog_compiler_wl_F77='-Wl,'
 
13364
      if test "$host_cpu" = ia64; then
 
13365
        # AIX 5 now supports IA64 processor
 
13366
        lt_prog_compiler_static_F77='-Bstatic'
 
13367
      else
 
13368
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
13369
      fi
 
13370
      ;;
 
13371
 
 
13372
    mingw* | pw32* | os2*)
 
13373
      # This hack is so that the source file can tell whether it is being
 
13374
      # built for inclusion in a dll (and should export symbols for example).
 
13375
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13376
      ;;
 
13377
 
 
13378
    hpux9* | hpux10* | hpux11*)
 
13379
      lt_prog_compiler_wl_F77='-Wl,'
 
13380
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13381
      # not for PA HP-UX.
 
13382
      case "$host_cpu" in
 
13383
      hppa*64*|ia64*)
 
13384
        # +Z the default
 
13385
        ;;
 
13386
      *)
 
13387
        lt_prog_compiler_pic_F77='+Z'
 
13388
        ;;
 
13389
      esac
 
13390
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13391
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13392
      ;;
 
13393
 
 
13394
    irix5* | irix6* | nonstopux*)
 
13395
      lt_prog_compiler_wl_F77='-Wl,'
 
13396
      # PIC (with -KPIC) is the default.
 
13397
      lt_prog_compiler_static_F77='-non_shared'
 
13398
      ;;
 
13399
 
 
13400
    newsos6)
 
13401
      lt_prog_compiler_pic_F77='-KPIC'
 
13402
      lt_prog_compiler_static_F77='-Bstatic'
 
13403
      ;;
 
13404
 
 
13405
    linux*)
 
13406
      case $CC in
 
13407
      icc* | ecc*)
 
13408
        lt_prog_compiler_wl_F77='-Wl,'
 
13409
        lt_prog_compiler_pic_F77='-KPIC'
 
13410
        lt_prog_compiler_static_F77='-static'
 
13411
        ;;
 
13412
      ccc*)
 
13413
        lt_prog_compiler_wl_F77='-Wl,'
 
13414
        # All Alpha code is PIC.
 
13415
        lt_prog_compiler_static_F77='-non_shared'
 
13416
        ;;
 
13417
      esac
 
13418
      ;;
 
13419
 
 
13420
    osf3* | osf4* | osf5*)
 
13421
      lt_prog_compiler_wl_F77='-Wl,'
 
13422
      # All OSF/1 code is PIC.
 
13423
      lt_prog_compiler_static_F77='-non_shared'
 
13424
      ;;
 
13425
 
 
13426
    sco3.2v5*)
 
13427
      lt_prog_compiler_pic_F77='-Kpic'
 
13428
      lt_prog_compiler_static_F77='-dn'
 
13429
      ;;
 
13430
 
 
13431
    solaris*)
 
13432
      lt_prog_compiler_wl_F77='-Wl,'
 
13433
      lt_prog_compiler_pic_F77='-KPIC'
 
13434
      lt_prog_compiler_static_F77='-Bstatic'
 
13435
      ;;
 
13436
 
 
13437
    sunos4*)
 
13438
      lt_prog_compiler_wl_F77='-Qoption ld '
 
13439
      lt_prog_compiler_pic_F77='-PIC'
 
13440
      lt_prog_compiler_static_F77='-Bstatic'
 
13441
      ;;
 
13442
 
 
13443
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13444
      lt_prog_compiler_wl_F77='-Wl,'
 
13445
      lt_prog_compiler_pic_F77='-KPIC'
 
13446
      lt_prog_compiler_static_F77='-Bstatic'
 
13447
      ;;
 
13448
 
 
13449
    sysv4*MP*)
 
13450
      if test -d /usr/nec ;then
 
13451
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
13452
        lt_prog_compiler_static_F77='-Bstatic'
 
13453
      fi
 
13454
      ;;
 
13455
 
 
13456
    uts4*)
 
13457
      lt_prog_compiler_pic_F77='-pic'
 
13458
      lt_prog_compiler_static_F77='-Bstatic'
 
13459
      ;;
 
13460
 
 
13461
    *)
 
13462
      lt_prog_compiler_can_build_shared_F77=no
 
13463
      ;;
 
13464
    esac
 
13465
  fi
 
13466
 
 
13467
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13468
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
13469
 
 
13470
#
 
13471
# Check to make sure the PIC flag actually works.
 
13472
#
 
13473
if test -n "$lt_prog_compiler_pic_F77"; then
 
13474
 
 
13475
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13476
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
13477
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13478
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13479
else
 
13480
  lt_prog_compiler_pic_works_F77=no
 
13481
  ac_outfile=conftest.$ac_objext
 
13482
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13483
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
13484
   # Insert the option either (1) after the last *FLAGS variable, or
 
13485
   # (2) before a word containing "conftest.", or (3) at the end.
 
13486
   # Note that $ac_compile itself does not contain backslashes and begins
 
13487
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13488
   # The option is referenced via a variable to avoid confusing sed.
 
13489
   lt_compile=`echo "$ac_compile" | $SED \
 
13490
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13491
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13492
   -e 's:$: $lt_compiler_flag:'`
 
13493
   (eval echo "\"\$as_me:13493: $lt_compile\"" >&5)
 
13494
   (eval "$lt_compile" 2>conftest.err)
 
13495
   ac_status=$?
 
13496
   cat conftest.err >&5
 
13497
   echo "$as_me:13497: \$? = $ac_status" >&5
 
13498
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13499
     # The compiler can only warn and ignore the option if not recognized
 
13500
     # So say no if there are warnings
 
13501
     if test ! -s conftest.err; then
 
13502
       lt_prog_compiler_pic_works_F77=yes
 
13503
     fi
 
13504
   fi
 
13505
   $rm conftest*
 
13506
 
 
13507
fi
 
13508
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13509
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
13510
 
 
13511
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13512
    case $lt_prog_compiler_pic_F77 in
 
13513
     "" | " "*) ;;
 
13514
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
13515
     esac
 
13516
else
 
13517
    lt_prog_compiler_pic_F77=
 
13518
     lt_prog_compiler_can_build_shared_F77=no
 
13519
fi
 
13520
 
 
13521
fi
 
13522
case "$host_os" in
 
13523
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13524
  *djgpp*)
 
13525
    lt_prog_compiler_pic_F77=
 
13526
    ;;
 
13527
  *)
 
13528
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
13529
    ;;
 
13530
esac
 
13531
 
 
13532
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13533
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13534
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
13535
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13536
else
 
13537
  lt_cv_prog_compiler_c_o_F77=no
 
13538
   $rm -r conftest 2>/dev/null
 
13539
   mkdir conftest
 
13540
   cd conftest
 
13541
   mkdir out
 
13542
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13543
 
 
13544
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
13545
   # that will create temporary files in the current directory regardless of
 
13546
   # the output directory.  Thus, making CWD read-only will cause this test
 
13547
   # to fail, enabling locking or at least warning the user not to do parallel
 
13548
   # builds.
 
13549
   chmod -w .
 
13550
 
 
13551
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13552
   # Insert the option either (1) after the last *FLAGS variable, or
 
13553
   # (2) before a word containing "conftest.", or (3) at the end.
 
13554
   # Note that $ac_compile itself does not contain backslashes and begins
 
13555
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13556
   lt_compile=`echo "$ac_compile" | $SED \
 
13557
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13558
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13559
   -e 's:$: $lt_compiler_flag:'`
 
13560
   (eval echo "\"\$as_me:13560: $lt_compile\"" >&5)
 
13561
   (eval "$lt_compile" 2>out/conftest.err)
 
13562
   ac_status=$?
 
13563
   cat out/conftest.err >&5
 
13564
   echo "$as_me:13564: \$? = $ac_status" >&5
 
13565
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13566
   then
 
13567
     # The compiler can only warn and ignore the option if not recognized
 
13568
     # So say no if there are warnings
 
13569
     if test ! -s out/conftest.err; then
 
13570
       lt_cv_prog_compiler_c_o_F77=yes
 
13571
     fi
 
13572
   fi
 
13573
   chmod u+w .
 
13574
   $rm conftest*
 
13575
   # SGI C++ compiler will create directory out/ii_files/ for
 
13576
   # template instantiation
 
13577
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13578
   $rm out/* && rmdir out
 
13579
   cd ..
 
13580
   rmdir conftest
 
13581
   $rm conftest*
 
13582
 
 
13583
fi
 
13584
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13585
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
13586
 
 
13587
 
 
13588
hard_links="nottested"
 
13589
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
13590
  # do not overwrite the value of need_locks provided by the user
 
13591
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13592
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13593
  hard_links=yes
 
13594
  $rm conftest*
 
13595
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13596
  touch conftest.a
 
13597
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13598
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13599
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13600
echo "${ECHO_T}$hard_links" >&6
 
13601
  if test "$hard_links" = no; then
 
13602
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13603
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13604
    need_locks=warn
 
13605
  fi
 
13606
else
 
13607
  need_locks=no
 
13608
fi
 
13609
 
 
13610
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13611
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13612
 
 
13613
  runpath_var=
 
13614
  allow_undefined_flag_F77=
 
13615
  enable_shared_with_static_runtimes_F77=no
 
13616
  archive_cmds_F77=
 
13617
  archive_expsym_cmds_F77=
 
13618
  old_archive_From_new_cmds_F77=
 
13619
  old_archive_from_expsyms_cmds_F77=
 
13620
  export_dynamic_flag_spec_F77=
 
13621
  whole_archive_flag_spec_F77=
 
13622
  thread_safe_flag_spec_F77=
 
13623
  hardcode_libdir_flag_spec_F77=
 
13624
  hardcode_libdir_flag_spec_ld_F77=
 
13625
  hardcode_libdir_separator_F77=
 
13626
  hardcode_direct_F77=no
 
13627
  hardcode_minus_L_F77=no
 
13628
  hardcode_shlibpath_var_F77=unsupported
 
13629
  link_all_deplibs_F77=unknown
 
13630
  hardcode_automatic_F77=no
 
13631
  module_cmds_F77=
 
13632
  module_expsym_cmds_F77=
 
13633
  always_export_symbols_F77=no
 
13634
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13635
  # include_expsyms should be a list of space-separated symbols to be *always*
 
13636
  # included in the symbol list
 
13637
  include_expsyms_F77=
 
13638
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
13639
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
13640
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
13641
  # as well as any symbol that contains `d'.
 
13642
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
13643
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
13644
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
13645
  # the symbol is explicitly referenced.  Since portable code cannot
 
13646
  # rely on this symbol name, it's probably fine to never include it in
 
13647
  # preloaded symbol tables.
 
13648
  extract_expsyms_cmds=
 
13649
 
 
13650
  case $host_os in
 
13651
  cygwin* | mingw* | pw32*)
 
13652
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
13653
    # When not using gcc, we currently assume that we are using
 
13654
    # Microsoft Visual C++.
 
13655
    if test "$GCC" != yes; then
 
13656
      with_gnu_ld=no
 
13657
    fi
 
13658
    ;;
 
13659
  openbsd*)
 
13660
    with_gnu_ld=no
 
13661
    ;;
 
13662
  esac
 
13663
 
 
13664
  ld_shlibs_F77=yes
 
13665
  if test "$with_gnu_ld" = yes; then
 
13666
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
13667
    wlarc='${wl}'
 
13668
 
 
13669
    # See if GNU ld supports shared libraries.
 
13670
    case $host_os in
 
13671
    aix3* | aix4* | aix5*)
 
13672
      # On AIX/PPC, the GNU linker is very broken
 
13673
      if test "$host_cpu" != ia64; then
 
13674
        ld_shlibs_F77=no
 
13675
        cat <<EOF 1>&2
 
13676
 
 
13677
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
13678
*** to be unable to reliably create shared libraries on AIX.
 
13679
*** Therefore, libtool is disabling shared libraries support.  If you
 
13680
*** really care for shared libraries, you may want to modify your PATH
 
13681
*** so that a non-GNU linker is found, and then restart.
 
13682
 
 
13683
EOF
 
13684
      fi
 
13685
      ;;
 
13686
 
 
13687
    amigaos*)
 
13688
      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)'
 
13689
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13690
      hardcode_minus_L_F77=yes
 
13691
 
 
13692
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
13693
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
13694
      # to version 4, is to share data among multiple programs linked
 
13695
      # with the same dynamic library.  Since this doesn't match the
 
13696
      # behavior of shared libraries on other platforms, we can't use
 
13697
      # them.
 
13698
      ld_shlibs_F77=no
 
13699
      ;;
 
13700
 
 
13701
    beos*)
 
13702
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13703
        allow_undefined_flag_F77=unsupported
 
13704
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13705
        # support --undefined.  This deserves some investigation.  FIXME
 
13706
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13707
      else
 
13708
        ld_shlibs_F77=no
 
13709
      fi
 
13710
      ;;
 
13711
 
 
13712
    cygwin* | mingw* | pw32*)
 
13713
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
13714
      # as there is no search path for DLLs.
 
13715
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13716
      allow_undefined_flag_F77=unsupported
 
13717
      always_export_symbols_F77=no
 
13718
      enable_shared_with_static_runtimes_F77=yes
 
13719
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13720
 
 
13721
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
13722
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
13723
        # If the export-symbols file already is a .def file (1st line
 
13724
        # is EXPORTS), use it as is; otherwise, prepend...
 
13725
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13726
          cp $export_symbols $output_objdir/$soname.def;
 
13727
        else
 
13728
          echo EXPORTS > $output_objdir/$soname.def;
 
13729
          cat $export_symbols >> $output_objdir/$soname.def;
 
13730
        fi~
 
13731
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
13732
      else
 
13733
        ld_shlibs=no
 
13734
      fi
 
13735
      ;;
 
13736
 
 
13737
    netbsd*)
 
13738
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13739
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
13740
        wlarc=
 
13741
      else
 
13742
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13743
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13744
      fi
 
13745
      ;;
 
13746
 
 
13747
    solaris* | sysv5*)
 
13748
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
13749
        ld_shlibs_F77=no
 
13750
        cat <<EOF 1>&2
 
13751
 
 
13752
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
13753
*** create shared libraries on Solaris systems.  Therefore, libtool
 
13754
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13755
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
13756
*** your PATH or compiler configuration so that the native linker is
 
13757
*** used, and then restart.
 
13758
 
 
13759
EOF
 
13760
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13761
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13762
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13763
      else
 
13764
        ld_shlibs_F77=no
 
13765
      fi
 
13766
      ;;
 
13767
 
 
13768
    sunos4*)
 
13769
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13770
      wlarc=
 
13771
      hardcode_direct_F77=yes
 
13772
      hardcode_shlibpath_var_F77=no
 
13773
      ;;
 
13774
 
 
13775
  linux*)
 
13776
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
13777
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13778
        archive_cmds_F77="$tmp_archive_cmds"
 
13779
      supports_anon_versioning=no
 
13780
      case `$LD -v 2>/dev/null` in
 
13781
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
13782
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
13783
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
13784
        *\ 2.11.*) ;; # other 2.11 versions
 
13785
        *) supports_anon_versioning=yes ;;
 
13786
      esac
 
13787
      if test $supports_anon_versioning = yes; then
 
13788
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
13789
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13790
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
13791
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13792
      else
 
13793
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
13794
      fi
 
13795
    else
 
13796
      ld_shlibs_F77=no
 
13797
    fi
 
13798
    ;;
 
13799
 
 
13800
    *)
 
13801
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13802
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13803
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13804
      else
 
13805
        ld_shlibs_F77=no
 
13806
      fi
 
13807
      ;;
 
13808
    esac
 
13809
 
 
13810
    if test "$ld_shlibs_F77" = yes; then
 
13811
      runpath_var=LD_RUN_PATH
 
13812
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13813
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13814
      # ancient GNU ld didn't support --whole-archive et. al.
 
13815
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13816
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13817
      else
 
13818
        whole_archive_flag_spec_F77=
 
13819
      fi
 
13820
    fi
 
13821
  else
 
13822
    # PORTME fill in a description of your system's linker (not GNU ld)
 
13823
    case $host_os in
 
13824
    aix3*)
 
13825
      allow_undefined_flag_F77=unsupported
 
13826
      always_export_symbols_F77=yes
 
13827
      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'
 
13828
      # Note: this linker hardcodes the directories in LIBPATH if there
 
13829
      # are no directories specified by -L.
 
13830
      hardcode_minus_L_F77=yes
 
13831
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
13832
        # Neither direct hardcoding nor static linking is supported with a
 
13833
        # broken collect2.
 
13834
        hardcode_direct_F77=unsupported
 
13835
      fi
 
13836
      ;;
 
13837
 
 
13838
    aix4* | aix5*)
 
13839
      if test "$host_cpu" = ia64; then
 
13840
        # On IA64, the linker does run time linking by default, so we don't
 
13841
        # have to do anything special.
 
13842
        aix_use_runtimelinking=no
 
13843
        exp_sym_flag='-Bexport'
 
13844
        no_entry_flag=""
 
13845
      else
 
13846
        # If we're using GNU nm, then we don't want the "-C" option.
 
13847
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13848
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13849
          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'
 
13850
        else
 
13851
          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'
 
13852
        fi
 
13853
        aix_use_runtimelinking=no
 
13854
 
 
13855
        # Test if we are trying to use run time linking or normal
 
13856
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
13857
        # need to do runtime linking.
 
13858
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
13859
          for ld_flag in $LDFLAGS; do
 
13860
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
13861
            aix_use_runtimelinking=yes
 
13862
            break
 
13863
          fi
 
13864
          done
 
13865
        esac
 
13866
 
 
13867
        exp_sym_flag='-bexport'
 
13868
        no_entry_flag='-bnoentry'
 
13869
      fi
 
13870
 
 
13871
      # When large executables or shared objects are built, AIX ld can
 
13872
      # have problems creating the table of contents.  If linking a library
 
13873
      # or program results in "error TOC overflow" add -mminimal-toc to
 
13874
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
13875
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
13876
 
 
13877
      archive_cmds_F77=''
 
13878
      hardcode_direct_F77=yes
 
13879
      hardcode_libdir_separator_F77=':'
 
13880
      link_all_deplibs_F77=yes
 
13881
 
 
13882
      if test "$GCC" = yes; then
 
13883
        case $host_os in aix4.012|aix4.012.*)
 
13884
        # We only want to do this on AIX 4.2 and lower, the check
 
13885
        # below for broken collect2 doesn't work under 4.3+
 
13886
          collect2name=`${CC} -print-prog-name=collect2`
 
13887
          if test -f "$collect2name" && \
 
13888
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
13889
          then
 
13890
          # We have reworked collect2
 
13891
          hardcode_direct_F77=yes
 
13892
          else
 
13893
          # We have old collect2
 
13894
          hardcode_direct_F77=unsupported
 
13895
          # It fails to find uninstalled libraries when the uninstalled
 
13896
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
13897
          # to unsupported forces relinking
 
13898
          hardcode_minus_L_F77=yes
 
13899
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
13900
          hardcode_libdir_separator_F77=
 
13901
          fi
 
13902
        esac
 
13903
        shared_flag='-shared'
 
13904
      else
 
13905
        # not using gcc
 
13906
        if test "$host_cpu" = ia64; then
 
13907
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
13908
        # chokes on -Wl,-G. The following line is correct:
 
13909
          shared_flag='-G'
 
13910
        else
 
13911
        if test "$aix_use_runtimelinking" = yes; then
 
13912
            shared_flag='${wl}-G'
 
13913
          else
 
13914
            shared_flag='${wl}-bM:SRE'
 
13915
        fi
 
13916
        fi
 
13917
      fi
 
13918
 
 
13919
      # It seems that -bexpall does not export symbols beginning with
 
13920
      # underscore (_), so it is better to generate a list of symbols to export.
 
13921
      always_export_symbols_F77=yes
 
13922
      if test "$aix_use_runtimelinking" = yes; then
 
13923
        # Warning - without using the other runtime loading flags (-brtl),
 
13924
        # -berok will link without error, but may produce a broken library.
 
13925
        allow_undefined_flag_F77='-berok'
 
13926
       # Determine the default libpath from the value encoded in an empty executable.
 
13927
       cat >conftest.$ac_ext <<_ACEOF
 
13928
      program main
 
13929
 
 
13930
      end
 
13931
_ACEOF
 
13932
rm -f conftest.$ac_objext conftest$ac_exeext
 
13933
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13934
  (eval $ac_link) 2>conftest.er1
 
13935
  ac_status=$?
 
13936
  grep -v '^ *+' conftest.er1 >conftest.err
 
13937
  rm -f conftest.er1
 
13938
  cat conftest.err >&5
 
13939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13940
  (exit $ac_status); } &&
 
13941
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
13942
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13943
  (eval $ac_try) 2>&5
 
13944
  ac_status=$?
 
13945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13946
  (exit $ac_status); }; } &&
 
13947
         { ac_try='test -s conftest$ac_exeext'
 
13948
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13949
  (eval $ac_try) 2>&5
 
13950
  ac_status=$?
 
13951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13952
  (exit $ac_status); }; }; then
 
13953
 
 
13954
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13955
}'`
 
13956
# Check for a 64-bit object if we didn't find anything.
 
13957
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; }
 
13958
}'`; fi
 
13959
else
 
13960
  echo "$as_me: failed program was:" >&5
 
13961
sed 's/^/| /' conftest.$ac_ext >&5
 
13962
 
 
13963
fi
 
13964
rm -f conftest.err conftest.$ac_objext \
 
13965
      conftest$ac_exeext conftest.$ac_ext
 
13966
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13967
 
 
13968
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13969
        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"
 
13970
       else
 
13971
        if test "$host_cpu" = ia64; then
 
13972
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
13973
          allow_undefined_flag_F77="-z nodefs"
 
13974
          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"
 
13975
        else
 
13976
         # Determine the default libpath from the value encoded in an empty executable.
 
13977
         cat >conftest.$ac_ext <<_ACEOF
 
13978
      program main
 
13979
 
 
13980
      end
 
13981
_ACEOF
 
13982
rm -f conftest.$ac_objext conftest$ac_exeext
 
13983
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13984
  (eval $ac_link) 2>conftest.er1
 
13985
  ac_status=$?
 
13986
  grep -v '^ *+' conftest.er1 >conftest.err
 
13987
  rm -f conftest.er1
 
13988
  cat conftest.err >&5
 
13989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13990
  (exit $ac_status); } &&
 
13991
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
13992
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13993
  (eval $ac_try) 2>&5
 
13994
  ac_status=$?
 
13995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13996
  (exit $ac_status); }; } &&
 
13997
         { ac_try='test -s conftest$ac_exeext'
 
13998
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13999
  (eval $ac_try) 2>&5
 
14000
  ac_status=$?
 
14001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14002
  (exit $ac_status); }; }; then
 
14003
 
 
14004
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14005
}'`
 
14006
# Check for a 64-bit object if we didn't find anything.
 
14007
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; }
 
14008
}'`; fi
 
14009
else
 
14010
  echo "$as_me: failed program was:" >&5
 
14011
sed 's/^/| /' conftest.$ac_ext >&5
 
14012
 
 
14013
fi
 
14014
rm -f conftest.err conftest.$ac_objext \
 
14015
      conftest$ac_exeext conftest.$ac_ext
 
14016
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14017
 
 
14018
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14019
          # Warning - without using the other run time loading flags,
 
14020
          # -berok will link without error, but may produce a broken library.
 
14021
          no_undefined_flag_F77=' ${wl}-bernotok'
 
14022
          allow_undefined_flag_F77=' ${wl}-berok'
 
14023
          # -bexpall does not export symbols beginning with underscore (_)
 
14024
          always_export_symbols_F77=yes
 
14025
          # Exported symbols can be pulled into shared objects from archives
 
14026
          whole_archive_flag_spec_F77=' '
 
14027
          archive_cmds_need_lc_F77=yes
 
14028
          # This is similar to how AIX traditionally builds it's shared libraries.
 
14029
          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'
 
14030
        fi
 
14031
      fi
 
14032
      ;;
 
14033
 
 
14034
    amigaos*)
 
14035
      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)'
 
14036
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14037
      hardcode_minus_L_F77=yes
 
14038
      # see comment about different semantics on the GNU ld section
 
14039
      ld_shlibs_F77=no
 
14040
      ;;
 
14041
 
 
14042
    bsdi4*)
 
14043
      export_dynamic_flag_spec_F77=-rdynamic
 
14044
      ;;
 
14045
 
 
14046
    cygwin* | mingw* | pw32*)
 
14047
      # When not using gcc, we currently assume that we are using
 
14048
      # Microsoft Visual C++.
 
14049
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
14050
      # no search path for DLLs.
 
14051
      hardcode_libdir_flag_spec_F77=' '
 
14052
      allow_undefined_flag_F77=unsupported
 
14053
      # Tell ltmain to make .lib files, not .a files.
 
14054
      libext=lib
 
14055
      # Tell ltmain to make .dll files, not .so files.
 
14056
      shrext=".dll"
 
14057
      # FIXME: Setting linknames here is a bad hack.
 
14058
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
14059
      # The linker will automatically build a .lib file if we build a DLL.
 
14060
      old_archive_From_new_cmds_F77='true'
 
14061
      # FIXME: Should let the user specify the lib program.
 
14062
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
14063
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
14064
      enable_shared_with_static_runtimes_F77=yes
 
14065
      ;;
 
14066
 
 
14067
    darwin* | rhapsody*)
 
14068
    if test "$GXX" = yes ; then
 
14069
      archive_cmds_need_lc_F77=no
 
14070
      case "$host_os" in
 
14071
      rhapsody* | darwin1.[012])
 
14072
        allow_undefined_flag_F77='-undefined suppress'
 
14073
        ;;
 
14074
      *) # Darwin 1.3 on
 
14075
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14076
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
14077
      else
 
14078
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
14079
          10.[012])
 
14080
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
14081
            ;;
 
14082
          10.*)
 
14083
            allow_undefined_flag_F77='-undefined dynamic_lookup'
 
14084
            ;;
 
14085
        esac
 
14086
      fi
 
14087
        ;;
 
14088
      esac
 
14089
        lt_int_apple_cc_single_mod=no
 
14090
        output_verbose_link_cmd='echo'
 
14091
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
14092
          lt_int_apple_cc_single_mod=yes
 
14093
        fi
 
14094
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
14095
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14096
        else
 
14097
        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'
 
14098
      fi
 
14099
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14100
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
14101
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
14102
          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}'
 
14103
        else
 
14104
          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}'
 
14105
        fi
 
14106
          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}'
 
14107
      hardcode_direct_F77=no
 
14108
      hardcode_automatic_F77=yes
 
14109
      hardcode_shlibpath_var_F77=unsupported
 
14110
      whole_archive_flag_spec_F77='-all_load $convenience'
 
14111
      link_all_deplibs_F77=yes
 
14112
    else
 
14113
      ld_shlibs_F77=no
 
14114
    fi
 
14115
      ;;
 
14116
 
 
14117
    dgux*)
 
14118
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14119
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14120
      hardcode_shlibpath_var_F77=no
 
14121
      ;;
 
14122
 
 
14123
    freebsd1*)
 
14124
      ld_shlibs_F77=no
 
14125
      ;;
 
14126
 
 
14127
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
14128
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
14129
    # does not break anything, and helps significantly (at the cost of a little
 
14130
    # extra space).
 
14131
    freebsd2.2*)
 
14132
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
14133
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14134
      hardcode_direct_F77=yes
 
14135
      hardcode_shlibpath_var_F77=no
 
14136
      ;;
 
14137
 
 
14138
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
14139
    freebsd2*)
 
14140
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14141
      hardcode_direct_F77=yes
 
14142
      hardcode_minus_L_F77=yes
 
14143
      hardcode_shlibpath_var_F77=no
 
14144
      ;;
 
14145
 
 
14146
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
14147
    freebsd* | kfreebsd*-gnu)
 
14148
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14149
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14150
      hardcode_direct_F77=yes
 
14151
      hardcode_shlibpath_var_F77=no
 
14152
      ;;
 
14153
 
 
14154
    hpux9*)
 
14155
      if test "$GCC" = yes; then
 
14156
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
14157
      else
 
14158
        archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
14159
      fi
 
14160
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14161
      hardcode_libdir_separator_F77=:
 
14162
      hardcode_direct_F77=yes
 
14163
 
 
14164
      # hardcode_minus_L: Not really in the search PATH,
 
14165
      # but as the default location of the library.
 
14166
      hardcode_minus_L_F77=yes
 
14167
      export_dynamic_flag_spec_F77='${wl}-E'
 
14168
      ;;
 
14169
 
 
14170
    hpux10* | hpux11*)
 
14171
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14172
        case "$host_cpu" in
 
14173
        hppa*64*|ia64*)
 
14174
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14175
          ;;
 
14176
        *)
 
14177
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14178
          ;;
 
14179
        esac
 
14180
      else
 
14181
        case "$host_cpu" in
 
14182
        hppa*64*|ia64*)
 
14183
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14184
          ;;
 
14185
        *)
 
14186
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14187
          ;;
 
14188
        esac
 
14189
      fi
 
14190
      if test "$with_gnu_ld" = no; then
 
14191
        case "$host_cpu" in
 
14192
        hppa*64*)
 
14193
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14194
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14195
          hardcode_libdir_separator_F77=:
 
14196
          hardcode_direct_F77=no
 
14197
          hardcode_shlibpath_var_F77=no
 
14198
          ;;
 
14199
        ia64*)
 
14200
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14201
          hardcode_direct_F77=no
 
14202
          hardcode_shlibpath_var_F77=no
 
14203
 
 
14204
          # hardcode_minus_L: Not really in the search PATH,
 
14205
          # but as the default location of the library.
 
14206
          hardcode_minus_L_F77=yes
 
14207
          ;;
 
14208
        *)
 
14209
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14210
          hardcode_libdir_separator_F77=:
 
14211
          hardcode_direct_F77=yes
 
14212
          export_dynamic_flag_spec_F77='${wl}-E'
 
14213
 
 
14214
          # hardcode_minus_L: Not really in the search PATH,
 
14215
          # but as the default location of the library.
 
14216
          hardcode_minus_L_F77=yes
 
14217
          ;;
 
14218
        esac
 
14219
      fi
 
14220
      ;;
 
14221
 
 
14222
    irix5* | irix6* | nonstopux*)
 
14223
      if test "$GCC" = yes; then
 
14224
        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'
 
14225
      else
 
14226
        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'
 
14227
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14228
      fi
 
14229
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14230
      hardcode_libdir_separator_F77=:
 
14231
      link_all_deplibs_F77=yes
 
14232
      ;;
 
14233
 
 
14234
    netbsd*)
 
14235
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14236
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14237
      else
 
14238
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14239
      fi
 
14240
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14241
      hardcode_direct_F77=yes
 
14242
      hardcode_shlibpath_var_F77=no
 
14243
      ;;
 
14244
 
 
14245
    newsos6)
 
14246
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14247
      hardcode_direct_F77=yes
 
14248
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14249
      hardcode_libdir_separator_F77=:
 
14250
      hardcode_shlibpath_var_F77=no
 
14251
      ;;
 
14252
 
 
14253
    openbsd*)
 
14254
      hardcode_direct_F77=yes
 
14255
      hardcode_shlibpath_var_F77=no
 
14256
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14257
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14258
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14259
        export_dynamic_flag_spec_F77='${wl}-E'
 
14260
      else
 
14261
       case $host_os in
 
14262
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14263
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14264
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14265
           ;;
 
14266
         *)
 
14267
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14268
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14269
           ;;
 
14270
       esac
 
14271
      fi
 
14272
      ;;
 
14273
 
 
14274
    os2*)
 
14275
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14276
      hardcode_minus_L_F77=yes
 
14277
      allow_undefined_flag_F77=unsupported
 
14278
      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'
 
14279
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
14280
      ;;
 
14281
 
 
14282
    osf3*)
 
14283
      if test "$GCC" = yes; then
 
14284
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14285
        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'
 
14286
      else
 
14287
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14288
        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'
 
14289
      fi
 
14290
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14291
      hardcode_libdir_separator_F77=:
 
14292
      ;;
 
14293
 
 
14294
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
14295
      if test "$GCC" = yes; then
 
14296
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14297
        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'
 
14298
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14299
      else
 
14300
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14301
        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'
 
14302
        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~
 
14303
        $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'
 
14304
 
 
14305
        # Both c and cxx compiler support -rpath directly
 
14306
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
14307
      fi
 
14308
      hardcode_libdir_separator_F77=:
 
14309
      ;;
 
14310
 
 
14311
    sco3.2v5*)
 
14312
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14313
      hardcode_shlibpath_var_F77=no
 
14314
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14315
      runpath_var=LD_RUN_PATH
 
14316
      hardcode_runpath_var=yes
 
14317
      ;;
 
14318
 
 
14319
    solaris*)
 
14320
      no_undefined_flag_F77=' -z text'
 
14321
      if test "$GCC" = yes; then
 
14322
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14323
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14324
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
14325
      else
 
14326
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14327
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14328
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14329
      fi
 
14330
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14331
      hardcode_shlibpath_var_F77=no
 
14332
      case $host_os in
 
14333
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14334
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14335
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14336
      esac
 
14337
      link_all_deplibs_F77=yes
 
14338
      ;;
 
14339
 
 
14340
    sunos4*)
 
14341
      if test "x$host_vendor" = xsequent; then
 
14342
        # Use $CC to link under sequent, because it throws in some extra .o
 
14343
        # files that make .init and .fini sections work.
 
14344
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
14345
      else
 
14346
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
14347
      fi
 
14348
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14349
      hardcode_direct_F77=yes
 
14350
      hardcode_minus_L_F77=yes
 
14351
      hardcode_shlibpath_var_F77=no
 
14352
      ;;
 
14353
 
 
14354
    sysv4)
 
14355
      case $host_vendor in
 
14356
        sni)
 
14357
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14358
          hardcode_direct_F77=yes # is this really true???
 
14359
        ;;
 
14360
        siemens)
 
14361
          ## LD is ld it makes a PLAMLIB
 
14362
          ## CC just makes a GrossModule.
 
14363
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14364
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
14365
          hardcode_direct_F77=no
 
14366
        ;;
 
14367
        motorola)
 
14368
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14369
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
14370
        ;;
 
14371
      esac
 
14372
      runpath_var='LD_RUN_PATH'
 
14373
      hardcode_shlibpath_var_F77=no
 
14374
      ;;
 
14375
 
 
14376
    sysv4.3*)
 
14377
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14378
      hardcode_shlibpath_var_F77=no
 
14379
      export_dynamic_flag_spec_F77='-Bexport'
 
14380
      ;;
 
14381
 
 
14382
    sysv4*MP*)
 
14383
      if test -d /usr/nec; then
 
14384
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14385
        hardcode_shlibpath_var_F77=no
 
14386
        runpath_var=LD_RUN_PATH
 
14387
        hardcode_runpath_var=yes
 
14388
        ld_shlibs_F77=yes
 
14389
      fi
 
14390
      ;;
 
14391
 
 
14392
    sysv4.2uw2*)
 
14393
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14394
      hardcode_direct_F77=yes
 
14395
      hardcode_minus_L_F77=no
 
14396
      hardcode_shlibpath_var_F77=no
 
14397
      hardcode_runpath_var=yes
 
14398
      runpath_var=LD_RUN_PATH
 
14399
      ;;
 
14400
 
 
14401
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
14402
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
14403
      if test "$GCC" = yes; then
 
14404
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14405
      else
 
14406
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14407
      fi
 
14408
      runpath_var='LD_RUN_PATH'
 
14409
      hardcode_shlibpath_var_F77=no
 
14410
      ;;
 
14411
 
 
14412
    sysv5*)
 
14413
      no_undefined_flag_F77=' -z text'
 
14414
      # $CC -shared without GNU ld will not create a library from C++
 
14415
      # object files and a static libstdc++, better avoid it by now
 
14416
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14417
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14418
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14419
      hardcode_libdir_flag_spec_F77=
 
14420
      hardcode_shlibpath_var_F77=no
 
14421
      runpath_var='LD_RUN_PATH'
 
14422
      ;;
 
14423
 
 
14424
    uts4*)
 
14425
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14426
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14427
      hardcode_shlibpath_var_F77=no
 
14428
      ;;
 
14429
 
 
14430
    *)
 
14431
      ld_shlibs_F77=no
 
14432
      ;;
 
14433
    esac
 
14434
  fi
 
14435
 
 
14436
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
14437
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
14438
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14439
 
 
14440
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14441
if test "$GCC" = yes; then
 
14442
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14443
fi
 
14444
 
 
14445
#
 
14446
# Do we need to explicitly link libc?
 
14447
#
 
14448
case "x$archive_cmds_need_lc_F77" in
 
14449
x|xyes)
 
14450
  # Assume -lc should be added
 
14451
  archive_cmds_need_lc_F77=yes
 
14452
 
 
14453
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14454
    case $archive_cmds_F77 in
 
14455
    *'~'*)
 
14456
      # FIXME: we may have to deal with multi-command sequences.
 
14457
      ;;
 
14458
    '$CC '*)
 
14459
      # Test whether the compiler implicitly links with -lc since on some
 
14460
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14461
      # to ld, don't add -lc before -lgcc.
 
14462
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14463
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
14464
      $rm conftest*
 
14465
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14466
 
 
14467
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14468
  (eval $ac_compile) 2>&5
 
14469
  ac_status=$?
 
14470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14471
  (exit $ac_status); } 2>conftest.err; then
 
14472
        soname=conftest
 
14473
        lib=conftest
 
14474
        libobjs=conftest.$ac_objext
 
14475
        deplibs=
 
14476
        wl=$lt_prog_compiler_wl_F77
 
14477
        compiler_flags=-v
 
14478
        linker_flags=-v
 
14479
        verstring=
 
14480
        output_objdir=.
 
14481
        libname=conftest
 
14482
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
14483
        allow_undefined_flag_F77=
 
14484
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14485
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14486
  ac_status=$?
 
14487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14488
  (exit $ac_status); }
 
14489
        then
 
14490
          archive_cmds_need_lc_F77=no
 
14491
        else
 
14492
          archive_cmds_need_lc_F77=yes
 
14493
        fi
 
14494
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
14495
      else
 
14496
        cat conftest.err 1>&5
 
14497
      fi
 
14498
      $rm conftest*
 
14499
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
14500
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
14501
      ;;
 
14502
    esac
 
14503
  fi
 
14504
  ;;
 
14505
esac
 
14506
 
 
14507
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14508
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
14509
library_names_spec=
 
14510
libname_spec='lib$name'
 
14511
soname_spec=
 
14512
shrext=".so"
 
14513
postinstall_cmds=
 
14514
postuninstall_cmds=
 
14515
finish_cmds=
 
14516
finish_eval=
 
14517
shlibpath_var=
 
14518
shlibpath_overrides_runpath=unknown
 
14519
version_type=none
 
14520
dynamic_linker="$host_os ld.so"
 
14521
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14522
if test "$GCC" = yes; then
 
14523
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14524
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14525
    # if the path contains ";" then we assume it to be the separator
 
14526
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14527
    # assumed that no part of a normal pathname contains ";" but that should
 
14528
    # okay in the real world where ";" in dirpaths is itself problematic.
 
14529
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14530
  else
 
14531
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14532
  fi
 
14533
else
 
14534
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14535
fi
 
14536
need_lib_prefix=unknown
 
14537
hardcode_into_libs=no
 
14538
 
 
14539
# when you set need_version to no, make sure it does not cause -set_version
 
14540
# flags to be left without arguments
 
14541
need_version=unknown
 
14542
 
 
14543
case $host_os in
 
14544
aix3*)
 
14545
  version_type=linux
 
14546
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14547
  shlibpath_var=LIBPATH
 
14548
 
 
14549
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14550
  soname_spec='${libname}${release}${shared_ext}$major'
 
14551
  ;;
 
14552
 
 
14553
aix4* | aix5*)
 
14554
  version_type=linux
 
14555
  need_lib_prefix=no
 
14556
  need_version=no
 
14557
  hardcode_into_libs=yes
 
14558
  if test "$host_cpu" = ia64; then
 
14559
    # AIX 5 supports IA64
 
14560
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14561
    shlibpath_var=LD_LIBRARY_PATH
 
14562
  else
 
14563
    # With GCC up to 2.95.x, collect2 would create an import file
 
14564
    # for dependence libraries.  The import file would start with
 
14565
    # the line `#! .'.  This would cause the generated library to
 
14566
    # depend on `.', always an invalid library.  This was fixed in
 
14567
    # development snapshots of GCC prior to 3.0.
 
14568
    case $host_os in
 
14569
      aix4 | aix4.[01] | aix4.[01].*)
 
14570
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14571
           echo ' yes '
 
14572
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14573
        :
 
14574
      else
 
14575
        can_build_shared=no
 
14576
      fi
 
14577
      ;;
 
14578
    esac
 
14579
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14580
    # soname into executable. Probably we can add versioning support to
 
14581
    # collect2, so additional links can be useful in future.
 
14582
    if test "$aix_use_runtimelinking" = yes; then
 
14583
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14584
      # instead of lib<name>.a to let people know that these are not
 
14585
      # typical AIX shared libraries.
 
14586
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14587
    else
 
14588
      # We preserve .a as extension for shared libraries through AIX4.2
 
14589
      # and later when we are not doing run time linking.
 
14590
      library_names_spec='${libname}${release}.a $libname.a'
 
14591
      soname_spec='${libname}${release}${shared_ext}$major'
 
14592
    fi
 
14593
    shlibpath_var=LIBPATH
 
14594
  fi
 
14595
  ;;
 
14596
 
 
14597
amigaos*)
 
14598
  library_names_spec='$libname.ixlibrary $libname.a'
 
14599
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14600
  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'
 
14601
  ;;
 
14602
 
 
14603
beos*)
 
14604
  library_names_spec='${libname}${shared_ext}'
 
14605
  dynamic_linker="$host_os ld.so"
 
14606
  shlibpath_var=LIBRARY_PATH
 
14607
  ;;
 
14608
 
 
14609
bsdi4*)
 
14610
  version_type=linux
 
14611
  need_version=no
 
14612
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14613
  soname_spec='${libname}${release}${shared_ext}$major'
 
14614
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14615
  shlibpath_var=LD_LIBRARY_PATH
 
14616
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14617
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14618
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14619
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14620
  # libtool to hard-code these into programs
 
14621
  ;;
 
14622
 
 
14623
cygwin* | mingw* | pw32*)
 
14624
  version_type=windows
 
14625
  shrext=".dll"
 
14626
  need_version=no
 
14627
  need_lib_prefix=no
 
14628
 
 
14629
  case $GCC,$host_os in
 
14630
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14631
    library_names_spec='$libname.dll.a'
 
14632
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14633
    postinstall_cmds='base_file=`basename \${file}`~
 
14634
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14635
      dldir=$destdir/`dirname \$dlpath`~
 
14636
      test -d \$dldir || mkdir -p \$dldir~
 
14637
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14638
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14639
      dlpath=$dir/\$dldll~
 
14640
       $rm \$dlpath'
 
14641
    shlibpath_overrides_runpath=yes
 
14642
 
 
14643
    case $host_os in
 
14644
    cygwin*)
 
14645
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14646
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14647
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14648
      ;;
 
14649
    mingw*)
 
14650
      # MinGW DLLs use traditional 'lib' prefix
 
14651
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14652
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14653
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14654
        # It is most probably a Windows format PATH printed by
 
14655
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14656
        # path with ; separators, and with drive letters. We can handle the
 
14657
        # drive letters (cygwin fileutils understands them), so leave them,
 
14658
        # especially as we might pass files found there to a mingw objdump,
 
14659
        # which wouldn't understand a cygwinified path. Ahh.
 
14660
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14661
      else
 
14662
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14663
      fi
 
14664
      ;;
 
14665
    pw32*)
 
14666
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14667
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
14668
      ;;
 
14669
    esac
 
14670
    ;;
 
14671
 
 
14672
  *)
 
14673
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14674
    ;;
 
14675
  esac
 
14676
  dynamic_linker='Win32 ld.exe'
 
14677
  # FIXME: first we should search . and the directory the executable is in
 
14678
  shlibpath_var=PATH
 
14679
  ;;
 
14680
 
 
14681
darwin* | rhapsody*)
 
14682
  dynamic_linker="$host_os dyld"
 
14683
  version_type=darwin
 
14684
  need_lib_prefix=no
 
14685
  need_version=no
 
14686
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14687
  soname_spec='${libname}${release}${major}$shared_ext'
 
14688
  shlibpath_overrides_runpath=yes
 
14689
  shlibpath_var=DYLD_LIBRARY_PATH
 
14690
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
14691
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14692
  if test "$GCC" = yes; then
 
14693
    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"`
 
14694
  else
 
14695
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
14696
  fi
 
14697
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14698
  ;;
 
14699
 
 
14700
dgux*)
 
14701
  version_type=linux
 
14702
  need_lib_prefix=no
 
14703
  need_version=no
 
14704
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14705
  soname_spec='${libname}${release}${shared_ext}$major'
 
14706
  shlibpath_var=LD_LIBRARY_PATH
 
14707
  ;;
 
14708
 
 
14709
freebsd1*)
 
14710
  dynamic_linker=no
 
14711
  ;;
 
14712
 
 
14713
kfreebsd*-gnu)
 
14714
  version_type=linux
 
14715
  need_lib_prefix=no
 
14716
  need_version=no
 
14717
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14718
  soname_spec='${libname}${release}${shared_ext}$major'
 
14719
  shlibpath_var=LD_LIBRARY_PATH
 
14720
  shlibpath_overrides_runpath=no
 
14721
  hardcode_into_libs=yes
 
14722
  dynamic_linker='GNU ld.so'
 
14723
  ;;
 
14724
 
 
14725
freebsd*)
 
14726
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
14727
  version_type=freebsd-$objformat
 
14728
  case $version_type in
 
14729
    freebsd-elf*)
 
14730
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14731
      need_version=no
 
14732
      need_lib_prefix=no
 
14733
      ;;
 
14734
    freebsd-*)
 
14735
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14736
      need_version=yes
 
14737
      ;;
 
14738
  esac
 
14739
  shlibpath_var=LD_LIBRARY_PATH
 
14740
  case $host_os in
 
14741
  freebsd2*)
 
14742
    shlibpath_overrides_runpath=yes
 
14743
    ;;
 
14744
  freebsd3.01* | freebsdelf3.01*)
 
14745
    shlibpath_overrides_runpath=yes
 
14746
    hardcode_into_libs=yes
 
14747
    ;;
 
14748
  *) # from 3.2 on
 
14749
    shlibpath_overrides_runpath=no
 
14750
    hardcode_into_libs=yes
 
14751
    ;;
 
14752
  esac
 
14753
  ;;
 
14754
 
 
14755
gnu*)
 
14756
  version_type=linux
 
14757
  need_lib_prefix=no
 
14758
  need_version=no
 
14759
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14760
  soname_spec='${libname}${release}${shared_ext}$major'
 
14761
  shlibpath_var=LD_LIBRARY_PATH
 
14762
  hardcode_into_libs=yes
 
14763
  ;;
 
14764
 
 
14765
hpux9* | hpux10* | hpux11*)
 
14766
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14767
  # link against other versions.
 
14768
  version_type=sunos
 
14769
  need_lib_prefix=no
 
14770
  need_version=no
 
14771
  case "$host_cpu" in
 
14772
  ia64*)
 
14773
    shrext='.so'
 
14774
    hardcode_into_libs=yes
 
14775
    dynamic_linker="$host_os dld.so"
 
14776
    shlibpath_var=LD_LIBRARY_PATH
 
14777
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14778
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14779
    soname_spec='${libname}${release}${shared_ext}$major'
 
14780
    if test "X$HPUX_IA64_MODE" = X32; then
 
14781
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14782
    else
 
14783
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14784
    fi
 
14785
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14786
    ;;
 
14787
   hppa*64*)
 
14788
     shrext='.sl'
 
14789
     hardcode_into_libs=yes
 
14790
     dynamic_linker="$host_os dld.sl"
 
14791
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14792
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14793
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14794
     soname_spec='${libname}${release}${shared_ext}$major'
 
14795
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14796
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14797
     ;;
 
14798
   *)
 
14799
    shrext='.sl'
 
14800
    dynamic_linker="$host_os dld.sl"
 
14801
    shlibpath_var=SHLIB_PATH
 
14802
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14803
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14804
    soname_spec='${libname}${release}${shared_ext}$major'
 
14805
    ;;
 
14806
  esac
 
14807
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
14808
  postinstall_cmds='chmod 555 $lib'
 
14809
  ;;
 
14810
 
 
14811
irix5* | irix6* | nonstopux*)
 
14812
  case $host_os in
 
14813
    nonstopux*) version_type=nonstopux ;;
 
14814
    *)
 
14815
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14816
                version_type=linux
 
14817
        else
 
14818
                version_type=irix
 
14819
        fi ;;
 
14820
  esac
 
14821
  need_lib_prefix=no
 
14822
  need_version=no
 
14823
  soname_spec='${libname}${release}${shared_ext}$major'
 
14824
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14825
  case $host_os in
 
14826
  irix5* | nonstopux*)
 
14827
    libsuff= shlibsuff=
 
14828
    ;;
 
14829
  *)
 
14830
    case $LD in # libtool.m4 will add one of these switches to LD
 
14831
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14832
      libsuff= shlibsuff= libmagic=32-bit;;
 
14833
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14834
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14835
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14836
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14837
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14838
    esac
 
14839
    ;;
 
14840
  esac
 
14841
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14842
  shlibpath_overrides_runpath=no
 
14843
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14844
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14845
  hardcode_into_libs=yes
 
14846
  ;;
 
14847
 
 
14848
# No shared lib support for Linux oldld, aout, or coff.
 
14849
linux*oldld* | linux*aout* | linux*coff*)
 
14850
  dynamic_linker=no
 
14851
  ;;
 
14852
 
 
14853
# This must be Linux ELF.
 
14854
linux*)
 
14855
  version_type=linux
 
14856
  need_lib_prefix=no
 
14857
  need_version=no
 
14858
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14859
  soname_spec='${libname}${release}${shared_ext}$major'
 
14860
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14861
  shlibpath_var=LD_LIBRARY_PATH
 
14862
  shlibpath_overrides_runpath=no
 
14863
  # This implies no fast_install, which is unacceptable.
 
14864
  # Some rework will be needed to allow for fast_install
 
14865
  # before this can be enabled.
 
14866
  hardcode_into_libs=yes
 
14867
 
 
14868
  # Append ld.so.conf contents to the search path
 
14869
  if test -f /etc/ld.so.conf; then
 
14870
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
 
14871
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
 
14872
  fi
 
14873
 
 
14874
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14875
  # powerpc, because MkLinux only supported shared libraries with the
 
14876
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14877
  # most powerpc-linux boxes support dynamic linking these days and
 
14878
  # people can always --disable-shared, the test was removed, and we
 
14879
  # assume the GNU/Linux dynamic linker is in use.
 
14880
  dynamic_linker='GNU/Linux ld.so'
 
14881
  ;;
 
14882
 
 
14883
knetbsd*-gnu)
 
14884
  version_type=linux
 
14885
  need_lib_prefix=no
 
14886
  need_version=no
 
14887
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14888
  soname_spec='${libname}${release}${shared_ext}$major'
 
14889
  shlibpath_var=LD_LIBRARY_PATH
 
14890
  shlibpath_overrides_runpath=no
 
14891
  hardcode_into_libs=yes
 
14892
  dynamic_linker='GNU ld.so'
 
14893
  ;;
 
14894
 
 
14895
netbsd*)
 
14896
  version_type=sunos
 
14897
  need_lib_prefix=no
 
14898
  need_version=no
 
14899
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14900
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14901
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14902
    dynamic_linker='NetBSD (a.out) ld.so'
 
14903
  else
 
14904
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
14905
    soname_spec='${libname}${release}${shared_ext}$major'
 
14906
    dynamic_linker='NetBSD ld.elf_so'
 
14907
  fi
 
14908
  shlibpath_var=LD_LIBRARY_PATH
 
14909
  shlibpath_overrides_runpath=yes
 
14910
  hardcode_into_libs=yes
 
14911
  ;;
 
14912
 
 
14913
newsos6)
 
14914
  version_type=linux
 
14915
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14916
  shlibpath_var=LD_LIBRARY_PATH
 
14917
  shlibpath_overrides_runpath=yes
 
14918
  ;;
 
14919
 
 
14920
nto-qnx*)
 
14921
  version_type=linux
 
14922
  need_lib_prefix=no
 
14923
  need_version=no
 
14924
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14925
  soname_spec='${libname}${release}${shared_ext}$major'
 
14926
  shlibpath_var=LD_LIBRARY_PATH
 
14927
  shlibpath_overrides_runpath=yes
 
14928
  ;;
 
14929
 
 
14930
openbsd*)
 
14931
  version_type=sunos
 
14932
  need_lib_prefix=no
 
14933
  need_version=yes
 
14934
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14935
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14936
  shlibpath_var=LD_LIBRARY_PATH
 
14937
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14938
    case $host_os in
 
14939
      openbsd2.[89] | openbsd2.[89].*)
 
14940
        shlibpath_overrides_runpath=no
 
14941
        ;;
 
14942
      *)
 
14943
        shlibpath_overrides_runpath=yes
 
14944
        ;;
 
14945
      esac
 
14946
  else
 
14947
    shlibpath_overrides_runpath=yes
 
14948
  fi
 
14949
  ;;
 
14950
 
 
14951
os2*)
 
14952
  libname_spec='$name'
 
14953
  shrext=".dll"
 
14954
  need_lib_prefix=no
 
14955
  library_names_spec='$libname${shared_ext} $libname.a'
 
14956
  dynamic_linker='OS/2 ld.exe'
 
14957
  shlibpath_var=LIBPATH
 
14958
  ;;
 
14959
 
 
14960
osf3* | osf4* | osf5*)
 
14961
  version_type=osf
 
14962
  need_lib_prefix=no
 
14963
  need_version=no
 
14964
  soname_spec='${libname}${release}${shared_ext}$major'
 
14965
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14966
  shlibpath_var=LD_LIBRARY_PATH
 
14967
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14968
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14969
  ;;
 
14970
 
 
14971
sco3.2v5*)
 
14972
  version_type=osf
 
14973
  soname_spec='${libname}${release}${shared_ext}$major'
 
14974
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14975
  shlibpath_var=LD_LIBRARY_PATH
 
14976
  ;;
 
14977
 
 
14978
solaris*)
 
14979
  version_type=linux
 
14980
  need_lib_prefix=no
 
14981
  need_version=no
 
14982
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14983
  soname_spec='${libname}${release}${shared_ext}$major'
 
14984
  shlibpath_var=LD_LIBRARY_PATH
 
14985
  shlibpath_overrides_runpath=yes
 
14986
  hardcode_into_libs=yes
 
14987
  # ldd complains unless libraries are executable
 
14988
  postinstall_cmds='chmod +x $lib'
 
14989
  ;;
 
14990
 
 
14991
sunos4*)
 
14992
  version_type=sunos
 
14993
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14994
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14995
  shlibpath_var=LD_LIBRARY_PATH
 
14996
  shlibpath_overrides_runpath=yes
 
14997
  if test "$with_gnu_ld" = yes; then
 
14998
    need_lib_prefix=no
 
14999
  fi
 
15000
  need_version=yes
 
15001
  ;;
 
15002
 
 
15003
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15004
  version_type=linux
 
15005
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15006
  soname_spec='${libname}${release}${shared_ext}$major'
 
15007
  shlibpath_var=LD_LIBRARY_PATH
 
15008
  case $host_vendor in
 
15009
    sni)
 
15010
      shlibpath_overrides_runpath=no
 
15011
      need_lib_prefix=no
 
15012
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15013
      runpath_var=LD_RUN_PATH
 
15014
      ;;
 
15015
    siemens)
 
15016
      need_lib_prefix=no
 
15017
      ;;
 
15018
    motorola)
 
15019
      need_lib_prefix=no
 
15020
      need_version=no
 
15021
      shlibpath_overrides_runpath=no
 
15022
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15023
      ;;
 
15024
  esac
 
15025
  ;;
 
15026
 
 
15027
sysv4*MP*)
 
15028
  if test -d /usr/nec ;then
 
15029
    version_type=linux
 
15030
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15031
    soname_spec='$libname${shared_ext}.$major'
 
15032
    shlibpath_var=LD_LIBRARY_PATH
 
15033
  fi
 
15034
  ;;
 
15035
 
 
15036
uts4*)
 
15037
  version_type=linux
 
15038
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15039
  soname_spec='${libname}${release}${shared_ext}$major'
 
15040
  shlibpath_var=LD_LIBRARY_PATH
 
15041
  ;;
 
15042
 
 
15043
*)
 
15044
  dynamic_linker=no
 
15045
  ;;
 
15046
esac
 
15047
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15048
echo "${ECHO_T}$dynamic_linker" >&6
 
15049
test "$dynamic_linker" = no && can_build_shared=no
 
15050
 
 
15051
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15052
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
15053
hardcode_action_F77=
 
15054
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
15055
   test -n "$runpath_var F77" || \
 
15056
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
15057
 
 
15058
  # We can hardcode non-existant directories.
 
15059
  if test "$hardcode_direct_F77" != no &&
 
15060
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15061
     # have to relink, otherwise we might link with an installed library
 
15062
     # when we should be linking with a yet-to-be-installed one
 
15063
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
15064
     test "$hardcode_minus_L_F77" != no; then
 
15065
    # Linking always hardcodes the temporary library directory.
 
15066
    hardcode_action_F77=relink
 
15067
  else
 
15068
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15069
    hardcode_action_F77=immediate
 
15070
  fi
 
15071
else
 
15072
  # We cannot hardcode anything, or else we can only hardcode existing
 
15073
  # directories.
 
15074
  hardcode_action_F77=unsupported
 
15075
fi
 
15076
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15077
echo "${ECHO_T}$hardcode_action_F77" >&6
 
15078
 
 
15079
if test "$hardcode_action_F77" = relink; then
 
15080
  # Fast installation is not supported
 
15081
  enable_fast_install=no
 
15082
elif test "$shlibpath_overrides_runpath" = yes ||
 
15083
     test "$enable_shared" = no; then
 
15084
  # Fast installation is not necessary
 
15085
  enable_fast_install=needless
 
15086
fi
 
15087
 
 
15088
striplib=
 
15089
old_striplib=
 
15090
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
15091
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
15092
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
15093
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
15094
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
15095
  echo "$as_me:$LINENO: result: yes" >&5
 
15096
echo "${ECHO_T}yes" >&6
 
15097
else
 
15098
# FIXME - insert some real tests, host_os isn't really good enough
 
15099
  case $host_os in
 
15100
   darwin*)
 
15101
       if test -n "$STRIP" ; then
 
15102
         striplib="$STRIP -x"
 
15103
         echo "$as_me:$LINENO: result: yes" >&5
 
15104
echo "${ECHO_T}yes" >&6
 
15105
       else
 
15106
  echo "$as_me:$LINENO: result: no" >&5
 
15107
echo "${ECHO_T}no" >&6
 
15108
fi
 
15109
       ;;
 
15110
   *)
 
15111
  echo "$as_me:$LINENO: result: no" >&5
 
15112
echo "${ECHO_T}no" >&6
 
15113
    ;;
 
15114
  esac
 
15115
fi
 
15116
 
 
15117
 
 
15118
 
 
15119
# The else clause should only fire when bootstrapping the
 
15120
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15121
# with your package, and you will get complaints that there are
 
15122
# no rules to generate ltmain.sh.
 
15123
if test -f "$ltmain"; then
 
15124
  # See if we are running on zsh, and set the options which allow our commands through
 
15125
  # without removal of \ escapes.
 
15126
  if test -n "${ZSH_VERSION+set}" ; then
 
15127
    setopt NO_GLOB_SUBST
 
15128
  fi
 
15129
  # Now quote all the things that may contain metacharacters while being
 
15130
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15131
  # variables and quote the copies for generation of the libtool script.
 
15132
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15133
    SED SHELL STRIP \
 
15134
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15135
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15136
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15137
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15138
    lt_cv_sys_global_symbol_to_c_name_address \
 
15139
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15140
    old_postinstall_cmds old_postuninstall_cmds \
 
15141
    compiler_F77 \
 
15142
    CC_F77 \
 
15143
    LD_F77 \
 
15144
    lt_prog_compiler_wl_F77 \
 
15145
    lt_prog_compiler_pic_F77 \
 
15146
    lt_prog_compiler_static_F77 \
 
15147
    lt_prog_compiler_no_builtin_flag_F77 \
 
15148
    export_dynamic_flag_spec_F77 \
 
15149
    thread_safe_flag_spec_F77 \
 
15150
    whole_archive_flag_spec_F77 \
 
15151
    enable_shared_with_static_runtimes_F77 \
 
15152
    old_archive_cmds_F77 \
 
15153
    old_archive_from_new_cmds_F77 \
 
15154
    predep_objects_F77 \
 
15155
    postdep_objects_F77 \
 
15156
    predeps_F77 \
 
15157
    postdeps_F77 \
 
15158
    compiler_lib_search_path_F77 \
 
15159
    archive_cmds_F77 \
 
15160
    archive_expsym_cmds_F77 \
 
15161
    postinstall_cmds_F77 \
 
15162
    postuninstall_cmds_F77 \
 
15163
    old_archive_from_expsyms_cmds_F77 \
 
15164
    allow_undefined_flag_F77 \
 
15165
    no_undefined_flag_F77 \
 
15166
    export_symbols_cmds_F77 \
 
15167
    hardcode_libdir_flag_spec_F77 \
 
15168
    hardcode_libdir_flag_spec_ld_F77 \
 
15169
    hardcode_libdir_separator_F77 \
 
15170
    hardcode_automatic_F77 \
 
15171
    module_cmds_F77 \
 
15172
    module_expsym_cmds_F77 \
 
15173
    lt_cv_prog_compiler_c_o_F77 \
 
15174
    exclude_expsyms_F77 \
 
15175
    include_expsyms_F77; do
 
15176
 
 
15177
    case $var in
 
15178
    old_archive_cmds_F77 | \
 
15179
    old_archive_from_new_cmds_F77 | \
 
15180
    archive_cmds_F77 | \
 
15181
    archive_expsym_cmds_F77 | \
 
15182
    module_cmds_F77 | \
 
15183
    module_expsym_cmds_F77 | \
 
15184
    old_archive_from_expsyms_cmds_F77 | \
 
15185
    export_symbols_cmds_F77 | \
 
15186
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15187
    postinstall_cmds | postuninstall_cmds | \
 
15188
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15189
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15190
      # Double-quote double-evaled strings.
 
15191
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15192
      ;;
 
15193
    *)
 
15194
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15195
      ;;
 
15196
    esac
 
15197
  done
 
15198
 
 
15199
  case $lt_echo in
 
15200
  *'\$0 --fallback-echo"')
 
15201
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15202
    ;;
 
15203
  esac
 
15204
 
 
15205
cfgfile="$ofile"
 
15206
 
 
15207
  cat <<__EOF__ >> "$cfgfile"
 
15208
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15209
 
 
15210
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15211
 
 
15212
# Shell to use when invoking shell scripts.
 
15213
SHELL=$lt_SHELL
 
15214
 
 
15215
# Whether or not to build shared libraries.
 
15216
build_libtool_libs=$enable_shared
 
15217
 
 
15218
# Whether or not to build static libraries.
 
15219
build_old_libs=$enable_static
 
15220
 
 
15221
# Whether or not to add -lc for building shared libraries.
 
15222
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15223
 
 
15224
# Whether or not to disallow shared libs when runtime libs are static
 
15225
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15226
 
 
15227
# Whether or not to optimize for fast installation.
 
15228
fast_install=$enable_fast_install
 
15229
 
 
15230
# The host system.
 
15231
host_alias=$host_alias
 
15232
host=$host
 
15233
 
 
15234
# An echo program that does not interpret backslashes.
 
15235
echo=$lt_echo
 
15236
 
 
15237
# The archiver.
 
15238
AR=$lt_AR
 
15239
AR_FLAGS=$lt_AR_FLAGS
 
15240
 
 
15241
# A C compiler.
 
15242
LTCC=$lt_LTCC
 
15243
 
 
15244
# A language-specific compiler.
 
15245
CC=$lt_compiler_F77
 
15246
 
 
15247
# Is the compiler the GNU C compiler?
 
15248
with_gcc=$GCC_F77
 
15249
 
 
15250
# An ERE matcher.
 
15251
EGREP=$lt_EGREP
 
15252
 
 
15253
# The linker used to build libraries.
 
15254
LD=$lt_LD_F77
 
15255
 
 
15256
# Whether we need hard or soft links.
 
15257
LN_S=$lt_LN_S
 
15258
 
 
15259
# A BSD-compatible nm program.
 
15260
NM=$lt_NM
 
15261
 
 
15262
# A symbol stripping program
 
15263
STRIP=$lt_STRIP
 
15264
 
 
15265
# Used to examine libraries when file_magic_cmd begins "file"
 
15266
MAGIC_CMD=$MAGIC_CMD
 
15267
 
 
15268
# Used on cygwin: DLL creation program.
 
15269
DLLTOOL="$DLLTOOL"
 
15270
 
 
15271
# Used on cygwin: object dumper.
 
15272
OBJDUMP="$OBJDUMP"
 
15273
 
 
15274
# Used on cygwin: assembler.
 
15275
AS="$AS"
 
15276
 
 
15277
# The name of the directory that contains temporary libtool files.
 
15278
objdir=$objdir
 
15279
 
 
15280
# How to create reloadable object files.
 
15281
reload_flag=$lt_reload_flag
 
15282
reload_cmds=$lt_reload_cmds
 
15283
 
 
15284
# How to pass a linker flag through the compiler.
 
15285
wl=$lt_lt_prog_compiler_wl_F77
 
15286
 
 
15287
# Object file suffix (normally "o").
 
15288
objext="$ac_objext"
 
15289
 
 
15290
# Old archive suffix (normally "a").
 
15291
libext="$libext"
 
15292
 
 
15293
# Shared library suffix (normally ".so").
 
15294
shrext='$shrext'
 
15295
 
 
15296
# Executable file suffix (normally "").
 
15297
exeext="$exeext"
 
15298
 
 
15299
# Additional compiler flags for building library objects.
 
15300
pic_flag=$lt_lt_prog_compiler_pic_F77
 
15301
pic_mode=$pic_mode
 
15302
 
 
15303
# What is the maximum length of a command?
 
15304
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15305
 
 
15306
# Does compiler simultaneously support -c and -o options?
 
15307
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
15308
 
 
15309
# Must we lock files when doing compilation ?
 
15310
need_locks=$lt_need_locks
 
15311
 
 
15312
# Do we need the lib prefix for modules?
 
15313
need_lib_prefix=$need_lib_prefix
 
15314
 
 
15315
# Do we need a version for libraries?
 
15316
need_version=$need_version
 
15317
 
 
15318
# Whether dlopen is supported.
 
15319
dlopen_support=$enable_dlopen
 
15320
 
 
15321
# Whether dlopen of programs is supported.
 
15322
dlopen_self=$enable_dlopen_self
 
15323
 
 
15324
# Whether dlopen of statically linked programs is supported.
 
15325
dlopen_self_static=$enable_dlopen_self_static
 
15326
 
 
15327
# Compiler flag to prevent dynamic linking.
 
15328
link_static_flag=$lt_lt_prog_compiler_static_F77
 
15329
 
 
15330
# Compiler flag to turn off builtin functions.
 
15331
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
15332
 
 
15333
# Compiler flag to allow reflexive dlopens.
 
15334
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
15335
 
 
15336
# Compiler flag to generate shared objects directly from archives.
 
15337
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
15338
 
 
15339
# Compiler flag to generate thread-safe objects.
 
15340
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
15341
 
 
15342
# Library versioning type.
 
15343
version_type=$version_type
 
15344
 
 
15345
# Format of library name prefix.
 
15346
libname_spec=$lt_libname_spec
 
15347
 
 
15348
# List of archive names.  First name is the real one, the rest are links.
 
15349
# The last name is the one that the linker finds with -lNAME.
 
15350
library_names_spec=$lt_library_names_spec
 
15351
 
 
15352
# The coded name of the library, if different from the real name.
 
15353
soname_spec=$lt_soname_spec
 
15354
 
 
15355
# Commands used to build and install an old-style archive.
 
15356
RANLIB=$lt_RANLIB
 
15357
old_archive_cmds=$lt_old_archive_cmds_F77
 
15358
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15359
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15360
 
 
15361
# Create an old-style archive from a shared archive.
 
15362
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
15363
 
 
15364
# Create a temporary old-style archive to link instead of a shared archive.
 
15365
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
15366
 
 
15367
# Commands used to build and install a shared archive.
 
15368
archive_cmds=$lt_archive_cmds_F77
 
15369
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
15370
postinstall_cmds=$lt_postinstall_cmds
 
15371
postuninstall_cmds=$lt_postuninstall_cmds
 
15372
 
 
15373
# Commands used to build a loadable module (assumed same as above if empty)
 
15374
module_cmds=$lt_module_cmds_F77
 
15375
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
15376
 
 
15377
# Commands to strip libraries.
 
15378
old_striplib=$lt_old_striplib
 
15379
striplib=$lt_striplib
 
15380
 
 
15381
# Dependencies to place before the objects being linked to create a
 
15382
# shared library.
 
15383
predep_objects=$lt_predep_objects_F77
 
15384
 
 
15385
# Dependencies to place after the objects being linked to create a
 
15386
# shared library.
 
15387
postdep_objects=$lt_postdep_objects_F77
 
15388
 
 
15389
# Dependencies to place before the objects being linked to create a
 
15390
# shared library.
 
15391
predeps=$lt_predeps_F77
 
15392
 
 
15393
# Dependencies to place after the objects being linked to create a
 
15394
# shared library.
 
15395
postdeps=$lt_postdeps_F77
 
15396
 
 
15397
# The library search path used internally by the compiler when linking
 
15398
# a shared library.
 
15399
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
15400
 
 
15401
# Method to check whether dependent libraries are shared objects.
 
15402
deplibs_check_method=$lt_deplibs_check_method
 
15403
 
 
15404
# Command to use when deplibs_check_method == file_magic.
 
15405
file_magic_cmd=$lt_file_magic_cmd
 
15406
 
 
15407
# Flag that allows shared libraries with undefined symbols to be built.
 
15408
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
15409
 
 
15410
# Flag that forces no undefined symbols.
 
15411
no_undefined_flag=$lt_no_undefined_flag_F77
 
15412
 
 
15413
# Commands used to finish a libtool library installation in a directory.
 
15414
finish_cmds=$lt_finish_cmds
 
15415
 
 
15416
# Same as above, but a single script fragment to be evaled but not shown.
 
15417
finish_eval=$lt_finish_eval
 
15418
 
 
15419
# Take the output of nm and produce a listing of raw symbols and C names.
 
15420
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15421
 
 
15422
# Transform the output of nm in a proper C declaration
 
15423
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15424
 
 
15425
# Transform the output of nm in a C name address pair
 
15426
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15427
 
 
15428
# This is the shared library runtime path variable.
 
15429
runpath_var=$runpath_var
 
15430
 
 
15431
# This is the shared library path variable.
 
15432
shlibpath_var=$shlibpath_var
 
15433
 
 
15434
# Is shlibpath searched before the hard-coded library search path?
 
15435
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15436
 
 
15437
# How to hardcode a shared library path into an executable.
 
15438
hardcode_action=$hardcode_action_F77
 
15439
 
 
15440
# Whether we should hardcode library paths into libraries.
 
15441
hardcode_into_libs=$hardcode_into_libs
 
15442
 
 
15443
# Flag to hardcode \$libdir into a binary during linking.
 
15444
# This must work even if \$libdir does not exist.
 
15445
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
15446
 
 
15447
# If ld is used when linking, flag to hardcode \$libdir into
 
15448
# a binary during linking. This must work even if \$libdir does
 
15449
# not exist.
 
15450
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
15451
 
 
15452
# Whether we need a single -rpath flag with a separated argument.
 
15453
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
15454
 
 
15455
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15456
# resulting binary.
 
15457
hardcode_direct=$hardcode_direct_F77
 
15458
 
 
15459
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15460
# resulting binary.
 
15461
hardcode_minus_L=$hardcode_minus_L_F77
 
15462
 
 
15463
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15464
# the resulting binary.
 
15465
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
15466
 
 
15467
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15468
# and all subsequent libraries and executables linked against it.
 
15469
hardcode_automatic=$hardcode_automatic_F77
 
15470
 
 
15471
# Variables whose values should be saved in libtool wrapper scripts and
 
15472
# restored at relink time.
 
15473
variables_saved_for_relink="$variables_saved_for_relink"
 
15474
 
 
15475
# Whether libtool must link a program against all its dependency libraries.
 
15476
link_all_deplibs=$link_all_deplibs_F77
 
15477
 
 
15478
# Compile-time system search path for libraries
 
15479
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15480
 
 
15481
# Run-time system search path for libraries
 
15482
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15483
 
 
15484
# Fix the shell variable \$srcfile for the compiler.
 
15485
fix_srcfile_path="$fix_srcfile_path_F77"
 
15486
 
 
15487
# Set to yes if exported symbols are required.
 
15488
always_export_symbols=$always_export_symbols_F77
 
15489
 
 
15490
# The commands to list exported symbols.
 
15491
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
15492
 
 
15493
# The commands to extract the exported symbol list from a shared archive.
 
15494
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15495
 
 
15496
# Symbols that should not be listed in the preloaded symbols.
 
15497
exclude_expsyms=$lt_exclude_expsyms_F77
 
15498
 
 
15499
# Symbols that must always be exported.
 
15500
include_expsyms=$lt_include_expsyms_F77
 
15501
 
 
15502
# ### END LIBTOOL TAG CONFIG: $tagname
 
15503
 
 
15504
__EOF__
 
15505
 
 
15506
 
 
15507
else
 
15508
  # If there is no Makefile yet, we rely on a make rule to execute
 
15509
  # `config.status --recheck' to rerun these tests and create the
 
15510
  # libtool script then.
 
15511
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15512
  if test -f "$ltmain_in"; then
 
15513
    test -f Makefile && make "$ltmain"
 
15514
  fi
 
15515
fi
 
15516
 
 
15517
 
 
15518
ac_ext=c
 
15519
ac_cpp='$CPP $CPPFLAGS'
 
15520
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15521
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15522
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15523
 
 
15524
CC="$lt_save_CC"
 
15525
 
 
15526
        else
 
15527
          tagname=""
 
15528
        fi
 
15529
        ;;
 
15530
 
 
15531
      GCJ)
 
15532
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
15533
 
 
15534
 
 
15535
 
 
15536
# Source file extension for Java test sources.
 
15537
ac_ext=java
 
15538
 
 
15539
# Object file extension for compiled Java test sources.
 
15540
objext=o
 
15541
objext_GCJ=$objext
 
15542
 
 
15543
# Code to be used in simple compile tests
 
15544
lt_simple_compile_test_code="class foo {}\n"
 
15545
 
 
15546
# Code to be used in simple link tests
 
15547
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
15548
 
 
15549
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15550
 
 
15551
# If no C compiler was specified, use CC.
 
15552
LTCC=${LTCC-"$CC"}
 
15553
 
 
15554
# Allow CC to be a program name with arguments.
 
15555
compiler=$CC
 
15556
 
 
15557
 
 
15558
# Allow CC to be a program name with arguments.
 
15559
lt_save_CC="$CC"
 
15560
CC=${GCJ-"gcj"}
 
15561
compiler=$CC
 
15562
compiler_GCJ=$CC
 
15563
 
 
15564
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
15565
archive_cmds_need_lc_GCJ=no
 
15566
 
 
15567
 
 
15568
lt_prog_compiler_no_builtin_flag_GCJ=
 
15569
 
 
15570
if test "$GCC" = yes; then
 
15571
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
15572
 
 
15573
 
 
15574
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
15575
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
15576
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
15577
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15578
else
 
15579
  lt_cv_prog_compiler_rtti_exceptions=no
 
15580
  ac_outfile=conftest.$ac_objext
 
15581
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15582
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
15583
   # Insert the option either (1) after the last *FLAGS variable, or
 
15584
   # (2) before a word containing "conftest.", or (3) at the end.
 
15585
   # Note that $ac_compile itself does not contain backslashes and begins
 
15586
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15587
   # The option is referenced via a variable to avoid confusing sed.
 
15588
   lt_compile=`echo "$ac_compile" | $SED \
 
15589
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15590
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15591
   -e 's:$: $lt_compiler_flag:'`
 
15592
   (eval echo "\"\$as_me:15592: $lt_compile\"" >&5)
 
15593
   (eval "$lt_compile" 2>conftest.err)
 
15594
   ac_status=$?
 
15595
   cat conftest.err >&5
 
15596
   echo "$as_me:15596: \$? = $ac_status" >&5
 
15597
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15598
     # The compiler can only warn and ignore the option if not recognized
 
15599
     # So say no if there are warnings
 
15600
     if test ! -s conftest.err; then
 
15601
       lt_cv_prog_compiler_rtti_exceptions=yes
 
15602
     fi
 
15603
   fi
 
15604
   $rm conftest*
 
15605
 
 
15606
fi
 
15607
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
15608
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
15609
 
 
15610
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
15611
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
15612
else
 
15613
    :
 
15614
fi
 
15615
 
 
15616
fi
 
15617
 
 
15618
lt_prog_compiler_wl_GCJ=
 
15619
lt_prog_compiler_pic_GCJ=
 
15620
lt_prog_compiler_static_GCJ=
 
15621
 
 
15622
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15623
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15624
 
 
15625
  if test "$GCC" = yes; then
 
15626
    lt_prog_compiler_wl_GCJ='-Wl,'
 
15627
    lt_prog_compiler_static_GCJ='-static'
 
15628
 
 
15629
    case $host_os in
 
15630
      aix*)
 
15631
      # All AIX code is PIC.
 
15632
      if test "$host_cpu" = ia64; then
 
15633
        # AIX 5 now supports IA64 processor
 
15634
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15635
      fi
 
15636
      ;;
 
15637
 
 
15638
    amigaos*)
 
15639
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15640
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15641
      # like `-m68040'.
 
15642
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
15643
      ;;
 
15644
 
 
15645
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15646
      # PIC is the default for these OSes.
 
15647
      ;;
 
15648
 
 
15649
    mingw* | pw32* | os2*)
 
15650
      # This hack is so that the source file can tell whether it is being
 
15651
      # built for inclusion in a dll (and should export symbols for example).
 
15652
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15653
      ;;
 
15654
 
 
15655
    darwin* | rhapsody*)
 
15656
      # PIC is the default on this platform
 
15657
      # Common symbols not allowed in MH_DYLIB files
 
15658
      lt_prog_compiler_pic_GCJ='-fno-common'
 
15659
      ;;
 
15660
 
 
15661
    msdosdjgpp*)
 
15662
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15663
      # on systems that don't support them.
 
15664
      lt_prog_compiler_can_build_shared_GCJ=no
 
15665
      enable_shared=no
 
15666
      ;;
 
15667
 
 
15668
    sysv4*MP*)
 
15669
      if test -d /usr/nec; then
 
15670
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
15671
      fi
 
15672
      ;;
 
15673
 
 
15674
    hpux*)
 
15675
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15676
      # not for PA HP-UX.
 
15677
      case "$host_cpu" in
 
15678
      hppa*64*|ia64*)
 
15679
        # +Z the default
 
15680
        ;;
 
15681
      *)
 
15682
        lt_prog_compiler_pic_GCJ='-fPIC'
 
15683
        ;;
 
15684
      esac
 
15685
      ;;
 
15686
 
 
15687
    *)
 
15688
      lt_prog_compiler_pic_GCJ='-fPIC'
 
15689
      ;;
 
15690
    esac
 
15691
  else
 
15692
    # PORTME Check for flag to pass linker flags through the system compiler.
 
15693
    case $host_os in
 
15694
    aix*)
 
15695
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15696
      if test "$host_cpu" = ia64; then
 
15697
        # AIX 5 now supports IA64 processor
 
15698
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15699
      else
 
15700
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
15701
      fi
 
15702
      ;;
 
15703
 
 
15704
    mingw* | pw32* | os2*)
 
15705
      # This hack is so that the source file can tell whether it is being
 
15706
      # built for inclusion in a dll (and should export symbols for example).
 
15707
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15708
      ;;
 
15709
 
 
15710
    hpux9* | hpux10* | hpux11*)
 
15711
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15712
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15713
      # not for PA HP-UX.
 
15714
      case "$host_cpu" in
 
15715
      hppa*64*|ia64*)
 
15716
        # +Z the default
 
15717
        ;;
 
15718
      *)
 
15719
        lt_prog_compiler_pic_GCJ='+Z'
 
15720
        ;;
 
15721
      esac
 
15722
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
15723
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
15724
      ;;
 
15725
 
 
15726
    irix5* | irix6* | nonstopux*)
 
15727
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15728
      # PIC (with -KPIC) is the default.
 
15729
      lt_prog_compiler_static_GCJ='-non_shared'
 
15730
      ;;
 
15731
 
 
15732
    newsos6)
 
15733
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15734
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15735
      ;;
 
15736
 
 
15737
    linux*)
 
15738
      case $CC in
 
15739
      icc* | ecc*)
 
15740
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15741
        lt_prog_compiler_pic_GCJ='-KPIC'
 
15742
        lt_prog_compiler_static_GCJ='-static'
 
15743
        ;;
 
15744
      ccc*)
 
15745
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15746
        # All Alpha code is PIC.
 
15747
        lt_prog_compiler_static_GCJ='-non_shared'
 
15748
        ;;
 
15749
      esac
 
15750
      ;;
 
15751
 
 
15752
    osf3* | osf4* | osf5*)
 
15753
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15754
      # All OSF/1 code is PIC.
 
15755
      lt_prog_compiler_static_GCJ='-non_shared'
 
15756
      ;;
 
15757
 
 
15758
    sco3.2v5*)
 
15759
      lt_prog_compiler_pic_GCJ='-Kpic'
 
15760
      lt_prog_compiler_static_GCJ='-dn'
 
15761
      ;;
 
15762
 
 
15763
    solaris*)
 
15764
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15765
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15766
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15767
      ;;
 
15768
 
 
15769
    sunos4*)
 
15770
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
15771
      lt_prog_compiler_pic_GCJ='-PIC'
 
15772
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15773
      ;;
 
15774
 
 
15775
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15776
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15777
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15778
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15779
      ;;
 
15780
 
 
15781
    sysv4*MP*)
 
15782
      if test -d /usr/nec ;then
 
15783
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
15784
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15785
      fi
 
15786
      ;;
 
15787
 
 
15788
    uts4*)
 
15789
      lt_prog_compiler_pic_GCJ='-pic'
 
15790
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15791
      ;;
 
15792
 
 
15793
    *)
 
15794
      lt_prog_compiler_can_build_shared_GCJ=no
 
15795
      ;;
 
15796
    esac
 
15797
  fi
 
15798
 
 
15799
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
15800
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
15801
 
 
15802
#
 
15803
# Check to make sure the PIC flag actually works.
 
15804
#
 
15805
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
15806
 
 
15807
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
15808
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
15809
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
15810
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15811
else
 
15812
  lt_prog_compiler_pic_works_GCJ=no
 
15813
  ac_outfile=conftest.$ac_objext
 
15814
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15815
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
15816
   # Insert the option either (1) after the last *FLAGS variable, or
 
15817
   # (2) before a word containing "conftest.", or (3) at the end.
 
15818
   # Note that $ac_compile itself does not contain backslashes and begins
 
15819
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15820
   # The option is referenced via a variable to avoid confusing sed.
 
15821
   lt_compile=`echo "$ac_compile" | $SED \
 
15822
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15823
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15824
   -e 's:$: $lt_compiler_flag:'`
 
15825
   (eval echo "\"\$as_me:15825: $lt_compile\"" >&5)
 
15826
   (eval "$lt_compile" 2>conftest.err)
 
15827
   ac_status=$?
 
15828
   cat conftest.err >&5
 
15829
   echo "$as_me:15829: \$? = $ac_status" >&5
 
15830
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15831
     # The compiler can only warn and ignore the option if not recognized
 
15832
     # So say no if there are warnings
 
15833
     if test ! -s conftest.err; then
 
15834
       lt_prog_compiler_pic_works_GCJ=yes
 
15835
     fi
 
15836
   fi
 
15837
   $rm conftest*
 
15838
 
 
15839
fi
 
15840
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
15841
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
15842
 
 
15843
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
15844
    case $lt_prog_compiler_pic_GCJ in
 
15845
     "" | " "*) ;;
 
15846
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
15847
     esac
 
15848
else
 
15849
    lt_prog_compiler_pic_GCJ=
 
15850
     lt_prog_compiler_can_build_shared_GCJ=no
 
15851
fi
 
15852
 
 
15853
fi
 
15854
case "$host_os" in
 
15855
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15856
  *djgpp*)
 
15857
    lt_prog_compiler_pic_GCJ=
 
15858
    ;;
 
15859
  *)
 
15860
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
15861
    ;;
 
15862
esac
 
15863
 
 
15864
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15865
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
15866
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
15867
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15868
else
 
15869
  lt_cv_prog_compiler_c_o_GCJ=no
 
15870
   $rm -r conftest 2>/dev/null
 
15871
   mkdir conftest
 
15872
   cd conftest
 
15873
   mkdir out
 
15874
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15875
 
 
15876
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
15877
   # that will create temporary files in the current directory regardless of
 
15878
   # the output directory.  Thus, making CWD read-only will cause this test
 
15879
   # to fail, enabling locking or at least warning the user not to do parallel
 
15880
   # builds.
 
15881
   chmod -w .
 
15882
 
 
15883
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15884
   # Insert the option either (1) after the last *FLAGS variable, or
 
15885
   # (2) before a word containing "conftest.", or (3) at the end.
 
15886
   # Note that $ac_compile itself does not contain backslashes and begins
 
15887
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15888
   lt_compile=`echo "$ac_compile" | $SED \
 
15889
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15890
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15891
   -e 's:$: $lt_compiler_flag:'`
 
15892
   (eval echo "\"\$as_me:15892: $lt_compile\"" >&5)
 
15893
   (eval "$lt_compile" 2>out/conftest.err)
 
15894
   ac_status=$?
 
15895
   cat out/conftest.err >&5
 
15896
   echo "$as_me:15896: \$? = $ac_status" >&5
 
15897
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15898
   then
 
15899
     # The compiler can only warn and ignore the option if not recognized
 
15900
     # So say no if there are warnings
 
15901
     if test ! -s out/conftest.err; then
 
15902
       lt_cv_prog_compiler_c_o_GCJ=yes
 
15903
     fi
 
15904
   fi
 
15905
   chmod u+w .
 
15906
   $rm conftest*
 
15907
   # SGI C++ compiler will create directory out/ii_files/ for
 
15908
   # template instantiation
 
15909
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
15910
   $rm out/* && rmdir out
 
15911
   cd ..
 
15912
   rmdir conftest
 
15913
   $rm conftest*
 
15914
 
 
15915
fi
 
15916
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
15917
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
15918
 
 
15919
 
 
15920
hard_links="nottested"
 
15921
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
15922
  # do not overwrite the value of need_locks provided by the user
 
15923
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15924
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
15925
  hard_links=yes
 
15926
  $rm conftest*
 
15927
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15928
  touch conftest.a
 
15929
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15930
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15931
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
15932
echo "${ECHO_T}$hard_links" >&6
 
15933
  if test "$hard_links" = no; then
 
15934
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15935
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15936
    need_locks=warn
 
15937
  fi
 
15938
else
 
15939
  need_locks=no
 
15940
fi
 
15941
 
 
15942
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15943
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
15944
 
 
15945
  runpath_var=
 
15946
  allow_undefined_flag_GCJ=
 
15947
  enable_shared_with_static_runtimes_GCJ=no
 
15948
  archive_cmds_GCJ=
 
15949
  archive_expsym_cmds_GCJ=
 
15950
  old_archive_From_new_cmds_GCJ=
 
15951
  old_archive_from_expsyms_cmds_GCJ=
 
15952
  export_dynamic_flag_spec_GCJ=
 
15953
  whole_archive_flag_spec_GCJ=
 
15954
  thread_safe_flag_spec_GCJ=
 
15955
  hardcode_libdir_flag_spec_GCJ=
 
15956
  hardcode_libdir_flag_spec_ld_GCJ=
 
15957
  hardcode_libdir_separator_GCJ=
 
15958
  hardcode_direct_GCJ=no
 
15959
  hardcode_minus_L_GCJ=no
 
15960
  hardcode_shlibpath_var_GCJ=unsupported
 
15961
  link_all_deplibs_GCJ=unknown
 
15962
  hardcode_automatic_GCJ=no
 
15963
  module_cmds_GCJ=
 
15964
  module_expsym_cmds_GCJ=
 
15965
  always_export_symbols_GCJ=no
 
15966
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15967
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15968
  # included in the symbol list
 
15969
  include_expsyms_GCJ=
 
15970
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15971
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15972
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15973
  # as well as any symbol that contains `d'.
 
15974
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
15975
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15976
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15977
  # the symbol is explicitly referenced.  Since portable code cannot
 
15978
  # rely on this symbol name, it's probably fine to never include it in
 
15979
  # preloaded symbol tables.
 
15980
  extract_expsyms_cmds=
 
15981
 
 
15982
  case $host_os in
 
15983
  cygwin* | mingw* | pw32*)
 
15984
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15985
    # When not using gcc, we currently assume that we are using
 
15986
    # Microsoft Visual C++.
 
15987
    if test "$GCC" != yes; then
 
15988
      with_gnu_ld=no
 
15989
    fi
 
15990
    ;;
 
15991
  openbsd*)
 
15992
    with_gnu_ld=no
 
15993
    ;;
 
15994
  esac
 
15995
 
 
15996
  ld_shlibs_GCJ=yes
 
15997
  if test "$with_gnu_ld" = yes; then
 
15998
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15999
    wlarc='${wl}'
 
16000
 
 
16001
    # See if GNU ld supports shared libraries.
 
16002
    case $host_os in
 
16003
    aix3* | aix4* | aix5*)
 
16004
      # On AIX/PPC, the GNU linker is very broken
 
16005
      if test "$host_cpu" != ia64; then
 
16006
        ld_shlibs_GCJ=no
 
16007
        cat <<EOF 1>&2
 
16008
 
 
16009
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16010
*** to be unable to reliably create shared libraries on AIX.
 
16011
*** Therefore, libtool is disabling shared libraries support.  If you
 
16012
*** really care for shared libraries, you may want to modify your PATH
 
16013
*** so that a non-GNU linker is found, and then restart.
 
16014
 
 
16015
EOF
 
16016
      fi
 
16017
      ;;
 
16018
 
 
16019
    amigaos*)
 
16020
      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)'
 
16021
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16022
      hardcode_minus_L_GCJ=yes
 
16023
 
 
16024
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16025
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16026
      # to version 4, is to share data among multiple programs linked
 
16027
      # with the same dynamic library.  Since this doesn't match the
 
16028
      # behavior of shared libraries on other platforms, we can't use
 
16029
      # them.
 
16030
      ld_shlibs_GCJ=no
 
16031
      ;;
 
16032
 
 
16033
    beos*)
 
16034
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16035
        allow_undefined_flag_GCJ=unsupported
 
16036
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16037
        # support --undefined.  This deserves some investigation.  FIXME
 
16038
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16039
      else
 
16040
        ld_shlibs_GCJ=no
 
16041
      fi
 
16042
      ;;
 
16043
 
 
16044
    cygwin* | mingw* | pw32*)
 
16045
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
16046
      # as there is no search path for DLLs.
 
16047
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16048
      allow_undefined_flag_GCJ=unsupported
 
16049
      always_export_symbols_GCJ=no
 
16050
      enable_shared_with_static_runtimes_GCJ=yes
 
16051
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16052
 
 
16053
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16054
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16055
        # If the export-symbols file already is a .def file (1st line
 
16056
        # is EXPORTS), use it as is; otherwise, prepend...
 
16057
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16058
          cp $export_symbols $output_objdir/$soname.def;
 
16059
        else
 
16060
          echo EXPORTS > $output_objdir/$soname.def;
 
16061
          cat $export_symbols >> $output_objdir/$soname.def;
 
16062
        fi~
 
16063
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
16064
      else
 
16065
        ld_shlibs=no
 
16066
      fi
 
16067
      ;;
 
16068
 
 
16069
    netbsd*)
 
16070
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16071
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16072
        wlarc=
 
16073
      else
 
16074
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16075
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16076
      fi
 
16077
      ;;
 
16078
 
 
16079
    solaris* | sysv5*)
 
16080
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16081
        ld_shlibs_GCJ=no
 
16082
        cat <<EOF 1>&2
 
16083
 
 
16084
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16085
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16086
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16087
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16088
*** your PATH or compiler configuration so that the native linker is
 
16089
*** used, and then restart.
 
16090
 
 
16091
EOF
 
16092
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16093
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16094
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16095
      else
 
16096
        ld_shlibs_GCJ=no
 
16097
      fi
 
16098
      ;;
 
16099
 
 
16100
    sunos4*)
 
16101
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16102
      wlarc=
 
16103
      hardcode_direct_GCJ=yes
 
16104
      hardcode_shlibpath_var_GCJ=no
 
16105
      ;;
 
16106
 
 
16107
  linux*)
 
16108
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
16109
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16110
        archive_cmds_GCJ="$tmp_archive_cmds"
 
16111
      supports_anon_versioning=no
 
16112
      case `$LD -v 2>/dev/null` in
 
16113
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16114
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16115
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16116
        *\ 2.11.*) ;; # other 2.11 versions
 
16117
        *) supports_anon_versioning=yes ;;
 
16118
      esac
 
16119
      if test $supports_anon_versioning = yes; then
 
16120
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16121
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16122
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
16123
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16124
      else
 
16125
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
16126
      fi
 
16127
    else
 
16128
      ld_shlibs_GCJ=no
 
16129
    fi
 
16130
    ;;
 
16131
 
 
16132
    *)
 
16133
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16134
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16135
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16136
      else
 
16137
        ld_shlibs_GCJ=no
 
16138
      fi
 
16139
      ;;
 
16140
    esac
 
16141
 
 
16142
    if test "$ld_shlibs_GCJ" = yes; then
 
16143
      runpath_var=LD_RUN_PATH
 
16144
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16145
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16146
      # ancient GNU ld didn't support --whole-archive et. al.
 
16147
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16148
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16149
      else
 
16150
        whole_archive_flag_spec_GCJ=
 
16151
      fi
 
16152
    fi
 
16153
  else
 
16154
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16155
    case $host_os in
 
16156
    aix3*)
 
16157
      allow_undefined_flag_GCJ=unsupported
 
16158
      always_export_symbols_GCJ=yes
 
16159
      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'
 
16160
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16161
      # are no directories specified by -L.
 
16162
      hardcode_minus_L_GCJ=yes
 
16163
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16164
        # Neither direct hardcoding nor static linking is supported with a
 
16165
        # broken collect2.
 
16166
        hardcode_direct_GCJ=unsupported
 
16167
      fi
 
16168
      ;;
 
16169
 
 
16170
    aix4* | aix5*)
 
16171
      if test "$host_cpu" = ia64; then
 
16172
        # On IA64, the linker does run time linking by default, so we don't
 
16173
        # have to do anything special.
 
16174
        aix_use_runtimelinking=no
 
16175
        exp_sym_flag='-Bexport'
 
16176
        no_entry_flag=""
 
16177
      else
 
16178
        # If we're using GNU nm, then we don't want the "-C" option.
 
16179
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16180
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16181
          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'
 
16182
        else
 
16183
          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'
 
16184
        fi
 
16185
        aix_use_runtimelinking=no
 
16186
 
 
16187
        # Test if we are trying to use run time linking or normal
 
16188
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16189
        # need to do runtime linking.
 
16190
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16191
          for ld_flag in $LDFLAGS; do
 
16192
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16193
            aix_use_runtimelinking=yes
 
16194
            break
 
16195
          fi
 
16196
          done
 
16197
        esac
 
16198
 
 
16199
        exp_sym_flag='-bexport'
 
16200
        no_entry_flag='-bnoentry'
 
16201
      fi
 
16202
 
 
16203
      # When large executables or shared objects are built, AIX ld can
 
16204
      # have problems creating the table of contents.  If linking a library
 
16205
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16206
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16207
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16208
 
 
16209
      archive_cmds_GCJ=''
 
16210
      hardcode_direct_GCJ=yes
 
16211
      hardcode_libdir_separator_GCJ=':'
 
16212
      link_all_deplibs_GCJ=yes
 
16213
 
 
16214
      if test "$GCC" = yes; then
 
16215
        case $host_os in aix4.012|aix4.012.*)
 
16216
        # We only want to do this on AIX 4.2 and lower, the check
 
16217
        # below for broken collect2 doesn't work under 4.3+
 
16218
          collect2name=`${CC} -print-prog-name=collect2`
 
16219
          if test -f "$collect2name" && \
 
16220
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16221
          then
 
16222
          # We have reworked collect2
 
16223
          hardcode_direct_GCJ=yes
 
16224
          else
 
16225
          # We have old collect2
 
16226
          hardcode_direct_GCJ=unsupported
 
16227
          # It fails to find uninstalled libraries when the uninstalled
 
16228
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16229
          # to unsupported forces relinking
 
16230
          hardcode_minus_L_GCJ=yes
 
16231
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16232
          hardcode_libdir_separator_GCJ=
 
16233
          fi
 
16234
        esac
 
16235
        shared_flag='-shared'
 
16236
      else
 
16237
        # not using gcc
 
16238
        if test "$host_cpu" = ia64; then
 
16239
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16240
        # chokes on -Wl,-G. The following line is correct:
 
16241
          shared_flag='-G'
 
16242
        else
 
16243
        if test "$aix_use_runtimelinking" = yes; then
 
16244
            shared_flag='${wl}-G'
 
16245
          else
 
16246
            shared_flag='${wl}-bM:SRE'
 
16247
        fi
 
16248
        fi
 
16249
      fi
 
16250
 
 
16251
      # It seems that -bexpall does not export symbols beginning with
 
16252
      # underscore (_), so it is better to generate a list of symbols to export.
 
16253
      always_export_symbols_GCJ=yes
 
16254
      if test "$aix_use_runtimelinking" = yes; then
 
16255
        # Warning - without using the other runtime loading flags (-brtl),
 
16256
        # -berok will link without error, but may produce a broken library.
 
16257
        allow_undefined_flag_GCJ='-berok'
 
16258
       # Determine the default libpath from the value encoded in an empty executable.
 
16259
       cat >conftest.$ac_ext <<_ACEOF
 
16260
/* confdefs.h.  */
 
16261
_ACEOF
 
16262
cat confdefs.h >>conftest.$ac_ext
 
16263
cat >>conftest.$ac_ext <<_ACEOF
 
16264
/* end confdefs.h.  */
 
16265
 
 
16266
int
 
16267
main ()
 
16268
{
 
16269
 
 
16270
  ;
 
16271
  return 0;
 
16272
}
 
16273
_ACEOF
 
16274
rm -f conftest.$ac_objext conftest$ac_exeext
 
16275
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16276
  (eval $ac_link) 2>conftest.er1
 
16277
  ac_status=$?
 
16278
  grep -v '^ *+' conftest.er1 >conftest.err
 
16279
  rm -f conftest.er1
 
16280
  cat conftest.err >&5
 
16281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16282
  (exit $ac_status); } &&
 
16283
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16284
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16285
  (eval $ac_try) 2>&5
 
16286
  ac_status=$?
 
16287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16288
  (exit $ac_status); }; } &&
 
16289
         { ac_try='test -s conftest$ac_exeext'
 
16290
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16291
  (eval $ac_try) 2>&5
 
16292
  ac_status=$?
 
16293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16294
  (exit $ac_status); }; }; then
 
16295
 
 
16296
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16297
}'`
 
16298
# Check for a 64-bit object if we didn't find anything.
 
16299
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; }
 
16300
}'`; fi
 
16301
else
 
16302
  echo "$as_me: failed program was:" >&5
 
16303
sed 's/^/| /' conftest.$ac_ext >&5
 
16304
 
 
16305
fi
 
16306
rm -f conftest.err conftest.$ac_objext \
 
16307
      conftest$ac_exeext conftest.$ac_ext
 
16308
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16309
 
 
16310
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16311
        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"
 
16312
       else
 
16313
        if test "$host_cpu" = ia64; then
 
16314
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
16315
          allow_undefined_flag_GCJ="-z nodefs"
 
16316
          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"
 
16317
        else
 
16318
         # Determine the default libpath from the value encoded in an empty executable.
 
16319
         cat >conftest.$ac_ext <<_ACEOF
 
16320
/* confdefs.h.  */
 
16321
_ACEOF
 
16322
cat confdefs.h >>conftest.$ac_ext
 
16323
cat >>conftest.$ac_ext <<_ACEOF
 
16324
/* end confdefs.h.  */
 
16325
 
 
16326
int
 
16327
main ()
 
16328
{
 
16329
 
 
16330
  ;
 
16331
  return 0;
 
16332
}
 
16333
_ACEOF
 
16334
rm -f conftest.$ac_objext conftest$ac_exeext
 
16335
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16336
  (eval $ac_link) 2>conftest.er1
 
16337
  ac_status=$?
 
16338
  grep -v '^ *+' conftest.er1 >conftest.err
 
16339
  rm -f conftest.er1
 
16340
  cat conftest.err >&5
 
16341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16342
  (exit $ac_status); } &&
 
16343
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16344
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16345
  (eval $ac_try) 2>&5
 
16346
  ac_status=$?
 
16347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16348
  (exit $ac_status); }; } &&
 
16349
         { ac_try='test -s conftest$ac_exeext'
 
16350
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16351
  (eval $ac_try) 2>&5
 
16352
  ac_status=$?
 
16353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16354
  (exit $ac_status); }; }; then
 
16355
 
 
16356
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16357
}'`
 
16358
# Check for a 64-bit object if we didn't find anything.
 
16359
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; }
 
16360
}'`; fi
 
16361
else
 
16362
  echo "$as_me: failed program was:" >&5
 
16363
sed 's/^/| /' conftest.$ac_ext >&5
 
16364
 
 
16365
fi
 
16366
rm -f conftest.err conftest.$ac_objext \
 
16367
      conftest$ac_exeext conftest.$ac_ext
 
16368
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16369
 
 
16370
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16371
          # Warning - without using the other run time loading flags,
 
16372
          # -berok will link without error, but may produce a broken library.
 
16373
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
16374
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
16375
          # -bexpall does not export symbols beginning with underscore (_)
 
16376
          always_export_symbols_GCJ=yes
 
16377
          # Exported symbols can be pulled into shared objects from archives
 
16378
          whole_archive_flag_spec_GCJ=' '
 
16379
          archive_cmds_need_lc_GCJ=yes
 
16380
          # This is similar to how AIX traditionally builds it's shared libraries.
 
16381
          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'
 
16382
        fi
 
16383
      fi
 
16384
      ;;
 
16385
 
 
16386
    amigaos*)
 
16387
      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)'
 
16388
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16389
      hardcode_minus_L_GCJ=yes
 
16390
      # see comment about different semantics on the GNU ld section
 
16391
      ld_shlibs_GCJ=no
 
16392
      ;;
 
16393
 
 
16394
    bsdi4*)
 
16395
      export_dynamic_flag_spec_GCJ=-rdynamic
 
16396
      ;;
 
16397
 
 
16398
    cygwin* | mingw* | pw32*)
 
16399
      # When not using gcc, we currently assume that we are using
 
16400
      # Microsoft Visual C++.
 
16401
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16402
      # no search path for DLLs.
 
16403
      hardcode_libdir_flag_spec_GCJ=' '
 
16404
      allow_undefined_flag_GCJ=unsupported
 
16405
      # Tell ltmain to make .lib files, not .a files.
 
16406
      libext=lib
 
16407
      # Tell ltmain to make .dll files, not .so files.
 
16408
      shrext=".dll"
 
16409
      # FIXME: Setting linknames here is a bad hack.
 
16410
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16411
      # The linker will automatically build a .lib file if we build a DLL.
 
16412
      old_archive_From_new_cmds_GCJ='true'
 
16413
      # FIXME: Should let the user specify the lib program.
 
16414
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16415
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
16416
      enable_shared_with_static_runtimes_GCJ=yes
 
16417
      ;;
 
16418
 
 
16419
    darwin* | rhapsody*)
 
16420
    if test "$GXX" = yes ; then
 
16421
      archive_cmds_need_lc_GCJ=no
 
16422
      case "$host_os" in
 
16423
      rhapsody* | darwin1.[012])
 
16424
        allow_undefined_flag_GCJ='-undefined suppress'
 
16425
        ;;
 
16426
      *) # Darwin 1.3 on
 
16427
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16428
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
16429
      else
 
16430
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
16431
          10.[012])
 
16432
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
16433
            ;;
 
16434
          10.*)
 
16435
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
 
16436
            ;;
 
16437
        esac
 
16438
      fi
 
16439
        ;;
 
16440
      esac
 
16441
        lt_int_apple_cc_single_mod=no
 
16442
        output_verbose_link_cmd='echo'
 
16443
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
16444
          lt_int_apple_cc_single_mod=yes
 
16445
        fi
 
16446
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16447
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16448
        else
 
16449
        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'
 
16450
      fi
 
16451
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16452
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16453
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16454
          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}'
 
16455
        else
 
16456
          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}'
 
16457
        fi
 
16458
          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}'
 
16459
      hardcode_direct_GCJ=no
 
16460
      hardcode_automatic_GCJ=yes
 
16461
      hardcode_shlibpath_var_GCJ=unsupported
 
16462
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
16463
      link_all_deplibs_GCJ=yes
 
16464
    else
 
16465
      ld_shlibs_GCJ=no
 
16466
    fi
 
16467
      ;;
 
16468
 
 
16469
    dgux*)
 
16470
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16471
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16472
      hardcode_shlibpath_var_GCJ=no
 
16473
      ;;
 
16474
 
 
16475
    freebsd1*)
 
16476
      ld_shlibs_GCJ=no
 
16477
      ;;
 
16478
 
 
16479
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16480
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16481
    # does not break anything, and helps significantly (at the cost of a little
 
16482
    # extra space).
 
16483
    freebsd2.2*)
 
16484
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16485
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16486
      hardcode_direct_GCJ=yes
 
16487
      hardcode_shlibpath_var_GCJ=no
 
16488
      ;;
 
16489
 
 
16490
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16491
    freebsd2*)
 
16492
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16493
      hardcode_direct_GCJ=yes
 
16494
      hardcode_minus_L_GCJ=yes
 
16495
      hardcode_shlibpath_var_GCJ=no
 
16496
      ;;
 
16497
 
 
16498
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16499
    freebsd* | kfreebsd*-gnu)
 
16500
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16501
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16502
      hardcode_direct_GCJ=yes
 
16503
      hardcode_shlibpath_var_GCJ=no
 
16504
      ;;
 
16505
 
 
16506
    hpux9*)
 
16507
      if test "$GCC" = yes; then
 
16508
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
16509
      else
 
16510
        archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
16511
      fi
 
16512
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16513
      hardcode_libdir_separator_GCJ=:
 
16514
      hardcode_direct_GCJ=yes
 
16515
 
 
16516
      # hardcode_minus_L: Not really in the search PATH,
 
16517
      # but as the default location of the library.
 
16518
      hardcode_minus_L_GCJ=yes
 
16519
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16520
      ;;
 
16521
 
 
16522
    hpux10* | hpux11*)
 
16523
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16524
        case "$host_cpu" in
 
16525
        hppa*64*|ia64*)
 
16526
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16527
          ;;
 
16528
        *)
 
16529
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16530
          ;;
 
16531
        esac
 
16532
      else
 
16533
        case "$host_cpu" in
 
16534
        hppa*64*|ia64*)
 
16535
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16536
          ;;
 
16537
        *)
 
16538
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16539
          ;;
 
16540
        esac
 
16541
      fi
 
16542
      if test "$with_gnu_ld" = no; then
 
16543
        case "$host_cpu" in
 
16544
        hppa*64*)
 
16545
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16546
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
16547
          hardcode_libdir_separator_GCJ=:
 
16548
          hardcode_direct_GCJ=no
 
16549
          hardcode_shlibpath_var_GCJ=no
 
16550
          ;;
 
16551
        ia64*)
 
16552
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16553
          hardcode_direct_GCJ=no
 
16554
          hardcode_shlibpath_var_GCJ=no
 
16555
 
 
16556
          # hardcode_minus_L: Not really in the search PATH,
 
16557
          # but as the default location of the library.
 
16558
          hardcode_minus_L_GCJ=yes
 
16559
          ;;
 
16560
        *)
 
16561
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16562
          hardcode_libdir_separator_GCJ=:
 
16563
          hardcode_direct_GCJ=yes
 
16564
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
16565
 
 
16566
          # hardcode_minus_L: Not really in the search PATH,
 
16567
          # but as the default location of the library.
 
16568
          hardcode_minus_L_GCJ=yes
 
16569
          ;;
 
16570
        esac
 
16571
      fi
 
16572
      ;;
 
16573
 
 
16574
    irix5* | irix6* | nonstopux*)
 
16575
      if test "$GCC" = yes; then
 
16576
        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'
 
16577
      else
 
16578
        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'
 
16579
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
16580
      fi
 
16581
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16582
      hardcode_libdir_separator_GCJ=:
 
16583
      link_all_deplibs_GCJ=yes
 
16584
      ;;
 
16585
 
 
16586
    netbsd*)
 
16587
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16588
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16589
      else
 
16590
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16591
      fi
 
16592
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16593
      hardcode_direct_GCJ=yes
 
16594
      hardcode_shlibpath_var_GCJ=no
 
16595
      ;;
 
16596
 
 
16597
    newsos6)
 
16598
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16599
      hardcode_direct_GCJ=yes
 
16600
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16601
      hardcode_libdir_separator_GCJ=:
 
16602
      hardcode_shlibpath_var_GCJ=no
 
16603
      ;;
 
16604
 
 
16605
    openbsd*)
 
16606
      hardcode_direct_GCJ=yes
 
16607
      hardcode_shlibpath_var_GCJ=no
 
16608
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16609
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16610
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16611
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16612
      else
 
16613
       case $host_os in
 
16614
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16615
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16616
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16617
           ;;
 
16618
         *)
 
16619
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16620
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16621
           ;;
 
16622
       esac
 
16623
      fi
 
16624
      ;;
 
16625
 
 
16626
    os2*)
 
16627
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16628
      hardcode_minus_L_GCJ=yes
 
16629
      allow_undefined_flag_GCJ=unsupported
 
16630
      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'
 
16631
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16632
      ;;
 
16633
 
 
16634
    osf3*)
 
16635
      if test "$GCC" = yes; then
 
16636
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16637
        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'
 
16638
      else
 
16639
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16640
        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'
 
16641
      fi
 
16642
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16643
      hardcode_libdir_separator_GCJ=:
 
16644
      ;;
 
16645
 
 
16646
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16647
      if test "$GCC" = yes; then
 
16648
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16649
        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'
 
16650
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16651
      else
 
16652
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16653
        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'
 
16654
        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~
 
16655
        $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'
 
16656
 
 
16657
        # Both c and cxx compiler support -rpath directly
 
16658
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
16659
      fi
 
16660
      hardcode_libdir_separator_GCJ=:
 
16661
      ;;
 
16662
 
 
16663
    sco3.2v5*)
 
16664
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16665
      hardcode_shlibpath_var_GCJ=no
 
16666
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
16667
      runpath_var=LD_RUN_PATH
 
16668
      hardcode_runpath_var=yes
 
16669
      ;;
 
16670
 
 
16671
    solaris*)
 
16672
      no_undefined_flag_GCJ=' -z text'
 
16673
      if test "$GCC" = yes; then
 
16674
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16675
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16676
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
16677
      else
 
16678
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16679
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16680
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16681
      fi
 
16682
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16683
      hardcode_shlibpath_var_GCJ=no
 
16684
      case $host_os in
 
16685
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16686
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16687
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
16688
      esac
 
16689
      link_all_deplibs_GCJ=yes
 
16690
      ;;
 
16691
 
 
16692
    sunos4*)
 
16693
      if test "x$host_vendor" = xsequent; then
 
16694
        # Use $CC to link under sequent, because it throws in some extra .o
 
16695
        # files that make .init and .fini sections work.
 
16696
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
16697
      else
 
16698
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
16699
      fi
 
16700
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16701
      hardcode_direct_GCJ=yes
 
16702
      hardcode_minus_L_GCJ=yes
 
16703
      hardcode_shlibpath_var_GCJ=no
 
16704
      ;;
 
16705
 
 
16706
    sysv4)
 
16707
      case $host_vendor in
 
16708
        sni)
 
16709
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16710
          hardcode_direct_GCJ=yes # is this really true???
 
16711
        ;;
 
16712
        siemens)
 
16713
          ## LD is ld it makes a PLAMLIB
 
16714
          ## CC just makes a GrossModule.
 
16715
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16716
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
16717
          hardcode_direct_GCJ=no
 
16718
        ;;
 
16719
        motorola)
 
16720
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16721
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
16722
        ;;
 
16723
      esac
 
16724
      runpath_var='LD_RUN_PATH'
 
16725
      hardcode_shlibpath_var_GCJ=no
 
16726
      ;;
 
16727
 
 
16728
    sysv4.3*)
 
16729
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16730
      hardcode_shlibpath_var_GCJ=no
 
16731
      export_dynamic_flag_spec_GCJ='-Bexport'
 
16732
      ;;
 
16733
 
 
16734
    sysv4*MP*)
 
16735
      if test -d /usr/nec; then
 
16736
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16737
        hardcode_shlibpath_var_GCJ=no
 
16738
        runpath_var=LD_RUN_PATH
 
16739
        hardcode_runpath_var=yes
 
16740
        ld_shlibs_GCJ=yes
 
16741
      fi
 
16742
      ;;
 
16743
 
 
16744
    sysv4.2uw2*)
 
16745
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16746
      hardcode_direct_GCJ=yes
 
16747
      hardcode_minus_L_GCJ=no
 
16748
      hardcode_shlibpath_var_GCJ=no
 
16749
      hardcode_runpath_var=yes
 
16750
      runpath_var=LD_RUN_PATH
 
16751
      ;;
 
16752
 
 
16753
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
16754
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
16755
      if test "$GCC" = yes; then
 
16756
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16757
      else
 
16758
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16759
      fi
 
16760
      runpath_var='LD_RUN_PATH'
 
16761
      hardcode_shlibpath_var_GCJ=no
 
16762
      ;;
 
16763
 
 
16764
    sysv5*)
 
16765
      no_undefined_flag_GCJ=' -z text'
 
16766
      # $CC -shared without GNU ld will not create a library from C++
 
16767
      # object files and a static libstdc++, better avoid it by now
 
16768
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16769
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16770
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16771
      hardcode_libdir_flag_spec_GCJ=
 
16772
      hardcode_shlibpath_var_GCJ=no
 
16773
      runpath_var='LD_RUN_PATH'
 
16774
      ;;
 
16775
 
 
16776
    uts4*)
 
16777
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16778
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16779
      hardcode_shlibpath_var_GCJ=no
 
16780
      ;;
 
16781
 
 
16782
    *)
 
16783
      ld_shlibs_GCJ=no
 
16784
      ;;
 
16785
    esac
 
16786
  fi
 
16787
 
 
16788
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
16789
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
16790
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
16791
 
 
16792
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16793
if test "$GCC" = yes; then
 
16794
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16795
fi
 
16796
 
 
16797
#
 
16798
# Do we need to explicitly link libc?
 
16799
#
 
16800
case "x$archive_cmds_need_lc_GCJ" in
 
16801
x|xyes)
 
16802
  # Assume -lc should be added
 
16803
  archive_cmds_need_lc_GCJ=yes
 
16804
 
 
16805
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16806
    case $archive_cmds_GCJ in
 
16807
    *'~'*)
 
16808
      # FIXME: we may have to deal with multi-command sequences.
 
16809
      ;;
 
16810
    '$CC '*)
 
16811
      # Test whether the compiler implicitly links with -lc since on some
 
16812
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16813
      # to ld, don't add -lc before -lgcc.
 
16814
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16815
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
16816
      $rm conftest*
 
16817
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16818
 
 
16819
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16820
  (eval $ac_compile) 2>&5
 
16821
  ac_status=$?
 
16822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16823
  (exit $ac_status); } 2>conftest.err; then
 
16824
        soname=conftest
 
16825
        lib=conftest
 
16826
        libobjs=conftest.$ac_objext
 
16827
        deplibs=
 
16828
        wl=$lt_prog_compiler_wl_GCJ
 
16829
        compiler_flags=-v
 
16830
        linker_flags=-v
 
16831
        verstring=
 
16832
        output_objdir=.
 
16833
        libname=conftest
 
16834
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
16835
        allow_undefined_flag_GCJ=
 
16836
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16837
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16838
  ac_status=$?
 
16839
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16840
  (exit $ac_status); }
 
16841
        then
 
16842
          archive_cmds_need_lc_GCJ=no
 
16843
        else
 
16844
          archive_cmds_need_lc_GCJ=yes
 
16845
        fi
 
16846
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
16847
      else
 
16848
        cat conftest.err 1>&5
 
16849
      fi
 
16850
      $rm conftest*
 
16851
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
16852
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
16853
      ;;
 
16854
    esac
 
16855
  fi
 
16856
  ;;
 
16857
esac
 
16858
 
 
16859
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16860
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
16861
library_names_spec=
 
16862
libname_spec='lib$name'
 
16863
soname_spec=
 
16864
shrext=".so"
 
16865
postinstall_cmds=
 
16866
postuninstall_cmds=
 
16867
finish_cmds=
 
16868
finish_eval=
 
16869
shlibpath_var=
 
16870
shlibpath_overrides_runpath=unknown
 
16871
version_type=none
 
16872
dynamic_linker="$host_os ld.so"
 
16873
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16874
if test "$GCC" = yes; then
 
16875
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16876
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
16877
    # if the path contains ";" then we assume it to be the separator
 
16878
    # otherwise default to the standard path separator (i.e. ":") - it is
 
16879
    # assumed that no part of a normal pathname contains ";" but that should
 
16880
    # okay in the real world where ";" in dirpaths is itself problematic.
 
16881
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16882
  else
 
16883
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16884
  fi
 
16885
else
 
16886
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
16887
fi
 
16888
need_lib_prefix=unknown
 
16889
hardcode_into_libs=no
 
16890
 
 
16891
# when you set need_version to no, make sure it does not cause -set_version
 
16892
# flags to be left without arguments
 
16893
need_version=unknown
 
16894
 
 
16895
case $host_os in
 
16896
aix3*)
 
16897
  version_type=linux
 
16898
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16899
  shlibpath_var=LIBPATH
 
16900
 
 
16901
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16902
  soname_spec='${libname}${release}${shared_ext}$major'
 
16903
  ;;
 
16904
 
 
16905
aix4* | aix5*)
 
16906
  version_type=linux
 
16907
  need_lib_prefix=no
 
16908
  need_version=no
 
16909
  hardcode_into_libs=yes
 
16910
  if test "$host_cpu" = ia64; then
 
16911
    # AIX 5 supports IA64
 
16912
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16913
    shlibpath_var=LD_LIBRARY_PATH
 
16914
  else
 
16915
    # With GCC up to 2.95.x, collect2 would create an import file
 
16916
    # for dependence libraries.  The import file would start with
 
16917
    # the line `#! .'.  This would cause the generated library to
 
16918
    # depend on `.', always an invalid library.  This was fixed in
 
16919
    # development snapshots of GCC prior to 3.0.
 
16920
    case $host_os in
 
16921
      aix4 | aix4.[01] | aix4.[01].*)
 
16922
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16923
           echo ' yes '
 
16924
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16925
        :
 
16926
      else
 
16927
        can_build_shared=no
 
16928
      fi
 
16929
      ;;
 
16930
    esac
 
16931
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16932
    # soname into executable. Probably we can add versioning support to
 
16933
    # collect2, so additional links can be useful in future.
 
16934
    if test "$aix_use_runtimelinking" = yes; then
 
16935
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16936
      # instead of lib<name>.a to let people know that these are not
 
16937
      # typical AIX shared libraries.
 
16938
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16939
    else
 
16940
      # We preserve .a as extension for shared libraries through AIX4.2
 
16941
      # and later when we are not doing run time linking.
 
16942
      library_names_spec='${libname}${release}.a $libname.a'
 
16943
      soname_spec='${libname}${release}${shared_ext}$major'
 
16944
    fi
 
16945
    shlibpath_var=LIBPATH
 
16946
  fi
 
16947
  ;;
 
16948
 
 
16949
amigaos*)
 
16950
  library_names_spec='$libname.ixlibrary $libname.a'
 
16951
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16952
  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'
 
16953
  ;;
 
16954
 
 
16955
beos*)
 
16956
  library_names_spec='${libname}${shared_ext}'
 
16957
  dynamic_linker="$host_os ld.so"
 
16958
  shlibpath_var=LIBRARY_PATH
 
16959
  ;;
 
16960
 
 
16961
bsdi4*)
 
16962
  version_type=linux
 
16963
  need_version=no
 
16964
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16965
  soname_spec='${libname}${release}${shared_ext}$major'
 
16966
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16967
  shlibpath_var=LD_LIBRARY_PATH
 
16968
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16969
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16970
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16971
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16972
  # libtool to hard-code these into programs
 
16973
  ;;
 
16974
 
 
16975
cygwin* | mingw* | pw32*)
 
16976
  version_type=windows
 
16977
  shrext=".dll"
 
16978
  need_version=no
 
16979
  need_lib_prefix=no
 
16980
 
 
16981
  case $GCC,$host_os in
 
16982
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16983
    library_names_spec='$libname.dll.a'
 
16984
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16985
    postinstall_cmds='base_file=`basename \${file}`~
 
16986
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16987
      dldir=$destdir/`dirname \$dlpath`~
 
16988
      test -d \$dldir || mkdir -p \$dldir~
 
16989
      $install_prog $dir/$dlname \$dldir/$dlname'
 
16990
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16991
      dlpath=$dir/\$dldll~
 
16992
       $rm \$dlpath'
 
16993
    shlibpath_overrides_runpath=yes
 
16994
 
 
16995
    case $host_os in
 
16996
    cygwin*)
 
16997
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16998
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16999
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17000
      ;;
 
17001
    mingw*)
 
17002
      # MinGW DLLs use traditional 'lib' prefix
 
17003
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17004
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17005
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17006
        # It is most probably a Windows format PATH printed by
 
17007
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17008
        # path with ; separators, and with drive letters. We can handle the
 
17009
        # drive letters (cygwin fileutils understands them), so leave them,
 
17010
        # especially as we might pass files found there to a mingw objdump,
 
17011
        # which wouldn't understand a cygwinified path. Ahh.
 
17012
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17013
      else
 
17014
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17015
      fi
 
17016
      ;;
 
17017
    pw32*)
 
17018
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17019
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
17020
      ;;
 
17021
    esac
 
17022
    ;;
 
17023
 
 
17024
  *)
 
17025
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17026
    ;;
 
17027
  esac
 
17028
  dynamic_linker='Win32 ld.exe'
 
17029
  # FIXME: first we should search . and the directory the executable is in
 
17030
  shlibpath_var=PATH
 
17031
  ;;
 
17032
 
 
17033
darwin* | rhapsody*)
 
17034
  dynamic_linker="$host_os dyld"
 
17035
  version_type=darwin
 
17036
  need_lib_prefix=no
 
17037
  need_version=no
 
17038
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17039
  soname_spec='${libname}${release}${major}$shared_ext'
 
17040
  shlibpath_overrides_runpath=yes
 
17041
  shlibpath_var=DYLD_LIBRARY_PATH
 
17042
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
17043
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17044
  if test "$GCC" = yes; then
 
17045
    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"`
 
17046
  else
 
17047
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17048
  fi
 
17049
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17050
  ;;
 
17051
 
 
17052
dgux*)
 
17053
  version_type=linux
 
17054
  need_lib_prefix=no
 
17055
  need_version=no
 
17056
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17057
  soname_spec='${libname}${release}${shared_ext}$major'
 
17058
  shlibpath_var=LD_LIBRARY_PATH
 
17059
  ;;
 
17060
 
 
17061
freebsd1*)
 
17062
  dynamic_linker=no
 
17063
  ;;
 
17064
 
 
17065
kfreebsd*-gnu)
 
17066
  version_type=linux
 
17067
  need_lib_prefix=no
 
17068
  need_version=no
 
17069
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17070
  soname_spec='${libname}${release}${shared_ext}$major'
 
17071
  shlibpath_var=LD_LIBRARY_PATH
 
17072
  shlibpath_overrides_runpath=no
 
17073
  hardcode_into_libs=yes
 
17074
  dynamic_linker='GNU ld.so'
 
17075
  ;;
 
17076
 
 
17077
freebsd*)
 
17078
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
17079
  version_type=freebsd-$objformat
 
17080
  case $version_type in
 
17081
    freebsd-elf*)
 
17082
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17083
      need_version=no
 
17084
      need_lib_prefix=no
 
17085
      ;;
 
17086
    freebsd-*)
 
17087
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17088
      need_version=yes
 
17089
      ;;
 
17090
  esac
 
17091
  shlibpath_var=LD_LIBRARY_PATH
 
17092
  case $host_os in
 
17093
  freebsd2*)
 
17094
    shlibpath_overrides_runpath=yes
 
17095
    ;;
 
17096
  freebsd3.01* | freebsdelf3.01*)
 
17097
    shlibpath_overrides_runpath=yes
 
17098
    hardcode_into_libs=yes
 
17099
    ;;
 
17100
  *) # from 3.2 on
 
17101
    shlibpath_overrides_runpath=no
 
17102
    hardcode_into_libs=yes
 
17103
    ;;
 
17104
  esac
 
17105
  ;;
 
17106
 
 
17107
gnu*)
 
17108
  version_type=linux
 
17109
  need_lib_prefix=no
 
17110
  need_version=no
 
17111
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17112
  soname_spec='${libname}${release}${shared_ext}$major'
 
17113
  shlibpath_var=LD_LIBRARY_PATH
 
17114
  hardcode_into_libs=yes
 
17115
  ;;
 
17116
 
 
17117
hpux9* | hpux10* | hpux11*)
 
17118
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17119
  # link against other versions.
 
17120
  version_type=sunos
 
17121
  need_lib_prefix=no
 
17122
  need_version=no
 
17123
  case "$host_cpu" in
 
17124
  ia64*)
 
17125
    shrext='.so'
 
17126
    hardcode_into_libs=yes
 
17127
    dynamic_linker="$host_os dld.so"
 
17128
    shlibpath_var=LD_LIBRARY_PATH
 
17129
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17130
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17131
    soname_spec='${libname}${release}${shared_ext}$major'
 
17132
    if test "X$HPUX_IA64_MODE" = X32; then
 
17133
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17134
    else
 
17135
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17136
    fi
 
17137
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17138
    ;;
 
17139
   hppa*64*)
 
17140
     shrext='.sl'
 
17141
     hardcode_into_libs=yes
 
17142
     dynamic_linker="$host_os dld.sl"
 
17143
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17144
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17145
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17146
     soname_spec='${libname}${release}${shared_ext}$major'
 
17147
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17148
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17149
     ;;
 
17150
   *)
 
17151
    shrext='.sl'
 
17152
    dynamic_linker="$host_os dld.sl"
 
17153
    shlibpath_var=SHLIB_PATH
 
17154
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17155
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17156
    soname_spec='${libname}${release}${shared_ext}$major'
 
17157
    ;;
 
17158
  esac
 
17159
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17160
  postinstall_cmds='chmod 555 $lib'
 
17161
  ;;
 
17162
 
 
17163
irix5* | irix6* | nonstopux*)
 
17164
  case $host_os in
 
17165
    nonstopux*) version_type=nonstopux ;;
 
17166
    *)
 
17167
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17168
                version_type=linux
 
17169
        else
 
17170
                version_type=irix
 
17171
        fi ;;
 
17172
  esac
 
17173
  need_lib_prefix=no
 
17174
  need_version=no
 
17175
  soname_spec='${libname}${release}${shared_ext}$major'
 
17176
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17177
  case $host_os in
 
17178
  irix5* | nonstopux*)
 
17179
    libsuff= shlibsuff=
 
17180
    ;;
 
17181
  *)
 
17182
    case $LD in # libtool.m4 will add one of these switches to LD
 
17183
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17184
      libsuff= shlibsuff= libmagic=32-bit;;
 
17185
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17186
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17187
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17188
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17189
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17190
    esac
 
17191
    ;;
 
17192
  esac
 
17193
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17194
  shlibpath_overrides_runpath=no
 
17195
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17196
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17197
  hardcode_into_libs=yes
 
17198
  ;;
 
17199
 
 
17200
# No shared lib support for Linux oldld, aout, or coff.
 
17201
linux*oldld* | linux*aout* | linux*coff*)
 
17202
  dynamic_linker=no
 
17203
  ;;
 
17204
 
 
17205
# This must be Linux ELF.
 
17206
linux*)
 
17207
  version_type=linux
 
17208
  need_lib_prefix=no
 
17209
  need_version=no
 
17210
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17211
  soname_spec='${libname}${release}${shared_ext}$major'
 
17212
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17213
  shlibpath_var=LD_LIBRARY_PATH
 
17214
  shlibpath_overrides_runpath=no
 
17215
  # This implies no fast_install, which is unacceptable.
 
17216
  # Some rework will be needed to allow for fast_install
 
17217
  # before this can be enabled.
 
17218
  hardcode_into_libs=yes
 
17219
 
 
17220
  # Append ld.so.conf contents to the search path
 
17221
  if test -f /etc/ld.so.conf; then
 
17222
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
 
17223
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
 
17224
  fi
 
17225
 
 
17226
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17227
  # powerpc, because MkLinux only supported shared libraries with the
 
17228
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17229
  # most powerpc-linux boxes support dynamic linking these days and
 
17230
  # people can always --disable-shared, the test was removed, and we
 
17231
  # assume the GNU/Linux dynamic linker is in use.
 
17232
  dynamic_linker='GNU/Linux ld.so'
 
17233
  ;;
 
17234
 
 
17235
knetbsd*-gnu)
 
17236
  version_type=linux
 
17237
  need_lib_prefix=no
 
17238
  need_version=no
 
17239
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17240
  soname_spec='${libname}${release}${shared_ext}$major'
 
17241
  shlibpath_var=LD_LIBRARY_PATH
 
17242
  shlibpath_overrides_runpath=no
 
17243
  hardcode_into_libs=yes
 
17244
  dynamic_linker='GNU ld.so'
 
17245
  ;;
 
17246
 
 
17247
netbsd*)
 
17248
  version_type=sunos
 
17249
  need_lib_prefix=no
 
17250
  need_version=no
 
17251
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17252
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17253
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17254
    dynamic_linker='NetBSD (a.out) ld.so'
 
17255
  else
 
17256
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
17257
    soname_spec='${libname}${release}${shared_ext}$major'
 
17258
    dynamic_linker='NetBSD ld.elf_so'
 
17259
  fi
 
17260
  shlibpath_var=LD_LIBRARY_PATH
 
17261
  shlibpath_overrides_runpath=yes
 
17262
  hardcode_into_libs=yes
 
17263
  ;;
 
17264
 
 
17265
newsos6)
 
17266
  version_type=linux
 
17267
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17268
  shlibpath_var=LD_LIBRARY_PATH
 
17269
  shlibpath_overrides_runpath=yes
 
17270
  ;;
 
17271
 
 
17272
nto-qnx*)
 
17273
  version_type=linux
 
17274
  need_lib_prefix=no
 
17275
  need_version=no
 
17276
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17277
  soname_spec='${libname}${release}${shared_ext}$major'
 
17278
  shlibpath_var=LD_LIBRARY_PATH
 
17279
  shlibpath_overrides_runpath=yes
 
17280
  ;;
 
17281
 
 
17282
openbsd*)
 
17283
  version_type=sunos
 
17284
  need_lib_prefix=no
 
17285
  need_version=yes
 
17286
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17287
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17288
  shlibpath_var=LD_LIBRARY_PATH
 
17289
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17290
    case $host_os in
 
17291
      openbsd2.[89] | openbsd2.[89].*)
 
17292
        shlibpath_overrides_runpath=no
 
17293
        ;;
 
17294
      *)
 
17295
        shlibpath_overrides_runpath=yes
 
17296
        ;;
 
17297
      esac
 
17298
  else
 
17299
    shlibpath_overrides_runpath=yes
 
17300
  fi
 
17301
  ;;
 
17302
 
 
17303
os2*)
 
17304
  libname_spec='$name'
 
17305
  shrext=".dll"
 
17306
  need_lib_prefix=no
 
17307
  library_names_spec='$libname${shared_ext} $libname.a'
 
17308
  dynamic_linker='OS/2 ld.exe'
 
17309
  shlibpath_var=LIBPATH
 
17310
  ;;
 
17311
 
 
17312
osf3* | osf4* | osf5*)
 
17313
  version_type=osf
 
17314
  need_lib_prefix=no
 
17315
  need_version=no
 
17316
  soname_spec='${libname}${release}${shared_ext}$major'
 
17317
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17318
  shlibpath_var=LD_LIBRARY_PATH
 
17319
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17320
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17321
  ;;
 
17322
 
 
17323
sco3.2v5*)
 
17324
  version_type=osf
 
17325
  soname_spec='${libname}${release}${shared_ext}$major'
 
17326
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17327
  shlibpath_var=LD_LIBRARY_PATH
 
17328
  ;;
 
17329
 
 
17330
solaris*)
 
17331
  version_type=linux
 
17332
  need_lib_prefix=no
 
17333
  need_version=no
 
17334
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17335
  soname_spec='${libname}${release}${shared_ext}$major'
 
17336
  shlibpath_var=LD_LIBRARY_PATH
 
17337
  shlibpath_overrides_runpath=yes
 
17338
  hardcode_into_libs=yes
 
17339
  # ldd complains unless libraries are executable
 
17340
  postinstall_cmds='chmod +x $lib'
 
17341
  ;;
 
17342
 
 
17343
sunos4*)
 
17344
  version_type=sunos
 
17345
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17346
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17347
  shlibpath_var=LD_LIBRARY_PATH
 
17348
  shlibpath_overrides_runpath=yes
 
17349
  if test "$with_gnu_ld" = yes; then
 
17350
    need_lib_prefix=no
 
17351
  fi
 
17352
  need_version=yes
 
17353
  ;;
 
17354
 
 
17355
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17356
  version_type=linux
 
17357
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17358
  soname_spec='${libname}${release}${shared_ext}$major'
 
17359
  shlibpath_var=LD_LIBRARY_PATH
 
17360
  case $host_vendor in
 
17361
    sni)
 
17362
      shlibpath_overrides_runpath=no
 
17363
      need_lib_prefix=no
 
17364
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17365
      runpath_var=LD_RUN_PATH
 
17366
      ;;
 
17367
    siemens)
 
17368
      need_lib_prefix=no
 
17369
      ;;
 
17370
    motorola)
 
17371
      need_lib_prefix=no
 
17372
      need_version=no
 
17373
      shlibpath_overrides_runpath=no
 
17374
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17375
      ;;
 
17376
  esac
 
17377
  ;;
 
17378
 
 
17379
sysv4*MP*)
 
17380
  if test -d /usr/nec ;then
 
17381
    version_type=linux
 
17382
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17383
    soname_spec='$libname${shared_ext}.$major'
 
17384
    shlibpath_var=LD_LIBRARY_PATH
 
17385
  fi
 
17386
  ;;
 
17387
 
 
17388
uts4*)
 
17389
  version_type=linux
 
17390
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17391
  soname_spec='${libname}${release}${shared_ext}$major'
 
17392
  shlibpath_var=LD_LIBRARY_PATH
 
17393
  ;;
 
17394
 
 
17395
*)
 
17396
  dynamic_linker=no
 
17397
  ;;
 
17398
esac
 
17399
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17400
echo "${ECHO_T}$dynamic_linker" >&6
 
17401
test "$dynamic_linker" = no && can_build_shared=no
 
17402
 
 
17403
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17404
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17405
hardcode_action_GCJ=
 
17406
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
17407
   test -n "$runpath_var GCJ" || \
 
17408
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
17409
 
 
17410
  # We can hardcode non-existant directories.
 
17411
  if test "$hardcode_direct_GCJ" != no &&
 
17412
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17413
     # have to relink, otherwise we might link with an installed library
 
17414
     # when we should be linking with a yet-to-be-installed one
 
17415
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
17416
     test "$hardcode_minus_L_GCJ" != no; then
 
17417
    # Linking always hardcodes the temporary library directory.
 
17418
    hardcode_action_GCJ=relink
 
17419
  else
 
17420
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17421
    hardcode_action_GCJ=immediate
 
17422
  fi
 
17423
else
 
17424
  # We cannot hardcode anything, or else we can only hardcode existing
 
17425
  # directories.
 
17426
  hardcode_action_GCJ=unsupported
 
17427
fi
 
17428
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
17429
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
17430
 
 
17431
if test "$hardcode_action_GCJ" = relink; then
 
17432
  # Fast installation is not supported
 
17433
  enable_fast_install=no
 
17434
elif test "$shlibpath_overrides_runpath" = yes ||
 
17435
     test "$enable_shared" = no; then
 
17436
  # Fast installation is not necessary
 
17437
  enable_fast_install=needless
 
17438
fi
 
17439
 
 
17440
striplib=
 
17441
old_striplib=
 
17442
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17443
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17444
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17445
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17446
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17447
  echo "$as_me:$LINENO: result: yes" >&5
 
17448
echo "${ECHO_T}yes" >&6
 
17449
else
 
17450
# FIXME - insert some real tests, host_os isn't really good enough
 
17451
  case $host_os in
 
17452
   darwin*)
 
17453
       if test -n "$STRIP" ; then
 
17454
         striplib="$STRIP -x"
 
17455
         echo "$as_me:$LINENO: result: yes" >&5
 
17456
echo "${ECHO_T}yes" >&6
 
17457
       else
 
17458
  echo "$as_me:$LINENO: result: no" >&5
 
17459
echo "${ECHO_T}no" >&6
 
17460
fi
 
17461
       ;;
 
17462
   *)
 
17463
  echo "$as_me:$LINENO: result: no" >&5
 
17464
echo "${ECHO_T}no" >&6
 
17465
    ;;
 
17466
  esac
 
17467
fi
 
17468
 
 
17469
if test "x$enable_dlopen" != xyes; then
 
17470
  enable_dlopen=unknown
 
17471
  enable_dlopen_self=unknown
 
17472
  enable_dlopen_self_static=unknown
 
17473
else
 
17474
  lt_cv_dlopen=no
 
17475
  lt_cv_dlopen_libs=
 
17476
 
 
17477
  case $host_os in
 
17478
  beos*)
 
17479
    lt_cv_dlopen="load_add_on"
 
17480
    lt_cv_dlopen_libs=
 
17481
    lt_cv_dlopen_self=yes
 
17482
    ;;
 
17483
 
 
17484
  mingw* | pw32*)
 
17485
    lt_cv_dlopen="LoadLibrary"
 
17486
    lt_cv_dlopen_libs=
 
17487
   ;;
 
17488
 
 
17489
  cygwin*)
 
17490
    lt_cv_dlopen="dlopen"
 
17491
    lt_cv_dlopen_libs=
 
17492
   ;;
 
17493
 
 
17494
  darwin*)
 
17495
  # if libdl is installed we need to link against it
 
17496
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
17497
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
17498
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
17499
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17500
else
 
17501
  ac_check_lib_save_LIBS=$LIBS
 
17502
LIBS="-ldl  $LIBS"
 
17503
cat >conftest.$ac_ext <<_ACEOF
 
17504
/* confdefs.h.  */
 
17505
_ACEOF
 
17506
cat confdefs.h >>conftest.$ac_ext
 
17507
cat >>conftest.$ac_ext <<_ACEOF
 
17508
/* end confdefs.h.  */
 
17509
 
 
17510
/* Override any gcc2 internal prototype to avoid an error.  */
 
17511
#ifdef __cplusplus
 
17512
extern "C"
 
17513
#endif
 
17514
/* We use char because int might match the return type of a gcc2
 
17515
   builtin and then its argument prototype would still apply.  */
 
17516
char dlopen ();
 
17517
int
 
17518
main ()
 
17519
{
 
17520
dlopen ();
 
17521
  ;
 
17522
  return 0;
 
17523
}
 
17524
_ACEOF
 
17525
rm -f conftest.$ac_objext conftest$ac_exeext
 
17526
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17527
  (eval $ac_link) 2>conftest.er1
 
17528
  ac_status=$?
 
17529
  grep -v '^ *+' conftest.er1 >conftest.err
 
17530
  rm -f conftest.er1
 
17531
  cat conftest.err >&5
 
17532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17533
  (exit $ac_status); } &&
 
17534
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17535
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17536
  (eval $ac_try) 2>&5
 
17537
  ac_status=$?
 
17538
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17539
  (exit $ac_status); }; } &&
 
17540
         { ac_try='test -s conftest$ac_exeext'
 
17541
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17542
  (eval $ac_try) 2>&5
 
17543
  ac_status=$?
 
17544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17545
  (exit $ac_status); }; }; then
 
17546
  ac_cv_lib_dl_dlopen=yes
 
17547
else
 
17548
  echo "$as_me: failed program was:" >&5
 
17549
sed 's/^/| /' conftest.$ac_ext >&5
 
17550
 
 
17551
ac_cv_lib_dl_dlopen=no
 
17552
fi
 
17553
rm -f conftest.err conftest.$ac_objext \
 
17554
      conftest$ac_exeext conftest.$ac_ext
 
17555
LIBS=$ac_check_lib_save_LIBS
 
17556
fi
 
17557
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
17558
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
17559
if test $ac_cv_lib_dl_dlopen = yes; then
 
17560
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17561
else
 
17562
 
 
17563
    lt_cv_dlopen="dyld"
 
17564
    lt_cv_dlopen_libs=
 
17565
    lt_cv_dlopen_self=yes
 
17566
 
 
17567
fi
 
17568
 
 
17569
   ;;
 
17570
 
 
17571
  *)
 
17572
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
17573
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
17574
if test "${ac_cv_func_shl_load+set}" = set; then
 
17575
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17576
else
 
17577
  cat >conftest.$ac_ext <<_ACEOF
 
17578
/* confdefs.h.  */
 
17579
_ACEOF
 
17580
cat confdefs.h >>conftest.$ac_ext
 
17581
cat >>conftest.$ac_ext <<_ACEOF
 
17582
/* end confdefs.h.  */
 
17583
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
17584
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17585
#define shl_load innocuous_shl_load
 
17586
 
 
17587
/* System header to define __stub macros and hopefully few prototypes,
 
17588
    which can conflict with char shl_load (); below.
 
17589
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17590
    <limits.h> exists even on freestanding compilers.  */
 
17591
 
 
17592
#ifdef __STDC__
 
17593
# include <limits.h>
 
17594
#else
 
17595
# include <assert.h>
 
17596
#endif
 
17597
 
 
17598
#undef shl_load
 
17599
 
 
17600
/* Override any gcc2 internal prototype to avoid an error.  */
 
17601
#ifdef __cplusplus
 
17602
extern "C"
 
17603
{
 
17604
#endif
 
17605
/* We use char because int might match the return type of a gcc2
 
17606
   builtin and then its argument prototype would still apply.  */
 
17607
char shl_load ();
 
17608
/* The GNU C library defines this for functions which it implements
 
17609
    to always fail with ENOSYS.  Some functions are actually named
 
17610
    something starting with __ and the normal name is an alias.  */
 
17611
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
17612
choke me
 
17613
#else
 
17614
char (*f) () = shl_load;
 
17615
#endif
 
17616
#ifdef __cplusplus
 
17617
}
 
17618
#endif
 
17619
 
 
17620
int
 
17621
main ()
 
17622
{
 
17623
return f != shl_load;
 
17624
  ;
 
17625
  return 0;
 
17626
}
 
17627
_ACEOF
 
17628
rm -f conftest.$ac_objext conftest$ac_exeext
 
17629
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17630
  (eval $ac_link) 2>conftest.er1
 
17631
  ac_status=$?
 
17632
  grep -v '^ *+' conftest.er1 >conftest.err
 
17633
  rm -f conftest.er1
 
17634
  cat conftest.err >&5
 
17635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17636
  (exit $ac_status); } &&
 
17637
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17638
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17639
  (eval $ac_try) 2>&5
 
17640
  ac_status=$?
 
17641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17642
  (exit $ac_status); }; } &&
 
17643
         { ac_try='test -s conftest$ac_exeext'
 
17644
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17645
  (eval $ac_try) 2>&5
 
17646
  ac_status=$?
 
17647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17648
  (exit $ac_status); }; }; then
 
17649
  ac_cv_func_shl_load=yes
 
17650
else
 
17651
  echo "$as_me: failed program was:" >&5
 
17652
sed 's/^/| /' conftest.$ac_ext >&5
 
17653
 
 
17654
ac_cv_func_shl_load=no
 
17655
fi
 
17656
rm -f conftest.err conftest.$ac_objext \
 
17657
      conftest$ac_exeext conftest.$ac_ext
 
17658
fi
 
17659
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
17660
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
17661
if test $ac_cv_func_shl_load = yes; then
 
17662
  lt_cv_dlopen="shl_load"
 
17663
else
 
17664
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
17665
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
17666
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
17667
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17668
else
 
17669
  ac_check_lib_save_LIBS=$LIBS
 
17670
LIBS="-ldld  $LIBS"
 
17671
cat >conftest.$ac_ext <<_ACEOF
 
17672
/* confdefs.h.  */
 
17673
_ACEOF
 
17674
cat confdefs.h >>conftest.$ac_ext
 
17675
cat >>conftest.$ac_ext <<_ACEOF
 
17676
/* end confdefs.h.  */
 
17677
 
 
17678
/* Override any gcc2 internal prototype to avoid an error.  */
 
17679
#ifdef __cplusplus
 
17680
extern "C"
 
17681
#endif
 
17682
/* We use char because int might match the return type of a gcc2
 
17683
   builtin and then its argument prototype would still apply.  */
 
17684
char shl_load ();
 
17685
int
 
17686
main ()
 
17687
{
 
17688
shl_load ();
 
17689
  ;
 
17690
  return 0;
 
17691
}
 
17692
_ACEOF
 
17693
rm -f conftest.$ac_objext conftest$ac_exeext
 
17694
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17695
  (eval $ac_link) 2>conftest.er1
 
17696
  ac_status=$?
 
17697
  grep -v '^ *+' conftest.er1 >conftest.err
 
17698
  rm -f conftest.er1
 
17699
  cat conftest.err >&5
 
17700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17701
  (exit $ac_status); } &&
 
17702
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17703
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17704
  (eval $ac_try) 2>&5
 
17705
  ac_status=$?
 
17706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17707
  (exit $ac_status); }; } &&
 
17708
         { ac_try='test -s conftest$ac_exeext'
 
17709
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17710
  (eval $ac_try) 2>&5
 
17711
  ac_status=$?
 
17712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17713
  (exit $ac_status); }; }; then
 
17714
  ac_cv_lib_dld_shl_load=yes
 
17715
else
 
17716
  echo "$as_me: failed program was:" >&5
 
17717
sed 's/^/| /' conftest.$ac_ext >&5
 
17718
 
 
17719
ac_cv_lib_dld_shl_load=no
 
17720
fi
 
17721
rm -f conftest.err conftest.$ac_objext \
 
17722
      conftest$ac_exeext conftest.$ac_ext
 
17723
LIBS=$ac_check_lib_save_LIBS
 
17724
fi
 
17725
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
17726
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
17727
if test $ac_cv_lib_dld_shl_load = yes; then
 
17728
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
17729
else
 
17730
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
17731
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
17732
if test "${ac_cv_func_dlopen+set}" = set; then
 
17733
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17734
else
 
17735
  cat >conftest.$ac_ext <<_ACEOF
 
17736
/* confdefs.h.  */
 
17737
_ACEOF
 
17738
cat confdefs.h >>conftest.$ac_ext
 
17739
cat >>conftest.$ac_ext <<_ACEOF
 
17740
/* end confdefs.h.  */
 
17741
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
17742
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17743
#define dlopen innocuous_dlopen
 
17744
 
 
17745
/* System header to define __stub macros and hopefully few prototypes,
 
17746
    which can conflict with char dlopen (); below.
 
17747
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17748
    <limits.h> exists even on freestanding compilers.  */
 
17749
 
 
17750
#ifdef __STDC__
 
17751
# include <limits.h>
 
17752
#else
 
17753
# include <assert.h>
 
17754
#endif
 
17755
 
 
17756
#undef dlopen
 
17757
 
 
17758
/* Override any gcc2 internal prototype to avoid an error.  */
 
17759
#ifdef __cplusplus
 
17760
extern "C"
 
17761
{
 
17762
#endif
 
17763
/* We use char because int might match the return type of a gcc2
 
17764
   builtin and then its argument prototype would still apply.  */
 
17765
char dlopen ();
 
17766
/* The GNU C library defines this for functions which it implements
 
17767
    to always fail with ENOSYS.  Some functions are actually named
 
17768
    something starting with __ and the normal name is an alias.  */
 
17769
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
17770
choke me
 
17771
#else
 
17772
char (*f) () = dlopen;
 
17773
#endif
 
17774
#ifdef __cplusplus
 
17775
}
 
17776
#endif
 
17777
 
 
17778
int
 
17779
main ()
 
17780
{
 
17781
return f != dlopen;
 
17782
  ;
 
17783
  return 0;
 
17784
}
 
17785
_ACEOF
 
17786
rm -f conftest.$ac_objext conftest$ac_exeext
 
17787
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17788
  (eval $ac_link) 2>conftest.er1
 
17789
  ac_status=$?
 
17790
  grep -v '^ *+' conftest.er1 >conftest.err
 
17791
  rm -f conftest.er1
 
17792
  cat conftest.err >&5
 
17793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17794
  (exit $ac_status); } &&
 
17795
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17796
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17797
  (eval $ac_try) 2>&5
 
17798
  ac_status=$?
 
17799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17800
  (exit $ac_status); }; } &&
 
17801
         { ac_try='test -s conftest$ac_exeext'
 
17802
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17803
  (eval $ac_try) 2>&5
 
17804
  ac_status=$?
 
17805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17806
  (exit $ac_status); }; }; then
 
17807
  ac_cv_func_dlopen=yes
 
17808
else
 
17809
  echo "$as_me: failed program was:" >&5
 
17810
sed 's/^/| /' conftest.$ac_ext >&5
 
17811
 
 
17812
ac_cv_func_dlopen=no
 
17813
fi
 
17814
rm -f conftest.err conftest.$ac_objext \
 
17815
      conftest$ac_exeext conftest.$ac_ext
 
17816
fi
 
17817
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
17818
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
17819
if test $ac_cv_func_dlopen = yes; then
 
17820
  lt_cv_dlopen="dlopen"
 
17821
else
 
17822
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
17823
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
17824
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
17825
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17826
else
 
17827
  ac_check_lib_save_LIBS=$LIBS
 
17828
LIBS="-ldl  $LIBS"
 
17829
cat >conftest.$ac_ext <<_ACEOF
 
17830
/* confdefs.h.  */
 
17831
_ACEOF
 
17832
cat confdefs.h >>conftest.$ac_ext
 
17833
cat >>conftest.$ac_ext <<_ACEOF
 
17834
/* end confdefs.h.  */
 
17835
 
 
17836
/* Override any gcc2 internal prototype to avoid an error.  */
 
17837
#ifdef __cplusplus
 
17838
extern "C"
 
17839
#endif
 
17840
/* We use char because int might match the return type of a gcc2
 
17841
   builtin and then its argument prototype would still apply.  */
 
17842
char dlopen ();
 
17843
int
 
17844
main ()
 
17845
{
 
17846
dlopen ();
 
17847
  ;
 
17848
  return 0;
 
17849
}
 
17850
_ACEOF
 
17851
rm -f conftest.$ac_objext conftest$ac_exeext
 
17852
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17853
  (eval $ac_link) 2>conftest.er1
 
17854
  ac_status=$?
 
17855
  grep -v '^ *+' conftest.er1 >conftest.err
 
17856
  rm -f conftest.er1
 
17857
  cat conftest.err >&5
 
17858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17859
  (exit $ac_status); } &&
 
17860
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17862
  (eval $ac_try) 2>&5
 
17863
  ac_status=$?
 
17864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17865
  (exit $ac_status); }; } &&
 
17866
         { ac_try='test -s conftest$ac_exeext'
 
17867
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17868
  (eval $ac_try) 2>&5
 
17869
  ac_status=$?
 
17870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17871
  (exit $ac_status); }; }; then
 
17872
  ac_cv_lib_dl_dlopen=yes
 
17873
else
 
17874
  echo "$as_me: failed program was:" >&5
 
17875
sed 's/^/| /' conftest.$ac_ext >&5
 
17876
 
 
17877
ac_cv_lib_dl_dlopen=no
 
17878
fi
 
17879
rm -f conftest.err conftest.$ac_objext \
 
17880
      conftest$ac_exeext conftest.$ac_ext
 
17881
LIBS=$ac_check_lib_save_LIBS
 
17882
fi
 
17883
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
17884
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
17885
if test $ac_cv_lib_dl_dlopen = yes; then
 
17886
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17887
else
 
17888
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
17889
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
17890
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
17891
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17892
else
 
17893
  ac_check_lib_save_LIBS=$LIBS
 
17894
LIBS="-lsvld  $LIBS"
 
17895
cat >conftest.$ac_ext <<_ACEOF
 
17896
/* confdefs.h.  */
 
17897
_ACEOF
 
17898
cat confdefs.h >>conftest.$ac_ext
 
17899
cat >>conftest.$ac_ext <<_ACEOF
 
17900
/* end confdefs.h.  */
 
17901
 
 
17902
/* Override any gcc2 internal prototype to avoid an error.  */
 
17903
#ifdef __cplusplus
 
17904
extern "C"
 
17905
#endif
 
17906
/* We use char because int might match the return type of a gcc2
 
17907
   builtin and then its argument prototype would still apply.  */
 
17908
char dlopen ();
 
17909
int
 
17910
main ()
 
17911
{
 
17912
dlopen ();
 
17913
  ;
 
17914
  return 0;
 
17915
}
 
17916
_ACEOF
 
17917
rm -f conftest.$ac_objext conftest$ac_exeext
 
17918
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17919
  (eval $ac_link) 2>conftest.er1
 
17920
  ac_status=$?
 
17921
  grep -v '^ *+' conftest.er1 >conftest.err
 
17922
  rm -f conftest.er1
 
17923
  cat conftest.err >&5
 
17924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17925
  (exit $ac_status); } &&
 
17926
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17927
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17928
  (eval $ac_try) 2>&5
 
17929
  ac_status=$?
 
17930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17931
  (exit $ac_status); }; } &&
 
17932
         { ac_try='test -s conftest$ac_exeext'
 
17933
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17934
  (eval $ac_try) 2>&5
 
17935
  ac_status=$?
 
17936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17937
  (exit $ac_status); }; }; then
 
17938
  ac_cv_lib_svld_dlopen=yes
 
17939
else
 
17940
  echo "$as_me: failed program was:" >&5
 
17941
sed 's/^/| /' conftest.$ac_ext >&5
 
17942
 
 
17943
ac_cv_lib_svld_dlopen=no
 
17944
fi
 
17945
rm -f conftest.err conftest.$ac_objext \
 
17946
      conftest$ac_exeext conftest.$ac_ext
 
17947
LIBS=$ac_check_lib_save_LIBS
 
17948
fi
 
17949
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
17950
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
17951
if test $ac_cv_lib_svld_dlopen = yes; then
 
17952
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
17953
else
 
17954
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
17955
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
17956
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
17957
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17958
else
 
17959
  ac_check_lib_save_LIBS=$LIBS
 
17960
LIBS="-ldld  $LIBS"
 
17961
cat >conftest.$ac_ext <<_ACEOF
 
17962
/* confdefs.h.  */
 
17963
_ACEOF
 
17964
cat confdefs.h >>conftest.$ac_ext
 
17965
cat >>conftest.$ac_ext <<_ACEOF
 
17966
/* end confdefs.h.  */
 
17967
 
 
17968
/* Override any gcc2 internal prototype to avoid an error.  */
 
17969
#ifdef __cplusplus
 
17970
extern "C"
 
17971
#endif
 
17972
/* We use char because int might match the return type of a gcc2
 
17973
   builtin and then its argument prototype would still apply.  */
 
17974
char dld_link ();
 
17975
int
 
17976
main ()
 
17977
{
 
17978
dld_link ();
 
17979
  ;
 
17980
  return 0;
 
17981
}
 
17982
_ACEOF
 
17983
rm -f conftest.$ac_objext conftest$ac_exeext
 
17984
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17985
  (eval $ac_link) 2>conftest.er1
 
17986
  ac_status=$?
 
17987
  grep -v '^ *+' conftest.er1 >conftest.err
 
17988
  rm -f conftest.er1
 
17989
  cat conftest.err >&5
 
17990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17991
  (exit $ac_status); } &&
 
17992
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17993
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17994
  (eval $ac_try) 2>&5
 
17995
  ac_status=$?
 
17996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17997
  (exit $ac_status); }; } &&
 
17998
         { ac_try='test -s conftest$ac_exeext'
 
17999
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18000
  (eval $ac_try) 2>&5
 
18001
  ac_status=$?
 
18002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18003
  (exit $ac_status); }; }; then
 
18004
  ac_cv_lib_dld_dld_link=yes
 
18005
else
 
18006
  echo "$as_me: failed program was:" >&5
 
18007
sed 's/^/| /' conftest.$ac_ext >&5
 
18008
 
 
18009
ac_cv_lib_dld_dld_link=no
 
18010
fi
 
18011
rm -f conftest.err conftest.$ac_objext \
 
18012
      conftest$ac_exeext conftest.$ac_ext
 
18013
LIBS=$ac_check_lib_save_LIBS
 
18014
fi
 
18015
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
18016
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
18017
if test $ac_cv_lib_dld_dld_link = yes; then
 
18018
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
18019
fi
 
18020
 
 
18021
 
 
18022
fi
 
18023
 
 
18024
 
 
18025
fi
 
18026
 
 
18027
 
 
18028
fi
 
18029
 
 
18030
 
 
18031
fi
 
18032
 
 
18033
 
 
18034
fi
 
18035
 
 
18036
    ;;
 
18037
  esac
 
18038
 
 
18039
  if test "x$lt_cv_dlopen" != xno; then
 
18040
    enable_dlopen=yes
 
18041
  else
 
18042
    enable_dlopen=no
 
18043
  fi
 
18044
 
 
18045
  case $lt_cv_dlopen in
 
18046
  dlopen)
 
18047
    save_CPPFLAGS="$CPPFLAGS"
 
18048
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
18049
 
 
18050
    save_LDFLAGS="$LDFLAGS"
 
18051
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
18052
 
 
18053
    save_LIBS="$LIBS"
 
18054
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
18055
 
 
18056
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
18057
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
18058
if test "${lt_cv_dlopen_self+set}" = set; then
 
18059
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18060
else
 
18061
          if test "$cross_compiling" = yes; then :
 
18062
  lt_cv_dlopen_self=cross
 
18063
else
 
18064
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18065
  lt_status=$lt_dlunknown
 
18066
  cat > conftest.$ac_ext <<EOF
 
18067
#line 18067 "configure"
 
18068
#include "confdefs.h"
 
18069
 
 
18070
#if HAVE_DLFCN_H
 
18071
#include <dlfcn.h>
 
18072
#endif
 
18073
 
 
18074
#include <stdio.h>
 
18075
 
 
18076
#ifdef RTLD_GLOBAL
 
18077
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18078
#else
 
18079
#  ifdef DL_GLOBAL
 
18080
#    define LT_DLGLOBAL         DL_GLOBAL
 
18081
#  else
 
18082
#    define LT_DLGLOBAL         0
 
18083
#  endif
 
18084
#endif
 
18085
 
 
18086
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18087
   find out it does not work in some platform. */
 
18088
#ifndef LT_DLLAZY_OR_NOW
 
18089
#  ifdef RTLD_LAZY
 
18090
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18091
#  else
 
18092
#    ifdef DL_LAZY
 
18093
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18094
#    else
 
18095
#      ifdef RTLD_NOW
 
18096
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18097
#      else
 
18098
#        ifdef DL_NOW
 
18099
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18100
#        else
 
18101
#          define LT_DLLAZY_OR_NOW      0
 
18102
#        endif
 
18103
#      endif
 
18104
#    endif
 
18105
#  endif
 
18106
#endif
 
18107
 
 
18108
#ifdef __cplusplus
 
18109
extern "C" void exit (int);
 
18110
#endif
 
18111
 
 
18112
void fnord() { int i=42;}
 
18113
int main ()
 
18114
{
 
18115
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18116
  int status = $lt_dlunknown;
 
18117
 
 
18118
  if (self)
 
18119
    {
 
18120
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18121
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18122
      /* dlclose (self); */
 
18123
    }
 
18124
 
 
18125
    exit (status);
 
18126
}
 
18127
EOF
 
18128
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18129
  (eval $ac_link) 2>&5
 
18130
  ac_status=$?
 
18131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18132
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18133
    (./conftest; exit; ) 2>/dev/null
 
18134
    lt_status=$?
 
18135
    case x$lt_status in
 
18136
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
18137
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
18138
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
18139
    esac
 
18140
  else :
 
18141
    # compilation failed
 
18142
    lt_cv_dlopen_self=no
 
18143
  fi
 
18144
fi
 
18145
rm -fr conftest*
 
18146
 
 
18147
 
 
18148
fi
 
18149
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
18150
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
18151
 
 
18152
    if test "x$lt_cv_dlopen_self" = xyes; then
 
18153
      LDFLAGS="$LDFLAGS $link_static_flag"
 
18154
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
18155
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
18156
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
18157
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18158
else
 
18159
          if test "$cross_compiling" = yes; then :
 
18160
  lt_cv_dlopen_self_static=cross
 
18161
else
 
18162
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18163
  lt_status=$lt_dlunknown
 
18164
  cat > conftest.$ac_ext <<EOF
 
18165
#line 18165 "configure"
 
18166
#include "confdefs.h"
 
18167
 
 
18168
#if HAVE_DLFCN_H
 
18169
#include <dlfcn.h>
 
18170
#endif
 
18171
 
 
18172
#include <stdio.h>
 
18173
 
 
18174
#ifdef RTLD_GLOBAL
 
18175
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18176
#else
 
18177
#  ifdef DL_GLOBAL
 
18178
#    define LT_DLGLOBAL         DL_GLOBAL
 
18179
#  else
 
18180
#    define LT_DLGLOBAL         0
 
18181
#  endif
 
18182
#endif
 
18183
 
 
18184
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18185
   find out it does not work in some platform. */
 
18186
#ifndef LT_DLLAZY_OR_NOW
 
18187
#  ifdef RTLD_LAZY
 
18188
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18189
#  else
 
18190
#    ifdef DL_LAZY
 
18191
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18192
#    else
 
18193
#      ifdef RTLD_NOW
 
18194
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18195
#      else
 
18196
#        ifdef DL_NOW
 
18197
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18198
#        else
 
18199
#          define LT_DLLAZY_OR_NOW      0
 
18200
#        endif
 
18201
#      endif
 
18202
#    endif
 
18203
#  endif
 
18204
#endif
 
18205
 
 
18206
#ifdef __cplusplus
 
18207
extern "C" void exit (int);
 
18208
#endif
 
18209
 
 
18210
void fnord() { int i=42;}
 
18211
int main ()
 
18212
{
 
18213
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18214
  int status = $lt_dlunknown;
 
18215
 
 
18216
  if (self)
 
18217
    {
 
18218
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18219
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18220
      /* dlclose (self); */
 
18221
    }
 
18222
 
 
18223
    exit (status);
 
18224
}
 
18225
EOF
 
18226
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18227
  (eval $ac_link) 2>&5
 
18228
  ac_status=$?
 
18229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18230
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18231
    (./conftest; exit; ) 2>/dev/null
 
18232
    lt_status=$?
 
18233
    case x$lt_status in
 
18234
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
18235
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
18236
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
18237
    esac
 
18238
  else :
 
18239
    # compilation failed
 
18240
    lt_cv_dlopen_self_static=no
 
18241
  fi
 
18242
fi
 
18243
rm -fr conftest*
 
18244
 
 
18245
 
 
18246
fi
 
18247
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
18248
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
18249
    fi
 
18250
 
 
18251
    CPPFLAGS="$save_CPPFLAGS"
 
18252
    LDFLAGS="$save_LDFLAGS"
 
18253
    LIBS="$save_LIBS"
 
18254
    ;;
 
18255
  esac
 
18256
 
 
18257
  case $lt_cv_dlopen_self in
 
18258
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
18259
  *) enable_dlopen_self=unknown ;;
 
18260
  esac
 
18261
 
 
18262
  case $lt_cv_dlopen_self_static in
 
18263
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
18264
  *) enable_dlopen_self_static=unknown ;;
 
18265
  esac
 
18266
fi
 
18267
 
 
18268
 
 
18269
# The else clause should only fire when bootstrapping the
 
18270
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18271
# with your package, and you will get complaints that there are
 
18272
# no rules to generate ltmain.sh.
 
18273
if test -f "$ltmain"; then
 
18274
  # See if we are running on zsh, and set the options which allow our commands through
 
18275
  # without removal of \ escapes.
 
18276
  if test -n "${ZSH_VERSION+set}" ; then
 
18277
    setopt NO_GLOB_SUBST
 
18278
  fi
 
18279
  # Now quote all the things that may contain metacharacters while being
 
18280
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18281
  # variables and quote the copies for generation of the libtool script.
 
18282
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18283
    SED SHELL STRIP \
 
18284
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18285
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18286
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18287
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18288
    lt_cv_sys_global_symbol_to_c_name_address \
 
18289
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18290
    old_postinstall_cmds old_postuninstall_cmds \
 
18291
    compiler_GCJ \
 
18292
    CC_GCJ \
 
18293
    LD_GCJ \
 
18294
    lt_prog_compiler_wl_GCJ \
 
18295
    lt_prog_compiler_pic_GCJ \
 
18296
    lt_prog_compiler_static_GCJ \
 
18297
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18298
    export_dynamic_flag_spec_GCJ \
 
18299
    thread_safe_flag_spec_GCJ \
 
18300
    whole_archive_flag_spec_GCJ \
 
18301
    enable_shared_with_static_runtimes_GCJ \
 
18302
    old_archive_cmds_GCJ \
 
18303
    old_archive_from_new_cmds_GCJ \
 
18304
    predep_objects_GCJ \
 
18305
    postdep_objects_GCJ \
 
18306
    predeps_GCJ \
 
18307
    postdeps_GCJ \
 
18308
    compiler_lib_search_path_GCJ \
 
18309
    archive_cmds_GCJ \
 
18310
    archive_expsym_cmds_GCJ \
 
18311
    postinstall_cmds_GCJ \
 
18312
    postuninstall_cmds_GCJ \
 
18313
    old_archive_from_expsyms_cmds_GCJ \
 
18314
    allow_undefined_flag_GCJ \
 
18315
    no_undefined_flag_GCJ \
 
18316
    export_symbols_cmds_GCJ \
 
18317
    hardcode_libdir_flag_spec_GCJ \
 
18318
    hardcode_libdir_flag_spec_ld_GCJ \
 
18319
    hardcode_libdir_separator_GCJ \
 
18320
    hardcode_automatic_GCJ \
 
18321
    module_cmds_GCJ \
 
18322
    module_expsym_cmds_GCJ \
 
18323
    lt_cv_prog_compiler_c_o_GCJ \
 
18324
    exclude_expsyms_GCJ \
 
18325
    include_expsyms_GCJ; do
 
18326
 
 
18327
    case $var in
 
18328
    old_archive_cmds_GCJ | \
 
18329
    old_archive_from_new_cmds_GCJ | \
 
18330
    archive_cmds_GCJ | \
 
18331
    archive_expsym_cmds_GCJ | \
 
18332
    module_cmds_GCJ | \
 
18333
    module_expsym_cmds_GCJ | \
 
18334
    old_archive_from_expsyms_cmds_GCJ | \
 
18335
    export_symbols_cmds_GCJ | \
 
18336
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18337
    postinstall_cmds | postuninstall_cmds | \
 
18338
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18339
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18340
      # Double-quote double-evaled strings.
 
18341
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18342
      ;;
 
18343
    *)
 
18344
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18345
      ;;
 
18346
    esac
 
18347
  done
 
18348
 
 
18349
  case $lt_echo in
 
18350
  *'\$0 --fallback-echo"')
 
18351
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18352
    ;;
 
18353
  esac
 
18354
 
 
18355
cfgfile="$ofile"
 
18356
 
 
18357
  cat <<__EOF__ >> "$cfgfile"
 
18358
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18359
 
 
18360
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18361
 
 
18362
# Shell to use when invoking shell scripts.
 
18363
SHELL=$lt_SHELL
 
18364
 
 
18365
# Whether or not to build shared libraries.
 
18366
build_libtool_libs=$enable_shared
 
18367
 
 
18368
# Whether or not to build static libraries.
 
18369
build_old_libs=$enable_static
 
18370
 
 
18371
# Whether or not to add -lc for building shared libraries.
 
18372
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18373
 
 
18374
# Whether or not to disallow shared libs when runtime libs are static
 
18375
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18376
 
 
18377
# Whether or not to optimize for fast installation.
 
18378
fast_install=$enable_fast_install
 
18379
 
 
18380
# The host system.
 
18381
host_alias=$host_alias
 
18382
host=$host
 
18383
 
 
18384
# An echo program that does not interpret backslashes.
 
18385
echo=$lt_echo
 
18386
 
 
18387
# The archiver.
 
18388
AR=$lt_AR
 
18389
AR_FLAGS=$lt_AR_FLAGS
 
18390
 
 
18391
# A C compiler.
 
18392
LTCC=$lt_LTCC
 
18393
 
 
18394
# A language-specific compiler.
 
18395
CC=$lt_compiler_GCJ
 
18396
 
 
18397
# Is the compiler the GNU C compiler?
 
18398
with_gcc=$GCC_GCJ
 
18399
 
 
18400
# An ERE matcher.
 
18401
EGREP=$lt_EGREP
 
18402
 
 
18403
# The linker used to build libraries.
 
18404
LD=$lt_LD_GCJ
 
18405
 
 
18406
# Whether we need hard or soft links.
 
18407
LN_S=$lt_LN_S
 
18408
 
 
18409
# A BSD-compatible nm program.
 
18410
NM=$lt_NM
 
18411
 
 
18412
# A symbol stripping program
 
18413
STRIP=$lt_STRIP
 
18414
 
 
18415
# Used to examine libraries when file_magic_cmd begins "file"
 
18416
MAGIC_CMD=$MAGIC_CMD
 
18417
 
 
18418
# Used on cygwin: DLL creation program.
 
18419
DLLTOOL="$DLLTOOL"
 
18420
 
 
18421
# Used on cygwin: object dumper.
 
18422
OBJDUMP="$OBJDUMP"
 
18423
 
 
18424
# Used on cygwin: assembler.
 
18425
AS="$AS"
 
18426
 
 
18427
# The name of the directory that contains temporary libtool files.
 
18428
objdir=$objdir
 
18429
 
 
18430
# How to create reloadable object files.
 
18431
reload_flag=$lt_reload_flag
 
18432
reload_cmds=$lt_reload_cmds
 
18433
 
 
18434
# How to pass a linker flag through the compiler.
 
18435
wl=$lt_lt_prog_compiler_wl_GCJ
 
18436
 
 
18437
# Object file suffix (normally "o").
 
18438
objext="$ac_objext"
 
18439
 
 
18440
# Old archive suffix (normally "a").
 
18441
libext="$libext"
 
18442
 
 
18443
# Shared library suffix (normally ".so").
 
18444
shrext='$shrext'
 
18445
 
 
18446
# Executable file suffix (normally "").
 
18447
exeext="$exeext"
 
18448
 
 
18449
# Additional compiler flags for building library objects.
 
18450
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18451
pic_mode=$pic_mode
 
18452
 
 
18453
# What is the maximum length of a command?
 
18454
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18455
 
 
18456
# Does compiler simultaneously support -c and -o options?
 
18457
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18458
 
 
18459
# Must we lock files when doing compilation ?
 
18460
need_locks=$lt_need_locks
 
18461
 
 
18462
# Do we need the lib prefix for modules?
 
18463
need_lib_prefix=$need_lib_prefix
 
18464
 
 
18465
# Do we need a version for libraries?
 
18466
need_version=$need_version
 
18467
 
 
18468
# Whether dlopen is supported.
 
18469
dlopen_support=$enable_dlopen
 
18470
 
 
18471
# Whether dlopen of programs is supported.
 
18472
dlopen_self=$enable_dlopen_self
 
18473
 
 
18474
# Whether dlopen of statically linked programs is supported.
 
18475
dlopen_self_static=$enable_dlopen_self_static
 
18476
 
 
18477
# Compiler flag to prevent dynamic linking.
 
18478
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
18479
 
 
18480
# Compiler flag to turn off builtin functions.
 
18481
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
18482
 
 
18483
# Compiler flag to allow reflexive dlopens.
 
18484
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
18485
 
 
18486
# Compiler flag to generate shared objects directly from archives.
 
18487
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
18488
 
 
18489
# Compiler flag to generate thread-safe objects.
 
18490
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
18491
 
 
18492
# Library versioning type.
 
18493
version_type=$version_type
 
18494
 
 
18495
# Format of library name prefix.
 
18496
libname_spec=$lt_libname_spec
 
18497
 
 
18498
# List of archive names.  First name is the real one, the rest are links.
 
18499
# The last name is the one that the linker finds with -lNAME.
 
18500
library_names_spec=$lt_library_names_spec
 
18501
 
 
18502
# The coded name of the library, if different from the real name.
 
18503
soname_spec=$lt_soname_spec
 
18504
 
 
18505
# Commands used to build and install an old-style archive.
 
18506
RANLIB=$lt_RANLIB
 
18507
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
18508
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18509
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18510
 
 
18511
# Create an old-style archive from a shared archive.
 
18512
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
18513
 
 
18514
# Create a temporary old-style archive to link instead of a shared archive.
 
18515
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
18516
 
 
18517
# Commands used to build and install a shared archive.
 
18518
archive_cmds=$lt_archive_cmds_GCJ
 
18519
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
18520
postinstall_cmds=$lt_postinstall_cmds
 
18521
postuninstall_cmds=$lt_postuninstall_cmds
 
18522
 
 
18523
# Commands used to build a loadable module (assumed same as above if empty)
 
18524
module_cmds=$lt_module_cmds_GCJ
 
18525
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
18526
 
 
18527
# Commands to strip libraries.
 
18528
old_striplib=$lt_old_striplib
 
18529
striplib=$lt_striplib
 
18530
 
 
18531
# Dependencies to place before the objects being linked to create a
 
18532
# shared library.
 
18533
predep_objects=$lt_predep_objects_GCJ
 
18534
 
 
18535
# Dependencies to place after the objects being linked to create a
 
18536
# shared library.
 
18537
postdep_objects=$lt_postdep_objects_GCJ
 
18538
 
 
18539
# Dependencies to place before the objects being linked to create a
 
18540
# shared library.
 
18541
predeps=$lt_predeps_GCJ
 
18542
 
 
18543
# Dependencies to place after the objects being linked to create a
 
18544
# shared library.
 
18545
postdeps=$lt_postdeps_GCJ
 
18546
 
 
18547
# The library search path used internally by the compiler when linking
 
18548
# a shared library.
 
18549
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18550
 
 
18551
# Method to check whether dependent libraries are shared objects.
 
18552
deplibs_check_method=$lt_deplibs_check_method
 
18553
 
 
18554
# Command to use when deplibs_check_method == file_magic.
 
18555
file_magic_cmd=$lt_file_magic_cmd
 
18556
 
 
18557
# Flag that allows shared libraries with undefined symbols to be built.
 
18558
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
18559
 
 
18560
# Flag that forces no undefined symbols.
 
18561
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
18562
 
 
18563
# Commands used to finish a libtool library installation in a directory.
 
18564
finish_cmds=$lt_finish_cmds
 
18565
 
 
18566
# Same as above, but a single script fragment to be evaled but not shown.
 
18567
finish_eval=$lt_finish_eval
 
18568
 
 
18569
# Take the output of nm and produce a listing of raw symbols and C names.
 
18570
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18571
 
 
18572
# Transform the output of nm in a proper C declaration
 
18573
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18574
 
 
18575
# Transform the output of nm in a C name address pair
 
18576
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18577
 
 
18578
# This is the shared library runtime path variable.
 
18579
runpath_var=$runpath_var
 
18580
 
 
18581
# This is the shared library path variable.
 
18582
shlibpath_var=$shlibpath_var
 
18583
 
 
18584
# Is shlibpath searched before the hard-coded library search path?
 
18585
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18586
 
 
18587
# How to hardcode a shared library path into an executable.
 
18588
hardcode_action=$hardcode_action_GCJ
 
18589
 
 
18590
# Whether we should hardcode library paths into libraries.
 
18591
hardcode_into_libs=$hardcode_into_libs
 
18592
 
 
18593
# Flag to hardcode \$libdir into a binary during linking.
 
18594
# This must work even if \$libdir does not exist.
 
18595
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
18596
 
 
18597
# If ld is used when linking, flag to hardcode \$libdir into
 
18598
# a binary during linking. This must work even if \$libdir does
 
18599
# not exist.
 
18600
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
18601
 
 
18602
# Whether we need a single -rpath flag with a separated argument.
 
18603
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
18604
 
 
18605
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18606
# resulting binary.
 
18607
hardcode_direct=$hardcode_direct_GCJ
 
18608
 
 
18609
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18610
# resulting binary.
 
18611
hardcode_minus_L=$hardcode_minus_L_GCJ
 
18612
 
 
18613
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18614
# the resulting binary.
 
18615
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
18616
 
 
18617
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18618
# and all subsequent libraries and executables linked against it.
 
18619
hardcode_automatic=$hardcode_automatic_GCJ
 
18620
 
 
18621
# Variables whose values should be saved in libtool wrapper scripts and
 
18622
# restored at relink time.
 
18623
variables_saved_for_relink="$variables_saved_for_relink"
 
18624
 
 
18625
# Whether libtool must link a program against all its dependency libraries.
 
18626
link_all_deplibs=$link_all_deplibs_GCJ
 
18627
 
 
18628
# Compile-time system search path for libraries
 
18629
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18630
 
 
18631
# Run-time system search path for libraries
 
18632
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18633
 
 
18634
# Fix the shell variable \$srcfile for the compiler.
 
18635
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
18636
 
 
18637
# Set to yes if exported symbols are required.
 
18638
always_export_symbols=$always_export_symbols_GCJ
 
18639
 
 
18640
# The commands to list exported symbols.
 
18641
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
18642
 
 
18643
# The commands to extract the exported symbol list from a shared archive.
 
18644
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18645
 
 
18646
# Symbols that should not be listed in the preloaded symbols.
 
18647
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
18648
 
 
18649
# Symbols that must always be exported.
 
18650
include_expsyms=$lt_include_expsyms_GCJ
 
18651
 
 
18652
# ### END LIBTOOL TAG CONFIG: $tagname
 
18653
 
 
18654
__EOF__
 
18655
 
 
18656
 
 
18657
else
 
18658
  # If there is no Makefile yet, we rely on a make rule to execute
 
18659
  # `config.status --recheck' to rerun these tests and create the
 
18660
  # libtool script then.
 
18661
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18662
  if test -f "$ltmain_in"; then
 
18663
    test -f Makefile && make "$ltmain"
 
18664
  fi
 
18665
fi
 
18666
 
 
18667
 
 
18668
ac_ext=c
 
18669
ac_cpp='$CPP $CPPFLAGS'
 
18670
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18671
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18672
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18673
 
 
18674
CC="$lt_save_CC"
 
18675
 
 
18676
        else
 
18677
          tagname=""
 
18678
        fi
 
18679
        ;;
 
18680
 
 
18681
      RC)
 
18682
 
 
18683
 
 
18684
 
 
18685
# Source file extension for RC test sources.
 
18686
ac_ext=rc
 
18687
 
 
18688
# Object file extension for compiled RC test sources.
 
18689
objext=o
 
18690
objext_RC=$objext
 
18691
 
 
18692
# Code to be used in simple compile tests
 
18693
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
18694
 
 
18695
# Code to be used in simple link tests
 
18696
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
18697
 
 
18698
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18699
 
 
18700
# If no C compiler was specified, use CC.
 
18701
LTCC=${LTCC-"$CC"}
 
18702
 
 
18703
# Allow CC to be a program name with arguments.
 
18704
compiler=$CC
 
18705
 
 
18706
 
 
18707
# Allow CC to be a program name with arguments.
 
18708
lt_save_CC="$CC"
 
18709
CC=${RC-"windres"}
 
18710
compiler=$CC
 
18711
compiler_RC=$CC
 
18712
lt_cv_prog_compiler_c_o_RC=yes
 
18713
 
 
18714
# The else clause should only fire when bootstrapping the
 
18715
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18716
# with your package, and you will get complaints that there are
 
18717
# no rules to generate ltmain.sh.
 
18718
if test -f "$ltmain"; then
 
18719
  # See if we are running on zsh, and set the options which allow our commands through
 
18720
  # without removal of \ escapes.
 
18721
  if test -n "${ZSH_VERSION+set}" ; then
 
18722
    setopt NO_GLOB_SUBST
 
18723
  fi
 
18724
  # Now quote all the things that may contain metacharacters while being
 
18725
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18726
  # variables and quote the copies for generation of the libtool script.
 
18727
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18728
    SED SHELL STRIP \
 
18729
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18730
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18731
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18732
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18733
    lt_cv_sys_global_symbol_to_c_name_address \
 
18734
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18735
    old_postinstall_cmds old_postuninstall_cmds \
 
18736
    compiler_RC \
 
18737
    CC_RC \
 
18738
    LD_RC \
 
18739
    lt_prog_compiler_wl_RC \
 
18740
    lt_prog_compiler_pic_RC \
 
18741
    lt_prog_compiler_static_RC \
 
18742
    lt_prog_compiler_no_builtin_flag_RC \
 
18743
    export_dynamic_flag_spec_RC \
 
18744
    thread_safe_flag_spec_RC \
 
18745
    whole_archive_flag_spec_RC \
 
18746
    enable_shared_with_static_runtimes_RC \
 
18747
    old_archive_cmds_RC \
 
18748
    old_archive_from_new_cmds_RC \
 
18749
    predep_objects_RC \
 
18750
    postdep_objects_RC \
 
18751
    predeps_RC \
 
18752
    postdeps_RC \
 
18753
    compiler_lib_search_path_RC \
 
18754
    archive_cmds_RC \
 
18755
    archive_expsym_cmds_RC \
 
18756
    postinstall_cmds_RC \
 
18757
    postuninstall_cmds_RC \
 
18758
    old_archive_from_expsyms_cmds_RC \
 
18759
    allow_undefined_flag_RC \
 
18760
    no_undefined_flag_RC \
 
18761
    export_symbols_cmds_RC \
 
18762
    hardcode_libdir_flag_spec_RC \
 
18763
    hardcode_libdir_flag_spec_ld_RC \
 
18764
    hardcode_libdir_separator_RC \
 
18765
    hardcode_automatic_RC \
 
18766
    module_cmds_RC \
 
18767
    module_expsym_cmds_RC \
 
18768
    lt_cv_prog_compiler_c_o_RC \
 
18769
    exclude_expsyms_RC \
 
18770
    include_expsyms_RC; do
 
18771
 
 
18772
    case $var in
 
18773
    old_archive_cmds_RC | \
 
18774
    old_archive_from_new_cmds_RC | \
 
18775
    archive_cmds_RC | \
 
18776
    archive_expsym_cmds_RC | \
 
18777
    module_cmds_RC | \
 
18778
    module_expsym_cmds_RC | \
 
18779
    old_archive_from_expsyms_cmds_RC | \
 
18780
    export_symbols_cmds_RC | \
 
18781
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18782
    postinstall_cmds | postuninstall_cmds | \
 
18783
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18784
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18785
      # Double-quote double-evaled strings.
 
18786
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18787
      ;;
 
18788
    *)
 
18789
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18790
      ;;
 
18791
    esac
 
18792
  done
 
18793
 
 
18794
  case $lt_echo in
 
18795
  *'\$0 --fallback-echo"')
 
18796
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18797
    ;;
 
18798
  esac
 
18799
 
 
18800
cfgfile="$ofile"
 
18801
 
 
18802
  cat <<__EOF__ >> "$cfgfile"
 
18803
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18804
 
 
18805
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18806
 
 
18807
# Shell to use when invoking shell scripts.
 
18808
SHELL=$lt_SHELL
 
18809
 
 
18810
# Whether or not to build shared libraries.
 
18811
build_libtool_libs=$enable_shared
 
18812
 
 
18813
# Whether or not to build static libraries.
 
18814
build_old_libs=$enable_static
 
18815
 
 
18816
# Whether or not to add -lc for building shared libraries.
 
18817
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
18818
 
 
18819
# Whether or not to disallow shared libs when runtime libs are static
 
18820
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
18821
 
 
18822
# Whether or not to optimize for fast installation.
 
18823
fast_install=$enable_fast_install
 
18824
 
 
18825
# The host system.
 
18826
host_alias=$host_alias
 
18827
host=$host
 
18828
 
 
18829
# An echo program that does not interpret backslashes.
 
18830
echo=$lt_echo
 
18831
 
 
18832
# The archiver.
 
18833
AR=$lt_AR
 
18834
AR_FLAGS=$lt_AR_FLAGS
 
18835
 
 
18836
# A C compiler.
 
18837
LTCC=$lt_LTCC
 
18838
 
 
18839
# A language-specific compiler.
 
18840
CC=$lt_compiler_RC
 
18841
 
 
18842
# Is the compiler the GNU C compiler?
 
18843
with_gcc=$GCC_RC
 
18844
 
 
18845
# An ERE matcher.
 
18846
EGREP=$lt_EGREP
 
18847
 
 
18848
# The linker used to build libraries.
 
18849
LD=$lt_LD_RC
 
18850
 
 
18851
# Whether we need hard or soft links.
 
18852
LN_S=$lt_LN_S
 
18853
 
 
18854
# A BSD-compatible nm program.
 
18855
NM=$lt_NM
 
18856
 
 
18857
# A symbol stripping program
 
18858
STRIP=$lt_STRIP
 
18859
 
 
18860
# Used to examine libraries when file_magic_cmd begins "file"
 
18861
MAGIC_CMD=$MAGIC_CMD
 
18862
 
 
18863
# Used on cygwin: DLL creation program.
 
18864
DLLTOOL="$DLLTOOL"
 
18865
 
 
18866
# Used on cygwin: object dumper.
 
18867
OBJDUMP="$OBJDUMP"
 
18868
 
 
18869
# Used on cygwin: assembler.
 
18870
AS="$AS"
 
18871
 
 
18872
# The name of the directory that contains temporary libtool files.
 
18873
objdir=$objdir
 
18874
 
 
18875
# How to create reloadable object files.
 
18876
reload_flag=$lt_reload_flag
 
18877
reload_cmds=$lt_reload_cmds
 
18878
 
 
18879
# How to pass a linker flag through the compiler.
 
18880
wl=$lt_lt_prog_compiler_wl_RC
 
18881
 
 
18882
# Object file suffix (normally "o").
 
18883
objext="$ac_objext"
 
18884
 
 
18885
# Old archive suffix (normally "a").
 
18886
libext="$libext"
 
18887
 
 
18888
# Shared library suffix (normally ".so").
 
18889
shrext='$shrext'
 
18890
 
 
18891
# Executable file suffix (normally "").
 
18892
exeext="$exeext"
 
18893
 
 
18894
# Additional compiler flags for building library objects.
 
18895
pic_flag=$lt_lt_prog_compiler_pic_RC
 
18896
pic_mode=$pic_mode
 
18897
 
 
18898
# What is the maximum length of a command?
 
18899
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18900
 
 
18901
# Does compiler simultaneously support -c and -o options?
 
18902
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
18903
 
 
18904
# Must we lock files when doing compilation ?
 
18905
need_locks=$lt_need_locks
 
18906
 
 
18907
# Do we need the lib prefix for modules?
 
18908
need_lib_prefix=$need_lib_prefix
 
18909
 
 
18910
# Do we need a version for libraries?
 
18911
need_version=$need_version
 
18912
 
 
18913
# Whether dlopen is supported.
 
18914
dlopen_support=$enable_dlopen
 
18915
 
 
18916
# Whether dlopen of programs is supported.
 
18917
dlopen_self=$enable_dlopen_self
 
18918
 
 
18919
# Whether dlopen of statically linked programs is supported.
 
18920
dlopen_self_static=$enable_dlopen_self_static
 
18921
 
 
18922
# Compiler flag to prevent dynamic linking.
 
18923
link_static_flag=$lt_lt_prog_compiler_static_RC
 
18924
 
 
18925
# Compiler flag to turn off builtin functions.
 
18926
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
18927
 
 
18928
# Compiler flag to allow reflexive dlopens.
 
18929
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
18930
 
 
18931
# Compiler flag to generate shared objects directly from archives.
 
18932
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
18933
 
 
18934
# Compiler flag to generate thread-safe objects.
 
18935
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
18936
 
 
18937
# Library versioning type.
 
18938
version_type=$version_type
 
18939
 
 
18940
# Format of library name prefix.
 
18941
libname_spec=$lt_libname_spec
 
18942
 
 
18943
# List of archive names.  First name is the real one, the rest are links.
 
18944
# The last name is the one that the linker finds with -lNAME.
 
18945
library_names_spec=$lt_library_names_spec
 
18946
 
 
18947
# The coded name of the library, if different from the real name.
 
18948
soname_spec=$lt_soname_spec
 
18949
 
 
18950
# Commands used to build and install an old-style archive.
 
18951
RANLIB=$lt_RANLIB
 
18952
old_archive_cmds=$lt_old_archive_cmds_RC
 
18953
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18954
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18955
 
 
18956
# Create an old-style archive from a shared archive.
 
18957
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
18958
 
 
18959
# Create a temporary old-style archive to link instead of a shared archive.
 
18960
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
18961
 
 
18962
# Commands used to build and install a shared archive.
 
18963
archive_cmds=$lt_archive_cmds_RC
 
18964
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
18965
postinstall_cmds=$lt_postinstall_cmds
 
18966
postuninstall_cmds=$lt_postuninstall_cmds
 
18967
 
 
18968
# Commands used to build a loadable module (assumed same as above if empty)
 
18969
module_cmds=$lt_module_cmds_RC
 
18970
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
18971
 
 
18972
# Commands to strip libraries.
 
18973
old_striplib=$lt_old_striplib
 
18974
striplib=$lt_striplib
 
18975
 
 
18976
# Dependencies to place before the objects being linked to create a
 
18977
# shared library.
 
18978
predep_objects=$lt_predep_objects_RC
 
18979
 
 
18980
# Dependencies to place after the objects being linked to create a
 
18981
# shared library.
 
18982
postdep_objects=$lt_postdep_objects_RC
 
18983
 
 
18984
# Dependencies to place before the objects being linked to create a
 
18985
# shared library.
 
18986
predeps=$lt_predeps_RC
 
18987
 
 
18988
# Dependencies to place after the objects being linked to create a
 
18989
# shared library.
 
18990
postdeps=$lt_postdeps_RC
 
18991
 
 
18992
# The library search path used internally by the compiler when linking
 
18993
# a shared library.
 
18994
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
18995
 
 
18996
# Method to check whether dependent libraries are shared objects.
 
18997
deplibs_check_method=$lt_deplibs_check_method
 
18998
 
 
18999
# Command to use when deplibs_check_method == file_magic.
 
19000
file_magic_cmd=$lt_file_magic_cmd
 
19001
 
 
19002
# Flag that allows shared libraries with undefined symbols to be built.
 
19003
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19004
 
 
19005
# Flag that forces no undefined symbols.
 
19006
no_undefined_flag=$lt_no_undefined_flag_RC
 
19007
 
 
19008
# Commands used to finish a libtool library installation in a directory.
 
19009
finish_cmds=$lt_finish_cmds
 
19010
 
 
19011
# Same as above, but a single script fragment to be evaled but not shown.
 
19012
finish_eval=$lt_finish_eval
 
19013
 
 
19014
# Take the output of nm and produce a listing of raw symbols and C names.
 
19015
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19016
 
 
19017
# Transform the output of nm in a proper C declaration
 
19018
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19019
 
 
19020
# Transform the output of nm in a C name address pair
 
19021
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19022
 
 
19023
# This is the shared library runtime path variable.
 
19024
runpath_var=$runpath_var
 
19025
 
 
19026
# This is the shared library path variable.
 
19027
shlibpath_var=$shlibpath_var
 
19028
 
 
19029
# Is shlibpath searched before the hard-coded library search path?
 
19030
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19031
 
 
19032
# How to hardcode a shared library path into an executable.
 
19033
hardcode_action=$hardcode_action_RC
 
19034
 
 
19035
# Whether we should hardcode library paths into libraries.
 
19036
hardcode_into_libs=$hardcode_into_libs
 
19037
 
 
19038
# Flag to hardcode \$libdir into a binary during linking.
 
19039
# This must work even if \$libdir does not exist.
 
19040
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19041
 
 
19042
# If ld is used when linking, flag to hardcode \$libdir into
 
19043
# a binary during linking. This must work even if \$libdir does
 
19044
# not exist.
 
19045
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19046
 
 
19047
# Whether we need a single -rpath flag with a separated argument.
 
19048
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19049
 
 
19050
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19051
# resulting binary.
 
19052
hardcode_direct=$hardcode_direct_RC
 
19053
 
 
19054
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19055
# resulting binary.
 
19056
hardcode_minus_L=$hardcode_minus_L_RC
 
19057
 
 
19058
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19059
# the resulting binary.
 
19060
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19061
 
 
19062
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19063
# and all subsequent libraries and executables linked against it.
 
19064
hardcode_automatic=$hardcode_automatic_RC
 
19065
 
 
19066
# Variables whose values should be saved in libtool wrapper scripts and
 
19067
# restored at relink time.
 
19068
variables_saved_for_relink="$variables_saved_for_relink"
 
19069
 
 
19070
# Whether libtool must link a program against all its dependency libraries.
 
19071
link_all_deplibs=$link_all_deplibs_RC
 
19072
 
 
19073
# Compile-time system search path for libraries
 
19074
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19075
 
 
19076
# Run-time system search path for libraries
 
19077
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19078
 
 
19079
# Fix the shell variable \$srcfile for the compiler.
 
19080
fix_srcfile_path="$fix_srcfile_path_RC"
 
19081
 
 
19082
# Set to yes if exported symbols are required.
 
19083
always_export_symbols=$always_export_symbols_RC
 
19084
 
 
19085
# The commands to list exported symbols.
 
19086
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19087
 
 
19088
# The commands to extract the exported symbol list from a shared archive.
 
19089
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19090
 
 
19091
# Symbols that should not be listed in the preloaded symbols.
 
19092
exclude_expsyms=$lt_exclude_expsyms_RC
 
19093
 
 
19094
# Symbols that must always be exported.
 
19095
include_expsyms=$lt_include_expsyms_RC
 
19096
 
 
19097
# ### END LIBTOOL TAG CONFIG: $tagname
 
19098
 
 
19099
__EOF__
 
19100
 
 
19101
 
 
19102
else
 
19103
  # If there is no Makefile yet, we rely on a make rule to execute
 
19104
  # `config.status --recheck' to rerun these tests and create the
 
19105
  # libtool script then.
 
19106
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19107
  if test -f "$ltmain_in"; then
 
19108
    test -f Makefile && make "$ltmain"
 
19109
  fi
 
19110
fi
 
19111
 
 
19112
 
 
19113
ac_ext=c
 
19114
ac_cpp='$CPP $CPPFLAGS'
 
19115
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19116
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19117
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19118
 
 
19119
CC="$lt_save_CC"
 
19120
 
 
19121
        ;;
 
19122
 
 
19123
      *)
 
19124
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19125
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19126
   { (exit 1); exit 1; }; }
 
19127
        ;;
 
19128
      esac
 
19129
 
 
19130
      # Append the new tag name to the list of available tags.
 
19131
      if test -n "$tagname" ; then
 
19132
      available_tags="$available_tags $tagname"
 
19133
    fi
 
19134
    fi
 
19135
  done
 
19136
  IFS="$lt_save_ifs"
 
19137
 
 
19138
  # Now substitute the updated list of available tags.
 
19139
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19140
    mv "${ofile}T" "$ofile"
 
19141
    chmod +x "$ofile"
 
19142
  else
 
19143
    rm -f "${ofile}T"
 
19144
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19145
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19146
   { (exit 1); exit 1; }; }
 
19147
  fi
 
19148
fi
 
19149
 
 
19150
 
 
19151
 
 
19152
# This can be used to rebuild libtool when needed
 
19153
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19154
 
 
19155
# Always use our own libtool.
 
19156
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19157
 
 
19158
# Prevent multiple expansion
 
19159
 
 
19160
 
 
19161
 
 
19162
 
 
19163
 
 
19164
 
 
19165
 
 
19166
 
 
19167
 
 
19168
 
 
19169
 
 
19170
 
 
19171
 
 
19172
 
 
19173
 
 
19174
 
 
19175
 
 
19176
 
 
19177
 
 
19178
 
 
19179
 
 
19180
                test "x$PERL" = x && # Extract the first word of "perl$EXEEXT", so it can be a program name with args.
 
19181
set dummy perl$EXEEXT; ac_word=$2
 
19182
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19183
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19184
if test "${ac_cv_path_PERL+set}" = set; then
 
19185
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19186
else
 
19187
  case $PERL in
 
19188
  [\\/]* | ?:[\\/]*)
 
19189
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
 
19190
  ;;
 
19191
  *)
 
19192
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19193
for as_dir in $PATH
 
19194
do
 
19195
  IFS=$as_save_IFS
 
19196
  test -z "$as_dir" && as_dir=.
 
19197
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19198
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19199
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
 
19200
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19201
    break 2
 
19202
  fi
 
19203
done
 
19204
done
 
19205
 
 
19206
  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl$EXEEXT"
 
19207
  ;;
 
19208
esac
 
19209
fi
 
19210
PERL=$ac_cv_path_PERL
 
19211
 
 
19212
if test -n "$PERL"; then
 
19213
  echo "$as_me:$LINENO: result: $PERL" >&5
 
19214
echo "${ECHO_T}$PERL" >&6
 
19215
else
 
19216
  echo "$as_me:$LINENO: result: no" >&5
 
19217
echo "${ECHO_T}no" >&6
 
19218
fi
 
19219
 
 
19220
        test "x$PERL" = x && { { echo "$as_me:$LINENO: error: no acceptable Perl found in \$PATH" >&5
 
19221
echo "$as_me: error: no acceptable Perl found in \$PATH" >&2;}
 
19222
   { (exit 1); exit 1; }; }
 
19223
 
 
19224
 
 
19225
test x$GREP = x && # Extract the first word of "grep$EXEEXT", so it can be a program name with args.
 
19226
set dummy grep$EXEEXT; ac_word=$2
 
19227
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19228
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19229
if test "${ac_cv_path_GREP+set}" = set; then
 
19230
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19231
else
 
19232
  case $GREP in
 
19233
  [\\/]* | ?:[\\/]*)
 
19234
  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
 
19235
  ;;
 
19236
  *)
 
19237
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19238
for as_dir in $PATH
 
19239
do
 
19240
  IFS=$as_save_IFS
 
19241
  test -z "$as_dir" && as_dir=.
 
19242
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19243
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19244
    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
 
19245
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19246
    break 2
 
19247
  fi
 
19248
done
 
19249
done
 
19250
 
 
19251
  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep$EXEEXT"
 
19252
  ;;
 
19253
esac
 
19254
fi
 
19255
GREP=$ac_cv_path_GREP
 
19256
 
 
19257
if test -n "$GREP"; then
 
19258
  echo "$as_me:$LINENO: result: $GREP" >&5
 
19259
echo "${ECHO_T}$GREP" >&6
 
19260
else
 
19261
  echo "$as_me:$LINENO: result: no" >&5
 
19262
echo "${ECHO_T}no" >&6
 
19263
fi
 
19264
 
 
19265
test x$GREP = x && { { echo "$as_me:$LINENO: error: no acceptable grep found in \$PATH" >&5
 
19266
echo "$as_me: error: no acceptable grep found in \$PATH" >&2;}
 
19267
   { (exit 1); exit 1; }; }
 
19268
 
 
19269
 
 
19270
test x$PS = x && # Extract the first word of "ps$EXEEXT", so it can be a program name with args.
 
19271
set dummy ps$EXEEXT; ac_word=$2
 
19272
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19273
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19274
if test "${ac_cv_path_PS+set}" = set; then
 
19275
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19276
else
 
19277
  case $PS in
 
19278
  [\\/]* | ?:[\\/]*)
 
19279
  ac_cv_path_PS="$PS" # Let the user override the test with a path.
 
19280
  ;;
 
19281
  *)
 
19282
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19283
for as_dir in $PATH
 
19284
do
 
19285
  IFS=$as_save_IFS
 
19286
  test -z "$as_dir" && as_dir=.
 
19287
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19288
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19289
    ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
 
19290
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19291
    break 2
 
19292
  fi
 
19293
done
 
19294
done
 
19295
 
 
19296
  test -z "$ac_cv_path_PS" && ac_cv_path_PS="ps$EXEEXT"
 
19297
  ;;
 
19298
esac
 
19299
fi
 
19300
PS=$ac_cv_path_PS
 
19301
 
 
19302
if test -n "$PS"; then
 
19303
  echo "$as_me:$LINENO: result: $PS" >&5
 
19304
echo "${ECHO_T}$PS" >&6
 
19305
else
 
19306
  echo "$as_me:$LINENO: result: no" >&5
 
19307
echo "${ECHO_T}no" >&6
 
19308
fi
 
19309
 
 
19310
test x$PS = x && { { echo "$as_me:$LINENO: error: no acceptable ps found in \$PATH" >&5
 
19311
echo "$as_me: error: no acceptable ps found in \$PATH" >&2;}
 
19312
   { (exit 1); exit 1; }; }
 
19313
 
 
19314
 
 
19315
 
 
19316
 
 
19317
echo "$as_me:$LINENO: checking for main in -labs" >&5
 
19318
echo $ECHO_N "checking for main in -labs... $ECHO_C" >&6
 
19319
if test "${ac_cv_lib_abs_main+set}" = set; then
 
19320
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19321
else
 
19322
  ac_check_lib_save_LIBS=$LIBS
 
19323
LIBS="-labs  $LIBS"
 
19324
cat >conftest.$ac_ext <<_ACEOF
 
19325
/* confdefs.h.  */
 
19326
_ACEOF
 
19327
cat confdefs.h >>conftest.$ac_ext
 
19328
cat >>conftest.$ac_ext <<_ACEOF
 
19329
/* end confdefs.h.  */
 
19330
 
 
19331
 
 
19332
int
 
19333
main ()
 
19334
{
 
19335
main ();
 
19336
  ;
 
19337
  return 0;
 
19338
}
 
19339
_ACEOF
 
19340
rm -f conftest.$ac_objext conftest$ac_exeext
 
19341
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19342
  (eval $ac_link) 2>conftest.er1
 
19343
  ac_status=$?
 
19344
  grep -v '^ *+' conftest.er1 >conftest.err
 
19345
  rm -f conftest.er1
 
19346
  cat conftest.err >&5
 
19347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19348
  (exit $ac_status); } &&
 
19349
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19350
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19351
  (eval $ac_try) 2>&5
 
19352
  ac_status=$?
 
19353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19354
  (exit $ac_status); }; } &&
 
19355
         { ac_try='test -s conftest$ac_exeext'
 
19356
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19357
  (eval $ac_try) 2>&5
 
19358
  ac_status=$?
 
19359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19360
  (exit $ac_status); }; }; then
 
19361
  ac_cv_lib_abs_main=yes
 
19362
else
 
19363
  echo "$as_me: failed program was:" >&5
 
19364
sed 's/^/| /' conftest.$ac_ext >&5
 
19365
 
 
19366
ac_cv_lib_abs_main=no
 
19367
fi
 
19368
rm -f conftest.err conftest.$ac_objext \
 
19369
      conftest$ac_exeext conftest.$ac_ext
 
19370
LIBS=$ac_check_lib_save_LIBS
 
19371
fi
 
19372
echo "$as_me:$LINENO: result: $ac_cv_lib_abs_main" >&5
 
19373
echo "${ECHO_T}$ac_cv_lib_abs_main" >&6
 
19374
if test $ac_cv_lib_abs_main = yes; then
 
19375
  cat >>confdefs.h <<_ACEOF
 
19376
#define HAVE_LIBABS 1
 
19377
_ACEOF
 
19378
 
 
19379
  LIBS="-labs $LIBS"
 
19380
 
 
19381
fi
 
19382
 
 
19383
 
 
19384
echo "$as_me:$LINENO: checking for main in -laudit" >&5
 
19385
echo $ECHO_N "checking for main in -laudit... $ECHO_C" >&6
 
19386
if test "${ac_cv_lib_audit_main+set}" = set; then
 
19387
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19388
else
 
19389
  ac_check_lib_save_LIBS=$LIBS
 
19390
LIBS="-laudit  $LIBS"
 
19391
cat >conftest.$ac_ext <<_ACEOF
 
19392
/* confdefs.h.  */
 
19393
_ACEOF
 
19394
cat confdefs.h >>conftest.$ac_ext
 
19395
cat >>conftest.$ac_ext <<_ACEOF
 
19396
/* end confdefs.h.  */
 
19397
 
 
19398
 
 
19399
int
 
19400
main ()
 
19401
{
 
19402
main ();
 
19403
  ;
 
19404
  return 0;
 
19405
}
 
19406
_ACEOF
 
19407
rm -f conftest.$ac_objext conftest$ac_exeext
 
19408
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19409
  (eval $ac_link) 2>conftest.er1
 
19410
  ac_status=$?
 
19411
  grep -v '^ *+' conftest.er1 >conftest.err
 
19412
  rm -f conftest.er1
 
19413
  cat conftest.err >&5
 
19414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19415
  (exit $ac_status); } &&
 
19416
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19417
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19418
  (eval $ac_try) 2>&5
 
19419
  ac_status=$?
 
19420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19421
  (exit $ac_status); }; } &&
 
19422
         { ac_try='test -s conftest$ac_exeext'
 
19423
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19424
  (eval $ac_try) 2>&5
 
19425
  ac_status=$?
 
19426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19427
  (exit $ac_status); }; }; then
 
19428
  ac_cv_lib_audit_main=yes
 
19429
else
 
19430
  echo "$as_me: failed program was:" >&5
 
19431
sed 's/^/| /' conftest.$ac_ext >&5
 
19432
 
 
19433
ac_cv_lib_audit_main=no
 
19434
fi
 
19435
rm -f conftest.err conftest.$ac_objext \
 
19436
      conftest$ac_exeext conftest.$ac_ext
 
19437
LIBS=$ac_check_lib_save_LIBS
 
19438
fi
 
19439
echo "$as_me:$LINENO: result: $ac_cv_lib_audit_main" >&5
 
19440
echo "${ECHO_T}$ac_cv_lib_audit_main" >&6
 
19441
if test $ac_cv_lib_audit_main = yes; then
 
19442
  cat >>confdefs.h <<_ACEOF
 
19443
#define HAVE_LIBAUDIT 1
 
19444
_ACEOF
 
19445
 
 
19446
  LIBS="-laudit $LIBS"
 
19447
 
 
19448
fi
 
19449
 
 
19450
 
 
19451
echo "$as_me:$LINENO: checking for main in -lauth" >&5
 
19452
echo $ECHO_N "checking for main in -lauth... $ECHO_C" >&6
 
19453
if test "${ac_cv_lib_auth_main+set}" = set; then
 
19454
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19455
else
 
19456
  ac_check_lib_save_LIBS=$LIBS
 
19457
LIBS="-lauth  $LIBS"
 
19458
cat >conftest.$ac_ext <<_ACEOF
 
19459
/* confdefs.h.  */
 
19460
_ACEOF
 
19461
cat confdefs.h >>conftest.$ac_ext
 
19462
cat >>conftest.$ac_ext <<_ACEOF
 
19463
/* end confdefs.h.  */
 
19464
 
 
19465
 
 
19466
int
 
19467
main ()
 
19468
{
 
19469
main ();
 
19470
  ;
 
19471
  return 0;
 
19472
}
 
19473
_ACEOF
 
19474
rm -f conftest.$ac_objext conftest$ac_exeext
 
19475
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19476
  (eval $ac_link) 2>conftest.er1
 
19477
  ac_status=$?
 
19478
  grep -v '^ *+' conftest.er1 >conftest.err
 
19479
  rm -f conftest.er1
 
19480
  cat conftest.err >&5
 
19481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19482
  (exit $ac_status); } &&
 
19483
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19484
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19485
  (eval $ac_try) 2>&5
 
19486
  ac_status=$?
 
19487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19488
  (exit $ac_status); }; } &&
 
19489
         { ac_try='test -s conftest$ac_exeext'
 
19490
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19491
  (eval $ac_try) 2>&5
 
19492
  ac_status=$?
 
19493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19494
  (exit $ac_status); }; }; then
 
19495
  ac_cv_lib_auth_main=yes
 
19496
else
 
19497
  echo "$as_me: failed program was:" >&5
 
19498
sed 's/^/| /' conftest.$ac_ext >&5
 
19499
 
 
19500
ac_cv_lib_auth_main=no
 
19501
fi
 
19502
rm -f conftest.err conftest.$ac_objext \
 
19503
      conftest$ac_exeext conftest.$ac_ext
 
19504
LIBS=$ac_check_lib_save_LIBS
 
19505
fi
 
19506
echo "$as_me:$LINENO: result: $ac_cv_lib_auth_main" >&5
 
19507
echo "${ECHO_T}$ac_cv_lib_auth_main" >&6
 
19508
if test $ac_cv_lib_auth_main = yes; then
 
19509
  cat >>confdefs.h <<_ACEOF
 
19510
#define HAVE_LIBAUTH 1
 
19511
_ACEOF
 
19512
 
 
19513
  LIBS="-lauth $LIBS"
 
19514
 
 
19515
fi
 
19516
 
 
19517
 
 
19518
echo "$as_me:$LINENO: checking for main in -lcmd" >&5
 
19519
echo $ECHO_N "checking for main in -lcmd... $ECHO_C" >&6
 
19520
if test "${ac_cv_lib_cmd_main+set}" = set; then
 
19521
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19522
else
 
19523
  ac_check_lib_save_LIBS=$LIBS
 
19524
LIBS="-lcmd  $LIBS"
 
19525
cat >conftest.$ac_ext <<_ACEOF
 
19526
/* confdefs.h.  */
 
19527
_ACEOF
 
19528
cat confdefs.h >>conftest.$ac_ext
 
19529
cat >>conftest.$ac_ext <<_ACEOF
 
19530
/* end confdefs.h.  */
 
19531
 
 
19532
 
 
19533
int
 
19534
main ()
 
19535
{
 
19536
main ();
 
19537
  ;
 
19538
  return 0;
 
19539
}
 
19540
_ACEOF
 
19541
rm -f conftest.$ac_objext conftest$ac_exeext
 
19542
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19543
  (eval $ac_link) 2>conftest.er1
 
19544
  ac_status=$?
 
19545
  grep -v '^ *+' conftest.er1 >conftest.err
 
19546
  rm -f conftest.er1
 
19547
  cat conftest.err >&5
 
19548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19549
  (exit $ac_status); } &&
 
19550
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19551
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19552
  (eval $ac_try) 2>&5
 
19553
  ac_status=$?
 
19554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19555
  (exit $ac_status); }; } &&
 
19556
         { ac_try='test -s conftest$ac_exeext'
 
19557
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19558
  (eval $ac_try) 2>&5
 
19559
  ac_status=$?
 
19560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19561
  (exit $ac_status); }; }; then
 
19562
  ac_cv_lib_cmd_main=yes
 
19563
else
 
19564
  echo "$as_me: failed program was:" >&5
 
19565
sed 's/^/| /' conftest.$ac_ext >&5
 
19566
 
 
19567
ac_cv_lib_cmd_main=no
 
19568
fi
 
19569
rm -f conftest.err conftest.$ac_objext \
 
19570
      conftest$ac_exeext conftest.$ac_ext
 
19571
LIBS=$ac_check_lib_save_LIBS
 
19572
fi
 
19573
echo "$as_me:$LINENO: result: $ac_cv_lib_cmd_main" >&5
 
19574
echo "${ECHO_T}$ac_cv_lib_cmd_main" >&6
 
19575
if test $ac_cv_lib_cmd_main = yes; then
 
19576
  cat >>confdefs.h <<_ACEOF
 
19577
#define HAVE_LIBCMD 1
 
19578
_ACEOF
 
19579
 
 
19580
  LIBS="-lcmd $LIBS"
 
19581
 
 
19582
fi
 
19583
 
 
19584
 
 
19585
echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
 
19586
echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
 
19587
if test "${ac_cv_lib_crypt_main+set}" = set; then
 
19588
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19589
else
 
19590
  ac_check_lib_save_LIBS=$LIBS
 
19591
LIBS="-lcrypt  $LIBS"
 
19592
cat >conftest.$ac_ext <<_ACEOF
 
19593
/* confdefs.h.  */
 
19594
_ACEOF
 
19595
cat confdefs.h >>conftest.$ac_ext
 
19596
cat >>conftest.$ac_ext <<_ACEOF
 
19597
/* end confdefs.h.  */
 
19598
 
 
19599
 
 
19600
int
 
19601
main ()
 
19602
{
 
19603
main ();
 
19604
  ;
 
19605
  return 0;
 
19606
}
 
19607
_ACEOF
 
19608
rm -f conftest.$ac_objext conftest$ac_exeext
 
19609
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19610
  (eval $ac_link) 2>conftest.er1
 
19611
  ac_status=$?
 
19612
  grep -v '^ *+' conftest.er1 >conftest.err
 
19613
  rm -f conftest.er1
 
19614
  cat conftest.err >&5
 
19615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19616
  (exit $ac_status); } &&
 
19617
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19618
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19619
  (eval $ac_try) 2>&5
 
19620
  ac_status=$?
 
19621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19622
  (exit $ac_status); }; } &&
 
19623
         { ac_try='test -s conftest$ac_exeext'
 
19624
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19625
  (eval $ac_try) 2>&5
 
19626
  ac_status=$?
 
19627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19628
  (exit $ac_status); }; }; then
 
19629
  ac_cv_lib_crypt_main=yes
 
19630
else
 
19631
  echo "$as_me: failed program was:" >&5
 
19632
sed 's/^/| /' conftest.$ac_ext >&5
 
19633
 
 
19634
ac_cv_lib_crypt_main=no
 
19635
fi
 
19636
rm -f conftest.err conftest.$ac_objext \
 
19637
      conftest$ac_exeext conftest.$ac_ext
 
19638
LIBS=$ac_check_lib_save_LIBS
 
19639
fi
 
19640
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
 
19641
echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
 
19642
if test $ac_cv_lib_crypt_main = yes; then
 
19643
  cat >>confdefs.h <<_ACEOF
 
19644
#define HAVE_LIBCRYPT 1
 
19645
_ACEOF
 
19646
 
 
19647
  LIBS="-lcrypt $LIBS"
 
19648
 
 
19649
fi
 
19650
 
 
19651
 
 
19652
echo "$as_me:$LINENO: checking for main in -ld" >&5
 
19653
echo $ECHO_N "checking for main in -ld... $ECHO_C" >&6
 
19654
if test "${ac_cv_lib_d_main+set}" = set; then
 
19655
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19656
else
 
19657
  ac_check_lib_save_LIBS=$LIBS
 
19658
LIBS="-ld  $LIBS"
 
19659
cat >conftest.$ac_ext <<_ACEOF
 
19660
/* confdefs.h.  */
 
19661
_ACEOF
 
19662
cat confdefs.h >>conftest.$ac_ext
 
19663
cat >>conftest.$ac_ext <<_ACEOF
 
19664
/* end confdefs.h.  */
 
19665
 
 
19666
 
 
19667
int
 
19668
main ()
 
19669
{
 
19670
main ();
 
19671
  ;
 
19672
  return 0;
 
19673
}
 
19674
_ACEOF
 
19675
rm -f conftest.$ac_objext conftest$ac_exeext
 
19676
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19677
  (eval $ac_link) 2>conftest.er1
 
19678
  ac_status=$?
 
19679
  grep -v '^ *+' conftest.er1 >conftest.err
 
19680
  rm -f conftest.er1
 
19681
  cat conftest.err >&5
 
19682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19683
  (exit $ac_status); } &&
 
19684
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19685
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19686
  (eval $ac_try) 2>&5
 
19687
  ac_status=$?
 
19688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19689
  (exit $ac_status); }; } &&
 
19690
         { ac_try='test -s conftest$ac_exeext'
 
19691
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19692
  (eval $ac_try) 2>&5
 
19693
  ac_status=$?
 
19694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19695
  (exit $ac_status); }; }; then
 
19696
  ac_cv_lib_d_main=yes
 
19697
else
 
19698
  echo "$as_me: failed program was:" >&5
 
19699
sed 's/^/| /' conftest.$ac_ext >&5
 
19700
 
 
19701
ac_cv_lib_d_main=no
 
19702
fi
 
19703
rm -f conftest.err conftest.$ac_objext \
 
19704
      conftest$ac_exeext conftest.$ac_ext
 
19705
LIBS=$ac_check_lib_save_LIBS
 
19706
fi
 
19707
echo "$as_me:$LINENO: result: $ac_cv_lib_d_main" >&5
 
19708
echo "${ECHO_T}$ac_cv_lib_d_main" >&6
 
19709
if test $ac_cv_lib_d_main = yes; then
 
19710
  cat >>confdefs.h <<_ACEOF
 
19711
#define HAVE_LIBD 1
 
19712
_ACEOF
 
19713
 
 
19714
  LIBS="-ld $LIBS"
 
19715
 
 
19716
fi
 
19717
 
 
19718
 
 
19719
echo "$as_me:$LINENO: checking for main in -ldl" >&5
 
19720
echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
 
19721
if test "${ac_cv_lib_dl_main+set}" = set; then
 
19722
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19723
else
 
19724
  ac_check_lib_save_LIBS=$LIBS
 
19725
LIBS="-ldl  $LIBS"
 
19726
cat >conftest.$ac_ext <<_ACEOF
 
19727
/* confdefs.h.  */
 
19728
_ACEOF
 
19729
cat confdefs.h >>conftest.$ac_ext
 
19730
cat >>conftest.$ac_ext <<_ACEOF
 
19731
/* end confdefs.h.  */
 
19732
 
 
19733
 
 
19734
int
 
19735
main ()
 
19736
{
 
19737
main ();
 
19738
  ;
 
19739
  return 0;
 
19740
}
 
19741
_ACEOF
 
19742
rm -f conftest.$ac_objext conftest$ac_exeext
 
19743
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19744
  (eval $ac_link) 2>conftest.er1
 
19745
  ac_status=$?
 
19746
  grep -v '^ *+' conftest.er1 >conftest.err
 
19747
  rm -f conftest.er1
 
19748
  cat conftest.err >&5
 
19749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19750
  (exit $ac_status); } &&
 
19751
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19752
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19753
  (eval $ac_try) 2>&5
 
19754
  ac_status=$?
 
19755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19756
  (exit $ac_status); }; } &&
 
19757
         { ac_try='test -s conftest$ac_exeext'
 
19758
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19759
  (eval $ac_try) 2>&5
 
19760
  ac_status=$?
 
19761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19762
  (exit $ac_status); }; }; then
 
19763
  ac_cv_lib_dl_main=yes
 
19764
else
 
19765
  echo "$as_me: failed program was:" >&5
 
19766
sed 's/^/| /' conftest.$ac_ext >&5
 
19767
 
 
19768
ac_cv_lib_dl_main=no
 
19769
fi
 
19770
rm -f conftest.err conftest.$ac_objext \
 
19771
      conftest$ac_exeext conftest.$ac_ext
 
19772
LIBS=$ac_check_lib_save_LIBS
 
19773
fi
 
19774
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
 
19775
echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
 
19776
if test $ac_cv_lib_dl_main = yes; then
 
19777
  cat >>confdefs.h <<_ACEOF
 
19778
#define HAVE_LIBDL 1
 
19779
_ACEOF
 
19780
 
 
19781
  LIBS="-ldl $LIBS"
 
19782
 
 
19783
fi
 
19784
 
 
19785
 
 
19786
echo "$as_me:$LINENO: checking for main in -lkauth" >&5
 
19787
echo $ECHO_N "checking for main in -lkauth... $ECHO_C" >&6
 
19788
if test "${ac_cv_lib_kauth_main+set}" = set; then
 
19789
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19790
else
 
19791
  ac_check_lib_save_LIBS=$LIBS
 
19792
LIBS="-lkauth  $LIBS"
 
19793
cat >conftest.$ac_ext <<_ACEOF
 
19794
/* confdefs.h.  */
 
19795
_ACEOF
 
19796
cat confdefs.h >>conftest.$ac_ext
 
19797
cat >>conftest.$ac_ext <<_ACEOF
 
19798
/* end confdefs.h.  */
 
19799
 
 
19800
 
 
19801
int
 
19802
main ()
 
19803
{
 
19804
main ();
 
19805
  ;
 
19806
  return 0;
 
19807
}
 
19808
_ACEOF
 
19809
rm -f conftest.$ac_objext conftest$ac_exeext
 
19810
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19811
  (eval $ac_link) 2>conftest.er1
 
19812
  ac_status=$?
 
19813
  grep -v '^ *+' conftest.er1 >conftest.err
 
19814
  rm -f conftest.er1
 
19815
  cat conftest.err >&5
 
19816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19817
  (exit $ac_status); } &&
 
19818
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19819
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19820
  (eval $ac_try) 2>&5
 
19821
  ac_status=$?
 
19822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19823
  (exit $ac_status); }; } &&
 
19824
         { ac_try='test -s conftest$ac_exeext'
 
19825
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19826
  (eval $ac_try) 2>&5
 
19827
  ac_status=$?
 
19828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19829
  (exit $ac_status); }; }; then
 
19830
  ac_cv_lib_kauth_main=yes
 
19831
else
 
19832
  echo "$as_me: failed program was:" >&5
 
19833
sed 's/^/| /' conftest.$ac_ext >&5
 
19834
 
 
19835
ac_cv_lib_kauth_main=no
 
19836
fi
 
19837
rm -f conftest.err conftest.$ac_objext \
 
19838
      conftest$ac_exeext conftest.$ac_ext
 
19839
LIBS=$ac_check_lib_save_LIBS
 
19840
fi
 
19841
echo "$as_me:$LINENO: result: $ac_cv_lib_kauth_main" >&5
 
19842
echo "${ECHO_T}$ac_cv_lib_kauth_main" >&6
 
19843
if test $ac_cv_lib_kauth_main = yes; then
 
19844
  cat >>confdefs.h <<_ACEOF
 
19845
#define HAVE_LIBKAUTH 1
 
19846
_ACEOF
 
19847
 
 
19848
  LIBS="-lkauth $LIBS"
 
19849
 
 
19850
fi
 
19851
 
 
19852
 
 
19853
echo "$as_me:$LINENO: checking for main in -lkrb" >&5
 
19854
echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
 
19855
if test "${ac_cv_lib_krb_main+set}" = set; then
 
19856
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19857
else
 
19858
  ac_check_lib_save_LIBS=$LIBS
 
19859
LIBS="-lkrb  $LIBS"
 
19860
cat >conftest.$ac_ext <<_ACEOF
 
19861
/* confdefs.h.  */
 
19862
_ACEOF
 
19863
cat confdefs.h >>conftest.$ac_ext
 
19864
cat >>conftest.$ac_ext <<_ACEOF
 
19865
/* end confdefs.h.  */
 
19866
 
 
19867
 
 
19868
int
 
19869
main ()
 
19870
{
 
19871
main ();
 
19872
  ;
 
19873
  return 0;
 
19874
}
 
19875
_ACEOF
 
19876
rm -f conftest.$ac_objext conftest$ac_exeext
 
19877
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19878
  (eval $ac_link) 2>conftest.er1
 
19879
  ac_status=$?
 
19880
  grep -v '^ *+' conftest.er1 >conftest.err
 
19881
  rm -f conftest.er1
 
19882
  cat conftest.err >&5
 
19883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19884
  (exit $ac_status); } &&
 
19885
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19886
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19887
  (eval $ac_try) 2>&5
 
19888
  ac_status=$?
 
19889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19890
  (exit $ac_status); }; } &&
 
19891
         { ac_try='test -s conftest$ac_exeext'
 
19892
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19893
  (eval $ac_try) 2>&5
 
19894
  ac_status=$?
 
19895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19896
  (exit $ac_status); }; }; then
 
19897
  ac_cv_lib_krb_main=yes
 
19898
else
 
19899
  echo "$as_me: failed program was:" >&5
 
19900
sed 's/^/| /' conftest.$ac_ext >&5
 
19901
 
 
19902
ac_cv_lib_krb_main=no
 
19903
fi
 
19904
rm -f conftest.err conftest.$ac_objext \
 
19905
      conftest$ac_exeext conftest.$ac_ext
 
19906
LIBS=$ac_check_lib_save_LIBS
 
19907
fi
 
19908
echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
 
19909
echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
 
19910
if test $ac_cv_lib_krb_main = yes; then
 
19911
  cat >>confdefs.h <<_ACEOF
 
19912
#define HAVE_LIBKRB 1
 
19913
_ACEOF
 
19914
 
 
19915
  LIBS="-lkrb $LIBS"
 
19916
 
 
19917
fi
 
19918
 
 
19919
 
 
19920
echo "$as_me:$LINENO: checking for main in -llwp" >&5
 
19921
echo $ECHO_N "checking for main in -llwp... $ECHO_C" >&6
 
19922
if test "${ac_cv_lib_lwp_main+set}" = set; then
 
19923
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19924
else
 
19925
  ac_check_lib_save_LIBS=$LIBS
 
19926
LIBS="-llwp  $LIBS"
 
19927
cat >conftest.$ac_ext <<_ACEOF
 
19928
/* confdefs.h.  */
 
19929
_ACEOF
 
19930
cat confdefs.h >>conftest.$ac_ext
 
19931
cat >>conftest.$ac_ext <<_ACEOF
 
19932
/* end confdefs.h.  */
 
19933
 
 
19934
 
 
19935
int
 
19936
main ()
 
19937
{
 
19938
main ();
 
19939
  ;
 
19940
  return 0;
 
19941
}
 
19942
_ACEOF
 
19943
rm -f conftest.$ac_objext conftest$ac_exeext
 
19944
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19945
  (eval $ac_link) 2>conftest.er1
 
19946
  ac_status=$?
 
19947
  grep -v '^ *+' conftest.er1 >conftest.err
 
19948
  rm -f conftest.er1
 
19949
  cat conftest.err >&5
 
19950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19951
  (exit $ac_status); } &&
 
19952
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19953
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19954
  (eval $ac_try) 2>&5
 
19955
  ac_status=$?
 
19956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19957
  (exit $ac_status); }; } &&
 
19958
         { ac_try='test -s conftest$ac_exeext'
 
19959
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19960
  (eval $ac_try) 2>&5
 
19961
  ac_status=$?
 
19962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19963
  (exit $ac_status); }; }; then
 
19964
  ac_cv_lib_lwp_main=yes
 
19965
else
 
19966
  echo "$as_me: failed program was:" >&5
 
19967
sed 's/^/| /' conftest.$ac_ext >&5
 
19968
 
 
19969
ac_cv_lib_lwp_main=no
 
19970
fi
 
19971
rm -f conftest.err conftest.$ac_objext \
 
19972
      conftest$ac_exeext conftest.$ac_ext
 
19973
LIBS=$ac_check_lib_save_LIBS
 
19974
fi
 
19975
echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_main" >&5
 
19976
echo "${ECHO_T}$ac_cv_lib_lwp_main" >&6
 
19977
if test $ac_cv_lib_lwp_main = yes; then
 
19978
  cat >>confdefs.h <<_ACEOF
 
19979
#define HAVE_LIBLWP 1
 
19980
_ACEOF
 
19981
 
 
19982
  LIBS="-llwp $LIBS"
 
19983
 
 
19984
fi
 
19985
 
 
19986
 
 
19987
echo "$as_me:$LINENO: checking for main in -ln" >&5
 
19988
echo $ECHO_N "checking for main in -ln... $ECHO_C" >&6
 
19989
if test "${ac_cv_lib_n_main+set}" = set; then
 
19990
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19991
else
 
19992
  ac_check_lib_save_LIBS=$LIBS
 
19993
LIBS="-ln  $LIBS"
 
19994
cat >conftest.$ac_ext <<_ACEOF
 
19995
/* confdefs.h.  */
 
19996
_ACEOF
 
19997
cat confdefs.h >>conftest.$ac_ext
 
19998
cat >>conftest.$ac_ext <<_ACEOF
 
19999
/* end confdefs.h.  */
 
20000
 
 
20001
 
 
20002
int
 
20003
main ()
 
20004
{
 
20005
main ();
 
20006
  ;
 
20007
  return 0;
 
20008
}
 
20009
_ACEOF
 
20010
rm -f conftest.$ac_objext conftest$ac_exeext
 
20011
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20012
  (eval $ac_link) 2>conftest.er1
 
20013
  ac_status=$?
 
20014
  grep -v '^ *+' conftest.er1 >conftest.err
 
20015
  rm -f conftest.er1
 
20016
  cat conftest.err >&5
 
20017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20018
  (exit $ac_status); } &&
 
20019
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20020
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20021
  (eval $ac_try) 2>&5
 
20022
  ac_status=$?
 
20023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20024
  (exit $ac_status); }; } &&
 
20025
         { ac_try='test -s conftest$ac_exeext'
 
20026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20027
  (eval $ac_try) 2>&5
 
20028
  ac_status=$?
 
20029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20030
  (exit $ac_status); }; }; then
 
20031
  ac_cv_lib_n_main=yes
 
20032
else
 
20033
  echo "$as_me: failed program was:" >&5
 
20034
sed 's/^/| /' conftest.$ac_ext >&5
 
20035
 
 
20036
ac_cv_lib_n_main=no
 
20037
fi
 
20038
rm -f conftest.err conftest.$ac_objext \
 
20039
      conftest$ac_exeext conftest.$ac_ext
 
20040
LIBS=$ac_check_lib_save_LIBS
 
20041
fi
 
20042
echo "$as_me:$LINENO: result: $ac_cv_lib_n_main" >&5
 
20043
echo "${ECHO_T}$ac_cv_lib_n_main" >&6
 
20044
if test $ac_cv_lib_n_main = yes; then
 
20045
  cat >>confdefs.h <<_ACEOF
 
20046
#define HAVE_LIBN 1
 
20047
_ACEOF
 
20048
 
 
20049
  LIBS="-ln $LIBS"
 
20050
 
 
20051
fi
 
20052
 
 
20053
 
 
20054
echo "$as_me:$LINENO: checking for main in -lnsl" >&5
 
20055
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
 
20056
if test "${ac_cv_lib_nsl_main+set}" = set; then
 
20057
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20058
else
 
20059
  ac_check_lib_save_LIBS=$LIBS
 
20060
LIBS="-lnsl  $LIBS"
 
20061
cat >conftest.$ac_ext <<_ACEOF
 
20062
/* confdefs.h.  */
 
20063
_ACEOF
 
20064
cat confdefs.h >>conftest.$ac_ext
 
20065
cat >>conftest.$ac_ext <<_ACEOF
 
20066
/* end confdefs.h.  */
 
20067
 
 
20068
 
 
20069
int
 
20070
main ()
 
20071
{
 
20072
main ();
 
20073
  ;
 
20074
  return 0;
 
20075
}
 
20076
_ACEOF
 
20077
rm -f conftest.$ac_objext conftest$ac_exeext
 
20078
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20079
  (eval $ac_link) 2>conftest.er1
 
20080
  ac_status=$?
 
20081
  grep -v '^ *+' conftest.er1 >conftest.err
 
20082
  rm -f conftest.er1
 
20083
  cat conftest.err >&5
 
20084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20085
  (exit $ac_status); } &&
 
20086
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20087
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20088
  (eval $ac_try) 2>&5
 
20089
  ac_status=$?
 
20090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20091
  (exit $ac_status); }; } &&
 
20092
         { ac_try='test -s conftest$ac_exeext'
 
20093
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20094
  (eval $ac_try) 2>&5
 
20095
  ac_status=$?
 
20096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20097
  (exit $ac_status); }; }; then
 
20098
  ac_cv_lib_nsl_main=yes
 
20099
else
 
20100
  echo "$as_me: failed program was:" >&5
 
20101
sed 's/^/| /' conftest.$ac_ext >&5
 
20102
 
 
20103
ac_cv_lib_nsl_main=no
 
20104
fi
 
20105
rm -f conftest.err conftest.$ac_objext \
 
20106
      conftest$ac_exeext conftest.$ac_ext
 
20107
LIBS=$ac_check_lib_save_LIBS
 
20108
fi
 
20109
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
 
20110
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
 
20111
if test $ac_cv_lib_nsl_main = yes; then
 
20112
  cat >>confdefs.h <<_ACEOF
 
20113
#define HAVE_LIBNSL 1
 
20114
_ACEOF
 
20115
 
 
20116
  LIBS="-lnsl $LIBS"
 
20117
 
 
20118
fi
 
20119
 
 
20120
 
 
20121
echo "$as_me:$LINENO: checking for main in -lprot" >&5
 
20122
echo $ECHO_N "checking for main in -lprot... $ECHO_C" >&6
 
20123
if test "${ac_cv_lib_prot_main+set}" = set; then
 
20124
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20125
else
 
20126
  ac_check_lib_save_LIBS=$LIBS
 
20127
LIBS="-lprot  $LIBS"
 
20128
cat >conftest.$ac_ext <<_ACEOF
 
20129
/* confdefs.h.  */
 
20130
_ACEOF
 
20131
cat confdefs.h >>conftest.$ac_ext
 
20132
cat >>conftest.$ac_ext <<_ACEOF
 
20133
/* end confdefs.h.  */
 
20134
 
 
20135
 
 
20136
int
 
20137
main ()
 
20138
{
 
20139
main ();
 
20140
  ;
 
20141
  return 0;
 
20142
}
 
20143
_ACEOF
 
20144
rm -f conftest.$ac_objext conftest$ac_exeext
 
20145
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20146
  (eval $ac_link) 2>conftest.er1
 
20147
  ac_status=$?
 
20148
  grep -v '^ *+' conftest.er1 >conftest.err
 
20149
  rm -f conftest.er1
 
20150
  cat conftest.err >&5
 
20151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20152
  (exit $ac_status); } &&
 
20153
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20154
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20155
  (eval $ac_try) 2>&5
 
20156
  ac_status=$?
 
20157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20158
  (exit $ac_status); }; } &&
 
20159
         { ac_try='test -s conftest$ac_exeext'
 
20160
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20161
  (eval $ac_try) 2>&5
 
20162
  ac_status=$?
 
20163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20164
  (exit $ac_status); }; }; then
 
20165
  ac_cv_lib_prot_main=yes
 
20166
else
 
20167
  echo "$as_me: failed program was:" >&5
 
20168
sed 's/^/| /' conftest.$ac_ext >&5
 
20169
 
 
20170
ac_cv_lib_prot_main=no
 
20171
fi
 
20172
rm -f conftest.err conftest.$ac_objext \
 
20173
      conftest$ac_exeext conftest.$ac_ext
 
20174
LIBS=$ac_check_lib_save_LIBS
 
20175
fi
 
20176
echo "$as_me:$LINENO: result: $ac_cv_lib_prot_main" >&5
 
20177
echo "${ECHO_T}$ac_cv_lib_prot_main" >&6
 
20178
if test $ac_cv_lib_prot_main = yes; then
 
20179
  cat >>confdefs.h <<_ACEOF
 
20180
#define HAVE_LIBPROT 1
 
20181
_ACEOF
 
20182
 
 
20183
  LIBS="-lprot $LIBS"
 
20184
 
 
20185
fi
 
20186
 
 
20187
 
 
20188
echo "$as_me:$LINENO: checking for main in -lrx" >&5
 
20189
echo $ECHO_N "checking for main in -lrx... $ECHO_C" >&6
 
20190
if test "${ac_cv_lib_rx_main+set}" = set; then
 
20191
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20192
else
 
20193
  ac_check_lib_save_LIBS=$LIBS
 
20194
LIBS="-lrx  $LIBS"
 
20195
cat >conftest.$ac_ext <<_ACEOF
 
20196
/* confdefs.h.  */
 
20197
_ACEOF
 
20198
cat confdefs.h >>conftest.$ac_ext
 
20199
cat >>conftest.$ac_ext <<_ACEOF
 
20200
/* end confdefs.h.  */
 
20201
 
 
20202
 
 
20203
int
 
20204
main ()
 
20205
{
 
20206
main ();
 
20207
  ;
 
20208
  return 0;
 
20209
}
 
20210
_ACEOF
 
20211
rm -f conftest.$ac_objext conftest$ac_exeext
 
20212
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20213
  (eval $ac_link) 2>conftest.er1
 
20214
  ac_status=$?
 
20215
  grep -v '^ *+' conftest.er1 >conftest.err
 
20216
  rm -f conftest.er1
 
20217
  cat conftest.err >&5
 
20218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20219
  (exit $ac_status); } &&
 
20220
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20221
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20222
  (eval $ac_try) 2>&5
 
20223
  ac_status=$?
 
20224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20225
  (exit $ac_status); }; } &&
 
20226
         { ac_try='test -s conftest$ac_exeext'
 
20227
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20228
  (eval $ac_try) 2>&5
 
20229
  ac_status=$?
 
20230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20231
  (exit $ac_status); }; }; then
 
20232
  ac_cv_lib_rx_main=yes
 
20233
else
 
20234
  echo "$as_me: failed program was:" >&5
 
20235
sed 's/^/| /' conftest.$ac_ext >&5
 
20236
 
 
20237
ac_cv_lib_rx_main=no
 
20238
fi
 
20239
rm -f conftest.err conftest.$ac_objext \
 
20240
      conftest$ac_exeext conftest.$ac_ext
 
20241
LIBS=$ac_check_lib_save_LIBS
 
20242
fi
 
20243
echo "$as_me:$LINENO: result: $ac_cv_lib_rx_main" >&5
 
20244
echo "${ECHO_T}$ac_cv_lib_rx_main" >&6
 
20245
if test $ac_cv_lib_rx_main = yes; then
 
20246
  cat >>confdefs.h <<_ACEOF
 
20247
#define HAVE_LIBRX 1
 
20248
_ACEOF
 
20249
 
 
20250
  LIBS="-lrx $LIBS"
 
20251
 
 
20252
fi
 
20253
 
 
20254
 
 
20255
echo "$as_me:$LINENO: checking for main in -lrxkad" >&5
 
20256
echo $ECHO_N "checking for main in -lrxkad... $ECHO_C" >&6
 
20257
if test "${ac_cv_lib_rxkad_main+set}" = set; then
 
20258
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20259
else
 
20260
  ac_check_lib_save_LIBS=$LIBS
 
20261
LIBS="-lrxkad  $LIBS"
 
20262
cat >conftest.$ac_ext <<_ACEOF
 
20263
/* confdefs.h.  */
 
20264
_ACEOF
 
20265
cat confdefs.h >>conftest.$ac_ext
 
20266
cat >>conftest.$ac_ext <<_ACEOF
 
20267
/* end confdefs.h.  */
 
20268
 
 
20269
 
 
20270
int
 
20271
main ()
 
20272
{
 
20273
main ();
 
20274
  ;
 
20275
  return 0;
 
20276
}
 
20277
_ACEOF
 
20278
rm -f conftest.$ac_objext conftest$ac_exeext
 
20279
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20280
  (eval $ac_link) 2>conftest.er1
 
20281
  ac_status=$?
 
20282
  grep -v '^ *+' conftest.er1 >conftest.err
 
20283
  rm -f conftest.er1
 
20284
  cat conftest.err >&5
 
20285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20286
  (exit $ac_status); } &&
 
20287
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20288
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20289
  (eval $ac_try) 2>&5
 
20290
  ac_status=$?
 
20291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20292
  (exit $ac_status); }; } &&
 
20293
         { ac_try='test -s conftest$ac_exeext'
 
20294
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20295
  (eval $ac_try) 2>&5
 
20296
  ac_status=$?
 
20297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20298
  (exit $ac_status); }; }; then
 
20299
  ac_cv_lib_rxkad_main=yes
 
20300
else
 
20301
  echo "$as_me: failed program was:" >&5
 
20302
sed 's/^/| /' conftest.$ac_ext >&5
 
20303
 
 
20304
ac_cv_lib_rxkad_main=no
 
20305
fi
 
20306
rm -f conftest.err conftest.$ac_objext \
 
20307
      conftest$ac_exeext conftest.$ac_ext
 
20308
LIBS=$ac_check_lib_save_LIBS
 
20309
fi
 
20310
echo "$as_me:$LINENO: result: $ac_cv_lib_rxkad_main" >&5
 
20311
echo "${ECHO_T}$ac_cv_lib_rxkad_main" >&6
 
20312
if test $ac_cv_lib_rxkad_main = yes; then
 
20313
  cat >>confdefs.h <<_ACEOF
 
20314
#define HAVE_LIBRXKAD 1
 
20315
_ACEOF
 
20316
 
 
20317
  LIBS="-lrxkad $LIBS"
 
20318
 
 
20319
fi
 
20320
 
 
20321
 
 
20322
echo "$as_me:$LINENO: checking for main in -lsocket" >&5
 
20323
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
 
20324
if test "${ac_cv_lib_socket_main+set}" = set; then
 
20325
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20326
else
 
20327
  ac_check_lib_save_LIBS=$LIBS
 
20328
LIBS="-lsocket  $LIBS"
 
20329
cat >conftest.$ac_ext <<_ACEOF
 
20330
/* confdefs.h.  */
 
20331
_ACEOF
 
20332
cat confdefs.h >>conftest.$ac_ext
 
20333
cat >>conftest.$ac_ext <<_ACEOF
 
20334
/* end confdefs.h.  */
 
20335
 
 
20336
 
 
20337
int
 
20338
main ()
 
20339
{
 
20340
main ();
 
20341
  ;
 
20342
  return 0;
 
20343
}
 
20344
_ACEOF
 
20345
rm -f conftest.$ac_objext conftest$ac_exeext
 
20346
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20347
  (eval $ac_link) 2>conftest.er1
 
20348
  ac_status=$?
 
20349
  grep -v '^ *+' conftest.er1 >conftest.err
 
20350
  rm -f conftest.er1
 
20351
  cat conftest.err >&5
 
20352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20353
  (exit $ac_status); } &&
 
20354
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20356
  (eval $ac_try) 2>&5
 
20357
  ac_status=$?
 
20358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20359
  (exit $ac_status); }; } &&
 
20360
         { ac_try='test -s conftest$ac_exeext'
 
20361
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20362
  (eval $ac_try) 2>&5
 
20363
  ac_status=$?
 
20364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20365
  (exit $ac_status); }; }; then
 
20366
  ac_cv_lib_socket_main=yes
 
20367
else
 
20368
  echo "$as_me: failed program was:" >&5
 
20369
sed 's/^/| /' conftest.$ac_ext >&5
 
20370
 
 
20371
ac_cv_lib_socket_main=no
 
20372
fi
 
20373
rm -f conftest.err conftest.$ac_objext \
 
20374
      conftest$ac_exeext conftest.$ac_ext
 
20375
LIBS=$ac_check_lib_save_LIBS
 
20376
fi
 
20377
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
 
20378
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
 
20379
if test $ac_cv_lib_socket_main = yes; then
 
20380
  cat >>confdefs.h <<_ACEOF
 
20381
#define HAVE_LIBSOCKET 1
 
20382
_ACEOF
 
20383
 
 
20384
  LIBS="-lsocket $LIBS"
 
20385
 
 
20386
fi
 
20387
 
 
20388
 
 
20389
echo "$as_me:$LINENO: checking for main in -lsys" >&5
 
20390
echo $ECHO_N "checking for main in -lsys... $ECHO_C" >&6
 
20391
if test "${ac_cv_lib_sys_main+set}" = set; then
 
20392
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20393
else
 
20394
  ac_check_lib_save_LIBS=$LIBS
 
20395
LIBS="-lsys  $LIBS"
 
20396
cat >conftest.$ac_ext <<_ACEOF
 
20397
/* confdefs.h.  */
 
20398
_ACEOF
 
20399
cat confdefs.h >>conftest.$ac_ext
 
20400
cat >>conftest.$ac_ext <<_ACEOF
 
20401
/* end confdefs.h.  */
 
20402
 
 
20403
 
 
20404
int
 
20405
main ()
 
20406
{
 
20407
main ();
 
20408
  ;
 
20409
  return 0;
 
20410
}
 
20411
_ACEOF
 
20412
rm -f conftest.$ac_objext conftest$ac_exeext
 
20413
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20414
  (eval $ac_link) 2>conftest.er1
 
20415
  ac_status=$?
 
20416
  grep -v '^ *+' conftest.er1 >conftest.err
 
20417
  rm -f conftest.er1
 
20418
  cat conftest.err >&5
 
20419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20420
  (exit $ac_status); } &&
 
20421
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20422
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20423
  (eval $ac_try) 2>&5
 
20424
  ac_status=$?
 
20425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20426
  (exit $ac_status); }; } &&
 
20427
         { ac_try='test -s conftest$ac_exeext'
 
20428
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20429
  (eval $ac_try) 2>&5
 
20430
  ac_status=$?
 
20431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20432
  (exit $ac_status); }; }; then
 
20433
  ac_cv_lib_sys_main=yes
 
20434
else
 
20435
  echo "$as_me: failed program was:" >&5
 
20436
sed 's/^/| /' conftest.$ac_ext >&5
 
20437
 
 
20438
ac_cv_lib_sys_main=no
 
20439
fi
 
20440
rm -f conftest.err conftest.$ac_objext \
 
20441
      conftest$ac_exeext conftest.$ac_ext
 
20442
LIBS=$ac_check_lib_save_LIBS
 
20443
fi
 
20444
echo "$as_me:$LINENO: result: $ac_cv_lib_sys_main" >&5
 
20445
echo "${ECHO_T}$ac_cv_lib_sys_main" >&6
 
20446
if test $ac_cv_lib_sys_main = yes; then
 
20447
  cat >>confdefs.h <<_ACEOF
 
20448
#define HAVE_LIBSYS 1
 
20449
_ACEOF
 
20450
 
 
20451
  LIBS="-lsys $LIBS"
 
20452
 
 
20453
fi
 
20454
 
 
20455
 
 
20456
echo "$as_me:$LINENO: checking for main in -lubik" >&5
 
20457
echo $ECHO_N "checking for main in -lubik... $ECHO_C" >&6
 
20458
if test "${ac_cv_lib_ubik_main+set}" = set; then
 
20459
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20460
else
 
20461
  ac_check_lib_save_LIBS=$LIBS
 
20462
LIBS="-lubik  $LIBS"
 
20463
cat >conftest.$ac_ext <<_ACEOF
 
20464
/* confdefs.h.  */
 
20465
_ACEOF
 
20466
cat confdefs.h >>conftest.$ac_ext
 
20467
cat >>conftest.$ac_ext <<_ACEOF
 
20468
/* end confdefs.h.  */
 
20469
 
 
20470
 
 
20471
int
 
20472
main ()
 
20473
{
 
20474
main ();
 
20475
  ;
 
20476
  return 0;
 
20477
}
 
20478
_ACEOF
 
20479
rm -f conftest.$ac_objext conftest$ac_exeext
 
20480
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20481
  (eval $ac_link) 2>conftest.er1
 
20482
  ac_status=$?
 
20483
  grep -v '^ *+' conftest.er1 >conftest.err
 
20484
  rm -f conftest.er1
 
20485
  cat conftest.err >&5
 
20486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20487
  (exit $ac_status); } &&
 
20488
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20489
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20490
  (eval $ac_try) 2>&5
 
20491
  ac_status=$?
 
20492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20493
  (exit $ac_status); }; } &&
 
20494
         { ac_try='test -s conftest$ac_exeext'
 
20495
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20496
  (eval $ac_try) 2>&5
 
20497
  ac_status=$?
 
20498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20499
  (exit $ac_status); }; }; then
 
20500
  ac_cv_lib_ubik_main=yes
 
20501
else
 
20502
  echo "$as_me: failed program was:" >&5
 
20503
sed 's/^/| /' conftest.$ac_ext >&5
 
20504
 
 
20505
ac_cv_lib_ubik_main=no
 
20506
fi
 
20507
rm -f conftest.err conftest.$ac_objext \
 
20508
      conftest$ac_exeext conftest.$ac_ext
 
20509
LIBS=$ac_check_lib_save_LIBS
 
20510
fi
 
20511
echo "$as_me:$LINENO: result: $ac_cv_lib_ubik_main" >&5
 
20512
echo "${ECHO_T}$ac_cv_lib_ubik_main" >&6
 
20513
if test $ac_cv_lib_ubik_main = yes; then
 
20514
  cat >>confdefs.h <<_ACEOF
 
20515
#define HAVE_LIBUBIK 1
 
20516
_ACEOF
 
20517
 
 
20518
  LIBS="-lubik $LIBS"
 
20519
 
 
20520
fi
 
20521
 
 
20522
 
 
20523
#
 
20524
# Check presence of some functions
 
20525
#
 
20526
# Check for XPG4 access() function
 
20527
# Be sure to test before adding AFS libs in LIBS path as AFS lib
 
20528
# has such a function that works only on AFS filesystems.
 
20529
 
 
20530
for ac_func in access
 
20531
do
 
20532
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20533
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20534
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
20535
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
20536
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20537
else
 
20538
  cat >conftest.$ac_ext <<_ACEOF
 
20539
/* confdefs.h.  */
 
20540
_ACEOF
 
20541
cat confdefs.h >>conftest.$ac_ext
 
20542
cat >>conftest.$ac_ext <<_ACEOF
 
20543
/* end confdefs.h.  */
 
20544
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
20545
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20546
#define $ac_func innocuous_$ac_func
 
20547
 
 
20548
/* System header to define __stub macros and hopefully few prototypes,
 
20549
    which can conflict with char $ac_func (); below.
 
20550
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20551
    <limits.h> exists even on freestanding compilers.  */
 
20552
 
 
20553
#ifdef __STDC__
 
20554
# include <limits.h>
 
20555
#else
 
20556
# include <assert.h>
 
20557
#endif
 
20558
 
 
20559
#undef $ac_func
 
20560
 
 
20561
/* Override any gcc2 internal prototype to avoid an error.  */
 
20562
#ifdef __cplusplus
 
20563
extern "C"
 
20564
{
 
20565
#endif
 
20566
/* We use char because int might match the return type of a gcc2
 
20567
   builtin and then its argument prototype would still apply.  */
 
20568
char $ac_func ();
 
20569
/* The GNU C library defines this for functions which it implements
 
20570
    to always fail with ENOSYS.  Some functions are actually named
 
20571
    something starting with __ and the normal name is an alias.  */
 
20572
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
20573
choke me
 
20574
#else
 
20575
char (*f) () = $ac_func;
 
20576
#endif
 
20577
#ifdef __cplusplus
 
20578
}
 
20579
#endif
 
20580
 
 
20581
int
 
20582
main ()
 
20583
{
 
20584
return f != $ac_func;
 
20585
  ;
 
20586
  return 0;
 
20587
}
 
20588
_ACEOF
 
20589
rm -f conftest.$ac_objext conftest$ac_exeext
 
20590
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20591
  (eval $ac_link) 2>conftest.er1
 
20592
  ac_status=$?
 
20593
  grep -v '^ *+' conftest.er1 >conftest.err
 
20594
  rm -f conftest.er1
 
20595
  cat conftest.err >&5
 
20596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20597
  (exit $ac_status); } &&
 
20598
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20599
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20600
  (eval $ac_try) 2>&5
 
20601
  ac_status=$?
 
20602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20603
  (exit $ac_status); }; } &&
 
20604
         { ac_try='test -s conftest$ac_exeext'
 
20605
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20606
  (eval $ac_try) 2>&5
 
20607
  ac_status=$?
 
20608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20609
  (exit $ac_status); }; }; then
 
20610
  eval "$as_ac_var=yes"
 
20611
else
 
20612
  echo "$as_me: failed program was:" >&5
 
20613
sed 's/^/| /' conftest.$ac_ext >&5
 
20614
 
 
20615
eval "$as_ac_var=no"
 
20616
fi
 
20617
rm -f conftest.err conftest.$ac_objext \
 
20618
      conftest$ac_exeext conftest.$ac_ext
 
20619
fi
 
20620
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
20621
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
20622
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
20623
  cat >>confdefs.h <<_ACEOF
 
20624
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20625
_ACEOF
 
20626
 
 
20627
fi
 
20628
done
 
20629
 
 
20630
 
 
20631
 
 
20632
 
 
20633
 
 
20634
 
 
20635
 
 
20636
ac_header_dirent=no
 
20637
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 
20638
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
20639
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
 
20640
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
 
20641
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20642
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20643
else
 
20644
  cat >conftest.$ac_ext <<_ACEOF
 
20645
/* confdefs.h.  */
 
20646
_ACEOF
 
20647
cat confdefs.h >>conftest.$ac_ext
 
20648
cat >>conftest.$ac_ext <<_ACEOF
 
20649
/* end confdefs.h.  */
 
20650
#include <sys/types.h>
 
20651
#include <$ac_hdr>
 
20652
 
 
20653
int
 
20654
main ()
 
20655
{
 
20656
if ((DIR *) 0)
 
20657
return 0;
 
20658
  ;
 
20659
  return 0;
 
20660
}
 
20661
_ACEOF
 
20662
rm -f conftest.$ac_objext
 
20663
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20664
  (eval $ac_compile) 2>conftest.er1
 
20665
  ac_status=$?
 
20666
  grep -v '^ *+' conftest.er1 >conftest.err
 
20667
  rm -f conftest.er1
 
20668
  cat conftest.err >&5
 
20669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20670
  (exit $ac_status); } &&
 
20671
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20672
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20673
  (eval $ac_try) 2>&5
 
20674
  ac_status=$?
 
20675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20676
  (exit $ac_status); }; } &&
 
20677
         { ac_try='test -s conftest.$ac_objext'
 
20678
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20679
  (eval $ac_try) 2>&5
 
20680
  ac_status=$?
 
20681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20682
  (exit $ac_status); }; }; then
 
20683
  eval "$as_ac_Header=yes"
 
20684
else
 
20685
  echo "$as_me: failed program was:" >&5
 
20686
sed 's/^/| /' conftest.$ac_ext >&5
 
20687
 
 
20688
eval "$as_ac_Header=no"
 
20689
fi
 
20690
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20691
fi
 
20692
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20693
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20694
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20695
  cat >>confdefs.h <<_ACEOF
 
20696
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
20697
_ACEOF
 
20698
 
 
20699
ac_header_dirent=$ac_hdr; break
 
20700
fi
 
20701
 
 
20702
done
 
20703
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 
20704
if test $ac_header_dirent = dirent.h; then
 
20705
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
20706
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
 
20707
if test "${ac_cv_search_opendir+set}" = set; then
 
20708
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20709
else
 
20710
  ac_func_search_save_LIBS=$LIBS
 
20711
ac_cv_search_opendir=no
 
20712
cat >conftest.$ac_ext <<_ACEOF
 
20713
/* confdefs.h.  */
 
20714
_ACEOF
 
20715
cat confdefs.h >>conftest.$ac_ext
 
20716
cat >>conftest.$ac_ext <<_ACEOF
 
20717
/* end confdefs.h.  */
 
20718
 
 
20719
/* Override any gcc2 internal prototype to avoid an error.  */
 
20720
#ifdef __cplusplus
 
20721
extern "C"
 
20722
#endif
 
20723
/* We use char because int might match the return type of a gcc2
 
20724
   builtin and then its argument prototype would still apply.  */
 
20725
char opendir ();
 
20726
int
 
20727
main ()
 
20728
{
 
20729
opendir ();
 
20730
  ;
 
20731
  return 0;
 
20732
}
 
20733
_ACEOF
 
20734
rm -f conftest.$ac_objext conftest$ac_exeext
 
20735
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20736
  (eval $ac_link) 2>conftest.er1
 
20737
  ac_status=$?
 
20738
  grep -v '^ *+' conftest.er1 >conftest.err
 
20739
  rm -f conftest.er1
 
20740
  cat conftest.err >&5
 
20741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20742
  (exit $ac_status); } &&
 
20743
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20744
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20745
  (eval $ac_try) 2>&5
 
20746
  ac_status=$?
 
20747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20748
  (exit $ac_status); }; } &&
 
20749
         { ac_try='test -s conftest$ac_exeext'
 
20750
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20751
  (eval $ac_try) 2>&5
 
20752
  ac_status=$?
 
20753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20754
  (exit $ac_status); }; }; then
 
20755
  ac_cv_search_opendir="none required"
 
20756
else
 
20757
  echo "$as_me: failed program was:" >&5
 
20758
sed 's/^/| /' conftest.$ac_ext >&5
 
20759
 
 
20760
fi
 
20761
rm -f conftest.err conftest.$ac_objext \
 
20762
      conftest$ac_exeext conftest.$ac_ext
 
20763
if test "$ac_cv_search_opendir" = no; then
 
20764
  for ac_lib in dir; do
 
20765
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
20766
    cat >conftest.$ac_ext <<_ACEOF
 
20767
/* confdefs.h.  */
 
20768
_ACEOF
 
20769
cat confdefs.h >>conftest.$ac_ext
 
20770
cat >>conftest.$ac_ext <<_ACEOF
 
20771
/* end confdefs.h.  */
 
20772
 
 
20773
/* Override any gcc2 internal prototype to avoid an error.  */
 
20774
#ifdef __cplusplus
 
20775
extern "C"
 
20776
#endif
 
20777
/* We use char because int might match the return type of a gcc2
 
20778
   builtin and then its argument prototype would still apply.  */
 
20779
char opendir ();
 
20780
int
 
20781
main ()
 
20782
{
 
20783
opendir ();
 
20784
  ;
 
20785
  return 0;
 
20786
}
 
20787
_ACEOF
 
20788
rm -f conftest.$ac_objext conftest$ac_exeext
 
20789
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20790
  (eval $ac_link) 2>conftest.er1
 
20791
  ac_status=$?
 
20792
  grep -v '^ *+' conftest.er1 >conftest.err
 
20793
  rm -f conftest.er1
 
20794
  cat conftest.err >&5
 
20795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20796
  (exit $ac_status); } &&
 
20797
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20798
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20799
  (eval $ac_try) 2>&5
 
20800
  ac_status=$?
 
20801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20802
  (exit $ac_status); }; } &&
 
20803
         { ac_try='test -s conftest$ac_exeext'
 
20804
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20805
  (eval $ac_try) 2>&5
 
20806
  ac_status=$?
 
20807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20808
  (exit $ac_status); }; }; then
 
20809
  ac_cv_search_opendir="-l$ac_lib"
 
20810
break
 
20811
else
 
20812
  echo "$as_me: failed program was:" >&5
 
20813
sed 's/^/| /' conftest.$ac_ext >&5
 
20814
 
 
20815
fi
 
20816
rm -f conftest.err conftest.$ac_objext \
 
20817
      conftest$ac_exeext conftest.$ac_ext
 
20818
  done
 
20819
fi
 
20820
LIBS=$ac_func_search_save_LIBS
 
20821
fi
 
20822
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
20823
echo "${ECHO_T}$ac_cv_search_opendir" >&6
 
20824
if test "$ac_cv_search_opendir" != no; then
 
20825
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
20826
 
 
20827
fi
 
20828
 
 
20829
else
 
20830
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
20831
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
 
20832
if test "${ac_cv_search_opendir+set}" = set; then
 
20833
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20834
else
 
20835
  ac_func_search_save_LIBS=$LIBS
 
20836
ac_cv_search_opendir=no
 
20837
cat >conftest.$ac_ext <<_ACEOF
 
20838
/* confdefs.h.  */
 
20839
_ACEOF
 
20840
cat confdefs.h >>conftest.$ac_ext
 
20841
cat >>conftest.$ac_ext <<_ACEOF
 
20842
/* end confdefs.h.  */
 
20843
 
 
20844
/* Override any gcc2 internal prototype to avoid an error.  */
 
20845
#ifdef __cplusplus
 
20846
extern "C"
 
20847
#endif
 
20848
/* We use char because int might match the return type of a gcc2
 
20849
   builtin and then its argument prototype would still apply.  */
 
20850
char opendir ();
 
20851
int
 
20852
main ()
 
20853
{
 
20854
opendir ();
 
20855
  ;
 
20856
  return 0;
 
20857
}
 
20858
_ACEOF
 
20859
rm -f conftest.$ac_objext conftest$ac_exeext
 
20860
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20861
  (eval $ac_link) 2>conftest.er1
 
20862
  ac_status=$?
 
20863
  grep -v '^ *+' conftest.er1 >conftest.err
 
20864
  rm -f conftest.er1
 
20865
  cat conftest.err >&5
 
20866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20867
  (exit $ac_status); } &&
 
20868
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20869
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20870
  (eval $ac_try) 2>&5
 
20871
  ac_status=$?
 
20872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20873
  (exit $ac_status); }; } &&
 
20874
         { ac_try='test -s conftest$ac_exeext'
 
20875
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20876
  (eval $ac_try) 2>&5
 
20877
  ac_status=$?
 
20878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20879
  (exit $ac_status); }; }; then
 
20880
  ac_cv_search_opendir="none required"
 
20881
else
 
20882
  echo "$as_me: failed program was:" >&5
 
20883
sed 's/^/| /' conftest.$ac_ext >&5
 
20884
 
 
20885
fi
 
20886
rm -f conftest.err conftest.$ac_objext \
 
20887
      conftest$ac_exeext conftest.$ac_ext
 
20888
if test "$ac_cv_search_opendir" = no; then
 
20889
  for ac_lib in x; do
 
20890
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
20891
    cat >conftest.$ac_ext <<_ACEOF
 
20892
/* confdefs.h.  */
 
20893
_ACEOF
 
20894
cat confdefs.h >>conftest.$ac_ext
 
20895
cat >>conftest.$ac_ext <<_ACEOF
 
20896
/* end confdefs.h.  */
 
20897
 
 
20898
/* Override any gcc2 internal prototype to avoid an error.  */
 
20899
#ifdef __cplusplus
 
20900
extern "C"
 
20901
#endif
 
20902
/* We use char because int might match the return type of a gcc2
 
20903
   builtin and then its argument prototype would still apply.  */
 
20904
char opendir ();
 
20905
int
 
20906
main ()
 
20907
{
 
20908
opendir ();
 
20909
  ;
 
20910
  return 0;
 
20911
}
 
20912
_ACEOF
 
20913
rm -f conftest.$ac_objext conftest$ac_exeext
 
20914
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20915
  (eval $ac_link) 2>conftest.er1
 
20916
  ac_status=$?
 
20917
  grep -v '^ *+' conftest.er1 >conftest.err
 
20918
  rm -f conftest.er1
 
20919
  cat conftest.err >&5
 
20920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20921
  (exit $ac_status); } &&
 
20922
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20923
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20924
  (eval $ac_try) 2>&5
 
20925
  ac_status=$?
 
20926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20927
  (exit $ac_status); }; } &&
 
20928
         { ac_try='test -s conftest$ac_exeext'
 
20929
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20930
  (eval $ac_try) 2>&5
 
20931
  ac_status=$?
 
20932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20933
  (exit $ac_status); }; }; then
 
20934
  ac_cv_search_opendir="-l$ac_lib"
 
20935
break
 
20936
else
 
20937
  echo "$as_me: failed program was:" >&5
 
20938
sed 's/^/| /' conftest.$ac_ext >&5
 
20939
 
 
20940
fi
 
20941
rm -f conftest.err conftest.$ac_objext \
 
20942
      conftest$ac_exeext conftest.$ac_ext
 
20943
  done
 
20944
fi
 
20945
LIBS=$ac_func_search_save_LIBS
 
20946
fi
 
20947
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
20948
echo "${ECHO_T}$ac_cv_search_opendir" >&6
 
20949
if test "$ac_cv_search_opendir" != no; then
 
20950
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
20951
 
 
20952
fi
 
20953
 
 
20954
fi
 
20955
 
 
20956
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
20957
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
20958
if test "${ac_cv_header_stdc+set}" = set; then
 
20959
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20960
else
 
20961
  cat >conftest.$ac_ext <<_ACEOF
 
20962
/* confdefs.h.  */
 
20963
_ACEOF
 
20964
cat confdefs.h >>conftest.$ac_ext
 
20965
cat >>conftest.$ac_ext <<_ACEOF
 
20966
/* end confdefs.h.  */
 
20967
#include <stdlib.h>
 
20968
#include <stdarg.h>
 
20969
#include <string.h>
 
20970
#include <float.h>
 
20971
 
 
20972
int
 
20973
main ()
 
20974
{
 
20975
 
 
20976
  ;
 
20977
  return 0;
 
20978
}
 
20979
_ACEOF
 
20980
rm -f conftest.$ac_objext
 
20981
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20982
  (eval $ac_compile) 2>conftest.er1
 
20983
  ac_status=$?
 
20984
  grep -v '^ *+' conftest.er1 >conftest.err
 
20985
  rm -f conftest.er1
 
20986
  cat conftest.err >&5
 
20987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20988
  (exit $ac_status); } &&
 
20989
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20990
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20991
  (eval $ac_try) 2>&5
 
20992
  ac_status=$?
 
20993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20994
  (exit $ac_status); }; } &&
 
20995
         { ac_try='test -s conftest.$ac_objext'
 
20996
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20997
  (eval $ac_try) 2>&5
 
20998
  ac_status=$?
 
20999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21000
  (exit $ac_status); }; }; then
 
21001
  ac_cv_header_stdc=yes
 
21002
else
 
21003
  echo "$as_me: failed program was:" >&5
 
21004
sed 's/^/| /' conftest.$ac_ext >&5
 
21005
 
 
21006
ac_cv_header_stdc=no
 
21007
fi
 
21008
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21009
 
 
21010
if test $ac_cv_header_stdc = yes; then
 
21011
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
21012
  cat >conftest.$ac_ext <<_ACEOF
 
21013
/* confdefs.h.  */
 
21014
_ACEOF
 
21015
cat confdefs.h >>conftest.$ac_ext
 
21016
cat >>conftest.$ac_ext <<_ACEOF
 
21017
/* end confdefs.h.  */
 
21018
#include <string.h>
 
21019
 
 
21020
_ACEOF
 
21021
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
21022
  $EGREP "memchr" >/dev/null 2>&1; then
 
21023
  :
 
21024
else
 
21025
  ac_cv_header_stdc=no
 
21026
fi
 
21027
rm -f conftest*
 
21028
 
 
21029
fi
 
21030
 
 
21031
if test $ac_cv_header_stdc = yes; then
 
21032
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
21033
  cat >conftest.$ac_ext <<_ACEOF
 
21034
/* confdefs.h.  */
 
21035
_ACEOF
 
21036
cat confdefs.h >>conftest.$ac_ext
 
21037
cat >>conftest.$ac_ext <<_ACEOF
 
21038
/* end confdefs.h.  */
 
21039
#include <stdlib.h>
 
21040
 
 
21041
_ACEOF
 
21042
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
21043
  $EGREP "free" >/dev/null 2>&1; then
 
21044
  :
 
21045
else
 
21046
  ac_cv_header_stdc=no
 
21047
fi
 
21048
rm -f conftest*
 
21049
 
 
21050
fi
 
21051
 
 
21052
if test $ac_cv_header_stdc = yes; then
 
21053
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
21054
  if test "$cross_compiling" = yes; then
 
21055
  :
 
21056
else
 
21057
  cat >conftest.$ac_ext <<_ACEOF
 
21058
/* confdefs.h.  */
 
21059
_ACEOF
 
21060
cat confdefs.h >>conftest.$ac_ext
 
21061
cat >>conftest.$ac_ext <<_ACEOF
 
21062
/* end confdefs.h.  */
 
21063
#include <ctype.h>
 
21064
#if ((' ' & 0x0FF) == 0x020)
 
21065
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
21066
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
21067
#else
 
21068
# define ISLOWER(c) \
 
21069
                   (('a' <= (c) && (c) <= 'i') \
 
21070
                     || ('j' <= (c) && (c) <= 'r') \
 
21071
                     || ('s' <= (c) && (c) <= 'z'))
 
21072
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
21073
#endif
 
21074
 
 
21075
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
21076
int
 
21077
main ()
 
21078
{
 
21079
  int i;
 
21080
  for (i = 0; i < 256; i++)
 
21081
    if (XOR (islower (i), ISLOWER (i))
 
21082
        || toupper (i) != TOUPPER (i))
 
21083
      exit(2);
 
21084
  exit (0);
 
21085
}
 
21086
_ACEOF
 
21087
rm -f conftest$ac_exeext
 
21088
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21089
  (eval $ac_link) 2>&5
 
21090
  ac_status=$?
 
21091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21092
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21093
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21094
  (eval $ac_try) 2>&5
 
21095
  ac_status=$?
 
21096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21097
  (exit $ac_status); }; }; then
 
21098
  :
 
21099
else
 
21100
  echo "$as_me: program exited with status $ac_status" >&5
 
21101
echo "$as_me: failed program was:" >&5
 
21102
sed 's/^/| /' conftest.$ac_ext >&5
 
21103
 
 
21104
( exit $ac_status )
 
21105
ac_cv_header_stdc=no
 
21106
fi
 
21107
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21108
fi
 
21109
fi
 
21110
fi
 
21111
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
21112
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
21113
if test $ac_cv_header_stdc = yes; then
 
21114
 
 
21115
cat >>confdefs.h <<\_ACEOF
 
21116
#define STDC_HEADERS 1
 
21117
_ACEOF
 
21118
 
 
21119
fi
 
21120
 
 
21121
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
21122
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
 
21123
if test "${ac_cv_header_sys_wait_h+set}" = set; then
 
21124
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21125
else
 
21126
  cat >conftest.$ac_ext <<_ACEOF
 
21127
/* confdefs.h.  */
 
21128
_ACEOF
 
21129
cat confdefs.h >>conftest.$ac_ext
 
21130
cat >>conftest.$ac_ext <<_ACEOF
 
21131
/* end confdefs.h.  */
 
21132
#include <sys/types.h>
 
21133
#include <sys/wait.h>
 
21134
#ifndef WEXITSTATUS
 
21135
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
 
21136
#endif
 
21137
#ifndef WIFEXITED
 
21138
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
21139
#endif
 
21140
 
 
21141
int
 
21142
main ()
 
21143
{
 
21144
  int s;
 
21145
  wait (&s);
 
21146
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
21147
  ;
 
21148
  return 0;
 
21149
}
 
21150
_ACEOF
 
21151
rm -f conftest.$ac_objext
 
21152
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21153
  (eval $ac_compile) 2>conftest.er1
 
21154
  ac_status=$?
 
21155
  grep -v '^ *+' conftest.er1 >conftest.err
 
21156
  rm -f conftest.er1
 
21157
  cat conftest.err >&5
 
21158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21159
  (exit $ac_status); } &&
 
21160
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21161
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21162
  (eval $ac_try) 2>&5
 
21163
  ac_status=$?
 
21164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21165
  (exit $ac_status); }; } &&
 
21166
         { ac_try='test -s conftest.$ac_objext'
 
21167
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21168
  (eval $ac_try) 2>&5
 
21169
  ac_status=$?
 
21170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21171
  (exit $ac_status); }; }; then
 
21172
  ac_cv_header_sys_wait_h=yes
 
21173
else
 
21174
  echo "$as_me: failed program was:" >&5
 
21175
sed 's/^/| /' conftest.$ac_ext >&5
 
21176
 
 
21177
ac_cv_header_sys_wait_h=no
 
21178
fi
 
21179
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21180
fi
 
21181
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
 
21182
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
 
21183
if test $ac_cv_header_sys_wait_h = yes; then
 
21184
 
 
21185
cat >>confdefs.h <<\_ACEOF
 
21186
#define HAVE_SYS_WAIT_H 1
 
21187
_ACEOF
 
21188
 
 
21189
fi
 
21190
 
 
21191
 
 
21192
 
 
21193
 
 
21194
 
 
21195
 
 
21196
 
 
21197
 
 
21198
 
 
21199
 
 
21200
 
 
21201
 
 
21202
 
 
21203
 
 
21204
 
 
21205
 
 
21206
 
 
21207
 
 
21208
 
 
21209
 
 
21210
 
 
21211
 
 
21212
 
 
21213
 
 
21214
 
 
21215
 
 
21216
 
 
21217
 
 
21218
for ac_header in fcntl.h limits.h stdint.h strings.h sys/fcntl.h sys/file.h sys/ioctl.h sys/time.h sys/mnttab.h sys/statvfs.h sys/stat.h sys/vfs.h mntent.h syslog.h unistd.h termios.h sys/termios.h netdb.h sgtty.h ufs/quota.h mount.h sys/mount.h statfs.h sys/types.h dlfcn.h errno.h sys/errno.h
 
21219
do
 
21220
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21221
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21222
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21223
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21224
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21225
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21226
fi
 
21227
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21228
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21229
else
 
21230
  # Is the header compilable?
 
21231
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21232
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
21233
cat >conftest.$ac_ext <<_ACEOF
 
21234
/* confdefs.h.  */
 
21235
_ACEOF
 
21236
cat confdefs.h >>conftest.$ac_ext
 
21237
cat >>conftest.$ac_ext <<_ACEOF
 
21238
/* end confdefs.h.  */
 
21239
$ac_includes_default
 
21240
#include <$ac_header>
 
21241
_ACEOF
 
21242
rm -f conftest.$ac_objext
 
21243
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21244
  (eval $ac_compile) 2>conftest.er1
 
21245
  ac_status=$?
 
21246
  grep -v '^ *+' conftest.er1 >conftest.err
 
21247
  rm -f conftest.er1
 
21248
  cat conftest.err >&5
 
21249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21250
  (exit $ac_status); } &&
 
21251
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21252
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21253
  (eval $ac_try) 2>&5
 
21254
  ac_status=$?
 
21255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21256
  (exit $ac_status); }; } &&
 
21257
         { ac_try='test -s conftest.$ac_objext'
 
21258
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21259
  (eval $ac_try) 2>&5
 
21260
  ac_status=$?
 
21261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21262
  (exit $ac_status); }; }; then
 
21263
  ac_header_compiler=yes
 
21264
else
 
21265
  echo "$as_me: failed program was:" >&5
 
21266
sed 's/^/| /' conftest.$ac_ext >&5
 
21267
 
 
21268
ac_header_compiler=no
 
21269
fi
 
21270
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21271
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21272
echo "${ECHO_T}$ac_header_compiler" >&6
 
21273
 
 
21274
# Is the header present?
 
21275
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21276
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
21277
cat >conftest.$ac_ext <<_ACEOF
 
21278
/* confdefs.h.  */
 
21279
_ACEOF
 
21280
cat confdefs.h >>conftest.$ac_ext
 
21281
cat >>conftest.$ac_ext <<_ACEOF
 
21282
/* end confdefs.h.  */
 
21283
#include <$ac_header>
 
21284
_ACEOF
 
21285
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21286
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
21287
  ac_status=$?
 
21288
  grep -v '^ *+' conftest.er1 >conftest.err
 
21289
  rm -f conftest.er1
 
21290
  cat conftest.err >&5
 
21291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21292
  (exit $ac_status); } >/dev/null; then
 
21293
  if test -s conftest.err; then
 
21294
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21295
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21296
  else
 
21297
    ac_cpp_err=
 
21298
  fi
 
21299
else
 
21300
  ac_cpp_err=yes
 
21301
fi
 
21302
if test -z "$ac_cpp_err"; then
 
21303
  ac_header_preproc=yes
 
21304
else
 
21305
  echo "$as_me: failed program was:" >&5
 
21306
sed 's/^/| /' conftest.$ac_ext >&5
 
21307
 
 
21308
  ac_header_preproc=no
 
21309
fi
 
21310
rm -f conftest.err conftest.$ac_ext
 
21311
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21312
echo "${ECHO_T}$ac_header_preproc" >&6
 
21313
 
 
21314
# So?  What about this header?
 
21315
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21316
  yes:no: )
 
21317
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21318
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21319
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21320
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21321
    ac_header_preproc=yes
 
21322
    ;;
 
21323
  no:yes:* )
 
21324
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21325
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21326
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21327
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21328
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21329
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21330
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21331
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21332
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21333
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21334
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21335
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21336
    (
 
21337
      cat <<\_ASBOX
 
21338
## ------------------------------------------ ##
 
21339
## Report this to the AC_PACKAGE_NAME lists.  ##
 
21340
## ------------------------------------------ ##
 
21341
_ASBOX
 
21342
    ) |
 
21343
      sed "s/^/$as_me: WARNING:     /" >&2
 
21344
    ;;
 
21345
esac
 
21346
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21347
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21348
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21349
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21350
else
 
21351
  eval "$as_ac_Header=\$ac_header_preproc"
 
21352
fi
 
21353
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21354
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21355
 
 
21356
fi
 
21357
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
21358
  cat >>confdefs.h <<_ACEOF
 
21359
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21360
_ACEOF
 
21361
 
 
21362
fi
 
21363
 
 
21364
done
 
21365
 
 
21366
if test "${ac_cv_header_sys_cdefs_h+set}" = set; then
 
21367
  echo "$as_me:$LINENO: checking for sys/cdefs.h" >&5
 
21368
echo $ECHO_N "checking for sys/cdefs.h... $ECHO_C" >&6
 
21369
if test "${ac_cv_header_sys_cdefs_h+set}" = set; then
 
21370
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21371
fi
 
21372
echo "$as_me:$LINENO: result: $ac_cv_header_sys_cdefs_h" >&5
 
21373
echo "${ECHO_T}$ac_cv_header_sys_cdefs_h" >&6
 
21374
else
 
21375
  # Is the header compilable?
 
21376
echo "$as_me:$LINENO: checking sys/cdefs.h usability" >&5
 
21377
echo $ECHO_N "checking sys/cdefs.h usability... $ECHO_C" >&6
 
21378
cat >conftest.$ac_ext <<_ACEOF
 
21379
/* confdefs.h.  */
 
21380
_ACEOF
 
21381
cat confdefs.h >>conftest.$ac_ext
 
21382
cat >>conftest.$ac_ext <<_ACEOF
 
21383
/* end confdefs.h.  */
 
21384
$ac_includes_default
 
21385
#include <sys/cdefs.h>
 
21386
_ACEOF
 
21387
rm -f conftest.$ac_objext
 
21388
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21389
  (eval $ac_compile) 2>conftest.er1
 
21390
  ac_status=$?
 
21391
  grep -v '^ *+' conftest.er1 >conftest.err
 
21392
  rm -f conftest.er1
 
21393
  cat conftest.err >&5
 
21394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21395
  (exit $ac_status); } &&
 
21396
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21397
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21398
  (eval $ac_try) 2>&5
 
21399
  ac_status=$?
 
21400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21401
  (exit $ac_status); }; } &&
 
21402
         { ac_try='test -s conftest.$ac_objext'
 
21403
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21404
  (eval $ac_try) 2>&5
 
21405
  ac_status=$?
 
21406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21407
  (exit $ac_status); }; }; then
 
21408
  ac_header_compiler=yes
 
21409
else
 
21410
  echo "$as_me: failed program was:" >&5
 
21411
sed 's/^/| /' conftest.$ac_ext >&5
 
21412
 
 
21413
ac_header_compiler=no
 
21414
fi
 
21415
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21416
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21417
echo "${ECHO_T}$ac_header_compiler" >&6
 
21418
 
 
21419
# Is the header present?
 
21420
echo "$as_me:$LINENO: checking sys/cdefs.h presence" >&5
 
21421
echo $ECHO_N "checking sys/cdefs.h presence... $ECHO_C" >&6
 
21422
cat >conftest.$ac_ext <<_ACEOF
 
21423
/* confdefs.h.  */
 
21424
_ACEOF
 
21425
cat confdefs.h >>conftest.$ac_ext
 
21426
cat >>conftest.$ac_ext <<_ACEOF
 
21427
/* end confdefs.h.  */
 
21428
#include <sys/cdefs.h>
 
21429
_ACEOF
 
21430
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21431
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
21432
  ac_status=$?
 
21433
  grep -v '^ *+' conftest.er1 >conftest.err
 
21434
  rm -f conftest.er1
 
21435
  cat conftest.err >&5
 
21436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21437
  (exit $ac_status); } >/dev/null; then
 
21438
  if test -s conftest.err; then
 
21439
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21440
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21441
  else
 
21442
    ac_cpp_err=
 
21443
  fi
 
21444
else
 
21445
  ac_cpp_err=yes
 
21446
fi
 
21447
if test -z "$ac_cpp_err"; then
 
21448
  ac_header_preproc=yes
 
21449
else
 
21450
  echo "$as_me: failed program was:" >&5
 
21451
sed 's/^/| /' conftest.$ac_ext >&5
 
21452
 
 
21453
  ac_header_preproc=no
 
21454
fi
 
21455
rm -f conftest.err conftest.$ac_ext
 
21456
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21457
echo "${ECHO_T}$ac_header_preproc" >&6
 
21458
 
 
21459
# So?  What about this header?
 
21460
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21461
  yes:no: )
 
21462
    { echo "$as_me:$LINENO: WARNING: sys/cdefs.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
21463
echo "$as_me: WARNING: sys/cdefs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21464
    { echo "$as_me:$LINENO: WARNING: sys/cdefs.h: proceeding with the compiler's result" >&5
 
21465
echo "$as_me: WARNING: sys/cdefs.h: proceeding with the compiler's result" >&2;}
 
21466
    ac_header_preproc=yes
 
21467
    ;;
 
21468
  no:yes:* )
 
21469
    { echo "$as_me:$LINENO: WARNING: sys/cdefs.h: present but cannot be compiled" >&5
 
21470
echo "$as_me: WARNING: sys/cdefs.h: present but cannot be compiled" >&2;}
 
21471
    { echo "$as_me:$LINENO: WARNING: sys/cdefs.h:     check for missing prerequisite headers?" >&5
 
21472
echo "$as_me: WARNING: sys/cdefs.h:     check for missing prerequisite headers?" >&2;}
 
21473
    { echo "$as_me:$LINENO: WARNING: sys/cdefs.h: see the Autoconf documentation" >&5
 
21474
echo "$as_me: WARNING: sys/cdefs.h: see the Autoconf documentation" >&2;}
 
21475
    { echo "$as_me:$LINENO: WARNING: sys/cdefs.h:     section \"Present But Cannot Be Compiled\"" >&5
 
21476
echo "$as_me: WARNING: sys/cdefs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21477
    { echo "$as_me:$LINENO: WARNING: sys/cdefs.h: proceeding with the preprocessor's result" >&5
 
21478
echo "$as_me: WARNING: sys/cdefs.h: proceeding with the preprocessor's result" >&2;}
 
21479
    { echo "$as_me:$LINENO: WARNING: sys/cdefs.h: in the future, the compiler will take precedence" >&5
 
21480
echo "$as_me: WARNING: sys/cdefs.h: in the future, the compiler will take precedence" >&2;}
 
21481
    (
 
21482
      cat <<\_ASBOX
 
21483
## ------------------------------------------ ##
 
21484
## Report this to the AC_PACKAGE_NAME lists.  ##
 
21485
## ------------------------------------------ ##
 
21486
_ASBOX
 
21487
    ) |
 
21488
      sed "s/^/$as_me: WARNING:     /" >&2
 
21489
    ;;
 
21490
esac
 
21491
echo "$as_me:$LINENO: checking for sys/cdefs.h" >&5
 
21492
echo $ECHO_N "checking for sys/cdefs.h... $ECHO_C" >&6
 
21493
if test "${ac_cv_header_sys_cdefs_h+set}" = set; then
 
21494
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21495
else
 
21496
  ac_cv_header_sys_cdefs_h=$ac_header_preproc
 
21497
fi
 
21498
echo "$as_me:$LINENO: result: $ac_cv_header_sys_cdefs_h" >&5
 
21499
echo "${ECHO_T}$ac_cv_header_sys_cdefs_h" >&6
 
21500
 
 
21501
fi
 
21502
if test $ac_cv_header_sys_cdefs_h = yes; then
 
21503
  :
 
21504
else
 
21505
  echo "$as_me:$LINENO: result: enabling generic cdefs.h from tree" >&5
 
21506
echo "${ECHO_T}enabling generic cdefs.h from tree" >&6
 
21507
        CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
 
21508
 
 
21509
fi
 
21510
 
 
21511
 
 
21512
 
 
21513
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
21514
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
21515
if test "${ac_cv_c_const+set}" = set; then
 
21516
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21517
else
 
21518
  cat >conftest.$ac_ext <<_ACEOF
 
21519
/* confdefs.h.  */
 
21520
_ACEOF
 
21521
cat confdefs.h >>conftest.$ac_ext
 
21522
cat >>conftest.$ac_ext <<_ACEOF
 
21523
/* end confdefs.h.  */
 
21524
 
 
21525
int
 
21526
main ()
 
21527
{
 
21528
/* FIXME: Include the comments suggested by Paul. */
 
21529
#ifndef __cplusplus
 
21530
  /* Ultrix mips cc rejects this.  */
 
21531
  typedef int charset[2];
 
21532
  const charset x;
 
21533
  /* SunOS 4.1.1 cc rejects this.  */
 
21534
  char const *const *ccp;
 
21535
  char **p;
 
21536
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
21537
  struct point {int x, y;};
 
21538
  static struct point const zero = {0,0};
 
21539
  /* AIX XL C 1.02.0.0 rejects this.
 
21540
     It does not let you subtract one const X* pointer from another in
 
21541
     an arm of an if-expression whose if-part is not a constant
 
21542
     expression */
 
21543
  const char *g = "string";
 
21544
  ccp = &g + (g ? g-g : 0);
 
21545
  /* HPUX 7.0 cc rejects these. */
 
21546
  ++ccp;
 
21547
  p = (char**) ccp;
 
21548
  ccp = (char const *const *) p;
 
21549
  { /* SCO 3.2v4 cc rejects this.  */
 
21550
    char *t;
 
21551
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
21552
 
 
21553
    *t++ = 0;
 
21554
  }
 
21555
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
21556
    int x[] = {25, 17};
 
21557
    const int *foo = &x[0];
 
21558
    ++foo;
 
21559
  }
 
21560
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
21561
    typedef const int *iptr;
 
21562
    iptr p = 0;
 
21563
    ++p;
 
21564
  }
 
21565
  { /* AIX XL C 1.02.0.0 rejects this saying
 
21566
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
21567
    struct s { int j; const int *ap[3]; };
 
21568
    struct s *b; b->j = 5;
 
21569
  }
 
21570
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
21571
    const int foo = 10;
 
21572
  }
 
21573
#endif
 
21574
 
 
21575
  ;
 
21576
  return 0;
 
21577
}
 
21578
_ACEOF
 
21579
rm -f conftest.$ac_objext
 
21580
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21581
  (eval $ac_compile) 2>conftest.er1
 
21582
  ac_status=$?
 
21583
  grep -v '^ *+' conftest.er1 >conftest.err
 
21584
  rm -f conftest.er1
 
21585
  cat conftest.err >&5
 
21586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21587
  (exit $ac_status); } &&
 
21588
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21589
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21590
  (eval $ac_try) 2>&5
 
21591
  ac_status=$?
 
21592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21593
  (exit $ac_status); }; } &&
 
21594
         { ac_try='test -s conftest.$ac_objext'
 
21595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21596
  (eval $ac_try) 2>&5
 
21597
  ac_status=$?
 
21598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21599
  (exit $ac_status); }; }; then
 
21600
  ac_cv_c_const=yes
 
21601
else
 
21602
  echo "$as_me: failed program was:" >&5
 
21603
sed 's/^/| /' conftest.$ac_ext >&5
 
21604
 
 
21605
ac_cv_c_const=no
 
21606
fi
 
21607
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21608
fi
 
21609
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
21610
echo "${ECHO_T}$ac_cv_c_const" >&6
 
21611
if test $ac_cv_c_const = no; then
 
21612
 
 
21613
cat >>confdefs.h <<\_ACEOF
 
21614
#define const
 
21615
_ACEOF
 
21616
 
 
21617
fi
 
21618
 
 
21619
echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
 
21620
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
 
21621
if test "${ac_cv_type_uid_t+set}" = set; then
 
21622
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21623
else
 
21624
  cat >conftest.$ac_ext <<_ACEOF
 
21625
/* confdefs.h.  */
 
21626
_ACEOF
 
21627
cat confdefs.h >>conftest.$ac_ext
 
21628
cat >>conftest.$ac_ext <<_ACEOF
 
21629
/* end confdefs.h.  */
 
21630
#include <sys/types.h>
 
21631
 
 
21632
_ACEOF
 
21633
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
21634
  $EGREP "uid_t" >/dev/null 2>&1; then
 
21635
  ac_cv_type_uid_t=yes
 
21636
else
 
21637
  ac_cv_type_uid_t=no
 
21638
fi
 
21639
rm -f conftest*
 
21640
 
 
21641
fi
 
21642
echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
 
21643
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
 
21644
if test $ac_cv_type_uid_t = no; then
 
21645
 
 
21646
cat >>confdefs.h <<\_ACEOF
 
21647
#define uid_t int
 
21648
_ACEOF
 
21649
 
 
21650
 
 
21651
cat >>confdefs.h <<\_ACEOF
 
21652
#define gid_t int
 
21653
_ACEOF
 
21654
 
 
21655
fi
 
21656
 
 
21657
echo "$as_me:$LINENO: checking for inline" >&5
 
21658
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
21659
if test "${ac_cv_c_inline+set}" = set; then
 
21660
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21661
else
 
21662
  ac_cv_c_inline=no
 
21663
for ac_kw in inline __inline__ __inline; do
 
21664
  cat >conftest.$ac_ext <<_ACEOF
 
21665
/* confdefs.h.  */
 
21666
_ACEOF
 
21667
cat confdefs.h >>conftest.$ac_ext
 
21668
cat >>conftest.$ac_ext <<_ACEOF
 
21669
/* end confdefs.h.  */
 
21670
#ifndef __cplusplus
 
21671
typedef int foo_t;
 
21672
static $ac_kw foo_t static_foo () {return 0; }
 
21673
$ac_kw foo_t foo () {return 0; }
 
21674
#endif
 
21675
 
 
21676
_ACEOF
 
21677
rm -f conftest.$ac_objext
 
21678
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21679
  (eval $ac_compile) 2>conftest.er1
 
21680
  ac_status=$?
 
21681
  grep -v '^ *+' conftest.er1 >conftest.err
 
21682
  rm -f conftest.er1
 
21683
  cat conftest.err >&5
 
21684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21685
  (exit $ac_status); } &&
 
21686
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21688
  (eval $ac_try) 2>&5
 
21689
  ac_status=$?
 
21690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21691
  (exit $ac_status); }; } &&
 
21692
         { ac_try='test -s conftest.$ac_objext'
 
21693
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21694
  (eval $ac_try) 2>&5
 
21695
  ac_status=$?
 
21696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21697
  (exit $ac_status); }; }; then
 
21698
  ac_cv_c_inline=$ac_kw; break
 
21699
else
 
21700
  echo "$as_me: failed program was:" >&5
 
21701
sed 's/^/| /' conftest.$ac_ext >&5
 
21702
 
 
21703
fi
 
21704
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21705
done
 
21706
 
 
21707
fi
 
21708
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
21709
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
21710
 
 
21711
 
 
21712
case $ac_cv_c_inline in
 
21713
  inline | yes) ;;
 
21714
  *)
 
21715
    case $ac_cv_c_inline in
 
21716
      no) ac_val=;;
 
21717
      *) ac_val=$ac_cv_c_inline;;
 
21718
    esac
 
21719
    cat >>confdefs.h <<_ACEOF
 
21720
#ifndef __cplusplus
 
21721
#define inline $ac_val
 
21722
#endif
 
21723
_ACEOF
 
21724
    ;;
 
21725
esac
 
21726
 
 
21727
echo "$as_me:$LINENO: checking for mode_t" >&5
 
21728
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
 
21729
if test "${ac_cv_type_mode_t+set}" = set; then
 
21730
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21731
else
 
21732
  cat >conftest.$ac_ext <<_ACEOF
 
21733
/* confdefs.h.  */
 
21734
_ACEOF
 
21735
cat confdefs.h >>conftest.$ac_ext
 
21736
cat >>conftest.$ac_ext <<_ACEOF
 
21737
/* end confdefs.h.  */
 
21738
$ac_includes_default
 
21739
int
 
21740
main ()
 
21741
{
 
21742
if ((mode_t *) 0)
 
21743
  return 0;
 
21744
if (sizeof (mode_t))
 
21745
  return 0;
 
21746
  ;
 
21747
  return 0;
 
21748
}
 
21749
_ACEOF
 
21750
rm -f conftest.$ac_objext
 
21751
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21752
  (eval $ac_compile) 2>conftest.er1
 
21753
  ac_status=$?
 
21754
  grep -v '^ *+' conftest.er1 >conftest.err
 
21755
  rm -f conftest.er1
 
21756
  cat conftest.err >&5
 
21757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21758
  (exit $ac_status); } &&
 
21759
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21760
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21761
  (eval $ac_try) 2>&5
 
21762
  ac_status=$?
 
21763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21764
  (exit $ac_status); }; } &&
 
21765
         { ac_try='test -s conftest.$ac_objext'
 
21766
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21767
  (eval $ac_try) 2>&5
 
21768
  ac_status=$?
 
21769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21770
  (exit $ac_status); }; }; then
 
21771
  ac_cv_type_mode_t=yes
 
21772
else
 
21773
  echo "$as_me: failed program was:" >&5
 
21774
sed 's/^/| /' conftest.$ac_ext >&5
 
21775
 
 
21776
ac_cv_type_mode_t=no
 
21777
fi
 
21778
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21779
fi
 
21780
echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
 
21781
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
 
21782
if test $ac_cv_type_mode_t = yes; then
 
21783
  :
 
21784
else
 
21785
 
 
21786
cat >>confdefs.h <<_ACEOF
 
21787
#define mode_t int
 
21788
_ACEOF
 
21789
 
 
21790
fi
 
21791
 
 
21792
echo "$as_me:$LINENO: checking for off_t" >&5
 
21793
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
 
21794
if test "${ac_cv_type_off_t+set}" = set; then
 
21795
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21796
else
 
21797
  cat >conftest.$ac_ext <<_ACEOF
 
21798
/* confdefs.h.  */
 
21799
_ACEOF
 
21800
cat confdefs.h >>conftest.$ac_ext
 
21801
cat >>conftest.$ac_ext <<_ACEOF
 
21802
/* end confdefs.h.  */
 
21803
$ac_includes_default
 
21804
int
 
21805
main ()
 
21806
{
 
21807
if ((off_t *) 0)
 
21808
  return 0;
 
21809
if (sizeof (off_t))
 
21810
  return 0;
 
21811
  ;
 
21812
  return 0;
 
21813
}
 
21814
_ACEOF
 
21815
rm -f conftest.$ac_objext
 
21816
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21817
  (eval $ac_compile) 2>conftest.er1
 
21818
  ac_status=$?
 
21819
  grep -v '^ *+' conftest.er1 >conftest.err
 
21820
  rm -f conftest.er1
 
21821
  cat conftest.err >&5
 
21822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21823
  (exit $ac_status); } &&
 
21824
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21825
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21826
  (eval $ac_try) 2>&5
 
21827
  ac_status=$?
 
21828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21829
  (exit $ac_status); }; } &&
 
21830
         { ac_try='test -s conftest.$ac_objext'
 
21831
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21832
  (eval $ac_try) 2>&5
 
21833
  ac_status=$?
 
21834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21835
  (exit $ac_status); }; }; then
 
21836
  ac_cv_type_off_t=yes
 
21837
else
 
21838
  echo "$as_me: failed program was:" >&5
 
21839
sed 's/^/| /' conftest.$ac_ext >&5
 
21840
 
 
21841
ac_cv_type_off_t=no
 
21842
fi
 
21843
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21844
fi
 
21845
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
 
21846
echo "${ECHO_T}$ac_cv_type_off_t" >&6
 
21847
if test $ac_cv_type_off_t = yes; then
 
21848
  :
 
21849
else
 
21850
 
 
21851
cat >>confdefs.h <<_ACEOF
 
21852
#define off_t long
 
21853
_ACEOF
 
21854
 
 
21855
fi
 
21856
 
 
21857
echo "$as_me:$LINENO: checking for pid_t" >&5
 
21858
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
 
21859
if test "${ac_cv_type_pid_t+set}" = set; then
 
21860
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21861
else
 
21862
  cat >conftest.$ac_ext <<_ACEOF
 
21863
/* confdefs.h.  */
 
21864
_ACEOF
 
21865
cat confdefs.h >>conftest.$ac_ext
 
21866
cat >>conftest.$ac_ext <<_ACEOF
 
21867
/* end confdefs.h.  */
 
21868
$ac_includes_default
 
21869
int
 
21870
main ()
 
21871
{
 
21872
if ((pid_t *) 0)
 
21873
  return 0;
 
21874
if (sizeof (pid_t))
 
21875
  return 0;
 
21876
  ;
 
21877
  return 0;
 
21878
}
 
21879
_ACEOF
 
21880
rm -f conftest.$ac_objext
 
21881
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21882
  (eval $ac_compile) 2>conftest.er1
 
21883
  ac_status=$?
 
21884
  grep -v '^ *+' conftest.er1 >conftest.err
 
21885
  rm -f conftest.er1
 
21886
  cat conftest.err >&5
 
21887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21888
  (exit $ac_status); } &&
 
21889
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21890
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21891
  (eval $ac_try) 2>&5
 
21892
  ac_status=$?
 
21893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21894
  (exit $ac_status); }; } &&
 
21895
         { ac_try='test -s conftest.$ac_objext'
 
21896
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21897
  (eval $ac_try) 2>&5
 
21898
  ac_status=$?
 
21899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21900
  (exit $ac_status); }; }; then
 
21901
  ac_cv_type_pid_t=yes
 
21902
else
 
21903
  echo "$as_me: failed program was:" >&5
 
21904
sed 's/^/| /' conftest.$ac_ext >&5
 
21905
 
 
21906
ac_cv_type_pid_t=no
 
21907
fi
 
21908
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21909
fi
 
21910
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 
21911
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
 
21912
if test $ac_cv_type_pid_t = yes; then
 
21913
  :
 
21914
else
 
21915
 
 
21916
cat >>confdefs.h <<_ACEOF
 
21917
#define pid_t int
 
21918
_ACEOF
 
21919
 
 
21920
fi
 
21921
 
 
21922
echo "$as_me:$LINENO: checking for size_t" >&5
 
21923
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
21924
if test "${ac_cv_type_size_t+set}" = set; then
 
21925
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21926
else
 
21927
  cat >conftest.$ac_ext <<_ACEOF
 
21928
/* confdefs.h.  */
 
21929
_ACEOF
 
21930
cat confdefs.h >>conftest.$ac_ext
 
21931
cat >>conftest.$ac_ext <<_ACEOF
 
21932
/* end confdefs.h.  */
 
21933
$ac_includes_default
 
21934
int
 
21935
main ()
 
21936
{
 
21937
if ((size_t *) 0)
 
21938
  return 0;
 
21939
if (sizeof (size_t))
 
21940
  return 0;
 
21941
  ;
 
21942
  return 0;
 
21943
}
 
21944
_ACEOF
 
21945
rm -f conftest.$ac_objext
 
21946
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21947
  (eval $ac_compile) 2>conftest.er1
 
21948
  ac_status=$?
 
21949
  grep -v '^ *+' conftest.er1 >conftest.err
 
21950
  rm -f conftest.er1
 
21951
  cat conftest.err >&5
 
21952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21953
  (exit $ac_status); } &&
 
21954
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21955
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21956
  (eval $ac_try) 2>&5
 
21957
  ac_status=$?
 
21958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21959
  (exit $ac_status); }; } &&
 
21960
         { ac_try='test -s conftest.$ac_objext'
 
21961
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21962
  (eval $ac_try) 2>&5
 
21963
  ac_status=$?
 
21964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21965
  (exit $ac_status); }; }; then
 
21966
  ac_cv_type_size_t=yes
 
21967
else
 
21968
  echo "$as_me: failed program was:" >&5
 
21969
sed 's/^/| /' conftest.$ac_ext >&5
 
21970
 
 
21971
ac_cv_type_size_t=no
 
21972
fi
 
21973
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21974
fi
 
21975
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
21976
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
21977
if test $ac_cv_type_size_t = yes; then
 
21978
  :
 
21979
else
 
21980
 
 
21981
cat >>confdefs.h <<_ACEOF
 
21982
#define size_t unsigned
 
21983
_ACEOF
 
21984
 
 
21985
fi
 
21986
 
 
21987
 
 
21988
echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
 
21989
echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
 
21990
if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
 
21991
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21992
else
 
21993
  cat >conftest.$ac_ext <<_ACEOF
 
21994
/* confdefs.h.  */
 
21995
_ACEOF
 
21996
cat confdefs.h >>conftest.$ac_ext
 
21997
cat >>conftest.$ac_ext <<_ACEOF
 
21998
/* end confdefs.h.  */
 
21999
$ac_includes_default
 
22000
int
 
22001
main ()
 
22002
{
 
22003
static struct stat ac_aggr;
 
22004
if (ac_aggr.st_rdev)
 
22005
return 0;
 
22006
  ;
 
22007
  return 0;
 
22008
}
 
22009
_ACEOF
 
22010
rm -f conftest.$ac_objext
 
22011
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22012
  (eval $ac_compile) 2>conftest.er1
 
22013
  ac_status=$?
 
22014
  grep -v '^ *+' conftest.er1 >conftest.err
 
22015
  rm -f conftest.er1
 
22016
  cat conftest.err >&5
 
22017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22018
  (exit $ac_status); } &&
 
22019
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22020
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22021
  (eval $ac_try) 2>&5
 
22022
  ac_status=$?
 
22023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22024
  (exit $ac_status); }; } &&
 
22025
         { ac_try='test -s conftest.$ac_objext'
 
22026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22027
  (eval $ac_try) 2>&5
 
22028
  ac_status=$?
 
22029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22030
  (exit $ac_status); }; }; then
 
22031
  ac_cv_member_struct_stat_st_rdev=yes
 
22032
else
 
22033
  echo "$as_me: failed program was:" >&5
 
22034
sed 's/^/| /' conftest.$ac_ext >&5
 
22035
 
 
22036
cat >conftest.$ac_ext <<_ACEOF
 
22037
/* confdefs.h.  */
 
22038
_ACEOF
 
22039
cat confdefs.h >>conftest.$ac_ext
 
22040
cat >>conftest.$ac_ext <<_ACEOF
 
22041
/* end confdefs.h.  */
 
22042
$ac_includes_default
 
22043
int
 
22044
main ()
 
22045
{
 
22046
static struct stat ac_aggr;
 
22047
if (sizeof ac_aggr.st_rdev)
 
22048
return 0;
 
22049
  ;
 
22050
  return 0;
 
22051
}
 
22052
_ACEOF
 
22053
rm -f conftest.$ac_objext
 
22054
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22055
  (eval $ac_compile) 2>conftest.er1
 
22056
  ac_status=$?
 
22057
  grep -v '^ *+' conftest.er1 >conftest.err
 
22058
  rm -f conftest.er1
 
22059
  cat conftest.err >&5
 
22060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22061
  (exit $ac_status); } &&
 
22062
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22063
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22064
  (eval $ac_try) 2>&5
 
22065
  ac_status=$?
 
22066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22067
  (exit $ac_status); }; } &&
 
22068
         { ac_try='test -s conftest.$ac_objext'
 
22069
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22070
  (eval $ac_try) 2>&5
 
22071
  ac_status=$?
 
22072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22073
  (exit $ac_status); }; }; then
 
22074
  ac_cv_member_struct_stat_st_rdev=yes
 
22075
else
 
22076
  echo "$as_me: failed program was:" >&5
 
22077
sed 's/^/| /' conftest.$ac_ext >&5
 
22078
 
 
22079
ac_cv_member_struct_stat_st_rdev=no
 
22080
fi
 
22081
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22082
fi
 
22083
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22084
fi
 
22085
echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
 
22086
echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
 
22087
if test $ac_cv_member_struct_stat_st_rdev = yes; then
 
22088
 
 
22089
cat >>confdefs.h <<_ACEOF
 
22090
#define HAVE_STRUCT_STAT_ST_RDEV 1
 
22091
_ACEOF
 
22092
 
 
22093
 
 
22094
cat >>confdefs.h <<\_ACEOF
 
22095
#define HAVE_ST_RDEV 1
 
22096
_ACEOF
 
22097
 
 
22098
fi
 
22099
 
 
22100
 
 
22101
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
22102
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
 
22103
if test "${ac_cv_header_time+set}" = set; then
 
22104
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22105
else
 
22106
  cat >conftest.$ac_ext <<_ACEOF
 
22107
/* confdefs.h.  */
 
22108
_ACEOF
 
22109
cat confdefs.h >>conftest.$ac_ext
 
22110
cat >>conftest.$ac_ext <<_ACEOF
 
22111
/* end confdefs.h.  */
 
22112
#include <sys/types.h>
 
22113
#include <sys/time.h>
 
22114
#include <time.h>
 
22115
 
 
22116
int
 
22117
main ()
 
22118
{
 
22119
if ((struct tm *) 0)
 
22120
return 0;
 
22121
  ;
 
22122
  return 0;
 
22123
}
 
22124
_ACEOF
 
22125
rm -f conftest.$ac_objext
 
22126
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22127
  (eval $ac_compile) 2>conftest.er1
 
22128
  ac_status=$?
 
22129
  grep -v '^ *+' conftest.er1 >conftest.err
 
22130
  rm -f conftest.er1
 
22131
  cat conftest.err >&5
 
22132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22133
  (exit $ac_status); } &&
 
22134
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
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); }; } &&
 
22140
         { ac_try='test -s conftest.$ac_objext'
 
22141
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22142
  (eval $ac_try) 2>&5
 
22143
  ac_status=$?
 
22144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22145
  (exit $ac_status); }; }; then
 
22146
  ac_cv_header_time=yes
 
22147
else
 
22148
  echo "$as_me: failed program was:" >&5
 
22149
sed 's/^/| /' conftest.$ac_ext >&5
 
22150
 
 
22151
ac_cv_header_time=no
 
22152
fi
 
22153
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22154
fi
 
22155
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
22156
echo "${ECHO_T}$ac_cv_header_time" >&6
 
22157
if test $ac_cv_header_time = yes; then
 
22158
 
 
22159
cat >>confdefs.h <<\_ACEOF
 
22160
#define TIME_WITH_SYS_TIME 1
 
22161
_ACEOF
 
22162
 
 
22163
fi
 
22164
 
 
22165
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
 
22166
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
 
22167
if test "${ac_cv_struct_tm+set}" = set; then
 
22168
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22169
else
 
22170
  cat >conftest.$ac_ext <<_ACEOF
 
22171
/* confdefs.h.  */
 
22172
_ACEOF
 
22173
cat confdefs.h >>conftest.$ac_ext
 
22174
cat >>conftest.$ac_ext <<_ACEOF
 
22175
/* end confdefs.h.  */
 
22176
#include <sys/types.h>
 
22177
#include <time.h>
 
22178
 
 
22179
int
 
22180
main ()
 
22181
{
 
22182
struct tm *tp; tp->tm_sec;
 
22183
  ;
 
22184
  return 0;
 
22185
}
 
22186
_ACEOF
 
22187
rm -f conftest.$ac_objext
 
22188
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22189
  (eval $ac_compile) 2>conftest.er1
 
22190
  ac_status=$?
 
22191
  grep -v '^ *+' conftest.er1 >conftest.err
 
22192
  rm -f conftest.er1
 
22193
  cat conftest.err >&5
 
22194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22195
  (exit $ac_status); } &&
 
22196
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22198
  (eval $ac_try) 2>&5
 
22199
  ac_status=$?
 
22200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22201
  (exit $ac_status); }; } &&
 
22202
         { ac_try='test -s conftest.$ac_objext'
 
22203
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22204
  (eval $ac_try) 2>&5
 
22205
  ac_status=$?
 
22206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22207
  (exit $ac_status); }; }; then
 
22208
  ac_cv_struct_tm=time.h
 
22209
else
 
22210
  echo "$as_me: failed program was:" >&5
 
22211
sed 's/^/| /' conftest.$ac_ext >&5
 
22212
 
 
22213
ac_cv_struct_tm=sys/time.h
 
22214
fi
 
22215
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22216
fi
 
22217
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
 
22218
echo "${ECHO_T}$ac_cv_struct_tm" >&6
 
22219
if test $ac_cv_struct_tm = sys/time.h; then
 
22220
 
 
22221
cat >>confdefs.h <<\_ACEOF
 
22222
#define TM_IN_SYS_TIME 1
 
22223
_ACEOF
 
22224
 
 
22225
fi
 
22226
 
 
22227
 
 
22228
echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
 
22229
echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
 
22230
if test "${ac_cv_type_getgroups+set}" = set; then
 
22231
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22232
else
 
22233
  if test "$cross_compiling" = yes; then
 
22234
  ac_cv_type_getgroups=cross
 
22235
else
 
22236
  cat >conftest.$ac_ext <<_ACEOF
 
22237
/* confdefs.h.  */
 
22238
_ACEOF
 
22239
cat confdefs.h >>conftest.$ac_ext
 
22240
cat >>conftest.$ac_ext <<_ACEOF
 
22241
/* end confdefs.h.  */
 
22242
/* Thanks to Mike Rendell for this test.  */
 
22243
#include <sys/types.h>
 
22244
#define NGID 256
 
22245
#undef MAX
 
22246
#define MAX(x, y) ((x) > (y) ? (x) : (y))
 
22247
 
 
22248
int
 
22249
main ()
 
22250
{
 
22251
  gid_t gidset[NGID];
 
22252
  int i, n;
 
22253
  union { gid_t gval; long lval; }  val;
 
22254
 
 
22255
  val.lval = -1;
 
22256
  for (i = 0; i < NGID; i++)
 
22257
    gidset[i] = val.gval;
 
22258
  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
 
22259
                 gidset);
 
22260
  /* Exit non-zero if getgroups seems to require an array of ints.  This
 
22261
     happens when gid_t is short but getgroups modifies an array of ints.  */
 
22262
  exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
 
22263
}
 
22264
_ACEOF
 
22265
rm -f conftest$ac_exeext
 
22266
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22267
  (eval $ac_link) 2>&5
 
22268
  ac_status=$?
 
22269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22270
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22271
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22272
  (eval $ac_try) 2>&5
 
22273
  ac_status=$?
 
22274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22275
  (exit $ac_status); }; }; then
 
22276
  ac_cv_type_getgroups=gid_t
 
22277
else
 
22278
  echo "$as_me: program exited with status $ac_status" >&5
 
22279
echo "$as_me: failed program was:" >&5
 
22280
sed 's/^/| /' conftest.$ac_ext >&5
 
22281
 
 
22282
( exit $ac_status )
 
22283
ac_cv_type_getgroups=int
 
22284
fi
 
22285
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22286
fi
 
22287
if test $ac_cv_type_getgroups = cross; then
 
22288
        cat >conftest.$ac_ext <<_ACEOF
 
22289
/* confdefs.h.  */
 
22290
_ACEOF
 
22291
cat confdefs.h >>conftest.$ac_ext
 
22292
cat >>conftest.$ac_ext <<_ACEOF
 
22293
/* end confdefs.h.  */
 
22294
#include <unistd.h>
 
22295
 
 
22296
_ACEOF
 
22297
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
22298
  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
 
22299
  ac_cv_type_getgroups=gid_t
 
22300
else
 
22301
  ac_cv_type_getgroups=int
 
22302
fi
 
22303
rm -f conftest*
 
22304
 
 
22305
fi
 
22306
fi
 
22307
echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
 
22308
echo "${ECHO_T}$ac_cv_type_getgroups" >&6
 
22309
 
 
22310
cat >>confdefs.h <<_ACEOF
 
22311
#define GETGROUPS_T $ac_cv_type_getgroups
 
22312
_ACEOF
 
22313
 
 
22314
 
 
22315
if test $ac_cv_c_compiler_gnu = yes; then
 
22316
    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
 
22317
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
 
22318
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
 
22319
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22320
else
 
22321
    ac_pattern="Autoconf.*'x'"
 
22322
  cat >conftest.$ac_ext <<_ACEOF
 
22323
/* confdefs.h.  */
 
22324
_ACEOF
 
22325
cat confdefs.h >>conftest.$ac_ext
 
22326
cat >>conftest.$ac_ext <<_ACEOF
 
22327
/* end confdefs.h.  */
 
22328
#include <sgtty.h>
 
22329
Autoconf TIOCGETP
 
22330
_ACEOF
 
22331
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
22332
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
22333
  ac_cv_prog_gcc_traditional=yes
 
22334
else
 
22335
  ac_cv_prog_gcc_traditional=no
 
22336
fi
 
22337
rm -f conftest*
 
22338
 
 
22339
 
 
22340
  if test $ac_cv_prog_gcc_traditional = no; then
 
22341
    cat >conftest.$ac_ext <<_ACEOF
 
22342
/* confdefs.h.  */
 
22343
_ACEOF
 
22344
cat confdefs.h >>conftest.$ac_ext
 
22345
cat >>conftest.$ac_ext <<_ACEOF
 
22346
/* end confdefs.h.  */
 
22347
#include <termio.h>
 
22348
Autoconf TCGETA
 
22349
_ACEOF
 
22350
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
22351
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
22352
  ac_cv_prog_gcc_traditional=yes
 
22353
fi
 
22354
rm -f conftest*
 
22355
 
 
22356
  fi
 
22357
fi
 
22358
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
 
22359
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
 
22360
  if test $ac_cv_prog_gcc_traditional = yes; then
 
22361
    CC="$CC -traditional"
 
22362
  fi
 
22363
fi
 
22364
 
 
22365
echo "$as_me:$LINENO: checking for working memcmp" >&5
 
22366
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
 
22367
if test "${ac_cv_func_memcmp_working+set}" = set; then
 
22368
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22369
else
 
22370
  if test "$cross_compiling" = yes; then
 
22371
  ac_cv_func_memcmp_working=no
 
22372
else
 
22373
  cat >conftest.$ac_ext <<_ACEOF
 
22374
/* confdefs.h.  */
 
22375
_ACEOF
 
22376
cat confdefs.h >>conftest.$ac_ext
 
22377
cat >>conftest.$ac_ext <<_ACEOF
 
22378
/* end confdefs.h.  */
 
22379
$ac_includes_default
 
22380
int
 
22381
main ()
 
22382
{
 
22383
 
 
22384
  /* Some versions of memcmp are not 8-bit clean.  */
 
22385
  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
 
22386
  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
 
22387
    exit (1);
 
22388
 
 
22389
  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
 
22390
     or more and with at least one buffer not starting on a 4-byte boundary.
 
22391
     William Lewis provided this test program.   */
 
22392
  {
 
22393
    char foo[21];
 
22394
    char bar[21];
 
22395
    int i;
 
22396
    for (i = 0; i < 4; i++)
 
22397
      {
 
22398
        char *a = foo + i;
 
22399
        char *b = bar + i;
 
22400
        strcpy (a, "--------01111111");
 
22401
        strcpy (b, "--------10000000");
 
22402
        if (memcmp (a, b, 16) >= 0)
 
22403
          exit (1);
 
22404
      }
 
22405
    exit (0);
 
22406
  }
 
22407
 
 
22408
  ;
 
22409
  return 0;
 
22410
}
 
22411
_ACEOF
 
22412
rm -f conftest$ac_exeext
 
22413
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22414
  (eval $ac_link) 2>&5
 
22415
  ac_status=$?
 
22416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22417
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22418
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22419
  (eval $ac_try) 2>&5
 
22420
  ac_status=$?
 
22421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22422
  (exit $ac_status); }; }; then
 
22423
  ac_cv_func_memcmp_working=yes
 
22424
else
 
22425
  echo "$as_me: program exited with status $ac_status" >&5
 
22426
echo "$as_me: failed program was:" >&5
 
22427
sed 's/^/| /' conftest.$ac_ext >&5
 
22428
 
 
22429
( exit $ac_status )
 
22430
ac_cv_func_memcmp_working=no
 
22431
fi
 
22432
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22433
fi
 
22434
fi
 
22435
echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
 
22436
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
 
22437
test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
 
22438
    "memcmp.$ac_objext"   | \
 
22439
  *" memcmp.$ac_objext"   | \
 
22440
    "memcmp.$ac_objext "* | \
 
22441
  *" memcmp.$ac_objext "* ) ;;
 
22442
  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
 
22443
esac
 
22444
 
 
22445
 
 
22446
echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
 
22447
echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
 
22448
if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
 
22449
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22450
else
 
22451
  cat >conftest.$ac_ext <<_ACEOF
 
22452
/* confdefs.h.  */
 
22453
_ACEOF
 
22454
cat confdefs.h >>conftest.$ac_ext
 
22455
cat >>conftest.$ac_ext <<_ACEOF
 
22456
/* end confdefs.h.  */
 
22457
#include <sys/types.h>
 
22458
int
 
22459
main ()
 
22460
{
 
22461
return makedev(0, 0);
 
22462
  ;
 
22463
  return 0;
 
22464
}
 
22465
_ACEOF
 
22466
rm -f conftest.$ac_objext conftest$ac_exeext
 
22467
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22468
  (eval $ac_link) 2>conftest.er1
 
22469
  ac_status=$?
 
22470
  grep -v '^ *+' conftest.er1 >conftest.err
 
22471
  rm -f conftest.er1
 
22472
  cat conftest.err >&5
 
22473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22474
  (exit $ac_status); } &&
 
22475
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22476
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22477
  (eval $ac_try) 2>&5
 
22478
  ac_status=$?
 
22479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22480
  (exit $ac_status); }; } &&
 
22481
         { ac_try='test -s conftest$ac_exeext'
 
22482
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22483
  (eval $ac_try) 2>&5
 
22484
  ac_status=$?
 
22485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22486
  (exit $ac_status); }; }; then
 
22487
  ac_cv_header_sys_types_h_makedev=yes
 
22488
else
 
22489
  echo "$as_me: failed program was:" >&5
 
22490
sed 's/^/| /' conftest.$ac_ext >&5
 
22491
 
 
22492
ac_cv_header_sys_types_h_makedev=no
 
22493
fi
 
22494
rm -f conftest.err conftest.$ac_objext \
 
22495
      conftest$ac_exeext conftest.$ac_ext
 
22496
 
 
22497
fi
 
22498
echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
 
22499
echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
 
22500
 
 
22501
if test $ac_cv_header_sys_types_h_makedev = no; then
 
22502
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
 
22503
  echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
 
22504
echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
 
22505
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
 
22506
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22507
fi
 
22508
echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
 
22509
echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
 
22510
else
 
22511
  # Is the header compilable?
 
22512
echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
 
22513
echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
 
22514
cat >conftest.$ac_ext <<_ACEOF
 
22515
/* confdefs.h.  */
 
22516
_ACEOF
 
22517
cat confdefs.h >>conftest.$ac_ext
 
22518
cat >>conftest.$ac_ext <<_ACEOF
 
22519
/* end confdefs.h.  */
 
22520
$ac_includes_default
 
22521
#include <sys/mkdev.h>
 
22522
_ACEOF
 
22523
rm -f conftest.$ac_objext
 
22524
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22525
  (eval $ac_compile) 2>conftest.er1
 
22526
  ac_status=$?
 
22527
  grep -v '^ *+' conftest.er1 >conftest.err
 
22528
  rm -f conftest.er1
 
22529
  cat conftest.err >&5
 
22530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22531
  (exit $ac_status); } &&
 
22532
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22533
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22534
  (eval $ac_try) 2>&5
 
22535
  ac_status=$?
 
22536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22537
  (exit $ac_status); }; } &&
 
22538
         { ac_try='test -s conftest.$ac_objext'
 
22539
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22540
  (eval $ac_try) 2>&5
 
22541
  ac_status=$?
 
22542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22543
  (exit $ac_status); }; }; then
 
22544
  ac_header_compiler=yes
 
22545
else
 
22546
  echo "$as_me: failed program was:" >&5
 
22547
sed 's/^/| /' conftest.$ac_ext >&5
 
22548
 
 
22549
ac_header_compiler=no
 
22550
fi
 
22551
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22552
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22553
echo "${ECHO_T}$ac_header_compiler" >&6
 
22554
 
 
22555
# Is the header present?
 
22556
echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
 
22557
echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
 
22558
cat >conftest.$ac_ext <<_ACEOF
 
22559
/* confdefs.h.  */
 
22560
_ACEOF
 
22561
cat confdefs.h >>conftest.$ac_ext
 
22562
cat >>conftest.$ac_ext <<_ACEOF
 
22563
/* end confdefs.h.  */
 
22564
#include <sys/mkdev.h>
 
22565
_ACEOF
 
22566
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
22567
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
22568
  ac_status=$?
 
22569
  grep -v '^ *+' conftest.er1 >conftest.err
 
22570
  rm -f conftest.er1
 
22571
  cat conftest.err >&5
 
22572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22573
  (exit $ac_status); } >/dev/null; then
 
22574
  if test -s conftest.err; then
 
22575
    ac_cpp_err=$ac_c_preproc_warn_flag
 
22576
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
22577
  else
 
22578
    ac_cpp_err=
 
22579
  fi
 
22580
else
 
22581
  ac_cpp_err=yes
 
22582
fi
 
22583
if test -z "$ac_cpp_err"; then
 
22584
  ac_header_preproc=yes
 
22585
else
 
22586
  echo "$as_me: failed program was:" >&5
 
22587
sed 's/^/| /' conftest.$ac_ext >&5
 
22588
 
 
22589
  ac_header_preproc=no
 
22590
fi
 
22591
rm -f conftest.err conftest.$ac_ext
 
22592
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22593
echo "${ECHO_T}$ac_header_preproc" >&6
 
22594
 
 
22595
# So?  What about this header?
 
22596
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22597
  yes:no: )
 
22598
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
22599
echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22600
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
 
22601
echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
 
22602
    ac_header_preproc=yes
 
22603
    ;;
 
22604
  no:yes:* )
 
22605
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
 
22606
echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
 
22607
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
 
22608
echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
 
22609
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
 
22610
echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
 
22611
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
 
22612
echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22613
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
 
22614
echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
 
22615
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
 
22616
echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
 
22617
    (
 
22618
      cat <<\_ASBOX
 
22619
## ------------------------------------------ ##
 
22620
## Report this to the AC_PACKAGE_NAME lists.  ##
 
22621
## ------------------------------------------ ##
 
22622
_ASBOX
 
22623
    ) |
 
22624
      sed "s/^/$as_me: WARNING:     /" >&2
 
22625
    ;;
 
22626
esac
 
22627
echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
 
22628
echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
 
22629
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
 
22630
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22631
else
 
22632
  ac_cv_header_sys_mkdev_h=$ac_header_preproc
 
22633
fi
 
22634
echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
 
22635
echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
 
22636
 
 
22637
fi
 
22638
if test $ac_cv_header_sys_mkdev_h = yes; then
 
22639
 
 
22640
cat >>confdefs.h <<\_ACEOF
 
22641
#define MAJOR_IN_MKDEV 1
 
22642
_ACEOF
 
22643
 
 
22644
fi
 
22645
 
 
22646
 
 
22647
 
 
22648
  if test $ac_cv_header_sys_mkdev_h = no; then
 
22649
    if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
 
22650
  echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
 
22651
echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
 
22652
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
 
22653
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22654
fi
 
22655
echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
 
22656
echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
 
22657
else
 
22658
  # Is the header compilable?
 
22659
echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
 
22660
echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
 
22661
cat >conftest.$ac_ext <<_ACEOF
 
22662
/* confdefs.h.  */
 
22663
_ACEOF
 
22664
cat confdefs.h >>conftest.$ac_ext
 
22665
cat >>conftest.$ac_ext <<_ACEOF
 
22666
/* end confdefs.h.  */
 
22667
$ac_includes_default
 
22668
#include <sys/sysmacros.h>
 
22669
_ACEOF
 
22670
rm -f conftest.$ac_objext
 
22671
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22672
  (eval $ac_compile) 2>conftest.er1
 
22673
  ac_status=$?
 
22674
  grep -v '^ *+' conftest.er1 >conftest.err
 
22675
  rm -f conftest.er1
 
22676
  cat conftest.err >&5
 
22677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22678
  (exit $ac_status); } &&
 
22679
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22680
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22681
  (eval $ac_try) 2>&5
 
22682
  ac_status=$?
 
22683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22684
  (exit $ac_status); }; } &&
 
22685
         { ac_try='test -s conftest.$ac_objext'
 
22686
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22687
  (eval $ac_try) 2>&5
 
22688
  ac_status=$?
 
22689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22690
  (exit $ac_status); }; }; then
 
22691
  ac_header_compiler=yes
 
22692
else
 
22693
  echo "$as_me: failed program was:" >&5
 
22694
sed 's/^/| /' conftest.$ac_ext >&5
 
22695
 
 
22696
ac_header_compiler=no
 
22697
fi
 
22698
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22699
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22700
echo "${ECHO_T}$ac_header_compiler" >&6
 
22701
 
 
22702
# Is the header present?
 
22703
echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
 
22704
echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
 
22705
cat >conftest.$ac_ext <<_ACEOF
 
22706
/* confdefs.h.  */
 
22707
_ACEOF
 
22708
cat confdefs.h >>conftest.$ac_ext
 
22709
cat >>conftest.$ac_ext <<_ACEOF
 
22710
/* end confdefs.h.  */
 
22711
#include <sys/sysmacros.h>
 
22712
_ACEOF
 
22713
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
22714
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
22715
  ac_status=$?
 
22716
  grep -v '^ *+' conftest.er1 >conftest.err
 
22717
  rm -f conftest.er1
 
22718
  cat conftest.err >&5
 
22719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22720
  (exit $ac_status); } >/dev/null; then
 
22721
  if test -s conftest.err; then
 
22722
    ac_cpp_err=$ac_c_preproc_warn_flag
 
22723
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
22724
  else
 
22725
    ac_cpp_err=
 
22726
  fi
 
22727
else
 
22728
  ac_cpp_err=yes
 
22729
fi
 
22730
if test -z "$ac_cpp_err"; then
 
22731
  ac_header_preproc=yes
 
22732
else
 
22733
  echo "$as_me: failed program was:" >&5
 
22734
sed 's/^/| /' conftest.$ac_ext >&5
 
22735
 
 
22736
  ac_header_preproc=no
 
22737
fi
 
22738
rm -f conftest.err conftest.$ac_ext
 
22739
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22740
echo "${ECHO_T}$ac_header_preproc" >&6
 
22741
 
 
22742
# So?  What about this header?
 
22743
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22744
  yes:no: )
 
22745
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
22746
echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22747
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
 
22748
echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
 
22749
    ac_header_preproc=yes
 
22750
    ;;
 
22751
  no:yes:* )
 
22752
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
 
22753
echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
 
22754
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
 
22755
echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
 
22756
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
 
22757
echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
 
22758
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
 
22759
echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22760
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
 
22761
echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
 
22762
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
 
22763
echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
 
22764
    (
 
22765
      cat <<\_ASBOX
 
22766
## ------------------------------------------ ##
 
22767
## Report this to the AC_PACKAGE_NAME lists.  ##
 
22768
## ------------------------------------------ ##
 
22769
_ASBOX
 
22770
    ) |
 
22771
      sed "s/^/$as_me: WARNING:     /" >&2
 
22772
    ;;
 
22773
esac
 
22774
echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
 
22775
echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
 
22776
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
 
22777
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22778
else
 
22779
  ac_cv_header_sys_sysmacros_h=$ac_header_preproc
 
22780
fi
 
22781
echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
 
22782
echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
 
22783
 
 
22784
fi
 
22785
if test $ac_cv_header_sys_sysmacros_h = yes; then
 
22786
 
 
22787
cat >>confdefs.h <<\_ACEOF
 
22788
#define MAJOR_IN_SYSMACROS 1
 
22789
_ACEOF
 
22790
 
 
22791
fi
 
22792
 
 
22793
 
 
22794
  fi
 
22795
fi
 
22796
 
 
22797
 
 
22798
 
 
22799
for ac_header in stdlib.h unistd.h
 
22800
do
 
22801
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22802
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22803
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22804
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22805
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22806
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22807
fi
 
22808
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22809
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22810
else
 
22811
  # Is the header compilable?
 
22812
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22813
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
22814
cat >conftest.$ac_ext <<_ACEOF
 
22815
/* confdefs.h.  */
 
22816
_ACEOF
 
22817
cat confdefs.h >>conftest.$ac_ext
 
22818
cat >>conftest.$ac_ext <<_ACEOF
 
22819
/* end confdefs.h.  */
 
22820
$ac_includes_default
 
22821
#include <$ac_header>
 
22822
_ACEOF
 
22823
rm -f conftest.$ac_objext
 
22824
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22825
  (eval $ac_compile) 2>conftest.er1
 
22826
  ac_status=$?
 
22827
  grep -v '^ *+' conftest.er1 >conftest.err
 
22828
  rm -f conftest.er1
 
22829
  cat conftest.err >&5
 
22830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22831
  (exit $ac_status); } &&
 
22832
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22833
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22834
  (eval $ac_try) 2>&5
 
22835
  ac_status=$?
 
22836
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22837
  (exit $ac_status); }; } &&
 
22838
         { ac_try='test -s conftest.$ac_objext'
 
22839
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22840
  (eval $ac_try) 2>&5
 
22841
  ac_status=$?
 
22842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22843
  (exit $ac_status); }; }; then
 
22844
  ac_header_compiler=yes
 
22845
else
 
22846
  echo "$as_me: failed program was:" >&5
 
22847
sed 's/^/| /' conftest.$ac_ext >&5
 
22848
 
 
22849
ac_header_compiler=no
 
22850
fi
 
22851
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22852
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22853
echo "${ECHO_T}$ac_header_compiler" >&6
 
22854
 
 
22855
# Is the header present?
 
22856
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22857
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
22858
cat >conftest.$ac_ext <<_ACEOF
 
22859
/* confdefs.h.  */
 
22860
_ACEOF
 
22861
cat confdefs.h >>conftest.$ac_ext
 
22862
cat >>conftest.$ac_ext <<_ACEOF
 
22863
/* end confdefs.h.  */
 
22864
#include <$ac_header>
 
22865
_ACEOF
 
22866
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
22867
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
22868
  ac_status=$?
 
22869
  grep -v '^ *+' conftest.er1 >conftest.err
 
22870
  rm -f conftest.er1
 
22871
  cat conftest.err >&5
 
22872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22873
  (exit $ac_status); } >/dev/null; then
 
22874
  if test -s conftest.err; then
 
22875
    ac_cpp_err=$ac_c_preproc_warn_flag
 
22876
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
22877
  else
 
22878
    ac_cpp_err=
 
22879
  fi
 
22880
else
 
22881
  ac_cpp_err=yes
 
22882
fi
 
22883
if test -z "$ac_cpp_err"; then
 
22884
  ac_header_preproc=yes
 
22885
else
 
22886
  echo "$as_me: failed program was:" >&5
 
22887
sed 's/^/| /' conftest.$ac_ext >&5
 
22888
 
 
22889
  ac_header_preproc=no
 
22890
fi
 
22891
rm -f conftest.err conftest.$ac_ext
 
22892
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22893
echo "${ECHO_T}$ac_header_preproc" >&6
 
22894
 
 
22895
# So?  What about this header?
 
22896
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22897
  yes:no: )
 
22898
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22899
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22900
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22901
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22902
    ac_header_preproc=yes
 
22903
    ;;
 
22904
  no:yes:* )
 
22905
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22906
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22907
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22908
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22909
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22910
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22911
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22912
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22913
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22914
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22915
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22916
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22917
    (
 
22918
      cat <<\_ASBOX
 
22919
## ------------------------------------------ ##
 
22920
## Report this to the AC_PACKAGE_NAME lists.  ##
 
22921
## ------------------------------------------ ##
 
22922
_ASBOX
 
22923
    ) |
 
22924
      sed "s/^/$as_me: WARNING:     /" >&2
 
22925
    ;;
 
22926
esac
 
22927
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22928
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22929
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22930
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22931
else
 
22932
  eval "$as_ac_Header=\$ac_header_preproc"
 
22933
fi
 
22934
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22935
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22936
 
 
22937
fi
 
22938
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
22939
  cat >>confdefs.h <<_ACEOF
 
22940
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22941
_ACEOF
 
22942
 
 
22943
fi
 
22944
 
 
22945
done
 
22946
 
 
22947
 
 
22948
for ac_func in getpagesize
 
22949
do
 
22950
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
22951
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
22952
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
22953
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
22954
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22955
else
 
22956
  cat >conftest.$ac_ext <<_ACEOF
 
22957
/* confdefs.h.  */
 
22958
_ACEOF
 
22959
cat confdefs.h >>conftest.$ac_ext
 
22960
cat >>conftest.$ac_ext <<_ACEOF
 
22961
/* end confdefs.h.  */
 
22962
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
22963
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22964
#define $ac_func innocuous_$ac_func
 
22965
 
 
22966
/* System header to define __stub macros and hopefully few prototypes,
 
22967
    which can conflict with char $ac_func (); below.
 
22968
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22969
    <limits.h> exists even on freestanding compilers.  */
 
22970
 
 
22971
#ifdef __STDC__
 
22972
# include <limits.h>
 
22973
#else
 
22974
# include <assert.h>
 
22975
#endif
 
22976
 
 
22977
#undef $ac_func
 
22978
 
 
22979
/* Override any gcc2 internal prototype to avoid an error.  */
 
22980
#ifdef __cplusplus
 
22981
extern "C"
 
22982
{
 
22983
#endif
 
22984
/* We use char because int might match the return type of a gcc2
 
22985
   builtin and then its argument prototype would still apply.  */
 
22986
char $ac_func ();
 
22987
/* The GNU C library defines this for functions which it implements
 
22988
    to always fail with ENOSYS.  Some functions are actually named
 
22989
    something starting with __ and the normal name is an alias.  */
 
22990
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
22991
choke me
 
22992
#else
 
22993
char (*f) () = $ac_func;
 
22994
#endif
 
22995
#ifdef __cplusplus
 
22996
}
 
22997
#endif
 
22998
 
 
22999
int
 
23000
main ()
 
23001
{
 
23002
return f != $ac_func;
 
23003
  ;
 
23004
  return 0;
 
23005
}
 
23006
_ACEOF
 
23007
rm -f conftest.$ac_objext conftest$ac_exeext
 
23008
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23009
  (eval $ac_link) 2>conftest.er1
 
23010
  ac_status=$?
 
23011
  grep -v '^ *+' conftest.er1 >conftest.err
 
23012
  rm -f conftest.er1
 
23013
  cat conftest.err >&5
 
23014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23015
  (exit $ac_status); } &&
 
23016
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23017
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23018
  (eval $ac_try) 2>&5
 
23019
  ac_status=$?
 
23020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23021
  (exit $ac_status); }; } &&
 
23022
         { ac_try='test -s conftest$ac_exeext'
 
23023
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23024
  (eval $ac_try) 2>&5
 
23025
  ac_status=$?
 
23026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23027
  (exit $ac_status); }; }; then
 
23028
  eval "$as_ac_var=yes"
 
23029
else
 
23030
  echo "$as_me: failed program was:" >&5
 
23031
sed 's/^/| /' conftest.$ac_ext >&5
 
23032
 
 
23033
eval "$as_ac_var=no"
 
23034
fi
 
23035
rm -f conftest.err conftest.$ac_objext \
 
23036
      conftest$ac_exeext conftest.$ac_ext
 
23037
fi
 
23038
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
23039
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
23040
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
23041
  cat >>confdefs.h <<_ACEOF
 
23042
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
23043
_ACEOF
 
23044
 
 
23045
fi
 
23046
done
 
23047
 
 
23048
echo "$as_me:$LINENO: checking for working mmap" >&5
 
23049
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
 
23050
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
 
23051
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23052
else
 
23053
  if test "$cross_compiling" = yes; then
 
23054
  ac_cv_func_mmap_fixed_mapped=no
 
23055
else
 
23056
  cat >conftest.$ac_ext <<_ACEOF
 
23057
/* confdefs.h.  */
 
23058
_ACEOF
 
23059
cat confdefs.h >>conftest.$ac_ext
 
23060
cat >>conftest.$ac_ext <<_ACEOF
 
23061
/* end confdefs.h.  */
 
23062
$ac_includes_default
 
23063
/* malloc might have been renamed as rpl_malloc. */
 
23064
#undef malloc
 
23065
 
 
23066
/* Thanks to Mike Haertel and Jim Avera for this test.
 
23067
   Here is a matrix of mmap possibilities:
 
23068
        mmap private not fixed
 
23069
        mmap private fixed at somewhere currently unmapped
 
23070
        mmap private fixed at somewhere already mapped
 
23071
        mmap shared not fixed
 
23072
        mmap shared fixed at somewhere currently unmapped
 
23073
        mmap shared fixed at somewhere already mapped
 
23074
   For private mappings, we should verify that changes cannot be read()
 
23075
   back from the file, nor mmap's back from the file at a different
 
23076
   address.  (There have been systems where private was not correctly
 
23077
   implemented like the infamous i386 svr4.0, and systems where the
 
23078
   VM page cache was not coherent with the file system buffer cache
 
23079
   like early versions of FreeBSD and possibly contemporary NetBSD.)
 
23080
   For shared mappings, we should conversely verify that changes get
 
23081
   propagated back to all the places they're supposed to be.
 
23082
 
 
23083
   Grep wants private fixed already mapped.
 
23084
   The main things grep needs to know about mmap are:
 
23085
   * does it exist and is it safe to write into the mmap'd area
 
23086
   * how to use it (BSD variants)  */
 
23087
 
 
23088
#include <fcntl.h>
 
23089
#include <sys/mman.h>
 
23090
 
 
23091
#if !STDC_HEADERS && !HAVE_STDLIB_H
 
23092
char *malloc ();
 
23093
#endif
 
23094
 
 
23095
/* This mess was copied from the GNU getpagesize.h.  */
 
23096
#if !HAVE_GETPAGESIZE
 
23097
/* Assume that all systems that can run configure have sys/param.h.  */
 
23098
# if !HAVE_SYS_PARAM_H
 
23099
#  define HAVE_SYS_PARAM_H 1
 
23100
# endif
 
23101
 
 
23102
# ifdef _SC_PAGESIZE
 
23103
#  define getpagesize() sysconf(_SC_PAGESIZE)
 
23104
# else /* no _SC_PAGESIZE */
 
23105
#  if HAVE_SYS_PARAM_H
 
23106
#   include <sys/param.h>
 
23107
#   ifdef EXEC_PAGESIZE
 
23108
#    define getpagesize() EXEC_PAGESIZE
 
23109
#   else /* no EXEC_PAGESIZE */
 
23110
#    ifdef NBPG
 
23111
#     define getpagesize() NBPG * CLSIZE
 
23112
#     ifndef CLSIZE
 
23113
#      define CLSIZE 1
 
23114
#     endif /* no CLSIZE */
 
23115
#    else /* no NBPG */
 
23116
#     ifdef NBPC
 
23117
#      define getpagesize() NBPC
 
23118
#     else /* no NBPC */
 
23119
#      ifdef PAGESIZE
 
23120
#       define getpagesize() PAGESIZE
 
23121
#      endif /* PAGESIZE */
 
23122
#     endif /* no NBPC */
 
23123
#    endif /* no NBPG */
 
23124
#   endif /* no EXEC_PAGESIZE */
 
23125
#  else /* no HAVE_SYS_PARAM_H */
 
23126
#   define getpagesize() 8192   /* punt totally */
 
23127
#  endif /* no HAVE_SYS_PARAM_H */
 
23128
# endif /* no _SC_PAGESIZE */
 
23129
 
 
23130
#endif /* no HAVE_GETPAGESIZE */
 
23131
 
 
23132
int
 
23133
main ()
 
23134
{
 
23135
  char *data, *data2, *data3;
 
23136
  int i, pagesize;
 
23137
  int fd;
 
23138
 
 
23139
  pagesize = getpagesize ();
 
23140
 
 
23141
  /* First, make a file with some known garbage in it. */
 
23142
  data = (char *) malloc (pagesize);
 
23143
  if (!data)
 
23144
    exit (1);
 
23145
  for (i = 0; i < pagesize; ++i)
 
23146
    *(data + i) = rand ();
 
23147
  umask (0);
 
23148
  fd = creat ("conftest.mmap", 0600);
 
23149
  if (fd < 0)
 
23150
    exit (1);
 
23151
  if (write (fd, data, pagesize) != pagesize)
 
23152
    exit (1);
 
23153
  close (fd);
 
23154
 
 
23155
  /* Next, try to mmap the file at a fixed address which already has
 
23156
     something else allocated at it.  If we can, also make sure that
 
23157
     we see the same garbage.  */
 
23158
  fd = open ("conftest.mmap", O_RDWR);
 
23159
  if (fd < 0)
 
23160
    exit (1);
 
23161
  data2 = (char *) malloc (2 * pagesize);
 
23162
  if (!data2)
 
23163
    exit (1);
 
23164
  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
 
23165
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
 
23166
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
23167
    exit (1);
 
23168
  for (i = 0; i < pagesize; ++i)
 
23169
    if (*(data + i) != *(data2 + i))
 
23170
      exit (1);
 
23171
 
 
23172
  /* Finally, make sure that changes to the mapped area do not
 
23173
     percolate back to the file as seen by read().  (This is a bug on
 
23174
     some variants of i386 svr4.0.)  */
 
23175
  for (i = 0; i < pagesize; ++i)
 
23176
    *(data2 + i) = *(data2 + i) + 1;
 
23177
  data3 = (char *) malloc (pagesize);
 
23178
  if (!data3)
 
23179
    exit (1);
 
23180
  if (read (fd, data3, pagesize) != pagesize)
 
23181
    exit (1);
 
23182
  for (i = 0; i < pagesize; ++i)
 
23183
    if (*(data + i) != *(data3 + i))
 
23184
      exit (1);
 
23185
  close (fd);
 
23186
  exit (0);
 
23187
}
 
23188
_ACEOF
 
23189
rm -f conftest$ac_exeext
 
23190
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23191
  (eval $ac_link) 2>&5
 
23192
  ac_status=$?
 
23193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23194
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23196
  (eval $ac_try) 2>&5
 
23197
  ac_status=$?
 
23198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23199
  (exit $ac_status); }; }; then
 
23200
  ac_cv_func_mmap_fixed_mapped=yes
 
23201
else
 
23202
  echo "$as_me: program exited with status $ac_status" >&5
 
23203
echo "$as_me: failed program was:" >&5
 
23204
sed 's/^/| /' conftest.$ac_ext >&5
 
23205
 
 
23206
( exit $ac_status )
 
23207
ac_cv_func_mmap_fixed_mapped=no
 
23208
fi
 
23209
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23210
fi
 
23211
fi
 
23212
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
23213
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
 
23214
if test $ac_cv_func_mmap_fixed_mapped = yes; then
 
23215
 
 
23216
cat >>confdefs.h <<\_ACEOF
 
23217
#define HAVE_MMAP 1
 
23218
_ACEOF
 
23219
 
 
23220
fi
 
23221
rm -f conftest.mmap
 
23222
 
 
23223
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
23224
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
 
23225
if test "${ac_cv_type_signal+set}" = set; then
 
23226
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23227
else
 
23228
  cat >conftest.$ac_ext <<_ACEOF
 
23229
/* confdefs.h.  */
 
23230
_ACEOF
 
23231
cat confdefs.h >>conftest.$ac_ext
 
23232
cat >>conftest.$ac_ext <<_ACEOF
 
23233
/* end confdefs.h.  */
 
23234
#include <sys/types.h>
 
23235
#include <signal.h>
 
23236
#ifdef signal
 
23237
# undef signal
 
23238
#endif
 
23239
#ifdef __cplusplus
 
23240
extern "C" void (*signal (int, void (*)(int)))(int);
 
23241
#else
 
23242
void (*signal ()) ();
 
23243
#endif
 
23244
 
 
23245
int
 
23246
main ()
 
23247
{
 
23248
int i;
 
23249
  ;
 
23250
  return 0;
 
23251
}
 
23252
_ACEOF
 
23253
rm -f conftest.$ac_objext
 
23254
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23255
  (eval $ac_compile) 2>conftest.er1
 
23256
  ac_status=$?
 
23257
  grep -v '^ *+' conftest.er1 >conftest.err
 
23258
  rm -f conftest.er1
 
23259
  cat conftest.err >&5
 
23260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23261
  (exit $ac_status); } &&
 
23262
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23263
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23264
  (eval $ac_try) 2>&5
 
23265
  ac_status=$?
 
23266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23267
  (exit $ac_status); }; } &&
 
23268
         { ac_try='test -s conftest.$ac_objext'
 
23269
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23270
  (eval $ac_try) 2>&5
 
23271
  ac_status=$?
 
23272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23273
  (exit $ac_status); }; }; then
 
23274
  ac_cv_type_signal=void
 
23275
else
 
23276
  echo "$as_me: failed program was:" >&5
 
23277
sed 's/^/| /' conftest.$ac_ext >&5
 
23278
 
 
23279
ac_cv_type_signal=int
 
23280
fi
 
23281
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23282
fi
 
23283
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
23284
echo "${ECHO_T}$ac_cv_type_signal" >&6
 
23285
 
 
23286
cat >>confdefs.h <<_ACEOF
 
23287
#define RETSIGTYPE $ac_cv_type_signal
 
23288
_ACEOF
 
23289
 
 
23290
 
 
23291
echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
 
23292
echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
 
23293
if test "${ac_cv_func_utime_null+set}" = set; then
 
23294
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23295
else
 
23296
  rm -f conftest.data; >conftest.data
 
23297
# Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
 
23298
if test "$cross_compiling" = yes; then
 
23299
  ac_cv_func_utime_null=no
 
23300
else
 
23301
  cat >conftest.$ac_ext <<_ACEOF
 
23302
/* confdefs.h.  */
 
23303
_ACEOF
 
23304
cat confdefs.h >>conftest.$ac_ext
 
23305
cat >>conftest.$ac_ext <<_ACEOF
 
23306
/* end confdefs.h.  */
 
23307
$ac_includes_default
 
23308
int
 
23309
main ()
 
23310
{
 
23311
struct stat s, t;
 
23312
  exit (!(stat ("conftest.data", &s) == 0
 
23313
          && utime ("conftest.data", (long *)0) == 0
 
23314
          && stat ("conftest.data", &t) == 0
 
23315
          && t.st_mtime >= s.st_mtime
 
23316
          && t.st_mtime - s.st_mtime < 120));
 
23317
  ;
 
23318
  return 0;
 
23319
}
 
23320
_ACEOF
 
23321
rm -f conftest$ac_exeext
 
23322
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23323
  (eval $ac_link) 2>&5
 
23324
  ac_status=$?
 
23325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23326
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23327
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23328
  (eval $ac_try) 2>&5
 
23329
  ac_status=$?
 
23330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23331
  (exit $ac_status); }; }; then
 
23332
  ac_cv_func_utime_null=yes
 
23333
else
 
23334
  echo "$as_me: program exited with status $ac_status" >&5
 
23335
echo "$as_me: failed program was:" >&5
 
23336
sed 's/^/| /' conftest.$ac_ext >&5
 
23337
 
 
23338
( exit $ac_status )
 
23339
ac_cv_func_utime_null=no
 
23340
fi
 
23341
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23342
fi
 
23343
rm -f core *.core
 
23344
fi
 
23345
echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
 
23346
echo "${ECHO_T}$ac_cv_func_utime_null" >&6
 
23347
if test $ac_cv_func_utime_null = yes; then
 
23348
 
 
23349
cat >>confdefs.h <<\_ACEOF
 
23350
#define HAVE_UTIME_NULL 1
 
23351
_ACEOF
 
23352
 
 
23353
fi
 
23354
rm -f conftest.data
 
23355
 
 
23356
echo "$as_me:$LINENO: checking for wait3 that fills in rusage" >&5
 
23357
echo $ECHO_N "checking for wait3 that fills in rusage... $ECHO_C" >&6
 
23358
if test "${ac_cv_func_wait3_rusage+set}" = set; then
 
23359
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23360
else
 
23361
  if test "$cross_compiling" = yes; then
 
23362
  ac_cv_func_wait3_rusage=no
 
23363
else
 
23364
  cat >conftest.$ac_ext <<_ACEOF
 
23365
/* confdefs.h.  */
 
23366
_ACEOF
 
23367
cat confdefs.h >>conftest.$ac_ext
 
23368
cat >>conftest.$ac_ext <<_ACEOF
 
23369
/* end confdefs.h.  */
 
23370
#include <sys/types.h>
 
23371
#include <sys/time.h>
 
23372
#include <sys/resource.h>
 
23373
#include <stdio.h>
 
23374
/* HP-UX has wait3 but does not fill in rusage at all.  */
 
23375
int
 
23376
main ()
 
23377
{
 
23378
  struct rusage r;
 
23379
  int i;
 
23380
  /* Use a field that we can force nonzero --
 
23381
     voluntary context switches.
 
23382
     For systems like NeXT and OSF/1 that don't set it,
 
23383
     also use the system CPU time.  And page faults (I/O) for Linux.  */
 
23384
  r.ru_nvcsw = 0;
 
23385
  r.ru_stime.tv_sec = 0;
 
23386
  r.ru_stime.tv_usec = 0;
 
23387
  r.ru_majflt = r.ru_minflt = 0;
 
23388
  switch (fork ())
 
23389
    {
 
23390
    case 0: /* Child.  */
 
23391
      sleep(1); /* Give up the CPU.  */
 
23392
      _exit(0);
 
23393
      break;
 
23394
    case -1: /* What can we do?  */
 
23395
      _exit(0);
 
23396
      break;
 
23397
    default: /* Parent.  */
 
23398
      wait3(&i, 0, &r);
 
23399
      /* Avoid "text file busy" from rm on fast HP-UX machines.  */
 
23400
      sleep(2);
 
23401
      exit (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
 
23402
            && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
 
23403
    }
 
23404
}
 
23405
_ACEOF
 
23406
rm -f conftest$ac_exeext
 
23407
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23408
  (eval $ac_link) 2>&5
 
23409
  ac_status=$?
 
23410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23411
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23412
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23413
  (eval $ac_try) 2>&5
 
23414
  ac_status=$?
 
23415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23416
  (exit $ac_status); }; }; then
 
23417
  ac_cv_func_wait3_rusage=yes
 
23418
else
 
23419
  echo "$as_me: program exited with status $ac_status" >&5
 
23420
echo "$as_me: failed program was:" >&5
 
23421
sed 's/^/| /' conftest.$ac_ext >&5
 
23422
 
 
23423
( exit $ac_status )
 
23424
ac_cv_func_wait3_rusage=no
 
23425
fi
 
23426
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23427
fi
 
23428
fi
 
23429
echo "$as_me:$LINENO: result: $ac_cv_func_wait3_rusage" >&5
 
23430
echo "${ECHO_T}$ac_cv_func_wait3_rusage" >&6
 
23431
if test $ac_cv_func_wait3_rusage = yes; then
 
23432
 
 
23433
cat >>confdefs.h <<\_ACEOF
 
23434
#define HAVE_WAIT3 1
 
23435
_ACEOF
 
23436
 
 
23437
fi
 
23438
 
 
23439
 
 
23440
 
 
23441
 
 
23442
 
 
23443
 
 
23444
 
 
23445
 
 
23446
 
 
23447
 
 
23448
 
 
23449
 
 
23450
 
 
23451
 
 
23452
 
 
23453
 
 
23454
for ac_func in flock getcwd gethostname gettimeofday getusershell mkdir rmdir select socket strdup strstr strtoul setpgrp strchr memcpy
 
23455
do
 
23456
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
23457
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
23458
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
23459
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
23460
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23461
else
 
23462
  cat >conftest.$ac_ext <<_ACEOF
 
23463
/* confdefs.h.  */
 
23464
_ACEOF
 
23465
cat confdefs.h >>conftest.$ac_ext
 
23466
cat >>conftest.$ac_ext <<_ACEOF
 
23467
/* end confdefs.h.  */
 
23468
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
23469
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23470
#define $ac_func innocuous_$ac_func
 
23471
 
 
23472
/* System header to define __stub macros and hopefully few prototypes,
 
23473
    which can conflict with char $ac_func (); below.
 
23474
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23475
    <limits.h> exists even on freestanding compilers.  */
 
23476
 
 
23477
#ifdef __STDC__
 
23478
# include <limits.h>
 
23479
#else
 
23480
# include <assert.h>
 
23481
#endif
 
23482
 
 
23483
#undef $ac_func
 
23484
 
 
23485
/* Override any gcc2 internal prototype to avoid an error.  */
 
23486
#ifdef __cplusplus
 
23487
extern "C"
 
23488
{
 
23489
#endif
 
23490
/* We use char because int might match the return type of a gcc2
 
23491
   builtin and then its argument prototype would still apply.  */
 
23492
char $ac_func ();
 
23493
/* The GNU C library defines this for functions which it implements
 
23494
    to always fail with ENOSYS.  Some functions are actually named
 
23495
    something starting with __ and the normal name is an alias.  */
 
23496
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
23497
choke me
 
23498
#else
 
23499
char (*f) () = $ac_func;
 
23500
#endif
 
23501
#ifdef __cplusplus
 
23502
}
 
23503
#endif
 
23504
 
 
23505
int
 
23506
main ()
 
23507
{
 
23508
return f != $ac_func;
 
23509
  ;
 
23510
  return 0;
 
23511
}
 
23512
_ACEOF
 
23513
rm -f conftest.$ac_objext conftest$ac_exeext
 
23514
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23515
  (eval $ac_link) 2>conftest.er1
 
23516
  ac_status=$?
 
23517
  grep -v '^ *+' conftest.er1 >conftest.err
 
23518
  rm -f conftest.er1
 
23519
  cat conftest.err >&5
 
23520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23521
  (exit $ac_status); } &&
 
23522
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
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); }; } &&
 
23528
         { ac_try='test -s conftest$ac_exeext'
 
23529
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23530
  (eval $ac_try) 2>&5
 
23531
  ac_status=$?
 
23532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23533
  (exit $ac_status); }; }; then
 
23534
  eval "$as_ac_var=yes"
 
23535
else
 
23536
  echo "$as_me: failed program was:" >&5
 
23537
sed 's/^/| /' conftest.$ac_ext >&5
 
23538
 
 
23539
eval "$as_ac_var=no"
 
23540
fi
 
23541
rm -f conftest.err conftest.$ac_objext \
 
23542
      conftest$ac_exeext conftest.$ac_ext
 
23543
fi
 
23544
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
23545
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
23546
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
23547
  cat >>confdefs.h <<_ACEOF
 
23548
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
23549
_ACEOF
 
23550
 
 
23551
fi
 
23552
done
 
23553
 
 
23554
echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
 
23555
echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
 
23556
if test "${ac_cv_func_setpgrp_void+set}" = set; then
 
23557
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23558
else
 
23559
  if test "$cross_compiling" = yes; then
 
23560
  { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
 
23561
echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
 
23562
   { (exit 1); exit 1; }; }
 
23563
else
 
23564
  cat >conftest.$ac_ext <<_ACEOF
 
23565
/* confdefs.h.  */
 
23566
_ACEOF
 
23567
cat confdefs.h >>conftest.$ac_ext
 
23568
cat >>conftest.$ac_ext <<_ACEOF
 
23569
/* end confdefs.h.  */
 
23570
#if HAVE_UNISTD_H
 
23571
# include <unistd.h>
 
23572
#endif
 
23573
 
 
23574
int
 
23575
main ()
 
23576
{
 
23577
/* If this system has a BSD-style setpgrp which takes arguments,
 
23578
  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
 
23579
  exit successfully. */
 
23580
  exit (setpgrp (1,1) == -1 ? 0 : 1);
 
23581
  ;
 
23582
  return 0;
 
23583
}
 
23584
_ACEOF
 
23585
rm -f conftest$ac_exeext
 
23586
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23587
  (eval $ac_link) 2>&5
 
23588
  ac_status=$?
 
23589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23590
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23591
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23592
  (eval $ac_try) 2>&5
 
23593
  ac_status=$?
 
23594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23595
  (exit $ac_status); }; }; then
 
23596
  ac_cv_func_setpgrp_void=no
 
23597
else
 
23598
  echo "$as_me: program exited with status $ac_status" >&5
 
23599
echo "$as_me: failed program was:" >&5
 
23600
sed 's/^/| /' conftest.$ac_ext >&5
 
23601
 
 
23602
( exit $ac_status )
 
23603
ac_cv_func_setpgrp_void=yes
 
23604
fi
 
23605
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23606
fi
 
23607
fi
 
23608
echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
 
23609
echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
 
23610
if test $ac_cv_func_setpgrp_void = yes; then
 
23611
 
 
23612
cat >>confdefs.h <<\_ACEOF
 
23613
#define SETPGRP_VOID 1
 
23614
_ACEOF
 
23615
 
 
23616
fi
 
23617
 
 
23618
 
 
23619
 
 
23620
 
 
23621
 
 
23622
for ac_func in snprintf vsnprintf
 
23623
do
 
23624
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
23625
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
23626
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
23627
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
23628
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23629
else
 
23630
  cat >conftest.$ac_ext <<_ACEOF
 
23631
/* confdefs.h.  */
 
23632
_ACEOF
 
23633
cat confdefs.h >>conftest.$ac_ext
 
23634
cat >>conftest.$ac_ext <<_ACEOF
 
23635
/* end confdefs.h.  */
 
23636
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
23637
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23638
#define $ac_func innocuous_$ac_func
 
23639
 
 
23640
/* System header to define __stub macros and hopefully few prototypes,
 
23641
    which can conflict with char $ac_func (); below.
 
23642
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23643
    <limits.h> exists even on freestanding compilers.  */
 
23644
 
 
23645
#ifdef __STDC__
 
23646
# include <limits.h>
 
23647
#else
 
23648
# include <assert.h>
 
23649
#endif
 
23650
 
 
23651
#undef $ac_func
 
23652
 
 
23653
/* Override any gcc2 internal prototype to avoid an error.  */
 
23654
#ifdef __cplusplus
 
23655
extern "C"
 
23656
{
 
23657
#endif
 
23658
/* We use char because int might match the return type of a gcc2
 
23659
   builtin and then its argument prototype would still apply.  */
 
23660
char $ac_func ();
 
23661
/* The GNU C library defines this for functions which it implements
 
23662
    to always fail with ENOSYS.  Some functions are actually named
 
23663
    something starting with __ and the normal name is an alias.  */
 
23664
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
23665
choke me
 
23666
#else
 
23667
char (*f) () = $ac_func;
 
23668
#endif
 
23669
#ifdef __cplusplus
 
23670
}
 
23671
#endif
 
23672
 
 
23673
int
 
23674
main ()
 
23675
{
 
23676
return f != $ac_func;
 
23677
  ;
 
23678
  return 0;
 
23679
}
 
23680
_ACEOF
 
23681
rm -f conftest.$ac_objext conftest$ac_exeext
 
23682
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23683
  (eval $ac_link) 2>conftest.er1
 
23684
  ac_status=$?
 
23685
  grep -v '^ *+' conftest.er1 >conftest.err
 
23686
  rm -f conftest.er1
 
23687
  cat conftest.err >&5
 
23688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23689
  (exit $ac_status); } &&
 
23690
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23691
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23692
  (eval $ac_try) 2>&5
 
23693
  ac_status=$?
 
23694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23695
  (exit $ac_status); }; } &&
 
23696
         { ac_try='test -s conftest$ac_exeext'
 
23697
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23698
  (eval $ac_try) 2>&5
 
23699
  ac_status=$?
 
23700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23701
  (exit $ac_status); }; }; then
 
23702
  eval "$as_ac_var=yes"
 
23703
else
 
23704
  echo "$as_me: failed program was:" >&5
 
23705
sed 's/^/| /' conftest.$ac_ext >&5
 
23706
 
 
23707
eval "$as_ac_var=no"
 
23708
fi
 
23709
rm -f conftest.err conftest.$ac_objext \
 
23710
      conftest$ac_exeext conftest.$ac_ext
 
23711
fi
 
23712
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
23713
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
23714
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
23715
  cat >>confdefs.h <<_ACEOF
 
23716
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
23717
_ACEOF
 
23718
 
 
23719
fi
 
23720
done
 
23721
 
 
23722
 
 
23723
 
 
23724
 
 
23725
for ac_header in stdarg.h varargs.h
 
23726
do
 
23727
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
23728
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23729
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23730
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
23731
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23732
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23733
fi
 
23734
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23735
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23736
else
 
23737
  # Is the header compilable?
 
23738
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
23739
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
23740
cat >conftest.$ac_ext <<_ACEOF
 
23741
/* confdefs.h.  */
 
23742
_ACEOF
 
23743
cat confdefs.h >>conftest.$ac_ext
 
23744
cat >>conftest.$ac_ext <<_ACEOF
 
23745
/* end confdefs.h.  */
 
23746
$ac_includes_default
 
23747
#include <$ac_header>
 
23748
_ACEOF
 
23749
rm -f conftest.$ac_objext
 
23750
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23751
  (eval $ac_compile) 2>conftest.er1
 
23752
  ac_status=$?
 
23753
  grep -v '^ *+' conftest.er1 >conftest.err
 
23754
  rm -f conftest.er1
 
23755
  cat conftest.err >&5
 
23756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23757
  (exit $ac_status); } &&
 
23758
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23759
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23760
  (eval $ac_try) 2>&5
 
23761
  ac_status=$?
 
23762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23763
  (exit $ac_status); }; } &&
 
23764
         { ac_try='test -s conftest.$ac_objext'
 
23765
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23766
  (eval $ac_try) 2>&5
 
23767
  ac_status=$?
 
23768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23769
  (exit $ac_status); }; }; then
 
23770
  ac_header_compiler=yes
 
23771
else
 
23772
  echo "$as_me: failed program was:" >&5
 
23773
sed 's/^/| /' conftest.$ac_ext >&5
 
23774
 
 
23775
ac_header_compiler=no
 
23776
fi
 
23777
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23778
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23779
echo "${ECHO_T}$ac_header_compiler" >&6
 
23780
 
 
23781
# Is the header present?
 
23782
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
23783
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
23784
cat >conftest.$ac_ext <<_ACEOF
 
23785
/* confdefs.h.  */
 
23786
_ACEOF
 
23787
cat confdefs.h >>conftest.$ac_ext
 
23788
cat >>conftest.$ac_ext <<_ACEOF
 
23789
/* end confdefs.h.  */
 
23790
#include <$ac_header>
 
23791
_ACEOF
 
23792
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
23793
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
23794
  ac_status=$?
 
23795
  grep -v '^ *+' conftest.er1 >conftest.err
 
23796
  rm -f conftest.er1
 
23797
  cat conftest.err >&5
 
23798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23799
  (exit $ac_status); } >/dev/null; then
 
23800
  if test -s conftest.err; then
 
23801
    ac_cpp_err=$ac_c_preproc_warn_flag
 
23802
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
23803
  else
 
23804
    ac_cpp_err=
 
23805
  fi
 
23806
else
 
23807
  ac_cpp_err=yes
 
23808
fi
 
23809
if test -z "$ac_cpp_err"; then
 
23810
  ac_header_preproc=yes
 
23811
else
 
23812
  echo "$as_me: failed program was:" >&5
 
23813
sed 's/^/| /' conftest.$ac_ext >&5
 
23814
 
 
23815
  ac_header_preproc=no
 
23816
fi
 
23817
rm -f conftest.err conftest.$ac_ext
 
23818
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23819
echo "${ECHO_T}$ac_header_preproc" >&6
 
23820
 
 
23821
# So?  What about this header?
 
23822
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23823
  yes:no: )
 
23824
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
23825
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23826
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
23827
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
23828
    ac_header_preproc=yes
 
23829
    ;;
 
23830
  no:yes:* )
 
23831
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
23832
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
23833
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
23834
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
23835
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
23836
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
23837
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
23838
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23839
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
23840
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
23841
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
23842
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
23843
    (
 
23844
      cat <<\_ASBOX
 
23845
## ------------------------------------------ ##
 
23846
## Report this to the AC_PACKAGE_NAME lists.  ##
 
23847
## ------------------------------------------ ##
 
23848
_ASBOX
 
23849
    ) |
 
23850
      sed "s/^/$as_me: WARNING:     /" >&2
 
23851
    ;;
 
23852
esac
 
23853
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23854
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
23855
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23856
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23857
else
 
23858
  eval "$as_ac_Header=\$ac_header_preproc"
 
23859
fi
 
23860
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23861
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23862
 
 
23863
fi
 
23864
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
23865
  cat >>confdefs.h <<_ACEOF
 
23866
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
23867
_ACEOF
 
23868
 
 
23869
fi
 
23870
 
 
23871
done
 
23872
 
 
23873
 
 
23874
 
 
23875
for ac_func in strerror
 
23876
do
 
23877
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
23878
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
23879
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
23880
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
23881
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23882
else
 
23883
  cat >conftest.$ac_ext <<_ACEOF
 
23884
/* confdefs.h.  */
 
23885
_ACEOF
 
23886
cat confdefs.h >>conftest.$ac_ext
 
23887
cat >>conftest.$ac_ext <<_ACEOF
 
23888
/* end confdefs.h.  */
 
23889
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
23890
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23891
#define $ac_func innocuous_$ac_func
 
23892
 
 
23893
/* System header to define __stub macros and hopefully few prototypes,
 
23894
    which can conflict with char $ac_func (); below.
 
23895
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23896
    <limits.h> exists even on freestanding compilers.  */
 
23897
 
 
23898
#ifdef __STDC__
 
23899
# include <limits.h>
 
23900
#else
 
23901
# include <assert.h>
 
23902
#endif
 
23903
 
 
23904
#undef $ac_func
 
23905
 
 
23906
/* Override any gcc2 internal prototype to avoid an error.  */
 
23907
#ifdef __cplusplus
 
23908
extern "C"
 
23909
{
 
23910
#endif
 
23911
/* We use char because int might match the return type of a gcc2
 
23912
   builtin and then its argument prototype would still apply.  */
 
23913
char $ac_func ();
 
23914
/* The GNU C library defines this for functions which it implements
 
23915
    to always fail with ENOSYS.  Some functions are actually named
 
23916
    something starting with __ and the normal name is an alias.  */
 
23917
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
23918
choke me
 
23919
#else
 
23920
char (*f) () = $ac_func;
 
23921
#endif
 
23922
#ifdef __cplusplus
 
23923
}
 
23924
#endif
 
23925
 
 
23926
int
 
23927
main ()
 
23928
{
 
23929
return f != $ac_func;
 
23930
  ;
 
23931
  return 0;
 
23932
}
 
23933
_ACEOF
 
23934
rm -f conftest.$ac_objext conftest$ac_exeext
 
23935
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23936
  (eval $ac_link) 2>conftest.er1
 
23937
  ac_status=$?
 
23938
  grep -v '^ *+' conftest.er1 >conftest.err
 
23939
  rm -f conftest.er1
 
23940
  cat conftest.err >&5
 
23941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23942
  (exit $ac_status); } &&
 
23943
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23945
  (eval $ac_try) 2>&5
 
23946
  ac_status=$?
 
23947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23948
  (exit $ac_status); }; } &&
 
23949
         { ac_try='test -s conftest$ac_exeext'
 
23950
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23951
  (eval $ac_try) 2>&5
 
23952
  ac_status=$?
 
23953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23954
  (exit $ac_status); }; }; then
 
23955
  eval "$as_ac_var=yes"
 
23956
else
 
23957
  echo "$as_me: failed program was:" >&5
 
23958
sed 's/^/| /' conftest.$ac_ext >&5
 
23959
 
 
23960
eval "$as_ac_var=no"
 
23961
fi
 
23962
rm -f conftest.err conftest.$ac_objext \
 
23963
      conftest$ac_exeext conftest.$ac_ext
 
23964
fi
 
23965
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
23966
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
23967
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
23968
  cat >>confdefs.h <<_ACEOF
 
23969
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
23970
_ACEOF
 
23971
 
 
23972
fi
 
23973
done
 
23974
 
 
23975
        echo "$as_me:$LINENO: checking for errno" >&5
 
23976
echo $ECHO_N "checking for errno... $ECHO_C" >&6
 
23977
if test "${ac_cv_errno+set}" = set; then
 
23978
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23979
else
 
23980
 
 
23981
        cat >conftest.$ac_ext <<_ACEOF
 
23982
/* confdefs.h.  */
 
23983
_ACEOF
 
23984
cat confdefs.h >>conftest.$ac_ext
 
23985
cat >>conftest.$ac_ext <<_ACEOF
 
23986
/* end confdefs.h.  */
 
23987
 
 
23988
int
 
23989
main ()
 
23990
{
 
23991
extern int errno; return (errno);
 
23992
  ;
 
23993
  return 0;
 
23994
}
 
23995
_ACEOF
 
23996
rm -f conftest.$ac_objext conftest$ac_exeext
 
23997
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23998
  (eval $ac_link) 2>conftest.er1
 
23999
  ac_status=$?
 
24000
  grep -v '^ *+' conftest.er1 >conftest.err
 
24001
  rm -f conftest.er1
 
24002
  cat conftest.err >&5
 
24003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24004
  (exit $ac_status); } &&
 
24005
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24006
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24007
  (eval $ac_try) 2>&5
 
24008
  ac_status=$?
 
24009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24010
  (exit $ac_status); }; } &&
 
24011
         { ac_try='test -s conftest$ac_exeext'
 
24012
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24013
  (eval $ac_try) 2>&5
 
24014
  ac_status=$?
 
24015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24016
  (exit $ac_status); }; }; then
 
24017
  ac_cv_errno=yes
 
24018
else
 
24019
  echo "$as_me: failed program was:" >&5
 
24020
sed 's/^/| /' conftest.$ac_ext >&5
 
24021
 
 
24022
ac_cv_errno=no
 
24023
fi
 
24024
rm -f conftest.err conftest.$ac_objext \
 
24025
      conftest$ac_exeext conftest.$ac_ext
 
24026
 
 
24027
fi
 
24028
echo "$as_me:$LINENO: result: $ac_cv_errno" >&5
 
24029
echo "${ECHO_T}$ac_cv_errno" >&6
 
24030
        if test "$ac_cv_errno" = yes; then
 
24031
                cat >>confdefs.h <<\_ACEOF
 
24032
#define HAVE_ERRNO 1
 
24033
_ACEOF
 
24034
 
 
24035
                echo "$as_me:$LINENO: checking for errno declaration" >&5
 
24036
echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6
 
24037
if test "${ac_cv_decl_errno+set}" = set; then
 
24038
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24039
else
 
24040
 
 
24041
                cat >conftest.$ac_ext <<_ACEOF
 
24042
/* confdefs.h.  */
 
24043
_ACEOF
 
24044
cat confdefs.h >>conftest.$ac_ext
 
24045
cat >>conftest.$ac_ext <<_ACEOF
 
24046
/* end confdefs.h.  */
 
24047
 
 
24048
                #include <stdio.h>
 
24049
                #ifdef HAVE_STDLIB_H
 
24050
                #include <stdlib.h>
 
24051
                #endif
 
24052
                #ifdef HAVE_UNISTD_H
 
24053
                #include <unistd.h>
 
24054
                #endif
 
24055
                #ifdef HAVE_ERRNO_H
 
24056
                #include <errno.h>
 
24057
 
 
24058
int
 
24059
main ()
 
24060
{
 
24061
return(sys_nerr);
 
24062
  ;
 
24063
  return 0;
 
24064
}
 
24065
_ACEOF
 
24066
rm -f conftest.$ac_objext
 
24067
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24068
  (eval $ac_compile) 2>conftest.er1
 
24069
  ac_status=$?
 
24070
  grep -v '^ *+' conftest.er1 >conftest.err
 
24071
  rm -f conftest.er1
 
24072
  cat conftest.err >&5
 
24073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24074
  (exit $ac_status); } &&
 
24075
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24077
  (eval $ac_try) 2>&5
 
24078
  ac_status=$?
 
24079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24080
  (exit $ac_status); }; } &&
 
24081
         { ac_try='test -s conftest.$ac_objext'
 
24082
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24083
  (eval $ac_try) 2>&5
 
24084
  ac_status=$?
 
24085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24086
  (exit $ac_status); }; }; then
 
24087
  ac_cv_decl_errno=yes
 
24088
else
 
24089
  echo "$as_me: failed program was:" >&5
 
24090
sed 's/^/| /' conftest.$ac_ext >&5
 
24091
 
 
24092
ac_cv_decl_errno=no
 
24093
fi
 
24094
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24095
 
 
24096
fi
 
24097
echo "$as_me:$LINENO: result: $ac_cv_decl_errno" >&5
 
24098
echo "${ECHO_T}$ac_cv_decl_errno" >&6
 
24099
                if test "$ac_cv_decl_errno" = yes; then
 
24100
                        cat >>confdefs.h <<\_ACEOF
 
24101
#define HAVE_DECL_ERRNO 1
 
24102
_ACEOF
 
24103
 
 
24104
                fi;
 
24105
        fi
 
24106
 
 
24107
        echo "$as_me:$LINENO: checking for sys_nerr" >&5
 
24108
echo $ECHO_N "checking for sys_nerr... $ECHO_C" >&6
 
24109
if test "${ac_cv_sys_nerr+set}" = set; then
 
24110
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24111
else
 
24112
 
 
24113
        cat >conftest.$ac_ext <<_ACEOF
 
24114
/* confdefs.h.  */
 
24115
_ACEOF
 
24116
cat confdefs.h >>conftest.$ac_ext
 
24117
cat >>conftest.$ac_ext <<_ACEOF
 
24118
/* end confdefs.h.  */
 
24119
 
 
24120
int
 
24121
main ()
 
24122
{
 
24123
extern int sys_nerr; return (sys_nerr);
 
24124
  ;
 
24125
  return 0;
 
24126
}
 
24127
_ACEOF
 
24128
rm -f conftest.$ac_objext conftest$ac_exeext
 
24129
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24130
  (eval $ac_link) 2>conftest.er1
 
24131
  ac_status=$?
 
24132
  grep -v '^ *+' conftest.er1 >conftest.err
 
24133
  rm -f conftest.er1
 
24134
  cat conftest.err >&5
 
24135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24136
  (exit $ac_status); } &&
 
24137
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24138
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24139
  (eval $ac_try) 2>&5
 
24140
  ac_status=$?
 
24141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24142
  (exit $ac_status); }; } &&
 
24143
         { ac_try='test -s conftest$ac_exeext'
 
24144
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24145
  (eval $ac_try) 2>&5
 
24146
  ac_status=$?
 
24147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24148
  (exit $ac_status); }; }; then
 
24149
  ac_cv_sys_nerr=yes
 
24150
else
 
24151
  echo "$as_me: failed program was:" >&5
 
24152
sed 's/^/| /' conftest.$ac_ext >&5
 
24153
 
 
24154
ac_cv_sys_nerr=no
 
24155
fi
 
24156
rm -f conftest.err conftest.$ac_objext \
 
24157
      conftest$ac_exeext conftest.$ac_ext
 
24158
 
 
24159
fi
 
24160
echo "$as_me:$LINENO: result: $ac_cv_sys_nerr" >&5
 
24161
echo "${ECHO_T}$ac_cv_sys_nerr" >&6
 
24162
        if test "$ac_cv_sys_nerr" = yes; then
 
24163
                cat >>confdefs.h <<\_ACEOF
 
24164
#define HAVE_SYS_NERR 1
 
24165
_ACEOF
 
24166
 
 
24167
                echo "$as_me:$LINENO: checking for sys_nerr declaration" >&5
 
24168
echo $ECHO_N "checking for sys_nerr declaration... $ECHO_C" >&6
 
24169
if test "${ac_cv_decl_sys_nerr+set}" = set; then
 
24170
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24171
else
 
24172
 
 
24173
                cat >conftest.$ac_ext <<_ACEOF
 
24174
/* confdefs.h.  */
 
24175
_ACEOF
 
24176
cat confdefs.h >>conftest.$ac_ext
 
24177
cat >>conftest.$ac_ext <<_ACEOF
 
24178
/* end confdefs.h.  */
 
24179
 
 
24180
                #include <stdio.h>
 
24181
                #ifdef HAVE_STDLIB_H
 
24182
                #include <stdlib.h>
 
24183
                #endif
 
24184
                #ifdef HAVE_UNISTD_H
 
24185
                #include <unistd.h>
 
24186
                #endif
 
24187
int
 
24188
main ()
 
24189
{
 
24190
return(sys_nerr);
 
24191
  ;
 
24192
  return 0;
 
24193
}
 
24194
_ACEOF
 
24195
rm -f conftest.$ac_objext
 
24196
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24197
  (eval $ac_compile) 2>conftest.er1
 
24198
  ac_status=$?
 
24199
  grep -v '^ *+' conftest.er1 >conftest.err
 
24200
  rm -f conftest.er1
 
24201
  cat conftest.err >&5
 
24202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24203
  (exit $ac_status); } &&
 
24204
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24205
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24206
  (eval $ac_try) 2>&5
 
24207
  ac_status=$?
 
24208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24209
  (exit $ac_status); }; } &&
 
24210
         { ac_try='test -s conftest.$ac_objext'
 
24211
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24212
  (eval $ac_try) 2>&5
 
24213
  ac_status=$?
 
24214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24215
  (exit $ac_status); }; }; then
 
24216
  ac_cv_decl_sys_nerr_def=yes
 
24217
else
 
24218
  echo "$as_me: failed program was:" >&5
 
24219
sed 's/^/| /' conftest.$ac_ext >&5
 
24220
 
 
24221
ac_cv_decl_sys_nerr_def=no
 
24222
fi
 
24223
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24224
 
 
24225
fi
 
24226
echo "$as_me:$LINENO: result: $ac_cv_decl_sys_nerr" >&5
 
24227
echo "${ECHO_T}$ac_cv_decl_sys_nerr" >&6
 
24228
                if test "$ac_cv_decl_sys_nerr" = yes; then
 
24229
                        cat >>confdefs.h <<\_ACEOF
 
24230
#define HAVE_DECL_SYS_NERR 1
 
24231
_ACEOF
 
24232
 
 
24233
                fi
 
24234
        fi
 
24235
 
 
24236
 
 
24237
        echo "$as_me:$LINENO: checking for sys_errlist array" >&5
 
24238
echo $ECHO_N "checking for sys_errlist array... $ECHO_C" >&6
 
24239
if test "${ac_cv_sys_errlist+set}" = set; then
 
24240
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24241
else
 
24242
  cat >conftest.$ac_ext <<_ACEOF
 
24243
/* confdefs.h.  */
 
24244
_ACEOF
 
24245
cat confdefs.h >>conftest.$ac_ext
 
24246
cat >>conftest.$ac_ext <<_ACEOF
 
24247
/* end confdefs.h.  */
 
24248
 
 
24249
int
 
24250
main ()
 
24251
{
 
24252
extern char *sys_errlist[];
 
24253
                sys_errlist[0];
 
24254
  ;
 
24255
  return 0;
 
24256
}
 
24257
_ACEOF
 
24258
rm -f conftest.$ac_objext conftest$ac_exeext
 
24259
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24260
  (eval $ac_link) 2>conftest.er1
 
24261
  ac_status=$?
 
24262
  grep -v '^ *+' conftest.er1 >conftest.err
 
24263
  rm -f conftest.er1
 
24264
  cat conftest.err >&5
 
24265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24266
  (exit $ac_status); } &&
 
24267
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24268
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24269
  (eval $ac_try) 2>&5
 
24270
  ac_status=$?
 
24271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24272
  (exit $ac_status); }; } &&
 
24273
         { ac_try='test -s conftest$ac_exeext'
 
24274
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24275
  (eval $ac_try) 2>&5
 
24276
  ac_status=$?
 
24277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24278
  (exit $ac_status); }; }; then
 
24279
  ac_cv_sys_errlist=yes
 
24280
else
 
24281
  echo "$as_me: failed program was:" >&5
 
24282
sed 's/^/| /' conftest.$ac_ext >&5
 
24283
 
 
24284
ac_cv_sys_errlist=no
 
24285
fi
 
24286
rm -f conftest.err conftest.$ac_objext \
 
24287
      conftest$ac_exeext conftest.$ac_ext
 
24288
 
 
24289
fi
 
24290
echo "$as_me:$LINENO: result: $ac_cv_sys_errlist" >&5
 
24291
echo "${ECHO_T}$ac_cv_sys_errlist" >&6
 
24292
        if test "$ac_cv_sys_errlist" = yes; then
 
24293
                cat >>confdefs.h <<\_ACEOF
 
24294
#define HAVE_SYS_ERRLIST 1
 
24295
_ACEOF
 
24296
 
 
24297
                echo "$as_me:$LINENO: checking for sys_errlist declaration" >&5
 
24298
echo $ECHO_N "checking for sys_errlist declaration... $ECHO_C" >&6
 
24299
if test "${ac_cv_sys_errlist_def+set}" = set; then
 
24300
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24301
else
 
24302
  cat >conftest.$ac_ext <<_ACEOF
 
24303
/* confdefs.h.  */
 
24304
_ACEOF
 
24305
cat confdefs.h >>conftest.$ac_ext
 
24306
cat >>conftest.$ac_ext <<_ACEOF
 
24307
/* end confdefs.h.  */
 
24308
 
 
24309
                #include <stdio.h>
 
24310
                #include <errno.h>
 
24311
                #ifdef HAVE_STDLIB_H
 
24312
                #include <stdlib.h>
 
24313
                #endif
 
24314
                #ifdef HAVE_UNISTD_H
 
24315
                #include <unistd.h>
 
24316
                #endif
 
24317
int
 
24318
main ()
 
24319
{
 
24320
char *s = sys_errlist[0]; return(*s);
 
24321
  ;
 
24322
  return 0;
 
24323
}
 
24324
_ACEOF
 
24325
rm -f conftest.$ac_objext
 
24326
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24327
  (eval $ac_compile) 2>conftest.er1
 
24328
  ac_status=$?
 
24329
  grep -v '^ *+' conftest.er1 >conftest.err
 
24330
  rm -f conftest.er1
 
24331
  cat conftest.err >&5
 
24332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24333
  (exit $ac_status); } &&
 
24334
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24335
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24336
  (eval $ac_try) 2>&5
 
24337
  ac_status=$?
 
24338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24339
  (exit $ac_status); }; } &&
 
24340
         { ac_try='test -s conftest.$ac_objext'
 
24341
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24342
  (eval $ac_try) 2>&5
 
24343
  ac_status=$?
 
24344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24345
  (exit $ac_status); }; }; then
 
24346
  ac_cv_decl_sys_errlist=yes
 
24347
else
 
24348
  echo "$as_me: failed program was:" >&5
 
24349
sed 's/^/| /' conftest.$ac_ext >&5
 
24350
 
 
24351
ac_cv_decl_sys_errlist=no
 
24352
fi
 
24353
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24354
 
 
24355
fi
 
24356
echo "$as_me:$LINENO: result: $ac_cv_sys_errlist_def" >&5
 
24357
echo "${ECHO_T}$ac_cv_sys_errlist_def" >&6
 
24358
                if test "$ac_cv_decl_sys_errlist" = yes; then
 
24359
                        cat >>confdefs.h <<\_ACEOF
 
24360
#define HAVE_DECL_SYS_ERRLIST 1
 
24361
_ACEOF
 
24362
 
 
24363
                fi
 
24364
        fi
 
24365
 
 
24366
 
 
24367
 
 
24368
        echo "$as_me:$LINENO: checking checking for long long" >&5
 
24369
echo $ECHO_N "checking checking for long long... $ECHO_C" >&6
 
24370
if test "${ac_cv_long_long+set}" = set; then
 
24371
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24372
else
 
24373
 
 
24374
        cat >conftest.$ac_ext <<_ACEOF
 
24375
/* confdefs.h.  */
 
24376
_ACEOF
 
24377
cat confdefs.h >>conftest.$ac_ext
 
24378
cat >>conftest.$ac_ext <<_ACEOF
 
24379
/* end confdefs.h.  */
 
24380
 
 
24381
        #include <stdio.h>
 
24382
        #include <sys/types.h>
 
24383
 
 
24384
int
 
24385
main ()
 
24386
{
 
24387
printf("%d",sizeof(long long));
 
24388
  ;
 
24389
  return 0;
 
24390
}
 
24391
_ACEOF
 
24392
rm -f conftest.$ac_objext
 
24393
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24394
  (eval $ac_compile) 2>conftest.er1
 
24395
  ac_status=$?
 
24396
  grep -v '^ *+' conftest.er1 >conftest.err
 
24397
  rm -f conftest.er1
 
24398
  cat conftest.err >&5
 
24399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24400
  (exit $ac_status); } &&
 
24401
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24402
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24403
  (eval $ac_try) 2>&5
 
24404
  ac_status=$?
 
24405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24406
  (exit $ac_status); }; } &&
 
24407
         { ac_try='test -s conftest.$ac_objext'
 
24408
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24409
  (eval $ac_try) 2>&5
 
24410
  ac_status=$?
 
24411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24412
  (exit $ac_status); }; }; then
 
24413
  ac_cv_long_long=yes
 
24414
else
 
24415
  echo "$as_me: failed program was:" >&5
 
24416
sed 's/^/| /' conftest.$ac_ext >&5
 
24417
 
 
24418
ac_cv_long_long=no
 
24419
fi
 
24420
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24421
 
 
24422
fi
 
24423
echo "$as_me:$LINENO: result: $ac_cv_long_long" >&5
 
24424
echo "${ECHO_T}$ac_cv_long_long" >&6
 
24425
        if test $ac_cv_long_long = yes; then
 
24426
          cat >>confdefs.h <<\_ACEOF
 
24427
#define HAVE_LONG_LONG 1
 
24428
_ACEOF
 
24429
 
 
24430
        fi
 
24431
 
 
24432
        echo "$as_me:$LINENO: checking checking for long double" >&5
 
24433
echo $ECHO_N "checking checking for long double... $ECHO_C" >&6
 
24434
if test "${ac_cv_long_double+set}" = set; then
 
24435
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24436
else
 
24437
 
 
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
        #include <stdio.h>
 
24446
        #include <sys/types.h>
 
24447
 
 
24448
int
 
24449
main ()
 
24450
{
 
24451
printf("%d",sizeof(long double));
 
24452
  ;
 
24453
  return 0;
 
24454
}
 
24455
_ACEOF
 
24456
rm -f conftest.$ac_objext
 
24457
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24458
  (eval $ac_compile) 2>conftest.er1
 
24459
  ac_status=$?
 
24460
  grep -v '^ *+' conftest.er1 >conftest.err
 
24461
  rm -f conftest.er1
 
24462
  cat conftest.err >&5
 
24463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24464
  (exit $ac_status); } &&
 
24465
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24466
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24467
  (eval $ac_try) 2>&5
 
24468
  ac_status=$?
 
24469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24470
  (exit $ac_status); }; } &&
 
24471
         { ac_try='test -s conftest.$ac_objext'
 
24472
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24473
  (eval $ac_try) 2>&5
 
24474
  ac_status=$?
 
24475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24476
  (exit $ac_status); }; }; then
 
24477
  ac_cv_long_double=yes
 
24478
else
 
24479
  echo "$as_me: failed program was:" >&5
 
24480
sed 's/^/| /' conftest.$ac_ext >&5
 
24481
 
 
24482
ac_cv_long_double=no
 
24483
fi
 
24484
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24485
 
 
24486
fi
 
24487
echo "$as_me:$LINENO: result: $ac_cv_long_double" >&5
 
24488
echo "${ECHO_T}$ac_cv_long_double" >&6
 
24489
        if test $ac_cv_long_double = yes; then
 
24490
          cat >>confdefs.h <<\_ACEOF
 
24491
#define HAVE_LONG_DOUBLE 1
 
24492
_ACEOF
 
24493
 
 
24494
        fi
 
24495
 
 
24496
        echo "$as_me:$LINENO: checking checking for quad_t" >&5
 
24497
echo $ECHO_N "checking checking for quad_t... $ECHO_C" >&6
 
24498
if test "${ac_cv_quad_t+set}" = set; then
 
24499
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24500
else
 
24501
 
 
24502
        cat >conftest.$ac_ext <<_ACEOF
 
24503
/* confdefs.h.  */
 
24504
_ACEOF
 
24505
cat confdefs.h >>conftest.$ac_ext
 
24506
cat >>conftest.$ac_ext <<_ACEOF
 
24507
/* end confdefs.h.  */
 
24508
 
 
24509
        #include <stdio.h>
 
24510
        #include <sys/types.h>
 
24511
 
 
24512
int
 
24513
main ()
 
24514
{
 
24515
printf("%d",sizeof(quad_t));
 
24516
  ;
 
24517
  return 0;
 
24518
}
 
24519
_ACEOF
 
24520
rm -f conftest.$ac_objext
 
24521
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24522
  (eval $ac_compile) 2>conftest.er1
 
24523
  ac_status=$?
 
24524
  grep -v '^ *+' conftest.er1 >conftest.err
 
24525
  rm -f conftest.er1
 
24526
  cat conftest.err >&5
 
24527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24528
  (exit $ac_status); } &&
 
24529
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24530
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24531
  (eval $ac_try) 2>&5
 
24532
  ac_status=$?
 
24533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24534
  (exit $ac_status); }; } &&
 
24535
         { ac_try='test -s conftest.$ac_objext'
 
24536
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24537
  (eval $ac_try) 2>&5
 
24538
  ac_status=$?
 
24539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24540
  (exit $ac_status); }; }; then
 
24541
  ac_cv_quad_t=yes
 
24542
else
 
24543
  echo "$as_me: failed program was:" >&5
 
24544
sed 's/^/| /' conftest.$ac_ext >&5
 
24545
 
 
24546
ac_cv_quad_t=no
 
24547
fi
 
24548
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24549
 
 
24550
fi
 
24551
echo "$as_me:$LINENO: result: $ac_cv_quad_t" >&5
 
24552
echo "${ECHO_T}$ac_cv_quad_t" >&6
 
24553
        if test $ac_cv_quad_t = yes; then
 
24554
          cat >>confdefs.h <<\_ACEOF
 
24555
#define HAVE_QUAD_T 1
 
24556
_ACEOF
 
24557
 
 
24558
        fi
 
24559
 
 
24560
 
 
24561
 
 
24562
cat >>confdefs.h <<\_ACEOF
 
24563
#define ADMIN_GRP 1
 
24564
_ACEOF
 
24565
 
 
24566
 
 
24567
 
 
24568
# Check whether --with-admin-group or --without-admin-group was given.
 
24569
if test "${with_admin_group+set}" = set; then
 
24570
  withval="$with_admin_group"
 
24571
  if test "$enableval" = "no"; then
 
24572
                cat >>confdefs.h <<\_ACEOF
 
24573
#define ADMIN_GRP 0
 
24574
_ACEOF
 
24575
 
 
24576
                echo "$as_me:$LINENO: result: disabling administrative group support" >&5
 
24577
echo "${ECHO_T}disabling administrative group support" >&6
 
24578
        fi
 
24579
 
 
24580
fi;
 
24581
 
 
24582
 
 
24583
        AFS_LIBS=
 
24584
        AFS_CFLAGS=
 
24585
 
 
24586
        # Check whether --enable-afs or --disable-afs was given.
 
24587
if test "${enable_afs+set}" = set; then
 
24588
  enableval="$enable_afs"
 
24589
 
 
24590
                        if test "x$enableval" = "xyes"; then
 
24591
 
 
24592
echo "$as_me:$LINENO: checking for pioctl in -lafsauthent" >&5
 
24593
echo $ECHO_N "checking for pioctl in -lafsauthent... $ECHO_C" >&6
 
24594
if test "${ac_cv_lib_afsauthent_pioctl+set}" = set; then
 
24595
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24596
else
 
24597
  ac_check_lib_save_LIBS=$LIBS
 
24598
LIBS="-lafsauthent  $LIBS"
 
24599
cat >conftest.$ac_ext <<_ACEOF
 
24600
/* confdefs.h.  */
 
24601
_ACEOF
 
24602
cat confdefs.h >>conftest.$ac_ext
 
24603
cat >>conftest.$ac_ext <<_ACEOF
 
24604
/* end confdefs.h.  */
 
24605
 
 
24606
/* Override any gcc2 internal prototype to avoid an error.  */
 
24607
#ifdef __cplusplus
 
24608
extern "C"
 
24609
#endif
 
24610
/* We use char because int might match the return type of a gcc2
 
24611
   builtin and then its argument prototype would still apply.  */
 
24612
char pioctl ();
 
24613
int
 
24614
main ()
 
24615
{
 
24616
pioctl ();
 
24617
  ;
 
24618
  return 0;
 
24619
}
 
24620
_ACEOF
 
24621
rm -f conftest.$ac_objext conftest$ac_exeext
 
24622
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24623
  (eval $ac_link) 2>conftest.er1
 
24624
  ac_status=$?
 
24625
  grep -v '^ *+' conftest.er1 >conftest.err
 
24626
  rm -f conftest.er1
 
24627
  cat conftest.err >&5
 
24628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24629
  (exit $ac_status); } &&
 
24630
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
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); }; } &&
 
24636
         { ac_try='test -s conftest$ac_exeext'
 
24637
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24638
  (eval $ac_try) 2>&5
 
24639
  ac_status=$?
 
24640
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24641
  (exit $ac_status); }; }; then
 
24642
  ac_cv_lib_afsauthent_pioctl=yes
 
24643
else
 
24644
  echo "$as_me: failed program was:" >&5
 
24645
sed 's/^/| /' conftest.$ac_ext >&5
 
24646
 
 
24647
ac_cv_lib_afsauthent_pioctl=no
 
24648
fi
 
24649
rm -f conftest.err conftest.$ac_objext \
 
24650
      conftest$ac_exeext conftest.$ac_ext
 
24651
LIBS=$ac_check_lib_save_LIBS
 
24652
fi
 
24653
echo "$as_me:$LINENO: result: $ac_cv_lib_afsauthent_pioctl" >&5
 
24654
echo "${ECHO_T}$ac_cv_lib_afsauthent_pioctl" >&6
 
24655
if test $ac_cv_lib_afsauthent_pioctl = yes; then
 
24656
  cat >>confdefs.h <<_ACEOF
 
24657
#define HAVE_LIBAFSAUTHENT 1
 
24658
_ACEOF
 
24659
 
 
24660
  LIBS="-lafsauthent $LIBS"
 
24661
 
 
24662
else
 
24663
  { { echo "$as_me:$LINENO: error: AFS installation not found" >&5
 
24664
echo "$as_me: error: AFS installation not found" >&2;}
 
24665
   { (exit 1); exit 1; }; }
 
24666
 
 
24667
fi
 
24668
 
 
24669
                                AFS_LIBS=-lafsauthent
 
24670
                                cat >>confdefs.h <<\_ACEOF
 
24671
#define AFS 1
 
24672
_ACEOF
 
24673
 
 
24674
                        fi
 
24675
 
 
24676
 
 
24677
fi;
 
24678
 
 
24679
 
 
24680
 
 
24681
 
 
24682
 
 
24683
 
 
24684
        PKGCONFDIR="${sysconfdir}/netatalk"
 
24685
 
 
24686
 
 
24687
# Check whether --with-pkgconfdir or --without-pkgconfdir was given.
 
24688
if test "${with_pkgconfdir+set}" = set; then
 
24689
  withval="$with_pkgconfdir"
 
24690
 
 
24691
                        if test "x$withval" != "x"; then
 
24692
                                PKGCONFDIR="$withval"
 
24693
                        fi
 
24694
 
 
24695
 
 
24696
fi;
 
24697
 
 
24698
        NLSDIR="${PKGCONFDIR}/nls"
 
24699
 
 
24700
 
 
24701
# Check whether --with-nls-dir or --without-nls-dir was given.
 
24702
if test "${with_nls_dir+set}" = set; then
 
24703
  withval="$with_nls_dir"
 
24704
 
 
24705
                        if test "x$withval" != "x"; then
 
24706
                                NLSDIR="$withval"
 
24707
                        fi
 
24708
 
 
24709
 
 
24710
fi;
 
24711
 
 
24712
        SERVERTEXT="${PKGCONFDIR}/msg"
 
24713
 
 
24714
 
 
24715
# Check whether --with-message-dir or --without-message-dir was given.
 
24716
if test "${with_message_dir+set}" = set; then
 
24717
  withval="$with_message_dir"
 
24718
 
 
24719
                        if test "x$withval" != "x"; then
 
24720
                                SERVERTEXT="$withval"
 
24721
                                cat >> confdefs.h <<EOF
 
24722
#define SERVERTEXT "$withval"
 
24723
EOF
 
24724
                        fi
 
24725
 
 
24726
 
 
24727
fi;
 
24728
 
 
24729
 
 
24730
 
 
24731
 
 
24732
 
 
24733
 
 
24734
 
 
24735
# Check whether --with-logfile or --without-logfile was given.
 
24736
if test "${with_logfile+set}" = set; then
 
24737
  withval="$with_logfile"
 
24738
  if test "$withval" = "no"; then
 
24739
                cat >>confdefs.h <<\_ACEOF
 
24740
#define DISABLE_LOGGER 1
 
24741
_ACEOF
 
24742
 
 
24743
                echo "$as_me:$LINENO: result: logger disabled" >&5
 
24744
echo "${ECHO_T}logger disabled" >&6
 
24745
        elif test "$withval" != "yes"; then
 
24746
                cat >>confdefs.h <<_ACEOF
 
24747
#define LOGFILEPATH "$withval"
 
24748
_ACEOF
 
24749
 
 
24750
                echo "$as_me:$LINENO: result: logfile set to $withval" >&5
 
24751
echo "${ECHO_T}logfile set to $withval" >&6
 
24752
        else
 
24753
                cat >>confdefs.h <<_ACEOF
 
24754
#define LOGFILEPATH "/var/log/netatalk.log"
 
24755
_ACEOF
 
24756
 
 
24757
                echo "$as_me:$LINENO: result: logfile set to default" >&5
 
24758
echo "${ECHO_T}logfile set to default" >&6
 
24759
        fi
 
24760
else
 
24761
  cat >>confdefs.h <<_ACEOF
 
24762
#define LOGFILEPATH "/var/log/netatalk.log"
 
24763
_ACEOF
 
24764
 
 
24765
                echo "$as_me:$LINENO: result: logfile set to default" >&5
 
24766
echo "${ECHO_T}logfile set to default" >&6
 
24767
 
 
24768
fi;
 
24769
 
 
24770
 
 
24771
# Check whether --with-cracklib or --without-cracklib was given.
 
24772
if test "${with_cracklib+set}" = set; then
 
24773
  withval="$with_cracklib"
 
24774
  if test "x$withval" != "xno" ; then
 
24775
                cracklib="$withval"
 
24776
                echo "$as_me:$LINENO: checking for main in -lcrack" >&5
 
24777
echo $ECHO_N "checking for main in -lcrack... $ECHO_C" >&6
 
24778
if test "${ac_cv_lib_crack_main+set}" = set; then
 
24779
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24780
else
 
24781
  ac_check_lib_save_LIBS=$LIBS
 
24782
LIBS="-lcrack  $LIBS"
 
24783
cat >conftest.$ac_ext <<_ACEOF
 
24784
/* confdefs.h.  */
 
24785
_ACEOF
 
24786
cat confdefs.h >>conftest.$ac_ext
 
24787
cat >>conftest.$ac_ext <<_ACEOF
 
24788
/* end confdefs.h.  */
 
24789
 
 
24790
 
 
24791
int
 
24792
main ()
 
24793
{
 
24794
main ();
 
24795
  ;
 
24796
  return 0;
 
24797
}
 
24798
_ACEOF
 
24799
rm -f conftest.$ac_objext conftest$ac_exeext
 
24800
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24801
  (eval $ac_link) 2>conftest.er1
 
24802
  ac_status=$?
 
24803
  grep -v '^ *+' conftest.er1 >conftest.err
 
24804
  rm -f conftest.er1
 
24805
  cat conftest.err >&5
 
24806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24807
  (exit $ac_status); } &&
 
24808
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
24809
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24810
  (eval $ac_try) 2>&5
 
24811
  ac_status=$?
 
24812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24813
  (exit $ac_status); }; } &&
 
24814
         { ac_try='test -s conftest$ac_exeext'
 
24815
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24816
  (eval $ac_try) 2>&5
 
24817
  ac_status=$?
 
24818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24819
  (exit $ac_status); }; }; then
 
24820
  ac_cv_lib_crack_main=yes
 
24821
else
 
24822
  echo "$as_me: failed program was:" >&5
 
24823
sed 's/^/| /' conftest.$ac_ext >&5
 
24824
 
 
24825
ac_cv_lib_crack_main=no
 
24826
fi
 
24827
rm -f conftest.err conftest.$ac_objext \
 
24828
      conftest$ac_exeext conftest.$ac_ext
 
24829
LIBS=$ac_check_lib_save_LIBS
 
24830
fi
 
24831
echo "$as_me:$LINENO: result: $ac_cv_lib_crack_main" >&5
 
24832
echo "${ECHO_T}$ac_cv_lib_crack_main" >&6
 
24833
if test $ac_cv_lib_crack_main = yes; then
 
24834
  cat >>confdefs.h <<\_ACEOF
 
24835
#define USE_CRACKLIB 1
 
24836
_ACEOF
 
24837
 
 
24838
                        LIBS="$LIBS -lcrack"
 
24839
                        echo "$as_me:$LINENO: result: enabling cracklib support" >&5
 
24840
echo "${ECHO_T}enabling cracklib support" >&6
 
24841
                        if test "$cracklib" = "yes"; then
 
24842
                                cracklib="/usr/lib/cracklib_dict"
 
24843
                        fi
 
24844
 
 
24845
cat >>confdefs.h <<_ACEOF
 
24846
#define _PATH_CRACKLIB "$cracklib"
 
24847
_ACEOF
 
24848
 
 
24849
                        echo "$as_me:$LINENO: result: setting cracklib dictionary to $cracklib" >&5
 
24850
echo "${ECHO_T}setting cracklib dictionary to $cracklib" >&6
 
24851
else
 
24852
  { { echo "$as_me:$LINENO: error: cracklib not found!" >&5
 
24853
echo "$as_me: error: cracklib not found!" >&2;}
 
24854
   { (exit 1); exit 1; }; }
 
24855
 
 
24856
fi
 
24857
 
 
24858
        fi
 
24859
 
 
24860
fi;
 
24861
 
 
24862
# Check whether --enable-ddp or --disable-ddp was given.
 
24863
if test "${enable_ddp+set}" = set; then
 
24864
  enableval="$enable_ddp"
 
24865
  if test "$enableval" = "no"; then
 
24866
                cat >>confdefs.h <<\_ACEOF
 
24867
#define NO_DDP 1
 
24868
_ACEOF
 
24869
 
 
24870
                echo "$as_me:$LINENO: result: disabling DDP" >&5
 
24871
echo "${ECHO_T}disabling DDP" >&6
 
24872
        fi
 
24873
 
 
24874
fi;
 
24875
 
 
24876
# Check whether --enable-debug or --disable-debug was given.
 
24877
if test "${enable_debug+set}" = set; then
 
24878
  enableval="$enable_debug"
 
24879
  if test "$enableval" != "no"; then
 
24880
                if test "$enableval" = "yes"; then
 
24881
                        cat >>confdefs.h <<\_ACEOF
 
24882
#define DEBUG 1
 
24883
_ACEOF
 
24884
 
 
24885
                else
 
24886
                        cat >>confdefs.h <<_ACEOF
 
24887
#define DEBUG $enableval
 
24888
_ACEOF
 
24889
 
 
24890
                fi
 
24891
                echo "$as_me:$LINENO: result: enabling debugging code" >&5
 
24892
echo "${ECHO_T}enabling debugging code" >&6
 
24893
        fi
 
24894
 
 
24895
fi;
 
24896
 
 
24897
 
 
24898
 
 
24899
# Check whether --enable-dropkludge or --disable-dropkludge was given.
 
24900
if test "${enable_dropkludge+set}" = set; then
 
24901
  enableval="$enable_dropkludge"
 
24902
  if test "$enableval" = "yes"; then
 
24903
                cat >>confdefs.h <<\_ACEOF
 
24904
#define DROPKLUDGE 1
 
24905
_ACEOF
 
24906
 
 
24907
                echo "$as_me:$LINENO: result: enabling experimental dropbox support" >&5
 
24908
echo "${ECHO_T}enabling experimental dropbox support" >&6
 
24909
        fi
 
24910
 
 
24911
fi;
 
24912
 
 
24913
# Check whether --enable-force-uidgid or --disable-force-uidgid was given.
 
24914
if test "${enable_force_uidgid+set}" = set; then
 
24915
  enableval="$enable_force_uidgid"
 
24916
  if test "$enableval" = "yes"; then
 
24917
                cat >>confdefs.h <<\_ACEOF
 
24918
#define FORCE_UIDGID 1
 
24919
_ACEOF
 
24920
 
 
24921
                echo "$as_me:$LINENO: result: enabling forcing of uid/gid per volume" >&5
 
24922
echo "${ECHO_T}enabling forcing of uid/gid per volume" >&6
 
24923
        fi
 
24924
 
 
24925
fi;
 
24926
 
 
24927
bdb_required=no
 
24928
 
 
24929
echo "$as_me:$LINENO: checking for DID scheme to use" >&5
 
24930
echo $ECHO_N "checking for DID scheme to use... $ECHO_C" >&6
 
24931
 
 
24932
# Check whether --with-did or --without-did was given.
 
24933
if test "${with_did+set}" = set; then
 
24934
  withval="$with_did"
 
24935
   did_scheme="$withval"
 
24936
else
 
24937
   did_scheme="cnid"
 
24938
 
 
24939
fi;
 
24940
 
 
24941
if test "x$did_scheme" = "xlast"; then
 
24942
        cat >>confdefs.h <<\_ACEOF
 
24943
#define USE_LASTDID 1
 
24944
_ACEOF
 
24945
 
 
24946
        echo "$as_me:$LINENO: result: last" >&5
 
24947
echo "${ECHO_T}last" >&6
 
24948
elif test "x$did_scheme" = "xcnid"; then
 
24949
        bdb_required="yes"
 
24950
        cat >>confdefs.h <<\_ACEOF
 
24951
#define CNID_DB 1
 
24952
_ACEOF
 
24953
 
 
24954
        echo "$as_me:$LINENO: result: enabling build with CNID DB support" >&5
 
24955
echo "${ECHO_T}enabling build with CNID DB support" >&6
 
24956
else
 
24957
        { { echo "$as_me:$LINENO: error: unknown DID scheme" >&5
 
24958
echo "$as_me: error: unknown DID scheme" >&2;}
 
24959
   { (exit 1); exit 1; }; }
 
24960
fi
 
24961
 
 
24962
 
 
24963
if test "x$did_scheme" = "xcnid"; then
 
24964
  COMPILE_CNID_TRUE=
 
24965
  COMPILE_CNID_FALSE='#'
 
24966
else
 
24967
  COMPILE_CNID_TRUE='#'
 
24968
  COMPILE_CNID_FALSE=
 
24969
fi
 
24970
 
 
24971
 
 
24972
echo "$as_me:$LINENO: checking whether or not to use filename mangling" >&5
 
24973
echo $ECHO_N "checking whether or not to use filename mangling... $ECHO_C" >&6
 
24974
 
 
24975
# Check whether --with-mangling or --without-mangling was given.
 
24976
if test "${with_mangling+set}" = set; then
 
24977
  withval="$with_mangling"
 
24978
  if test "$withval" = "yes"; then
 
24979
            if test "x$did_scheme" != "xcnid"; then
 
24980
                { { echo "$as_me:$LINENO: error: DID scheme must be CNID to use filename mangling" >&5
 
24981
echo "$as_me: error: DID scheme must be CNID to use filename mangling" >&2;}
 
24982
   { (exit 1); exit 1; }; }
 
24983
            else
 
24984
                cat >>confdefs.h <<\_ACEOF
 
24985
#define FILE_MANGLING 1
 
24986
_ACEOF
 
24987
 
 
24988
                echo "$as_me:$LINENO: result: yes" >&5
 
24989
echo "${ECHO_T}yes" >&6
 
24990
            fi
 
24991
        else
 
24992
            echo "$as_me:$LINENO: result: no" >&5
 
24993
echo "${ECHO_T}no" >&6
 
24994
        fi
 
24995
 
 
24996
else
 
24997
  echo "$as_me:$LINENO: result: no" >&5
 
24998
echo "${ECHO_T}no" >&6
 
24999
 
 
25000
fi;
 
25001
 
 
25002
if test "$did_scheme" = "cnid"; then
 
25003
    USE_CDB="yes"
 
25004
else
 
25005
    USE_CDB="no"
 
25006
fi
 
25007
 
 
25008
echo "$as_me:$LINENO: checking whether or not to use CNID with Concurrent Data Store" >&5
 
25009
echo $ECHO_N "checking whether or not to use CNID with Concurrent Data Store... $ECHO_C" >&6
 
25010
 
 
25011
# Check whether --with-cdb or --without-cdb was given.
 
25012
if test "${with_cdb+set}" = set; then
 
25013
  withval="$with_cdb"
 
25014
  if test "$withval" = "no"; then
 
25015
            if test "x$did_scheme" != "xcnid"; then
 
25016
                USE_CDB="no"
 
25017
                { { echo "$as_me:$LINENO: error: DID scheme must be CNID to use CDB" >&5
 
25018
echo "$as_me: error: DID scheme must be CNID to use CDB" >&2;}
 
25019
   { (exit 1); exit 1; }; }
 
25020
            else
 
25021
                USE_CDB="no"
 
25022
                echo "$as_me:$LINENO: result: no" >&5
 
25023
echo "${ECHO_T}no" >&6
 
25024
            fi
 
25025
        else
 
25026
                USE_CDB="yes"
 
25027
                echo "$as_me:$LINENO: result: yes" >&5
 
25028
echo "${ECHO_T}yes" >&6
 
25029
        fi
 
25030
 
 
25031
else
 
25032
  echo "$as_me:$LINENO: result: yes" >&5
 
25033
echo "${ECHO_T}yes" >&6
 
25034
 
 
25035
fi;
 
25036
 
 
25037
if test "$USE_CDB" = "yes"; then
 
25038
    cat >>confdefs.h <<\_ACEOF
 
25039
#define CNID_DB_CDB 1
 
25040
_ACEOF
 
25041
 
 
25042
fi
 
25043
 
 
25044
if test "x$bdb_required" = "xyes"; then
 
25045
 
 
25046
        trybdbdir=""
 
25047
 
 
25048
# Check whether --with-bdb or --without-bdb was given.
 
25049
if test "${with_bdb+set}" = set; then
 
25050
  withval="$with_bdb"
 
25051
  if test "x$withval" != "xno"; then
 
25052
                        trybdbdir="$withval"
 
25053
                fi
 
25054
 
 
25055
fi;
 
25056
 
 
25057
        bdbfound=no
 
25058
        for bdbdir in "" "$trybdbdir" "$trybdbdir/include" "$trybdbdir/include/db3" "/usr/local/BerkeleyDB.3.3/include" "/usr/local/include/db3" "/usr/local/include" "/usr/include/db3" "/usr/include" ; do
 
25059
                if test -f "$bdbdir/db.h" ; then
 
25060
                        bdblibdir="`echo $bdbdir | sed 's/include\/db3$/lib/'`"
 
25061
                        bdblibdir="`echo $bdblibdir | sed 's/include$/lib/'`"
 
25062
                        bdbbindir="`echo $bdbdir | sed 's/include\/db3$/bin/'`"
 
25063
                        bdbbindir="`echo $bdbbindir | sed 's/include$/bin/'`"
 
25064
 
 
25065
                        savedcflags="$CFLAGS"
 
25066
                        savedldflags="$LDFLAGS"
 
25067
                        CFLAGS="$CFLAGS -I$bdbdir"
 
25068
                        LDFLAGS="-L$bdblibdir $LDFLAGS"
 
25069
                        echo "$as_me:$LINENO: checking for main in -ldb" >&5
 
25070
echo $ECHO_N "checking for main in -ldb... $ECHO_C" >&6
 
25071
if test "${ac_cv_lib_db_main+set}" = set; then
 
25072
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25073
else
 
25074
  ac_check_lib_save_LIBS=$LIBS
 
25075
LIBS="-ldb  $LIBS"
 
25076
cat >conftest.$ac_ext <<_ACEOF
 
25077
/* confdefs.h.  */
 
25078
_ACEOF
 
25079
cat confdefs.h >>conftest.$ac_ext
 
25080
cat >>conftest.$ac_ext <<_ACEOF
 
25081
/* end confdefs.h.  */
 
25082
 
 
25083
 
 
25084
int
 
25085
main ()
 
25086
{
 
25087
main ();
 
25088
  ;
 
25089
  return 0;
 
25090
}
 
25091
_ACEOF
 
25092
rm -f conftest.$ac_objext conftest$ac_exeext
 
25093
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25094
  (eval $ac_link) 2>conftest.er1
 
25095
  ac_status=$?
 
25096
  grep -v '^ *+' conftest.er1 >conftest.err
 
25097
  rm -f conftest.er1
 
25098
  cat conftest.err >&5
 
25099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25100
  (exit $ac_status); } &&
 
25101
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25102
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25103
  (eval $ac_try) 2>&5
 
25104
  ac_status=$?
 
25105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25106
  (exit $ac_status); }; } &&
 
25107
         { ac_try='test -s conftest$ac_exeext'
 
25108
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25109
  (eval $ac_try) 2>&5
 
25110
  ac_status=$?
 
25111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25112
  (exit $ac_status); }; }; then
 
25113
  ac_cv_lib_db_main=yes
 
25114
else
 
25115
  echo "$as_me: failed program was:" >&5
 
25116
sed 's/^/| /' conftest.$ac_ext >&5
 
25117
 
 
25118
ac_cv_lib_db_main=no
 
25119
fi
 
25120
rm -f conftest.err conftest.$ac_objext \
 
25121
      conftest$ac_exeext conftest.$ac_ext
 
25122
LIBS=$ac_check_lib_save_LIBS
 
25123
fi
 
25124
echo "$as_me:$LINENO: result: $ac_cv_lib_db_main" >&5
 
25125
echo "${ECHO_T}$ac_cv_lib_db_main" >&6
 
25126
if test $ac_cv_lib_db_main = yes; then
 
25127
 
 
25128
                                bdbfound=yes
 
25129
                                if test "$bdbdir" != "/usr/include"; then
 
25130
                                    BDB_CFLAGS="-I$bdbdir"
 
25131
                                fi
 
25132
                                if test "$bdblibdir" != "/usr/lib"; then
 
25133
                                    BDB_LIBS="-L$bdblibdir"
 
25134
                                fi
 
25135
                                BDB_LIBS="$BDB_LIBS -ldb"
 
25136
                                BDB_BIN=$bdbbindir
 
25137
                                BDB_PATH="`echo $bdbdir | sed 's,include/db3$,,'`"
 
25138
                                BDB_PATH="`echo $BDB_PATH | sed 's,include$,,'`"
 
25139
 
 
25140
fi
 
25141
 
 
25142
                        CFLAGS="$savedcflags"
 
25143
                        LDFLAGS="$savedldflags"
 
25144
                        break;
 
25145
                fi
 
25146
        done
 
25147
 
 
25148
        if test "x$bdbfound" = "xyes"; then
 
25149
                :
 
25150
        else
 
25151
                { { echo "$as_me:$LINENO: error: Berkeley DB library not found!" >&5
 
25152
echo "$as_me: error: Berkeley DB library not found!" >&2;}
 
25153
   { (exit 1); exit 1; }; }
 
25154
        fi
 
25155
 
 
25156
 
 
25157
 
 
25158
 
 
25159
 
 
25160
 
 
25161
fi
 
25162
 
 
25163
 
 
25164
        QUOTA_LIBS=
 
25165
        echo "$as_me:$LINENO: checking for main in -lrpcsvc" >&5
 
25166
echo $ECHO_N "checking for main in -lrpcsvc... $ECHO_C" >&6
 
25167
if test "${ac_cv_lib_rpcsvc_main+set}" = set; then
 
25168
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25169
else
 
25170
  ac_check_lib_save_LIBS=$LIBS
 
25171
LIBS="-lrpcsvc  $LIBS"
 
25172
cat >conftest.$ac_ext <<_ACEOF
 
25173
/* confdefs.h.  */
 
25174
_ACEOF
 
25175
cat confdefs.h >>conftest.$ac_ext
 
25176
cat >>conftest.$ac_ext <<_ACEOF
 
25177
/* end confdefs.h.  */
 
25178
 
 
25179
 
 
25180
int
 
25181
main ()
 
25182
{
 
25183
main ();
 
25184
  ;
 
25185
  return 0;
 
25186
}
 
25187
_ACEOF
 
25188
rm -f conftest.$ac_objext conftest$ac_exeext
 
25189
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25190
  (eval $ac_link) 2>conftest.er1
 
25191
  ac_status=$?
 
25192
  grep -v '^ *+' conftest.er1 >conftest.err
 
25193
  rm -f conftest.er1
 
25194
  cat conftest.err >&5
 
25195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25196
  (exit $ac_status); } &&
 
25197
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25198
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25199
  (eval $ac_try) 2>&5
 
25200
  ac_status=$?
 
25201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25202
  (exit $ac_status); }; } &&
 
25203
         { ac_try='test -s conftest$ac_exeext'
 
25204
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25205
  (eval $ac_try) 2>&5
 
25206
  ac_status=$?
 
25207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25208
  (exit $ac_status); }; }; then
 
25209
  ac_cv_lib_rpcsvc_main=yes
 
25210
else
 
25211
  echo "$as_me: failed program was:" >&5
 
25212
sed 's/^/| /' conftest.$ac_ext >&5
 
25213
 
 
25214
ac_cv_lib_rpcsvc_main=no
 
25215
fi
 
25216
rm -f conftest.err conftest.$ac_objext \
 
25217
      conftest$ac_exeext conftest.$ac_ext
 
25218
LIBS=$ac_check_lib_save_LIBS
 
25219
fi
 
25220
echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsvc_main" >&5
 
25221
echo "${ECHO_T}$ac_cv_lib_rpcsvc_main" >&6
 
25222
if test $ac_cv_lib_rpcsvc_main = yes; then
 
25223
  QUOTA_LIBS=-lrpcsvc
 
25224
fi
 
25225
 
 
25226
 
 
25227
 
 
25228
 
 
25229
 
 
25230
 
 
25231
        SLP_LIBS=""
 
25232
        SLP_CFLAGS=""
 
25233
 
 
25234
        # Check whether --enable-srvloc or --disable-srvloc was given.
 
25235
if test "${enable_srvloc+set}" = set; then
 
25236
  enableval="$enable_srvloc"
 
25237
  srvloc=$enableval
 
25238
else
 
25239
  srvloc=no
 
25240
 
 
25241
fi;
 
25242
 
 
25243
        if test "x$srvloc" != "xno"; then
 
25244
 
 
25245
                savedcppflags="$CPPFLAGS"
 
25246
                savedldflags="$LDFLAGS"
 
25247
                if test "x$srvloc" = "xyes"; then
 
25248
                        srvloc="/usr"
 
25249
                fi
 
25250
                CPPFLAGS="$CPPFLAGS -I$srvloc/include"
 
25251
                LDFLAGS="$LDFLAGS -L$srvloc/lib"
 
25252
 
 
25253
                echo "$as_me:$LINENO: checking for slp.h" >&5
 
25254
echo $ECHO_N "checking for slp.h... $ECHO_C" >&6
 
25255
                cat >conftest.$ac_ext <<_ACEOF
 
25256
/* confdefs.h.  */
 
25257
_ACEOF
 
25258
cat confdefs.h >>conftest.$ac_ext
 
25259
cat >>conftest.$ac_ext <<_ACEOF
 
25260
/* end confdefs.h.  */
 
25261
#include <slp.h>
 
25262
_ACEOF
 
25263
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
25264
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
25265
  ac_status=$?
 
25266
  grep -v '^ *+' conftest.er1 >conftest.err
 
25267
  rm -f conftest.er1
 
25268
  cat conftest.err >&5
 
25269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25270
  (exit $ac_status); } >/dev/null; then
 
25271
  if test -s conftest.err; then
 
25272
    ac_cpp_err=$ac_c_preproc_warn_flag
 
25273
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
25274
  else
 
25275
    ac_cpp_err=
 
25276
  fi
 
25277
else
 
25278
  ac_cpp_err=yes
 
25279
fi
 
25280
if test -z "$ac_cpp_err"; then
 
25281
  echo "$as_me:$LINENO: result: yes" >&5
 
25282
echo "${ECHO_T}yes" >&6
 
25283
else
 
25284
  echo "$as_me: failed program was:" >&5
 
25285
sed 's/^/| /' conftest.$ac_ext >&5
 
25286
 
 
25287
 
 
25288
                                echo "$as_me:$LINENO: result: no" >&5
 
25289
echo "${ECHO_T}no" >&6
 
25290
                                { { echo "$as_me:$LINENO: error: SLP installation not found" >&5
 
25291
echo "$as_me: error: SLP installation not found" >&2;}
 
25292
   { (exit 1); exit 1; }; }
 
25293
 
 
25294
 
 
25295
fi
 
25296
rm -f conftest.err conftest.$ac_ext
 
25297
                echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
 
25298
echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
 
25299
if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
 
25300
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25301
else
 
25302
  ac_check_lib_save_LIBS=$LIBS
 
25303
LIBS="-lslp  $LIBS"
 
25304
cat >conftest.$ac_ext <<_ACEOF
 
25305
/* confdefs.h.  */
 
25306
_ACEOF
 
25307
cat confdefs.h >>conftest.$ac_ext
 
25308
cat >>conftest.$ac_ext <<_ACEOF
 
25309
/* end confdefs.h.  */
 
25310
 
 
25311
/* Override any gcc2 internal prototype to avoid an error.  */
 
25312
#ifdef __cplusplus
 
25313
extern "C"
 
25314
#endif
 
25315
/* We use char because int might match the return type of a gcc2
 
25316
   builtin and then its argument prototype would still apply.  */
 
25317
char SLPOpen ();
 
25318
int
 
25319
main ()
 
25320
{
 
25321
SLPOpen ();
 
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"                   || test ! -s conftest.err'
 
25336
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25337
  (eval $ac_try) 2>&5
 
25338
  ac_status=$?
 
25339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25340
  (exit $ac_status); }; } &&
 
25341
         { ac_try='test -s conftest$ac_exeext'
 
25342
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25343
  (eval $ac_try) 2>&5
 
25344
  ac_status=$?
 
25345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25346
  (exit $ac_status); }; }; then
 
25347
  ac_cv_lib_slp_SLPOpen=yes
 
25348
else
 
25349
  echo "$as_me: failed program was:" >&5
 
25350
sed 's/^/| /' conftest.$ac_ext >&5
 
25351
 
 
25352
ac_cv_lib_slp_SLPOpen=no
 
25353
fi
 
25354
rm -f conftest.err conftest.$ac_objext \
 
25355
      conftest$ac_exeext conftest.$ac_ext
 
25356
LIBS=$ac_check_lib_save_LIBS
 
25357
fi
 
25358
echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
 
25359
echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
 
25360
if test $ac_cv_lib_slp_SLPOpen = yes; then
 
25361
 
 
25362
                        SLP_LIBS="-L$srvloc/lib -lslp"
 
25363
                        SLP_CFLAGS="-I$srvloc/include"
 
25364
 
 
25365
else
 
25366
  { { echo "$as_me:$LINENO: error: SLP installation not found" >&5
 
25367
echo "$as_me: error: SLP installation not found" >&2;}
 
25368
   { (exit 1); exit 1; }; }
 
25369
fi
 
25370
 
 
25371
 
 
25372
                cat >>confdefs.h <<\_ACEOF
 
25373
#define USE_SRVLOC 1
 
25374
_ACEOF
 
25375
 
 
25376
 
 
25377
                CPPFLAGS="$savedcppflags"
 
25378
                LDFLAGS="$savedldflags"
 
25379
        fi
 
25380
 
 
25381
 
 
25382
 
 
25383
 
 
25384
 
 
25385
 
 
25386
        echo "$as_me:$LINENO: checking for PAM" >&5
 
25387
echo $ECHO_N "checking for PAM... $ECHO_C" >&6
 
25388
 
 
25389
# Check whether --with-pam or --without-pam was given.
 
25390
if test "${with_pam+set}" = set; then
 
25391
  withval="$with_pam"
 
25392
 
 
25393
                        require_pam="yes"
 
25394
                        if test "x$withval" = "xno"; then
 
25395
                                PAMDIR="NONE"
 
25396
                                require_pam="never"
 
25397
                        elif test "x$withval" = "xyes"; then
 
25398
                                PAMDIR="NONE"
 
25399
                        else
 
25400
                                PAMDIR="$withval"
 
25401
                        fi
 
25402
 
 
25403
else
 
25404
  PAMDIR="NONE";require_pam="no"
 
25405
 
 
25406
fi;
 
25407
 
 
25408
        if test "x$PAMDIR" = "xNONE" -a "x$require_pam" != "xnever"; then
 
25409
                                pam_paths="/ /usr /usr/local"
 
25410
                for path in $pam_paths; do
 
25411
                        if test -d "$path/etc/pam.d"; then
 
25412
                                PAMDIR="$path"
 
25413
                                break
 
25414
                        fi
 
25415
                done
 
25416
        fi
 
25417
 
 
25418
        PAM_CFLAGS=""
 
25419
        PAM_LIBS=""
 
25420
 
 
25421
        pam_found="no"
 
25422
        if test "x$PAMDIR" != "xNONE"; then
 
25423
                echo "$as_me:$LINENO: result: yes (path: $PAMDIR)" >&5
 
25424
echo "${ECHO_T}yes (path: $PAMDIR)" >&6
 
25425
                if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
 
25426
  echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
 
25427
echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
 
25428
if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
 
25429
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25430
fi
 
25431
echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
 
25432
echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
 
25433
else
 
25434
  # Is the header compilable?
 
25435
echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
 
25436
echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
 
25437
cat >conftest.$ac_ext <<_ACEOF
 
25438
/* confdefs.h.  */
 
25439
_ACEOF
 
25440
cat confdefs.h >>conftest.$ac_ext
 
25441
cat >>conftest.$ac_ext <<_ACEOF
 
25442
/* end confdefs.h.  */
 
25443
$ac_includes_default
 
25444
#include <security/pam_appl.h>
 
25445
_ACEOF
 
25446
rm -f conftest.$ac_objext
 
25447
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25448
  (eval $ac_compile) 2>conftest.er1
 
25449
  ac_status=$?
 
25450
  grep -v '^ *+' conftest.er1 >conftest.err
 
25451
  rm -f conftest.er1
 
25452
  cat conftest.err >&5
 
25453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25454
  (exit $ac_status); } &&
 
25455
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25456
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25457
  (eval $ac_try) 2>&5
 
25458
  ac_status=$?
 
25459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25460
  (exit $ac_status); }; } &&
 
25461
         { ac_try='test -s conftest.$ac_objext'
 
25462
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25463
  (eval $ac_try) 2>&5
 
25464
  ac_status=$?
 
25465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25466
  (exit $ac_status); }; }; then
 
25467
  ac_header_compiler=yes
 
25468
else
 
25469
  echo "$as_me: failed program was:" >&5
 
25470
sed 's/^/| /' conftest.$ac_ext >&5
 
25471
 
 
25472
ac_header_compiler=no
 
25473
fi
 
25474
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25475
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
25476
echo "${ECHO_T}$ac_header_compiler" >&6
 
25477
 
 
25478
# Is the header present?
 
25479
echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
 
25480
echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
 
25481
cat >conftest.$ac_ext <<_ACEOF
 
25482
/* confdefs.h.  */
 
25483
_ACEOF
 
25484
cat confdefs.h >>conftest.$ac_ext
 
25485
cat >>conftest.$ac_ext <<_ACEOF
 
25486
/* end confdefs.h.  */
 
25487
#include <security/pam_appl.h>
 
25488
_ACEOF
 
25489
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
25490
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
25491
  ac_status=$?
 
25492
  grep -v '^ *+' conftest.er1 >conftest.err
 
25493
  rm -f conftest.er1
 
25494
  cat conftest.err >&5
 
25495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25496
  (exit $ac_status); } >/dev/null; then
 
25497
  if test -s conftest.err; then
 
25498
    ac_cpp_err=$ac_c_preproc_warn_flag
 
25499
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
25500
  else
 
25501
    ac_cpp_err=
 
25502
  fi
 
25503
else
 
25504
  ac_cpp_err=yes
 
25505
fi
 
25506
if test -z "$ac_cpp_err"; then
 
25507
  ac_header_preproc=yes
 
25508
else
 
25509
  echo "$as_me: failed program was:" >&5
 
25510
sed 's/^/| /' conftest.$ac_ext >&5
 
25511
 
 
25512
  ac_header_preproc=no
 
25513
fi
 
25514
rm -f conftest.err conftest.$ac_ext
 
25515
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
25516
echo "${ECHO_T}$ac_header_preproc" >&6
 
25517
 
 
25518
# So?  What about this header?
 
25519
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
25520
  yes:no: )
 
25521
    { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
25522
echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
25523
    { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&5
 
25524
echo "$as_me: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&2;}
 
25525
    ac_header_preproc=yes
 
25526
    ;;
 
25527
  no:yes:* )
 
25528
    { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
 
25529
echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
 
25530
    { echo "$as_me:$LINENO: WARNING: security/pam_appl.h:     check for missing prerequisite headers?" >&5
 
25531
echo "$as_me: WARNING: security/pam_appl.h:     check for missing prerequisite headers?" >&2;}
 
25532
    { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: see the Autoconf documentation" >&5
 
25533
echo "$as_me: WARNING: security/pam_appl.h: see the Autoconf documentation" >&2;}
 
25534
    { echo "$as_me:$LINENO: WARNING: security/pam_appl.h:     section \"Present But Cannot Be Compiled\"" >&5
 
25535
echo "$as_me: WARNING: security/pam_appl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
25536
    { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
 
25537
echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;}
 
25538
    { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&5
 
25539
echo "$as_me: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&2;}
 
25540
    (
 
25541
      cat <<\_ASBOX
 
25542
## ------------------------------------------ ##
 
25543
## Report this to the AC_PACKAGE_NAME lists.  ##
 
25544
## ------------------------------------------ ##
 
25545
_ASBOX
 
25546
    ) |
 
25547
      sed "s/^/$as_me: WARNING:     /" >&2
 
25548
    ;;
 
25549
esac
 
25550
echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
 
25551
echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
 
25552
if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
 
25553
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25554
else
 
25555
  ac_cv_header_security_pam_appl_h=$ac_header_preproc
 
25556
fi
 
25557
echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
 
25558
echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
 
25559
 
 
25560
fi
 
25561
if test $ac_cv_header_security_pam_appl_h = yes; then
 
25562
 
 
25563
                        echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
 
25564
echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6
 
25565
if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
 
25566
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25567
else
 
25568
  ac_check_lib_save_LIBS=$LIBS
 
25569
LIBS="-lpam  $LIBS"
 
25570
cat >conftest.$ac_ext <<_ACEOF
 
25571
/* confdefs.h.  */
 
25572
_ACEOF
 
25573
cat confdefs.h >>conftest.$ac_ext
 
25574
cat >>conftest.$ac_ext <<_ACEOF
 
25575
/* end confdefs.h.  */
 
25576
 
 
25577
/* Override any gcc2 internal prototype to avoid an error.  */
 
25578
#ifdef __cplusplus
 
25579
extern "C"
 
25580
#endif
 
25581
/* We use char because int might match the return type of a gcc2
 
25582
   builtin and then its argument prototype would still apply.  */
 
25583
char pam_set_item ();
 
25584
int
 
25585
main ()
 
25586
{
 
25587
pam_set_item ();
 
25588
  ;
 
25589
  return 0;
 
25590
}
 
25591
_ACEOF
 
25592
rm -f conftest.$ac_objext conftest$ac_exeext
 
25593
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25594
  (eval $ac_link) 2>conftest.er1
 
25595
  ac_status=$?
 
25596
  grep -v '^ *+' conftest.er1 >conftest.err
 
25597
  rm -f conftest.er1
 
25598
  cat conftest.err >&5
 
25599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25600
  (exit $ac_status); } &&
 
25601
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25602
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25603
  (eval $ac_try) 2>&5
 
25604
  ac_status=$?
 
25605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25606
  (exit $ac_status); }; } &&
 
25607
         { ac_try='test -s conftest$ac_exeext'
 
25608
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25609
  (eval $ac_try) 2>&5
 
25610
  ac_status=$?
 
25611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25612
  (exit $ac_status); }; }; then
 
25613
  ac_cv_lib_pam_pam_set_item=yes
 
25614
else
 
25615
  echo "$as_me: failed program was:" >&5
 
25616
sed 's/^/| /' conftest.$ac_ext >&5
 
25617
 
 
25618
ac_cv_lib_pam_pam_set_item=no
 
25619
fi
 
25620
rm -f conftest.err conftest.$ac_objext \
 
25621
      conftest$ac_exeext conftest.$ac_ext
 
25622
LIBS=$ac_check_lib_save_LIBS
 
25623
fi
 
25624
echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
 
25625
echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6
 
25626
if test $ac_cv_lib_pam_pam_set_item = yes; then
 
25627
 
 
25628
                                PAM_CFLAGS="-I$PAMDIR/include"
 
25629
                                PAM_LIBS="-L$PAMDIR/lib -lpam"
 
25630
                                pam_found="yes"
 
25631
 
 
25632
fi
 
25633
 
 
25634
 
 
25635
fi
 
25636
 
 
25637
 
 
25638
        else
 
25639
                echo "$as_me:$LINENO: result: no" >&5
 
25640
echo "${ECHO_T}no" >&6
 
25641
        fi
 
25642
 
 
25643
        if test "x$pam_found" = "xno"; then
 
25644
                if test "x$require_pam" = "xyes"; then
 
25645
                        { { echo "$as_me:$LINENO: error: PAM support missing" >&5
 
25646
echo "$as_me: error: PAM support missing" >&2;}
 
25647
   { (exit 1); exit 1; }; }
 
25648
                fi
 
25649
                :
 
25650
        else
 
25651
 
 
25652
        PAPD_LIBS="$PAPD_LIBS $PAM_LIBS"
 
25653
        AFPD_LIBS="$AFPD_LIBS $PAM_LIBS"
 
25654
        use_pam_so=yes
 
25655
        compile_pam=yes
 
25656
        cat >>confdefs.h <<\_ACEOF
 
25657
#define USE_PAM 1
 
25658
_ACEOF
 
25659
 
 
25660
 
 
25661
        fi
 
25662
 
 
25663
 
 
25664
 
 
25665
 
 
25666
 
 
25667
 
 
25668
echo "$as_me:$LINENO: checking whether shadow support should be enabled" >&5
 
25669
echo $ECHO_N "checking whether shadow support should be enabled... $ECHO_C" >&6
 
25670
 
 
25671
# Check whether --with-shadow or --without-shadow was given.
 
25672
if test "${with_shadow+set}" = set; then
 
25673
  withval="$with_shadow"
 
25674
  shadowpw="$withval"
 
25675
else
 
25676
  shadowpw=no
 
25677
 
 
25678
fi;
 
25679
if test "x$shadowpw" = "xyes"; then
 
25680
        cat >>confdefs.h <<\_ACEOF
 
25681
#define SHADOWPW 1
 
25682
_ACEOF
 
25683
 
 
25684
fi
 
25685
echo "$as_me:$LINENO: result: $shadowpw" >&5
 
25686
echo "${ECHO_T}$shadowpw" >&6
 
25687
 
 
25688
# Check whether --enable-shell-check or --disable-shell-check was given.
 
25689
if test "${enable_shell_check+set}" = set; then
 
25690
  enableval="$enable_shell_check"
 
25691
  if test "$enableval" = "no"; then
 
25692
                cat >>confdefs.h <<\_ACEOF
 
25693
#define DISABLE_SHELLCHECK 1
 
25694
_ACEOF
 
25695
 
 
25696
                echo "$as_me:$LINENO: result: disabling valid shell check" >&5
 
25697
echo "${ECHO_T}disabling valid shell check" >&6
 
25698
        fi
 
25699
 
 
25700
fi;
 
25701
 
 
25702
 
 
25703
# Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
 
25704
if test "${with_tcp_wrappers+set}" = set; then
 
25705
  withval="$with_tcp_wrappers"
 
25706
  echo "$as_me:$LINENO: checking for tcpd_warn in -lwrap" >&5
 
25707
echo $ECHO_N "checking for tcpd_warn in -lwrap... $ECHO_C" >&6
 
25708
if test "${ac_cv_lib_wrap_tcpd_warn+set}" = set; then
 
25709
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25710
else
 
25711
  ac_check_lib_save_LIBS=$LIBS
 
25712
LIBS="-lwrap  $LIBS"
 
25713
cat >conftest.$ac_ext <<_ACEOF
 
25714
/* confdefs.h.  */
 
25715
_ACEOF
 
25716
cat confdefs.h >>conftest.$ac_ext
 
25717
cat >>conftest.$ac_ext <<_ACEOF
 
25718
/* end confdefs.h.  */
 
25719
 
 
25720
/* Override any gcc2 internal prototype to avoid an error.  */
 
25721
#ifdef __cplusplus
 
25722
extern "C"
 
25723
#endif
 
25724
/* We use char because int might match the return type of a gcc2
 
25725
   builtin and then its argument prototype would still apply.  */
 
25726
char tcpd_warn ();
 
25727
int
 
25728
main ()
 
25729
{
 
25730
tcpd_warn ();
 
25731
  ;
 
25732
  return 0;
 
25733
}
 
25734
_ACEOF
 
25735
rm -f conftest.$ac_objext conftest$ac_exeext
 
25736
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25737
  (eval $ac_link) 2>conftest.er1
 
25738
  ac_status=$?
 
25739
  grep -v '^ *+' conftest.er1 >conftest.err
 
25740
  rm -f conftest.er1
 
25741
  cat conftest.err >&5
 
25742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25743
  (exit $ac_status); } &&
 
25744
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25745
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25746
  (eval $ac_try) 2>&5
 
25747
  ac_status=$?
 
25748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25749
  (exit $ac_status); }; } &&
 
25750
         { ac_try='test -s conftest$ac_exeext'
 
25751
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25752
  (eval $ac_try) 2>&5
 
25753
  ac_status=$?
 
25754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25755
  (exit $ac_status); }; }; then
 
25756
  ac_cv_lib_wrap_tcpd_warn=yes
 
25757
else
 
25758
  echo "$as_me: failed program was:" >&5
 
25759
sed 's/^/| /' conftest.$ac_ext >&5
 
25760
 
 
25761
ac_cv_lib_wrap_tcpd_warn=no
 
25762
fi
 
25763
rm -f conftest.err conftest.$ac_objext \
 
25764
      conftest$ac_exeext conftest.$ac_ext
 
25765
LIBS=$ac_check_lib_save_LIBS
 
25766
fi
 
25767
echo "$as_me:$LINENO: result: $ac_cv_lib_wrap_tcpd_warn" >&5
 
25768
echo "${ECHO_T}$ac_cv_lib_wrap_tcpd_warn" >&6
 
25769
if test $ac_cv_lib_wrap_tcpd_warn = yes; then
 
25770
  cat >>confdefs.h <<\_ACEOF
 
25771
#define TCPWRAP 1
 
25772
_ACEOF
 
25773
 
 
25774
                AFPD_LIBS="$AFPD_LIBS -lwrap"
 
25775
                echo "$as_me:$LINENO: result: enabling TCP wrappers support" >&5
 
25776
echo "${ECHO_T}enabling TCP wrappers support" >&6
 
25777
 
 
25778
fi
 
25779
 
 
25780
 
 
25781
fi;
 
25782
 
 
25783
# Check whether --enable-redhat or --disable-redhat was given.
 
25784
if test "${enable_redhat+set}" = set; then
 
25785
  enableval="$enable_redhat"
 
25786
  if test "$enableval" = "yes"; then
 
25787
                sysv_style=redhat
 
25788
        fi
 
25789
        echo "$as_me:$LINENO: result: enabling redhat-style sysv support" >&5
 
25790
echo "${ECHO_T}enabling redhat-style sysv support" >&6
 
25791
 
 
25792
fi;
 
25793
 
 
25794
# Check whether --enable-suse or --disable-suse was given.
 
25795
if test "${enable_suse+set}" = set; then
 
25796
  enableval="$enable_suse"
 
25797
  if test "$enableval" = "yes"; then
 
25798
                sysv_style=suse
 
25799
        fi
 
25800
        echo "$as_me:$LINENO: result: enabling suse-style sysv support" >&5
 
25801
echo "${ECHO_T}enabling suse-style sysv support" >&6
 
25802
 
 
25803
fi;
 
25804
 
 
25805
# Check whether --enable-cobalt or --disable-cobalt was given.
 
25806
if test "${enable_cobalt+set}" = set; then
 
25807
  enableval="$enable_cobalt"
 
25808
  if test "$enableval" = "yes"; then
 
25809
                sysv_style=cobalt
 
25810
        fi
 
25811
        echo "$as_me:$LINENO: result: enabling cobalt-style sysv support" >&5
 
25812
echo "${ECHO_T}enabling cobalt-style sysv support" >&6
 
25813
 
 
25814
fi;
 
25815
 
 
25816
# Check whether --enable-netbsd or --disable-netbsd was given.
 
25817
if test "${enable_netbsd+set}" = set; then
 
25818
  enableval="$enable_netbsd"
 
25819
  if test "x$enableval" = "xyes"; then
 
25820
                sysv_style=netbsd
 
25821
        fi
 
25822
        echo "$as_me:$LINENO: result: enabling NetBSD-style rc.d support" >&5
 
25823
echo "${ECHO_T}enabling NetBSD-style rc.d support" >&6
 
25824
 
 
25825
fi;
 
25826
 
 
25827
echo "$as_me:$LINENO: checking whether timelord should be compiled" >&5
 
25828
echo $ECHO_N "checking whether timelord should be compiled... $ECHO_C" >&6
 
25829
compile_timelord=no
 
25830
# Check whether --enable-timelord or --disable-timelord was given.
 
25831
if test "${enable_timelord+set}" = set; then
 
25832
  enableval="$enable_timelord"
 
25833
  compile_timelord="$enableval"
 
25834
else
 
25835
  compile_timelord="no"
 
25836
 
 
25837
fi;
 
25838
echo "$as_me:$LINENO: result: $compile_timelord" >&5
 
25839
echo "${ECHO_T}$compile_timelord" >&6
 
25840
 
 
25841
 
 
25842
# Check whether --with-uams-path or --without-uams-path was given.
 
25843
if test "${with_uams_path+set}" = set; then
 
25844
  withval="$with_uams_path"
 
25845
  uams_path="$withval"
 
25846
else
 
25847
  uams_path="${PKGCONFDIR}/uams"
 
25848
 
 
25849
fi;
 
25850
 
 
25851
 
 
25852
# Check whether --enable-fhs or --disable-fhs was given.
 
25853
if test "${enable_fhs+set}" = set; then
 
25854
  enableval="$enable_fhs"
 
25855
  if test "$enableval" = "yes"; then
 
25856
                uams_path="${libdir}/netatalk"
 
25857
                sysconfdir="/etc"
 
25858
                PKGCONFDIR=${sysconfdir}/netatalk
 
25859
                SERVERTEXT="${PKGCONFDIR}/msg"
 
25860
                NLSDIR="${PKGCONFDIR}/nls"
 
25861
                use_pam_so=yes
 
25862
                mandir="/usr/share/man"
 
25863
                cat >>confdefs.h <<\_ACEOF
 
25864
#define FHS_COMPATIBILITY 1
 
25865
_ACEOF
 
25866
 
 
25867
        fi
 
25868
        echo "$as_me:$LINENO: result: enabling Filesystem Hierarchy Standard (FHS) compatibility" >&5
 
25869
echo "${ECHO_T}enabling Filesystem Hierarchy Standard (FHS) compatibility" >&6
 
25870
 
 
25871
fi;
 
25872
 
 
25873
 
 
25874
 
 
25875
cat >>confdefs.h <<_ACEOF
 
25876
#define UAMS_PATH "${uams_path}"
 
25877
_ACEOF
 
25878
 
 
25879
UAMS_PATH="${uams_path}"
 
25880
 
 
25881
 
 
25882
 
 
25883
LIBS="$LIBS -L\$(top_srcdir)/libatalk"
 
25884
CFLAGS="-I\$(top_srcdir)/include $CFLAGS -I\$(top_srcdir)/sys"
 
25885
 
 
25886
 
 
25887
 
 
25888
case "$host_os" in
 
25889
        *aix*)                          this_os=aix ;;
 
25890
        *freebsd*)                      this_os=freebsd ;;
 
25891
        *hpux11*)                       this_os=hpux11 ;;
 
25892
        *irix*)                         this_os=irix ;;
 
25893
        *linux*)                        this_os=linux ;;
 
25894
        *osx*)                          this_os=macosx ;;
 
25895
        *darwin*)                       this_os=macosx ;;
 
25896
        *netbsd*)                       this_os=netbsd ;;
 
25897
        *openbsd*)                      this_os=openbsd ;;
 
25898
        *osf*)                          this_os=tru64 ;;
 
25899
        *solaris*)                      this_os=solaris ;;
 
25900
esac
 
25901
 
 
25902
case "$host_cpu" in
 
25903
        i386|i486|i586|i686|k7)         this_cpu=x86 ;;
 
25904
        alpha)                                          this_cpu=alpha ;;
 
25905
        mips)                                           this_cpu=mips ;;
 
25906
        powerpc|ppc)                            this_cpu=ppc ;;
 
25907
esac
 
25908
 
 
25909
 
 
25910
if test x"$this_os" = "xaix"; then
 
25911
        echo "$as_me:$LINENO: result:  * AIX specific configuration" >&5
 
25912
echo "${ECHO_T} * AIX specific configuration" >&6
 
25913
        cat >>confdefs.h <<\_ACEOF
 
25914
#define NO_STRUCT_TM_GMTOFF 1
 
25915
_ACEOF
 
25916
 
 
25917
 
 
25918
                                cat >>confdefs.h <<\_ACEOF
 
25919
#define HAVE_32BIT_LONGS 1
 
25920
_ACEOF
 
25921
 
 
25922
fi
 
25923
 
 
25924
if test x"$this_os" = "xfreebsd"; then
 
25925
        echo "$as_me:$LINENO: result:  * FreeBSD specific configuration" >&5
 
25926
echo "${ECHO_T} * FreeBSD specific configuration" >&6
 
25927
        cat >>confdefs.h <<\_ACEOF
 
25928
#define BSD4_4 1
 
25929
_ACEOF
 
25930
 
 
25931
        cat >>confdefs.h <<\_ACEOF
 
25932
#define SENDFILE_FLAVOR_BSD 1
 
25933
_ACEOF
 
25934
 
 
25935
 
 
25936
        cat >>confdefs.h <<\_ACEOF
 
25937
#define NO_CRYPT_H 1
 
25938
_ACEOF
 
25939
 
 
25940
fi
 
25941
 
 
25942
if test x"$this_os" = "xhpux11"; then
 
25943
        echo "$as_me:$LINENO: result:  * HP-UX 11 specific configuration" >&5
 
25944
echo "${ECHO_T} * HP-UX 11 specific configuration" >&6
 
25945
 
 
25946
        cat >>confdefs.h <<\_ACEOF
 
25947
#define _ISOC9X_SOURCE 1
 
25948
_ACEOF
 
25949
 
 
25950
        cat >>confdefs.h <<\_ACEOF
 
25951
#define NO_STRUCT_TM_GMTOFF 1
 
25952
_ACEOF
 
25953
 
 
25954
fi
 
25955
 
 
25956
if test x"$this_os" = "xirix"; then
 
25957
        echo "$as_me:$LINENO: result:  * IRIX specific configuration" >&5
 
25958
echo "${ECHO_T} * IRIX specific configuration" >&6
 
25959
 
 
25960
        cat >>confdefs.h <<\_ACEOF
 
25961
#define NO_STRUCT_TM_GMTOFF 1
 
25962
_ACEOF
 
25963
 
 
25964
fi
 
25965
 
 
25966
ac_have_atalk_addr=no
 
25967
if test x"$this_os" = "xlinux"; then
 
25968
        echo "$as_me:$LINENO: result:  * Linux specific configuration" >&5
 
25969
echo "${ECHO_T} * Linux specific configuration" >&6
 
25970
 
 
25971
                echo "$as_me:$LINENO: checking for struct atalk_addr" >&5
 
25972
echo $ECHO_N "checking for struct atalk_addr... $ECHO_C" >&6
 
25973
        cat >conftest.$ac_ext <<_ACEOF
 
25974
 
 
25975
#include <sys/socket.h>
 
25976
#include <asm/types.h>
 
25977
#include <linux/atalk.h>
 
25978
 
 
25979
int main() {
 
25980
        struct atalk_addr foo;
 
25981
 
 
25982
        return 0;
 
25983
}
 
25984
 
 
25985
_ACEOF
 
25986
rm -f conftest.$ac_objext
 
25987
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25988
  (eval $ac_compile) 2>conftest.er1
 
25989
  ac_status=$?
 
25990
  grep -v '^ *+' conftest.er1 >conftest.err
 
25991
  rm -f conftest.er1
 
25992
  cat conftest.err >&5
 
25993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25994
  (exit $ac_status); } &&
 
25995
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
25996
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25997
  (eval $ac_try) 2>&5
 
25998
  ac_status=$?
 
25999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26000
  (exit $ac_status); }; } &&
 
26001
         { ac_try='test -s conftest.$ac_objext'
 
26002
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26003
  (eval $ac_try) 2>&5
 
26004
  ac_status=$?
 
26005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26006
  (exit $ac_status); }; }; then
 
26007
 
 
26008
                ac_have_atalk_addr=yes
 
26009
                echo "$as_me:$LINENO: result: yes" >&5
 
26010
echo "${ECHO_T}yes" >&6
 
26011
 
 
26012
else
 
26013
  echo "$as_me: failed program was:" >&5
 
26014
sed 's/^/| /' conftest.$ac_ext >&5
 
26015
 
 
26016
 
 
26017
                echo "$as_me:$LINENO: result: no" >&5
 
26018
echo "${ECHO_T}no" >&6
 
26019
 
 
26020
fi
 
26021
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26022
 
 
26023
if test "x$ac_have_atalk_addr" = "xyes"; then
 
26024
 
 
26025
cat >>confdefs.h <<\_ACEOF
 
26026
#define HAVE_ATALK_ADDR 1
 
26027
_ACEOF
 
26028
 
 
26029
fi
 
26030
 
 
26031
 
 
26032
 
 
26033
for ac_header in sys/quota.h linux/quota.h
 
26034
do
 
26035
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
26036
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26037
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
26038
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
26039
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26040
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26041
fi
 
26042
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
26043
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
26044
else
 
26045
  # Is the header compilable?
 
26046
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
26047
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
26048
cat >conftest.$ac_ext <<_ACEOF
 
26049
/* confdefs.h.  */
 
26050
_ACEOF
 
26051
cat confdefs.h >>conftest.$ac_ext
 
26052
cat >>conftest.$ac_ext <<_ACEOF
 
26053
/* end confdefs.h.  */
 
26054
$ac_includes_default
 
26055
#include <$ac_header>
 
26056
_ACEOF
 
26057
rm -f conftest.$ac_objext
 
26058
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26059
  (eval $ac_compile) 2>conftest.er1
 
26060
  ac_status=$?
 
26061
  grep -v '^ *+' conftest.er1 >conftest.err
 
26062
  rm -f conftest.er1
 
26063
  cat conftest.err >&5
 
26064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26065
  (exit $ac_status); } &&
 
26066
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26067
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26068
  (eval $ac_try) 2>&5
 
26069
  ac_status=$?
 
26070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26071
  (exit $ac_status); }; } &&
 
26072
         { ac_try='test -s conftest.$ac_objext'
 
26073
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26074
  (eval $ac_try) 2>&5
 
26075
  ac_status=$?
 
26076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26077
  (exit $ac_status); }; }; then
 
26078
  ac_header_compiler=yes
 
26079
else
 
26080
  echo "$as_me: failed program was:" >&5
 
26081
sed 's/^/| /' conftest.$ac_ext >&5
 
26082
 
 
26083
ac_header_compiler=no
 
26084
fi
 
26085
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26086
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
26087
echo "${ECHO_T}$ac_header_compiler" >&6
 
26088
 
 
26089
# Is the header present?
 
26090
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
26091
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
26092
cat >conftest.$ac_ext <<_ACEOF
 
26093
/* confdefs.h.  */
 
26094
_ACEOF
 
26095
cat confdefs.h >>conftest.$ac_ext
 
26096
cat >>conftest.$ac_ext <<_ACEOF
 
26097
/* end confdefs.h.  */
 
26098
#include <$ac_header>
 
26099
_ACEOF
 
26100
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
26101
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
26102
  ac_status=$?
 
26103
  grep -v '^ *+' conftest.er1 >conftest.err
 
26104
  rm -f conftest.er1
 
26105
  cat conftest.err >&5
 
26106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26107
  (exit $ac_status); } >/dev/null; then
 
26108
  if test -s conftest.err; then
 
26109
    ac_cpp_err=$ac_c_preproc_warn_flag
 
26110
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
26111
  else
 
26112
    ac_cpp_err=
 
26113
  fi
 
26114
else
 
26115
  ac_cpp_err=yes
 
26116
fi
 
26117
if test -z "$ac_cpp_err"; then
 
26118
  ac_header_preproc=yes
 
26119
else
 
26120
  echo "$as_me: failed program was:" >&5
 
26121
sed 's/^/| /' conftest.$ac_ext >&5
 
26122
 
 
26123
  ac_header_preproc=no
 
26124
fi
 
26125
rm -f conftest.err conftest.$ac_ext
 
26126
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
26127
echo "${ECHO_T}$ac_header_preproc" >&6
 
26128
 
 
26129
# So?  What about this header?
 
26130
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
26131
  yes:no: )
 
26132
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
26133
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
26134
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
26135
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
26136
    ac_header_preproc=yes
 
26137
    ;;
 
26138
  no:yes:* )
 
26139
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
26140
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
26141
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
26142
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
26143
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
26144
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
26145
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
26146
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
26147
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
26148
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
26149
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
26150
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
26151
    (
 
26152
      cat <<\_ASBOX
 
26153
## ------------------------------------------ ##
 
26154
## Report this to the AC_PACKAGE_NAME lists.  ##
 
26155
## ------------------------------------------ ##
 
26156
_ASBOX
 
26157
    ) |
 
26158
      sed "s/^/$as_me: WARNING:     /" >&2
 
26159
    ;;
 
26160
esac
 
26161
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
26162
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
26163
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
26164
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26165
else
 
26166
  eval "$as_ac_Header=\$ac_header_preproc"
 
26167
fi
 
26168
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
26169
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
26170
 
 
26171
fi
 
26172
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
26173
  cat >>confdefs.h <<_ACEOF
 
26174
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
26175
_ACEOF
 
26176
 
 
26177
fi
 
26178
 
 
26179
done
 
26180
 
 
26181
        echo "$as_me:$LINENO: checking for quotactl" >&5
 
26182
echo $ECHO_N "checking for quotactl... $ECHO_C" >&6
 
26183
if test "${ac_cv_func_quotactl+set}" = set; then
 
26184
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26185
else
 
26186
  cat >conftest.$ac_ext <<_ACEOF
 
26187
/* confdefs.h.  */
 
26188
_ACEOF
 
26189
cat confdefs.h >>conftest.$ac_ext
 
26190
cat >>conftest.$ac_ext <<_ACEOF
 
26191
/* end confdefs.h.  */
 
26192
/* Define quotactl to an innocuous variant, in case <limits.h> declares quotactl.
 
26193
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
26194
#define quotactl innocuous_quotactl
 
26195
 
 
26196
/* System header to define __stub macros and hopefully few prototypes,
 
26197
    which can conflict with char quotactl (); below.
 
26198
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
26199
    <limits.h> exists even on freestanding compilers.  */
 
26200
 
 
26201
#ifdef __STDC__
 
26202
# include <limits.h>
 
26203
#else
 
26204
# include <assert.h>
 
26205
#endif
 
26206
 
 
26207
#undef quotactl
 
26208
 
 
26209
/* Override any gcc2 internal prototype to avoid an error.  */
 
26210
#ifdef __cplusplus
 
26211
extern "C"
 
26212
{
 
26213
#endif
 
26214
/* We use char because int might match the return type of a gcc2
 
26215
   builtin and then its argument prototype would still apply.  */
 
26216
char quotactl ();
 
26217
/* The GNU C library defines this for functions which it implements
 
26218
    to always fail with ENOSYS.  Some functions are actually named
 
26219
    something starting with __ and the normal name is an alias.  */
 
26220
#if defined (__stub_quotactl) || defined (__stub___quotactl)
 
26221
choke me
 
26222
#else
 
26223
char (*f) () = quotactl;
 
26224
#endif
 
26225
#ifdef __cplusplus
 
26226
}
 
26227
#endif
 
26228
 
 
26229
int
 
26230
main ()
 
26231
{
 
26232
return f != quotactl;
 
26233
  ;
 
26234
  return 0;
 
26235
}
 
26236
_ACEOF
 
26237
rm -f conftest.$ac_objext conftest$ac_exeext
 
26238
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26239
  (eval $ac_link) 2>conftest.er1
 
26240
  ac_status=$?
 
26241
  grep -v '^ *+' conftest.er1 >conftest.err
 
26242
  rm -f conftest.er1
 
26243
  cat conftest.err >&5
 
26244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26245
  (exit $ac_status); } &&
 
26246
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26247
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26248
  (eval $ac_try) 2>&5
 
26249
  ac_status=$?
 
26250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26251
  (exit $ac_status); }; } &&
 
26252
         { ac_try='test -s conftest$ac_exeext'
 
26253
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26254
  (eval $ac_try) 2>&5
 
26255
  ac_status=$?
 
26256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26257
  (exit $ac_status); }; }; then
 
26258
  ac_cv_func_quotactl=yes
 
26259
else
 
26260
  echo "$as_me: failed program was:" >&5
 
26261
sed 's/^/| /' conftest.$ac_ext >&5
 
26262
 
 
26263
ac_cv_func_quotactl=no
 
26264
fi
 
26265
rm -f conftest.err conftest.$ac_objext \
 
26266
      conftest$ac_exeext conftest.$ac_ext
 
26267
fi
 
26268
echo "$as_me:$LINENO: result: $ac_cv_func_quotactl" >&5
 
26269
echo "${ECHO_T}$ac_cv_func_quotactl" >&6
 
26270
if test $ac_cv_func_quotactl = yes; then
 
26271
  :
 
26272
else
 
26273
  cat >>confdefs.h <<\_ACEOF
 
26274
#define NEED_QUOTACTL_WRAPPER 1
 
26275
_ACEOF
 
26276
 
 
26277
                echo "$as_me:$LINENO: result: enabling quotactl wrapper" >&5
 
26278
echo "${ECHO_T}enabling quotactl wrapper" >&6
 
26279
 
 
26280
fi
 
26281
 
 
26282
 
 
26283
                                cat >>confdefs.h <<\_ACEOF
 
26284
#define HAVE_BROKEN_DBTOB 1
 
26285
_ACEOF
 
26286
 
 
26287
 
 
26288
 
 
26289
        majorvers="`uname -r | sed 's/\([0-9]\)..*/\1/'`"
 
26290
        minorvers="`uname -r | sed 's/[0-9]\.\([0-9]\)\..*/\1/'`"
 
26291
        if [ $majorvers -ge 2 ]; then
 
26292
                if [ $minorvers -ge 2 ]; then
 
26293
 
 
26294
                        echo "$as_me:$LINENO: result:  * found Linux 2.2.x or higher" >&5
 
26295
echo "${ECHO_T} * found Linux 2.2.x or higher" >&6
 
26296
                        cat >>confdefs.h <<\_ACEOF
 
26297
#define SENDFILE_FLAVOR_LINUX 1
 
26298
_ACEOF
 
26299
 
 
26300
                else
 
26301
                        echo "$as_me:$LINENO: result:  * found Linux 2.0.x " >&5
 
26302
echo "${ECHO_T} * found Linux 2.0.x " >&6
 
26303
                fi
 
26304
        fi
 
26305
 
 
26306
                if test x"$this_cpu" = "xalpha"; then
 
26307
                echo "$as_me:$LINENO: result: enabling gcc memcpy bug workaround" >&5
 
26308
echo "${ECHO_T}enabling gcc memcpy bug workaround" >&6
 
26309
                cat >>confdefs.h <<\_ACEOF
 
26310
#define HAVE_GCC_MEMCPY_BUG 1
 
26311
_ACEOF
 
26312
 
 
26313
        fi
 
26314
        need_dash_r=no
 
26315
fi
 
26316
 
 
26317
if test x"$this_os" = "xmacosx"; then
 
26318
        echo "$as_me:$LINENO: result:  * Mac OSX specific configuration" >&5
 
26319
echo "${ECHO_T} * Mac OSX specific configuration" >&6
 
26320
        cat >>confdefs.h <<\_ACEOF
 
26321
#define BSD4_4 1
 
26322
_ACEOF
 
26323
 
 
26324
        cat >>confdefs.h <<\_ACEOF
 
26325
#define HAVE_BROKEN_CPP 1
 
26326
_ACEOF
 
26327
 
 
26328
        cat >>confdefs.h <<\_ACEOF
 
26329
#define HAVE_2ARG_DBTOB 1
 
26330
_ACEOF
 
26331
 
 
26332
                cat >>confdefs.h <<\_ACEOF
 
26333
#define MACOSX_SERVER 1
 
26334
_ACEOF
 
26335
 
 
26336
fi
 
26337
 
 
26338
if test x"$this_os" = "xnetbsd"; then
 
26339
        echo "$as_me:$LINENO: result:  * NetBSD specific configuration" >&5
 
26340
echo "${ECHO_T} * NetBSD specific configuration" >&6
 
26341
        cat >>confdefs.h <<\_ACEOF
 
26342
#define BSD4_4 1
 
26343
_ACEOF
 
26344
 
 
26345
        if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
26346
                # NetBSD ELF machines don't have to have DLSYM_PREPEND_UNDERSCORE.
 
26347
                # If this test is true, it's not an ELF box.
 
26348
                # This REALLY should be a configure test.
 
26349
                cat >>confdefs.h <<\_ACEOF
 
26350
#define DLSYM_PREPEND_UNDERSCORE 1
 
26351
_ACEOF
 
26352
 
 
26353
        fi
 
26354
        CFLAGS="-I\$(top_srcdir)/sys/netbsd -I/usr/include/kerberosIV $CFLAGS"
 
26355
        need_dash_r=yes
 
26356
 
 
26357
                cat >>confdefs.h <<\_ACEOF
 
26358
#define UAM_DHX 1
 
26359
_ACEOF
 
26360
 
 
26361
        cat >>confdefs.h <<\_ACEOF
 
26362
#define NO_CRYPT_H 1
 
26363
_ACEOF
 
26364
 
 
26365
fi
 
26366
 
 
26367
if test x"$this_os" = "xopenbsd"; then
 
26368
        echo "$as_me:$LINENO: result:  * OpenBSD specific configuration" >&5
 
26369
echo "${ECHO_T} * OpenBSD specific configuration" >&6
 
26370
        cat >>confdefs.h <<\_ACEOF
 
26371
#define BSD4_4 1
 
26372
_ACEOF
 
26373
 
 
26374
        cat >>confdefs.h <<\_ACEOF
 
26375
#define DLSYM_PREPEND_UNDERSCORE 1
 
26376
_ACEOF
 
26377
 
 
26378
 
 
26379
                cat >>confdefs.h <<\_ACEOF
 
26380
#define UAM_DHX 1
 
26381
_ACEOF
 
26382
 
 
26383
        cat >>confdefs.h <<\_ACEOF
 
26384
#define NO_CRYPT_H 1
 
26385
_ACEOF
 
26386
 
 
26387
fi
 
26388
 
 
26389
if test x"$this_os" = "xsolaris"; then
 
26390
        echo "$as_me:$LINENO: result:  * Solaris specific configuration" >&5
 
26391
echo "${ECHO_T} * Solaris specific configuration" >&6
 
26392
        cat >>confdefs.h <<\_ACEOF
 
26393
#define __svr4__ 1
 
26394
_ACEOF
 
26395
 
 
26396
        cat >>confdefs.h <<\_ACEOF
 
26397
#define _ISOC9X_SOURCE 1
 
26398
_ACEOF
 
26399
 
 
26400
        cat >>confdefs.h <<\_ACEOF
 
26401
#define NO_STRUCT_TM_GMTOFF 1
 
26402
_ACEOF
 
26403
 
 
26404
        cat >>confdefs.h <<\_ACEOF
 
26405
#define SOLARIS 1
 
26406
_ACEOF
 
26407
 
 
26408
        CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
 
26409
        need_dash_r=yes
 
26410
 
 
26411
        echo "$as_me:$LINENO: result: enabling Solaris kernel module build" >&5
 
26412
echo "${ECHO_T}enabling Solaris kernel module build" >&6
 
26413
        solaris_module=yes
 
26414
fi
 
26415
 
 
26416
if test x"$this_os" = "xtru64"; then
 
26417
        echo "$as_me:$LINENO: result:  * Tru64 specific configuration" >&5
 
26418
echo "${ECHO_T} * Tru64 specific configuration" >&6
 
26419
        cat >>confdefs.h <<\_ACEOF
 
26420
#define NO_DDP 1
 
26421
_ACEOF
 
26422
 
 
26423
        cat >>confdefs.h <<\_ACEOF
 
26424
#define HAVE_64BIT_LONGS 1
 
26425
_ACEOF
 
26426
 
 
26427
                cat >>confdefs.h <<\_ACEOF
 
26428
#define USE_OLD_RQUOTA 1
 
26429
_ACEOF
 
26430
 
 
26431
                cat >>confdefs.h <<\_ACEOF
 
26432
#define TRU64 1
 
26433
_ACEOF
 
26434
 
 
26435
 
 
26436
echo "$as_me:$LINENO: checking for set_auth_parameters in -lsecurity" >&5
 
26437
echo $ECHO_N "checking for set_auth_parameters in -lsecurity... $ECHO_C" >&6
 
26438
if test "${ac_cv_lib_security_set_auth_parameters+set}" = set; then
 
26439
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26440
else
 
26441
  ac_check_lib_save_LIBS=$LIBS
 
26442
LIBS="-lsecurity  $LIBS"
 
26443
cat >conftest.$ac_ext <<_ACEOF
 
26444
/* confdefs.h.  */
 
26445
_ACEOF
 
26446
cat confdefs.h >>conftest.$ac_ext
 
26447
cat >>conftest.$ac_ext <<_ACEOF
 
26448
/* end confdefs.h.  */
 
26449
 
 
26450
/* Override any gcc2 internal prototype to avoid an error.  */
 
26451
#ifdef __cplusplus
 
26452
extern "C"
 
26453
#endif
 
26454
/* We use char because int might match the return type of a gcc2
 
26455
   builtin and then its argument prototype would still apply.  */
 
26456
char set_auth_parameters ();
 
26457
int
 
26458
main ()
 
26459
{
 
26460
set_auth_parameters ();
 
26461
  ;
 
26462
  return 0;
 
26463
}
 
26464
_ACEOF
 
26465
rm -f conftest.$ac_objext conftest$ac_exeext
 
26466
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26467
  (eval $ac_link) 2>conftest.er1
 
26468
  ac_status=$?
 
26469
  grep -v '^ *+' conftest.er1 >conftest.err
 
26470
  rm -f conftest.er1
 
26471
  cat conftest.err >&5
 
26472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26473
  (exit $ac_status); } &&
 
26474
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26475
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26476
  (eval $ac_try) 2>&5
 
26477
  ac_status=$?
 
26478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26479
  (exit $ac_status); }; } &&
 
26480
         { ac_try='test -s conftest$ac_exeext'
 
26481
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26482
  (eval $ac_try) 2>&5
 
26483
  ac_status=$?
 
26484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26485
  (exit $ac_status); }; }; then
 
26486
  ac_cv_lib_security_set_auth_parameters=yes
 
26487
else
 
26488
  echo "$as_me: failed program was:" >&5
 
26489
sed 's/^/| /' conftest.$ac_ext >&5
 
26490
 
 
26491
ac_cv_lib_security_set_auth_parameters=no
 
26492
fi
 
26493
rm -f conftest.err conftest.$ac_objext \
 
26494
      conftest$ac_exeext conftest.$ac_ext
 
26495
LIBS=$ac_check_lib_save_LIBS
 
26496
fi
 
26497
echo "$as_me:$LINENO: result: $ac_cv_lib_security_set_auth_parameters" >&5
 
26498
echo "${ECHO_T}$ac_cv_lib_security_set_auth_parameters" >&6
 
26499
if test $ac_cv_lib_security_set_auth_parameters = yes; then
 
26500
  cat >>confdefs.h <<_ACEOF
 
26501
#define HAVE_LIBSECURITY 1
 
26502
_ACEOF
 
26503
 
 
26504
  LIBS="-lsecurity $LIBS"
 
26505
 
 
26506
fi
 
26507
 
 
26508
        CFLAGS="-I\$(top_srcdir)/sys/tru64 $CFLAGS"
 
26509
        need_dash_r=no
 
26510
        sysv_style=tru64
 
26511
fi
 
26512
 
 
26513
 
 
26514
 
 
26515
# Check whether --with-ssl-dir or --without-ssl-dir was given.
 
26516
if test "${with_ssl_dir+set}" = set; then
 
26517
  withval="$with_ssl_dir"
 
26518
 
 
26519
                        if test "x$withval" = "xno"; then
 
26520
                                tryssl=no
 
26521
                        elif test "x$withval" = "xyes"; then
 
26522
                                tryssl=yes
 
26523
                                tryssldir=
 
26524
                        else
 
26525
                                                                tryssl=yes
 
26526
                                tryssldir="$withval"
 
26527
                        fi
 
26528
 
 
26529
else
 
26530
  tryssl=yes
 
26531
 
 
26532
fi;
 
26533
 
 
26534
        SSL_CFLAGS=""
 
26535
        SSL_LIBS=""
 
26536
        compile_ssl=no
 
26537
 
 
26538
        if test "$tryssl" = "yes"; then
 
26539
                echo "$as_me:$LINENO: checking for SSL" >&5
 
26540
echo $ECHO_N "checking for SSL... $ECHO_C" >&6
 
26541
                for ssldir in "" $tryssldir /usr /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl /usr/local/ssl ; do
 
26542
                        if test -f "$ssldir/include/openssl/cast.h" ; then
 
26543
                                SSL_CFLAGS="$SSL_CFLAGS -I$ssldir/include -I$ssldir/include/openssl"
 
26544
                                SSL_LIBS="$SSL_LIBS -L$ssldir/lib -L$ssldir -lcrypto"
 
26545
                                if test "x$need_dash_r" = "xyes"; then
 
26546
                                        SSL_LIBS="$SSL_LIBS -R$ssldir/lib -R$ssldir"
 
26547
                                fi
 
26548
                                echo "$as_me:$LINENO: result: $ssldir (enabling RANDNUM and DHX support)" >&5
 
26549
echo "${ECHO_T}$ssldir (enabling RANDNUM and DHX support)" >&6
 
26550
 
 
26551
 
 
26552
echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
 
26553
echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
 
26554
if test "${ac_cv_lib_crypto_main+set}" = set; then
 
26555
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26556
else
 
26557
  ac_check_lib_save_LIBS=$LIBS
 
26558
LIBS="-lcrypto  $LIBS"
 
26559
cat >conftest.$ac_ext <<_ACEOF
 
26560
/* confdefs.h.  */
 
26561
_ACEOF
 
26562
cat confdefs.h >>conftest.$ac_ext
 
26563
cat >>conftest.$ac_ext <<_ACEOF
 
26564
/* end confdefs.h.  */
 
26565
 
 
26566
 
 
26567
int
 
26568
main ()
 
26569
{
 
26570
main ();
 
26571
  ;
 
26572
  return 0;
 
26573
}
 
26574
_ACEOF
 
26575
rm -f conftest.$ac_objext conftest$ac_exeext
 
26576
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26577
  (eval $ac_link) 2>conftest.er1
 
26578
  ac_status=$?
 
26579
  grep -v '^ *+' conftest.er1 >conftest.err
 
26580
  rm -f conftest.er1
 
26581
  cat conftest.err >&5
 
26582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26583
  (exit $ac_status); } &&
 
26584
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26585
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26586
  (eval $ac_try) 2>&5
 
26587
  ac_status=$?
 
26588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26589
  (exit $ac_status); }; } &&
 
26590
         { ac_try='test -s conftest$ac_exeext'
 
26591
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26592
  (eval $ac_try) 2>&5
 
26593
  ac_status=$?
 
26594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26595
  (exit $ac_status); }; }; then
 
26596
  ac_cv_lib_crypto_main=yes
 
26597
else
 
26598
  echo "$as_me: failed program was:" >&5
 
26599
sed 's/^/| /' conftest.$ac_ext >&5
 
26600
 
 
26601
ac_cv_lib_crypto_main=no
 
26602
fi
 
26603
rm -f conftest.err conftest.$ac_objext \
 
26604
      conftest$ac_exeext conftest.$ac_ext
 
26605
LIBS=$ac_check_lib_save_LIBS
 
26606
fi
 
26607
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
 
26608
echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
 
26609
if test $ac_cv_lib_crypto_main = yes; then
 
26610
  cat >>confdefs.h <<_ACEOF
 
26611
#define HAVE_LIBCRYPTO 1
 
26612
_ACEOF
 
26613
 
 
26614
  LIBS="-lcrypto $LIBS"
 
26615
 
 
26616
fi
 
26617
 
 
26618
 
 
26619
echo "$as_me:$LINENO: checking for main in -ldes" >&5
 
26620
echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
 
26621
if test "${ac_cv_lib_des_main+set}" = set; then
 
26622
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26623
else
 
26624
  ac_check_lib_save_LIBS=$LIBS
 
26625
LIBS="-ldes  $LIBS"
 
26626
cat >conftest.$ac_ext <<_ACEOF
 
26627
/* confdefs.h.  */
 
26628
_ACEOF
 
26629
cat confdefs.h >>conftest.$ac_ext
 
26630
cat >>conftest.$ac_ext <<_ACEOF
 
26631
/* end confdefs.h.  */
 
26632
 
 
26633
 
 
26634
int
 
26635
main ()
 
26636
{
 
26637
main ();
 
26638
  ;
 
26639
  return 0;
 
26640
}
 
26641
_ACEOF
 
26642
rm -f conftest.$ac_objext conftest$ac_exeext
 
26643
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26644
  (eval $ac_link) 2>conftest.er1
 
26645
  ac_status=$?
 
26646
  grep -v '^ *+' conftest.er1 >conftest.err
 
26647
  rm -f conftest.er1
 
26648
  cat conftest.err >&5
 
26649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26650
  (exit $ac_status); } &&
 
26651
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
26652
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26653
  (eval $ac_try) 2>&5
 
26654
  ac_status=$?
 
26655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26656
  (exit $ac_status); }; } &&
 
26657
         { ac_try='test -s conftest$ac_exeext'
 
26658
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26659
  (eval $ac_try) 2>&5
 
26660
  ac_status=$?
 
26661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26662
  (exit $ac_status); }; }; then
 
26663
  ac_cv_lib_des_main=yes
 
26664
else
 
26665
  echo "$as_me: failed program was:" >&5
 
26666
sed 's/^/| /' conftest.$ac_ext >&5
 
26667
 
 
26668
ac_cv_lib_des_main=no
 
26669
fi
 
26670
rm -f conftest.err conftest.$ac_objext \
 
26671
      conftest$ac_exeext conftest.$ac_ext
 
26672
LIBS=$ac_check_lib_save_LIBS
 
26673
fi
 
26674
echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
 
26675
echo "${ECHO_T}$ac_cv_lib_des_main" >&6
 
26676
if test $ac_cv_lib_des_main = yes; then
 
26677
  cat >>confdefs.h <<_ACEOF
 
26678
#define HAVE_LIBDES 1
 
26679
_ACEOF
 
26680
 
 
26681
  LIBS="-ldes $LIBS"
 
26682
 
 
26683
fi
 
26684
 
 
26685
 
 
26686
                                cat >>confdefs.h <<\_ACEOF
 
26687
#define OPENSSL_DHX 1
 
26688
_ACEOF
 
26689
 
 
26690
                                cat >>confdefs.h <<\_ACEOF
 
26691
#define UAM_DHX 1
 
26692
_ACEOF
 
26693
 
 
26694
                                compile_ssl=yes
 
26695
                                break
 
26696
                        fi
 
26697
                done
 
26698
                if test "x$compile_ssl" = "xno"; then
 
26699
                        echo "$as_me:$LINENO: result: no" >&5
 
26700
echo "${ECHO_T}no" >&6
 
26701
                fi
 
26702
        fi
 
26703
 
 
26704
 
 
26705
 
 
26706
 
 
26707
 
 
26708
# Check whether --enable-pgp-uam or --disable-pgp-uam was given.
 
26709
if test "${enable_pgp_uam+set}" = set; then
 
26710
  enableval="$enable_pgp_uam"
 
26711
  if test "$enableval" = "yes"; then
 
26712
                if test "$compile_ssl" = "yes"; then
 
26713
                        cat >>confdefs.h <<\_ACEOF
 
26714
#define UAM_PGP 1
 
26715
_ACEOF
 
26716
 
 
26717
                        compile_pgp=yes
 
26718
                        echo "$as_me:$LINENO: result: enabling build with PGP UAM module" >&5
 
26719
echo "${ECHO_T}enabling build with PGP UAM module" >&6
 
26720
                fi
 
26721
        fi
 
26722
 
 
26723
fi;
 
26724
 
 
26725
 
 
26726
# Check whether --enable-krb4-uam or --disable-krb4-uam was given.
 
26727
if test "${enable_krb4_uam+set}" = set; then
 
26728
  enableval="$enable_krb4_uam"
 
26729
  if test "$enableval" = "yes"; then
 
26730
                cat >>confdefs.h <<\_ACEOF
 
26731
#define UAM_KRB4 1
 
26732
_ACEOF
 
26733
 
 
26734
                compile_kerberos=yes
 
26735
                echo "$as_me:$LINENO: result: enabling build with Kerberos v4 UAM module" >&5
 
26736
echo "${ECHO_T}enabling build with Kerberos v4 UAM module" >&6
 
26737
        fi
 
26738
 
 
26739
fi;
 
26740
 
 
26741
echo "$as_me:$LINENO: checking whether configuration files should be overwritten" >&5
 
26742
echo $ECHO_N "checking whether configuration files should be overwritten... $ECHO_C" >&6
 
26743
# Check whether --enable-overwrite or --disable-overwrite was given.
 
26744
if test "${enable_overwrite+set}" = set; then
 
26745
  enableval="$enable_overwrite"
 
26746
  OVERWRITE_CONFIG="${enable_overwrite}"
 
26747
else
 
26748
  OVERWRITE_CONFIG="no"
 
26749
 
 
26750
fi;
 
26751
echo "$as_me:$LINENO: result: $OVERWRITE_CONFIG" >&5
 
26752
echo "${ECHO_T}$OVERWRITE_CONFIG" >&6
 
26753
 
 
26754
 
 
26755
 
 
26756
 
 
26757
 
 
26758
 
 
26759
 
 
26760
 
 
26761
 
 
26762
 
 
26763
if test x$solaris_module = xyes; then
 
26764
  SOLARIS_MODULE_TRUE=
 
26765
  SOLARIS_MODULE_FALSE='#'
 
26766
else
 
26767
  SOLARIS_MODULE_TRUE='#'
 
26768
  SOLARIS_MODULE_FALSE=
 
26769
fi
 
26770
 
 
26771
 
 
26772
 
 
26773
if test x$compile_timelord = xyes; then
 
26774
  COMPILE_TIMELORD_TRUE=
 
26775
  COMPILE_TIMELORD_FALSE='#'
 
26776
else
 
26777
  COMPILE_TIMELORD_TRUE='#'
 
26778
  COMPILE_TIMELORD_FALSE=
 
26779
fi
 
26780
 
 
26781
 
 
26782
 
 
26783
if test x$compile_ssl = xyes; then
 
26784
  USE_DHX_TRUE=
 
26785
  USE_DHX_FALSE='#'
 
26786
else
 
26787
  USE_DHX_TRUE='#'
 
26788
  USE_DHX_FALSE=
 
26789
fi
 
26790
 
 
26791
 
 
26792
 
 
26793
if test x$compile_kerberos = xyes; then
 
26794
  USE_KERBEROS_TRUE=
 
26795
  USE_KERBEROS_FALSE='#'
 
26796
else
 
26797
  USE_KERBEROS_TRUE='#'
 
26798
  USE_KERBEROS_FALSE=
 
26799
fi
 
26800
 
 
26801
 
 
26802
 
 
26803
if test x$use_pam_so = xyes; then
 
26804
  USE_PAM_SO_TRUE=
 
26805
  USE_PAM_SO_FALSE='#'
 
26806
else
 
26807
  USE_PAM_SO_TRUE='#'
 
26808
  USE_PAM_SO_FALSE=
 
26809
fi
 
26810
 
 
26811
 
 
26812
 
 
26813
if test x$compile_pam = xyes; then
 
26814
  USE_PAM_TRUE=
 
26815
  USE_PAM_FALSE='#'
 
26816
else
 
26817
  USE_PAM_TRUE='#'
 
26818
  USE_PAM_FALSE=
 
26819
fi
 
26820
 
 
26821
 
 
26822
 
 
26823
if test x$compile_pam = xyes; then
 
26824
  BUILD_PAM_TRUE=
 
26825
  BUILD_PAM_FALSE='#'
 
26826
else
 
26827
  BUILD_PAM_TRUE='#'
 
26828
  BUILD_PAM_FALSE=
 
26829
fi
 
26830
 
 
26831
 
 
26832
 
 
26833
if test x$compile_pgp = xyes; then
 
26834
  USE_PGP_TRUE=
 
26835
  USE_PGP_FALSE='#'
 
26836
else
 
26837
  USE_PGP_TRUE='#'
 
26838
  USE_PGP_FALSE=
 
26839
fi
 
26840
 
 
26841
 
 
26842
 
 
26843
if test x$sysv_style = xcobalt; then
 
26844
  USE_COBALT_TRUE=
 
26845
  USE_COBALT_FALSE='#'
 
26846
else
 
26847
  USE_COBALT_TRUE='#'
 
26848
  USE_COBALT_FALSE=
 
26849
fi
 
26850
 
 
26851
 
 
26852
 
 
26853
if test x$sysv_style = xnetbsd; then
 
26854
  USE_NETBSD_TRUE=
 
26855
  USE_NETBSD_FALSE='#'
 
26856
else
 
26857
  USE_NETBSD_TRUE='#'
 
26858
  USE_NETBSD_FALSE=
 
26859
fi
 
26860
 
 
26861
 
 
26862
 
 
26863
if test x$sysv_style = xredhat; then
 
26864
  USE_REDHAT_TRUE=
 
26865
  USE_REDHAT_FALSE='#'
 
26866
else
 
26867
  USE_REDHAT_TRUE='#'
 
26868
  USE_REDHAT_FALSE=
 
26869
fi
 
26870
 
 
26871
 
 
26872
 
 
26873
if test x$sysv_style = xsuse; then
 
26874
  USE_SUSE_TRUE=
 
26875
  USE_SUSE_FALSE='#'
 
26876
else
 
26877
  USE_SUSE_TRUE='#'
 
26878
  USE_SUSE_FALSE=
 
26879
fi
 
26880
 
 
26881
 
 
26882
 
 
26883
if test x$shadowpw = xyes; then
 
26884
  USE_SHADOWPW_TRUE=
 
26885
  USE_SHADOWPW_FALSE='#'
 
26886
else
 
26887
  USE_SHADOWPW_TRUE='#'
 
26888
  USE_SHADOWPW_FALSE=
 
26889
fi
 
26890
 
 
26891
 
 
26892
 
 
26893
if test x$sysv_style = xtru64; then
 
26894
  USE_TRU64_TRUE=
 
26895
  USE_TRU64_FALSE='#'
 
26896
else
 
26897
  USE_TRU64_TRUE='#'
 
26898
  USE_TRU64_FALSE=
 
26899
fi
 
26900
 
 
26901
 
 
26902
 
 
26903
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ac_config_files="$ac_config_files Makefile bin/Makefile bin/adv1tov2/Makefile bin/aecho/Makefile bin/afile/Makefile bin/afppasswd/Makefile bin/cnid/Makefile bin/cnid/cnid_maint bin/getzones/Makefile bin/megatron/Makefile bin/nbp/Makefile bin/pap/Makefile bin/psorder/Makefile config/Makefile contrib/Makefile contrib/macusers/Makefile contrib/macusers/macusers contrib/nu/Makefile contrib/nu/nu contrib/printing/Makefile contrib/shell_utils/Makefile contrib/shell_utils/afpd-mtab.pl contrib/shell_utils/apple_cp contrib/shell_utils/apple_mv contrib/shell_utils/apple_rm contrib/shell_utils/cleanappledouble.pl contrib/shell_utils/lp2pap.sh contrib/shell_utils/netatalkshorternamelinks.pl contrib/timelord/Makefile distrib/Makefile distrib/config/Makefile distrib/config/netatalk-config distrib/initscripts/Makefile distrib/m4/Makefile doc/Makefile etc/Makefile etc/afpd/Makefile etc/afpd/nls/Makefile etc/atalkd/Makefile etc/uams/Makefile etc/uams/uams_krb4/Makefile etc/papd/Makefile etc/psf/Makefile include/Makefile include/atalk/Makefile libatalk/Makefile libatalk/adouble/Makefile libatalk/asp/Makefile libatalk/atp/Makefile libatalk/cnid/Makefile libatalk/compat/Makefile libatalk/dsi/Makefile libatalk/nbp/Makefile libatalk/netddp/Makefile libatalk/util/Makefile macros/Makefile man/Makefile man/man1/Makefile man/man3/Makefile man/man4/Makefile man/man5/Makefile man/man8/Makefile sys/Makefile sys/generic/Makefile sys/generic/sys/Makefile sys/netatalk/Makefile sys/netbsd/Makefile sys/netbsd/netatalk/Makefile sys/solaris/Makefile sys/solaris/Makefile.kernel sys/sunos/Makefile sys/ultrix/Makefile"
 
26904
          ac_config_commands="$ac_config_commands default"
 
26905
cat >confcache <<\_ACEOF
 
26906
# This file is a shell script that caches the results of configure
 
26907
# tests run on this system so they can be shared between configure
 
26908
# scripts and configure runs, see configure's option --config-cache.
 
26909
# It is not useful on other systems.  If it contains results you don't
 
26910
# want to keep, you may remove or edit it.
 
26911
#
 
26912
# config.status only pays attention to the cache file if you give it
 
26913
# the --recheck option to rerun configure.
 
26914
#
 
26915
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
26916
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
26917
# following values.
 
26918
 
 
26919
_ACEOF
 
26920
 
 
26921
# The following way of writing the cache mishandles newlines in values,
 
26922
# but we know of no workaround that is simple, portable, and efficient.
 
26923
# So, don't put newlines in cache variables' values.
 
26924
# Ultrix sh set writes to stderr and can't be redirected directly,
 
26925
# and sets the high bit in the cache file unless we assign to the vars.
 
26926
{
 
26927
  (set) 2>&1 |
 
26928
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
26929
    *ac_space=\ *)
 
26930
      # `set' does not quote correctly, so add quotes (double-quote
 
26931
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
26932
      sed -n \
 
26933
        "s/'/'\\\\''/g;
 
26934
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
26935
      ;;
 
26936
    *)
 
26937
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
26938
      sed -n \
 
26939
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
26940
      ;;
 
26941
    esac;
 
26942
} |
 
26943
  sed '
 
26944
     t clear
 
26945
     : clear
 
26946
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
26947
     t end
 
26948
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
26949
     : end' >>confcache
 
26950
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
26951
  if test -w $cache_file; then
 
26952
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
26953
    cat confcache >$cache_file
 
26954
  else
 
26955
    echo "not updating unwritable cache $cache_file"
 
26956
  fi
 
26957
fi
 
26958
rm -f confcache
 
26959
 
 
26960
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
26961
# Let make expand exec_prefix.
 
26962
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
26963
 
 
26964
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
26965
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
26966
# trailing colons and then remove the whole line if VPATH becomes empty
 
26967
# (actually we leave an empty line to preserve line numbers).
 
26968
if test "x$srcdir" = x.; then
 
26969
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
26970
s/:*\$(srcdir):*/:/;
 
26971
s/:*\${srcdir}:*/:/;
 
26972
s/:*@srcdir@:*/:/;
 
26973
s/^\([^=]*=[     ]*\):*/\1/;
 
26974
s/:*$//;
 
26975
s/^[^=]*=[       ]*$//;
 
26976
}'
 
26977
fi
 
26978
 
 
26979
DEFS=-DHAVE_CONFIG_H
 
26980
 
 
26981
ac_libobjs=
 
26982
ac_ltlibobjs=
 
26983
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
26984
  # 1. Remove the extension, and $U if already installed.
 
26985
  ac_i=`echo "$ac_i" |
 
26986
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
26987
  # 2. Add them.
 
26988
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
26989
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
26990
done
 
26991
LIBOBJS=$ac_libobjs
 
26992
 
 
26993
LTLIBOBJS=$ac_ltlibobjs
 
26994
 
 
26995
 
 
26996
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
26997
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
26998
Usually this means the macro was only invoked conditionally." >&5
 
26999
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
27000
Usually this means the macro was only invoked conditionally." >&2;}
 
27001
   { (exit 1); exit 1; }; }
 
27002
fi
 
27003
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
27004
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
27005
Usually this means the macro was only invoked conditionally." >&5
 
27006
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
27007
Usually this means the macro was only invoked conditionally." >&2;}
 
27008
   { (exit 1); exit 1; }; }
 
27009
fi
 
27010
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
27011
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
27012
Usually this means the macro was only invoked conditionally." >&5
 
27013
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
27014
Usually this means the macro was only invoked conditionally." >&2;}
 
27015
   { (exit 1); exit 1; }; }
 
27016
fi
 
27017
if test -z "${COMPILE_CNID_TRUE}" && test -z "${COMPILE_CNID_FALSE}"; then
 
27018
  { { echo "$as_me:$LINENO: error: conditional \"COMPILE_CNID\" was never defined.
 
27019
Usually this means the macro was only invoked conditionally." >&5
 
27020
echo "$as_me: error: conditional \"COMPILE_CNID\" was never defined.
 
27021
Usually this means the macro was only invoked conditionally." >&2;}
 
27022
   { (exit 1); exit 1; }; }
 
27023
fi
 
27024
if test -z "${SOLARIS_MODULE_TRUE}" && test -z "${SOLARIS_MODULE_FALSE}"; then
 
27025
  { { echo "$as_me:$LINENO: error: conditional \"SOLARIS_MODULE\" was never defined.
 
27026
Usually this means the macro was only invoked conditionally." >&5
 
27027
echo "$as_me: error: conditional \"SOLARIS_MODULE\" was never defined.
 
27028
Usually this means the macro was only invoked conditionally." >&2;}
 
27029
   { (exit 1); exit 1; }; }
 
27030
fi
 
27031
if test -z "${COMPILE_TIMELORD_TRUE}" && test -z "${COMPILE_TIMELORD_FALSE}"; then
 
27032
  { { echo "$as_me:$LINENO: error: conditional \"COMPILE_TIMELORD\" was never defined.
 
27033
Usually this means the macro was only invoked conditionally." >&5
 
27034
echo "$as_me: error: conditional \"COMPILE_TIMELORD\" was never defined.
 
27035
Usually this means the macro was only invoked conditionally." >&2;}
 
27036
   { (exit 1); exit 1; }; }
 
27037
fi
 
27038
if test -z "${USE_DHX_TRUE}" && test -z "${USE_DHX_FALSE}"; then
 
27039
  { { echo "$as_me:$LINENO: error: conditional \"USE_DHX\" was never defined.
 
27040
Usually this means the macro was only invoked conditionally." >&5
 
27041
echo "$as_me: error: conditional \"USE_DHX\" was never defined.
 
27042
Usually this means the macro was only invoked conditionally." >&2;}
 
27043
   { (exit 1); exit 1; }; }
 
27044
fi
 
27045
if test -z "${USE_KERBEROS_TRUE}" && test -z "${USE_KERBEROS_FALSE}"; then
 
27046
  { { echo "$as_me:$LINENO: error: conditional \"USE_KERBEROS\" was never defined.
 
27047
Usually this means the macro was only invoked conditionally." >&5
 
27048
echo "$as_me: error: conditional \"USE_KERBEROS\" was never defined.
 
27049
Usually this means the macro was only invoked conditionally." >&2;}
 
27050
   { (exit 1); exit 1; }; }
 
27051
fi
 
27052
if test -z "${USE_PAM_SO_TRUE}" && test -z "${USE_PAM_SO_FALSE}"; then
 
27053
  { { echo "$as_me:$LINENO: error: conditional \"USE_PAM_SO\" was never defined.
 
27054
Usually this means the macro was only invoked conditionally." >&5
 
27055
echo "$as_me: error: conditional \"USE_PAM_SO\" was never defined.
 
27056
Usually this means the macro was only invoked conditionally." >&2;}
 
27057
   { (exit 1); exit 1; }; }
 
27058
fi
 
27059
if test -z "${USE_PAM_TRUE}" && test -z "${USE_PAM_FALSE}"; then
 
27060
  { { echo "$as_me:$LINENO: error: conditional \"USE_PAM\" was never defined.
 
27061
Usually this means the macro was only invoked conditionally." >&5
 
27062
echo "$as_me: error: conditional \"USE_PAM\" was never defined.
 
27063
Usually this means the macro was only invoked conditionally." >&2;}
 
27064
   { (exit 1); exit 1; }; }
 
27065
fi
 
27066
if test -z "${BUILD_PAM_TRUE}" && test -z "${BUILD_PAM_FALSE}"; then
 
27067
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_PAM\" was never defined.
 
27068
Usually this means the macro was only invoked conditionally." >&5
 
27069
echo "$as_me: error: conditional \"BUILD_PAM\" was never defined.
 
27070
Usually this means the macro was only invoked conditionally." >&2;}
 
27071
   { (exit 1); exit 1; }; }
 
27072
fi
 
27073
if test -z "${USE_PGP_TRUE}" && test -z "${USE_PGP_FALSE}"; then
 
27074
  { { echo "$as_me:$LINENO: error: conditional \"USE_PGP\" was never defined.
 
27075
Usually this means the macro was only invoked conditionally." >&5
 
27076
echo "$as_me: error: conditional \"USE_PGP\" was never defined.
 
27077
Usually this means the macro was only invoked conditionally." >&2;}
 
27078
   { (exit 1); exit 1; }; }
 
27079
fi
 
27080
if test -z "${USE_COBALT_TRUE}" && test -z "${USE_COBALT_FALSE}"; then
 
27081
  { { echo "$as_me:$LINENO: error: conditional \"USE_COBALT\" was never defined.
 
27082
Usually this means the macro was only invoked conditionally." >&5
 
27083
echo "$as_me: error: conditional \"USE_COBALT\" was never defined.
 
27084
Usually this means the macro was only invoked conditionally." >&2;}
 
27085
   { (exit 1); exit 1; }; }
 
27086
fi
 
27087
if test -z "${USE_NETBSD_TRUE}" && test -z "${USE_NETBSD_FALSE}"; then
 
27088
  { { echo "$as_me:$LINENO: error: conditional \"USE_NETBSD\" was never defined.
 
27089
Usually this means the macro was only invoked conditionally." >&5
 
27090
echo "$as_me: error: conditional \"USE_NETBSD\" was never defined.
 
27091
Usually this means the macro was only invoked conditionally." >&2;}
 
27092
   { (exit 1); exit 1; }; }
 
27093
fi
 
27094
if test -z "${USE_REDHAT_TRUE}" && test -z "${USE_REDHAT_FALSE}"; then
 
27095
  { { echo "$as_me:$LINENO: error: conditional \"USE_REDHAT\" was never defined.
 
27096
Usually this means the macro was only invoked conditionally." >&5
 
27097
echo "$as_me: error: conditional \"USE_REDHAT\" was never defined.
 
27098
Usually this means the macro was only invoked conditionally." >&2;}
 
27099
   { (exit 1); exit 1; }; }
 
27100
fi
 
27101
if test -z "${USE_SUSE_TRUE}" && test -z "${USE_SUSE_FALSE}"; then
 
27102
  { { echo "$as_me:$LINENO: error: conditional \"USE_SUSE\" was never defined.
 
27103
Usually this means the macro was only invoked conditionally." >&5
 
27104
echo "$as_me: error: conditional \"USE_SUSE\" was never defined.
 
27105
Usually this means the macro was only invoked conditionally." >&2;}
 
27106
   { (exit 1); exit 1; }; }
 
27107
fi
 
27108
if test -z "${USE_SHADOWPW_TRUE}" && test -z "${USE_SHADOWPW_FALSE}"; then
 
27109
  { { echo "$as_me:$LINENO: error: conditional \"USE_SHADOWPW\" was never defined.
 
27110
Usually this means the macro was only invoked conditionally." >&5
 
27111
echo "$as_me: error: conditional \"USE_SHADOWPW\" was never defined.
 
27112
Usually this means the macro was only invoked conditionally." >&2;}
 
27113
   { (exit 1); exit 1; }; }
 
27114
fi
 
27115
if test -z "${USE_TRU64_TRUE}" && test -z "${USE_TRU64_FALSE}"; then
 
27116
  { { echo "$as_me:$LINENO: error: conditional \"USE_TRU64\" was never defined.
 
27117
Usually this means the macro was only invoked conditionally." >&5
 
27118
echo "$as_me: error: conditional \"USE_TRU64\" was never defined.
 
27119
Usually this means the macro was only invoked conditionally." >&2;}
 
27120
   { (exit 1); exit 1; }; }
 
27121
fi
 
27122
 
 
27123
: ${CONFIG_STATUS=./config.status}
 
27124
ac_clean_files_save=$ac_clean_files
 
27125
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
27126
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
27127
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
27128
cat >$CONFIG_STATUS <<_ACEOF
 
27129
#! $SHELL
 
27130
# Generated by $as_me.
 
27131
# Run this file to recreate the current configuration.
 
27132
# Compiler output produced by configure, useful for debugging
 
27133
# configure, is in config.log if it exists.
 
27134
 
 
27135
debug=false
 
27136
ac_cs_recheck=false
 
27137
ac_cs_silent=false
 
27138
SHELL=\${CONFIG_SHELL-$SHELL}
 
27139
_ACEOF
 
27140
 
 
27141
cat >>$CONFIG_STATUS <<\_ACEOF
 
27142
## --------------------- ##
 
27143
## M4sh Initialization.  ##
 
27144
## --------------------- ##
 
27145
 
 
27146
# Be Bourne compatible
 
27147
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
27148
  emulate sh
 
27149
  NULLCMD=:
 
27150
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
27151
  # is contrary to our usage.  Disable this feature.
 
27152
  alias -g '${1+"$@"}'='"$@"'
 
27153
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
27154
  set -o posix
 
27155
fi
 
27156
DUALCASE=1; export DUALCASE # for MKS sh
 
27157
 
 
27158
# Support unset when possible.
 
27159
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
27160
  as_unset=unset
 
27161
else
 
27162
  as_unset=false
 
27163
fi
 
27164
 
 
27165
 
 
27166
# Work around bugs in pre-3.0 UWIN ksh.
 
27167
$as_unset ENV MAIL MAILPATH
 
27168
PS1='$ '
 
27169
PS2='> '
 
27170
PS4='+ '
 
27171
 
 
27172
# NLS nuisances.
 
27173
for as_var in \
 
27174
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
27175
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
27176
  LC_TELEPHONE LC_TIME
 
27177
do
 
27178
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
27179
    eval $as_var=C; export $as_var
 
27180
  else
 
27181
    $as_unset $as_var
 
27182
  fi
 
27183
done
 
27184
 
 
27185
# Required to use basename.
 
27186
if expr a : '\(a\)' >/dev/null 2>&1; then
 
27187
  as_expr=expr
 
27188
else
 
27189
  as_expr=false
 
27190
fi
 
27191
 
 
27192
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
27193
  as_basename=basename
 
27194
else
 
27195
  as_basename=false
 
27196
fi
 
27197
 
 
27198
 
 
27199
# Name of the executable.
 
27200
as_me=`$as_basename "$0" ||
 
27201
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
27202
         X"$0" : 'X\(//\)$' \| \
 
27203
         X"$0" : 'X\(/\)$' \| \
 
27204
         .     : '\(.\)' 2>/dev/null ||
 
27205
echo X/"$0" |
 
27206
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
27207
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
27208
          /^X\/\(\/\).*/{ s//\1/; q; }
 
27209
          s/.*/./; q'`
 
27210
 
 
27211
 
 
27212
# PATH needs CR, and LINENO needs CR and PATH.
 
27213
# Avoid depending upon Character Ranges.
 
27214
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
27215
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
27216
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
27217
as_cr_digits='0123456789'
 
27218
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
27219
 
 
27220
# The user is always right.
 
27221
if test "${PATH_SEPARATOR+set}" != set; then
 
27222
  echo "#! /bin/sh" >conf$$.sh
 
27223
  echo  "exit 0"   >>conf$$.sh
 
27224
  chmod +x conf$$.sh
 
27225
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
27226
    PATH_SEPARATOR=';'
 
27227
  else
 
27228
    PATH_SEPARATOR=:
 
27229
  fi
 
27230
  rm -f conf$$.sh
 
27231
fi
 
27232
 
 
27233
 
 
27234
  as_lineno_1=$LINENO
 
27235
  as_lineno_2=$LINENO
 
27236
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
27237
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
27238
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
27239
  # Find who we are.  Look in the path if we contain no path at all
 
27240
  # relative or not.
 
27241
  case $0 in
 
27242
    *[\\/]* ) as_myself=$0 ;;
 
27243
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
27244
for as_dir in $PATH
 
27245
do
 
27246
  IFS=$as_save_IFS
 
27247
  test -z "$as_dir" && as_dir=.
 
27248
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
27249
done
 
27250
 
 
27251
       ;;
 
27252
  esac
 
27253
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
27254
  # in which case we are not to be found in the path.
 
27255
  if test "x$as_myself" = x; then
 
27256
    as_myself=$0
 
27257
  fi
 
27258
  if test ! -f "$as_myself"; then
 
27259
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
27260
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
27261
   { (exit 1); exit 1; }; }
 
27262
  fi
 
27263
  case $CONFIG_SHELL in
 
27264
  '')
 
27265
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
27266
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
27267
do
 
27268
  IFS=$as_save_IFS
 
27269
  test -z "$as_dir" && as_dir=.
 
27270
  for as_base in sh bash ksh sh5; do
 
27271
         case $as_dir in
 
27272
         /*)
 
27273
           if ("$as_dir/$as_base" -c '
 
27274
  as_lineno_1=$LINENO
 
27275
  as_lineno_2=$LINENO
 
27276
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
27277
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
27278
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
27279
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
27280
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
27281
             CONFIG_SHELL=$as_dir/$as_base
 
27282
             export CONFIG_SHELL
 
27283
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
27284
           fi;;
 
27285
         esac
 
27286
       done
 
27287
done
 
27288
;;
 
27289
  esac
 
27290
 
 
27291
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
27292
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
27293
  # line-number line before each line; the second 'sed' does the real
 
27294
  # work.  The second script uses 'N' to pair each line-number line
 
27295
  # with the numbered line, and appends trailing '-' during
 
27296
  # substitution so that $LINENO is not a special case at line end.
 
27297
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
27298
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
27299
  sed '=' <$as_myself |
 
27300
    sed '
 
27301
      N
 
27302
      s,$,-,
 
27303
      : loop
 
27304
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
27305
      t loop
 
27306
      s,-$,,
 
27307
      s,^['$as_cr_digits']*\n,,
 
27308
    ' >$as_me.lineno &&
 
27309
  chmod +x $as_me.lineno ||
 
27310
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
27311
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
27312
   { (exit 1); exit 1; }; }
 
27313
 
 
27314
  # Don't try to exec as it changes $[0], causing all sort of problems
 
27315
  # (the dirname of $[0] is not the place where we might find the
 
27316
  # original and so on.  Autoconf is especially sensible to this).
 
27317
  . ./$as_me.lineno
 
27318
  # Exit status is that of the last command.
 
27319
  exit
 
27320
}
 
27321
 
 
27322
 
 
27323
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
27324
  *c*,-n*) ECHO_N= ECHO_C='
 
27325
' ECHO_T='      ' ;;
 
27326
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
27327
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
27328
esac
 
27329
 
 
27330
if expr a : '\(a\)' >/dev/null 2>&1; then
 
27331
  as_expr=expr
 
27332
else
 
27333
  as_expr=false
 
27334
fi
 
27335
 
 
27336
rm -f conf$$ conf$$.exe conf$$.file
 
27337
echo >conf$$.file
 
27338
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
27339
  # We could just check for DJGPP; but this test a) works b) is more generic
 
27340
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
27341
  if test -f conf$$.exe; then
 
27342
    # Don't use ln at all; we don't have any links
 
27343
    as_ln_s='cp -p'
 
27344
  else
 
27345
    as_ln_s='ln -s'
 
27346
  fi
 
27347
elif ln conf$$.file conf$$ 2>/dev/null; then
 
27348
  as_ln_s=ln
 
27349
else
 
27350
  as_ln_s='cp -p'
 
27351
fi
 
27352
rm -f conf$$ conf$$.exe conf$$.file
 
27353
 
 
27354
if mkdir -p . 2>/dev/null; then
 
27355
  as_mkdir_p=:
 
27356
else
 
27357
  test -d ./-p && rmdir ./-p
 
27358
  as_mkdir_p=false
 
27359
fi
 
27360
 
 
27361
as_executable_p="test -f"
 
27362
 
 
27363
# Sed expression to map a string onto a valid CPP name.
 
27364
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
27365
 
 
27366
# Sed expression to map a string onto a valid variable name.
 
27367
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
27368
 
 
27369
 
 
27370
# IFS
 
27371
# We need space, tab and new line, in precisely that order.
 
27372
as_nl='
 
27373
'
 
27374
IFS="   $as_nl"
 
27375
 
 
27376
# CDPATH.
 
27377
$as_unset CDPATH
 
27378
 
 
27379
exec 6>&1
 
27380
 
 
27381
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
27382
# report actual input values of CONFIG_FILES etc. instead of their
 
27383
# values after options handling.  Logging --version etc. is OK.
 
27384
exec 5>>config.log
 
27385
{
 
27386
  echo
 
27387
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
27388
## Running $as_me. ##
 
27389
_ASBOX
 
27390
} >&5
 
27391
cat >&5 <<_CSEOF
 
27392
 
 
27393
This file was extended by $as_me, which was
 
27394
generated by GNU Autoconf 2.58.  Invocation command line was
 
27395
 
 
27396
  CONFIG_FILES    = $CONFIG_FILES
 
27397
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
27398
  CONFIG_LINKS    = $CONFIG_LINKS
 
27399
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
27400
  $ $0 $@
 
27401
 
 
27402
_CSEOF
 
27403
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
27404
echo >&5
 
27405
_ACEOF
 
27406
 
 
27407
# Files that config.status was made for.
 
27408
if test -n "$ac_config_files"; then
 
27409
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
27410
fi
 
27411
 
 
27412
if test -n "$ac_config_headers"; then
 
27413
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
27414
fi
 
27415
 
 
27416
if test -n "$ac_config_links"; then
 
27417
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
27418
fi
 
27419
 
 
27420
if test -n "$ac_config_commands"; then
 
27421
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
27422
fi
 
27423
 
 
27424
cat >>$CONFIG_STATUS <<\_ACEOF
 
27425
 
 
27426
ac_cs_usage="\
 
27427
\`$as_me' instantiates files from templates according to the
 
27428
current configuration.
 
27429
 
 
27430
Usage: $0 [OPTIONS] [FILE]...
 
27431
 
 
27432
  -h, --help       print this help, then exit
 
27433
  -V, --version    print version number, then exit
 
27434
  -q, --quiet      do not print progress messages
 
27435
  -d, --debug      don't remove temporary files
 
27436
      --recheck    update $as_me by reconfiguring in the same conditions
 
27437
  --file=FILE[:TEMPLATE]
 
27438
                   instantiate the configuration file FILE
 
27439
  --header=FILE[:TEMPLATE]
 
27440
                   instantiate the configuration header FILE
 
27441
 
 
27442
Configuration files:
 
27443
$config_files
 
27444
 
 
27445
Configuration headers:
 
27446
$config_headers
 
27447
 
 
27448
Configuration commands:
 
27449
$config_commands
 
27450
 
 
27451
Report bugs to <bug-autoconf@gnu.org>."
 
27452
_ACEOF
 
27453
 
 
27454
cat >>$CONFIG_STATUS <<_ACEOF
 
27455
ac_cs_version="\\
 
27456
config.status
 
27457
configured by $0, generated by GNU Autoconf 2.58,
 
27458
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
27459
 
 
27460
Copyright (C) 2003 Free Software Foundation, Inc.
 
27461
This config.status script is free software; the Free Software Foundation
 
27462
gives unlimited permission to copy, distribute and modify it."
 
27463
srcdir=$srcdir
 
27464
INSTALL="$INSTALL"
 
27465
_ACEOF
 
27466
 
 
27467
cat >>$CONFIG_STATUS <<\_ACEOF
 
27468
# If no file are specified by the user, then we need to provide default
 
27469
# value.  By we need to know if files were specified by the user.
 
27470
ac_need_defaults=:
 
27471
while test $# != 0
 
27472
do
 
27473
  case $1 in
 
27474
  --*=*)
 
27475
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
27476
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
27477
    ac_shift=:
 
27478
    ;;
 
27479
  -*)
 
27480
    ac_option=$1
 
27481
    ac_optarg=$2
 
27482
    ac_shift=shift
 
27483
    ;;
 
27484
  *) # This is not an option, so the user has probably given explicit
 
27485
     # arguments.
 
27486
     ac_option=$1
 
27487
     ac_need_defaults=false;;
 
27488
  esac
 
27489
 
 
27490
  case $ac_option in
 
27491
  # Handling of the options.
 
27492
_ACEOF
 
27493
cat >>$CONFIG_STATUS <<\_ACEOF
 
27494
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
27495
    ac_cs_recheck=: ;;
 
27496
  --version | --vers* | -V )
 
27497
    echo "$ac_cs_version"; exit 0 ;;
 
27498
  --he | --h)
 
27499
    # Conflict between --help and --header
 
27500
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
27501
Try \`$0 --help' for more information." >&5
 
27502
echo "$as_me: error: ambiguous option: $1
 
27503
Try \`$0 --help' for more information." >&2;}
 
27504
   { (exit 1); exit 1; }; };;
 
27505
  --help | --hel | -h )
 
27506
    echo "$ac_cs_usage"; exit 0 ;;
 
27507
  --debug | --d* | -d )
 
27508
    debug=: ;;
 
27509
  --file | --fil | --fi | --f )
 
27510
    $ac_shift
 
27511
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
27512
    ac_need_defaults=false;;
 
27513
  --header | --heade | --head | --hea )
 
27514
    $ac_shift
 
27515
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
27516
    ac_need_defaults=false;;
 
27517
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
27518
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
27519
    ac_cs_silent=: ;;
 
27520
 
 
27521
  # This is an error.
 
27522
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
27523
Try \`$0 --help' for more information." >&5
 
27524
echo "$as_me: error: unrecognized option: $1
 
27525
Try \`$0 --help' for more information." >&2;}
 
27526
   { (exit 1); exit 1; }; } ;;
 
27527
 
 
27528
  *) ac_config_targets="$ac_config_targets $1" ;;
 
27529
 
 
27530
  esac
 
27531
  shift
 
27532
done
 
27533
 
 
27534
ac_configure_extra_args=
 
27535
 
 
27536
if $ac_cs_silent; then
 
27537
  exec 6>/dev/null
 
27538
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
27539
fi
 
27540
 
 
27541
_ACEOF
 
27542
cat >>$CONFIG_STATUS <<_ACEOF
 
27543
if \$ac_cs_recheck; then
 
27544
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
27545
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
27546
fi
 
27547
 
 
27548
_ACEOF
 
27549
 
 
27550
cat >>$CONFIG_STATUS <<_ACEOF
 
27551
#
 
27552
# INIT-COMMANDS section.
 
27553
#
 
27554
 
 
27555
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
27556
 
 
27557
_ACEOF
 
27558
 
 
27559
 
 
27560
 
 
27561
cat >>$CONFIG_STATUS <<\_ACEOF
 
27562
for ac_config_target in $ac_config_targets
 
27563
do
 
27564
  case "$ac_config_target" in
 
27565
  # Handling of arguments.
 
27566
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
27567
  "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
 
27568
  "bin/adv1tov2/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/adv1tov2/Makefile" ;;
 
27569
  "bin/aecho/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/aecho/Makefile" ;;
 
27570
  "bin/afile/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/afile/Makefile" ;;
 
27571
  "bin/afppasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/afppasswd/Makefile" ;;
 
27572
  "bin/cnid/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/cnid/Makefile" ;;
 
27573
  "bin/cnid/cnid_maint" ) CONFIG_FILES="$CONFIG_FILES bin/cnid/cnid_maint" ;;
 
27574
  "bin/getzones/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/getzones/Makefile" ;;
 
27575
  "bin/megatron/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/megatron/Makefile" ;;
 
27576
  "bin/nbp/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/nbp/Makefile" ;;
 
27577
  "bin/pap/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/pap/Makefile" ;;
 
27578
  "bin/psorder/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/psorder/Makefile" ;;
 
27579
  "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
 
27580
  "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
 
27581
  "contrib/macusers/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/macusers/Makefile" ;;
 
27582
  "contrib/macusers/macusers" ) CONFIG_FILES="$CONFIG_FILES contrib/macusers/macusers" ;;
 
27583
  "contrib/nu/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/nu/Makefile" ;;
 
27584
  "contrib/nu/nu" ) CONFIG_FILES="$CONFIG_FILES contrib/nu/nu" ;;
 
27585
  "contrib/printing/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/printing/Makefile" ;;
 
27586
  "contrib/shell_utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/Makefile" ;;
 
27587
  "contrib/shell_utils/afpd-mtab.pl" ) CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/afpd-mtab.pl" ;;
 
27588
  "contrib/shell_utils/apple_cp" ) CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/apple_cp" ;;
 
27589
  "contrib/shell_utils/apple_mv" ) CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/apple_mv" ;;
 
27590
  "contrib/shell_utils/apple_rm" ) CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/apple_rm" ;;
 
27591
  "contrib/shell_utils/cleanappledouble.pl" ) CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/cleanappledouble.pl" ;;
 
27592
  "contrib/shell_utils/lp2pap.sh" ) CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/lp2pap.sh" ;;
 
27593
  "contrib/shell_utils/netatalkshorternamelinks.pl" ) CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/netatalkshorternamelinks.pl" ;;
 
27594
  "contrib/timelord/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/timelord/Makefile" ;;
 
27595
  "distrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES distrib/Makefile" ;;
 
27596
  "distrib/config/Makefile" ) CONFIG_FILES="$CONFIG_FILES distrib/config/Makefile" ;;
 
27597
  "distrib/config/netatalk-config" ) CONFIG_FILES="$CONFIG_FILES distrib/config/netatalk-config" ;;
 
27598
  "distrib/initscripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES distrib/initscripts/Makefile" ;;
 
27599
  "distrib/m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES distrib/m4/Makefile" ;;
 
27600
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
27601
  "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
 
27602
  "etc/afpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/afpd/Makefile" ;;
 
27603
  "etc/afpd/nls/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/afpd/nls/Makefile" ;;
 
27604
  "etc/atalkd/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/atalkd/Makefile" ;;
 
27605
  "etc/uams/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/uams/Makefile" ;;
 
27606
  "etc/uams/uams_krb4/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/uams/uams_krb4/Makefile" ;;
 
27607
  "etc/papd/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/papd/Makefile" ;;
 
27608
  "etc/psf/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/psf/Makefile" ;;
 
27609
  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
 
27610
  "include/atalk/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/atalk/Makefile" ;;
 
27611
  "libatalk/Makefile" ) CONFIG_FILES="$CONFIG_FILES libatalk/Makefile" ;;
 
27612
  "libatalk/adouble/Makefile" ) CONFIG_FILES="$CONFIG_FILES libatalk/adouble/Makefile" ;;
 
27613
  "libatalk/asp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libatalk/asp/Makefile" ;;
 
27614
  "libatalk/atp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libatalk/atp/Makefile" ;;
 
27615
  "libatalk/cnid/Makefile" ) CONFIG_FILES="$CONFIG_FILES libatalk/cnid/Makefile" ;;
 
27616
  "libatalk/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES libatalk/compat/Makefile" ;;
 
27617
  "libatalk/dsi/Makefile" ) CONFIG_FILES="$CONFIG_FILES libatalk/dsi/Makefile" ;;
 
27618
  "libatalk/nbp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libatalk/nbp/Makefile" ;;
 
27619
  "libatalk/netddp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libatalk/netddp/Makefile" ;;
 
27620
  "libatalk/util/Makefile" ) CONFIG_FILES="$CONFIG_FILES libatalk/util/Makefile" ;;
 
27621
  "macros/Makefile" ) CONFIG_FILES="$CONFIG_FILES macros/Makefile" ;;
 
27622
  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
 
27623
  "man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
 
27624
  "man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man3/Makefile" ;;
 
27625
  "man/man4/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man4/Makefile" ;;
 
27626
  "man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
 
27627
  "man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
 
27628
  "sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES sys/Makefile" ;;
 
27629
  "sys/generic/Makefile" ) CONFIG_FILES="$CONFIG_FILES sys/generic/Makefile" ;;
 
27630
  "sys/generic/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES sys/generic/sys/Makefile" ;;
 
27631
  "sys/netatalk/Makefile" ) CONFIG_FILES="$CONFIG_FILES sys/netatalk/Makefile" ;;
 
27632
  "sys/netbsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES sys/netbsd/Makefile" ;;
 
27633
  "sys/netbsd/netatalk/Makefile" ) CONFIG_FILES="$CONFIG_FILES sys/netbsd/netatalk/Makefile" ;;
 
27634
  "sys/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES sys/solaris/Makefile" ;;
 
27635
  "sys/solaris/Makefile.kernel" ) CONFIG_FILES="$CONFIG_FILES sys/solaris/Makefile.kernel" ;;
 
27636
  "sys/sunos/Makefile" ) CONFIG_FILES="$CONFIG_FILES sys/sunos/Makefile" ;;
 
27637
  "sys/ultrix/Makefile" ) CONFIG_FILES="$CONFIG_FILES sys/ultrix/Makefile" ;;
 
27638
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
27639
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
 
27640
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
27641
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
27642
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
27643
   { (exit 1); exit 1; }; };;
 
27644
  esac
 
27645
done
 
27646
 
 
27647
# If the user did not use the arguments to specify the items to instantiate,
 
27648
# then the envvar interface is used.  Set only those that are not.
 
27649
# We use the long form for the default assignment because of an extremely
 
27650
# bizarre bug on SunOS 4.1.3.
 
27651
if $ac_need_defaults; then
 
27652
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
27653
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
27654
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
27655
fi
 
27656
 
 
27657
# Have a temporary directory for convenience.  Make it in the build tree
 
27658
# simply because there is no reason to put it here, and in addition,
 
27659
# creating and moving files from /tmp can sometimes cause problems.
 
27660
# Create a temporary directory, and hook for its removal unless debugging.
 
27661
$debug ||
 
27662
{
 
27663
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
27664
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
27665
}
 
27666
 
 
27667
# Create a (secure) tmp directory for tmp files.
 
27668
 
 
27669
{
 
27670
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
27671
  test -n "$tmp" && test -d "$tmp"
 
27672
}  ||
 
27673
{
 
27674
  tmp=./confstat$$-$RANDOM
 
27675
  (umask 077 && mkdir $tmp)
 
27676
} ||
 
27677
{
 
27678
   echo "$me: cannot create a temporary directory in ." >&2
 
27679
   { (exit 1); exit 1; }
 
27680
}
 
27681
 
 
27682
_ACEOF
 
27683
 
 
27684
cat >>$CONFIG_STATUS <<_ACEOF
 
27685
 
 
27686
#
 
27687
# CONFIG_FILES section.
 
27688
#
 
27689
 
 
27690
# No need to generate the scripts if there are no CONFIG_FILES.
 
27691
# This happens for instance when ./config.status config.h
 
27692
if test -n "\$CONFIG_FILES"; then
 
27693
  # Protect against being on the right side of a sed subst in config.status.
 
27694
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
27695
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
27696
s,@PERL@,$PERL,;t t
 
27697
s,@GREP@,$GREP,;t t
 
27698
s,@PS@,$PS,;t t
 
27699
s,@SHELL@,$SHELL,;t t
 
27700
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
27701
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
27702
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
27703
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
27704
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
27705
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
27706
s,@exec_prefix@,$exec_prefix,;t t
 
27707
s,@prefix@,$prefix,;t t
 
27708
s,@program_transform_name@,$program_transform_name,;t t
 
27709
s,@bindir@,$bindir,;t t
 
27710
s,@sbindir@,$sbindir,;t t
 
27711
s,@libexecdir@,$libexecdir,;t t
 
27712
s,@datadir@,$datadir,;t t
 
27713
s,@sysconfdir@,$sysconfdir,;t t
 
27714
s,@sharedstatedir@,$sharedstatedir,;t t
 
27715
s,@localstatedir@,$localstatedir,;t t
 
27716
s,@libdir@,$libdir,;t t
 
27717
s,@includedir@,$includedir,;t t
 
27718
s,@oldincludedir@,$oldincludedir,;t t
 
27719
s,@infodir@,$infodir,;t t
 
27720
s,@mandir@,$mandir,;t t
 
27721
s,@build_alias@,$build_alias,;t t
 
27722
s,@host_alias@,$host_alias,;t t
 
27723
s,@target_alias@,$target_alias,;t t
 
27724
s,@DEFS@,$DEFS,;t t
 
27725
s,@ECHO_C@,$ECHO_C,;t t
 
27726
s,@ECHO_N@,$ECHO_N,;t t
 
27727
s,@ECHO_T@,$ECHO_T,;t t
 
27728
s,@LIBS@,$LIBS,;t t
 
27729
s,@NETATALK_VERSION@,$NETATALK_VERSION,;t t
 
27730
s,@build@,$build,;t t
 
27731
s,@build_cpu@,$build_cpu,;t t
 
27732
s,@build_vendor@,$build_vendor,;t t
 
27733
s,@build_os@,$build_os,;t t
 
27734
s,@host@,$host,;t t
 
27735
s,@host_cpu@,$host_cpu,;t t
 
27736
s,@host_vendor@,$host_vendor,;t t
 
27737
s,@host_os@,$host_os,;t t
 
27738
s,@target@,$target,;t t
 
27739
s,@target_cpu@,$target_cpu,;t t
 
27740
s,@target_vendor@,$target_vendor,;t t
 
27741
s,@target_os@,$target_os,;t t
 
27742
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
27743
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
27744
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
27745
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
27746
s,@PACKAGE@,$PACKAGE,;t t
 
27747
s,@VERSION@,$VERSION,;t t
 
27748
s,@ACLOCAL@,$ACLOCAL,;t t
 
27749
s,@AUTOCONF@,$AUTOCONF,;t t
 
27750
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
27751
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
27752
s,@MAKEINFO@,$MAKEINFO,;t t
 
27753
s,@AMTAR@,$AMTAR,;t t
 
27754
s,@install_sh@,$install_sh,;t t
 
27755
s,@STRIP@,$STRIP,;t t
 
27756
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
27757
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
27758
s,@AWK@,$AWK,;t t
 
27759
s,@SET_MAKE@,$SET_MAKE,;t t
 
27760
s,@am__leading_dot@,$am__leading_dot,;t t
 
27761
s,@CC@,$CC,;t t
 
27762
s,@CFLAGS@,$CFLAGS,;t t
 
27763
s,@LDFLAGS@,$LDFLAGS,;t t
 
27764
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
27765
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
27766
s,@EXEEXT@,$EXEEXT,;t t
 
27767
s,@OBJEXT@,$OBJEXT,;t t
 
27768
s,@DEPDIR@,$DEPDIR,;t t
 
27769
s,@am__include@,$am__include,;t t
 
27770
s,@am__quote@,$am__quote,;t t
 
27771
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
27772
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
27773
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
27774
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
27775
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
27776
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
27777
s,@LN_S@,$LN_S,;t t
 
27778
s,@EGREP@,$EGREP,;t t
 
27779
s,@ECHO@,$ECHO,;t t
 
27780
s,@AR@,$AR,;t t
 
27781
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
27782
s,@RANLIB@,$RANLIB,;t t
 
27783
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
27784
s,@CPP@,$CPP,;t t
 
27785
s,@CXX@,$CXX,;t t
 
27786
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
27787
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
27788
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
27789
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
27790
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
27791
s,@CXXCPP@,$CXXCPP,;t t
 
27792
s,@F77@,$F77,;t t
 
27793
s,@FFLAGS@,$FFLAGS,;t t
 
27794
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
27795
s,@LIBTOOL@,$LIBTOOL,;t t
 
27796
s,@LIBOBJS@,$LIBOBJS,;t t
 
27797
s,@AFS_LIBS@,$AFS_LIBS,;t t
 
27798
s,@AFS_CFLAGS@,$AFS_CFLAGS,;t t
 
27799
s,@PKGCONFDIR@,$PKGCONFDIR,;t t
 
27800
s,@NLSDIR@,$NLSDIR,;t t
 
27801
s,@SERVERTEXT@,$SERVERTEXT,;t t
 
27802
s,@COMPILE_CNID_TRUE@,$COMPILE_CNID_TRUE,;t t
 
27803
s,@COMPILE_CNID_FALSE@,$COMPILE_CNID_FALSE,;t t
 
27804
s,@BDB_CFLAGS@,$BDB_CFLAGS,;t t
 
27805
s,@BDB_LIBS@,$BDB_LIBS,;t t
 
27806
s,@BDB_BIN@,$BDB_BIN,;t t
 
27807
s,@BDB_PATH@,$BDB_PATH,;t t
 
27808
s,@QUOTA_LIBS@,$QUOTA_LIBS,;t t
 
27809
s,@SLP_LIBS@,$SLP_LIBS,;t t
 
27810
s,@SLP_CFLAGS@,$SLP_CFLAGS,;t t
 
27811
s,@PAMDIR@,$PAMDIR,;t t
 
27812
s,@PAM_CFLAGS@,$PAM_CFLAGS,;t t
 
27813
s,@PAM_LIBS@,$PAM_LIBS,;t t
 
27814
s,@UAMS_PATH@,$UAMS_PATH,;t t
 
27815
s,@SSL_CFLAGS@,$SSL_CFLAGS,;t t
 
27816
s,@SSL_LIBS@,$SSL_LIBS,;t t
 
27817
s,@AFPD_LIBS@,$AFPD_LIBS,;t t
 
27818
s,@PAPD_LIBS@,$PAPD_LIBS,;t t
 
27819
s,@OVERWRITE_CONFIG@,$OVERWRITE_CONFIG,;t t
 
27820
s,@SOLARIS_MODULE_TRUE@,$SOLARIS_MODULE_TRUE,;t t
 
27821
s,@SOLARIS_MODULE_FALSE@,$SOLARIS_MODULE_FALSE,;t t
 
27822
s,@COMPILE_TIMELORD_TRUE@,$COMPILE_TIMELORD_TRUE,;t t
 
27823
s,@COMPILE_TIMELORD_FALSE@,$COMPILE_TIMELORD_FALSE,;t t
 
27824
s,@USE_DHX_TRUE@,$USE_DHX_TRUE,;t t
 
27825
s,@USE_DHX_FALSE@,$USE_DHX_FALSE,;t t
 
27826
s,@USE_KERBEROS_TRUE@,$USE_KERBEROS_TRUE,;t t
 
27827
s,@USE_KERBEROS_FALSE@,$USE_KERBEROS_FALSE,;t t
 
27828
s,@USE_PAM_SO_TRUE@,$USE_PAM_SO_TRUE,;t t
 
27829
s,@USE_PAM_SO_FALSE@,$USE_PAM_SO_FALSE,;t t
 
27830
s,@USE_PAM_TRUE@,$USE_PAM_TRUE,;t t
 
27831
s,@USE_PAM_FALSE@,$USE_PAM_FALSE,;t t
 
27832
s,@BUILD_PAM_TRUE@,$BUILD_PAM_TRUE,;t t
 
27833
s,@BUILD_PAM_FALSE@,$BUILD_PAM_FALSE,;t t
 
27834
s,@USE_PGP_TRUE@,$USE_PGP_TRUE,;t t
 
27835
s,@USE_PGP_FALSE@,$USE_PGP_FALSE,;t t
 
27836
s,@USE_COBALT_TRUE@,$USE_COBALT_TRUE,;t t
 
27837
s,@USE_COBALT_FALSE@,$USE_COBALT_FALSE,;t t
 
27838
s,@USE_NETBSD_TRUE@,$USE_NETBSD_TRUE,;t t
 
27839
s,@USE_NETBSD_FALSE@,$USE_NETBSD_FALSE,;t t
 
27840
s,@USE_REDHAT_TRUE@,$USE_REDHAT_TRUE,;t t
 
27841
s,@USE_REDHAT_FALSE@,$USE_REDHAT_FALSE,;t t
 
27842
s,@USE_SUSE_TRUE@,$USE_SUSE_TRUE,;t t
 
27843
s,@USE_SUSE_FALSE@,$USE_SUSE_FALSE,;t t
 
27844
s,@USE_SHADOWPW_TRUE@,$USE_SHADOWPW_TRUE,;t t
 
27845
s,@USE_SHADOWPW_FALSE@,$USE_SHADOWPW_FALSE,;t t
 
27846
s,@USE_TRU64_TRUE@,$USE_TRU64_TRUE,;t t
 
27847
s,@USE_TRU64_FALSE@,$USE_TRU64_FALSE,;t t
 
27848
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
27849
CEOF
 
27850
 
 
27851
_ACEOF
 
27852
 
 
27853
  cat >>$CONFIG_STATUS <<\_ACEOF
 
27854
  # Split the substitutions into bite-sized pieces for seds with
 
27855
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
27856
  ac_max_sed_lines=48
 
27857
  ac_sed_frag=1 # Number of current file.
 
27858
  ac_beg=1 # First line for current file.
 
27859
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
27860
  ac_more_lines=:
 
27861
  ac_sed_cmds=
 
27862
  while $ac_more_lines; do
 
27863
    if test $ac_beg -gt 1; then
 
27864
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
27865
    else
 
27866
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
27867
    fi
 
27868
    if test ! -s $tmp/subs.frag; then
 
27869
      ac_more_lines=false
 
27870
    else
 
27871
      # The purpose of the label and of the branching condition is to
 
27872
      # speed up the sed processing (if there are no `@' at all, there
 
27873
      # is no need to browse any of the substitutions).
 
27874
      # These are the two extra sed commands mentioned above.
 
27875
      (echo ':t
 
27876
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
27877
      if test -z "$ac_sed_cmds"; then
 
27878
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
27879
      else
 
27880
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
27881
      fi
 
27882
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
27883
      ac_beg=$ac_end
 
27884
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
27885
    fi
 
27886
  done
 
27887
  if test -z "$ac_sed_cmds"; then
 
27888
    ac_sed_cmds=cat
 
27889
  fi
 
27890
fi # test -n "$CONFIG_FILES"
 
27891
 
 
27892
_ACEOF
 
27893
cat >>$CONFIG_STATUS <<\_ACEOF
 
27894
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
27895
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
27896
  case $ac_file in
 
27897
  - | *:- | *:-:* ) # input from stdin
 
27898
        cat >$tmp/stdin
 
27899
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
27900
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
27901
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
27902
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
27903
  * )   ac_file_in=$ac_file.in ;;
 
27904
  esac
 
27905
 
 
27906
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
27907
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
27908
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
27909
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
27910
         X"$ac_file" : 'X\(//\)$' \| \
 
27911
         X"$ac_file" : 'X\(/\)' \| \
 
27912
         .     : '\(.\)' 2>/dev/null ||
 
27913
echo X"$ac_file" |
 
27914
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
27915
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
27916
          /^X\(\/\/\)$/{ s//\1/; q; }
 
27917
          /^X\(\/\).*/{ s//\1/; q; }
 
27918
          s/.*/./; q'`
 
27919
  { if $as_mkdir_p; then
 
27920
    mkdir -p "$ac_dir"
 
27921
  else
 
27922
    as_dir="$ac_dir"
 
27923
    as_dirs=
 
27924
    while test ! -d "$as_dir"; do
 
27925
      as_dirs="$as_dir $as_dirs"
 
27926
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
27927
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
27928
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
27929
         X"$as_dir" : 'X\(//\)$' \| \
 
27930
         X"$as_dir" : 'X\(/\)' \| \
 
27931
         .     : '\(.\)' 2>/dev/null ||
 
27932
echo X"$as_dir" |
 
27933
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
27934
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
27935
          /^X\(\/\/\)$/{ s//\1/; q; }
 
27936
          /^X\(\/\).*/{ s//\1/; q; }
 
27937
          s/.*/./; q'`
 
27938
    done
 
27939
    test ! -n "$as_dirs" || mkdir $as_dirs
 
27940
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
27941
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
27942
   { (exit 1); exit 1; }; }; }
 
27943
 
 
27944
  ac_builddir=.
 
27945
 
 
27946
if test "$ac_dir" != .; then
 
27947
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
27948
  # A "../" for each directory in $ac_dir_suffix.
 
27949
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
27950
else
 
27951
  ac_dir_suffix= ac_top_builddir=
 
27952
fi
 
27953
 
 
27954
case $srcdir in
 
27955
  .)  # No --srcdir option.  We are building in place.
 
27956
    ac_srcdir=.
 
27957
    if test -z "$ac_top_builddir"; then
 
27958
       ac_top_srcdir=.
 
27959
    else
 
27960
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
27961
    fi ;;
 
27962
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
27963
    ac_srcdir=$srcdir$ac_dir_suffix;
 
27964
    ac_top_srcdir=$srcdir ;;
 
27965
  *) # Relative path.
 
27966
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
27967
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
27968
esac
 
27969
 
 
27970
# Do not use `cd foo && pwd` to compute absolute paths, because
 
27971
# the directories may not exist.
 
27972
case `pwd` in
 
27973
.) ac_abs_builddir="$ac_dir";;
 
27974
*)
 
27975
  case "$ac_dir" in
 
27976
  .) ac_abs_builddir=`pwd`;;
 
27977
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
27978
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
27979
  esac;;
 
27980
esac
 
27981
case $ac_abs_builddir in
 
27982
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
27983
*)
 
27984
  case ${ac_top_builddir}. in
 
27985
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
27986
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
27987
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
27988
  esac;;
 
27989
esac
 
27990
case $ac_abs_builddir in
 
27991
.) ac_abs_srcdir=$ac_srcdir;;
 
27992
*)
 
27993
  case $ac_srcdir in
 
27994
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
27995
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
27996
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
27997
  esac;;
 
27998
esac
 
27999
case $ac_abs_builddir in
 
28000
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
28001
*)
 
28002
  case $ac_top_srcdir in
 
28003
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
28004
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
28005
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
28006
  esac;;
 
28007
esac
 
28008
 
 
28009
 
 
28010
  case $INSTALL in
 
28011
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
28012
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
28013
  esac
 
28014
 
 
28015
  if test x"$ac_file" != x-; then
 
28016
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
28017
echo "$as_me: creating $ac_file" >&6;}
 
28018
    rm -f "$ac_file"
 
28019
  fi
 
28020
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
28021
  # use $as_me), people would be surprised to read:
 
28022
  #    /* config.h.  Generated by config.status.  */
 
28023
  if test x"$ac_file" = x-; then
 
28024
    configure_input=
 
28025
  else
 
28026
    configure_input="$ac_file.  "
 
28027
  fi
 
28028
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
28029
                                     sed 's,.*/,,'` by configure."
 
28030
 
 
28031
  # First look for the input files in the build tree, otherwise in the
 
28032
  # src tree.
 
28033
  ac_file_inputs=`IFS=:
 
28034
    for f in $ac_file_in; do
 
28035
      case $f in
 
28036
      -) echo $tmp/stdin ;;
 
28037
      [\\/$]*)
 
28038
         # Absolute (can't be DOS-style, as IFS=:)
 
28039
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
28040
echo "$as_me: error: cannot find input file: $f" >&2;}
 
28041
   { (exit 1); exit 1; }; }
 
28042
         echo "$f";;
 
28043
      *) # Relative
 
28044
         if test -f "$f"; then
 
28045
           # Build tree
 
28046
           echo "$f"
 
28047
         elif test -f "$srcdir/$f"; then
 
28048
           # Source tree
 
28049
           echo "$srcdir/$f"
 
28050
         else
 
28051
           # /dev/null tree
 
28052
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
28053
echo "$as_me: error: cannot find input file: $f" >&2;}
 
28054
   { (exit 1); exit 1; }; }
 
28055
         fi;;
 
28056
      esac
 
28057
    done` || { (exit 1); exit 1; }
 
28058
_ACEOF
 
28059
cat >>$CONFIG_STATUS <<_ACEOF
 
28060
  sed "$ac_vpsub
 
28061
$extrasub
 
28062
_ACEOF
 
28063
cat >>$CONFIG_STATUS <<\_ACEOF
 
28064
:t
 
28065
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
28066
s,@configure_input@,$configure_input,;t t
 
28067
s,@srcdir@,$ac_srcdir,;t t
 
28068
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
28069
s,@top_srcdir@,$ac_top_srcdir,;t t
 
28070
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
28071
s,@builddir@,$ac_builddir,;t t
 
28072
s,@abs_builddir@,$ac_abs_builddir,;t t
 
28073
s,@top_builddir@,$ac_top_builddir,;t t
 
28074
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
28075
s,@INSTALL@,$ac_INSTALL,;t t
 
28076
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
28077
  rm -f $tmp/stdin
 
28078
  if test x"$ac_file" != x-; then
 
28079
    mv $tmp/out $ac_file
 
28080
  else
 
28081
    cat $tmp/out
 
28082
    rm -f $tmp/out
 
28083
  fi
 
28084
 
 
28085
done
 
28086
_ACEOF
 
28087
cat >>$CONFIG_STATUS <<\_ACEOF
 
28088
 
 
28089
#
 
28090
# CONFIG_HEADER section.
 
28091
#
 
28092
 
 
28093
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
28094
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
28095
#
 
28096
# ac_d sets the value in "#define NAME VALUE" lines.
 
28097
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
28098
ac_dB='[         ].*$,\1#\2'
 
28099
ac_dC=' '
 
28100
ac_dD=',;t'
 
28101
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
28102
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
28103
ac_uB='$,\1#\2define\3'
 
28104
ac_uC=' '
 
28105
ac_uD=',;t'
 
28106
 
 
28107
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
28108
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
28109
  case $ac_file in
 
28110
  - | *:- | *:-:* ) # input from stdin
 
28111
        cat >$tmp/stdin
 
28112
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
28113
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
28114
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
28115
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
28116
  * )   ac_file_in=$ac_file.in ;;
 
28117
  esac
 
28118
 
 
28119
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
28120
echo "$as_me: creating $ac_file" >&6;}
 
28121
 
 
28122
  # First look for the input files in the build tree, otherwise in the
 
28123
  # src tree.
 
28124
  ac_file_inputs=`IFS=:
 
28125
    for f in $ac_file_in; do
 
28126
      case $f in
 
28127
      -) echo $tmp/stdin ;;
 
28128
      [\\/$]*)
 
28129
         # Absolute (can't be DOS-style, as IFS=:)
 
28130
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
28131
echo "$as_me: error: cannot find input file: $f" >&2;}
 
28132
   { (exit 1); exit 1; }; }
 
28133
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
28134
         echo "$f";;
 
28135
      *) # Relative
 
28136
         if test -f "$f"; then
 
28137
           # Build tree
 
28138
           echo "$f"
 
28139
         elif test -f "$srcdir/$f"; then
 
28140
           # Source tree
 
28141
           echo "$srcdir/$f"
 
28142
         else
 
28143
           # /dev/null tree
 
28144
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
28145
echo "$as_me: error: cannot find input file: $f" >&2;}
 
28146
   { (exit 1); exit 1; }; }
 
28147
         fi;;
 
28148
      esac
 
28149
    done` || { (exit 1); exit 1; }
 
28150
  # Remove the trailing spaces.
 
28151
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
28152
 
 
28153
_ACEOF
 
28154
 
 
28155
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
28156
# `conftest.undefs', that substitutes the proper values into
 
28157
# config.h.in to produce config.h.  The first handles `#define'
 
28158
# templates, and the second `#undef' templates.
 
28159
# And first: Protect against being on the right side of a sed subst in
 
28160
# config.status.  Protect against being in an unquoted here document
 
28161
# in config.status.
 
28162
rm -f conftest.defines conftest.undefs
 
28163
# Using a here document instead of a string reduces the quoting nightmare.
 
28164
# Putting comments in sed scripts is not portable.
 
28165
#
 
28166
# `end' is used to avoid that the second main sed command (meant for
 
28167
# 0-ary CPP macros) applies to n-ary macro definitions.
 
28168
# See the Autoconf documentation for `clear'.
 
28169
cat >confdef2sed.sed <<\_ACEOF
 
28170
s/[\\&,]/\\&/g
 
28171
s,[\\$`],\\&,g
 
28172
t clear
 
28173
: clear
 
28174
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
28175
t end
 
28176
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
28177
: end
 
28178
_ACEOF
 
28179
# If some macros were called several times there might be several times
 
28180
# the same #defines, which is useless.  Nevertheless, we may not want to
 
28181
# sort them, since we want the *last* AC-DEFINE to be honored.
 
28182
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
28183
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
28184
rm -f confdef2sed.sed
 
28185
 
 
28186
# This sed command replaces #undef with comments.  This is necessary, for
 
28187
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
28188
# on some systems where configure will not decide to define it.
 
28189
cat >>conftest.undefs <<\_ACEOF
 
28190
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
28191
_ACEOF
 
28192
 
 
28193
# Break up conftest.defines because some shells have a limit on the size
 
28194
# of here documents, and old seds have small limits too (100 cmds).
 
28195
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
28196
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
28197
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
28198
echo '  :' >>$CONFIG_STATUS
 
28199
rm -f conftest.tail
 
28200
while grep . conftest.defines >/dev/null
 
28201
do
 
28202
  # Write a limited-size here document to $tmp/defines.sed.
 
28203
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
28204
  # Speed up: don't consider the non `#define' lines.
 
28205
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
28206
  # Work around the forget-to-reset-the-flag bug.
 
28207
  echo 't clr' >>$CONFIG_STATUS
 
28208
  echo ': clr' >>$CONFIG_STATUS
 
28209
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
28210
  echo 'CEOF
 
28211
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
28212
  rm -f $tmp/in
 
28213
  mv $tmp/out $tmp/in
 
28214
' >>$CONFIG_STATUS
 
28215
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
28216
  rm -f conftest.defines
 
28217
  mv conftest.tail conftest.defines
 
28218
done
 
28219
rm -f conftest.defines
 
28220
echo '  fi # grep' >>$CONFIG_STATUS
 
28221
echo >>$CONFIG_STATUS
 
28222
 
 
28223
# Break up conftest.undefs because some shells have a limit on the size
 
28224
# of here documents, and old seds have small limits too (100 cmds).
 
28225
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
28226
rm -f conftest.tail
 
28227
while grep . conftest.undefs >/dev/null
 
28228
do
 
28229
  # Write a limited-size here document to $tmp/undefs.sed.
 
28230
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
28231
  # Speed up: don't consider the non `#undef'
 
28232
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
28233
  # Work around the forget-to-reset-the-flag bug.
 
28234
  echo 't clr' >>$CONFIG_STATUS
 
28235
  echo ': clr' >>$CONFIG_STATUS
 
28236
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
28237
  echo 'CEOF
 
28238
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
28239
  rm -f $tmp/in
 
28240
  mv $tmp/out $tmp/in
 
28241
' >>$CONFIG_STATUS
 
28242
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
28243
  rm -f conftest.undefs
 
28244
  mv conftest.tail conftest.undefs
 
28245
done
 
28246
rm -f conftest.undefs
 
28247
 
 
28248
cat >>$CONFIG_STATUS <<\_ACEOF
 
28249
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
28250
  # use $as_me), people would be surprised to read:
 
28251
  #    /* config.h.  Generated by config.status.  */
 
28252
  if test x"$ac_file" = x-; then
 
28253
    echo "/* Generated by configure.  */" >$tmp/config.h
 
28254
  else
 
28255
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
28256
  fi
 
28257
  cat $tmp/in >>$tmp/config.h
 
28258
  rm -f $tmp/in
 
28259
  if test x"$ac_file" != x-; then
 
28260
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
28261
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
28262
echo "$as_me: $ac_file is unchanged" >&6;}
 
28263
    else
 
28264
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
28265
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
28266
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
28267
         X"$ac_file" : 'X\(//\)$' \| \
 
28268
         X"$ac_file" : 'X\(/\)' \| \
 
28269
         .     : '\(.\)' 2>/dev/null ||
 
28270
echo X"$ac_file" |
 
28271
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
28272
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
28273
          /^X\(\/\/\)$/{ s//\1/; q; }
 
28274
          /^X\(\/\).*/{ s//\1/; q; }
 
28275
          s/.*/./; q'`
 
28276
      { if $as_mkdir_p; then
 
28277
    mkdir -p "$ac_dir"
 
28278
  else
 
28279
    as_dir="$ac_dir"
 
28280
    as_dirs=
 
28281
    while test ! -d "$as_dir"; do
 
28282
      as_dirs="$as_dir $as_dirs"
 
28283
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
28284
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
28285
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
28286
         X"$as_dir" : 'X\(//\)$' \| \
 
28287
         X"$as_dir" : 'X\(/\)' \| \
 
28288
         .     : '\(.\)' 2>/dev/null ||
 
28289
echo X"$as_dir" |
 
28290
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
28291
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
28292
          /^X\(\/\/\)$/{ s//\1/; q; }
 
28293
          /^X\(\/\).*/{ s//\1/; q; }
 
28294
          s/.*/./; q'`
 
28295
    done
 
28296
    test ! -n "$as_dirs" || mkdir $as_dirs
 
28297
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
28298
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
28299
   { (exit 1); exit 1; }; }; }
 
28300
 
 
28301
      rm -f $ac_file
 
28302
      mv $tmp/config.h $ac_file
 
28303
    fi
 
28304
  else
 
28305
    cat $tmp/config.h
 
28306
    rm -f $tmp/config.h
 
28307
  fi
 
28308
# Compute $ac_file's index in $config_headers.
 
28309
_am_stamp_count=1
 
28310
for _am_header in $config_headers :; do
 
28311
  case $_am_header in
 
28312
    $ac_file | $ac_file:* )
 
28313
      break ;;
 
28314
    * )
 
28315
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
28316
  esac
 
28317
done
 
28318
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
28319
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
28320
         X$ac_file : 'X\(//\)[^/]' \| \
 
28321
         X$ac_file : 'X\(//\)$' \| \
 
28322
         X$ac_file : 'X\(/\)' \| \
 
28323
         .     : '\(.\)' 2>/dev/null ||
 
28324
echo X$ac_file |
 
28325
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
28326
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
28327
          /^X\(\/\/\)$/{ s//\1/; q; }
 
28328
          /^X\(\/\).*/{ s//\1/; q; }
 
28329
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
28330
done
 
28331
_ACEOF
 
28332
cat >>$CONFIG_STATUS <<\_ACEOF
 
28333
 
 
28334
#
 
28335
# CONFIG_COMMANDS section.
 
28336
#
 
28337
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
28338
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
28339
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
28340
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
28341
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
28342
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
28343
         X"$ac_dest" : 'X\(//\)$' \| \
 
28344
         X"$ac_dest" : 'X\(/\)' \| \
 
28345
         .     : '\(.\)' 2>/dev/null ||
 
28346
echo X"$ac_dest" |
 
28347
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
28348
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
28349
          /^X\(\/\/\)$/{ s//\1/; q; }
 
28350
          /^X\(\/\).*/{ s//\1/; q; }
 
28351
          s/.*/./; q'`
 
28352
  { if $as_mkdir_p; then
 
28353
    mkdir -p "$ac_dir"
 
28354
  else
 
28355
    as_dir="$ac_dir"
 
28356
    as_dirs=
 
28357
    while test ! -d "$as_dir"; do
 
28358
      as_dirs="$as_dir $as_dirs"
 
28359
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
28360
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
28361
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
28362
         X"$as_dir" : 'X\(//\)$' \| \
 
28363
         X"$as_dir" : 'X\(/\)' \| \
 
28364
         .     : '\(.\)' 2>/dev/null ||
 
28365
echo X"$as_dir" |
 
28366
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
28367
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
28368
          /^X\(\/\/\)$/{ s//\1/; q; }
 
28369
          /^X\(\/\).*/{ s//\1/; q; }
 
28370
          s/.*/./; q'`
 
28371
    done
 
28372
    test ! -n "$as_dirs" || mkdir $as_dirs
 
28373
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
28374
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
28375
   { (exit 1); exit 1; }; }; }
 
28376
 
 
28377
  ac_builddir=.
 
28378
 
 
28379
if test "$ac_dir" != .; then
 
28380
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
28381
  # A "../" for each directory in $ac_dir_suffix.
 
28382
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
28383
else
 
28384
  ac_dir_suffix= ac_top_builddir=
 
28385
fi
 
28386
 
 
28387
case $srcdir in
 
28388
  .)  # No --srcdir option.  We are building in place.
 
28389
    ac_srcdir=.
 
28390
    if test -z "$ac_top_builddir"; then
 
28391
       ac_top_srcdir=.
 
28392
    else
 
28393
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
28394
    fi ;;
 
28395
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
28396
    ac_srcdir=$srcdir$ac_dir_suffix;
 
28397
    ac_top_srcdir=$srcdir ;;
 
28398
  *) # Relative path.
 
28399
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
28400
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
28401
esac
 
28402
 
 
28403
# Do not use `cd foo && pwd` to compute absolute paths, because
 
28404
# the directories may not exist.
 
28405
case `pwd` in
 
28406
.) ac_abs_builddir="$ac_dir";;
 
28407
*)
 
28408
  case "$ac_dir" in
 
28409
  .) ac_abs_builddir=`pwd`;;
 
28410
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
28411
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
28412
  esac;;
 
28413
esac
 
28414
case $ac_abs_builddir in
 
28415
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
28416
*)
 
28417
  case ${ac_top_builddir}. in
 
28418
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
28419
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
28420
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
28421
  esac;;
 
28422
esac
 
28423
case $ac_abs_builddir in
 
28424
.) ac_abs_srcdir=$ac_srcdir;;
 
28425
*)
 
28426
  case $ac_srcdir in
 
28427
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
28428
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
28429
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
28430
  esac;;
 
28431
esac
 
28432
case $ac_abs_builddir in
 
28433
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
28434
*)
 
28435
  case $ac_top_srcdir in
 
28436
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
28437
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
28438
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
28439
  esac;;
 
28440
esac
 
28441
 
 
28442
 
 
28443
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
28444
echo "$as_me: executing $ac_dest commands" >&6;}
 
28445
  case $ac_dest in
 
28446
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
28447
  # Strip MF so we end up with the name of the file.
 
28448
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
28449
  # Check whether this is an Automake generated Makefile or not.
 
28450
  # We used to match only the files named `Makefile.in', but
 
28451
  # some people rename them; so instead we look at the file content.
 
28452
  # Grep'ing the first line is not enough: some people post-process
 
28453
  # each Makefile.in and add a new line on top of each file to say so.
 
28454
  # So let's grep whole file.
 
28455
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
28456
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
28457
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
28458
         X"$mf" : 'X\(//\)[^/]' \| \
 
28459
         X"$mf" : 'X\(//\)$' \| \
 
28460
         X"$mf" : 'X\(/\)' \| \
 
28461
         .     : '\(.\)' 2>/dev/null ||
 
28462
echo X"$mf" |
 
28463
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
28464
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
28465
          /^X\(\/\/\)$/{ s//\1/; q; }
 
28466
          /^X\(\/\).*/{ s//\1/; q; }
 
28467
          s/.*/./; q'`
 
28468
  else
 
28469
    continue
 
28470
  fi
 
28471
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
28472
  # Extract the definition of DEP_FILES from the Makefile without
 
28473
  # running `make'.
 
28474
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
28475
  test -z "$DEPDIR" && continue
 
28476
  # When using ansi2knr, U may be empty or an underscore; expand it
 
28477
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
28478
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
28479
  # We invoke sed twice because it is the simplest approach to
 
28480
  # changing $(DEPDIR) to its actual value in the expansion.
 
28481
  for file in `sed -n -e '
 
28482
    /^DEP_FILES = .*\\\\$/ {
 
28483
      s/^DEP_FILES = //
 
28484
      :loop
 
28485
        s/\\\\$//
 
28486
        p
 
28487
        n
 
28488
        /\\\\$/ b loop
 
28489
      p
 
28490
    }
 
28491
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
28492
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
28493
    # Make sure the directory exists.
 
28494
    test -f "$dirpart/$file" && continue
 
28495
    fdir=`(dirname "$file") 2>/dev/null ||
 
28496
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
28497
         X"$file" : 'X\(//\)[^/]' \| \
 
28498
         X"$file" : 'X\(//\)$' \| \
 
28499
         X"$file" : 'X\(/\)' \| \
 
28500
         .     : '\(.\)' 2>/dev/null ||
 
28501
echo X"$file" |
 
28502
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
28503
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
28504
          /^X\(\/\/\)$/{ s//\1/; q; }
 
28505
          /^X\(\/\).*/{ s//\1/; q; }
 
28506
          s/.*/./; q'`
 
28507
    { if $as_mkdir_p; then
 
28508
    mkdir -p $dirpart/$fdir
 
28509
  else
 
28510
    as_dir=$dirpart/$fdir
 
28511
    as_dirs=
 
28512
    while test ! -d "$as_dir"; do
 
28513
      as_dirs="$as_dir $as_dirs"
 
28514
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
28515
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
28516
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
28517
         X"$as_dir" : 'X\(//\)$' \| \
 
28518
         X"$as_dir" : 'X\(/\)' \| \
 
28519
         .     : '\(.\)' 2>/dev/null ||
 
28520
echo X"$as_dir" |
 
28521
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
28522
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
28523
          /^X\(\/\/\)$/{ s//\1/; q; }
 
28524
          /^X\(\/\).*/{ s//\1/; q; }
 
28525
          s/.*/./; q'`
 
28526
    done
 
28527
    test ! -n "$as_dirs" || mkdir $as_dirs
 
28528
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
28529
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
28530
   { (exit 1); exit 1; }; }; }
 
28531
 
 
28532
    # echo "creating $dirpart/$file"
 
28533
    echo '# dummy' > "$dirpart/$file"
 
28534
  done
 
28535
done
 
28536
 ;;
 
28537
    default ) chmod a+x distrib/config/netatalk-config contrib/shell_utils/apple_*
 
28538
 ;;
 
28539
  esac
 
28540
done
 
28541
_ACEOF
 
28542
 
 
28543
cat >>$CONFIG_STATUS <<\_ACEOF
 
28544
 
 
28545
{ (exit 0); exit 0; }
 
28546
_ACEOF
 
28547
chmod +x $CONFIG_STATUS
 
28548
ac_clean_files=$ac_clean_files_save
 
28549
 
 
28550
 
 
28551
# configure is writing to config.log, and then calls config.status.
 
28552
# config.status does its own redirection, appending to config.log.
 
28553
# Unfortunately, on DOS this fails, as config.log is still kept open
 
28554
# by configure, so config.status won't be able to write to it; its
 
28555
# output is simply discarded.  So we exec the FD to /dev/null,
 
28556
# effectively closing config.log, so it can be properly (re)opened and
 
28557
# appended to by config.status.  When coming back to configure, we
 
28558
# need to make the FD available again.
 
28559
if test "$no_create" != yes; then
 
28560
  ac_cs_success=:
 
28561
  ac_config_status_args=
 
28562
  test "$silent" = yes &&
 
28563
    ac_config_status_args="$ac_config_status_args --quiet"
 
28564
  exec 5>/dev/null
 
28565
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
28566
  exec 5>>config.log
 
28567
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
28568
  # would make configure fail if this is the last instruction.
 
28569
  $ac_cs_success || { (exit 1); exit 1; }
 
28570
fi
 
28571
 
 
28572