~ubuntu-branches/ubuntu/jaunty/pcsc-lite/jaunty-security

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Rousseau
  • Date: 2004-06-13 21:45:56 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040613214556-zio7hrzkz9wwtffx
Tags: 1.2.9-beta2-2
* debian/rules: add -lpthread to LDFLAGS so that pthread_* symbols are
  included in the library (problem only seen on mips and mipsel).
  Closes: #253629
* debian/control: make libpcsclite-dev and libpcsclite1 at Priority:
  optional so that other packages at Priority: optional can use them.
  Closes: #249374

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
 
3
2
# Guess values for system-dependent variables and create Makefiles.
4
 
# Generated automatically using autoconf version 2.13 
5
 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 
3
# Generated by GNU Autoconf 2.59.
6
4
#
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
7
6
# This configure script is free software; the Free Software Foundation
8
7
# gives unlimited permission to copy, distribute and modify it.
9
 
 
10
 
# Defaults:
11
 
ac_help=
12
 
ac_default_prefix=/usr/local
13
 
# Any additions from configure.in:
14
 
ac_default_prefix=/usr/local/pcsc
15
 
ac_help="$ac_help
16
 
  --enable-maintainer-mode enable make rules and dependencies not useful
17
 
                          (and sometimes confusing) to the casual installer"
18
 
ac_help="$ac_help
19
 
  --enable-shared[=PKGS]  build shared libraries [default=yes]"
20
 
ac_help="$ac_help
21
 
  --enable-static[=PKGS]  build static libraries [default=yes]"
22
 
ac_help="$ac_help
23
 
  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
24
 
ac_help="$ac_help
25
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
26
 
 
27
 
# Find the correct PATH separator.  Usually this is `:', but
28
 
# DJGPP uses `;' like DOS.
29
 
if test "X${PATH_SEPARATOR+set}" != Xset; then
30
 
  UNAME=${UNAME-`uname 2>/dev/null`}
31
 
  case X$UNAME in
32
 
    *-DOS) lt_cv_sys_path_separator=';' ;;
33
 
    *)     lt_cv_sys_path_separator=':' ;;
34
 
  esac
35
 
  PATH_SEPARATOR=$lt_cv_sys_path_separator
36
 
fi
 
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
 
37
243
 
38
244
 
39
245
# Check that we are running under the correct shell.
53
259
elif test "X$1" = X--fallback-echo; then
54
260
  # Avoid inline document here, it may be left over
55
261
  :
56
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
 
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
57
263
  # Yippee, $echo works!
58
264
  :
59
265
else
65
271
  # used as fallback echo
66
272
  shift
67
273
  cat <<EOF
68
 
 
 
274
$*
69
275
EOF
70
276
  exit 0
71
277
fi
99
305
  #
100
306
  # So, first we look for a working echo in the user's PATH.
101
307
 
102
 
  IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
308
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
103
309
  for dir in $PATH /usr/ucb; do
 
310
    IFS="$lt_save_ifs"
104
311
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
105
312
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
106
313
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
109
316
      break
110
317
    fi
111
318
  done
112
 
  IFS="$save_ifs"
 
319
  IFS="$lt_save_ifs"
113
320
 
114
321
  if test "X$echo" = Xecho; then
115
322
    # We didn't find a better echo, so look for alternatives.
182
389
fi
183
390
 
184
391
 
185
 
ac_help="$ac_help
186
 
  --disable-libtool-lock  avoid locking (might break parallel builds)"
187
 
ac_help="$ac_help
188
 
  --with-pic              try to use only PIC/non-PIC objects [default=use both]"
189
 
ac_help="$ac_help
190
 
  --enable-usb            enable USB hotplug support (Linux only)"
191
 
ac_help="$ac_help
192
 
  --enable-threadsafe     enable client side thread safety."
193
 
ac_help="$ac_help
194
 
  --enable-debug          enable debug messages from pcscd."
195
 
ac_help="$ac_help
196
 
  --enable-debugatr       enable ATR debug messages from pcscd."
197
 
ac_help="$ac_help
198
 
  --enable-syslog         send messages to syslog instead of stdout."
199
 
ac_help="$ac_help
200
 
  --enable-daemon         pcscd runs as a true daemon."
201
 
ac_help="$ac_help
202
 
  --enable-confdir=DIR    directory containing reader.conf (default /etc)"
203
 
ac_help="$ac_help
204
 
  --enable-runpid=FILE    file containing pcscd pid"
 
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="COPYING"
 
429
ac_unique_file="src/pcscdaemon.c"
 
430
ac_default_prefix=/usr/local
 
431
# Factoring default headers for most tests.
 
432
ac_includes_default="\
 
433
#include <stdio.h>
 
434
#if HAVE_SYS_TYPES_H
 
435
# include <sys/types.h>
 
436
#endif
 
437
#if HAVE_SYS_STAT_H
 
438
# include <sys/stat.h>
 
439
#endif
 
440
#if STDC_HEADERS
 
441
# include <stdlib.h>
 
442
# include <stddef.h>
 
443
#else
 
444
# if HAVE_STDLIB_H
 
445
#  include <stdlib.h>
 
446
# endif
 
447
#endif
 
448
#if HAVE_STRING_H
 
449
# if !STDC_HEADERS && HAVE_MEMORY_H
 
450
#  include <memory.h>
 
451
# endif
 
452
# include <string.h>
 
453
#endif
 
454
#if HAVE_STRINGS_H
 
455
# include <strings.h>
 
456
#endif
 
457
#if HAVE_INTTYPES_H
 
458
# include <inttypes.h>
 
459
#else
 
460
# if HAVE_STDINT_H
 
461
#  include <stdint.h>
 
462
# endif
 
463
#endif
 
464
#if HAVE_UNISTD_H
 
465
# include <unistd.h>
 
466
#endif"
 
467
 
 
468
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE COREFOUNDATION IOKIT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CPP LN_S LEX LEXLIB LEX_OUTPUT_ROOT TEST_MINUS_S_SH PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LIBDL LIBFL LIBUSB PCSC_USE_LIBUSB_TRUE PCSC_USE_LIBUSB_FALSE LIBSMARTCARD HAVE_SCF_TRUE HAVE_SCF_FALSE HAVE_MUSCLECARD_TRUE HAVE_MUSCLECARD_FALSE PCSC_THR_SAFE_TRUE PCSC_THR_SAFE_FALSE muscledropdir usbdropdir confdir runpid extended_apdu LTLIBOBJS'
 
469
ac_subst_files=''
205
470
 
206
471
# Initialize some variables set by options.
 
472
ac_init_help=
 
473
ac_init_version=false
207
474
# The variables have the same names as the options, with
208
475
# dashes changed to underlines.
209
 
build=NONE
210
 
cache_file=./config.cache
 
476
cache_file=/dev/null
211
477
exec_prefix=NONE
212
 
host=NONE
213
478
no_create=
214
 
nonopt=NONE
215
479
no_recursion=
216
480
prefix=NONE
217
481
program_prefix=NONE
220
484
silent=
221
485
site=
222
486
srcdir=
223
 
target=NONE
224
487
verbose=
225
488
x_includes=NONE
226
489
x_libraries=NONE
 
490
 
 
491
# Installation directory options.
 
492
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
493
# and all the variables that are supposed to be based on exec_prefix
 
494
# by default will actually change.
 
495
# Use braces instead of parens because sh, perl, etc. also accept them.
227
496
bindir='${exec_prefix}/bin'
228
497
sbindir='${exec_prefix}/sbin'
229
498
libexecdir='${exec_prefix}/libexec'
237
506
infodir='${prefix}/info'
238
507
mandir='${prefix}/man'
239
508
 
240
 
# Initialize some other variables.
241
 
subdirs=
242
 
MFLAGS= MAKEFLAGS=
243
 
SHELL=${CONFIG_SHELL-/bin/sh}
244
 
# Maximum number of lines to put in a shell here document.
245
 
ac_max_here_lines=12
246
 
 
247
509
ac_prev=
248
510
for ac_option
249
511
do
250
 
 
251
512
  # If the previous option needs an argument, assign it.
252
513
  if test -n "$ac_prev"; then
253
514
    eval "$ac_prev=\$ac_option"
255
516
    continue
256
517
  fi
257
518
 
258
 
  case "$ac_option" in
259
 
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
260
 
  *) ac_optarg= ;;
261
 
  esac
 
519
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
262
520
 
263
521
  # Accept the important Cygnus configure options, so we can diagnose typos.
264
522
 
265
 
  case "$ac_option" in
 
523
  case $ac_option in
266
524
 
267
525
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
268
526
    ac_prev=bindir ;;
269
527
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
270
 
    bindir="$ac_optarg" ;;
 
528
    bindir=$ac_optarg ;;
271
529
 
272
530
  -build | --build | --buil | --bui | --bu)
273
 
    ac_prev=build ;;
 
531
    ac_prev=build_alias ;;
274
532
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
275
 
    build="$ac_optarg" ;;
 
533
    build_alias=$ac_optarg ;;
276
534
 
277
535
  -cache-file | --cache-file | --cache-fil | --cache-fi \
278
536
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
279
537
    ac_prev=cache_file ;;
280
538
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
281
539
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
282
 
    cache_file="$ac_optarg" ;;
 
540
    cache_file=$ac_optarg ;;
 
541
 
 
542
  --config-cache | -C)
 
543
    cache_file=config.cache ;;
283
544
 
284
545
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
285
546
    ac_prev=datadir ;;
286
547
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
287
548
  | --da=*)
288
 
    datadir="$ac_optarg" ;;
 
549
    datadir=$ac_optarg ;;
289
550
 
290
551
  -disable-* | --disable-*)
291
 
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
552
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
292
553
    # Reject names that are not valid shell variable names.
293
 
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
294
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
295
 
    fi
296
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
297
 
    eval "enable_${ac_feature}=no" ;;
 
554
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
555
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
556
   { (exit 1); exit 1; }; }
 
557
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
558
    eval "enable_$ac_feature=no" ;;
298
559
 
299
560
  -enable-* | --enable-*)
300
 
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
561
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
301
562
    # Reject names that are not valid shell variable names.
302
 
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
303
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
304
 
    fi
305
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
306
 
    case "$ac_option" in
307
 
      *=*) ;;
 
563
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
564
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
565
   { (exit 1); exit 1; }; }
 
566
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
567
    case $ac_option in
 
568
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
308
569
      *) ac_optarg=yes ;;
309
570
    esac
310
 
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
571
    eval "enable_$ac_feature='$ac_optarg'" ;;
311
572
 
312
573
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
313
574
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
316
577
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
317
578
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
318
579
  | --exec=* | --exe=* | --ex=*)
319
 
    exec_prefix="$ac_optarg" ;;
 
580
    exec_prefix=$ac_optarg ;;
320
581
 
321
582
  -gas | --gas | --ga | --g)
322
583
    # Obsolete; use --with-gas.
323
584
    with_gas=yes ;;
324
585
 
325
 
  -help | --help | --hel | --he)
326
 
    # Omit some internal or obsolete options to make the list less imposing.
327
 
    # This message is too long to be a string in the A/UX 3.1 sh.
328
 
    cat << EOF
329
 
Usage: configure [options] [host]
330
 
Options: [defaults in brackets after descriptions]
331
 
Configuration:
332
 
  --cache-file=FILE       cache test results in FILE
333
 
  --help                  print this message
334
 
  --no-create             do not create output files
335
 
  --quiet, --silent       do not print \`checking...' messages
336
 
  --version               print the version of autoconf that created configure
337
 
Directory and file names:
338
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
339
 
                          [$ac_default_prefix]
340
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
341
 
                          [same as prefix]
342
 
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
343
 
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
344
 
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
345
 
  --datadir=DIR           read-only architecture-independent data in DIR
346
 
                          [PREFIX/share]
347
 
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
348
 
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
349
 
                          [PREFIX/com]
350
 
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
351
 
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
352
 
  --includedir=DIR        C header files in DIR [PREFIX/include]
353
 
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
354
 
  --infodir=DIR           info documentation in DIR [PREFIX/info]
355
 
  --mandir=DIR            man documentation in DIR [PREFIX/man]
356
 
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
357
 
  --program-prefix=PREFIX prepend PREFIX to installed program names
358
 
  --program-suffix=SUFFIX append SUFFIX to installed program names
359
 
  --program-transform-name=PROGRAM
360
 
                          run sed PROGRAM on installed program names
361
 
EOF
362
 
    cat << EOF
363
 
Host type:
364
 
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
365
 
  --host=HOST             configure for HOST [guessed]
366
 
  --target=TARGET         configure for TARGET [TARGET=HOST]
367
 
Features and packages:
368
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
369
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
370
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
371
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
372
 
  --x-includes=DIR        X include files are in DIR
373
 
  --x-libraries=DIR       X library files are in DIR
374
 
EOF
375
 
    if test -n "$ac_help"; then
376
 
      echo "--enable and --with options recognized:$ac_help"
377
 
    fi
378
 
    exit 0 ;;
 
586
  -help | --help | --hel | --he | -h)
 
587
    ac_init_help=long ;;
 
588
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
589
    ac_init_help=recursive ;;
 
590
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
591
    ac_init_help=short ;;
379
592
 
380
593
  -host | --host | --hos | --ho)
381
 
    ac_prev=host ;;
 
594
    ac_prev=host_alias ;;
382
595
  -host=* | --host=* | --hos=* | --ho=*)
383
 
    host="$ac_optarg" ;;
 
596
    host_alias=$ac_optarg ;;
384
597
 
385
598
  -includedir | --includedir | --includedi | --included | --include \
386
599
  | --includ | --inclu | --incl | --inc)
387
600
    ac_prev=includedir ;;
388
601
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
389
602
  | --includ=* | --inclu=* | --incl=* | --inc=*)
390
 
    includedir="$ac_optarg" ;;
 
603
    includedir=$ac_optarg ;;
391
604
 
392
605
  -infodir | --infodir | --infodi | --infod | --info | --inf)
393
606
    ac_prev=infodir ;;
394
607
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
395
 
    infodir="$ac_optarg" ;;
 
608
    infodir=$ac_optarg ;;
396
609
 
397
610
  -libdir | --libdir | --libdi | --libd)
398
611
    ac_prev=libdir ;;
399
612
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
400
 
    libdir="$ac_optarg" ;;
 
613
    libdir=$ac_optarg ;;
401
614
 
402
615
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
403
616
  | --libexe | --libex | --libe)
404
617
    ac_prev=libexecdir ;;
405
618
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
406
619
  | --libexe=* | --libex=* | --libe=*)
407
 
    libexecdir="$ac_optarg" ;;
 
620
    libexecdir=$ac_optarg ;;
408
621
 
409
622
  -localstatedir | --localstatedir | --localstatedi | --localstated \
410
623
  | --localstate | --localstat | --localsta | --localst \
413
626
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
414
627
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
415
628
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
416
 
    localstatedir="$ac_optarg" ;;
 
629
    localstatedir=$ac_optarg ;;
417
630
 
418
631
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
419
632
    ac_prev=mandir ;;
420
633
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
421
 
    mandir="$ac_optarg" ;;
 
634
    mandir=$ac_optarg ;;
422
635
 
423
636
  -nfp | --nfp | --nf)
424
637
    # Obsolete; use --without-fp.
425
638
    with_fp=no ;;
426
639
 
427
640
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
428
 
  | --no-cr | --no-c)
 
641
  | --no-cr | --no-c | -n)
429
642
    no_create=yes ;;
430
643
 
431
644
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
439
652
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
440
653
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
441
654
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
442
 
    oldincludedir="$ac_optarg" ;;
 
655
    oldincludedir=$ac_optarg ;;
443
656
 
444
657
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
445
658
    ac_prev=prefix ;;
446
659
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
447
 
    prefix="$ac_optarg" ;;
 
660
    prefix=$ac_optarg ;;
448
661
 
449
662
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
450
663
  | --program-pre | --program-pr | --program-p)
451
664
    ac_prev=program_prefix ;;
452
665
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
453
666
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
454
 
    program_prefix="$ac_optarg" ;;
 
667
    program_prefix=$ac_optarg ;;
455
668
 
456
669
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
457
670
  | --program-suf | --program-su | --program-s)
458
671
    ac_prev=program_suffix ;;
459
672
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
460
673
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
461
 
    program_suffix="$ac_optarg" ;;
 
674
    program_suffix=$ac_optarg ;;
462
675
 
463
676
  -program-transform-name | --program-transform-name \
464
677
  | --program-transform-nam | --program-transform-na \
475
688
  | --program-transfo=* | --program-transf=* \
476
689
  | --program-trans=* | --program-tran=* \
477
690
  | --progr-tra=* | --program-tr=* | --program-t=*)
478
 
    program_transform_name="$ac_optarg" ;;
 
691
    program_transform_name=$ac_optarg ;;
479
692
 
480
693
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
481
694
  | -silent | --silent | --silen | --sile | --sil)
485
698
    ac_prev=sbindir ;;
486
699
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
487
700
  | --sbi=* | --sb=*)
488
 
    sbindir="$ac_optarg" ;;
 
701
    sbindir=$ac_optarg ;;
489
702
 
490
703
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
491
704
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
496
709
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
497
710
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
498
711
  | --sha=* | --sh=*)
499
 
    sharedstatedir="$ac_optarg" ;;
 
712
    sharedstatedir=$ac_optarg ;;
500
713
 
501
714
  -site | --site | --sit)
502
715
    ac_prev=site ;;
503
716
  -site=* | --site=* | --sit=*)
504
 
    site="$ac_optarg" ;;
 
717
    site=$ac_optarg ;;
505
718
 
506
719
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
507
720
    ac_prev=srcdir ;;
508
721
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
509
 
    srcdir="$ac_optarg" ;;
 
722
    srcdir=$ac_optarg ;;
510
723
 
511
724
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
512
725
  | --syscon | --sysco | --sysc | --sys | --sy)
513
726
    ac_prev=sysconfdir ;;
514
727
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
515
728
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
516
 
    sysconfdir="$ac_optarg" ;;
 
729
    sysconfdir=$ac_optarg ;;
517
730
 
518
731
  -target | --target | --targe | --targ | --tar | --ta | --t)
519
 
    ac_prev=target ;;
 
732
    ac_prev=target_alias ;;
520
733
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
521
 
    target="$ac_optarg" ;;
 
734
    target_alias=$ac_optarg ;;
522
735
 
523
736
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
524
737
    verbose=yes ;;
525
738
 
526
 
  -version | --version | --versio | --versi | --vers)
527
 
    echo "configure generated by autoconf version 2.13"
528
 
    exit 0 ;;
 
739
  -version | --version | --versio | --versi | --vers | -V)
 
740
    ac_init_version=: ;;
529
741
 
530
742
  -with-* | --with-*)
531
 
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
743
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
532
744
    # Reject names that are not valid shell variable names.
533
 
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
534
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
535
 
    fi
 
745
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
746
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
747
   { (exit 1); exit 1; }; }
536
748
    ac_package=`echo $ac_package| sed 's/-/_/g'`
537
 
    case "$ac_option" in
538
 
      *=*) ;;
 
749
    case $ac_option in
 
750
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
539
751
      *) ac_optarg=yes ;;
540
752
    esac
541
 
    eval "with_${ac_package}='$ac_optarg'" ;;
 
753
    eval "with_$ac_package='$ac_optarg'" ;;
542
754
 
543
755
  -without-* | --without-*)
544
 
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
756
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
545
757
    # Reject names that are not valid shell variable names.
546
 
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
547
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
548
 
    fi
549
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
550
 
    eval "with_${ac_package}=no" ;;
 
758
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
759
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
760
   { (exit 1); exit 1; }; }
 
761
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
762
    eval "with_$ac_package=no" ;;
551
763
 
552
764
  --x)
553
765
    # Obsolete; use --with-x.
558
770
    ac_prev=x_includes ;;
559
771
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
560
772
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
561
 
    x_includes="$ac_optarg" ;;
 
773
    x_includes=$ac_optarg ;;
562
774
 
563
775
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
564
776
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
565
777
    ac_prev=x_libraries ;;
566
778
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
567
779
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
568
 
    x_libraries="$ac_optarg" ;;
 
780
    x_libraries=$ac_optarg ;;
569
781
 
570
 
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
782
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
783
Try \`$0 --help' for more information." >&2
 
784
   { (exit 1); exit 1; }; }
571
785
    ;;
572
786
 
 
787
  *=*)
 
788
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
789
    # Reject names that are not valid shell variable names.
 
790
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
791
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
792
   { (exit 1); exit 1; }; }
 
793
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
794
    eval "$ac_envvar='$ac_optarg'"
 
795
    export $ac_envvar ;;
 
796
 
573
797
  *)
574
 
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
575
 
      echo "configure: warning: $ac_option: invalid host type" 1>&2
576
 
    fi
577
 
    if test "x$nonopt" != xNONE; then
578
 
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
579
 
    fi
580
 
    nonopt="$ac_option"
 
798
    # FIXME: should be removed in autoconf 3.0.
 
799
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
800
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
801
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
802
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
581
803
    ;;
582
804
 
583
805
  esac
584
806
done
585
807
 
586
808
if test -n "$ac_prev"; then
587
 
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
588
 
fi
589
 
 
590
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
591
 
 
592
 
# File descriptor usage:
593
 
# 0 standard input
594
 
# 1 file creation
595
 
# 2 errors and warnings
596
 
# 3 some systems may open it to /dev/tty
597
 
# 4 used on the Kubota Titan
598
 
# 6 checking for... messages and results
599
 
# 5 compiler messages saved in config.log
600
 
if test "$silent" = yes; then
601
 
  exec 6>/dev/null
602
 
else
603
 
  exec 6>&1
604
 
fi
605
 
exec 5>./config.log
606
 
 
607
 
echo "\
608
 
This file contains any messages produced by compilers while
609
 
running configure, to aid debugging if configure makes a mistake.
610
 
" 1>&5
611
 
 
612
 
# Strip out --no-create and --no-recursion so they do not pile up.
613
 
# Also quote any args containing shell metacharacters.
614
 
ac_configure_args=
615
 
for ac_arg
616
 
do
617
 
  case "$ac_arg" in
618
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
619
 
  | --no-cr | --no-c) ;;
620
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
621
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
622
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
623
 
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
624
 
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
625
 
  esac
626
 
done
627
 
 
628
 
# NLS nuisances.
629
 
# Only set these to C if already set.  These must not be set unconditionally
630
 
# because not all systems understand e.g. LANG=C (notably SCO).
631
 
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
632
 
# Non-C LC_CTYPE values break the ctype check.
633
 
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
634
 
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
635
 
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
636
 
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
637
 
 
638
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
639
 
rm -rf conftest* confdefs.h
640
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
641
 
echo > confdefs.h
642
 
 
643
 
# A filename unique to this package, relative to the directory that
644
 
# configure is in, which we can look for to find out if srcdir is correct.
645
 
ac_unique_file=src/winscard.h
 
809
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
810
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
811
   { (exit 1); exit 1; }; }
 
812
fi
 
813
 
 
814
# Be sure to have absolute paths.
 
815
for ac_var in exec_prefix prefix
 
816
do
 
817
  eval ac_val=$`echo $ac_var`
 
818
  case $ac_val in
 
819
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
820
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
821
   { (exit 1); exit 1; }; };;
 
822
  esac
 
823
done
 
824
 
 
825
# Be sure to have absolute paths.
 
826
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
827
              localstatedir libdir includedir oldincludedir infodir mandir
 
828
do
 
829
  eval ac_val=$`echo $ac_var`
 
830
  case $ac_val in
 
831
    [\\/$]* | ?:[\\/]* ) ;;
 
832
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
833
   { (exit 1); exit 1; }; };;
 
834
  esac
 
835
done
 
836
 
 
837
# There might be people who depend on the old broken behavior: `$host'
 
838
# used to hold the argument of --host etc.
 
839
# FIXME: To remove some day.
 
840
build=$build_alias
 
841
host=$host_alias
 
842
target=$target_alias
 
843
 
 
844
# FIXME: To remove some day.
 
845
if test "x$host_alias" != x; then
 
846
  if test "x$build_alias" = x; then
 
847
    cross_compiling=maybe
 
848
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
849
    If a cross compiler is detected then cross compile mode will be used." >&2
 
850
  elif test "x$build_alias" != "x$host_alias"; then
 
851
    cross_compiling=yes
 
852
  fi
 
853
fi
 
854
 
 
855
ac_tool_prefix=
 
856
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
857
 
 
858
test "$silent" = yes && exec 6>/dev/null
 
859
 
646
860
 
647
861
# Find the source files, if location was not specified.
648
862
if test -z "$srcdir"; then
649
863
  ac_srcdir_defaulted=yes
650
864
  # Try the directory containing this script, then its parent.
651
 
  ac_prog=$0
652
 
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
653
 
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
865
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
866
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
867
         X"$0" : 'X\(//\)[^/]' \| \
 
868
         X"$0" : 'X\(//\)$' \| \
 
869
         X"$0" : 'X\(/\)' \| \
 
870
         .     : '\(.\)' 2>/dev/null ||
 
871
echo X"$0" |
 
872
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
873
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
874
          /^X\(\/\/\)$/{ s//\1/; q; }
 
875
          /^X\(\/\).*/{ s//\1/; q; }
 
876
          s/.*/./; q'`
654
877
  srcdir=$ac_confdir
655
878
  if test ! -r $srcdir/$ac_unique_file; then
656
879
    srcdir=..
660
883
fi
661
884
if test ! -r $srcdir/$ac_unique_file; then
662
885
  if test "$ac_srcdir_defaulted" = yes; then
663
 
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
886
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
887
   { (exit 1); exit 1; }; }
664
888
  else
665
 
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 
889
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
890
   { (exit 1); exit 1; }; }
666
891
  fi
667
892
fi
668
 
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
669
 
 
 
893
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
894
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
895
   { (exit 1); exit 1; }; }
 
896
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
897
ac_env_build_alias_set=${build_alias+set}
 
898
ac_env_build_alias_value=$build_alias
 
899
ac_cv_env_build_alias_set=${build_alias+set}
 
900
ac_cv_env_build_alias_value=$build_alias
 
901
ac_env_host_alias_set=${host_alias+set}
 
902
ac_env_host_alias_value=$host_alias
 
903
ac_cv_env_host_alias_set=${host_alias+set}
 
904
ac_cv_env_host_alias_value=$host_alias
 
905
ac_env_target_alias_set=${target_alias+set}
 
906
ac_env_target_alias_value=$target_alias
 
907
ac_cv_env_target_alias_set=${target_alias+set}
 
908
ac_cv_env_target_alias_value=$target_alias
 
909
ac_env_CC_set=${CC+set}
 
910
ac_env_CC_value=$CC
 
911
ac_cv_env_CC_set=${CC+set}
 
912
ac_cv_env_CC_value=$CC
 
913
ac_env_CFLAGS_set=${CFLAGS+set}
 
914
ac_env_CFLAGS_value=$CFLAGS
 
915
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
916
ac_cv_env_CFLAGS_value=$CFLAGS
 
917
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
918
ac_env_LDFLAGS_value=$LDFLAGS
 
919
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
920
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
921
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
922
ac_env_CPPFLAGS_value=$CPPFLAGS
 
923
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
924
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
925
ac_env_CPP_set=${CPP+set}
 
926
ac_env_CPP_value=$CPP
 
927
ac_cv_env_CPP_set=${CPP+set}
 
928
ac_cv_env_CPP_value=$CPP
 
929
ac_env_CXX_set=${CXX+set}
 
930
ac_env_CXX_value=$CXX
 
931
ac_cv_env_CXX_set=${CXX+set}
 
932
ac_cv_env_CXX_value=$CXX
 
933
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
934
ac_env_CXXFLAGS_value=$CXXFLAGS
 
935
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
936
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
937
ac_env_CXXCPP_set=${CXXCPP+set}
 
938
ac_env_CXXCPP_value=$CXXCPP
 
939
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
940
ac_cv_env_CXXCPP_value=$CXXCPP
 
941
ac_env_F77_set=${F77+set}
 
942
ac_env_F77_value=$F77
 
943
ac_cv_env_F77_set=${F77+set}
 
944
ac_cv_env_F77_value=$F77
 
945
ac_env_FFLAGS_set=${FFLAGS+set}
 
946
ac_env_FFLAGS_value=$FFLAGS
 
947
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
948
ac_cv_env_FFLAGS_value=$FFLAGS
 
949
 
 
950
#
 
951
# Report the --help message.
 
952
#
 
953
if test "$ac_init_help" = "long"; then
 
954
  # Omit some internal or obsolete options to make the list less imposing.
 
955
  # This message is too long to be a string in the A/UX 3.1 sh.
 
956
  cat <<_ACEOF
 
957
\`configure' configures this package to adapt to many kinds of systems.
 
958
 
 
959
Usage: $0 [OPTION]... [VAR=VALUE]...
 
960
 
 
961
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
962
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
963
 
 
964
Defaults for the options are specified in brackets.
 
965
 
 
966
Configuration:
 
967
  -h, --help              display this help and exit
 
968
      --help=short        display options specific to this package
 
969
      --help=recursive    display the short help of all the included packages
 
970
  -V, --version           display version information and exit
 
971
  -q, --quiet, --silent   do not print \`checking...' messages
 
972
      --cache-file=FILE   cache test results in FILE [disabled]
 
973
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
974
  -n, --no-create         do not create output files
 
975
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
976
 
 
977
_ACEOF
 
978
 
 
979
  cat <<_ACEOF
 
980
Installation directories:
 
981
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
982
                          [$ac_default_prefix]
 
983
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
984
                          [PREFIX]
 
985
 
 
986
By default, \`make install' will install all the files in
 
987
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
988
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
989
for instance \`--prefix=\$HOME'.
 
990
 
 
991
For better control, use the options below.
 
992
 
 
993
Fine tuning of the installation directories:
 
994
  --bindir=DIR           user executables [EPREFIX/bin]
 
995
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
996
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
997
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
998
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
999
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1000
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1001
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1002
  --includedir=DIR       C header files [PREFIX/include]
 
1003
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1004
  --infodir=DIR          info documentation [PREFIX/info]
 
1005
  --mandir=DIR           man documentation [PREFIX/man]
 
1006
_ACEOF
 
1007
 
 
1008
  cat <<\_ACEOF
 
1009
 
 
1010
Program names:
 
1011
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1012
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1013
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1014
 
 
1015
System types:
 
1016
  --build=BUILD     configure for building on BUILD [guessed]
 
1017
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1018
_ACEOF
 
1019
fi
 
1020
 
 
1021
if test -n "$ac_init_help"; then
 
1022
 
 
1023
  cat <<\_ACEOF
 
1024
 
 
1025
Optional Features:
 
1026
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1027
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1028
  --disable-dependency-tracking Speeds up one-time builds
 
1029
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
1030
  --enable-maintainer-mode enable make rules and dependencies not useful
 
1031
                          (and sometimes confusing) to the casual installer
 
1032
  --enable-threadsafe     enable client side thread safety
 
1033
  --enable-shared[=PKGS]
 
1034
                          build shared libraries [default=yes]
 
1035
  --enable-static[=PKGS]
 
1036
                          build static libraries [default=yes]
 
1037
  --enable-fast-install[=PKGS]
 
1038
                          optimize for fast installation [default=yes]
 
1039
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1040
  --enable-libusb=PATH    enable USB hotplug using libusb
 
1041
  --enable-usbdropdir=DIR directory containing USB drivers (default
 
1042
                          /usr/local/pcsc/drivers)
 
1043
  --enable-debug          enable debug messages from pcscd
 
1044
  --enable-debugatr       enable ATR debug messages from pcscd
 
1045
  --enable-scf            use SCF for reader support
 
1046
  --disable-musclecard    MuscleCard framework disabled
 
1047
  --enable-muscledropdir=DIR
 
1048
                          directory containing MuscleCard bundles (default
 
1049
                          /usr/local/pcsc/services)
 
1050
  --enable-confdir=DIR    directory containing reader.conf (default /etc)
 
1051
  --enable-runpid=FILE    file containing pcscd pid
 
1052
  --enable-ipcdir=DIR     directory containing IPC files (default /var/run)
 
1053
  --enable-extendedapdu   support of extended APDU (for APDU 256B < size <
 
1054
                          32KB)
 
1055
 
 
1056
Optional Packages:
 
1057
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1058
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1059
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1060
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1061
                          both]
 
1062
  --with-tags[=TAGS]
 
1063
                          include additional configurations [automatic]
 
1064
 
 
1065
Some influential environment variables:
 
1066
  CC          C compiler command
 
1067
  CFLAGS      C compiler flags
 
1068
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1069
              nonstandard directory <lib dir>
 
1070
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1071
              headers in a nonstandard directory <include dir>
 
1072
  CPP         C preprocessor
 
1073
  CXX         C++ compiler command
 
1074
  CXXFLAGS    C++ compiler flags
 
1075
  CXXCPP      C++ preprocessor
 
1076
  F77         Fortran 77 compiler command
 
1077
  FFLAGS      Fortran 77 compiler flags
 
1078
 
 
1079
Use these variables to override the choices made by `configure' or to help
 
1080
it to find libraries and programs with nonstandard names/locations.
 
1081
 
 
1082
_ACEOF
 
1083
fi
 
1084
 
 
1085
if test "$ac_init_help" = "recursive"; then
 
1086
  # If there are subdirs, report their specific --help.
 
1087
  ac_popdir=`pwd`
 
1088
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1089
    test -d $ac_dir || continue
 
1090
    ac_builddir=.
 
1091
 
 
1092
if test "$ac_dir" != .; then
 
1093
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1094
  # A "../" for each directory in $ac_dir_suffix.
 
1095
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1096
else
 
1097
  ac_dir_suffix= ac_top_builddir=
 
1098
fi
 
1099
 
 
1100
case $srcdir in
 
1101
  .)  # No --srcdir option.  We are building in place.
 
1102
    ac_srcdir=.
 
1103
    if test -z "$ac_top_builddir"; then
 
1104
       ac_top_srcdir=.
 
1105
    else
 
1106
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1107
    fi ;;
 
1108
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1109
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1110
    ac_top_srcdir=$srcdir ;;
 
1111
  *) # Relative path.
 
1112
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1113
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1114
esac
 
1115
 
 
1116
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1117
# the directories may not exist.
 
1118
case `pwd` in
 
1119
.) ac_abs_builddir="$ac_dir";;
 
1120
*)
 
1121
  case "$ac_dir" in
 
1122
  .) ac_abs_builddir=`pwd`;;
 
1123
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1124
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1125
  esac;;
 
1126
esac
 
1127
case $ac_abs_builddir in
 
1128
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1129
*)
 
1130
  case ${ac_top_builddir}. in
 
1131
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1132
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1133
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1134
  esac;;
 
1135
esac
 
1136
case $ac_abs_builddir in
 
1137
.) ac_abs_srcdir=$ac_srcdir;;
 
1138
*)
 
1139
  case $ac_srcdir in
 
1140
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1141
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1142
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1143
  esac;;
 
1144
esac
 
1145
case $ac_abs_builddir in
 
1146
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1147
*)
 
1148
  case $ac_top_srcdir in
 
1149
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1150
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1151
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1152
  esac;;
 
1153
esac
 
1154
 
 
1155
    cd $ac_dir
 
1156
    # Check for guested configure; otherwise get Cygnus style configure.
 
1157
    if test -f $ac_srcdir/configure.gnu; then
 
1158
      echo
 
1159
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1160
    elif test -f $ac_srcdir/configure; then
 
1161
      echo
 
1162
      $SHELL $ac_srcdir/configure  --help=recursive
 
1163
    elif test -f $ac_srcdir/configure.ac ||
 
1164
           test -f $ac_srcdir/configure.in; then
 
1165
      echo
 
1166
      $ac_configure --help
 
1167
    else
 
1168
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1169
    fi
 
1170
    cd "$ac_popdir"
 
1171
  done
 
1172
fi
 
1173
 
 
1174
test -n "$ac_init_help" && exit 0
 
1175
if $ac_init_version; then
 
1176
  cat <<\_ACEOF
 
1177
 
 
1178
Copyright (C) 2003 Free Software Foundation, Inc.
 
1179
This configure script is free software; the Free Software Foundation
 
1180
gives unlimited permission to copy, distribute and modify it.
 
1181
_ACEOF
 
1182
  exit 0
 
1183
fi
 
1184
exec 5>config.log
 
1185
cat >&5 <<_ACEOF
 
1186
This file contains any messages produced by compilers while
 
1187
running configure, to aid debugging if configure makes a mistake.
 
1188
 
 
1189
It was created by $as_me, which was
 
1190
generated by GNU Autoconf 2.59.  Invocation command line was
 
1191
 
 
1192
  $ $0 $@
 
1193
 
 
1194
_ACEOF
 
1195
{
 
1196
cat <<_ASUNAME
 
1197
## --------- ##
 
1198
## Platform. ##
 
1199
## --------- ##
 
1200
 
 
1201
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1202
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1203
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1204
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1205
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1206
 
 
1207
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1208
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1209
 
 
1210
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1211
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1212
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1213
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1214
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1215
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1216
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1217
 
 
1218
_ASUNAME
 
1219
 
 
1220
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1221
for as_dir in $PATH
 
1222
do
 
1223
  IFS=$as_save_IFS
 
1224
  test -z "$as_dir" && as_dir=.
 
1225
  echo "PATH: $as_dir"
 
1226
done
 
1227
 
 
1228
} >&5
 
1229
 
 
1230
cat >&5 <<_ACEOF
 
1231
 
 
1232
 
 
1233
## ----------- ##
 
1234
## Core tests. ##
 
1235
## ----------- ##
 
1236
 
 
1237
_ACEOF
 
1238
 
 
1239
 
 
1240
# Keep a trace of the command line.
 
1241
# Strip out --no-create and --no-recursion so they do not pile up.
 
1242
# Strip out --silent because we don't want to record it for future runs.
 
1243
# Also quote any args containing shell meta-characters.
 
1244
# Make two passes to allow for proper duplicate-argument suppression.
 
1245
ac_configure_args=
 
1246
ac_configure_args0=
 
1247
ac_configure_args1=
 
1248
ac_sep=
 
1249
ac_must_keep_next=false
 
1250
for ac_pass in 1 2
 
1251
do
 
1252
  for ac_arg
 
1253
  do
 
1254
    case $ac_arg in
 
1255
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1256
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1257
    | -silent | --silent | --silen | --sile | --sil)
 
1258
      continue ;;
 
1259
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1260
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1261
    esac
 
1262
    case $ac_pass in
 
1263
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1264
    2)
 
1265
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1266
      if test $ac_must_keep_next = true; then
 
1267
        ac_must_keep_next=false # Got value, back to normal.
 
1268
      else
 
1269
        case $ac_arg in
 
1270
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1271
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1272
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1273
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1274
            case "$ac_configure_args0 " in
 
1275
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1276
            esac
 
1277
            ;;
 
1278
          -* ) ac_must_keep_next=true ;;
 
1279
        esac
 
1280
      fi
 
1281
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1282
      # Get rid of the leading space.
 
1283
      ac_sep=" "
 
1284
      ;;
 
1285
    esac
 
1286
  done
 
1287
done
 
1288
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1289
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1290
 
 
1291
# When interrupted or exit'd, cleanup temporary files, and complete
 
1292
# config.log.  We remove comments because anyway the quotes in there
 
1293
# would cause problems or look ugly.
 
1294
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1295
# such as our DU 5.0 friend, will then `close' the trap.
 
1296
trap 'exit_status=$?
 
1297
  # Save into config.log some information that might help in debugging.
 
1298
  {
 
1299
    echo
 
1300
 
 
1301
    cat <<\_ASBOX
 
1302
## ---------------- ##
 
1303
## Cache variables. ##
 
1304
## ---------------- ##
 
1305
_ASBOX
 
1306
    echo
 
1307
    # The following way of writing the cache mishandles newlines in values,
 
1308
{
 
1309
  (set) 2>&1 |
 
1310
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1311
    *ac_space=\ *)
 
1312
      sed -n \
 
1313
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1314
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1315
      ;;
 
1316
    *)
 
1317
      sed -n \
 
1318
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1319
      ;;
 
1320
    esac;
 
1321
}
 
1322
    echo
 
1323
 
 
1324
    cat <<\_ASBOX
 
1325
## ----------------- ##
 
1326
## Output variables. ##
 
1327
## ----------------- ##
 
1328
_ASBOX
 
1329
    echo
 
1330
    for ac_var in $ac_subst_vars
 
1331
    do
 
1332
      eval ac_val=$`echo $ac_var`
 
1333
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1334
    done | sort
 
1335
    echo
 
1336
 
 
1337
    if test -n "$ac_subst_files"; then
 
1338
      cat <<\_ASBOX
 
1339
## ------------- ##
 
1340
## Output files. ##
 
1341
## ------------- ##
 
1342
_ASBOX
 
1343
      echo
 
1344
      for ac_var in $ac_subst_files
 
1345
      do
 
1346
        eval ac_val=$`echo $ac_var`
 
1347
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1348
      done | sort
 
1349
      echo
 
1350
    fi
 
1351
 
 
1352
    if test -s confdefs.h; then
 
1353
      cat <<\_ASBOX
 
1354
## ----------- ##
 
1355
## confdefs.h. ##
 
1356
## ----------- ##
 
1357
_ASBOX
 
1358
      echo
 
1359
      sed "/^$/d" confdefs.h | sort
 
1360
      echo
 
1361
    fi
 
1362
    test "$ac_signal" != 0 &&
 
1363
      echo "$as_me: caught signal $ac_signal"
 
1364
    echo "$as_me: exit $exit_status"
 
1365
  } >&5
 
1366
  rm -f core *.core &&
 
1367
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1368
    exit $exit_status
 
1369
     ' 0
 
1370
for ac_signal in 1 2 13 15; do
 
1371
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1372
done
 
1373
ac_signal=0
 
1374
 
 
1375
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1376
rm -rf conftest* confdefs.h
 
1377
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1378
echo >confdefs.h
 
1379
 
 
1380
# Predefined preprocessor variables.
 
1381
 
 
1382
cat >>confdefs.h <<_ACEOF
 
1383
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1384
_ACEOF
 
1385
 
 
1386
 
 
1387
cat >>confdefs.h <<_ACEOF
 
1388
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1389
_ACEOF
 
1390
 
 
1391
 
 
1392
cat >>confdefs.h <<_ACEOF
 
1393
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1394
_ACEOF
 
1395
 
 
1396
 
 
1397
cat >>confdefs.h <<_ACEOF
 
1398
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1399
_ACEOF
 
1400
 
 
1401
 
 
1402
cat >>confdefs.h <<_ACEOF
 
1403
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1404
_ACEOF
 
1405
 
 
1406
 
 
1407
# Let the site file select an alternate cache file if it wants to.
670
1408
# Prefer explicitly selected file to automatically selected ones.
671
1409
if test -z "$CONFIG_SITE"; then
672
1410
  if test "x$prefix" != xNONE; then
677
1415
fi
678
1416
for ac_site_file in $CONFIG_SITE; do
679
1417
  if test -r "$ac_site_file"; then
680
 
    echo "loading site script $ac_site_file"
 
1418
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1419
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1420
    sed 's/^/| /' "$ac_site_file" >&5
681
1421
    . "$ac_site_file"
682
1422
  fi
683
1423
done
684
1424
 
685
1425
if test -r "$cache_file"; then
686
 
  echo "loading cache $cache_file"
687
 
  . $cache_file
 
1426
  # Some versions of bash will fail to source /dev/null (special
 
1427
  # files actually), so we avoid doing that.
 
1428
  if test -f "$cache_file"; then
 
1429
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1430
echo "$as_me: loading cache $cache_file" >&6;}
 
1431
    case $cache_file in
 
1432
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1433
      *)                      . ./$cache_file;;
 
1434
    esac
 
1435
  fi
688
1436
else
689
 
  echo "creating cache $cache_file"
690
 
  > $cache_file
 
1437
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1438
echo "$as_me: creating cache $cache_file" >&6;}
 
1439
  >$cache_file
 
1440
fi
 
1441
 
 
1442
# Check that the precious variables saved in the cache have kept the same
 
1443
# value.
 
1444
ac_cache_corrupted=false
 
1445
for ac_var in `(set) 2>&1 |
 
1446
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1447
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1448
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1449
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1450
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1451
  case $ac_old_set,$ac_new_set in
 
1452
    set,)
 
1453
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1454
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1455
      ac_cache_corrupted=: ;;
 
1456
    ,set)
 
1457
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1458
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1459
      ac_cache_corrupted=: ;;
 
1460
    ,);;
 
1461
    *)
 
1462
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1463
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1464
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1465
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1466
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1467
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1468
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1469
        ac_cache_corrupted=:
 
1470
      fi;;
 
1471
  esac
 
1472
  # Pass precious variables to config.status.
 
1473
  if test "$ac_new_set" = set; then
 
1474
    case $ac_new_val in
 
1475
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1476
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1477
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1478
    esac
 
1479
    case " $ac_configure_args " in
 
1480
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1481
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1482
    esac
 
1483
  fi
 
1484
done
 
1485
if $ac_cache_corrupted; then
 
1486
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1487
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1488
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1489
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1490
   { (exit 1); exit 1; }; }
691
1491
fi
692
1492
 
693
1493
ac_ext=c
694
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
695
1494
ac_cpp='$CPP $CPPFLAGS'
696
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
697
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
698
 
cross_compiling=$ac_cv_prog_cc_cross
699
 
 
700
 
ac_exeext=
701
 
ac_objext=o
702
 
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
703
 
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
704
 
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
705
 
    ac_n= ac_c='
706
 
' ac_t='        '
707
 
  else
708
 
    ac_n=-n ac_c= ac_t=
709
 
  fi
710
 
else
711
 
  ac_n= ac_c='\c' ac_t=
712
 
fi
713
 
 
714
 
 
 
1495
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1496
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1497
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
 
 
1514
 
 
1515
 
 
1516
 
 
1517
am__api_version="1.7"
715
1518
ac_aux_dir=
716
 
for ac_dir in build $srcdir/build; do
 
1519
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
717
1520
  if test -f $ac_dir/install-sh; then
718
1521
    ac_aux_dir=$ac_dir
719
1522
    ac_install_sh="$ac_aux_dir/install-sh -c"
722
1525
    ac_aux_dir=$ac_dir
723
1526
    ac_install_sh="$ac_aux_dir/install.sh -c"
724
1527
    break
 
1528
  elif test -f $ac_dir/shtool; then
 
1529
    ac_aux_dir=$ac_dir
 
1530
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1531
    break
725
1532
  fi
726
1533
done
727
1534
if test -z "$ac_aux_dir"; then
728
 
  { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
729
 
fi
730
 
ac_config_guess=$ac_aux_dir/config.guess
731
 
ac_config_sub=$ac_aux_dir/config.sub
732
 
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
733
 
 
734
 
 
735
 
 
736
 
 
737
 
 
738
 
# Do some error checking and defaulting for the host and target type.
739
 
# The inputs are:
740
 
#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
741
 
#
742
 
# The rules are:
743
 
# 1. You are not allowed to specify --host, --target, and nonopt at the
744
 
#    same time.
745
 
# 2. Host defaults to nonopt.
746
 
# 3. If nonopt is not specified, then host defaults to the current host,
747
 
#    as determined by config.guess.
748
 
# 4. Target and build default to nonopt.
749
 
# 5. If nonopt is not specified, then target and build default to host.
750
 
 
751
 
# The aliases save the names the user supplied, while $host etc.
752
 
# will get canonicalized.
753
 
case $host---$target---$nonopt in
754
 
NONE---*---* | *---NONE---* | *---*---NONE) ;;
755
 
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
756
 
esac
757
 
 
758
 
 
759
 
# Make sure we can run config.sub.
760
 
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
761
 
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
762
 
fi
763
 
 
764
 
echo $ac_n "checking host system type""... $ac_c" 1>&6
765
 
echo "configure:766: checking host system type" >&5
766
 
 
767
 
host_alias=$host
768
 
case "$host_alias" in
769
 
NONE)
770
 
  case $nonopt in
771
 
  NONE)
772
 
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
773
 
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
774
 
    fi ;;
775
 
  *) host_alias=$nonopt ;;
776
 
  esac ;;
777
 
esac
778
 
 
779
 
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
780
 
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
781
 
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
782
 
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
783
 
echo "$ac_t""$host" 1>&6
784
 
 
785
 
echo $ac_n "checking target system type""... $ac_c" 1>&6
786
 
echo "configure:787: checking target system type" >&5
787
 
 
788
 
target_alias=$target
789
 
case "$target_alias" in
790
 
NONE)
791
 
  case $nonopt in
792
 
  NONE) target_alias=$host_alias ;;
793
 
  *) target_alias=$nonopt ;;
794
 
  esac ;;
795
 
esac
796
 
 
797
 
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
798
 
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
799
 
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
800
 
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
801
 
echo "$ac_t""$target" 1>&6
802
 
 
803
 
echo $ac_n "checking build system type""... $ac_c" 1>&6
804
 
echo "configure:805: checking build system type" >&5
805
 
 
806
 
build_alias=$build
807
 
case "$build_alias" in
808
 
NONE)
809
 
  case $nonopt in
810
 
  NONE) build_alias=$host_alias ;;
811
 
  *) build_alias=$nonopt ;;
812
 
  esac ;;
813
 
esac
814
 
 
815
 
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
816
 
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
817
 
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
818
 
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
819
 
echo "$ac_t""$build" 1>&6
820
 
 
821
 
test "$host_alias" != "$target_alias" &&
822
 
  test "$program_prefix$program_suffix$program_transform_name" = \
823
 
    NONENONEs,x,x, &&
824
 
  program_prefix=${target_alias}-
 
1535
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1536
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1537
   { (exit 1); exit 1; }; }
 
1538
fi
 
1539
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1540
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1541
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
825
1542
 
826
1543
# Find a good install program.  We prefer a C program (faster),
827
1544
# so one script is as good as another.  But avoid the broken or
830
1547
# SunOS /usr/etc/install
831
1548
# IRIX /sbin/install
832
1549
# AIX /bin/install
 
1550
# AmigaOS /C/install, which installs bootblocks on floppy discs
833
1551
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
834
1552
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
835
1553
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1554
# OS/2's system install, which has a completely different semantic
836
1555
# ./install, which can be erroneously created by make from ./install.sh.
837
 
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
838
 
echo "configure:839: checking for a BSD compatible install" >&5
 
1556
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1557
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
839
1558
if test -z "$INSTALL"; then
840
 
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
841
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1559
if test "${ac_cv_path_install+set}" = set; then
 
1560
  echo $ECHO_N "(cached) $ECHO_C" >&6
842
1561
else
843
 
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
844
 
  for ac_dir in $PATH; do
845
 
    # Account for people who put trailing slashes in PATH elements.
846
 
    case "$ac_dir/" in
847
 
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
848
 
    *)
849
 
      # OSF1 and SCO ODT 3.0 have their own names for install.
850
 
      # Don't use installbsd from OSF since it installs stuff as root
851
 
      # by default.
852
 
      for ac_prog in ginstall scoinst install; do
853
 
        if test -f $ac_dir/$ac_prog; then
 
1562
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1563
for as_dir in $PATH
 
1564
do
 
1565
  IFS=$as_save_IFS
 
1566
  test -z "$as_dir" && as_dir=.
 
1567
  # Account for people who put trailing slashes in PATH elements.
 
1568
case $as_dir/ in
 
1569
  ./ | .// | /cC/* | \
 
1570
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1571
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1572
  /usr/ucb/* ) ;;
 
1573
  *)
 
1574
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1575
    # Don't use installbsd from OSF since it installs stuff as root
 
1576
    # by default.
 
1577
    for ac_prog in ginstall scoinst install; do
 
1578
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1579
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
854
1580
          if test $ac_prog = install &&
855
 
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 
1581
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
856
1582
            # AIX install.  It has an incompatible calling convention.
857
1583
            :
 
1584
          elif test $ac_prog = install &&
 
1585
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1586
            # program-specific install script used by HP pwplus--don't use.
 
1587
            :
858
1588
          else
859
 
            ac_cv_path_install="$ac_dir/$ac_prog -c"
860
 
            break 2
 
1589
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1590
            break 3
861
1591
          fi
862
1592
        fi
863
1593
      done
864
 
      ;;
865
 
    esac
866
 
  done
867
 
  IFS="$ac_save_IFS"
 
1594
    done
 
1595
    ;;
 
1596
esac
 
1597
done
 
1598
 
868
1599
 
869
1600
fi
870
1601
  if test "${ac_cv_path_install+set}" = set; then
871
 
    INSTALL="$ac_cv_path_install"
 
1602
    INSTALL=$ac_cv_path_install
872
1603
  else
873
1604
    # As a last resort, use the slow shell script.  We don't cache a
874
1605
    # path for INSTALL within a source directory, because that will
875
1606
    # break other packages using the cache if that directory is
876
1607
    # removed, or if the path is relative.
877
 
    INSTALL="$ac_install_sh"
 
1608
    INSTALL=$ac_install_sh
878
1609
  fi
879
1610
fi
880
 
echo "$ac_t""$INSTALL" 1>&6
 
1611
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1612
echo "${ECHO_T}$INSTALL" >&6
881
1613
 
882
1614
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
883
1615
# It thinks the first close brace ends the variable substitution.
884
1616
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
885
1617
 
886
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
1618
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
887
1619
 
888
1620
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
889
1621
 
890
 
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
891
 
echo "configure:892: checking whether build environment is sane" >&5
 
1622
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1623
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
892
1624
# Just in case
893
1625
sleep 1
894
 
echo timestamp > conftestfile
 
1626
echo timestamp > conftest.file
895
1627
# Do `set' in a subshell so we don't clobber the current shell's
896
1628
# arguments.  Must try -L first in case configure is actually a
897
1629
# symlink; some systems play weird games with the mod time of symlinks
898
1630
# (eg FreeBSD returns the mod time of the symlink's containing
899
1631
# directory).
900
1632
if (
901
 
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
 
1633
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
902
1634
   if test "$*" = "X"; then
903
1635
      # -L didn't work.
904
 
      set X `ls -t $srcdir/configure conftestfile`
 
1636
      set X `ls -t $srcdir/configure conftest.file`
905
1637
   fi
906
 
   if test "$*" != "X $srcdir/configure conftestfile" \
907
 
      && test "$*" != "X conftestfile $srcdir/configure"; then
 
1638
   rm -f conftest.file
 
1639
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1640
      && test "$*" != "X conftest.file $srcdir/configure"; then
908
1641
 
909
1642
      # If neither matched, then we have a broken ls.  This can happen
910
1643
      # if, for instance, CONFIG_SHELL is bash and it inherits a
911
1644
      # broken ls alias from the environment.  This has actually
912
1645
      # happened.  Such a system could not be considered "sane".
913
 
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
914
 
alias in your environment" 1>&2; exit 1; }
 
1646
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1647
alias in your environment" >&5
 
1648
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1649
alias in your environment" >&2;}
 
1650
   { (exit 1); exit 1; }; }
915
1651
   fi
916
1652
 
917
 
   test "$2" = conftestfile
 
1653
   test "$2" = conftest.file
918
1654
   )
919
1655
then
920
1656
   # Ok.
921
1657
   :
922
1658
else
923
 
   { echo "configure: error: newly created file is older than distributed files!
924
 
Check your system clock" 1>&2; exit 1; }
925
 
fi
926
 
rm -f conftest*
927
 
echo "$ac_t""yes" 1>&6
928
 
if test "$program_transform_name" = s,x,x,; then
929
 
  program_transform_name=
930
 
else
931
 
  # Double any \ or $.  echo might interpret backslashes.
932
 
  cat <<\EOF_SED > conftestsed
933
 
s,\\,\\\\,g; s,\$,$$,g
934
 
EOF_SED
935
 
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
936
 
  rm -f conftestsed
937
 
fi
 
1659
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1660
Check your system clock" >&5
 
1661
echo "$as_me: error: newly created file is older than distributed files!
 
1662
Check your system clock" >&2;}
 
1663
   { (exit 1); exit 1; }; }
 
1664
fi
 
1665
echo "$as_me:$LINENO: result: yes" >&5
 
1666
echo "${ECHO_T}yes" >&6
938
1667
test "$program_prefix" != NONE &&
939
 
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
 
1668
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
940
1669
# Use a double $ so make ignores it.
941
1670
test "$program_suffix" != NONE &&
942
 
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
943
 
 
944
 
# sed with no file args requires a program.
945
 
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
946
 
 
947
 
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
948
 
echo "configure:949: checking whether ${MAKE-make} sets \${MAKE}" >&5
949
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
950
 
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
951
 
  echo $ac_n "(cached) $ac_c" 1>&6
952
 
else
953
 
  cat > conftestmake <<\EOF
 
1671
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1672
# Double any \ or $.  echo might interpret backslashes.
 
1673
# By default was `s,x,x', remove it if useless.
 
1674
cat <<\_ACEOF >conftest.sed
 
1675
s/[\\$]/&&/g;s/;s,x,x,$//
 
1676
_ACEOF
 
1677
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1678
rm conftest.sed
 
1679
 
 
1680
 
 
1681
# expand $ac_aux_dir to an absolute path
 
1682
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1683
 
 
1684
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1685
# Use eval to expand $SHELL
 
1686
if eval "$MISSING --run true"; then
 
1687
  am_missing_run="$MISSING --run "
 
1688
else
 
1689
  am_missing_run=
 
1690
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1691
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1692
fi
 
1693
 
 
1694
for ac_prog in gawk mawk nawk awk
 
1695
do
 
1696
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1697
set dummy $ac_prog; ac_word=$2
 
1698
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1699
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1700
if test "${ac_cv_prog_AWK+set}" = set; then
 
1701
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1702
else
 
1703
  if test -n "$AWK"; then
 
1704
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1705
else
 
1706
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1707
for as_dir in $PATH
 
1708
do
 
1709
  IFS=$as_save_IFS
 
1710
  test -z "$as_dir" && as_dir=.
 
1711
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1712
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1713
    ac_cv_prog_AWK="$ac_prog"
 
1714
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1715
    break 2
 
1716
  fi
 
1717
done
 
1718
done
 
1719
 
 
1720
fi
 
1721
fi
 
1722
AWK=$ac_cv_prog_AWK
 
1723
if test -n "$AWK"; then
 
1724
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1725
echo "${ECHO_T}$AWK" >&6
 
1726
else
 
1727
  echo "$as_me:$LINENO: result: no" >&5
 
1728
echo "${ECHO_T}no" >&6
 
1729
fi
 
1730
 
 
1731
  test -n "$AWK" && break
 
1732
done
 
1733
 
 
1734
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1735
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1736
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1737
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1738
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1739
else
 
1740
  cat >conftest.make <<\_ACEOF
954
1741
all:
955
 
        @echo 'ac_maketemp="${MAKE}"'
956
 
EOF
 
1742
        @echo 'ac_maketemp="$(MAKE)"'
 
1743
_ACEOF
957
1744
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
958
 
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
 
1745
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
959
1746
if test -n "$ac_maketemp"; then
960
1747
  eval ac_cv_prog_make_${ac_make}_set=yes
961
1748
else
962
1749
  eval ac_cv_prog_make_${ac_make}_set=no
963
1750
fi
964
 
rm -f conftestmake
 
1751
rm -f conftest.make
965
1752
fi
966
1753
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
967
 
  echo "$ac_t""yes" 1>&6
 
1754
  echo "$as_me:$LINENO: result: yes" >&5
 
1755
echo "${ECHO_T}yes" >&6
968
1756
  SET_MAKE=
969
1757
else
970
 
  echo "$ac_t""no" 1>&6
 
1758
  echo "$as_me:$LINENO: result: no" >&5
 
1759
echo "${ECHO_T}no" >&6
971
1760
  SET_MAKE="MAKE=${MAKE-make}"
972
1761
fi
973
1762
 
974
 
 
975
 
PACKAGE=pcsc-lite
976
 
 
977
 
VERSION=1.0.2.beta5
978
 
 
979
 
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
980
 
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
981
 
fi
982
 
cat >> confdefs.h <<EOF
 
1763
rm -rf .tst 2>/dev/null
 
1764
mkdir .tst 2>/dev/null
 
1765
if test -d .tst; then
 
1766
  am__leading_dot=.
 
1767
else
 
1768
  am__leading_dot=_
 
1769
fi
 
1770
rmdir .tst 2>/dev/null
 
1771
 
 
1772
 # test to see if srcdir already configured
 
1773
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1774
   test -f $srcdir/config.status; then
 
1775
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1776
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1777
   { (exit 1); exit 1; }; }
 
1778
fi
 
1779
 
 
1780
# test whether we have cygpath
 
1781
if test -z "$CYGPATH_W"; then
 
1782
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1783
    CYGPATH_W='cygpath -w'
 
1784
  else
 
1785
    CYGPATH_W=echo
 
1786
  fi
 
1787
fi
 
1788
 
 
1789
 
 
1790
# Define the identity of the package.
 
1791
 PACKAGE=pcsc-lite
 
1792
 VERSION=1.2.9-beta2
 
1793
 
 
1794
 
 
1795
cat >>confdefs.h <<_ACEOF
983
1796
#define PACKAGE "$PACKAGE"
984
 
EOF
985
 
 
986
 
cat >> confdefs.h <<EOF
 
1797
_ACEOF
 
1798
 
 
1799
 
 
1800
cat >>confdefs.h <<_ACEOF
987
1801
#define VERSION "$VERSION"
988
 
EOF
989
 
 
990
 
 
991
 
 
992
 
missing_dir=`cd $ac_aux_dir && pwd`
993
 
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
994
 
echo "configure:995: checking for working aclocal" >&5
995
 
# Run test in a subshell; some versions of sh will print an error if
996
 
# an executable is not found, even if stderr is redirected.
997
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
998
 
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
999
 
   ACLOCAL=aclocal
1000
 
   echo "$ac_t""found" 1>&6
1001
 
else
1002
 
   ACLOCAL="$missing_dir/missing aclocal"
1003
 
   echo "$ac_t""missing" 1>&6
1004
 
fi
1005
 
 
1006
 
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1007
 
echo "configure:1008: checking for working autoconf" >&5
1008
 
# Run test in a subshell; some versions of sh will print an error if
1009
 
# an executable is not found, even if stderr is redirected.
1010
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
1011
 
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1012
 
   AUTOCONF=autoconf
1013
 
   echo "$ac_t""found" 1>&6
1014
 
else
1015
 
   AUTOCONF="$missing_dir/missing autoconf"
1016
 
   echo "$ac_t""missing" 1>&6
1017
 
fi
1018
 
 
1019
 
echo $ac_n "checking for working automake""... $ac_c" 1>&6
1020
 
echo "configure:1021: checking for working automake" >&5
1021
 
# Run test in a subshell; some versions of sh will print an error if
1022
 
# an executable is not found, even if stderr is redirected.
1023
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
1024
 
if (automake --version) < /dev/null > /dev/null 2>&1; then
1025
 
   AUTOMAKE=automake
1026
 
   echo "$ac_t""found" 1>&6
1027
 
else
1028
 
   AUTOMAKE="$missing_dir/missing automake"
1029
 
   echo "$ac_t""missing" 1>&6
1030
 
fi
1031
 
 
1032
 
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1033
 
echo "configure:1034: checking for working autoheader" >&5
1034
 
# Run test in a subshell; some versions of sh will print an error if
1035
 
# an executable is not found, even if stderr is redirected.
1036
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
1037
 
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1038
 
   AUTOHEADER=autoheader
1039
 
   echo "$ac_t""found" 1>&6
1040
 
else
1041
 
   AUTOHEADER="$missing_dir/missing autoheader"
1042
 
   echo "$ac_t""missing" 1>&6
1043
 
fi
1044
 
 
1045
 
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1046
 
echo "configure:1047: checking for working makeinfo" >&5
1047
 
# Run test in a subshell; some versions of sh will print an error if
1048
 
# an executable is not found, even if stderr is redirected.
1049
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
1050
 
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1051
 
   MAKEINFO=makeinfo
1052
 
   echo "$ac_t""found" 1>&6
1053
 
else
1054
 
   MAKEINFO="$missing_dir/missing makeinfo"
1055
 
   echo "$ac_t""missing" 1>&6
1056
 
fi
1057
 
 
1058
 
 
1059
 
 
1060
 
 
1061
 
 
1062
 
 
1063
 
#AC_DISABLE_FAST_INSTALL
1064
 
#AC_DISABLE_SHARED
1065
 
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1066
 
echo "configure:1067: checking whether to enable maintainer-specific portions of Makefiles" >&5
1067
 
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1068
 
if test "${enable_maintainer_mode+set}" = set; then
1069
 
  enableval="$enable_maintainer_mode"
1070
 
  USE_MAINTAINER_MODE=$enableval
1071
 
else
1072
 
  USE_MAINTAINER_MODE=no
1073
 
fi
1074
 
 
1075
 
  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1076
 
  
1077
 
 
1078
 
if test $USE_MAINTAINER_MODE = yes; then
1079
 
  MAINTAINER_MODE_TRUE=
1080
 
  MAINTAINER_MODE_FALSE='#'
1081
 
else
1082
 
  MAINTAINER_MODE_TRUE='#'
1083
 
  MAINTAINER_MODE_FALSE=
1084
 
fi
1085
 
  MAINT=$MAINTAINER_MODE_TRUE
1086
 
  
1087
 
 
1088
 
 
1089
 
case "${build_os}" in
1090
 
 linux-gnu)     arch=linux ;;
1091
 
 *bsd*)         arch=bsd ;;
1092
 
 *darwin*)      arch=darwin ;;
1093
 
 *solaris*)     arch=solaris ;;
1094
 
 *hpux*)        arch=hpux ;;
1095
 
 *) { echo "configure: error: Operating system ${build_os} not supported" 1>&2; exit 1; } ;;
1096
 
esac
1097
 
 
1098
 
 
1099
 
 
1100
 
if test x$arch = xlinux; then
1101
 
  PCSC_ARCH_LINUX_TRUE=
1102
 
  PCSC_ARCH_LINUX_FALSE='#'
1103
 
else
1104
 
  PCSC_ARCH_LINUX_TRUE='#'
1105
 
  PCSC_ARCH_LINUX_FALSE=
1106
 
fi
1107
 
 
1108
 
 
1109
 
if test x$arch = xbsd; then
1110
 
  PCSC_ARCH_BSD_TRUE=
1111
 
  PCSC_ARCH_BSD_FALSE='#'
1112
 
else
1113
 
  PCSC_ARCH_BSD_TRUE='#'
1114
 
  PCSC_ARCH_BSD_FALSE=
1115
 
fi
1116
 
 
1117
 
 
1118
 
if test x$arch = xdarwin; then
1119
 
  PCSC_ARCH_OSX_TRUE=
1120
 
  PCSC_ARCH_OSX_FALSE='#'
1121
 
else
1122
 
  PCSC_ARCH_OSX_TRUE='#'
1123
 
  PCSC_ARCH_OSX_FALSE=
1124
 
fi
1125
 
 
1126
 
 
1127
 
if test x$arch = xsolaris; then
1128
 
  PCSC_ARCH_SOLARIS_TRUE=
1129
 
  PCSC_ARCH_SOLARIS_FALSE='#'
1130
 
else
1131
 
  PCSC_ARCH_SOLARIS_TRUE='#'
1132
 
  PCSC_ARCH_SOLARIS_FALSE=
1133
 
fi
1134
 
 
1135
 
 
1136
 
if test x$arch = xhpux; then
1137
 
  PCSC_ARCH_HPUX_TRUE=
1138
 
  PCSC_ARCH_HPUX_FALSE='#'
1139
 
else
1140
 
  PCSC_ARCH_HPUX_TRUE='#'
1141
 
  PCSC_ARCH_HPUX_FALSE=
1142
 
fi
1143
 
 
1144
 
if test x$arch = xlinux ; then
1145
 
  cat >> confdefs.h <<\EOF
1146
 
#define PCSC_TARGET_LINUX 1
1147
 
EOF
1148
 
 
1149
 
fi
1150
 
 
1151
 
if test x$arch = xbsd ; then
1152
 
  cat >> confdefs.h <<\EOF
1153
 
#define PCSC_TARGET_BSD 1
1154
 
EOF
1155
 
 
1156
 
fi
1157
 
 
1158
 
if test x$arch = xdarwin ; then
1159
 
  cat >> confdefs.h <<\EOF
1160
 
#define PCSC_TARGET_OSX 1
1161
 
EOF
1162
 
 
1163
 
fi
1164
 
 
1165
 
if test x$arch = xsolaris ; then
1166
 
  cat >> confdefs.h <<\EOF
1167
 
#define PCSC_TARGET_SOLARIS 1
1168
 
EOF
1169
 
 
1170
 
fi
1171
 
 
1172
 
if test x$arch = xhpux ; then
1173
 
  cat >> confdefs.h <<\EOF
1174
 
#define PCSC_TARGET_HPUX 1
1175
 
EOF
1176
 
 
1177
 
fi
1178
 
 
1179
 
 
1180
 
# Extract the first word of "gcc", so it can be a program name with args.
 
1802
_ACEOF
 
1803
 
 
1804
# Some tools Automake needs.
 
1805
 
 
1806
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1807
 
 
1808
 
 
1809
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1810
 
 
1811
 
 
1812
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1813
 
 
1814
 
 
1815
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1816
 
 
1817
 
 
1818
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1819
 
 
1820
 
 
1821
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1822
 
 
1823
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1824
 
 
1825
# Installed binaries are usually stripped using `strip' when the user
 
1826
# run `make install-strip'.  However `strip' might not be the right
 
1827
# tool to use in cross-compilation environments, therefore Automake
 
1828
# will honor the `STRIP' environment variable to overrule this program.
 
1829
if test "$cross_compiling" != no; then
 
1830
  if test -n "$ac_tool_prefix"; then
 
1831
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1832
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1833
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1834
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1835
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1836
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1837
else
 
1838
  if test -n "$STRIP"; then
 
1839
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1840
else
 
1841
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1842
for as_dir in $PATH
 
1843
do
 
1844
  IFS=$as_save_IFS
 
1845
  test -z "$as_dir" && as_dir=.
 
1846
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1847
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1848
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1849
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1850
    break 2
 
1851
  fi
 
1852
done
 
1853
done
 
1854
 
 
1855
fi
 
1856
fi
 
1857
STRIP=$ac_cv_prog_STRIP
 
1858
if test -n "$STRIP"; then
 
1859
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1860
echo "${ECHO_T}$STRIP" >&6
 
1861
else
 
1862
  echo "$as_me:$LINENO: result: no" >&5
 
1863
echo "${ECHO_T}no" >&6
 
1864
fi
 
1865
 
 
1866
fi
 
1867
if test -z "$ac_cv_prog_STRIP"; then
 
1868
  ac_ct_STRIP=$STRIP
 
1869
  # Extract the first word of "strip", so it can be a program name with args.
 
1870
set dummy strip; ac_word=$2
 
1871
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1872
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1873
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1874
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1875
else
 
1876
  if test -n "$ac_ct_STRIP"; then
 
1877
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1878
else
 
1879
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1880
for as_dir in $PATH
 
1881
do
 
1882
  IFS=$as_save_IFS
 
1883
  test -z "$as_dir" && as_dir=.
 
1884
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1885
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1886
    ac_cv_prog_ac_ct_STRIP="strip"
 
1887
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1888
    break 2
 
1889
  fi
 
1890
done
 
1891
done
 
1892
 
 
1893
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1894
fi
 
1895
fi
 
1896
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1897
if test -n "$ac_ct_STRIP"; then
 
1898
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1899
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1900
else
 
1901
  echo "$as_me:$LINENO: result: no" >&5
 
1902
echo "${ECHO_T}no" >&6
 
1903
fi
 
1904
 
 
1905
  STRIP=$ac_ct_STRIP
 
1906
else
 
1907
  STRIP="$ac_cv_prog_STRIP"
 
1908
fi
 
1909
 
 
1910
fi
 
1911
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1912
 
 
1913
# We need awk for the "check" target.  The system "awk" is bad on
 
1914
# some platforms.
 
1915
 
 
1916
 
 
1917
 
 
1918
          ac_config_headers="$ac_config_headers config.h"
 
1919
 
 
1920
 
 
1921
 
 
1922
 
 
1923
 
 
1924
 
 
1925
# Make sure we can run config.sub.
 
1926
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1927
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1928
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1929
   { (exit 1); exit 1; }; }
 
1930
 
 
1931
echo "$as_me:$LINENO: checking build system type" >&5
 
1932
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1933
if test "${ac_cv_build+set}" = set; then
 
1934
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1935
else
 
1936
  ac_cv_build_alias=$build_alias
 
1937
test -z "$ac_cv_build_alias" &&
 
1938
  ac_cv_build_alias=`$ac_config_guess`
 
1939
test -z "$ac_cv_build_alias" &&
 
1940
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1941
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1942
   { (exit 1); exit 1; }; }
 
1943
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1944
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1945
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1946
   { (exit 1); exit 1; }; }
 
1947
 
 
1948
fi
 
1949
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1950
echo "${ECHO_T}$ac_cv_build" >&6
 
1951
build=$ac_cv_build
 
1952
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1953
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1954
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1955
 
 
1956
 
 
1957
echo "$as_me:$LINENO: checking host system type" >&5
 
1958
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1959
if test "${ac_cv_host+set}" = set; then
 
1960
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1961
else
 
1962
  ac_cv_host_alias=$host_alias
 
1963
test -z "$ac_cv_host_alias" &&
 
1964
  ac_cv_host_alias=$ac_cv_build_alias
 
1965
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1966
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1967
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1968
   { (exit 1); exit 1; }; }
 
1969
 
 
1970
fi
 
1971
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1972
echo "${ECHO_T}$ac_cv_host" >&6
 
1973
host=$ac_cv_host
 
1974
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1975
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1976
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1977
 
 
1978
 
 
1979
ac_ext=c
 
1980
ac_cpp='$CPP $CPPFLAGS'
 
1981
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1982
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1983
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1984
if test -n "$ac_tool_prefix"; then
 
1985
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1986
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1987
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1988
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1989
if test "${ac_cv_prog_CC+set}" = set; then
 
1990
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1991
else
 
1992
  if test -n "$CC"; then
 
1993
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1994
else
 
1995
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1996
for as_dir in $PATH
 
1997
do
 
1998
  IFS=$as_save_IFS
 
1999
  test -z "$as_dir" && as_dir=.
 
2000
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2001
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2002
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2003
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2004
    break 2
 
2005
  fi
 
2006
done
 
2007
done
 
2008
 
 
2009
fi
 
2010
fi
 
2011
CC=$ac_cv_prog_CC
 
2012
if test -n "$CC"; then
 
2013
  echo "$as_me:$LINENO: result: $CC" >&5
 
2014
echo "${ECHO_T}$CC" >&6
 
2015
else
 
2016
  echo "$as_me:$LINENO: result: no" >&5
 
2017
echo "${ECHO_T}no" >&6
 
2018
fi
 
2019
 
 
2020
fi
 
2021
if test -z "$ac_cv_prog_CC"; then
 
2022
  ac_ct_CC=$CC
 
2023
  # Extract the first word of "gcc", so it can be a program name with args.
1181
2024
set dummy gcc; ac_word=$2
1182
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1183
 
echo "configure:1184: checking for $ac_word" >&5
1184
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1185
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
2025
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2026
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2027
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2028
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2029
else
 
2030
  if test -n "$ac_ct_CC"; then
 
2031
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2032
else
 
2033
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2034
for as_dir in $PATH
 
2035
do
 
2036
  IFS=$as_save_IFS
 
2037
  test -z "$as_dir" && as_dir=.
 
2038
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2039
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2040
    ac_cv_prog_ac_ct_CC="gcc"
 
2041
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2042
    break 2
 
2043
  fi
 
2044
done
 
2045
done
 
2046
 
 
2047
fi
 
2048
fi
 
2049
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2050
if test -n "$ac_ct_CC"; then
 
2051
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2052
echo "${ECHO_T}$ac_ct_CC" >&6
 
2053
else
 
2054
  echo "$as_me:$LINENO: result: no" >&5
 
2055
echo "${ECHO_T}no" >&6
 
2056
fi
 
2057
 
 
2058
  CC=$ac_ct_CC
 
2059
else
 
2060
  CC="$ac_cv_prog_CC"
 
2061
fi
 
2062
 
 
2063
if test -z "$CC"; then
 
2064
  if test -n "$ac_tool_prefix"; then
 
2065
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2066
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2067
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2068
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2069
if test "${ac_cv_prog_CC+set}" = set; then
 
2070
  echo $ECHO_N "(cached) $ECHO_C" >&6
1186
2071
else
1187
2072
  if test -n "$CC"; then
1188
2073
  ac_cv_prog_CC="$CC" # Let the user override the test.
1189
2074
else
1190
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1191
 
  ac_dummy="$PATH"
1192
 
  for ac_dir in $ac_dummy; do
1193
 
    test -z "$ac_dir" && ac_dir=.
1194
 
    if test -f $ac_dir/$ac_word; then
1195
 
      ac_cv_prog_CC="gcc"
1196
 
      break
1197
 
    fi
1198
 
  done
1199
 
  IFS="$ac_save_ifs"
1200
 
fi
1201
 
fi
1202
 
CC="$ac_cv_prog_CC"
 
2075
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2076
for as_dir in $PATH
 
2077
do
 
2078
  IFS=$as_save_IFS
 
2079
  test -z "$as_dir" && as_dir=.
 
2080
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2081
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2082
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2083
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2084
    break 2
 
2085
  fi
 
2086
done
 
2087
done
 
2088
 
 
2089
fi
 
2090
fi
 
2091
CC=$ac_cv_prog_CC
1203
2092
if test -n "$CC"; then
1204
 
  echo "$ac_t""$CC" 1>&6
1205
 
else
1206
 
  echo "$ac_t""no" 1>&6
1207
 
fi
1208
 
 
 
2093
  echo "$as_me:$LINENO: result: $CC" >&5
 
2094
echo "${ECHO_T}$CC" >&6
 
2095
else
 
2096
  echo "$as_me:$LINENO: result: no" >&5
 
2097
echo "${ECHO_T}no" >&6
 
2098
fi
 
2099
 
 
2100
fi
 
2101
if test -z "$ac_cv_prog_CC"; then
 
2102
  ac_ct_CC=$CC
 
2103
  # Extract the first word of "cc", so it can be a program name with args.
 
2104
set dummy cc; ac_word=$2
 
2105
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2106
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2107
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2108
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2109
else
 
2110
  if test -n "$ac_ct_CC"; then
 
2111
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2112
else
 
2113
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2114
for as_dir in $PATH
 
2115
do
 
2116
  IFS=$as_save_IFS
 
2117
  test -z "$as_dir" && as_dir=.
 
2118
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2119
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2120
    ac_cv_prog_ac_ct_CC="cc"
 
2121
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2122
    break 2
 
2123
  fi
 
2124
done
 
2125
done
 
2126
 
 
2127
fi
 
2128
fi
 
2129
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2130
if test -n "$ac_ct_CC"; then
 
2131
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2132
echo "${ECHO_T}$ac_ct_CC" >&6
 
2133
else
 
2134
  echo "$as_me:$LINENO: result: no" >&5
 
2135
echo "${ECHO_T}no" >&6
 
2136
fi
 
2137
 
 
2138
  CC=$ac_ct_CC
 
2139
else
 
2140
  CC="$ac_cv_prog_CC"
 
2141
fi
 
2142
 
 
2143
fi
1209
2144
if test -z "$CC"; then
1210
2145
  # Extract the first word of "cc", so it can be a program name with args.
1211
2146
set dummy cc; ac_word=$2
1212
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1213
 
echo "configure:1214: checking for $ac_word" >&5
1214
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1215
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
2147
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2148
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2149
if test "${ac_cv_prog_CC+set}" = set; then
 
2150
  echo $ECHO_N "(cached) $ECHO_C" >&6
1216
2151
else
1217
2152
  if test -n "$CC"; then
1218
2153
  ac_cv_prog_CC="$CC" # Let the user override the test.
1219
2154
else
1220
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1221
2155
  ac_prog_rejected=no
1222
 
  ac_dummy="$PATH"
1223
 
  for ac_dir in $ac_dummy; do
1224
 
    test -z "$ac_dir" && ac_dir=.
1225
 
    if test -f $ac_dir/$ac_word; then
1226
 
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1227
 
        ac_prog_rejected=yes
1228
 
        continue
1229
 
      fi
1230
 
      ac_cv_prog_CC="cc"
1231
 
      break
1232
 
    fi
1233
 
  done
1234
 
  IFS="$ac_save_ifs"
 
2156
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2157
for as_dir in $PATH
 
2158
do
 
2159
  IFS=$as_save_IFS
 
2160
  test -z "$as_dir" && as_dir=.
 
2161
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2162
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2163
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2164
       ac_prog_rejected=yes
 
2165
       continue
 
2166
     fi
 
2167
    ac_cv_prog_CC="cc"
 
2168
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2169
    break 2
 
2170
  fi
 
2171
done
 
2172
done
 
2173
 
1235
2174
if test $ac_prog_rejected = yes; then
1236
2175
  # We found a bogon in the path, so make sure we never use it.
1237
2176
  set dummy $ac_cv_prog_CC
1238
2177
  shift
1239
 
  if test $# -gt 0; then
 
2178
  if test $# != 0; then
1240
2179
    # We chose a different compiler from the bogus one.
1241
2180
    # However, it has the same basename, so the bogon will be chosen
1242
2181
    # first if we set CC to just the basename; use the full file name.
1243
2182
    shift
1244
 
    set dummy "$ac_dir/$ac_word" "$@"
1245
 
    shift
1246
 
    ac_cv_prog_CC="$@"
 
2183
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1247
2184
  fi
1248
2185
fi
1249
2186
fi
1250
2187
fi
1251
 
CC="$ac_cv_prog_CC"
 
2188
CC=$ac_cv_prog_CC
1252
2189
if test -n "$CC"; then
1253
 
  echo "$ac_t""$CC" 1>&6
 
2190
  echo "$as_me:$LINENO: result: $CC" >&5
 
2191
echo "${ECHO_T}$CC" >&6
1254
2192
else
1255
 
  echo "$ac_t""no" 1>&6
 
2193
  echo "$as_me:$LINENO: result: no" >&5
 
2194
echo "${ECHO_T}no" >&6
1256
2195
fi
1257
2196
 
1258
 
  if test -z "$CC"; then
1259
 
    case "`uname -s`" in
1260
 
    *win32* | *WIN32*)
1261
 
      # Extract the first word of "cl", so it can be a program name with args.
1262
 
set dummy cl; ac_word=$2
1263
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1264
 
echo "configure:1265: checking for $ac_word" >&5
1265
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1266
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
2197
fi
 
2198
if test -z "$CC"; then
 
2199
  if test -n "$ac_tool_prefix"; then
 
2200
  for ac_prog in cl
 
2201
  do
 
2202
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2203
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2204
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2205
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2206
if test "${ac_cv_prog_CC+set}" = set; then
 
2207
  echo $ECHO_N "(cached) $ECHO_C" >&6
1267
2208
else
1268
2209
  if test -n "$CC"; then
1269
2210
  ac_cv_prog_CC="$CC" # Let the user override the test.
1270
2211
else
1271
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1272
 
  ac_dummy="$PATH"
1273
 
  for ac_dir in $ac_dummy; do
1274
 
    test -z "$ac_dir" && ac_dir=.
1275
 
    if test -f $ac_dir/$ac_word; then
1276
 
      ac_cv_prog_CC="cl"
1277
 
      break
1278
 
    fi
 
2212
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2213
for as_dir in $PATH
 
2214
do
 
2215
  IFS=$as_save_IFS
 
2216
  test -z "$as_dir" && as_dir=.
 
2217
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2218
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2219
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2220
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2221
    break 2
 
2222
  fi
 
2223
done
 
2224
done
 
2225
 
 
2226
fi
 
2227
fi
 
2228
CC=$ac_cv_prog_CC
 
2229
if test -n "$CC"; then
 
2230
  echo "$as_me:$LINENO: result: $CC" >&5
 
2231
echo "${ECHO_T}$CC" >&6
 
2232
else
 
2233
  echo "$as_me:$LINENO: result: no" >&5
 
2234
echo "${ECHO_T}no" >&6
 
2235
fi
 
2236
 
 
2237
    test -n "$CC" && break
1279
2238
  done
1280
 
  IFS="$ac_save_ifs"
1281
 
fi
1282
 
fi
1283
 
CC="$ac_cv_prog_CC"
1284
 
if test -n "$CC"; then
1285
 
  echo "$ac_t""$CC" 1>&6
1286
 
else
1287
 
  echo "$ac_t""no" 1>&6
1288
 
fi
1289
 
 ;;
1290
 
    esac
 
2239
fi
 
2240
if test -z "$CC"; then
 
2241
  ac_ct_CC=$CC
 
2242
  for ac_prog in cl
 
2243
do
 
2244
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2245
set dummy $ac_prog; ac_word=$2
 
2246
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2247
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2248
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2249
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2250
else
 
2251
  if test -n "$ac_ct_CC"; then
 
2252
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2253
else
 
2254
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2255
for as_dir in $PATH
 
2256
do
 
2257
  IFS=$as_save_IFS
 
2258
  test -z "$as_dir" && as_dir=.
 
2259
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2260
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2261
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2262
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2263
    break 2
1291
2264
  fi
1292
 
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1293
 
fi
1294
 
 
1295
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1296
 
echo "configure:1297: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1297
 
 
1298
 
ac_ext=c
1299
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1300
 
ac_cpp='$CPP $CPPFLAGS'
1301
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1302
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1303
 
cross_compiling=$ac_cv_prog_cc_cross
1304
 
 
1305
 
cat > conftest.$ac_ext << EOF
1306
 
 
1307
 
#line 1308 "configure"
1308
 
#include "confdefs.h"
1309
 
 
1310
 
main(){return(0);}
1311
 
EOF
1312
 
if { (eval echo configure:1313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1313
 
  ac_cv_prog_cc_works=yes
1314
 
  # If we can't run a trivial program, we are probably using a cross compiler.
1315
 
  if (./conftest; exit) 2>/dev/null; then
1316
 
    ac_cv_prog_cc_cross=no
 
2265
done
 
2266
done
 
2267
 
 
2268
fi
 
2269
fi
 
2270
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2271
if test -n "$ac_ct_CC"; then
 
2272
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2273
echo "${ECHO_T}$ac_ct_CC" >&6
 
2274
else
 
2275
  echo "$as_me:$LINENO: result: no" >&5
 
2276
echo "${ECHO_T}no" >&6
 
2277
fi
 
2278
 
 
2279
  test -n "$ac_ct_CC" && break
 
2280
done
 
2281
 
 
2282
  CC=$ac_ct_CC
 
2283
fi
 
2284
 
 
2285
fi
 
2286
 
 
2287
 
 
2288
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2289
See \`config.log' for more details." >&5
 
2290
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2291
See \`config.log' for more details." >&2;}
 
2292
   { (exit 1); exit 1; }; }
 
2293
 
 
2294
# Provide some information about the compiler.
 
2295
echo "$as_me:$LINENO:" \
 
2296
     "checking for C compiler version" >&5
 
2297
ac_compiler=`set X $ac_compile; echo $2`
 
2298
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2299
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2300
  ac_status=$?
 
2301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2302
  (exit $ac_status); }
 
2303
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2304
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2305
  ac_status=$?
 
2306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2307
  (exit $ac_status); }
 
2308
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2309
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2310
  ac_status=$?
 
2311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2312
  (exit $ac_status); }
 
2313
 
 
2314
cat >conftest.$ac_ext <<_ACEOF
 
2315
/* confdefs.h.  */
 
2316
_ACEOF
 
2317
cat confdefs.h >>conftest.$ac_ext
 
2318
cat >>conftest.$ac_ext <<_ACEOF
 
2319
/* end confdefs.h.  */
 
2320
 
 
2321
int
 
2322
main ()
 
2323
{
 
2324
 
 
2325
  ;
 
2326
  return 0;
 
2327
}
 
2328
_ACEOF
 
2329
ac_clean_files_save=$ac_clean_files
 
2330
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2331
# Try to create an executable without -o first, disregard a.out.
 
2332
# It will help us diagnose broken compilers, and finding out an intuition
 
2333
# of exeext.
 
2334
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2335
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2336
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2337
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2338
  (eval $ac_link_default) 2>&5
 
2339
  ac_status=$?
 
2340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2341
  (exit $ac_status); }; then
 
2342
  # Find the output, starting from the most likely.  This scheme is
 
2343
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2344
# resort.
 
2345
 
 
2346
# Be careful to initialize this variable, since it used to be cached.
 
2347
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2348
ac_cv_exeext=
 
2349
# b.out is created by i960 compilers.
 
2350
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2351
do
 
2352
  test -f "$ac_file" || continue
 
2353
  case $ac_file in
 
2354
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2355
        ;;
 
2356
    conftest.$ac_ext )
 
2357
        # This is the source file.
 
2358
        ;;
 
2359
    [ab].out )
 
2360
        # We found the default executable, but exeext='' is most
 
2361
        # certainly right.
 
2362
        break;;
 
2363
    *.* )
 
2364
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2365
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2366
        # but it would be cool to find out if it's true.  Does anybody
 
2367
        # maintain Libtool? --akim.
 
2368
        export ac_cv_exeext
 
2369
        break;;
 
2370
    * )
 
2371
        break;;
 
2372
  esac
 
2373
done
 
2374
else
 
2375
  echo "$as_me: failed program was:" >&5
 
2376
sed 's/^/| /' conftest.$ac_ext >&5
 
2377
 
 
2378
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2379
See \`config.log' for more details." >&5
 
2380
echo "$as_me: error: C compiler cannot create executables
 
2381
See \`config.log' for more details." >&2;}
 
2382
   { (exit 77); exit 77; }; }
 
2383
fi
 
2384
 
 
2385
ac_exeext=$ac_cv_exeext
 
2386
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2387
echo "${ECHO_T}$ac_file" >&6
 
2388
 
 
2389
# Check the compiler produces executables we can run.  If not, either
 
2390
# the compiler is broken, or we cross compile.
 
2391
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2392
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2393
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2394
# If not cross compiling, check that we can run a simple program.
 
2395
if test "$cross_compiling" != yes; then
 
2396
  if { ac_try='./$ac_file'
 
2397
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2398
  (eval $ac_try) 2>&5
 
2399
  ac_status=$?
 
2400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2401
  (exit $ac_status); }; }; then
 
2402
    cross_compiling=no
1317
2403
  else
1318
 
    ac_cv_prog_cc_cross=yes
 
2404
    if test "$cross_compiling" = maybe; then
 
2405
        cross_compiling=yes
 
2406
    else
 
2407
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2408
If you meant to cross compile, use \`--host'.
 
2409
See \`config.log' for more details." >&5
 
2410
echo "$as_me: error: cannot run C compiled programs.
 
2411
If you meant to cross compile, use \`--host'.
 
2412
See \`config.log' for more details." >&2;}
 
2413
   { (exit 1); exit 1; }; }
 
2414
    fi
1319
2415
  fi
1320
 
else
1321
 
  echo "configure: failed program was:" >&5
1322
 
  cat conftest.$ac_ext >&5
1323
 
  ac_cv_prog_cc_works=no
1324
 
fi
1325
 
rm -fr conftest*
1326
 
ac_ext=c
1327
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1328
 
ac_cpp='$CPP $CPPFLAGS'
1329
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1330
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1331
 
cross_compiling=$ac_cv_prog_cc_cross
1332
 
 
1333
 
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1334
 
if test $ac_cv_prog_cc_works = no; then
1335
 
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1336
 
fi
1337
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1338
 
echo "configure:1339: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1339
 
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1340
 
cross_compiling=$ac_cv_prog_cc_cross
1341
 
 
1342
 
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1343
 
echo "configure:1344: checking whether we are using GNU C" >&5
1344
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1345
 
  echo $ac_n "(cached) $ac_c" 1>&6
1346
 
else
1347
 
  cat > conftest.c <<EOF
1348
 
#ifdef __GNUC__
1349
 
  yes;
 
2416
fi
 
2417
echo "$as_me:$LINENO: result: yes" >&5
 
2418
echo "${ECHO_T}yes" >&6
 
2419
 
 
2420
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2421
ac_clean_files=$ac_clean_files_save
 
2422
# Check the compiler produces executables we can run.  If not, either
 
2423
# the compiler is broken, or we cross compile.
 
2424
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2425
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2426
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2427
echo "${ECHO_T}$cross_compiling" >&6
 
2428
 
 
2429
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2430
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2431
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2432
  (eval $ac_link) 2>&5
 
2433
  ac_status=$?
 
2434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2435
  (exit $ac_status); }; then
 
2436
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2437
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2438
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2439
# `rm'.
 
2440
for ac_file in conftest.exe conftest conftest.*; do
 
2441
  test -f "$ac_file" || continue
 
2442
  case $ac_file in
 
2443
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2444
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2445
          export ac_cv_exeext
 
2446
          break;;
 
2447
    * ) break;;
 
2448
  esac
 
2449
done
 
2450
else
 
2451
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2452
See \`config.log' for more details." >&5
 
2453
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2454
See \`config.log' for more details." >&2;}
 
2455
   { (exit 1); exit 1; }; }
 
2456
fi
 
2457
 
 
2458
rm -f conftest$ac_cv_exeext
 
2459
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2460
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2461
 
 
2462
rm -f conftest.$ac_ext
 
2463
EXEEXT=$ac_cv_exeext
 
2464
ac_exeext=$EXEEXT
 
2465
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2466
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2467
if test "${ac_cv_objext+set}" = set; then
 
2468
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2469
else
 
2470
  cat >conftest.$ac_ext <<_ACEOF
 
2471
/* confdefs.h.  */
 
2472
_ACEOF
 
2473
cat confdefs.h >>conftest.$ac_ext
 
2474
cat >>conftest.$ac_ext <<_ACEOF
 
2475
/* end confdefs.h.  */
 
2476
 
 
2477
int
 
2478
main ()
 
2479
{
 
2480
 
 
2481
  ;
 
2482
  return 0;
 
2483
}
 
2484
_ACEOF
 
2485
rm -f conftest.o conftest.obj
 
2486
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2487
  (eval $ac_compile) 2>&5
 
2488
  ac_status=$?
 
2489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2490
  (exit $ac_status); }; then
 
2491
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2492
  case $ac_file in
 
2493
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2494
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2495
       break;;
 
2496
  esac
 
2497
done
 
2498
else
 
2499
  echo "$as_me: failed program was:" >&5
 
2500
sed 's/^/| /' conftest.$ac_ext >&5
 
2501
 
 
2502
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2503
See \`config.log' for more details." >&5
 
2504
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2505
See \`config.log' for more details." >&2;}
 
2506
   { (exit 1); exit 1; }; }
 
2507
fi
 
2508
 
 
2509
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2510
fi
 
2511
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2512
echo "${ECHO_T}$ac_cv_objext" >&6
 
2513
OBJEXT=$ac_cv_objext
 
2514
ac_objext=$OBJEXT
 
2515
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2516
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2517
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2518
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2519
else
 
2520
  cat >conftest.$ac_ext <<_ACEOF
 
2521
/* confdefs.h.  */
 
2522
_ACEOF
 
2523
cat confdefs.h >>conftest.$ac_ext
 
2524
cat >>conftest.$ac_ext <<_ACEOF
 
2525
/* end confdefs.h.  */
 
2526
 
 
2527
int
 
2528
main ()
 
2529
{
 
2530
#ifndef __GNUC__
 
2531
       choke me
1350
2532
#endif
1351
 
EOF
1352
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1353
 
  ac_cv_prog_gcc=yes
1354
 
else
1355
 
  ac_cv_prog_gcc=no
1356
 
fi
1357
 
fi
1358
 
 
1359
 
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1360
 
 
1361
 
if test $ac_cv_prog_gcc = yes; then
1362
 
  GCC=yes
1363
 
else
1364
 
  GCC=
1365
 
fi
1366
 
 
1367
 
ac_test_CFLAGS="${CFLAGS+set}"
1368
 
ac_save_CFLAGS="$CFLAGS"
1369
 
CFLAGS=
1370
 
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1371
 
echo "configure:1372: checking whether ${CC-cc} accepts -g" >&5
1372
 
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1373
 
  echo $ac_n "(cached) $ac_c" 1>&6
1374
 
else
1375
 
  echo 'void f(){}' > conftest.c
1376
 
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
2533
 
 
2534
  ;
 
2535
  return 0;
 
2536
}
 
2537
_ACEOF
 
2538
rm -f conftest.$ac_objext
 
2539
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2540
  (eval $ac_compile) 2>conftest.er1
 
2541
  ac_status=$?
 
2542
  grep -v '^ *+' conftest.er1 >conftest.err
 
2543
  rm -f conftest.er1
 
2544
  cat conftest.err >&5
 
2545
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2546
  (exit $ac_status); } &&
 
2547
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2548
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2549
  (eval $ac_try) 2>&5
 
2550
  ac_status=$?
 
2551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2552
  (exit $ac_status); }; } &&
 
2553
         { ac_try='test -s conftest.$ac_objext'
 
2554
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2555
  (eval $ac_try) 2>&5
 
2556
  ac_status=$?
 
2557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2558
  (exit $ac_status); }; }; then
 
2559
  ac_compiler_gnu=yes
 
2560
else
 
2561
  echo "$as_me: failed program was:" >&5
 
2562
sed 's/^/| /' conftest.$ac_ext >&5
 
2563
 
 
2564
ac_compiler_gnu=no
 
2565
fi
 
2566
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2567
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2568
 
 
2569
fi
 
2570
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2571
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2572
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2573
ac_test_CFLAGS=${CFLAGS+set}
 
2574
ac_save_CFLAGS=$CFLAGS
 
2575
CFLAGS="-g"
 
2576
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2577
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2578
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2579
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2580
else
 
2581
  cat >conftest.$ac_ext <<_ACEOF
 
2582
/* confdefs.h.  */
 
2583
_ACEOF
 
2584
cat confdefs.h >>conftest.$ac_ext
 
2585
cat >>conftest.$ac_ext <<_ACEOF
 
2586
/* end confdefs.h.  */
 
2587
 
 
2588
int
 
2589
main ()
 
2590
{
 
2591
 
 
2592
  ;
 
2593
  return 0;
 
2594
}
 
2595
_ACEOF
 
2596
rm -f conftest.$ac_objext
 
2597
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2598
  (eval $ac_compile) 2>conftest.er1
 
2599
  ac_status=$?
 
2600
  grep -v '^ *+' conftest.er1 >conftest.err
 
2601
  rm -f conftest.er1
 
2602
  cat conftest.err >&5
 
2603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2604
  (exit $ac_status); } &&
 
2605
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2606
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2607
  (eval $ac_try) 2>&5
 
2608
  ac_status=$?
 
2609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2610
  (exit $ac_status); }; } &&
 
2611
         { ac_try='test -s conftest.$ac_objext'
 
2612
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2613
  (eval $ac_try) 2>&5
 
2614
  ac_status=$?
 
2615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2616
  (exit $ac_status); }; }; then
1377
2617
  ac_cv_prog_cc_g=yes
1378
2618
else
1379
 
  ac_cv_prog_cc_g=no
1380
 
fi
1381
 
rm -f conftest*
1382
 
 
1383
 
fi
1384
 
 
1385
 
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
2619
  echo "$as_me: failed program was:" >&5
 
2620
sed 's/^/| /' conftest.$ac_ext >&5
 
2621
 
 
2622
ac_cv_prog_cc_g=no
 
2623
fi
 
2624
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2625
fi
 
2626
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2627
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1386
2628
if test "$ac_test_CFLAGS" = set; then
1387
 
  CFLAGS="$ac_save_CFLAGS"
 
2629
  CFLAGS=$ac_save_CFLAGS
1388
2630
elif test $ac_cv_prog_cc_g = yes; then
1389
2631
  if test "$GCC" = yes; then
1390
2632
    CFLAGS="-g -O2"
1398
2640
    CFLAGS=
1399
2641
  fi
1400
2642
fi
1401
 
 
1402
 
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1403
 
echo "configure:1404: checking how to run the C preprocessor" >&5
 
2643
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2644
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2645
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2646
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2647
else
 
2648
  ac_cv_prog_cc_stdc=no
 
2649
ac_save_CC=$CC
 
2650
cat >conftest.$ac_ext <<_ACEOF
 
2651
/* confdefs.h.  */
 
2652
_ACEOF
 
2653
cat confdefs.h >>conftest.$ac_ext
 
2654
cat >>conftest.$ac_ext <<_ACEOF
 
2655
/* end confdefs.h.  */
 
2656
#include <stdarg.h>
 
2657
#include <stdio.h>
 
2658
#include <sys/types.h>
 
2659
#include <sys/stat.h>
 
2660
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2661
struct buf { int x; };
 
2662
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2663
static char *e (p, i)
 
2664
     char **p;
 
2665
     int i;
 
2666
{
 
2667
  return p[i];
 
2668
}
 
2669
static char *f (char * (*g) (char **, int), char **p, ...)
 
2670
{
 
2671
  char *s;
 
2672
  va_list v;
 
2673
  va_start (v,p);
 
2674
  s = g (p, va_arg (v,int));
 
2675
  va_end (v);
 
2676
  return s;
 
2677
}
 
2678
 
 
2679
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2680
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2681
   These don't provoke an error unfortunately, instead are silently treated
 
2682
   as 'x'.  The following induces an error, until -std1 is added to get
 
2683
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2684
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2685
   that's true only with -std1.  */
 
2686
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2687
 
 
2688
int test (int i, double x);
 
2689
struct s1 {int (*f) (int a);};
 
2690
struct s2 {int (*f) (double a);};
 
2691
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2692
int argc;
 
2693
char **argv;
 
2694
int
 
2695
main ()
 
2696
{
 
2697
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2698
  ;
 
2699
  return 0;
 
2700
}
 
2701
_ACEOF
 
2702
# Don't try gcc -ansi; that turns off useful extensions and
 
2703
# breaks some systems' header files.
 
2704
# AIX                   -qlanglvl=ansi
 
2705
# Ultrix and OSF/1      -std1
 
2706
# HP-UX 10.20 and later -Ae
 
2707
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2708
# SVR4                  -Xc -D__EXTENSIONS__
 
2709
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2710
do
 
2711
  CC="$ac_save_CC $ac_arg"
 
2712
  rm -f conftest.$ac_objext
 
2713
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2714
  (eval $ac_compile) 2>conftest.er1
 
2715
  ac_status=$?
 
2716
  grep -v '^ *+' conftest.er1 >conftest.err
 
2717
  rm -f conftest.er1
 
2718
  cat conftest.err >&5
 
2719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2720
  (exit $ac_status); } &&
 
2721
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2722
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2723
  (eval $ac_try) 2>&5
 
2724
  ac_status=$?
 
2725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2726
  (exit $ac_status); }; } &&
 
2727
         { ac_try='test -s conftest.$ac_objext'
 
2728
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2729
  (eval $ac_try) 2>&5
 
2730
  ac_status=$?
 
2731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2732
  (exit $ac_status); }; }; then
 
2733
  ac_cv_prog_cc_stdc=$ac_arg
 
2734
break
 
2735
else
 
2736
  echo "$as_me: failed program was:" >&5
 
2737
sed 's/^/| /' conftest.$ac_ext >&5
 
2738
 
 
2739
fi
 
2740
rm -f conftest.err conftest.$ac_objext
 
2741
done
 
2742
rm -f conftest.$ac_ext conftest.$ac_objext
 
2743
CC=$ac_save_CC
 
2744
 
 
2745
fi
 
2746
 
 
2747
case "x$ac_cv_prog_cc_stdc" in
 
2748
  x|xno)
 
2749
    echo "$as_me:$LINENO: result: none needed" >&5
 
2750
echo "${ECHO_T}none needed" >&6 ;;
 
2751
  *)
 
2752
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2753
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2754
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2755
esac
 
2756
 
 
2757
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2758
# in C++ we need to declare it.  In case someone uses the same compiler
 
2759
# for both compiling C and C++ we need to have the C++ compiler decide
 
2760
# the declaration of exit, since it's the most demanding environment.
 
2761
cat >conftest.$ac_ext <<_ACEOF
 
2762
#ifndef __cplusplus
 
2763
  choke me
 
2764
#endif
 
2765
_ACEOF
 
2766
rm -f conftest.$ac_objext
 
2767
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2768
  (eval $ac_compile) 2>conftest.er1
 
2769
  ac_status=$?
 
2770
  grep -v '^ *+' conftest.er1 >conftest.err
 
2771
  rm -f conftest.er1
 
2772
  cat conftest.err >&5
 
2773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2774
  (exit $ac_status); } &&
 
2775
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2776
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2777
  (eval $ac_try) 2>&5
 
2778
  ac_status=$?
 
2779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2780
  (exit $ac_status); }; } &&
 
2781
         { ac_try='test -s conftest.$ac_objext'
 
2782
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2783
  (eval $ac_try) 2>&5
 
2784
  ac_status=$?
 
2785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2786
  (exit $ac_status); }; }; then
 
2787
  for ac_declaration in \
 
2788
   '' \
 
2789
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2790
   'extern "C" void std::exit (int); using std::exit;' \
 
2791
   'extern "C" void exit (int) throw ();' \
 
2792
   'extern "C" void exit (int);' \
 
2793
   'void exit (int);'
 
2794
do
 
2795
  cat >conftest.$ac_ext <<_ACEOF
 
2796
/* confdefs.h.  */
 
2797
_ACEOF
 
2798
cat confdefs.h >>conftest.$ac_ext
 
2799
cat >>conftest.$ac_ext <<_ACEOF
 
2800
/* end confdefs.h.  */
 
2801
$ac_declaration
 
2802
#include <stdlib.h>
 
2803
int
 
2804
main ()
 
2805
{
 
2806
exit (42);
 
2807
  ;
 
2808
  return 0;
 
2809
}
 
2810
_ACEOF
 
2811
rm -f conftest.$ac_objext
 
2812
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2813
  (eval $ac_compile) 2>conftest.er1
 
2814
  ac_status=$?
 
2815
  grep -v '^ *+' conftest.er1 >conftest.err
 
2816
  rm -f conftest.er1
 
2817
  cat conftest.err >&5
 
2818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2819
  (exit $ac_status); } &&
 
2820
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2821
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2822
  (eval $ac_try) 2>&5
 
2823
  ac_status=$?
 
2824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2825
  (exit $ac_status); }; } &&
 
2826
         { ac_try='test -s conftest.$ac_objext'
 
2827
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2828
  (eval $ac_try) 2>&5
 
2829
  ac_status=$?
 
2830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2831
  (exit $ac_status); }; }; then
 
2832
  :
 
2833
else
 
2834
  echo "$as_me: failed program was:" >&5
 
2835
sed 's/^/| /' conftest.$ac_ext >&5
 
2836
 
 
2837
continue
 
2838
fi
 
2839
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2840
  cat >conftest.$ac_ext <<_ACEOF
 
2841
/* confdefs.h.  */
 
2842
_ACEOF
 
2843
cat confdefs.h >>conftest.$ac_ext
 
2844
cat >>conftest.$ac_ext <<_ACEOF
 
2845
/* end confdefs.h.  */
 
2846
$ac_declaration
 
2847
int
 
2848
main ()
 
2849
{
 
2850
exit (42);
 
2851
  ;
 
2852
  return 0;
 
2853
}
 
2854
_ACEOF
 
2855
rm -f conftest.$ac_objext
 
2856
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2857
  (eval $ac_compile) 2>conftest.er1
 
2858
  ac_status=$?
 
2859
  grep -v '^ *+' conftest.er1 >conftest.err
 
2860
  rm -f conftest.er1
 
2861
  cat conftest.err >&5
 
2862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2863
  (exit $ac_status); } &&
 
2864
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
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); }; } &&
 
2870
         { ac_try='test -s conftest.$ac_objext'
 
2871
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2872
  (eval $ac_try) 2>&5
 
2873
  ac_status=$?
 
2874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2875
  (exit $ac_status); }; }; then
 
2876
  break
 
2877
else
 
2878
  echo "$as_me: failed program was:" >&5
 
2879
sed 's/^/| /' conftest.$ac_ext >&5
 
2880
 
 
2881
fi
 
2882
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2883
done
 
2884
rm -f conftest*
 
2885
if test -n "$ac_declaration"; then
 
2886
  echo '#ifdef __cplusplus' >>confdefs.h
 
2887
  echo $ac_declaration      >>confdefs.h
 
2888
  echo '#endif'             >>confdefs.h
 
2889
fi
 
2890
 
 
2891
else
 
2892
  echo "$as_me: failed program was:" >&5
 
2893
sed 's/^/| /' conftest.$ac_ext >&5
 
2894
 
 
2895
fi
 
2896
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2897
ac_ext=c
 
2898
ac_cpp='$CPP $CPPFLAGS'
 
2899
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2900
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2901
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2902
DEPDIR="${am__leading_dot}deps"
 
2903
 
 
2904
          ac_config_commands="$ac_config_commands depfiles"
 
2905
 
 
2906
 
 
2907
am_make=${MAKE-make}
 
2908
cat > confinc << 'END'
 
2909
am__doit:
 
2910
        @echo done
 
2911
.PHONY: am__doit
 
2912
END
 
2913
# If we don't find an include directive, just comment out the code.
 
2914
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2915
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2916
am__include="#"
 
2917
am__quote=
 
2918
_am_result=none
 
2919
# First try GNU make style include.
 
2920
echo "include confinc" > confmf
 
2921
# We grep out `Entering directory' and `Leaving directory'
 
2922
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2923
# In particular we don't look at `^make:' because GNU make might
 
2924
# be invoked under some other name (usually "gmake"), in which
 
2925
# case it prints its new name instead of `make'.
 
2926
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2927
   am__include=include
 
2928
   am__quote=
 
2929
   _am_result=GNU
 
2930
fi
 
2931
# Now try BSD make style include.
 
2932
if test "$am__include" = "#"; then
 
2933
   echo '.include "confinc"' > confmf
 
2934
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2935
      am__include=.include
 
2936
      am__quote="\""
 
2937
      _am_result=BSD
 
2938
   fi
 
2939
fi
 
2940
 
 
2941
 
 
2942
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2943
echo "${ECHO_T}$_am_result" >&6
 
2944
rm -f confinc confmf
 
2945
 
 
2946
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2947
if test "${enable_dependency_tracking+set}" = set; then
 
2948
  enableval="$enable_dependency_tracking"
 
2949
 
 
2950
fi;
 
2951
if test "x$enable_dependency_tracking" != xno; then
 
2952
  am_depcomp="$ac_aux_dir/depcomp"
 
2953
  AMDEPBACKSLASH='\'
 
2954
fi
 
2955
 
 
2956
 
 
2957
if test "x$enable_dependency_tracking" != xno; then
 
2958
  AMDEP_TRUE=
 
2959
  AMDEP_FALSE='#'
 
2960
else
 
2961
  AMDEP_TRUE='#'
 
2962
  AMDEP_FALSE=
 
2963
fi
 
2964
 
 
2965
 
 
2966
 
 
2967
 
 
2968
depcc="$CC"   am_compiler_list=
 
2969
 
 
2970
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2971
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
2972
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
2973
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2974
else
 
2975
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2976
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2977
  # making bogus files that we don't know about and never remove.  For
 
2978
  # instance it was reported that on HP-UX the gcc test will end up
 
2979
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2980
  # in D'.
 
2981
  mkdir conftest.dir
 
2982
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2983
  # using a relative directory.
 
2984
  cp "$am_depcomp" conftest.dir
 
2985
  cd conftest.dir
 
2986
  # We will build objects and dependencies in a subdirectory because
 
2987
  # it helps to detect inapplicable dependency modes.  For instance
 
2988
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
2989
  # side effect of compilation, but ICC will put the dependencies in
 
2990
  # the current directory while Tru64 will put them in the object
 
2991
  # directory.
 
2992
  mkdir sub
 
2993
 
 
2994
  am_cv_CC_dependencies_compiler_type=none
 
2995
  if test "$am_compiler_list" = ""; then
 
2996
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
2997
  fi
 
2998
  for depmode in $am_compiler_list; do
 
2999
    # Setup a source with many dependencies, because some compilers
 
3000
    # like to wrap large dependency lists on column 80 (with \), and
 
3001
    # we should not choose a depcomp mode which is confused by this.
 
3002
    #
 
3003
    # We need to recreate these files for each test, as the compiler may
 
3004
    # overwrite some of them when testing with obscure command lines.
 
3005
    # This happens at least with the AIX C compiler.
 
3006
    : > sub/conftest.c
 
3007
    for i in 1 2 3 4 5 6; do
 
3008
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3009
      : > sub/conftst$i.h
 
3010
    done
 
3011
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3012
 
 
3013
    case $depmode in
 
3014
    nosideeffect)
 
3015
      # after this tag, mechanisms are not by side-effect, so they'll
 
3016
      # only be used when explicitly requested
 
3017
      if test "x$enable_dependency_tracking" = xyes; then
 
3018
        continue
 
3019
      else
 
3020
        break
 
3021
      fi
 
3022
      ;;
 
3023
    none) break ;;
 
3024
    esac
 
3025
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3026
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3027
    # handle `-M -o', and we need to detect this.
 
3028
    if depmode=$depmode \
 
3029
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3030
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3031
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3032
         >/dev/null 2>conftest.err &&
 
3033
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3034
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3035
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3036
      # icc doesn't choke on unknown options, it will just issue warnings
 
3037
      # (even with -Werror).  So we grep stderr for any message
 
3038
      # that says an option was ignored.
 
3039
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
3040
        am_cv_CC_dependencies_compiler_type=$depmode
 
3041
        break
 
3042
      fi
 
3043
    fi
 
3044
  done
 
3045
 
 
3046
  cd ..
 
3047
  rm -rf conftest.dir
 
3048
else
 
3049
  am_cv_CC_dependencies_compiler_type=none
 
3050
fi
 
3051
 
 
3052
fi
 
3053
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3054
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3055
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3056
 
 
3057
 
 
3058
 
 
3059
if
 
3060
  test "x$enable_dependency_tracking" != xno \
 
3061
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3062
  am__fastdepCC_TRUE=
 
3063
  am__fastdepCC_FALSE='#'
 
3064
else
 
3065
  am__fastdepCC_TRUE='#'
 
3066
  am__fastdepCC_FALSE=
 
3067
fi
 
3068
 
 
3069
 
 
3070
 
 
3071
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
3072
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
3073
if test "${ac_cv_c_bigendian+set}" = set; then
 
3074
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3075
else
 
3076
  # See if sys/param.h defines the BYTE_ORDER macro.
 
3077
cat >conftest.$ac_ext <<_ACEOF
 
3078
/* confdefs.h.  */
 
3079
_ACEOF
 
3080
cat confdefs.h >>conftest.$ac_ext
 
3081
cat >>conftest.$ac_ext <<_ACEOF
 
3082
/* end confdefs.h.  */
 
3083
#include <sys/types.h>
 
3084
#include <sys/param.h>
 
3085
 
 
3086
int
 
3087
main ()
 
3088
{
 
3089
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
3090
 bogus endian macros
 
3091
#endif
 
3092
 
 
3093
  ;
 
3094
  return 0;
 
3095
}
 
3096
_ACEOF
 
3097
rm -f conftest.$ac_objext
 
3098
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3099
  (eval $ac_compile) 2>conftest.er1
 
3100
  ac_status=$?
 
3101
  grep -v '^ *+' conftest.er1 >conftest.err
 
3102
  rm -f conftest.er1
 
3103
  cat conftest.err >&5
 
3104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3105
  (exit $ac_status); } &&
 
3106
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3107
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3108
  (eval $ac_try) 2>&5
 
3109
  ac_status=$?
 
3110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3111
  (exit $ac_status); }; } &&
 
3112
         { ac_try='test -s conftest.$ac_objext'
 
3113
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3114
  (eval $ac_try) 2>&5
 
3115
  ac_status=$?
 
3116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3117
  (exit $ac_status); }; }; then
 
3118
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
3119
cat >conftest.$ac_ext <<_ACEOF
 
3120
/* confdefs.h.  */
 
3121
_ACEOF
 
3122
cat confdefs.h >>conftest.$ac_ext
 
3123
cat >>conftest.$ac_ext <<_ACEOF
 
3124
/* end confdefs.h.  */
 
3125
#include <sys/types.h>
 
3126
#include <sys/param.h>
 
3127
 
 
3128
int
 
3129
main ()
 
3130
{
 
3131
#if BYTE_ORDER != BIG_ENDIAN
 
3132
 not big endian
 
3133
#endif
 
3134
 
 
3135
  ;
 
3136
  return 0;
 
3137
}
 
3138
_ACEOF
 
3139
rm -f conftest.$ac_objext
 
3140
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3141
  (eval $ac_compile) 2>conftest.er1
 
3142
  ac_status=$?
 
3143
  grep -v '^ *+' conftest.er1 >conftest.err
 
3144
  rm -f conftest.er1
 
3145
  cat conftest.err >&5
 
3146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3147
  (exit $ac_status); } &&
 
3148
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3149
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3150
  (eval $ac_try) 2>&5
 
3151
  ac_status=$?
 
3152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3153
  (exit $ac_status); }; } &&
 
3154
         { ac_try='test -s conftest.$ac_objext'
 
3155
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3156
  (eval $ac_try) 2>&5
 
3157
  ac_status=$?
 
3158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3159
  (exit $ac_status); }; }; then
 
3160
  ac_cv_c_bigendian=yes
 
3161
else
 
3162
  echo "$as_me: failed program was:" >&5
 
3163
sed 's/^/| /' conftest.$ac_ext >&5
 
3164
 
 
3165
ac_cv_c_bigendian=no
 
3166
fi
 
3167
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3168
else
 
3169
  echo "$as_me: failed program was:" >&5
 
3170
sed 's/^/| /' conftest.$ac_ext >&5
 
3171
 
 
3172
# It does not; compile a test program.
 
3173
if test "$cross_compiling" = yes; then
 
3174
  # try to guess the endianness by grepping values into an object file
 
3175
  ac_cv_c_bigendian=unknown
 
3176
  cat >conftest.$ac_ext <<_ACEOF
 
3177
/* confdefs.h.  */
 
3178
_ACEOF
 
3179
cat confdefs.h >>conftest.$ac_ext
 
3180
cat >>conftest.$ac_ext <<_ACEOF
 
3181
/* end confdefs.h.  */
 
3182
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
3183
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
3184
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
3185
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
3186
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
3187
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
3188
int
 
3189
main ()
 
3190
{
 
3191
 _ascii (); _ebcdic ();
 
3192
  ;
 
3193
  return 0;
 
3194
}
 
3195
_ACEOF
 
3196
rm -f conftest.$ac_objext
 
3197
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3198
  (eval $ac_compile) 2>conftest.er1
 
3199
  ac_status=$?
 
3200
  grep -v '^ *+' conftest.er1 >conftest.err
 
3201
  rm -f conftest.er1
 
3202
  cat conftest.err >&5
 
3203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3204
  (exit $ac_status); } &&
 
3205
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3206
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3207
  (eval $ac_try) 2>&5
 
3208
  ac_status=$?
 
3209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3210
  (exit $ac_status); }; } &&
 
3211
         { ac_try='test -s conftest.$ac_objext'
 
3212
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3213
  (eval $ac_try) 2>&5
 
3214
  ac_status=$?
 
3215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3216
  (exit $ac_status); }; }; then
 
3217
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
3218
  ac_cv_c_bigendian=yes
 
3219
fi
 
3220
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
3221
  if test "$ac_cv_c_bigendian" = unknown; then
 
3222
    ac_cv_c_bigendian=no
 
3223
  else
 
3224
    # finding both strings is unlikely to happen, but who knows?
 
3225
    ac_cv_c_bigendian=unknown
 
3226
  fi
 
3227
fi
 
3228
else
 
3229
  echo "$as_me: failed program was:" >&5
 
3230
sed 's/^/| /' conftest.$ac_ext >&5
 
3231
 
 
3232
fi
 
3233
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3234
else
 
3235
  cat >conftest.$ac_ext <<_ACEOF
 
3236
/* confdefs.h.  */
 
3237
_ACEOF
 
3238
cat confdefs.h >>conftest.$ac_ext
 
3239
cat >>conftest.$ac_ext <<_ACEOF
 
3240
/* end confdefs.h.  */
 
3241
int
 
3242
main ()
 
3243
{
 
3244
  /* Are we little or big endian?  From Harbison&Steele.  */
 
3245
  union
 
3246
  {
 
3247
    long l;
 
3248
    char c[sizeof (long)];
 
3249
  } u;
 
3250
  u.l = 1;
 
3251
  exit (u.c[sizeof (long) - 1] == 1);
 
3252
}
 
3253
_ACEOF
 
3254
rm -f conftest$ac_exeext
 
3255
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3256
  (eval $ac_link) 2>&5
 
3257
  ac_status=$?
 
3258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3259
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3260
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3261
  (eval $ac_try) 2>&5
 
3262
  ac_status=$?
 
3263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3264
  (exit $ac_status); }; }; then
 
3265
  ac_cv_c_bigendian=no
 
3266
else
 
3267
  echo "$as_me: program exited with status $ac_status" >&5
 
3268
echo "$as_me: failed program was:" >&5
 
3269
sed 's/^/| /' conftest.$ac_ext >&5
 
3270
 
 
3271
( exit $ac_status )
 
3272
ac_cv_c_bigendian=yes
 
3273
fi
 
3274
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3275
fi
 
3276
fi
 
3277
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3278
fi
 
3279
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
3280
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
3281
case $ac_cv_c_bigendian in
 
3282
  yes)
 
3283
 
 
3284
cat >>confdefs.h <<\_ACEOF
 
3285
#define WORDS_BIGENDIAN 1
 
3286
_ACEOF
 
3287
 ;;
 
3288
  no)
 
3289
     ;;
 
3290
  *)
 
3291
    { { echo "$as_me:$LINENO: error: unknown endianness
 
3292
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
3293
echo "$as_me: error: unknown endianness
 
3294
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
3295
   { (exit 1); exit 1; }; } ;;
 
3296
esac
 
3297
 
 
3298
 
 
3299
case "$host" in
 
3300
*-*-hpux*)
 
3301
        CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED"
 
3302
        ;;
 
3303
*-*-solaris*)
 
3304
        CPPFLAGS="$CPPFLAGS -I/usr/local/include"
 
3305
        LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
 
3306
        need_dash_r=1
 
3307
        ;;
 
3308
*-*-sunos4*)
 
3309
        CPPFLAGS="$CPPFLAGS -DSUNOS4"
 
3310
        ;;
 
3311
*-*-aix*)
 
3312
        CPPFLAGS="$CPPFLAGS -I/usr/local/include"
 
3313
        LDFLAGS="$LDFLAGS -L/usr/local/lib"
 
3314
        if (test "$LD" != "gcc" && test -z "$blibpath"); then
 
3315
                blibpath="/usr/lib:/lib:/usr/local/lib"
 
3316
        fi
 
3317
        ;;
 
3318
*-*-osf*)
 
3319
        CPPFLAGS="$CPPFLAGS -D_POSIX_PII_SOCKET"
 
3320
        ;;
 
3321
*-*-darwin*)
 
3322
 
 
3323
        COREFOUNDATION="-Wl,-framework,CoreFoundation"
 
3324
 
 
3325
        IOKIT="-Wl,-framework,IOKit"
 
3326
        if test "$GCC" = "yes"; then
 
3327
                CFLAGS="$CFLAGS -no-cpp-precomp"
 
3328
        fi
 
3329
        ;;
 
3330
esac
 
3331
 
 
3332
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
3333
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
 
3334
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
3335
if test "${enable_maintainer_mode+set}" = set; then
 
3336
  enableval="$enable_maintainer_mode"
 
3337
  USE_MAINTAINER_MODE=$enableval
 
3338
else
 
3339
  USE_MAINTAINER_MODE=no
 
3340
fi;
 
3341
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
3342
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
3343
 
 
3344
 
 
3345
if test $USE_MAINTAINER_MODE = yes; then
 
3346
  MAINTAINER_MODE_TRUE=
 
3347
  MAINTAINER_MODE_FALSE='#'
 
3348
else
 
3349
  MAINTAINER_MODE_TRUE='#'
 
3350
  MAINTAINER_MODE_FALSE=
 
3351
fi
 
3352
 
 
3353
  MAINT=$MAINTAINER_MODE_TRUE
 
3354
 
 
3355
 
 
3356
 
 
3357
ac_ext=c
 
3358
ac_cpp='$CPP $CPPFLAGS'
 
3359
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3360
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3361
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3362
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3363
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1404
3364
# On Suns, sometimes $CPP names a directory.
1405
3365
if test -n "$CPP" && test -d "$CPP"; then
1406
3366
  CPP=
1407
3367
fi
1408
3368
if test -z "$CPP"; then
1409
 
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1410
 
  echo $ac_n "(cached) $ac_c" 1>&6
1411
 
else
1412
 
    # This must be in double quotes, not single quotes, because CPP may get
1413
 
  # substituted into the Makefile and "${CC-cc}" will confuse make.
1414
 
  CPP="${CC-cc} -E"
1415
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
1416
 
  # not just through cpp.
1417
 
  cat > conftest.$ac_ext <<EOF
1418
 
#line 1419 "configure"
1419
 
#include "confdefs.h"
1420
 
#include <assert.h>
1421
 
Syntax Error
1422
 
EOF
1423
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1424
 
{ (eval echo configure:1425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1425
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1426
 
if test -z "$ac_err"; then
1427
 
  :
1428
 
else
1429
 
  echo "$ac_err" >&5
1430
 
  echo "configure: failed program was:" >&5
1431
 
  cat conftest.$ac_ext >&5
1432
 
  rm -rf conftest*
1433
 
  CPP="${CC-cc} -E -traditional-cpp"
1434
 
  cat > conftest.$ac_ext <<EOF
1435
 
#line 1436 "configure"
1436
 
#include "confdefs.h"
1437
 
#include <assert.h>
1438
 
Syntax Error
1439
 
EOF
1440
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1441
 
{ (eval echo configure:1442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1442
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1443
 
if test -z "$ac_err"; then
1444
 
  :
1445
 
else
1446
 
  echo "$ac_err" >&5
1447
 
  echo "configure: failed program was:" >&5
1448
 
  cat conftest.$ac_ext >&5
1449
 
  rm -rf conftest*
1450
 
  CPP="${CC-cc} -nologo -E"
1451
 
  cat > conftest.$ac_ext <<EOF
1452
 
#line 1453 "configure"
1453
 
#include "confdefs.h"
1454
 
#include <assert.h>
1455
 
Syntax Error
1456
 
EOF
1457
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1458
 
{ (eval echo configure:1459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1459
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1460
 
if test -z "$ac_err"; then
1461
 
  :
1462
 
else
1463
 
  echo "$ac_err" >&5
1464
 
  echo "configure: failed program was:" >&5
1465
 
  cat conftest.$ac_ext >&5
1466
 
  rm -rf conftest*
1467
 
  CPP=/lib/cpp
1468
 
fi
1469
 
rm -f conftest*
1470
 
fi
1471
 
rm -f conftest*
1472
 
fi
1473
 
rm -f conftest*
1474
 
  ac_cv_prog_CPP="$CPP"
1475
 
fi
1476
 
  CPP="$ac_cv_prog_CPP"
1477
 
else
1478
 
  ac_cv_prog_CPP="$CPP"
1479
 
fi
1480
 
echo "$ac_t""$CPP" 1>&6
 
3369
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3370
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3371
else
 
3372
      # Double quotes because CPP needs to be expanded
 
3373
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3374
    do
 
3375
      ac_preproc_ok=false
 
3376
for ac_c_preproc_warn_flag in '' yes
 
3377
do
 
3378
  # Use a header file that comes with gcc, so configuring glibc
 
3379
  # with a fresh cross-compiler works.
 
3380
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3381
  # <limits.h> exists even on freestanding compilers.
 
3382
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3383
  # not just through cpp. "Syntax error" is here to catch this case.
 
3384
  cat >conftest.$ac_ext <<_ACEOF
 
3385
/* confdefs.h.  */
 
3386
_ACEOF
 
3387
cat confdefs.h >>conftest.$ac_ext
 
3388
cat >>conftest.$ac_ext <<_ACEOF
 
3389
/* end confdefs.h.  */
 
3390
#ifdef __STDC__
 
3391
# include <limits.h>
 
3392
#else
 
3393
# include <assert.h>
 
3394
#endif
 
3395
                     Syntax error
 
3396
_ACEOF
 
3397
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3398
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3399
  ac_status=$?
 
3400
  grep -v '^ *+' conftest.er1 >conftest.err
 
3401
  rm -f conftest.er1
 
3402
  cat conftest.err >&5
 
3403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3404
  (exit $ac_status); } >/dev/null; then
 
3405
  if test -s conftest.err; then
 
3406
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3407
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3408
  else
 
3409
    ac_cpp_err=
 
3410
  fi
 
3411
else
 
3412
  ac_cpp_err=yes
 
3413
fi
 
3414
if test -z "$ac_cpp_err"; then
 
3415
  :
 
3416
else
 
3417
  echo "$as_me: failed program was:" >&5
 
3418
sed 's/^/| /' conftest.$ac_ext >&5
 
3419
 
 
3420
  # Broken: fails on valid input.
 
3421
continue
 
3422
fi
 
3423
rm -f conftest.err conftest.$ac_ext
 
3424
 
 
3425
  # OK, works on sane cases.  Now check whether non-existent headers
 
3426
  # can be detected and how.
 
3427
  cat >conftest.$ac_ext <<_ACEOF
 
3428
/* confdefs.h.  */
 
3429
_ACEOF
 
3430
cat confdefs.h >>conftest.$ac_ext
 
3431
cat >>conftest.$ac_ext <<_ACEOF
 
3432
/* end confdefs.h.  */
 
3433
#include <ac_nonexistent.h>
 
3434
_ACEOF
 
3435
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3436
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3437
  ac_status=$?
 
3438
  grep -v '^ *+' conftest.er1 >conftest.err
 
3439
  rm -f conftest.er1
 
3440
  cat conftest.err >&5
 
3441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3442
  (exit $ac_status); } >/dev/null; then
 
3443
  if test -s conftest.err; then
 
3444
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3445
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3446
  else
 
3447
    ac_cpp_err=
 
3448
  fi
 
3449
else
 
3450
  ac_cpp_err=yes
 
3451
fi
 
3452
if test -z "$ac_cpp_err"; then
 
3453
  # Broken: success on invalid input.
 
3454
continue
 
3455
else
 
3456
  echo "$as_me: failed program was:" >&5
 
3457
sed 's/^/| /' conftest.$ac_ext >&5
 
3458
 
 
3459
  # Passes both tests.
 
3460
ac_preproc_ok=:
 
3461
break
 
3462
fi
 
3463
rm -f conftest.err conftest.$ac_ext
 
3464
 
 
3465
done
 
3466
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3467
rm -f conftest.err conftest.$ac_ext
 
3468
if $ac_preproc_ok; then
 
3469
  break
 
3470
fi
 
3471
 
 
3472
    done
 
3473
    ac_cv_prog_CPP=$CPP
 
3474
 
 
3475
fi
 
3476
  CPP=$ac_cv_prog_CPP
 
3477
else
 
3478
  ac_cv_prog_CPP=$CPP
 
3479
fi
 
3480
echo "$as_me:$LINENO: result: $CPP" >&5
 
3481
echo "${ECHO_T}$CPP" >&6
 
3482
ac_preproc_ok=false
 
3483
for ac_c_preproc_warn_flag in '' yes
 
3484
do
 
3485
  # Use a header file that comes with gcc, so configuring glibc
 
3486
  # with a fresh cross-compiler works.
 
3487
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3488
  # <limits.h> exists even on freestanding compilers.
 
3489
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3490
  # not just through cpp. "Syntax error" is here to catch this case.
 
3491
  cat >conftest.$ac_ext <<_ACEOF
 
3492
/* confdefs.h.  */
 
3493
_ACEOF
 
3494
cat confdefs.h >>conftest.$ac_ext
 
3495
cat >>conftest.$ac_ext <<_ACEOF
 
3496
/* end confdefs.h.  */
 
3497
#ifdef __STDC__
 
3498
# include <limits.h>
 
3499
#else
 
3500
# include <assert.h>
 
3501
#endif
 
3502
                     Syntax error
 
3503
_ACEOF
 
3504
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3505
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3506
  ac_status=$?
 
3507
  grep -v '^ *+' conftest.er1 >conftest.err
 
3508
  rm -f conftest.er1
 
3509
  cat conftest.err >&5
 
3510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3511
  (exit $ac_status); } >/dev/null; then
 
3512
  if test -s conftest.err; then
 
3513
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3514
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3515
  else
 
3516
    ac_cpp_err=
 
3517
  fi
 
3518
else
 
3519
  ac_cpp_err=yes
 
3520
fi
 
3521
if test -z "$ac_cpp_err"; then
 
3522
  :
 
3523
else
 
3524
  echo "$as_me: failed program was:" >&5
 
3525
sed 's/^/| /' conftest.$ac_ext >&5
 
3526
 
 
3527
  # Broken: fails on valid input.
 
3528
continue
 
3529
fi
 
3530
rm -f conftest.err conftest.$ac_ext
 
3531
 
 
3532
  # OK, works on sane cases.  Now check whether non-existent headers
 
3533
  # can be detected and how.
 
3534
  cat >conftest.$ac_ext <<_ACEOF
 
3535
/* confdefs.h.  */
 
3536
_ACEOF
 
3537
cat confdefs.h >>conftest.$ac_ext
 
3538
cat >>conftest.$ac_ext <<_ACEOF
 
3539
/* end confdefs.h.  */
 
3540
#include <ac_nonexistent.h>
 
3541
_ACEOF
 
3542
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3543
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3544
  ac_status=$?
 
3545
  grep -v '^ *+' conftest.er1 >conftest.err
 
3546
  rm -f conftest.er1
 
3547
  cat conftest.err >&5
 
3548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3549
  (exit $ac_status); } >/dev/null; then
 
3550
  if test -s conftest.err; then
 
3551
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3552
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3553
  else
 
3554
    ac_cpp_err=
 
3555
  fi
 
3556
else
 
3557
  ac_cpp_err=yes
 
3558
fi
 
3559
if test -z "$ac_cpp_err"; then
 
3560
  # Broken: success on invalid input.
 
3561
continue
 
3562
else
 
3563
  echo "$as_me: failed program was:" >&5
 
3564
sed 's/^/| /' conftest.$ac_ext >&5
 
3565
 
 
3566
  # Passes both tests.
 
3567
ac_preproc_ok=:
 
3568
break
 
3569
fi
 
3570
rm -f conftest.err conftest.$ac_ext
 
3571
 
 
3572
done
 
3573
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3574
rm -f conftest.err conftest.$ac_ext
 
3575
if $ac_preproc_ok; then
 
3576
  :
 
3577
else
 
3578
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3579
See \`config.log' for more details." >&5
 
3580
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3581
See \`config.log' for more details." >&2;}
 
3582
   { (exit 1); exit 1; }; }
 
3583
fi
 
3584
 
 
3585
ac_ext=c
 
3586
ac_cpp='$CPP $CPPFLAGS'
 
3587
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3588
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3589
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1481
3590
 
1482
3591
# Find a good install program.  We prefer a C program (faster),
1483
3592
# so one script is as good as another.  But avoid the broken or
1486
3595
# SunOS /usr/etc/install
1487
3596
# IRIX /sbin/install
1488
3597
# AIX /bin/install
 
3598
# AmigaOS /C/install, which installs bootblocks on floppy discs
1489
3599
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1490
3600
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1491
3601
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3602
# OS/2's system install, which has a completely different semantic
1492
3603
# ./install, which can be erroneously created by make from ./install.sh.
1493
 
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1494
 
echo "configure:1495: checking for a BSD compatible install" >&5
 
3604
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3605
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1495
3606
if test -z "$INSTALL"; then
1496
 
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1497
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3607
if test "${ac_cv_path_install+set}" = set; then
 
3608
  echo $ECHO_N "(cached) $ECHO_C" >&6
1498
3609
else
1499
 
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1500
 
  for ac_dir in $PATH; do
1501
 
    # Account for people who put trailing slashes in PATH elements.
1502
 
    case "$ac_dir/" in
1503
 
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1504
 
    *)
1505
 
      # OSF1 and SCO ODT 3.0 have their own names for install.
1506
 
      # Don't use installbsd from OSF since it installs stuff as root
1507
 
      # by default.
1508
 
      for ac_prog in ginstall scoinst install; do
1509
 
        if test -f $ac_dir/$ac_prog; then
 
3610
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3611
for as_dir in $PATH
 
3612
do
 
3613
  IFS=$as_save_IFS
 
3614
  test -z "$as_dir" && as_dir=.
 
3615
  # Account for people who put trailing slashes in PATH elements.
 
3616
case $as_dir/ in
 
3617
  ./ | .// | /cC/* | \
 
3618
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3619
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3620
  /usr/ucb/* ) ;;
 
3621
  *)
 
3622
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3623
    # Don't use installbsd from OSF since it installs stuff as root
 
3624
    # by default.
 
3625
    for ac_prog in ginstall scoinst install; do
 
3626
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3627
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1510
3628
          if test $ac_prog = install &&
1511
 
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 
3629
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1512
3630
            # AIX install.  It has an incompatible calling convention.
1513
3631
            :
 
3632
          elif test $ac_prog = install &&
 
3633
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3634
            # program-specific install script used by HP pwplus--don't use.
 
3635
            :
1514
3636
          else
1515
 
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1516
 
            break 2
 
3637
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3638
            break 3
1517
3639
          fi
1518
3640
        fi
1519
3641
      done
1520
 
      ;;
1521
 
    esac
1522
 
  done
1523
 
  IFS="$ac_save_IFS"
 
3642
    done
 
3643
    ;;
 
3644
esac
 
3645
done
 
3646
 
1524
3647
 
1525
3648
fi
1526
3649
  if test "${ac_cv_path_install+set}" = set; then
1527
 
    INSTALL="$ac_cv_path_install"
 
3650
    INSTALL=$ac_cv_path_install
1528
3651
  else
1529
3652
    # As a last resort, use the slow shell script.  We don't cache a
1530
3653
    # path for INSTALL within a source directory, because that will
1531
3654
    # break other packages using the cache if that directory is
1532
3655
    # removed, or if the path is relative.
1533
 
    INSTALL="$ac_install_sh"
 
3656
    INSTALL=$ac_install_sh
1534
3657
  fi
1535
3658
fi
1536
 
echo "$ac_t""$INSTALL" 1>&6
 
3659
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3660
echo "${ECHO_T}$INSTALL" >&6
1537
3661
 
1538
3662
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1539
3663
# It thinks the first close brace ends the variable substitution.
1540
3664
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1541
3665
 
1542
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
3666
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1543
3667
 
1544
3668
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1545
3669
 
1546
 
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1547
 
echo "configure:1548: checking whether ${MAKE-make} sets \${MAKE}" >&5
1548
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1549
 
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1550
 
  echo $ac_n "(cached) $ac_c" 1>&6
1551
 
else
1552
 
  cat > conftestmake <<\EOF
 
3670
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3671
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3672
LN_S=$as_ln_s
 
3673
if test "$LN_S" = "ln -s"; then
 
3674
  echo "$as_me:$LINENO: result: yes" >&5
 
3675
echo "${ECHO_T}yes" >&6
 
3676
else
 
3677
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3678
echo "${ECHO_T}no, using $LN_S" >&6
 
3679
fi
 
3680
 
 
3681
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3682
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
3683
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
3684
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
3685
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3686
else
 
3687
  cat >conftest.make <<\_ACEOF
1553
3688
all:
1554
 
        @echo 'ac_maketemp="${MAKE}"'
1555
 
EOF
 
3689
        @echo 'ac_maketemp="$(MAKE)"'
 
3690
_ACEOF
1556
3691
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1557
 
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
 
3692
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1558
3693
if test -n "$ac_maketemp"; then
1559
3694
  eval ac_cv_prog_make_${ac_make}_set=yes
1560
3695
else
1561
3696
  eval ac_cv_prog_make_${ac_make}_set=no
1562
3697
fi
1563
 
rm -f conftestmake
 
3698
rm -f conftest.make
1564
3699
fi
1565
3700
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1566
 
  echo "$ac_t""yes" 1>&6
 
3701
  echo "$as_me:$LINENO: result: yes" >&5
 
3702
echo "${ECHO_T}yes" >&6
1567
3703
  SET_MAKE=
1568
3704
else
1569
 
  echo "$ac_t""no" 1>&6
 
3705
  echo "$as_me:$LINENO: result: no" >&5
 
3706
echo "${ECHO_T}no" >&6
1570
3707
  SET_MAKE="MAKE=${MAKE-make}"
1571
3708
fi
1572
3709
 
1573
 
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1574
 
echo "configure:1575: checking whether ln -s works" >&5
1575
 
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1576
 
  echo $ac_n "(cached) $ac_c" 1>&6
1577
 
else
1578
 
  rm -f conftestdata
1579
 
if ln -s X conftestdata 2>/dev/null
1580
 
then
1581
 
  rm -f conftestdata
1582
 
  ac_cv_prog_LN_S="ln -s"
1583
 
else
1584
 
  ac_cv_prog_LN_S=ln
1585
 
fi
1586
 
fi
1587
 
LN_S="$ac_cv_prog_LN_S"
1588
 
if test "$ac_cv_prog_LN_S" = "ln -s"; then
1589
 
  echo "$ac_t""yes" 1>&6
1590
 
else
1591
 
  echo "$ac_t""no" 1>&6
1592
 
fi
1593
 
 
1594
 
missing_dir=`cd $ac_aux_dir && pwd`
1595
3710
for ac_prog in flex lex
1596
3711
do
1597
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
 
3712
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1598
3713
set dummy $ac_prog; ac_word=$2
1599
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1600
 
echo "configure:1601: checking for $ac_word" >&5
1601
 
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1602
 
  echo $ac_n "(cached) $ac_c" 1>&6
1603
 
else
1604
 
  if test -n "$LEX"; then
1605
 
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
1606
 
else
1607
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1608
 
  ac_dummy="$PATH"
1609
 
  for ac_dir in $ac_dummy; do
1610
 
    test -z "$ac_dir" && ac_dir=.
1611
 
    if test -f $ac_dir/$ac_word; then
1612
 
      ac_cv_prog_LEX="$ac_prog"
1613
 
      break
1614
 
    fi
1615
 
  done
1616
 
  IFS="$ac_save_ifs"
1617
 
fi
1618
 
fi
1619
 
LEX="$ac_cv_prog_LEX"
1620
 
if test -n "$LEX"; then
1621
 
  echo "$ac_t""$LEX" 1>&6
1622
 
else
1623
 
  echo "$ac_t""no" 1>&6
1624
 
fi
1625
 
 
1626
 
test -n "$LEX" && break
1627
 
done
1628
 
test -n "$LEX" || LEX=""$missing_dir/missing flex""
1629
 
 
1630
 
# Extract the first word of "flex", so it can be a program name with args.
1631
 
set dummy flex; ac_word=$2
1632
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1633
 
echo "configure:1634: checking for $ac_word" >&5
1634
 
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1635
 
  echo $ac_n "(cached) $ac_c" 1>&6
1636
 
else
1637
 
  if test -n "$LEX"; then
1638
 
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
1639
 
else
1640
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1641
 
  ac_dummy="$PATH"
1642
 
  for ac_dir in $ac_dummy; do
1643
 
    test -z "$ac_dir" && ac_dir=.
1644
 
    if test -f $ac_dir/$ac_word; then
1645
 
      ac_cv_prog_LEX="flex"
1646
 
      break
1647
 
    fi
1648
 
  done
1649
 
  IFS="$ac_save_ifs"
1650
 
  test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1651
 
fi
1652
 
fi
1653
 
LEX="$ac_cv_prog_LEX"
1654
 
if test -n "$LEX"; then
1655
 
  echo "$ac_t""$LEX" 1>&6
1656
 
else
1657
 
  echo "$ac_t""no" 1>&6
1658
 
fi
 
3714
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3715
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3716
if test "${ac_cv_prog_LEX+set}" = set; then
 
3717
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3718
else
 
3719
  if test -n "$LEX"; then
 
3720
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
 
3721
else
 
3722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3723
for as_dir in $PATH
 
3724
do
 
3725
  IFS=$as_save_IFS
 
3726
  test -z "$as_dir" && as_dir=.
 
3727
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3728
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3729
    ac_cv_prog_LEX="$ac_prog"
 
3730
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3731
    break 2
 
3732
  fi
 
3733
done
 
3734
done
 
3735
 
 
3736
fi
 
3737
fi
 
3738
LEX=$ac_cv_prog_LEX
 
3739
if test -n "$LEX"; then
 
3740
  echo "$as_me:$LINENO: result: $LEX" >&5
 
3741
echo "${ECHO_T}$LEX" >&6
 
3742
else
 
3743
  echo "$as_me:$LINENO: result: no" >&5
 
3744
echo "${ECHO_T}no" >&6
 
3745
fi
 
3746
 
 
3747
  test -n "$LEX" && break
 
3748
done
 
3749
test -n "$LEX" || LEX=":"
1659
3750
 
1660
3751
if test -z "$LEXLIB"
1661
3752
then
1662
 
  case "$LEX" in
1663
 
  flex*) ac_lib=fl ;;
1664
 
  *) ac_lib=l ;;
1665
 
  esac
1666
 
  echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1667
 
echo "configure:1668: checking for yywrap in -l$ac_lib" >&5
1668
 
ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1669
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1670
 
  echo $ac_n "(cached) $ac_c" 1>&6
1671
 
else
1672
 
  ac_save_LIBS="$LIBS"
1673
 
LIBS="-l$ac_lib  $LIBS"
1674
 
cat > conftest.$ac_ext <<EOF
1675
 
#line 1676 "configure"
1676
 
#include "confdefs.h"
1677
 
/* Override any gcc2 internal prototype to avoid an error.  */
1678
 
/* We use char because int might match the return type of a gcc2
1679
 
    builtin and then its argument prototype would still apply.  */
1680
 
char yywrap();
1681
 
 
1682
 
int main() {
1683
 
yywrap()
1684
 
; return 0; }
1685
 
EOF
1686
 
if { (eval echo configure:1687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1687
 
  rm -rf conftest*
1688
 
  eval "ac_cv_lib_$ac_lib_var=yes"
1689
 
else
1690
 
  echo "configure: failed program was:" >&5
1691
 
  cat conftest.$ac_ext >&5
1692
 
  rm -rf conftest*
1693
 
  eval "ac_cv_lib_$ac_lib_var=no"
1694
 
fi
1695
 
rm -f conftest*
1696
 
LIBS="$ac_save_LIBS"
1697
 
 
1698
 
fi
1699
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1700
 
  echo "$ac_t""yes" 1>&6
1701
 
  LEXLIB="-l$ac_lib"
1702
 
else
1703
 
  echo "$ac_t""no" 1>&6
1704
 
fi
1705
 
 
1706
 
fi
1707
 
 
1708
 
echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1709
 
echo "configure:1710: checking lex output file root" >&5
1710
 
if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1711
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3753
  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
 
3754
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
 
3755
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
 
3756
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3757
else
 
3758
  ac_check_lib_save_LIBS=$LIBS
 
3759
LIBS="-lfl  $LIBS"
 
3760
cat >conftest.$ac_ext <<_ACEOF
 
3761
/* confdefs.h.  */
 
3762
_ACEOF
 
3763
cat confdefs.h >>conftest.$ac_ext
 
3764
cat >>conftest.$ac_ext <<_ACEOF
 
3765
/* end confdefs.h.  */
 
3766
 
 
3767
/* Override any gcc2 internal prototype to avoid an error.  */
 
3768
#ifdef __cplusplus
 
3769
extern "C"
 
3770
#endif
 
3771
/* We use char because int might match the return type of a gcc2
 
3772
   builtin and then its argument prototype would still apply.  */
 
3773
char yywrap ();
 
3774
int
 
3775
main ()
 
3776
{
 
3777
yywrap ();
 
3778
  ;
 
3779
  return 0;
 
3780
}
 
3781
_ACEOF
 
3782
rm -f conftest.$ac_objext conftest$ac_exeext
 
3783
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3784
  (eval $ac_link) 2>conftest.er1
 
3785
  ac_status=$?
 
3786
  grep -v '^ *+' conftest.er1 >conftest.err
 
3787
  rm -f conftest.er1
 
3788
  cat conftest.err >&5
 
3789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3790
  (exit $ac_status); } &&
 
3791
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3792
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3793
  (eval $ac_try) 2>&5
 
3794
  ac_status=$?
 
3795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3796
  (exit $ac_status); }; } &&
 
3797
         { ac_try='test -s conftest$ac_exeext'
 
3798
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3799
  (eval $ac_try) 2>&5
 
3800
  ac_status=$?
 
3801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3802
  (exit $ac_status); }; }; then
 
3803
  ac_cv_lib_fl_yywrap=yes
 
3804
else
 
3805
  echo "$as_me: failed program was:" >&5
 
3806
sed 's/^/| /' conftest.$ac_ext >&5
 
3807
 
 
3808
ac_cv_lib_fl_yywrap=no
 
3809
fi
 
3810
rm -f conftest.err conftest.$ac_objext \
 
3811
      conftest$ac_exeext conftest.$ac_ext
 
3812
LIBS=$ac_check_lib_save_LIBS
 
3813
fi
 
3814
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
 
3815
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
 
3816
if test $ac_cv_lib_fl_yywrap = yes; then
 
3817
  LEXLIB="-lfl"
 
3818
else
 
3819
  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
 
3820
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
 
3821
if test "${ac_cv_lib_l_yywrap+set}" = set; then
 
3822
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3823
else
 
3824
  ac_check_lib_save_LIBS=$LIBS
 
3825
LIBS="-ll  $LIBS"
 
3826
cat >conftest.$ac_ext <<_ACEOF
 
3827
/* confdefs.h.  */
 
3828
_ACEOF
 
3829
cat confdefs.h >>conftest.$ac_ext
 
3830
cat >>conftest.$ac_ext <<_ACEOF
 
3831
/* end confdefs.h.  */
 
3832
 
 
3833
/* Override any gcc2 internal prototype to avoid an error.  */
 
3834
#ifdef __cplusplus
 
3835
extern "C"
 
3836
#endif
 
3837
/* We use char because int might match the return type of a gcc2
 
3838
   builtin and then its argument prototype would still apply.  */
 
3839
char yywrap ();
 
3840
int
 
3841
main ()
 
3842
{
 
3843
yywrap ();
 
3844
  ;
 
3845
  return 0;
 
3846
}
 
3847
_ACEOF
 
3848
rm -f conftest.$ac_objext conftest$ac_exeext
 
3849
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3850
  (eval $ac_link) 2>conftest.er1
 
3851
  ac_status=$?
 
3852
  grep -v '^ *+' conftest.er1 >conftest.err
 
3853
  rm -f conftest.er1
 
3854
  cat conftest.err >&5
 
3855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3856
  (exit $ac_status); } &&
 
3857
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3858
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3859
  (eval $ac_try) 2>&5
 
3860
  ac_status=$?
 
3861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3862
  (exit $ac_status); }; } &&
 
3863
         { ac_try='test -s conftest$ac_exeext'
 
3864
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3865
  (eval $ac_try) 2>&5
 
3866
  ac_status=$?
 
3867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3868
  (exit $ac_status); }; }; then
 
3869
  ac_cv_lib_l_yywrap=yes
 
3870
else
 
3871
  echo "$as_me: failed program was:" >&5
 
3872
sed 's/^/| /' conftest.$ac_ext >&5
 
3873
 
 
3874
ac_cv_lib_l_yywrap=no
 
3875
fi
 
3876
rm -f conftest.err conftest.$ac_objext \
 
3877
      conftest$ac_exeext conftest.$ac_ext
 
3878
LIBS=$ac_check_lib_save_LIBS
 
3879
fi
 
3880
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
 
3881
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
 
3882
if test $ac_cv_lib_l_yywrap = yes; then
 
3883
  LEXLIB="-ll"
 
3884
fi
 
3885
 
 
3886
fi
 
3887
 
 
3888
fi
 
3889
 
 
3890
if test "x$LEX" != "x:"; then
 
3891
  echo "$as_me:$LINENO: checking lex output file root" >&5
 
3892
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
 
3893
if test "${ac_cv_prog_lex_root+set}" = set; then
 
3894
  echo $ECHO_N "(cached) $ECHO_C" >&6
1712
3895
else
1713
3896
  # The minimal lex program is just a single line: %%.  But some broken lexes
1714
3897
# (Solaris, I think it was) want two %% lines, so accommodate them.
1715
 
echo '%%
1716
 
%%' | $LEX
 
3898
cat >conftest.l <<_ACEOF
 
3899
%%
 
3900
%%
 
3901
_ACEOF
 
3902
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
 
3903
  (eval $LEX conftest.l) 2>&5
 
3904
  ac_status=$?
 
3905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3906
  (exit $ac_status); }
1717
3907
if test -f lex.yy.c; then
1718
3908
  ac_cv_prog_lex_root=lex.yy
1719
3909
elif test -f lexyy.c; then
1720
3910
  ac_cv_prog_lex_root=lexyy
1721
3911
else
1722
 
  { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1723
 
fi
1724
 
fi
1725
 
 
1726
 
echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
 
3912
  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
 
3913
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
 
3914
   { (exit 1); exit 1; }; }
 
3915
fi
 
3916
fi
 
3917
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
 
3918
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
 
3919
rm -f conftest.l
1727
3920
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1728
3921
 
1729
 
echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1730
 
echo "configure:1731: checking whether yytext is a pointer" >&5
1731
 
if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1732
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3922
echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
 
3923
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
 
3924
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
 
3925
  echo $ECHO_N "(cached) $ECHO_C" >&6
1733
3926
else
1734
3927
  # POSIX says lex can declare yytext either as a pointer or an array; the
1735
3928
# default is implementation-dependent. Figure out which it is, since
1736
3929
# not all implementations provide the %pointer and %array declarations.
1737
3930
ac_cv_prog_lex_yytext_pointer=no
1738
3931
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1739
 
ac_save_LIBS="$LIBS"
 
3932
ac_save_LIBS=$LIBS
1740
3933
LIBS="$LIBS $LEXLIB"
1741
 
cat > conftest.$ac_ext <<EOF
1742
 
#line 1743 "configure"
1743
 
#include "confdefs.h"
 
3934
cat >conftest.$ac_ext <<_ACEOF
1744
3935
`cat $LEX_OUTPUT_ROOT.c`
1745
 
int main() {
1746
 
 
1747
 
; return 0; }
1748
 
EOF
1749
 
if { (eval echo configure:1750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1750
 
  rm -rf conftest*
 
3936
_ACEOF
 
3937
rm -f conftest.$ac_objext conftest$ac_exeext
 
3938
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3939
  (eval $ac_link) 2>conftest.er1
 
3940
  ac_status=$?
 
3941
  grep -v '^ *+' conftest.er1 >conftest.err
 
3942
  rm -f conftest.er1
 
3943
  cat conftest.err >&5
 
3944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3945
  (exit $ac_status); } &&
 
3946
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3947
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3948
  (eval $ac_try) 2>&5
 
3949
  ac_status=$?
 
3950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3951
  (exit $ac_status); }; } &&
 
3952
         { ac_try='test -s conftest$ac_exeext'
 
3953
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3954
  (eval $ac_try) 2>&5
 
3955
  ac_status=$?
 
3956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3957
  (exit $ac_status); }; }; then
1751
3958
  ac_cv_prog_lex_yytext_pointer=yes
1752
3959
else
1753
 
  echo "configure: failed program was:" >&5
1754
 
  cat conftest.$ac_ext >&5
 
3960
  echo "$as_me: failed program was:" >&5
 
3961
sed 's/^/| /' conftest.$ac_ext >&5
 
3962
 
1755
3963
fi
1756
 
rm -f conftest*
1757
 
LIBS="$ac_save_LIBS"
 
3964
rm -f conftest.err conftest.$ac_objext \
 
3965
      conftest$ac_exeext conftest.$ac_ext
 
3966
LIBS=$ac_save_LIBS
1758
3967
rm -f "${LEX_OUTPUT_ROOT}.c"
1759
3968
 
1760
3969
fi
1761
 
 
1762
 
echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
 
3970
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
 
3971
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
1763
3972
if test $ac_cv_prog_lex_yytext_pointer = yes; then
1764
 
  cat >> confdefs.h <<\EOF
 
3973
 
 
3974
cat >>confdefs.h <<\_ACEOF
1765
3975
#define YYTEXT_POINTER 1
1766
 
EOF
1767
 
 
1768
 
fi
1769
 
 
1770
 
 
1771
 
 
 
3976
_ACEOF
 
3977
 
 
3978
fi
 
3979
 
 
3980
fi
 
3981
if test "$LEX" = :; then
 
3982
  LEX=${am_missing_run}flex
 
3983
fi
 
3984
# Extract the first word of "bash", so it can be a program name with args.
 
3985
set dummy bash; ac_word=$2
 
3986
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3987
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3988
if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
 
3989
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3990
else
 
3991
  case $TEST_MINUS_S_SH in
 
3992
  [\\/]* | ?:[\\/]*)
 
3993
  ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
 
3994
  ;;
 
3995
  *)
 
3996
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3997
for as_dir in $PATH
 
3998
do
 
3999
  IFS=$as_save_IFS
 
4000
  test -z "$as_dir" && as_dir=.
 
4001
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4002
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4003
    ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
 
4004
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4005
    break 2
 
4006
  fi
 
4007
done
 
4008
done
 
4009
 
 
4010
  ;;
 
4011
esac
 
4012
fi
 
4013
TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
 
4014
 
 
4015
if test -n "$TEST_MINUS_S_SH"; then
 
4016
  echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
 
4017
echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
 
4018
else
 
4019
  echo "$as_me:$LINENO: result: no" >&5
 
4020
echo "${ECHO_T}no" >&6
 
4021
fi
 
4022
 
 
4023
# Extract the first word of "ksh", so it can be a program name with args.
 
4024
set dummy ksh; ac_word=$2
 
4025
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4026
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4027
if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
 
4028
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4029
else
 
4030
  case $TEST_MINUS_S_SH in
 
4031
  [\\/]* | ?:[\\/]*)
 
4032
  ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
 
4033
  ;;
 
4034
  *)
 
4035
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4036
for as_dir in $PATH
 
4037
do
 
4038
  IFS=$as_save_IFS
 
4039
  test -z "$as_dir" && as_dir=.
 
4040
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4041
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4042
    ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
 
4043
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4044
    break 2
 
4045
  fi
 
4046
done
 
4047
done
 
4048
 
 
4049
  ;;
 
4050
esac
 
4051
fi
 
4052
TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
 
4053
 
 
4054
if test -n "$TEST_MINUS_S_SH"; then
 
4055
  echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
 
4056
echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
 
4057
else
 
4058
  echo "$as_me:$LINENO: result: no" >&5
 
4059
echo "${ECHO_T}no" >&6
 
4060
fi
 
4061
 
 
4062
# Extract the first word of "sh", so it can be a program name with args.
 
4063
set dummy sh; ac_word=$2
 
4064
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4065
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4066
if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
 
4067
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4068
else
 
4069
  case $TEST_MINUS_S_SH in
 
4070
  [\\/]* | ?:[\\/]*)
 
4071
  ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
 
4072
  ;;
 
4073
  *)
 
4074
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4075
for as_dir in $PATH
 
4076
do
 
4077
  IFS=$as_save_IFS
 
4078
  test -z "$as_dir" && as_dir=.
 
4079
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4080
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4081
    ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
 
4082
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4083
    break 2
 
4084
  fi
 
4085
done
 
4086
done
 
4087
 
 
4088
  ;;
 
4089
esac
 
4090
fi
 
4091
TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
 
4092
 
 
4093
if test -n "$TEST_MINUS_S_SH"; then
 
4094
  echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
 
4095
echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
 
4096
else
 
4097
  echo "$as_me:$LINENO: result: no" >&5
 
4098
echo "${ECHO_T}no" >&6
 
4099
fi
 
4100
 
 
4101
 
 
4102
 
 
4103
 
 
4104
 
 
4105
 
 
4106
ac_ext=c
 
4107
ac_cpp='$CPP $CPPFLAGS'
 
4108
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4109
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4110
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1772
4111
 
1773
4112
acx_pthread_ok=no
1774
4113
 
1775
 
# First, check if the POSIX threads header, pthread.h, is available.
1776
 
# If it isn't, don't bother looking for the threads libraries.
1777
 
ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1778
 
echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1779
 
echo "configure:1780: checking for pthread.h" >&5
1780
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1781
 
  echo $ac_n "(cached) $ac_c" 1>&6
1782
 
else
1783
 
  cat > conftest.$ac_ext <<EOF
1784
 
#line 1785 "configure"
1785
 
#include "confdefs.h"
1786
 
#include <pthread.h>
1787
 
EOF
1788
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1789
 
{ (eval echo configure:1790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1790
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1791
 
if test -z "$ac_err"; then
1792
 
  rm -rf conftest*
1793
 
  eval "ac_cv_header_$ac_safe=yes"
1794
 
else
1795
 
  echo "$ac_err" >&5
1796
 
  echo "configure: failed program was:" >&5
1797
 
  cat conftest.$ac_ext >&5
1798
 
  rm -rf conftest*
1799
 
  eval "ac_cv_header_$ac_safe=no"
1800
 
fi
1801
 
rm -f conftest*
1802
 
fi
1803
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1804
 
  echo "$ac_t""yes" 1>&6
1805
 
  :
1806
 
else
1807
 
  echo "$ac_t""no" 1>&6
1808
 
acx_pthread_ok=noheader
1809
 
fi
1810
 
 
1811
 
 
1812
 
# We must check for the threads library under a number of different
1813
 
# names; the ordering is very important because some systems
1814
 
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
1815
 
# libraries is broken (non-POSIX).
 
4114
# We used to check for pthread.h first, but this fails if pthread.h
 
4115
# requires special compiler flags (e.g. on True64 or Sequent).
 
4116
# It gets checked for in the link test anyway.
1816
4117
 
1817
4118
# First of all, check if the user has set any of the PTHREAD_LIBS,
1818
4119
# etcetera environment variables, and if threads linking works using
1822
4123
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
1823
4124
        save_LIBS="$LIBS"
1824
4125
        LIBS="$PTHREAD_LIBS $LIBS"
1825
 
        echo $ac_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS""... $ac_c" 1>&6
1826
 
echo "configure:1827: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
1827
 
        cat > conftest.$ac_ext <<EOF
1828
 
#line 1829 "configure"
1829
 
#include "confdefs.h"
 
4126
        echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
 
4127
echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
 
4128
        cat >conftest.$ac_ext <<_ACEOF
 
4129
/* confdefs.h.  */
 
4130
_ACEOF
 
4131
cat confdefs.h >>conftest.$ac_ext
 
4132
cat >>conftest.$ac_ext <<_ACEOF
 
4133
/* end confdefs.h.  */
 
4134
 
1830
4135
/* Override any gcc2 internal prototype to avoid an error.  */
 
4136
#ifdef __cplusplus
 
4137
extern "C"
 
4138
#endif
1831
4139
/* We use char because int might match the return type of a gcc2
1832
 
    builtin and then its argument prototype would still apply.  */
1833
 
char pthread_join();
1834
 
 
1835
 
int main() {
1836
 
pthread_join()
1837
 
; return 0; }
1838
 
EOF
1839
 
if { (eval echo configure:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1840
 
  rm -rf conftest*
 
4140
   builtin and then its argument prototype would still apply.  */
 
4141
char pthread_join ();
 
4142
int
 
4143
main ()
 
4144
{
 
4145
pthread_join ();
 
4146
  ;
 
4147
  return 0;
 
4148
}
 
4149
_ACEOF
 
4150
rm -f conftest.$ac_objext conftest$ac_exeext
 
4151
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4152
  (eval $ac_link) 2>conftest.er1
 
4153
  ac_status=$?
 
4154
  grep -v '^ *+' conftest.er1 >conftest.err
 
4155
  rm -f conftest.er1
 
4156
  cat conftest.err >&5
 
4157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4158
  (exit $ac_status); } &&
 
4159
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4160
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4161
  (eval $ac_try) 2>&5
 
4162
  ac_status=$?
 
4163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4164
  (exit $ac_status); }; } &&
 
4165
         { ac_try='test -s conftest$ac_exeext'
 
4166
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4167
  (eval $ac_try) 2>&5
 
4168
  ac_status=$?
 
4169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4170
  (exit $ac_status); }; }; then
1841
4171
  acx_pthread_ok=yes
1842
4172
else
1843
 
  echo "configure: failed program was:" >&5
1844
 
  cat conftest.$ac_ext >&5
 
4173
  echo "$as_me: failed program was:" >&5
 
4174
sed 's/^/| /' conftest.$ac_ext >&5
 
4175
 
1845
4176
fi
1846
 
rm -f conftest*
1847
 
        echo "$ac_t""$acx_pthread_ok" 1>&6
 
4177
rm -f conftest.err conftest.$ac_objext \
 
4178
      conftest$ac_exeext conftest.$ac_ext
 
4179
        echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
 
4180
echo "${ECHO_T}$acx_pthread_ok" >&6
1848
4181
        if test x"$acx_pthread_ok" = xno; then
1849
4182
                PTHREAD_LIBS=""
1850
4183
                PTHREAD_CFLAGS=""
1853
4186
        CFLAGS="$save_CFLAGS"
1854
4187
fi
1855
4188
 
 
4189
# We must check for the threads library under a number of different
 
4190
# names; the ordering is very important because some systems
 
4191
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
 
4192
# libraries is broken (non-POSIX).
 
4193
 
1856
4194
# Create a list of thread flags to try.  Items starting with a "-" are
1857
4195
# C compiler flags, and other items are library names, except for "none"
1858
4196
# which indicates that we try without any flags at all.
1859
4197
 
1860
 
acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads -mt pthread --thread-safe"
 
4198
acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
1861
4199
 
1862
4200
# The ordering *is* (sometimes) important.  Some notes on the
1863
4201
# individual items follow:
1871
4209
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
1872
4210
# -pthreads: Solaris/gcc
1873
4211
# -mthreads: Mingw32/gcc, Lynx/gcc
1874
 
# -mt: Sun Workshop C (may only link SunOS threads, but doesn't hurt to check)
 
4212
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
 
4213
#      doesn't hurt to check since this sometimes defines pthreads too;
 
4214
#      also defines -D_REENTRANT)
1875
4215
# pthread: Linux, etcetera
1876
4216
# --thread-safe: KAI C++
1877
4217
 
1886
4226
        # who knows whether they'll stub that too in a future libc.)  So,
1887
4227
        # we'll just look for -pthreads and -lpthread first:
1888
4228
 
1889
 
        acx_pthread_flags="-pthread -pthreads -mt pthread $acx_pthread_flags"
 
4229
        acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
1890
4230
        ;;
1891
4231
esac
1892
4232
 
1895
4235
 
1896
4236
        case $flag in
1897
4237
                none)
1898
 
                echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
1899
 
echo "configure:1900: checking whether pthreads work without any flags" >&5
 
4238
                echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
 
4239
echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
1900
4240
                ;;
1901
4241
 
1902
4242
                -*)
1903
 
                echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
1904
 
echo "configure:1905: checking whether pthreads work with $flag" >&5
 
4243
                echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
 
4244
echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
1905
4245
                PTHREAD_CFLAGS="$flag"
1906
4246
                ;;
1907
4247
 
1908
4248
                *)
1909
 
                echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
1910
 
echo "configure:1911: checking for the pthreads library -l$flag" >&5
 
4249
                echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
 
4250
echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
1911
4251
                PTHREAD_LIBS="-l$flag"
1912
4252
                ;;
1913
4253
        esac
1926
4266
        # pthread_cleanup_push because it is one of the few pthread
1927
4267
        # functions on Solaris that doesn't have a non-functional libc stub.
1928
4268
        # We try pthread_create on general principles.
1929
 
        cat > conftest.$ac_ext <<EOF
1930
 
#line 1931 "configure"
1931
 
#include "confdefs.h"
 
4269
        cat >conftest.$ac_ext <<_ACEOF
 
4270
/* confdefs.h.  */
 
4271
_ACEOF
 
4272
cat confdefs.h >>conftest.$ac_ext
 
4273
cat >>conftest.$ac_ext <<_ACEOF
 
4274
/* end confdefs.h.  */
1932
4275
#include <pthread.h>
1933
 
int main() {
 
4276
int
 
4277
main ()
 
4278
{
1934
4279
pthread_t th; pthread_join(th, 0);
1935
4280
                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
1936
 
                     pthread_create(0,0,0,0); pthread_cleanup_pop(0); 
1937
 
; return 0; }
1938
 
EOF
1939
 
if { (eval echo configure:1940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1940
 
  rm -rf conftest*
 
4281
                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
 
4282
  ;
 
4283
  return 0;
 
4284
}
 
4285
_ACEOF
 
4286
rm -f conftest.$ac_objext conftest$ac_exeext
 
4287
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4288
  (eval $ac_link) 2>conftest.er1
 
4289
  ac_status=$?
 
4290
  grep -v '^ *+' conftest.er1 >conftest.err
 
4291
  rm -f conftest.er1
 
4292
  cat conftest.err >&5
 
4293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4294
  (exit $ac_status); } &&
 
4295
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4296
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4297
  (eval $ac_try) 2>&5
 
4298
  ac_status=$?
 
4299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4300
  (exit $ac_status); }; } &&
 
4301
         { ac_try='test -s conftest$ac_exeext'
 
4302
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4303
  (eval $ac_try) 2>&5
 
4304
  ac_status=$?
 
4305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4306
  (exit $ac_status); }; }; then
1941
4307
  acx_pthread_ok=yes
1942
4308
else
1943
 
  echo "configure: failed program was:" >&5
1944
 
  cat conftest.$ac_ext >&5
 
4309
  echo "$as_me: failed program was:" >&5
 
4310
sed 's/^/| /' conftest.$ac_ext >&5
 
4311
 
1945
4312
fi
1946
 
rm -f conftest*
 
4313
rm -f conftest.err conftest.$ac_objext \
 
4314
      conftest$ac_exeext conftest.$ac_ext
1947
4315
 
1948
4316
        LIBS="$save_LIBS"
1949
4317
        CFLAGS="$save_CFLAGS"
1950
4318
 
1951
 
        echo "$ac_t""$acx_pthread_ok" 1>&6
 
4319
        echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
 
4320
echo "${ECHO_T}$acx_pthread_ok" >&6
1952
4321
        if test "x$acx_pthread_ok" = xyes; then
1953
4322
                break;
1954
4323
        fi
1967
4336
 
1968
4337
        # Detect AIX lossage: threads are created detached by default
1969
4338
        # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
1970
 
        echo $ac_n "checking for joinable pthread attribute""... $ac_c" 1>&6
1971
 
echo "configure:1972: checking for joinable pthread attribute" >&5
1972
 
        cat > conftest.$ac_ext <<EOF
1973
 
#line 1974 "configure"
1974
 
#include "confdefs.h"
 
4339
        echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
 
4340
echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
 
4341
        cat >conftest.$ac_ext <<_ACEOF
 
4342
/* confdefs.h.  */
 
4343
_ACEOF
 
4344
cat confdefs.h >>conftest.$ac_ext
 
4345
cat >>conftest.$ac_ext <<_ACEOF
 
4346
/* end confdefs.h.  */
1975
4347
#include <pthread.h>
1976
 
int main() {
 
4348
int
 
4349
main ()
 
4350
{
1977
4351
int attr=PTHREAD_CREATE_JOINABLE;
1978
 
; return 0; }
1979
 
EOF
1980
 
if { (eval echo configure:1981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1981
 
  rm -rf conftest*
 
4352
  ;
 
4353
  return 0;
 
4354
}
 
4355
_ACEOF
 
4356
rm -f conftest.$ac_objext conftest$ac_exeext
 
4357
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4358
  (eval $ac_link) 2>conftest.er1
 
4359
  ac_status=$?
 
4360
  grep -v '^ *+' conftest.er1 >conftest.err
 
4361
  rm -f conftest.er1
 
4362
  cat conftest.err >&5
 
4363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4364
  (exit $ac_status); } &&
 
4365
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4366
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4367
  (eval $ac_try) 2>&5
 
4368
  ac_status=$?
 
4369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4370
  (exit $ac_status); }; } &&
 
4371
         { ac_try='test -s conftest$ac_exeext'
 
4372
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4373
  (eval $ac_try) 2>&5
 
4374
  ac_status=$?
 
4375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4376
  (exit $ac_status); }; }; then
1982
4377
  ok=PTHREAD_CREATE_JOINABLE
1983
4378
else
1984
 
  echo "configure: failed program was:" >&5
1985
 
  cat conftest.$ac_ext >&5
1986
 
  rm -rf conftest*
1987
 
  ok=unknown
 
4379
  echo "$as_me: failed program was:" >&5
 
4380
sed 's/^/| /' conftest.$ac_ext >&5
 
4381
 
 
4382
ok=unknown
1988
4383
fi
1989
 
rm -f conftest*
 
4384
rm -f conftest.err conftest.$ac_objext \
 
4385
      conftest$ac_exeext conftest.$ac_ext
1990
4386
        if test x"$ok" = xunknown; then
1991
 
                cat > conftest.$ac_ext <<EOF
1992
 
#line 1993 "configure"
1993
 
#include "confdefs.h"
 
4387
                cat >conftest.$ac_ext <<_ACEOF
 
4388
/* confdefs.h.  */
 
4389
_ACEOF
 
4390
cat confdefs.h >>conftest.$ac_ext
 
4391
cat >>conftest.$ac_ext <<_ACEOF
 
4392
/* end confdefs.h.  */
1994
4393
#include <pthread.h>
1995
 
int main() {
 
4394
int
 
4395
main ()
 
4396
{
1996
4397
int attr=PTHREAD_CREATE_UNDETACHED;
1997
 
; return 0; }
1998
 
EOF
1999
 
if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2000
 
  rm -rf conftest*
 
4398
  ;
 
4399
  return 0;
 
4400
}
 
4401
_ACEOF
 
4402
rm -f conftest.$ac_objext conftest$ac_exeext
 
4403
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4404
  (eval $ac_link) 2>conftest.er1
 
4405
  ac_status=$?
 
4406
  grep -v '^ *+' conftest.er1 >conftest.err
 
4407
  rm -f conftest.er1
 
4408
  cat conftest.err >&5
 
4409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4410
  (exit $ac_status); } &&
 
4411
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4412
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4413
  (eval $ac_try) 2>&5
 
4414
  ac_status=$?
 
4415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4416
  (exit $ac_status); }; } &&
 
4417
         { ac_try='test -s conftest$ac_exeext'
 
4418
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4419
  (eval $ac_try) 2>&5
 
4420
  ac_status=$?
 
4421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4422
  (exit $ac_status); }; }; then
2001
4423
  ok=PTHREAD_CREATE_UNDETACHED
2002
4424
else
2003
 
  echo "configure: failed program was:" >&5
2004
 
  cat conftest.$ac_ext >&5
2005
 
  rm -rf conftest*
2006
 
  ok=unknown
 
4425
  echo "$as_me: failed program was:" >&5
 
4426
sed 's/^/| /' conftest.$ac_ext >&5
 
4427
 
 
4428
ok=unknown
2007
4429
fi
2008
 
rm -f conftest*
 
4430
rm -f conftest.err conftest.$ac_objext \
 
4431
      conftest$ac_exeext conftest.$ac_ext
2009
4432
        fi
2010
4433
        if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
2011
 
                cat >> confdefs.h <<\EOF
 
4434
 
 
4435
cat >>confdefs.h <<\_ACEOF
2012
4436
#define PTHREAD_CREATE_JOINABLE $ok
2013
 
EOF
 
4437
_ACEOF
2014
4438
 
2015
4439
        fi
2016
 
        echo "$ac_t""${ok}" 1>&6
 
4440
        echo "$as_me:$LINENO: result: ${ok}" >&5
 
4441
echo "${ECHO_T}${ok}" >&6
2017
4442
        if test x"$ok" = xunknown; then
2018
 
                echo "configure: warning: we do not know how to create joinable pthreads" 1>&2
 
4443
                { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
 
4444
echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
2019
4445
        fi
2020
4446
 
2021
 
        echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
2022
 
echo "configure:2023: checking if more special flags are required for pthreads" >&5
 
4447
        echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
 
4448
echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
2023
4449
        flag=no
2024
4450
        case "${host_cpu}-${host_os}" in
2025
4451
                *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
2026
 
                *solaris* | alpha*-osf*) flag="-D_REENTRANT";;
 
4452
                *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
2027
4453
        esac
2028
 
        echo "$ac_t""${flag}" 1>&6
 
4454
        echo "$as_me:$LINENO: result: ${flag}" >&5
 
4455
echo "${ECHO_T}${flag}" >&6
2029
4456
        if test "x$flag" != xno; then
2030
4457
                PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
2031
4458
        fi
2036
4463
        # More AIX lossage: must compile with cc_r
2037
4464
        # Extract the first word of "cc_r", so it can be a program name with args.
2038
4465
set dummy cc_r; ac_word=$2
2039
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2040
 
echo "configure:2041: checking for $ac_word" >&5
2041
 
if eval "test \"`echo '$''{'ac_cv_prog_PTHREAD_CC'+set}'`\" = set"; then
2042
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
4466
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4467
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4468
if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
 
4469
  echo $ECHO_N "(cached) $ECHO_C" >&6
2043
4470
else
2044
4471
  if test -n "$PTHREAD_CC"; then
2045
4472
  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
2046
4473
else
2047
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2048
 
  ac_dummy="$PATH"
2049
 
  for ac_dir in $ac_dummy; do
2050
 
    test -z "$ac_dir" && ac_dir=.
2051
 
    if test -f $ac_dir/$ac_word; then
2052
 
      ac_cv_prog_PTHREAD_CC="cc_r"
2053
 
      break
2054
 
    fi
2055
 
  done
2056
 
  IFS="$ac_save_ifs"
 
4474
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4475
for as_dir in $PATH
 
4476
do
 
4477
  IFS=$as_save_IFS
 
4478
  test -z "$as_dir" && as_dir=.
 
4479
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4480
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4481
    ac_cv_prog_PTHREAD_CC="cc_r"
 
4482
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4483
    break 2
 
4484
  fi
 
4485
done
 
4486
done
 
4487
 
2057
4488
  test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
2058
4489
fi
2059
4490
fi
2060
 
PTHREAD_CC="$ac_cv_prog_PTHREAD_CC"
 
4491
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
2061
4492
if test -n "$PTHREAD_CC"; then
2062
 
  echo "$ac_t""$PTHREAD_CC" 1>&6
 
4493
  echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
 
4494
echo "${ECHO_T}$PTHREAD_CC" >&6
2063
4495
else
2064
 
  echo "$ac_t""no" 1>&6
 
4496
  echo "$as_me:$LINENO: result: no" >&5
 
4497
echo "${ECHO_T}no" >&6
2065
4498
fi
2066
4499
 
2067
4500
else
2074
4507
 
2075
4508
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
2076
4509
if test x"$acx_pthread_ok" = xyes; then
2077
 
        
2078
 
 cat >> confdefs.h <<\EOF
 
4510
 
 
4511
 
 
4512
cat >>confdefs.h <<\_ACEOF
2079
4513
#define HAVE_PTHREAD 1
2080
 
EOF
 
4514
_ACEOF
2081
4515
 
2082
4516
 
2083
4517
        :
2084
4518
else
2085
4519
        acx_pthread_ok=no
2086
 
        
2087
 
 { echo "configure: error: POSIX thread support required" 1>&2; exit 1; }
2088
 
 
2089
 
fi
2090
 
 
2091
 
 
2092
 
 
2093
 
LIBS="$PTHREAD_LIBS $LIBS"
2094
 
CFLAGS="$CFLAGS -Wall -fno-common $PTHREAD_CFLAGS"
2095
 
CC="$PTHREAD_CC"
2096
 
 
2097
 
for ac_func in daemon
2098
 
do
2099
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2100
 
echo "configure:2101: checking for $ac_func" >&5
2101
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2102
 
  echo $ac_n "(cached) $ac_c" 1>&6
2103
 
else
2104
 
  cat > conftest.$ac_ext <<EOF
2105
 
#line 2106 "configure"
2106
 
#include "confdefs.h"
2107
 
/* System header to define __stub macros and hopefully few prototypes,
2108
 
    which can conflict with char $ac_func(); below.  */
2109
 
#include <assert.h>
2110
 
/* Override any gcc2 internal prototype to avoid an error.  */
2111
 
/* We use char because int might match the return type of a gcc2
2112
 
    builtin and then its argument prototype would still apply.  */
2113
 
char $ac_func();
2114
 
 
2115
 
int main() {
2116
 
 
2117
 
/* The GNU C library defines this for functions which it implements
2118
 
    to always fail with ENOSYS.  Some functions are actually named
2119
 
    something starting with __ and the normal name is an alias.  */
2120
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2121
 
choke me
2122
 
#else
2123
 
$ac_func();
2124
 
#endif
2125
 
 
2126
 
; return 0; }
2127
 
EOF
2128
 
if { (eval echo configure:2129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2129
 
  rm -rf conftest*
2130
 
  eval "ac_cv_func_$ac_func=yes"
2131
 
else
2132
 
  echo "configure: failed program was:" >&5
2133
 
  cat conftest.$ac_ext >&5
2134
 
  rm -rf conftest*
2135
 
  eval "ac_cv_func_$ac_func=no"
2136
 
fi
2137
 
rm -f conftest*
2138
 
fi
2139
 
 
2140
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2141
 
  echo "$ac_t""yes" 1>&6
2142
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2143
 
  cat >> confdefs.h <<EOF
2144
 
#define $ac_tr_func 1
2145
 
EOF
2146
 
 
2147
 
else
2148
 
  echo "$ac_t""no" 1>&6
2149
 
fi
2150
 
done
2151
 
 
2152
 
 
2153
 
 
2154
 
# Find the correct PATH separator.  Usually this is `:', but
2155
 
# DJGPP uses `;' like DOS.
2156
 
if test "X${PATH_SEPARATOR+set}" != Xset; then
2157
 
  UNAME=${UNAME-`uname 2>/dev/null`}
2158
 
  case X$UNAME in
2159
 
    *-DOS) lt_cv_sys_path_separator=';' ;;
2160
 
    *)     lt_cv_sys_path_separator=':' ;;
2161
 
  esac
2162
 
  PATH_SEPARATOR=$lt_cv_sys_path_separator
2163
 
fi
2164
 
 
2165
 
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2166
 
echo "configure:2167: checking for Cygwin environment" >&5
2167
 
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2168
 
  echo $ac_n "(cached) $ac_c" 1>&6
2169
 
else
2170
 
  cat > conftest.$ac_ext <<EOF
2171
 
#line 2172 "configure"
2172
 
#include "confdefs.h"
2173
 
 
2174
 
int main() {
2175
 
 
2176
 
#ifndef __CYGWIN__
2177
 
#define __CYGWIN__ __CYGWIN32__
2178
 
#endif
2179
 
return __CYGWIN__;
2180
 
; return 0; }
2181
 
EOF
2182
 
if { (eval echo configure:2183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2183
 
  rm -rf conftest*
2184
 
  ac_cv_cygwin=yes
2185
 
else
2186
 
  echo "configure: failed program was:" >&5
2187
 
  cat conftest.$ac_ext >&5
2188
 
  rm -rf conftest*
2189
 
  ac_cv_cygwin=no
2190
 
fi
2191
 
rm -f conftest*
2192
 
rm -f conftest*
2193
 
fi
2194
 
 
2195
 
echo "$ac_t""$ac_cv_cygwin" 1>&6
2196
 
CYGWIN=
2197
 
test "$ac_cv_cygwin" = yes && CYGWIN=yes
2198
 
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2199
 
echo "configure:2200: checking for mingw32 environment" >&5
2200
 
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2201
 
  echo $ac_n "(cached) $ac_c" 1>&6
2202
 
else
2203
 
  cat > conftest.$ac_ext <<EOF
2204
 
#line 2205 "configure"
2205
 
#include "confdefs.h"
2206
 
 
2207
 
int main() {
2208
 
return __MINGW32__;
2209
 
; return 0; }
2210
 
EOF
2211
 
if { (eval echo configure:2212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2212
 
  rm -rf conftest*
2213
 
  ac_cv_mingw32=yes
2214
 
else
2215
 
  echo "configure: failed program was:" >&5
2216
 
  cat conftest.$ac_ext >&5
2217
 
  rm -rf conftest*
2218
 
  ac_cv_mingw32=no
2219
 
fi
2220
 
rm -f conftest*
2221
 
rm -f conftest*
2222
 
fi
2223
 
 
2224
 
echo "$ac_t""$ac_cv_mingw32" 1>&6
2225
 
MINGW32=
2226
 
test "$ac_cv_mingw32" = yes && MINGW32=yes
 
4520
 
 
4521
 { { echo "$as_me:$LINENO: error: POSIX thread support required" >&5
 
4522
echo "$as_me: error: POSIX thread support required" >&2;}
 
4523
   { (exit 1); exit 1; }; }
 
4524
 
 
4525
fi
 
4526
ac_ext=c
 
4527
ac_cpp='$CPP $CPPFLAGS'
 
4528
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4529
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4530
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4531
 
 
4532
 
 
4533
 
 
4534
# Check whether --enable-threadsafe or --disable-threadsafe was given.
 
4535
if test "${enable_threadsafe+set}" = set; then
 
4536
  enableval="$enable_threadsafe"
 
4537
  case "${enableval}" in
 
4538
  yes)  threadsafe=true ;;
 
4539
  no)   threadsafe=false ;;
 
4540
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-threadsafe" >&5
 
4541
echo "$as_me: error: bad value ${enableval} for --enable-threadsafe" >&2;}
 
4542
   { (exit 1); exit 1; }; } ;;
 
4543
 esac
 
4544
else
 
4545
  threadsafe=true
 
4546
fi;
 
4547
 
 
4548
if test x${threadsafe} = xtrue ; then
 
4549
  LIBS="$PTHREAD_LIBS $LIBS"
 
4550
  CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 
4551
  CC="$PTHREAD_CC"
 
4552
fi
 
4553
 
 
4554
 
 
4555
 
2227
4556
# Check whether --enable-shared or --disable-shared was given.
2228
4557
if test "${enable_shared+set}" = set; then
2229
4558
  enableval="$enable_shared"
2230
4559
  p=${PACKAGE-default}
2231
 
case $enableval in
2232
 
yes) enable_shared=yes ;;
2233
 
no) enable_shared=no ;;
2234
 
*)
2235
 
  enable_shared=no
2236
 
  # Look at the argument we got.  We use all the common list separators.
2237
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2238
 
  for pkg in $enableval; do
2239
 
    if test "X$pkg" = "X$p"; then
2240
 
      enable_shared=yes
2241
 
    fi
2242
 
  done
2243
 
  IFS="$ac_save_ifs"
2244
 
  ;;
2245
 
esac
 
4560
    case $enableval in
 
4561
    yes) enable_shared=yes ;;
 
4562
    no) enable_shared=no ;;
 
4563
    *)
 
4564
      enable_shared=no
 
4565
      # Look at the argument we got.  We use all the common list separators.
 
4566
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4567
      for pkg in $enableval; do
 
4568
        IFS="$lt_save_ifs"
 
4569
        if test "X$pkg" = "X$p"; then
 
4570
          enable_shared=yes
 
4571
        fi
 
4572
      done
 
4573
      IFS="$lt_save_ifs"
 
4574
      ;;
 
4575
    esac
2246
4576
else
2247
4577
  enable_shared=yes
2248
 
fi
 
4578
fi;
2249
4579
 
2250
4580
# Check whether --enable-static or --disable-static was given.
2251
4581
if test "${enable_static+set}" = set; then
2252
4582
  enableval="$enable_static"
2253
4583
  p=${PACKAGE-default}
2254
 
case $enableval in
2255
 
yes) enable_static=yes ;;
2256
 
no) enable_static=no ;;
2257
 
*)
2258
 
  enable_static=no
2259
 
  # Look at the argument we got.  We use all the common list separators.
2260
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2261
 
  for pkg in $enableval; do
2262
 
    if test "X$pkg" = "X$p"; then
2263
 
      enable_static=yes
2264
 
    fi
2265
 
  done
2266
 
  IFS="$ac_save_ifs"
2267
 
  ;;
2268
 
esac
 
4584
    case $enableval in
 
4585
    yes) enable_static=yes ;;
 
4586
    no) enable_static=no ;;
 
4587
    *)
 
4588
     enable_static=no
 
4589
      # Look at the argument we got.  We use all the common list separators.
 
4590
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4591
      for pkg in $enableval; do
 
4592
        IFS="$lt_save_ifs"
 
4593
        if test "X$pkg" = "X$p"; then
 
4594
          enable_static=yes
 
4595
        fi
 
4596
      done
 
4597
      IFS="$lt_save_ifs"
 
4598
      ;;
 
4599
    esac
2269
4600
else
2270
4601
  enable_static=yes
2271
 
fi
 
4602
fi;
2272
4603
 
2273
4604
# Check whether --enable-fast-install or --disable-fast-install was given.
2274
4605
if test "${enable_fast_install+set}" = set; then
2275
4606
  enableval="$enable_fast_install"
2276
4607
  p=${PACKAGE-default}
2277
 
case $enableval in
2278
 
yes) enable_fast_install=yes ;;
2279
 
no) enable_fast_install=no ;;
2280
 
*)
2281
 
  enable_fast_install=no
2282
 
  # Look at the argument we got.  We use all the common list separators.
2283
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2284
 
  for pkg in $enableval; do
2285
 
    if test "X$pkg" = "X$p"; then
2286
 
      enable_fast_install=yes
2287
 
    fi
2288
 
  done
2289
 
  IFS="$ac_save_ifs"
2290
 
  ;;
2291
 
esac
 
4608
    case $enableval in
 
4609
    yes) enable_fast_install=yes ;;
 
4610
    no) enable_fast_install=no ;;
 
4611
    *)
 
4612
      enable_fast_install=no
 
4613
      # Look at the argument we got.  We use all the common list separators.
 
4614
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4615
      for pkg in $enableval; do
 
4616
        IFS="$lt_save_ifs"
 
4617
        if test "X$pkg" = "X$p"; then
 
4618
          enable_fast_install=yes
 
4619
        fi
 
4620
      done
 
4621
      IFS="$lt_save_ifs"
 
4622
      ;;
 
4623
    esac
2292
4624
else
2293
4625
  enable_fast_install=yes
2294
 
fi
 
4626
fi;
 
4627
 
 
4628
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
4629
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
4630
if test "${lt_cv_path_SED+set}" = set; then
 
4631
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4632
else
 
4633
  # Loop through the user's path and test for sed and gsed.
 
4634
# Then use that list of sed's as ones to test for truncation.
 
4635
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4636
for as_dir in $PATH
 
4637
do
 
4638
  IFS=$as_save_IFS
 
4639
  test -z "$as_dir" && as_dir=.
 
4640
  for lt_ac_prog in sed gsed; do
 
4641
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4642
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
4643
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
4644
      fi
 
4645
    done
 
4646
  done
 
4647
done
 
4648
lt_ac_max=0
 
4649
lt_ac_count=0
 
4650
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
4651
# along with /bin/sed that truncates output.
 
4652
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
4653
  test ! -f $lt_ac_sed && break
 
4654
  cat /dev/null > conftest.in
 
4655
  lt_ac_count=0
 
4656
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
4657
  # Check for GNU sed and select it if it is found.
 
4658
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
4659
    lt_cv_path_SED=$lt_ac_sed
 
4660
    break
 
4661
  fi
 
4662
  while true; do
 
4663
    cat conftest.in conftest.in >conftest.tmp
 
4664
    mv conftest.tmp conftest.in
 
4665
    cp conftest.in conftest.nl
 
4666
    echo >>conftest.nl
 
4667
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
4668
    cmp -s conftest.out conftest.nl || break
 
4669
    # 10000 chars as input seems more than enough
 
4670
    test $lt_ac_count -gt 10 && break
 
4671
    lt_ac_count=`expr $lt_ac_count + 1`
 
4672
    if test $lt_ac_count -gt $lt_ac_max; then
 
4673
      lt_ac_max=$lt_ac_count
 
4674
      lt_cv_path_SED=$lt_ac_sed
 
4675
    fi
 
4676
  done
 
4677
done
 
4678
SED=$lt_cv_path_SED
 
4679
 
 
4680
fi
 
4681
 
 
4682
echo "$as_me:$LINENO: result: $SED" >&5
 
4683
echo "${ECHO_T}$SED" >&6
 
4684
 
 
4685
echo "$as_me:$LINENO: checking for egrep" >&5
 
4686
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
4687
if test "${ac_cv_prog_egrep+set}" = set; then
 
4688
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4689
else
 
4690
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
4691
    then ac_cv_prog_egrep='grep -E'
 
4692
    else ac_cv_prog_egrep='egrep'
 
4693
    fi
 
4694
fi
 
4695
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
4696
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
4697
 EGREP=$ac_cv_prog_egrep
 
4698
 
 
4699
 
2295
4700
 
2296
4701
# Check whether --with-gnu-ld or --without-gnu-ld was given.
2297
4702
if test "${with_gnu_ld+set}" = set; then
2299
4704
  test "$withval" = no || with_gnu_ld=yes
2300
4705
else
2301
4706
  with_gnu_ld=no
2302
 
fi
2303
 
 
 
4707
fi;
2304
4708
ac_prog=ld
2305
4709
if test "$GCC" = yes; then
2306
4710
  # Check if gcc -print-prog-name=ld gives a path.
2307
 
  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2308
 
echo "configure:2309: checking for ld used by GCC" >&5
 
4711
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4712
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2309
4713
  case $host in
2310
4714
  *-*-mingw*)
2311
4715
    # gcc leaves a trailing carriage return which upsets mingw
2315
4719
  esac
2316
4720
  case $ac_prog in
2317
4721
    # Accept absolute paths.
2318
 
    [\\/]* | [A-Za-z]:[\\/]*)
 
4722
    [\\/]* | ?:[\\/]*)
2319
4723
      re_direlt='/[^/][^/]*/\.\./'
2320
 
      # Canonicalize the path of ld
2321
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
4724
      # Canonicalize the pathname of ld
 
4725
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2322
4726
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2323
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
4727
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2324
4728
      done
2325
4729
      test -z "$LD" && LD="$ac_prog"
2326
4730
      ;;
2334
4738
    ;;
2335
4739
  esac
2336
4740
elif test "$with_gnu_ld" = yes; then
2337
 
  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2338
 
echo "configure:2339: checking for GNU ld" >&5
 
4741
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4742
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2339
4743
else
2340
 
  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2341
 
echo "configure:2342: checking for non-GNU ld" >&5
 
4744
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4745
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2342
4746
fi
2343
 
if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
2344
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
4747
if test "${lt_cv_path_LD+set}" = set; then
 
4748
  echo $ECHO_N "(cached) $ECHO_C" >&6
2345
4749
else
2346
4750
  if test -z "$LD"; then
2347
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4751
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2348
4752
  for ac_dir in $PATH; do
 
4753
    IFS="$lt_save_ifs"
2349
4754
    test -z "$ac_dir" && ac_dir=.
2350
4755
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2351
4756
      lt_cv_path_LD="$ac_dir/$ac_prog"
2352
4757
      # Check to see if the program is GNU ld.  I'd rather use --version,
2353
4758
      # but apparently some GNU ld's only accept -v.
2354
4759
      # Break only if it was the GNU/non-GNU ld that we prefer.
2355
 
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
4760
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4761
      *GNU* | *'with BFD'*)
2356
4762
        test "$with_gnu_ld" != no && break
2357
 
      else
 
4763
        ;;
 
4764
      *)
2358
4765
        test "$with_gnu_ld" != yes && break
2359
 
      fi
 
4766
        ;;
 
4767
      esac
2360
4768
    fi
2361
4769
  done
2362
 
  IFS="$ac_save_ifs"
 
4770
  IFS="$lt_save_ifs"
2363
4771
else
2364
4772
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
2365
4773
fi
2367
4775
 
2368
4776
LD="$lt_cv_path_LD"
2369
4777
if test -n "$LD"; then
2370
 
  echo "$ac_t""$LD" 1>&6
 
4778
  echo "$as_me:$LINENO: result: $LD" >&5
 
4779
echo "${ECHO_T}$LD" >&6
2371
4780
else
2372
 
  echo "$ac_t""no" 1>&6
 
4781
  echo "$as_me:$LINENO: result: no" >&5
 
4782
echo "${ECHO_T}no" >&6
2373
4783
fi
2374
 
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2375
 
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2376
 
echo "configure:2377: checking if the linker ($LD) is GNU ld" >&5
2377
 
if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
2378
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
4784
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4785
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4786
   { (exit 1); exit 1; }; }
 
4787
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4788
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
4789
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4790
  echo $ECHO_N "(cached) $ECHO_C" >&6
2379
4791
else
2380
4792
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2381
 
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
4793
case `$LD -v 2>&1 </dev/null` in
 
4794
*GNU* | *'with BFD'*)
2382
4795
  lt_cv_prog_gnu_ld=yes
2383
 
else
 
4796
  ;;
 
4797
*)
2384
4798
  lt_cv_prog_gnu_ld=no
2385
 
fi
2386
 
fi
2387
 
 
2388
 
echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
 
4799
  ;;
 
4800
esac
 
4801
fi
 
4802
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4803
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2389
4804
with_gnu_ld=$lt_cv_prog_gnu_ld
2390
4805
 
2391
4806
 
2392
 
echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
2393
 
echo "configure:2394: checking for $LD option to reload object files" >&5
2394
 
if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
2395
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
4807
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4808
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
4809
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4810
  echo $ECHO_N "(cached) $ECHO_C" >&6
2396
4811
else
2397
4812
  lt_cv_ld_reload_flag='-r'
2398
4813
fi
2399
 
 
2400
 
echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
 
4814
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4815
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2401
4816
reload_flag=$lt_cv_ld_reload_flag
2402
 
test -n "$reload_flag" && reload_flag=" $reload_flag"
 
4817
case $reload_flag in
 
4818
"" | " "*) ;;
 
4819
*) reload_flag=" $reload_flag" ;;
 
4820
esac
 
4821
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2403
4822
 
2404
 
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2405
 
echo "configure:2406: checking for BSD-compatible nm" >&5
2406
 
if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
2407
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
4823
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4824
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
4825
if test "${lt_cv_path_NM+set}" = set; then
 
4826
  echo $ECHO_N "(cached) $ECHO_C" >&6
2408
4827
else
2409
4828
  if test -n "$NM"; then
2410
4829
  # Let the user override the test.
2411
4830
  lt_cv_path_NM="$NM"
2412
4831
else
2413
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4832
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2414
4833
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
4834
    IFS="$lt_save_ifs"
2415
4835
    test -z "$ac_dir" && ac_dir=.
2416
 
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
2417
 
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
 
4836
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
4837
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2418
4838
      # Check to see if the nm accepts a BSD-compat flag.
2419
4839
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2420
4840
      #   nm: unknown option "B" ignored
2421
4841
      # Tru64's nm complains that /dev/null is an invalid object file
2422
 
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
 
4842
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4843
      */dev/null* | *'Invalid file or object type'*)
2423
4844
        lt_cv_path_NM="$tmp_nm -B"
2424
4845
        break
2425
 
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2426
 
        lt_cv_path_NM="$tmp_nm -p"
2427
 
        break
2428
 
      else
2429
 
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2430
 
        continue # so that we can try to find one that supports BSD flags
2431
 
      fi
 
4846
        ;;
 
4847
      *)
 
4848
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4849
        */dev/null*)
 
4850
          lt_cv_path_NM="$tmp_nm -p"
 
4851
          break
 
4852
          ;;
 
4853
        *)
 
4854
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4855
          continue # so that we can try to find one that supports BSD flags
 
4856
          ;;
 
4857
        esac
 
4858
      esac
2432
4859
    fi
2433
4860
  done
2434
 
  IFS="$ac_save_ifs"
 
4861
  IFS="$lt_save_ifs"
2435
4862
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2436
4863
fi
2437
4864
fi
2438
 
 
 
4865
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4866
echo "${ECHO_T}$lt_cv_path_NM" >&6
2439
4867
NM="$lt_cv_path_NM"
2440
 
echo "$ac_t""$NM" 1>&6
2441
4868
 
2442
 
echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
2443
 
echo "configure:2444: checking how to recognise dependant libraries" >&5
2444
 
if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
2445
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
4869
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
4870
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
4871
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4872
  echo $ECHO_N "(cached) $ECHO_C" >&6
2446
4873
else
2447
4874
  lt_cv_file_magic_cmd='$MAGIC_CMD'
2448
4875
lt_cv_file_magic_test_file=
2454
4881
# 'pass_all' -- all dependencies passed with no checks.
2455
4882
# 'test_compile' -- check by making test program.
2456
4883
# 'file_magic [[regex]]' -- check by looking for files in library path
2457
 
# which responds to the $file_magic_cmd with a given egrep regex.
 
4884
# which responds to the $file_magic_cmd with a given extended regex.
2458
4885
# If you have `file' or equivalent on your system and you're not sure
2459
4886
# whether `pass_all' will *always* work, you probably want this one.
2460
4887
 
2473
4900
  lt_cv_file_magic_test_file=/shlib/libc.so
2474
4901
  ;;
2475
4902
 
2476
 
cygwin* | mingw* | pw32*)
 
4903
cygwin*)
 
4904
  # func_win32_libid is a shell function defined in ltmain.sh
 
4905
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4906
  lt_cv_file_magic_cmd='func_win32_libid'
 
4907
  ;;
 
4908
 
 
4909
mingw* | pw32*)
 
4910
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4911
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2477
4912
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2478
4913
  lt_cv_file_magic_cmd='$OBJDUMP -f'
2479
4914
  ;;
2480
4915
 
2481
4916
darwin* | rhapsody*)
2482
 
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2483
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
2484
 
  case "$host_os" in
2485
 
  rhapsody* | darwin1.[012])
2486
 
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2487
 
    ;;
2488
 
  *) # Darwin 1.3 on
2489
 
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2490
 
    ;;
2491
 
  esac
 
4917
  lt_cv_deplibs_check_method=pass_all
2492
4918
  ;;
2493
4919
 
2494
 
freebsd*)
 
4920
freebsd* | kfreebsd*-gnu)
2495
4921
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2496
4922
    case $host_cpu in
2497
4923
    i*86 )
2511
4937
  lt_cv_deplibs_check_method=pass_all
2512
4938
  ;;
2513
4939
 
2514
 
hpux10.20*|hpux11*)
2515
 
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4940
hpux10.20* | hpux11*)
2516
4941
  lt_cv_file_magic_cmd=/usr/bin/file
2517
 
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4942
  case "$host_cpu" in
 
4943
  ia64*)
 
4944
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4945
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4946
    ;;
 
4947
  hppa*64*)
 
4948
    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]'
 
4949
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4950
    ;;
 
4951
  *)
 
4952
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4953
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4954
    ;;
 
4955
  esac
2518
4956
  ;;
2519
4957
 
2520
4958
irix5* | irix6* | nonstopux*)
2521
 
  case $host_os in
2522
 
  irix5* | nonstopux*)
2523
 
    # this will be overridden with pass_all, but let us keep it just in case
2524
 
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2525
 
    ;;
2526
 
  *)
2527
 
    case $LD in
2528
 
    *-32|*"-32 ") libmagic=32-bit;;
2529
 
    *-n32|*"-n32 ") libmagic=N32;;
2530
 
    *-64|*"-64 ") libmagic=64-bit;;
2531
 
    *) libmagic=never-match;;
2532
 
    esac
2533
 
    # this will be overridden with pass_all, but let us keep it just in case
2534
 
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2535
 
    ;;
 
4959
  case $LD in
 
4960
  *-32|*"-32 ") libmagic=32-bit;;
 
4961
  *-n32|*"-n32 ") libmagic=N32;;
 
4962
  *-64|*"-64 ") libmagic=64-bit;;
 
4963
  *) libmagic=never-match;;
2536
4964
  esac
2537
 
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2538
4965
  lt_cv_deplibs_check_method=pass_all
2539
4966
  ;;
2540
4967
 
2541
4968
# This must be Linux ELF.
2542
 
linux-gnu*)
 
4969
linux*)
2543
4970
  lt_cv_deplibs_check_method=pass_all
2544
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2545
4971
  ;;
2546
4972
 
2547
 
netbsd*)
 
4973
netbsd* | knetbsd*-gnu)
2548
4974
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2549
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
 
4975
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2550
4976
  else
2551
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
 
4977
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
2552
4978
  fi
2553
4979
  ;;
2554
4980
 
2558
4984
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
2559
4985
  ;;
2560
4986
 
 
4987
nto-qnx*)
 
4988
  lt_cv_deplibs_check_method=unknown
 
4989
  ;;
 
4990
 
2561
4991
openbsd*)
2562
4992
  lt_cv_file_magic_cmd=/usr/bin/file
2563
4993
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2569
4999
  ;;
2570
5000
 
2571
5001
osf3* | osf4* | osf5*)
2572
 
  # this will be overridden with pass_all, but let us keep it just in case
2573
 
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2574
 
  lt_cv_file_magic_test_file=/shlib/libc.so
2575
5002
  lt_cv_deplibs_check_method=pass_all
2576
5003
  ;;
2577
5004
 
2581
5008
 
2582
5009
solaris*)
2583
5010
  lt_cv_deplibs_check_method=pass_all
2584
 
  lt_cv_file_magic_test_file=/lib/libc.so
2585
 
  ;;
2586
 
 
2587
 
sysv5uw[78]* | sysv4*uw2*)
2588
 
  lt_cv_deplibs_check_method=pass_all
2589
5011
  ;;
2590
5012
 
2591
5013
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2606
5028
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2607
5029
    lt_cv_file_magic_test_file=/lib/libc.so
2608
5030
    ;;
 
5031
  siemens)
 
5032
    lt_cv_deplibs_check_method=pass_all
 
5033
    ;;
2609
5034
  esac
2610
5035
  ;;
 
5036
 
 
5037
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
5038
  lt_cv_deplibs_check_method=pass_all
 
5039
  ;;
2611
5040
esac
2612
5041
 
2613
5042
fi
2614
 
 
2615
 
echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
 
5043
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
5044
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2616
5045
file_magic_cmd=$lt_cv_file_magic_cmd
2617
5046
deplibs_check_method=$lt_cv_deplibs_check_method
2618
 
 
2619
 
echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2620
 
echo "configure:2621: checking for object suffix" >&5
2621
 
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2622
 
  echo $ac_n "(cached) $ac_c" 1>&6
2623
 
else
2624
 
  rm -f conftest*
2625
 
echo 'int i = 1;' > conftest.$ac_ext
2626
 
if { (eval echo configure:2627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2627
 
  for ac_file in conftest.*; do
2628
 
    case $ac_file in
2629
 
    *.c) ;;
2630
 
    *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2631
 
    esac
2632
 
  done
2633
 
else
2634
 
  { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2635
 
fi
2636
 
rm -f conftest*
2637
 
fi
2638
 
 
2639
 
echo "$ac_t""$ac_cv_objext" 1>&6
2640
 
OBJEXT=$ac_cv_objext
2641
 
ac_objext=$ac_cv_objext
2642
 
 
2643
 
 
2644
 
 
2645
 
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2646
 
echo "configure:2647: checking for executable suffix" >&5
2647
 
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2648
 
  echo $ac_n "(cached) $ac_c" 1>&6
2649
 
else
2650
 
  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2651
 
  ac_cv_exeext=.exe
2652
 
else
2653
 
  rm -f conftest*
2654
 
  echo 'int main () { return 0; }' > conftest.$ac_ext
2655
 
  ac_cv_exeext=
2656
 
  if { (eval echo configure:2657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2657
 
    for file in conftest.*; do
2658
 
      case $file in
2659
 
      *.c | *.o | *.obj) ;;
2660
 
      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2661
 
      esac
2662
 
    done
2663
 
  else
2664
 
    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2665
 
  fi
2666
 
  rm -f conftest*
2667
 
  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2668
 
fi
2669
 
fi
2670
 
 
2671
 
EXEEXT=""
2672
 
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2673
 
echo "$ac_t""${ac_cv_exeext}" 1>&6
2674
 
ac_exeext=$EXEEXT
2675
 
 
2676
 
if test $host != $build; then
2677
 
  ac_tool_prefix=${host_alias}-
2678
 
else
2679
 
  ac_tool_prefix=
 
5047
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5048
 
 
5049
 
 
5050
 
 
5051
 
 
5052
# If no C compiler was specified, use CC.
 
5053
LTCC=${LTCC-"$CC"}
 
5054
 
 
5055
# Allow CC to be a program name with arguments.
 
5056
compiler=$CC
 
5057
 
 
5058
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
5059
if test "${enable_libtool_lock+set}" = set; then
 
5060
  enableval="$enable_libtool_lock"
 
5061
 
 
5062
fi;
 
5063
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5064
 
 
5065
# Some flags need to be propagated to the compiler or linker for good
 
5066
# libtool support.
 
5067
case $host in
 
5068
ia64-*-hpux*)
 
5069
  # Find out which ABI we are using.
 
5070
  echo 'int i;' > conftest.$ac_ext
 
5071
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5072
  (eval $ac_compile) 2>&5
 
5073
  ac_status=$?
 
5074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5075
  (exit $ac_status); }; then
 
5076
    case `/usr/bin/file conftest.$ac_objext` in
 
5077
    *ELF-32*)
 
5078
      HPUX_IA64_MODE="32"
 
5079
      ;;
 
5080
    *ELF-64*)
 
5081
      HPUX_IA64_MODE="64"
 
5082
      ;;
 
5083
    esac
 
5084
  fi
 
5085
  rm -rf conftest*
 
5086
  ;;
 
5087
*-*-irix6*)
 
5088
  # Find out which ABI we are using.
 
5089
  echo '#line 5089 "configure"' > conftest.$ac_ext
 
5090
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5091
  (eval $ac_compile) 2>&5
 
5092
  ac_status=$?
 
5093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5094
  (exit $ac_status); }; then
 
5095
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
5096
    case `/usr/bin/file conftest.$ac_objext` in
 
5097
    *32-bit*)
 
5098
      LD="${LD-ld} -melf32bsmip"
 
5099
      ;;
 
5100
    *N32*)
 
5101
      LD="${LD-ld} -melf32bmipn32"
 
5102
      ;;
 
5103
    *64-bit*)
 
5104
      LD="${LD-ld} -melf64bmip"
 
5105
      ;;
 
5106
    esac
 
5107
   else
 
5108
    case `/usr/bin/file conftest.$ac_objext` in
 
5109
    *32-bit*)
 
5110
      LD="${LD-ld} -32"
 
5111
      ;;
 
5112
    *N32*)
 
5113
      LD="${LD-ld} -n32"
 
5114
      ;;
 
5115
    *64-bit*)
 
5116
      LD="${LD-ld} -64"
 
5117
      ;;
 
5118
    esac
 
5119
   fi
 
5120
  fi
 
5121
  rm -rf conftest*
 
5122
  ;;
 
5123
 
 
5124
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
5125
  # Find out which ABI we are using.
 
5126
  echo 'int i;' > conftest.$ac_ext
 
5127
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5128
  (eval $ac_compile) 2>&5
 
5129
  ac_status=$?
 
5130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5131
  (exit $ac_status); }; then
 
5132
    case "`/usr/bin/file conftest.o`" in
 
5133
    *32-bit*)
 
5134
      case $host in
 
5135
        x86_64-*linux*)
 
5136
          LD="${LD-ld} -m elf_i386"
 
5137
          ;;
 
5138
        ppc64-*linux*|powerpc64-*linux*)
 
5139
          LD="${LD-ld} -m elf32ppclinux"
 
5140
          ;;
 
5141
        s390x-*linux*)
 
5142
          LD="${LD-ld} -m elf_s390"
 
5143
          ;;
 
5144
        sparc64-*linux*)
 
5145
          LD="${LD-ld} -m elf32_sparc"
 
5146
          ;;
 
5147
      esac
 
5148
      ;;
 
5149
    *64-bit*)
 
5150
      case $host in
 
5151
        x86_64-*linux*)
 
5152
          LD="${LD-ld} -m elf_x86_64"
 
5153
          ;;
 
5154
        ppc*-*linux*|powerpc*-*linux*)
 
5155
          LD="${LD-ld} -m elf64ppc"
 
5156
          ;;
 
5157
        s390*-*linux*)
 
5158
          LD="${LD-ld} -m elf64_s390"
 
5159
          ;;
 
5160
        sparc*-*linux*)
 
5161
          LD="${LD-ld} -m elf64_sparc"
 
5162
          ;;
 
5163
      esac
 
5164
      ;;
 
5165
    esac
 
5166
  fi
 
5167
  rm -rf conftest*
 
5168
  ;;
 
5169
 
 
5170
*-*-sco3.2v5*)
 
5171
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5172
  SAVE_CFLAGS="$CFLAGS"
 
5173
  CFLAGS="$CFLAGS -belf"
 
5174
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5175
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
5176
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5177
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5178
else
 
5179
  ac_ext=c
 
5180
ac_cpp='$CPP $CPPFLAGS'
 
5181
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5182
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5183
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5184
 
 
5185
     cat >conftest.$ac_ext <<_ACEOF
 
5186
/* confdefs.h.  */
 
5187
_ACEOF
 
5188
cat confdefs.h >>conftest.$ac_ext
 
5189
cat >>conftest.$ac_ext <<_ACEOF
 
5190
/* end confdefs.h.  */
 
5191
 
 
5192
int
 
5193
main ()
 
5194
{
 
5195
 
 
5196
  ;
 
5197
  return 0;
 
5198
}
 
5199
_ACEOF
 
5200
rm -f conftest.$ac_objext conftest$ac_exeext
 
5201
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5202
  (eval $ac_link) 2>conftest.er1
 
5203
  ac_status=$?
 
5204
  grep -v '^ *+' conftest.er1 >conftest.err
 
5205
  rm -f conftest.er1
 
5206
  cat conftest.err >&5
 
5207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5208
  (exit $ac_status); } &&
 
5209
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5210
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5211
  (eval $ac_try) 2>&5
 
5212
  ac_status=$?
 
5213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5214
  (exit $ac_status); }; } &&
 
5215
         { ac_try='test -s conftest$ac_exeext'
 
5216
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5217
  (eval $ac_try) 2>&5
 
5218
  ac_status=$?
 
5219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5220
  (exit $ac_status); }; }; then
 
5221
  lt_cv_cc_needs_belf=yes
 
5222
else
 
5223
  echo "$as_me: failed program was:" >&5
 
5224
sed 's/^/| /' conftest.$ac_ext >&5
 
5225
 
 
5226
lt_cv_cc_needs_belf=no
 
5227
fi
 
5228
rm -f conftest.err conftest.$ac_objext \
 
5229
      conftest$ac_exeext conftest.$ac_ext
 
5230
     ac_ext=c
 
5231
ac_cpp='$CPP $CPPFLAGS'
 
5232
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5233
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5234
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5235
 
 
5236
fi
 
5237
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5238
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
5239
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5240
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5241
    CFLAGS="$SAVE_CFLAGS"
 
5242
  fi
 
5243
  ;;
 
5244
 
 
5245
esac
 
5246
 
 
5247
need_locks="$enable_libtool_lock"
 
5248
 
 
5249
 
 
5250
 
 
5251
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
5252
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
5253
if test "${ac_cv_header_stdc+set}" = set; then
 
5254
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5255
else
 
5256
  cat >conftest.$ac_ext <<_ACEOF
 
5257
/* confdefs.h.  */
 
5258
_ACEOF
 
5259
cat confdefs.h >>conftest.$ac_ext
 
5260
cat >>conftest.$ac_ext <<_ACEOF
 
5261
/* end confdefs.h.  */
 
5262
#include <stdlib.h>
 
5263
#include <stdarg.h>
 
5264
#include <string.h>
 
5265
#include <float.h>
 
5266
 
 
5267
int
 
5268
main ()
 
5269
{
 
5270
 
 
5271
  ;
 
5272
  return 0;
 
5273
}
 
5274
_ACEOF
 
5275
rm -f conftest.$ac_objext
 
5276
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5277
  (eval $ac_compile) 2>conftest.er1
 
5278
  ac_status=$?
 
5279
  grep -v '^ *+' conftest.er1 >conftest.err
 
5280
  rm -f conftest.er1
 
5281
  cat conftest.err >&5
 
5282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5283
  (exit $ac_status); } &&
 
5284
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5285
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5286
  (eval $ac_try) 2>&5
 
5287
  ac_status=$?
 
5288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5289
  (exit $ac_status); }; } &&
 
5290
         { ac_try='test -s conftest.$ac_objext'
 
5291
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5292
  (eval $ac_try) 2>&5
 
5293
  ac_status=$?
 
5294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5295
  (exit $ac_status); }; }; then
 
5296
  ac_cv_header_stdc=yes
 
5297
else
 
5298
  echo "$as_me: failed program was:" >&5
 
5299
sed 's/^/| /' conftest.$ac_ext >&5
 
5300
 
 
5301
ac_cv_header_stdc=no
 
5302
fi
 
5303
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5304
 
 
5305
if test $ac_cv_header_stdc = yes; then
 
5306
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5307
  cat >conftest.$ac_ext <<_ACEOF
 
5308
/* confdefs.h.  */
 
5309
_ACEOF
 
5310
cat confdefs.h >>conftest.$ac_ext
 
5311
cat >>conftest.$ac_ext <<_ACEOF
 
5312
/* end confdefs.h.  */
 
5313
#include <string.h>
 
5314
 
 
5315
_ACEOF
 
5316
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5317
  $EGREP "memchr" >/dev/null 2>&1; then
 
5318
  :
 
5319
else
 
5320
  ac_cv_header_stdc=no
 
5321
fi
 
5322
rm -f conftest*
 
5323
 
 
5324
fi
 
5325
 
 
5326
if test $ac_cv_header_stdc = yes; then
 
5327
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5328
  cat >conftest.$ac_ext <<_ACEOF
 
5329
/* confdefs.h.  */
 
5330
_ACEOF
 
5331
cat confdefs.h >>conftest.$ac_ext
 
5332
cat >>conftest.$ac_ext <<_ACEOF
 
5333
/* end confdefs.h.  */
 
5334
#include <stdlib.h>
 
5335
 
 
5336
_ACEOF
 
5337
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5338
  $EGREP "free" >/dev/null 2>&1; then
 
5339
  :
 
5340
else
 
5341
  ac_cv_header_stdc=no
 
5342
fi
 
5343
rm -f conftest*
 
5344
 
 
5345
fi
 
5346
 
 
5347
if test $ac_cv_header_stdc = yes; then
 
5348
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5349
  if test "$cross_compiling" = yes; then
 
5350
  :
 
5351
else
 
5352
  cat >conftest.$ac_ext <<_ACEOF
 
5353
/* confdefs.h.  */
 
5354
_ACEOF
 
5355
cat confdefs.h >>conftest.$ac_ext
 
5356
cat >>conftest.$ac_ext <<_ACEOF
 
5357
/* end confdefs.h.  */
 
5358
#include <ctype.h>
 
5359
#if ((' ' & 0x0FF) == 0x020)
 
5360
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5361
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5362
#else
 
5363
# define ISLOWER(c) \
 
5364
                   (('a' <= (c) && (c) <= 'i') \
 
5365
                     || ('j' <= (c) && (c) <= 'r') \
 
5366
                     || ('s' <= (c) && (c) <= 'z'))
 
5367
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5368
#endif
 
5369
 
 
5370
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5371
int
 
5372
main ()
 
5373
{
 
5374
  int i;
 
5375
  for (i = 0; i < 256; i++)
 
5376
    if (XOR (islower (i), ISLOWER (i))
 
5377
        || toupper (i) != TOUPPER (i))
 
5378
      exit(2);
 
5379
  exit (0);
 
5380
}
 
5381
_ACEOF
 
5382
rm -f conftest$ac_exeext
 
5383
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5384
  (eval $ac_link) 2>&5
 
5385
  ac_status=$?
 
5386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5387
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5388
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5389
  (eval $ac_try) 2>&5
 
5390
  ac_status=$?
 
5391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5392
  (exit $ac_status); }; }; then
 
5393
  :
 
5394
else
 
5395
  echo "$as_me: program exited with status $ac_status" >&5
 
5396
echo "$as_me: failed program was:" >&5
 
5397
sed 's/^/| /' conftest.$ac_ext >&5
 
5398
 
 
5399
( exit $ac_status )
 
5400
ac_cv_header_stdc=no
 
5401
fi
 
5402
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5403
fi
 
5404
fi
 
5405
fi
 
5406
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5407
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
5408
if test $ac_cv_header_stdc = yes; then
 
5409
 
 
5410
cat >>confdefs.h <<\_ACEOF
 
5411
#define STDC_HEADERS 1
 
5412
_ACEOF
 
5413
 
 
5414
fi
 
5415
 
 
5416
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5417
 
 
5418
 
 
5419
 
 
5420
 
 
5421
 
 
5422
 
 
5423
 
 
5424
 
 
5425
 
 
5426
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5427
                  inttypes.h stdint.h unistd.h
 
5428
do
 
5429
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5430
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5431
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5432
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5433
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5434
else
 
5435
  cat >conftest.$ac_ext <<_ACEOF
 
5436
/* confdefs.h.  */
 
5437
_ACEOF
 
5438
cat confdefs.h >>conftest.$ac_ext
 
5439
cat >>conftest.$ac_ext <<_ACEOF
 
5440
/* end confdefs.h.  */
 
5441
$ac_includes_default
 
5442
 
 
5443
#include <$ac_header>
 
5444
_ACEOF
 
5445
rm -f conftest.$ac_objext
 
5446
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5447
  (eval $ac_compile) 2>conftest.er1
 
5448
  ac_status=$?
 
5449
  grep -v '^ *+' conftest.er1 >conftest.err
 
5450
  rm -f conftest.er1
 
5451
  cat conftest.err >&5
 
5452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5453
  (exit $ac_status); } &&
 
5454
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5455
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5456
  (eval $ac_try) 2>&5
 
5457
  ac_status=$?
 
5458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5459
  (exit $ac_status); }; } &&
 
5460
         { ac_try='test -s conftest.$ac_objext'
 
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); }; }; then
 
5466
  eval "$as_ac_Header=yes"
 
5467
else
 
5468
  echo "$as_me: failed program was:" >&5
 
5469
sed 's/^/| /' conftest.$ac_ext >&5
 
5470
 
 
5471
eval "$as_ac_Header=no"
 
5472
fi
 
5473
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5474
fi
 
5475
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5476
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5477
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5478
  cat >>confdefs.h <<_ACEOF
 
5479
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5480
_ACEOF
 
5481
 
 
5482
fi
 
5483
 
 
5484
done
 
5485
 
 
5486
 
 
5487
 
 
5488
for ac_header in dlfcn.h
 
5489
do
 
5490
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5491
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5492
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5493
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5494
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5495
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5496
fi
 
5497
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5498
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5499
else
 
5500
  # Is the header compilable?
 
5501
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5502
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5503
cat >conftest.$ac_ext <<_ACEOF
 
5504
/* confdefs.h.  */
 
5505
_ACEOF
 
5506
cat confdefs.h >>conftest.$ac_ext
 
5507
cat >>conftest.$ac_ext <<_ACEOF
 
5508
/* end confdefs.h.  */
 
5509
$ac_includes_default
 
5510
#include <$ac_header>
 
5511
_ACEOF
 
5512
rm -f conftest.$ac_objext
 
5513
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5514
  (eval $ac_compile) 2>conftest.er1
 
5515
  ac_status=$?
 
5516
  grep -v '^ *+' conftest.er1 >conftest.err
 
5517
  rm -f conftest.er1
 
5518
  cat conftest.err >&5
 
5519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5520
  (exit $ac_status); } &&
 
5521
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5522
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5523
  (eval $ac_try) 2>&5
 
5524
  ac_status=$?
 
5525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5526
  (exit $ac_status); }; } &&
 
5527
         { ac_try='test -s conftest.$ac_objext'
 
5528
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5529
  (eval $ac_try) 2>&5
 
5530
  ac_status=$?
 
5531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5532
  (exit $ac_status); }; }; then
 
5533
  ac_header_compiler=yes
 
5534
else
 
5535
  echo "$as_me: failed program was:" >&5
 
5536
sed 's/^/| /' conftest.$ac_ext >&5
 
5537
 
 
5538
ac_header_compiler=no
 
5539
fi
 
5540
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5541
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5542
echo "${ECHO_T}$ac_header_compiler" >&6
 
5543
 
 
5544
# Is the header present?
 
5545
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5546
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5547
cat >conftest.$ac_ext <<_ACEOF
 
5548
/* confdefs.h.  */
 
5549
_ACEOF
 
5550
cat confdefs.h >>conftest.$ac_ext
 
5551
cat >>conftest.$ac_ext <<_ACEOF
 
5552
/* end confdefs.h.  */
 
5553
#include <$ac_header>
 
5554
_ACEOF
 
5555
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5556
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5557
  ac_status=$?
 
5558
  grep -v '^ *+' conftest.er1 >conftest.err
 
5559
  rm -f conftest.er1
 
5560
  cat conftest.err >&5
 
5561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5562
  (exit $ac_status); } >/dev/null; then
 
5563
  if test -s conftest.err; then
 
5564
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5565
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5566
  else
 
5567
    ac_cpp_err=
 
5568
  fi
 
5569
else
 
5570
  ac_cpp_err=yes
 
5571
fi
 
5572
if test -z "$ac_cpp_err"; then
 
5573
  ac_header_preproc=yes
 
5574
else
 
5575
  echo "$as_me: failed program was:" >&5
 
5576
sed 's/^/| /' conftest.$ac_ext >&5
 
5577
 
 
5578
  ac_header_preproc=no
 
5579
fi
 
5580
rm -f conftest.err conftest.$ac_ext
 
5581
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5582
echo "${ECHO_T}$ac_header_preproc" >&6
 
5583
 
 
5584
# So?  What about this header?
 
5585
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5586
  yes:no: )
 
5587
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5588
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5589
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5590
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5591
    ac_header_preproc=yes
 
5592
    ;;
 
5593
  no:yes:* )
 
5594
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5595
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5596
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5597
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5598
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5599
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5600
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5601
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5602
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5603
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5604
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5605
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5606
    (
 
5607
      cat <<\_ASBOX
 
5608
## ------------------------------------------ ##
 
5609
## Report this to the AC_PACKAGE_NAME lists.  ##
 
5610
## ------------------------------------------ ##
 
5611
_ASBOX
 
5612
    ) |
 
5613
      sed "s/^/$as_me: WARNING:     /" >&2
 
5614
    ;;
 
5615
esac
 
5616
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5617
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5618
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5619
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5620
else
 
5621
  eval "$as_ac_Header=\$ac_header_preproc"
 
5622
fi
 
5623
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5624
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5625
 
 
5626
fi
 
5627
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5628
  cat >>confdefs.h <<_ACEOF
 
5629
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5630
_ACEOF
 
5631
 
 
5632
fi
 
5633
 
 
5634
done
 
5635
 
 
5636
ac_ext=cc
 
5637
ac_cpp='$CXXCPP $CPPFLAGS'
 
5638
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5639
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5640
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5641
if test -n "$ac_tool_prefix"; then
 
5642
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
5643
  do
 
5644
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5645
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5646
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5647
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5648
if test "${ac_cv_prog_CXX+set}" = set; then
 
5649
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5650
else
 
5651
  if test -n "$CXX"; then
 
5652
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5653
else
 
5654
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5655
for as_dir in $PATH
 
5656
do
 
5657
  IFS=$as_save_IFS
 
5658
  test -z "$as_dir" && as_dir=.
 
5659
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5660
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5661
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5662
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5663
    break 2
 
5664
  fi
 
5665
done
 
5666
done
 
5667
 
 
5668
fi
 
5669
fi
 
5670
CXX=$ac_cv_prog_CXX
 
5671
if test -n "$CXX"; then
 
5672
  echo "$as_me:$LINENO: result: $CXX" >&5
 
5673
echo "${ECHO_T}$CXX" >&6
 
5674
else
 
5675
  echo "$as_me:$LINENO: result: no" >&5
 
5676
echo "${ECHO_T}no" >&6
 
5677
fi
 
5678
 
 
5679
    test -n "$CXX" && break
 
5680
  done
 
5681
fi
 
5682
if test -z "$CXX"; then
 
5683
  ac_ct_CXX=$CXX
 
5684
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
5685
do
 
5686
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5687
set dummy $ac_prog; ac_word=$2
 
5688
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5689
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5690
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5691
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5692
else
 
5693
  if test -n "$ac_ct_CXX"; then
 
5694
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5695
else
 
5696
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5697
for as_dir in $PATH
 
5698
do
 
5699
  IFS=$as_save_IFS
 
5700
  test -z "$as_dir" && as_dir=.
 
5701
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5702
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5703
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5704
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5705
    break 2
 
5706
  fi
 
5707
done
 
5708
done
 
5709
 
 
5710
fi
 
5711
fi
 
5712
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5713
if test -n "$ac_ct_CXX"; then
 
5714
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5715
echo "${ECHO_T}$ac_ct_CXX" >&6
 
5716
else
 
5717
  echo "$as_me:$LINENO: result: no" >&5
 
5718
echo "${ECHO_T}no" >&6
 
5719
fi
 
5720
 
 
5721
  test -n "$ac_ct_CXX" && break
 
5722
done
 
5723
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
5724
 
 
5725
  CXX=$ac_ct_CXX
 
5726
fi
 
5727
 
 
5728
 
 
5729
# Provide some information about the compiler.
 
5730
echo "$as_me:$LINENO:" \
 
5731
     "checking for C++ compiler version" >&5
 
5732
ac_compiler=`set X $ac_compile; echo $2`
 
5733
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
5734
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
5735
  ac_status=$?
 
5736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5737
  (exit $ac_status); }
 
5738
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
5739
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
5740
  ac_status=$?
 
5741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5742
  (exit $ac_status); }
 
5743
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5744
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5745
  ac_status=$?
 
5746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5747
  (exit $ac_status); }
 
5748
 
 
5749
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5750
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
5751
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5752
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5753
else
 
5754
  cat >conftest.$ac_ext <<_ACEOF
 
5755
/* confdefs.h.  */
 
5756
_ACEOF
 
5757
cat confdefs.h >>conftest.$ac_ext
 
5758
cat >>conftest.$ac_ext <<_ACEOF
 
5759
/* end confdefs.h.  */
 
5760
 
 
5761
int
 
5762
main ()
 
5763
{
 
5764
#ifndef __GNUC__
 
5765
       choke me
 
5766
#endif
 
5767
 
 
5768
  ;
 
5769
  return 0;
 
5770
}
 
5771
_ACEOF
 
5772
rm -f conftest.$ac_objext
 
5773
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5774
  (eval $ac_compile) 2>conftest.er1
 
5775
  ac_status=$?
 
5776
  grep -v '^ *+' conftest.er1 >conftest.err
 
5777
  rm -f conftest.er1
 
5778
  cat conftest.err >&5
 
5779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5780
  (exit $ac_status); } &&
 
5781
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5782
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5783
  (eval $ac_try) 2>&5
 
5784
  ac_status=$?
 
5785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5786
  (exit $ac_status); }; } &&
 
5787
         { ac_try='test -s conftest.$ac_objext'
 
5788
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5789
  (eval $ac_try) 2>&5
 
5790
  ac_status=$?
 
5791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5792
  (exit $ac_status); }; }; then
 
5793
  ac_compiler_gnu=yes
 
5794
else
 
5795
  echo "$as_me: failed program was:" >&5
 
5796
sed 's/^/| /' conftest.$ac_ext >&5
 
5797
 
 
5798
ac_compiler_gnu=no
 
5799
fi
 
5800
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5801
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5802
 
 
5803
fi
 
5804
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5805
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
5806
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
5807
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5808
ac_save_CXXFLAGS=$CXXFLAGS
 
5809
CXXFLAGS="-g"
 
5810
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5811
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
5812
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5813
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5814
else
 
5815
  cat >conftest.$ac_ext <<_ACEOF
 
5816
/* confdefs.h.  */
 
5817
_ACEOF
 
5818
cat confdefs.h >>conftest.$ac_ext
 
5819
cat >>conftest.$ac_ext <<_ACEOF
 
5820
/* end confdefs.h.  */
 
5821
 
 
5822
int
 
5823
main ()
 
5824
{
 
5825
 
 
5826
  ;
 
5827
  return 0;
 
5828
}
 
5829
_ACEOF
 
5830
rm -f conftest.$ac_objext
 
5831
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5832
  (eval $ac_compile) 2>conftest.er1
 
5833
  ac_status=$?
 
5834
  grep -v '^ *+' conftest.er1 >conftest.err
 
5835
  rm -f conftest.er1
 
5836
  cat conftest.err >&5
 
5837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5838
  (exit $ac_status); } &&
 
5839
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5840
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5841
  (eval $ac_try) 2>&5
 
5842
  ac_status=$?
 
5843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5844
  (exit $ac_status); }; } &&
 
5845
         { ac_try='test -s conftest.$ac_objext'
 
5846
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5847
  (eval $ac_try) 2>&5
 
5848
  ac_status=$?
 
5849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5850
  (exit $ac_status); }; }; then
 
5851
  ac_cv_prog_cxx_g=yes
 
5852
else
 
5853
  echo "$as_me: failed program was:" >&5
 
5854
sed 's/^/| /' conftest.$ac_ext >&5
 
5855
 
 
5856
ac_cv_prog_cxx_g=no
 
5857
fi
 
5858
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5859
fi
 
5860
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5861
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
5862
if test "$ac_test_CXXFLAGS" = set; then
 
5863
  CXXFLAGS=$ac_save_CXXFLAGS
 
5864
elif test $ac_cv_prog_cxx_g = yes; then
 
5865
  if test "$GXX" = yes; then
 
5866
    CXXFLAGS="-g -O2"
 
5867
  else
 
5868
    CXXFLAGS="-g"
 
5869
  fi
 
5870
else
 
5871
  if test "$GXX" = yes; then
 
5872
    CXXFLAGS="-O2"
 
5873
  else
 
5874
    CXXFLAGS=
 
5875
  fi
 
5876
fi
 
5877
for ac_declaration in \
 
5878
   '' \
 
5879
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
5880
   'extern "C" void std::exit (int); using std::exit;' \
 
5881
   'extern "C" void exit (int) throw ();' \
 
5882
   'extern "C" void exit (int);' \
 
5883
   'void exit (int);'
 
5884
do
 
5885
  cat >conftest.$ac_ext <<_ACEOF
 
5886
/* confdefs.h.  */
 
5887
_ACEOF
 
5888
cat confdefs.h >>conftest.$ac_ext
 
5889
cat >>conftest.$ac_ext <<_ACEOF
 
5890
/* end confdefs.h.  */
 
5891
$ac_declaration
 
5892
#include <stdlib.h>
 
5893
int
 
5894
main ()
 
5895
{
 
5896
exit (42);
 
5897
  ;
 
5898
  return 0;
 
5899
}
 
5900
_ACEOF
 
5901
rm -f conftest.$ac_objext
 
5902
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5903
  (eval $ac_compile) 2>conftest.er1
 
5904
  ac_status=$?
 
5905
  grep -v '^ *+' conftest.er1 >conftest.err
 
5906
  rm -f conftest.er1
 
5907
  cat conftest.err >&5
 
5908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5909
  (exit $ac_status); } &&
 
5910
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5911
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5912
  (eval $ac_try) 2>&5
 
5913
  ac_status=$?
 
5914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5915
  (exit $ac_status); }; } &&
 
5916
         { ac_try='test -s conftest.$ac_objext'
 
5917
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5918
  (eval $ac_try) 2>&5
 
5919
  ac_status=$?
 
5920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5921
  (exit $ac_status); }; }; then
 
5922
  :
 
5923
else
 
5924
  echo "$as_me: failed program was:" >&5
 
5925
sed 's/^/| /' conftest.$ac_ext >&5
 
5926
 
 
5927
continue
 
5928
fi
 
5929
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5930
  cat >conftest.$ac_ext <<_ACEOF
 
5931
/* confdefs.h.  */
 
5932
_ACEOF
 
5933
cat confdefs.h >>conftest.$ac_ext
 
5934
cat >>conftest.$ac_ext <<_ACEOF
 
5935
/* end confdefs.h.  */
 
5936
$ac_declaration
 
5937
int
 
5938
main ()
 
5939
{
 
5940
exit (42);
 
5941
  ;
 
5942
  return 0;
 
5943
}
 
5944
_ACEOF
 
5945
rm -f conftest.$ac_objext
 
5946
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5947
  (eval $ac_compile) 2>conftest.er1
 
5948
  ac_status=$?
 
5949
  grep -v '^ *+' conftest.er1 >conftest.err
 
5950
  rm -f conftest.er1
 
5951
  cat conftest.err >&5
 
5952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5953
  (exit $ac_status); } &&
 
5954
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5955
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5956
  (eval $ac_try) 2>&5
 
5957
  ac_status=$?
 
5958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5959
  (exit $ac_status); }; } &&
 
5960
         { ac_try='test -s conftest.$ac_objext'
 
5961
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5962
  (eval $ac_try) 2>&5
 
5963
  ac_status=$?
 
5964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5965
  (exit $ac_status); }; }; then
 
5966
  break
 
5967
else
 
5968
  echo "$as_me: failed program was:" >&5
 
5969
sed 's/^/| /' conftest.$ac_ext >&5
 
5970
 
 
5971
fi
 
5972
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5973
done
 
5974
rm -f conftest*
 
5975
if test -n "$ac_declaration"; then
 
5976
  echo '#ifdef __cplusplus' >>confdefs.h
 
5977
  echo $ac_declaration      >>confdefs.h
 
5978
  echo '#endif'             >>confdefs.h
 
5979
fi
 
5980
 
 
5981
ac_ext=cc
 
5982
ac_cpp='$CXXCPP $CPPFLAGS'
 
5983
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5984
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5985
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5986
 
 
5987
depcc="$CXX"  am_compiler_list=
 
5988
 
 
5989
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5990
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
5991
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
5992
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5993
else
 
5994
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5995
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5996
  # making bogus files that we don't know about and never remove.  For
 
5997
  # instance it was reported that on HP-UX the gcc test will end up
 
5998
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5999
  # in D'.
 
6000
  mkdir conftest.dir
 
6001
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6002
  # using a relative directory.
 
6003
  cp "$am_depcomp" conftest.dir
 
6004
  cd conftest.dir
 
6005
  # We will build objects and dependencies in a subdirectory because
 
6006
  # it helps to detect inapplicable dependency modes.  For instance
 
6007
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6008
  # side effect of compilation, but ICC will put the dependencies in
 
6009
  # the current directory while Tru64 will put them in the object
 
6010
  # directory.
 
6011
  mkdir sub
 
6012
 
 
6013
  am_cv_CXX_dependencies_compiler_type=none
 
6014
  if test "$am_compiler_list" = ""; then
 
6015
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
6016
  fi
 
6017
  for depmode in $am_compiler_list; do
 
6018
    # Setup a source with many dependencies, because some compilers
 
6019
    # like to wrap large dependency lists on column 80 (with \), and
 
6020
    # we should not choose a depcomp mode which is confused by this.
 
6021
    #
 
6022
    # We need to recreate these files for each test, as the compiler may
 
6023
    # overwrite some of them when testing with obscure command lines.
 
6024
    # This happens at least with the AIX C compiler.
 
6025
    : > sub/conftest.c
 
6026
    for i in 1 2 3 4 5 6; do
 
6027
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6028
      : > sub/conftst$i.h
 
6029
    done
 
6030
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6031
 
 
6032
    case $depmode in
 
6033
    nosideeffect)
 
6034
      # after this tag, mechanisms are not by side-effect, so they'll
 
6035
      # only be used when explicitly requested
 
6036
      if test "x$enable_dependency_tracking" = xyes; then
 
6037
        continue
 
6038
      else
 
6039
        break
 
6040
      fi
 
6041
      ;;
 
6042
    none) break ;;
 
6043
    esac
 
6044
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6045
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6046
    # handle `-M -o', and we need to detect this.
 
6047
    if depmode=$depmode \
 
6048
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
6049
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6050
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
6051
         >/dev/null 2>conftest.err &&
 
6052
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6053
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
6054
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6055
      # icc doesn't choke on unknown options, it will just issue warnings
 
6056
      # (even with -Werror).  So we grep stderr for any message
 
6057
      # that says an option was ignored.
 
6058
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
6059
        am_cv_CXX_dependencies_compiler_type=$depmode
 
6060
        break
 
6061
      fi
 
6062
    fi
 
6063
  done
 
6064
 
 
6065
  cd ..
 
6066
  rm -rf conftest.dir
 
6067
else
 
6068
  am_cv_CXX_dependencies_compiler_type=none
 
6069
fi
 
6070
 
 
6071
fi
 
6072
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
6073
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
6074
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
6075
 
 
6076
 
 
6077
 
 
6078
if
 
6079
  test "x$enable_dependency_tracking" != xno \
 
6080
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
6081
  am__fastdepCXX_TRUE=
 
6082
  am__fastdepCXX_FALSE='#'
 
6083
else
 
6084
  am__fastdepCXX_TRUE='#'
 
6085
  am__fastdepCXX_FALSE=
 
6086
fi
 
6087
 
 
6088
 
 
6089
ac_ext=cc
 
6090
ac_cpp='$CXXCPP $CPPFLAGS'
 
6091
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6092
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6093
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6094
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
6095
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
6096
if test -z "$CXXCPP"; then
 
6097
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
6098
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6099
else
 
6100
      # Double quotes because CXXCPP needs to be expanded
 
6101
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
6102
    do
 
6103
      ac_preproc_ok=false
 
6104
for ac_cxx_preproc_warn_flag in '' yes
 
6105
do
 
6106
  # Use a header file that comes with gcc, so configuring glibc
 
6107
  # with a fresh cross-compiler works.
 
6108
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6109
  # <limits.h> exists even on freestanding compilers.
 
6110
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6111
  # not just through cpp. "Syntax error" is here to catch this case.
 
6112
  cat >conftest.$ac_ext <<_ACEOF
 
6113
/* confdefs.h.  */
 
6114
_ACEOF
 
6115
cat confdefs.h >>conftest.$ac_ext
 
6116
cat >>conftest.$ac_ext <<_ACEOF
 
6117
/* end confdefs.h.  */
 
6118
#ifdef __STDC__
 
6119
# include <limits.h>
 
6120
#else
 
6121
# include <assert.h>
 
6122
#endif
 
6123
                     Syntax error
 
6124
_ACEOF
 
6125
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6126
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6127
  ac_status=$?
 
6128
  grep -v '^ *+' conftest.er1 >conftest.err
 
6129
  rm -f conftest.er1
 
6130
  cat conftest.err >&5
 
6131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6132
  (exit $ac_status); } >/dev/null; then
 
6133
  if test -s conftest.err; then
 
6134
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6135
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6136
  else
 
6137
    ac_cpp_err=
 
6138
  fi
 
6139
else
 
6140
  ac_cpp_err=yes
 
6141
fi
 
6142
if test -z "$ac_cpp_err"; then
 
6143
  :
 
6144
else
 
6145
  echo "$as_me: failed program was:" >&5
 
6146
sed 's/^/| /' conftest.$ac_ext >&5
 
6147
 
 
6148
  # Broken: fails on valid input.
 
6149
continue
 
6150
fi
 
6151
rm -f conftest.err conftest.$ac_ext
 
6152
 
 
6153
  # OK, works on sane cases.  Now check whether non-existent headers
 
6154
  # can be detected and how.
 
6155
  cat >conftest.$ac_ext <<_ACEOF
 
6156
/* confdefs.h.  */
 
6157
_ACEOF
 
6158
cat confdefs.h >>conftest.$ac_ext
 
6159
cat >>conftest.$ac_ext <<_ACEOF
 
6160
/* end confdefs.h.  */
 
6161
#include <ac_nonexistent.h>
 
6162
_ACEOF
 
6163
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6164
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6165
  ac_status=$?
 
6166
  grep -v '^ *+' conftest.er1 >conftest.err
 
6167
  rm -f conftest.er1
 
6168
  cat conftest.err >&5
 
6169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6170
  (exit $ac_status); } >/dev/null; then
 
6171
  if test -s conftest.err; then
 
6172
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6173
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6174
  else
 
6175
    ac_cpp_err=
 
6176
  fi
 
6177
else
 
6178
  ac_cpp_err=yes
 
6179
fi
 
6180
if test -z "$ac_cpp_err"; then
 
6181
  # Broken: success on invalid input.
 
6182
continue
 
6183
else
 
6184
  echo "$as_me: failed program was:" >&5
 
6185
sed 's/^/| /' conftest.$ac_ext >&5
 
6186
 
 
6187
  # Passes both tests.
 
6188
ac_preproc_ok=:
 
6189
break
 
6190
fi
 
6191
rm -f conftest.err conftest.$ac_ext
 
6192
 
 
6193
done
 
6194
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6195
rm -f conftest.err conftest.$ac_ext
 
6196
if $ac_preproc_ok; then
 
6197
  break
 
6198
fi
 
6199
 
 
6200
    done
 
6201
    ac_cv_prog_CXXCPP=$CXXCPP
 
6202
 
 
6203
fi
 
6204
  CXXCPP=$ac_cv_prog_CXXCPP
 
6205
else
 
6206
  ac_cv_prog_CXXCPP=$CXXCPP
 
6207
fi
 
6208
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6209
echo "${ECHO_T}$CXXCPP" >&6
 
6210
ac_preproc_ok=false
 
6211
for ac_cxx_preproc_warn_flag in '' yes
 
6212
do
 
6213
  # Use a header file that comes with gcc, so configuring glibc
 
6214
  # with a fresh cross-compiler works.
 
6215
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6216
  # <limits.h> exists even on freestanding compilers.
 
6217
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6218
  # not just through cpp. "Syntax error" is here to catch this case.
 
6219
  cat >conftest.$ac_ext <<_ACEOF
 
6220
/* confdefs.h.  */
 
6221
_ACEOF
 
6222
cat confdefs.h >>conftest.$ac_ext
 
6223
cat >>conftest.$ac_ext <<_ACEOF
 
6224
/* end confdefs.h.  */
 
6225
#ifdef __STDC__
 
6226
# include <limits.h>
 
6227
#else
 
6228
# include <assert.h>
 
6229
#endif
 
6230
                     Syntax error
 
6231
_ACEOF
 
6232
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6233
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6234
  ac_status=$?
 
6235
  grep -v '^ *+' conftest.er1 >conftest.err
 
6236
  rm -f conftest.er1
 
6237
  cat conftest.err >&5
 
6238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6239
  (exit $ac_status); } >/dev/null; then
 
6240
  if test -s conftest.err; then
 
6241
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6242
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6243
  else
 
6244
    ac_cpp_err=
 
6245
  fi
 
6246
else
 
6247
  ac_cpp_err=yes
 
6248
fi
 
6249
if test -z "$ac_cpp_err"; then
 
6250
  :
 
6251
else
 
6252
  echo "$as_me: failed program was:" >&5
 
6253
sed 's/^/| /' conftest.$ac_ext >&5
 
6254
 
 
6255
  # Broken: fails on valid input.
 
6256
continue
 
6257
fi
 
6258
rm -f conftest.err conftest.$ac_ext
 
6259
 
 
6260
  # OK, works on sane cases.  Now check whether non-existent headers
 
6261
  # can be detected and how.
 
6262
  cat >conftest.$ac_ext <<_ACEOF
 
6263
/* confdefs.h.  */
 
6264
_ACEOF
 
6265
cat confdefs.h >>conftest.$ac_ext
 
6266
cat >>conftest.$ac_ext <<_ACEOF
 
6267
/* end confdefs.h.  */
 
6268
#include <ac_nonexistent.h>
 
6269
_ACEOF
 
6270
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6271
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6272
  ac_status=$?
 
6273
  grep -v '^ *+' conftest.er1 >conftest.err
 
6274
  rm -f conftest.er1
 
6275
  cat conftest.err >&5
 
6276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6277
  (exit $ac_status); } >/dev/null; then
 
6278
  if test -s conftest.err; then
 
6279
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6280
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6281
  else
 
6282
    ac_cpp_err=
 
6283
  fi
 
6284
else
 
6285
  ac_cpp_err=yes
 
6286
fi
 
6287
if test -z "$ac_cpp_err"; then
 
6288
  # Broken: success on invalid input.
 
6289
continue
 
6290
else
 
6291
  echo "$as_me: failed program was:" >&5
 
6292
sed 's/^/| /' conftest.$ac_ext >&5
 
6293
 
 
6294
  # Passes both tests.
 
6295
ac_preproc_ok=:
 
6296
break
 
6297
fi
 
6298
rm -f conftest.err conftest.$ac_ext
 
6299
 
 
6300
done
 
6301
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6302
rm -f conftest.err conftest.$ac_ext
 
6303
if $ac_preproc_ok; then
 
6304
  :
 
6305
else
 
6306
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6307
See \`config.log' for more details." >&5
 
6308
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6309
See \`config.log' for more details." >&2;}
 
6310
   { (exit 1); exit 1; }; }
 
6311
fi
 
6312
 
 
6313
ac_ext=cc
 
6314
ac_cpp='$CXXCPP $CPPFLAGS'
 
6315
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6316
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6317
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6318
 
 
6319
 
 
6320
ac_ext=f
 
6321
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
6322
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6323
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
6324
if test -n "$ac_tool_prefix"; then
 
6325
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
6326
  do
 
6327
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6328
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6329
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6330
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6331
if test "${ac_cv_prog_F77+set}" = set; then
 
6332
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6333
else
 
6334
  if test -n "$F77"; then
 
6335
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
6336
else
 
6337
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6338
for as_dir in $PATH
 
6339
do
 
6340
  IFS=$as_save_IFS
 
6341
  test -z "$as_dir" && as_dir=.
 
6342
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6343
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6344
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
6345
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6346
    break 2
 
6347
  fi
 
6348
done
 
6349
done
 
6350
 
 
6351
fi
 
6352
fi
 
6353
F77=$ac_cv_prog_F77
 
6354
if test -n "$F77"; then
 
6355
  echo "$as_me:$LINENO: result: $F77" >&5
 
6356
echo "${ECHO_T}$F77" >&6
 
6357
else
 
6358
  echo "$as_me:$LINENO: result: no" >&5
 
6359
echo "${ECHO_T}no" >&6
 
6360
fi
 
6361
 
 
6362
    test -n "$F77" && break
 
6363
  done
 
6364
fi
 
6365
if test -z "$F77"; then
 
6366
  ac_ct_F77=$F77
 
6367
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
6368
do
 
6369
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6370
set dummy $ac_prog; ac_word=$2
 
6371
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6372
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6373
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6374
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6375
else
 
6376
  if test -n "$ac_ct_F77"; then
 
6377
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6378
else
 
6379
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6380
for as_dir in $PATH
 
6381
do
 
6382
  IFS=$as_save_IFS
 
6383
  test -z "$as_dir" && as_dir=.
 
6384
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6385
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6386
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6387
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6388
    break 2
 
6389
  fi
 
6390
done
 
6391
done
 
6392
 
 
6393
fi
 
6394
fi
 
6395
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6396
if test -n "$ac_ct_F77"; then
 
6397
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6398
echo "${ECHO_T}$ac_ct_F77" >&6
 
6399
else
 
6400
  echo "$as_me:$LINENO: result: no" >&5
 
6401
echo "${ECHO_T}no" >&6
 
6402
fi
 
6403
 
 
6404
  test -n "$ac_ct_F77" && break
 
6405
done
 
6406
 
 
6407
  F77=$ac_ct_F77
 
6408
fi
 
6409
 
 
6410
 
 
6411
# Provide some information about the compiler.
 
6412
echo "$as_me:6412:" \
 
6413
     "checking for Fortran 77 compiler version" >&5
 
6414
ac_compiler=`set X $ac_compile; echo $2`
 
6415
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
6416
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
6417
  ac_status=$?
 
6418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6419
  (exit $ac_status); }
 
6420
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
6421
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
6422
  ac_status=$?
 
6423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6424
  (exit $ac_status); }
 
6425
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
6426
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
6427
  ac_status=$?
 
6428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6429
  (exit $ac_status); }
 
6430
rm -f a.out
 
6431
 
 
6432
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6433
# input file.  (Note that this only needs to work for GNU compilers.)
 
6434
ac_save_ext=$ac_ext
 
6435
ac_ext=F
 
6436
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6437
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
6438
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6439
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6440
else
 
6441
  cat >conftest.$ac_ext <<_ACEOF
 
6442
      program main
 
6443
#ifndef __GNUC__
 
6444
       choke me
 
6445
#endif
 
6446
 
 
6447
      end
 
6448
_ACEOF
 
6449
rm -f conftest.$ac_objext
 
6450
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6451
  (eval $ac_compile) 2>conftest.er1
 
6452
  ac_status=$?
 
6453
  grep -v '^ *+' conftest.er1 >conftest.err
 
6454
  rm -f conftest.er1
 
6455
  cat conftest.err >&5
 
6456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6457
  (exit $ac_status); } &&
 
6458
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
6459
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6460
  (eval $ac_try) 2>&5
 
6461
  ac_status=$?
 
6462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6463
  (exit $ac_status); }; } &&
 
6464
         { ac_try='test -s conftest.$ac_objext'
 
6465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6466
  (eval $ac_try) 2>&5
 
6467
  ac_status=$?
 
6468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6469
  (exit $ac_status); }; }; then
 
6470
  ac_compiler_gnu=yes
 
6471
else
 
6472
  echo "$as_me: failed program was:" >&5
 
6473
sed 's/^/| /' conftest.$ac_ext >&5
 
6474
 
 
6475
ac_compiler_gnu=no
 
6476
fi
 
6477
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6478
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6479
 
 
6480
fi
 
6481
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6482
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
6483
ac_ext=$ac_save_ext
 
6484
ac_test_FFLAGS=${FFLAGS+set}
 
6485
ac_save_FFLAGS=$FFLAGS
 
6486
FFLAGS=
 
6487
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6488
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
6489
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6490
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6491
else
 
6492
  FFLAGS=-g
 
6493
cat >conftest.$ac_ext <<_ACEOF
 
6494
      program main
 
6495
 
 
6496
      end
 
6497
_ACEOF
 
6498
rm -f conftest.$ac_objext
 
6499
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6500
  (eval $ac_compile) 2>conftest.er1
 
6501
  ac_status=$?
 
6502
  grep -v '^ *+' conftest.er1 >conftest.err
 
6503
  rm -f conftest.er1
 
6504
  cat conftest.err >&5
 
6505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6506
  (exit $ac_status); } &&
 
6507
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
6508
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6509
  (eval $ac_try) 2>&5
 
6510
  ac_status=$?
 
6511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6512
  (exit $ac_status); }; } &&
 
6513
         { ac_try='test -s conftest.$ac_objext'
 
6514
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6515
  (eval $ac_try) 2>&5
 
6516
  ac_status=$?
 
6517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6518
  (exit $ac_status); }; }; then
 
6519
  ac_cv_prog_f77_g=yes
 
6520
else
 
6521
  echo "$as_me: failed program was:" >&5
 
6522
sed 's/^/| /' conftest.$ac_ext >&5
 
6523
 
 
6524
ac_cv_prog_f77_g=no
 
6525
fi
 
6526
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6527
 
 
6528
fi
 
6529
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6530
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
6531
if test "$ac_test_FFLAGS" = set; then
 
6532
  FFLAGS=$ac_save_FFLAGS
 
6533
elif test $ac_cv_prog_f77_g = yes; then
 
6534
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6535
    FFLAGS="-g -O2"
 
6536
  else
 
6537
    FFLAGS="-g"
 
6538
  fi
 
6539
else
 
6540
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6541
    FFLAGS="-O2"
 
6542
  else
 
6543
    FFLAGS=
 
6544
  fi
 
6545
fi
 
6546
 
 
6547
G77=`test $ac_compiler_gnu = yes && echo yes`
 
6548
ac_ext=c
 
6549
ac_cpp='$CPP $CPPFLAGS'
 
6550
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6551
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6552
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6553
 
 
6554
 
 
6555
 
 
6556
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6557
 
 
6558
# find the maximum length of command line arguments
 
6559
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6560
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
6561
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6562
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6563
else
 
6564
    i=0
 
6565
  teststring="ABCD"
 
6566
 
 
6567
  case $build_os in
 
6568
  msdosdjgpp*)
 
6569
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6570
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6571
    # during glob expansion).  Even if it were fixed, the result of this
 
6572
    # check would be larger than it should be.
 
6573
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6574
    ;;
 
6575
 
 
6576
  gnu*)
 
6577
    # Under GNU Hurd, this test is not required because there is
 
6578
    # no limit to the length of command line arguments.
 
6579
    # Libtool will interpret -1 as no limit whatsoever
 
6580
    lt_cv_sys_max_cmd_len=-1;
 
6581
    ;;
 
6582
 
 
6583
  cygwin* | mingw*)
 
6584
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6585
    # about 5 minutes as the teststring grows exponentially.
 
6586
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6587
    # you end up with a "frozen" computer, even though with patience
 
6588
    # the test eventually succeeds (with a max line length of 256k).
 
6589
    # Instead, let's just punt: use the minimum linelength reported by
 
6590
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6591
    lt_cv_sys_max_cmd_len=8192;
 
6592
    ;;
 
6593
 
 
6594
  amigaos*)
 
6595
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6596
    # So we just punt and use a minimum line length of 8192.
 
6597
    lt_cv_sys_max_cmd_len=8192;
 
6598
    ;;
 
6599
 
 
6600
 *)
 
6601
    # If test is not a shell built-in, we'll probably end up computing a
 
6602
    # maximum length that is only half of the actual maximum length, but
 
6603
    # we can't tell.
 
6604
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6605
               = "XX$teststring") >/dev/null 2>&1 &&
 
6606
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6607
            lt_cv_sys_max_cmd_len=$new_result &&
 
6608
            test $i != 17 # 1/2 MB should be enough
 
6609
    do
 
6610
      i=`expr $i + 1`
 
6611
      teststring=$teststring$teststring
 
6612
    done
 
6613
    teststring=
 
6614
    # Add a significant safety factor because C++ compilers can tack on massive
 
6615
    # amounts of additional arguments before passing them to the linker.
 
6616
    # It appears as though 1/2 is a usable value.
 
6617
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6618
    ;;
 
6619
  esac
 
6620
 
 
6621
fi
 
6622
 
 
6623
if test -n $lt_cv_sys_max_cmd_len ; then
 
6624
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6625
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
6626
else
 
6627
  echo "$as_me:$LINENO: result: none" >&5
 
6628
echo "${ECHO_T}none" >&6
2680
6629
fi
2681
6630
 
2682
6631
 
2683
6632
 
2684
6633
 
2685
6634
# Check for command to grab the raw symbol name followed by C symbol from nm.
2686
 
echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2687
 
echo "configure:2688: checking command to parse $NM output" >&5
2688
 
if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2689
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
6635
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6636
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
6637
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6638
  echo $ECHO_N "(cached) $ECHO_C" >&6
2690
6639
else
2691
 
  
 
6640
 
2692
6641
# These are sane defaults that work on at least a few old systems.
2693
6642
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
2694
6643
 
2702
6651
symxfrm='\1 \2\3 \3'
2703
6652
 
2704
6653
# Transform an extracted symbol line into a proper C declaration
2705
 
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
 
6654
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
2706
6655
 
2707
6656
# Transform an extracted symbol line into symbol name and symbol address
2708
 
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6657
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'"
2709
6658
 
2710
6659
# Define system-specific variables.
2711
6660
case $host_os in
2716
6665
  symcode='[ABCDGISTW]'
2717
6666
  ;;
2718
6667
hpux*) # Its linker distinguishes data from code symbols
2719
 
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2720
 
  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6668
  if test "$host_cpu" = ia64; then
 
6669
    symcode='[ABCDEGRST]'
 
6670
  fi
 
6671
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6672
  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'"
2721
6673
  ;;
2722
6674
irix* | nonstopux*)
2723
6675
  symcode='[BCDEGRST]'
2724
6676
  ;;
 
6677
osf*)
 
6678
  symcode='[BCDEGQRST]'
 
6679
  ;;
2725
6680
solaris* | sysv5*)
2726
 
  symcode='[BDT]'
 
6681
  symcode='[BDRT]'
2727
6682
  ;;
2728
6683
sysv4)
2729
6684
  symcode='[DFNSTU]'
2732
6687
 
2733
6688
# Handle CRLF in mingw tool chain
2734
6689
opt_cr=
2735
 
case $host_os in
 
6690
case $build_os in
2736
6691
mingw*)
2737
6692
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2738
6693
  ;;
2739
6694
esac
2740
6695
 
2741
6696
# If we're using GNU nm, then use its standard symbol codes.
2742
 
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2743
 
  symcode='[ABCDGISTW]'
2744
 
fi
 
6697
case `$NM -V 2>&1` in
 
6698
*GNU* | *'with BFD'*)
 
6699
  symcode='[ABCDGIRSTW]' ;;
 
6700
esac
2745
6701
 
2746
6702
# Try without a prefix undercore, then with it.
2747
6703
for ac_symprfx in "" "_"; do
2748
6704
 
2749
6705
  # Write the raw and C identifiers.
2750
 
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
6706
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2751
6707
 
2752
6708
  # Check to see that the pipe works correctly.
2753
6709
  pipe_works=no
 
6710
 
2754
6711
  rm -f conftest*
2755
6712
  cat > conftest.$ac_ext <<EOF
2756
6713
#ifdef __cplusplus
2764
6721
int main(){nm_test_var='a';nm_test_func();return(0);}
2765
6722
EOF
2766
6723
 
2767
 
  if { (eval echo configure:2768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
6724
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6725
  (eval $ac_compile) 2>&5
 
6726
  ac_status=$?
 
6727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6728
  (exit $ac_status); }; then
2768
6729
    # Now try to grab the symbols.
2769
6730
    nlist=conftest.nm
2770
 
    if { (eval echo configure:2771: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
 
6731
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6732
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6733
  ac_status=$?
 
6734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6735
  (exit $ac_status); } && test -s "$nlist"; then
2771
6736
      # Try sorting and uniquifying the output.
2772
6737
      if sort "$nlist" | uniq > "$nlist"T; then
2773
6738
        mv -f "$nlist"T "$nlist"
2776
6741
      fi
2777
6742
 
2778
6743
      # Make sure that we snagged all the symbols we need.
2779
 
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2780
 
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
 
6744
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6745
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
2781
6746
          cat <<EOF > conftest.$ac_ext
2782
6747
#ifdef __cplusplus
2783
6748
extern "C" {
2785
6750
 
2786
6751
EOF
2787
6752
          # Now generate the symbol file.
2788
 
          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
 
6753
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
2789
6754
 
2790
6755
          cat <<EOF >> conftest.$ac_ext
2791
6756
#if defined (__STDC__) && __STDC__
2792
 
# define lt_ptr void *
 
6757
# define lt_ptr_t void *
2793
6758
#else
2794
 
# define lt_ptr char *
 
6759
# define lt_ptr_t char *
2795
6760
# define const
2796
6761
#endif
2797
6762
 
2798
6763
/* The mapping between symbol names and symbols. */
2799
6764
const struct {
2800
6765
  const char *name;
2801
 
  lt_ptr address;
 
6766
  lt_ptr_t address;
2802
6767
}
2803
6768
lt_preloaded_symbols[] =
2804
6769
{
2805
6770
EOF
2806
 
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
 
6771
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
2807
6772
          cat <<\EOF >> conftest.$ac_ext
2808
 
  {0, (lt_ptr) 0}
 
6773
  {0, (lt_ptr_t) 0}
2809
6774
};
2810
6775
 
2811
6776
#ifdef __cplusplus
2814
6779
EOF
2815
6780
          # Now try linking the two files.
2816
6781
          mv conftest.$ac_objext conftstm.$ac_objext
2817
 
          save_LIBS="$LIBS"
2818
 
          save_CFLAGS="$CFLAGS"
 
6782
          lt_save_LIBS="$LIBS"
 
6783
          lt_save_CFLAGS="$CFLAGS"
2819
6784
          LIBS="conftstm.$ac_objext"
2820
 
          CFLAGS="$CFLAGS$no_builtin_flag"
2821
 
          if { (eval echo configure:2822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
6785
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6786
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6787
  (eval $ac_link) 2>&5
 
6788
  ac_status=$?
 
6789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6790
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
2822
6791
            pipe_works=yes
2823
6792
          fi
2824
 
          LIBS="$save_LIBS"
2825
 
          CFLAGS="$save_CFLAGS"
 
6793
          LIBS="$lt_save_LIBS"
 
6794
          CFLAGS="$lt_save_CFLAGS"
2826
6795
        else
2827
6796
          echo "cannot find nm_test_func in $nlist" >&5
2828
6797
        fi
2848
6817
 
2849
6818
fi
2850
6819
 
2851
 
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2852
6820
if test -z "$lt_cv_sys_global_symbol_pipe"; then
2853
 
  global_symbol_to_cdecl=
2854
 
  global_symbol_to_c_name_address=
2855
 
else
2856
 
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2857
 
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2858
 
fi
2859
 
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2860
 
then
2861
 
  echo "$ac_t""failed" 1>&6
2862
 
else
2863
 
  echo "$ac_t""ok" 1>&6
2864
 
fi
2865
 
 
2866
 
for ac_hdr in dlfcn.h
2867
 
do
2868
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2869
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2870
 
echo "configure:2871: checking for $ac_hdr" >&5
2871
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2872
 
  echo $ac_n "(cached) $ac_c" 1>&6
2873
 
else
2874
 
  cat > conftest.$ac_ext <<EOF
2875
 
#line 2876 "configure"
2876
 
#include "confdefs.h"
2877
 
#include <$ac_hdr>
2878
 
EOF
2879
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2880
 
{ (eval echo configure:2881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2881
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2882
 
if test -z "$ac_err"; then
2883
 
  rm -rf conftest*
2884
 
  eval "ac_cv_header_$ac_safe=yes"
2885
 
else
2886
 
  echo "$ac_err" >&5
2887
 
  echo "configure: failed program was:" >&5
2888
 
  cat conftest.$ac_ext >&5
2889
 
  rm -rf conftest*
2890
 
  eval "ac_cv_header_$ac_safe=no"
2891
 
fi
2892
 
rm -f conftest*
2893
 
fi
2894
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2895
 
  echo "$ac_t""yes" 1>&6
2896
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2897
 
  cat >> confdefs.h <<EOF
2898
 
#define $ac_tr_hdr 1
2899
 
EOF
2900
 
 
2901
 
else
2902
 
  echo "$ac_t""no" 1>&6
2903
 
fi
2904
 
done
2905
 
 
2906
 
 
2907
 
 
2908
 
 
2909
 
 
2910
 
# Only perform the check for file, if the check method requires it
2911
 
case $deplibs_check_method in
2912
 
file_magic*)
2913
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2914
 
    echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2915
 
echo "configure:2916: checking for ${ac_tool_prefix}file" >&5
2916
 
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2917
 
  echo $ac_n "(cached) $ac_c" 1>&6
2918
 
else
2919
 
  case $MAGIC_CMD in
2920
 
  /*)
2921
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2922
 
  ;;
2923
 
  ?:/*)
2924
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2925
 
  ;;
2926
 
  *)
2927
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
2928
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2929
 
  ac_dummy="/usr/bin:$PATH"
2930
 
  for ac_dir in $ac_dummy; do
2931
 
    test -z "$ac_dir" && ac_dir=.
2932
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
2933
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2934
 
      if test -n "$file_magic_test_file"; then
2935
 
        case $deplibs_check_method in
2936
 
        "file_magic "*)
2937
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2938
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2939
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2940
 
            egrep "$file_magic_regex" > /dev/null; then
2941
 
            :
2942
 
          else
2943
 
            cat <<EOF 1>&2
2944
 
 
2945
 
*** Warning: the command libtool uses to detect shared libraries,
2946
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
2947
 
*** The result is that libtool may fail to recognize shared libraries
2948
 
*** as such.  This will affect the creation of libtool libraries that
2949
 
*** depend on shared libraries, but programs linked with such libtool
2950
 
*** libraries will work regardless of this problem.  Nevertheless, you
2951
 
*** may want to report the problem to your system manager and/or to
2952
 
*** bug-libtool@gnu.org
2953
 
 
2954
 
EOF
2955
 
          fi ;;
2956
 
        esac
2957
 
      fi
2958
 
      break
2959
 
    fi
2960
 
  done
2961
 
  IFS="$ac_save_ifs"
2962
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
2963
 
  ;;
2964
 
esac
2965
 
fi
2966
 
 
2967
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2968
 
if test -n "$MAGIC_CMD"; then
2969
 
  echo "$ac_t""$MAGIC_CMD" 1>&6
2970
 
else
2971
 
  echo "$ac_t""no" 1>&6
2972
 
fi
2973
 
 
2974
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
2975
 
  if test -n "$ac_tool_prefix"; then
2976
 
    echo $ac_n "checking for file""... $ac_c" 1>&6
2977
 
echo "configure:2978: checking for file" >&5
2978
 
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2979
 
  echo $ac_n "(cached) $ac_c" 1>&6
2980
 
else
2981
 
  case $MAGIC_CMD in
2982
 
  /*)
2983
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2984
 
  ;;
2985
 
  ?:/*)
2986
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2987
 
  ;;
2988
 
  *)
2989
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
2990
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2991
 
  ac_dummy="/usr/bin:$PATH"
2992
 
  for ac_dir in $ac_dummy; do
2993
 
    test -z "$ac_dir" && ac_dir=.
2994
 
    if test -f $ac_dir/file; then
2995
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
2996
 
      if test -n "$file_magic_test_file"; then
2997
 
        case $deplibs_check_method in
2998
 
        "file_magic "*)
2999
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3000
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3001
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3002
 
            egrep "$file_magic_regex" > /dev/null; then
3003
 
            :
3004
 
          else
3005
 
            cat <<EOF 1>&2
3006
 
 
3007
 
*** Warning: the command libtool uses to detect shared libraries,
3008
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
3009
 
*** The result is that libtool may fail to recognize shared libraries
3010
 
*** as such.  This will affect the creation of libtool libraries that
3011
 
*** depend on shared libraries, but programs linked with such libtool
3012
 
*** libraries will work regardless of this problem.  Nevertheless, you
3013
 
*** may want to report the problem to your system manager and/or to
3014
 
*** bug-libtool@gnu.org
3015
 
 
3016
 
EOF
3017
 
          fi ;;
3018
 
        esac
3019
 
      fi
3020
 
      break
3021
 
    fi
3022
 
  done
3023
 
  IFS="$ac_save_ifs"
3024
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
3025
 
  ;;
3026
 
esac
3027
 
fi
3028
 
 
3029
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3030
 
if test -n "$MAGIC_CMD"; then
3031
 
  echo "$ac_t""$MAGIC_CMD" 1>&6
3032
 
else
3033
 
  echo "$ac_t""no" 1>&6
3034
 
fi
3035
 
 
3036
 
  else
3037
 
    MAGIC_CMD=:
3038
 
  fi
3039
 
fi
3040
 
 
3041
 
  fi
3042
 
  ;;
3043
 
esac
3044
 
 
3045
 
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3046
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3047
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3048
 
echo "configure:3049: checking for $ac_word" >&5
3049
 
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3050
 
  echo $ac_n "(cached) $ac_c" 1>&6
3051
 
else
3052
 
  if test -n "$RANLIB"; then
3053
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3054
 
else
3055
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3056
 
  ac_dummy="$PATH"
3057
 
  for ac_dir in $ac_dummy; do
3058
 
    test -z "$ac_dir" && ac_dir=.
3059
 
    if test -f $ac_dir/$ac_word; then
3060
 
      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3061
 
      break
3062
 
    fi
3063
 
  done
3064
 
  IFS="$ac_save_ifs"
3065
 
fi
3066
 
fi
3067
 
RANLIB="$ac_cv_prog_RANLIB"
3068
 
if test -n "$RANLIB"; then
3069
 
  echo "$ac_t""$RANLIB" 1>&6
3070
 
else
3071
 
  echo "$ac_t""no" 1>&6
3072
 
fi
3073
 
 
3074
 
 
3075
 
if test -z "$ac_cv_prog_RANLIB"; then
3076
 
if test -n "$ac_tool_prefix"; then
3077
 
  # Extract the first word of "ranlib", so it can be a program name with args.
3078
 
set dummy ranlib; ac_word=$2
3079
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3080
 
echo "configure:3081: checking for $ac_word" >&5
3081
 
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3082
 
  echo $ac_n "(cached) $ac_c" 1>&6
3083
 
else
3084
 
  if test -n "$RANLIB"; then
3085
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3086
 
else
3087
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3088
 
  ac_dummy="$PATH"
3089
 
  for ac_dir in $ac_dummy; do
3090
 
    test -z "$ac_dir" && ac_dir=.
3091
 
    if test -f $ac_dir/$ac_word; then
3092
 
      ac_cv_prog_RANLIB="ranlib"
3093
 
      break
3094
 
    fi
3095
 
  done
3096
 
  IFS="$ac_save_ifs"
3097
 
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3098
 
fi
3099
 
fi
3100
 
RANLIB="$ac_cv_prog_RANLIB"
3101
 
if test -n "$RANLIB"; then
3102
 
  echo "$ac_t""$RANLIB" 1>&6
3103
 
else
3104
 
  echo "$ac_t""no" 1>&6
3105
 
fi
3106
 
 
3107
 
else
3108
 
  RANLIB=":"
3109
 
fi
3110
 
fi
3111
 
 
3112
 
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3113
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
3114
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3115
 
echo "configure:3116: checking for $ac_word" >&5
3116
 
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3117
 
  echo $ac_n "(cached) $ac_c" 1>&6
3118
 
else
3119
 
  if test -n "$STRIP"; then
3120
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3121
 
else
3122
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3123
 
  ac_dummy="$PATH"
3124
 
  for ac_dir in $ac_dummy; do
3125
 
    test -z "$ac_dir" && ac_dir=.
3126
 
    if test -f $ac_dir/$ac_word; then
3127
 
      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3128
 
      break
3129
 
    fi
3130
 
  done
3131
 
  IFS="$ac_save_ifs"
3132
 
fi
3133
 
fi
3134
 
STRIP="$ac_cv_prog_STRIP"
3135
 
if test -n "$STRIP"; then
3136
 
  echo "$ac_t""$STRIP" 1>&6
3137
 
else
3138
 
  echo "$ac_t""no" 1>&6
3139
 
fi
3140
 
 
3141
 
 
3142
 
if test -z "$ac_cv_prog_STRIP"; then
3143
 
if test -n "$ac_tool_prefix"; then
3144
 
  # Extract the first word of "strip", so it can be a program name with args.
3145
 
set dummy strip; ac_word=$2
3146
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3147
 
echo "configure:3148: checking for $ac_word" >&5
3148
 
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3149
 
  echo $ac_n "(cached) $ac_c" 1>&6
3150
 
else
3151
 
  if test -n "$STRIP"; then
3152
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3153
 
else
3154
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3155
 
  ac_dummy="$PATH"
3156
 
  for ac_dir in $ac_dummy; do
3157
 
    test -z "$ac_dir" && ac_dir=.
3158
 
    if test -f $ac_dir/$ac_word; then
3159
 
      ac_cv_prog_STRIP="strip"
3160
 
      break
3161
 
    fi
3162
 
  done
3163
 
  IFS="$ac_save_ifs"
3164
 
  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3165
 
fi
3166
 
fi
3167
 
STRIP="$ac_cv_prog_STRIP"
3168
 
if test -n "$STRIP"; then
3169
 
  echo "$ac_t""$STRIP" 1>&6
3170
 
else
3171
 
  echo "$ac_t""no" 1>&6
3172
 
fi
3173
 
 
3174
 
else
3175
 
  STRIP=":"
3176
 
fi
3177
 
fi
3178
 
 
3179
 
 
3180
 
enable_dlopen=no
3181
 
enable_win32_dll=no
3182
 
 
3183
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3184
 
if test "${enable_libtool_lock+set}" = set; then
3185
 
  enableval="$enable_libtool_lock"
3186
 
  :
3187
 
fi
3188
 
 
3189
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3190
 
 
3191
 
# Some flags need to be propagated to the compiler or linker for good
3192
 
# libtool support.
3193
 
case $host in
3194
 
*-*-irix6*)
3195
 
  # Find out which ABI we are using.
3196
 
  echo '#line 3197 "configure"' > conftest.$ac_ext
3197
 
  if { (eval echo configure:3198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3198
 
    case `/usr/bin/file conftest.$ac_objext` in
3199
 
    *32-bit*)
3200
 
      LD="${LD-ld} -32"
3201
 
      ;;
3202
 
    *N32*)
3203
 
      LD="${LD-ld} -n32"
3204
 
      ;;
3205
 
    *64-bit*)
3206
 
      LD="${LD-ld} -64"
3207
 
      ;;
3208
 
    esac
3209
 
  fi
3210
 
  rm -rf conftest*
3211
 
  ;;
3212
 
 
3213
 
*-*-sco3.2v5*)
3214
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3215
 
  SAVE_CFLAGS="$CFLAGS"
3216
 
  CFLAGS="$CFLAGS -belf"
3217
 
  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3218
 
echo "configure:3219: checking whether the C compiler needs -belf" >&5
3219
 
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
3220
 
  echo $ac_n "(cached) $ac_c" 1>&6
3221
 
else
3222
 
  
3223
 
     ac_ext=c
3224
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3225
 
ac_cpp='$CPP $CPPFLAGS'
3226
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3227
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3228
 
cross_compiling=$ac_cv_prog_cc_cross
3229
 
 
3230
 
     cat > conftest.$ac_ext <<EOF
3231
 
#line 3232 "configure"
3232
 
#include "confdefs.h"
3233
 
 
3234
 
int main() {
3235
 
 
3236
 
; return 0; }
3237
 
EOF
3238
 
if { (eval echo configure:3239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3239
 
  rm -rf conftest*
3240
 
  lt_cv_cc_needs_belf=yes
3241
 
else
3242
 
  echo "configure: failed program was:" >&5
3243
 
  cat conftest.$ac_ext >&5
3244
 
  rm -rf conftest*
3245
 
  lt_cv_cc_needs_belf=no
3246
 
fi
3247
 
rm -f conftest*
3248
 
     ac_ext=c
3249
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3250
 
ac_cpp='$CPP $CPPFLAGS'
3251
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3252
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3253
 
cross_compiling=$ac_cv_prog_cc_cross
3254
 
 
3255
 
fi
3256
 
 
3257
 
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3258
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3259
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3260
 
    CFLAGS="$SAVE_CFLAGS"
3261
 
  fi
3262
 
  ;;
3263
 
 
3264
 
 
 
6821
  lt_cv_sys_global_symbol_to_cdecl=
 
6822
fi
 
6823
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6824
  echo "$as_me:$LINENO: result: failed" >&5
 
6825
echo "${ECHO_T}failed" >&6
 
6826
else
 
6827
  echo "$as_me:$LINENO: result: ok" >&5
 
6828
echo "${ECHO_T}ok" >&6
 
6829
fi
 
6830
 
 
6831
echo "$as_me:$LINENO: checking for objdir" >&5
 
6832
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
6833
if test "${lt_cv_objdir+set}" = set; then
 
6834
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6835
else
 
6836
  rm -f .libs 2>/dev/null
 
6837
mkdir .libs 2>/dev/null
 
6838
if test -d .libs; then
 
6839
  lt_cv_objdir=.libs
 
6840
else
 
6841
  # MS-DOS does not allow filenames that begin with a dot.
 
6842
  lt_cv_objdir=_libs
 
6843
fi
 
6844
rmdir .libs 2>/dev/null
 
6845
fi
 
6846
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6847
echo "${ECHO_T}$lt_cv_objdir" >&6
 
6848
objdir=$lt_cv_objdir
 
6849
 
 
6850
 
 
6851
 
 
6852
 
 
6853
 
 
6854
case $host_os in
 
6855
aix3*)
 
6856
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6857
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6858
  # vanish in a puff of smoke.
 
6859
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6860
    COLLECT_NAMES=
 
6861
    export COLLECT_NAMES
 
6862
  fi
 
6863
  ;;
3265
6864
esac
3266
6865
 
3267
6866
# Sed substitution that helps us do robust quoting.  It backslashifies
3276
6875
# double_quote_subst'ed string.
3277
6876
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3278
6877
 
 
6878
# Sed substitution to avoid accidental globbing in evaled expressions
 
6879
no_glob_subst='s/\*/\\\*/g'
 
6880
 
3279
6881
# Constants:
3280
6882
rm="rm -f"
3281
6883
 
3289
6891
ltmain="$ac_aux_dir/ltmain.sh"
3290
6892
ofile="$default_ofile"
3291
6893
with_gnu_ld="$lt_cv_prog_gnu_ld"
3292
 
need_locks="$enable_libtool_lock"
 
6894
 
 
6895
if test -n "$ac_tool_prefix"; then
 
6896
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6897
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6898
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6899
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6900
if test "${ac_cv_prog_AR+set}" = set; then
 
6901
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6902
else
 
6903
  if test -n "$AR"; then
 
6904
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6905
else
 
6906
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6907
for as_dir in $PATH
 
6908
do
 
6909
  IFS=$as_save_IFS
 
6910
  test -z "$as_dir" && as_dir=.
 
6911
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6912
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6913
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6914
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6915
    break 2
 
6916
  fi
 
6917
done
 
6918
done
 
6919
 
 
6920
fi
 
6921
fi
 
6922
AR=$ac_cv_prog_AR
 
6923
if test -n "$AR"; then
 
6924
  echo "$as_me:$LINENO: result: $AR" >&5
 
6925
echo "${ECHO_T}$AR" >&6
 
6926
else
 
6927
  echo "$as_me:$LINENO: result: no" >&5
 
6928
echo "${ECHO_T}no" >&6
 
6929
fi
 
6930
 
 
6931
fi
 
6932
if test -z "$ac_cv_prog_AR"; then
 
6933
  ac_ct_AR=$AR
 
6934
  # Extract the first word of "ar", so it can be a program name with args.
 
6935
set dummy ar; ac_word=$2
 
6936
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6937
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6938
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6939
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6940
else
 
6941
  if test -n "$ac_ct_AR"; then
 
6942
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6943
else
 
6944
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6945
for as_dir in $PATH
 
6946
do
 
6947
  IFS=$as_save_IFS
 
6948
  test -z "$as_dir" && as_dir=.
 
6949
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6950
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6951
    ac_cv_prog_ac_ct_AR="ar"
 
6952
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6953
    break 2
 
6954
  fi
 
6955
done
 
6956
done
 
6957
 
 
6958
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
6959
fi
 
6960
fi
 
6961
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6962
if test -n "$ac_ct_AR"; then
 
6963
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6964
echo "${ECHO_T}$ac_ct_AR" >&6
 
6965
else
 
6966
  echo "$as_me:$LINENO: result: no" >&5
 
6967
echo "${ECHO_T}no" >&6
 
6968
fi
 
6969
 
 
6970
  AR=$ac_ct_AR
 
6971
else
 
6972
  AR="$ac_cv_prog_AR"
 
6973
fi
 
6974
 
 
6975
if test -n "$ac_tool_prefix"; then
 
6976
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6977
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6978
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6979
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6980
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6981
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6982
else
 
6983
  if test -n "$RANLIB"; then
 
6984
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6985
else
 
6986
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6987
for as_dir in $PATH
 
6988
do
 
6989
  IFS=$as_save_IFS
 
6990
  test -z "$as_dir" && as_dir=.
 
6991
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6992
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6993
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6994
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6995
    break 2
 
6996
  fi
 
6997
done
 
6998
done
 
6999
 
 
7000
fi
 
7001
fi
 
7002
RANLIB=$ac_cv_prog_RANLIB
 
7003
if test -n "$RANLIB"; then
 
7004
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
7005
echo "${ECHO_T}$RANLIB" >&6
 
7006
else
 
7007
  echo "$as_me:$LINENO: result: no" >&5
 
7008
echo "${ECHO_T}no" >&6
 
7009
fi
 
7010
 
 
7011
fi
 
7012
if test -z "$ac_cv_prog_RANLIB"; then
 
7013
  ac_ct_RANLIB=$RANLIB
 
7014
  # Extract the first word of "ranlib", so it can be a program name with args.
 
7015
set dummy ranlib; ac_word=$2
 
7016
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7017
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7018
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
7019
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7020
else
 
7021
  if test -n "$ac_ct_RANLIB"; then
 
7022
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7023
else
 
7024
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7025
for as_dir in $PATH
 
7026
do
 
7027
  IFS=$as_save_IFS
 
7028
  test -z "$as_dir" && as_dir=.
 
7029
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7030
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7031
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7032
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7033
    break 2
 
7034
  fi
 
7035
done
 
7036
done
 
7037
 
 
7038
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
7039
fi
 
7040
fi
 
7041
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7042
if test -n "$ac_ct_RANLIB"; then
 
7043
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
7044
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
7045
else
 
7046
  echo "$as_me:$LINENO: result: no" >&5
 
7047
echo "${ECHO_T}no" >&6
 
7048
fi
 
7049
 
 
7050
  RANLIB=$ac_ct_RANLIB
 
7051
else
 
7052
  RANLIB="$ac_cv_prog_RANLIB"
 
7053
fi
 
7054
 
 
7055
if test -n "$ac_tool_prefix"; then
 
7056
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
7057
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
7058
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7059
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7060
if test "${ac_cv_prog_STRIP+set}" = set; then
 
7061
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7062
else
 
7063
  if test -n "$STRIP"; then
 
7064
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
7065
else
 
7066
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7067
for as_dir in $PATH
 
7068
do
 
7069
  IFS=$as_save_IFS
 
7070
  test -z "$as_dir" && as_dir=.
 
7071
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7072
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7073
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7074
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7075
    break 2
 
7076
  fi
 
7077
done
 
7078
done
 
7079
 
 
7080
fi
 
7081
fi
 
7082
STRIP=$ac_cv_prog_STRIP
 
7083
if test -n "$STRIP"; then
 
7084
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
7085
echo "${ECHO_T}$STRIP" >&6
 
7086
else
 
7087
  echo "$as_me:$LINENO: result: no" >&5
 
7088
echo "${ECHO_T}no" >&6
 
7089
fi
 
7090
 
 
7091
fi
 
7092
if test -z "$ac_cv_prog_STRIP"; then
 
7093
  ac_ct_STRIP=$STRIP
 
7094
  # Extract the first word of "strip", so it can be a program name with args.
 
7095
set dummy strip; ac_word=$2
 
7096
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7097
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7098
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
7099
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7100
else
 
7101
  if test -n "$ac_ct_STRIP"; then
 
7102
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7103
else
 
7104
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7105
for as_dir in $PATH
 
7106
do
 
7107
  IFS=$as_save_IFS
 
7108
  test -z "$as_dir" && as_dir=.
 
7109
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7110
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7111
    ac_cv_prog_ac_ct_STRIP="strip"
 
7112
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7113
    break 2
 
7114
  fi
 
7115
done
 
7116
done
 
7117
 
 
7118
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
7119
fi
 
7120
fi
 
7121
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7122
if test -n "$ac_ct_STRIP"; then
 
7123
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7124
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
7125
else
 
7126
  echo "$as_me:$LINENO: result: no" >&5
 
7127
echo "${ECHO_T}no" >&6
 
7128
fi
 
7129
 
 
7130
  STRIP=$ac_ct_STRIP
 
7131
else
 
7132
  STRIP="$ac_cv_prog_STRIP"
 
7133
fi
 
7134
 
3293
7135
 
3294
7136
old_CC="$CC"
3295
7137
old_CFLAGS="$CFLAGS"
3299
7141
test -z "$AR_FLAGS" && AR_FLAGS=cru
3300
7142
test -z "$AS" && AS=as
3301
7143
test -z "$CC" && CC=cc
 
7144
test -z "$LTCC" && LTCC=$CC
3302
7145
test -z "$DLLTOOL" && DLLTOOL=dlltool
3303
7146
test -z "$LD" && LD=ld
3304
7147
test -z "$LN_S" && LN_S="ln -s"
3305
7148
test -z "$MAGIC_CMD" && MAGIC_CMD=file
3306
7149
test -z "$NM" && NM=nm
 
7150
test -z "$SED" && SED=sed
3307
7151
test -z "$OBJDUMP" && OBJDUMP=objdump
3308
7152
test -z "$RANLIB" && RANLIB=:
3309
7153
test -z "$STRIP" && STRIP=:
3310
7154
test -z "$ac_objext" && ac_objext=o
3311
7155
 
3312
 
if test x"$host" != x"$build"; then
3313
 
  ac_tool_prefix=${host_alias}-
3314
 
else
3315
 
  ac_tool_prefix=
3316
 
fi
3317
 
 
3318
 
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3319
 
case $host_os in
3320
 
linux-gnu*) ;;
3321
 
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3322
 
esac
3323
 
 
3324
 
case $host_os in
3325
 
aix3*)
3326
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
3327
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
3328
 
  # vanish in a puff of smoke.
3329
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
3330
 
    COLLECT_NAMES=
3331
 
    export COLLECT_NAMES
3332
 
  fi
3333
 
  ;;
3334
 
esac
3335
 
 
3336
7156
# Determine commands to create old-style static archives.
3337
7157
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3338
7158
old_postinstall_cmds='chmod 644 $oldlib'
3350
7170
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3351
7171
fi
3352
7172
 
3353
 
# Allow CC to be a program name with arguments.
3354
 
set dummy $CC
3355
 
compiler="$2"
3356
 
 
3357
 
echo $ac_n "checking for objdir""... $ac_c" 1>&6
3358
 
echo "configure:3359: checking for objdir" >&5
3359
 
rm -f .libs 2>/dev/null
3360
 
mkdir .libs 2>/dev/null
3361
 
if test -d .libs; then
3362
 
  objdir=.libs
3363
 
else
3364
 
  # MS-DOS does not allow filenames that begin with a dot.
3365
 
  objdir=_libs
3366
 
fi
3367
 
rmdir .libs 2>/dev/null
3368
 
echo "$ac_t""$objdir" 1>&6
 
7173
# Only perform the check for file, if the check method requires it
 
7174
case $deplibs_check_method in
 
7175
file_magic*)
 
7176
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7177
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7178
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
7179
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7180
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7181
else
 
7182
  case $MAGIC_CMD in
 
7183
[\\/*] |  ?:[\\/]*)
 
7184
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7185
  ;;
 
7186
*)
 
7187
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7188
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7189
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7190
  for ac_dir in $ac_dummy; do
 
7191
    IFS="$lt_save_ifs"
 
7192
    test -z "$ac_dir" && ac_dir=.
 
7193
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7194
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7195
      if test -n "$file_magic_test_file"; then
 
7196
        case $deplibs_check_method in
 
7197
        "file_magic "*)
 
7198
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7199
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7200
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7201
            $EGREP "$file_magic_regex" > /dev/null; then
 
7202
            :
 
7203
          else
 
7204
            cat <<EOF 1>&2
 
7205
 
 
7206
*** Warning: the command libtool uses to detect shared libraries,
 
7207
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7208
*** The result is that libtool may fail to recognize shared libraries
 
7209
*** as such.  This will affect the creation of libtool libraries that
 
7210
*** depend on shared libraries, but programs linked with such libtool
 
7211
*** libraries will work regardless of this problem.  Nevertheless, you
 
7212
*** may want to report the problem to your system manager and/or to
 
7213
*** bug-libtool@gnu.org
 
7214
 
 
7215
EOF
 
7216
          fi ;;
 
7217
        esac
 
7218
      fi
 
7219
      break
 
7220
    fi
 
7221
  done
 
7222
  IFS="$lt_save_ifs"
 
7223
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7224
  ;;
 
7225
esac
 
7226
fi
 
7227
 
 
7228
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7229
if test -n "$MAGIC_CMD"; then
 
7230
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7231
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7232
else
 
7233
  echo "$as_me:$LINENO: result: no" >&5
 
7234
echo "${ECHO_T}no" >&6
 
7235
fi
 
7236
 
 
7237
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7238
  if test -n "$ac_tool_prefix"; then
 
7239
    echo "$as_me:$LINENO: checking for file" >&5
 
7240
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
7241
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7242
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7243
else
 
7244
  case $MAGIC_CMD in
 
7245
[\\/*] |  ?:[\\/]*)
 
7246
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7247
  ;;
 
7248
*)
 
7249
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7250
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7251
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7252
  for ac_dir in $ac_dummy; do
 
7253
    IFS="$lt_save_ifs"
 
7254
    test -z "$ac_dir" && ac_dir=.
 
7255
    if test -f $ac_dir/file; then
 
7256
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7257
      if test -n "$file_magic_test_file"; then
 
7258
        case $deplibs_check_method in
 
7259
        "file_magic "*)
 
7260
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7261
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7262
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7263
            $EGREP "$file_magic_regex" > /dev/null; then
 
7264
            :
 
7265
          else
 
7266
            cat <<EOF 1>&2
 
7267
 
 
7268
*** Warning: the command libtool uses to detect shared libraries,
 
7269
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7270
*** The result is that libtool may fail to recognize shared libraries
 
7271
*** as such.  This will affect the creation of libtool libraries that
 
7272
*** depend on shared libraries, but programs linked with such libtool
 
7273
*** libraries will work regardless of this problem.  Nevertheless, you
 
7274
*** may want to report the problem to your system manager and/or to
 
7275
*** bug-libtool@gnu.org
 
7276
 
 
7277
EOF
 
7278
          fi ;;
 
7279
        esac
 
7280
      fi
 
7281
      break
 
7282
    fi
 
7283
  done
 
7284
  IFS="$lt_save_ifs"
 
7285
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7286
  ;;
 
7287
esac
 
7288
fi
 
7289
 
 
7290
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7291
if test -n "$MAGIC_CMD"; then
 
7292
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7293
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7294
else
 
7295
  echo "$as_me:$LINENO: result: no" >&5
 
7296
echo "${ECHO_T}no" >&6
 
7297
fi
 
7298
 
 
7299
  else
 
7300
    MAGIC_CMD=:
 
7301
  fi
 
7302
fi
 
7303
 
 
7304
  fi
 
7305
  ;;
 
7306
esac
 
7307
 
 
7308
enable_dlopen=no
 
7309
enable_win32_dll=no
 
7310
 
 
7311
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
7312
if test "${enable_libtool_lock+set}" = set; then
 
7313
  enableval="$enable_libtool_lock"
 
7314
 
 
7315
fi;
 
7316
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3369
7317
 
3370
7318
 
3371
7319
# Check whether --with-pic or --without-pic was given.
3374
7322
  pic_mode="$withval"
3375
7323
else
3376
7324
  pic_mode=default
3377
 
fi
3378
 
 
 
7325
fi;
3379
7326
test -z "$pic_mode" && pic_mode=default
3380
7327
 
3381
 
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
3382
 
# in isolation, and that seeing it set (from the cache) indicates that
3383
 
# the associated values are set (in the cache) correctly too.
3384
 
echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
3385
 
echo "configure:3386: checking for $compiler option to produce PIC" >&5
3386
 
if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
3387
 
  echo $ac_n "(cached) $ac_c" 1>&6
3388
 
else
3389
 
   lt_cv_prog_cc_pic=
3390
 
  lt_cv_prog_cc_shlib=
3391
 
  lt_cv_prog_cc_wl=
3392
 
  lt_cv_prog_cc_static=
3393
 
  lt_cv_prog_cc_no_builtin=
3394
 
  lt_cv_prog_cc_can_build_shared=$can_build_shared
3395
 
 
3396
 
  if test "$GCC" = yes; then
3397
 
    lt_cv_prog_cc_wl='-Wl,'
3398
 
    lt_cv_prog_cc_static='-static'
3399
 
 
3400
 
    case $host_os in
3401
 
    aix*)
3402
 
      # Below there is a dirty hack to force normal static linking with -ldl
3403
 
      # The problem is because libdl dynamically linked with both libc and
3404
 
      # libC (AIX C++ library), which obviously doesn't included in libraries
3405
 
      # list by gcc. This cause undefined symbols with -static flags.
3406
 
      # This hack allows C programs to be linked with "-static -ldl", but
3407
 
      # not sure about C++ programs.
3408
 
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3409
 
      ;;
3410
 
    amigaos*)
3411
 
      # FIXME: we need at least 68020 code to build shared libraries, but
3412
 
      # adding the `-m68020' flag to GCC prevents building anything better,
3413
 
      # like `-m68040'.
3414
 
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3415
 
      ;;
3416
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3417
 
      # PIC is the default for these OSes.
3418
 
      ;;
3419
 
    darwin* | rhapsody*)
3420
 
      # PIC is the default on this platform
3421
 
      # Common symbols not allowed in MH_DYLIB files
3422
 
      lt_cv_prog_cc_pic='-fno-common'
3423
 
      ;;
3424
 
    cygwin* | mingw* | pw32* | os2*)
3425
 
      # This hack is so that the source file can tell whether it is being
3426
 
      # built for inclusion in a dll (and should export symbols for example).
3427
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
3428
 
      ;;
3429
 
    sysv4*MP*)
3430
 
      if test -d /usr/nec; then
3431
 
         lt_cv_prog_cc_pic=-Kconform_pic
3432
 
      fi
3433
 
      ;;
3434
 
    *)
3435
 
      lt_cv_prog_cc_pic='-fPIC'
3436
 
      ;;
3437
 
    esac
3438
 
  else
3439
 
    # PORTME Check for PIC flags for the system compiler.
3440
 
    case $host_os in
3441
 
    aix3* | aix4* | aix5*)
3442
 
      lt_cv_prog_cc_wl='-Wl,'
3443
 
      # All AIX code is PIC.
3444
 
      if test "$host_cpu" = ia64; then
3445
 
        # AIX 5 now supports IA64 processor
3446
 
        lt_cv_prog_cc_static='-Bstatic'
3447
 
      else
3448
 
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3449
 
      fi
3450
 
      ;;
3451
 
 
3452
 
    hpux9* | hpux10* | hpux11*)
3453
 
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3454
 
      lt_cv_prog_cc_wl='-Wl,'
3455
 
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3456
 
      lt_cv_prog_cc_pic='+Z'
3457
 
      ;;
3458
 
 
3459
 
    irix5* | irix6* | nonstopux*)
3460
 
      lt_cv_prog_cc_wl='-Wl,'
3461
 
      lt_cv_prog_cc_static='-non_shared'
3462
 
      # PIC (with -KPIC) is the default.
3463
 
      ;;
3464
 
 
3465
 
    cygwin* | mingw* | pw32* | os2*)
3466
 
      # This hack is so that the source file can tell whether it is being
3467
 
      # built for inclusion in a dll (and should export symbols for example).
3468
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
3469
 
      ;;
3470
 
 
3471
 
    newsos6)
3472
 
      lt_cv_prog_cc_pic='-KPIC'
3473
 
      lt_cv_prog_cc_static='-Bstatic'
3474
 
      ;;
3475
 
 
3476
 
    osf3* | osf4* | osf5*)
3477
 
      # All OSF/1 code is PIC.
3478
 
      lt_cv_prog_cc_wl='-Wl,'
3479
 
      lt_cv_prog_cc_static='-non_shared'
3480
 
      ;;
3481
 
 
3482
 
    sco3.2v5*)
3483
 
      lt_cv_prog_cc_pic='-Kpic'
3484
 
      lt_cv_prog_cc_static='-dn'
3485
 
      lt_cv_prog_cc_shlib='-belf'
3486
 
      ;;
3487
 
 
3488
 
    solaris*)
3489
 
      lt_cv_prog_cc_pic='-KPIC'
3490
 
      lt_cv_prog_cc_static='-Bstatic'
3491
 
      lt_cv_prog_cc_wl='-Wl,'
3492
 
      ;;
3493
 
 
3494
 
    sunos4*)
3495
 
      lt_cv_prog_cc_pic='-PIC'
3496
 
      lt_cv_prog_cc_static='-Bstatic'
3497
 
      lt_cv_prog_cc_wl='-Qoption ld '
3498
 
      ;;
3499
 
 
3500
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3501
 
      lt_cv_prog_cc_pic='-KPIC'
3502
 
      lt_cv_prog_cc_static='-Bstatic'
3503
 
      if test "x$host_vendor" = xsni; then
3504
 
        lt_cv_prog_cc_wl='-LD'
3505
 
      else
3506
 
        lt_cv_prog_cc_wl='-Wl,'
3507
 
      fi
3508
 
      ;;
3509
 
 
3510
 
    uts4*)
3511
 
      lt_cv_prog_cc_pic='-pic'
3512
 
      lt_cv_prog_cc_static='-Bstatic'
3513
 
      ;;
3514
 
 
3515
 
    sysv4*MP*)
3516
 
      if test -d /usr/nec ;then
3517
 
        lt_cv_prog_cc_pic='-Kconform_pic'
3518
 
        lt_cv_prog_cc_static='-Bstatic'
3519
 
      fi
3520
 
      ;;
3521
 
 
3522
 
    *)
3523
 
      lt_cv_prog_cc_can_build_shared=no
3524
 
      ;;
3525
 
    esac
3526
 
  fi
3527
 
 
3528
 
fi
3529
 
 
3530
 
if test -z "$lt_cv_prog_cc_pic"; then
3531
 
  echo "$ac_t""none" 1>&6
3532
 
else
3533
 
  echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
3534
 
 
3535
 
  # Check to make sure the pic_flag actually works.
3536
 
  echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
3537
 
echo "configure:3538: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
3538
 
  if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
3539
 
  echo $ac_n "(cached) $ac_c" 1>&6
3540
 
else
3541
 
      save_CFLAGS="$CFLAGS"
3542
 
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
3543
 
    cat > conftest.$ac_ext <<EOF
3544
 
#line 3545 "configure"
3545
 
#include "confdefs.h"
3546
 
 
3547
 
int main() {
3548
 
 
3549
 
; return 0; }
3550
 
EOF
3551
 
if { (eval echo configure:3552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3552
 
  rm -rf conftest*
3553
 
        case $host_os in
3554
 
      hpux9* | hpux10* | hpux11*)
3555
 
        # On HP-UX, both CC and GCC only warn that PIC is supported... then
3556
 
        # they create non-PIC objects.  So, if there were any warnings, we
3557
 
        # assume that PIC is not supported.
3558
 
        if test -s conftest.err; then
3559
 
          lt_cv_prog_cc_pic_works=no
3560
 
        else
3561
 
          lt_cv_prog_cc_pic_works=yes
3562
 
        fi
3563
 
        ;;
3564
 
      *)
3565
 
        lt_cv_prog_cc_pic_works=yes
3566
 
        ;;
3567
 
      esac
3568
 
    
3569
 
else
3570
 
  echo "configure: failed program was:" >&5
3571
 
  cat conftest.$ac_ext >&5
3572
 
  rm -rf conftest*
3573
 
        lt_cv_prog_cc_pic_works=no
3574
 
    
3575
 
fi
3576
 
rm -f conftest*
3577
 
    CFLAGS="$save_CFLAGS"
3578
 
  
3579
 
fi
3580
 
 
3581
 
 
3582
 
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
3583
 
    lt_cv_prog_cc_pic=
3584
 
    lt_cv_prog_cc_can_build_shared=no
3585
 
  else
3586
 
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
3587
 
  fi
3588
 
 
3589
 
  echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
3590
 
fi
3591
 
 
 
7328
# Use C for the default configuration in the libtool script
 
7329
tagname=
 
7330
lt_save_CC="$CC"
 
7331
ac_ext=c
 
7332
ac_cpp='$CPP $CPPFLAGS'
 
7333
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7334
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7335
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7336
 
 
7337
 
 
7338
# Source file extension for C test sources.
 
7339
ac_ext=c
 
7340
 
 
7341
# Object file extension for compiled C test sources.
 
7342
objext=o
 
7343
objext=$objext
 
7344
 
 
7345
# Code to be used in simple compile tests
 
7346
lt_simple_compile_test_code="int some_variable = 0;\n"
 
7347
 
 
7348
# Code to be used in simple link tests
 
7349
lt_simple_link_test_code='int main(){return(0);}\n'
 
7350
 
 
7351
 
 
7352
# If no C compiler was specified, use CC.
 
7353
LTCC=${LTCC-"$CC"}
 
7354
 
 
7355
# Allow CC to be a program name with arguments.
 
7356
compiler=$CC
 
7357
 
 
7358
 
 
7359
#
3592
7360
# Check for any special shared library compilation flags.
3593
 
if test -n "$lt_cv_prog_cc_shlib"; then
3594
 
  echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
3595
 
  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
 
7361
#
 
7362
lt_prog_cc_shlib=
 
7363
if test "$GCC" = no; then
 
7364
  case $host_os in
 
7365
  sco3.2v5*)
 
7366
    lt_prog_cc_shlib='-belf'
 
7367
    ;;
 
7368
  esac
 
7369
fi
 
7370
if test -n "$lt_prog_cc_shlib"; then
 
7371
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
7372
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
7373
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
3596
7374
  else
3597
 
   echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
 
7375
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
7376
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
3598
7377
    lt_cv_prog_cc_can_build_shared=no
3599
7378
  fi
3600
7379
fi
3601
7380
 
3602
 
echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
3603
 
echo "configure:3604: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
3604
 
if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
3605
 
  echo $ac_n "(cached) $ac_c" 1>&6
3606
 
else
3607
 
    lt_cv_prog_cc_static_works=no
3608
 
  save_LDFLAGS="$LDFLAGS"
3609
 
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
3610
 
  cat > conftest.$ac_ext <<EOF
3611
 
#line 3612 "configure"
3612
 
#include "confdefs.h"
3613
 
 
3614
 
int main() {
3615
 
 
3616
 
; return 0; }
3617
 
EOF
3618
 
if { (eval echo configure:3619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3619
 
  rm -rf conftest*
3620
 
  lt_cv_prog_cc_static_works=yes
3621
 
else
3622
 
  echo "configure: failed program was:" >&5
3623
 
  cat conftest.$ac_ext >&5
3624
 
fi
3625
 
rm -f conftest*
3626
 
  LDFLAGS="$save_LDFLAGS"
3627
 
 
3628
 
fi
3629
 
 
3630
 
 
3631
 
# Belt *and* braces to stop my trousers falling down:
3632
 
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
3633
 
echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
3634
 
 
3635
 
pic_flag="$lt_cv_prog_cc_pic"
3636
 
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
3637
 
wl="$lt_cv_prog_cc_wl"
3638
 
link_static_flag="$lt_cv_prog_cc_static"
3639
 
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
3640
 
can_build_shared="$lt_cv_prog_cc_can_build_shared"
3641
 
 
3642
 
 
3643
 
# Check to see if options -o and -c are simultaneously supported by compiler
3644
 
echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
3645
 
echo "configure:3646: checking if $compiler supports -c -o file.$ac_objext" >&5
3646
 
if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
3647
 
  echo $ac_n "(cached) $ac_c" 1>&6
3648
 
else
3649
 
  
3650
 
$rm -r conftest 2>/dev/null
3651
 
mkdir conftest
3652
 
cd conftest
3653
 
echo "int some_variable = 0;" > conftest.$ac_ext
3654
 
mkdir out
3655
 
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
3656
 
# that will create temporary files in the current directory regardless of
3657
 
# the output directory.  Thus, making CWD read-only will cause this test
3658
 
# to fail, enabling locking or at least warning the user not to do parallel
3659
 
# builds.
3660
 
chmod -w .
3661
 
save_CFLAGS="$CFLAGS"
3662
 
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
3663
 
compiler_c_o=no
3664
 
if { (eval echo configure:3665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
3665
 
  # The compiler can only warn and ignore the option if not recognized
3666
 
  # So say no if there are warnings
3667
 
  if test -s out/conftest.err; then
3668
 
    lt_cv_compiler_c_o=no
 
7381
 
 
7382
#
 
7383
# Check to make sure the static flag actually works.
 
7384
#
 
7385
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
7386
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
7387
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7388
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7389
else
 
7390
  lt_prog_compiler_static_works=no
 
7391
   save_LDFLAGS="$LDFLAGS"
 
7392
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
7393
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7394
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7395
     # The compiler can only warn and ignore the option if not recognized
 
7396
     # So say no if there are warnings
 
7397
     if test -s conftest.err; then
 
7398
       # Append any errors to the config.log.
 
7399
       cat conftest.err 1>&5
 
7400
     else
 
7401
       lt_prog_compiler_static_works=yes
 
7402
     fi
 
7403
   fi
 
7404
   $rm conftest*
 
7405
   LDFLAGS="$save_LDFLAGS"
 
7406
 
 
7407
fi
 
7408
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7409
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
7410
 
 
7411
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7412
    :
 
7413
else
 
7414
    lt_prog_compiler_static=
 
7415
fi
 
7416
 
 
7417
 
 
7418
 
 
7419
 
 
7420
lt_prog_compiler_no_builtin_flag=
 
7421
 
 
7422
if test "$GCC" = yes; then
 
7423
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7424
 
 
7425
 
 
7426
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7427
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
7428
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7429
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7430
else
 
7431
  lt_cv_prog_compiler_rtti_exceptions=no
 
7432
  ac_outfile=conftest.$ac_objext
 
7433
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7434
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7435
   # Insert the option either (1) after the last *FLAGS variable, or
 
7436
   # (2) before a word containing "conftest.", or (3) at the end.
 
7437
   # Note that $ac_compile itself does not contain backslashes and begins
 
7438
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7439
   # The option is referenced via a variable to avoid confusing sed.
 
7440
   lt_compile=`echo "$ac_compile" | $SED \
 
7441
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7442
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7443
   -e 's:$: $lt_compiler_flag:'`
 
7444
   (eval echo "\"\$as_me:7444: $lt_compile\"" >&5)
 
7445
   (eval "$lt_compile" 2>conftest.err)
 
7446
   ac_status=$?
 
7447
   cat conftest.err >&5
 
7448
   echo "$as_me:7448: \$? = $ac_status" >&5
 
7449
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7450
     # The compiler can only warn and ignore the option if not recognized
 
7451
     # So say no if there are warnings
 
7452
     if test ! -s conftest.err; then
 
7453
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7454
     fi
 
7455
   fi
 
7456
   $rm conftest*
 
7457
 
 
7458
fi
 
7459
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7460
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
7461
 
 
7462
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7463
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7464
else
 
7465
    :
 
7466
fi
 
7467
 
 
7468
fi
 
7469
 
 
7470
lt_prog_compiler_wl=
 
7471
lt_prog_compiler_pic=
 
7472
lt_prog_compiler_static=
 
7473
 
 
7474
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7475
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
7476
 
 
7477
  if test "$GCC" = yes; then
 
7478
    lt_prog_compiler_wl='-Wl,'
 
7479
    lt_prog_compiler_static='-static'
 
7480
 
 
7481
    case $host_os in
 
7482
      aix*)
 
7483
      # All AIX code is PIC.
 
7484
      if test "$host_cpu" = ia64; then
 
7485
        # AIX 5 now supports IA64 processor
 
7486
        lt_prog_compiler_static='-Bstatic'
 
7487
      fi
 
7488
      ;;
 
7489
 
 
7490
    amigaos*)
 
7491
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7492
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7493
      # like `-m68040'.
 
7494
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7495
      ;;
 
7496
 
 
7497
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7498
      # PIC is the default for these OSes.
 
7499
      ;;
 
7500
 
 
7501
    mingw* | pw32* | os2*)
 
7502
      # This hack is so that the source file can tell whether it is being
 
7503
      # built for inclusion in a dll (and should export symbols for example).
 
7504
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7505
      ;;
 
7506
 
 
7507
    darwin* | rhapsody*)
 
7508
      # PIC is the default on this platform
 
7509
      # Common symbols not allowed in MH_DYLIB files
 
7510
      lt_prog_compiler_pic='-fno-common'
 
7511
      ;;
 
7512
 
 
7513
    msdosdjgpp*)
 
7514
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7515
      # on systems that don't support them.
 
7516
      lt_prog_compiler_can_build_shared=no
 
7517
      enable_shared=no
 
7518
      ;;
 
7519
 
 
7520
    sysv4*MP*)
 
7521
      if test -d /usr/nec; then
 
7522
        lt_prog_compiler_pic=-Kconform_pic
 
7523
      fi
 
7524
      ;;
 
7525
 
 
7526
    hpux*)
 
7527
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7528
      # not for PA HP-UX.
 
7529
      case "$host_cpu" in
 
7530
      hppa*64*|ia64*)
 
7531
        # +Z the default
 
7532
        ;;
 
7533
      *)
 
7534
        lt_prog_compiler_pic='-fPIC'
 
7535
        ;;
 
7536
      esac
 
7537
      ;;
 
7538
 
 
7539
    *)
 
7540
      lt_prog_compiler_pic='-fPIC'
 
7541
      ;;
 
7542
    esac
3669
7543
  else
3670
 
    lt_cv_compiler_c_o=yes
 
7544
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7545
    case $host_os in
 
7546
    aix*)
 
7547
      lt_prog_compiler_wl='-Wl,'
 
7548
      if test "$host_cpu" = ia64; then
 
7549
        # AIX 5 now supports IA64 processor
 
7550
        lt_prog_compiler_static='-Bstatic'
 
7551
      else
 
7552
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7553
      fi
 
7554
      ;;
 
7555
 
 
7556
    mingw* | pw32* | os2*)
 
7557
      # This hack is so that the source file can tell whether it is being
 
7558
      # built for inclusion in a dll (and should export symbols for example).
 
7559
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7560
      ;;
 
7561
 
 
7562
    hpux9* | hpux10* | hpux11*)
 
7563
      lt_prog_compiler_wl='-Wl,'
 
7564
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7565
      # not for PA HP-UX.
 
7566
      case "$host_cpu" in
 
7567
      hppa*64*|ia64*)
 
7568
        # +Z the default
 
7569
        ;;
 
7570
      *)
 
7571
        lt_prog_compiler_pic='+Z'
 
7572
        ;;
 
7573
      esac
 
7574
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7575
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7576
      ;;
 
7577
 
 
7578
    irix5* | irix6* | nonstopux*)
 
7579
      lt_prog_compiler_wl='-Wl,'
 
7580
      # PIC (with -KPIC) is the default.
 
7581
      lt_prog_compiler_static='-non_shared'
 
7582
      ;;
 
7583
 
 
7584
    newsos6)
 
7585
      lt_prog_compiler_pic='-KPIC'
 
7586
      lt_prog_compiler_static='-Bstatic'
 
7587
      ;;
 
7588
 
 
7589
    linux*)
 
7590
      case $CC in
 
7591
      icc* | ecc*)
 
7592
        lt_prog_compiler_wl='-Wl,'
 
7593
        lt_prog_compiler_pic='-KPIC'
 
7594
        lt_prog_compiler_static='-static'
 
7595
        ;;
 
7596
      ccc*)
 
7597
        lt_prog_compiler_wl='-Wl,'
 
7598
        # All Alpha code is PIC.
 
7599
        lt_prog_compiler_static='-non_shared'
 
7600
        ;;
 
7601
      esac
 
7602
      ;;
 
7603
 
 
7604
    osf3* | osf4* | osf5*)
 
7605
      lt_prog_compiler_wl='-Wl,'
 
7606
      # All OSF/1 code is PIC.
 
7607
      lt_prog_compiler_static='-non_shared'
 
7608
      ;;
 
7609
 
 
7610
    sco3.2v5*)
 
7611
      lt_prog_compiler_pic='-Kpic'
 
7612
      lt_prog_compiler_static='-dn'
 
7613
      ;;
 
7614
 
 
7615
    solaris*)
 
7616
      lt_prog_compiler_wl='-Wl,'
 
7617
      lt_prog_compiler_pic='-KPIC'
 
7618
      lt_prog_compiler_static='-Bstatic'
 
7619
      ;;
 
7620
 
 
7621
    sunos4*)
 
7622
      lt_prog_compiler_wl='-Qoption ld '
 
7623
      lt_prog_compiler_pic='-PIC'
 
7624
      lt_prog_compiler_static='-Bstatic'
 
7625
      ;;
 
7626
 
 
7627
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7628
      lt_prog_compiler_wl='-Wl,'
 
7629
      lt_prog_compiler_pic='-KPIC'
 
7630
      lt_prog_compiler_static='-Bstatic'
 
7631
      ;;
 
7632
 
 
7633
    sysv4*MP*)
 
7634
      if test -d /usr/nec ;then
 
7635
        lt_prog_compiler_pic='-Kconform_pic'
 
7636
        lt_prog_compiler_static='-Bstatic'
 
7637
      fi
 
7638
      ;;
 
7639
 
 
7640
    uts4*)
 
7641
      lt_prog_compiler_pic='-pic'
 
7642
      lt_prog_compiler_static='-Bstatic'
 
7643
      ;;
 
7644
 
 
7645
    *)
 
7646
      lt_prog_compiler_can_build_shared=no
 
7647
      ;;
 
7648
    esac
3671
7649
  fi
3672
 
else
3673
 
  # Append any errors to the config.log.
3674
 
  cat out/conftest.err 1>&5
3675
 
  lt_cv_compiler_c_o=no
3676
 
fi
3677
 
CFLAGS="$save_CFLAGS"
3678
 
chmod u+w .
3679
 
$rm conftest* out/*
3680
 
rmdir out
3681
 
cd ..
3682
 
rmdir conftest
3683
 
$rm -r conftest 2>/dev/null
3684
 
 
3685
 
fi
3686
 
 
3687
 
compiler_c_o=$lt_cv_compiler_c_o
3688
 
echo "$ac_t""$compiler_c_o" 1>&6
3689
 
 
3690
 
if test x"$compiler_c_o" = x"yes"; then
3691
 
  # Check to see if we can write to a .lo
3692
 
  echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
3693
 
echo "configure:3694: checking if $compiler supports -c -o file.lo" >&5
3694
 
  if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
3695
 
  echo $ac_n "(cached) $ac_c" 1>&6
3696
 
else
3697
 
  
3698
 
  lt_cv_compiler_o_lo=no
3699
 
  save_CFLAGS="$CFLAGS"
3700
 
  CFLAGS="$CFLAGS -c -o conftest.lo"
3701
 
  save_objext="$ac_objext"
3702
 
  ac_objext=lo
3703
 
  cat > conftest.$ac_ext <<EOF
3704
 
#line 3705 "configure"
3705
 
#include "confdefs.h"
3706
 
 
3707
 
int main() {
3708
 
int some_variable = 0;
3709
 
; return 0; }
3710
 
EOF
3711
 
if { (eval echo configure:3712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3712
 
  rm -rf conftest*
3713
 
      # The compiler can only warn and ignore the option if not recognized
3714
 
    # So say no if there are warnings
3715
 
    if test -s conftest.err; then
3716
 
      lt_cv_compiler_o_lo=no
3717
 
    else
3718
 
      lt_cv_compiler_o_lo=yes
3719
 
    fi
3720
 
  
3721
 
else
3722
 
  echo "configure: failed program was:" >&5
3723
 
  cat conftest.$ac_ext >&5
3724
 
fi
3725
 
rm -f conftest*
3726
 
  ac_objext="$save_objext"
3727
 
  CFLAGS="$save_CFLAGS"
3728
 
  
3729
 
fi
3730
 
 
3731
 
  compiler_o_lo=$lt_cv_compiler_o_lo
3732
 
  echo "$ac_t""$compiler_o_lo" 1>&6
3733
 
else
3734
 
  compiler_o_lo=no
3735
 
fi
3736
 
 
3737
 
# Check to see if we can do hard links to lock some files if needed
 
7650
 
 
7651
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7652
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
7653
 
 
7654
#
 
7655
# Check to make sure the PIC flag actually works.
 
7656
#
 
7657
if test -n "$lt_prog_compiler_pic"; then
 
7658
 
 
7659
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7660
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
7661
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
7662
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7663
else
 
7664
  lt_prog_compiler_pic_works=no
 
7665
  ac_outfile=conftest.$ac_objext
 
7666
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7667
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7668
   # Insert the option either (1) after the last *FLAGS variable, or
 
7669
   # (2) before a word containing "conftest.", or (3) at the end.
 
7670
   # Note that $ac_compile itself does not contain backslashes and begins
 
7671
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7672
   # The option is referenced via a variable to avoid confusing sed.
 
7673
   lt_compile=`echo "$ac_compile" | $SED \
 
7674
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7675
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7676
   -e 's:$: $lt_compiler_flag:'`
 
7677
   (eval echo "\"\$as_me:7677: $lt_compile\"" >&5)
 
7678
   (eval "$lt_compile" 2>conftest.err)
 
7679
   ac_status=$?
 
7680
   cat conftest.err >&5
 
7681
   echo "$as_me:7681: \$? = $ac_status" >&5
 
7682
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7683
     # The compiler can only warn and ignore the option if not recognized
 
7684
     # So say no if there are warnings
 
7685
     if test ! -s conftest.err; then
 
7686
       lt_prog_compiler_pic_works=yes
 
7687
     fi
 
7688
   fi
 
7689
   $rm conftest*
 
7690
 
 
7691
fi
 
7692
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
7693
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
7694
 
 
7695
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
7696
    case $lt_prog_compiler_pic in
 
7697
     "" | " "*) ;;
 
7698
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7699
     esac
 
7700
else
 
7701
    lt_prog_compiler_pic=
 
7702
     lt_prog_compiler_can_build_shared=no
 
7703
fi
 
7704
 
 
7705
fi
 
7706
case "$host_os" in
 
7707
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7708
  *djgpp*)
 
7709
    lt_prog_compiler_pic=
 
7710
    ;;
 
7711
  *)
 
7712
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7713
    ;;
 
7714
esac
 
7715
 
 
7716
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7717
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
7718
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7719
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7720
else
 
7721
  lt_cv_prog_compiler_c_o=no
 
7722
   $rm -r conftest 2>/dev/null
 
7723
   mkdir conftest
 
7724
   cd conftest
 
7725
   mkdir out
 
7726
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7727
 
 
7728
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7729
   # Insert the option either (1) after the last *FLAGS variable, or
 
7730
   # (2) before a word containing "conftest.", or (3) at the end.
 
7731
   # Note that $ac_compile itself does not contain backslashes and begins
 
7732
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7733
   lt_compile=`echo "$ac_compile" | $SED \
 
7734
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7735
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7736
   -e 's:$: $lt_compiler_flag:'`
 
7737
   (eval echo "\"\$as_me:7737: $lt_compile\"" >&5)
 
7738
   (eval "$lt_compile" 2>out/conftest.err)
 
7739
   ac_status=$?
 
7740
   cat out/conftest.err >&5
 
7741
   echo "$as_me:7741: \$? = $ac_status" >&5
 
7742
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7743
   then
 
7744
     # The compiler can only warn and ignore the option if not recognized
 
7745
     # So say no if there are warnings
 
7746
     if test ! -s out/conftest.err; then
 
7747
       lt_cv_prog_compiler_c_o=yes
 
7748
     fi
 
7749
   fi
 
7750
   chmod u+w .
 
7751
   $rm conftest*
 
7752
   # SGI C++ compiler will create directory out/ii_files/ for
 
7753
   # template instantiation
 
7754
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
7755
   $rm out/* && rmdir out
 
7756
   cd ..
 
7757
   rmdir conftest
 
7758
   $rm conftest*
 
7759
 
 
7760
fi
 
7761
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7762
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
7763
 
 
7764
 
3738
7765
hard_links="nottested"
3739
 
if test "$compiler_c_o" = no && test "$need_locks" != no; then
 
7766
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
3740
7767
  # do not overwrite the value of need_locks provided by the user
3741
 
  echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3742
 
echo "configure:3743: checking if we can lock with hard links" >&5
 
7768
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7769
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
3743
7770
  hard_links=yes
3744
7771
  $rm conftest*
3745
7772
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
3746
7773
  touch conftest.a
3747
7774
  ln conftest.a conftest.b 2>&5 || hard_links=no
3748
7775
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
3749
 
  echo "$ac_t""$hard_links" 1>&6
 
7776
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
7777
echo "${ECHO_T}$hard_links" >&6
3750
7778
  if test "$hard_links" = no; then
3751
 
    echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
 
7779
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
7780
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
3752
7781
    need_locks=warn
3753
7782
  fi
3754
7783
else
3755
7784
  need_locks=no
3756
7785
fi
3757
7786
 
3758
 
if test "$GCC" = yes; then
3759
 
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3760
 
  echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3761
 
echo "configure:3762: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3762
 
  echo "int some_variable = 0;" > conftest.$ac_ext
3763
 
  save_CFLAGS="$CFLAGS"
3764
 
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3765
 
  compiler_rtti_exceptions=no
3766
 
  cat > conftest.$ac_ext <<EOF
3767
 
#line 3768 "configure"
3768
 
#include "confdefs.h"
3769
 
 
3770
 
int main() {
3771
 
int some_variable = 0;
3772
 
; return 0; }
3773
 
EOF
3774
 
if { (eval echo configure:3775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3775
 
  rm -rf conftest*
3776
 
      # The compiler can only warn and ignore the option if not recognized
3777
 
    # So say no if there are warnings
3778
 
    if test -s conftest.err; then
3779
 
      compiler_rtti_exceptions=no
3780
 
    else
3781
 
      compiler_rtti_exceptions=yes
 
7787
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7788
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
7789
 
 
7790
  runpath_var=
 
7791
  allow_undefined_flag=
 
7792
  enable_shared_with_static_runtimes=no
 
7793
  archive_cmds=
 
7794
  archive_expsym_cmds=
 
7795
  old_archive_From_new_cmds=
 
7796
  old_archive_from_expsyms_cmds=
 
7797
  export_dynamic_flag_spec=
 
7798
  whole_archive_flag_spec=
 
7799
  thread_safe_flag_spec=
 
7800
  hardcode_libdir_flag_spec=
 
7801
  hardcode_libdir_flag_spec_ld=
 
7802
  hardcode_libdir_separator=
 
7803
  hardcode_direct=no
 
7804
  hardcode_minus_L=no
 
7805
  hardcode_shlibpath_var=unsupported
 
7806
  link_all_deplibs=unknown
 
7807
  hardcode_automatic=no
 
7808
  module_cmds=
 
7809
  module_expsym_cmds=
 
7810
  always_export_symbols=no
 
7811
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7812
  # include_expsyms should be a list of space-separated symbols to be *always*
 
7813
  # included in the symbol list
 
7814
  include_expsyms=
 
7815
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
7816
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
7817
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
7818
  # as well as any symbol that contains `d'.
 
7819
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
7820
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
7821
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
7822
  # the symbol is explicitly referenced.  Since portable code cannot
 
7823
  # rely on this symbol name, it's probably fine to never include it in
 
7824
  # preloaded symbol tables.
 
7825
  extract_expsyms_cmds=
 
7826
 
 
7827
  case $host_os in
 
7828
  cygwin* | mingw* | pw32*)
 
7829
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
7830
    # When not using gcc, we currently assume that we are using
 
7831
    # Microsoft Visual C++.
 
7832
    if test "$GCC" != yes; then
 
7833
      with_gnu_ld=no
3782
7834
    fi
3783
 
  
3784
 
else
3785
 
  echo "configure: failed program was:" >&5
3786
 
  cat conftest.$ac_ext >&5
3787
 
fi
3788
 
rm -f conftest*
3789
 
  CFLAGS="$save_CFLAGS"
3790
 
  echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3791
 
 
3792
 
  if test "$compiler_rtti_exceptions" = "yes"; then
3793
 
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3794
 
  else
3795
 
    no_builtin_flag=' -fno-builtin'
3796
 
  fi
3797
 
fi
3798
 
 
3799
 
# See if the linker supports building shared libraries.
3800
 
echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3801
 
echo "configure:3802: checking whether the linker ($LD) supports shared libraries" >&5
3802
 
 
3803
 
allow_undefined_flag=
3804
 
no_undefined_flag=
3805
 
need_lib_prefix=unknown
3806
 
need_version=unknown
3807
 
# when you set need_version to no, make sure it does not cause -set_version
3808
 
# flags to be left without arguments
3809
 
archive_cmds=
3810
 
archive_expsym_cmds=
3811
 
old_archive_from_new_cmds=
3812
 
old_archive_from_expsyms_cmds=
3813
 
export_dynamic_flag_spec=
3814
 
whole_archive_flag_spec=
3815
 
thread_safe_flag_spec=
3816
 
hardcode_into_libs=no
3817
 
hardcode_libdir_flag_spec=
3818
 
hardcode_libdir_separator=
3819
 
hardcode_direct=no
3820
 
hardcode_minus_L=no
3821
 
hardcode_shlibpath_var=unsupported
3822
 
runpath_var=
3823
 
link_all_deplibs=unknown
3824
 
always_export_symbols=no
3825
 
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3826
 
# include_expsyms should be a list of space-separated symbols to be *always*
3827
 
# included in the symbol list
3828
 
include_expsyms=
3829
 
# exclude_expsyms can be an egrep regular expression of symbols to exclude
3830
 
# it will be wrapped by ` (' and `)$', so one must not match beginning or
3831
 
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3832
 
# as well as any symbol that contains `d'.
3833
 
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3834
 
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3835
 
# platforms (ab)use it in PIC code, but their linkers get confused if
3836
 
# the symbol is explicitly referenced.  Since portable code cannot
3837
 
# rely on this symbol name, it's probably fine to never include it in
3838
 
# preloaded symbol tables.
3839
 
extract_expsyms_cmds=
3840
 
 
3841
 
case $host_os in
3842
 
cygwin* | mingw* | pw32*)
3843
 
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
3844
 
  # When not using gcc, we currently assume that we are using
3845
 
  # Microsoft Visual C++.
3846
 
  if test "$GCC" != yes; then
 
7835
    ;;
 
7836
  openbsd*)
3847
7837
    with_gnu_ld=no
3848
 
  fi
3849
 
  ;;
3850
 
openbsd*)
3851
 
  with_gnu_ld=no
3852
 
  ;;
3853
 
esac
3854
 
 
3855
 
ld_shlibs=yes
3856
 
if test "$with_gnu_ld" = yes; then
3857
 
  # If archive_cmds runs LD, not CC, wlarc should be empty
3858
 
  wlarc='${wl}'
3859
 
 
3860
 
  # See if GNU ld supports shared libraries.
3861
 
  case $host_os in
3862
 
  aix3* | aix4* | aix5*)
3863
 
    # On AIX, the GNU linker is very broken
3864
 
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3865
 
    ld_shlibs=no
3866
 
    cat <<EOF 1>&2
 
7838
    ;;
 
7839
  esac
 
7840
 
 
7841
  ld_shlibs=yes
 
7842
  if test "$with_gnu_ld" = yes; then
 
7843
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
7844
    wlarc='${wl}'
 
7845
 
 
7846
    # See if GNU ld supports shared libraries.
 
7847
    case $host_os in
 
7848
    aix3* | aix4* | aix5*)
 
7849
      # On AIX/PPC, the GNU linker is very broken
 
7850
      if test "$host_cpu" != ia64; then
 
7851
        ld_shlibs=no
 
7852
        cat <<EOF 1>&2
3867
7853
 
3868
7854
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
3869
7855
*** to be unable to reliably create shared libraries on AIX.
3872
7858
*** so that a non-GNU linker is found, and then restart.
3873
7859
 
3874
7860
EOF
3875
 
    ;;
3876
 
 
3877
 
  amigaos*)
3878
 
    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)'
3879
 
    hardcode_libdir_flag_spec='-L$libdir'
3880
 
    hardcode_minus_L=yes
3881
 
 
3882
 
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3883
 
    # that the semantics of dynamic libraries on AmigaOS, at least up
3884
 
    # to version 4, is to share data among multiple programs linked
3885
 
    # with the same dynamic library.  Since this doesn't match the
3886
 
    # behavior of shared libraries on other platforms, we can use
3887
 
    # them.
3888
 
    ld_shlibs=no
3889
 
    ;;
3890
 
 
3891
 
  beos*)
3892
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
7861
      fi
 
7862
      ;;
 
7863
 
 
7864
    amigaos*)
 
7865
      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)'
 
7866
      hardcode_libdir_flag_spec='-L$libdir'
 
7867
      hardcode_minus_L=yes
 
7868
 
 
7869
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7870
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7871
      # to version 4, is to share data among multiple programs linked
 
7872
      # with the same dynamic library.  Since this doesn't match the
 
7873
      # behavior of shared libraries on other platforms, we can't use
 
7874
      # them.
 
7875
      ld_shlibs=no
 
7876
      ;;
 
7877
 
 
7878
    beos*)
 
7879
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7880
        allow_undefined_flag=unsupported
 
7881
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
7882
        # support --undefined.  This deserves some investigation.  FIXME
 
7883
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7884
      else
 
7885
        ld_shlibs=no
 
7886
      fi
 
7887
      ;;
 
7888
 
 
7889
    cygwin* | mingw* | pw32*)
 
7890
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7891
      # as there is no search path for DLLs.
 
7892
      hardcode_libdir_flag_spec='-L$libdir'
3893
7893
      allow_undefined_flag=unsupported
3894
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3895
 
      # support --undefined.  This deserves some investigation.  FIXME
3896
 
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3897
 
    else
3898
 
      ld_shlibs=no
3899
 
    fi
3900
 
    ;;
3901
 
 
3902
 
  cygwin* | mingw* | pw32*)
3903
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
3904
 
    # no search path for DLLs.
3905
 
    hardcode_libdir_flag_spec='-L$libdir'
3906
 
    allow_undefined_flag=unsupported
3907
 
    always_export_symbols=yes
3908
 
 
3909
 
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3910
 
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3911
 
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3912
 
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3913
 
      else $CC -o impgen impgen.c ; fi)~
3914
 
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3915
 
 
3916
 
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3917
 
 
3918
 
    # cygwin and mingw dlls have different entry points and sets of symbols
3919
 
    # to exclude.
3920
 
    # FIXME: what about values for MSVC?
3921
 
    dll_entry=__cygwin_dll_entry@12
3922
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3923
 
    case $host_os in
3924
 
    mingw*)
3925
 
      # mingw values
3926
 
      dll_entry=_DllMainCRTStartup@12
3927
 
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3928
 
      ;;
3929
 
    esac
3930
 
 
3931
 
    # mingw and cygwin differ, and it's simplest to just exclude the union
3932
 
    # of the two symbol sets.
3933
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3934
 
 
3935
 
    # recent cygwin and mingw systems supply a stub DllMain which the user
3936
 
    # can override, but on older systems we have to supply one (in ltdll.c)
3937
 
    if test "x$lt_cv_need_dllmain" = "xyes"; then
3938
 
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3939
 
      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
3940
 
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3941
 
    else
3942
 
      ltdll_obj=
3943
 
      ltdll_cmds=
3944
 
    fi
3945
 
 
3946
 
    # Extract the symbol export list from an `--export-all' def file,
3947
 
    # then regenerate the def file from the symbol export list, so that
3948
 
    # the compiled dll only exports the symbol export list.
3949
 
    # Be careful not to strip the DATA tag left be newer dlltools.
3950
 
    export_symbols_cmds="$ltdll_cmds"'
3951
 
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3952
 
      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3953
 
 
3954
 
    # If the export-symbols file already is a .def file (1st line
3955
 
    # is EXPORTS), use it as is.
3956
 
    # If DATA tags from a recent dlltool are present, honour them!
3957
 
    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3958
 
        cp $export_symbols $output_objdir/$soname-def;
3959
 
      else
3960
 
        echo EXPORTS > $output_objdir/$soname-def;
3961
 
        _lt_hint=1;
3962
 
        cat $export_symbols | while read symbol; do
3963
 
         set dummy \$symbol;
3964
 
         case \$# in
3965
 
           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3966
 
           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3967
 
         esac;
3968
 
         _lt_hint=`expr 1 + \$_lt_hint`;
3969
 
        done;
3970
 
      fi~
3971
 
      '"$ltdll_cmds"'
3972
 
      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3973
 
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
3974
 
      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3975
 
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
3976
 
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3977
 
    ;;
3978
 
 
3979
 
  netbsd*)
3980
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3981
 
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3982
 
      wlarc=
3983
 
    else
3984
 
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3985
 
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3986
 
    fi
3987
 
    ;;
3988
 
 
3989
 
  solaris* | sysv5*)
3990
 
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3991
 
      ld_shlibs=no
3992
 
      cat <<EOF 1>&2
 
7894
      always_export_symbols=no
 
7895
      enable_shared_with_static_runtimes=yes
 
7896
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7897
 
 
7898
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
7899
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
7900
        # If the export-symbols file already is a .def file (1st line
 
7901
        # is EXPORTS), use it as is; otherwise, prepend...
 
7902
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7903
          cp $export_symbols $output_objdir/$soname.def;
 
7904
        else
 
7905
          echo EXPORTS > $output_objdir/$soname.def;
 
7906
          cat $export_symbols >> $output_objdir/$soname.def;
 
7907
        fi~
 
7908
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
7909
      else
 
7910
        ld_shlibs=no
 
7911
      fi
 
7912
      ;;
 
7913
 
 
7914
    netbsd* | knetbsd*-gnu)
 
7915
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7916
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7917
        wlarc=
 
7918
      else
 
7919
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7920
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7921
      fi
 
7922
      ;;
 
7923
 
 
7924
    solaris* | sysv5*)
 
7925
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7926
        ld_shlibs=no
 
7927
        cat <<EOF 1>&2
3993
7928
 
3994
7929
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
3995
7930
*** create shared libraries on Solaris systems.  Therefore, libtool
3999
7934
*** used, and then restart.
4000
7935
 
4001
7936
EOF
4002
 
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4003
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4004
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4005
 
    else
4006
 
      ld_shlibs=no
4007
 
    fi
4008
 
    ;;
4009
 
 
4010
 
  sunos4*)
4011
 
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4012
 
    wlarc=
4013
 
    hardcode_direct=yes
4014
 
    hardcode_shlibpath_var=no
4015
 
    ;;
4016
 
 
4017
 
  *)
4018
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4019
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4020
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4021
 
    else
4022
 
      ld_shlibs=no
4023
 
    fi
4024
 
    ;;
4025
 
  esac
4026
 
 
4027
 
  if test "$ld_shlibs" = yes; then
4028
 
    runpath_var=LD_RUN_PATH
4029
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4030
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
4031
 
    case $host_os in
4032
 
    cygwin* | mingw* | pw32*)
4033
 
      # dlltool doesn't understand --whole-archive et. al.
4034
 
      whole_archive_flag_spec=
4035
 
      ;;
 
7937
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7938
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7939
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7940
      else
 
7941
        ld_shlibs=no
 
7942
      fi
 
7943
      ;;
 
7944
 
 
7945
    sunos4*)
 
7946
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7947
      wlarc=
 
7948
      hardcode_direct=yes
 
7949
      hardcode_shlibpath_var=no
 
7950
      ;;
 
7951
 
 
7952
  linux*)
 
7953
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7954
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7955
        archive_cmds="$tmp_archive_cmds"
 
7956
      supports_anon_versioning=no
 
7957
      case `$LD -v 2>/dev/null` in
 
7958
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7959
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7960
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7961
        *\ 2.11.*) ;; # other 2.11 versions
 
7962
        *) supports_anon_versioning=yes ;;
 
7963
      esac
 
7964
      if test $supports_anon_versioning = yes; then
 
7965
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7966
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7967
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
7968
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7969
      else
 
7970
        archive_expsym_cmds="$tmp_archive_cmds"
 
7971
      fi
 
7972
      link_all_deplibs=no
 
7973
    else
 
7974
      ld_shlibs=no
 
7975
    fi
 
7976
    ;;
 
7977
 
4036
7978
    *)
 
7979
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7980
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7981
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7982
      else
 
7983
        ld_shlibs=no
 
7984
      fi
 
7985
      ;;
 
7986
    esac
 
7987
 
 
7988
    if test "$ld_shlibs" = yes; then
 
7989
      runpath_var=LD_RUN_PATH
 
7990
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7991
      export_dynamic_flag_spec='${wl}--export-dynamic'
4037
7992
      # ancient GNU ld didn't support --whole-archive et. al.
4038
 
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4039
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7993
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7994
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4040
7995
      else
4041
 
        whole_archive_flag_spec=
 
7996
        whole_archive_flag_spec=
 
7997
      fi
 
7998
    fi
 
7999
  else
 
8000
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8001
    case $host_os in
 
8002
    aix3*)
 
8003
      allow_undefined_flag=unsupported
 
8004
      always_export_symbols=yes
 
8005
      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'
 
8006
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8007
      # are no directories specified by -L.
 
8008
      hardcode_minus_L=yes
 
8009
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
8010
        # Neither direct hardcoding nor static linking is supported with a
 
8011
        # broken collect2.
 
8012
        hardcode_direct=unsupported
4042
8013
      fi
4043
8014
      ;;
4044
 
    esac
4045
 
  fi
4046
 
else
4047
 
  # PORTME fill in a description of your system's linker (not GNU ld)
4048
 
  case $host_os in
4049
 
  aix3*)
4050
 
    allow_undefined_flag=unsupported
4051
 
    always_export_symbols=yes
4052
 
    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'
4053
 
    # Note: this linker hardcodes the directories in LIBPATH if there
4054
 
    # are no directories specified by -L.
4055
 
    hardcode_minus_L=yes
4056
 
    if test "$GCC" = yes && test -z "$link_static_flag"; then
4057
 
      # Neither direct hardcoding nor static linking is supported with a
4058
 
      # broken collect2.
4059
 
      hardcode_direct=unsupported
4060
 
    fi
4061
 
    ;;
4062
 
 
4063
 
  aix4* | aix5*)
4064
 
    if test "$host_cpu" = ia64; then
4065
 
      # On IA64, the linker does run time linking by default, so we don't
4066
 
      # have to do anything special.
4067
 
      aix_use_runtimelinking=no
4068
 
      exp_sym_flag='-Bexport'
4069
 
      no_entry_flag=""
4070
 
    else
4071
 
      aix_use_runtimelinking=no
4072
 
 
4073
 
      # Test if we are trying to use run time linking or normal
4074
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4075
 
      # need to do runtime linking.
4076
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4077
 
        for ld_flag in $LDFLAGS; do
4078
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4079
 
            aix_use_runtimelinking=yes
4080
 
            break
 
8015
 
 
8016
    aix4* | aix5*)
 
8017
      if test "$host_cpu" = ia64; then
 
8018
        # On IA64, the linker does run time linking by default, so we don't
 
8019
        # have to do anything special.
 
8020
        aix_use_runtimelinking=no
 
8021
        exp_sym_flag='-Bexport'
 
8022
        no_entry_flag=""
 
8023
      else
 
8024
        # If we're using GNU nm, then we don't want the "-C" option.
 
8025
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8026
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8027
          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'
 
8028
        else
 
8029
          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'
 
8030
        fi
 
8031
        aix_use_runtimelinking=no
 
8032
 
 
8033
        # Test if we are trying to use run time linking or normal
 
8034
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8035
        # need to do runtime linking.
 
8036
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
8037
          for ld_flag in $LDFLAGS; do
 
8038
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8039
            aix_use_runtimelinking=yes
 
8040
            break
 
8041
          fi
 
8042
          done
 
8043
        esac
 
8044
 
 
8045
        exp_sym_flag='-bexport'
 
8046
        no_entry_flag='-bnoentry'
 
8047
      fi
 
8048
 
 
8049
      # When large executables or shared objects are built, AIX ld can
 
8050
      # have problems creating the table of contents.  If linking a library
 
8051
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8052
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8053
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8054
 
 
8055
      archive_cmds=''
 
8056
      hardcode_direct=yes
 
8057
      hardcode_libdir_separator=':'
 
8058
      link_all_deplibs=yes
 
8059
 
 
8060
      if test "$GCC" = yes; then
 
8061
        case $host_os in aix4.012|aix4.012.*)
 
8062
        # We only want to do this on AIX 4.2 and lower, the check
 
8063
        # below for broken collect2 doesn't work under 4.3+
 
8064
          collect2name=`${CC} -print-prog-name=collect2`
 
8065
          if test -f "$collect2name" && \
 
8066
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8067
          then
 
8068
          # We have reworked collect2
 
8069
          hardcode_direct=yes
 
8070
          else
 
8071
          # We have old collect2
 
8072
          hardcode_direct=unsupported
 
8073
          # It fails to find uninstalled libraries when the uninstalled
 
8074
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8075
          # to unsupported forces relinking
 
8076
          hardcode_minus_L=yes
 
8077
          hardcode_libdir_flag_spec='-L$libdir'
 
8078
          hardcode_libdir_separator=
4081
8079
          fi
4082
 
        done
 
8080
        esac
 
8081
        shared_flag='-shared'
 
8082
      else
 
8083
        # not using gcc
 
8084
        if test "$host_cpu" = ia64; then
 
8085
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8086
        # chokes on -Wl,-G. The following line is correct:
 
8087
          shared_flag='-G'
 
8088
        else
 
8089
        if test "$aix_use_runtimelinking" = yes; then
 
8090
            shared_flag='${wl}-G'
 
8091
          else
 
8092
            shared_flag='${wl}-bM:SRE'
 
8093
        fi
 
8094
        fi
 
8095
      fi
 
8096
 
 
8097
      # It seems that -bexpall does not export symbols beginning with
 
8098
      # underscore (_), so it is better to generate a list of symbols to export.
 
8099
      always_export_symbols=yes
 
8100
      if test "$aix_use_runtimelinking" = yes; then
 
8101
        # Warning - without using the other runtime loading flags (-brtl),
 
8102
        # -berok will link without error, but may produce a broken library.
 
8103
        allow_undefined_flag='-berok'
 
8104
       # Determine the default libpath from the value encoded in an empty executable.
 
8105
       cat >conftest.$ac_ext <<_ACEOF
 
8106
/* confdefs.h.  */
 
8107
_ACEOF
 
8108
cat confdefs.h >>conftest.$ac_ext
 
8109
cat >>conftest.$ac_ext <<_ACEOF
 
8110
/* end confdefs.h.  */
 
8111
 
 
8112
int
 
8113
main ()
 
8114
{
 
8115
 
 
8116
  ;
 
8117
  return 0;
 
8118
}
 
8119
_ACEOF
 
8120
rm -f conftest.$ac_objext conftest$ac_exeext
 
8121
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8122
  (eval $ac_link) 2>conftest.er1
 
8123
  ac_status=$?
 
8124
  grep -v '^ *+' conftest.er1 >conftest.err
 
8125
  rm -f conftest.er1
 
8126
  cat conftest.err >&5
 
8127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8128
  (exit $ac_status); } &&
 
8129
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8130
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8131
  (eval $ac_try) 2>&5
 
8132
  ac_status=$?
 
8133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8134
  (exit $ac_status); }; } &&
 
8135
         { ac_try='test -s conftest$ac_exeext'
 
8136
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8137
  (eval $ac_try) 2>&5
 
8138
  ac_status=$?
 
8139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8140
  (exit $ac_status); }; }; then
 
8141
 
 
8142
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8143
}'`
 
8144
# Check for a 64-bit object if we didn't find anything.
 
8145
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; }
 
8146
}'`; fi
 
8147
else
 
8148
  echo "$as_me: failed program was:" >&5
 
8149
sed 's/^/| /' conftest.$ac_ext >&5
 
8150
 
 
8151
fi
 
8152
rm -f conftest.err conftest.$ac_objext \
 
8153
      conftest$ac_exeext conftest.$ac_ext
 
8154
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8155
 
 
8156
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8157
        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"
 
8158
       else
 
8159
        if test "$host_cpu" = ia64; then
 
8160
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8161
          allow_undefined_flag="-z nodefs"
 
8162
          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"
 
8163
        else
 
8164
         # Determine the default libpath from the value encoded in an empty executable.
 
8165
         cat >conftest.$ac_ext <<_ACEOF
 
8166
/* confdefs.h.  */
 
8167
_ACEOF
 
8168
cat confdefs.h >>conftest.$ac_ext
 
8169
cat >>conftest.$ac_ext <<_ACEOF
 
8170
/* end confdefs.h.  */
 
8171
 
 
8172
int
 
8173
main ()
 
8174
{
 
8175
 
 
8176
  ;
 
8177
  return 0;
 
8178
}
 
8179
_ACEOF
 
8180
rm -f conftest.$ac_objext conftest$ac_exeext
 
8181
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8182
  (eval $ac_link) 2>conftest.er1
 
8183
  ac_status=$?
 
8184
  grep -v '^ *+' conftest.er1 >conftest.err
 
8185
  rm -f conftest.er1
 
8186
  cat conftest.err >&5
 
8187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8188
  (exit $ac_status); } &&
 
8189
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8190
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8191
  (eval $ac_try) 2>&5
 
8192
  ac_status=$?
 
8193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8194
  (exit $ac_status); }; } &&
 
8195
         { ac_try='test -s conftest$ac_exeext'
 
8196
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8197
  (eval $ac_try) 2>&5
 
8198
  ac_status=$?
 
8199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8200
  (exit $ac_status); }; }; then
 
8201
 
 
8202
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8203
}'`
 
8204
# Check for a 64-bit object if we didn't find anything.
 
8205
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; }
 
8206
}'`; fi
 
8207
else
 
8208
  echo "$as_me: failed program was:" >&5
 
8209
sed 's/^/| /' conftest.$ac_ext >&5
 
8210
 
 
8211
fi
 
8212
rm -f conftest.err conftest.$ac_objext \
 
8213
      conftest$ac_exeext conftest.$ac_ext
 
8214
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8215
 
 
8216
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8217
          # Warning - without using the other run time loading flags,
 
8218
          # -berok will link without error, but may produce a broken library.
 
8219
          no_undefined_flag=' ${wl}-bernotok'
 
8220
          allow_undefined_flag=' ${wl}-berok'
 
8221
          # -bexpall does not export symbols beginning with underscore (_)
 
8222
          always_export_symbols=yes
 
8223
          # Exported symbols can be pulled into shared objects from archives
 
8224
          whole_archive_flag_spec=' '
 
8225
          archive_cmds_need_lc=yes
 
8226
          # This is similar to how AIX traditionally builds it's shared libraries.
 
8227
          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'
 
8228
        fi
 
8229
      fi
 
8230
      ;;
 
8231
 
 
8232
    amigaos*)
 
8233
      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)'
 
8234
      hardcode_libdir_flag_spec='-L$libdir'
 
8235
      hardcode_minus_L=yes
 
8236
      # see comment about different semantics on the GNU ld section
 
8237
      ld_shlibs=no
 
8238
      ;;
 
8239
 
 
8240
    bsdi4*)
 
8241
      export_dynamic_flag_spec=-rdynamic
 
8242
      ;;
 
8243
 
 
8244
    cygwin* | mingw* | pw32*)
 
8245
      # When not using gcc, we currently assume that we are using
 
8246
      # Microsoft Visual C++.
 
8247
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8248
      # no search path for DLLs.
 
8249
      hardcode_libdir_flag_spec=' '
 
8250
      allow_undefined_flag=unsupported
 
8251
      # Tell ltmain to make .lib files, not .a files.
 
8252
      libext=lib
 
8253
      # Tell ltmain to make .dll files, not .so files.
 
8254
      shrext_cmds=".dll"
 
8255
      # FIXME: Setting linknames here is a bad hack.
 
8256
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8257
      # The linker will automatically build a .lib file if we build a DLL.
 
8258
      old_archive_From_new_cmds='true'
 
8259
      # FIXME: Should let the user specify the lib program.
 
8260
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
8261
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8262
      enable_shared_with_static_runtimes=yes
 
8263
      ;;
 
8264
 
 
8265
    darwin* | rhapsody*)
 
8266
    if test "$GXX" = yes ; then
 
8267
      archive_cmds_need_lc=no
 
8268
      case "$host_os" in
 
8269
      rhapsody* | darwin1.[012])
 
8270
        allow_undefined_flag='-undefined suppress'
 
8271
        ;;
 
8272
      *) # Darwin 1.3 on
 
8273
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8274
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
8275
      else
 
8276
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
8277
          10.[012])
 
8278
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
8279
            ;;
 
8280
          10.*)
 
8281
            allow_undefined_flag='-undefined dynamic_lookup'
 
8282
            ;;
 
8283
        esac
 
8284
      fi
 
8285
        ;;
4083
8286
      esac
4084
 
 
4085
 
      exp_sym_flag='-bexport'
4086
 
      no_entry_flag='-bnoentry'
 
8287
        lt_int_apple_cc_single_mod=no
 
8288
        output_verbose_link_cmd='echo'
 
8289
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
8290
          lt_int_apple_cc_single_mod=yes
 
8291
        fi
 
8292
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
8293
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
8294
        else
 
8295
        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'
 
8296
      fi
 
8297
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8298
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
8299
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
8300
          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}'
 
8301
        else
 
8302
          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}'
 
8303
        fi
 
8304
          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}'
 
8305
      hardcode_direct=no
 
8306
      hardcode_automatic=yes
 
8307
      hardcode_shlibpath_var=unsupported
 
8308
      whole_archive_flag_spec='-all_load $convenience'
 
8309
      link_all_deplibs=yes
 
8310
    else
 
8311
      ld_shlibs=no
4087
8312
    fi
4088
 
 
4089
 
    # When large executables or shared objects are built, AIX ld can
4090
 
    # have problems creating the table of contents.  If linking a library
4091
 
    # or program results in "error TOC overflow" add -mminimal-toc to
4092
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
4093
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4094
 
 
4095
 
    hardcode_direct=yes
4096
 
    archive_cmds=''
4097
 
    hardcode_libdir_separator=':'
4098
 
    if test "$GCC" = yes; then
4099
 
      case $host_os in aix4.[012]|aix4.[012].*)
4100
 
        collect2name=`${CC} -print-prog-name=collect2`
4101
 
        if test -f "$collect2name" && \
4102
 
          strings "$collect2name" | grep resolve_lib_name >/dev/null
4103
 
        then
4104
 
          # We have reworked collect2
 
8313
      ;;
 
8314
 
 
8315
    dgux*)
 
8316
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8317
      hardcode_libdir_flag_spec='-L$libdir'
 
8318
      hardcode_shlibpath_var=no
 
8319
      ;;
 
8320
 
 
8321
    freebsd1*)
 
8322
      ld_shlibs=no
 
8323
      ;;
 
8324
 
 
8325
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8326
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8327
    # does not break anything, and helps significantly (at the cost of a little
 
8328
    # extra space).
 
8329
    freebsd2.2*)
 
8330
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8331
      hardcode_libdir_flag_spec='-R$libdir'
 
8332
      hardcode_direct=yes
 
8333
      hardcode_shlibpath_var=no
 
8334
      ;;
 
8335
 
 
8336
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8337
    freebsd2*)
 
8338
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8339
      hardcode_direct=yes
 
8340
      hardcode_minus_L=yes
 
8341
      hardcode_shlibpath_var=no
 
8342
      ;;
 
8343
 
 
8344
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8345
    freebsd* | kfreebsd*-gnu)
 
8346
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8347
      hardcode_libdir_flag_spec='-R$libdir'
 
8348
      hardcode_direct=yes
 
8349
      hardcode_shlibpath_var=no
 
8350
      ;;
 
8351
 
 
8352
    hpux9*)
 
8353
      if test "$GCC" = yes; then
 
8354
        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'
 
8355
      else
 
8356
        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'
 
8357
      fi
 
8358
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8359
      hardcode_libdir_separator=:
 
8360
      hardcode_direct=yes
 
8361
 
 
8362
      # hardcode_minus_L: Not really in the search PATH,
 
8363
      # but as the default location of the library.
 
8364
      hardcode_minus_L=yes
 
8365
      export_dynamic_flag_spec='${wl}-E'
 
8366
      ;;
 
8367
 
 
8368
    hpux10* | hpux11*)
 
8369
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8370
        case "$host_cpu" in
 
8371
        hppa*64*|ia64*)
 
8372
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8373
          ;;
 
8374
        *)
 
8375
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8376
          ;;
 
8377
        esac
 
8378
      else
 
8379
        case "$host_cpu" in
 
8380
        hppa*64*|ia64*)
 
8381
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8382
          ;;
 
8383
        *)
 
8384
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8385
          ;;
 
8386
        esac
 
8387
      fi
 
8388
      if test "$with_gnu_ld" = no; then
 
8389
        case "$host_cpu" in
 
8390
        hppa*64*)
 
8391
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8392
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8393
          hardcode_libdir_separator=:
 
8394
          hardcode_direct=no
 
8395
          hardcode_shlibpath_var=no
 
8396
          ;;
 
8397
        ia64*)
 
8398
          hardcode_libdir_flag_spec='-L$libdir'
 
8399
          hardcode_direct=no
 
8400
          hardcode_shlibpath_var=no
 
8401
 
 
8402
          # hardcode_minus_L: Not really in the search PATH,
 
8403
          # but as the default location of the library.
 
8404
          hardcode_minus_L=yes
 
8405
          ;;
 
8406
        *)
 
8407
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8408
          hardcode_libdir_separator=:
4105
8409
          hardcode_direct=yes
4106
 
        else
4107
 
          # We have old collect2
4108
 
          hardcode_direct=unsupported
4109
 
          # It fails to find uninstalled libraries when the uninstalled
4110
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
4111
 
          # to unsupported forces relinking
 
8410
          export_dynamic_flag_spec='${wl}-E'
 
8411
 
 
8412
          # hardcode_minus_L: Not really in the search PATH,
 
8413
          # but as the default location of the library.
4112
8414
          hardcode_minus_L=yes
4113
 
          hardcode_libdir_flag_spec='-L$libdir'
4114
 
          hardcode_libdir_separator=
4115
 
        fi
4116
 
      esac
4117
 
 
4118
 
      shared_flag='-shared'
4119
 
    else
4120
 
      # not using gcc
4121
 
      if test "$host_cpu" = ia64; then
4122
 
        shared_flag='${wl}-G'
4123
 
      else
4124
 
        if test "$aix_use_runtimelinking" = yes; then
4125
 
          shared_flag='${wl}-G'
4126
 
        else
4127
 
          shared_flag='${wl}-bM:SRE'
4128
 
        fi
4129
 
      fi
4130
 
    fi
4131
 
 
4132
 
    # It seems that -bexpall can do strange things, so it is better to
4133
 
    # generate a list of symbols to export.
4134
 
    always_export_symbols=yes
4135
 
    if test "$aix_use_runtimelinking" = yes; then
4136
 
      # Warning - without using the other runtime loading flags (-brtl),
4137
 
      # -berok will link without error, but may produce a broken library.
4138
 
      allow_undefined_flag='-berok'
4139
 
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4140
 
      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"
4141
 
    else
4142
 
      if test "$host_cpu" = ia64; then
4143
 
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4144
 
        allow_undefined_flag="-z nodefs"
4145
 
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4146
 
      else
4147
 
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4148
 
        # Warning - without using the other run time loading flags,
4149
 
        # -berok will link without error, but may produce a broken library.
4150
 
        allow_undefined_flag='${wl}-berok'
4151
 
        # This is a bit strange, but is similar to how AIX traditionally builds
4152
 
        # it's shared libraries.
4153
 
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
4154
 
      fi
4155
 
    fi
4156
 
    ;;
4157
 
 
4158
 
  amigaos*)
4159
 
    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)'
4160
 
    hardcode_libdir_flag_spec='-L$libdir'
4161
 
    hardcode_minus_L=yes
4162
 
    # see comment about different semantics on the GNU ld section
4163
 
    ld_shlibs=no
4164
 
    ;;
4165
 
 
4166
 
  cygwin* | mingw* | pw32*)
4167
 
    # When not using gcc, we currently assume that we are using
4168
 
    # Microsoft Visual C++.
4169
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
4170
 
    # no search path for DLLs.
4171
 
    hardcode_libdir_flag_spec=' '
4172
 
    allow_undefined_flag=unsupported
4173
 
    # Tell ltmain to make .lib files, not .a files.
4174
 
    libext=lib
4175
 
    # FIXME: Setting linknames here is a bad hack.
4176
 
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4177
 
    # The linker will automatically build a .lib file if we build a DLL.
4178
 
    old_archive_from_new_cmds='true'
4179
 
    # FIXME: Should let the user specify the lib program.
4180
 
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4181
 
    fix_srcfile_path='`cygpath -w "$srcfile"`'
4182
 
    ;;
4183
 
 
4184
 
  darwin* | rhapsody*)
4185
 
    case "$host_os" in
4186
 
    rhapsody* | darwin1.[012])
4187
 
      allow_undefined_flag='-undefined suppress'
4188
 
      ;;
4189
 
    *) # Darwin 1.3 on
4190
 
      allow_undefined_flag='-flat_namespace -undefined suppress'
4191
 
      ;;
4192
 
    esac
4193
 
    # FIXME: Relying on posixy $() will cause problems for
4194
 
    #        cross-compilation, but unfortunately the echo tests do not
4195
 
    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
4196
 
    #        `"' quotes if we put them in here... so don't!
4197
 
    archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
4198
 
    # We need to add '_' to the symbols in $export_symbols first
4199
 
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4200
 
    hardcode_direct=yes
4201
 
    hardcode_shlibpath_var=no
4202
 
    whole_archive_flag_spec='-all_load $convenience'
4203
 
    ;;
4204
 
 
4205
 
  freebsd1*)
4206
 
    ld_shlibs=no
4207
 
    ;;
4208
 
 
4209
 
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4210
 
  # support.  Future versions do this automatically, but an explicit c++rt0.o
4211
 
  # does not break anything, and helps significantly (at the cost of a little
4212
 
  # extra space).
4213
 
  freebsd2.2*)
4214
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4215
 
    hardcode_libdir_flag_spec='-R$libdir'
4216
 
    hardcode_direct=yes
4217
 
    hardcode_shlibpath_var=no
4218
 
    ;;
4219
 
 
4220
 
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4221
 
  freebsd2*)
4222
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4223
 
    hardcode_direct=yes
4224
 
    hardcode_minus_L=yes
4225
 
    hardcode_shlibpath_var=no
4226
 
    ;;
4227
 
 
4228
 
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4229
 
  freebsd*)
4230
 
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4231
 
    hardcode_libdir_flag_spec='-R$libdir'
4232
 
    hardcode_direct=yes
4233
 
    hardcode_shlibpath_var=no
4234
 
    ;;
4235
 
 
4236
 
  hpux9* | hpux10* | hpux11*)
4237
 
    case $host_os in
4238
 
    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
4239
 
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4240
 
    esac
4241
 
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4242
 
    hardcode_libdir_separator=:
4243
 
    hardcode_direct=yes
4244
 
    hardcode_minus_L=yes # Not in the search PATH, but as the default
4245
 
                         # location of the library.
4246
 
    export_dynamic_flag_spec='${wl}-E'
4247
 
    ;;
4248
 
 
4249
 
  irix5* | irix6* | nonstopux*)
4250
 
    if test "$GCC" = yes; then
4251
 
      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'
4252
 
    else
4253
 
      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'
4254
 
    fi
4255
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4256
 
    hardcode_libdir_separator=:
4257
 
    link_all_deplibs=yes
4258
 
    ;;
4259
 
 
4260
 
  netbsd*)
4261
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4262
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
4263
 
    else
4264
 
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
4265
 
    fi
4266
 
    hardcode_libdir_flag_spec='-R$libdir'
4267
 
    hardcode_direct=yes
4268
 
    hardcode_shlibpath_var=no
4269
 
    ;;
4270
 
 
4271
 
  newsos6)
4272
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4273
 
    hardcode_direct=yes
4274
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4275
 
    hardcode_libdir_separator=:
4276
 
    hardcode_shlibpath_var=no
4277
 
    ;;
4278
 
 
4279
 
  openbsd*)
4280
 
    hardcode_direct=yes
4281
 
    hardcode_shlibpath_var=no
4282
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4283
 
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4284
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4285
 
      export_dynamic_flag_spec='${wl}-E'
4286
 
    else
4287
 
      case "$host_os" in
4288
 
      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
4289
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4290
 
        hardcode_libdir_flag_spec='-R$libdir'
4291
 
        ;;
4292
 
      *)
4293
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4294
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4295
 
        ;;
4296
 
      esac
4297
 
    fi
4298
 
    ;;
4299
 
 
4300
 
  os2*)
4301
 
    hardcode_libdir_flag_spec='-L$libdir'
4302
 
    hardcode_minus_L=yes
4303
 
    allow_undefined_flag=unsupported
4304
 
    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'
4305
 
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4306
 
    ;;
4307
 
 
4308
 
  osf3*)
4309
 
    if test "$GCC" = yes; then
4310
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4311
 
      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'
4312
 
    else
4313
 
      allow_undefined_flag=' -expect_unresolved \*'
4314
 
      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'
4315
 
    fi
4316
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4317
 
    hardcode_libdir_separator=:
4318
 
    ;;
4319
 
 
4320
 
  osf4* | osf5*)        # as osf3* with the addition of -msym flag
4321
 
    if test "$GCC" = yes; then
4322
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4323
 
      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'
4324
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4325
 
    else
4326
 
      allow_undefined_flag=' -expect_unresolved \*'
4327
 
      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'
4328
 
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4329
 
      $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'
4330
 
 
4331
 
      #Both c and cxx compiler support -rpath directly
4332
 
      hardcode_libdir_flag_spec='-rpath $libdir'
4333
 
    fi
4334
 
    hardcode_libdir_separator=:
4335
 
    ;;
4336
 
 
4337
 
  sco3.2v5*)
4338
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4339
 
    hardcode_shlibpath_var=no
4340
 
    runpath_var=LD_RUN_PATH
4341
 
    hardcode_runpath_var=yes
4342
 
    export_dynamic_flag_spec='${wl}-Bexport'
4343
 
    ;;
4344
 
 
4345
 
  solaris*)
4346
 
    # gcc --version < 3.0 without binutils cannot create self contained
4347
 
    # shared libraries reliably, requiring libgcc.a to resolve some of
4348
 
    # the object symbols generated in some cases.  Libraries that use
4349
 
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
4350
 
    # a copy of libgcc.a into every shared library to guarantee resolving
4351
 
    # such symbols causes other problems:  According to Tim Van Holder
4352
 
    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
4353
 
    # (to the application) exception stack for one thing.
4354
 
    no_undefined_flag=' -z defs'
4355
 
    if test "$GCC" = yes; then
4356
 
      case `$CC --version 2>/dev/null` in
4357
 
      [12].*)
4358
 
        cat <<EOF 1>&2
4359
 
 
4360
 
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
4361
 
*** create self contained shared libraries on Solaris systems, without
4362
 
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
4363
 
*** -no-undefined support, which will at least allow you to build shared
4364
 
*** libraries.  However, you may find that when you link such libraries
4365
 
*** into an application without using GCC, you have to manually add
4366
 
*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
4367
 
*** upgrade to a newer version of GCC.  Another option is to rebuild your
4368
 
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
4369
 
 
4370
 
EOF
4371
 
        no_undefined_flag=
4372
 
        ;;
4373
 
      esac
4374
 
    fi
4375
 
    # $CC -shared without GNU ld will not create a library from C++
4376
 
    # object files and a static libstdc++, better avoid it by now
4377
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4378
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4379
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4380
 
    hardcode_libdir_flag_spec='-R$libdir'
4381
 
    hardcode_shlibpath_var=no
4382
 
    case $host_os in
4383
 
    solaris2.[0-5] | solaris2.[0-5].*) ;;
4384
 
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4385
 
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4386
 
    esac
4387
 
    link_all_deplibs=yes
4388
 
    ;;
4389
 
 
4390
 
  sunos4*)
4391
 
    if test "x$host_vendor" = xsequent; then
4392
 
      # Use $CC to link under sequent, because it throws in some extra .o
4393
 
      # files that make .init and .fini sections work.
4394
 
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4395
 
    else
4396
 
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4397
 
    fi
4398
 
    hardcode_libdir_flag_spec='-L$libdir'
4399
 
    hardcode_direct=yes
4400
 
    hardcode_minus_L=yes
4401
 
    hardcode_shlibpath_var=no
4402
 
    ;;
4403
 
 
4404
 
  sysv4)
4405
 
    if test "x$host_vendor" = xsno; then
4406
 
      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
4407
 
      hardcode_direct=yes # is this really true???
4408
 
    else
4409
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4410
 
      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4411
 
    fi
4412
 
    runpath_var='LD_RUN_PATH'
4413
 
    hardcode_shlibpath_var=no
4414
 
    ;;
4415
 
 
4416
 
  sysv4.3*)
4417
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4418
 
    hardcode_shlibpath_var=no
4419
 
    export_dynamic_flag_spec='-Bexport'
4420
 
    ;;
4421
 
 
4422
 
  sysv5*)
4423
 
    no_undefined_flag=' -z text'
4424
 
    # $CC -shared without GNU ld will not create a library from C++
4425
 
    # object files and a static libstdc++, better avoid it by now
4426
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4427
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4428
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4429
 
    hardcode_libdir_flag_spec=
4430
 
    hardcode_shlibpath_var=no
4431
 
    runpath_var='LD_RUN_PATH'
4432
 
    ;;
4433
 
 
4434
 
  uts4*)
4435
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4436
 
    hardcode_libdir_flag_spec='-L$libdir'
4437
 
    hardcode_shlibpath_var=no
4438
 
    ;;
4439
 
 
4440
 
  dgux*)
4441
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4442
 
    hardcode_libdir_flag_spec='-L$libdir'
4443
 
    hardcode_shlibpath_var=no
4444
 
    ;;
4445
 
 
4446
 
  sysv4*MP*)
4447
 
    if test -d /usr/nec; then
4448
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4449
 
      hardcode_shlibpath_var=no
4450
 
      runpath_var=LD_RUN_PATH
4451
 
      hardcode_runpath_var=yes
4452
 
      ld_shlibs=yes
4453
 
    fi
4454
 
    ;;
4455
 
 
4456
 
  sysv4.2uw2*)
4457
 
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4458
 
    hardcode_direct=yes
4459
 
    hardcode_minus_L=no
4460
 
    hardcode_shlibpath_var=no
4461
 
    hardcode_runpath_var=yes
4462
 
    runpath_var=LD_RUN_PATH
4463
 
    ;;
4464
 
 
4465
 
  sysv5uw7* | unixware7*)
4466
 
    no_undefined_flag='${wl}-z ${wl}text'
4467
 
    if test "$GCC" = yes; then
4468
 
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4469
 
    else
4470
 
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4471
 
    fi
4472
 
    runpath_var='LD_RUN_PATH'
4473
 
    hardcode_shlibpath_var=no
4474
 
    ;;
4475
 
 
4476
 
  *)
4477
 
    ld_shlibs=no
4478
 
    ;;
4479
 
  esac
4480
 
fi
4481
 
echo "$ac_t""$ld_shlibs" 1>&6
 
8415
          ;;
 
8416
        esac
 
8417
      fi
 
8418
      ;;
 
8419
 
 
8420
    irix5* | irix6* | nonstopux*)
 
8421
      if test "$GCC" = yes; then
 
8422
        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'
 
8423
      else
 
8424
        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'
 
8425
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8426
      fi
 
8427
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8428
      hardcode_libdir_separator=:
 
8429
      link_all_deplibs=yes
 
8430
      ;;
 
8431
 
 
8432
    netbsd* | knetbsd*-gnu)
 
8433
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8434
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8435
      else
 
8436
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8437
      fi
 
8438
      hardcode_libdir_flag_spec='-R$libdir'
 
8439
      hardcode_direct=yes
 
8440
      hardcode_shlibpath_var=no
 
8441
      ;;
 
8442
 
 
8443
    newsos6)
 
8444
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8445
      hardcode_direct=yes
 
8446
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8447
      hardcode_libdir_separator=:
 
8448
      hardcode_shlibpath_var=no
 
8449
      ;;
 
8450
 
 
8451
    openbsd*)
 
8452
      hardcode_direct=yes
 
8453
      hardcode_shlibpath_var=no
 
8454
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8455
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8456
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8457
        export_dynamic_flag_spec='${wl}-E'
 
8458
      else
 
8459
       case $host_os in
 
8460
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8461
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8462
           hardcode_libdir_flag_spec='-R$libdir'
 
8463
           ;;
 
8464
         *)
 
8465
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8466
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8467
           ;;
 
8468
       esac
 
8469
      fi
 
8470
      ;;
 
8471
 
 
8472
    os2*)
 
8473
      hardcode_libdir_flag_spec='-L$libdir'
 
8474
      hardcode_minus_L=yes
 
8475
      allow_undefined_flag=unsupported
 
8476
      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'
 
8477
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8478
      ;;
 
8479
 
 
8480
    osf3*)
 
8481
      if test "$GCC" = yes; then
 
8482
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8483
        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'
 
8484
      else
 
8485
        allow_undefined_flag=' -expect_unresolved \*'
 
8486
        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'
 
8487
      fi
 
8488
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8489
      hardcode_libdir_separator=:
 
8490
      ;;
 
8491
 
 
8492
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8493
      if test "$GCC" = yes; then
 
8494
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8495
        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'
 
8496
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8497
      else
 
8498
        allow_undefined_flag=' -expect_unresolved \*'
 
8499
        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'
 
8500
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8501
        $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'
 
8502
 
 
8503
        # Both c and cxx compiler support -rpath directly
 
8504
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8505
      fi
 
8506
      hardcode_libdir_separator=:
 
8507
      ;;
 
8508
 
 
8509
    sco3.2v5*)
 
8510
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8511
      hardcode_shlibpath_var=no
 
8512
      export_dynamic_flag_spec='${wl}-Bexport'
 
8513
      runpath_var=LD_RUN_PATH
 
8514
      hardcode_runpath_var=yes
 
8515
      ;;
 
8516
 
 
8517
    solaris*)
 
8518
      no_undefined_flag=' -z text'
 
8519
      if test "$GCC" = yes; then
 
8520
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8521
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8522
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
8523
      else
 
8524
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8525
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8526
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8527
      fi
 
8528
      hardcode_libdir_flag_spec='-R$libdir'
 
8529
      hardcode_shlibpath_var=no
 
8530
      case $host_os in
 
8531
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8532
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8533
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8534
      esac
 
8535
      link_all_deplibs=yes
 
8536
      ;;
 
8537
 
 
8538
    sunos4*)
 
8539
      if test "x$host_vendor" = xsequent; then
 
8540
        # Use $CC to link under sequent, because it throws in some extra .o
 
8541
        # files that make .init and .fini sections work.
 
8542
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8543
      else
 
8544
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8545
      fi
 
8546
      hardcode_libdir_flag_spec='-L$libdir'
 
8547
      hardcode_direct=yes
 
8548
      hardcode_minus_L=yes
 
8549
      hardcode_shlibpath_var=no
 
8550
      ;;
 
8551
 
 
8552
    sysv4)
 
8553
      case $host_vendor in
 
8554
        sni)
 
8555
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8556
          hardcode_direct=yes # is this really true???
 
8557
        ;;
 
8558
        siemens)
 
8559
          ## LD is ld it makes a PLAMLIB
 
8560
          ## CC just makes a GrossModule.
 
8561
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8562
          reload_cmds='$CC -r -o $output$reload_objs'
 
8563
          hardcode_direct=no
 
8564
        ;;
 
8565
        motorola)
 
8566
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8567
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8568
        ;;
 
8569
      esac
 
8570
      runpath_var='LD_RUN_PATH'
 
8571
      hardcode_shlibpath_var=no
 
8572
      ;;
 
8573
 
 
8574
    sysv4.3*)
 
8575
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8576
      hardcode_shlibpath_var=no
 
8577
      export_dynamic_flag_spec='-Bexport'
 
8578
      ;;
 
8579
 
 
8580
    sysv4*MP*)
 
8581
      if test -d /usr/nec; then
 
8582
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8583
        hardcode_shlibpath_var=no
 
8584
        runpath_var=LD_RUN_PATH
 
8585
        hardcode_runpath_var=yes
 
8586
        ld_shlibs=yes
 
8587
      fi
 
8588
      ;;
 
8589
 
 
8590
    sysv4.2uw2*)
 
8591
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8592
      hardcode_direct=yes
 
8593
      hardcode_minus_L=no
 
8594
      hardcode_shlibpath_var=no
 
8595
      hardcode_runpath_var=yes
 
8596
      runpath_var=LD_RUN_PATH
 
8597
      ;;
 
8598
 
 
8599
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
8600
      no_undefined_flag='${wl}-z ${wl}text'
 
8601
      if test "$GCC" = yes; then
 
8602
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8603
      else
 
8604
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8605
      fi
 
8606
      runpath_var='LD_RUN_PATH'
 
8607
      hardcode_shlibpath_var=no
 
8608
      ;;
 
8609
 
 
8610
    sysv5*)
 
8611
      no_undefined_flag=' -z text'
 
8612
      # $CC -shared without GNU ld will not create a library from C++
 
8613
      # object files and a static libstdc++, better avoid it by now
 
8614
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8615
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8616
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8617
      hardcode_libdir_flag_spec=
 
8618
      hardcode_shlibpath_var=no
 
8619
      runpath_var='LD_RUN_PATH'
 
8620
      ;;
 
8621
 
 
8622
    uts4*)
 
8623
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8624
      hardcode_libdir_flag_spec='-L$libdir'
 
8625
      hardcode_shlibpath_var=no
 
8626
      ;;
 
8627
 
 
8628
    *)
 
8629
      ld_shlibs=no
 
8630
      ;;
 
8631
    esac
 
8632
  fi
 
8633
 
 
8634
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
8635
echo "${ECHO_T}$ld_shlibs" >&6
4482
8636
test "$ld_shlibs" = no && can_build_shared=no
4483
8637
 
4484
 
# Check hardcoding attributes.
4485
 
echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
4486
 
echo "configure:4487: checking how to hardcode library paths into programs" >&5
 
8638
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
8639
if test "$GCC" = yes; then
 
8640
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
8641
fi
 
8642
 
 
8643
#
 
8644
# Do we need to explicitly link libc?
 
8645
#
 
8646
case "x$archive_cmds_need_lc" in
 
8647
x|xyes)
 
8648
  # Assume -lc should be added
 
8649
  archive_cmds_need_lc=yes
 
8650
 
 
8651
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
8652
    case $archive_cmds in
 
8653
    *'~'*)
 
8654
      # FIXME: we may have to deal with multi-command sequences.
 
8655
      ;;
 
8656
    '$CC '*)
 
8657
      # Test whether the compiler implicitly links with -lc since on some
 
8658
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
8659
      # to ld, don't add -lc before -lgcc.
 
8660
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8661
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
8662
      $rm conftest*
 
8663
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8664
 
 
8665
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8666
  (eval $ac_compile) 2>&5
 
8667
  ac_status=$?
 
8668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8669
  (exit $ac_status); } 2>conftest.err; then
 
8670
        soname=conftest
 
8671
        lib=conftest
 
8672
        libobjs=conftest.$ac_objext
 
8673
        deplibs=
 
8674
        wl=$lt_prog_compiler_wl
 
8675
        compiler_flags=-v
 
8676
        linker_flags=-v
 
8677
        verstring=
 
8678
        output_objdir=.
 
8679
        libname=conftest
 
8680
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
8681
        allow_undefined_flag=
 
8682
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8683
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8684
  ac_status=$?
 
8685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8686
  (exit $ac_status); }
 
8687
        then
 
8688
          archive_cmds_need_lc=no
 
8689
        else
 
8690
          archive_cmds_need_lc=yes
 
8691
        fi
 
8692
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
8693
      else
 
8694
        cat conftest.err 1>&5
 
8695
      fi
 
8696
      $rm conftest*
 
8697
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
8698
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
8699
      ;;
 
8700
    esac
 
8701
  fi
 
8702
  ;;
 
8703
esac
 
8704
 
 
8705
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8706
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
8707
library_names_spec=
 
8708
libname_spec='lib$name'
 
8709
soname_spec=
 
8710
shrext_cmds=".so"
 
8711
postinstall_cmds=
 
8712
postuninstall_cmds=
 
8713
finish_cmds=
 
8714
finish_eval=
 
8715
shlibpath_var=
 
8716
shlibpath_overrides_runpath=unknown
 
8717
version_type=none
 
8718
dynamic_linker="$host_os ld.so"
 
8719
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8720
if test "$GCC" = yes; then
 
8721
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8722
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
8723
    # if the path contains ";" then we assume it to be the separator
 
8724
    # otherwise default to the standard path separator (i.e. ":") - it is
 
8725
    # assumed that no part of a normal pathname contains ";" but that should
 
8726
    # okay in the real world where ";" in dirpaths is itself problematic.
 
8727
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8728
  else
 
8729
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8730
  fi
 
8731
else
 
8732
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
8733
fi
 
8734
need_lib_prefix=unknown
 
8735
hardcode_into_libs=no
 
8736
 
 
8737
# when you set need_version to no, make sure it does not cause -set_version
 
8738
# flags to be left without arguments
 
8739
need_version=unknown
 
8740
 
 
8741
case $host_os in
 
8742
aix3*)
 
8743
  version_type=linux
 
8744
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
8745
  shlibpath_var=LIBPATH
 
8746
 
 
8747
  # AIX 3 has no versioning support, so we append a major version to the name.
 
8748
  soname_spec='${libname}${release}${shared_ext}$major'
 
8749
  ;;
 
8750
 
 
8751
aix4* | aix5*)
 
8752
  version_type=linux
 
8753
  need_lib_prefix=no
 
8754
  need_version=no
 
8755
  hardcode_into_libs=yes
 
8756
  if test "$host_cpu" = ia64; then
 
8757
    # AIX 5 supports IA64
 
8758
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
8759
    shlibpath_var=LD_LIBRARY_PATH
 
8760
  else
 
8761
    # With GCC up to 2.95.x, collect2 would create an import file
 
8762
    # for dependence libraries.  The import file would start with
 
8763
    # the line `#! .'.  This would cause the generated library to
 
8764
    # depend on `.', always an invalid library.  This was fixed in
 
8765
    # development snapshots of GCC prior to 3.0.
 
8766
    case $host_os in
 
8767
      aix4 | aix4.[01] | aix4.[01].*)
 
8768
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
8769
           echo ' yes '
 
8770
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
8771
        :
 
8772
      else
 
8773
        can_build_shared=no
 
8774
      fi
 
8775
      ;;
 
8776
    esac
 
8777
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
8778
    # soname into executable. Probably we can add versioning support to
 
8779
    # collect2, so additional links can be useful in future.
 
8780
    if test "$aix_use_runtimelinking" = yes; then
 
8781
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
8782
      # instead of lib<name>.a to let people know that these are not
 
8783
      # typical AIX shared libraries.
 
8784
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8785
    else
 
8786
      # We preserve .a as extension for shared libraries through AIX4.2
 
8787
      # and later when we are not doing run time linking.
 
8788
      library_names_spec='${libname}${release}.a $libname.a'
 
8789
      soname_spec='${libname}${release}${shared_ext}$major'
 
8790
    fi
 
8791
    shlibpath_var=LIBPATH
 
8792
  fi
 
8793
  ;;
 
8794
 
 
8795
amigaos*)
 
8796
  library_names_spec='$libname.ixlibrary $libname.a'
 
8797
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
8798
  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'
 
8799
  ;;
 
8800
 
 
8801
beos*)
 
8802
  library_names_spec='${libname}${shared_ext}'
 
8803
  dynamic_linker="$host_os ld.so"
 
8804
  shlibpath_var=LIBRARY_PATH
 
8805
  ;;
 
8806
 
 
8807
bsdi4*)
 
8808
  version_type=linux
 
8809
  need_version=no
 
8810
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8811
  soname_spec='${libname}${release}${shared_ext}$major'
 
8812
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
8813
  shlibpath_var=LD_LIBRARY_PATH
 
8814
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
8815
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
8816
  # the default ld.so.conf also contains /usr/contrib/lib and
 
8817
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
8818
  # libtool to hard-code these into programs
 
8819
  ;;
 
8820
 
 
8821
cygwin* | mingw* | pw32*)
 
8822
  version_type=windows
 
8823
  shrext_cmds=".dll"
 
8824
  need_version=no
 
8825
  need_lib_prefix=no
 
8826
 
 
8827
  case $GCC,$host_os in
 
8828
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
8829
    library_names_spec='$libname.dll.a'
 
8830
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
8831
    postinstall_cmds='base_file=`basename \${file}`~
 
8832
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
8833
      dldir=$destdir/`dirname \$dlpath`~
 
8834
      test -d \$dldir || mkdir -p \$dldir~
 
8835
      $install_prog $dir/$dlname \$dldir/$dlname'
 
8836
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
8837
      dlpath=$dir/\$dldll~
 
8838
       $rm \$dlpath'
 
8839
    shlibpath_overrides_runpath=yes
 
8840
 
 
8841
    case $host_os in
 
8842
    cygwin*)
 
8843
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
8844
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8845
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
8846
      ;;
 
8847
    mingw*)
 
8848
      # MinGW DLLs use traditional 'lib' prefix
 
8849
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8850
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8851
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
8852
        # It is most probably a Windows format PATH printed by
 
8853
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
8854
        # path with ; separators, and with drive letters. We can handle the
 
8855
        # drive letters (cygwin fileutils understands them), so leave them,
 
8856
        # especially as we might pass files found there to a mingw objdump,
 
8857
        # which wouldn't understand a cygwinified path. Ahh.
 
8858
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8859
      else
 
8860
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8861
      fi
 
8862
      ;;
 
8863
    pw32*)
 
8864
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
8865
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
8866
      ;;
 
8867
    esac
 
8868
    ;;
 
8869
 
 
8870
  *)
 
8871
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
8872
    ;;
 
8873
  esac
 
8874
  dynamic_linker='Win32 ld.exe'
 
8875
  # FIXME: first we should search . and the directory the executable is in
 
8876
  shlibpath_var=PATH
 
8877
  ;;
 
8878
 
 
8879
darwin* | rhapsody*)
 
8880
  dynamic_linker="$host_os dyld"
 
8881
  version_type=darwin
 
8882
  need_lib_prefix=no
 
8883
  need_version=no
 
8884
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
8885
  soname_spec='${libname}${release}${major}$shared_ext'
 
8886
  shlibpath_overrides_runpath=yes
 
8887
  shlibpath_var=DYLD_LIBRARY_PATH
 
8888
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
8889
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
8890
  if test "$GCC" = yes; then
 
8891
    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"`
 
8892
  else
 
8893
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
8894
  fi
 
8895
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
8896
  ;;
 
8897
 
 
8898
dgux*)
 
8899
  version_type=linux
 
8900
  need_lib_prefix=no
 
8901
  need_version=no
 
8902
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
8903
  soname_spec='${libname}${release}${shared_ext}$major'
 
8904
  shlibpath_var=LD_LIBRARY_PATH
 
8905
  ;;
 
8906
 
 
8907
freebsd1*)
 
8908
  dynamic_linker=no
 
8909
  ;;
 
8910
 
 
8911
kfreebsd*-gnu)
 
8912
  version_type=linux
 
8913
  need_lib_prefix=no
 
8914
  need_version=no
 
8915
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8916
  soname_spec='${libname}${release}${shared_ext}$major'
 
8917
  shlibpath_var=LD_LIBRARY_PATH
 
8918
  shlibpath_overrides_runpath=no
 
8919
  hardcode_into_libs=yes
 
8920
  dynamic_linker='GNU ld.so'
 
8921
  ;;
 
8922
 
 
8923
freebsd*)
 
8924
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
8925
  version_type=freebsd-$objformat
 
8926
  case $version_type in
 
8927
    freebsd-elf*)
 
8928
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8929
      need_version=no
 
8930
      need_lib_prefix=no
 
8931
      ;;
 
8932
    freebsd-*)
 
8933
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
8934
      need_version=yes
 
8935
      ;;
 
8936
  esac
 
8937
  shlibpath_var=LD_LIBRARY_PATH
 
8938
  case $host_os in
 
8939
  freebsd2*)
 
8940
    shlibpath_overrides_runpath=yes
 
8941
    ;;
 
8942
  freebsd3.01* | freebsdelf3.01*)
 
8943
    shlibpath_overrides_runpath=yes
 
8944
    hardcode_into_libs=yes
 
8945
    ;;
 
8946
  *) # from 3.2 on
 
8947
    shlibpath_overrides_runpath=no
 
8948
    hardcode_into_libs=yes
 
8949
    ;;
 
8950
  esac
 
8951
  ;;
 
8952
 
 
8953
gnu*)
 
8954
  version_type=linux
 
8955
  need_lib_prefix=no
 
8956
  need_version=no
 
8957
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
8958
  soname_spec='${libname}${release}${shared_ext}$major'
 
8959
  shlibpath_var=LD_LIBRARY_PATH
 
8960
  hardcode_into_libs=yes
 
8961
  ;;
 
8962
 
 
8963
hpux9* | hpux10* | hpux11*)
 
8964
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
8965
  # link against other versions.
 
8966
  version_type=sunos
 
8967
  need_lib_prefix=no
 
8968
  need_version=no
 
8969
  case "$host_cpu" in
 
8970
  ia64*)
 
8971
    shrext_cmds='.so'
 
8972
    hardcode_into_libs=yes
 
8973
    dynamic_linker="$host_os dld.so"
 
8974
    shlibpath_var=LD_LIBRARY_PATH
 
8975
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8976
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8977
    soname_spec='${libname}${release}${shared_ext}$major'
 
8978
    if test "X$HPUX_IA64_MODE" = X32; then
 
8979
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
8980
    else
 
8981
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
8982
    fi
 
8983
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8984
    ;;
 
8985
   hppa*64*)
 
8986
     shrext_cmds='.sl'
 
8987
     hardcode_into_libs=yes
 
8988
     dynamic_linker="$host_os dld.sl"
 
8989
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8990
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8991
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8992
     soname_spec='${libname}${release}${shared_ext}$major'
 
8993
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
8994
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8995
     ;;
 
8996
   *)
 
8997
    shrext_cmds='.sl'
 
8998
    dynamic_linker="$host_os dld.sl"
 
8999
    shlibpath_var=SHLIB_PATH
 
9000
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9001
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9002
    soname_spec='${libname}${release}${shared_ext}$major'
 
9003
    ;;
 
9004
  esac
 
9005
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9006
  postinstall_cmds='chmod 555 $lib'
 
9007
  ;;
 
9008
 
 
9009
irix5* | irix6* | nonstopux*)
 
9010
  case $host_os in
 
9011
    nonstopux*) version_type=nonstopux ;;
 
9012
    *)
 
9013
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9014
                version_type=linux
 
9015
        else
 
9016
                version_type=irix
 
9017
        fi ;;
 
9018
  esac
 
9019
  need_lib_prefix=no
 
9020
  need_version=no
 
9021
  soname_spec='${libname}${release}${shared_ext}$major'
 
9022
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9023
  case $host_os in
 
9024
  irix5* | nonstopux*)
 
9025
    libsuff= shlibsuff=
 
9026
    ;;
 
9027
  *)
 
9028
    case $LD in # libtool.m4 will add one of these switches to LD
 
9029
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9030
      libsuff= shlibsuff= libmagic=32-bit;;
 
9031
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9032
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9033
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9034
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9035
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9036
    esac
 
9037
    ;;
 
9038
  esac
 
9039
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9040
  shlibpath_overrides_runpath=no
 
9041
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9042
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9043
  hardcode_into_libs=yes
 
9044
  ;;
 
9045
 
 
9046
# No shared lib support for Linux oldld, aout, or coff.
 
9047
linux*oldld* | linux*aout* | linux*coff*)
 
9048
  dynamic_linker=no
 
9049
  ;;
 
9050
 
 
9051
# This must be Linux ELF.
 
9052
linux*)
 
9053
  version_type=linux
 
9054
  need_lib_prefix=no
 
9055
  need_version=no
 
9056
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9057
  soname_spec='${libname}${release}${shared_ext}$major'
 
9058
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9059
  shlibpath_var=LD_LIBRARY_PATH
 
9060
  shlibpath_overrides_runpath=no
 
9061
  # This implies no fast_install, which is unacceptable.
 
9062
  # Some rework will be needed to allow for fast_install
 
9063
  # before this can be enabled.
 
9064
  hardcode_into_libs=yes
 
9065
 
 
9066
  # Append ld.so.conf contents to the search path
 
9067
  if test -f /etc/ld.so.conf; then
 
9068
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
9069
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
9070
  fi
 
9071
 
 
9072
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9073
  # powerpc, because MkLinux only supported shared libraries with the
 
9074
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9075
  # most powerpc-linux boxes support dynamic linking these days and
 
9076
  # people can always --disable-shared, the test was removed, and we
 
9077
  # assume the GNU/Linux dynamic linker is in use.
 
9078
  dynamic_linker='GNU/Linux ld.so'
 
9079
  ;;
 
9080
 
 
9081
knetbsd*-gnu)
 
9082
  version_type=linux
 
9083
  need_lib_prefix=no
 
9084
  need_version=no
 
9085
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9086
  soname_spec='${libname}${release}${shared_ext}$major'
 
9087
  shlibpath_var=LD_LIBRARY_PATH
 
9088
  shlibpath_overrides_runpath=no
 
9089
  hardcode_into_libs=yes
 
9090
  dynamic_linker='GNU ld.so'
 
9091
  ;;
 
9092
 
 
9093
netbsd*)
 
9094
  version_type=sunos
 
9095
  need_lib_prefix=no
 
9096
  need_version=no
 
9097
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9098
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9099
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9100
    dynamic_linker='NetBSD (a.out) ld.so'
 
9101
  else
 
9102
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9103
    soname_spec='${libname}${release}${shared_ext}$major'
 
9104
    dynamic_linker='NetBSD ld.elf_so'
 
9105
  fi
 
9106
  shlibpath_var=LD_LIBRARY_PATH
 
9107
  shlibpath_overrides_runpath=yes
 
9108
  hardcode_into_libs=yes
 
9109
  ;;
 
9110
 
 
9111
newsos6)
 
9112
  version_type=linux
 
9113
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9114
  shlibpath_var=LD_LIBRARY_PATH
 
9115
  shlibpath_overrides_runpath=yes
 
9116
  ;;
 
9117
 
 
9118
nto-qnx*)
 
9119
  version_type=linux
 
9120
  need_lib_prefix=no
 
9121
  need_version=no
 
9122
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9123
  soname_spec='${libname}${release}${shared_ext}$major'
 
9124
  shlibpath_var=LD_LIBRARY_PATH
 
9125
  shlibpath_overrides_runpath=yes
 
9126
  ;;
 
9127
 
 
9128
openbsd*)
 
9129
  version_type=sunos
 
9130
  need_lib_prefix=no
 
9131
  need_version=yes
 
9132
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9133
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9134
  shlibpath_var=LD_LIBRARY_PATH
 
9135
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9136
    case $host_os in
 
9137
      openbsd2.[89] | openbsd2.[89].*)
 
9138
        shlibpath_overrides_runpath=no
 
9139
        ;;
 
9140
      *)
 
9141
        shlibpath_overrides_runpath=yes
 
9142
        ;;
 
9143
      esac
 
9144
  else
 
9145
    shlibpath_overrides_runpath=yes
 
9146
  fi
 
9147
  ;;
 
9148
 
 
9149
os2*)
 
9150
  libname_spec='$name'
 
9151
  shrext_cmds=".dll"
 
9152
  need_lib_prefix=no
 
9153
  library_names_spec='$libname${shared_ext} $libname.a'
 
9154
  dynamic_linker='OS/2 ld.exe'
 
9155
  shlibpath_var=LIBPATH
 
9156
  ;;
 
9157
 
 
9158
osf3* | osf4* | osf5*)
 
9159
  version_type=osf
 
9160
  need_lib_prefix=no
 
9161
  need_version=no
 
9162
  soname_spec='${libname}${release}${shared_ext}$major'
 
9163
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9164
  shlibpath_var=LD_LIBRARY_PATH
 
9165
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9166
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9167
  ;;
 
9168
 
 
9169
sco3.2v5*)
 
9170
  version_type=osf
 
9171
  soname_spec='${libname}${release}${shared_ext}$major'
 
9172
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9173
  shlibpath_var=LD_LIBRARY_PATH
 
9174
  ;;
 
9175
 
 
9176
solaris*)
 
9177
  version_type=linux
 
9178
  need_lib_prefix=no
 
9179
  need_version=no
 
9180
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9181
  soname_spec='${libname}${release}${shared_ext}$major'
 
9182
  shlibpath_var=LD_LIBRARY_PATH
 
9183
  shlibpath_overrides_runpath=yes
 
9184
  hardcode_into_libs=yes
 
9185
  # ldd complains unless libraries are executable
 
9186
  postinstall_cmds='chmod +x $lib'
 
9187
  ;;
 
9188
 
 
9189
sunos4*)
 
9190
  version_type=sunos
 
9191
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9192
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9193
  shlibpath_var=LD_LIBRARY_PATH
 
9194
  shlibpath_overrides_runpath=yes
 
9195
  if test "$with_gnu_ld" = yes; then
 
9196
    need_lib_prefix=no
 
9197
  fi
 
9198
  need_version=yes
 
9199
  ;;
 
9200
 
 
9201
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9202
  version_type=linux
 
9203
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9204
  soname_spec='${libname}${release}${shared_ext}$major'
 
9205
  shlibpath_var=LD_LIBRARY_PATH
 
9206
  case $host_vendor in
 
9207
    sni)
 
9208
      shlibpath_overrides_runpath=no
 
9209
      need_lib_prefix=no
 
9210
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9211
      runpath_var=LD_RUN_PATH
 
9212
      ;;
 
9213
    siemens)
 
9214
      need_lib_prefix=no
 
9215
      ;;
 
9216
    motorola)
 
9217
      need_lib_prefix=no
 
9218
      need_version=no
 
9219
      shlibpath_overrides_runpath=no
 
9220
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9221
      ;;
 
9222
  esac
 
9223
  ;;
 
9224
 
 
9225
sysv4*MP*)
 
9226
  if test -d /usr/nec ;then
 
9227
    version_type=linux
 
9228
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9229
    soname_spec='$libname${shared_ext}.$major'
 
9230
    shlibpath_var=LD_LIBRARY_PATH
 
9231
  fi
 
9232
  ;;
 
9233
 
 
9234
uts4*)
 
9235
  version_type=linux
 
9236
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9237
  soname_spec='${libname}${release}${shared_ext}$major'
 
9238
  shlibpath_var=LD_LIBRARY_PATH
 
9239
  ;;
 
9240
 
 
9241
*)
 
9242
  dynamic_linker=no
 
9243
  ;;
 
9244
esac
 
9245
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9246
echo "${ECHO_T}$dynamic_linker" >&6
 
9247
test "$dynamic_linker" = no && can_build_shared=no
 
9248
 
 
9249
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9250
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
4487
9251
hardcode_action=
4488
9252
if test -n "$hardcode_libdir_flag_spec" || \
4489
 
   test -n "$runpath_var"; then
 
9253
   test -n "$runpath_var " || \
 
9254
   test "X$hardcode_automatic"="Xyes" ; then
4490
9255
 
4491
9256
  # We can hardcode non-existant directories.
4492
9257
  if test "$hardcode_direct" != no &&
4493
9258
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
4494
9259
     # have to relink, otherwise we might link with an installed library
4495
9260
     # when we should be linking with a yet-to-be-installed one
4496
 
     ## test "$hardcode_shlibpath_var" != no &&
 
9261
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
4497
9262
     test "$hardcode_minus_L" != no; then
4498
9263
    # Linking always hardcodes the temporary library directory.
4499
9264
    hardcode_action=relink
4506
9271
  # directories.
4507
9272
  hardcode_action=unsupported
4508
9273
fi
4509
 
echo "$ac_t""$hardcode_action" 1>&6
 
9274
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9275
echo "${ECHO_T}$hardcode_action" >&6
 
9276
 
 
9277
if test "$hardcode_action" = relink; then
 
9278
  # Fast installation is not supported
 
9279
  enable_fast_install=no
 
9280
elif test "$shlibpath_overrides_runpath" = yes ||
 
9281
     test "$enable_shared" = no; then
 
9282
  # Fast installation is not necessary
 
9283
  enable_fast_install=needless
 
9284
fi
4510
9285
 
4511
9286
striplib=
4512
9287
old_striplib=
4513
 
echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
4514
 
echo "configure:4515: checking whether stripping libraries is possible" >&5
 
9288
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9289
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
4515
9290
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
4516
9291
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4517
9292
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4518
 
  echo "$ac_t""yes" 1>&6
4519
 
else
4520
 
  echo "$ac_t""no" 1>&6
4521
 
fi
4522
 
 
4523
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4524
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4525
 
 
4526
 
# PORTME Fill in your ld.so characteristics
4527
 
echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
4528
 
echo "configure:4529: checking dynamic linker characteristics" >&5
4529
 
library_names_spec=
4530
 
libname_spec='lib$name'
4531
 
soname_spec=
4532
 
postinstall_cmds=
4533
 
postuninstall_cmds=
4534
 
finish_cmds=
4535
 
finish_eval=
4536
 
shlibpath_var=
4537
 
shlibpath_overrides_runpath=unknown
4538
 
version_type=none
4539
 
dynamic_linker="$host_os ld.so"
4540
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
4541
 
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4542
 
 
4543
 
case $host_os in
4544
 
aix3*)
4545
 
  version_type=linux
4546
 
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
4547
 
  shlibpath_var=LIBPATH
4548
 
 
4549
 
  # AIX has no versioning support, so we append a major version to the name.
4550
 
  soname_spec='${libname}${release}.so$major'
4551
 
  ;;
4552
 
 
4553
 
aix4* | aix5*)
4554
 
  version_type=linux
4555
 
  if test "$host_cpu" = ia64; then
4556
 
    # AIX 5 supports IA64
4557
 
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
4558
 
    shlibpath_var=LD_LIBRARY_PATH
 
9293
  echo "$as_me:$LINENO: result: yes" >&5
 
9294
echo "${ECHO_T}yes" >&6
 
9295
else
 
9296
# FIXME - insert some real tests, host_os isn't really good enough
 
9297
  case $host_os in
 
9298
   darwin*)
 
9299
       if test -n "$STRIP" ; then
 
9300
         striplib="$STRIP -x"
 
9301
         echo "$as_me:$LINENO: result: yes" >&5
 
9302
echo "${ECHO_T}yes" >&6
 
9303
       else
 
9304
  echo "$as_me:$LINENO: result: no" >&5
 
9305
echo "${ECHO_T}no" >&6
 
9306
fi
 
9307
       ;;
 
9308
   *)
 
9309
  echo "$as_me:$LINENO: result: no" >&5
 
9310
echo "${ECHO_T}no" >&6
 
9311
    ;;
 
9312
  esac
 
9313
fi
 
9314
 
 
9315
if test "x$enable_dlopen" != xyes; then
 
9316
  enable_dlopen=unknown
 
9317
  enable_dlopen_self=unknown
 
9318
  enable_dlopen_self_static=unknown
 
9319
else
 
9320
  lt_cv_dlopen=no
 
9321
  lt_cv_dlopen_libs=
 
9322
 
 
9323
  case $host_os in
 
9324
  beos*)
 
9325
    lt_cv_dlopen="load_add_on"
 
9326
    lt_cv_dlopen_libs=
 
9327
    lt_cv_dlopen_self=yes
 
9328
    ;;
 
9329
 
 
9330
  mingw* | pw32*)
 
9331
    lt_cv_dlopen="LoadLibrary"
 
9332
    lt_cv_dlopen_libs=
 
9333
   ;;
 
9334
 
 
9335
  cygwin*)
 
9336
    lt_cv_dlopen="dlopen"
 
9337
    lt_cv_dlopen_libs=
 
9338
   ;;
 
9339
 
 
9340
  darwin*)
 
9341
  # if libdl is installed we need to link against it
 
9342
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9343
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
9344
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9345
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9346
else
 
9347
  ac_check_lib_save_LIBS=$LIBS
 
9348
LIBS="-ldl  $LIBS"
 
9349
cat >conftest.$ac_ext <<_ACEOF
 
9350
/* confdefs.h.  */
 
9351
_ACEOF
 
9352
cat confdefs.h >>conftest.$ac_ext
 
9353
cat >>conftest.$ac_ext <<_ACEOF
 
9354
/* end confdefs.h.  */
 
9355
 
 
9356
/* Override any gcc2 internal prototype to avoid an error.  */
 
9357
#ifdef __cplusplus
 
9358
extern "C"
 
9359
#endif
 
9360
/* We use char because int might match the return type of a gcc2
 
9361
   builtin and then its argument prototype would still apply.  */
 
9362
char dlopen ();
 
9363
int
 
9364
main ()
 
9365
{
 
9366
dlopen ();
 
9367
  ;
 
9368
  return 0;
 
9369
}
 
9370
_ACEOF
 
9371
rm -f conftest.$ac_objext conftest$ac_exeext
 
9372
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9373
  (eval $ac_link) 2>conftest.er1
 
9374
  ac_status=$?
 
9375
  grep -v '^ *+' conftest.er1 >conftest.err
 
9376
  rm -f conftest.er1
 
9377
  cat conftest.err >&5
 
9378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9379
  (exit $ac_status); } &&
 
9380
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9381
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9382
  (eval $ac_try) 2>&5
 
9383
  ac_status=$?
 
9384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9385
  (exit $ac_status); }; } &&
 
9386
         { ac_try='test -s conftest$ac_exeext'
 
9387
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9388
  (eval $ac_try) 2>&5
 
9389
  ac_status=$?
 
9390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9391
  (exit $ac_status); }; }; then
 
9392
  ac_cv_lib_dl_dlopen=yes
 
9393
else
 
9394
  echo "$as_me: failed program was:" >&5
 
9395
sed 's/^/| /' conftest.$ac_ext >&5
 
9396
 
 
9397
ac_cv_lib_dl_dlopen=no
 
9398
fi
 
9399
rm -f conftest.err conftest.$ac_objext \
 
9400
      conftest$ac_exeext conftest.$ac_ext
 
9401
LIBS=$ac_check_lib_save_LIBS
 
9402
fi
 
9403
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9404
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
9405
if test $ac_cv_lib_dl_dlopen = yes; then
 
9406
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9407
else
 
9408
 
 
9409
    lt_cv_dlopen="dyld"
 
9410
    lt_cv_dlopen_libs=
 
9411
    lt_cv_dlopen_self=yes
 
9412
 
 
9413
fi
 
9414
 
 
9415
   ;;
 
9416
 
 
9417
  *)
 
9418
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
9419
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
9420
if test "${ac_cv_func_shl_load+set}" = set; then
 
9421
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9422
else
 
9423
  cat >conftest.$ac_ext <<_ACEOF
 
9424
/* confdefs.h.  */
 
9425
_ACEOF
 
9426
cat confdefs.h >>conftest.$ac_ext
 
9427
cat >>conftest.$ac_ext <<_ACEOF
 
9428
/* end confdefs.h.  */
 
9429
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
9430
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9431
#define shl_load innocuous_shl_load
 
9432
 
 
9433
/* System header to define __stub macros and hopefully few prototypes,
 
9434
    which can conflict with char shl_load (); below.
 
9435
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9436
    <limits.h> exists even on freestanding compilers.  */
 
9437
 
 
9438
#ifdef __STDC__
 
9439
# include <limits.h>
 
9440
#else
 
9441
# include <assert.h>
 
9442
#endif
 
9443
 
 
9444
#undef shl_load
 
9445
 
 
9446
/* Override any gcc2 internal prototype to avoid an error.  */
 
9447
#ifdef __cplusplus
 
9448
extern "C"
 
9449
{
 
9450
#endif
 
9451
/* We use char because int might match the return type of a gcc2
 
9452
   builtin and then its argument prototype would still apply.  */
 
9453
char shl_load ();
 
9454
/* The GNU C library defines this for functions which it implements
 
9455
    to always fail with ENOSYS.  Some functions are actually named
 
9456
    something starting with __ and the normal name is an alias.  */
 
9457
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
9458
choke me
 
9459
#else
 
9460
char (*f) () = shl_load;
 
9461
#endif
 
9462
#ifdef __cplusplus
 
9463
}
 
9464
#endif
 
9465
 
 
9466
int
 
9467
main ()
 
9468
{
 
9469
return f != shl_load;
 
9470
  ;
 
9471
  return 0;
 
9472
}
 
9473
_ACEOF
 
9474
rm -f conftest.$ac_objext conftest$ac_exeext
 
9475
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9476
  (eval $ac_link) 2>conftest.er1
 
9477
  ac_status=$?
 
9478
  grep -v '^ *+' conftest.er1 >conftest.err
 
9479
  rm -f conftest.er1
 
9480
  cat conftest.err >&5
 
9481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9482
  (exit $ac_status); } &&
 
9483
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9484
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9485
  (eval $ac_try) 2>&5
 
9486
  ac_status=$?
 
9487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9488
  (exit $ac_status); }; } &&
 
9489
         { ac_try='test -s conftest$ac_exeext'
 
9490
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9491
  (eval $ac_try) 2>&5
 
9492
  ac_status=$?
 
9493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9494
  (exit $ac_status); }; }; then
 
9495
  ac_cv_func_shl_load=yes
 
9496
else
 
9497
  echo "$as_me: failed program was:" >&5
 
9498
sed 's/^/| /' conftest.$ac_ext >&5
 
9499
 
 
9500
ac_cv_func_shl_load=no
 
9501
fi
 
9502
rm -f conftest.err conftest.$ac_objext \
 
9503
      conftest$ac_exeext conftest.$ac_ext
 
9504
fi
 
9505
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9506
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
9507
if test $ac_cv_func_shl_load = yes; then
 
9508
  lt_cv_dlopen="shl_load"
 
9509
else
 
9510
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9511
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
9512
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
9513
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9514
else
 
9515
  ac_check_lib_save_LIBS=$LIBS
 
9516
LIBS="-ldld  $LIBS"
 
9517
cat >conftest.$ac_ext <<_ACEOF
 
9518
/* confdefs.h.  */
 
9519
_ACEOF
 
9520
cat confdefs.h >>conftest.$ac_ext
 
9521
cat >>conftest.$ac_ext <<_ACEOF
 
9522
/* end confdefs.h.  */
 
9523
 
 
9524
/* Override any gcc2 internal prototype to avoid an error.  */
 
9525
#ifdef __cplusplus
 
9526
extern "C"
 
9527
#endif
 
9528
/* We use char because int might match the return type of a gcc2
 
9529
   builtin and then its argument prototype would still apply.  */
 
9530
char shl_load ();
 
9531
int
 
9532
main ()
 
9533
{
 
9534
shl_load ();
 
9535
  ;
 
9536
  return 0;
 
9537
}
 
9538
_ACEOF
 
9539
rm -f conftest.$ac_objext conftest$ac_exeext
 
9540
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9541
  (eval $ac_link) 2>conftest.er1
 
9542
  ac_status=$?
 
9543
  grep -v '^ *+' conftest.er1 >conftest.err
 
9544
  rm -f conftest.er1
 
9545
  cat conftest.err >&5
 
9546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9547
  (exit $ac_status); } &&
 
9548
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9549
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9550
  (eval $ac_try) 2>&5
 
9551
  ac_status=$?
 
9552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9553
  (exit $ac_status); }; } &&
 
9554
         { ac_try='test -s conftest$ac_exeext'
 
9555
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9556
  (eval $ac_try) 2>&5
 
9557
  ac_status=$?
 
9558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9559
  (exit $ac_status); }; }; then
 
9560
  ac_cv_lib_dld_shl_load=yes
 
9561
else
 
9562
  echo "$as_me: failed program was:" >&5
 
9563
sed 's/^/| /' conftest.$ac_ext >&5
 
9564
 
 
9565
ac_cv_lib_dld_shl_load=no
 
9566
fi
 
9567
rm -f conftest.err conftest.$ac_objext \
 
9568
      conftest$ac_exeext conftest.$ac_ext
 
9569
LIBS=$ac_check_lib_save_LIBS
 
9570
fi
 
9571
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
9572
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
9573
if test $ac_cv_lib_dld_shl_load = yes; then
 
9574
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
9575
else
 
9576
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
9577
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
9578
if test "${ac_cv_func_dlopen+set}" = set; then
 
9579
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9580
else
 
9581
  cat >conftest.$ac_ext <<_ACEOF
 
9582
/* confdefs.h.  */
 
9583
_ACEOF
 
9584
cat confdefs.h >>conftest.$ac_ext
 
9585
cat >>conftest.$ac_ext <<_ACEOF
 
9586
/* end confdefs.h.  */
 
9587
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
9588
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9589
#define dlopen innocuous_dlopen
 
9590
 
 
9591
/* System header to define __stub macros and hopefully few prototypes,
 
9592
    which can conflict with char dlopen (); below.
 
9593
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9594
    <limits.h> exists even on freestanding compilers.  */
 
9595
 
 
9596
#ifdef __STDC__
 
9597
# include <limits.h>
 
9598
#else
 
9599
# include <assert.h>
 
9600
#endif
 
9601
 
 
9602
#undef dlopen
 
9603
 
 
9604
/* Override any gcc2 internal prototype to avoid an error.  */
 
9605
#ifdef __cplusplus
 
9606
extern "C"
 
9607
{
 
9608
#endif
 
9609
/* We use char because int might match the return type of a gcc2
 
9610
   builtin and then its argument prototype would still apply.  */
 
9611
char dlopen ();
 
9612
/* The GNU C library defines this for functions which it implements
 
9613
    to always fail with ENOSYS.  Some functions are actually named
 
9614
    something starting with __ and the normal name is an alias.  */
 
9615
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
9616
choke me
 
9617
#else
 
9618
char (*f) () = dlopen;
 
9619
#endif
 
9620
#ifdef __cplusplus
 
9621
}
 
9622
#endif
 
9623
 
 
9624
int
 
9625
main ()
 
9626
{
 
9627
return f != dlopen;
 
9628
  ;
 
9629
  return 0;
 
9630
}
 
9631
_ACEOF
 
9632
rm -f conftest.$ac_objext conftest$ac_exeext
 
9633
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9634
  (eval $ac_link) 2>conftest.er1
 
9635
  ac_status=$?
 
9636
  grep -v '^ *+' conftest.er1 >conftest.err
 
9637
  rm -f conftest.er1
 
9638
  cat conftest.err >&5
 
9639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9640
  (exit $ac_status); } &&
 
9641
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9642
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9643
  (eval $ac_try) 2>&5
 
9644
  ac_status=$?
 
9645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9646
  (exit $ac_status); }; } &&
 
9647
         { ac_try='test -s conftest$ac_exeext'
 
9648
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9649
  (eval $ac_try) 2>&5
 
9650
  ac_status=$?
 
9651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9652
  (exit $ac_status); }; }; then
 
9653
  ac_cv_func_dlopen=yes
 
9654
else
 
9655
  echo "$as_me: failed program was:" >&5
 
9656
sed 's/^/| /' conftest.$ac_ext >&5
 
9657
 
 
9658
ac_cv_func_dlopen=no
 
9659
fi
 
9660
rm -f conftest.err conftest.$ac_objext \
 
9661
      conftest$ac_exeext conftest.$ac_ext
 
9662
fi
 
9663
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
9664
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
9665
if test $ac_cv_func_dlopen = yes; then
 
9666
  lt_cv_dlopen="dlopen"
 
9667
else
 
9668
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9669
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
9670
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9671
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9672
else
 
9673
  ac_check_lib_save_LIBS=$LIBS
 
9674
LIBS="-ldl  $LIBS"
 
9675
cat >conftest.$ac_ext <<_ACEOF
 
9676
/* confdefs.h.  */
 
9677
_ACEOF
 
9678
cat confdefs.h >>conftest.$ac_ext
 
9679
cat >>conftest.$ac_ext <<_ACEOF
 
9680
/* end confdefs.h.  */
 
9681
 
 
9682
/* Override any gcc2 internal prototype to avoid an error.  */
 
9683
#ifdef __cplusplus
 
9684
extern "C"
 
9685
#endif
 
9686
/* We use char because int might match the return type of a gcc2
 
9687
   builtin and then its argument prototype would still apply.  */
 
9688
char dlopen ();
 
9689
int
 
9690
main ()
 
9691
{
 
9692
dlopen ();
 
9693
  ;
 
9694
  return 0;
 
9695
}
 
9696
_ACEOF
 
9697
rm -f conftest.$ac_objext conftest$ac_exeext
 
9698
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9699
  (eval $ac_link) 2>conftest.er1
 
9700
  ac_status=$?
 
9701
  grep -v '^ *+' conftest.er1 >conftest.err
 
9702
  rm -f conftest.er1
 
9703
  cat conftest.err >&5
 
9704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9705
  (exit $ac_status); } &&
 
9706
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9707
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9708
  (eval $ac_try) 2>&5
 
9709
  ac_status=$?
 
9710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9711
  (exit $ac_status); }; } &&
 
9712
         { ac_try='test -s conftest$ac_exeext'
 
9713
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9714
  (eval $ac_try) 2>&5
 
9715
  ac_status=$?
 
9716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9717
  (exit $ac_status); }; }; then
 
9718
  ac_cv_lib_dl_dlopen=yes
 
9719
else
 
9720
  echo "$as_me: failed program was:" >&5
 
9721
sed 's/^/| /' conftest.$ac_ext >&5
 
9722
 
 
9723
ac_cv_lib_dl_dlopen=no
 
9724
fi
 
9725
rm -f conftest.err conftest.$ac_objext \
 
9726
      conftest$ac_exeext conftest.$ac_ext
 
9727
LIBS=$ac_check_lib_save_LIBS
 
9728
fi
 
9729
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9730
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
9731
if test $ac_cv_lib_dl_dlopen = yes; then
 
9732
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9733
else
 
9734
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
9735
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
9736
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
9737
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9738
else
 
9739
  ac_check_lib_save_LIBS=$LIBS
 
9740
LIBS="-lsvld  $LIBS"
 
9741
cat >conftest.$ac_ext <<_ACEOF
 
9742
/* confdefs.h.  */
 
9743
_ACEOF
 
9744
cat confdefs.h >>conftest.$ac_ext
 
9745
cat >>conftest.$ac_ext <<_ACEOF
 
9746
/* end confdefs.h.  */
 
9747
 
 
9748
/* Override any gcc2 internal prototype to avoid an error.  */
 
9749
#ifdef __cplusplus
 
9750
extern "C"
 
9751
#endif
 
9752
/* We use char because int might match the return type of a gcc2
 
9753
   builtin and then its argument prototype would still apply.  */
 
9754
char dlopen ();
 
9755
int
 
9756
main ()
 
9757
{
 
9758
dlopen ();
 
9759
  ;
 
9760
  return 0;
 
9761
}
 
9762
_ACEOF
 
9763
rm -f conftest.$ac_objext conftest$ac_exeext
 
9764
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9765
  (eval $ac_link) 2>conftest.er1
 
9766
  ac_status=$?
 
9767
  grep -v '^ *+' conftest.er1 >conftest.err
 
9768
  rm -f conftest.er1
 
9769
  cat conftest.err >&5
 
9770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9771
  (exit $ac_status); } &&
 
9772
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9773
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9774
  (eval $ac_try) 2>&5
 
9775
  ac_status=$?
 
9776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9777
  (exit $ac_status); }; } &&
 
9778
         { ac_try='test -s conftest$ac_exeext'
 
9779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9780
  (eval $ac_try) 2>&5
 
9781
  ac_status=$?
 
9782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9783
  (exit $ac_status); }; }; then
 
9784
  ac_cv_lib_svld_dlopen=yes
 
9785
else
 
9786
  echo "$as_me: failed program was:" >&5
 
9787
sed 's/^/| /' conftest.$ac_ext >&5
 
9788
 
 
9789
ac_cv_lib_svld_dlopen=no
 
9790
fi
 
9791
rm -f conftest.err conftest.$ac_objext \
 
9792
      conftest$ac_exeext conftest.$ac_ext
 
9793
LIBS=$ac_check_lib_save_LIBS
 
9794
fi
 
9795
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
9796
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
9797
if test $ac_cv_lib_svld_dlopen = yes; then
 
9798
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
9799
else
 
9800
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
9801
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
9802
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
9803
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9804
else
 
9805
  ac_check_lib_save_LIBS=$LIBS
 
9806
LIBS="-ldld  $LIBS"
 
9807
cat >conftest.$ac_ext <<_ACEOF
 
9808
/* confdefs.h.  */
 
9809
_ACEOF
 
9810
cat confdefs.h >>conftest.$ac_ext
 
9811
cat >>conftest.$ac_ext <<_ACEOF
 
9812
/* end confdefs.h.  */
 
9813
 
 
9814
/* Override any gcc2 internal prototype to avoid an error.  */
 
9815
#ifdef __cplusplus
 
9816
extern "C"
 
9817
#endif
 
9818
/* We use char because int might match the return type of a gcc2
 
9819
   builtin and then its argument prototype would still apply.  */
 
9820
char dld_link ();
 
9821
int
 
9822
main ()
 
9823
{
 
9824
dld_link ();
 
9825
  ;
 
9826
  return 0;
 
9827
}
 
9828
_ACEOF
 
9829
rm -f conftest.$ac_objext conftest$ac_exeext
 
9830
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9831
  (eval $ac_link) 2>conftest.er1
 
9832
  ac_status=$?
 
9833
  grep -v '^ *+' conftest.er1 >conftest.err
 
9834
  rm -f conftest.er1
 
9835
  cat conftest.err >&5
 
9836
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9837
  (exit $ac_status); } &&
 
9838
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9839
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9840
  (eval $ac_try) 2>&5
 
9841
  ac_status=$?
 
9842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9843
  (exit $ac_status); }; } &&
 
9844
         { ac_try='test -s conftest$ac_exeext'
 
9845
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9846
  (eval $ac_try) 2>&5
 
9847
  ac_status=$?
 
9848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9849
  (exit $ac_status); }; }; then
 
9850
  ac_cv_lib_dld_dld_link=yes
 
9851
else
 
9852
  echo "$as_me: failed program was:" >&5
 
9853
sed 's/^/| /' conftest.$ac_ext >&5
 
9854
 
 
9855
ac_cv_lib_dld_dld_link=no
 
9856
fi
 
9857
rm -f conftest.err conftest.$ac_objext \
 
9858
      conftest$ac_exeext conftest.$ac_ext
 
9859
LIBS=$ac_check_lib_save_LIBS
 
9860
fi
 
9861
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9862
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
9863
if test $ac_cv_lib_dld_dld_link = yes; then
 
9864
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
9865
fi
 
9866
 
 
9867
 
 
9868
fi
 
9869
 
 
9870
 
 
9871
fi
 
9872
 
 
9873
 
 
9874
fi
 
9875
 
 
9876
 
 
9877
fi
 
9878
 
 
9879
 
 
9880
fi
 
9881
 
 
9882
    ;;
 
9883
  esac
 
9884
 
 
9885
  if test "x$lt_cv_dlopen" != xno; then
 
9886
    enable_dlopen=yes
4559
9887
  else
4560
 
    # With GCC up to 2.95.x, collect2 would create an import file
4561
 
    # for dependence libraries.  The import file would start with
4562
 
    # the line `#! .'.  This would cause the generated library to
4563
 
    # depend on `.', always an invalid library.  This was fixed in
4564
 
    # development snapshots of GCC prior to 3.0.
4565
 
    case $host_os in
4566
 
      aix4 | aix4.[01] | aix4.[01].*)
4567
 
        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4568
 
             echo ' yes '
4569
 
             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4570
 
          :
4571
 
        else
4572
 
          can_build_shared=no
4573
 
        fi
4574
 
        ;;
4575
 
    esac
4576
 
    # AIX (on Power*) has no versioning support, so currently we can
4577
 
    # not hardcode correct soname into executable. Probably we can
4578
 
    # add versioning support to collect2, so additional links can
4579
 
    # be useful in future.
4580
 
    if test "$aix_use_runtimelinking" = yes; then
4581
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4582
 
      # instead of lib<name>.a to let people know that these are not
4583
 
      # typical AIX shared libraries.
4584
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4585
 
    else
4586
 
      # We preserve .a as extension for shared libraries through AIX4.2
4587
 
      # and later when we are not doing run time linking.
4588
 
      library_names_spec='${libname}${release}.a $libname.a'
4589
 
      soname_spec='${libname}${release}.so$major'
 
9888
    enable_dlopen=no
 
9889
  fi
 
9890
 
 
9891
  case $lt_cv_dlopen in
 
9892
  dlopen)
 
9893
    save_CPPFLAGS="$CPPFLAGS"
 
9894
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
9895
 
 
9896
    save_LDFLAGS="$LDFLAGS"
 
9897
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9898
 
 
9899
    save_LIBS="$LIBS"
 
9900
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
9901
 
 
9902
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9903
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
9904
if test "${lt_cv_dlopen_self+set}" = set; then
 
9905
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9906
else
 
9907
          if test "$cross_compiling" = yes; then :
 
9908
  lt_cv_dlopen_self=cross
 
9909
else
 
9910
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9911
  lt_status=$lt_dlunknown
 
9912
  cat > conftest.$ac_ext <<EOF
 
9913
#line 9913 "configure"
 
9914
#include "confdefs.h"
 
9915
 
 
9916
#if HAVE_DLFCN_H
 
9917
#include <dlfcn.h>
 
9918
#endif
 
9919
 
 
9920
#include <stdio.h>
 
9921
 
 
9922
#ifdef RTLD_GLOBAL
 
9923
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9924
#else
 
9925
#  ifdef DL_GLOBAL
 
9926
#    define LT_DLGLOBAL         DL_GLOBAL
 
9927
#  else
 
9928
#    define LT_DLGLOBAL         0
 
9929
#  endif
 
9930
#endif
 
9931
 
 
9932
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9933
   find out it does not work in some platform. */
 
9934
#ifndef LT_DLLAZY_OR_NOW
 
9935
#  ifdef RTLD_LAZY
 
9936
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9937
#  else
 
9938
#    ifdef DL_LAZY
 
9939
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9940
#    else
 
9941
#      ifdef RTLD_NOW
 
9942
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9943
#      else
 
9944
#        ifdef DL_NOW
 
9945
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9946
#        else
 
9947
#          define LT_DLLAZY_OR_NOW      0
 
9948
#        endif
 
9949
#      endif
 
9950
#    endif
 
9951
#  endif
 
9952
#endif
 
9953
 
 
9954
#ifdef __cplusplus
 
9955
extern "C" void exit (int);
 
9956
#endif
 
9957
 
 
9958
void fnord() { int i=42;}
 
9959
int main ()
 
9960
{
 
9961
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9962
  int status = $lt_dlunknown;
 
9963
 
 
9964
  if (self)
 
9965
    {
 
9966
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9967
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9968
      /* dlclose (self); */
 
9969
    }
 
9970
 
 
9971
    exit (status);
 
9972
}
 
9973
EOF
 
9974
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9975
  (eval $ac_link) 2>&5
 
9976
  ac_status=$?
 
9977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9978
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9979
    (./conftest; exit; ) 2>/dev/null
 
9980
    lt_status=$?
 
9981
    case x$lt_status in
 
9982
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
9983
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
9984
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
9985
    esac
 
9986
  else :
 
9987
    # compilation failed
 
9988
    lt_cv_dlopen_self=no
 
9989
  fi
 
9990
fi
 
9991
rm -fr conftest*
 
9992
 
 
9993
 
 
9994
fi
 
9995
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
9996
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
9997
 
 
9998
    if test "x$lt_cv_dlopen_self" = xyes; then
 
9999
      LDFLAGS="$LDFLAGS $link_static_flag"
 
10000
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10001
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
10002
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10003
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10004
else
 
10005
          if test "$cross_compiling" = yes; then :
 
10006
  lt_cv_dlopen_self_static=cross
 
10007
else
 
10008
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10009
  lt_status=$lt_dlunknown
 
10010
  cat > conftest.$ac_ext <<EOF
 
10011
#line 10011 "configure"
 
10012
#include "confdefs.h"
 
10013
 
 
10014
#if HAVE_DLFCN_H
 
10015
#include <dlfcn.h>
 
10016
#endif
 
10017
 
 
10018
#include <stdio.h>
 
10019
 
 
10020
#ifdef RTLD_GLOBAL
 
10021
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10022
#else
 
10023
#  ifdef DL_GLOBAL
 
10024
#    define LT_DLGLOBAL         DL_GLOBAL
 
10025
#  else
 
10026
#    define LT_DLGLOBAL         0
 
10027
#  endif
 
10028
#endif
 
10029
 
 
10030
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10031
   find out it does not work in some platform. */
 
10032
#ifndef LT_DLLAZY_OR_NOW
 
10033
#  ifdef RTLD_LAZY
 
10034
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10035
#  else
 
10036
#    ifdef DL_LAZY
 
10037
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10038
#    else
 
10039
#      ifdef RTLD_NOW
 
10040
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10041
#      else
 
10042
#        ifdef DL_NOW
 
10043
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10044
#        else
 
10045
#          define LT_DLLAZY_OR_NOW      0
 
10046
#        endif
 
10047
#      endif
 
10048
#    endif
 
10049
#  endif
 
10050
#endif
 
10051
 
 
10052
#ifdef __cplusplus
 
10053
extern "C" void exit (int);
 
10054
#endif
 
10055
 
 
10056
void fnord() { int i=42;}
 
10057
int main ()
 
10058
{
 
10059
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10060
  int status = $lt_dlunknown;
 
10061
 
 
10062
  if (self)
 
10063
    {
 
10064
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10065
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10066
      /* dlclose (self); */
 
10067
    }
 
10068
 
 
10069
    exit (status);
 
10070
}
 
10071
EOF
 
10072
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10073
  (eval $ac_link) 2>&5
 
10074
  ac_status=$?
 
10075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10076
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10077
    (./conftest; exit; ) 2>/dev/null
 
10078
    lt_status=$?
 
10079
    case x$lt_status in
 
10080
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10081
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10082
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
10083
    esac
 
10084
  else :
 
10085
    # compilation failed
 
10086
    lt_cv_dlopen_self_static=no
 
10087
  fi
 
10088
fi
 
10089
rm -fr conftest*
 
10090
 
 
10091
 
 
10092
fi
 
10093
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10094
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
4590
10095
    fi
4591
 
    shlibpath_var=LIBPATH
4592
 
  fi
4593
 
  ;;
4594
 
 
4595
 
amigaos*)
4596
 
  library_names_spec='$libname.ixlibrary $libname.a'
4597
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
4598
 
  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'
4599
 
  ;;
4600
 
 
4601
 
beos*)
4602
 
  library_names_spec='${libname}.so'
4603
 
  dynamic_linker="$host_os ld.so"
4604
 
  shlibpath_var=LIBRARY_PATH
4605
 
  ;;
4606
 
 
4607
 
bsdi4*)
4608
 
  version_type=linux
4609
 
  need_version=no
4610
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4611
 
  soname_spec='${libname}${release}.so$major'
4612
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4613
 
  shlibpath_var=LD_LIBRARY_PATH
4614
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4615
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4616
 
  export_dynamic_flag_spec=-rdynamic
4617
 
  # the default ld.so.conf also contains /usr/contrib/lib and
4618
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4619
 
  # libtool to hard-code these into programs
4620
 
  ;;
4621
 
 
4622
 
cygwin* | mingw* | pw32*)
4623
 
  version_type=windows
4624
 
  need_version=no
4625
 
  need_lib_prefix=no
4626
 
  case $GCC,$host_os in
4627
 
  yes,cygwin*)
4628
 
    library_names_spec='$libname.dll.a'
4629
 
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4630
 
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4631
 
      dldir=$destdir/`dirname \$dlpath`~
4632
 
      test -d \$dldir || mkdir -p \$dldir~
4633
 
      $install_prog .libs/$dlname \$dldir/$dlname'
4634
 
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4635
 
      dlpath=$dir/\$dldll~
4636
 
       $rm \$dlpath'
4637
 
    ;;
4638
 
  yes,mingw*)
4639
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4640
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
4641
 
    ;;
4642
 
  yes,pw32*)
4643
 
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
4644
 
    ;;
4645
 
  *)
4646
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
4647
 
    ;;
4648
 
  esac
4649
 
  dynamic_linker='Win32 ld.exe'
4650
 
  # FIXME: first we should search . and the directory the executable is in
4651
 
  shlibpath_var=PATH
4652
 
  ;;
4653
 
 
4654
 
darwin* | rhapsody*)
4655
 
  dynamic_linker="$host_os dyld"
4656
 
  version_type=darwin
4657
 
  need_lib_prefix=no
4658
 
  need_version=no
4659
 
  # FIXME: Relying on posixy $() will cause problems for
4660
 
  #        cross-compilation, but unfortunately the echo tests do not
4661
 
  #        yet detect zsh echo's removal of \ escapes.
4662
 
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
4663
 
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4664
 
  shlibpath_overrides_runpath=yes
4665
 
  shlibpath_var=DYLD_LIBRARY_PATH
4666
 
  ;;
4667
 
 
4668
 
freebsd1*)
4669
 
  dynamic_linker=no
4670
 
  ;;
4671
 
 
4672
 
freebsd*)
4673
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4674
 
  version_type=freebsd-$objformat
4675
 
  case $version_type in
4676
 
    freebsd-elf*)
4677
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4678
 
      need_version=no
4679
 
      need_lib_prefix=no
4680
 
      ;;
4681
 
    freebsd-*)
4682
 
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
4683
 
      need_version=yes
4684
 
      ;;
4685
 
  esac
4686
 
  shlibpath_var=LD_LIBRARY_PATH
4687
 
  case $host_os in
4688
 
  freebsd2*)
4689
 
    shlibpath_overrides_runpath=yes
4690
 
    ;;
4691
 
  *)
4692
 
    shlibpath_overrides_runpath=no
4693
 
    hardcode_into_libs=yes
4694
 
    ;;
4695
 
  esac
4696
 
  ;;
4697
 
 
4698
 
gnu*)
4699
 
  version_type=linux
4700
 
  need_lib_prefix=no
4701
 
  need_version=no
4702
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
4703
 
  soname_spec='${libname}${release}.so$major'
4704
 
  shlibpath_var=LD_LIBRARY_PATH
4705
 
  hardcode_into_libs=yes
4706
 
  ;;
4707
 
 
4708
 
hpux9* | hpux10* | hpux11*)
4709
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
4710
 
  # link against other versions.
4711
 
  dynamic_linker="$host_os dld.sl"
4712
 
  version_type=sunos
4713
 
  need_lib_prefix=no
4714
 
  need_version=no
4715
 
  shlibpath_var=SHLIB_PATH
4716
 
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4717
 
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4718
 
  soname_spec='${libname}${release}.sl$major'
4719
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
4720
 
  postinstall_cmds='chmod 555 $lib'
4721
 
  ;;
4722
 
 
4723
 
irix5* | irix6* | nonstopux*)
4724
 
  case $host_os in
4725
 
    nonstopux*) version_type=nonstopux ;;
4726
 
    *)          version_type=irix ;;
4727
 
  esac
4728
 
  need_lib_prefix=no
4729
 
  need_version=no
4730
 
  soname_spec='${libname}${release}.so$major'
4731
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4732
 
  case $host_os in
4733
 
  irix5* | nonstopux*)
4734
 
    libsuff= shlibsuff=
4735
 
    ;;
4736
 
  *)
4737
 
    case $LD in # libtool.m4 will add one of these switches to LD
4738
 
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
4739
 
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
4740
 
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
4741
 
    *) libsuff= shlibsuff= libmagic=never-match;;
4742
 
    esac
4743
 
    ;;
4744
 
  esac
4745
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4746
 
  shlibpath_overrides_runpath=no
4747
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4748
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4749
 
  ;;
4750
 
 
4751
 
# No shared lib support for Linux oldld, aout, or coff.
4752
 
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4753
 
  dynamic_linker=no
4754
 
  ;;
4755
 
 
4756
 
# This must be Linux ELF.
4757
 
linux-gnu*)
4758
 
  version_type=linux
4759
 
  need_lib_prefix=no
4760
 
  need_version=no
4761
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4762
 
  soname_spec='${libname}${release}.so$major'
4763
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4764
 
  shlibpath_var=LD_LIBRARY_PATH
4765
 
  shlibpath_overrides_runpath=no
4766
 
  # This implies no fast_install, which is unacceptable.
4767
 
  # Some rework will be needed to allow for fast_install
4768
 
  # before this can be enabled.
4769
 
  hardcode_into_libs=yes
4770
 
 
4771
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
4772
 
  # powerpc, because MkLinux only supported shared libraries with the
4773
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
4774
 
  # most powerpc-linux boxes support dynamic linking these days and
4775
 
  # people can always --disable-shared, the test was removed, and we
4776
 
  # assume the GNU/Linux dynamic linker is in use.
4777
 
  dynamic_linker='GNU/Linux ld.so'
4778
 
  ;;
4779
 
 
4780
 
netbsd*)
4781
 
  version_type=sunos
4782
 
  need_lib_prefix=no
4783
 
  need_version=no
4784
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4785
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4786
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4787
 
    dynamic_linker='NetBSD (a.out) ld.so'
4788
 
  else
4789
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4790
 
    soname_spec='${libname}${release}.so$major'
4791
 
    dynamic_linker='NetBSD ld.elf_so'
4792
 
  fi
4793
 
  shlibpath_var=LD_LIBRARY_PATH
4794
 
  shlibpath_overrides_runpath=yes
4795
 
  hardcode_into_libs=yes
4796
 
  ;;
4797
 
 
4798
 
newsos6)
4799
 
  version_type=linux
4800
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4801
 
  shlibpath_var=LD_LIBRARY_PATH
4802
 
  shlibpath_overrides_runpath=yes
4803
 
  ;;
4804
 
 
4805
 
openbsd*)
4806
 
  version_type=sunos
4807
 
  need_lib_prefix=no
4808
 
  need_version=no
4809
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4810
 
    case "$host_os" in
4811
 
    openbsd2.[89] | openbsd2.[89].*)
4812
 
      shlibpath_overrides_runpath=no
4813
 
      ;;
4814
 
    *)
4815
 
      shlibpath_overrides_runpath=yes
4816
 
      ;;
4817
 
    esac
4818
 
  else
4819
 
    shlibpath_overrides_runpath=yes
4820
 
  fi
4821
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4822
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4823
 
  shlibpath_var=LD_LIBRARY_PATH
4824
 
  ;;
4825
 
 
4826
 
os2*)
4827
 
  libname_spec='$name'
4828
 
  need_lib_prefix=no
4829
 
  library_names_spec='$libname.dll $libname.a'
4830
 
  dynamic_linker='OS/2 ld.exe'
4831
 
  shlibpath_var=LIBPATH
4832
 
  ;;
4833
 
 
4834
 
osf3* | osf4* | osf5*)
4835
 
  version_type=osf
4836
 
  need_version=no
4837
 
  need_lib_prefix=no
4838
 
  soname_spec='${libname}${release}.so'
4839
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4840
 
  shlibpath_var=LD_LIBRARY_PATH
4841
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4842
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4843
 
  ;;
4844
 
 
4845
 
sco3.2v5*)
4846
 
  version_type=osf
4847
 
  soname_spec='${libname}${release}.so$major'
4848
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4849
 
  shlibpath_var=LD_LIBRARY_PATH
4850
 
  ;;
4851
 
 
4852
 
solaris*)
4853
 
  version_type=linux
4854
 
  need_lib_prefix=no
4855
 
  need_version=no
4856
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4857
 
  soname_spec='${libname}${release}.so$major'
4858
 
  shlibpath_var=LD_LIBRARY_PATH
4859
 
  shlibpath_overrides_runpath=yes
4860
 
  hardcode_into_libs=yes
4861
 
  # ldd complains unless libraries are executable
4862
 
  postinstall_cmds='chmod +x $lib'
4863
 
  ;;
4864
 
 
4865
 
sunos4*)
4866
 
  version_type=sunos
4867
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4868
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4869
 
  shlibpath_var=LD_LIBRARY_PATH
4870
 
  shlibpath_overrides_runpath=yes
4871
 
  if test "$with_gnu_ld" = yes; then
4872
 
    need_lib_prefix=no
4873
 
  fi
4874
 
  need_version=yes
4875
 
  ;;
4876
 
 
4877
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4878
 
  version_type=linux
4879
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4880
 
  soname_spec='${libname}${release}.so$major'
4881
 
  shlibpath_var=LD_LIBRARY_PATH
4882
 
  case $host_vendor in
4883
 
    sni)
4884
 
      shlibpath_overrides_runpath=no
4885
 
      ;;
4886
 
    motorola)
4887
 
      need_lib_prefix=no
4888
 
      need_version=no
4889
 
      shlibpath_overrides_runpath=no
4890
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4891
 
      ;;
4892
 
  esac
4893
 
  ;;
4894
 
 
4895
 
uts4*)
4896
 
  version_type=linux
4897
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4898
 
  soname_spec='${libname}${release}.so$major'
4899
 
  shlibpath_var=LD_LIBRARY_PATH
4900
 
  ;;
4901
 
 
4902
 
dgux*)
4903
 
  version_type=linux
4904
 
  need_lib_prefix=no
4905
 
  need_version=no
4906
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4907
 
  soname_spec='${libname}${release}.so$major'
4908
 
  shlibpath_var=LD_LIBRARY_PATH
4909
 
  ;;
4910
 
 
4911
 
sysv4*MP*)
4912
 
  if test -d /usr/nec ;then
4913
 
    version_type=linux
4914
 
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4915
 
    soname_spec='$libname.so.$major'
4916
 
    shlibpath_var=LD_LIBRARY_PATH
4917
 
  fi
4918
 
  ;;
4919
 
 
4920
 
*)
4921
 
  dynamic_linker=no
4922
 
  ;;
4923
 
esac
4924
 
echo "$ac_t""$dynamic_linker" 1>&6
4925
 
test "$dynamic_linker" = no && can_build_shared=no
4926
 
 
4927
 
# Report the final consequences.
4928
 
echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4929
 
echo "configure:4930: checking if libtool supports shared libraries" >&5
4930
 
echo "$ac_t""$can_build_shared" 1>&6
4931
 
 
4932
 
echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
4933
 
echo "configure:4934: checking whether to build shared libraries" >&5
 
10096
 
 
10097
    CPPFLAGS="$save_CPPFLAGS"
 
10098
    LDFLAGS="$save_LDFLAGS"
 
10099
    LIBS="$save_LIBS"
 
10100
    ;;
 
10101
  esac
 
10102
 
 
10103
  case $lt_cv_dlopen_self in
 
10104
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10105
  *) enable_dlopen_self=unknown ;;
 
10106
  esac
 
10107
 
 
10108
  case $lt_cv_dlopen_self_static in
 
10109
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10110
  *) enable_dlopen_self_static=unknown ;;
 
10111
  esac
 
10112
fi
 
10113
 
 
10114
 
 
10115
# Report which librarie types wil actually be built
 
10116
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10117
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
10118
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10119
echo "${ECHO_T}$can_build_shared" >&6
 
10120
 
 
10121
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10122
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
4934
10123
test "$can_build_shared" = "no" && enable_shared=no
4935
10124
 
4936
10125
# On AIX, shared libraries and static libraries use the same namespace, and
4944
10133
  fi
4945
10134
  ;;
4946
10135
 
4947
 
aix4*)
 
10136
aix4* | aix5*)
4948
10137
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4949
10138
    test "$enable_shared" = yes && enable_static=no
4950
10139
  fi
4951
10140
  ;;
 
10141
  darwin* | rhapsody*)
 
10142
  if test "$GCC" = yes; then
 
10143
    archive_cmds_need_lc=no
 
10144
    case "$host_os" in
 
10145
    rhapsody* | darwin1.[012])
 
10146
      allow_undefined_flag='-undefined suppress'
 
10147
      ;;
 
10148
    *) # Darwin 1.3 on
 
10149
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10150
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
10151
      else
 
10152
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
10153
          10.[012])
 
10154
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
10155
            ;;
 
10156
          10.*)
 
10157
            allow_undefined_flag='-undefined dynamic_lookup'
 
10158
            ;;
 
10159
        esac
 
10160
      fi
 
10161
      ;;
 
10162
    esac
 
10163
    output_verbose_link_cmd='echo'
 
10164
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
10165
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10166
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
10167
    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}'
 
10168
    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}'
 
10169
    hardcode_direct=no
 
10170
    hardcode_automatic=yes
 
10171
    hardcode_shlibpath_var=unsupported
 
10172
    whole_archive_flag_spec='-all_load $convenience'
 
10173
    link_all_deplibs=yes
 
10174
  else
 
10175
    ld_shlibs=no
 
10176
  fi
 
10177
    ;;
4952
10178
esac
4953
 
echo "$ac_t""$enable_shared" 1>&6
 
10179
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10180
echo "${ECHO_T}$enable_shared" >&6
4954
10181
 
4955
 
echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
4956
 
echo "configure:4957: checking whether to build static libraries" >&5
 
10182
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10183
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
4957
10184
# Make sure either enable_shared or enable_static is yes.
4958
10185
test "$enable_shared" = yes || enable_static=yes
4959
 
echo "$ac_t""$enable_static" 1>&6
4960
 
 
4961
 
if test "$hardcode_action" = relink; then
4962
 
  # Fast installation is not supported
4963
 
  enable_fast_install=no
4964
 
elif test "$shlibpath_overrides_runpath" = yes ||
4965
 
     test "$enable_shared" = no; then
4966
 
  # Fast installation is not necessary
4967
 
  enable_fast_install=needless
4968
 
fi
4969
 
 
4970
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4971
 
if test "$GCC" = yes; then
4972
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4973
 
fi
4974
 
 
4975
 
if test "x$enable_dlopen" != xyes; then
4976
 
  enable_dlopen=unknown
4977
 
  enable_dlopen_self=unknown
4978
 
  enable_dlopen_self_static=unknown
4979
 
else
4980
 
  lt_cv_dlopen=no
4981
 
  lt_cv_dlopen_libs=
4982
 
 
4983
 
  case $host_os in
4984
 
  beos*)
4985
 
    lt_cv_dlopen="load_add_on"
4986
 
    lt_cv_dlopen_libs=
4987
 
    lt_cv_dlopen_self=yes
4988
 
    ;;
4989
 
 
4990
 
  cygwin* | mingw* | pw32*)
4991
 
    lt_cv_dlopen="LoadLibrary"
4992
 
    lt_cv_dlopen_libs=
4993
 
   ;;
4994
 
 
4995
 
  *)
4996
 
    echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4997
 
echo "configure:4998: checking for shl_load" >&5
4998
 
if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4999
 
  echo $ac_n "(cached) $ac_c" 1>&6
5000
 
else
5001
 
  cat > conftest.$ac_ext <<EOF
5002
 
#line 5003 "configure"
5003
 
#include "confdefs.h"
5004
 
/* System header to define __stub macros and hopefully few prototypes,
5005
 
    which can conflict with char shl_load(); below.  */
5006
 
#include <assert.h>
5007
 
/* Override any gcc2 internal prototype to avoid an error.  */
5008
 
/* We use char because int might match the return type of a gcc2
5009
 
    builtin and then its argument prototype would still apply.  */
5010
 
char shl_load();
5011
 
 
5012
 
int main() {
5013
 
 
5014
 
/* The GNU C library defines this for functions which it implements
5015
 
    to always fail with ENOSYS.  Some functions are actually named
5016
 
    something starting with __ and the normal name is an alias.  */
5017
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
5018
 
choke me
5019
 
#else
5020
 
shl_load();
5021
 
#endif
5022
 
 
5023
 
; return 0; }
5024
 
EOF
5025
 
if { (eval echo configure:5026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5026
 
  rm -rf conftest*
5027
 
  eval "ac_cv_func_shl_load=yes"
5028
 
else
5029
 
  echo "configure: failed program was:" >&5
5030
 
  cat conftest.$ac_ext >&5
5031
 
  rm -rf conftest*
5032
 
  eval "ac_cv_func_shl_load=no"
5033
 
fi
5034
 
rm -f conftest*
5035
 
fi
5036
 
 
5037
 
if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
5038
 
  echo "$ac_t""yes" 1>&6
5039
 
  lt_cv_dlopen="shl_load"
5040
 
else
5041
 
  echo "$ac_t""no" 1>&6
5042
 
echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
5043
 
echo "configure:5044: checking for shl_load in -ldld" >&5
5044
 
ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
5045
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5046
 
  echo $ac_n "(cached) $ac_c" 1>&6
5047
 
else
5048
 
  ac_save_LIBS="$LIBS"
5049
 
LIBS="-ldld  $LIBS"
5050
 
cat > conftest.$ac_ext <<EOF
5051
 
#line 5052 "configure"
5052
 
#include "confdefs.h"
5053
 
/* Override any gcc2 internal prototype to avoid an error.  */
5054
 
/* We use char because int might match the return type of a gcc2
5055
 
    builtin and then its argument prototype would still apply.  */
5056
 
char shl_load();
5057
 
 
5058
 
int main() {
5059
 
shl_load()
5060
 
; return 0; }
5061
 
EOF
5062
 
if { (eval echo configure:5063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5063
 
  rm -rf conftest*
5064
 
  eval "ac_cv_lib_$ac_lib_var=yes"
5065
 
else
5066
 
  echo "configure: failed program was:" >&5
5067
 
  cat conftest.$ac_ext >&5
5068
 
  rm -rf conftest*
5069
 
  eval "ac_cv_lib_$ac_lib_var=no"
5070
 
fi
5071
 
rm -f conftest*
5072
 
LIBS="$ac_save_LIBS"
5073
 
 
5074
 
fi
5075
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5076
 
  echo "$ac_t""yes" 1>&6
5077
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5078
 
else
5079
 
  echo "$ac_t""no" 1>&6
5080
 
echo $ac_n "checking for dlopen""... $ac_c" 1>&6
5081
 
echo "configure:5082: checking for dlopen" >&5
5082
 
if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
5083
 
  echo $ac_n "(cached) $ac_c" 1>&6
5084
 
else
5085
 
  cat > conftest.$ac_ext <<EOF
5086
 
#line 5087 "configure"
5087
 
#include "confdefs.h"
5088
 
/* System header to define __stub macros and hopefully few prototypes,
5089
 
    which can conflict with char dlopen(); below.  */
5090
 
#include <assert.h>
5091
 
/* Override any gcc2 internal prototype to avoid an error.  */
5092
 
/* We use char because int might match the return type of a gcc2
5093
 
    builtin and then its argument prototype would still apply.  */
5094
 
char dlopen();
5095
 
 
5096
 
int main() {
5097
 
 
5098
 
/* The GNU C library defines this for functions which it implements
5099
 
    to always fail with ENOSYS.  Some functions are actually named
5100
 
    something starting with __ and the normal name is an alias.  */
5101
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
5102
 
choke me
5103
 
#else
5104
 
dlopen();
5105
 
#endif
5106
 
 
5107
 
; return 0; }
5108
 
EOF
5109
 
if { (eval echo configure:5110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5110
 
  rm -rf conftest*
5111
 
  eval "ac_cv_func_dlopen=yes"
5112
 
else
5113
 
  echo "configure: failed program was:" >&5
5114
 
  cat conftest.$ac_ext >&5
5115
 
  rm -rf conftest*
5116
 
  eval "ac_cv_func_dlopen=no"
5117
 
fi
5118
 
rm -f conftest*
5119
 
fi
5120
 
 
5121
 
if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
5122
 
  echo "$ac_t""yes" 1>&6
5123
 
  lt_cv_dlopen="dlopen"
5124
 
else
5125
 
  echo "$ac_t""no" 1>&6
5126
 
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5127
 
echo "configure:5128: checking for dlopen in -ldl" >&5
5128
 
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5129
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5130
 
  echo $ac_n "(cached) $ac_c" 1>&6
5131
 
else
5132
 
  ac_save_LIBS="$LIBS"
5133
 
LIBS="-ldl  $LIBS"
5134
 
cat > conftest.$ac_ext <<EOF
5135
 
#line 5136 "configure"
5136
 
#include "confdefs.h"
5137
 
/* Override any gcc2 internal prototype to avoid an error.  */
5138
 
/* We use char because int might match the return type of a gcc2
5139
 
    builtin and then its argument prototype would still apply.  */
5140
 
char dlopen();
5141
 
 
5142
 
int main() {
5143
 
dlopen()
5144
 
; return 0; }
5145
 
EOF
5146
 
if { (eval echo configure:5147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5147
 
  rm -rf conftest*
5148
 
  eval "ac_cv_lib_$ac_lib_var=yes"
5149
 
else
5150
 
  echo "configure: failed program was:" >&5
5151
 
  cat conftest.$ac_ext >&5
5152
 
  rm -rf conftest*
5153
 
  eval "ac_cv_lib_$ac_lib_var=no"
5154
 
fi
5155
 
rm -f conftest*
5156
 
LIBS="$ac_save_LIBS"
5157
 
 
5158
 
fi
5159
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5160
 
  echo "$ac_t""yes" 1>&6
5161
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5162
 
else
5163
 
  echo "$ac_t""no" 1>&6
5164
 
echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
5165
 
echo "configure:5166: checking for dlopen in -lsvld" >&5
5166
 
ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
5167
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5168
 
  echo $ac_n "(cached) $ac_c" 1>&6
5169
 
else
5170
 
  ac_save_LIBS="$LIBS"
5171
 
LIBS="-lsvld  $LIBS"
5172
 
cat > conftest.$ac_ext <<EOF
5173
 
#line 5174 "configure"
5174
 
#include "confdefs.h"
5175
 
/* Override any gcc2 internal prototype to avoid an error.  */
5176
 
/* We use char because int might match the return type of a gcc2
5177
 
    builtin and then its argument prototype would still apply.  */
5178
 
char dlopen();
5179
 
 
5180
 
int main() {
5181
 
dlopen()
5182
 
; return 0; }
5183
 
EOF
5184
 
if { (eval echo configure:5185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5185
 
  rm -rf conftest*
5186
 
  eval "ac_cv_lib_$ac_lib_var=yes"
5187
 
else
5188
 
  echo "configure: failed program was:" >&5
5189
 
  cat conftest.$ac_ext >&5
5190
 
  rm -rf conftest*
5191
 
  eval "ac_cv_lib_$ac_lib_var=no"
5192
 
fi
5193
 
rm -f conftest*
5194
 
LIBS="$ac_save_LIBS"
5195
 
 
5196
 
fi
5197
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5198
 
  echo "$ac_t""yes" 1>&6
5199
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5200
 
else
5201
 
  echo "$ac_t""no" 1>&6
5202
 
echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
5203
 
echo "configure:5204: checking for dld_link in -ldld" >&5
5204
 
ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
5205
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5206
 
  echo $ac_n "(cached) $ac_c" 1>&6
5207
 
else
5208
 
  ac_save_LIBS="$LIBS"
5209
 
LIBS="-ldld  $LIBS"
5210
 
cat > conftest.$ac_ext <<EOF
5211
 
#line 5212 "configure"
5212
 
#include "confdefs.h"
5213
 
/* Override any gcc2 internal prototype to avoid an error.  */
5214
 
/* We use char because int might match the return type of a gcc2
5215
 
    builtin and then its argument prototype would still apply.  */
5216
 
char dld_link();
5217
 
 
5218
 
int main() {
5219
 
dld_link()
5220
 
; return 0; }
5221
 
EOF
5222
 
if { (eval echo configure:5223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5223
 
  rm -rf conftest*
5224
 
  eval "ac_cv_lib_$ac_lib_var=yes"
5225
 
else
5226
 
  echo "configure: failed program was:" >&5
5227
 
  cat conftest.$ac_ext >&5
5228
 
  rm -rf conftest*
5229
 
  eval "ac_cv_lib_$ac_lib_var=no"
5230
 
fi
5231
 
rm -f conftest*
5232
 
LIBS="$ac_save_LIBS"
5233
 
 
5234
 
fi
5235
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5236
 
  echo "$ac_t""yes" 1>&6
5237
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
5238
 
else
5239
 
  echo "$ac_t""no" 1>&6
5240
 
fi
5241
 
 
5242
 
              
5243
 
fi
5244
 
 
5245
 
            
5246
 
fi
5247
 
 
5248
 
          
5249
 
fi
5250
 
 
5251
 
        
5252
 
fi
5253
 
 
5254
 
      
5255
 
fi
5256
 
 
5257
 
    ;;
5258
 
  esac
5259
 
 
5260
 
  if test "x$lt_cv_dlopen" != xno; then
5261
 
    enable_dlopen=yes
5262
 
  else
5263
 
    enable_dlopen=no
5264
 
  fi
5265
 
 
5266
 
  case $lt_cv_dlopen in
5267
 
  dlopen)
5268
 
    save_CPPFLAGS="$CPPFLAGS"
5269
 
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5270
 
 
5271
 
    save_LDFLAGS="$LDFLAGS"
5272
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5273
 
 
5274
 
    save_LIBS="$LIBS"
5275
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
5276
 
 
5277
 
    echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
5278
 
echo "configure:5279: checking whether a program can dlopen itself" >&5
5279
 
if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
5280
 
  echo $ac_n "(cached) $ac_c" 1>&6
5281
 
else
5282
 
          if test "$cross_compiling" = yes; then :
5283
 
  lt_cv_dlopen_self=cross
5284
 
else
5285
 
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5286
 
  lt_status=$lt_dlunknown
5287
 
  cat > conftest.$ac_ext <<EOF
5288
 
#line 5289 "configure"
5289
 
#include "confdefs.h"
5290
 
 
5291
 
#if HAVE_DLFCN_H
5292
 
#include <dlfcn.h>
5293
 
#endif
5294
 
 
5295
 
#include <stdio.h>
5296
 
 
5297
 
#ifdef RTLD_GLOBAL
5298
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
5299
 
#else
5300
 
#  ifdef DL_GLOBAL
5301
 
#    define LT_DLGLOBAL         DL_GLOBAL
5302
 
#  else
5303
 
#    define LT_DLGLOBAL         0
5304
 
#  endif
5305
 
#endif
5306
 
 
5307
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5308
 
   find out it does not work in some platform. */
5309
 
#ifndef LT_DLLAZY_OR_NOW
5310
 
#  ifdef RTLD_LAZY
5311
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
5312
 
#  else
5313
 
#    ifdef DL_LAZY
5314
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
5315
 
#    else
5316
 
#      ifdef RTLD_NOW
5317
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
5318
 
#      else
5319
 
#        ifdef DL_NOW
5320
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
5321
 
#        else
5322
 
#          define LT_DLLAZY_OR_NOW      0
5323
 
#        endif
5324
 
#      endif
5325
 
#    endif
5326
 
#  endif
5327
 
#endif
5328
 
 
5329
 
#ifdef __cplusplus
5330
 
extern "C" void exit (int);
5331
 
#endif
5332
 
 
5333
 
void fnord() { int i=42;}
5334
 
int main ()
5335
 
{
5336
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5337
 
  int status = $lt_dlunknown;
5338
 
 
5339
 
  if (self)
5340
 
    {
5341
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
5342
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5343
 
      /* dlclose (self); */
5344
 
    }
5345
 
 
5346
 
    exit (status);
5347
 
}
5348
 
EOF
5349
 
  if { (eval echo configure:5350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
5350
 
    (./conftest; exit; ) 2>/dev/null
5351
 
    lt_status=$?
5352
 
    case x$lt_status in
5353
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5354
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5355
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
5356
 
    esac
5357
 
  else :
5358
 
    # compilation failed
5359
 
    lt_cv_dlopen_self=no
5360
 
  fi
5361
 
fi
5362
 
rm -fr conftest*
5363
 
 
5364
 
    
5365
 
fi
5366
 
 
5367
 
echo "$ac_t""$lt_cv_dlopen_self" 1>&6
5368
 
 
5369
 
    if test "x$lt_cv_dlopen_self" = xyes; then
5370
 
      LDFLAGS="$LDFLAGS $link_static_flag"
5371
 
      echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
5372
 
echo "configure:5373: checking whether a statically linked program can dlopen itself" >&5
5373
 
if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
5374
 
  echo $ac_n "(cached) $ac_c" 1>&6
5375
 
else
5376
 
          if test "$cross_compiling" = yes; then :
5377
 
  lt_cv_dlopen_self_static=cross
5378
 
else
5379
 
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5380
 
  lt_status=$lt_dlunknown
5381
 
  cat > conftest.$ac_ext <<EOF
5382
 
#line 5383 "configure"
5383
 
#include "confdefs.h"
5384
 
 
5385
 
#if HAVE_DLFCN_H
5386
 
#include <dlfcn.h>
5387
 
#endif
5388
 
 
5389
 
#include <stdio.h>
5390
 
 
5391
 
#ifdef RTLD_GLOBAL
5392
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
5393
 
#else
5394
 
#  ifdef DL_GLOBAL
5395
 
#    define LT_DLGLOBAL         DL_GLOBAL
5396
 
#  else
5397
 
#    define LT_DLGLOBAL         0
5398
 
#  endif
5399
 
#endif
5400
 
 
5401
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5402
 
   find out it does not work in some platform. */
5403
 
#ifndef LT_DLLAZY_OR_NOW
5404
 
#  ifdef RTLD_LAZY
5405
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
5406
 
#  else
5407
 
#    ifdef DL_LAZY
5408
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
5409
 
#    else
5410
 
#      ifdef RTLD_NOW
5411
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
5412
 
#      else
5413
 
#        ifdef DL_NOW
5414
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
5415
 
#        else
5416
 
#          define LT_DLLAZY_OR_NOW      0
5417
 
#        endif
5418
 
#      endif
5419
 
#    endif
5420
 
#  endif
5421
 
#endif
5422
 
 
5423
 
#ifdef __cplusplus
5424
 
extern "C" void exit (int);
5425
 
#endif
5426
 
 
5427
 
void fnord() { int i=42;}
5428
 
int main ()
5429
 
{
5430
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5431
 
  int status = $lt_dlunknown;
5432
 
 
5433
 
  if (self)
5434
 
    {
5435
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
5436
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5437
 
      /* dlclose (self); */
5438
 
    }
5439
 
 
5440
 
    exit (status);
5441
 
}
5442
 
EOF
5443
 
  if { (eval echo configure:5444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
5444
 
    (./conftest; exit; ) 2>/dev/null
5445
 
    lt_status=$?
5446
 
    case x$lt_status in
5447
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
5448
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
5449
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
5450
 
    esac
5451
 
  else :
5452
 
    # compilation failed
5453
 
    lt_cv_dlopen_self_static=no
5454
 
  fi
5455
 
fi
5456
 
rm -fr conftest*
5457
 
 
5458
 
      
5459
 
fi
5460
 
 
5461
 
echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
5462
 
    fi
5463
 
 
5464
 
    CPPFLAGS="$save_CPPFLAGS"
5465
 
    LDFLAGS="$save_LDFLAGS"
5466
 
    LIBS="$save_LIBS"
5467
 
    ;;
5468
 
  esac
5469
 
 
5470
 
  case $lt_cv_dlopen_self in
5471
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
5472
 
  *) enable_dlopen_self=unknown ;;
5473
 
  esac
5474
 
 
5475
 
  case $lt_cv_dlopen_self_static in
5476
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
5477
 
  *) enable_dlopen_self_static=unknown ;;
5478
 
  esac
5479
 
fi
5480
 
 
5481
 
 
5482
 
if test "$enable_shared" = yes && test "$GCC" = yes; then
5483
 
  case $archive_cmds in
5484
 
  *'~'*)
5485
 
    # FIXME: we may have to deal with multi-command sequences.
5486
 
    ;;
5487
 
  '$CC '*)
5488
 
    # Test whether the compiler implicitly links with -lc since on some
5489
 
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
5490
 
    # to ld, don't add -lc before -lgcc.
5491
 
    echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
5492
 
echo "configure:5493: checking whether -lc should be explicitly linked in" >&5
5493
 
    if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
5494
 
  echo $ac_n "(cached) $ac_c" 1>&6
5495
 
else
5496
 
  $rm conftest*
5497
 
    echo 'static int dummy;' > conftest.$ac_ext
5498
 
 
5499
 
    if { (eval echo configure:5500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5500
 
      soname=conftest
5501
 
      lib=conftest
5502
 
      libobjs=conftest.$ac_objext
5503
 
      deplibs=
5504
 
      wl=$lt_cv_prog_cc_wl
5505
 
      compiler_flags=-v
5506
 
      linker_flags=-v
5507
 
      verstring=
5508
 
      output_objdir=.
5509
 
      libname=conftest
5510
 
      save_allow_undefined_flag=$allow_undefined_flag
5511
 
      allow_undefined_flag=
5512
 
      if { (eval echo configure:5513: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
5513
 
      then
5514
 
        lt_cv_archive_cmds_need_lc=no
5515
 
      else
5516
 
        lt_cv_archive_cmds_need_lc=yes
5517
 
      fi
5518
 
      allow_undefined_flag=$save_allow_undefined_flag
5519
 
    else
5520
 
      cat conftest.err 1>&5
5521
 
    fi
5522
 
fi
5523
 
 
5524
 
    echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
5525
 
    ;;
5526
 
  esac
5527
 
fi
5528
 
need_lc=${lt_cv_archive_cmds_need_lc-yes}
5529
 
 
5530
 
# The second clause should only fire when bootstrapping the
 
10186
echo "$as_me:$LINENO: result: $enable_static" >&5
 
10187
echo "${ECHO_T}$enable_static" >&6
 
10188
 
 
10189
# The else clause should only fire when bootstrapping the
5531
10190
# libtool distribution, otherwise you forgot to ship ltmain.sh
5532
10191
# with your package, and you will get complaints that there are
5533
10192
# no rules to generate ltmain.sh.
5534
10193
if test -f "$ltmain"; then
5535
 
  :
5536
 
else
5537
 
  # If there is no Makefile yet, we rely on a make rule to execute
5538
 
  # `config.status --recheck' to rerun these tests and create the
5539
 
  # libtool script then.
5540
 
  test -f Makefile && make "$ltmain"
5541
 
fi
5542
 
 
5543
 
if test -f "$ltmain"; then
5544
 
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
5545
 
  $rm -f "${ofile}T"
5546
 
 
5547
 
  echo creating $ofile
5548
 
 
 
10194
  # See if we are running on zsh, and set the options which allow our commands through
 
10195
  # without removal of \ escapes.
 
10196
  if test -n "${ZSH_VERSION+set}" ; then
 
10197
    setopt NO_GLOB_SUBST
 
10198
  fi
5549
10199
  # Now quote all the things that may contain metacharacters while being
5550
10200
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
5551
10201
  # variables and quote the copies for generation of the libtool script.
5552
 
  for var in echo old_CC old_CFLAGS \
5553
 
    AR AR_FLAGS CC LD LN_S NM SHELL \
5554
 
    reload_flag reload_cmds wl \
5555
 
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
5556
 
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
5557
 
    library_names_spec soname_spec \
5558
 
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
5559
 
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
5560
 
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
5561
 
    old_striplib striplib file_magic_cmd export_symbols_cmds \
5562
 
    deplibs_check_method allow_undefined_flag no_undefined_flag \
5563
 
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
5564
 
    global_symbol_to_c_name_address \
5565
 
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
 
10202
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
10203
    SED SHELL STRIP \
 
10204
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10205
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10206
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10207
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10208
    lt_cv_sys_global_symbol_to_c_name_address \
5566
10209
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5567
 
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
 
10210
    old_postinstall_cmds old_postuninstall_cmds \
 
10211
    compiler \
 
10212
    CC \
 
10213
    LD \
 
10214
    lt_prog_compiler_wl \
 
10215
    lt_prog_compiler_pic \
 
10216
    lt_prog_compiler_static \
 
10217
    lt_prog_compiler_no_builtin_flag \
 
10218
    export_dynamic_flag_spec \
 
10219
    thread_safe_flag_spec \
 
10220
    whole_archive_flag_spec \
 
10221
    enable_shared_with_static_runtimes \
 
10222
    old_archive_cmds \
 
10223
    old_archive_from_new_cmds \
 
10224
    predep_objects \
 
10225
    postdep_objects \
 
10226
    predeps \
 
10227
    postdeps \
 
10228
    compiler_lib_search_path \
 
10229
    archive_cmds \
 
10230
    archive_expsym_cmds \
 
10231
    postinstall_cmds \
 
10232
    postuninstall_cmds \
 
10233
    old_archive_from_expsyms_cmds \
 
10234
    allow_undefined_flag \
 
10235
    no_undefined_flag \
 
10236
    export_symbols_cmds \
 
10237
    hardcode_libdir_flag_spec \
 
10238
    hardcode_libdir_flag_spec_ld \
 
10239
    hardcode_libdir_separator \
 
10240
    hardcode_automatic \
 
10241
    module_cmds \
 
10242
    module_expsym_cmds \
 
10243
    lt_cv_prog_compiler_c_o \
 
10244
    exclude_expsyms \
 
10245
    include_expsyms; do
5568
10246
 
5569
10247
    case $var in
5570
 
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
 
10248
    old_archive_cmds | \
 
10249
    old_archive_from_new_cmds | \
 
10250
    archive_cmds | \
 
10251
    archive_expsym_cmds | \
 
10252
    module_cmds | \
 
10253
    module_expsym_cmds | \
 
10254
    old_archive_from_expsyms_cmds | \
 
10255
    export_symbols_cmds | \
 
10256
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10257
    postinstall_cmds | postuninstall_cmds | \
5571
10258
    old_postinstall_cmds | old_postuninstall_cmds | \
5572
 
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
5573
 
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
5574
 
    postinstall_cmds | postuninstall_cmds | \
5575
 
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10259
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5576
10260
      # Double-quote double-evaled strings.
5577
10261
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5578
10262
      ;;
5582
10266
    esac
5583
10267
  done
5584
10268
 
5585
 
  cat <<__EOF__ > "${ofile}T"
 
10269
  case $lt_echo in
 
10270
  *'\$0 --fallback-echo"')
 
10271
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10272
    ;;
 
10273
  esac
 
10274
 
 
10275
cfgfile="${ofile}T"
 
10276
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10277
  $rm -f "$cfgfile"
 
10278
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
10279
echo "$as_me: creating $ofile" >&6;}
 
10280
 
 
10281
  cat <<__EOF__ >> "$cfgfile"
5586
10282
#! $SHELL
5587
10283
 
5588
 
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10284
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5589
10285
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5590
10286
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5591
10287
#
5592
 
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
 
10288
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
10289
# Free Software Foundation, Inc.
 
10290
#
 
10291
# This file is part of GNU Libtool:
5593
10292
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5594
10293
#
5595
10294
# This program is free software; you can redistribute it and/or modify
5611
10310
# configuration script generated by Autoconf, you may include it under
5612
10311
# the same distribution terms that you use for the rest of that program.
5613
10312
 
 
10313
# A sed program that does not truncate output.
 
10314
SED=$lt_SED
 
10315
 
5614
10316
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5615
 
Xsed="sed -e s/^X//"
 
10317
Xsed="$SED -e s/^X//"
5616
10318
 
5617
10319
# The HP-UX ksh and POSIX shell print the target directory to stdout
5618
10320
# if CDPATH is set.
5619
10321
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5620
10322
 
 
10323
# The names of the tagged configurations supported by this script.
 
10324
available_tags=
 
10325
 
5621
10326
# ### BEGIN LIBTOOL CONFIG
5622
10327
 
5623
10328
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5632
10337
build_old_libs=$enable_static
5633
10338
 
5634
10339
# Whether or not to add -lc for building shared libraries.
5635
 
build_libtool_need_lc=$need_lc
 
10340
build_libtool_need_lc=$archive_cmds_need_lc
 
10341
 
 
10342
# Whether or not to disallow shared libs when runtime libs are static
 
10343
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
5636
10344
 
5637
10345
# Whether or not to optimize for fast installation.
5638
10346
fast_install=$enable_fast_install
5648
10356
AR=$lt_AR
5649
10357
AR_FLAGS=$lt_AR_FLAGS
5650
10358
 
5651
 
# The default C compiler.
5652
 
CC=$lt_CC
 
10359
# A C compiler.
 
10360
LTCC=$lt_LTCC
 
10361
 
 
10362
# A language-specific compiler.
 
10363
CC=$lt_compiler
5653
10364
 
5654
10365
# Is the compiler the GNU C compiler?
5655
10366
with_gcc=$GCC
5656
10367
 
 
10368
# An ERE matcher.
 
10369
EGREP=$lt_EGREP
 
10370
 
5657
10371
# The linker used to build libraries.
5658
10372
LD=$lt_LD
5659
10373
 
5664
10378
NM=$lt_NM
5665
10379
 
5666
10380
# A symbol stripping program
5667
 
STRIP=$STRIP
 
10381
STRIP=$lt_STRIP
5668
10382
 
5669
10383
# Used to examine libraries when file_magic_cmd begins "file"
5670
10384
MAGIC_CMD=$MAGIC_CMD
5686
10400
reload_cmds=$lt_reload_cmds
5687
10401
 
5688
10402
# How to pass a linker flag through the compiler.
5689
 
wl=$lt_wl
 
10403
wl=$lt_lt_prog_compiler_wl
5690
10404
 
5691
10405
# Object file suffix (normally "o").
5692
10406
objext="$ac_objext"
5694
10408
# Old archive suffix (normally "a").
5695
10409
libext="$libext"
5696
10410
 
 
10411
# Shared library suffix (normally ".so").
 
10412
shrext_cmds='$shrext_cmds'
 
10413
 
5697
10414
# Executable file suffix (normally "").
5698
10415
exeext="$exeext"
5699
10416
 
5700
10417
# Additional compiler flags for building library objects.
5701
 
pic_flag=$lt_pic_flag
 
10418
pic_flag=$lt_lt_prog_compiler_pic
5702
10419
pic_mode=$pic_mode
5703
10420
 
 
10421
# What is the maximum length of a command?
 
10422
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10423
 
5704
10424
# Does compiler simultaneously support -c and -o options?
5705
 
compiler_c_o=$lt_compiler_c_o
5706
 
 
5707
 
# Can we write directly to a .lo ?
5708
 
compiler_o_lo=$lt_compiler_o_lo
 
10425
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
5709
10426
 
5710
10427
# Must we lock files when doing compilation ?
5711
10428
need_locks=$lt_need_locks
5726
10443
dlopen_self_static=$enable_dlopen_self_static
5727
10444
 
5728
10445
# Compiler flag to prevent dynamic linking.
5729
 
link_static_flag=$lt_link_static_flag
 
10446
link_static_flag=$lt_lt_prog_compiler_static
5730
10447
 
5731
10448
# Compiler flag to turn off builtin functions.
5732
 
no_builtin_flag=$lt_no_builtin_flag
 
10449
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
5733
10450
 
5734
10451
# Compiler flag to allow reflexive dlopens.
5735
10452
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5771
10488
postinstall_cmds=$lt_postinstall_cmds
5772
10489
postuninstall_cmds=$lt_postuninstall_cmds
5773
10490
 
 
10491
# Commands used to build a loadable module (assumed same as above if empty)
 
10492
module_cmds=$lt_module_cmds
 
10493
module_expsym_cmds=$lt_module_expsym_cmds
 
10494
 
5774
10495
# Commands to strip libraries.
5775
10496
old_striplib=$lt_old_striplib
5776
10497
striplib=$lt_striplib
5777
10498
 
 
10499
# Dependencies to place before the objects being linked to create a
 
10500
# shared library.
 
10501
predep_objects=$lt_predep_objects
 
10502
 
 
10503
# Dependencies to place after the objects being linked to create a
 
10504
# shared library.
 
10505
postdep_objects=$lt_postdep_objects
 
10506
 
 
10507
# Dependencies to place before the objects being linked to create a
 
10508
# shared library.
 
10509
predeps=$lt_predeps
 
10510
 
 
10511
# Dependencies to place after the objects being linked to create a
 
10512
# shared library.
 
10513
postdeps=$lt_postdeps
 
10514
 
 
10515
# The library search path used internally by the compiler when linking
 
10516
# a shared library.
 
10517
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10518
 
5778
10519
# Method to check whether dependent libraries are shared objects.
5779
10520
deplibs_check_method=$lt_deplibs_check_method
5780
10521
 
5794
10535
finish_eval=$lt_finish_eval
5795
10536
 
5796
10537
# Take the output of nm and produce a listing of raw symbols and C names.
5797
 
global_symbol_pipe=$lt_global_symbol_pipe
 
10538
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5798
10539
 
5799
10540
# Transform the output of nm in a proper C declaration
5800
 
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
 
10541
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5801
10542
 
5802
10543
# Transform the output of nm in a C name address pair
5803
 
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
 
10544
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5804
10545
 
5805
10546
# This is the shared library runtime path variable.
5806
10547
runpath_var=$runpath_var
5821
10562
# This must work even if \$libdir does not exist.
5822
10563
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5823
10564
 
 
10565
# If ld is used when linking, flag to hardcode \$libdir into
 
10566
# a binary during linking. This must work even if \$libdir does
 
10567
# not exist.
 
10568
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
10569
 
5824
10570
# Whether we need a single -rpath flag with a separated argument.
5825
10571
hardcode_libdir_separator=$lt_hardcode_libdir_separator
5826
10572
 
5827
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
10573
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5828
10574
# resulting binary.
5829
10575
hardcode_direct=$hardcode_direct
5830
10576
 
5836
10582
# the resulting binary.
5837
10583
hardcode_shlibpath_var=$hardcode_shlibpath_var
5838
10584
 
 
10585
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
10586
# and all subsequent libraries and executables linked against it.
 
10587
hardcode_automatic=$hardcode_automatic
 
10588
 
5839
10589
# Variables whose values should be saved in libtool wrapper scripts and
5840
10590
# restored at relink time.
5841
10591
variables_saved_for_relink="$variables_saved_for_relink"
5871
10621
 
5872
10622
__EOF__
5873
10623
 
 
10624
 
5874
10625
  case $host_os in
5875
10626
  aix3*)
5876
 
    cat <<\EOF >> "${ofile}T"
 
10627
    cat <<\EOF >> "$cfgfile"
5877
10628
 
5878
10629
# AIX sometimes has problems with the GCC collect2 program.  For some
5879
10630
# reason, if we set the COLLECT_NAMES environment variable, the problems
5886
10637
    ;;
5887
10638
  esac
5888
10639
 
5889
 
  case $host_os in
5890
 
  cygwin* | mingw* | pw32* | os2*)
5891
 
    cat <<'EOF' >> "${ofile}T"
5892
 
      # This is a source program that is used to create dlls on Windows
5893
 
      # Don't remove nor modify the starting and closing comments
5894
 
# /* ltdll.c starts here */
5895
 
# #define WIN32_LEAN_AND_MEAN
5896
 
# #include <windows.h>
5897
 
# #undef WIN32_LEAN_AND_MEAN
5898
 
# #include <stdio.h>
5899
 
#
5900
 
# #ifndef __CYGWIN__
5901
 
# #  ifdef __CYGWIN32__
5902
 
# #    define __CYGWIN__ __CYGWIN32__
5903
 
# #  endif
5904
 
# #endif
5905
 
#
5906
 
# #ifdef __cplusplus
5907
 
# extern "C" {
5908
 
# #endif
5909
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5910
 
# #ifdef __cplusplus
5911
 
# }
5912
 
# #endif
5913
 
#
5914
 
# #ifdef __CYGWIN__
5915
 
# #include <cygwin/cygwin_dll.h>
5916
 
# DECLARE_CYGWIN_DLL( DllMain );
5917
 
# #endif
5918
 
# HINSTANCE __hDllInstance_base;
5919
 
#
5920
 
# BOOL APIENTRY
5921
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5922
 
# {
5923
 
#   __hDllInstance_base = hInst;
5924
 
#   return TRUE;
5925
 
# }
5926
 
# /* ltdll.c ends here */
5927
 
        # This is a source program that is used to create import libraries
5928
 
        # on Windows for dlls which lack them. Don't remove nor modify the
5929
 
        # starting and closing comments
5930
 
# /* impgen.c starts here */
5931
 
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
5932
 
#
5933
 
#  This file is part of GNU libtool.
5934
 
#
5935
 
#  This program is free software; you can redistribute it and/or modify
5936
 
#  it under the terms of the GNU General Public License as published by
5937
 
#  the Free Software Foundation; either version 2 of the License, or
5938
 
#  (at your option) any later version.
5939
 
#
5940
 
#  This program is distributed in the hope that it will be useful,
5941
 
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
5942
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5943
 
#  GNU General Public License for more details.
5944
 
#
5945
 
#  You should have received a copy of the GNU General Public License
5946
 
#  along with this program; if not, write to the Free Software
5947
 
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5948
 
#  */
5949
 
#
5950
 
# #include <stdio.h>            /* for printf() */
5951
 
# #include <unistd.h>           /* for open(), lseek(), read() */
5952
 
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
5953
 
# #include <string.h>           /* for strdup() */
5954
 
#
5955
 
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
5956
 
# #ifndef O_BINARY
5957
 
# #define O_BINARY 0
5958
 
# #endif
5959
 
#
5960
 
# static unsigned int
5961
 
# pe_get16 (fd, offset)
5962
 
#      int fd;
5963
 
#      int offset;
5964
 
# {
5965
 
#   unsigned char b[2];
5966
 
#   lseek (fd, offset, SEEK_SET);
5967
 
#   read (fd, b, 2);
5968
 
#   return b[0] + (b[1]<<8);
5969
 
# }
5970
 
#
5971
 
# static unsigned int
5972
 
# pe_get32 (fd, offset)
5973
 
#     int fd;
5974
 
#     int offset;
5975
 
# {
5976
 
#   unsigned char b[4];
5977
 
#   lseek (fd, offset, SEEK_SET);
5978
 
#   read (fd, b, 4);
5979
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5980
 
# }
5981
 
#
5982
 
# static unsigned int
5983
 
# pe_as32 (ptr)
5984
 
#      void *ptr;
5985
 
# {
5986
 
#   unsigned char *b = ptr;
5987
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5988
 
# }
5989
 
#
5990
 
# int
5991
 
# main (argc, argv)
5992
 
#     int argc;
5993
 
#     char *argv[];
5994
 
# {
5995
 
#     int dll;
5996
 
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5997
 
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
5998
 
#     unsigned long name_rvas, nexp;
5999
 
#     unsigned char *expdata, *erva;
6000
 
#     char *filename, *dll_name;
6001
 
#
6002
 
#     filename = argv[1];
6003
 
#
6004
 
#     dll = open(filename, O_RDONLY|O_BINARY);
6005
 
#     if (dll < 1)
6006
 
#       return 1;
6007
 
#
6008
 
#     dll_name = filename;
6009
 
#
6010
 
#     for (i=0; filename[i]; i++)
6011
 
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
6012
 
#           dll_name = filename + i +1;
6013
 
#
6014
 
#     pe_header_offset = pe_get32 (dll, 0x3c);
6015
 
#     opthdr_ofs = pe_header_offset + 4 + 20;
6016
 
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
6017
 
#
6018
 
#     if (num_entries < 1) /* no exports */
6019
 
#       return 1;
6020
 
#
6021
 
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
6022
 
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
6023
 
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6024
 
#     secptr = (pe_header_offset + 4 + 20 +
6025
 
#             pe_get16 (dll, pe_header_offset + 4 + 16));
6026
 
#
6027
 
#     expptr = 0;
6028
 
#     for (i = 0; i < nsections; i++)
6029
 
#     {
6030
 
#       char sname[8];
6031
 
#       unsigned long secptr1 = secptr + 40 * i;
6032
 
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6033
 
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6034
 
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6035
 
#       lseek(dll, secptr1, SEEK_SET);
6036
 
#       read(dll, sname, 8);
6037
 
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
6038
 
#       {
6039
 
#           expptr = fptr + (export_rva - vaddr);
6040
 
#           if (export_rva + export_size > vaddr + vsize)
6041
 
#               export_size = vsize - (export_rva - vaddr);
6042
 
#           break;
6043
 
#       }
6044
 
#     }
6045
 
#
6046
 
#     expdata = (unsigned char*)malloc(export_size);
6047
 
#     lseek (dll, expptr, SEEK_SET);
6048
 
#     read (dll, expdata, export_size);
6049
 
#     erva = expdata - export_rva;
6050
 
#
6051
 
#     nexp = pe_as32 (expdata+24);
6052
 
#     name_rvas = pe_as32 (expdata+32);
6053
 
#
6054
 
#     printf ("EXPORTS\n");
6055
 
#     for (i = 0; i<nexp; i++)
6056
 
#     {
6057
 
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6058
 
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6059
 
#     }
6060
 
#
6061
 
#     return 0;
6062
 
# }
6063
 
# /* impgen.c ends here */
6064
 
 
6065
 
EOF
6066
 
    ;;
6067
 
  esac
6068
 
 
6069
10640
  # We use sed instead of cat because bash on DJGPP gets confused if
6070
10641
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
6071
10642
  # text mode, it properly converts lines to CR/LF.  This bash problem
6072
10643
  # is reportedly fixed, but why not run on old versions too?
6073
 
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
 
10644
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
6074
10645
 
6075
 
  mv -f "${ofile}T" "$ofile" || \
6076
 
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
 
10646
  mv -f "$cfgfile" "$ofile" || \
 
10647
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
6077
10648
  chmod +x "$ofile"
6078
 
fi
6079
 
 
6080
 
 
 
10649
 
 
10650
else
 
10651
  # If there is no Makefile yet, we rely on a make rule to execute
 
10652
  # `config.status --recheck' to rerun these tests and create the
 
10653
  # libtool script then.
 
10654
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
10655
  if test -f "$ltmain_in"; then
 
10656
    test -f Makefile && make "$ltmain"
 
10657
  fi
 
10658
fi
 
10659
 
 
10660
 
 
10661
ac_ext=c
 
10662
ac_cpp='$CPP $CPPFLAGS'
 
10663
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10664
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10665
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10666
 
 
10667
CC="$lt_save_CC"
 
10668
 
 
10669
 
 
10670
# Check whether --with-tags or --without-tags was given.
 
10671
if test "${with_tags+set}" = set; then
 
10672
  withval="$with_tags"
 
10673
  tagnames="$withval"
 
10674
fi;
 
10675
 
 
10676
if test -f "$ltmain" && test -n "$tagnames"; then
 
10677
  if test ! -f "${ofile}"; then
 
10678
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
10679
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
10680
  fi
 
10681
 
 
10682
  if test -z "$LTCC"; then
 
10683
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
10684
    if test -z "$LTCC"; then
 
10685
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
10686
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
10687
    else
 
10688
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
10689
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
10690
    fi
 
10691
  fi
 
10692
 
 
10693
  # Extract list of available tagged configurations in $ofile.
 
10694
  # Note that this assumes the entire list is on one line.
 
10695
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
10696
 
 
10697
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10698
  for tagname in $tagnames; do
 
10699
    IFS="$lt_save_ifs"
 
10700
    # Check whether tagname contains only valid characters
 
10701
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
10702
    "") ;;
 
10703
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
10704
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
10705
   { (exit 1); exit 1; }; }
 
10706
        ;;
 
10707
    esac
 
10708
 
 
10709
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
10710
    then
 
10711
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
10712
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
10713
   { (exit 1); exit 1; }; }
 
10714
    fi
 
10715
 
 
10716
    # Update the list of available tags.
 
10717
    if test -n "$tagname"; then
 
10718
      echo appending configuration tag \"$tagname\" to $ofile
 
10719
 
 
10720
      case $tagname in
 
10721
      CXX)
 
10722
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
10723
          ac_ext=cc
 
10724
ac_cpp='$CXXCPP $CPPFLAGS'
 
10725
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10726
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10727
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
10728
 
 
10729
 
 
10730
 
 
10731
 
 
10732
archive_cmds_need_lc_CXX=no
 
10733
allow_undefined_flag_CXX=
 
10734
always_export_symbols_CXX=no
 
10735
archive_expsym_cmds_CXX=
 
10736
export_dynamic_flag_spec_CXX=
 
10737
hardcode_direct_CXX=no
 
10738
hardcode_libdir_flag_spec_CXX=
 
10739
hardcode_libdir_flag_spec_ld_CXX=
 
10740
hardcode_libdir_separator_CXX=
 
10741
hardcode_minus_L_CXX=no
 
10742
hardcode_automatic_CXX=no
 
10743
module_cmds_CXX=
 
10744
module_expsym_cmds_CXX=
 
10745
link_all_deplibs_CXX=unknown
 
10746
old_archive_cmds_CXX=$old_archive_cmds
 
10747
no_undefined_flag_CXX=
 
10748
whole_archive_flag_spec_CXX=
 
10749
enable_shared_with_static_runtimes_CXX=no
 
10750
 
 
10751
# Dependencies to place before and after the object being linked:
 
10752
predep_objects_CXX=
 
10753
postdep_objects_CXX=
 
10754
predeps_CXX=
 
10755
postdeps_CXX=
 
10756
compiler_lib_search_path_CXX=
 
10757
 
 
10758
# Source file extension for C++ test sources.
 
10759
ac_ext=cc
 
10760
 
 
10761
# Object file extension for compiled C++ test sources.
 
10762
objext=o
 
10763
objext_CXX=$objext
 
10764
 
 
10765
# Code to be used in simple compile tests
 
10766
lt_simple_compile_test_code="int some_variable = 0;\n"
 
10767
 
 
10768
# Code to be used in simple link tests
 
10769
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
10770
 
 
10771
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
10772
 
 
10773
# If no C compiler was specified, use CC.
 
10774
LTCC=${LTCC-"$CC"}
 
10775
 
 
10776
# Allow CC to be a program name with arguments.
 
10777
compiler=$CC
 
10778
 
 
10779
 
 
10780
# Allow CC to be a program name with arguments.
 
10781
lt_save_CC=$CC
 
10782
lt_save_LD=$LD
 
10783
lt_save_GCC=$GCC
 
10784
GCC=$GXX
 
10785
lt_save_with_gnu_ld=$with_gnu_ld
 
10786
lt_save_path_LD=$lt_cv_path_LD
 
10787
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
10788
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
10789
else
 
10790
  unset lt_cv_prog_gnu_ld
 
10791
fi
 
10792
if test -n "${lt_cv_path_LDCXX+set}"; then
 
10793
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
10794
else
 
10795
  unset lt_cv_path_LD
 
10796
fi
 
10797
test -z "${LDCXX+set}" || LD=$LDCXX
 
10798
CC=${CXX-"c++"}
 
10799
compiler=$CC
 
10800
compiler_CXX=$CC
 
10801
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
10802
 
 
10803
# We don't want -fno-exception wen compiling C++ code, so set the
 
10804
# no_builtin_flag separately
 
10805
if test "$GXX" = yes; then
 
10806
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
10807
else
 
10808
  lt_prog_compiler_no_builtin_flag_CXX=
 
10809
fi
 
10810
 
 
10811
if test "$GXX" = yes; then
 
10812
  # Set up default GNU C++ configuration
 
10813
 
 
10814
 
 
10815
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
10816
if test "${with_gnu_ld+set}" = set; then
 
10817
  withval="$with_gnu_ld"
 
10818
  test "$withval" = no || with_gnu_ld=yes
 
10819
else
 
10820
  with_gnu_ld=no
 
10821
fi;
 
10822
ac_prog=ld
 
10823
if test "$GCC" = yes; then
 
10824
  # Check if gcc -print-prog-name=ld gives a path.
 
10825
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10826
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
10827
  case $host in
 
10828
  *-*-mingw*)
 
10829
    # gcc leaves a trailing carriage return which upsets mingw
 
10830
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
10831
  *)
 
10832
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
10833
  esac
 
10834
  case $ac_prog in
 
10835
    # Accept absolute paths.
 
10836
    [\\/]* | ?:[\\/]*)
 
10837
      re_direlt='/[^/][^/]*/\.\./'
 
10838
      # Canonicalize the pathname of ld
 
10839
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
10840
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
10841
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
10842
      done
 
10843
      test -z "$LD" && LD="$ac_prog"
 
10844
      ;;
 
10845
  "")
 
10846
    # If it fails, then pretend we aren't using GCC.
 
10847
    ac_prog=ld
 
10848
    ;;
 
10849
  *)
 
10850
    # If it is relative, then search for the first ld in PATH.
 
10851
    with_gnu_ld=unknown
 
10852
    ;;
 
10853
  esac
 
10854
elif test "$with_gnu_ld" = yes; then
 
10855
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10856
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
10857
else
 
10858
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10859
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
10860
fi
 
10861
if test "${lt_cv_path_LD+set}" = set; then
 
10862
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10863
else
 
10864
  if test -z "$LD"; then
 
10865
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10866
  for ac_dir in $PATH; do
 
10867
    IFS="$lt_save_ifs"
 
10868
    test -z "$ac_dir" && ac_dir=.
 
10869
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
10870
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
10871
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
10872
      # but apparently some GNU ld's only accept -v.
 
10873
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
10874
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
10875
      *GNU* | *'with BFD'*)
 
10876
        test "$with_gnu_ld" != no && break
 
10877
        ;;
 
10878
      *)
 
10879
        test "$with_gnu_ld" != yes && break
 
10880
        ;;
 
10881
      esac
 
10882
    fi
 
10883
  done
 
10884
  IFS="$lt_save_ifs"
 
10885
else
 
10886
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
10887
fi
 
10888
fi
 
10889
 
 
10890
LD="$lt_cv_path_LD"
 
10891
if test -n "$LD"; then
 
10892
  echo "$as_me:$LINENO: result: $LD" >&5
 
10893
echo "${ECHO_T}$LD" >&6
 
10894
else
 
10895
  echo "$as_me:$LINENO: result: no" >&5
 
10896
echo "${ECHO_T}no" >&6
 
10897
fi
 
10898
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
10899
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
10900
   { (exit 1); exit 1; }; }
 
10901
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10902
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
10903
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10904
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10905
else
 
10906
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
10907
case `$LD -v 2>&1 </dev/null` in
 
10908
*GNU* | *'with BFD'*)
 
10909
  lt_cv_prog_gnu_ld=yes
 
10910
  ;;
 
10911
*)
 
10912
  lt_cv_prog_gnu_ld=no
 
10913
  ;;
 
10914
esac
 
10915
fi
 
10916
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10917
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
10918
with_gnu_ld=$lt_cv_prog_gnu_ld
 
10919
 
 
10920
 
 
10921
 
 
10922
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
10923
  # archiving commands below assume that GNU ld is being used.
 
10924
  if test "$with_gnu_ld" = yes; then
 
10925
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10926
    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'
 
10927
 
 
10928
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10929
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10930
 
 
10931
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10932
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
10933
    #     investigate it a little bit more. (MM)
 
10934
    wlarc='${wl}'
 
10935
 
 
10936
    # ancient GNU ld didn't support --whole-archive et. al.
 
10937
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
10938
        grep 'no-whole-archive' > /dev/null; then
 
10939
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10940
    else
 
10941
      whole_archive_flag_spec_CXX=
 
10942
    fi
 
10943
  else
 
10944
    with_gnu_ld=no
 
10945
    wlarc=
 
10946
 
 
10947
    # A generic and very simple default shared library creation
 
10948
    # command for GNU C++ for the case where it uses the native
 
10949
    # linker, instead of GNU ld.  If possible, this setting should
 
10950
    # overridden to take advantage of the native linker features on
 
10951
    # the platform it is being used on.
 
10952
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10953
  fi
 
10954
 
 
10955
  # Commands to make compiler produce verbose output that lists
 
10956
  # what "hidden" libraries, object files and flags are used when
 
10957
  # linking a shared library.
 
10958
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10959
 
 
10960
else
 
10961
  GXX=no
 
10962
  with_gnu_ld=no
 
10963
  wlarc=
 
10964
fi
 
10965
 
 
10966
# PORTME: fill in a description of your system's C++ link characteristics
 
10967
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10968
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
10969
ld_shlibs_CXX=yes
 
10970
case $host_os in
 
10971
  aix3*)
 
10972
    # FIXME: insert proper C++ library support
 
10973
    ld_shlibs_CXX=no
 
10974
    ;;
 
10975
  aix4* | aix5*)
 
10976
    if test "$host_cpu" = ia64; then
 
10977
      # On IA64, the linker does run time linking by default, so we don't
 
10978
      # have to do anything special.
 
10979
      aix_use_runtimelinking=no
 
10980
      exp_sym_flag='-Bexport'
 
10981
      no_entry_flag=""
 
10982
    else
 
10983
      aix_use_runtimelinking=no
 
10984
 
 
10985
      # Test if we are trying to use run time linking or normal
 
10986
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10987
      # need to do runtime linking.
 
10988
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
10989
        for ld_flag in $LDFLAGS; do
 
10990
          case $ld_flag in
 
10991
          *-brtl*)
 
10992
            aix_use_runtimelinking=yes
 
10993
            break
 
10994
            ;;
 
10995
          esac
 
10996
        done
 
10997
      esac
 
10998
 
 
10999
      exp_sym_flag='-bexport'
 
11000
      no_entry_flag='-bnoentry'
 
11001
    fi
 
11002
 
 
11003
    # When large executables or shared objects are built, AIX ld can
 
11004
    # have problems creating the table of contents.  If linking a library
 
11005
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11006
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11007
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11008
 
 
11009
    archive_cmds_CXX=''
 
11010
    hardcode_direct_CXX=yes
 
11011
    hardcode_libdir_separator_CXX=':'
 
11012
    link_all_deplibs_CXX=yes
 
11013
 
 
11014
    if test "$GXX" = yes; then
 
11015
      case $host_os in aix4.012|aix4.012.*)
 
11016
      # We only want to do this on AIX 4.2 and lower, the check
 
11017
      # below for broken collect2 doesn't work under 4.3+
 
11018
        collect2name=`${CC} -print-prog-name=collect2`
 
11019
        if test -f "$collect2name" && \
 
11020
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11021
        then
 
11022
          # We have reworked collect2
 
11023
          hardcode_direct_CXX=yes
 
11024
        else
 
11025
          # We have old collect2
 
11026
          hardcode_direct_CXX=unsupported
 
11027
          # It fails to find uninstalled libraries when the uninstalled
 
11028
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11029
          # to unsupported forces relinking
 
11030
          hardcode_minus_L_CXX=yes
 
11031
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11032
          hardcode_libdir_separator_CXX=
 
11033
        fi
 
11034
      esac
 
11035
      shared_flag='-shared'
 
11036
    else
 
11037
      # not using gcc
 
11038
      if test "$host_cpu" = ia64; then
 
11039
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11040
        # chokes on -Wl,-G. The following line is correct:
 
11041
        shared_flag='-G'
 
11042
      else
 
11043
        if test "$aix_use_runtimelinking" = yes; then
 
11044
          shared_flag='${wl}-G'
 
11045
        else
 
11046
          shared_flag='${wl}-bM:SRE'
 
11047
        fi
 
11048
      fi
 
11049
    fi
 
11050
 
 
11051
    # It seems that -bexpall does not export symbols beginning with
 
11052
    # underscore (_), so it is better to generate a list of symbols to export.
 
11053
    always_export_symbols_CXX=yes
 
11054
    if test "$aix_use_runtimelinking" = yes; then
 
11055
      # Warning - without using the other runtime loading flags (-brtl),
 
11056
      # -berok will link without error, but may produce a broken library.
 
11057
      allow_undefined_flag_CXX='-berok'
 
11058
      # Determine the default libpath from the value encoded in an empty executable.
 
11059
      cat >conftest.$ac_ext <<_ACEOF
 
11060
/* confdefs.h.  */
 
11061
_ACEOF
 
11062
cat confdefs.h >>conftest.$ac_ext
 
11063
cat >>conftest.$ac_ext <<_ACEOF
 
11064
/* end confdefs.h.  */
 
11065
 
 
11066
int
 
11067
main ()
 
11068
{
 
11069
 
 
11070
  ;
 
11071
  return 0;
 
11072
}
 
11073
_ACEOF
 
11074
rm -f conftest.$ac_objext conftest$ac_exeext
 
11075
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11076
  (eval $ac_link) 2>conftest.er1
 
11077
  ac_status=$?
 
11078
  grep -v '^ *+' conftest.er1 >conftest.err
 
11079
  rm -f conftest.er1
 
11080
  cat conftest.err >&5
 
11081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11082
  (exit $ac_status); } &&
 
11083
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
11084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11085
  (eval $ac_try) 2>&5
 
11086
  ac_status=$?
 
11087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11088
  (exit $ac_status); }; } &&
 
11089
         { ac_try='test -s conftest$ac_exeext'
 
11090
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11091
  (eval $ac_try) 2>&5
 
11092
  ac_status=$?
 
11093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11094
  (exit $ac_status); }; }; then
 
11095
 
 
11096
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11097
}'`
 
11098
# Check for a 64-bit object if we didn't find anything.
 
11099
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; }
 
11100
}'`; fi
 
11101
else
 
11102
  echo "$as_me: failed program was:" >&5
 
11103
sed 's/^/| /' conftest.$ac_ext >&5
 
11104
 
 
11105
fi
 
11106
rm -f conftest.err conftest.$ac_objext \
 
11107
      conftest$ac_exeext conftest.$ac_ext
 
11108
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11109
 
 
11110
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11111
 
 
11112
      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"
 
11113
     else
 
11114
      if test "$host_cpu" = ia64; then
 
11115
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11116
        allow_undefined_flag_CXX="-z nodefs"
 
11117
        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"
 
11118
      else
 
11119
        # Determine the default libpath from the value encoded in an empty executable.
 
11120
        cat >conftest.$ac_ext <<_ACEOF
 
11121
/* confdefs.h.  */
 
11122
_ACEOF
 
11123
cat confdefs.h >>conftest.$ac_ext
 
11124
cat >>conftest.$ac_ext <<_ACEOF
 
11125
/* end confdefs.h.  */
 
11126
 
 
11127
int
 
11128
main ()
 
11129
{
 
11130
 
 
11131
  ;
 
11132
  return 0;
 
11133
}
 
11134
_ACEOF
 
11135
rm -f conftest.$ac_objext conftest$ac_exeext
 
11136
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11137
  (eval $ac_link) 2>conftest.er1
 
11138
  ac_status=$?
 
11139
  grep -v '^ *+' conftest.er1 >conftest.err
 
11140
  rm -f conftest.er1
 
11141
  cat conftest.err >&5
 
11142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11143
  (exit $ac_status); } &&
 
11144
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
11145
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11146
  (eval $ac_try) 2>&5
 
11147
  ac_status=$?
 
11148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11149
  (exit $ac_status); }; } &&
 
11150
         { ac_try='test -s conftest$ac_exeext'
 
11151
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11152
  (eval $ac_try) 2>&5
 
11153
  ac_status=$?
 
11154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11155
  (exit $ac_status); }; }; then
 
11156
 
 
11157
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11158
}'`
 
11159
# Check for a 64-bit object if we didn't find anything.
 
11160
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; }
 
11161
}'`; fi
 
11162
else
 
11163
  echo "$as_me: failed program was:" >&5
 
11164
sed 's/^/| /' conftest.$ac_ext >&5
 
11165
 
 
11166
fi
 
11167
rm -f conftest.err conftest.$ac_objext \
 
11168
      conftest$ac_exeext conftest.$ac_ext
 
11169
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11170
 
 
11171
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11172
        # Warning - without using the other run time loading flags,
 
11173
        # -berok will link without error, but may produce a broken library.
 
11174
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11175
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11176
        # -bexpall does not export symbols beginning with underscore (_)
 
11177
        always_export_symbols_CXX=yes
 
11178
        # Exported symbols can be pulled into shared objects from archives
 
11179
        whole_archive_flag_spec_CXX=' '
 
11180
        archive_cmds_need_lc_CXX=yes
 
11181
        # This is similar to how AIX traditionally builds it's shared libraries.
 
11182
        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'
 
11183
      fi
 
11184
    fi
 
11185
    ;;
 
11186
  chorus*)
 
11187
    case $cc_basename in
 
11188
      *)
 
11189
        # FIXME: insert proper C++ library support
 
11190
        ld_shlibs_CXX=no
 
11191
        ;;
 
11192
    esac
 
11193
    ;;
 
11194
 
 
11195
  cygwin* | mingw* | pw32*)
 
11196
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11197
    # as there is no search path for DLLs.
 
11198
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11199
    allow_undefined_flag_CXX=unsupported
 
11200
    always_export_symbols_CXX=no
 
11201
    enable_shared_with_static_runtimes_CXX=yes
 
11202
 
 
11203
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11204
      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'
 
11205
      # If the export-symbols file already is a .def file (1st line
 
11206
      # is EXPORTS), use it as is; otherwise, prepend...
 
11207
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11208
        cp $export_symbols $output_objdir/$soname.def;
 
11209
      else
 
11210
        echo EXPORTS > $output_objdir/$soname.def;
 
11211
        cat $export_symbols >> $output_objdir/$soname.def;
 
11212
      fi~
 
11213
      $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'
 
11214
    else
 
11215
      ld_shlibs_CXX=no
 
11216
    fi
 
11217
  ;;
 
11218
 
 
11219
  darwin* | rhapsody*)
 
11220
  if test "$GXX" = yes; then
 
11221
    archive_cmds_need_lc_CXX=no
 
11222
    case "$host_os" in
 
11223
    rhapsody* | darwin1.[012])
 
11224
      allow_undefined_flag_CXX='-undefined suppress'
 
11225
      ;;
 
11226
    *) # Darwin 1.3 on
 
11227
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11228
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
11229
      else
 
11230
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
11231
          10.[012])
 
11232
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
11233
            ;;
 
11234
          10.*)
 
11235
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
 
11236
            ;;
 
11237
        esac
 
11238
      fi
 
11239
      ;;
 
11240
    esac
 
11241
    lt_int_apple_cc_single_mod=no
 
11242
    output_verbose_link_cmd='echo'
 
11243
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
11244
      lt_int_apple_cc_single_mod=yes
 
11245
    fi
 
11246
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11247
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11248
    else
 
11249
      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'
 
11250
    fi
 
11251
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11252
 
 
11253
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
11254
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11255
      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}'
 
11256
    else
 
11257
      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}'
 
11258
    fi
 
11259
    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}'
 
11260
    hardcode_direct_CXX=no
 
11261
    hardcode_automatic_CXX=yes
 
11262
    hardcode_shlibpath_var_CXX=unsupported
 
11263
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
11264
    link_all_deplibs_CXX=yes
 
11265
  else
 
11266
    ld_shlibs_CXX=no
 
11267
  fi
 
11268
    ;;
 
11269
 
 
11270
  dgux*)
 
11271
    case $cc_basename in
 
11272
      ec++)
 
11273
        # FIXME: insert proper C++ library support
 
11274
        ld_shlibs_CXX=no
 
11275
        ;;
 
11276
      ghcx)
 
11277
        # Green Hills C++ Compiler
 
11278
        # FIXME: insert proper C++ library support
 
11279
        ld_shlibs_CXX=no
 
11280
        ;;
 
11281
      *)
 
11282
        # FIXME: insert proper C++ library support
 
11283
        ld_shlibs_CXX=no
 
11284
        ;;
 
11285
    esac
 
11286
    ;;
 
11287
  freebsd12*)
 
11288
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11289
    ld_shlibs_CXX=no
 
11290
    ;;
 
11291
  freebsd-elf*)
 
11292
    archive_cmds_need_lc_CXX=no
 
11293
    ;;
 
11294
  freebsd* | kfreebsd*-gnu)
 
11295
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11296
    # conventions
 
11297
    ld_shlibs_CXX=yes
 
11298
    ;;
 
11299
  gnu*)
 
11300
    ;;
 
11301
  hpux9*)
 
11302
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11303
    hardcode_libdir_separator_CXX=:
 
11304
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11305
    hardcode_direct_CXX=yes
 
11306
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11307
                                # but as the default
 
11308
                                # location of the library.
 
11309
 
 
11310
    case $cc_basename in
 
11311
    CC)
 
11312
      # FIXME: insert proper C++ library support
 
11313
      ld_shlibs_CXX=no
 
11314
      ;;
 
11315
    aCC)
 
11316
      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'
 
11317
      # Commands to make compiler produce verbose output that lists
 
11318
      # what "hidden" libraries, object files and flags are used when
 
11319
      # linking a shared library.
 
11320
      #
 
11321
      # There doesn't appear to be a way to prevent this compiler from
 
11322
      # explicitly linking system object files so we need to strip them
 
11323
      # from the output so that they don't get included in the library
 
11324
      # dependencies.
 
11325
      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'
 
11326
      ;;
 
11327
    *)
 
11328
      if test "$GXX" = yes; then
 
11329
        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'
 
11330
      else
 
11331
        # FIXME: insert proper C++ library support
 
11332
        ld_shlibs_CXX=no
 
11333
      fi
 
11334
      ;;
 
11335
    esac
 
11336
    ;;
 
11337
  hpux10*|hpux11*)
 
11338
    if test $with_gnu_ld = no; then
 
11339
      case "$host_cpu" in
 
11340
      hppa*64*)
 
11341
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11342
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
11343
        hardcode_libdir_separator_CXX=:
 
11344
        ;;
 
11345
      ia64*)
 
11346
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11347
        ;;
 
11348
      *)
 
11349
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11350
        hardcode_libdir_separator_CXX=:
 
11351
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11352
        ;;
 
11353
      esac
 
11354
    fi
 
11355
    case "$host_cpu" in
 
11356
    hppa*64*)
 
11357
      hardcode_direct_CXX=no
 
11358
      hardcode_shlibpath_var_CXX=no
 
11359
      ;;
 
11360
    ia64*)
 
11361
      hardcode_direct_CXX=no
 
11362
      hardcode_shlibpath_var_CXX=no
 
11363
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11364
                                              # but as the default
 
11365
                                              # location of the library.
 
11366
      ;;
 
11367
    *)
 
11368
      hardcode_direct_CXX=yes
 
11369
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11370
                                              # but as the default
 
11371
                                              # location of the library.
 
11372
      ;;
 
11373
    esac
 
11374
 
 
11375
    case $cc_basename in
 
11376
      CC)
 
11377
        # FIXME: insert proper C++ library support
 
11378
        ld_shlibs_CXX=no
 
11379
        ;;
 
11380
      aCC)
 
11381
        case "$host_cpu" in
 
11382
        hppa*64*|ia64*)
 
11383
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11384
          ;;
 
11385
        *)
 
11386
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11387
          ;;
 
11388
        esac
 
11389
        # Commands to make compiler produce verbose output that lists
 
11390
        # what "hidden" libraries, object files and flags are used when
 
11391
        # linking a shared library.
 
11392
        #
 
11393
        # There doesn't appear to be a way to prevent this compiler from
 
11394
        # explicitly linking system object files so we need to strip them
 
11395
        # from the output so that they don't get included in the library
 
11396
        # dependencies.
 
11397
        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'
 
11398
        ;;
 
11399
      *)
 
11400
        if test "$GXX" = yes; then
 
11401
          if test $with_gnu_ld = no; then
 
11402
            case "$host_cpu" in
 
11403
            ia64*|hppa*64*)
 
11404
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11405
              ;;
 
11406
            *)
 
11407
              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'
 
11408
              ;;
 
11409
            esac
 
11410
          fi
 
11411
        else
 
11412
          # FIXME: insert proper C++ library support
 
11413
          ld_shlibs_CXX=no
 
11414
        fi
 
11415
        ;;
 
11416
    esac
 
11417
    ;;
 
11418
  irix5* | irix6*)
 
11419
    case $cc_basename in
 
11420
      CC)
 
11421
        # SGI C++
 
11422
        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'
 
11423
 
 
11424
        # Archives containing C++ object files must be created using
 
11425
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
11426
        # necessary to make sure instantiated templates are included
 
11427
        # in the archive.
 
11428
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
11429
        ;;
 
11430
      *)
 
11431
        if test "$GXX" = yes; then
 
11432
          if test "$with_gnu_ld" = no; then
 
11433
            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'
 
11434
          else
 
11435
            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'
 
11436
          fi
 
11437
        fi
 
11438
        link_all_deplibs_CXX=yes
 
11439
        ;;
 
11440
    esac
 
11441
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11442
    hardcode_libdir_separator_CXX=:
 
11443
    ;;
 
11444
  linux*)
 
11445
    case $cc_basename in
 
11446
      KCC)
 
11447
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11448
 
 
11449
        # KCC will only create a shared library if the output file
 
11450
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11451
        # to its proper name (with version) after linking.
 
11452
        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'
 
11453
        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'
 
11454
        # Commands to make compiler produce verbose output that lists
 
11455
        # what "hidden" libraries, object files and flags are used when
 
11456
        # linking a shared library.
 
11457
        #
 
11458
        # There doesn't appear to be a way to prevent this compiler from
 
11459
        # explicitly linking system object files so we need to strip them
 
11460
        # from the output so that they don't get included in the library
 
11461
        # dependencies.
 
11462
        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'
 
11463
 
 
11464
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
11465
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11466
 
 
11467
        # Archives containing C++ object files must be created using
 
11468
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11469
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11470
        ;;
 
11471
      icpc)
 
11472
        # Intel C++
 
11473
        with_gnu_ld=yes
 
11474
        archive_cmds_need_lc_CXX=no
 
11475
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11476
        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'
 
11477
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11478
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11479
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
11480
        ;;
 
11481
      cxx)
 
11482
        # Compaq C++
 
11483
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11484
        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'
 
11485
 
 
11486
        runpath_var=LD_RUN_PATH
 
11487
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11488
        hardcode_libdir_separator_CXX=:
 
11489
 
 
11490
        # Commands to make compiler produce verbose output that lists
 
11491
        # what "hidden" libraries, object files and flags are used when
 
11492
        # linking a shared library.
 
11493
        #
 
11494
        # There doesn't appear to be a way to prevent this compiler from
 
11495
        # explicitly linking system object files so we need to strip them
 
11496
        # from the output so that they don't get included in the library
 
11497
        # dependencies.
 
11498
        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'
 
11499
        ;;
 
11500
    esac
 
11501
    ;;
 
11502
  lynxos*)
 
11503
    # FIXME: insert proper C++ library support
 
11504
    ld_shlibs_CXX=no
 
11505
    ;;
 
11506
  m88k*)
 
11507
    # FIXME: insert proper C++ library support
 
11508
    ld_shlibs_CXX=no
 
11509
    ;;
 
11510
  mvs*)
 
11511
    case $cc_basename in
 
11512
      cxx)
 
11513
        # FIXME: insert proper C++ library support
 
11514
        ld_shlibs_CXX=no
 
11515
        ;;
 
11516
      *)
 
11517
        # FIXME: insert proper C++ library support
 
11518
        ld_shlibs_CXX=no
 
11519
        ;;
 
11520
    esac
 
11521
    ;;
 
11522
  netbsd* | knetbsd*-gnu)
 
11523
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11524
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
11525
      wlarc=
 
11526
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11527
      hardcode_direct_CXX=yes
 
11528
      hardcode_shlibpath_var_CXX=no
 
11529
    fi
 
11530
    # Workaround some broken pre-1.5 toolchains
 
11531
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
11532
    ;;
 
11533
  osf3*)
 
11534
    case $cc_basename in
 
11535
      KCC)
 
11536
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11537
 
 
11538
        # KCC will only create a shared library if the output file
 
11539
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11540
        # to its proper name (with version) after linking.
 
11541
        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'
 
11542
 
 
11543
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11544
        hardcode_libdir_separator_CXX=:
 
11545
 
 
11546
        # Archives containing C++ object files must be created using
 
11547
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11548
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11549
 
 
11550
        ;;
 
11551
      RCC)
 
11552
        # Rational C++ 2.4.1
 
11553
        # FIXME: insert proper C++ library support
 
11554
        ld_shlibs_CXX=no
 
11555
        ;;
 
11556
      cxx)
 
11557
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11558
        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'
 
11559
 
 
11560
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11561
        hardcode_libdir_separator_CXX=:
 
11562
 
 
11563
        # Commands to make compiler produce verbose output that lists
 
11564
        # what "hidden" libraries, object files and flags are used when
 
11565
        # linking a shared library.
 
11566
        #
 
11567
        # There doesn't appear to be a way to prevent this compiler from
 
11568
        # explicitly linking system object files so we need to strip them
 
11569
        # from the output so that they don't get included in the library
 
11570
        # dependencies.
 
11571
        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'
 
11572
        ;;
 
11573
      *)
 
11574
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11575
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11576
          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'
 
11577
 
 
11578
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11579
          hardcode_libdir_separator_CXX=:
 
11580
 
 
11581
          # Commands to make compiler produce verbose output that lists
 
11582
          # what "hidden" libraries, object files and flags are used when
 
11583
          # linking a shared library.
 
11584
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11585
 
 
11586
        else
 
11587
          # FIXME: insert proper C++ library support
 
11588
          ld_shlibs_CXX=no
 
11589
        fi
 
11590
        ;;
 
11591
    esac
 
11592
    ;;
 
11593
  osf4* | osf5*)
 
11594
    case $cc_basename in
 
11595
      KCC)
 
11596
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11597
 
 
11598
        # KCC will only create a shared library if the output file
 
11599
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11600
        # to its proper name (with version) after linking.
 
11601
        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'
 
11602
 
 
11603
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11604
        hardcode_libdir_separator_CXX=:
 
11605
 
 
11606
        # Archives containing C++ object files must be created using
 
11607
        # the KAI C++ compiler.
 
11608
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
11609
        ;;
 
11610
      RCC)
 
11611
        # Rational C++ 2.4.1
 
11612
        # FIXME: insert proper C++ library support
 
11613
        ld_shlibs_CXX=no
 
11614
        ;;
 
11615
      cxx)
 
11616
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
11617
        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'
 
11618
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
11619
          echo "-hidden">> $lib.exp~
 
11620
          $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~
 
11621
          $rm $lib.exp'
 
11622
 
 
11623
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11624
        hardcode_libdir_separator_CXX=:
 
11625
 
 
11626
        # Commands to make compiler produce verbose output that lists
 
11627
        # what "hidden" libraries, object files and flags are used when
 
11628
        # linking a shared library.
 
11629
        #
 
11630
        # There doesn't appear to be a way to prevent this compiler from
 
11631
        # explicitly linking system object files so we need to strip them
 
11632
        # from the output so that they don't get included in the library
 
11633
        # dependencies.
 
11634
        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'
 
11635
        ;;
 
11636
      *)
 
11637
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11638
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11639
         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'
 
11640
 
 
11641
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11642
          hardcode_libdir_separator_CXX=:
 
11643
 
 
11644
          # Commands to make compiler produce verbose output that lists
 
11645
          # what "hidden" libraries, object files and flags are used when
 
11646
          # linking a shared library.
 
11647
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11648
 
 
11649
        else
 
11650
          # FIXME: insert proper C++ library support
 
11651
          ld_shlibs_CXX=no
 
11652
        fi
 
11653
        ;;
 
11654
    esac
 
11655
    ;;
 
11656
  psos*)
 
11657
    # FIXME: insert proper C++ library support
 
11658
    ld_shlibs_CXX=no
 
11659
    ;;
 
11660
  sco*)
 
11661
    archive_cmds_need_lc_CXX=no
 
11662
    case $cc_basename in
 
11663
      CC)
 
11664
        # FIXME: insert proper C++ library support
 
11665
        ld_shlibs_CXX=no
 
11666
        ;;
 
11667
      *)
 
11668
        # FIXME: insert proper C++ library support
 
11669
        ld_shlibs_CXX=no
 
11670
        ;;
 
11671
    esac
 
11672
    ;;
 
11673
  sunos4*)
 
11674
    case $cc_basename in
 
11675
      CC)
 
11676
        # Sun C++ 4.x
 
11677
        # FIXME: insert proper C++ library support
 
11678
        ld_shlibs_CXX=no
 
11679
        ;;
 
11680
      lcc)
 
11681
        # Lucid
 
11682
        # FIXME: insert proper C++ library support
 
11683
        ld_shlibs_CXX=no
 
11684
        ;;
 
11685
      *)
 
11686
        # FIXME: insert proper C++ library support
 
11687
        ld_shlibs_CXX=no
 
11688
        ;;
 
11689
    esac
 
11690
    ;;
 
11691
  solaris*)
 
11692
    case $cc_basename in
 
11693
      CC)
 
11694
        # Sun C++ 4.2, 5.x and Centerline C++
 
11695
        no_undefined_flag_CXX=' -zdefs'
 
11696
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11697
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11698
        $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'
 
11699
 
 
11700
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11701
        hardcode_shlibpath_var_CXX=no
 
11702
        case $host_os in
 
11703
          solaris2.0-5 | solaris2.0-5.*) ;;
 
11704
          *)
 
11705
            # The C++ compiler is used as linker so we must use $wl
 
11706
            # flag to pass the commands to the underlying system
 
11707
            # linker.
 
11708
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11709
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
11710
            ;;
 
11711
        esac
 
11712
        link_all_deplibs_CXX=yes
 
11713
 
 
11714
        # Commands to make compiler produce verbose output that lists
 
11715
        # what "hidden" libraries, object files and flags are used when
 
11716
        # linking a shared library.
 
11717
        #
 
11718
        # There doesn't appear to be a way to prevent this compiler from
 
11719
        # explicitly linking system object files so we need to strip them
 
11720
        # from the output so that they don't get included in the library
 
11721
        # dependencies.
 
11722
        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'
 
11723
 
 
11724
        # Archives containing C++ object files must be created using
 
11725
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11726
        # necessary to make sure instantiated templates are included
 
11727
        # in the archive.
 
11728
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11729
        ;;
 
11730
      gcx)
 
11731
        # Green Hills C++ Compiler
 
11732
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11733
 
 
11734
        # The C++ compiler must be used to create the archive.
 
11735
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
11736
        ;;
 
11737
      *)
 
11738
        # GNU C++ compiler with Solaris linker
 
11739
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11740
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
11741
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
11742
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11743
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11744
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11745
 
 
11746
            # Commands to make compiler produce verbose output that lists
 
11747
            # what "hidden" libraries, object files and flags are used when
 
11748
            # linking a shared library.
 
11749
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11750
          else
 
11751
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
11752
            # platform.
 
11753
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11754
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11755
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11756
 
 
11757
            # Commands to make compiler produce verbose output that lists
 
11758
            # what "hidden" libraries, object files and flags are used when
 
11759
            # linking a shared library.
 
11760
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11761
          fi
 
11762
 
 
11763
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
11764
        fi
 
11765
        ;;
 
11766
    esac
 
11767
    ;;
 
11768
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
11769
    archive_cmds_need_lc_CXX=no
 
11770
    ;;
 
11771
  tandem*)
 
11772
    case $cc_basename in
 
11773
      NCC)
 
11774
        # NonStop-UX NCC 3.20
 
11775
        # FIXME: insert proper C++ library support
 
11776
        ld_shlibs_CXX=no
 
11777
        ;;
 
11778
      *)
 
11779
        # FIXME: insert proper C++ library support
 
11780
        ld_shlibs_CXX=no
 
11781
        ;;
 
11782
    esac
 
11783
    ;;
 
11784
  vxworks*)
 
11785
    # FIXME: insert proper C++ library support
 
11786
    ld_shlibs_CXX=no
 
11787
    ;;
 
11788
  *)
 
11789
    # FIXME: insert proper C++ library support
 
11790
    ld_shlibs_CXX=no
 
11791
    ;;
 
11792
esac
 
11793
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11794
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11795
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11796
 
 
11797
GCC_CXX="$GXX"
 
11798
LD_CXX="$LD"
 
11799
 
 
11800
 
 
11801
cat > conftest.$ac_ext <<EOF
 
11802
class Foo
 
11803
{
 
11804
public:
 
11805
  Foo (void) { a = 0; }
 
11806
private:
 
11807
  int a;
 
11808
};
 
11809
EOF
 
11810
 
 
11811
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11812
  (eval $ac_compile) 2>&5
 
11813
  ac_status=$?
 
11814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11815
  (exit $ac_status); }; then
 
11816
  # Parse the compiler output and extract the necessary
 
11817
  # objects, libraries and library flags.
 
11818
 
 
11819
  # Sentinel used to keep track of whether or not we are before
 
11820
  # the conftest object file.
 
11821
  pre_test_object_deps_done=no
 
11822
 
 
11823
  # The `*' in the case matches for architectures that use `case' in
 
11824
  # $output_verbose_cmd can trigger glob expansion during the loop
 
11825
  # eval without this substitution.
 
11826
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
11827
 
 
11828
  for p in `eval $output_verbose_link_cmd`; do
 
11829
    case $p in
 
11830
 
 
11831
    -L* | -R* | -l*)
 
11832
       # Some compilers place space between "-{L,R}" and the path.
 
11833
       # Remove the space.
 
11834
       if test $p = "-L" \
 
11835
          || test $p = "-R"; then
 
11836
         prev=$p
 
11837
         continue
 
11838
       else
 
11839
         prev=
 
11840
       fi
 
11841
 
 
11842
       if test "$pre_test_object_deps_done" = no; then
 
11843
         case $p in
 
11844
         -L* | -R*)
 
11845
           # Internal compiler library paths should come after those
 
11846
           # provided the user.  The postdeps already come after the
 
11847
           # user supplied libs so there is no need to process them.
 
11848
           if test -z "$compiler_lib_search_path_CXX"; then
 
11849
             compiler_lib_search_path_CXX="${prev}${p}"
 
11850
           else
 
11851
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
11852
           fi
 
11853
           ;;
 
11854
         # The "-l" case would never come before the object being
 
11855
         # linked, so don't bother handling this case.
 
11856
         esac
 
11857
       else
 
11858
         if test -z "$postdeps_CXX"; then
 
11859
           postdeps_CXX="${prev}${p}"
 
11860
         else
 
11861
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
11862
         fi
 
11863
       fi
 
11864
       ;;
 
11865
 
 
11866
    *.$objext)
 
11867
       # This assumes that the test object file only shows up
 
11868
       # once in the compiler output.
 
11869
       if test "$p" = "conftest.$objext"; then
 
11870
         pre_test_object_deps_done=yes
 
11871
         continue
 
11872
       fi
 
11873
 
 
11874
       if test "$pre_test_object_deps_done" = no; then
 
11875
         if test -z "$predep_objects_CXX"; then
 
11876
           predep_objects_CXX="$p"
 
11877
         else
 
11878
           predep_objects_CXX="$predep_objects_CXX $p"
 
11879
         fi
 
11880
       else
 
11881
         if test -z "$postdep_objects_CXX"; then
 
11882
           postdep_objects_CXX="$p"
 
11883
         else
 
11884
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
11885
         fi
 
11886
       fi
 
11887
       ;;
 
11888
 
 
11889
    *) ;; # Ignore the rest.
 
11890
 
 
11891
    esac
 
11892
  done
 
11893
 
 
11894
  # Clean up.
 
11895
  rm -f a.out a.exe
 
11896
else
 
11897
  echo "libtool.m4: error: problem compiling CXX test program"
 
11898
fi
 
11899
 
 
11900
$rm -f confest.$objext
 
11901
 
 
11902
case " $postdeps_CXX " in
 
11903
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
11904
esac
 
11905
 
 
11906
lt_prog_compiler_wl_CXX=
 
11907
lt_prog_compiler_pic_CXX=
 
11908
lt_prog_compiler_static_CXX=
 
11909
 
 
11910
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
11911
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
11912
 
 
11913
  # C++ specific cases for pic, static, wl, etc.
 
11914
  if test "$GXX" = yes; then
 
11915
    lt_prog_compiler_wl_CXX='-Wl,'
 
11916
    lt_prog_compiler_static_CXX='-static'
 
11917
 
 
11918
    case $host_os in
 
11919
    aix*)
 
11920
      # All AIX code is PIC.
 
11921
      if test "$host_cpu" = ia64; then
 
11922
        # AIX 5 now supports IA64 processor
 
11923
        lt_prog_compiler_static_CXX='-Bstatic'
 
11924
      fi
 
11925
      ;;
 
11926
    amigaos*)
 
11927
      # FIXME: we need at least 68020 code to build shared libraries, but
 
11928
      # adding the `-m68020' flag to GCC prevents building anything better,
 
11929
      # like `-m68040'.
 
11930
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
11931
      ;;
 
11932
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
11933
      # PIC is the default for these OSes.
 
11934
      ;;
 
11935
    mingw* | os2* | pw32*)
 
11936
      # This hack is so that the source file can tell whether it is being
 
11937
      # built for inclusion in a dll (and should export symbols for example).
 
11938
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
11939
      ;;
 
11940
    darwin* | rhapsody*)
 
11941
      # PIC is the default on this platform
 
11942
      # Common symbols not allowed in MH_DYLIB files
 
11943
      lt_prog_compiler_pic_CXX='-fno-common'
 
11944
      ;;
 
11945
    *djgpp*)
 
11946
      # DJGPP does not support shared libraries at all
 
11947
      lt_prog_compiler_pic_CXX=
 
11948
      ;;
 
11949
    sysv4*MP*)
 
11950
      if test -d /usr/nec; then
 
11951
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
11952
      fi
 
11953
      ;;
 
11954
    hpux*)
 
11955
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
11956
      # not for PA HP-UX.
 
11957
      case "$host_cpu" in
 
11958
      hppa*64*|ia64*)
 
11959
        ;;
 
11960
      *)
 
11961
        lt_prog_compiler_pic_CXX='-fPIC'
 
11962
        ;;
 
11963
      esac
 
11964
      ;;
 
11965
    *)
 
11966
      lt_prog_compiler_pic_CXX='-fPIC'
 
11967
      ;;
 
11968
    esac
 
11969
  else
 
11970
    case $host_os in
 
11971
      aix4* | aix5*)
 
11972
        # All AIX code is PIC.
 
11973
        if test "$host_cpu" = ia64; then
 
11974
          # AIX 5 now supports IA64 processor
 
11975
          lt_prog_compiler_static_CXX='-Bstatic'
 
11976
        else
 
11977
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
11978
        fi
 
11979
        ;;
 
11980
      chorus*)
 
11981
        case $cc_basename in
 
11982
        cxch68)
 
11983
          # Green Hills C++ Compiler
 
11984
          # _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"
 
11985
          ;;
 
11986
        esac
 
11987
        ;;
 
11988
      dgux*)
 
11989
        case $cc_basename in
 
11990
          ec++)
 
11991
            lt_prog_compiler_pic_CXX='-KPIC'
 
11992
            ;;
 
11993
          ghcx)
 
11994
            # Green Hills C++ Compiler
 
11995
            lt_prog_compiler_pic_CXX='-pic'
 
11996
            ;;
 
11997
          *)
 
11998
            ;;
 
11999
        esac
 
12000
        ;;
 
12001
      freebsd* | kfreebsd*-gnu)
 
12002
        # FreeBSD uses GNU C++
 
12003
        ;;
 
12004
      hpux9* | hpux10* | hpux11*)
 
12005
        case $cc_basename in
 
12006
          CC)
 
12007
            lt_prog_compiler_wl_CXX='-Wl,'
 
12008
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
12009
            if test "$host_cpu" != ia64; then
 
12010
              lt_prog_compiler_pic_CXX='+Z'
 
12011
            fi
 
12012
            ;;
 
12013
          aCC)
 
12014
            lt_prog_compiler_wl_CXX='-Wl,'
 
12015
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
12016
            case "$host_cpu" in
 
12017
            hppa*64*|ia64*)
 
12018
              # +Z the default
 
12019
              ;;
 
12020
            *)
 
12021
              lt_prog_compiler_pic_CXX='+Z'
 
12022
              ;;
 
12023
            esac
 
12024
            ;;
 
12025
          *)
 
12026
            ;;
 
12027
        esac
 
12028
        ;;
 
12029
      irix5* | irix6* | nonstopux*)
 
12030
        case $cc_basename in
 
12031
          CC)
 
12032
            lt_prog_compiler_wl_CXX='-Wl,'
 
12033
            lt_prog_compiler_static_CXX='-non_shared'
 
12034
            # CC pic flag -KPIC is the default.
 
12035
            ;;
 
12036
          *)
 
12037
            ;;
 
12038
        esac
 
12039
        ;;
 
12040
      linux*)
 
12041
        case $cc_basename in
 
12042
          KCC)
 
12043
            # KAI C++ Compiler
 
12044
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12045
            lt_prog_compiler_pic_CXX='-fPIC'
 
12046
            ;;
 
12047
          icpc)
 
12048
            # Intel C++
 
12049
            lt_prog_compiler_wl_CXX='-Wl,'
 
12050
            lt_prog_compiler_pic_CXX='-KPIC'
 
12051
            lt_prog_compiler_static_CXX='-static'
 
12052
            ;;
 
12053
          cxx)
 
12054
            # Compaq C++
 
12055
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12056
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12057
            lt_prog_compiler_pic_CXX=
 
12058
            lt_prog_compiler_static_CXX='-non_shared'
 
12059
            ;;
 
12060
          *)
 
12061
            ;;
 
12062
        esac
 
12063
        ;;
 
12064
      lynxos*)
 
12065
        ;;
 
12066
      m88k*)
 
12067
        ;;
 
12068
      mvs*)
 
12069
        case $cc_basename in
 
12070
          cxx)
 
12071
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12072
            ;;
 
12073
          *)
 
12074
            ;;
 
12075
        esac
 
12076
        ;;
 
12077
      netbsd* | knetbsd*-gnu)
 
12078
        ;;
 
12079
      osf3* | osf4* | osf5*)
 
12080
        case $cc_basename in
 
12081
          KCC)
 
12082
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12083
            ;;
 
12084
          RCC)
 
12085
            # Rational C++ 2.4.1
 
12086
            lt_prog_compiler_pic_CXX='-pic'
 
12087
            ;;
 
12088
          cxx)
 
12089
            # Digital/Compaq C++
 
12090
            lt_prog_compiler_wl_CXX='-Wl,'
 
12091
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12092
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12093
            lt_prog_compiler_pic_CXX=
 
12094
            lt_prog_compiler_static_CXX='-non_shared'
 
12095
            ;;
 
12096
          *)
 
12097
            ;;
 
12098
        esac
 
12099
        ;;
 
12100
      psos*)
 
12101
        ;;
 
12102
      sco*)
 
12103
        case $cc_basename in
 
12104
          CC)
 
12105
            lt_prog_compiler_pic_CXX='-fPIC'
 
12106
            ;;
 
12107
          *)
 
12108
            ;;
 
12109
        esac
 
12110
        ;;
 
12111
      solaris*)
 
12112
        case $cc_basename in
 
12113
          CC)
 
12114
            # Sun C++ 4.2, 5.x and Centerline C++
 
12115
            lt_prog_compiler_pic_CXX='-KPIC'
 
12116
            lt_prog_compiler_static_CXX='-Bstatic'
 
12117
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12118
            ;;
 
12119
          gcx)
 
12120
            # Green Hills C++ Compiler
 
12121
            lt_prog_compiler_pic_CXX='-PIC'
 
12122
            ;;
 
12123
          *)
 
12124
            ;;
 
12125
        esac
 
12126
        ;;
 
12127
      sunos4*)
 
12128
        case $cc_basename in
 
12129
          CC)
 
12130
            # Sun C++ 4.x
 
12131
            lt_prog_compiler_pic_CXX='-pic'
 
12132
            lt_prog_compiler_static_CXX='-Bstatic'
 
12133
            ;;
 
12134
          lcc)
 
12135
            # Lucid
 
12136
            lt_prog_compiler_pic_CXX='-pic'
 
12137
            ;;
 
12138
          *)
 
12139
            ;;
 
12140
        esac
 
12141
        ;;
 
12142
      tandem*)
 
12143
        case $cc_basename in
 
12144
          NCC)
 
12145
            # NonStop-UX NCC 3.20
 
12146
            lt_prog_compiler_pic_CXX='-KPIC'
 
12147
            ;;
 
12148
          *)
 
12149
            ;;
 
12150
        esac
 
12151
        ;;
 
12152
      unixware*)
 
12153
        ;;
 
12154
      vxworks*)
 
12155
        ;;
 
12156
      *)
 
12157
        lt_prog_compiler_can_build_shared_CXX=no
 
12158
        ;;
 
12159
    esac
 
12160
  fi
 
12161
 
 
12162
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12163
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
12164
 
 
12165
#
 
12166
# Check to make sure the PIC flag actually works.
 
12167
#
 
12168
if test -n "$lt_prog_compiler_pic_CXX"; then
 
12169
 
 
12170
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12171
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
12172
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
12173
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12174
else
 
12175
  lt_prog_compiler_pic_works_CXX=no
 
12176
  ac_outfile=conftest.$ac_objext
 
12177
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12178
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
12179
   # Insert the option either (1) after the last *FLAGS variable, or
 
12180
   # (2) before a word containing "conftest.", or (3) at the end.
 
12181
   # Note that $ac_compile itself does not contain backslashes and begins
 
12182
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12183
   # The option is referenced via a variable to avoid confusing sed.
 
12184
   lt_compile=`echo "$ac_compile" | $SED \
 
12185
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12186
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12187
   -e 's:$: $lt_compiler_flag:'`
 
12188
   (eval echo "\"\$as_me:12188: $lt_compile\"" >&5)
 
12189
   (eval "$lt_compile" 2>conftest.err)
 
12190
   ac_status=$?
 
12191
   cat conftest.err >&5
 
12192
   echo "$as_me:12192: \$? = $ac_status" >&5
 
12193
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12194
     # The compiler can only warn and ignore the option if not recognized
 
12195
     # So say no if there are warnings
 
12196
     if test ! -s conftest.err; then
 
12197
       lt_prog_compiler_pic_works_CXX=yes
 
12198
     fi
 
12199
   fi
 
12200
   $rm conftest*
 
12201
 
 
12202
fi
 
12203
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
12204
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
12205
 
 
12206
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
12207
    case $lt_prog_compiler_pic_CXX in
 
12208
     "" | " "*) ;;
 
12209
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
12210
     esac
 
12211
else
 
12212
    lt_prog_compiler_pic_CXX=
 
12213
     lt_prog_compiler_can_build_shared_CXX=no
 
12214
fi
 
12215
 
 
12216
fi
 
12217
case "$host_os" in
 
12218
  # For platforms which do not support PIC, -DPIC is meaningless:
 
12219
  *djgpp*)
 
12220
    lt_prog_compiler_pic_CXX=
 
12221
    ;;
 
12222
  *)
 
12223
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
12224
    ;;
 
12225
esac
 
12226
 
 
12227
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12228
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
12229
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
12230
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12231
else
 
12232
  lt_cv_prog_compiler_c_o_CXX=no
 
12233
   $rm -r conftest 2>/dev/null
 
12234
   mkdir conftest
 
12235
   cd conftest
 
12236
   mkdir out
 
12237
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12238
 
 
12239
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12240
   # Insert the option either (1) after the last *FLAGS variable, or
 
12241
   # (2) before a word containing "conftest.", or (3) at the end.
 
12242
   # Note that $ac_compile itself does not contain backslashes and begins
 
12243
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12244
   lt_compile=`echo "$ac_compile" | $SED \
 
12245
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12246
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12247
   -e 's:$: $lt_compiler_flag:'`
 
12248
   (eval echo "\"\$as_me:12248: $lt_compile\"" >&5)
 
12249
   (eval "$lt_compile" 2>out/conftest.err)
 
12250
   ac_status=$?
 
12251
   cat out/conftest.err >&5
 
12252
   echo "$as_me:12252: \$? = $ac_status" >&5
 
12253
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12254
   then
 
12255
     # The compiler can only warn and ignore the option if not recognized
 
12256
     # So say no if there are warnings
 
12257
     if test ! -s out/conftest.err; then
 
12258
       lt_cv_prog_compiler_c_o_CXX=yes
 
12259
     fi
 
12260
   fi
 
12261
   chmod u+w .
 
12262
   $rm conftest*
 
12263
   # SGI C++ compiler will create directory out/ii_files/ for
 
12264
   # template instantiation
 
12265
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
12266
   $rm out/* && rmdir out
 
12267
   cd ..
 
12268
   rmdir conftest
 
12269
   $rm conftest*
 
12270
 
 
12271
fi
 
12272
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
12273
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
12274
 
 
12275
 
 
12276
hard_links="nottested"
 
12277
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
12278
  # do not overwrite the value of need_locks provided by the user
 
12279
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12280
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
12281
  hard_links=yes
 
12282
  $rm conftest*
 
12283
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12284
  touch conftest.a
 
12285
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
12286
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12287
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
12288
echo "${ECHO_T}$hard_links" >&6
 
12289
  if test "$hard_links" = no; then
 
12290
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
12291
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
12292
    need_locks=warn
 
12293
  fi
 
12294
else
 
12295
  need_locks=no
 
12296
fi
 
12297
 
 
12298
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12299
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
12300
 
 
12301
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12302
  case $host_os in
 
12303
  aix4* | aix5*)
 
12304
    # If we're using GNU nm, then we don't want the "-C" option.
 
12305
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
12306
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
12307
      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'
 
12308
    else
 
12309
      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'
 
12310
    fi
 
12311
    ;;
 
12312
  pw32*)
 
12313
    export_symbols_cmds_CXX="$ltdll_cmds"
 
12314
  ;;
 
12315
  cygwin* | mingw*)
 
12316
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
12317
  ;;
 
12318
  linux*)
 
12319
    link_all_deplibs_CXX=no
 
12320
  ;;
 
12321
  *)
 
12322
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12323
  ;;
 
12324
  esac
 
12325
 
 
12326
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12327
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
12328
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12329
 
 
12330
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12331
if test "$GCC" = yes; then
 
12332
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12333
fi
 
12334
 
 
12335
#
 
12336
# Do we need to explicitly link libc?
 
12337
#
 
12338
case "x$archive_cmds_need_lc_CXX" in
 
12339
x|xyes)
 
12340
  # Assume -lc should be added
 
12341
  archive_cmds_need_lc_CXX=yes
 
12342
 
 
12343
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
12344
    case $archive_cmds_CXX in
 
12345
    *'~'*)
 
12346
      # FIXME: we may have to deal with multi-command sequences.
 
12347
      ;;
 
12348
    '$CC '*)
 
12349
      # Test whether the compiler implicitly links with -lc since on some
 
12350
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
12351
      # to ld, don't add -lc before -lgcc.
 
12352
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
12353
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
12354
      $rm conftest*
 
12355
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12356
 
 
12357
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12358
  (eval $ac_compile) 2>&5
 
12359
  ac_status=$?
 
12360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12361
  (exit $ac_status); } 2>conftest.err; then
 
12362
        soname=conftest
 
12363
        lib=conftest
 
12364
        libobjs=conftest.$ac_objext
 
12365
        deplibs=
 
12366
        wl=$lt_prog_compiler_wl_CXX
 
12367
        compiler_flags=-v
 
12368
        linker_flags=-v
 
12369
        verstring=
 
12370
        output_objdir=.
 
12371
        libname=conftest
 
12372
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
12373
        allow_undefined_flag_CXX=
 
12374
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
12375
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
12376
  ac_status=$?
 
12377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12378
  (exit $ac_status); }
 
12379
        then
 
12380
          archive_cmds_need_lc_CXX=no
 
12381
        else
 
12382
          archive_cmds_need_lc_CXX=yes
 
12383
        fi
 
12384
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
12385
      else
 
12386
        cat conftest.err 1>&5
 
12387
      fi
 
12388
      $rm conftest*
 
12389
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
12390
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
12391
      ;;
 
12392
    esac
 
12393
  fi
 
12394
  ;;
 
12395
esac
 
12396
 
 
12397
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
12398
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
12399
library_names_spec=
 
12400
libname_spec='lib$name'
 
12401
soname_spec=
 
12402
shrext_cmds=".so"
 
12403
postinstall_cmds=
 
12404
postuninstall_cmds=
 
12405
finish_cmds=
 
12406
finish_eval=
 
12407
shlibpath_var=
 
12408
shlibpath_overrides_runpath=unknown
 
12409
version_type=none
 
12410
dynamic_linker="$host_os ld.so"
 
12411
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
12412
if test "$GCC" = yes; then
 
12413
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12414
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
12415
    # if the path contains ";" then we assume it to be the separator
 
12416
    # otherwise default to the standard path separator (i.e. ":") - it is
 
12417
    # assumed that no part of a normal pathname contains ";" but that should
 
12418
    # okay in the real world where ";" in dirpaths is itself problematic.
 
12419
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12420
  else
 
12421
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12422
  fi
 
12423
else
 
12424
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
12425
fi
 
12426
need_lib_prefix=unknown
 
12427
hardcode_into_libs=no
 
12428
 
 
12429
# when you set need_version to no, make sure it does not cause -set_version
 
12430
# flags to be left without arguments
 
12431
need_version=unknown
 
12432
 
 
12433
case $host_os in
 
12434
aix3*)
 
12435
  version_type=linux
 
12436
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
12437
  shlibpath_var=LIBPATH
 
12438
 
 
12439
  # AIX 3 has no versioning support, so we append a major version to the name.
 
12440
  soname_spec='${libname}${release}${shared_ext}$major'
 
12441
  ;;
 
12442
 
 
12443
aix4* | aix5*)
 
12444
  version_type=linux
 
12445
  need_lib_prefix=no
 
12446
  need_version=no
 
12447
  hardcode_into_libs=yes
 
12448
  if test "$host_cpu" = ia64; then
 
12449
    # AIX 5 supports IA64
 
12450
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
12451
    shlibpath_var=LD_LIBRARY_PATH
 
12452
  else
 
12453
    # With GCC up to 2.95.x, collect2 would create an import file
 
12454
    # for dependence libraries.  The import file would start with
 
12455
    # the line `#! .'.  This would cause the generated library to
 
12456
    # depend on `.', always an invalid library.  This was fixed in
 
12457
    # development snapshots of GCC prior to 3.0.
 
12458
    case $host_os in
 
12459
      aix4 | aix4.[01] | aix4.[01].*)
 
12460
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
12461
           echo ' yes '
 
12462
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
12463
        :
 
12464
      else
 
12465
        can_build_shared=no
 
12466
      fi
 
12467
      ;;
 
12468
    esac
 
12469
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
12470
    # soname into executable. Probably we can add versioning support to
 
12471
    # collect2, so additional links can be useful in future.
 
12472
    if test "$aix_use_runtimelinking" = yes; then
 
12473
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
12474
      # instead of lib<name>.a to let people know that these are not
 
12475
      # typical AIX shared libraries.
 
12476
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12477
    else
 
12478
      # We preserve .a as extension for shared libraries through AIX4.2
 
12479
      # and later when we are not doing run time linking.
 
12480
      library_names_spec='${libname}${release}.a $libname.a'
 
12481
      soname_spec='${libname}${release}${shared_ext}$major'
 
12482
    fi
 
12483
    shlibpath_var=LIBPATH
 
12484
  fi
 
12485
  ;;
 
12486
 
 
12487
amigaos*)
 
12488
  library_names_spec='$libname.ixlibrary $libname.a'
 
12489
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
12490
  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'
 
12491
  ;;
 
12492
 
 
12493
beos*)
 
12494
  library_names_spec='${libname}${shared_ext}'
 
12495
  dynamic_linker="$host_os ld.so"
 
12496
  shlibpath_var=LIBRARY_PATH
 
12497
  ;;
 
12498
 
 
12499
bsdi4*)
 
12500
  version_type=linux
 
12501
  need_version=no
 
12502
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12503
  soname_spec='${libname}${release}${shared_ext}$major'
 
12504
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
12505
  shlibpath_var=LD_LIBRARY_PATH
 
12506
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
12507
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
12508
  # the default ld.so.conf also contains /usr/contrib/lib and
 
12509
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
12510
  # libtool to hard-code these into programs
 
12511
  ;;
 
12512
 
 
12513
cygwin* | mingw* | pw32*)
 
12514
  version_type=windows
 
12515
  shrext_cmds=".dll"
 
12516
  need_version=no
 
12517
  need_lib_prefix=no
 
12518
 
 
12519
  case $GCC,$host_os in
 
12520
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
12521
    library_names_spec='$libname.dll.a'
 
12522
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
12523
    postinstall_cmds='base_file=`basename \${file}`~
 
12524
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
12525
      dldir=$destdir/`dirname \$dlpath`~
 
12526
      test -d \$dldir || mkdir -p \$dldir~
 
12527
      $install_prog $dir/$dlname \$dldir/$dlname'
 
12528
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
12529
      dlpath=$dir/\$dldll~
 
12530
       $rm \$dlpath'
 
12531
    shlibpath_overrides_runpath=yes
 
12532
 
 
12533
    case $host_os in
 
12534
    cygwin*)
 
12535
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
12536
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12537
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
12538
      ;;
 
12539
    mingw*)
 
12540
      # MinGW DLLs use traditional 'lib' prefix
 
12541
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12542
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12543
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
12544
        # It is most probably a Windows format PATH printed by
 
12545
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
12546
        # path with ; separators, and with drive letters. We can handle the
 
12547
        # drive letters (cygwin fileutils understands them), so leave them,
 
12548
        # especially as we might pass files found there to a mingw objdump,
 
12549
        # which wouldn't understand a cygwinified path. Ahh.
 
12550
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12551
      else
 
12552
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12553
      fi
 
12554
      ;;
 
12555
    pw32*)
 
12556
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
12557
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
12558
      ;;
 
12559
    esac
 
12560
    ;;
 
12561
 
 
12562
  *)
 
12563
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
12564
    ;;
 
12565
  esac
 
12566
  dynamic_linker='Win32 ld.exe'
 
12567
  # FIXME: first we should search . and the directory the executable is in
 
12568
  shlibpath_var=PATH
 
12569
  ;;
 
12570
 
 
12571
darwin* | rhapsody*)
 
12572
  dynamic_linker="$host_os dyld"
 
12573
  version_type=darwin
 
12574
  need_lib_prefix=no
 
12575
  need_version=no
 
12576
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
12577
  soname_spec='${libname}${release}${major}$shared_ext'
 
12578
  shlibpath_overrides_runpath=yes
 
12579
  shlibpath_var=DYLD_LIBRARY_PATH
 
12580
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
12581
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
12582
  if test "$GCC" = yes; then
 
12583
    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"`
 
12584
  else
 
12585
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
12586
  fi
 
12587
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
12588
  ;;
 
12589
 
 
12590
dgux*)
 
12591
  version_type=linux
 
12592
  need_lib_prefix=no
 
12593
  need_version=no
 
12594
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
12595
  soname_spec='${libname}${release}${shared_ext}$major'
 
12596
  shlibpath_var=LD_LIBRARY_PATH
 
12597
  ;;
 
12598
 
 
12599
freebsd1*)
 
12600
  dynamic_linker=no
 
12601
  ;;
 
12602
 
 
12603
kfreebsd*-gnu)
 
12604
  version_type=linux
 
12605
  need_lib_prefix=no
 
12606
  need_version=no
 
12607
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12608
  soname_spec='${libname}${release}${shared_ext}$major'
 
12609
  shlibpath_var=LD_LIBRARY_PATH
 
12610
  shlibpath_overrides_runpath=no
 
12611
  hardcode_into_libs=yes
 
12612
  dynamic_linker='GNU ld.so'
 
12613
  ;;
 
12614
 
 
12615
freebsd*)
 
12616
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
12617
  version_type=freebsd-$objformat
 
12618
  case $version_type in
 
12619
    freebsd-elf*)
 
12620
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12621
      need_version=no
 
12622
      need_lib_prefix=no
 
12623
      ;;
 
12624
    freebsd-*)
 
12625
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
12626
      need_version=yes
 
12627
      ;;
 
12628
  esac
 
12629
  shlibpath_var=LD_LIBRARY_PATH
 
12630
  case $host_os in
 
12631
  freebsd2*)
 
12632
    shlibpath_overrides_runpath=yes
 
12633
    ;;
 
12634
  freebsd3.01* | freebsdelf3.01*)
 
12635
    shlibpath_overrides_runpath=yes
 
12636
    hardcode_into_libs=yes
 
12637
    ;;
 
12638
  *) # from 3.2 on
 
12639
    shlibpath_overrides_runpath=no
 
12640
    hardcode_into_libs=yes
 
12641
    ;;
 
12642
  esac
 
12643
  ;;
 
12644
 
 
12645
gnu*)
 
12646
  version_type=linux
 
12647
  need_lib_prefix=no
 
12648
  need_version=no
 
12649
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
12650
  soname_spec='${libname}${release}${shared_ext}$major'
 
12651
  shlibpath_var=LD_LIBRARY_PATH
 
12652
  hardcode_into_libs=yes
 
12653
  ;;
 
12654
 
 
12655
hpux9* | hpux10* | hpux11*)
 
12656
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
12657
  # link against other versions.
 
12658
  version_type=sunos
 
12659
  need_lib_prefix=no
 
12660
  need_version=no
 
12661
  case "$host_cpu" in
 
12662
  ia64*)
 
12663
    shrext_cmds='.so'
 
12664
    hardcode_into_libs=yes
 
12665
    dynamic_linker="$host_os dld.so"
 
12666
    shlibpath_var=LD_LIBRARY_PATH
 
12667
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12668
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12669
    soname_spec='${libname}${release}${shared_ext}$major'
 
12670
    if test "X$HPUX_IA64_MODE" = X32; then
 
12671
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
12672
    else
 
12673
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
12674
    fi
 
12675
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12676
    ;;
 
12677
   hppa*64*)
 
12678
     shrext_cmds='.sl'
 
12679
     hardcode_into_libs=yes
 
12680
     dynamic_linker="$host_os dld.sl"
 
12681
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
12682
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12683
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12684
     soname_spec='${libname}${release}${shared_ext}$major'
 
12685
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
12686
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12687
     ;;
 
12688
   *)
 
12689
    shrext_cmds='.sl'
 
12690
    dynamic_linker="$host_os dld.sl"
 
12691
    shlibpath_var=SHLIB_PATH
 
12692
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
12693
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12694
    soname_spec='${libname}${release}${shared_ext}$major'
 
12695
    ;;
 
12696
  esac
 
12697
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
12698
  postinstall_cmds='chmod 555 $lib'
 
12699
  ;;
 
12700
 
 
12701
irix5* | irix6* | nonstopux*)
 
12702
  case $host_os in
 
12703
    nonstopux*) version_type=nonstopux ;;
 
12704
    *)
 
12705
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
12706
                version_type=linux
 
12707
        else
 
12708
                version_type=irix
 
12709
        fi ;;
 
12710
  esac
 
12711
  need_lib_prefix=no
 
12712
  need_version=no
 
12713
  soname_spec='${libname}${release}${shared_ext}$major'
 
12714
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12715
  case $host_os in
 
12716
  irix5* | nonstopux*)
 
12717
    libsuff= shlibsuff=
 
12718
    ;;
 
12719
  *)
 
12720
    case $LD in # libtool.m4 will add one of these switches to LD
 
12721
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
12722
      libsuff= shlibsuff= libmagic=32-bit;;
 
12723
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
12724
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
12725
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
12726
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
12727
    *) libsuff= shlibsuff= libmagic=never-match;;
 
12728
    esac
 
12729
    ;;
 
12730
  esac
 
12731
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
12732
  shlibpath_overrides_runpath=no
 
12733
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
12734
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
12735
  hardcode_into_libs=yes
 
12736
  ;;
 
12737
 
 
12738
# No shared lib support for Linux oldld, aout, or coff.
 
12739
linux*oldld* | linux*aout* | linux*coff*)
 
12740
  dynamic_linker=no
 
12741
  ;;
 
12742
 
 
12743
# This must be Linux ELF.
 
12744
linux*)
 
12745
  version_type=linux
 
12746
  need_lib_prefix=no
 
12747
  need_version=no
 
12748
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12749
  soname_spec='${libname}${release}${shared_ext}$major'
 
12750
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
12751
  shlibpath_var=LD_LIBRARY_PATH
 
12752
  shlibpath_overrides_runpath=no
 
12753
  # This implies no fast_install, which is unacceptable.
 
12754
  # Some rework will be needed to allow for fast_install
 
12755
  # before this can be enabled.
 
12756
  hardcode_into_libs=yes
 
12757
 
 
12758
  # Append ld.so.conf contents to the search path
 
12759
  if test -f /etc/ld.so.conf; then
 
12760
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
12761
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
12762
  fi
 
12763
 
 
12764
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12765
  # powerpc, because MkLinux only supported shared libraries with the
 
12766
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12767
  # most powerpc-linux boxes support dynamic linking these days and
 
12768
  # people can always --disable-shared, the test was removed, and we
 
12769
  # assume the GNU/Linux dynamic linker is in use.
 
12770
  dynamic_linker='GNU/Linux ld.so'
 
12771
  ;;
 
12772
 
 
12773
knetbsd*-gnu)
 
12774
  version_type=linux
 
12775
  need_lib_prefix=no
 
12776
  need_version=no
 
12777
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12778
  soname_spec='${libname}${release}${shared_ext}$major'
 
12779
  shlibpath_var=LD_LIBRARY_PATH
 
12780
  shlibpath_overrides_runpath=no
 
12781
  hardcode_into_libs=yes
 
12782
  dynamic_linker='GNU ld.so'
 
12783
  ;;
 
12784
 
 
12785
netbsd*)
 
12786
  version_type=sunos
 
12787
  need_lib_prefix=no
 
12788
  need_version=no
 
12789
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12790
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12791
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12792
    dynamic_linker='NetBSD (a.out) ld.so'
 
12793
  else
 
12794
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12795
    soname_spec='${libname}${release}${shared_ext}$major'
 
12796
    dynamic_linker='NetBSD ld.elf_so'
 
12797
  fi
 
12798
  shlibpath_var=LD_LIBRARY_PATH
 
12799
  shlibpath_overrides_runpath=yes
 
12800
  hardcode_into_libs=yes
 
12801
  ;;
 
12802
 
 
12803
newsos6)
 
12804
  version_type=linux
 
12805
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12806
  shlibpath_var=LD_LIBRARY_PATH
 
12807
  shlibpath_overrides_runpath=yes
 
12808
  ;;
 
12809
 
 
12810
nto-qnx*)
 
12811
  version_type=linux
 
12812
  need_lib_prefix=no
 
12813
  need_version=no
 
12814
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12815
  soname_spec='${libname}${release}${shared_ext}$major'
 
12816
  shlibpath_var=LD_LIBRARY_PATH
 
12817
  shlibpath_overrides_runpath=yes
 
12818
  ;;
 
12819
 
 
12820
openbsd*)
 
12821
  version_type=sunos
 
12822
  need_lib_prefix=no
 
12823
  need_version=yes
 
12824
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12825
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12826
  shlibpath_var=LD_LIBRARY_PATH
 
12827
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12828
    case $host_os in
 
12829
      openbsd2.[89] | openbsd2.[89].*)
 
12830
        shlibpath_overrides_runpath=no
 
12831
        ;;
 
12832
      *)
 
12833
        shlibpath_overrides_runpath=yes
 
12834
        ;;
 
12835
      esac
 
12836
  else
 
12837
    shlibpath_overrides_runpath=yes
 
12838
  fi
 
12839
  ;;
 
12840
 
 
12841
os2*)
 
12842
  libname_spec='$name'
 
12843
  shrext_cmds=".dll"
 
12844
  need_lib_prefix=no
 
12845
  library_names_spec='$libname${shared_ext} $libname.a'
 
12846
  dynamic_linker='OS/2 ld.exe'
 
12847
  shlibpath_var=LIBPATH
 
12848
  ;;
 
12849
 
 
12850
osf3* | osf4* | osf5*)
 
12851
  version_type=osf
 
12852
  need_lib_prefix=no
 
12853
  need_version=no
 
12854
  soname_spec='${libname}${release}${shared_ext}$major'
 
12855
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12856
  shlibpath_var=LD_LIBRARY_PATH
 
12857
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12858
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12859
  ;;
 
12860
 
 
12861
sco3.2v5*)
 
12862
  version_type=osf
 
12863
  soname_spec='${libname}${release}${shared_ext}$major'
 
12864
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12865
  shlibpath_var=LD_LIBRARY_PATH
 
12866
  ;;
 
12867
 
 
12868
solaris*)
 
12869
  version_type=linux
 
12870
  need_lib_prefix=no
 
12871
  need_version=no
 
12872
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12873
  soname_spec='${libname}${release}${shared_ext}$major'
 
12874
  shlibpath_var=LD_LIBRARY_PATH
 
12875
  shlibpath_overrides_runpath=yes
 
12876
  hardcode_into_libs=yes
 
12877
  # ldd complains unless libraries are executable
 
12878
  postinstall_cmds='chmod +x $lib'
 
12879
  ;;
 
12880
 
 
12881
sunos4*)
 
12882
  version_type=sunos
 
12883
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12884
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
12885
  shlibpath_var=LD_LIBRARY_PATH
 
12886
  shlibpath_overrides_runpath=yes
 
12887
  if test "$with_gnu_ld" = yes; then
 
12888
    need_lib_prefix=no
 
12889
  fi
 
12890
  need_version=yes
 
12891
  ;;
 
12892
 
 
12893
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
12894
  version_type=linux
 
12895
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12896
  soname_spec='${libname}${release}${shared_ext}$major'
 
12897
  shlibpath_var=LD_LIBRARY_PATH
 
12898
  case $host_vendor in
 
12899
    sni)
 
12900
      shlibpath_overrides_runpath=no
 
12901
      need_lib_prefix=no
 
12902
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
12903
      runpath_var=LD_RUN_PATH
 
12904
      ;;
 
12905
    siemens)
 
12906
      need_lib_prefix=no
 
12907
      ;;
 
12908
    motorola)
 
12909
      need_lib_prefix=no
 
12910
      need_version=no
 
12911
      shlibpath_overrides_runpath=no
 
12912
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
12913
      ;;
 
12914
  esac
 
12915
  ;;
 
12916
 
 
12917
sysv4*MP*)
 
12918
  if test -d /usr/nec ;then
 
12919
    version_type=linux
 
12920
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
12921
    soname_spec='$libname${shared_ext}.$major'
 
12922
    shlibpath_var=LD_LIBRARY_PATH
 
12923
  fi
 
12924
  ;;
 
12925
 
 
12926
uts4*)
 
12927
  version_type=linux
 
12928
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12929
  soname_spec='${libname}${release}${shared_ext}$major'
 
12930
  shlibpath_var=LD_LIBRARY_PATH
 
12931
  ;;
 
12932
 
 
12933
*)
 
12934
  dynamic_linker=no
 
12935
  ;;
 
12936
esac
 
12937
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
12938
echo "${ECHO_T}$dynamic_linker" >&6
 
12939
test "$dynamic_linker" = no && can_build_shared=no
 
12940
 
 
12941
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
12942
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
12943
hardcode_action_CXX=
 
12944
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
12945
   test -n "$runpath_var CXX" || \
 
12946
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
12947
 
 
12948
  # We can hardcode non-existant directories.
 
12949
  if test "$hardcode_direct_CXX" != no &&
 
12950
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
12951
     # have to relink, otherwise we might link with an installed library
 
12952
     # when we should be linking with a yet-to-be-installed one
 
12953
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
12954
     test "$hardcode_minus_L_CXX" != no; then
 
12955
    # Linking always hardcodes the temporary library directory.
 
12956
    hardcode_action_CXX=relink
 
12957
  else
 
12958
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
12959
    hardcode_action_CXX=immediate
 
12960
  fi
 
12961
else
 
12962
  # We cannot hardcode anything, or else we can only hardcode existing
 
12963
  # directories.
 
12964
  hardcode_action_CXX=unsupported
 
12965
fi
 
12966
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
12967
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
12968
 
 
12969
if test "$hardcode_action_CXX" = relink; then
 
12970
  # Fast installation is not supported
 
12971
  enable_fast_install=no
 
12972
elif test "$shlibpath_overrides_runpath" = yes ||
 
12973
     test "$enable_shared" = no; then
 
12974
  # Fast installation is not necessary
 
12975
  enable_fast_install=needless
 
12976
fi
 
12977
 
 
12978
striplib=
 
12979
old_striplib=
 
12980
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
12981
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
12982
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
12983
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12984
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12985
  echo "$as_me:$LINENO: result: yes" >&5
 
12986
echo "${ECHO_T}yes" >&6
 
12987
else
 
12988
# FIXME - insert some real tests, host_os isn't really good enough
 
12989
  case $host_os in
 
12990
   darwin*)
 
12991
       if test -n "$STRIP" ; then
 
12992
         striplib="$STRIP -x"
 
12993
         echo "$as_me:$LINENO: result: yes" >&5
 
12994
echo "${ECHO_T}yes" >&6
 
12995
       else
 
12996
  echo "$as_me:$LINENO: result: no" >&5
 
12997
echo "${ECHO_T}no" >&6
 
12998
fi
 
12999
       ;;
 
13000
   *)
 
13001
  echo "$as_me:$LINENO: result: no" >&5
 
13002
echo "${ECHO_T}no" >&6
 
13003
    ;;
 
13004
  esac
 
13005
fi
 
13006
 
 
13007
if test "x$enable_dlopen" != xyes; then
 
13008
  enable_dlopen=unknown
 
13009
  enable_dlopen_self=unknown
 
13010
  enable_dlopen_self_static=unknown
 
13011
else
 
13012
  lt_cv_dlopen=no
 
13013
  lt_cv_dlopen_libs=
 
13014
 
 
13015
  case $host_os in
 
13016
  beos*)
 
13017
    lt_cv_dlopen="load_add_on"
 
13018
    lt_cv_dlopen_libs=
 
13019
    lt_cv_dlopen_self=yes
 
13020
    ;;
 
13021
 
 
13022
  mingw* | pw32*)
 
13023
    lt_cv_dlopen="LoadLibrary"
 
13024
    lt_cv_dlopen_libs=
 
13025
   ;;
 
13026
 
 
13027
  cygwin*)
 
13028
    lt_cv_dlopen="dlopen"
 
13029
    lt_cv_dlopen_libs=
 
13030
   ;;
 
13031
 
 
13032
  darwin*)
 
13033
  # if libdl is installed we need to link against it
 
13034
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
13035
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
13036
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
13037
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13038
else
 
13039
  ac_check_lib_save_LIBS=$LIBS
 
13040
LIBS="-ldl  $LIBS"
 
13041
cat >conftest.$ac_ext <<_ACEOF
 
13042
/* confdefs.h.  */
 
13043
_ACEOF
 
13044
cat confdefs.h >>conftest.$ac_ext
 
13045
cat >>conftest.$ac_ext <<_ACEOF
 
13046
/* end confdefs.h.  */
 
13047
 
 
13048
/* Override any gcc2 internal prototype to avoid an error.  */
 
13049
#ifdef __cplusplus
 
13050
extern "C"
 
13051
#endif
 
13052
/* We use char because int might match the return type of a gcc2
 
13053
   builtin and then its argument prototype would still apply.  */
 
13054
char dlopen ();
 
13055
int
 
13056
main ()
 
13057
{
 
13058
dlopen ();
 
13059
  ;
 
13060
  return 0;
 
13061
}
 
13062
_ACEOF
 
13063
rm -f conftest.$ac_objext conftest$ac_exeext
 
13064
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13065
  (eval $ac_link) 2>conftest.er1
 
13066
  ac_status=$?
 
13067
  grep -v '^ *+' conftest.er1 >conftest.err
 
13068
  rm -f conftest.er1
 
13069
  cat conftest.err >&5
 
13070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13071
  (exit $ac_status); } &&
 
13072
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13073
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13074
  (eval $ac_try) 2>&5
 
13075
  ac_status=$?
 
13076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13077
  (exit $ac_status); }; } &&
 
13078
         { ac_try='test -s conftest$ac_exeext'
 
13079
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13080
  (eval $ac_try) 2>&5
 
13081
  ac_status=$?
 
13082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13083
  (exit $ac_status); }; }; then
 
13084
  ac_cv_lib_dl_dlopen=yes
 
13085
else
 
13086
  echo "$as_me: failed program was:" >&5
 
13087
sed 's/^/| /' conftest.$ac_ext >&5
 
13088
 
 
13089
ac_cv_lib_dl_dlopen=no
 
13090
fi
 
13091
rm -f conftest.err conftest.$ac_objext \
 
13092
      conftest$ac_exeext conftest.$ac_ext
 
13093
LIBS=$ac_check_lib_save_LIBS
 
13094
fi
 
13095
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
13096
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
13097
if test $ac_cv_lib_dl_dlopen = yes; then
 
13098
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
13099
else
 
13100
 
 
13101
    lt_cv_dlopen="dyld"
 
13102
    lt_cv_dlopen_libs=
 
13103
    lt_cv_dlopen_self=yes
 
13104
 
 
13105
fi
 
13106
 
 
13107
   ;;
 
13108
 
 
13109
  *)
 
13110
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
13111
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
13112
if test "${ac_cv_func_shl_load+set}" = set; then
 
13113
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13114
else
 
13115
  cat >conftest.$ac_ext <<_ACEOF
 
13116
/* confdefs.h.  */
 
13117
_ACEOF
 
13118
cat confdefs.h >>conftest.$ac_ext
 
13119
cat >>conftest.$ac_ext <<_ACEOF
 
13120
/* end confdefs.h.  */
 
13121
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
13122
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13123
#define shl_load innocuous_shl_load
 
13124
 
 
13125
/* System header to define __stub macros and hopefully few prototypes,
 
13126
    which can conflict with char shl_load (); below.
 
13127
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13128
    <limits.h> exists even on freestanding compilers.  */
 
13129
 
 
13130
#ifdef __STDC__
 
13131
# include <limits.h>
 
13132
#else
 
13133
# include <assert.h>
 
13134
#endif
 
13135
 
 
13136
#undef shl_load
 
13137
 
 
13138
/* Override any gcc2 internal prototype to avoid an error.  */
 
13139
#ifdef __cplusplus
 
13140
extern "C"
 
13141
{
 
13142
#endif
 
13143
/* We use char because int might match the return type of a gcc2
 
13144
   builtin and then its argument prototype would still apply.  */
 
13145
char shl_load ();
 
13146
/* The GNU C library defines this for functions which it implements
 
13147
    to always fail with ENOSYS.  Some functions are actually named
 
13148
    something starting with __ and the normal name is an alias.  */
 
13149
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
13150
choke me
 
13151
#else
 
13152
char (*f) () = shl_load;
 
13153
#endif
 
13154
#ifdef __cplusplus
 
13155
}
 
13156
#endif
 
13157
 
 
13158
int
 
13159
main ()
 
13160
{
 
13161
return f != shl_load;
 
13162
  ;
 
13163
  return 0;
 
13164
}
 
13165
_ACEOF
 
13166
rm -f conftest.$ac_objext conftest$ac_exeext
 
13167
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13168
  (eval $ac_link) 2>conftest.er1
 
13169
  ac_status=$?
 
13170
  grep -v '^ *+' conftest.er1 >conftest.err
 
13171
  rm -f conftest.er1
 
13172
  cat conftest.err >&5
 
13173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13174
  (exit $ac_status); } &&
 
13175
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13176
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13177
  (eval $ac_try) 2>&5
 
13178
  ac_status=$?
 
13179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13180
  (exit $ac_status); }; } &&
 
13181
         { ac_try='test -s conftest$ac_exeext'
 
13182
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13183
  (eval $ac_try) 2>&5
 
13184
  ac_status=$?
 
13185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13186
  (exit $ac_status); }; }; then
 
13187
  ac_cv_func_shl_load=yes
 
13188
else
 
13189
  echo "$as_me: failed program was:" >&5
 
13190
sed 's/^/| /' conftest.$ac_ext >&5
 
13191
 
 
13192
ac_cv_func_shl_load=no
 
13193
fi
 
13194
rm -f conftest.err conftest.$ac_objext \
 
13195
      conftest$ac_exeext conftest.$ac_ext
 
13196
fi
 
13197
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
13198
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
13199
if test $ac_cv_func_shl_load = yes; then
 
13200
  lt_cv_dlopen="shl_load"
 
13201
else
 
13202
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
13203
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
13204
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
13205
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13206
else
 
13207
  ac_check_lib_save_LIBS=$LIBS
 
13208
LIBS="-ldld  $LIBS"
 
13209
cat >conftest.$ac_ext <<_ACEOF
 
13210
/* confdefs.h.  */
 
13211
_ACEOF
 
13212
cat confdefs.h >>conftest.$ac_ext
 
13213
cat >>conftest.$ac_ext <<_ACEOF
 
13214
/* end confdefs.h.  */
 
13215
 
 
13216
/* Override any gcc2 internal prototype to avoid an error.  */
 
13217
#ifdef __cplusplus
 
13218
extern "C"
 
13219
#endif
 
13220
/* We use char because int might match the return type of a gcc2
 
13221
   builtin and then its argument prototype would still apply.  */
 
13222
char shl_load ();
 
13223
int
 
13224
main ()
 
13225
{
 
13226
shl_load ();
 
13227
  ;
 
13228
  return 0;
 
13229
}
 
13230
_ACEOF
 
13231
rm -f conftest.$ac_objext conftest$ac_exeext
 
13232
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13233
  (eval $ac_link) 2>conftest.er1
 
13234
  ac_status=$?
 
13235
  grep -v '^ *+' conftest.er1 >conftest.err
 
13236
  rm -f conftest.er1
 
13237
  cat conftest.err >&5
 
13238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13239
  (exit $ac_status); } &&
 
13240
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13241
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13242
  (eval $ac_try) 2>&5
 
13243
  ac_status=$?
 
13244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13245
  (exit $ac_status); }; } &&
 
13246
         { ac_try='test -s conftest$ac_exeext'
 
13247
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13248
  (eval $ac_try) 2>&5
 
13249
  ac_status=$?
 
13250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13251
  (exit $ac_status); }; }; then
 
13252
  ac_cv_lib_dld_shl_load=yes
 
13253
else
 
13254
  echo "$as_me: failed program was:" >&5
 
13255
sed 's/^/| /' conftest.$ac_ext >&5
 
13256
 
 
13257
ac_cv_lib_dld_shl_load=no
 
13258
fi
 
13259
rm -f conftest.err conftest.$ac_objext \
 
13260
      conftest$ac_exeext conftest.$ac_ext
 
13261
LIBS=$ac_check_lib_save_LIBS
 
13262
fi
 
13263
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
13264
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
13265
if test $ac_cv_lib_dld_shl_load = yes; then
 
13266
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
13267
else
 
13268
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
13269
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
13270
if test "${ac_cv_func_dlopen+set}" = set; then
 
13271
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13272
else
 
13273
  cat >conftest.$ac_ext <<_ACEOF
 
13274
/* confdefs.h.  */
 
13275
_ACEOF
 
13276
cat confdefs.h >>conftest.$ac_ext
 
13277
cat >>conftest.$ac_ext <<_ACEOF
 
13278
/* end confdefs.h.  */
 
13279
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
13280
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13281
#define dlopen innocuous_dlopen
 
13282
 
 
13283
/* System header to define __stub macros and hopefully few prototypes,
 
13284
    which can conflict with char dlopen (); below.
 
13285
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13286
    <limits.h> exists even on freestanding compilers.  */
 
13287
 
 
13288
#ifdef __STDC__
 
13289
# include <limits.h>
 
13290
#else
 
13291
# include <assert.h>
 
13292
#endif
 
13293
 
 
13294
#undef dlopen
 
13295
 
 
13296
/* Override any gcc2 internal prototype to avoid an error.  */
 
13297
#ifdef __cplusplus
 
13298
extern "C"
 
13299
{
 
13300
#endif
 
13301
/* We use char because int might match the return type of a gcc2
 
13302
   builtin and then its argument prototype would still apply.  */
 
13303
char dlopen ();
 
13304
/* The GNU C library defines this for functions which it implements
 
13305
    to always fail with ENOSYS.  Some functions are actually named
 
13306
    something starting with __ and the normal name is an alias.  */
 
13307
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
13308
choke me
 
13309
#else
 
13310
char (*f) () = dlopen;
 
13311
#endif
 
13312
#ifdef __cplusplus
 
13313
}
 
13314
#endif
 
13315
 
 
13316
int
 
13317
main ()
 
13318
{
 
13319
return f != dlopen;
 
13320
  ;
 
13321
  return 0;
 
13322
}
 
13323
_ACEOF
 
13324
rm -f conftest.$ac_objext conftest$ac_exeext
 
13325
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13326
  (eval $ac_link) 2>conftest.er1
 
13327
  ac_status=$?
 
13328
  grep -v '^ *+' conftest.er1 >conftest.err
 
13329
  rm -f conftest.er1
 
13330
  cat conftest.err >&5
 
13331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13332
  (exit $ac_status); } &&
 
13333
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13334
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13335
  (eval $ac_try) 2>&5
 
13336
  ac_status=$?
 
13337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13338
  (exit $ac_status); }; } &&
 
13339
         { ac_try='test -s conftest$ac_exeext'
 
13340
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13341
  (eval $ac_try) 2>&5
 
13342
  ac_status=$?
 
13343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13344
  (exit $ac_status); }; }; then
 
13345
  ac_cv_func_dlopen=yes
 
13346
else
 
13347
  echo "$as_me: failed program was:" >&5
 
13348
sed 's/^/| /' conftest.$ac_ext >&5
 
13349
 
 
13350
ac_cv_func_dlopen=no
 
13351
fi
 
13352
rm -f conftest.err conftest.$ac_objext \
 
13353
      conftest$ac_exeext conftest.$ac_ext
 
13354
fi
 
13355
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
13356
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
13357
if test $ac_cv_func_dlopen = yes; then
 
13358
  lt_cv_dlopen="dlopen"
 
13359
else
 
13360
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
13361
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
13362
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
13363
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13364
else
 
13365
  ac_check_lib_save_LIBS=$LIBS
 
13366
LIBS="-ldl  $LIBS"
 
13367
cat >conftest.$ac_ext <<_ACEOF
 
13368
/* confdefs.h.  */
 
13369
_ACEOF
 
13370
cat confdefs.h >>conftest.$ac_ext
 
13371
cat >>conftest.$ac_ext <<_ACEOF
 
13372
/* end confdefs.h.  */
 
13373
 
 
13374
/* Override any gcc2 internal prototype to avoid an error.  */
 
13375
#ifdef __cplusplus
 
13376
extern "C"
 
13377
#endif
 
13378
/* We use char because int might match the return type of a gcc2
 
13379
   builtin and then its argument prototype would still apply.  */
 
13380
char dlopen ();
 
13381
int
 
13382
main ()
 
13383
{
 
13384
dlopen ();
 
13385
  ;
 
13386
  return 0;
 
13387
}
 
13388
_ACEOF
 
13389
rm -f conftest.$ac_objext conftest$ac_exeext
 
13390
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13391
  (eval $ac_link) 2>conftest.er1
 
13392
  ac_status=$?
 
13393
  grep -v '^ *+' conftest.er1 >conftest.err
 
13394
  rm -f conftest.er1
 
13395
  cat conftest.err >&5
 
13396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13397
  (exit $ac_status); } &&
 
13398
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13399
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13400
  (eval $ac_try) 2>&5
 
13401
  ac_status=$?
 
13402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13403
  (exit $ac_status); }; } &&
 
13404
         { ac_try='test -s conftest$ac_exeext'
 
13405
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13406
  (eval $ac_try) 2>&5
 
13407
  ac_status=$?
 
13408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13409
  (exit $ac_status); }; }; then
 
13410
  ac_cv_lib_dl_dlopen=yes
 
13411
else
 
13412
  echo "$as_me: failed program was:" >&5
 
13413
sed 's/^/| /' conftest.$ac_ext >&5
 
13414
 
 
13415
ac_cv_lib_dl_dlopen=no
 
13416
fi
 
13417
rm -f conftest.err conftest.$ac_objext \
 
13418
      conftest$ac_exeext conftest.$ac_ext
 
13419
LIBS=$ac_check_lib_save_LIBS
 
13420
fi
 
13421
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
13422
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
13423
if test $ac_cv_lib_dl_dlopen = yes; then
 
13424
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
13425
else
 
13426
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
13427
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
13428
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
13429
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13430
else
 
13431
  ac_check_lib_save_LIBS=$LIBS
 
13432
LIBS="-lsvld  $LIBS"
 
13433
cat >conftest.$ac_ext <<_ACEOF
 
13434
/* confdefs.h.  */
 
13435
_ACEOF
 
13436
cat confdefs.h >>conftest.$ac_ext
 
13437
cat >>conftest.$ac_ext <<_ACEOF
 
13438
/* end confdefs.h.  */
 
13439
 
 
13440
/* Override any gcc2 internal prototype to avoid an error.  */
 
13441
#ifdef __cplusplus
 
13442
extern "C"
 
13443
#endif
 
13444
/* We use char because int might match the return type of a gcc2
 
13445
   builtin and then its argument prototype would still apply.  */
 
13446
char dlopen ();
 
13447
int
 
13448
main ()
 
13449
{
 
13450
dlopen ();
 
13451
  ;
 
13452
  return 0;
 
13453
}
 
13454
_ACEOF
 
13455
rm -f conftest.$ac_objext conftest$ac_exeext
 
13456
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13457
  (eval $ac_link) 2>conftest.er1
 
13458
  ac_status=$?
 
13459
  grep -v '^ *+' conftest.er1 >conftest.err
 
13460
  rm -f conftest.er1
 
13461
  cat conftest.err >&5
 
13462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13463
  (exit $ac_status); } &&
 
13464
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13466
  (eval $ac_try) 2>&5
 
13467
  ac_status=$?
 
13468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13469
  (exit $ac_status); }; } &&
 
13470
         { ac_try='test -s conftest$ac_exeext'
 
13471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13472
  (eval $ac_try) 2>&5
 
13473
  ac_status=$?
 
13474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13475
  (exit $ac_status); }; }; then
 
13476
  ac_cv_lib_svld_dlopen=yes
 
13477
else
 
13478
  echo "$as_me: failed program was:" >&5
 
13479
sed 's/^/| /' conftest.$ac_ext >&5
 
13480
 
 
13481
ac_cv_lib_svld_dlopen=no
 
13482
fi
 
13483
rm -f conftest.err conftest.$ac_objext \
 
13484
      conftest$ac_exeext conftest.$ac_ext
 
13485
LIBS=$ac_check_lib_save_LIBS
 
13486
fi
 
13487
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
13488
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
13489
if test $ac_cv_lib_svld_dlopen = yes; then
 
13490
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
13491
else
 
13492
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
13493
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
13494
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
13495
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13496
else
 
13497
  ac_check_lib_save_LIBS=$LIBS
 
13498
LIBS="-ldld  $LIBS"
 
13499
cat >conftest.$ac_ext <<_ACEOF
 
13500
/* confdefs.h.  */
 
13501
_ACEOF
 
13502
cat confdefs.h >>conftest.$ac_ext
 
13503
cat >>conftest.$ac_ext <<_ACEOF
 
13504
/* end confdefs.h.  */
 
13505
 
 
13506
/* Override any gcc2 internal prototype to avoid an error.  */
 
13507
#ifdef __cplusplus
 
13508
extern "C"
 
13509
#endif
 
13510
/* We use char because int might match the return type of a gcc2
 
13511
   builtin and then its argument prototype would still apply.  */
 
13512
char dld_link ();
 
13513
int
 
13514
main ()
 
13515
{
 
13516
dld_link ();
 
13517
  ;
 
13518
  return 0;
 
13519
}
 
13520
_ACEOF
 
13521
rm -f conftest.$ac_objext conftest$ac_exeext
 
13522
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13523
  (eval $ac_link) 2>conftest.er1
 
13524
  ac_status=$?
 
13525
  grep -v '^ *+' conftest.er1 >conftest.err
 
13526
  rm -f conftest.er1
 
13527
  cat conftest.err >&5
 
13528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13529
  (exit $ac_status); } &&
 
13530
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13531
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13532
  (eval $ac_try) 2>&5
 
13533
  ac_status=$?
 
13534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13535
  (exit $ac_status); }; } &&
 
13536
         { ac_try='test -s conftest$ac_exeext'
 
13537
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13538
  (eval $ac_try) 2>&5
 
13539
  ac_status=$?
 
13540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13541
  (exit $ac_status); }; }; then
 
13542
  ac_cv_lib_dld_dld_link=yes
 
13543
else
 
13544
  echo "$as_me: failed program was:" >&5
 
13545
sed 's/^/| /' conftest.$ac_ext >&5
 
13546
 
 
13547
ac_cv_lib_dld_dld_link=no
 
13548
fi
 
13549
rm -f conftest.err conftest.$ac_objext \
 
13550
      conftest$ac_exeext conftest.$ac_ext
 
13551
LIBS=$ac_check_lib_save_LIBS
 
13552
fi
 
13553
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
13554
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
13555
if test $ac_cv_lib_dld_dld_link = yes; then
 
13556
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
13557
fi
 
13558
 
 
13559
 
 
13560
fi
 
13561
 
 
13562
 
 
13563
fi
 
13564
 
 
13565
 
 
13566
fi
 
13567
 
 
13568
 
 
13569
fi
 
13570
 
 
13571
 
 
13572
fi
 
13573
 
 
13574
    ;;
 
13575
  esac
 
13576
 
 
13577
  if test "x$lt_cv_dlopen" != xno; then
 
13578
    enable_dlopen=yes
 
13579
  else
 
13580
    enable_dlopen=no
 
13581
  fi
 
13582
 
 
13583
  case $lt_cv_dlopen in
 
13584
  dlopen)
 
13585
    save_CPPFLAGS="$CPPFLAGS"
 
13586
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
13587
 
 
13588
    save_LDFLAGS="$LDFLAGS"
 
13589
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
13590
 
 
13591
    save_LIBS="$LIBS"
 
13592
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
13593
 
 
13594
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
13595
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
13596
if test "${lt_cv_dlopen_self+set}" = set; then
 
13597
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13598
else
 
13599
          if test "$cross_compiling" = yes; then :
 
13600
  lt_cv_dlopen_self=cross
 
13601
else
 
13602
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
13603
  lt_status=$lt_dlunknown
 
13604
  cat > conftest.$ac_ext <<EOF
 
13605
#line 13605 "configure"
 
13606
#include "confdefs.h"
 
13607
 
 
13608
#if HAVE_DLFCN_H
 
13609
#include <dlfcn.h>
 
13610
#endif
 
13611
 
 
13612
#include <stdio.h>
 
13613
 
 
13614
#ifdef RTLD_GLOBAL
 
13615
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
13616
#else
 
13617
#  ifdef DL_GLOBAL
 
13618
#    define LT_DLGLOBAL         DL_GLOBAL
 
13619
#  else
 
13620
#    define LT_DLGLOBAL         0
 
13621
#  endif
 
13622
#endif
 
13623
 
 
13624
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
13625
   find out it does not work in some platform. */
 
13626
#ifndef LT_DLLAZY_OR_NOW
 
13627
#  ifdef RTLD_LAZY
 
13628
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
13629
#  else
 
13630
#    ifdef DL_LAZY
 
13631
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
13632
#    else
 
13633
#      ifdef RTLD_NOW
 
13634
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
13635
#      else
 
13636
#        ifdef DL_NOW
 
13637
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
13638
#        else
 
13639
#          define LT_DLLAZY_OR_NOW      0
 
13640
#        endif
 
13641
#      endif
 
13642
#    endif
 
13643
#  endif
 
13644
#endif
 
13645
 
 
13646
#ifdef __cplusplus
 
13647
extern "C" void exit (int);
 
13648
#endif
 
13649
 
 
13650
void fnord() { int i=42;}
 
13651
int main ()
 
13652
{
 
13653
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
13654
  int status = $lt_dlunknown;
 
13655
 
 
13656
  if (self)
 
13657
    {
 
13658
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
13659
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
13660
      /* dlclose (self); */
 
13661
    }
 
13662
 
 
13663
    exit (status);
 
13664
}
 
13665
EOF
 
13666
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13667
  (eval $ac_link) 2>&5
 
13668
  ac_status=$?
 
13669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13670
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13671
    (./conftest; exit; ) 2>/dev/null
 
13672
    lt_status=$?
 
13673
    case x$lt_status in
 
13674
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
13675
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
13676
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
13677
    esac
 
13678
  else :
 
13679
    # compilation failed
 
13680
    lt_cv_dlopen_self=no
 
13681
  fi
 
13682
fi
 
13683
rm -fr conftest*
 
13684
 
 
13685
 
 
13686
fi
 
13687
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
13688
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
13689
 
 
13690
    if test "x$lt_cv_dlopen_self" = xyes; then
 
13691
      LDFLAGS="$LDFLAGS $link_static_flag"
 
13692
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
13693
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
13694
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
13695
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13696
else
 
13697
          if test "$cross_compiling" = yes; then :
 
13698
  lt_cv_dlopen_self_static=cross
 
13699
else
 
13700
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
13701
  lt_status=$lt_dlunknown
 
13702
  cat > conftest.$ac_ext <<EOF
 
13703
#line 13703 "configure"
 
13704
#include "confdefs.h"
 
13705
 
 
13706
#if HAVE_DLFCN_H
 
13707
#include <dlfcn.h>
 
13708
#endif
 
13709
 
 
13710
#include <stdio.h>
 
13711
 
 
13712
#ifdef RTLD_GLOBAL
 
13713
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
13714
#else
 
13715
#  ifdef DL_GLOBAL
 
13716
#    define LT_DLGLOBAL         DL_GLOBAL
 
13717
#  else
 
13718
#    define LT_DLGLOBAL         0
 
13719
#  endif
 
13720
#endif
 
13721
 
 
13722
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
13723
   find out it does not work in some platform. */
 
13724
#ifndef LT_DLLAZY_OR_NOW
 
13725
#  ifdef RTLD_LAZY
 
13726
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
13727
#  else
 
13728
#    ifdef DL_LAZY
 
13729
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
13730
#    else
 
13731
#      ifdef RTLD_NOW
 
13732
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
13733
#      else
 
13734
#        ifdef DL_NOW
 
13735
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
13736
#        else
 
13737
#          define LT_DLLAZY_OR_NOW      0
 
13738
#        endif
 
13739
#      endif
 
13740
#    endif
 
13741
#  endif
 
13742
#endif
 
13743
 
 
13744
#ifdef __cplusplus
 
13745
extern "C" void exit (int);
 
13746
#endif
 
13747
 
 
13748
void fnord() { int i=42;}
 
13749
int main ()
 
13750
{
 
13751
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
13752
  int status = $lt_dlunknown;
 
13753
 
 
13754
  if (self)
 
13755
    {
 
13756
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
13757
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
13758
      /* dlclose (self); */
 
13759
    }
 
13760
 
 
13761
    exit (status);
 
13762
}
 
13763
EOF
 
13764
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13765
  (eval $ac_link) 2>&5
 
13766
  ac_status=$?
 
13767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13768
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13769
    (./conftest; exit; ) 2>/dev/null
 
13770
    lt_status=$?
 
13771
    case x$lt_status in
 
13772
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
13773
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
13774
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
13775
    esac
 
13776
  else :
 
13777
    # compilation failed
 
13778
    lt_cv_dlopen_self_static=no
 
13779
  fi
 
13780
fi
 
13781
rm -fr conftest*
 
13782
 
 
13783
 
 
13784
fi
 
13785
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
13786
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
13787
    fi
 
13788
 
 
13789
    CPPFLAGS="$save_CPPFLAGS"
 
13790
    LDFLAGS="$save_LDFLAGS"
 
13791
    LIBS="$save_LIBS"
 
13792
    ;;
 
13793
  esac
 
13794
 
 
13795
  case $lt_cv_dlopen_self in
 
13796
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
13797
  *) enable_dlopen_self=unknown ;;
 
13798
  esac
 
13799
 
 
13800
  case $lt_cv_dlopen_self_static in
 
13801
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
13802
  *) enable_dlopen_self_static=unknown ;;
 
13803
  esac
 
13804
fi
 
13805
 
 
13806
 
 
13807
# The else clause should only fire when bootstrapping the
 
13808
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13809
# with your package, and you will get complaints that there are
 
13810
# no rules to generate ltmain.sh.
 
13811
if test -f "$ltmain"; then
 
13812
  # See if we are running on zsh, and set the options which allow our commands through
 
13813
  # without removal of \ escapes.
 
13814
  if test -n "${ZSH_VERSION+set}" ; then
 
13815
    setopt NO_GLOB_SUBST
 
13816
  fi
 
13817
  # Now quote all the things that may contain metacharacters while being
 
13818
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13819
  # variables and quote the copies for generation of the libtool script.
 
13820
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
13821
    SED SHELL STRIP \
 
13822
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13823
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13824
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13825
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13826
    lt_cv_sys_global_symbol_to_c_name_address \
 
13827
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13828
    old_postinstall_cmds old_postuninstall_cmds \
 
13829
    compiler_CXX \
 
13830
    CC_CXX \
 
13831
    LD_CXX \
 
13832
    lt_prog_compiler_wl_CXX \
 
13833
    lt_prog_compiler_pic_CXX \
 
13834
    lt_prog_compiler_static_CXX \
 
13835
    lt_prog_compiler_no_builtin_flag_CXX \
 
13836
    export_dynamic_flag_spec_CXX \
 
13837
    thread_safe_flag_spec_CXX \
 
13838
    whole_archive_flag_spec_CXX \
 
13839
    enable_shared_with_static_runtimes_CXX \
 
13840
    old_archive_cmds_CXX \
 
13841
    old_archive_from_new_cmds_CXX \
 
13842
    predep_objects_CXX \
 
13843
    postdep_objects_CXX \
 
13844
    predeps_CXX \
 
13845
    postdeps_CXX \
 
13846
    compiler_lib_search_path_CXX \
 
13847
    archive_cmds_CXX \
 
13848
    archive_expsym_cmds_CXX \
 
13849
    postinstall_cmds_CXX \
 
13850
    postuninstall_cmds_CXX \
 
13851
    old_archive_from_expsyms_cmds_CXX \
 
13852
    allow_undefined_flag_CXX \
 
13853
    no_undefined_flag_CXX \
 
13854
    export_symbols_cmds_CXX \
 
13855
    hardcode_libdir_flag_spec_CXX \
 
13856
    hardcode_libdir_flag_spec_ld_CXX \
 
13857
    hardcode_libdir_separator_CXX \
 
13858
    hardcode_automatic_CXX \
 
13859
    module_cmds_CXX \
 
13860
    module_expsym_cmds_CXX \
 
13861
    lt_cv_prog_compiler_c_o_CXX \
 
13862
    exclude_expsyms_CXX \
 
13863
    include_expsyms_CXX; do
 
13864
 
 
13865
    case $var in
 
13866
    old_archive_cmds_CXX | \
 
13867
    old_archive_from_new_cmds_CXX | \
 
13868
    archive_cmds_CXX | \
 
13869
    archive_expsym_cmds_CXX | \
 
13870
    module_cmds_CXX | \
 
13871
    module_expsym_cmds_CXX | \
 
13872
    old_archive_from_expsyms_cmds_CXX | \
 
13873
    export_symbols_cmds_CXX | \
 
13874
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13875
    postinstall_cmds | postuninstall_cmds | \
 
13876
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13877
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13878
      # Double-quote double-evaled strings.
 
13879
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13880
      ;;
 
13881
    *)
 
13882
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13883
      ;;
 
13884
    esac
 
13885
  done
 
13886
 
 
13887
  case $lt_echo in
 
13888
  *'\$0 --fallback-echo"')
 
13889
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13890
    ;;
 
13891
  esac
 
13892
 
 
13893
cfgfile="$ofile"
 
13894
 
 
13895
  cat <<__EOF__ >> "$cfgfile"
 
13896
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13897
 
 
13898
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13899
 
 
13900
# Shell to use when invoking shell scripts.
 
13901
SHELL=$lt_SHELL
 
13902
 
 
13903
# Whether or not to build shared libraries.
 
13904
build_libtool_libs=$enable_shared
 
13905
 
 
13906
# Whether or not to build static libraries.
 
13907
build_old_libs=$enable_static
 
13908
 
 
13909
# Whether or not to add -lc for building shared libraries.
 
13910
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13911
 
 
13912
# Whether or not to disallow shared libs when runtime libs are static
 
13913
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13914
 
 
13915
# Whether or not to optimize for fast installation.
 
13916
fast_install=$enable_fast_install
 
13917
 
 
13918
# The host system.
 
13919
host_alias=$host_alias
 
13920
host=$host
 
13921
 
 
13922
# An echo program that does not interpret backslashes.
 
13923
echo=$lt_echo
 
13924
 
 
13925
# The archiver.
 
13926
AR=$lt_AR
 
13927
AR_FLAGS=$lt_AR_FLAGS
 
13928
 
 
13929
# A C compiler.
 
13930
LTCC=$lt_LTCC
 
13931
 
 
13932
# A language-specific compiler.
 
13933
CC=$lt_compiler_CXX
 
13934
 
 
13935
# Is the compiler the GNU C compiler?
 
13936
with_gcc=$GCC_CXX
 
13937
 
 
13938
# An ERE matcher.
 
13939
EGREP=$lt_EGREP
 
13940
 
 
13941
# The linker used to build libraries.
 
13942
LD=$lt_LD_CXX
 
13943
 
 
13944
# Whether we need hard or soft links.
 
13945
LN_S=$lt_LN_S
 
13946
 
 
13947
# A BSD-compatible nm program.
 
13948
NM=$lt_NM
 
13949
 
 
13950
# A symbol stripping program
 
13951
STRIP=$lt_STRIP
 
13952
 
 
13953
# Used to examine libraries when file_magic_cmd begins "file"
 
13954
MAGIC_CMD=$MAGIC_CMD
 
13955
 
 
13956
# Used on cygwin: DLL creation program.
 
13957
DLLTOOL="$DLLTOOL"
 
13958
 
 
13959
# Used on cygwin: object dumper.
 
13960
OBJDUMP="$OBJDUMP"
 
13961
 
 
13962
# Used on cygwin: assembler.
 
13963
AS="$AS"
 
13964
 
 
13965
# The name of the directory that contains temporary libtool files.
 
13966
objdir=$objdir
 
13967
 
 
13968
# How to create reloadable object files.
 
13969
reload_flag=$lt_reload_flag
 
13970
reload_cmds=$lt_reload_cmds
 
13971
 
 
13972
# How to pass a linker flag through the compiler.
 
13973
wl=$lt_lt_prog_compiler_wl_CXX
 
13974
 
 
13975
# Object file suffix (normally "o").
 
13976
objext="$ac_objext"
 
13977
 
 
13978
# Old archive suffix (normally "a").
 
13979
libext="$libext"
 
13980
 
 
13981
# Shared library suffix (normally ".so").
 
13982
shrext_cmds='$shrext_cmds'
 
13983
 
 
13984
# Executable file suffix (normally "").
 
13985
exeext="$exeext"
 
13986
 
 
13987
# Additional compiler flags for building library objects.
 
13988
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13989
pic_mode=$pic_mode
 
13990
 
 
13991
# What is the maximum length of a command?
 
13992
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13993
 
 
13994
# Does compiler simultaneously support -c and -o options?
 
13995
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13996
 
 
13997
# Must we lock files when doing compilation ?
 
13998
need_locks=$lt_need_locks
 
13999
 
 
14000
# Do we need the lib prefix for modules?
 
14001
need_lib_prefix=$need_lib_prefix
 
14002
 
 
14003
# Do we need a version for libraries?
 
14004
need_version=$need_version
 
14005
 
 
14006
# Whether dlopen is supported.
 
14007
dlopen_support=$enable_dlopen
 
14008
 
 
14009
# Whether dlopen of programs is supported.
 
14010
dlopen_self=$enable_dlopen_self
 
14011
 
 
14012
# Whether dlopen of statically linked programs is supported.
 
14013
dlopen_self_static=$enable_dlopen_self_static
 
14014
 
 
14015
# Compiler flag to prevent dynamic linking.
 
14016
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
14017
 
 
14018
# Compiler flag to turn off builtin functions.
 
14019
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
14020
 
 
14021
# Compiler flag to allow reflexive dlopens.
 
14022
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
14023
 
 
14024
# Compiler flag to generate shared objects directly from archives.
 
14025
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
14026
 
 
14027
# Compiler flag to generate thread-safe objects.
 
14028
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
14029
 
 
14030
# Library versioning type.
 
14031
version_type=$version_type
 
14032
 
 
14033
# Format of library name prefix.
 
14034
libname_spec=$lt_libname_spec
 
14035
 
 
14036
# List of archive names.  First name is the real one, the rest are links.
 
14037
# The last name is the one that the linker finds with -lNAME.
 
14038
library_names_spec=$lt_library_names_spec
 
14039
 
 
14040
# The coded name of the library, if different from the real name.
 
14041
soname_spec=$lt_soname_spec
 
14042
 
 
14043
# Commands used to build and install an old-style archive.
 
14044
RANLIB=$lt_RANLIB
 
14045
old_archive_cmds=$lt_old_archive_cmds_CXX
 
14046
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14047
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14048
 
 
14049
# Create an old-style archive from a shared archive.
 
14050
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
14051
 
 
14052
# Create a temporary old-style archive to link instead of a shared archive.
 
14053
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
14054
 
 
14055
# Commands used to build and install a shared archive.
 
14056
archive_cmds=$lt_archive_cmds_CXX
 
14057
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
14058
postinstall_cmds=$lt_postinstall_cmds
 
14059
postuninstall_cmds=$lt_postuninstall_cmds
 
14060
 
 
14061
# Commands used to build a loadable module (assumed same as above if empty)
 
14062
module_cmds=$lt_module_cmds_CXX
 
14063
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
14064
 
 
14065
# Commands to strip libraries.
 
14066
old_striplib=$lt_old_striplib
 
14067
striplib=$lt_striplib
 
14068
 
 
14069
# Dependencies to place before the objects being linked to create a
 
14070
# shared library.
 
14071
predep_objects=$lt_predep_objects_CXX
 
14072
 
 
14073
# Dependencies to place after the objects being linked to create a
 
14074
# shared library.
 
14075
postdep_objects=$lt_postdep_objects_CXX
 
14076
 
 
14077
# Dependencies to place before the objects being linked to create a
 
14078
# shared library.
 
14079
predeps=$lt_predeps_CXX
 
14080
 
 
14081
# Dependencies to place after the objects being linked to create a
 
14082
# shared library.
 
14083
postdeps=$lt_postdeps_CXX
 
14084
 
 
14085
# The library search path used internally by the compiler when linking
 
14086
# a shared library.
 
14087
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
14088
 
 
14089
# Method to check whether dependent libraries are shared objects.
 
14090
deplibs_check_method=$lt_deplibs_check_method
 
14091
 
 
14092
# Command to use when deplibs_check_method == file_magic.
 
14093
file_magic_cmd=$lt_file_magic_cmd
 
14094
 
 
14095
# Flag that allows shared libraries with undefined symbols to be built.
 
14096
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
14097
 
 
14098
# Flag that forces no undefined symbols.
 
14099
no_undefined_flag=$lt_no_undefined_flag_CXX
 
14100
 
 
14101
# Commands used to finish a libtool library installation in a directory.
 
14102
finish_cmds=$lt_finish_cmds
 
14103
 
 
14104
# Same as above, but a single script fragment to be evaled but not shown.
 
14105
finish_eval=$lt_finish_eval
 
14106
 
 
14107
# Take the output of nm and produce a listing of raw symbols and C names.
 
14108
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14109
 
 
14110
# Transform the output of nm in a proper C declaration
 
14111
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14112
 
 
14113
# Transform the output of nm in a C name address pair
 
14114
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14115
 
 
14116
# This is the shared library runtime path variable.
 
14117
runpath_var=$runpath_var
 
14118
 
 
14119
# This is the shared library path variable.
 
14120
shlibpath_var=$shlibpath_var
 
14121
 
 
14122
# Is shlibpath searched before the hard-coded library search path?
 
14123
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14124
 
 
14125
# How to hardcode a shared library path into an executable.
 
14126
hardcode_action=$hardcode_action_CXX
 
14127
 
 
14128
# Whether we should hardcode library paths into libraries.
 
14129
hardcode_into_libs=$hardcode_into_libs
 
14130
 
 
14131
# Flag to hardcode \$libdir into a binary during linking.
 
14132
# This must work even if \$libdir does not exist.
 
14133
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
14134
 
 
14135
# If ld is used when linking, flag to hardcode \$libdir into
 
14136
# a binary during linking. This must work even if \$libdir does
 
14137
# not exist.
 
14138
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
14139
 
 
14140
# Whether we need a single -rpath flag with a separated argument.
 
14141
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
14142
 
 
14143
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14144
# resulting binary.
 
14145
hardcode_direct=$hardcode_direct_CXX
 
14146
 
 
14147
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14148
# resulting binary.
 
14149
hardcode_minus_L=$hardcode_minus_L_CXX
 
14150
 
 
14151
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14152
# the resulting binary.
 
14153
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
14154
 
 
14155
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14156
# and all subsequent libraries and executables linked against it.
 
14157
hardcode_automatic=$hardcode_automatic_CXX
 
14158
 
 
14159
# Variables whose values should be saved in libtool wrapper scripts and
 
14160
# restored at relink time.
 
14161
variables_saved_for_relink="$variables_saved_for_relink"
 
14162
 
 
14163
# Whether libtool must link a program against all its dependency libraries.
 
14164
link_all_deplibs=$link_all_deplibs_CXX
 
14165
 
 
14166
# Compile-time system search path for libraries
 
14167
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14168
 
 
14169
# Run-time system search path for libraries
 
14170
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14171
 
 
14172
# Fix the shell variable \$srcfile for the compiler.
 
14173
fix_srcfile_path="$fix_srcfile_path_CXX"
 
14174
 
 
14175
# Set to yes if exported symbols are required.
 
14176
always_export_symbols=$always_export_symbols_CXX
 
14177
 
 
14178
# The commands to list exported symbols.
 
14179
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
14180
 
 
14181
# The commands to extract the exported symbol list from a shared archive.
 
14182
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14183
 
 
14184
# Symbols that should not be listed in the preloaded symbols.
 
14185
exclude_expsyms=$lt_exclude_expsyms_CXX
 
14186
 
 
14187
# Symbols that must always be exported.
 
14188
include_expsyms=$lt_include_expsyms_CXX
 
14189
 
 
14190
# ### END LIBTOOL TAG CONFIG: $tagname
 
14191
 
 
14192
__EOF__
 
14193
 
 
14194
 
 
14195
else
 
14196
  # If there is no Makefile yet, we rely on a make rule to execute
 
14197
  # `config.status --recheck' to rerun these tests and create the
 
14198
  # libtool script then.
 
14199
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
14200
  if test -f "$ltmain_in"; then
 
14201
    test -f Makefile && make "$ltmain"
 
14202
  fi
 
14203
fi
 
14204
 
 
14205
 
 
14206
ac_ext=c
 
14207
ac_cpp='$CPP $CPPFLAGS'
 
14208
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14209
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14210
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14211
 
 
14212
CC=$lt_save_CC
 
14213
LDCXX=$LD
 
14214
LD=$lt_save_LD
 
14215
GCC=$lt_save_GCC
 
14216
with_gnu_ldcxx=$with_gnu_ld
 
14217
with_gnu_ld=$lt_save_with_gnu_ld
 
14218
lt_cv_path_LDCXX=$lt_cv_path_LD
 
14219
lt_cv_path_LD=$lt_save_path_LD
 
14220
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14221
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14222
 
 
14223
        else
 
14224
          tagname=""
 
14225
        fi
 
14226
        ;;
 
14227
 
 
14228
      F77)
 
14229
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
14230
 
 
14231
ac_ext=f
 
14232
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
14233
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14234
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
14235
 
 
14236
 
 
14237
archive_cmds_need_lc_F77=no
 
14238
allow_undefined_flag_F77=
 
14239
always_export_symbols_F77=no
 
14240
archive_expsym_cmds_F77=
 
14241
export_dynamic_flag_spec_F77=
 
14242
hardcode_direct_F77=no
 
14243
hardcode_libdir_flag_spec_F77=
 
14244
hardcode_libdir_flag_spec_ld_F77=
 
14245
hardcode_libdir_separator_F77=
 
14246
hardcode_minus_L_F77=no
 
14247
hardcode_automatic_F77=no
 
14248
module_cmds_F77=
 
14249
module_expsym_cmds_F77=
 
14250
link_all_deplibs_F77=unknown
 
14251
old_archive_cmds_F77=$old_archive_cmds
 
14252
no_undefined_flag_F77=
 
14253
whole_archive_flag_spec_F77=
 
14254
enable_shared_with_static_runtimes_F77=no
 
14255
 
 
14256
# Source file extension for f77 test sources.
 
14257
ac_ext=f
 
14258
 
 
14259
# Object file extension for compiled f77 test sources.
 
14260
objext=o
 
14261
objext_F77=$objext
 
14262
 
 
14263
# Code to be used in simple compile tests
 
14264
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
14265
 
 
14266
# Code to be used in simple link tests
 
14267
lt_simple_link_test_code="      program t\n      end\n"
 
14268
 
 
14269
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14270
 
 
14271
# If no C compiler was specified, use CC.
 
14272
LTCC=${LTCC-"$CC"}
 
14273
 
 
14274
# Allow CC to be a program name with arguments.
 
14275
compiler=$CC
 
14276
 
 
14277
 
 
14278
# Allow CC to be a program name with arguments.
 
14279
lt_save_CC="$CC"
 
14280
CC=${F77-"f77"}
 
14281
compiler=$CC
 
14282
compiler_F77=$CC
 
14283
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
14284
 
 
14285
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14286
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
14287
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14288
echo "${ECHO_T}$can_build_shared" >&6
 
14289
 
 
14290
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14291
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
14292
test "$can_build_shared" = "no" && enable_shared=no
 
14293
 
 
14294
# On AIX, shared libraries and static libraries use the same namespace, and
 
14295
# are all built from PIC.
 
14296
case "$host_os" in
 
14297
aix3*)
 
14298
  test "$enable_shared" = yes && enable_static=no
 
14299
  if test -n "$RANLIB"; then
 
14300
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14301
    postinstall_cmds='$RANLIB $lib'
 
14302
  fi
 
14303
  ;;
 
14304
aix4* | aix5*)
 
14305
  test "$enable_shared" = yes && enable_static=no
 
14306
  ;;
 
14307
esac
 
14308
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14309
echo "${ECHO_T}$enable_shared" >&6
 
14310
 
 
14311
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14312
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
14313
# Make sure either enable_shared or enable_static is yes.
 
14314
test "$enable_shared" = yes || enable_static=yes
 
14315
echo "$as_me:$LINENO: result: $enable_static" >&5
 
14316
echo "${ECHO_T}$enable_static" >&6
 
14317
 
 
14318
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14319
 
 
14320
GCC_F77="$G77"
 
14321
LD_F77="$LD"
 
14322
 
 
14323
lt_prog_compiler_wl_F77=
 
14324
lt_prog_compiler_pic_F77=
 
14325
lt_prog_compiler_static_F77=
 
14326
 
 
14327
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14328
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
14329
 
 
14330
  if test "$GCC" = yes; then
 
14331
    lt_prog_compiler_wl_F77='-Wl,'
 
14332
    lt_prog_compiler_static_F77='-static'
 
14333
 
 
14334
    case $host_os in
 
14335
      aix*)
 
14336
      # All AIX code is PIC.
 
14337
      if test "$host_cpu" = ia64; then
 
14338
        # AIX 5 now supports IA64 processor
 
14339
        lt_prog_compiler_static_F77='-Bstatic'
 
14340
      fi
 
14341
      ;;
 
14342
 
 
14343
    amigaos*)
 
14344
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14345
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14346
      # like `-m68040'.
 
14347
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14348
      ;;
 
14349
 
 
14350
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14351
      # PIC is the default for these OSes.
 
14352
      ;;
 
14353
 
 
14354
    mingw* | pw32* | os2*)
 
14355
      # This hack is so that the source file can tell whether it is being
 
14356
      # built for inclusion in a dll (and should export symbols for example).
 
14357
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14358
      ;;
 
14359
 
 
14360
    darwin* | rhapsody*)
 
14361
      # PIC is the default on this platform
 
14362
      # Common symbols not allowed in MH_DYLIB files
 
14363
      lt_prog_compiler_pic_F77='-fno-common'
 
14364
      ;;
 
14365
 
 
14366
    msdosdjgpp*)
 
14367
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14368
      # on systems that don't support them.
 
14369
      lt_prog_compiler_can_build_shared_F77=no
 
14370
      enable_shared=no
 
14371
      ;;
 
14372
 
 
14373
    sysv4*MP*)
 
14374
      if test -d /usr/nec; then
 
14375
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14376
      fi
 
14377
      ;;
 
14378
 
 
14379
    hpux*)
 
14380
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14381
      # not for PA HP-UX.
 
14382
      case "$host_cpu" in
 
14383
      hppa*64*|ia64*)
 
14384
        # +Z the default
 
14385
        ;;
 
14386
      *)
 
14387
        lt_prog_compiler_pic_F77='-fPIC'
 
14388
        ;;
 
14389
      esac
 
14390
      ;;
 
14391
 
 
14392
    *)
 
14393
      lt_prog_compiler_pic_F77='-fPIC'
 
14394
      ;;
 
14395
    esac
 
14396
  else
 
14397
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14398
    case $host_os in
 
14399
    aix*)
 
14400
      lt_prog_compiler_wl_F77='-Wl,'
 
14401
      if test "$host_cpu" = ia64; then
 
14402
        # AIX 5 now supports IA64 processor
 
14403
        lt_prog_compiler_static_F77='-Bstatic'
 
14404
      else
 
14405
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14406
      fi
 
14407
      ;;
 
14408
 
 
14409
    mingw* | pw32* | os2*)
 
14410
      # This hack is so that the source file can tell whether it is being
 
14411
      # built for inclusion in a dll (and should export symbols for example).
 
14412
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14413
      ;;
 
14414
 
 
14415
    hpux9* | hpux10* | hpux11*)
 
14416
      lt_prog_compiler_wl_F77='-Wl,'
 
14417
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14418
      # not for PA HP-UX.
 
14419
      case "$host_cpu" in
 
14420
      hppa*64*|ia64*)
 
14421
        # +Z the default
 
14422
        ;;
 
14423
      *)
 
14424
        lt_prog_compiler_pic_F77='+Z'
 
14425
        ;;
 
14426
      esac
 
14427
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14428
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14429
      ;;
 
14430
 
 
14431
    irix5* | irix6* | nonstopux*)
 
14432
      lt_prog_compiler_wl_F77='-Wl,'
 
14433
      # PIC (with -KPIC) is the default.
 
14434
      lt_prog_compiler_static_F77='-non_shared'
 
14435
      ;;
 
14436
 
 
14437
    newsos6)
 
14438
      lt_prog_compiler_pic_F77='-KPIC'
 
14439
      lt_prog_compiler_static_F77='-Bstatic'
 
14440
      ;;
 
14441
 
 
14442
    linux*)
 
14443
      case $CC in
 
14444
      icc* | ecc*)
 
14445
        lt_prog_compiler_wl_F77='-Wl,'
 
14446
        lt_prog_compiler_pic_F77='-KPIC'
 
14447
        lt_prog_compiler_static_F77='-static'
 
14448
        ;;
 
14449
      ccc*)
 
14450
        lt_prog_compiler_wl_F77='-Wl,'
 
14451
        # All Alpha code is PIC.
 
14452
        lt_prog_compiler_static_F77='-non_shared'
 
14453
        ;;
 
14454
      esac
 
14455
      ;;
 
14456
 
 
14457
    osf3* | osf4* | osf5*)
 
14458
      lt_prog_compiler_wl_F77='-Wl,'
 
14459
      # All OSF/1 code is PIC.
 
14460
      lt_prog_compiler_static_F77='-non_shared'
 
14461
      ;;
 
14462
 
 
14463
    sco3.2v5*)
 
14464
      lt_prog_compiler_pic_F77='-Kpic'
 
14465
      lt_prog_compiler_static_F77='-dn'
 
14466
      ;;
 
14467
 
 
14468
    solaris*)
 
14469
      lt_prog_compiler_wl_F77='-Wl,'
 
14470
      lt_prog_compiler_pic_F77='-KPIC'
 
14471
      lt_prog_compiler_static_F77='-Bstatic'
 
14472
      ;;
 
14473
 
 
14474
    sunos4*)
 
14475
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14476
      lt_prog_compiler_pic_F77='-PIC'
 
14477
      lt_prog_compiler_static_F77='-Bstatic'
 
14478
      ;;
 
14479
 
 
14480
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14481
      lt_prog_compiler_wl_F77='-Wl,'
 
14482
      lt_prog_compiler_pic_F77='-KPIC'
 
14483
      lt_prog_compiler_static_F77='-Bstatic'
 
14484
      ;;
 
14485
 
 
14486
    sysv4*MP*)
 
14487
      if test -d /usr/nec ;then
 
14488
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14489
        lt_prog_compiler_static_F77='-Bstatic'
 
14490
      fi
 
14491
      ;;
 
14492
 
 
14493
    uts4*)
 
14494
      lt_prog_compiler_pic_F77='-pic'
 
14495
      lt_prog_compiler_static_F77='-Bstatic'
 
14496
      ;;
 
14497
 
 
14498
    *)
 
14499
      lt_prog_compiler_can_build_shared_F77=no
 
14500
      ;;
 
14501
    esac
 
14502
  fi
 
14503
 
 
14504
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14505
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
14506
 
 
14507
#
 
14508
# Check to make sure the PIC flag actually works.
 
14509
#
 
14510
if test -n "$lt_prog_compiler_pic_F77"; then
 
14511
 
 
14512
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14513
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
14514
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
14515
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14516
else
 
14517
  lt_prog_compiler_pic_works_F77=no
 
14518
  ac_outfile=conftest.$ac_objext
 
14519
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14520
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14521
   # Insert the option either (1) after the last *FLAGS variable, or
 
14522
   # (2) before a word containing "conftest.", or (3) at the end.
 
14523
   # Note that $ac_compile itself does not contain backslashes and begins
 
14524
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14525
   # The option is referenced via a variable to avoid confusing sed.
 
14526
   lt_compile=`echo "$ac_compile" | $SED \
 
14527
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14528
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14529
   -e 's:$: $lt_compiler_flag:'`
 
14530
   (eval echo "\"\$as_me:14530: $lt_compile\"" >&5)
 
14531
   (eval "$lt_compile" 2>conftest.err)
 
14532
   ac_status=$?
 
14533
   cat conftest.err >&5
 
14534
   echo "$as_me:14534: \$? = $ac_status" >&5
 
14535
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14536
     # The compiler can only warn and ignore the option if not recognized
 
14537
     # So say no if there are warnings
 
14538
     if test ! -s conftest.err; then
 
14539
       lt_prog_compiler_pic_works_F77=yes
 
14540
     fi
 
14541
   fi
 
14542
   $rm conftest*
 
14543
 
 
14544
fi
 
14545
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
14546
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
14547
 
 
14548
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
14549
    case $lt_prog_compiler_pic_F77 in
 
14550
     "" | " "*) ;;
 
14551
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14552
     esac
 
14553
else
 
14554
    lt_prog_compiler_pic_F77=
 
14555
     lt_prog_compiler_can_build_shared_F77=no
 
14556
fi
 
14557
 
 
14558
fi
 
14559
case "$host_os" in
 
14560
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14561
  *djgpp*)
 
14562
    lt_prog_compiler_pic_F77=
 
14563
    ;;
 
14564
  *)
 
14565
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14566
    ;;
 
14567
esac
 
14568
 
 
14569
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14570
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
14571
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14572
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14573
else
 
14574
  lt_cv_prog_compiler_c_o_F77=no
 
14575
   $rm -r conftest 2>/dev/null
 
14576
   mkdir conftest
 
14577
   cd conftest
 
14578
   mkdir out
 
14579
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14580
 
 
14581
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14582
   # Insert the option either (1) after the last *FLAGS variable, or
 
14583
   # (2) before a word containing "conftest.", or (3) at the end.
 
14584
   # Note that $ac_compile itself does not contain backslashes and begins
 
14585
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14586
   lt_compile=`echo "$ac_compile" | $SED \
 
14587
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14588
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14589
   -e 's:$: $lt_compiler_flag:'`
 
14590
   (eval echo "\"\$as_me:14590: $lt_compile\"" >&5)
 
14591
   (eval "$lt_compile" 2>out/conftest.err)
 
14592
   ac_status=$?
 
14593
   cat out/conftest.err >&5
 
14594
   echo "$as_me:14594: \$? = $ac_status" >&5
 
14595
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14596
   then
 
14597
     # The compiler can only warn and ignore the option if not recognized
 
14598
     # So say no if there are warnings
 
14599
     if test ! -s out/conftest.err; then
 
14600
       lt_cv_prog_compiler_c_o_F77=yes
 
14601
     fi
 
14602
   fi
 
14603
   chmod u+w .
 
14604
   $rm conftest*
 
14605
   # SGI C++ compiler will create directory out/ii_files/ for
 
14606
   # template instantiation
 
14607
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14608
   $rm out/* && rmdir out
 
14609
   cd ..
 
14610
   rmdir conftest
 
14611
   $rm conftest*
 
14612
 
 
14613
fi
 
14614
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14615
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
14616
 
 
14617
 
 
14618
hard_links="nottested"
 
14619
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14620
  # do not overwrite the value of need_locks provided by the user
 
14621
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14622
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
14623
  hard_links=yes
 
14624
  $rm conftest*
 
14625
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14626
  touch conftest.a
 
14627
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14628
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14629
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
14630
echo "${ECHO_T}$hard_links" >&6
 
14631
  if test "$hard_links" = no; then
 
14632
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14633
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14634
    need_locks=warn
 
14635
  fi
 
14636
else
 
14637
  need_locks=no
 
14638
fi
 
14639
 
 
14640
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14641
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
14642
 
 
14643
  runpath_var=
 
14644
  allow_undefined_flag_F77=
 
14645
  enable_shared_with_static_runtimes_F77=no
 
14646
  archive_cmds_F77=
 
14647
  archive_expsym_cmds_F77=
 
14648
  old_archive_From_new_cmds_F77=
 
14649
  old_archive_from_expsyms_cmds_F77=
 
14650
  export_dynamic_flag_spec_F77=
 
14651
  whole_archive_flag_spec_F77=
 
14652
  thread_safe_flag_spec_F77=
 
14653
  hardcode_libdir_flag_spec_F77=
 
14654
  hardcode_libdir_flag_spec_ld_F77=
 
14655
  hardcode_libdir_separator_F77=
 
14656
  hardcode_direct_F77=no
 
14657
  hardcode_minus_L_F77=no
 
14658
  hardcode_shlibpath_var_F77=unsupported
 
14659
  link_all_deplibs_F77=unknown
 
14660
  hardcode_automatic_F77=no
 
14661
  module_cmds_F77=
 
14662
  module_expsym_cmds_F77=
 
14663
  always_export_symbols_F77=no
 
14664
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14665
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14666
  # included in the symbol list
 
14667
  include_expsyms_F77=
 
14668
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14669
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14670
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14671
  # as well as any symbol that contains `d'.
 
14672
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
14673
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14674
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14675
  # the symbol is explicitly referenced.  Since portable code cannot
 
14676
  # rely on this symbol name, it's probably fine to never include it in
 
14677
  # preloaded symbol tables.
 
14678
  extract_expsyms_cmds=
 
14679
 
 
14680
  case $host_os in
 
14681
  cygwin* | mingw* | pw32*)
 
14682
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14683
    # When not using gcc, we currently assume that we are using
 
14684
    # Microsoft Visual C++.
 
14685
    if test "$GCC" != yes; then
 
14686
      with_gnu_ld=no
 
14687
    fi
 
14688
    ;;
 
14689
  openbsd*)
 
14690
    with_gnu_ld=no
 
14691
    ;;
 
14692
  esac
 
14693
 
 
14694
  ld_shlibs_F77=yes
 
14695
  if test "$with_gnu_ld" = yes; then
 
14696
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14697
    wlarc='${wl}'
 
14698
 
 
14699
    # See if GNU ld supports shared libraries.
 
14700
    case $host_os in
 
14701
    aix3* | aix4* | aix5*)
 
14702
      # On AIX/PPC, the GNU linker is very broken
 
14703
      if test "$host_cpu" != ia64; then
 
14704
        ld_shlibs_F77=no
 
14705
        cat <<EOF 1>&2
 
14706
 
 
14707
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14708
*** to be unable to reliably create shared libraries on AIX.
 
14709
*** Therefore, libtool is disabling shared libraries support.  If you
 
14710
*** really care for shared libraries, you may want to modify your PATH
 
14711
*** so that a non-GNU linker is found, and then restart.
 
14712
 
 
14713
EOF
 
14714
      fi
 
14715
      ;;
 
14716
 
 
14717
    amigaos*)
 
14718
      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)'
 
14719
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14720
      hardcode_minus_L_F77=yes
 
14721
 
 
14722
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14723
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14724
      # to version 4, is to share data among multiple programs linked
 
14725
      # with the same dynamic library.  Since this doesn't match the
 
14726
      # behavior of shared libraries on other platforms, we can't use
 
14727
      # them.
 
14728
      ld_shlibs_F77=no
 
14729
      ;;
 
14730
 
 
14731
    beos*)
 
14732
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14733
        allow_undefined_flag_F77=unsupported
 
14734
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14735
        # support --undefined.  This deserves some investigation.  FIXME
 
14736
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14737
      else
 
14738
        ld_shlibs_F77=no
 
14739
      fi
 
14740
      ;;
 
14741
 
 
14742
    cygwin* | mingw* | pw32*)
 
14743
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14744
      # as there is no search path for DLLs.
 
14745
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14746
      allow_undefined_flag_F77=unsupported
 
14747
      always_export_symbols_F77=no
 
14748
      enable_shared_with_static_runtimes_F77=yes
 
14749
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14750
 
 
14751
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14752
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
14753
        # If the export-symbols file already is a .def file (1st line
 
14754
        # is EXPORTS), use it as is; otherwise, prepend...
 
14755
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14756
          cp $export_symbols $output_objdir/$soname.def;
 
14757
        else
 
14758
          echo EXPORTS > $output_objdir/$soname.def;
 
14759
          cat $export_symbols >> $output_objdir/$soname.def;
 
14760
        fi~
 
14761
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
14762
      else
 
14763
        ld_shlibs=no
 
14764
      fi
 
14765
      ;;
 
14766
 
 
14767
    netbsd* | knetbsd*-gnu)
 
14768
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14769
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14770
        wlarc=
 
14771
      else
 
14772
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14773
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14774
      fi
 
14775
      ;;
 
14776
 
 
14777
    solaris* | sysv5*)
 
14778
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14779
        ld_shlibs_F77=no
 
14780
        cat <<EOF 1>&2
 
14781
 
 
14782
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14783
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14784
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14785
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14786
*** your PATH or compiler configuration so that the native linker is
 
14787
*** used, and then restart.
 
14788
 
 
14789
EOF
 
14790
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14791
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14792
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14793
      else
 
14794
        ld_shlibs_F77=no
 
14795
      fi
 
14796
      ;;
 
14797
 
 
14798
    sunos4*)
 
14799
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14800
      wlarc=
 
14801
      hardcode_direct_F77=yes
 
14802
      hardcode_shlibpath_var_F77=no
 
14803
      ;;
 
14804
 
 
14805
  linux*)
 
14806
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14807
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14808
        archive_cmds_F77="$tmp_archive_cmds"
 
14809
      supports_anon_versioning=no
 
14810
      case `$LD -v 2>/dev/null` in
 
14811
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14812
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14813
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14814
        *\ 2.11.*) ;; # other 2.11 versions
 
14815
        *) supports_anon_versioning=yes ;;
 
14816
      esac
 
14817
      if test $supports_anon_versioning = yes; then
 
14818
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14819
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14820
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
14821
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14822
      else
 
14823
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
14824
      fi
 
14825
      link_all_deplibs_F77=no
 
14826
    else
 
14827
      ld_shlibs_F77=no
 
14828
    fi
 
14829
    ;;
 
14830
 
 
14831
    *)
 
14832
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14833
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14834
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14835
      else
 
14836
        ld_shlibs_F77=no
 
14837
      fi
 
14838
      ;;
 
14839
    esac
 
14840
 
 
14841
    if test "$ld_shlibs_F77" = yes; then
 
14842
      runpath_var=LD_RUN_PATH
 
14843
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14844
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14845
      # ancient GNU ld didn't support --whole-archive et. al.
 
14846
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14847
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14848
      else
 
14849
        whole_archive_flag_spec_F77=
 
14850
      fi
 
14851
    fi
 
14852
  else
 
14853
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14854
    case $host_os in
 
14855
    aix3*)
 
14856
      allow_undefined_flag_F77=unsupported
 
14857
      always_export_symbols_F77=yes
 
14858
      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'
 
14859
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14860
      # are no directories specified by -L.
 
14861
      hardcode_minus_L_F77=yes
 
14862
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
14863
        # Neither direct hardcoding nor static linking is supported with a
 
14864
        # broken collect2.
 
14865
        hardcode_direct_F77=unsupported
 
14866
      fi
 
14867
      ;;
 
14868
 
 
14869
    aix4* | aix5*)
 
14870
      if test "$host_cpu" = ia64; then
 
14871
        # On IA64, the linker does run time linking by default, so we don't
 
14872
        # have to do anything special.
 
14873
        aix_use_runtimelinking=no
 
14874
        exp_sym_flag='-Bexport'
 
14875
        no_entry_flag=""
 
14876
      else
 
14877
        # If we're using GNU nm, then we don't want the "-C" option.
 
14878
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14879
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14880
          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'
 
14881
        else
 
14882
          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'
 
14883
        fi
 
14884
        aix_use_runtimelinking=no
 
14885
 
 
14886
        # Test if we are trying to use run time linking or normal
 
14887
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14888
        # need to do runtime linking.
 
14889
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
14890
          for ld_flag in $LDFLAGS; do
 
14891
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14892
            aix_use_runtimelinking=yes
 
14893
            break
 
14894
          fi
 
14895
          done
 
14896
        esac
 
14897
 
 
14898
        exp_sym_flag='-bexport'
 
14899
        no_entry_flag='-bnoentry'
 
14900
      fi
 
14901
 
 
14902
      # When large executables or shared objects are built, AIX ld can
 
14903
      # have problems creating the table of contents.  If linking a library
 
14904
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14905
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14906
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14907
 
 
14908
      archive_cmds_F77=''
 
14909
      hardcode_direct_F77=yes
 
14910
      hardcode_libdir_separator_F77=':'
 
14911
      link_all_deplibs_F77=yes
 
14912
 
 
14913
      if test "$GCC" = yes; then
 
14914
        case $host_os in aix4.012|aix4.012.*)
 
14915
        # We only want to do this on AIX 4.2 and lower, the check
 
14916
        # below for broken collect2 doesn't work under 4.3+
 
14917
          collect2name=`${CC} -print-prog-name=collect2`
 
14918
          if test -f "$collect2name" && \
 
14919
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
14920
          then
 
14921
          # We have reworked collect2
 
14922
          hardcode_direct_F77=yes
 
14923
          else
 
14924
          # We have old collect2
 
14925
          hardcode_direct_F77=unsupported
 
14926
          # It fails to find uninstalled libraries when the uninstalled
 
14927
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14928
          # to unsupported forces relinking
 
14929
          hardcode_minus_L_F77=yes
 
14930
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14931
          hardcode_libdir_separator_F77=
 
14932
          fi
 
14933
        esac
 
14934
        shared_flag='-shared'
 
14935
      else
 
14936
        # not using gcc
 
14937
        if test "$host_cpu" = ia64; then
 
14938
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14939
        # chokes on -Wl,-G. The following line is correct:
 
14940
          shared_flag='-G'
 
14941
        else
 
14942
        if test "$aix_use_runtimelinking" = yes; then
 
14943
            shared_flag='${wl}-G'
 
14944
          else
 
14945
            shared_flag='${wl}-bM:SRE'
 
14946
        fi
 
14947
        fi
 
14948
      fi
 
14949
 
 
14950
      # It seems that -bexpall does not export symbols beginning with
 
14951
      # underscore (_), so it is better to generate a list of symbols to export.
 
14952
      always_export_symbols_F77=yes
 
14953
      if test "$aix_use_runtimelinking" = yes; then
 
14954
        # Warning - without using the other runtime loading flags (-brtl),
 
14955
        # -berok will link without error, but may produce a broken library.
 
14956
        allow_undefined_flag_F77='-berok'
 
14957
       # Determine the default libpath from the value encoded in an empty executable.
 
14958
       cat >conftest.$ac_ext <<_ACEOF
 
14959
      program main
 
14960
 
 
14961
      end
 
14962
_ACEOF
 
14963
rm -f conftest.$ac_objext conftest$ac_exeext
 
14964
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14965
  (eval $ac_link) 2>conftest.er1
 
14966
  ac_status=$?
 
14967
  grep -v '^ *+' conftest.er1 >conftest.err
 
14968
  rm -f conftest.er1
 
14969
  cat conftest.err >&5
 
14970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14971
  (exit $ac_status); } &&
 
14972
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
14973
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14974
  (eval $ac_try) 2>&5
 
14975
  ac_status=$?
 
14976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14977
  (exit $ac_status); }; } &&
 
14978
         { ac_try='test -s conftest$ac_exeext'
 
14979
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14980
  (eval $ac_try) 2>&5
 
14981
  ac_status=$?
 
14982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14983
  (exit $ac_status); }; }; then
 
14984
 
 
14985
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14986
}'`
 
14987
# Check for a 64-bit object if we didn't find anything.
 
14988
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; }
 
14989
}'`; fi
 
14990
else
 
14991
  echo "$as_me: failed program was:" >&5
 
14992
sed 's/^/| /' conftest.$ac_ext >&5
 
14993
 
 
14994
fi
 
14995
rm -f conftest.err conftest.$ac_objext \
 
14996
      conftest$ac_exeext conftest.$ac_ext
 
14997
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14998
 
 
14999
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15000
        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"
 
15001
       else
 
15002
        if test "$host_cpu" = ia64; then
 
15003
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
15004
          allow_undefined_flag_F77="-z nodefs"
 
15005
          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"
 
15006
        else
 
15007
         # Determine the default libpath from the value encoded in an empty executable.
 
15008
         cat >conftest.$ac_ext <<_ACEOF
 
15009
      program main
 
15010
 
 
15011
      end
 
15012
_ACEOF
 
15013
rm -f conftest.$ac_objext conftest$ac_exeext
 
15014
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15015
  (eval $ac_link) 2>conftest.er1
 
15016
  ac_status=$?
 
15017
  grep -v '^ *+' conftest.er1 >conftest.err
 
15018
  rm -f conftest.er1
 
15019
  cat conftest.err >&5
 
15020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15021
  (exit $ac_status); } &&
 
15022
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
15023
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15024
  (eval $ac_try) 2>&5
 
15025
  ac_status=$?
 
15026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15027
  (exit $ac_status); }; } &&
 
15028
         { ac_try='test -s conftest$ac_exeext'
 
15029
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15030
  (eval $ac_try) 2>&5
 
15031
  ac_status=$?
 
15032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15033
  (exit $ac_status); }; }; then
 
15034
 
 
15035
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15036
}'`
 
15037
# Check for a 64-bit object if we didn't find anything.
 
15038
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; }
 
15039
}'`; fi
 
15040
else
 
15041
  echo "$as_me: failed program was:" >&5
 
15042
sed 's/^/| /' conftest.$ac_ext >&5
 
15043
 
 
15044
fi
 
15045
rm -f conftest.err conftest.$ac_objext \
 
15046
      conftest$ac_exeext conftest.$ac_ext
 
15047
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15048
 
 
15049
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15050
          # Warning - without using the other run time loading flags,
 
15051
          # -berok will link without error, but may produce a broken library.
 
15052
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15053
          allow_undefined_flag_F77=' ${wl}-berok'
 
15054
          # -bexpall does not export symbols beginning with underscore (_)
 
15055
          always_export_symbols_F77=yes
 
15056
          # Exported symbols can be pulled into shared objects from archives
 
15057
          whole_archive_flag_spec_F77=' '
 
15058
          archive_cmds_need_lc_F77=yes
 
15059
          # This is similar to how AIX traditionally builds it's shared libraries.
 
15060
          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'
 
15061
        fi
 
15062
      fi
 
15063
      ;;
 
15064
 
 
15065
    amigaos*)
 
15066
      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)'
 
15067
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15068
      hardcode_minus_L_F77=yes
 
15069
      # see comment about different semantics on the GNU ld section
 
15070
      ld_shlibs_F77=no
 
15071
      ;;
 
15072
 
 
15073
    bsdi4*)
 
15074
      export_dynamic_flag_spec_F77=-rdynamic
 
15075
      ;;
 
15076
 
 
15077
    cygwin* | mingw* | pw32*)
 
15078
      # When not using gcc, we currently assume that we are using
 
15079
      # Microsoft Visual C++.
 
15080
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15081
      # no search path for DLLs.
 
15082
      hardcode_libdir_flag_spec_F77=' '
 
15083
      allow_undefined_flag_F77=unsupported
 
15084
      # Tell ltmain to make .lib files, not .a files.
 
15085
      libext=lib
 
15086
      # Tell ltmain to make .dll files, not .so files.
 
15087
      shrext_cmds=".dll"
 
15088
      # FIXME: Setting linknames here is a bad hack.
 
15089
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15090
      # The linker will automatically build a .lib file if we build a DLL.
 
15091
      old_archive_From_new_cmds_F77='true'
 
15092
      # FIXME: Should let the user specify the lib program.
 
15093
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
15094
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
15095
      enable_shared_with_static_runtimes_F77=yes
 
15096
      ;;
 
15097
 
 
15098
    darwin* | rhapsody*)
 
15099
    if test "$GXX" = yes ; then
 
15100
      archive_cmds_need_lc_F77=no
 
15101
      case "$host_os" in
 
15102
      rhapsody* | darwin1.[012])
 
15103
        allow_undefined_flag_F77='-undefined suppress'
 
15104
        ;;
 
15105
      *) # Darwin 1.3 on
 
15106
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15107
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
15108
      else
 
15109
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
15110
          10.[012])
 
15111
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
15112
            ;;
 
15113
          10.*)
 
15114
            allow_undefined_flag_F77='-undefined dynamic_lookup'
 
15115
            ;;
 
15116
        esac
 
15117
      fi
 
15118
        ;;
 
15119
      esac
 
15120
        lt_int_apple_cc_single_mod=no
 
15121
        output_verbose_link_cmd='echo'
 
15122
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
15123
          lt_int_apple_cc_single_mod=yes
 
15124
        fi
 
15125
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
15126
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
15127
        else
 
15128
        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'
 
15129
      fi
 
15130
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15131
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
15132
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
15133
          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}'
 
15134
        else
 
15135
          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}'
 
15136
        fi
 
15137
          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}'
 
15138
      hardcode_direct_F77=no
 
15139
      hardcode_automatic_F77=yes
 
15140
      hardcode_shlibpath_var_F77=unsupported
 
15141
      whole_archive_flag_spec_F77='-all_load $convenience'
 
15142
      link_all_deplibs_F77=yes
 
15143
    else
 
15144
      ld_shlibs_F77=no
 
15145
    fi
 
15146
      ;;
 
15147
 
 
15148
    dgux*)
 
15149
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15150
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15151
      hardcode_shlibpath_var_F77=no
 
15152
      ;;
 
15153
 
 
15154
    freebsd1*)
 
15155
      ld_shlibs_F77=no
 
15156
      ;;
 
15157
 
 
15158
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15159
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15160
    # does not break anything, and helps significantly (at the cost of a little
 
15161
    # extra space).
 
15162
    freebsd2.2*)
 
15163
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15164
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15165
      hardcode_direct_F77=yes
 
15166
      hardcode_shlibpath_var_F77=no
 
15167
      ;;
 
15168
 
 
15169
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15170
    freebsd2*)
 
15171
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15172
      hardcode_direct_F77=yes
 
15173
      hardcode_minus_L_F77=yes
 
15174
      hardcode_shlibpath_var_F77=no
 
15175
      ;;
 
15176
 
 
15177
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15178
    freebsd* | kfreebsd*-gnu)
 
15179
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15180
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15181
      hardcode_direct_F77=yes
 
15182
      hardcode_shlibpath_var_F77=no
 
15183
      ;;
 
15184
 
 
15185
    hpux9*)
 
15186
      if test "$GCC" = yes; then
 
15187
        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'
 
15188
      else
 
15189
        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'
 
15190
      fi
 
15191
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15192
      hardcode_libdir_separator_F77=:
 
15193
      hardcode_direct_F77=yes
 
15194
 
 
15195
      # hardcode_minus_L: Not really in the search PATH,
 
15196
      # but as the default location of the library.
 
15197
      hardcode_minus_L_F77=yes
 
15198
      export_dynamic_flag_spec_F77='${wl}-E'
 
15199
      ;;
 
15200
 
 
15201
    hpux10* | hpux11*)
 
15202
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15203
        case "$host_cpu" in
 
15204
        hppa*64*|ia64*)
 
15205
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15206
          ;;
 
15207
        *)
 
15208
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15209
          ;;
 
15210
        esac
 
15211
      else
 
15212
        case "$host_cpu" in
 
15213
        hppa*64*|ia64*)
 
15214
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15215
          ;;
 
15216
        *)
 
15217
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15218
          ;;
 
15219
        esac
 
15220
      fi
 
15221
      if test "$with_gnu_ld" = no; then
 
15222
        case "$host_cpu" in
 
15223
        hppa*64*)
 
15224
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15225
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15226
          hardcode_libdir_separator_F77=:
 
15227
          hardcode_direct_F77=no
 
15228
          hardcode_shlibpath_var_F77=no
 
15229
          ;;
 
15230
        ia64*)
 
15231
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15232
          hardcode_direct_F77=no
 
15233
          hardcode_shlibpath_var_F77=no
 
15234
 
 
15235
          # hardcode_minus_L: Not really in the search PATH,
 
15236
          # but as the default location of the library.
 
15237
          hardcode_minus_L_F77=yes
 
15238
          ;;
 
15239
        *)
 
15240
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15241
          hardcode_libdir_separator_F77=:
 
15242
          hardcode_direct_F77=yes
 
15243
          export_dynamic_flag_spec_F77='${wl}-E'
 
15244
 
 
15245
          # hardcode_minus_L: Not really in the search PATH,
 
15246
          # but as the default location of the library.
 
15247
          hardcode_minus_L_F77=yes
 
15248
          ;;
 
15249
        esac
 
15250
      fi
 
15251
      ;;
 
15252
 
 
15253
    irix5* | irix6* | nonstopux*)
 
15254
      if test "$GCC" = yes; then
 
15255
        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'
 
15256
      else
 
15257
        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'
 
15258
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15259
      fi
 
15260
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15261
      hardcode_libdir_separator_F77=:
 
15262
      link_all_deplibs_F77=yes
 
15263
      ;;
 
15264
 
 
15265
    netbsd* | knetbsd*-gnu)
 
15266
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15267
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15268
      else
 
15269
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15270
      fi
 
15271
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15272
      hardcode_direct_F77=yes
 
15273
      hardcode_shlibpath_var_F77=no
 
15274
      ;;
 
15275
 
 
15276
    newsos6)
 
15277
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15278
      hardcode_direct_F77=yes
 
15279
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15280
      hardcode_libdir_separator_F77=:
 
15281
      hardcode_shlibpath_var_F77=no
 
15282
      ;;
 
15283
 
 
15284
    openbsd*)
 
15285
      hardcode_direct_F77=yes
 
15286
      hardcode_shlibpath_var_F77=no
 
15287
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15288
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15289
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15290
        export_dynamic_flag_spec_F77='${wl}-E'
 
15291
      else
 
15292
       case $host_os in
 
15293
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15294
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15295
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
15296
           ;;
 
15297
         *)
 
15298
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15299
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15300
           ;;
 
15301
       esac
 
15302
      fi
 
15303
      ;;
 
15304
 
 
15305
    os2*)
 
15306
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15307
      hardcode_minus_L_F77=yes
 
15308
      allow_undefined_flag_F77=unsupported
 
15309
      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'
 
15310
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15311
      ;;
 
15312
 
 
15313
    osf3*)
 
15314
      if test "$GCC" = yes; then
 
15315
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15316
        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'
 
15317
      else
 
15318
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15319
        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'
 
15320
      fi
 
15321
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15322
      hardcode_libdir_separator_F77=:
 
15323
      ;;
 
15324
 
 
15325
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15326
      if test "$GCC" = yes; then
 
15327
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15328
        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'
 
15329
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15330
      else
 
15331
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15332
        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'
 
15333
        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~
 
15334
        $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'
 
15335
 
 
15336
        # Both c and cxx compiler support -rpath directly
 
15337
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15338
      fi
 
15339
      hardcode_libdir_separator_F77=:
 
15340
      ;;
 
15341
 
 
15342
    sco3.2v5*)
 
15343
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15344
      hardcode_shlibpath_var_F77=no
 
15345
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15346
      runpath_var=LD_RUN_PATH
 
15347
      hardcode_runpath_var=yes
 
15348
      ;;
 
15349
 
 
15350
    solaris*)
 
15351
      no_undefined_flag_F77=' -z text'
 
15352
      if test "$GCC" = yes; then
 
15353
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15354
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15355
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15356
      else
 
15357
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15358
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15359
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15360
      fi
 
15361
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15362
      hardcode_shlibpath_var_F77=no
 
15363
      case $host_os in
 
15364
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15365
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15366
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
15367
      esac
 
15368
      link_all_deplibs_F77=yes
 
15369
      ;;
 
15370
 
 
15371
    sunos4*)
 
15372
      if test "x$host_vendor" = xsequent; then
 
15373
        # Use $CC to link under sequent, because it throws in some extra .o
 
15374
        # files that make .init and .fini sections work.
 
15375
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15376
      else
 
15377
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15378
      fi
 
15379
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15380
      hardcode_direct_F77=yes
 
15381
      hardcode_minus_L_F77=yes
 
15382
      hardcode_shlibpath_var_F77=no
 
15383
      ;;
 
15384
 
 
15385
    sysv4)
 
15386
      case $host_vendor in
 
15387
        sni)
 
15388
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15389
          hardcode_direct_F77=yes # is this really true???
 
15390
        ;;
 
15391
        siemens)
 
15392
          ## LD is ld it makes a PLAMLIB
 
15393
          ## CC just makes a GrossModule.
 
15394
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15395
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15396
          hardcode_direct_F77=no
 
15397
        ;;
 
15398
        motorola)
 
15399
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15400
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15401
        ;;
 
15402
      esac
 
15403
      runpath_var='LD_RUN_PATH'
 
15404
      hardcode_shlibpath_var_F77=no
 
15405
      ;;
 
15406
 
 
15407
    sysv4.3*)
 
15408
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15409
      hardcode_shlibpath_var_F77=no
 
15410
      export_dynamic_flag_spec_F77='-Bexport'
 
15411
      ;;
 
15412
 
 
15413
    sysv4*MP*)
 
15414
      if test -d /usr/nec; then
 
15415
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15416
        hardcode_shlibpath_var_F77=no
 
15417
        runpath_var=LD_RUN_PATH
 
15418
        hardcode_runpath_var=yes
 
15419
        ld_shlibs_F77=yes
 
15420
      fi
 
15421
      ;;
 
15422
 
 
15423
    sysv4.2uw2*)
 
15424
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15425
      hardcode_direct_F77=yes
 
15426
      hardcode_minus_L_F77=no
 
15427
      hardcode_shlibpath_var_F77=no
 
15428
      hardcode_runpath_var=yes
 
15429
      runpath_var=LD_RUN_PATH
 
15430
      ;;
 
15431
 
 
15432
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
15433
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
15434
      if test "$GCC" = yes; then
 
15435
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15436
      else
 
15437
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15438
      fi
 
15439
      runpath_var='LD_RUN_PATH'
 
15440
      hardcode_shlibpath_var_F77=no
 
15441
      ;;
 
15442
 
 
15443
    sysv5*)
 
15444
      no_undefined_flag_F77=' -z text'
 
15445
      # $CC -shared without GNU ld will not create a library from C++
 
15446
      # object files and a static libstdc++, better avoid it by now
 
15447
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15448
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15449
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15450
      hardcode_libdir_flag_spec_F77=
 
15451
      hardcode_shlibpath_var_F77=no
 
15452
      runpath_var='LD_RUN_PATH'
 
15453
      ;;
 
15454
 
 
15455
    uts4*)
 
15456
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15457
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15458
      hardcode_shlibpath_var_F77=no
 
15459
      ;;
 
15460
 
 
15461
    *)
 
15462
      ld_shlibs_F77=no
 
15463
      ;;
 
15464
    esac
 
15465
  fi
 
15466
 
 
15467
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15468
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
15469
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15470
 
 
15471
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15472
if test "$GCC" = yes; then
 
15473
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15474
fi
 
15475
 
 
15476
#
 
15477
# Do we need to explicitly link libc?
 
15478
#
 
15479
case "x$archive_cmds_need_lc_F77" in
 
15480
x|xyes)
 
15481
  # Assume -lc should be added
 
15482
  archive_cmds_need_lc_F77=yes
 
15483
 
 
15484
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15485
    case $archive_cmds_F77 in
 
15486
    *'~'*)
 
15487
      # FIXME: we may have to deal with multi-command sequences.
 
15488
      ;;
 
15489
    '$CC '*)
 
15490
      # Test whether the compiler implicitly links with -lc since on some
 
15491
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15492
      # to ld, don't add -lc before -lgcc.
 
15493
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15494
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
15495
      $rm conftest*
 
15496
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15497
 
 
15498
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15499
  (eval $ac_compile) 2>&5
 
15500
  ac_status=$?
 
15501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15502
  (exit $ac_status); } 2>conftest.err; then
 
15503
        soname=conftest
 
15504
        lib=conftest
 
15505
        libobjs=conftest.$ac_objext
 
15506
        deplibs=
 
15507
        wl=$lt_prog_compiler_wl_F77
 
15508
        compiler_flags=-v
 
15509
        linker_flags=-v
 
15510
        verstring=
 
15511
        output_objdir=.
 
15512
        libname=conftest
 
15513
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15514
        allow_undefined_flag_F77=
 
15515
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15516
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15517
  ac_status=$?
 
15518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15519
  (exit $ac_status); }
 
15520
        then
 
15521
          archive_cmds_need_lc_F77=no
 
15522
        else
 
15523
          archive_cmds_need_lc_F77=yes
 
15524
        fi
 
15525
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15526
      else
 
15527
        cat conftest.err 1>&5
 
15528
      fi
 
15529
      $rm conftest*
 
15530
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15531
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
15532
      ;;
 
15533
    esac
 
15534
  fi
 
15535
  ;;
 
15536
esac
 
15537
 
 
15538
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15539
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
15540
library_names_spec=
 
15541
libname_spec='lib$name'
 
15542
soname_spec=
 
15543
shrext_cmds=".so"
 
15544
postinstall_cmds=
 
15545
postuninstall_cmds=
 
15546
finish_cmds=
 
15547
finish_eval=
 
15548
shlibpath_var=
 
15549
shlibpath_overrides_runpath=unknown
 
15550
version_type=none
 
15551
dynamic_linker="$host_os ld.so"
 
15552
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15553
if test "$GCC" = yes; then
 
15554
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15555
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
15556
    # if the path contains ";" then we assume it to be the separator
 
15557
    # otherwise default to the standard path separator (i.e. ":") - it is
 
15558
    # assumed that no part of a normal pathname contains ";" but that should
 
15559
    # okay in the real world where ";" in dirpaths is itself problematic.
 
15560
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15561
  else
 
15562
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15563
  fi
 
15564
else
 
15565
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
15566
fi
 
15567
need_lib_prefix=unknown
 
15568
hardcode_into_libs=no
 
15569
 
 
15570
# when you set need_version to no, make sure it does not cause -set_version
 
15571
# flags to be left without arguments
 
15572
need_version=unknown
 
15573
 
 
15574
case $host_os in
 
15575
aix3*)
 
15576
  version_type=linux
 
15577
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15578
  shlibpath_var=LIBPATH
 
15579
 
 
15580
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15581
  soname_spec='${libname}${release}${shared_ext}$major'
 
15582
  ;;
 
15583
 
 
15584
aix4* | aix5*)
 
15585
  version_type=linux
 
15586
  need_lib_prefix=no
 
15587
  need_version=no
 
15588
  hardcode_into_libs=yes
 
15589
  if test "$host_cpu" = ia64; then
 
15590
    # AIX 5 supports IA64
 
15591
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15592
    shlibpath_var=LD_LIBRARY_PATH
 
15593
  else
 
15594
    # With GCC up to 2.95.x, collect2 would create an import file
 
15595
    # for dependence libraries.  The import file would start with
 
15596
    # the line `#! .'.  This would cause the generated library to
 
15597
    # depend on `.', always an invalid library.  This was fixed in
 
15598
    # development snapshots of GCC prior to 3.0.
 
15599
    case $host_os in
 
15600
      aix4 | aix4.[01] | aix4.[01].*)
 
15601
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15602
           echo ' yes '
 
15603
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15604
        :
 
15605
      else
 
15606
        can_build_shared=no
 
15607
      fi
 
15608
      ;;
 
15609
    esac
 
15610
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15611
    # soname into executable. Probably we can add versioning support to
 
15612
    # collect2, so additional links can be useful in future.
 
15613
    if test "$aix_use_runtimelinking" = yes; then
 
15614
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15615
      # instead of lib<name>.a to let people know that these are not
 
15616
      # typical AIX shared libraries.
 
15617
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15618
    else
 
15619
      # We preserve .a as extension for shared libraries through AIX4.2
 
15620
      # and later when we are not doing run time linking.
 
15621
      library_names_spec='${libname}${release}.a $libname.a'
 
15622
      soname_spec='${libname}${release}${shared_ext}$major'
 
15623
    fi
 
15624
    shlibpath_var=LIBPATH
 
15625
  fi
 
15626
  ;;
 
15627
 
 
15628
amigaos*)
 
15629
  library_names_spec='$libname.ixlibrary $libname.a'
 
15630
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15631
  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'
 
15632
  ;;
 
15633
 
 
15634
beos*)
 
15635
  library_names_spec='${libname}${shared_ext}'
 
15636
  dynamic_linker="$host_os ld.so"
 
15637
  shlibpath_var=LIBRARY_PATH
 
15638
  ;;
 
15639
 
 
15640
bsdi4*)
 
15641
  version_type=linux
 
15642
  need_version=no
 
15643
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15644
  soname_spec='${libname}${release}${shared_ext}$major'
 
15645
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15646
  shlibpath_var=LD_LIBRARY_PATH
 
15647
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15648
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15649
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15650
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15651
  # libtool to hard-code these into programs
 
15652
  ;;
 
15653
 
 
15654
cygwin* | mingw* | pw32*)
 
15655
  version_type=windows
 
15656
  shrext_cmds=".dll"
 
15657
  need_version=no
 
15658
  need_lib_prefix=no
 
15659
 
 
15660
  case $GCC,$host_os in
 
15661
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15662
    library_names_spec='$libname.dll.a'
 
15663
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15664
    postinstall_cmds='base_file=`basename \${file}`~
 
15665
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15666
      dldir=$destdir/`dirname \$dlpath`~
 
15667
      test -d \$dldir || mkdir -p \$dldir~
 
15668
      $install_prog $dir/$dlname \$dldir/$dlname'
 
15669
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15670
      dlpath=$dir/\$dldll~
 
15671
       $rm \$dlpath'
 
15672
    shlibpath_overrides_runpath=yes
 
15673
 
 
15674
    case $host_os in
 
15675
    cygwin*)
 
15676
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15677
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15678
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15679
      ;;
 
15680
    mingw*)
 
15681
      # MinGW DLLs use traditional 'lib' prefix
 
15682
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15683
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15684
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15685
        # It is most probably a Windows format PATH printed by
 
15686
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15687
        # path with ; separators, and with drive letters. We can handle the
 
15688
        # drive letters (cygwin fileutils understands them), so leave them,
 
15689
        # especially as we might pass files found there to a mingw objdump,
 
15690
        # which wouldn't understand a cygwinified path. Ahh.
 
15691
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15692
      else
 
15693
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15694
      fi
 
15695
      ;;
 
15696
    pw32*)
 
15697
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15698
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
15699
      ;;
 
15700
    esac
 
15701
    ;;
 
15702
 
 
15703
  *)
 
15704
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15705
    ;;
 
15706
  esac
 
15707
  dynamic_linker='Win32 ld.exe'
 
15708
  # FIXME: first we should search . and the directory the executable is in
 
15709
  shlibpath_var=PATH
 
15710
  ;;
 
15711
 
 
15712
darwin* | rhapsody*)
 
15713
  dynamic_linker="$host_os dyld"
 
15714
  version_type=darwin
 
15715
  need_lib_prefix=no
 
15716
  need_version=no
 
15717
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15718
  soname_spec='${libname}${release}${major}$shared_ext'
 
15719
  shlibpath_overrides_runpath=yes
 
15720
  shlibpath_var=DYLD_LIBRARY_PATH
 
15721
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
15722
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
15723
  if test "$GCC" = yes; then
 
15724
    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"`
 
15725
  else
 
15726
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
15727
  fi
 
15728
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15729
  ;;
 
15730
 
 
15731
dgux*)
 
15732
  version_type=linux
 
15733
  need_lib_prefix=no
 
15734
  need_version=no
 
15735
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15736
  soname_spec='${libname}${release}${shared_ext}$major'
 
15737
  shlibpath_var=LD_LIBRARY_PATH
 
15738
  ;;
 
15739
 
 
15740
freebsd1*)
 
15741
  dynamic_linker=no
 
15742
  ;;
 
15743
 
 
15744
kfreebsd*-gnu)
 
15745
  version_type=linux
 
15746
  need_lib_prefix=no
 
15747
  need_version=no
 
15748
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15749
  soname_spec='${libname}${release}${shared_ext}$major'
 
15750
  shlibpath_var=LD_LIBRARY_PATH
 
15751
  shlibpath_overrides_runpath=no
 
15752
  hardcode_into_libs=yes
 
15753
  dynamic_linker='GNU ld.so'
 
15754
  ;;
 
15755
 
 
15756
freebsd*)
 
15757
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
15758
  version_type=freebsd-$objformat
 
15759
  case $version_type in
 
15760
    freebsd-elf*)
 
15761
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15762
      need_version=no
 
15763
      need_lib_prefix=no
 
15764
      ;;
 
15765
    freebsd-*)
 
15766
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15767
      need_version=yes
 
15768
      ;;
 
15769
  esac
 
15770
  shlibpath_var=LD_LIBRARY_PATH
 
15771
  case $host_os in
 
15772
  freebsd2*)
 
15773
    shlibpath_overrides_runpath=yes
 
15774
    ;;
 
15775
  freebsd3.01* | freebsdelf3.01*)
 
15776
    shlibpath_overrides_runpath=yes
 
15777
    hardcode_into_libs=yes
 
15778
    ;;
 
15779
  *) # from 3.2 on
 
15780
    shlibpath_overrides_runpath=no
 
15781
    hardcode_into_libs=yes
 
15782
    ;;
 
15783
  esac
 
15784
  ;;
 
15785
 
 
15786
gnu*)
 
15787
  version_type=linux
 
15788
  need_lib_prefix=no
 
15789
  need_version=no
 
15790
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15791
  soname_spec='${libname}${release}${shared_ext}$major'
 
15792
  shlibpath_var=LD_LIBRARY_PATH
 
15793
  hardcode_into_libs=yes
 
15794
  ;;
 
15795
 
 
15796
hpux9* | hpux10* | hpux11*)
 
15797
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15798
  # link against other versions.
 
15799
  version_type=sunos
 
15800
  need_lib_prefix=no
 
15801
  need_version=no
 
15802
  case "$host_cpu" in
 
15803
  ia64*)
 
15804
    shrext_cmds='.so'
 
15805
    hardcode_into_libs=yes
 
15806
    dynamic_linker="$host_os dld.so"
 
15807
    shlibpath_var=LD_LIBRARY_PATH
 
15808
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15809
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15810
    soname_spec='${libname}${release}${shared_ext}$major'
 
15811
    if test "X$HPUX_IA64_MODE" = X32; then
 
15812
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15813
    else
 
15814
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15815
    fi
 
15816
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15817
    ;;
 
15818
   hppa*64*)
 
15819
     shrext_cmds='.sl'
 
15820
     hardcode_into_libs=yes
 
15821
     dynamic_linker="$host_os dld.sl"
 
15822
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15823
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15824
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15825
     soname_spec='${libname}${release}${shared_ext}$major'
 
15826
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15827
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15828
     ;;
 
15829
   *)
 
15830
    shrext_cmds='.sl'
 
15831
    dynamic_linker="$host_os dld.sl"
 
15832
    shlibpath_var=SHLIB_PATH
 
15833
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15834
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15835
    soname_spec='${libname}${release}${shared_ext}$major'
 
15836
    ;;
 
15837
  esac
 
15838
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15839
  postinstall_cmds='chmod 555 $lib'
 
15840
  ;;
 
15841
 
 
15842
irix5* | irix6* | nonstopux*)
 
15843
  case $host_os in
 
15844
    nonstopux*) version_type=nonstopux ;;
 
15845
    *)
 
15846
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15847
                version_type=linux
 
15848
        else
 
15849
                version_type=irix
 
15850
        fi ;;
 
15851
  esac
 
15852
  need_lib_prefix=no
 
15853
  need_version=no
 
15854
  soname_spec='${libname}${release}${shared_ext}$major'
 
15855
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15856
  case $host_os in
 
15857
  irix5* | nonstopux*)
 
15858
    libsuff= shlibsuff=
 
15859
    ;;
 
15860
  *)
 
15861
    case $LD in # libtool.m4 will add one of these switches to LD
 
15862
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15863
      libsuff= shlibsuff= libmagic=32-bit;;
 
15864
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15865
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15866
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15867
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15868
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15869
    esac
 
15870
    ;;
 
15871
  esac
 
15872
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15873
  shlibpath_overrides_runpath=no
 
15874
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15875
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15876
  hardcode_into_libs=yes
 
15877
  ;;
 
15878
 
 
15879
# No shared lib support for Linux oldld, aout, or coff.
 
15880
linux*oldld* | linux*aout* | linux*coff*)
 
15881
  dynamic_linker=no
 
15882
  ;;
 
15883
 
 
15884
# This must be Linux ELF.
 
15885
linux*)
 
15886
  version_type=linux
 
15887
  need_lib_prefix=no
 
15888
  need_version=no
 
15889
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15890
  soname_spec='${libname}${release}${shared_ext}$major'
 
15891
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15892
  shlibpath_var=LD_LIBRARY_PATH
 
15893
  shlibpath_overrides_runpath=no
 
15894
  # This implies no fast_install, which is unacceptable.
 
15895
  # Some rework will be needed to allow for fast_install
 
15896
  # before this can be enabled.
 
15897
  hardcode_into_libs=yes
 
15898
 
 
15899
  # Append ld.so.conf contents to the search path
 
15900
  if test -f /etc/ld.so.conf; then
 
15901
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
15902
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15903
  fi
 
15904
 
 
15905
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15906
  # powerpc, because MkLinux only supported shared libraries with the
 
15907
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15908
  # most powerpc-linux boxes support dynamic linking these days and
 
15909
  # people can always --disable-shared, the test was removed, and we
 
15910
  # assume the GNU/Linux dynamic linker is in use.
 
15911
  dynamic_linker='GNU/Linux ld.so'
 
15912
  ;;
 
15913
 
 
15914
knetbsd*-gnu)
 
15915
  version_type=linux
 
15916
  need_lib_prefix=no
 
15917
  need_version=no
 
15918
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15919
  soname_spec='${libname}${release}${shared_ext}$major'
 
15920
  shlibpath_var=LD_LIBRARY_PATH
 
15921
  shlibpath_overrides_runpath=no
 
15922
  hardcode_into_libs=yes
 
15923
  dynamic_linker='GNU ld.so'
 
15924
  ;;
 
15925
 
 
15926
netbsd*)
 
15927
  version_type=sunos
 
15928
  need_lib_prefix=no
 
15929
  need_version=no
 
15930
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15931
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15932
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15933
    dynamic_linker='NetBSD (a.out) ld.so'
 
15934
  else
 
15935
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15936
    soname_spec='${libname}${release}${shared_ext}$major'
 
15937
    dynamic_linker='NetBSD ld.elf_so'
 
15938
  fi
 
15939
  shlibpath_var=LD_LIBRARY_PATH
 
15940
  shlibpath_overrides_runpath=yes
 
15941
  hardcode_into_libs=yes
 
15942
  ;;
 
15943
 
 
15944
newsos6)
 
15945
  version_type=linux
 
15946
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15947
  shlibpath_var=LD_LIBRARY_PATH
 
15948
  shlibpath_overrides_runpath=yes
 
15949
  ;;
 
15950
 
 
15951
nto-qnx*)
 
15952
  version_type=linux
 
15953
  need_lib_prefix=no
 
15954
  need_version=no
 
15955
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15956
  soname_spec='${libname}${release}${shared_ext}$major'
 
15957
  shlibpath_var=LD_LIBRARY_PATH
 
15958
  shlibpath_overrides_runpath=yes
 
15959
  ;;
 
15960
 
 
15961
openbsd*)
 
15962
  version_type=sunos
 
15963
  need_lib_prefix=no
 
15964
  need_version=yes
 
15965
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15966
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15967
  shlibpath_var=LD_LIBRARY_PATH
 
15968
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15969
    case $host_os in
 
15970
      openbsd2.[89] | openbsd2.[89].*)
 
15971
        shlibpath_overrides_runpath=no
 
15972
        ;;
 
15973
      *)
 
15974
        shlibpath_overrides_runpath=yes
 
15975
        ;;
 
15976
      esac
 
15977
  else
 
15978
    shlibpath_overrides_runpath=yes
 
15979
  fi
 
15980
  ;;
 
15981
 
 
15982
os2*)
 
15983
  libname_spec='$name'
 
15984
  shrext_cmds=".dll"
 
15985
  need_lib_prefix=no
 
15986
  library_names_spec='$libname${shared_ext} $libname.a'
 
15987
  dynamic_linker='OS/2 ld.exe'
 
15988
  shlibpath_var=LIBPATH
 
15989
  ;;
 
15990
 
 
15991
osf3* | osf4* | osf5*)
 
15992
  version_type=osf
 
15993
  need_lib_prefix=no
 
15994
  need_version=no
 
15995
  soname_spec='${libname}${release}${shared_ext}$major'
 
15996
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15997
  shlibpath_var=LD_LIBRARY_PATH
 
15998
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15999
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16000
  ;;
 
16001
 
 
16002
sco3.2v5*)
 
16003
  version_type=osf
 
16004
  soname_spec='${libname}${release}${shared_ext}$major'
 
16005
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16006
  shlibpath_var=LD_LIBRARY_PATH
 
16007
  ;;
 
16008
 
 
16009
solaris*)
 
16010
  version_type=linux
 
16011
  need_lib_prefix=no
 
16012
  need_version=no
 
16013
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16014
  soname_spec='${libname}${release}${shared_ext}$major'
 
16015
  shlibpath_var=LD_LIBRARY_PATH
 
16016
  shlibpath_overrides_runpath=yes
 
16017
  hardcode_into_libs=yes
 
16018
  # ldd complains unless libraries are executable
 
16019
  postinstall_cmds='chmod +x $lib'
 
16020
  ;;
 
16021
 
 
16022
sunos4*)
 
16023
  version_type=sunos
 
16024
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16025
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16026
  shlibpath_var=LD_LIBRARY_PATH
 
16027
  shlibpath_overrides_runpath=yes
 
16028
  if test "$with_gnu_ld" = yes; then
 
16029
    need_lib_prefix=no
 
16030
  fi
 
16031
  need_version=yes
 
16032
  ;;
 
16033
 
 
16034
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16035
  version_type=linux
 
16036
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16037
  soname_spec='${libname}${release}${shared_ext}$major'
 
16038
  shlibpath_var=LD_LIBRARY_PATH
 
16039
  case $host_vendor in
 
16040
    sni)
 
16041
      shlibpath_overrides_runpath=no
 
16042
      need_lib_prefix=no
 
16043
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16044
      runpath_var=LD_RUN_PATH
 
16045
      ;;
 
16046
    siemens)
 
16047
      need_lib_prefix=no
 
16048
      ;;
 
16049
    motorola)
 
16050
      need_lib_prefix=no
 
16051
      need_version=no
 
16052
      shlibpath_overrides_runpath=no
 
16053
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16054
      ;;
 
16055
  esac
 
16056
  ;;
 
16057
 
 
16058
sysv4*MP*)
 
16059
  if test -d /usr/nec ;then
 
16060
    version_type=linux
 
16061
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16062
    soname_spec='$libname${shared_ext}.$major'
 
16063
    shlibpath_var=LD_LIBRARY_PATH
 
16064
  fi
 
16065
  ;;
 
16066
 
 
16067
uts4*)
 
16068
  version_type=linux
 
16069
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16070
  soname_spec='${libname}${release}${shared_ext}$major'
 
16071
  shlibpath_var=LD_LIBRARY_PATH
 
16072
  ;;
 
16073
 
 
16074
*)
 
16075
  dynamic_linker=no
 
16076
  ;;
 
16077
esac
 
16078
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16079
echo "${ECHO_T}$dynamic_linker" >&6
 
16080
test "$dynamic_linker" = no && can_build_shared=no
 
16081
 
 
16082
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16083
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
16084
hardcode_action_F77=
 
16085
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16086
   test -n "$runpath_var F77" || \
 
16087
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
16088
 
 
16089
  # We can hardcode non-existant directories.
 
16090
  if test "$hardcode_direct_F77" != no &&
 
16091
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16092
     # have to relink, otherwise we might link with an installed library
 
16093
     # when we should be linking with a yet-to-be-installed one
 
16094
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16095
     test "$hardcode_minus_L_F77" != no; then
 
16096
    # Linking always hardcodes the temporary library directory.
 
16097
    hardcode_action_F77=relink
 
16098
  else
 
16099
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16100
    hardcode_action_F77=immediate
 
16101
  fi
 
16102
else
 
16103
  # We cannot hardcode anything, or else we can only hardcode existing
 
16104
  # directories.
 
16105
  hardcode_action_F77=unsupported
 
16106
fi
 
16107
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16108
echo "${ECHO_T}$hardcode_action_F77" >&6
 
16109
 
 
16110
if test "$hardcode_action_F77" = relink; then
 
16111
  # Fast installation is not supported
 
16112
  enable_fast_install=no
 
16113
elif test "$shlibpath_overrides_runpath" = yes ||
 
16114
     test "$enable_shared" = no; then
 
16115
  # Fast installation is not necessary
 
16116
  enable_fast_install=needless
 
16117
fi
 
16118
 
 
16119
striplib=
 
16120
old_striplib=
 
16121
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
16122
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
16123
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
16124
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
16125
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
16126
  echo "$as_me:$LINENO: result: yes" >&5
 
16127
echo "${ECHO_T}yes" >&6
 
16128
else
 
16129
# FIXME - insert some real tests, host_os isn't really good enough
 
16130
  case $host_os in
 
16131
   darwin*)
 
16132
       if test -n "$STRIP" ; then
 
16133
         striplib="$STRIP -x"
 
16134
         echo "$as_me:$LINENO: result: yes" >&5
 
16135
echo "${ECHO_T}yes" >&6
 
16136
       else
 
16137
  echo "$as_me:$LINENO: result: no" >&5
 
16138
echo "${ECHO_T}no" >&6
 
16139
fi
 
16140
       ;;
 
16141
   *)
 
16142
  echo "$as_me:$LINENO: result: no" >&5
 
16143
echo "${ECHO_T}no" >&6
 
16144
    ;;
 
16145
  esac
 
16146
fi
 
16147
 
 
16148
 
 
16149
 
 
16150
# The else clause should only fire when bootstrapping the
 
16151
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16152
# with your package, and you will get complaints that there are
 
16153
# no rules to generate ltmain.sh.
 
16154
if test -f "$ltmain"; then
 
16155
  # See if we are running on zsh, and set the options which allow our commands through
 
16156
  # without removal of \ escapes.
 
16157
  if test -n "${ZSH_VERSION+set}" ; then
 
16158
    setopt NO_GLOB_SUBST
 
16159
  fi
 
16160
  # Now quote all the things that may contain metacharacters while being
 
16161
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16162
  # variables and quote the copies for generation of the libtool script.
 
16163
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
16164
    SED SHELL STRIP \
 
16165
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16166
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16167
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16168
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16169
    lt_cv_sys_global_symbol_to_c_name_address \
 
16170
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16171
    old_postinstall_cmds old_postuninstall_cmds \
 
16172
    compiler_F77 \
 
16173
    CC_F77 \
 
16174
    LD_F77 \
 
16175
    lt_prog_compiler_wl_F77 \
 
16176
    lt_prog_compiler_pic_F77 \
 
16177
    lt_prog_compiler_static_F77 \
 
16178
    lt_prog_compiler_no_builtin_flag_F77 \
 
16179
    export_dynamic_flag_spec_F77 \
 
16180
    thread_safe_flag_spec_F77 \
 
16181
    whole_archive_flag_spec_F77 \
 
16182
    enable_shared_with_static_runtimes_F77 \
 
16183
    old_archive_cmds_F77 \
 
16184
    old_archive_from_new_cmds_F77 \
 
16185
    predep_objects_F77 \
 
16186
    postdep_objects_F77 \
 
16187
    predeps_F77 \
 
16188
    postdeps_F77 \
 
16189
    compiler_lib_search_path_F77 \
 
16190
    archive_cmds_F77 \
 
16191
    archive_expsym_cmds_F77 \
 
16192
    postinstall_cmds_F77 \
 
16193
    postuninstall_cmds_F77 \
 
16194
    old_archive_from_expsyms_cmds_F77 \
 
16195
    allow_undefined_flag_F77 \
 
16196
    no_undefined_flag_F77 \
 
16197
    export_symbols_cmds_F77 \
 
16198
    hardcode_libdir_flag_spec_F77 \
 
16199
    hardcode_libdir_flag_spec_ld_F77 \
 
16200
    hardcode_libdir_separator_F77 \
 
16201
    hardcode_automatic_F77 \
 
16202
    module_cmds_F77 \
 
16203
    module_expsym_cmds_F77 \
 
16204
    lt_cv_prog_compiler_c_o_F77 \
 
16205
    exclude_expsyms_F77 \
 
16206
    include_expsyms_F77; do
 
16207
 
 
16208
    case $var in
 
16209
    old_archive_cmds_F77 | \
 
16210
    old_archive_from_new_cmds_F77 | \
 
16211
    archive_cmds_F77 | \
 
16212
    archive_expsym_cmds_F77 | \
 
16213
    module_cmds_F77 | \
 
16214
    module_expsym_cmds_F77 | \
 
16215
    old_archive_from_expsyms_cmds_F77 | \
 
16216
    export_symbols_cmds_F77 | \
 
16217
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16218
    postinstall_cmds | postuninstall_cmds | \
 
16219
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16220
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16221
      # Double-quote double-evaled strings.
 
16222
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16223
      ;;
 
16224
    *)
 
16225
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16226
      ;;
 
16227
    esac
 
16228
  done
 
16229
 
 
16230
  case $lt_echo in
 
16231
  *'\$0 --fallback-echo"')
 
16232
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16233
    ;;
 
16234
  esac
 
16235
 
 
16236
cfgfile="$ofile"
 
16237
 
 
16238
  cat <<__EOF__ >> "$cfgfile"
 
16239
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16240
 
 
16241
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16242
 
 
16243
# Shell to use when invoking shell scripts.
 
16244
SHELL=$lt_SHELL
 
16245
 
 
16246
# Whether or not to build shared libraries.
 
16247
build_libtool_libs=$enable_shared
 
16248
 
 
16249
# Whether or not to build static libraries.
 
16250
build_old_libs=$enable_static
 
16251
 
 
16252
# Whether or not to add -lc for building shared libraries.
 
16253
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16254
 
 
16255
# Whether or not to disallow shared libs when runtime libs are static
 
16256
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16257
 
 
16258
# Whether or not to optimize for fast installation.
 
16259
fast_install=$enable_fast_install
 
16260
 
 
16261
# The host system.
 
16262
host_alias=$host_alias
 
16263
host=$host
 
16264
 
 
16265
# An echo program that does not interpret backslashes.
 
16266
echo=$lt_echo
 
16267
 
 
16268
# The archiver.
 
16269
AR=$lt_AR
 
16270
AR_FLAGS=$lt_AR_FLAGS
 
16271
 
 
16272
# A C compiler.
 
16273
LTCC=$lt_LTCC
 
16274
 
 
16275
# A language-specific compiler.
 
16276
CC=$lt_compiler_F77
 
16277
 
 
16278
# Is the compiler the GNU C compiler?
 
16279
with_gcc=$GCC_F77
 
16280
 
 
16281
# An ERE matcher.
 
16282
EGREP=$lt_EGREP
 
16283
 
 
16284
# The linker used to build libraries.
 
16285
LD=$lt_LD_F77
 
16286
 
 
16287
# Whether we need hard or soft links.
 
16288
LN_S=$lt_LN_S
 
16289
 
 
16290
# A BSD-compatible nm program.
 
16291
NM=$lt_NM
 
16292
 
 
16293
# A symbol stripping program
 
16294
STRIP=$lt_STRIP
 
16295
 
 
16296
# Used to examine libraries when file_magic_cmd begins "file"
 
16297
MAGIC_CMD=$MAGIC_CMD
 
16298
 
 
16299
# Used on cygwin: DLL creation program.
 
16300
DLLTOOL="$DLLTOOL"
 
16301
 
 
16302
# Used on cygwin: object dumper.
 
16303
OBJDUMP="$OBJDUMP"
 
16304
 
 
16305
# Used on cygwin: assembler.
 
16306
AS="$AS"
 
16307
 
 
16308
# The name of the directory that contains temporary libtool files.
 
16309
objdir=$objdir
 
16310
 
 
16311
# How to create reloadable object files.
 
16312
reload_flag=$lt_reload_flag
 
16313
reload_cmds=$lt_reload_cmds
 
16314
 
 
16315
# How to pass a linker flag through the compiler.
 
16316
wl=$lt_lt_prog_compiler_wl_F77
 
16317
 
 
16318
# Object file suffix (normally "o").
 
16319
objext="$ac_objext"
 
16320
 
 
16321
# Old archive suffix (normally "a").
 
16322
libext="$libext"
 
16323
 
 
16324
# Shared library suffix (normally ".so").
 
16325
shrext_cmds='$shrext_cmds'
 
16326
 
 
16327
# Executable file suffix (normally "").
 
16328
exeext="$exeext"
 
16329
 
 
16330
# Additional compiler flags for building library objects.
 
16331
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16332
pic_mode=$pic_mode
 
16333
 
 
16334
# What is the maximum length of a command?
 
16335
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16336
 
 
16337
# Does compiler simultaneously support -c and -o options?
 
16338
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16339
 
 
16340
# Must we lock files when doing compilation ?
 
16341
need_locks=$lt_need_locks
 
16342
 
 
16343
# Do we need the lib prefix for modules?
 
16344
need_lib_prefix=$need_lib_prefix
 
16345
 
 
16346
# Do we need a version for libraries?
 
16347
need_version=$need_version
 
16348
 
 
16349
# Whether dlopen is supported.
 
16350
dlopen_support=$enable_dlopen
 
16351
 
 
16352
# Whether dlopen of programs is supported.
 
16353
dlopen_self=$enable_dlopen_self
 
16354
 
 
16355
# Whether dlopen of statically linked programs is supported.
 
16356
dlopen_self_static=$enable_dlopen_self_static
 
16357
 
 
16358
# Compiler flag to prevent dynamic linking.
 
16359
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16360
 
 
16361
# Compiler flag to turn off builtin functions.
 
16362
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16363
 
 
16364
# Compiler flag to allow reflexive dlopens.
 
16365
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16366
 
 
16367
# Compiler flag to generate shared objects directly from archives.
 
16368
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16369
 
 
16370
# Compiler flag to generate thread-safe objects.
 
16371
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16372
 
 
16373
# Library versioning type.
 
16374
version_type=$version_type
 
16375
 
 
16376
# Format of library name prefix.
 
16377
libname_spec=$lt_libname_spec
 
16378
 
 
16379
# List of archive names.  First name is the real one, the rest are links.
 
16380
# The last name is the one that the linker finds with -lNAME.
 
16381
library_names_spec=$lt_library_names_spec
 
16382
 
 
16383
# The coded name of the library, if different from the real name.
 
16384
soname_spec=$lt_soname_spec
 
16385
 
 
16386
# Commands used to build and install an old-style archive.
 
16387
RANLIB=$lt_RANLIB
 
16388
old_archive_cmds=$lt_old_archive_cmds_F77
 
16389
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16390
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16391
 
 
16392
# Create an old-style archive from a shared archive.
 
16393
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16394
 
 
16395
# Create a temporary old-style archive to link instead of a shared archive.
 
16396
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16397
 
 
16398
# Commands used to build and install a shared archive.
 
16399
archive_cmds=$lt_archive_cmds_F77
 
16400
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16401
postinstall_cmds=$lt_postinstall_cmds
 
16402
postuninstall_cmds=$lt_postuninstall_cmds
 
16403
 
 
16404
# Commands used to build a loadable module (assumed same as above if empty)
 
16405
module_cmds=$lt_module_cmds_F77
 
16406
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16407
 
 
16408
# Commands to strip libraries.
 
16409
old_striplib=$lt_old_striplib
 
16410
striplib=$lt_striplib
 
16411
 
 
16412
# Dependencies to place before the objects being linked to create a
 
16413
# shared library.
 
16414
predep_objects=$lt_predep_objects_F77
 
16415
 
 
16416
# Dependencies to place after the objects being linked to create a
 
16417
# shared library.
 
16418
postdep_objects=$lt_postdep_objects_F77
 
16419
 
 
16420
# Dependencies to place before the objects being linked to create a
 
16421
# shared library.
 
16422
predeps=$lt_predeps_F77
 
16423
 
 
16424
# Dependencies to place after the objects being linked to create a
 
16425
# shared library.
 
16426
postdeps=$lt_postdeps_F77
 
16427
 
 
16428
# The library search path used internally by the compiler when linking
 
16429
# a shared library.
 
16430
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16431
 
 
16432
# Method to check whether dependent libraries are shared objects.
 
16433
deplibs_check_method=$lt_deplibs_check_method
 
16434
 
 
16435
# Command to use when deplibs_check_method == file_magic.
 
16436
file_magic_cmd=$lt_file_magic_cmd
 
16437
 
 
16438
# Flag that allows shared libraries with undefined symbols to be built.
 
16439
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16440
 
 
16441
# Flag that forces no undefined symbols.
 
16442
no_undefined_flag=$lt_no_undefined_flag_F77
 
16443
 
 
16444
# Commands used to finish a libtool library installation in a directory.
 
16445
finish_cmds=$lt_finish_cmds
 
16446
 
 
16447
# Same as above, but a single script fragment to be evaled but not shown.
 
16448
finish_eval=$lt_finish_eval
 
16449
 
 
16450
# Take the output of nm and produce a listing of raw symbols and C names.
 
16451
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16452
 
 
16453
# Transform the output of nm in a proper C declaration
 
16454
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16455
 
 
16456
# Transform the output of nm in a C name address pair
 
16457
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16458
 
 
16459
# This is the shared library runtime path variable.
 
16460
runpath_var=$runpath_var
 
16461
 
 
16462
# This is the shared library path variable.
 
16463
shlibpath_var=$shlibpath_var
 
16464
 
 
16465
# Is shlibpath searched before the hard-coded library search path?
 
16466
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16467
 
 
16468
# How to hardcode a shared library path into an executable.
 
16469
hardcode_action=$hardcode_action_F77
 
16470
 
 
16471
# Whether we should hardcode library paths into libraries.
 
16472
hardcode_into_libs=$hardcode_into_libs
 
16473
 
 
16474
# Flag to hardcode \$libdir into a binary during linking.
 
16475
# This must work even if \$libdir does not exist.
 
16476
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16477
 
 
16478
# If ld is used when linking, flag to hardcode \$libdir into
 
16479
# a binary during linking. This must work even if \$libdir does
 
16480
# not exist.
 
16481
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16482
 
 
16483
# Whether we need a single -rpath flag with a separated argument.
 
16484
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16485
 
 
16486
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16487
# resulting binary.
 
16488
hardcode_direct=$hardcode_direct_F77
 
16489
 
 
16490
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16491
# resulting binary.
 
16492
hardcode_minus_L=$hardcode_minus_L_F77
 
16493
 
 
16494
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16495
# the resulting binary.
 
16496
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16497
 
 
16498
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16499
# and all subsequent libraries and executables linked against it.
 
16500
hardcode_automatic=$hardcode_automatic_F77
 
16501
 
 
16502
# Variables whose values should be saved in libtool wrapper scripts and
 
16503
# restored at relink time.
 
16504
variables_saved_for_relink="$variables_saved_for_relink"
 
16505
 
 
16506
# Whether libtool must link a program against all its dependency libraries.
 
16507
link_all_deplibs=$link_all_deplibs_F77
 
16508
 
 
16509
# Compile-time system search path for libraries
 
16510
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16511
 
 
16512
# Run-time system search path for libraries
 
16513
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16514
 
 
16515
# Fix the shell variable \$srcfile for the compiler.
 
16516
fix_srcfile_path="$fix_srcfile_path_F77"
 
16517
 
 
16518
# Set to yes if exported symbols are required.
 
16519
always_export_symbols=$always_export_symbols_F77
 
16520
 
 
16521
# The commands to list exported symbols.
 
16522
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16523
 
 
16524
# The commands to extract the exported symbol list from a shared archive.
 
16525
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16526
 
 
16527
# Symbols that should not be listed in the preloaded symbols.
 
16528
exclude_expsyms=$lt_exclude_expsyms_F77
 
16529
 
 
16530
# Symbols that must always be exported.
 
16531
include_expsyms=$lt_include_expsyms_F77
 
16532
 
 
16533
# ### END LIBTOOL TAG CONFIG: $tagname
 
16534
 
 
16535
__EOF__
 
16536
 
 
16537
 
 
16538
else
 
16539
  # If there is no Makefile yet, we rely on a make rule to execute
 
16540
  # `config.status --recheck' to rerun these tests and create the
 
16541
  # libtool script then.
 
16542
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16543
  if test -f "$ltmain_in"; then
 
16544
    test -f Makefile && make "$ltmain"
 
16545
  fi
 
16546
fi
 
16547
 
 
16548
 
 
16549
ac_ext=c
 
16550
ac_cpp='$CPP $CPPFLAGS'
 
16551
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16552
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16553
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16554
 
 
16555
CC="$lt_save_CC"
 
16556
 
 
16557
        else
 
16558
          tagname=""
 
16559
        fi
 
16560
        ;;
 
16561
 
 
16562
      GCJ)
 
16563
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16564
 
 
16565
 
 
16566
 
 
16567
# Source file extension for Java test sources.
 
16568
ac_ext=java
 
16569
 
 
16570
# Object file extension for compiled Java test sources.
 
16571
objext=o
 
16572
objext_GCJ=$objext
 
16573
 
 
16574
# Code to be used in simple compile tests
 
16575
lt_simple_compile_test_code="class foo {}\n"
 
16576
 
 
16577
# Code to be used in simple link tests
 
16578
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
16579
 
 
16580
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16581
 
 
16582
# If no C compiler was specified, use CC.
 
16583
LTCC=${LTCC-"$CC"}
 
16584
 
 
16585
# Allow CC to be a program name with arguments.
 
16586
compiler=$CC
 
16587
 
 
16588
 
 
16589
# Allow CC to be a program name with arguments.
 
16590
lt_save_CC="$CC"
 
16591
CC=${GCJ-"gcj"}
 
16592
compiler=$CC
 
16593
compiler_GCJ=$CC
 
16594
 
 
16595
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16596
archive_cmds_need_lc_GCJ=no
 
16597
 
 
16598
 
 
16599
lt_prog_compiler_no_builtin_flag_GCJ=
 
16600
 
 
16601
if test "$GCC" = yes; then
 
16602
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16603
 
 
16604
 
 
16605
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16606
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
16607
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16608
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16609
else
 
16610
  lt_cv_prog_compiler_rtti_exceptions=no
 
16611
  ac_outfile=conftest.$ac_objext
 
16612
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16613
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16614
   # Insert the option either (1) after the last *FLAGS variable, or
 
16615
   # (2) before a word containing "conftest.", or (3) at the end.
 
16616
   # Note that $ac_compile itself does not contain backslashes and begins
 
16617
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16618
   # The option is referenced via a variable to avoid confusing sed.
 
16619
   lt_compile=`echo "$ac_compile" | $SED \
 
16620
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16621
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16622
   -e 's:$: $lt_compiler_flag:'`
 
16623
   (eval echo "\"\$as_me:16623: $lt_compile\"" >&5)
 
16624
   (eval "$lt_compile" 2>conftest.err)
 
16625
   ac_status=$?
 
16626
   cat conftest.err >&5
 
16627
   echo "$as_me:16627: \$? = $ac_status" >&5
 
16628
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16629
     # The compiler can only warn and ignore the option if not recognized
 
16630
     # So say no if there are warnings
 
16631
     if test ! -s conftest.err; then
 
16632
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16633
     fi
 
16634
   fi
 
16635
   $rm conftest*
 
16636
 
 
16637
fi
 
16638
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16639
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
16640
 
 
16641
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16642
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16643
else
 
16644
    :
 
16645
fi
 
16646
 
 
16647
fi
 
16648
 
 
16649
lt_prog_compiler_wl_GCJ=
 
16650
lt_prog_compiler_pic_GCJ=
 
16651
lt_prog_compiler_static_GCJ=
 
16652
 
 
16653
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16654
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
16655
 
 
16656
  if test "$GCC" = yes; then
 
16657
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16658
    lt_prog_compiler_static_GCJ='-static'
 
16659
 
 
16660
    case $host_os in
 
16661
      aix*)
 
16662
      # All AIX code is PIC.
 
16663
      if test "$host_cpu" = ia64; then
 
16664
        # AIX 5 now supports IA64 processor
 
16665
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16666
      fi
 
16667
      ;;
 
16668
 
 
16669
    amigaos*)
 
16670
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16671
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16672
      # like `-m68040'.
 
16673
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16674
      ;;
 
16675
 
 
16676
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16677
      # PIC is the default for these OSes.
 
16678
      ;;
 
16679
 
 
16680
    mingw* | pw32* | os2*)
 
16681
      # This hack is so that the source file can tell whether it is being
 
16682
      # built for inclusion in a dll (and should export symbols for example).
 
16683
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16684
      ;;
 
16685
 
 
16686
    darwin* | rhapsody*)
 
16687
      # PIC is the default on this platform
 
16688
      # Common symbols not allowed in MH_DYLIB files
 
16689
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16690
      ;;
 
16691
 
 
16692
    msdosdjgpp*)
 
16693
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16694
      # on systems that don't support them.
 
16695
      lt_prog_compiler_can_build_shared_GCJ=no
 
16696
      enable_shared=no
 
16697
      ;;
 
16698
 
 
16699
    sysv4*MP*)
 
16700
      if test -d /usr/nec; then
 
16701
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16702
      fi
 
16703
      ;;
 
16704
 
 
16705
    hpux*)
 
16706
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16707
      # not for PA HP-UX.
 
16708
      case "$host_cpu" in
 
16709
      hppa*64*|ia64*)
 
16710
        # +Z the default
 
16711
        ;;
 
16712
      *)
 
16713
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16714
        ;;
 
16715
      esac
 
16716
      ;;
 
16717
 
 
16718
    *)
 
16719
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16720
      ;;
 
16721
    esac
 
16722
  else
 
16723
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16724
    case $host_os in
 
16725
    aix*)
 
16726
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16727
      if test "$host_cpu" = ia64; then
 
16728
        # AIX 5 now supports IA64 processor
 
16729
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16730
      else
 
16731
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16732
      fi
 
16733
      ;;
 
16734
 
 
16735
    mingw* | pw32* | os2*)
 
16736
      # This hack is so that the source file can tell whether it is being
 
16737
      # built for inclusion in a dll (and should export symbols for example).
 
16738
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16739
      ;;
 
16740
 
 
16741
    hpux9* | hpux10* | hpux11*)
 
16742
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16743
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16744
      # not for PA HP-UX.
 
16745
      case "$host_cpu" in
 
16746
      hppa*64*|ia64*)
 
16747
        # +Z the default
 
16748
        ;;
 
16749
      *)
 
16750
        lt_prog_compiler_pic_GCJ='+Z'
 
16751
        ;;
 
16752
      esac
 
16753
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16754
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16755
      ;;
 
16756
 
 
16757
    irix5* | irix6* | nonstopux*)
 
16758
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16759
      # PIC (with -KPIC) is the default.
 
16760
      lt_prog_compiler_static_GCJ='-non_shared'
 
16761
      ;;
 
16762
 
 
16763
    newsos6)
 
16764
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16765
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16766
      ;;
 
16767
 
 
16768
    linux*)
 
16769
      case $CC in
 
16770
      icc* | ecc*)
 
16771
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16772
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16773
        lt_prog_compiler_static_GCJ='-static'
 
16774
        ;;
 
16775
      ccc*)
 
16776
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16777
        # All Alpha code is PIC.
 
16778
        lt_prog_compiler_static_GCJ='-non_shared'
 
16779
        ;;
 
16780
      esac
 
16781
      ;;
 
16782
 
 
16783
    osf3* | osf4* | osf5*)
 
16784
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16785
      # All OSF/1 code is PIC.
 
16786
      lt_prog_compiler_static_GCJ='-non_shared'
 
16787
      ;;
 
16788
 
 
16789
    sco3.2v5*)
 
16790
      lt_prog_compiler_pic_GCJ='-Kpic'
 
16791
      lt_prog_compiler_static_GCJ='-dn'
 
16792
      ;;
 
16793
 
 
16794
    solaris*)
 
16795
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16796
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16797
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16798
      ;;
 
16799
 
 
16800
    sunos4*)
 
16801
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16802
      lt_prog_compiler_pic_GCJ='-PIC'
 
16803
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16804
      ;;
 
16805
 
 
16806
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16807
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16808
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16809
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16810
      ;;
 
16811
 
 
16812
    sysv4*MP*)
 
16813
      if test -d /usr/nec ;then
 
16814
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16815
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16816
      fi
 
16817
      ;;
 
16818
 
 
16819
    uts4*)
 
16820
      lt_prog_compiler_pic_GCJ='-pic'
 
16821
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16822
      ;;
 
16823
 
 
16824
    *)
 
16825
      lt_prog_compiler_can_build_shared_GCJ=no
 
16826
      ;;
 
16827
    esac
 
16828
  fi
 
16829
 
 
16830
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16831
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
16832
 
 
16833
#
 
16834
# Check to make sure the PIC flag actually works.
 
16835
#
 
16836
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16837
 
 
16838
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16839
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
16840
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
16841
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16842
else
 
16843
  lt_prog_compiler_pic_works_GCJ=no
 
16844
  ac_outfile=conftest.$ac_objext
 
16845
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16846
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16847
   # Insert the option either (1) after the last *FLAGS variable, or
 
16848
   # (2) before a word containing "conftest.", or (3) at the end.
 
16849
   # Note that $ac_compile itself does not contain backslashes and begins
 
16850
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16851
   # The option is referenced via a variable to avoid confusing sed.
 
16852
   lt_compile=`echo "$ac_compile" | $SED \
 
16853
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16854
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16855
   -e 's:$: $lt_compiler_flag:'`
 
16856
   (eval echo "\"\$as_me:16856: $lt_compile\"" >&5)
 
16857
   (eval "$lt_compile" 2>conftest.err)
 
16858
   ac_status=$?
 
16859
   cat conftest.err >&5
 
16860
   echo "$as_me:16860: \$? = $ac_status" >&5
 
16861
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16862
     # The compiler can only warn and ignore the option if not recognized
 
16863
     # So say no if there are warnings
 
16864
     if test ! -s conftest.err; then
 
16865
       lt_prog_compiler_pic_works_GCJ=yes
 
16866
     fi
 
16867
   fi
 
16868
   $rm conftest*
 
16869
 
 
16870
fi
 
16871
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16872
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
16873
 
 
16874
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
16875
    case $lt_prog_compiler_pic_GCJ in
 
16876
     "" | " "*) ;;
 
16877
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16878
     esac
 
16879
else
 
16880
    lt_prog_compiler_pic_GCJ=
 
16881
     lt_prog_compiler_can_build_shared_GCJ=no
 
16882
fi
 
16883
 
 
16884
fi
 
16885
case "$host_os" in
 
16886
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16887
  *djgpp*)
 
16888
    lt_prog_compiler_pic_GCJ=
 
16889
    ;;
 
16890
  *)
 
16891
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
16892
    ;;
 
16893
esac
 
16894
 
 
16895
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16896
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
16897
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
16898
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16899
else
 
16900
  lt_cv_prog_compiler_c_o_GCJ=no
 
16901
   $rm -r conftest 2>/dev/null
 
16902
   mkdir conftest
 
16903
   cd conftest
 
16904
   mkdir out
 
16905
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16906
 
 
16907
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16908
   # Insert the option either (1) after the last *FLAGS variable, or
 
16909
   # (2) before a word containing "conftest.", or (3) at the end.
 
16910
   # Note that $ac_compile itself does not contain backslashes and begins
 
16911
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16912
   lt_compile=`echo "$ac_compile" | $SED \
 
16913
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16914
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16915
   -e 's:$: $lt_compiler_flag:'`
 
16916
   (eval echo "\"\$as_me:16916: $lt_compile\"" >&5)
 
16917
   (eval "$lt_compile" 2>out/conftest.err)
 
16918
   ac_status=$?
 
16919
   cat out/conftest.err >&5
 
16920
   echo "$as_me:16920: \$? = $ac_status" >&5
 
16921
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16922
   then
 
16923
     # The compiler can only warn and ignore the option if not recognized
 
16924
     # So say no if there are warnings
 
16925
     if test ! -s out/conftest.err; then
 
16926
       lt_cv_prog_compiler_c_o_GCJ=yes
 
16927
     fi
 
16928
   fi
 
16929
   chmod u+w .
 
16930
   $rm conftest*
 
16931
   # SGI C++ compiler will create directory out/ii_files/ for
 
16932
   # template instantiation
 
16933
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16934
   $rm out/* && rmdir out
 
16935
   cd ..
 
16936
   rmdir conftest
 
16937
   $rm conftest*
 
16938
 
 
16939
fi
 
16940
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
16941
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
16942
 
 
16943
 
 
16944
hard_links="nottested"
 
16945
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
16946
  # do not overwrite the value of need_locks provided by the user
 
16947
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16948
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
16949
  hard_links=yes
 
16950
  $rm conftest*
 
16951
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16952
  touch conftest.a
 
16953
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16954
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16955
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
16956
echo "${ECHO_T}$hard_links" >&6
 
16957
  if test "$hard_links" = no; then
 
16958
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16959
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16960
    need_locks=warn
 
16961
  fi
 
16962
else
 
16963
  need_locks=no
 
16964
fi
 
16965
 
 
16966
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16967
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
16968
 
 
16969
  runpath_var=
 
16970
  allow_undefined_flag_GCJ=
 
16971
  enable_shared_with_static_runtimes_GCJ=no
 
16972
  archive_cmds_GCJ=
 
16973
  archive_expsym_cmds_GCJ=
 
16974
  old_archive_From_new_cmds_GCJ=
 
16975
  old_archive_from_expsyms_cmds_GCJ=
 
16976
  export_dynamic_flag_spec_GCJ=
 
16977
  whole_archive_flag_spec_GCJ=
 
16978
  thread_safe_flag_spec_GCJ=
 
16979
  hardcode_libdir_flag_spec_GCJ=
 
16980
  hardcode_libdir_flag_spec_ld_GCJ=
 
16981
  hardcode_libdir_separator_GCJ=
 
16982
  hardcode_direct_GCJ=no
 
16983
  hardcode_minus_L_GCJ=no
 
16984
  hardcode_shlibpath_var_GCJ=unsupported
 
16985
  link_all_deplibs_GCJ=unknown
 
16986
  hardcode_automatic_GCJ=no
 
16987
  module_cmds_GCJ=
 
16988
  module_expsym_cmds_GCJ=
 
16989
  always_export_symbols_GCJ=no
 
16990
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16991
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16992
  # included in the symbol list
 
16993
  include_expsyms_GCJ=
 
16994
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16995
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16996
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16997
  # as well as any symbol that contains `d'.
 
16998
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
16999
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17000
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17001
  # the symbol is explicitly referenced.  Since portable code cannot
 
17002
  # rely on this symbol name, it's probably fine to never include it in
 
17003
  # preloaded symbol tables.
 
17004
  extract_expsyms_cmds=
 
17005
 
 
17006
  case $host_os in
 
17007
  cygwin* | mingw* | pw32*)
 
17008
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17009
    # When not using gcc, we currently assume that we are using
 
17010
    # Microsoft Visual C++.
 
17011
    if test "$GCC" != yes; then
 
17012
      with_gnu_ld=no
 
17013
    fi
 
17014
    ;;
 
17015
  openbsd*)
 
17016
    with_gnu_ld=no
 
17017
    ;;
 
17018
  esac
 
17019
 
 
17020
  ld_shlibs_GCJ=yes
 
17021
  if test "$with_gnu_ld" = yes; then
 
17022
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17023
    wlarc='${wl}'
 
17024
 
 
17025
    # See if GNU ld supports shared libraries.
 
17026
    case $host_os in
 
17027
    aix3* | aix4* | aix5*)
 
17028
      # On AIX/PPC, the GNU linker is very broken
 
17029
      if test "$host_cpu" != ia64; then
 
17030
        ld_shlibs_GCJ=no
 
17031
        cat <<EOF 1>&2
 
17032
 
 
17033
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17034
*** to be unable to reliably create shared libraries on AIX.
 
17035
*** Therefore, libtool is disabling shared libraries support.  If you
 
17036
*** really care for shared libraries, you may want to modify your PATH
 
17037
*** so that a non-GNU linker is found, and then restart.
 
17038
 
 
17039
EOF
 
17040
      fi
 
17041
      ;;
 
17042
 
 
17043
    amigaos*)
 
17044
      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)'
 
17045
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17046
      hardcode_minus_L_GCJ=yes
 
17047
 
 
17048
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17049
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17050
      # to version 4, is to share data among multiple programs linked
 
17051
      # with the same dynamic library.  Since this doesn't match the
 
17052
      # behavior of shared libraries on other platforms, we can't use
 
17053
      # them.
 
17054
      ld_shlibs_GCJ=no
 
17055
      ;;
 
17056
 
 
17057
    beos*)
 
17058
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17059
        allow_undefined_flag_GCJ=unsupported
 
17060
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17061
        # support --undefined.  This deserves some investigation.  FIXME
 
17062
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17063
      else
 
17064
        ld_shlibs_GCJ=no
 
17065
      fi
 
17066
      ;;
 
17067
 
 
17068
    cygwin* | mingw* | pw32*)
 
17069
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17070
      # as there is no search path for DLLs.
 
17071
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17072
      allow_undefined_flag_GCJ=unsupported
 
17073
      always_export_symbols_GCJ=no
 
17074
      enable_shared_with_static_runtimes_GCJ=yes
 
17075
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
17076
 
 
17077
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17078
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
17079
        # If the export-symbols file already is a .def file (1st line
 
17080
        # is EXPORTS), use it as is; otherwise, prepend...
 
17081
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17082
          cp $export_symbols $output_objdir/$soname.def;
 
17083
        else
 
17084
          echo EXPORTS > $output_objdir/$soname.def;
 
17085
          cat $export_symbols >> $output_objdir/$soname.def;
 
17086
        fi~
 
17087
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
17088
      else
 
17089
        ld_shlibs=no
 
17090
      fi
 
17091
      ;;
 
17092
 
 
17093
    netbsd* | knetbsd*-gnu)
 
17094
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17095
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17096
        wlarc=
 
17097
      else
 
17098
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17099
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17100
      fi
 
17101
      ;;
 
17102
 
 
17103
    solaris* | sysv5*)
 
17104
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17105
        ld_shlibs_GCJ=no
 
17106
        cat <<EOF 1>&2
 
17107
 
 
17108
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17109
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17110
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17111
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17112
*** your PATH or compiler configuration so that the native linker is
 
17113
*** used, and then restart.
 
17114
 
 
17115
EOF
 
17116
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17117
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17118
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17119
      else
 
17120
        ld_shlibs_GCJ=no
 
17121
      fi
 
17122
      ;;
 
17123
 
 
17124
    sunos4*)
 
17125
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17126
      wlarc=
 
17127
      hardcode_direct_GCJ=yes
 
17128
      hardcode_shlibpath_var_GCJ=no
 
17129
      ;;
 
17130
 
 
17131
  linux*)
 
17132
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17133
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17134
        archive_cmds_GCJ="$tmp_archive_cmds"
 
17135
      supports_anon_versioning=no
 
17136
      case `$LD -v 2>/dev/null` in
 
17137
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17138
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17139
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17140
        *\ 2.11.*) ;; # other 2.11 versions
 
17141
        *) supports_anon_versioning=yes ;;
 
17142
      esac
 
17143
      if test $supports_anon_versioning = yes; then
 
17144
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17145
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17146
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
17147
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17148
      else
 
17149
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
17150
      fi
 
17151
      link_all_deplibs_GCJ=no
 
17152
    else
 
17153
      ld_shlibs_GCJ=no
 
17154
    fi
 
17155
    ;;
 
17156
 
 
17157
    *)
 
17158
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17159
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17160
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17161
      else
 
17162
        ld_shlibs_GCJ=no
 
17163
      fi
 
17164
      ;;
 
17165
    esac
 
17166
 
 
17167
    if test "$ld_shlibs_GCJ" = yes; then
 
17168
      runpath_var=LD_RUN_PATH
 
17169
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17170
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17171
      # ancient GNU ld didn't support --whole-archive et. al.
 
17172
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17173
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17174
      else
 
17175
        whole_archive_flag_spec_GCJ=
 
17176
      fi
 
17177
    fi
 
17178
  else
 
17179
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17180
    case $host_os in
 
17181
    aix3*)
 
17182
      allow_undefined_flag_GCJ=unsupported
 
17183
      always_export_symbols_GCJ=yes
 
17184
      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'
 
17185
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17186
      # are no directories specified by -L.
 
17187
      hardcode_minus_L_GCJ=yes
 
17188
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
17189
        # Neither direct hardcoding nor static linking is supported with a
 
17190
        # broken collect2.
 
17191
        hardcode_direct_GCJ=unsupported
 
17192
      fi
 
17193
      ;;
 
17194
 
 
17195
    aix4* | aix5*)
 
17196
      if test "$host_cpu" = ia64; then
 
17197
        # On IA64, the linker does run time linking by default, so we don't
 
17198
        # have to do anything special.
 
17199
        aix_use_runtimelinking=no
 
17200
        exp_sym_flag='-Bexport'
 
17201
        no_entry_flag=""
 
17202
      else
 
17203
        # If we're using GNU nm, then we don't want the "-C" option.
 
17204
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17205
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17206
          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'
 
17207
        else
 
17208
          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'
 
17209
        fi
 
17210
        aix_use_runtimelinking=no
 
17211
 
 
17212
        # Test if we are trying to use run time linking or normal
 
17213
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17214
        # need to do runtime linking.
 
17215
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
17216
          for ld_flag in $LDFLAGS; do
 
17217
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17218
            aix_use_runtimelinking=yes
 
17219
            break
 
17220
          fi
 
17221
          done
 
17222
        esac
 
17223
 
 
17224
        exp_sym_flag='-bexport'
 
17225
        no_entry_flag='-bnoentry'
 
17226
      fi
 
17227
 
 
17228
      # When large executables or shared objects are built, AIX ld can
 
17229
      # have problems creating the table of contents.  If linking a library
 
17230
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17231
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17232
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17233
 
 
17234
      archive_cmds_GCJ=''
 
17235
      hardcode_direct_GCJ=yes
 
17236
      hardcode_libdir_separator_GCJ=':'
 
17237
      link_all_deplibs_GCJ=yes
 
17238
 
 
17239
      if test "$GCC" = yes; then
 
17240
        case $host_os in aix4.012|aix4.012.*)
 
17241
        # We only want to do this on AIX 4.2 and lower, the check
 
17242
        # below for broken collect2 doesn't work under 4.3+
 
17243
          collect2name=`${CC} -print-prog-name=collect2`
 
17244
          if test -f "$collect2name" && \
 
17245
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17246
          then
 
17247
          # We have reworked collect2
 
17248
          hardcode_direct_GCJ=yes
 
17249
          else
 
17250
          # We have old collect2
 
17251
          hardcode_direct_GCJ=unsupported
 
17252
          # It fails to find uninstalled libraries when the uninstalled
 
17253
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17254
          # to unsupported forces relinking
 
17255
          hardcode_minus_L_GCJ=yes
 
17256
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17257
          hardcode_libdir_separator_GCJ=
 
17258
          fi
 
17259
        esac
 
17260
        shared_flag='-shared'
 
17261
      else
 
17262
        # not using gcc
 
17263
        if test "$host_cpu" = ia64; then
 
17264
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17265
        # chokes on -Wl,-G. The following line is correct:
 
17266
          shared_flag='-G'
 
17267
        else
 
17268
        if test "$aix_use_runtimelinking" = yes; then
 
17269
            shared_flag='${wl}-G'
 
17270
          else
 
17271
            shared_flag='${wl}-bM:SRE'
 
17272
        fi
 
17273
        fi
 
17274
      fi
 
17275
 
 
17276
      # It seems that -bexpall does not export symbols beginning with
 
17277
      # underscore (_), so it is better to generate a list of symbols to export.
 
17278
      always_export_symbols_GCJ=yes
 
17279
      if test "$aix_use_runtimelinking" = yes; then
 
17280
        # Warning - without using the other runtime loading flags (-brtl),
 
17281
        # -berok will link without error, but may produce a broken library.
 
17282
        allow_undefined_flag_GCJ='-berok'
 
17283
       # Determine the default libpath from the value encoded in an empty executable.
 
17284
       cat >conftest.$ac_ext <<_ACEOF
 
17285
/* confdefs.h.  */
 
17286
_ACEOF
 
17287
cat confdefs.h >>conftest.$ac_ext
 
17288
cat >>conftest.$ac_ext <<_ACEOF
 
17289
/* end confdefs.h.  */
 
17290
 
 
17291
int
 
17292
main ()
 
17293
{
 
17294
 
 
17295
  ;
 
17296
  return 0;
 
17297
}
 
17298
_ACEOF
 
17299
rm -f conftest.$ac_objext conftest$ac_exeext
 
17300
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17301
  (eval $ac_link) 2>conftest.er1
 
17302
  ac_status=$?
 
17303
  grep -v '^ *+' conftest.er1 >conftest.err
 
17304
  rm -f conftest.er1
 
17305
  cat conftest.err >&5
 
17306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17307
  (exit $ac_status); } &&
 
17308
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17309
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17310
  (eval $ac_try) 2>&5
 
17311
  ac_status=$?
 
17312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17313
  (exit $ac_status); }; } &&
 
17314
         { ac_try='test -s conftest$ac_exeext'
 
17315
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17316
  (eval $ac_try) 2>&5
 
17317
  ac_status=$?
 
17318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17319
  (exit $ac_status); }; }; then
 
17320
 
 
17321
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17322
}'`
 
17323
# Check for a 64-bit object if we didn't find anything.
 
17324
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; }
 
17325
}'`; fi
 
17326
else
 
17327
  echo "$as_me: failed program was:" >&5
 
17328
sed 's/^/| /' conftest.$ac_ext >&5
 
17329
 
 
17330
fi
 
17331
rm -f conftest.err conftest.$ac_objext \
 
17332
      conftest$ac_exeext conftest.$ac_ext
 
17333
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17334
 
 
17335
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17336
        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"
 
17337
       else
 
17338
        if test "$host_cpu" = ia64; then
 
17339
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17340
          allow_undefined_flag_GCJ="-z nodefs"
 
17341
          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"
 
17342
        else
 
17343
         # Determine the default libpath from the value encoded in an empty executable.
 
17344
         cat >conftest.$ac_ext <<_ACEOF
 
17345
/* confdefs.h.  */
 
17346
_ACEOF
 
17347
cat confdefs.h >>conftest.$ac_ext
 
17348
cat >>conftest.$ac_ext <<_ACEOF
 
17349
/* end confdefs.h.  */
 
17350
 
 
17351
int
 
17352
main ()
 
17353
{
 
17354
 
 
17355
  ;
 
17356
  return 0;
 
17357
}
 
17358
_ACEOF
 
17359
rm -f conftest.$ac_objext conftest$ac_exeext
 
17360
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17361
  (eval $ac_link) 2>conftest.er1
 
17362
  ac_status=$?
 
17363
  grep -v '^ *+' conftest.er1 >conftest.err
 
17364
  rm -f conftest.er1
 
17365
  cat conftest.err >&5
 
17366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17367
  (exit $ac_status); } &&
 
17368
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17369
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17370
  (eval $ac_try) 2>&5
 
17371
  ac_status=$?
 
17372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17373
  (exit $ac_status); }; } &&
 
17374
         { ac_try='test -s conftest$ac_exeext'
 
17375
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17376
  (eval $ac_try) 2>&5
 
17377
  ac_status=$?
 
17378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17379
  (exit $ac_status); }; }; then
 
17380
 
 
17381
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17382
}'`
 
17383
# Check for a 64-bit object if we didn't find anything.
 
17384
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; }
 
17385
}'`; fi
 
17386
else
 
17387
  echo "$as_me: failed program was:" >&5
 
17388
sed 's/^/| /' conftest.$ac_ext >&5
 
17389
 
 
17390
fi
 
17391
rm -f conftest.err conftest.$ac_objext \
 
17392
      conftest$ac_exeext conftest.$ac_ext
 
17393
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17394
 
 
17395
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17396
          # Warning - without using the other run time loading flags,
 
17397
          # -berok will link without error, but may produce a broken library.
 
17398
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17399
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17400
          # -bexpall does not export symbols beginning with underscore (_)
 
17401
          always_export_symbols_GCJ=yes
 
17402
          # Exported symbols can be pulled into shared objects from archives
 
17403
          whole_archive_flag_spec_GCJ=' '
 
17404
          archive_cmds_need_lc_GCJ=yes
 
17405
          # This is similar to how AIX traditionally builds it's shared libraries.
 
17406
          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'
 
17407
        fi
 
17408
      fi
 
17409
      ;;
 
17410
 
 
17411
    amigaos*)
 
17412
      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)'
 
17413
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17414
      hardcode_minus_L_GCJ=yes
 
17415
      # see comment about different semantics on the GNU ld section
 
17416
      ld_shlibs_GCJ=no
 
17417
      ;;
 
17418
 
 
17419
    bsdi4*)
 
17420
      export_dynamic_flag_spec_GCJ=-rdynamic
 
17421
      ;;
 
17422
 
 
17423
    cygwin* | mingw* | pw32*)
 
17424
      # When not using gcc, we currently assume that we are using
 
17425
      # Microsoft Visual C++.
 
17426
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17427
      # no search path for DLLs.
 
17428
      hardcode_libdir_flag_spec_GCJ=' '
 
17429
      allow_undefined_flag_GCJ=unsupported
 
17430
      # Tell ltmain to make .lib files, not .a files.
 
17431
      libext=lib
 
17432
      # Tell ltmain to make .dll files, not .so files.
 
17433
      shrext_cmds=".dll"
 
17434
      # FIXME: Setting linknames here is a bad hack.
 
17435
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17436
      # The linker will automatically build a .lib file if we build a DLL.
 
17437
      old_archive_From_new_cmds_GCJ='true'
 
17438
      # FIXME: Should let the user specify the lib program.
 
17439
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
17440
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
17441
      enable_shared_with_static_runtimes_GCJ=yes
 
17442
      ;;
 
17443
 
 
17444
    darwin* | rhapsody*)
 
17445
    if test "$GXX" = yes ; then
 
17446
      archive_cmds_need_lc_GCJ=no
 
17447
      case "$host_os" in
 
17448
      rhapsody* | darwin1.[012])
 
17449
        allow_undefined_flag_GCJ='-undefined suppress'
 
17450
        ;;
 
17451
      *) # Darwin 1.3 on
 
17452
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17453
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
17454
      else
 
17455
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
17456
          10.[012])
 
17457
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
17458
            ;;
 
17459
          10.*)
 
17460
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
 
17461
            ;;
 
17462
        esac
 
17463
      fi
 
17464
        ;;
 
17465
      esac
 
17466
        lt_int_apple_cc_single_mod=no
 
17467
        output_verbose_link_cmd='echo'
 
17468
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
17469
          lt_int_apple_cc_single_mod=yes
 
17470
        fi
 
17471
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
17472
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
17473
        else
 
17474
        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'
 
17475
      fi
 
17476
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17477
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
17478
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
17479
          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}'
 
17480
        else
 
17481
          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}'
 
17482
        fi
 
17483
          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}'
 
17484
      hardcode_direct_GCJ=no
 
17485
      hardcode_automatic_GCJ=yes
 
17486
      hardcode_shlibpath_var_GCJ=unsupported
 
17487
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
17488
      link_all_deplibs_GCJ=yes
 
17489
    else
 
17490
      ld_shlibs_GCJ=no
 
17491
    fi
 
17492
      ;;
 
17493
 
 
17494
    dgux*)
 
17495
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17496
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17497
      hardcode_shlibpath_var_GCJ=no
 
17498
      ;;
 
17499
 
 
17500
    freebsd1*)
 
17501
      ld_shlibs_GCJ=no
 
17502
      ;;
 
17503
 
 
17504
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17505
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17506
    # does not break anything, and helps significantly (at the cost of a little
 
17507
    # extra space).
 
17508
    freebsd2.2*)
 
17509
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17510
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17511
      hardcode_direct_GCJ=yes
 
17512
      hardcode_shlibpath_var_GCJ=no
 
17513
      ;;
 
17514
 
 
17515
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17516
    freebsd2*)
 
17517
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17518
      hardcode_direct_GCJ=yes
 
17519
      hardcode_minus_L_GCJ=yes
 
17520
      hardcode_shlibpath_var_GCJ=no
 
17521
      ;;
 
17522
 
 
17523
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17524
    freebsd* | kfreebsd*-gnu)
 
17525
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17526
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17527
      hardcode_direct_GCJ=yes
 
17528
      hardcode_shlibpath_var_GCJ=no
 
17529
      ;;
 
17530
 
 
17531
    hpux9*)
 
17532
      if test "$GCC" = yes; then
 
17533
        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'
 
17534
      else
 
17535
        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'
 
17536
      fi
 
17537
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17538
      hardcode_libdir_separator_GCJ=:
 
17539
      hardcode_direct_GCJ=yes
 
17540
 
 
17541
      # hardcode_minus_L: Not really in the search PATH,
 
17542
      # but as the default location of the library.
 
17543
      hardcode_minus_L_GCJ=yes
 
17544
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17545
      ;;
 
17546
 
 
17547
    hpux10* | hpux11*)
 
17548
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17549
        case "$host_cpu" in
 
17550
        hppa*64*|ia64*)
 
17551
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17552
          ;;
 
17553
        *)
 
17554
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17555
          ;;
 
17556
        esac
 
17557
      else
 
17558
        case "$host_cpu" in
 
17559
        hppa*64*|ia64*)
 
17560
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17561
          ;;
 
17562
        *)
 
17563
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17564
          ;;
 
17565
        esac
 
17566
      fi
 
17567
      if test "$with_gnu_ld" = no; then
 
17568
        case "$host_cpu" in
 
17569
        hppa*64*)
 
17570
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17571
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
17572
          hardcode_libdir_separator_GCJ=:
 
17573
          hardcode_direct_GCJ=no
 
17574
          hardcode_shlibpath_var_GCJ=no
 
17575
          ;;
 
17576
        ia64*)
 
17577
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17578
          hardcode_direct_GCJ=no
 
17579
          hardcode_shlibpath_var_GCJ=no
 
17580
 
 
17581
          # hardcode_minus_L: Not really in the search PATH,
 
17582
          # but as the default location of the library.
 
17583
          hardcode_minus_L_GCJ=yes
 
17584
          ;;
 
17585
        *)
 
17586
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17587
          hardcode_libdir_separator_GCJ=:
 
17588
          hardcode_direct_GCJ=yes
 
17589
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17590
 
 
17591
          # hardcode_minus_L: Not really in the search PATH,
 
17592
          # but as the default location of the library.
 
17593
          hardcode_minus_L_GCJ=yes
 
17594
          ;;
 
17595
        esac
 
17596
      fi
 
17597
      ;;
 
17598
 
 
17599
    irix5* | irix6* | nonstopux*)
 
17600
      if test "$GCC" = yes; then
 
17601
        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'
 
17602
      else
 
17603
        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'
 
17604
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
17605
      fi
 
17606
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17607
      hardcode_libdir_separator_GCJ=:
 
17608
      link_all_deplibs_GCJ=yes
 
17609
      ;;
 
17610
 
 
17611
    netbsd* | knetbsd*-gnu)
 
17612
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17613
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17614
      else
 
17615
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17616
      fi
 
17617
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17618
      hardcode_direct_GCJ=yes
 
17619
      hardcode_shlibpath_var_GCJ=no
 
17620
      ;;
 
17621
 
 
17622
    newsos6)
 
17623
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17624
      hardcode_direct_GCJ=yes
 
17625
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17626
      hardcode_libdir_separator_GCJ=:
 
17627
      hardcode_shlibpath_var_GCJ=no
 
17628
      ;;
 
17629
 
 
17630
    openbsd*)
 
17631
      hardcode_direct_GCJ=yes
 
17632
      hardcode_shlibpath_var_GCJ=no
 
17633
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17634
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17635
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17636
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17637
      else
 
17638
       case $host_os in
 
17639
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17640
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17641
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17642
           ;;
 
17643
         *)
 
17644
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17645
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17646
           ;;
 
17647
       esac
 
17648
      fi
 
17649
      ;;
 
17650
 
 
17651
    os2*)
 
17652
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17653
      hardcode_minus_L_GCJ=yes
 
17654
      allow_undefined_flag_GCJ=unsupported
 
17655
      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'
 
17656
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17657
      ;;
 
17658
 
 
17659
    osf3*)
 
17660
      if test "$GCC" = yes; then
 
17661
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17662
        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'
 
17663
      else
 
17664
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17665
        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'
 
17666
      fi
 
17667
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17668
      hardcode_libdir_separator_GCJ=:
 
17669
      ;;
 
17670
 
 
17671
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17672
      if test "$GCC" = yes; then
 
17673
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17674
        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'
 
17675
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17676
      else
 
17677
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17678
        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'
 
17679
        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~
 
17680
        $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'
 
17681
 
 
17682
        # Both c and cxx compiler support -rpath directly
 
17683
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
17684
      fi
 
17685
      hardcode_libdir_separator_GCJ=:
 
17686
      ;;
 
17687
 
 
17688
    sco3.2v5*)
 
17689
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17690
      hardcode_shlibpath_var_GCJ=no
 
17691
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17692
      runpath_var=LD_RUN_PATH
 
17693
      hardcode_runpath_var=yes
 
17694
      ;;
 
17695
 
 
17696
    solaris*)
 
17697
      no_undefined_flag_GCJ=' -z text'
 
17698
      if test "$GCC" = yes; then
 
17699
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17700
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17701
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17702
      else
 
17703
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17704
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17705
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17706
      fi
 
17707
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17708
      hardcode_shlibpath_var_GCJ=no
 
17709
      case $host_os in
 
17710
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17711
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17712
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17713
      esac
 
17714
      link_all_deplibs_GCJ=yes
 
17715
      ;;
 
17716
 
 
17717
    sunos4*)
 
17718
      if test "x$host_vendor" = xsequent; then
 
17719
        # Use $CC to link under sequent, because it throws in some extra .o
 
17720
        # files that make .init and .fini sections work.
 
17721
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17722
      else
 
17723
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17724
      fi
 
17725
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17726
      hardcode_direct_GCJ=yes
 
17727
      hardcode_minus_L_GCJ=yes
 
17728
      hardcode_shlibpath_var_GCJ=no
 
17729
      ;;
 
17730
 
 
17731
    sysv4)
 
17732
      case $host_vendor in
 
17733
        sni)
 
17734
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17735
          hardcode_direct_GCJ=yes # is this really true???
 
17736
        ;;
 
17737
        siemens)
 
17738
          ## LD is ld it makes a PLAMLIB
 
17739
          ## CC just makes a GrossModule.
 
17740
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17741
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
17742
          hardcode_direct_GCJ=no
 
17743
        ;;
 
17744
        motorola)
 
17745
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17746
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
17747
        ;;
 
17748
      esac
 
17749
      runpath_var='LD_RUN_PATH'
 
17750
      hardcode_shlibpath_var_GCJ=no
 
17751
      ;;
 
17752
 
 
17753
    sysv4.3*)
 
17754
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17755
      hardcode_shlibpath_var_GCJ=no
 
17756
      export_dynamic_flag_spec_GCJ='-Bexport'
 
17757
      ;;
 
17758
 
 
17759
    sysv4*MP*)
 
17760
      if test -d /usr/nec; then
 
17761
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17762
        hardcode_shlibpath_var_GCJ=no
 
17763
        runpath_var=LD_RUN_PATH
 
17764
        hardcode_runpath_var=yes
 
17765
        ld_shlibs_GCJ=yes
 
17766
      fi
 
17767
      ;;
 
17768
 
 
17769
    sysv4.2uw2*)
 
17770
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17771
      hardcode_direct_GCJ=yes
 
17772
      hardcode_minus_L_GCJ=no
 
17773
      hardcode_shlibpath_var_GCJ=no
 
17774
      hardcode_runpath_var=yes
 
17775
      runpath_var=LD_RUN_PATH
 
17776
      ;;
 
17777
 
 
17778
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
17779
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
17780
      if test "$GCC" = yes; then
 
17781
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17782
      else
 
17783
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17784
      fi
 
17785
      runpath_var='LD_RUN_PATH'
 
17786
      hardcode_shlibpath_var_GCJ=no
 
17787
      ;;
 
17788
 
 
17789
    sysv5*)
 
17790
      no_undefined_flag_GCJ=' -z text'
 
17791
      # $CC -shared without GNU ld will not create a library from C++
 
17792
      # object files and a static libstdc++, better avoid it by now
 
17793
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17794
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17795
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17796
      hardcode_libdir_flag_spec_GCJ=
 
17797
      hardcode_shlibpath_var_GCJ=no
 
17798
      runpath_var='LD_RUN_PATH'
 
17799
      ;;
 
17800
 
 
17801
    uts4*)
 
17802
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17803
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17804
      hardcode_shlibpath_var_GCJ=no
 
17805
      ;;
 
17806
 
 
17807
    *)
 
17808
      ld_shlibs_GCJ=no
 
17809
      ;;
 
17810
    esac
 
17811
  fi
 
17812
 
 
17813
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
17814
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
17815
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
17816
 
 
17817
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17818
if test "$GCC" = yes; then
 
17819
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17820
fi
 
17821
 
 
17822
#
 
17823
# Do we need to explicitly link libc?
 
17824
#
 
17825
case "x$archive_cmds_need_lc_GCJ" in
 
17826
x|xyes)
 
17827
  # Assume -lc should be added
 
17828
  archive_cmds_need_lc_GCJ=yes
 
17829
 
 
17830
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17831
    case $archive_cmds_GCJ in
 
17832
    *'~'*)
 
17833
      # FIXME: we may have to deal with multi-command sequences.
 
17834
      ;;
 
17835
    '$CC '*)
 
17836
      # Test whether the compiler implicitly links with -lc since on some
 
17837
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17838
      # to ld, don't add -lc before -lgcc.
 
17839
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17840
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
17841
      $rm conftest*
 
17842
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17843
 
 
17844
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17845
  (eval $ac_compile) 2>&5
 
17846
  ac_status=$?
 
17847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17848
  (exit $ac_status); } 2>conftest.err; then
 
17849
        soname=conftest
 
17850
        lib=conftest
 
17851
        libobjs=conftest.$ac_objext
 
17852
        deplibs=
 
17853
        wl=$lt_prog_compiler_wl_GCJ
 
17854
        compiler_flags=-v
 
17855
        linker_flags=-v
 
17856
        verstring=
 
17857
        output_objdir=.
 
17858
        libname=conftest
 
17859
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
17860
        allow_undefined_flag_GCJ=
 
17861
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17862
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17863
  ac_status=$?
 
17864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17865
  (exit $ac_status); }
 
17866
        then
 
17867
          archive_cmds_need_lc_GCJ=no
 
17868
        else
 
17869
          archive_cmds_need_lc_GCJ=yes
 
17870
        fi
 
17871
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
17872
      else
 
17873
        cat conftest.err 1>&5
 
17874
      fi
 
17875
      $rm conftest*
 
17876
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
17877
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
17878
      ;;
 
17879
    esac
 
17880
  fi
 
17881
  ;;
 
17882
esac
 
17883
 
 
17884
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17885
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
17886
library_names_spec=
 
17887
libname_spec='lib$name'
 
17888
soname_spec=
 
17889
shrext_cmds=".so"
 
17890
postinstall_cmds=
 
17891
postuninstall_cmds=
 
17892
finish_cmds=
 
17893
finish_eval=
 
17894
shlibpath_var=
 
17895
shlibpath_overrides_runpath=unknown
 
17896
version_type=none
 
17897
dynamic_linker="$host_os ld.so"
 
17898
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17899
if test "$GCC" = yes; then
 
17900
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17901
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
17902
    # if the path contains ";" then we assume it to be the separator
 
17903
    # otherwise default to the standard path separator (i.e. ":") - it is
 
17904
    # assumed that no part of a normal pathname contains ";" but that should
 
17905
    # okay in the real world where ";" in dirpaths is itself problematic.
 
17906
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17907
  else
 
17908
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17909
  fi
 
17910
else
 
17911
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17912
fi
 
17913
need_lib_prefix=unknown
 
17914
hardcode_into_libs=no
 
17915
 
 
17916
# when you set need_version to no, make sure it does not cause -set_version
 
17917
# flags to be left without arguments
 
17918
need_version=unknown
 
17919
 
 
17920
case $host_os in
 
17921
aix3*)
 
17922
  version_type=linux
 
17923
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17924
  shlibpath_var=LIBPATH
 
17925
 
 
17926
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17927
  soname_spec='${libname}${release}${shared_ext}$major'
 
17928
  ;;
 
17929
 
 
17930
aix4* | aix5*)
 
17931
  version_type=linux
 
17932
  need_lib_prefix=no
 
17933
  need_version=no
 
17934
  hardcode_into_libs=yes
 
17935
  if test "$host_cpu" = ia64; then
 
17936
    # AIX 5 supports IA64
 
17937
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17938
    shlibpath_var=LD_LIBRARY_PATH
 
17939
  else
 
17940
    # With GCC up to 2.95.x, collect2 would create an import file
 
17941
    # for dependence libraries.  The import file would start with
 
17942
    # the line `#! .'.  This would cause the generated library to
 
17943
    # depend on `.', always an invalid library.  This was fixed in
 
17944
    # development snapshots of GCC prior to 3.0.
 
17945
    case $host_os in
 
17946
      aix4 | aix4.[01] | aix4.[01].*)
 
17947
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17948
           echo ' yes '
 
17949
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17950
        :
 
17951
      else
 
17952
        can_build_shared=no
 
17953
      fi
 
17954
      ;;
 
17955
    esac
 
17956
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17957
    # soname into executable. Probably we can add versioning support to
 
17958
    # collect2, so additional links can be useful in future.
 
17959
    if test "$aix_use_runtimelinking" = yes; then
 
17960
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17961
      # instead of lib<name>.a to let people know that these are not
 
17962
      # typical AIX shared libraries.
 
17963
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17964
    else
 
17965
      # We preserve .a as extension for shared libraries through AIX4.2
 
17966
      # and later when we are not doing run time linking.
 
17967
      library_names_spec='${libname}${release}.a $libname.a'
 
17968
      soname_spec='${libname}${release}${shared_ext}$major'
 
17969
    fi
 
17970
    shlibpath_var=LIBPATH
 
17971
  fi
 
17972
  ;;
 
17973
 
 
17974
amigaos*)
 
17975
  library_names_spec='$libname.ixlibrary $libname.a'
 
17976
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17977
  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'
 
17978
  ;;
 
17979
 
 
17980
beos*)
 
17981
  library_names_spec='${libname}${shared_ext}'
 
17982
  dynamic_linker="$host_os ld.so"
 
17983
  shlibpath_var=LIBRARY_PATH
 
17984
  ;;
 
17985
 
 
17986
bsdi4*)
 
17987
  version_type=linux
 
17988
  need_version=no
 
17989
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17990
  soname_spec='${libname}${release}${shared_ext}$major'
 
17991
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17992
  shlibpath_var=LD_LIBRARY_PATH
 
17993
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17994
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17995
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17996
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17997
  # libtool to hard-code these into programs
 
17998
  ;;
 
17999
 
 
18000
cygwin* | mingw* | pw32*)
 
18001
  version_type=windows
 
18002
  shrext_cmds=".dll"
 
18003
  need_version=no
 
18004
  need_lib_prefix=no
 
18005
 
 
18006
  case $GCC,$host_os in
 
18007
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18008
    library_names_spec='$libname.dll.a'
 
18009
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18010
    postinstall_cmds='base_file=`basename \${file}`~
 
18011
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18012
      dldir=$destdir/`dirname \$dlpath`~
 
18013
      test -d \$dldir || mkdir -p \$dldir~
 
18014
      $install_prog $dir/$dlname \$dldir/$dlname'
 
18015
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18016
      dlpath=$dir/\$dldll~
 
18017
       $rm \$dlpath'
 
18018
    shlibpath_overrides_runpath=yes
 
18019
 
 
18020
    case $host_os in
 
18021
    cygwin*)
 
18022
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18023
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18024
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18025
      ;;
 
18026
    mingw*)
 
18027
      # MinGW DLLs use traditional 'lib' prefix
 
18028
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18029
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18030
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18031
        # It is most probably a Windows format PATH printed by
 
18032
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18033
        # path with ; separators, and with drive letters. We can handle the
 
18034
        # drive letters (cygwin fileutils understands them), so leave them,
 
18035
        # especially as we might pass files found there to a mingw objdump,
 
18036
        # which wouldn't understand a cygwinified path. Ahh.
 
18037
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18038
      else
 
18039
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18040
      fi
 
18041
      ;;
 
18042
    pw32*)
 
18043
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18044
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
18045
      ;;
 
18046
    esac
 
18047
    ;;
 
18048
 
 
18049
  *)
 
18050
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18051
    ;;
 
18052
  esac
 
18053
  dynamic_linker='Win32 ld.exe'
 
18054
  # FIXME: first we should search . and the directory the executable is in
 
18055
  shlibpath_var=PATH
 
18056
  ;;
 
18057
 
 
18058
darwin* | rhapsody*)
 
18059
  dynamic_linker="$host_os dyld"
 
18060
  version_type=darwin
 
18061
  need_lib_prefix=no
 
18062
  need_version=no
 
18063
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18064
  soname_spec='${libname}${release}${major}$shared_ext'
 
18065
  shlibpath_overrides_runpath=yes
 
18066
  shlibpath_var=DYLD_LIBRARY_PATH
 
18067
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
18068
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
18069
  if test "$GCC" = yes; then
 
18070
    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"`
 
18071
  else
 
18072
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
18073
  fi
 
18074
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18075
  ;;
 
18076
 
 
18077
dgux*)
 
18078
  version_type=linux
 
18079
  need_lib_prefix=no
 
18080
  need_version=no
 
18081
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18082
  soname_spec='${libname}${release}${shared_ext}$major'
 
18083
  shlibpath_var=LD_LIBRARY_PATH
 
18084
  ;;
 
18085
 
 
18086
freebsd1*)
 
18087
  dynamic_linker=no
 
18088
  ;;
 
18089
 
 
18090
kfreebsd*-gnu)
 
18091
  version_type=linux
 
18092
  need_lib_prefix=no
 
18093
  need_version=no
 
18094
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18095
  soname_spec='${libname}${release}${shared_ext}$major'
 
18096
  shlibpath_var=LD_LIBRARY_PATH
 
18097
  shlibpath_overrides_runpath=no
 
18098
  hardcode_into_libs=yes
 
18099
  dynamic_linker='GNU ld.so'
 
18100
  ;;
 
18101
 
 
18102
freebsd*)
 
18103
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
18104
  version_type=freebsd-$objformat
 
18105
  case $version_type in
 
18106
    freebsd-elf*)
 
18107
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18108
      need_version=no
 
18109
      need_lib_prefix=no
 
18110
      ;;
 
18111
    freebsd-*)
 
18112
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18113
      need_version=yes
 
18114
      ;;
 
18115
  esac
 
18116
  shlibpath_var=LD_LIBRARY_PATH
 
18117
  case $host_os in
 
18118
  freebsd2*)
 
18119
    shlibpath_overrides_runpath=yes
 
18120
    ;;
 
18121
  freebsd3.01* | freebsdelf3.01*)
 
18122
    shlibpath_overrides_runpath=yes
 
18123
    hardcode_into_libs=yes
 
18124
    ;;
 
18125
  *) # from 3.2 on
 
18126
    shlibpath_overrides_runpath=no
 
18127
    hardcode_into_libs=yes
 
18128
    ;;
 
18129
  esac
 
18130
  ;;
 
18131
 
 
18132
gnu*)
 
18133
  version_type=linux
 
18134
  need_lib_prefix=no
 
18135
  need_version=no
 
18136
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18137
  soname_spec='${libname}${release}${shared_ext}$major'
 
18138
  shlibpath_var=LD_LIBRARY_PATH
 
18139
  hardcode_into_libs=yes
 
18140
  ;;
 
18141
 
 
18142
hpux9* | hpux10* | hpux11*)
 
18143
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18144
  # link against other versions.
 
18145
  version_type=sunos
 
18146
  need_lib_prefix=no
 
18147
  need_version=no
 
18148
  case "$host_cpu" in
 
18149
  ia64*)
 
18150
    shrext_cmds='.so'
 
18151
    hardcode_into_libs=yes
 
18152
    dynamic_linker="$host_os dld.so"
 
18153
    shlibpath_var=LD_LIBRARY_PATH
 
18154
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18155
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18156
    soname_spec='${libname}${release}${shared_ext}$major'
 
18157
    if test "X$HPUX_IA64_MODE" = X32; then
 
18158
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18159
    else
 
18160
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18161
    fi
 
18162
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18163
    ;;
 
18164
   hppa*64*)
 
18165
     shrext_cmds='.sl'
 
18166
     hardcode_into_libs=yes
 
18167
     dynamic_linker="$host_os dld.sl"
 
18168
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18169
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18170
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18171
     soname_spec='${libname}${release}${shared_ext}$major'
 
18172
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18173
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18174
     ;;
 
18175
   *)
 
18176
    shrext_cmds='.sl'
 
18177
    dynamic_linker="$host_os dld.sl"
 
18178
    shlibpath_var=SHLIB_PATH
 
18179
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18180
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18181
    soname_spec='${libname}${release}${shared_ext}$major'
 
18182
    ;;
 
18183
  esac
 
18184
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18185
  postinstall_cmds='chmod 555 $lib'
 
18186
  ;;
 
18187
 
 
18188
irix5* | irix6* | nonstopux*)
 
18189
  case $host_os in
 
18190
    nonstopux*) version_type=nonstopux ;;
 
18191
    *)
 
18192
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18193
                version_type=linux
 
18194
        else
 
18195
                version_type=irix
 
18196
        fi ;;
 
18197
  esac
 
18198
  need_lib_prefix=no
 
18199
  need_version=no
 
18200
  soname_spec='${libname}${release}${shared_ext}$major'
 
18201
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18202
  case $host_os in
 
18203
  irix5* | nonstopux*)
 
18204
    libsuff= shlibsuff=
 
18205
    ;;
 
18206
  *)
 
18207
    case $LD in # libtool.m4 will add one of these switches to LD
 
18208
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18209
      libsuff= shlibsuff= libmagic=32-bit;;
 
18210
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18211
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18212
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18213
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18214
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18215
    esac
 
18216
    ;;
 
18217
  esac
 
18218
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18219
  shlibpath_overrides_runpath=no
 
18220
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18221
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18222
  hardcode_into_libs=yes
 
18223
  ;;
 
18224
 
 
18225
# No shared lib support for Linux oldld, aout, or coff.
 
18226
linux*oldld* | linux*aout* | linux*coff*)
 
18227
  dynamic_linker=no
 
18228
  ;;
 
18229
 
 
18230
# This must be Linux ELF.
 
18231
linux*)
 
18232
  version_type=linux
 
18233
  need_lib_prefix=no
 
18234
  need_version=no
 
18235
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18236
  soname_spec='${libname}${release}${shared_ext}$major'
 
18237
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18238
  shlibpath_var=LD_LIBRARY_PATH
 
18239
  shlibpath_overrides_runpath=no
 
18240
  # This implies no fast_install, which is unacceptable.
 
18241
  # Some rework will be needed to allow for fast_install
 
18242
  # before this can be enabled.
 
18243
  hardcode_into_libs=yes
 
18244
 
 
18245
  # Append ld.so.conf contents to the search path
 
18246
  if test -f /etc/ld.so.conf; then
 
18247
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
18248
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
18249
  fi
 
18250
 
 
18251
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18252
  # powerpc, because MkLinux only supported shared libraries with the
 
18253
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18254
  # most powerpc-linux boxes support dynamic linking these days and
 
18255
  # people can always --disable-shared, the test was removed, and we
 
18256
  # assume the GNU/Linux dynamic linker is in use.
 
18257
  dynamic_linker='GNU/Linux ld.so'
 
18258
  ;;
 
18259
 
 
18260
knetbsd*-gnu)
 
18261
  version_type=linux
 
18262
  need_lib_prefix=no
 
18263
  need_version=no
 
18264
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18265
  soname_spec='${libname}${release}${shared_ext}$major'
 
18266
  shlibpath_var=LD_LIBRARY_PATH
 
18267
  shlibpath_overrides_runpath=no
 
18268
  hardcode_into_libs=yes
 
18269
  dynamic_linker='GNU ld.so'
 
18270
  ;;
 
18271
 
 
18272
netbsd*)
 
18273
  version_type=sunos
 
18274
  need_lib_prefix=no
 
18275
  need_version=no
 
18276
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18277
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18278
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18279
    dynamic_linker='NetBSD (a.out) ld.so'
 
18280
  else
 
18281
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18282
    soname_spec='${libname}${release}${shared_ext}$major'
 
18283
    dynamic_linker='NetBSD ld.elf_so'
 
18284
  fi
 
18285
  shlibpath_var=LD_LIBRARY_PATH
 
18286
  shlibpath_overrides_runpath=yes
 
18287
  hardcode_into_libs=yes
 
18288
  ;;
 
18289
 
 
18290
newsos6)
 
18291
  version_type=linux
 
18292
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18293
  shlibpath_var=LD_LIBRARY_PATH
 
18294
  shlibpath_overrides_runpath=yes
 
18295
  ;;
 
18296
 
 
18297
nto-qnx*)
 
18298
  version_type=linux
 
18299
  need_lib_prefix=no
 
18300
  need_version=no
 
18301
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18302
  soname_spec='${libname}${release}${shared_ext}$major'
 
18303
  shlibpath_var=LD_LIBRARY_PATH
 
18304
  shlibpath_overrides_runpath=yes
 
18305
  ;;
 
18306
 
 
18307
openbsd*)
 
18308
  version_type=sunos
 
18309
  need_lib_prefix=no
 
18310
  need_version=yes
 
18311
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18312
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18313
  shlibpath_var=LD_LIBRARY_PATH
 
18314
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18315
    case $host_os in
 
18316
      openbsd2.[89] | openbsd2.[89].*)
 
18317
        shlibpath_overrides_runpath=no
 
18318
        ;;
 
18319
      *)
 
18320
        shlibpath_overrides_runpath=yes
 
18321
        ;;
 
18322
      esac
 
18323
  else
 
18324
    shlibpath_overrides_runpath=yes
 
18325
  fi
 
18326
  ;;
 
18327
 
 
18328
os2*)
 
18329
  libname_spec='$name'
 
18330
  shrext_cmds=".dll"
 
18331
  need_lib_prefix=no
 
18332
  library_names_spec='$libname${shared_ext} $libname.a'
 
18333
  dynamic_linker='OS/2 ld.exe'
 
18334
  shlibpath_var=LIBPATH
 
18335
  ;;
 
18336
 
 
18337
osf3* | osf4* | osf5*)
 
18338
  version_type=osf
 
18339
  need_lib_prefix=no
 
18340
  need_version=no
 
18341
  soname_spec='${libname}${release}${shared_ext}$major'
 
18342
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18343
  shlibpath_var=LD_LIBRARY_PATH
 
18344
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18345
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18346
  ;;
 
18347
 
 
18348
sco3.2v5*)
 
18349
  version_type=osf
 
18350
  soname_spec='${libname}${release}${shared_ext}$major'
 
18351
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18352
  shlibpath_var=LD_LIBRARY_PATH
 
18353
  ;;
 
18354
 
 
18355
solaris*)
 
18356
  version_type=linux
 
18357
  need_lib_prefix=no
 
18358
  need_version=no
 
18359
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18360
  soname_spec='${libname}${release}${shared_ext}$major'
 
18361
  shlibpath_var=LD_LIBRARY_PATH
 
18362
  shlibpath_overrides_runpath=yes
 
18363
  hardcode_into_libs=yes
 
18364
  # ldd complains unless libraries are executable
 
18365
  postinstall_cmds='chmod +x $lib'
 
18366
  ;;
 
18367
 
 
18368
sunos4*)
 
18369
  version_type=sunos
 
18370
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18371
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18372
  shlibpath_var=LD_LIBRARY_PATH
 
18373
  shlibpath_overrides_runpath=yes
 
18374
  if test "$with_gnu_ld" = yes; then
 
18375
    need_lib_prefix=no
 
18376
  fi
 
18377
  need_version=yes
 
18378
  ;;
 
18379
 
 
18380
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
18381
  version_type=linux
 
18382
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18383
  soname_spec='${libname}${release}${shared_ext}$major'
 
18384
  shlibpath_var=LD_LIBRARY_PATH
 
18385
  case $host_vendor in
 
18386
    sni)
 
18387
      shlibpath_overrides_runpath=no
 
18388
      need_lib_prefix=no
 
18389
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18390
      runpath_var=LD_RUN_PATH
 
18391
      ;;
 
18392
    siemens)
 
18393
      need_lib_prefix=no
 
18394
      ;;
 
18395
    motorola)
 
18396
      need_lib_prefix=no
 
18397
      need_version=no
 
18398
      shlibpath_overrides_runpath=no
 
18399
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18400
      ;;
 
18401
  esac
 
18402
  ;;
 
18403
 
 
18404
sysv4*MP*)
 
18405
  if test -d /usr/nec ;then
 
18406
    version_type=linux
 
18407
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18408
    soname_spec='$libname${shared_ext}.$major'
 
18409
    shlibpath_var=LD_LIBRARY_PATH
 
18410
  fi
 
18411
  ;;
 
18412
 
 
18413
uts4*)
 
18414
  version_type=linux
 
18415
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18416
  soname_spec='${libname}${release}${shared_ext}$major'
 
18417
  shlibpath_var=LD_LIBRARY_PATH
 
18418
  ;;
 
18419
 
 
18420
*)
 
18421
  dynamic_linker=no
 
18422
  ;;
 
18423
esac
 
18424
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18425
echo "${ECHO_T}$dynamic_linker" >&6
 
18426
test "$dynamic_linker" = no && can_build_shared=no
 
18427
 
 
18428
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18429
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
18430
hardcode_action_GCJ=
 
18431
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18432
   test -n "$runpath_var GCJ" || \
 
18433
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
18434
 
 
18435
  # We can hardcode non-existant directories.
 
18436
  if test "$hardcode_direct_GCJ" != no &&
 
18437
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18438
     # have to relink, otherwise we might link with an installed library
 
18439
     # when we should be linking with a yet-to-be-installed one
 
18440
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18441
     test "$hardcode_minus_L_GCJ" != no; then
 
18442
    # Linking always hardcodes the temporary library directory.
 
18443
    hardcode_action_GCJ=relink
 
18444
  else
 
18445
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18446
    hardcode_action_GCJ=immediate
 
18447
  fi
 
18448
else
 
18449
  # We cannot hardcode anything, or else we can only hardcode existing
 
18450
  # directories.
 
18451
  hardcode_action_GCJ=unsupported
 
18452
fi
 
18453
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18454
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
18455
 
 
18456
if test "$hardcode_action_GCJ" = relink; then
 
18457
  # Fast installation is not supported
 
18458
  enable_fast_install=no
 
18459
elif test "$shlibpath_overrides_runpath" = yes ||
 
18460
     test "$enable_shared" = no; then
 
18461
  # Fast installation is not necessary
 
18462
  enable_fast_install=needless
 
18463
fi
 
18464
 
 
18465
striplib=
 
18466
old_striplib=
 
18467
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
18468
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
18469
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
18470
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
18471
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
18472
  echo "$as_me:$LINENO: result: yes" >&5
 
18473
echo "${ECHO_T}yes" >&6
 
18474
else
 
18475
# FIXME - insert some real tests, host_os isn't really good enough
 
18476
  case $host_os in
 
18477
   darwin*)
 
18478
       if test -n "$STRIP" ; then
 
18479
         striplib="$STRIP -x"
 
18480
         echo "$as_me:$LINENO: result: yes" >&5
 
18481
echo "${ECHO_T}yes" >&6
 
18482
       else
 
18483
  echo "$as_me:$LINENO: result: no" >&5
 
18484
echo "${ECHO_T}no" >&6
 
18485
fi
 
18486
       ;;
 
18487
   *)
 
18488
  echo "$as_me:$LINENO: result: no" >&5
 
18489
echo "${ECHO_T}no" >&6
 
18490
    ;;
 
18491
  esac
 
18492
fi
 
18493
 
 
18494
if test "x$enable_dlopen" != xyes; then
 
18495
  enable_dlopen=unknown
 
18496
  enable_dlopen_self=unknown
 
18497
  enable_dlopen_self_static=unknown
 
18498
else
 
18499
  lt_cv_dlopen=no
 
18500
  lt_cv_dlopen_libs=
 
18501
 
 
18502
  case $host_os in
 
18503
  beos*)
 
18504
    lt_cv_dlopen="load_add_on"
 
18505
    lt_cv_dlopen_libs=
 
18506
    lt_cv_dlopen_self=yes
 
18507
    ;;
 
18508
 
 
18509
  mingw* | pw32*)
 
18510
    lt_cv_dlopen="LoadLibrary"
 
18511
    lt_cv_dlopen_libs=
 
18512
   ;;
 
18513
 
 
18514
  cygwin*)
 
18515
    lt_cv_dlopen="dlopen"
 
18516
    lt_cv_dlopen_libs=
 
18517
   ;;
 
18518
 
 
18519
  darwin*)
 
18520
  # if libdl is installed we need to link against it
 
18521
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18522
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18523
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18524
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18525
else
 
18526
  ac_check_lib_save_LIBS=$LIBS
 
18527
LIBS="-ldl  $LIBS"
 
18528
cat >conftest.$ac_ext <<_ACEOF
 
18529
/* confdefs.h.  */
 
18530
_ACEOF
 
18531
cat confdefs.h >>conftest.$ac_ext
 
18532
cat >>conftest.$ac_ext <<_ACEOF
 
18533
/* end confdefs.h.  */
 
18534
 
 
18535
/* Override any gcc2 internal prototype to avoid an error.  */
 
18536
#ifdef __cplusplus
 
18537
extern "C"
 
18538
#endif
 
18539
/* We use char because int might match the return type of a gcc2
 
18540
   builtin and then its argument prototype would still apply.  */
 
18541
char dlopen ();
 
18542
int
 
18543
main ()
 
18544
{
 
18545
dlopen ();
 
18546
  ;
 
18547
  return 0;
 
18548
}
 
18549
_ACEOF
 
18550
rm -f conftest.$ac_objext conftest$ac_exeext
 
18551
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18552
  (eval $ac_link) 2>conftest.er1
 
18553
  ac_status=$?
 
18554
  grep -v '^ *+' conftest.er1 >conftest.err
 
18555
  rm -f conftest.er1
 
18556
  cat conftest.err >&5
 
18557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18558
  (exit $ac_status); } &&
 
18559
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18560
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18561
  (eval $ac_try) 2>&5
 
18562
  ac_status=$?
 
18563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18564
  (exit $ac_status); }; } &&
 
18565
         { ac_try='test -s conftest$ac_exeext'
 
18566
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18567
  (eval $ac_try) 2>&5
 
18568
  ac_status=$?
 
18569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18570
  (exit $ac_status); }; }; then
 
18571
  ac_cv_lib_dl_dlopen=yes
 
18572
else
 
18573
  echo "$as_me: failed program was:" >&5
 
18574
sed 's/^/| /' conftest.$ac_ext >&5
 
18575
 
 
18576
ac_cv_lib_dl_dlopen=no
 
18577
fi
 
18578
rm -f conftest.err conftest.$ac_objext \
 
18579
      conftest$ac_exeext conftest.$ac_ext
 
18580
LIBS=$ac_check_lib_save_LIBS
 
18581
fi
 
18582
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18583
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18584
if test $ac_cv_lib_dl_dlopen = yes; then
 
18585
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
18586
else
 
18587
 
 
18588
    lt_cv_dlopen="dyld"
 
18589
    lt_cv_dlopen_libs=
 
18590
    lt_cv_dlopen_self=yes
 
18591
 
 
18592
fi
 
18593
 
 
18594
   ;;
 
18595
 
 
18596
  *)
 
18597
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
18598
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
18599
if test "${ac_cv_func_shl_load+set}" = set; then
 
18600
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18601
else
 
18602
  cat >conftest.$ac_ext <<_ACEOF
 
18603
/* confdefs.h.  */
 
18604
_ACEOF
 
18605
cat confdefs.h >>conftest.$ac_ext
 
18606
cat >>conftest.$ac_ext <<_ACEOF
 
18607
/* end confdefs.h.  */
 
18608
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
18609
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18610
#define shl_load innocuous_shl_load
 
18611
 
 
18612
/* System header to define __stub macros and hopefully few prototypes,
 
18613
    which can conflict with char shl_load (); below.
 
18614
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18615
    <limits.h> exists even on freestanding compilers.  */
 
18616
 
 
18617
#ifdef __STDC__
 
18618
# include <limits.h>
 
18619
#else
 
18620
# include <assert.h>
 
18621
#endif
 
18622
 
 
18623
#undef shl_load
 
18624
 
 
18625
/* Override any gcc2 internal prototype to avoid an error.  */
 
18626
#ifdef __cplusplus
 
18627
extern "C"
 
18628
{
 
18629
#endif
 
18630
/* We use char because int might match the return type of a gcc2
 
18631
   builtin and then its argument prototype would still apply.  */
 
18632
char shl_load ();
 
18633
/* The GNU C library defines this for functions which it implements
 
18634
    to always fail with ENOSYS.  Some functions are actually named
 
18635
    something starting with __ and the normal name is an alias.  */
 
18636
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
18637
choke me
 
18638
#else
 
18639
char (*f) () = shl_load;
 
18640
#endif
 
18641
#ifdef __cplusplus
 
18642
}
 
18643
#endif
 
18644
 
 
18645
int
 
18646
main ()
 
18647
{
 
18648
return f != shl_load;
 
18649
  ;
 
18650
  return 0;
 
18651
}
 
18652
_ACEOF
 
18653
rm -f conftest.$ac_objext conftest$ac_exeext
 
18654
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18655
  (eval $ac_link) 2>conftest.er1
 
18656
  ac_status=$?
 
18657
  grep -v '^ *+' conftest.er1 >conftest.err
 
18658
  rm -f conftest.er1
 
18659
  cat conftest.err >&5
 
18660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18661
  (exit $ac_status); } &&
 
18662
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18663
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18664
  (eval $ac_try) 2>&5
 
18665
  ac_status=$?
 
18666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18667
  (exit $ac_status); }; } &&
 
18668
         { ac_try='test -s conftest$ac_exeext'
 
18669
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18670
  (eval $ac_try) 2>&5
 
18671
  ac_status=$?
 
18672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18673
  (exit $ac_status); }; }; then
 
18674
  ac_cv_func_shl_load=yes
 
18675
else
 
18676
  echo "$as_me: failed program was:" >&5
 
18677
sed 's/^/| /' conftest.$ac_ext >&5
 
18678
 
 
18679
ac_cv_func_shl_load=no
 
18680
fi
 
18681
rm -f conftest.err conftest.$ac_objext \
 
18682
      conftest$ac_exeext conftest.$ac_ext
 
18683
fi
 
18684
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
18685
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
18686
if test $ac_cv_func_shl_load = yes; then
 
18687
  lt_cv_dlopen="shl_load"
 
18688
else
 
18689
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
18690
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
18691
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
18692
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18693
else
 
18694
  ac_check_lib_save_LIBS=$LIBS
 
18695
LIBS="-ldld  $LIBS"
 
18696
cat >conftest.$ac_ext <<_ACEOF
 
18697
/* confdefs.h.  */
 
18698
_ACEOF
 
18699
cat confdefs.h >>conftest.$ac_ext
 
18700
cat >>conftest.$ac_ext <<_ACEOF
 
18701
/* end confdefs.h.  */
 
18702
 
 
18703
/* Override any gcc2 internal prototype to avoid an error.  */
 
18704
#ifdef __cplusplus
 
18705
extern "C"
 
18706
#endif
 
18707
/* We use char because int might match the return type of a gcc2
 
18708
   builtin and then its argument prototype would still apply.  */
 
18709
char shl_load ();
 
18710
int
 
18711
main ()
 
18712
{
 
18713
shl_load ();
 
18714
  ;
 
18715
  return 0;
 
18716
}
 
18717
_ACEOF
 
18718
rm -f conftest.$ac_objext conftest$ac_exeext
 
18719
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18720
  (eval $ac_link) 2>conftest.er1
 
18721
  ac_status=$?
 
18722
  grep -v '^ *+' conftest.er1 >conftest.err
 
18723
  rm -f conftest.er1
 
18724
  cat conftest.err >&5
 
18725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18726
  (exit $ac_status); } &&
 
18727
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18728
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18729
  (eval $ac_try) 2>&5
 
18730
  ac_status=$?
 
18731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18732
  (exit $ac_status); }; } &&
 
18733
         { ac_try='test -s conftest$ac_exeext'
 
18734
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18735
  (eval $ac_try) 2>&5
 
18736
  ac_status=$?
 
18737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18738
  (exit $ac_status); }; }; then
 
18739
  ac_cv_lib_dld_shl_load=yes
 
18740
else
 
18741
  echo "$as_me: failed program was:" >&5
 
18742
sed 's/^/| /' conftest.$ac_ext >&5
 
18743
 
 
18744
ac_cv_lib_dld_shl_load=no
 
18745
fi
 
18746
rm -f conftest.err conftest.$ac_objext \
 
18747
      conftest$ac_exeext conftest.$ac_ext
 
18748
LIBS=$ac_check_lib_save_LIBS
 
18749
fi
 
18750
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
18751
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
18752
if test $ac_cv_lib_dld_shl_load = yes; then
 
18753
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
18754
else
 
18755
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
18756
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
18757
if test "${ac_cv_func_dlopen+set}" = set; then
 
18758
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18759
else
 
18760
  cat >conftest.$ac_ext <<_ACEOF
 
18761
/* confdefs.h.  */
 
18762
_ACEOF
 
18763
cat confdefs.h >>conftest.$ac_ext
 
18764
cat >>conftest.$ac_ext <<_ACEOF
 
18765
/* end confdefs.h.  */
 
18766
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
18767
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18768
#define dlopen innocuous_dlopen
 
18769
 
 
18770
/* System header to define __stub macros and hopefully few prototypes,
 
18771
    which can conflict with char dlopen (); below.
 
18772
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18773
    <limits.h> exists even on freestanding compilers.  */
 
18774
 
 
18775
#ifdef __STDC__
 
18776
# include <limits.h>
 
18777
#else
 
18778
# include <assert.h>
 
18779
#endif
 
18780
 
 
18781
#undef dlopen
 
18782
 
 
18783
/* Override any gcc2 internal prototype to avoid an error.  */
 
18784
#ifdef __cplusplus
 
18785
extern "C"
 
18786
{
 
18787
#endif
 
18788
/* We use char because int might match the return type of a gcc2
 
18789
   builtin and then its argument prototype would still apply.  */
 
18790
char dlopen ();
 
18791
/* The GNU C library defines this for functions which it implements
 
18792
    to always fail with ENOSYS.  Some functions are actually named
 
18793
    something starting with __ and the normal name is an alias.  */
 
18794
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
18795
choke me
 
18796
#else
 
18797
char (*f) () = dlopen;
 
18798
#endif
 
18799
#ifdef __cplusplus
 
18800
}
 
18801
#endif
 
18802
 
 
18803
int
 
18804
main ()
 
18805
{
 
18806
return f != dlopen;
 
18807
  ;
 
18808
  return 0;
 
18809
}
 
18810
_ACEOF
 
18811
rm -f conftest.$ac_objext conftest$ac_exeext
 
18812
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18813
  (eval $ac_link) 2>conftest.er1
 
18814
  ac_status=$?
 
18815
  grep -v '^ *+' conftest.er1 >conftest.err
 
18816
  rm -f conftest.er1
 
18817
  cat conftest.err >&5
 
18818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18819
  (exit $ac_status); } &&
 
18820
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18821
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18822
  (eval $ac_try) 2>&5
 
18823
  ac_status=$?
 
18824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18825
  (exit $ac_status); }; } &&
 
18826
         { ac_try='test -s conftest$ac_exeext'
 
18827
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18828
  (eval $ac_try) 2>&5
 
18829
  ac_status=$?
 
18830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18831
  (exit $ac_status); }; }; then
 
18832
  ac_cv_func_dlopen=yes
 
18833
else
 
18834
  echo "$as_me: failed program was:" >&5
 
18835
sed 's/^/| /' conftest.$ac_ext >&5
 
18836
 
 
18837
ac_cv_func_dlopen=no
 
18838
fi
 
18839
rm -f conftest.err conftest.$ac_objext \
 
18840
      conftest$ac_exeext conftest.$ac_ext
 
18841
fi
 
18842
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
18843
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
18844
if test $ac_cv_func_dlopen = yes; then
 
18845
  lt_cv_dlopen="dlopen"
 
18846
else
 
18847
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18848
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18849
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18850
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18851
else
 
18852
  ac_check_lib_save_LIBS=$LIBS
 
18853
LIBS="-ldl  $LIBS"
 
18854
cat >conftest.$ac_ext <<_ACEOF
 
18855
/* confdefs.h.  */
 
18856
_ACEOF
 
18857
cat confdefs.h >>conftest.$ac_ext
 
18858
cat >>conftest.$ac_ext <<_ACEOF
 
18859
/* end confdefs.h.  */
 
18860
 
 
18861
/* Override any gcc2 internal prototype to avoid an error.  */
 
18862
#ifdef __cplusplus
 
18863
extern "C"
 
18864
#endif
 
18865
/* We use char because int might match the return type of a gcc2
 
18866
   builtin and then its argument prototype would still apply.  */
 
18867
char dlopen ();
 
18868
int
 
18869
main ()
 
18870
{
 
18871
dlopen ();
 
18872
  ;
 
18873
  return 0;
 
18874
}
 
18875
_ACEOF
 
18876
rm -f conftest.$ac_objext conftest$ac_exeext
 
18877
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18878
  (eval $ac_link) 2>conftest.er1
 
18879
  ac_status=$?
 
18880
  grep -v '^ *+' conftest.er1 >conftest.err
 
18881
  rm -f conftest.er1
 
18882
  cat conftest.err >&5
 
18883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18884
  (exit $ac_status); } &&
 
18885
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18886
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18887
  (eval $ac_try) 2>&5
 
18888
  ac_status=$?
 
18889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18890
  (exit $ac_status); }; } &&
 
18891
         { ac_try='test -s conftest$ac_exeext'
 
18892
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18893
  (eval $ac_try) 2>&5
 
18894
  ac_status=$?
 
18895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18896
  (exit $ac_status); }; }; then
 
18897
  ac_cv_lib_dl_dlopen=yes
 
18898
else
 
18899
  echo "$as_me: failed program was:" >&5
 
18900
sed 's/^/| /' conftest.$ac_ext >&5
 
18901
 
 
18902
ac_cv_lib_dl_dlopen=no
 
18903
fi
 
18904
rm -f conftest.err conftest.$ac_objext \
 
18905
      conftest$ac_exeext conftest.$ac_ext
 
18906
LIBS=$ac_check_lib_save_LIBS
 
18907
fi
 
18908
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18909
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18910
if test $ac_cv_lib_dl_dlopen = yes; then
 
18911
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
18912
else
 
18913
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
18914
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
18915
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
18916
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18917
else
 
18918
  ac_check_lib_save_LIBS=$LIBS
 
18919
LIBS="-lsvld  $LIBS"
 
18920
cat >conftest.$ac_ext <<_ACEOF
 
18921
/* confdefs.h.  */
 
18922
_ACEOF
 
18923
cat confdefs.h >>conftest.$ac_ext
 
18924
cat >>conftest.$ac_ext <<_ACEOF
 
18925
/* end confdefs.h.  */
 
18926
 
 
18927
/* Override any gcc2 internal prototype to avoid an error.  */
 
18928
#ifdef __cplusplus
 
18929
extern "C"
 
18930
#endif
 
18931
/* We use char because int might match the return type of a gcc2
 
18932
   builtin and then its argument prototype would still apply.  */
 
18933
char dlopen ();
 
18934
int
 
18935
main ()
 
18936
{
 
18937
dlopen ();
 
18938
  ;
 
18939
  return 0;
 
18940
}
 
18941
_ACEOF
 
18942
rm -f conftest.$ac_objext conftest$ac_exeext
 
18943
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18944
  (eval $ac_link) 2>conftest.er1
 
18945
  ac_status=$?
 
18946
  grep -v '^ *+' conftest.er1 >conftest.err
 
18947
  rm -f conftest.er1
 
18948
  cat conftest.err >&5
 
18949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18950
  (exit $ac_status); } &&
 
18951
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18952
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18953
  (eval $ac_try) 2>&5
 
18954
  ac_status=$?
 
18955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18956
  (exit $ac_status); }; } &&
 
18957
         { ac_try='test -s conftest$ac_exeext'
 
18958
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18959
  (eval $ac_try) 2>&5
 
18960
  ac_status=$?
 
18961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18962
  (exit $ac_status); }; }; then
 
18963
  ac_cv_lib_svld_dlopen=yes
 
18964
else
 
18965
  echo "$as_me: failed program was:" >&5
 
18966
sed 's/^/| /' conftest.$ac_ext >&5
 
18967
 
 
18968
ac_cv_lib_svld_dlopen=no
 
18969
fi
 
18970
rm -f conftest.err conftest.$ac_objext \
 
18971
      conftest$ac_exeext conftest.$ac_ext
 
18972
LIBS=$ac_check_lib_save_LIBS
 
18973
fi
 
18974
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
18975
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
18976
if test $ac_cv_lib_svld_dlopen = yes; then
 
18977
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
18978
else
 
18979
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
18980
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
18981
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
18982
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18983
else
 
18984
  ac_check_lib_save_LIBS=$LIBS
 
18985
LIBS="-ldld  $LIBS"
 
18986
cat >conftest.$ac_ext <<_ACEOF
 
18987
/* confdefs.h.  */
 
18988
_ACEOF
 
18989
cat confdefs.h >>conftest.$ac_ext
 
18990
cat >>conftest.$ac_ext <<_ACEOF
 
18991
/* end confdefs.h.  */
 
18992
 
 
18993
/* Override any gcc2 internal prototype to avoid an error.  */
 
18994
#ifdef __cplusplus
 
18995
extern "C"
 
18996
#endif
 
18997
/* We use char because int might match the return type of a gcc2
 
18998
   builtin and then its argument prototype would still apply.  */
 
18999
char dld_link ();
 
19000
int
 
19001
main ()
 
19002
{
 
19003
dld_link ();
 
19004
  ;
 
19005
  return 0;
 
19006
}
 
19007
_ACEOF
 
19008
rm -f conftest.$ac_objext conftest$ac_exeext
 
19009
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19010
  (eval $ac_link) 2>conftest.er1
 
19011
  ac_status=$?
 
19012
  grep -v '^ *+' conftest.er1 >conftest.err
 
19013
  rm -f conftest.er1
 
19014
  cat conftest.err >&5
 
19015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19016
  (exit $ac_status); } &&
 
19017
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19018
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19019
  (eval $ac_try) 2>&5
 
19020
  ac_status=$?
 
19021
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19022
  (exit $ac_status); }; } &&
 
19023
         { ac_try='test -s conftest$ac_exeext'
 
19024
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19025
  (eval $ac_try) 2>&5
 
19026
  ac_status=$?
 
19027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19028
  (exit $ac_status); }; }; then
 
19029
  ac_cv_lib_dld_dld_link=yes
 
19030
else
 
19031
  echo "$as_me: failed program was:" >&5
 
19032
sed 's/^/| /' conftest.$ac_ext >&5
 
19033
 
 
19034
ac_cv_lib_dld_dld_link=no
 
19035
fi
 
19036
rm -f conftest.err conftest.$ac_objext \
 
19037
      conftest$ac_exeext conftest.$ac_ext
 
19038
LIBS=$ac_check_lib_save_LIBS
 
19039
fi
 
19040
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
19041
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
19042
if test $ac_cv_lib_dld_dld_link = yes; then
 
19043
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
19044
fi
 
19045
 
 
19046
 
 
19047
fi
 
19048
 
 
19049
 
 
19050
fi
 
19051
 
 
19052
 
 
19053
fi
 
19054
 
 
19055
 
 
19056
fi
 
19057
 
 
19058
 
 
19059
fi
 
19060
 
 
19061
    ;;
 
19062
  esac
 
19063
 
 
19064
  if test "x$lt_cv_dlopen" != xno; then
 
19065
    enable_dlopen=yes
 
19066
  else
 
19067
    enable_dlopen=no
 
19068
  fi
 
19069
 
 
19070
  case $lt_cv_dlopen in
 
19071
  dlopen)
 
19072
    save_CPPFLAGS="$CPPFLAGS"
 
19073
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
19074
 
 
19075
    save_LDFLAGS="$LDFLAGS"
 
19076
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
19077
 
 
19078
    save_LIBS="$LIBS"
 
19079
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
19080
 
 
19081
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
19082
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
19083
if test "${lt_cv_dlopen_self+set}" = set; then
 
19084
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19085
else
 
19086
          if test "$cross_compiling" = yes; then :
 
19087
  lt_cv_dlopen_self=cross
 
19088
else
 
19089
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
19090
  lt_status=$lt_dlunknown
 
19091
  cat > conftest.$ac_ext <<EOF
 
19092
#line 19092 "configure"
 
19093
#include "confdefs.h"
 
19094
 
 
19095
#if HAVE_DLFCN_H
 
19096
#include <dlfcn.h>
 
19097
#endif
 
19098
 
 
19099
#include <stdio.h>
 
19100
 
 
19101
#ifdef RTLD_GLOBAL
 
19102
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
19103
#else
 
19104
#  ifdef DL_GLOBAL
 
19105
#    define LT_DLGLOBAL         DL_GLOBAL
 
19106
#  else
 
19107
#    define LT_DLGLOBAL         0
 
19108
#  endif
 
19109
#endif
 
19110
 
 
19111
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
19112
   find out it does not work in some platform. */
 
19113
#ifndef LT_DLLAZY_OR_NOW
 
19114
#  ifdef RTLD_LAZY
 
19115
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
19116
#  else
 
19117
#    ifdef DL_LAZY
 
19118
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
19119
#    else
 
19120
#      ifdef RTLD_NOW
 
19121
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
19122
#      else
 
19123
#        ifdef DL_NOW
 
19124
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
19125
#        else
 
19126
#          define LT_DLLAZY_OR_NOW      0
 
19127
#        endif
 
19128
#      endif
 
19129
#    endif
 
19130
#  endif
 
19131
#endif
 
19132
 
 
19133
#ifdef __cplusplus
 
19134
extern "C" void exit (int);
 
19135
#endif
 
19136
 
 
19137
void fnord() { int i=42;}
 
19138
int main ()
 
19139
{
 
19140
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
19141
  int status = $lt_dlunknown;
 
19142
 
 
19143
  if (self)
 
19144
    {
 
19145
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
19146
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
19147
      /* dlclose (self); */
 
19148
    }
 
19149
 
 
19150
    exit (status);
 
19151
}
 
19152
EOF
 
19153
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19154
  (eval $ac_link) 2>&5
 
19155
  ac_status=$?
 
19156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19157
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
19158
    (./conftest; exit; ) 2>/dev/null
 
19159
    lt_status=$?
 
19160
    case x$lt_status in
 
19161
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
19162
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
19163
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
19164
    esac
 
19165
  else :
 
19166
    # compilation failed
 
19167
    lt_cv_dlopen_self=no
 
19168
  fi
 
19169
fi
 
19170
rm -fr conftest*
 
19171
 
 
19172
 
 
19173
fi
 
19174
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
19175
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
19176
 
 
19177
    if test "x$lt_cv_dlopen_self" = xyes; then
 
19178
      LDFLAGS="$LDFLAGS $link_static_flag"
 
19179
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
19180
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
19181
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
19182
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19183
else
 
19184
          if test "$cross_compiling" = yes; then :
 
19185
  lt_cv_dlopen_self_static=cross
 
19186
else
 
19187
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
19188
  lt_status=$lt_dlunknown
 
19189
  cat > conftest.$ac_ext <<EOF
 
19190
#line 19190 "configure"
 
19191
#include "confdefs.h"
 
19192
 
 
19193
#if HAVE_DLFCN_H
 
19194
#include <dlfcn.h>
 
19195
#endif
 
19196
 
 
19197
#include <stdio.h>
 
19198
 
 
19199
#ifdef RTLD_GLOBAL
 
19200
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
19201
#else
 
19202
#  ifdef DL_GLOBAL
 
19203
#    define LT_DLGLOBAL         DL_GLOBAL
 
19204
#  else
 
19205
#    define LT_DLGLOBAL         0
 
19206
#  endif
 
19207
#endif
 
19208
 
 
19209
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
19210
   find out it does not work in some platform. */
 
19211
#ifndef LT_DLLAZY_OR_NOW
 
19212
#  ifdef RTLD_LAZY
 
19213
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
19214
#  else
 
19215
#    ifdef DL_LAZY
 
19216
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
19217
#    else
 
19218
#      ifdef RTLD_NOW
 
19219
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
19220
#      else
 
19221
#        ifdef DL_NOW
 
19222
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
19223
#        else
 
19224
#          define LT_DLLAZY_OR_NOW      0
 
19225
#        endif
 
19226
#      endif
 
19227
#    endif
 
19228
#  endif
 
19229
#endif
 
19230
 
 
19231
#ifdef __cplusplus
 
19232
extern "C" void exit (int);
 
19233
#endif
 
19234
 
 
19235
void fnord() { int i=42;}
 
19236
int main ()
 
19237
{
 
19238
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
19239
  int status = $lt_dlunknown;
 
19240
 
 
19241
  if (self)
 
19242
    {
 
19243
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
19244
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
19245
      /* dlclose (self); */
 
19246
    }
 
19247
 
 
19248
    exit (status);
 
19249
}
 
19250
EOF
 
19251
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19252
  (eval $ac_link) 2>&5
 
19253
  ac_status=$?
 
19254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19255
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
19256
    (./conftest; exit; ) 2>/dev/null
 
19257
    lt_status=$?
 
19258
    case x$lt_status in
 
19259
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
19260
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
19261
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
19262
    esac
 
19263
  else :
 
19264
    # compilation failed
 
19265
    lt_cv_dlopen_self_static=no
 
19266
  fi
 
19267
fi
 
19268
rm -fr conftest*
 
19269
 
 
19270
 
 
19271
fi
 
19272
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
19273
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
19274
    fi
 
19275
 
 
19276
    CPPFLAGS="$save_CPPFLAGS"
 
19277
    LDFLAGS="$save_LDFLAGS"
 
19278
    LIBS="$save_LIBS"
 
19279
    ;;
 
19280
  esac
 
19281
 
 
19282
  case $lt_cv_dlopen_self in
 
19283
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
19284
  *) enable_dlopen_self=unknown ;;
 
19285
  esac
 
19286
 
 
19287
  case $lt_cv_dlopen_self_static in
 
19288
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
19289
  *) enable_dlopen_self_static=unknown ;;
 
19290
  esac
 
19291
fi
 
19292
 
 
19293
 
 
19294
# The else clause should only fire when bootstrapping the
 
19295
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19296
# with your package, and you will get complaints that there are
 
19297
# no rules to generate ltmain.sh.
 
19298
if test -f "$ltmain"; then
 
19299
  # See if we are running on zsh, and set the options which allow our commands through
 
19300
  # without removal of \ escapes.
 
19301
  if test -n "${ZSH_VERSION+set}" ; then
 
19302
    setopt NO_GLOB_SUBST
 
19303
  fi
 
19304
  # Now quote all the things that may contain metacharacters while being
 
19305
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19306
  # variables and quote the copies for generation of the libtool script.
 
19307
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19308
    SED SHELL STRIP \
 
19309
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19310
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19311
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19312
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19313
    lt_cv_sys_global_symbol_to_c_name_address \
 
19314
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19315
    old_postinstall_cmds old_postuninstall_cmds \
 
19316
    compiler_GCJ \
 
19317
    CC_GCJ \
 
19318
    LD_GCJ \
 
19319
    lt_prog_compiler_wl_GCJ \
 
19320
    lt_prog_compiler_pic_GCJ \
 
19321
    lt_prog_compiler_static_GCJ \
 
19322
    lt_prog_compiler_no_builtin_flag_GCJ \
 
19323
    export_dynamic_flag_spec_GCJ \
 
19324
    thread_safe_flag_spec_GCJ \
 
19325
    whole_archive_flag_spec_GCJ \
 
19326
    enable_shared_with_static_runtimes_GCJ \
 
19327
    old_archive_cmds_GCJ \
 
19328
    old_archive_from_new_cmds_GCJ \
 
19329
    predep_objects_GCJ \
 
19330
    postdep_objects_GCJ \
 
19331
    predeps_GCJ \
 
19332
    postdeps_GCJ \
 
19333
    compiler_lib_search_path_GCJ \
 
19334
    archive_cmds_GCJ \
 
19335
    archive_expsym_cmds_GCJ \
 
19336
    postinstall_cmds_GCJ \
 
19337
    postuninstall_cmds_GCJ \
 
19338
    old_archive_from_expsyms_cmds_GCJ \
 
19339
    allow_undefined_flag_GCJ \
 
19340
    no_undefined_flag_GCJ \
 
19341
    export_symbols_cmds_GCJ \
 
19342
    hardcode_libdir_flag_spec_GCJ \
 
19343
    hardcode_libdir_flag_spec_ld_GCJ \
 
19344
    hardcode_libdir_separator_GCJ \
 
19345
    hardcode_automatic_GCJ \
 
19346
    module_cmds_GCJ \
 
19347
    module_expsym_cmds_GCJ \
 
19348
    lt_cv_prog_compiler_c_o_GCJ \
 
19349
    exclude_expsyms_GCJ \
 
19350
    include_expsyms_GCJ; do
 
19351
 
 
19352
    case $var in
 
19353
    old_archive_cmds_GCJ | \
 
19354
    old_archive_from_new_cmds_GCJ | \
 
19355
    archive_cmds_GCJ | \
 
19356
    archive_expsym_cmds_GCJ | \
 
19357
    module_cmds_GCJ | \
 
19358
    module_expsym_cmds_GCJ | \
 
19359
    old_archive_from_expsyms_cmds_GCJ | \
 
19360
    export_symbols_cmds_GCJ | \
 
19361
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19362
    postinstall_cmds | postuninstall_cmds | \
 
19363
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19364
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19365
      # Double-quote double-evaled strings.
 
19366
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19367
      ;;
 
19368
    *)
 
19369
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19370
      ;;
 
19371
    esac
 
19372
  done
 
19373
 
 
19374
  case $lt_echo in
 
19375
  *'\$0 --fallback-echo"')
 
19376
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19377
    ;;
 
19378
  esac
 
19379
 
 
19380
cfgfile="$ofile"
 
19381
 
 
19382
  cat <<__EOF__ >> "$cfgfile"
 
19383
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19384
 
 
19385
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19386
 
 
19387
# Shell to use when invoking shell scripts.
 
19388
SHELL=$lt_SHELL
 
19389
 
 
19390
# Whether or not to build shared libraries.
 
19391
build_libtool_libs=$enable_shared
 
19392
 
 
19393
# Whether or not to build static libraries.
 
19394
build_old_libs=$enable_static
 
19395
 
 
19396
# Whether or not to add -lc for building shared libraries.
 
19397
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
19398
 
 
19399
# Whether or not to disallow shared libs when runtime libs are static
 
19400
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
19401
 
 
19402
# Whether or not to optimize for fast installation.
 
19403
fast_install=$enable_fast_install
 
19404
 
 
19405
# The host system.
 
19406
host_alias=$host_alias
 
19407
host=$host
 
19408
 
 
19409
# An echo program that does not interpret backslashes.
 
19410
echo=$lt_echo
 
19411
 
 
19412
# The archiver.
 
19413
AR=$lt_AR
 
19414
AR_FLAGS=$lt_AR_FLAGS
 
19415
 
 
19416
# A C compiler.
 
19417
LTCC=$lt_LTCC
 
19418
 
 
19419
# A language-specific compiler.
 
19420
CC=$lt_compiler_GCJ
 
19421
 
 
19422
# Is the compiler the GNU C compiler?
 
19423
with_gcc=$GCC_GCJ
 
19424
 
 
19425
# An ERE matcher.
 
19426
EGREP=$lt_EGREP
 
19427
 
 
19428
# The linker used to build libraries.
 
19429
LD=$lt_LD_GCJ
 
19430
 
 
19431
# Whether we need hard or soft links.
 
19432
LN_S=$lt_LN_S
 
19433
 
 
19434
# A BSD-compatible nm program.
 
19435
NM=$lt_NM
 
19436
 
 
19437
# A symbol stripping program
 
19438
STRIP=$lt_STRIP
 
19439
 
 
19440
# Used to examine libraries when file_magic_cmd begins "file"
 
19441
MAGIC_CMD=$MAGIC_CMD
 
19442
 
 
19443
# Used on cygwin: DLL creation program.
 
19444
DLLTOOL="$DLLTOOL"
 
19445
 
 
19446
# Used on cygwin: object dumper.
 
19447
OBJDUMP="$OBJDUMP"
 
19448
 
 
19449
# Used on cygwin: assembler.
 
19450
AS="$AS"
 
19451
 
 
19452
# The name of the directory that contains temporary libtool files.
 
19453
objdir=$objdir
 
19454
 
 
19455
# How to create reloadable object files.
 
19456
reload_flag=$lt_reload_flag
 
19457
reload_cmds=$lt_reload_cmds
 
19458
 
 
19459
# How to pass a linker flag through the compiler.
 
19460
wl=$lt_lt_prog_compiler_wl_GCJ
 
19461
 
 
19462
# Object file suffix (normally "o").
 
19463
objext="$ac_objext"
 
19464
 
 
19465
# Old archive suffix (normally "a").
 
19466
libext="$libext"
 
19467
 
 
19468
# Shared library suffix (normally ".so").
 
19469
shrext_cmds='$shrext_cmds'
 
19470
 
 
19471
# Executable file suffix (normally "").
 
19472
exeext="$exeext"
 
19473
 
 
19474
# Additional compiler flags for building library objects.
 
19475
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
19476
pic_mode=$pic_mode
 
19477
 
 
19478
# What is the maximum length of a command?
 
19479
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19480
 
 
19481
# Does compiler simultaneously support -c and -o options?
 
19482
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19483
 
 
19484
# Must we lock files when doing compilation ?
 
19485
need_locks=$lt_need_locks
 
19486
 
 
19487
# Do we need the lib prefix for modules?
 
19488
need_lib_prefix=$need_lib_prefix
 
19489
 
 
19490
# Do we need a version for libraries?
 
19491
need_version=$need_version
 
19492
 
 
19493
# Whether dlopen is supported.
 
19494
dlopen_support=$enable_dlopen
 
19495
 
 
19496
# Whether dlopen of programs is supported.
 
19497
dlopen_self=$enable_dlopen_self
 
19498
 
 
19499
# Whether dlopen of statically linked programs is supported.
 
19500
dlopen_self_static=$enable_dlopen_self_static
 
19501
 
 
19502
# Compiler flag to prevent dynamic linking.
 
19503
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19504
 
 
19505
# Compiler flag to turn off builtin functions.
 
19506
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19507
 
 
19508
# Compiler flag to allow reflexive dlopens.
 
19509
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19510
 
 
19511
# Compiler flag to generate shared objects directly from archives.
 
19512
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19513
 
 
19514
# Compiler flag to generate thread-safe objects.
 
19515
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19516
 
 
19517
# Library versioning type.
 
19518
version_type=$version_type
 
19519
 
 
19520
# Format of library name prefix.
 
19521
libname_spec=$lt_libname_spec
 
19522
 
 
19523
# List of archive names.  First name is the real one, the rest are links.
 
19524
# The last name is the one that the linker finds with -lNAME.
 
19525
library_names_spec=$lt_library_names_spec
 
19526
 
 
19527
# The coded name of the library, if different from the real name.
 
19528
soname_spec=$lt_soname_spec
 
19529
 
 
19530
# Commands used to build and install an old-style archive.
 
19531
RANLIB=$lt_RANLIB
 
19532
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19533
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19534
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19535
 
 
19536
# Create an old-style archive from a shared archive.
 
19537
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19538
 
 
19539
# Create a temporary old-style archive to link instead of a shared archive.
 
19540
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19541
 
 
19542
# Commands used to build and install a shared archive.
 
19543
archive_cmds=$lt_archive_cmds_GCJ
 
19544
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19545
postinstall_cmds=$lt_postinstall_cmds
 
19546
postuninstall_cmds=$lt_postuninstall_cmds
 
19547
 
 
19548
# Commands used to build a loadable module (assumed same as above if empty)
 
19549
module_cmds=$lt_module_cmds_GCJ
 
19550
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19551
 
 
19552
# Commands to strip libraries.
 
19553
old_striplib=$lt_old_striplib
 
19554
striplib=$lt_striplib
 
19555
 
 
19556
# Dependencies to place before the objects being linked to create a
 
19557
# shared library.
 
19558
predep_objects=$lt_predep_objects_GCJ
 
19559
 
 
19560
# Dependencies to place after the objects being linked to create a
 
19561
# shared library.
 
19562
postdep_objects=$lt_postdep_objects_GCJ
 
19563
 
 
19564
# Dependencies to place before the objects being linked to create a
 
19565
# shared library.
 
19566
predeps=$lt_predeps_GCJ
 
19567
 
 
19568
# Dependencies to place after the objects being linked to create a
 
19569
# shared library.
 
19570
postdeps=$lt_postdeps_GCJ
 
19571
 
 
19572
# The library search path used internally by the compiler when linking
 
19573
# a shared library.
 
19574
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19575
 
 
19576
# Method to check whether dependent libraries are shared objects.
 
19577
deplibs_check_method=$lt_deplibs_check_method
 
19578
 
 
19579
# Command to use when deplibs_check_method == file_magic.
 
19580
file_magic_cmd=$lt_file_magic_cmd
 
19581
 
 
19582
# Flag that allows shared libraries with undefined symbols to be built.
 
19583
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19584
 
 
19585
# Flag that forces no undefined symbols.
 
19586
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19587
 
 
19588
# Commands used to finish a libtool library installation in a directory.
 
19589
finish_cmds=$lt_finish_cmds
 
19590
 
 
19591
# Same as above, but a single script fragment to be evaled but not shown.
 
19592
finish_eval=$lt_finish_eval
 
19593
 
 
19594
# Take the output of nm and produce a listing of raw symbols and C names.
 
19595
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19596
 
 
19597
# Transform the output of nm in a proper C declaration
 
19598
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19599
 
 
19600
# Transform the output of nm in a C name address pair
 
19601
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19602
 
 
19603
# This is the shared library runtime path variable.
 
19604
runpath_var=$runpath_var
 
19605
 
 
19606
# This is the shared library path variable.
 
19607
shlibpath_var=$shlibpath_var
 
19608
 
 
19609
# Is shlibpath searched before the hard-coded library search path?
 
19610
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19611
 
 
19612
# How to hardcode a shared library path into an executable.
 
19613
hardcode_action=$hardcode_action_GCJ
 
19614
 
 
19615
# Whether we should hardcode library paths into libraries.
 
19616
hardcode_into_libs=$hardcode_into_libs
 
19617
 
 
19618
# Flag to hardcode \$libdir into a binary during linking.
 
19619
# This must work even if \$libdir does not exist.
 
19620
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19621
 
 
19622
# If ld is used when linking, flag to hardcode \$libdir into
 
19623
# a binary during linking. This must work even if \$libdir does
 
19624
# not exist.
 
19625
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19626
 
 
19627
# Whether we need a single -rpath flag with a separated argument.
 
19628
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19629
 
 
19630
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19631
# resulting binary.
 
19632
hardcode_direct=$hardcode_direct_GCJ
 
19633
 
 
19634
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19635
# resulting binary.
 
19636
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19637
 
 
19638
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19639
# the resulting binary.
 
19640
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19641
 
 
19642
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19643
# and all subsequent libraries and executables linked against it.
 
19644
hardcode_automatic=$hardcode_automatic_GCJ
 
19645
 
 
19646
# Variables whose values should be saved in libtool wrapper scripts and
 
19647
# restored at relink time.
 
19648
variables_saved_for_relink="$variables_saved_for_relink"
 
19649
 
 
19650
# Whether libtool must link a program against all its dependency libraries.
 
19651
link_all_deplibs=$link_all_deplibs_GCJ
 
19652
 
 
19653
# Compile-time system search path for libraries
 
19654
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19655
 
 
19656
# Run-time system search path for libraries
 
19657
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19658
 
 
19659
# Fix the shell variable \$srcfile for the compiler.
 
19660
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
19661
 
 
19662
# Set to yes if exported symbols are required.
 
19663
always_export_symbols=$always_export_symbols_GCJ
 
19664
 
 
19665
# The commands to list exported symbols.
 
19666
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19667
 
 
19668
# The commands to extract the exported symbol list from a shared archive.
 
19669
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19670
 
 
19671
# Symbols that should not be listed in the preloaded symbols.
 
19672
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19673
 
 
19674
# Symbols that must always be exported.
 
19675
include_expsyms=$lt_include_expsyms_GCJ
 
19676
 
 
19677
# ### END LIBTOOL TAG CONFIG: $tagname
 
19678
 
 
19679
__EOF__
 
19680
 
 
19681
 
 
19682
else
 
19683
  # If there is no Makefile yet, we rely on a make rule to execute
 
19684
  # `config.status --recheck' to rerun these tests and create the
 
19685
  # libtool script then.
 
19686
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19687
  if test -f "$ltmain_in"; then
 
19688
    test -f Makefile && make "$ltmain"
 
19689
  fi
 
19690
fi
 
19691
 
 
19692
 
 
19693
ac_ext=c
 
19694
ac_cpp='$CPP $CPPFLAGS'
 
19695
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19696
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19697
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19698
 
 
19699
CC="$lt_save_CC"
 
19700
 
 
19701
        else
 
19702
          tagname=""
 
19703
        fi
 
19704
        ;;
 
19705
 
 
19706
      RC)
 
19707
 
 
19708
 
 
19709
 
 
19710
# Source file extension for RC test sources.
 
19711
ac_ext=rc
 
19712
 
 
19713
# Object file extension for compiled RC test sources.
 
19714
objext=o
 
19715
objext_RC=$objext
 
19716
 
 
19717
# Code to be used in simple compile tests
 
19718
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
19719
 
 
19720
# Code to be used in simple link tests
 
19721
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19722
 
 
19723
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19724
 
 
19725
# If no C compiler was specified, use CC.
 
19726
LTCC=${LTCC-"$CC"}
 
19727
 
 
19728
# Allow CC to be a program name with arguments.
 
19729
compiler=$CC
 
19730
 
 
19731
 
 
19732
# Allow CC to be a program name with arguments.
 
19733
lt_save_CC="$CC"
 
19734
CC=${RC-"windres"}
 
19735
compiler=$CC
 
19736
compiler_RC=$CC
 
19737
lt_cv_prog_compiler_c_o_RC=yes
 
19738
 
 
19739
# The else clause should only fire when bootstrapping the
 
19740
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19741
# with your package, and you will get complaints that there are
 
19742
# no rules to generate ltmain.sh.
 
19743
if test -f "$ltmain"; then
 
19744
  # See if we are running on zsh, and set the options which allow our commands through
 
19745
  # without removal of \ escapes.
 
19746
  if test -n "${ZSH_VERSION+set}" ; then
 
19747
    setopt NO_GLOB_SUBST
 
19748
  fi
 
19749
  # Now quote all the things that may contain metacharacters while being
 
19750
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19751
  # variables and quote the copies for generation of the libtool script.
 
19752
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19753
    SED SHELL STRIP \
 
19754
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19755
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19756
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19757
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19758
    lt_cv_sys_global_symbol_to_c_name_address \
 
19759
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19760
    old_postinstall_cmds old_postuninstall_cmds \
 
19761
    compiler_RC \
 
19762
    CC_RC \
 
19763
    LD_RC \
 
19764
    lt_prog_compiler_wl_RC \
 
19765
    lt_prog_compiler_pic_RC \
 
19766
    lt_prog_compiler_static_RC \
 
19767
    lt_prog_compiler_no_builtin_flag_RC \
 
19768
    export_dynamic_flag_spec_RC \
 
19769
    thread_safe_flag_spec_RC \
 
19770
    whole_archive_flag_spec_RC \
 
19771
    enable_shared_with_static_runtimes_RC \
 
19772
    old_archive_cmds_RC \
 
19773
    old_archive_from_new_cmds_RC \
 
19774
    predep_objects_RC \
 
19775
    postdep_objects_RC \
 
19776
    predeps_RC \
 
19777
    postdeps_RC \
 
19778
    compiler_lib_search_path_RC \
 
19779
    archive_cmds_RC \
 
19780
    archive_expsym_cmds_RC \
 
19781
    postinstall_cmds_RC \
 
19782
    postuninstall_cmds_RC \
 
19783
    old_archive_from_expsyms_cmds_RC \
 
19784
    allow_undefined_flag_RC \
 
19785
    no_undefined_flag_RC \
 
19786
    export_symbols_cmds_RC \
 
19787
    hardcode_libdir_flag_spec_RC \
 
19788
    hardcode_libdir_flag_spec_ld_RC \
 
19789
    hardcode_libdir_separator_RC \
 
19790
    hardcode_automatic_RC \
 
19791
    module_cmds_RC \
 
19792
    module_expsym_cmds_RC \
 
19793
    lt_cv_prog_compiler_c_o_RC \
 
19794
    exclude_expsyms_RC \
 
19795
    include_expsyms_RC; do
 
19796
 
 
19797
    case $var in
 
19798
    old_archive_cmds_RC | \
 
19799
    old_archive_from_new_cmds_RC | \
 
19800
    archive_cmds_RC | \
 
19801
    archive_expsym_cmds_RC | \
 
19802
    module_cmds_RC | \
 
19803
    module_expsym_cmds_RC | \
 
19804
    old_archive_from_expsyms_cmds_RC | \
 
19805
    export_symbols_cmds_RC | \
 
19806
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19807
    postinstall_cmds | postuninstall_cmds | \
 
19808
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19809
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19810
      # Double-quote double-evaled strings.
 
19811
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19812
      ;;
 
19813
    *)
 
19814
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19815
      ;;
 
19816
    esac
 
19817
  done
 
19818
 
 
19819
  case $lt_echo in
 
19820
  *'\$0 --fallback-echo"')
 
19821
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19822
    ;;
 
19823
  esac
 
19824
 
 
19825
cfgfile="$ofile"
 
19826
 
 
19827
  cat <<__EOF__ >> "$cfgfile"
 
19828
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19829
 
 
19830
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19831
 
 
19832
# Shell to use when invoking shell scripts.
 
19833
SHELL=$lt_SHELL
 
19834
 
 
19835
# Whether or not to build shared libraries.
 
19836
build_libtool_libs=$enable_shared
 
19837
 
 
19838
# Whether or not to build static libraries.
 
19839
build_old_libs=$enable_static
 
19840
 
 
19841
# Whether or not to add -lc for building shared libraries.
 
19842
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19843
 
 
19844
# Whether or not to disallow shared libs when runtime libs are static
 
19845
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19846
 
 
19847
# Whether or not to optimize for fast installation.
 
19848
fast_install=$enable_fast_install
 
19849
 
 
19850
# The host system.
 
19851
host_alias=$host_alias
 
19852
host=$host
 
19853
 
 
19854
# An echo program that does not interpret backslashes.
 
19855
echo=$lt_echo
 
19856
 
 
19857
# The archiver.
 
19858
AR=$lt_AR
 
19859
AR_FLAGS=$lt_AR_FLAGS
 
19860
 
 
19861
# A C compiler.
 
19862
LTCC=$lt_LTCC
 
19863
 
 
19864
# A language-specific compiler.
 
19865
CC=$lt_compiler_RC
 
19866
 
 
19867
# Is the compiler the GNU C compiler?
 
19868
with_gcc=$GCC_RC
 
19869
 
 
19870
# An ERE matcher.
 
19871
EGREP=$lt_EGREP
 
19872
 
 
19873
# The linker used to build libraries.
 
19874
LD=$lt_LD_RC
 
19875
 
 
19876
# Whether we need hard or soft links.
 
19877
LN_S=$lt_LN_S
 
19878
 
 
19879
# A BSD-compatible nm program.
 
19880
NM=$lt_NM
 
19881
 
 
19882
# A symbol stripping program
 
19883
STRIP=$lt_STRIP
 
19884
 
 
19885
# Used to examine libraries when file_magic_cmd begins "file"
 
19886
MAGIC_CMD=$MAGIC_CMD
 
19887
 
 
19888
# Used on cygwin: DLL creation program.
 
19889
DLLTOOL="$DLLTOOL"
 
19890
 
 
19891
# Used on cygwin: object dumper.
 
19892
OBJDUMP="$OBJDUMP"
 
19893
 
 
19894
# Used on cygwin: assembler.
 
19895
AS="$AS"
 
19896
 
 
19897
# The name of the directory that contains temporary libtool files.
 
19898
objdir=$objdir
 
19899
 
 
19900
# How to create reloadable object files.
 
19901
reload_flag=$lt_reload_flag
 
19902
reload_cmds=$lt_reload_cmds
 
19903
 
 
19904
# How to pass a linker flag through the compiler.
 
19905
wl=$lt_lt_prog_compiler_wl_RC
 
19906
 
 
19907
# Object file suffix (normally "o").
 
19908
objext="$ac_objext"
 
19909
 
 
19910
# Old archive suffix (normally "a").
 
19911
libext="$libext"
 
19912
 
 
19913
# Shared library suffix (normally ".so").
 
19914
shrext_cmds='$shrext_cmds'
 
19915
 
 
19916
# Executable file suffix (normally "").
 
19917
exeext="$exeext"
 
19918
 
 
19919
# Additional compiler flags for building library objects.
 
19920
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19921
pic_mode=$pic_mode
 
19922
 
 
19923
# What is the maximum length of a command?
 
19924
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19925
 
 
19926
# Does compiler simultaneously support -c and -o options?
 
19927
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19928
 
 
19929
# Must we lock files when doing compilation ?
 
19930
need_locks=$lt_need_locks
 
19931
 
 
19932
# Do we need the lib prefix for modules?
 
19933
need_lib_prefix=$need_lib_prefix
 
19934
 
 
19935
# Do we need a version for libraries?
 
19936
need_version=$need_version
 
19937
 
 
19938
# Whether dlopen is supported.
 
19939
dlopen_support=$enable_dlopen
 
19940
 
 
19941
# Whether dlopen of programs is supported.
 
19942
dlopen_self=$enable_dlopen_self
 
19943
 
 
19944
# Whether dlopen of statically linked programs is supported.
 
19945
dlopen_self_static=$enable_dlopen_self_static
 
19946
 
 
19947
# Compiler flag to prevent dynamic linking.
 
19948
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19949
 
 
19950
# Compiler flag to turn off builtin functions.
 
19951
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19952
 
 
19953
# Compiler flag to allow reflexive dlopens.
 
19954
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19955
 
 
19956
# Compiler flag to generate shared objects directly from archives.
 
19957
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19958
 
 
19959
# Compiler flag to generate thread-safe objects.
 
19960
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19961
 
 
19962
# Library versioning type.
 
19963
version_type=$version_type
 
19964
 
 
19965
# Format of library name prefix.
 
19966
libname_spec=$lt_libname_spec
 
19967
 
 
19968
# List of archive names.  First name is the real one, the rest are links.
 
19969
# The last name is the one that the linker finds with -lNAME.
 
19970
library_names_spec=$lt_library_names_spec
 
19971
 
 
19972
# The coded name of the library, if different from the real name.
 
19973
soname_spec=$lt_soname_spec
 
19974
 
 
19975
# Commands used to build and install an old-style archive.
 
19976
RANLIB=$lt_RANLIB
 
19977
old_archive_cmds=$lt_old_archive_cmds_RC
 
19978
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19979
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19980
 
 
19981
# Create an old-style archive from a shared archive.
 
19982
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19983
 
 
19984
# Create a temporary old-style archive to link instead of a shared archive.
 
19985
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19986
 
 
19987
# Commands used to build and install a shared archive.
 
19988
archive_cmds=$lt_archive_cmds_RC
 
19989
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19990
postinstall_cmds=$lt_postinstall_cmds
 
19991
postuninstall_cmds=$lt_postuninstall_cmds
 
19992
 
 
19993
# Commands used to build a loadable module (assumed same as above if empty)
 
19994
module_cmds=$lt_module_cmds_RC
 
19995
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19996
 
 
19997
# Commands to strip libraries.
 
19998
old_striplib=$lt_old_striplib
 
19999
striplib=$lt_striplib
 
20000
 
 
20001
# Dependencies to place before the objects being linked to create a
 
20002
# shared library.
 
20003
predep_objects=$lt_predep_objects_RC
 
20004
 
 
20005
# Dependencies to place after the objects being linked to create a
 
20006
# shared library.
 
20007
postdep_objects=$lt_postdep_objects_RC
 
20008
 
 
20009
# Dependencies to place before the objects being linked to create a
 
20010
# shared library.
 
20011
predeps=$lt_predeps_RC
 
20012
 
 
20013
# Dependencies to place after the objects being linked to create a
 
20014
# shared library.
 
20015
postdeps=$lt_postdeps_RC
 
20016
 
 
20017
# The library search path used internally by the compiler when linking
 
20018
# a shared library.
 
20019
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
20020
 
 
20021
# Method to check whether dependent libraries are shared objects.
 
20022
deplibs_check_method=$lt_deplibs_check_method
 
20023
 
 
20024
# Command to use when deplibs_check_method == file_magic.
 
20025
file_magic_cmd=$lt_file_magic_cmd
 
20026
 
 
20027
# Flag that allows shared libraries with undefined symbols to be built.
 
20028
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
20029
 
 
20030
# Flag that forces no undefined symbols.
 
20031
no_undefined_flag=$lt_no_undefined_flag_RC
 
20032
 
 
20033
# Commands used to finish a libtool library installation in a directory.
 
20034
finish_cmds=$lt_finish_cmds
 
20035
 
 
20036
# Same as above, but a single script fragment to be evaled but not shown.
 
20037
finish_eval=$lt_finish_eval
 
20038
 
 
20039
# Take the output of nm and produce a listing of raw symbols and C names.
 
20040
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20041
 
 
20042
# Transform the output of nm in a proper C declaration
 
20043
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20044
 
 
20045
# Transform the output of nm in a C name address pair
 
20046
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20047
 
 
20048
# This is the shared library runtime path variable.
 
20049
runpath_var=$runpath_var
 
20050
 
 
20051
# This is the shared library path variable.
 
20052
shlibpath_var=$shlibpath_var
 
20053
 
 
20054
# Is shlibpath searched before the hard-coded library search path?
 
20055
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20056
 
 
20057
# How to hardcode a shared library path into an executable.
 
20058
hardcode_action=$hardcode_action_RC
 
20059
 
 
20060
# Whether we should hardcode library paths into libraries.
 
20061
hardcode_into_libs=$hardcode_into_libs
 
20062
 
 
20063
# Flag to hardcode \$libdir into a binary during linking.
 
20064
# This must work even if \$libdir does not exist.
 
20065
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
20066
 
 
20067
# If ld is used when linking, flag to hardcode \$libdir into
 
20068
# a binary during linking. This must work even if \$libdir does
 
20069
# not exist.
 
20070
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
20071
 
 
20072
# Whether we need a single -rpath flag with a separated argument.
 
20073
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
20074
 
 
20075
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
20076
# resulting binary.
 
20077
hardcode_direct=$hardcode_direct_RC
 
20078
 
 
20079
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
20080
# resulting binary.
 
20081
hardcode_minus_L=$hardcode_minus_L_RC
 
20082
 
 
20083
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20084
# the resulting binary.
 
20085
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
20086
 
 
20087
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20088
# and all subsequent libraries and executables linked against it.
 
20089
hardcode_automatic=$hardcode_automatic_RC
 
20090
 
 
20091
# Variables whose values should be saved in libtool wrapper scripts and
 
20092
# restored at relink time.
 
20093
variables_saved_for_relink="$variables_saved_for_relink"
 
20094
 
 
20095
# Whether libtool must link a program against all its dependency libraries.
 
20096
link_all_deplibs=$link_all_deplibs_RC
 
20097
 
 
20098
# Compile-time system search path for libraries
 
20099
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20100
 
 
20101
# Run-time system search path for libraries
 
20102
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20103
 
 
20104
# Fix the shell variable \$srcfile for the compiler.
 
20105
fix_srcfile_path="$fix_srcfile_path_RC"
 
20106
 
 
20107
# Set to yes if exported symbols are required.
 
20108
always_export_symbols=$always_export_symbols_RC
 
20109
 
 
20110
# The commands to list exported symbols.
 
20111
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
20112
 
 
20113
# The commands to extract the exported symbol list from a shared archive.
 
20114
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20115
 
 
20116
# Symbols that should not be listed in the preloaded symbols.
 
20117
exclude_expsyms=$lt_exclude_expsyms_RC
 
20118
 
 
20119
# Symbols that must always be exported.
 
20120
include_expsyms=$lt_include_expsyms_RC
 
20121
 
 
20122
# ### END LIBTOOL TAG CONFIG: $tagname
 
20123
 
 
20124
__EOF__
 
20125
 
 
20126
 
 
20127
else
 
20128
  # If there is no Makefile yet, we rely on a make rule to execute
 
20129
  # `config.status --recheck' to rerun these tests and create the
 
20130
  # libtool script then.
 
20131
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
20132
  if test -f "$ltmain_in"; then
 
20133
    test -f Makefile && make "$ltmain"
 
20134
  fi
 
20135
fi
 
20136
 
 
20137
 
 
20138
ac_ext=c
 
20139
ac_cpp='$CPP $CPPFLAGS'
 
20140
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20141
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20142
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20143
 
 
20144
CC="$lt_save_CC"
 
20145
 
 
20146
        ;;
 
20147
 
 
20148
      *)
 
20149
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
20150
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
20151
   { (exit 1); exit 1; }; }
 
20152
        ;;
 
20153
      esac
 
20154
 
 
20155
      # Append the new tag name to the list of available tags.
 
20156
      if test -n "$tagname" ; then
 
20157
      available_tags="$available_tags $tagname"
 
20158
    fi
 
20159
    fi
 
20160
  done
 
20161
  IFS="$lt_save_ifs"
 
20162
 
 
20163
  # Now substitute the updated list of available tags.
 
20164
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
20165
    mv "${ofile}T" "$ofile"
 
20166
    chmod +x "$ofile"
 
20167
  else
 
20168
    rm -f "${ofile}T"
 
20169
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
20170
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
20171
   { (exit 1); exit 1; }; }
 
20172
  fi
 
20173
fi
6081
20174
 
6082
20175
 
6083
20176
 
6092
20185
 
6093
20186
 
6094
20187
 
6095
 
#AC_HEADER_STDC
6096
 
#AC_HEADER_SYS_WAIT
6097
 
#AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h)
6098
 
 
6099
 
#AC_C_CONST
6100
 
#AC_HEADER_TIME
6101
 
 
6102
 
#AC_FUNC_MMAP
6103
 
#AC_TYPE_SIGNAL
6104
 
#AC_CHECK_FUNCS(gettimeofday strdup strtoul)
6105
 
 
6106
 
 
6107
 
 
6108
 
 
6109
 
 
6110
 
# Check whether --enable-usb or --disable-usb was given.
6111
 
if test "${enable_usb+set}" = set; then
6112
 
  enableval="$enable_usb"
6113
 
   case "${enableval}" in
6114
 
  yes)
6115
 
   case "${build_os}" in
6116
 
    linux-gnu)  usb=true ;;
6117
 
    *) echo "configure: warning: USB hotplug support only available on Linux" 1>&2
6118
 
                usb=false
6119
 
     ;;
6120
 
   esac
6121
 
   ;;
6122
 
  no)   usb=false ;;
6123
 
  *) { echo "configure: error: bad value ${enableval} for --enable-usb" 1>&2; exit 1; } ;;
6124
 
 esac
6125
 
else
6126
 
  usb=false
6127
 
fi
6128
 
 
6129
 
 
6130
 
echo "$ac_t""enable linux usb capability: $usb" 1>&6
6131
 
 
6132
 
 
6133
 
 
6134
 
if test x$usb = xtrue; then
6135
 
  PCSC_LINUX_USB_TRUE=
6136
 
  PCSC_LINUX_USB_FALSE='#'
6137
 
else
6138
 
  PCSC_LINUX_USB_TRUE='#'
6139
 
  PCSC_LINUX_USB_FALSE=
6140
 
fi
6141
 
 
6142
 
# Check whether --enable-threadsafe or --disable-threadsafe was given.
6143
 
if test "${enable_threadsafe+set}" = set; then
6144
 
  enableval="$enable_threadsafe"
6145
 
  case "${enableval}" in
6146
 
  yes)  threadsafe=true ;;
6147
 
  no)   threadsafe=false ;;
6148
 
  *) { echo "configure: error: bad value ${enableval} for --enable-threadsafe" 1>&2; exit 1; } ;;
6149
 
 esac
6150
 
else
6151
 
  threadsafe=false
6152
 
fi
6153
 
 
6154
 
 
6155
 
echo "$ac_t""enable threadsafe client   : $threadsafe" 1>&6
6156
 
 
6157
 
 
6158
 
 
6159
 
if test x$threadsafe = xtrue; then
6160
 
  PCSC_THR_SAFE_TRUE=
6161
 
  PCSC_THR_SAFE_FALSE='#'
6162
 
else
6163
 
  PCSC_THR_SAFE_TRUE='#'
6164
 
  PCSC_THR_SAFE_FALSE=
6165
 
fi
 
20188
 
 
20189
 
 
20190
 
 
20191
 
 
20192
 
 
20193
 
 
20194
 
 
20195
 
 
20196
 
 
20197
 
 
20198
 
 
20199
 
 
20200
 
 
20201
 
 
20202
 
 
20203
 
 
20204
#AC_SUBST(LIBTOOL_DEPS)
 
20205
 
 
20206
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
20207
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
20208
if test "${ac_cv_header_stdc+set}" = set; then
 
20209
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20210
else
 
20211
  cat >conftest.$ac_ext <<_ACEOF
 
20212
/* confdefs.h.  */
 
20213
_ACEOF
 
20214
cat confdefs.h >>conftest.$ac_ext
 
20215
cat >>conftest.$ac_ext <<_ACEOF
 
20216
/* end confdefs.h.  */
 
20217
#include <stdlib.h>
 
20218
#include <stdarg.h>
 
20219
#include <string.h>
 
20220
#include <float.h>
 
20221
 
 
20222
int
 
20223
main ()
 
20224
{
 
20225
 
 
20226
  ;
 
20227
  return 0;
 
20228
}
 
20229
_ACEOF
 
20230
rm -f conftest.$ac_objext
 
20231
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20232
  (eval $ac_compile) 2>conftest.er1
 
20233
  ac_status=$?
 
20234
  grep -v '^ *+' conftest.er1 >conftest.err
 
20235
  rm -f conftest.er1
 
20236
  cat conftest.err >&5
 
20237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20238
  (exit $ac_status); } &&
 
20239
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20240
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20241
  (eval $ac_try) 2>&5
 
20242
  ac_status=$?
 
20243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20244
  (exit $ac_status); }; } &&
 
20245
         { ac_try='test -s conftest.$ac_objext'
 
20246
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20247
  (eval $ac_try) 2>&5
 
20248
  ac_status=$?
 
20249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20250
  (exit $ac_status); }; }; then
 
20251
  ac_cv_header_stdc=yes
 
20252
else
 
20253
  echo "$as_me: failed program was:" >&5
 
20254
sed 's/^/| /' conftest.$ac_ext >&5
 
20255
 
 
20256
ac_cv_header_stdc=no
 
20257
fi
 
20258
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20259
 
 
20260
if test $ac_cv_header_stdc = yes; then
 
20261
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
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
#include <string.h>
 
20269
 
 
20270
_ACEOF
 
20271
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20272
  $EGREP "memchr" >/dev/null 2>&1; then
 
20273
  :
 
20274
else
 
20275
  ac_cv_header_stdc=no
 
20276
fi
 
20277
rm -f conftest*
 
20278
 
 
20279
fi
 
20280
 
 
20281
if test $ac_cv_header_stdc = yes; then
 
20282
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
20283
  cat >conftest.$ac_ext <<_ACEOF
 
20284
/* confdefs.h.  */
 
20285
_ACEOF
 
20286
cat confdefs.h >>conftest.$ac_ext
 
20287
cat >>conftest.$ac_ext <<_ACEOF
 
20288
/* end confdefs.h.  */
 
20289
#include <stdlib.h>
 
20290
 
 
20291
_ACEOF
 
20292
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20293
  $EGREP "free" >/dev/null 2>&1; then
 
20294
  :
 
20295
else
 
20296
  ac_cv_header_stdc=no
 
20297
fi
 
20298
rm -f conftest*
 
20299
 
 
20300
fi
 
20301
 
 
20302
if test $ac_cv_header_stdc = yes; then
 
20303
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
20304
  if test "$cross_compiling" = yes; then
 
20305
  :
 
20306
else
 
20307
  cat >conftest.$ac_ext <<_ACEOF
 
20308
/* confdefs.h.  */
 
20309
_ACEOF
 
20310
cat confdefs.h >>conftest.$ac_ext
 
20311
cat >>conftest.$ac_ext <<_ACEOF
 
20312
/* end confdefs.h.  */
 
20313
#include <ctype.h>
 
20314
#if ((' ' & 0x0FF) == 0x020)
 
20315
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
20316
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
20317
#else
 
20318
# define ISLOWER(c) \
 
20319
                   (('a' <= (c) && (c) <= 'i') \
 
20320
                     || ('j' <= (c) && (c) <= 'r') \
 
20321
                     || ('s' <= (c) && (c) <= 'z'))
 
20322
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
20323
#endif
 
20324
 
 
20325
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
20326
int
 
20327
main ()
 
20328
{
 
20329
  int i;
 
20330
  for (i = 0; i < 256; i++)
 
20331
    if (XOR (islower (i), ISLOWER (i))
 
20332
        || toupper (i) != TOUPPER (i))
 
20333
      exit(2);
 
20334
  exit (0);
 
20335
}
 
20336
_ACEOF
 
20337
rm -f conftest$ac_exeext
 
20338
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20339
  (eval $ac_link) 2>&5
 
20340
  ac_status=$?
 
20341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20342
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20343
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20344
  (eval $ac_try) 2>&5
 
20345
  ac_status=$?
 
20346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20347
  (exit $ac_status); }; }; then
 
20348
  :
 
20349
else
 
20350
  echo "$as_me: program exited with status $ac_status" >&5
 
20351
echo "$as_me: failed program was:" >&5
 
20352
sed 's/^/| /' conftest.$ac_ext >&5
 
20353
 
 
20354
( exit $ac_status )
 
20355
ac_cv_header_stdc=no
 
20356
fi
 
20357
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20358
fi
 
20359
fi
 
20360
fi
 
20361
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
20362
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
20363
if test $ac_cv_header_stdc = yes; then
 
20364
 
 
20365
cat >>confdefs.h <<\_ACEOF
 
20366
#define STDC_HEADERS 1
 
20367
_ACEOF
 
20368
 
 
20369
fi
 
20370
 
 
20371
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
20372
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
 
20373
if test "${ac_cv_header_sys_wait_h+set}" = set; then
 
20374
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20375
else
 
20376
  cat >conftest.$ac_ext <<_ACEOF
 
20377
/* confdefs.h.  */
 
20378
_ACEOF
 
20379
cat confdefs.h >>conftest.$ac_ext
 
20380
cat >>conftest.$ac_ext <<_ACEOF
 
20381
/* end confdefs.h.  */
 
20382
#include <sys/types.h>
 
20383
#include <sys/wait.h>
 
20384
#ifndef WEXITSTATUS
 
20385
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
 
20386
#endif
 
20387
#ifndef WIFEXITED
 
20388
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
20389
#endif
 
20390
 
 
20391
int
 
20392
main ()
 
20393
{
 
20394
  int s;
 
20395
  wait (&s);
 
20396
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
20397
  ;
 
20398
  return 0;
 
20399
}
 
20400
_ACEOF
 
20401
rm -f conftest.$ac_objext
 
20402
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20403
  (eval $ac_compile) 2>conftest.er1
 
20404
  ac_status=$?
 
20405
  grep -v '^ *+' conftest.er1 >conftest.err
 
20406
  rm -f conftest.er1
 
20407
  cat conftest.err >&5
 
20408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20409
  (exit $ac_status); } &&
 
20410
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20411
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20412
  (eval $ac_try) 2>&5
 
20413
  ac_status=$?
 
20414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20415
  (exit $ac_status); }; } &&
 
20416
         { ac_try='test -s conftest.$ac_objext'
 
20417
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20418
  (eval $ac_try) 2>&5
 
20419
  ac_status=$?
 
20420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20421
  (exit $ac_status); }; }; then
 
20422
  ac_cv_header_sys_wait_h=yes
 
20423
else
 
20424
  echo "$as_me: failed program was:" >&5
 
20425
sed 's/^/| /' conftest.$ac_ext >&5
 
20426
 
 
20427
ac_cv_header_sys_wait_h=no
 
20428
fi
 
20429
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20430
fi
 
20431
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
 
20432
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
 
20433
if test $ac_cv_header_sys_wait_h = yes; then
 
20434
 
 
20435
cat >>confdefs.h <<\_ACEOF
 
20436
#define HAVE_SYS_WAIT_H 1
 
20437
_ACEOF
 
20438
 
 
20439
fi
 
20440
 
 
20441
 
 
20442
 
 
20443
 
 
20444
 
 
20445
 
 
20446
 
 
20447
 
 
20448
 
 
20449
 
 
20450
 
 
20451
 
 
20452
 
 
20453
 
 
20454
 
 
20455
 
 
20456
for ac_header in dirent.h dl.h dlfcn.h errno.h fcntl.h getopt.h malloc.h stdlib.h string.h strings.h sys/filio.h sys/time.h syslog.h unistd.h smartcard/scf.h
 
20457
do
 
20458
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20459
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20460
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20461
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20462
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20463
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20464
fi
 
20465
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20466
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20467
else
 
20468
  # Is the header compilable?
 
20469
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20470
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20471
cat >conftest.$ac_ext <<_ACEOF
 
20472
/* confdefs.h.  */
 
20473
_ACEOF
 
20474
cat confdefs.h >>conftest.$ac_ext
 
20475
cat >>conftest.$ac_ext <<_ACEOF
 
20476
/* end confdefs.h.  */
 
20477
$ac_includes_default
 
20478
#include <$ac_header>
 
20479
_ACEOF
 
20480
rm -f conftest.$ac_objext
 
20481
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20482
  (eval $ac_compile) 2>conftest.er1
 
20483
  ac_status=$?
 
20484
  grep -v '^ *+' conftest.er1 >conftest.err
 
20485
  rm -f conftest.er1
 
20486
  cat conftest.err >&5
 
20487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20488
  (exit $ac_status); } &&
 
20489
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20490
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20491
  (eval $ac_try) 2>&5
 
20492
  ac_status=$?
 
20493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20494
  (exit $ac_status); }; } &&
 
20495
         { ac_try='test -s conftest.$ac_objext'
 
20496
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20497
  (eval $ac_try) 2>&5
 
20498
  ac_status=$?
 
20499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20500
  (exit $ac_status); }; }; then
 
20501
  ac_header_compiler=yes
 
20502
else
 
20503
  echo "$as_me: failed program was:" >&5
 
20504
sed 's/^/| /' conftest.$ac_ext >&5
 
20505
 
 
20506
ac_header_compiler=no
 
20507
fi
 
20508
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20509
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20510
echo "${ECHO_T}$ac_header_compiler" >&6
 
20511
 
 
20512
# Is the header present?
 
20513
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20514
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20515
cat >conftest.$ac_ext <<_ACEOF
 
20516
/* confdefs.h.  */
 
20517
_ACEOF
 
20518
cat confdefs.h >>conftest.$ac_ext
 
20519
cat >>conftest.$ac_ext <<_ACEOF
 
20520
/* end confdefs.h.  */
 
20521
#include <$ac_header>
 
20522
_ACEOF
 
20523
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20524
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20525
  ac_status=$?
 
20526
  grep -v '^ *+' conftest.er1 >conftest.err
 
20527
  rm -f conftest.er1
 
20528
  cat conftest.err >&5
 
20529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20530
  (exit $ac_status); } >/dev/null; then
 
20531
  if test -s conftest.err; then
 
20532
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20533
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20534
  else
 
20535
    ac_cpp_err=
 
20536
  fi
 
20537
else
 
20538
  ac_cpp_err=yes
 
20539
fi
 
20540
if test -z "$ac_cpp_err"; then
 
20541
  ac_header_preproc=yes
 
20542
else
 
20543
  echo "$as_me: failed program was:" >&5
 
20544
sed 's/^/| /' conftest.$ac_ext >&5
 
20545
 
 
20546
  ac_header_preproc=no
 
20547
fi
 
20548
rm -f conftest.err conftest.$ac_ext
 
20549
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20550
echo "${ECHO_T}$ac_header_preproc" >&6
 
20551
 
 
20552
# So?  What about this header?
 
20553
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20554
  yes:no: )
 
20555
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20556
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20557
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20558
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20559
    ac_header_preproc=yes
 
20560
    ;;
 
20561
  no:yes:* )
 
20562
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20563
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20564
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20565
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20566
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20567
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20568
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20569
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20570
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20571
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20572
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20573
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20574
    (
 
20575
      cat <<\_ASBOX
 
20576
## ------------------------------------------ ##
 
20577
## Report this to the AC_PACKAGE_NAME lists.  ##
 
20578
## ------------------------------------------ ##
 
20579
_ASBOX
 
20580
    ) |
 
20581
      sed "s/^/$as_me: WARNING:     /" >&2
 
20582
    ;;
 
20583
esac
 
20584
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20585
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20586
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20587
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20588
else
 
20589
  eval "$as_ac_Header=\$ac_header_preproc"
 
20590
fi
 
20591
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20592
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20593
 
 
20594
fi
 
20595
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20596
  cat >>confdefs.h <<_ACEOF
 
20597
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20598
_ACEOF
 
20599
 
 
20600
fi
 
20601
 
 
20602
done
 
20603
 
 
20604
 
 
20605
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
20606
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
20607
if test "${ac_cv_c_const+set}" = set; then
 
20608
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20609
else
 
20610
  cat >conftest.$ac_ext <<_ACEOF
 
20611
/* confdefs.h.  */
 
20612
_ACEOF
 
20613
cat confdefs.h >>conftest.$ac_ext
 
20614
cat >>conftest.$ac_ext <<_ACEOF
 
20615
/* end confdefs.h.  */
 
20616
 
 
20617
int
 
20618
main ()
 
20619
{
 
20620
/* FIXME: Include the comments suggested by Paul. */
 
20621
#ifndef __cplusplus
 
20622
  /* Ultrix mips cc rejects this.  */
 
20623
  typedef int charset[2];
 
20624
  const charset x;
 
20625
  /* SunOS 4.1.1 cc rejects this.  */
 
20626
  char const *const *ccp;
 
20627
  char **p;
 
20628
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
20629
  struct point {int x, y;};
 
20630
  static struct point const zero = {0,0};
 
20631
  /* AIX XL C 1.02.0.0 rejects this.
 
20632
     It does not let you subtract one const X* pointer from another in
 
20633
     an arm of an if-expression whose if-part is not a constant
 
20634
     expression */
 
20635
  const char *g = "string";
 
20636
  ccp = &g + (g ? g-g : 0);
 
20637
  /* HPUX 7.0 cc rejects these. */
 
20638
  ++ccp;
 
20639
  p = (char**) ccp;
 
20640
  ccp = (char const *const *) p;
 
20641
  { /* SCO 3.2v4 cc rejects this.  */
 
20642
    char *t;
 
20643
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
20644
 
 
20645
    *t++ = 0;
 
20646
  }
 
20647
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
20648
    int x[] = {25, 17};
 
20649
    const int *foo = &x[0];
 
20650
    ++foo;
 
20651
  }
 
20652
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
20653
    typedef const int *iptr;
 
20654
    iptr p = 0;
 
20655
    ++p;
 
20656
  }
 
20657
  { /* AIX XL C 1.02.0.0 rejects this saying
 
20658
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
20659
    struct s { int j; const int *ap[3]; };
 
20660
    struct s *b; b->j = 5;
 
20661
  }
 
20662
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
20663
    const int foo = 10;
 
20664
  }
 
20665
#endif
 
20666
 
 
20667
  ;
 
20668
  return 0;
 
20669
}
 
20670
_ACEOF
 
20671
rm -f conftest.$ac_objext
 
20672
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20673
  (eval $ac_compile) 2>conftest.er1
 
20674
  ac_status=$?
 
20675
  grep -v '^ *+' conftest.er1 >conftest.err
 
20676
  rm -f conftest.er1
 
20677
  cat conftest.err >&5
 
20678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20679
  (exit $ac_status); } &&
 
20680
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20681
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20682
  (eval $ac_try) 2>&5
 
20683
  ac_status=$?
 
20684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20685
  (exit $ac_status); }; } &&
 
20686
         { ac_try='test -s conftest.$ac_objext'
 
20687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20688
  (eval $ac_try) 2>&5
 
20689
  ac_status=$?
 
20690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20691
  (exit $ac_status); }; }; then
 
20692
  ac_cv_c_const=yes
 
20693
else
 
20694
  echo "$as_me: failed program was:" >&5
 
20695
sed 's/^/| /' conftest.$ac_ext >&5
 
20696
 
 
20697
ac_cv_c_const=no
 
20698
fi
 
20699
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20700
fi
 
20701
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
20702
echo "${ECHO_T}$ac_cv_c_const" >&6
 
20703
if test $ac_cv_c_const = no; then
 
20704
 
 
20705
cat >>confdefs.h <<\_ACEOF
 
20706
#define const
 
20707
_ACEOF
 
20708
 
 
20709
fi
 
20710
 
 
20711
echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
 
20712
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
 
20713
if test "${ac_cv_type_uid_t+set}" = set; then
 
20714
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20715
else
 
20716
  cat >conftest.$ac_ext <<_ACEOF
 
20717
/* confdefs.h.  */
 
20718
_ACEOF
 
20719
cat confdefs.h >>conftest.$ac_ext
 
20720
cat >>conftest.$ac_ext <<_ACEOF
 
20721
/* end confdefs.h.  */
 
20722
#include <sys/types.h>
 
20723
 
 
20724
_ACEOF
 
20725
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20726
  $EGREP "uid_t" >/dev/null 2>&1; then
 
20727
  ac_cv_type_uid_t=yes
 
20728
else
 
20729
  ac_cv_type_uid_t=no
 
20730
fi
 
20731
rm -f conftest*
 
20732
 
 
20733
fi
 
20734
echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
 
20735
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
 
20736
if test $ac_cv_type_uid_t = no; then
 
20737
 
 
20738
cat >>confdefs.h <<\_ACEOF
 
20739
#define uid_t int
 
20740
_ACEOF
 
20741
 
 
20742
 
 
20743
cat >>confdefs.h <<\_ACEOF
 
20744
#define gid_t int
 
20745
_ACEOF
 
20746
 
 
20747
fi
 
20748
 
 
20749
echo "$as_me:$LINENO: checking for size_t" >&5
 
20750
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
20751
if test "${ac_cv_type_size_t+set}" = set; then
 
20752
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20753
else
 
20754
  cat >conftest.$ac_ext <<_ACEOF
 
20755
/* confdefs.h.  */
 
20756
_ACEOF
 
20757
cat confdefs.h >>conftest.$ac_ext
 
20758
cat >>conftest.$ac_ext <<_ACEOF
 
20759
/* end confdefs.h.  */
 
20760
$ac_includes_default
 
20761
int
 
20762
main ()
 
20763
{
 
20764
if ((size_t *) 0)
 
20765
  return 0;
 
20766
if (sizeof (size_t))
 
20767
  return 0;
 
20768
  ;
 
20769
  return 0;
 
20770
}
 
20771
_ACEOF
 
20772
rm -f conftest.$ac_objext
 
20773
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20774
  (eval $ac_compile) 2>conftest.er1
 
20775
  ac_status=$?
 
20776
  grep -v '^ *+' conftest.er1 >conftest.err
 
20777
  rm -f conftest.er1
 
20778
  cat conftest.err >&5
 
20779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20780
  (exit $ac_status); } &&
 
20781
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20782
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20783
  (eval $ac_try) 2>&5
 
20784
  ac_status=$?
 
20785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20786
  (exit $ac_status); }; } &&
 
20787
         { ac_try='test -s conftest.$ac_objext'
 
20788
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20789
  (eval $ac_try) 2>&5
 
20790
  ac_status=$?
 
20791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20792
  (exit $ac_status); }; }; then
 
20793
  ac_cv_type_size_t=yes
 
20794
else
 
20795
  echo "$as_me: failed program was:" >&5
 
20796
sed 's/^/| /' conftest.$ac_ext >&5
 
20797
 
 
20798
ac_cv_type_size_t=no
 
20799
fi
 
20800
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20801
fi
 
20802
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
20803
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
20804
if test $ac_cv_type_size_t = yes; then
 
20805
  :
 
20806
else
 
20807
 
 
20808
cat >>confdefs.h <<_ACEOF
 
20809
#define size_t unsigned
 
20810
_ACEOF
 
20811
 
 
20812
fi
 
20813
 
 
20814
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
20815
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
 
20816
if test "${ac_cv_header_time+set}" = set; then
 
20817
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20818
else
 
20819
  cat >conftest.$ac_ext <<_ACEOF
 
20820
/* confdefs.h.  */
 
20821
_ACEOF
 
20822
cat confdefs.h >>conftest.$ac_ext
 
20823
cat >>conftest.$ac_ext <<_ACEOF
 
20824
/* end confdefs.h.  */
 
20825
#include <sys/types.h>
 
20826
#include <sys/time.h>
 
20827
#include <time.h>
 
20828
 
 
20829
int
 
20830
main ()
 
20831
{
 
20832
if ((struct tm *) 0)
 
20833
return 0;
 
20834
  ;
 
20835
  return 0;
 
20836
}
 
20837
_ACEOF
 
20838
rm -f conftest.$ac_objext
 
20839
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20840
  (eval $ac_compile) 2>conftest.er1
 
20841
  ac_status=$?
 
20842
  grep -v '^ *+' conftest.er1 >conftest.err
 
20843
  rm -f conftest.er1
 
20844
  cat conftest.err >&5
 
20845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20846
  (exit $ac_status); } &&
 
20847
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20848
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20849
  (eval $ac_try) 2>&5
 
20850
  ac_status=$?
 
20851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20852
  (exit $ac_status); }; } &&
 
20853
         { ac_try='test -s conftest.$ac_objext'
 
20854
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20855
  (eval $ac_try) 2>&5
 
20856
  ac_status=$?
 
20857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20858
  (exit $ac_status); }; }; then
 
20859
  ac_cv_header_time=yes
 
20860
else
 
20861
  echo "$as_me: failed program was:" >&5
 
20862
sed 's/^/| /' conftest.$ac_ext >&5
 
20863
 
 
20864
ac_cv_header_time=no
 
20865
fi
 
20866
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20867
fi
 
20868
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
20869
echo "${ECHO_T}$ac_cv_header_time" >&6
 
20870
if test $ac_cv_header_time = yes; then
 
20871
 
 
20872
cat >>confdefs.h <<\_ACEOF
 
20873
#define TIME_WITH_SYS_TIME 1
 
20874
_ACEOF
 
20875
 
 
20876
fi
 
20877
 
 
20878
 
 
20879
echo "$as_me:$LINENO: checking for error_at_line" >&5
 
20880
echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
 
20881
if test "${ac_cv_lib_error_at_line+set}" = set; then
 
20882
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20883
else
 
20884
  cat >conftest.$ac_ext <<_ACEOF
 
20885
/* confdefs.h.  */
 
20886
_ACEOF
 
20887
cat confdefs.h >>conftest.$ac_ext
 
20888
cat >>conftest.$ac_ext <<_ACEOF
 
20889
/* end confdefs.h.  */
 
20890
$ac_includes_default
 
20891
int
 
20892
main ()
 
20893
{
 
20894
error_at_line (0, 0, "", 0, "");
 
20895
  ;
 
20896
  return 0;
 
20897
}
 
20898
_ACEOF
 
20899
rm -f conftest.$ac_objext conftest$ac_exeext
 
20900
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20901
  (eval $ac_link) 2>conftest.er1
 
20902
  ac_status=$?
 
20903
  grep -v '^ *+' conftest.er1 >conftest.err
 
20904
  rm -f conftest.er1
 
20905
  cat conftest.err >&5
 
20906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20907
  (exit $ac_status); } &&
 
20908
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20909
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20910
  (eval $ac_try) 2>&5
 
20911
  ac_status=$?
 
20912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20913
  (exit $ac_status); }; } &&
 
20914
         { ac_try='test -s conftest$ac_exeext'
 
20915
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20916
  (eval $ac_try) 2>&5
 
20917
  ac_status=$?
 
20918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20919
  (exit $ac_status); }; }; then
 
20920
  ac_cv_lib_error_at_line=yes
 
20921
else
 
20922
  echo "$as_me: failed program was:" >&5
 
20923
sed 's/^/| /' conftest.$ac_ext >&5
 
20924
 
 
20925
ac_cv_lib_error_at_line=no
 
20926
fi
 
20927
rm -f conftest.err conftest.$ac_objext \
 
20928
      conftest$ac_exeext conftest.$ac_ext
 
20929
fi
 
20930
echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
 
20931
echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
 
20932
if test $ac_cv_lib_error_at_line = no; then
 
20933
  case $LIBOBJS in
 
20934
    "error.$ac_objext"   | \
 
20935
  *" error.$ac_objext"   | \
 
20936
    "error.$ac_objext "* | \
 
20937
  *" error.$ac_objext "* ) ;;
 
20938
  *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
 
20939
esac
 
20940
 
 
20941
fi
 
20942
 
 
20943
echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
 
20944
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
 
20945
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
 
20946
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20947
else
 
20948
  rm -f conftest.sym conftest.file
 
20949
echo >conftest.file
 
20950
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
 
20951
  if test "$cross_compiling" = yes; then
 
20952
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
20953
else
 
20954
  cat >conftest.$ac_ext <<_ACEOF
 
20955
/* confdefs.h.  */
 
20956
_ACEOF
 
20957
cat confdefs.h >>conftest.$ac_ext
 
20958
cat >>conftest.$ac_ext <<_ACEOF
 
20959
/* end confdefs.h.  */
 
20960
$ac_includes_default
 
20961
int
 
20962
main ()
 
20963
{
 
20964
struct stat sbuf;
 
20965
     /* Linux will dereference the symlink and fail.
 
20966
        That is better in the sense that it means we will not
 
20967
        have to compile and use the lstat wrapper.  */
 
20968
     exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
 
20969
  ;
 
20970
  return 0;
 
20971
}
 
20972
_ACEOF
 
20973
rm -f conftest$ac_exeext
 
20974
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20975
  (eval $ac_link) 2>&5
 
20976
  ac_status=$?
 
20977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20978
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20979
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20980
  (eval $ac_try) 2>&5
 
20981
  ac_status=$?
 
20982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20983
  (exit $ac_status); }; }; then
 
20984
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
 
20985
else
 
20986
  echo "$as_me: program exited with status $ac_status" >&5
 
20987
echo "$as_me: failed program was:" >&5
 
20988
sed 's/^/| /' conftest.$ac_ext >&5
 
20989
 
 
20990
( exit $ac_status )
 
20991
ac_cv_func_lstat_dereferences_slashed_symlink=no
 
20992
fi
 
20993
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20994
fi
 
20995
else
 
20996
  # If the `ln -s' command failed, then we probably don't even
 
20997
  # have an lstat function.
 
20998
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
20999
fi
 
21000
rm -f conftest.sym conftest.file
 
21001
 
 
21002
fi
 
21003
echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
 
21004
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
 
21005
 
 
21006
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
 
21007
 
 
21008
cat >>confdefs.h <<_ACEOF
 
21009
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
 
21010
_ACEOF
 
21011
 
 
21012
 
 
21013
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
 
21014
  case $LIBOBJS in
 
21015
    "lstat.$ac_objext"   | \
 
21016
  *" lstat.$ac_objext"   | \
 
21017
    "lstat.$ac_objext "* | \
 
21018
  *" lstat.$ac_objext "* ) ;;
 
21019
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
 
21020
esac
 
21021
 
 
21022
fi
 
21023
 
 
21024
echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
 
21025
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
 
21026
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
 
21027
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21028
else
 
21029
  if test "$cross_compiling" = yes; then
 
21030
  ac_cv_func_stat_empty_string_bug=yes
 
21031
else
 
21032
  cat >conftest.$ac_ext <<_ACEOF
 
21033
/* confdefs.h.  */
 
21034
_ACEOF
 
21035
cat confdefs.h >>conftest.$ac_ext
 
21036
cat >>conftest.$ac_ext <<_ACEOF
 
21037
/* end confdefs.h.  */
 
21038
$ac_includes_default
 
21039
int
 
21040
main ()
 
21041
{
 
21042
struct stat sbuf;
 
21043
  exit (stat ("", &sbuf) ? 1 : 0);
 
21044
  ;
 
21045
  return 0;
 
21046
}
 
21047
_ACEOF
 
21048
rm -f conftest$ac_exeext
 
21049
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21050
  (eval $ac_link) 2>&5
 
21051
  ac_status=$?
 
21052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21053
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21054
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21055
  (eval $ac_try) 2>&5
 
21056
  ac_status=$?
 
21057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21058
  (exit $ac_status); }; }; then
 
21059
  ac_cv_func_stat_empty_string_bug=yes
 
21060
else
 
21061
  echo "$as_me: program exited with status $ac_status" >&5
 
21062
echo "$as_me: failed program was:" >&5
 
21063
sed 's/^/| /' conftest.$ac_ext >&5
 
21064
 
 
21065
( exit $ac_status )
 
21066
ac_cv_func_stat_empty_string_bug=no
 
21067
fi
 
21068
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21069
fi
 
21070
fi
 
21071
echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
 
21072
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
 
21073
if test $ac_cv_func_stat_empty_string_bug = yes; then
 
21074
  case $LIBOBJS in
 
21075
    "stat.$ac_objext"   | \
 
21076
  *" stat.$ac_objext"   | \
 
21077
    "stat.$ac_objext "* | \
 
21078
  *" stat.$ac_objext "* ) ;;
 
21079
  *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
 
21080
esac
 
21081
 
 
21082
 
 
21083
cat >>confdefs.h <<_ACEOF
 
21084
#define HAVE_STAT_EMPTY_STRING_BUG 1
 
21085
_ACEOF
 
21086
 
 
21087
fi
 
21088
 
 
21089
 
 
21090
for ac_func in vprintf
 
21091
do
 
21092
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21093
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21094
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21095
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
21096
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21097
else
 
21098
  cat >conftest.$ac_ext <<_ACEOF
 
21099
/* confdefs.h.  */
 
21100
_ACEOF
 
21101
cat confdefs.h >>conftest.$ac_ext
 
21102
cat >>conftest.$ac_ext <<_ACEOF
 
21103
/* end confdefs.h.  */
 
21104
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21105
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21106
#define $ac_func innocuous_$ac_func
 
21107
 
 
21108
/* System header to define __stub macros and hopefully few prototypes,
 
21109
    which can conflict with char $ac_func (); below.
 
21110
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21111
    <limits.h> exists even on freestanding compilers.  */
 
21112
 
 
21113
#ifdef __STDC__
 
21114
# include <limits.h>
 
21115
#else
 
21116
# include <assert.h>
 
21117
#endif
 
21118
 
 
21119
#undef $ac_func
 
21120
 
 
21121
/* Override any gcc2 internal prototype to avoid an error.  */
 
21122
#ifdef __cplusplus
 
21123
extern "C"
 
21124
{
 
21125
#endif
 
21126
/* We use char because int might match the return type of a gcc2
 
21127
   builtin and then its argument prototype would still apply.  */
 
21128
char $ac_func ();
 
21129
/* The GNU C library defines this for functions which it implements
 
21130
    to always fail with ENOSYS.  Some functions are actually named
 
21131
    something starting with __ and the normal name is an alias.  */
 
21132
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
21133
choke me
 
21134
#else
 
21135
char (*f) () = $ac_func;
 
21136
#endif
 
21137
#ifdef __cplusplus
 
21138
}
 
21139
#endif
 
21140
 
 
21141
int
 
21142
main ()
 
21143
{
 
21144
return f != $ac_func;
 
21145
  ;
 
21146
  return 0;
 
21147
}
 
21148
_ACEOF
 
21149
rm -f conftest.$ac_objext conftest$ac_exeext
 
21150
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21151
  (eval $ac_link) 2>conftest.er1
 
21152
  ac_status=$?
 
21153
  grep -v '^ *+' conftest.er1 >conftest.err
 
21154
  rm -f conftest.er1
 
21155
  cat conftest.err >&5
 
21156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21157
  (exit $ac_status); } &&
 
21158
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21159
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21160
  (eval $ac_try) 2>&5
 
21161
  ac_status=$?
 
21162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21163
  (exit $ac_status); }; } &&
 
21164
         { ac_try='test -s conftest$ac_exeext'
 
21165
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21166
  (eval $ac_try) 2>&5
 
21167
  ac_status=$?
 
21168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21169
  (exit $ac_status); }; }; then
 
21170
  eval "$as_ac_var=yes"
 
21171
else
 
21172
  echo "$as_me: failed program was:" >&5
 
21173
sed 's/^/| /' conftest.$ac_ext >&5
 
21174
 
 
21175
eval "$as_ac_var=no"
 
21176
fi
 
21177
rm -f conftest.err conftest.$ac_objext \
 
21178
      conftest$ac_exeext conftest.$ac_ext
 
21179
fi
 
21180
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21181
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21182
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21183
  cat >>confdefs.h <<_ACEOF
 
21184
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21185
_ACEOF
 
21186
 
 
21187
echo "$as_me:$LINENO: checking for _doprnt" >&5
 
21188
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
 
21189
if test "${ac_cv_func__doprnt+set}" = set; then
 
21190
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21191
else
 
21192
  cat >conftest.$ac_ext <<_ACEOF
 
21193
/* confdefs.h.  */
 
21194
_ACEOF
 
21195
cat confdefs.h >>conftest.$ac_ext
 
21196
cat >>conftest.$ac_ext <<_ACEOF
 
21197
/* end confdefs.h.  */
 
21198
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
 
21199
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21200
#define _doprnt innocuous__doprnt
 
21201
 
 
21202
/* System header to define __stub macros and hopefully few prototypes,
 
21203
    which can conflict with char _doprnt (); below.
 
21204
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21205
    <limits.h> exists even on freestanding compilers.  */
 
21206
 
 
21207
#ifdef __STDC__
 
21208
# include <limits.h>
 
21209
#else
 
21210
# include <assert.h>
 
21211
#endif
 
21212
 
 
21213
#undef _doprnt
 
21214
 
 
21215
/* Override any gcc2 internal prototype to avoid an error.  */
 
21216
#ifdef __cplusplus
 
21217
extern "C"
 
21218
{
 
21219
#endif
 
21220
/* We use char because int might match the return type of a gcc2
 
21221
   builtin and then its argument prototype would still apply.  */
 
21222
char _doprnt ();
 
21223
/* The GNU C library defines this for functions which it implements
 
21224
    to always fail with ENOSYS.  Some functions are actually named
 
21225
    something starting with __ and the normal name is an alias.  */
 
21226
#if defined (__stub__doprnt) || defined (__stub____doprnt)
 
21227
choke me
 
21228
#else
 
21229
char (*f) () = _doprnt;
 
21230
#endif
 
21231
#ifdef __cplusplus
 
21232
}
 
21233
#endif
 
21234
 
 
21235
int
 
21236
main ()
 
21237
{
 
21238
return f != _doprnt;
 
21239
  ;
 
21240
  return 0;
 
21241
}
 
21242
_ACEOF
 
21243
rm -f conftest.$ac_objext conftest$ac_exeext
 
21244
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21245
  (eval $ac_link) 2>conftest.er1
 
21246
  ac_status=$?
 
21247
  grep -v '^ *+' conftest.er1 >conftest.err
 
21248
  rm -f conftest.er1
 
21249
  cat conftest.err >&5
 
21250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21251
  (exit $ac_status); } &&
 
21252
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21253
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21254
  (eval $ac_try) 2>&5
 
21255
  ac_status=$?
 
21256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21257
  (exit $ac_status); }; } &&
 
21258
         { ac_try='test -s conftest$ac_exeext'
 
21259
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21260
  (eval $ac_try) 2>&5
 
21261
  ac_status=$?
 
21262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21263
  (exit $ac_status); }; }; then
 
21264
  ac_cv_func__doprnt=yes
 
21265
else
 
21266
  echo "$as_me: failed program was:" >&5
 
21267
sed 's/^/| /' conftest.$ac_ext >&5
 
21268
 
 
21269
ac_cv_func__doprnt=no
 
21270
fi
 
21271
rm -f conftest.err conftest.$ac_objext \
 
21272
      conftest$ac_exeext conftest.$ac_ext
 
21273
fi
 
21274
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
 
21275
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
 
21276
if test $ac_cv_func__doprnt = yes; then
 
21277
 
 
21278
cat >>confdefs.h <<\_ACEOF
 
21279
#define HAVE_DOPRNT 1
 
21280
_ACEOF
 
21281
 
 
21282
fi
 
21283
 
 
21284
fi
 
21285
done
 
21286
 
 
21287
 
 
21288
 
 
21289
 
 
21290
 
 
21291
 
 
21292
 
 
21293
 
 
21294
 
 
21295
for ac_func in daemon flock getopt_long nanosleep strerror strncpy vsnprintf
 
21296
do
 
21297
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21298
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21299
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21300
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
21301
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21302
else
 
21303
  cat >conftest.$ac_ext <<_ACEOF
 
21304
/* confdefs.h.  */
 
21305
_ACEOF
 
21306
cat confdefs.h >>conftest.$ac_ext
 
21307
cat >>conftest.$ac_ext <<_ACEOF
 
21308
/* end confdefs.h.  */
 
21309
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21310
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21311
#define $ac_func innocuous_$ac_func
 
21312
 
 
21313
/* System header to define __stub macros and hopefully few prototypes,
 
21314
    which can conflict with char $ac_func (); below.
 
21315
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21316
    <limits.h> exists even on freestanding compilers.  */
 
21317
 
 
21318
#ifdef __STDC__
 
21319
# include <limits.h>
 
21320
#else
 
21321
# include <assert.h>
 
21322
#endif
 
21323
 
 
21324
#undef $ac_func
 
21325
 
 
21326
/* Override any gcc2 internal prototype to avoid an error.  */
 
21327
#ifdef __cplusplus
 
21328
extern "C"
 
21329
{
 
21330
#endif
 
21331
/* We use char because int might match the return type of a gcc2
 
21332
   builtin and then its argument prototype would still apply.  */
 
21333
char $ac_func ();
 
21334
/* The GNU C library defines this for functions which it implements
 
21335
    to always fail with ENOSYS.  Some functions are actually named
 
21336
    something starting with __ and the normal name is an alias.  */
 
21337
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
21338
choke me
 
21339
#else
 
21340
char (*f) () = $ac_func;
 
21341
#endif
 
21342
#ifdef __cplusplus
 
21343
}
 
21344
#endif
 
21345
 
 
21346
int
 
21347
main ()
 
21348
{
 
21349
return f != $ac_func;
 
21350
  ;
 
21351
  return 0;
 
21352
}
 
21353
_ACEOF
 
21354
rm -f conftest.$ac_objext conftest$ac_exeext
 
21355
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21356
  (eval $ac_link) 2>conftest.er1
 
21357
  ac_status=$?
 
21358
  grep -v '^ *+' conftest.er1 >conftest.err
 
21359
  rm -f conftest.er1
 
21360
  cat conftest.err >&5
 
21361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21362
  (exit $ac_status); } &&
 
21363
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21364
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21365
  (eval $ac_try) 2>&5
 
21366
  ac_status=$?
 
21367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21368
  (exit $ac_status); }; } &&
 
21369
         { ac_try='test -s conftest$ac_exeext'
 
21370
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21371
  (eval $ac_try) 2>&5
 
21372
  ac_status=$?
 
21373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21374
  (exit $ac_status); }; }; then
 
21375
  eval "$as_ac_var=yes"
 
21376
else
 
21377
  echo "$as_me: failed program was:" >&5
 
21378
sed 's/^/| /' conftest.$ac_ext >&5
 
21379
 
 
21380
eval "$as_ac_var=no"
 
21381
fi
 
21382
rm -f conftest.err conftest.$ac_objext \
 
21383
      conftest$ac_exeext conftest.$ac_ext
 
21384
fi
 
21385
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21386
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21387
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21388
  cat >>confdefs.h <<_ACEOF
 
21389
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21390
_ACEOF
 
21391
 
 
21392
fi
 
21393
done
 
21394
 
 
21395
 
 
21396
echo "$as_me:$LINENO: checking for inline" >&5
 
21397
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
21398
if test "${ac_cv_c_inline+set}" = set; then
 
21399
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21400
else
 
21401
  ac_cv_c_inline=no
 
21402
for ac_kw in inline __inline__ __inline; do
 
21403
  cat >conftest.$ac_ext <<_ACEOF
 
21404
/* confdefs.h.  */
 
21405
_ACEOF
 
21406
cat confdefs.h >>conftest.$ac_ext
 
21407
cat >>conftest.$ac_ext <<_ACEOF
 
21408
/* end confdefs.h.  */
 
21409
#ifndef __cplusplus
 
21410
typedef int foo_t;
 
21411
static $ac_kw foo_t static_foo () {return 0; }
 
21412
$ac_kw foo_t foo () {return 0; }
 
21413
#endif
 
21414
 
 
21415
_ACEOF
 
21416
rm -f conftest.$ac_objext
 
21417
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21418
  (eval $ac_compile) 2>conftest.er1
 
21419
  ac_status=$?
 
21420
  grep -v '^ *+' conftest.er1 >conftest.err
 
21421
  rm -f conftest.er1
 
21422
  cat conftest.err >&5
 
21423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21424
  (exit $ac_status); } &&
 
21425
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21426
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21427
  (eval $ac_try) 2>&5
 
21428
  ac_status=$?
 
21429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21430
  (exit $ac_status); }; } &&
 
21431
         { ac_try='test -s conftest.$ac_objext'
 
21432
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21433
  (eval $ac_try) 2>&5
 
21434
  ac_status=$?
 
21435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21436
  (exit $ac_status); }; }; then
 
21437
  ac_cv_c_inline=$ac_kw; break
 
21438
else
 
21439
  echo "$as_me: failed program was:" >&5
 
21440
sed 's/^/| /' conftest.$ac_ext >&5
 
21441
 
 
21442
fi
 
21443
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21444
done
 
21445
 
 
21446
fi
 
21447
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
21448
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
21449
 
 
21450
 
 
21451
case $ac_cv_c_inline in
 
21452
  inline | yes) ;;
 
21453
  *)
 
21454
    case $ac_cv_c_inline in
 
21455
      no) ac_val=;;
 
21456
      *) ac_val=$ac_cv_c_inline;;
 
21457
    esac
 
21458
    cat >>confdefs.h <<_ACEOF
 
21459
#ifndef __cplusplus
 
21460
#define inline $ac_val
 
21461
#endif
 
21462
_ACEOF
 
21463
    ;;
 
21464
esac
 
21465
 
 
21466
if test "$GCC" = "yes"; then
 
21467
        CFLAGS="-Wall -fno-common $CFLAGS"
 
21468
fi
 
21469
 
 
21470
 
 
21471
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
21472
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
21473
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
21474
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21475
else
 
21476
  ac_check_lib_save_LIBS=$LIBS
 
21477
LIBS="-ldl  $LIBS"
 
21478
cat >conftest.$ac_ext <<_ACEOF
 
21479
/* confdefs.h.  */
 
21480
_ACEOF
 
21481
cat confdefs.h >>conftest.$ac_ext
 
21482
cat >>conftest.$ac_ext <<_ACEOF
 
21483
/* end confdefs.h.  */
 
21484
 
 
21485
/* Override any gcc2 internal prototype to avoid an error.  */
 
21486
#ifdef __cplusplus
 
21487
extern "C"
 
21488
#endif
 
21489
/* We use char because int might match the return type of a gcc2
 
21490
   builtin and then its argument prototype would still apply.  */
 
21491
char dlopen ();
 
21492
int
 
21493
main ()
 
21494
{
 
21495
dlopen ();
 
21496
  ;
 
21497
  return 0;
 
21498
}
 
21499
_ACEOF
 
21500
rm -f conftest.$ac_objext conftest$ac_exeext
 
21501
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21502
  (eval $ac_link) 2>conftest.er1
 
21503
  ac_status=$?
 
21504
  grep -v '^ *+' conftest.er1 >conftest.err
 
21505
  rm -f conftest.er1
 
21506
  cat conftest.err >&5
 
21507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21508
  (exit $ac_status); } &&
 
21509
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21510
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21511
  (eval $ac_try) 2>&5
 
21512
  ac_status=$?
 
21513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21514
  (exit $ac_status); }; } &&
 
21515
         { ac_try='test -s conftest$ac_exeext'
 
21516
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21517
  (eval $ac_try) 2>&5
 
21518
  ac_status=$?
 
21519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21520
  (exit $ac_status); }; }; then
 
21521
  ac_cv_lib_dl_dlopen=yes
 
21522
else
 
21523
  echo "$as_me: failed program was:" >&5
 
21524
sed 's/^/| /' conftest.$ac_ext >&5
 
21525
 
 
21526
ac_cv_lib_dl_dlopen=no
 
21527
fi
 
21528
rm -f conftest.err conftest.$ac_objext \
 
21529
      conftest$ac_exeext conftest.$ac_ext
 
21530
LIBS=$ac_check_lib_save_LIBS
 
21531
fi
 
21532
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
21533
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
21534
if test $ac_cv_lib_dl_dlopen = yes; then
 
21535
  LIBDL="$LIBDL -ldl" ac_cv_func_dlopen_ldl=yes
 
21536
else
 
21537
  ac_cv_func_dlopen_ldl=no
 
21538
fi
 
21539
 
 
21540
 
 
21541
uname=`uname`
 
21542
case "$uname" in
 
21543
Darwin)
 
21544
        uname=MacOS
 
21545
        ;;
 
21546
esac
 
21547
 
 
21548
cat >>confdefs.h <<_ACEOF
 
21549
#define PCSC_ARCH "$uname"
 
21550
_ACEOF
 
21551
 
 
21552
 
 
21553
echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
 
21554
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
 
21555
if test "${ac_cv_lib_socket_socket+set}" = set; then
 
21556
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21557
else
 
21558
  ac_check_lib_save_LIBS=$LIBS
 
21559
LIBS="-lsocket  $LIBS"
 
21560
cat >conftest.$ac_ext <<_ACEOF
 
21561
/* confdefs.h.  */
 
21562
_ACEOF
 
21563
cat confdefs.h >>conftest.$ac_ext
 
21564
cat >>conftest.$ac_ext <<_ACEOF
 
21565
/* end confdefs.h.  */
 
21566
 
 
21567
/* Override any gcc2 internal prototype to avoid an error.  */
 
21568
#ifdef __cplusplus
 
21569
extern "C"
 
21570
#endif
 
21571
/* We use char because int might match the return type of a gcc2
 
21572
   builtin and then its argument prototype would still apply.  */
 
21573
char socket ();
 
21574
int
 
21575
main ()
 
21576
{
 
21577
socket ();
 
21578
  ;
 
21579
  return 0;
 
21580
}
 
21581
_ACEOF
 
21582
rm -f conftest.$ac_objext conftest$ac_exeext
 
21583
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21584
  (eval $ac_link) 2>conftest.er1
 
21585
  ac_status=$?
 
21586
  grep -v '^ *+' conftest.er1 >conftest.err
 
21587
  rm -f conftest.er1
 
21588
  cat conftest.err >&5
 
21589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21590
  (exit $ac_status); } &&
 
21591
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21592
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21593
  (eval $ac_try) 2>&5
 
21594
  ac_status=$?
 
21595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21596
  (exit $ac_status); }; } &&
 
21597
         { ac_try='test -s conftest$ac_exeext'
 
21598
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21599
  (eval $ac_try) 2>&5
 
21600
  ac_status=$?
 
21601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21602
  (exit $ac_status); }; }; then
 
21603
  ac_cv_lib_socket_socket=yes
 
21604
else
 
21605
  echo "$as_me: failed program was:" >&5
 
21606
sed 's/^/| /' conftest.$ac_ext >&5
 
21607
 
 
21608
ac_cv_lib_socket_socket=no
 
21609
fi
 
21610
rm -f conftest.err conftest.$ac_objext \
 
21611
      conftest$ac_exeext conftest.$ac_ext
 
21612
LIBS=$ac_check_lib_save_LIBS
 
21613
fi
 
21614
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
 
21615
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
 
21616
if test $ac_cv_lib_socket_socket = yes; then
 
21617
  LIBS="$LIBS -lsocket"
 
21618
fi
 
21619
 
 
21620
 
 
21621
 
 
21622
echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
 
21623
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
 
21624
if test "${ac_cv_lib_l_yywrap+set}" = set; then
 
21625
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21626
else
 
21627
  ac_check_lib_save_LIBS=$LIBS
 
21628
LIBS="-ll  $LIBS"
 
21629
cat >conftest.$ac_ext <<_ACEOF
 
21630
/* confdefs.h.  */
 
21631
_ACEOF
 
21632
cat confdefs.h >>conftest.$ac_ext
 
21633
cat >>conftest.$ac_ext <<_ACEOF
 
21634
/* end confdefs.h.  */
 
21635
 
 
21636
/* Override any gcc2 internal prototype to avoid an error.  */
 
21637
#ifdef __cplusplus
 
21638
extern "C"
 
21639
#endif
 
21640
/* We use char because int might match the return type of a gcc2
 
21641
   builtin and then its argument prototype would still apply.  */
 
21642
char yywrap ();
 
21643
int
 
21644
main ()
 
21645
{
 
21646
yywrap ();
 
21647
  ;
 
21648
  return 0;
 
21649
}
 
21650
_ACEOF
 
21651
rm -f conftest.$ac_objext conftest$ac_exeext
 
21652
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21653
  (eval $ac_link) 2>conftest.er1
 
21654
  ac_status=$?
 
21655
  grep -v '^ *+' conftest.er1 >conftest.err
 
21656
  rm -f conftest.er1
 
21657
  cat conftest.err >&5
 
21658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21659
  (exit $ac_status); } &&
 
21660
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21661
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21662
  (eval $ac_try) 2>&5
 
21663
  ac_status=$?
 
21664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21665
  (exit $ac_status); }; } &&
 
21666
         { ac_try='test -s conftest$ac_exeext'
 
21667
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21668
  (eval $ac_try) 2>&5
 
21669
  ac_status=$?
 
21670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21671
  (exit $ac_status); }; }; then
 
21672
  ac_cv_lib_l_yywrap=yes
 
21673
else
 
21674
  echo "$as_me: failed program was:" >&5
 
21675
sed 's/^/| /' conftest.$ac_ext >&5
 
21676
 
 
21677
ac_cv_lib_l_yywrap=no
 
21678
fi
 
21679
rm -f conftest.err conftest.$ac_objext \
 
21680
      conftest$ac_exeext conftest.$ac_ext
 
21681
LIBS=$ac_check_lib_save_LIBS
 
21682
fi
 
21683
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
 
21684
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
 
21685
if test $ac_cv_lib_l_yywrap = yes; then
 
21686
  LIBFL="$LIBFL -ll"
 
21687
else
 
21688
  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
 
21689
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
 
21690
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
 
21691
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21692
else
 
21693
  ac_check_lib_save_LIBS=$LIBS
 
21694
LIBS="-lfl  $LIBS"
 
21695
cat >conftest.$ac_ext <<_ACEOF
 
21696
/* confdefs.h.  */
 
21697
_ACEOF
 
21698
cat confdefs.h >>conftest.$ac_ext
 
21699
cat >>conftest.$ac_ext <<_ACEOF
 
21700
/* end confdefs.h.  */
 
21701
 
 
21702
/* Override any gcc2 internal prototype to avoid an error.  */
 
21703
#ifdef __cplusplus
 
21704
extern "C"
 
21705
#endif
 
21706
/* We use char because int might match the return type of a gcc2
 
21707
   builtin and then its argument prototype would still apply.  */
 
21708
char yywrap ();
 
21709
int
 
21710
main ()
 
21711
{
 
21712
yywrap ();
 
21713
  ;
 
21714
  return 0;
 
21715
}
 
21716
_ACEOF
 
21717
rm -f conftest.$ac_objext conftest$ac_exeext
 
21718
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21719
  (eval $ac_link) 2>conftest.er1
 
21720
  ac_status=$?
 
21721
  grep -v '^ *+' conftest.er1 >conftest.err
 
21722
  rm -f conftest.er1
 
21723
  cat conftest.err >&5
 
21724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21725
  (exit $ac_status); } &&
 
21726
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21728
  (eval $ac_try) 2>&5
 
21729
  ac_status=$?
 
21730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21731
  (exit $ac_status); }; } &&
 
21732
         { ac_try='test -s conftest$ac_exeext'
 
21733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21734
  (eval $ac_try) 2>&5
 
21735
  ac_status=$?
 
21736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21737
  (exit $ac_status); }; }; then
 
21738
  ac_cv_lib_fl_yywrap=yes
 
21739
else
 
21740
  echo "$as_me: failed program was:" >&5
 
21741
sed 's/^/| /' conftest.$ac_ext >&5
 
21742
 
 
21743
ac_cv_lib_fl_yywrap=no
 
21744
fi
 
21745
rm -f conftest.err conftest.$ac_objext \
 
21746
      conftest$ac_exeext conftest.$ac_ext
 
21747
LIBS=$ac_check_lib_save_LIBS
 
21748
fi
 
21749
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
 
21750
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
 
21751
if test $ac_cv_lib_fl_yywrap = yes; then
 
21752
  LIBFL="$LIBFL -lfl"
 
21753
fi
 
21754
 
 
21755
fi
 
21756
 
 
21757
 
 
21758
 
 
21759
# Check whether --enable-libusb or --disable-libusb was given.
 
21760
if test "${enable_libusb+set}" = set; then
 
21761
  enableval="$enable_libusb"
 
21762
 
 
21763
                case ${enableval} in
 
21764
                        "" | "yes" | "YES")
 
21765
                                ;;
 
21766
                        "no" | "NO")
 
21767
                                use_libusb=false
 
21768
                                ;;
 
21769
                        *)
 
21770
                                use_libusb=false
 
21771
                                libusb_prefix=${enableval}
 
21772
                                echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
 
21773
echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6
 
21774
if test "${ac_cv_lib_usb_usb_init+set}" = set; then
 
21775
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21776
else
 
21777
  ac_check_lib_save_LIBS=$LIBS
 
21778
LIBS="-lusb "-L${libusb_prefix}/lib" $LIBS"
 
21779
cat >conftest.$ac_ext <<_ACEOF
 
21780
/* confdefs.h.  */
 
21781
_ACEOF
 
21782
cat confdefs.h >>conftest.$ac_ext
 
21783
cat >>conftest.$ac_ext <<_ACEOF
 
21784
/* end confdefs.h.  */
 
21785
 
 
21786
/* Override any gcc2 internal prototype to avoid an error.  */
 
21787
#ifdef __cplusplus
 
21788
extern "C"
 
21789
#endif
 
21790
/* We use char because int might match the return type of a gcc2
 
21791
   builtin and then its argument prototype would still apply.  */
 
21792
char usb_init ();
 
21793
int
 
21794
main ()
 
21795
{
 
21796
usb_init ();
 
21797
  ;
 
21798
  return 0;
 
21799
}
 
21800
_ACEOF
 
21801
rm -f conftest.$ac_objext conftest$ac_exeext
 
21802
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21803
  (eval $ac_link) 2>conftest.er1
 
21804
  ac_status=$?
 
21805
  grep -v '^ *+' conftest.er1 >conftest.err
 
21806
  rm -f conftest.er1
 
21807
  cat conftest.err >&5
 
21808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21809
  (exit $ac_status); } &&
 
21810
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21811
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21812
  (eval $ac_try) 2>&5
 
21813
  ac_status=$?
 
21814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21815
  (exit $ac_status); }; } &&
 
21816
         { ac_try='test -s conftest$ac_exeext'
 
21817
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21818
  (eval $ac_try) 2>&5
 
21819
  ac_status=$?
 
21820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21821
  (exit $ac_status); }; }; then
 
21822
  ac_cv_lib_usb_usb_init=yes
 
21823
else
 
21824
  echo "$as_me: failed program was:" >&5
 
21825
sed 's/^/| /' conftest.$ac_ext >&5
 
21826
 
 
21827
ac_cv_lib_usb_usb_init=no
 
21828
fi
 
21829
rm -f conftest.err conftest.$ac_objext \
 
21830
      conftest$ac_exeext conftest.$ac_ext
 
21831
LIBS=$ac_check_lib_save_LIBS
 
21832
fi
 
21833
echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
 
21834
echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6
 
21835
if test $ac_cv_lib_usb_usb_init = yes; then
 
21836
  LIBUSB="$LIBUSB -lusb" use_libusb=true
 
21837
else
 
21838
   use_libusb=false
 
21839
fi
 
21840
 
 
21841
 
 
21842
for ac_header in ${libusb_prefix}/include/usb.h
 
21843
do
 
21844
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21845
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21846
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21847
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21848
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21849
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21850
fi
 
21851
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21852
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21853
else
 
21854
  # Is the header compilable?
 
21855
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21856
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
21857
cat >conftest.$ac_ext <<_ACEOF
 
21858
/* confdefs.h.  */
 
21859
_ACEOF
 
21860
cat confdefs.h >>conftest.$ac_ext
 
21861
cat >>conftest.$ac_ext <<_ACEOF
 
21862
/* end confdefs.h.  */
 
21863
$ac_includes_default
 
21864
#include <$ac_header>
 
21865
_ACEOF
 
21866
rm -f conftest.$ac_objext
 
21867
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21868
  (eval $ac_compile) 2>conftest.er1
 
21869
  ac_status=$?
 
21870
  grep -v '^ *+' conftest.er1 >conftest.err
 
21871
  rm -f conftest.er1
 
21872
  cat conftest.err >&5
 
21873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21874
  (exit $ac_status); } &&
 
21875
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21876
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21877
  (eval $ac_try) 2>&5
 
21878
  ac_status=$?
 
21879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21880
  (exit $ac_status); }; } &&
 
21881
         { ac_try='test -s conftest.$ac_objext'
 
21882
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21883
  (eval $ac_try) 2>&5
 
21884
  ac_status=$?
 
21885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21886
  (exit $ac_status); }; }; then
 
21887
  ac_header_compiler=yes
 
21888
else
 
21889
  echo "$as_me: failed program was:" >&5
 
21890
sed 's/^/| /' conftest.$ac_ext >&5
 
21891
 
 
21892
ac_header_compiler=no
 
21893
fi
 
21894
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21895
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21896
echo "${ECHO_T}$ac_header_compiler" >&6
 
21897
 
 
21898
# Is the header present?
 
21899
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21900
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
21901
cat >conftest.$ac_ext <<_ACEOF
 
21902
/* confdefs.h.  */
 
21903
_ACEOF
 
21904
cat confdefs.h >>conftest.$ac_ext
 
21905
cat >>conftest.$ac_ext <<_ACEOF
 
21906
/* end confdefs.h.  */
 
21907
#include <$ac_header>
 
21908
_ACEOF
 
21909
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21910
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
21911
  ac_status=$?
 
21912
  grep -v '^ *+' conftest.er1 >conftest.err
 
21913
  rm -f conftest.er1
 
21914
  cat conftest.err >&5
 
21915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21916
  (exit $ac_status); } >/dev/null; then
 
21917
  if test -s conftest.err; then
 
21918
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21919
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21920
  else
 
21921
    ac_cpp_err=
 
21922
  fi
 
21923
else
 
21924
  ac_cpp_err=yes
 
21925
fi
 
21926
if test -z "$ac_cpp_err"; then
 
21927
  ac_header_preproc=yes
 
21928
else
 
21929
  echo "$as_me: failed program was:" >&5
 
21930
sed 's/^/| /' conftest.$ac_ext >&5
 
21931
 
 
21932
  ac_header_preproc=no
 
21933
fi
 
21934
rm -f conftest.err conftest.$ac_ext
 
21935
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21936
echo "${ECHO_T}$ac_header_preproc" >&6
 
21937
 
 
21938
# So?  What about this header?
 
21939
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21940
  yes:no: )
 
21941
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21942
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21943
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21944
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21945
    ac_header_preproc=yes
 
21946
    ;;
 
21947
  no:yes:* )
 
21948
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21949
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21950
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21951
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21952
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21953
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21954
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21955
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21956
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21957
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21958
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21959
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21960
    (
 
21961
      cat <<\_ASBOX
 
21962
## ------------------------------------------ ##
 
21963
## Report this to the AC_PACKAGE_NAME lists.  ##
 
21964
## ------------------------------------------ ##
 
21965
_ASBOX
 
21966
    ) |
 
21967
      sed "s/^/$as_me: WARNING:     /" >&2
 
21968
    ;;
 
21969
esac
 
21970
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21971
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21972
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21973
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21974
else
 
21975
  eval "$as_ac_Header=\$ac_header_preproc"
 
21976
fi
 
21977
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21978
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21979
 
 
21980
fi
 
21981
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
21982
  cat >>confdefs.h <<_ACEOF
 
21983
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21984
_ACEOF
 
21985
  use_libusb=true
 
21986
else
 
21987
   use_libusb=false
 
21988
fi
 
21989
 
 
21990
done
 
21991
 
 
21992
                                if test x$use_libusb = xtrue; then
 
21993
                                        CPPFLAGS="$CPPFLAGS -I${libusb_prefix}/include"
 
21994
                                        LDFLAGS="$LDFLAGS -L${libusb_prefix}/lib"
 
21995
                                fi
 
21996
                                ;;
 
21997
                esac
 
21998
 
 
21999
 
 
22000
fi;
 
22001
 
 
22002
if test x$use_libusb = x; then
 
22003
 
 
22004
for ac_header in usb.h
 
22005
do
 
22006
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22007
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22008
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22009
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22010
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22011
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22012
fi
 
22013
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22014
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22015
else
 
22016
  # Is the header compilable?
 
22017
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22018
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
22019
cat >conftest.$ac_ext <<_ACEOF
 
22020
/* confdefs.h.  */
 
22021
_ACEOF
 
22022
cat confdefs.h >>conftest.$ac_ext
 
22023
cat >>conftest.$ac_ext <<_ACEOF
 
22024
/* end confdefs.h.  */
 
22025
$ac_includes_default
 
22026
#include <$ac_header>
 
22027
_ACEOF
 
22028
rm -f conftest.$ac_objext
 
22029
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22030
  (eval $ac_compile) 2>conftest.er1
 
22031
  ac_status=$?
 
22032
  grep -v '^ *+' conftest.er1 >conftest.err
 
22033
  rm -f conftest.er1
 
22034
  cat conftest.err >&5
 
22035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22036
  (exit $ac_status); } &&
 
22037
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22038
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22039
  (eval $ac_try) 2>&5
 
22040
  ac_status=$?
 
22041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22042
  (exit $ac_status); }; } &&
 
22043
         { ac_try='test -s conftest.$ac_objext'
 
22044
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22045
  (eval $ac_try) 2>&5
 
22046
  ac_status=$?
 
22047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22048
  (exit $ac_status); }; }; then
 
22049
  ac_header_compiler=yes
 
22050
else
 
22051
  echo "$as_me: failed program was:" >&5
 
22052
sed 's/^/| /' conftest.$ac_ext >&5
 
22053
 
 
22054
ac_header_compiler=no
 
22055
fi
 
22056
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22057
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22058
echo "${ECHO_T}$ac_header_compiler" >&6
 
22059
 
 
22060
# Is the header present?
 
22061
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22062
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
22063
cat >conftest.$ac_ext <<_ACEOF
 
22064
/* confdefs.h.  */
 
22065
_ACEOF
 
22066
cat confdefs.h >>conftest.$ac_ext
 
22067
cat >>conftest.$ac_ext <<_ACEOF
 
22068
/* end confdefs.h.  */
 
22069
#include <$ac_header>
 
22070
_ACEOF
 
22071
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
22072
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
22073
  ac_status=$?
 
22074
  grep -v '^ *+' conftest.er1 >conftest.err
 
22075
  rm -f conftest.er1
 
22076
  cat conftest.err >&5
 
22077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22078
  (exit $ac_status); } >/dev/null; then
 
22079
  if test -s conftest.err; then
 
22080
    ac_cpp_err=$ac_c_preproc_warn_flag
 
22081
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
22082
  else
 
22083
    ac_cpp_err=
 
22084
  fi
 
22085
else
 
22086
  ac_cpp_err=yes
 
22087
fi
 
22088
if test -z "$ac_cpp_err"; then
 
22089
  ac_header_preproc=yes
 
22090
else
 
22091
  echo "$as_me: failed program was:" >&5
 
22092
sed 's/^/| /' conftest.$ac_ext >&5
 
22093
 
 
22094
  ac_header_preproc=no
 
22095
fi
 
22096
rm -f conftest.err conftest.$ac_ext
 
22097
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22098
echo "${ECHO_T}$ac_header_preproc" >&6
 
22099
 
 
22100
# So?  What about this header?
 
22101
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22102
  yes:no: )
 
22103
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22104
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22105
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22106
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22107
    ac_header_preproc=yes
 
22108
    ;;
 
22109
  no:yes:* )
 
22110
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22111
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22112
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22113
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22114
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22115
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22116
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22117
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22118
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22119
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22120
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22121
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22122
    (
 
22123
      cat <<\_ASBOX
 
22124
## ------------------------------------------ ##
 
22125
## Report this to the AC_PACKAGE_NAME lists.  ##
 
22126
## ------------------------------------------ ##
 
22127
_ASBOX
 
22128
    ) |
 
22129
      sed "s/^/$as_me: WARNING:     /" >&2
 
22130
    ;;
 
22131
esac
 
22132
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22133
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22134
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22135
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22136
else
 
22137
  eval "$as_ac_Header=\$ac_header_preproc"
 
22138
fi
 
22139
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22140
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22141
 
 
22142
fi
 
22143
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
22144
  cat >>confdefs.h <<_ACEOF
 
22145
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22146
_ACEOF
 
22147
  use_libusb=true
 
22148
else
 
22149
   use_libusb=false
 
22150
fi
 
22151
 
 
22152
done
 
22153
 
 
22154
        echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
 
22155
echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6
 
22156
if test "${ac_cv_lib_usb_usb_init+set}" = set; then
 
22157
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22158
else
 
22159
  ac_check_lib_save_LIBS=$LIBS
 
22160
LIBS="-lusb  $LIBS"
 
22161
cat >conftest.$ac_ext <<_ACEOF
 
22162
/* confdefs.h.  */
 
22163
_ACEOF
 
22164
cat confdefs.h >>conftest.$ac_ext
 
22165
cat >>conftest.$ac_ext <<_ACEOF
 
22166
/* end confdefs.h.  */
 
22167
 
 
22168
/* Override any gcc2 internal prototype to avoid an error.  */
 
22169
#ifdef __cplusplus
 
22170
extern "C"
 
22171
#endif
 
22172
/* We use char because int might match the return type of a gcc2
 
22173
   builtin and then its argument prototype would still apply.  */
 
22174
char usb_init ();
 
22175
int
 
22176
main ()
 
22177
{
 
22178
usb_init ();
 
22179
  ;
 
22180
  return 0;
 
22181
}
 
22182
_ACEOF
 
22183
rm -f conftest.$ac_objext conftest$ac_exeext
 
22184
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22185
  (eval $ac_link) 2>conftest.er1
 
22186
  ac_status=$?
 
22187
  grep -v '^ *+' conftest.er1 >conftest.err
 
22188
  rm -f conftest.er1
 
22189
  cat conftest.err >&5
 
22190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22191
  (exit $ac_status); } &&
 
22192
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22193
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22194
  (eval $ac_try) 2>&5
 
22195
  ac_status=$?
 
22196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22197
  (exit $ac_status); }; } &&
 
22198
         { ac_try='test -s conftest$ac_exeext'
 
22199
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22200
  (eval $ac_try) 2>&5
 
22201
  ac_status=$?
 
22202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22203
  (exit $ac_status); }; }; then
 
22204
  ac_cv_lib_usb_usb_init=yes
 
22205
else
 
22206
  echo "$as_me: failed program was:" >&5
 
22207
sed 's/^/| /' conftest.$ac_ext >&5
 
22208
 
 
22209
ac_cv_lib_usb_usb_init=no
 
22210
fi
 
22211
rm -f conftest.err conftest.$ac_objext \
 
22212
      conftest$ac_exeext conftest.$ac_ext
 
22213
LIBS=$ac_check_lib_save_LIBS
 
22214
fi
 
22215
echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
 
22216
echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6
 
22217
if test $ac_cv_lib_usb_usb_init = yes; then
 
22218
  LIBUSB="$LIBUSB -lusb" use_libusb=true
 
22219
else
 
22220
   use_libusb=false
 
22221
fi
 
22222
 
 
22223
fi
 
22224
 
 
22225
echo "$as_me:$LINENO: result: enable libusb support         : $use_libusb" >&5
 
22226
echo "${ECHO_T}enable libusb support         : $use_libusb" >&6
 
22227
 
 
22228
 
 
22229
 
 
22230
if test x$use_libusb = xtrue; then
 
22231
  PCSC_USE_LIBUSB_TRUE=
 
22232
  PCSC_USE_LIBUSB_FALSE='#'
 
22233
else
 
22234
  PCSC_USE_LIBUSB_TRUE='#'
 
22235
  PCSC_USE_LIBUSB_FALSE=
 
22236
fi
 
22237
 
 
22238
if test x$use_libusb = xtrue; then
 
22239
 
 
22240
cat >>confdefs.h <<\_ACEOF
 
22241
#define HAVE_LIBUSB 1
 
22242
_ACEOF
 
22243
 
 
22244
fi
 
22245
 
 
22246
# Check whether --enable-usbdropdir or --disable-usbdropdir was given.
 
22247
if test "${enable_usbdropdir+set}" = set; then
 
22248
  enableval="$enable_usbdropdir"
 
22249
  usbdropdir="${enableval}"
 
22250
else
 
22251
  usbdropdir=false
 
22252
fi;
 
22253
if test x${usbdropdir} = xfalse ; then
 
22254
        usbdropdir="/usr/local/pcsc/drivers"
 
22255
fi
 
22256
echo "$as_me:$LINENO: result: enable USB drop directory     : $usbdropdir" >&5
 
22257
echo "${ECHO_T}enable USB drop directory     : $usbdropdir" >&6
 
22258
 
 
22259
cat >>confdefs.h <<_ACEOF
 
22260
#define PCSCLITE_HP_DROPDIR "$usbdropdir"
 
22261
_ACEOF
6166
22262
 
6167
22263
 
6168
22264
# Check whether --enable-debug or --disable-debug was given.
6169
22265
if test "${enable_debug+set}" = set; then
6170
22266
  enableval="$enable_debug"
6171
22267
   case "${enableval}" in
6172
 
  yes)  
 
22268
  yes)
6173
22269
    debug=true ;;
6174
 
  no)   
 
22270
  no)
6175
22271
    debug=false ;;
6176
 
  *) { echo "configure: error: bad value ${enableval} for --enable-debug" 1>&2; exit 1; } ;;
 
22272
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
 
22273
echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
 
22274
   { (exit 1); exit 1; }; } ;;
6177
22275
 esac
6178
22276
else
6179
 
  debug=false
6180
 
fi
6181
 
 
6182
 
 
6183
 
echo "$ac_t""enable debug messages      : $debug" 1>&6
 
22277
  debug=true
 
22278
fi;
 
22279
 
 
22280
echo "$as_me:$LINENO: result: enable debug messages         : $debug" >&5
 
22281
echo "${ECHO_T}enable debug messages         : $debug" >&6
6184
22282
 
6185
22283
if test x${debug} = xtrue ; then
6186
 
  cat >> confdefs.h <<\EOF
 
22284
 
 
22285
cat >>confdefs.h <<\_ACEOF
6187
22286
#define PCSC_DEBUG 1
6188
 
EOF
 
22287
_ACEOF
 
22288
 
 
22289
 
 
22290
cat >>confdefs.h <<\_ACEOF
 
22291
#define MSC_DEBUG 1
 
22292
_ACEOF
6189
22293
 
6190
22294
fi
6191
22295
 
6192
 
 
6193
22296
# Check whether --enable-debugatr or --disable-debugatr was given.
6194
22297
if test "${enable_debugatr+set}" = set; then
6195
22298
  enableval="$enable_debugatr"
6196
22299
   case "${enableval}" in
6197
22300
  yes)  debugatr=true ;;
6198
22301
  no)   debugatr=false ;;
6199
 
  *) { echo "configure: error: bad value ${enableval} for --enable-debugatr" 1>&2; exit 1; } ;;
 
22302
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debugatr" >&5
 
22303
echo "$as_me: error: bad value ${enableval} for --enable-debugatr" >&2;}
 
22304
   { (exit 1); exit 1; }; } ;;
6200
22305
esac
6201
22306
else
6202
22307
  debugatr=false
6203
 
fi
6204
 
 
6205
 
 
6206
 
echo "$ac_t""enable ATR parsing messages: $debugatr" 1>&6
 
22308
fi;
 
22309
 
 
22310
echo "$as_me:$LINENO: result: enable ATR parsing messages   : $debugatr" >&5
 
22311
echo "${ECHO_T}enable ATR parsing messages   : $debugatr" >&6
6207
22312
 
6208
22313
if test x${debugatr} = xtrue ; then
6209
 
  cat >> confdefs.h <<\EOF
 
22314
 
 
22315
cat >>confdefs.h <<\_ACEOF
6210
22316
#define ATR_DEBUG 1
6211
 
EOF
6212
 
 
6213
 
fi
6214
 
 
6215
 
# Check whether --enable-syslog or --disable-syslog was given.
6216
 
if test "${enable_syslog+set}" = set; then
6217
 
  enableval="$enable_syslog"
6218
 
  case "${enableval}" in
6219
 
  yes)  syslog=true ;;
6220
 
  no)   syslog=false ;;
6221
 
  *) { echo "configure: error: bad value ${enableval} for --enable-syslog" 1>&2; exit 1; } ;;
6222
 
 esac
6223
 
else
6224
 
  syslog=false
6225
 
fi
6226
 
 
6227
 
 
6228
 
echo "$ac_t""enable debug out to syslog : $syslog" 1>&6
6229
 
 
6230
 
if test x${syslog} = xtrue ; then
6231
 
  cat >> confdefs.h <<\EOF
6232
 
#define USE_SYSLOG 1
6233
 
EOF
6234
 
 
6235
 
fi
6236
 
 
6237
 
 
6238
 
# Check whether --enable-daemon or --disable-daemon was given.
6239
 
if test "${enable_daemon+set}" = set; then
6240
 
  enableval="$enable_daemon"
6241
 
  case "${enableval}" in
6242
 
  yes)  daemon=true ;;
6243
 
  no)   daemon=false ;;
6244
 
  *) { echo "configure: error: bad value ${enableval} for --enable-daemon" 1>&2; exit 1; } ;;
6245
 
 esac
6246
 
else
6247
 
  daemon=false
6248
 
fi
6249
 
 
6250
 
 
6251
 
echo "$ac_t""enable pcscd forked daemon : $daemon" 1>&6
6252
 
 
6253
 
if test x${daemon} = xtrue ; then
6254
 
  cat >> confdefs.h <<\EOF
6255
 
#define USE_DAEMON 1
6256
 
EOF
6257
 
 
6258
 
fi
 
22317
_ACEOF
 
22318
 
 
22319
fi
 
22320
 
 
22321
# Check whether --enable-scf or --disable-scf was given.
 
22322
if test "${enable_scf+set}" = set; then
 
22323
  enableval="$enable_scf"
 
22324
   case "${enableval}" in
 
22325
  yes)  scf=true ;;
 
22326
  no)   scf=false ;;
 
22327
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-scf" >&5
 
22328
echo "$as_me: error: bad value ${enableval} for --enable-scf" >&2;}
 
22329
   { (exit 1); exit 1; }; } ;;
 
22330
esac
 
22331
else
 
22332
  scf=false
 
22333
fi;
 
22334
 
 
22335
 
 
22336
if test x$scf = xtrue -a x$ac_cv_header_smartcard_scf_h = xyes; then
 
22337
  echo "$as_me:$LINENO: checking for SCF_strerror in -lsmartcard" >&5
 
22338
echo $ECHO_N "checking for SCF_strerror in -lsmartcard... $ECHO_C" >&6
 
22339
if test "${ac_cv_lib_smartcard_SCF_strerror+set}" = set; then
 
22340
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22341
else
 
22342
  ac_check_lib_save_LIBS=$LIBS
 
22343
LIBS="-lsmartcard  $LIBS"
 
22344
cat >conftest.$ac_ext <<_ACEOF
 
22345
/* confdefs.h.  */
 
22346
_ACEOF
 
22347
cat confdefs.h >>conftest.$ac_ext
 
22348
cat >>conftest.$ac_ext <<_ACEOF
 
22349
/* end confdefs.h.  */
 
22350
 
 
22351
/* Override any gcc2 internal prototype to avoid an error.  */
 
22352
#ifdef __cplusplus
 
22353
extern "C"
 
22354
#endif
 
22355
/* We use char because int might match the return type of a gcc2
 
22356
   builtin and then its argument prototype would still apply.  */
 
22357
char SCF_strerror ();
 
22358
int
 
22359
main ()
 
22360
{
 
22361
SCF_strerror ();
 
22362
  ;
 
22363
  return 0;
 
22364
}
 
22365
_ACEOF
 
22366
rm -f conftest.$ac_objext conftest$ac_exeext
 
22367
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22368
  (eval $ac_link) 2>conftest.er1
 
22369
  ac_status=$?
 
22370
  grep -v '^ *+' conftest.er1 >conftest.err
 
22371
  rm -f conftest.er1
 
22372
  cat conftest.err >&5
 
22373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22374
  (exit $ac_status); } &&
 
22375
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22376
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22377
  (eval $ac_try) 2>&5
 
22378
  ac_status=$?
 
22379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22380
  (exit $ac_status); }; } &&
 
22381
         { ac_try='test -s conftest$ac_exeext'
 
22382
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22383
  (eval $ac_try) 2>&5
 
22384
  ac_status=$?
 
22385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22386
  (exit $ac_status); }; }; then
 
22387
  ac_cv_lib_smartcard_SCF_strerror=yes
 
22388
else
 
22389
  echo "$as_me: failed program was:" >&5
 
22390
sed 's/^/| /' conftest.$ac_ext >&5
 
22391
 
 
22392
ac_cv_lib_smartcard_SCF_strerror=no
 
22393
fi
 
22394
rm -f conftest.err conftest.$ac_objext \
 
22395
      conftest$ac_exeext conftest.$ac_ext
 
22396
LIBS=$ac_check_lib_save_LIBS
 
22397
fi
 
22398
echo "$as_me:$LINENO: result: $ac_cv_lib_smartcard_SCF_strerror" >&5
 
22399
echo "${ECHO_T}$ac_cv_lib_smartcard_SCF_strerror" >&6
 
22400
if test $ac_cv_lib_smartcard_SCF_strerror = yes; then
 
22401
  LIBSMARTCARD="$LIBSMARTCARD -lsmartcard" scf=true
 
22402
else
 
22403
  scf=false
 
22404
fi
 
22405
 
 
22406
else
 
22407
  scf=false
 
22408
fi
 
22409
echo "$as_me:$LINENO: result: enable SCF reader support     : $scf" >&5
 
22410
echo "${ECHO_T}enable SCF reader support     : $scf" >&6
 
22411
 
 
22412
 
 
22413
if test x$scf = xtrue; then
 
22414
  HAVE_SCF_TRUE=
 
22415
  HAVE_SCF_FALSE='#'
 
22416
else
 
22417
  HAVE_SCF_TRUE='#'
 
22418
  HAVE_SCF_FALSE=
 
22419
fi
 
22420
 
 
22421
 
 
22422
# Check whether --enable-musclecard or --disable-musclecard was given.
 
22423
if test "${enable_musclecard+set}" = set; then
 
22424
  enableval="$enable_musclecard"
 
22425
  case "${enableval}" in
 
22426
  yes)  musclecard=true ;;
 
22427
  no)   musclecard=false ;;
 
22428
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-musclecard" >&5
 
22429
echo "$as_me: error: bad value ${enableval} for --disable-musclecard" >&2;}
 
22430
   { (exit 1); exit 1; }; } ;;
 
22431
 esac
 
22432
else
 
22433
  musclecard=true
 
22434
fi;
 
22435
 
 
22436
echo "$as_me:$LINENO: result: enable MuscleCard             : $musclecard" >&5
 
22437
echo "${ECHO_T}enable MuscleCard             : $musclecard" >&6
 
22438
 
 
22439
 
 
22440
 
 
22441
if test x$musclecard = xtrue; then
 
22442
  HAVE_MUSCLECARD_TRUE=
 
22443
  HAVE_MUSCLECARD_FALSE='#'
 
22444
else
 
22445
  HAVE_MUSCLECARD_TRUE='#'
 
22446
  HAVE_MUSCLECARD_FALSE=
 
22447
fi
 
22448
 
 
22449
 
 
22450
# Check whether --enable-muscledropdir or --disable-muscledropdir was given.
 
22451
if test "${enable_muscledropdir+set}" = set; then
 
22452
  enableval="$enable_muscledropdir"
 
22453
  muscledropdir="${enableval}"
 
22454
else
 
22455
  muscledropdir=false
 
22456
fi;
 
22457
if test x${muscledropdir} = xfalse ; then
 
22458
        muscledropdir="/usr/local/pcsc/services"
 
22459
fi
 
22460
echo "$as_me:$LINENO: result: enable MuscleCard bundles dir : $muscledropdir" >&5
 
22461
echo "${ECHO_T}enable MuscleCard bundles dir : $muscledropdir" >&6
 
22462
 
 
22463
cat >>confdefs.h <<_ACEOF
 
22464
#define MSC_SVC_DROPDIR "$muscledropdir"
 
22465
_ACEOF
6259
22466
 
6260
22467
 
6261
22468
# Check whether --enable-confdir or --disable-confdir was given.
6264
22471
  confdir="${enableval}"
6265
22472
else
6266
22473
  confdir=false
6267
 
fi
6268
 
 
 
22474
fi;
6269
22475
 
6270
22476
if test x${confdir} != xfalse ; then
6271
 
        echo "$ac_t""enable confdir             : $confdir" 1>&6
6272
 
 
6273
 
        cat >> confdefs.h <<EOF
 
22477
        echo "$as_me:$LINENO: result: enable confdir                : $confdir" >&5
 
22478
echo "${ECHO_T}enable confdir                : $confdir" >&6
 
22479
 
 
22480
 
 
22481
cat >>confdefs.h <<_ACEOF
6274
22482
#define USE_READER_CONF "$confdir"
6275
 
EOF
 
22483
_ACEOF
6276
22484
 
6277
22485
else
6278
 
        echo "$ac_t""enable confdir             : /etc (default)" 1>&6
 
22486
        confdir="/etc"
 
22487
        echo "$as_me:$LINENO: result: enable confdir                : /etc (default)" >&5
 
22488
echo "${ECHO_T}enable confdir                : /etc (default)" >&6
6279
22489
fi
6280
22490
 
6281
 
 
6282
22491
# Check whether --enable-runpid or --disable-runpid was given.
6283
22492
if test "${enable_runpid+set}" = set; then
6284
22493
  enableval="$enable_runpid"
6285
22494
  runpid="${enableval}"
6286
22495
else
6287
22496
  runpid=false
6288
 
fi
6289
 
 
6290
 
 
6291
 
echo "$ac_t""enable runpid              : $runpid" 1>&6
 
22497
fi;
 
22498
 
 
22499
echo "$as_me:$LINENO: result: enable runpid                 : $runpid" >&5
 
22500
echo "${ECHO_T}enable runpid                 : $runpid" >&6
6292
22501
 
6293
22502
if test x${runpid} != xfalse ; then
6294
 
        cat >> confdefs.h <<EOF
 
22503
 
 
22504
cat >>confdefs.h <<_ACEOF
6295
22505
#define USE_RUN_PID "$runpid"
6296
 
EOF
6297
 
 
6298
 
fi
6299
 
 
 
22506
_ACEOF
 
22507
 
 
22508
fi
 
22509
 
 
22510
# Check whether --enable-ipcdir or --disable-ipcdir was given.
 
22511
if test "${enable_ipcdir+set}" = set; then
 
22512
  enableval="$enable_ipcdir"
 
22513
  ipcdir="${enableval}"
 
22514
else
 
22515
  ipcdir=false
 
22516
fi;
 
22517
 
 
22518
if test x${ipcdir} != xfalse ; then
 
22519
        echo "$as_me:$LINENO: result: enable ipcdir                 : $ipcdir" >&5
 
22520
echo "${ECHO_T}enable ipcdir                 : $ipcdir" >&6
 
22521
 
 
22522
 
 
22523
cat >>confdefs.h <<_ACEOF
 
22524
#define USE_IPCDIR "$ipcdir"
 
22525
_ACEOF
 
22526
 
 
22527
else
 
22528
        echo "$as_me:$LINENO: result: enable ipcdir                 : /var/run (default)" >&5
 
22529
echo "${ECHO_T}enable ipcdir                 : /var/run (default)" >&6
 
22530
fi
 
22531
 
 
22532
echo "$as_me:$LINENO: result: enable threadsafe client      : $threadsafe" >&5
 
22533
echo "${ECHO_T}enable threadsafe client      : $threadsafe" >&6
 
22534
 
 
22535
 
 
22536
if test x$threadsafe = xtrue; then
 
22537
  PCSC_THR_SAFE_TRUE=
 
22538
  PCSC_THR_SAFE_FALSE='#'
 
22539
else
 
22540
  PCSC_THR_SAFE_TRUE='#'
 
22541
  PCSC_THR_SAFE_FALSE=
 
22542
fi
 
22543
 
 
22544
 
 
22545
# Check whether --enable-extendedapdu or --disable-extendedapdu was given.
 
22546
if test "${enable_extendedapdu+set}" = set; then
 
22547
  enableval="$enable_extendedapdu"
 
22548
   case "${enableval}" in
 
22549
                yes) extendedapdu=true ;;
 
22550
                no) extendedapdu=false ;;
 
22551
                *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-extendedapdu" >&5
 
22552
echo "$as_me: error: bad value ${enableval} for --enable-extendedapdu" >&2;}
 
22553
   { (exit 1); exit 1; }; } ;;
 
22554
        esac
 
22555
else
 
22556
  extendedapdu=false
 
22557
fi;
 
22558
 
 
22559
echo "$as_me:$LINENO: result: enable extended APDU          : $extendedapdu" >&5
 
22560
echo "${ECHO_T}enable extended APDU          : $extendedapdu" >&6
 
22561
 
 
22562
if test x${extendedapdu} = xtrue ; then
 
22563
  extended_apdu="#define PCSCLITE_ENHANCED_MESSAGING"
 
22564
else
 
22565
  extended_apdu="#undef PCSCLITE_ENHANCED_MESSAGING"
 
22566
fi
6300
22567
 
6301
22568
if test x${threadsafe} = xtrue ; then
6302
 
  echo "$ac_t""NOTE :: You must link pthread libraries with your app." 1>&6
6303
 
  cat >> confdefs.h <<\EOF
 
22569
  echo "$as_me:$LINENO: result: NOTE :: You must link pthread libraries with your app." >&5
 
22570
echo "${ECHO_T}NOTE :: You must link pthread libraries with your app." >&6
 
22571
 
 
22572
cat >>confdefs.h <<\_ACEOF
6304
22573
#define USE_THREAD_SAFETY 1
6305
 
EOF
 
22574
_ACEOF
6306
22575
 
6307
22576
fi
6308
22577
 
6309
 
trap '' 1 2 15
6310
 
cat > confcache <<\EOF
 
22578
CPPFLAGS="-I\${top_srcdir}/src $CPPFLAGS"
 
22579
 
 
22580
 
 
22581
 
 
22582
 
 
22583
 
 
22584
 
 
22585
 
 
22586
                                                                                                                                                      ac_config_files="$ac_config_files Makefile aclocal/Makefile doc/Makefile doc/bundleTool.8 doc/pcscd.8 doc/reader.conf.5 doc/example/Makefile etc/Makefile etc/reader.conf src/Makefile src/libmusclecard.pc src/libpcsclite.pc src/pcsclite.h src/utils/Makefile win32/Makefile"
 
22587
cat >confcache <<\_ACEOF
6311
22588
# This file is a shell script that caches the results of configure
6312
22589
# tests run on this system so they can be shared between configure
6313
 
# scripts and configure runs.  It is not useful on other systems.
6314
 
# If it contains results you don't want to keep, you may remove or edit it.
6315
 
#
6316
 
# By default, configure uses ./config.cache as the cache file,
6317
 
# creating it if it does not exist already.  You can give configure
6318
 
# the --cache-file=FILE option to use a different cache file; that is
6319
 
# what configure does when it calls configure scripts in
6320
 
# subdirectories, so they share the cache.
6321
 
# Giving --cache-file=/dev/null disables caching, for debugging configure.
6322
 
# config.status only pays attention to the cache file if you give it the
6323
 
# --recheck option to rerun configure.
6324
 
#
6325
 
EOF
 
22590
# scripts and configure runs, see configure's option --config-cache.
 
22591
# It is not useful on other systems.  If it contains results you don't
 
22592
# want to keep, you may remove or edit it.
 
22593
#
 
22594
# config.status only pays attention to the cache file if you give it
 
22595
# the --recheck option to rerun configure.
 
22596
#
 
22597
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
22598
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
22599
# following values.
 
22600
 
 
22601
_ACEOF
 
22602
 
6326
22603
# The following way of writing the cache mishandles newlines in values,
6327
22604
# but we know of no workaround that is simple, portable, and efficient.
6328
22605
# So, don't put newlines in cache variables' values.
6329
22606
# Ultrix sh set writes to stderr and can't be redirected directly,
6330
22607
# and sets the high bit in the cache file unless we assign to the vars.
6331
 
(set) 2>&1 |
6332
 
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
6333
 
  *ac_space=\ *)
6334
 
    # `set' does not quote correctly, so add quotes (double-quote substitution
6335
 
    # turns \\\\ into \\, and sed turns \\ into \).
6336
 
    sed -n \
6337
 
      -e "s/'/'\\\\''/g" \
6338
 
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6339
 
    ;;
6340
 
  *)
6341
 
    # `set' quotes correctly as required by POSIX, so do not add quotes.
6342
 
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6343
 
    ;;
6344
 
  esac >> confcache
6345
 
if cmp -s $cache_file confcache; then
6346
 
  :
6347
 
else
 
22608
{
 
22609
  (set) 2>&1 |
 
22610
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
22611
    *ac_space=\ *)
 
22612
      # `set' does not quote correctly, so add quotes (double-quote
 
22613
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
22614
      sed -n \
 
22615
        "s/'/'\\\\''/g;
 
22616
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
22617
      ;;
 
22618
    *)
 
22619
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
22620
      sed -n \
 
22621
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
22622
      ;;
 
22623
    esac;
 
22624
} |
 
22625
  sed '
 
22626
     t clear
 
22627
     : clear
 
22628
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
22629
     t end
 
22630
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
22631
     : end' >>confcache
 
22632
if diff $cache_file confcache >/dev/null 2>&1; then :; else
6348
22633
  if test -w $cache_file; then
6349
 
    echo "updating cache $cache_file"
6350
 
    cat confcache > $cache_file
 
22634
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
22635
    cat confcache >$cache_file
6351
22636
  else
6352
22637
    echo "not updating unwritable cache $cache_file"
6353
22638
  fi
6354
22639
fi
6355
22640
rm -f confcache
6356
22641
 
6357
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6358
 
 
6359
22642
test "x$prefix" = xNONE && prefix=$ac_default_prefix
6360
22643
# Let make expand exec_prefix.
6361
22644
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6362
22645
 
6363
 
# Any assignment to VPATH causes Sun make to only execute
6364
 
# the first set of double-colon rules, so remove it if not needed.
6365
 
# If there is a colon in the path, we need to keep it.
 
22646
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
22647
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
22648
# trailing colons and then remove the whole line if VPATH becomes empty
 
22649
# (actually we leave an empty line to preserve line numbers).
6366
22650
if test "x$srcdir" = x.; then
6367
 
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
22651
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
22652
s/:*\$(srcdir):*/:/;
 
22653
s/:*\${srcdir}:*/:/;
 
22654
s/:*@srcdir@:*/:/;
 
22655
s/^\([^=]*=[     ]*\):*/\1/;
 
22656
s/:*$//;
 
22657
s/^[^=]*=[       ]*$//;
 
22658
}'
6368
22659
fi
6369
22660
 
6370
 
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6371
 
 
6372
22661
DEFS=-DHAVE_CONFIG_H
6373
22662
 
6374
 
# Without the "./", some shells look in PATH for config.status.
 
22663
ac_libobjs=
 
22664
ac_ltlibobjs=
 
22665
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
22666
  # 1. Remove the extension, and $U if already installed.
 
22667
  ac_i=`echo "$ac_i" |
 
22668
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
22669
  # 2. Add them.
 
22670
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
22671
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
22672
done
 
22673
LIBOBJS=$ac_libobjs
 
22674
 
 
22675
LTLIBOBJS=$ac_ltlibobjs
 
22676
 
 
22677
 
 
22678
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
22679
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
22680
Usually this means the macro was only invoked conditionally." >&5
 
22681
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
22682
Usually this means the macro was only invoked conditionally." >&2;}
 
22683
   { (exit 1); exit 1; }; }
 
22684
fi
 
22685
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
22686
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
22687
Usually this means the macro was only invoked conditionally." >&5
 
22688
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
22689
Usually this means the macro was only invoked conditionally." >&2;}
 
22690
   { (exit 1); exit 1; }; }
 
22691
fi
 
22692
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
22693
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
22694
Usually this means the macro was only invoked conditionally." >&5
 
22695
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
22696
Usually this means the macro was only invoked conditionally." >&2;}
 
22697
   { (exit 1); exit 1; }; }
 
22698
fi
 
22699
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
22700
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
22701
Usually this means the macro was only invoked conditionally." >&5
 
22702
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
22703
Usually this means the macro was only invoked conditionally." >&2;}
 
22704
   { (exit 1); exit 1; }; }
 
22705
fi
 
22706
if test -z "${PCSC_USE_LIBUSB_TRUE}" && test -z "${PCSC_USE_LIBUSB_FALSE}"; then
 
22707
  { { echo "$as_me:$LINENO: error: conditional \"PCSC_USE_LIBUSB\" was never defined.
 
22708
Usually this means the macro was only invoked conditionally." >&5
 
22709
echo "$as_me: error: conditional \"PCSC_USE_LIBUSB\" was never defined.
 
22710
Usually this means the macro was only invoked conditionally." >&2;}
 
22711
   { (exit 1); exit 1; }; }
 
22712
fi
 
22713
if test -z "${HAVE_SCF_TRUE}" && test -z "${HAVE_SCF_FALSE}"; then
 
22714
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_SCF\" was never defined.
 
22715
Usually this means the macro was only invoked conditionally." >&5
 
22716
echo "$as_me: error: conditional \"HAVE_SCF\" was never defined.
 
22717
Usually this means the macro was only invoked conditionally." >&2;}
 
22718
   { (exit 1); exit 1; }; }
 
22719
fi
 
22720
if test -z "${HAVE_MUSCLECARD_TRUE}" && test -z "${HAVE_MUSCLECARD_FALSE}"; then
 
22721
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_MUSCLECARD\" was never defined.
 
22722
Usually this means the macro was only invoked conditionally." >&5
 
22723
echo "$as_me: error: conditional \"HAVE_MUSCLECARD\" was never defined.
 
22724
Usually this means the macro was only invoked conditionally." >&2;}
 
22725
   { (exit 1); exit 1; }; }
 
22726
fi
 
22727
if test -z "${PCSC_THR_SAFE_TRUE}" && test -z "${PCSC_THR_SAFE_FALSE}"; then
 
22728
  { { echo "$as_me:$LINENO: error: conditional \"PCSC_THR_SAFE\" was never defined.
 
22729
Usually this means the macro was only invoked conditionally." >&5
 
22730
echo "$as_me: error: conditional \"PCSC_THR_SAFE\" was never defined.
 
22731
Usually this means the macro was only invoked conditionally." >&2;}
 
22732
   { (exit 1); exit 1; }; }
 
22733
fi
 
22734
 
6375
22735
: ${CONFIG_STATUS=./config.status}
6376
 
 
6377
 
echo creating $CONFIG_STATUS
6378
 
rm -f $CONFIG_STATUS
6379
 
cat > $CONFIG_STATUS <<EOF
6380
 
#! /bin/sh
6381
 
# Generated automatically by configure.
 
22736
ac_clean_files_save=$ac_clean_files
 
22737
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
22738
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
22739
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
22740
cat >$CONFIG_STATUS <<_ACEOF
 
22741
#! $SHELL
 
22742
# Generated by $as_me.
6382
22743
# Run this file to recreate the current configuration.
6383
 
# This directory was configured as follows,
6384
 
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6385
 
#
6386
 
# $0 $ac_configure_args
6387
 
#
6388
22744
# Compiler output produced by configure, useful for debugging
6389
 
# configure, is in ./config.log if it exists.
6390
 
 
6391
 
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6392
 
for ac_option
6393
 
do
6394
 
  case "\$ac_option" in
 
22745
# configure, is in config.log if it exists.
 
22746
 
 
22747
debug=false
 
22748
ac_cs_recheck=false
 
22749
ac_cs_silent=false
 
22750
SHELL=\${CONFIG_SHELL-$SHELL}
 
22751
_ACEOF
 
22752
 
 
22753
cat >>$CONFIG_STATUS <<\_ACEOF
 
22754
## --------------------- ##
 
22755
## M4sh Initialization.  ##
 
22756
## --------------------- ##
 
22757
 
 
22758
# Be Bourne compatible
 
22759
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
22760
  emulate sh
 
22761
  NULLCMD=:
 
22762
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
22763
  # is contrary to our usage.  Disable this feature.
 
22764
  alias -g '${1+"$@"}'='"$@"'
 
22765
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22766
  set -o posix
 
22767
fi
 
22768
DUALCASE=1; export DUALCASE # for MKS sh
 
22769
 
 
22770
# Support unset when possible.
 
22771
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
22772
  as_unset=unset
 
22773
else
 
22774
  as_unset=false
 
22775
fi
 
22776
 
 
22777
 
 
22778
# Work around bugs in pre-3.0 UWIN ksh.
 
22779
$as_unset ENV MAIL MAILPATH
 
22780
PS1='$ '
 
22781
PS2='> '
 
22782
PS4='+ '
 
22783
 
 
22784
# NLS nuisances.
 
22785
for as_var in \
 
22786
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
22787
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
22788
  LC_TELEPHONE LC_TIME
 
22789
do
 
22790
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
22791
    eval $as_var=C; export $as_var
 
22792
  else
 
22793
    $as_unset $as_var
 
22794
  fi
 
22795
done
 
22796
 
 
22797
# Required to use basename.
 
22798
if expr a : '\(a\)' >/dev/null 2>&1; then
 
22799
  as_expr=expr
 
22800
else
 
22801
  as_expr=false
 
22802
fi
 
22803
 
 
22804
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
22805
  as_basename=basename
 
22806
else
 
22807
  as_basename=false
 
22808
fi
 
22809
 
 
22810
 
 
22811
# Name of the executable.
 
22812
as_me=`$as_basename "$0" ||
 
22813
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
22814
         X"$0" : 'X\(//\)$' \| \
 
22815
         X"$0" : 'X\(/\)$' \| \
 
22816
         .     : '\(.\)' 2>/dev/null ||
 
22817
echo X/"$0" |
 
22818
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
22819
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
22820
          /^X\/\(\/\).*/{ s//\1/; q; }
 
22821
          s/.*/./; q'`
 
22822
 
 
22823
 
 
22824
# PATH needs CR, and LINENO needs CR and PATH.
 
22825
# Avoid depending upon Character Ranges.
 
22826
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
22827
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
22828
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
22829
as_cr_digits='0123456789'
 
22830
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
22831
 
 
22832
# The user is always right.
 
22833
if test "${PATH_SEPARATOR+set}" != set; then
 
22834
  echo "#! /bin/sh" >conf$$.sh
 
22835
  echo  "exit 0"   >>conf$$.sh
 
22836
  chmod +x conf$$.sh
 
22837
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
22838
    PATH_SEPARATOR=';'
 
22839
  else
 
22840
    PATH_SEPARATOR=:
 
22841
  fi
 
22842
  rm -f conf$$.sh
 
22843
fi
 
22844
 
 
22845
 
 
22846
  as_lineno_1=$LINENO
 
22847
  as_lineno_2=$LINENO
 
22848
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
22849
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
22850
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
22851
  # Find who we are.  Look in the path if we contain no path at all
 
22852
  # relative or not.
 
22853
  case $0 in
 
22854
    *[\\/]* ) as_myself=$0 ;;
 
22855
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22856
for as_dir in $PATH
 
22857
do
 
22858
  IFS=$as_save_IFS
 
22859
  test -z "$as_dir" && as_dir=.
 
22860
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
22861
done
 
22862
 
 
22863
       ;;
 
22864
  esac
 
22865
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
22866
  # in which case we are not to be found in the path.
 
22867
  if test "x$as_myself" = x; then
 
22868
    as_myself=$0
 
22869
  fi
 
22870
  if test ! -f "$as_myself"; then
 
22871
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
22872
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
22873
   { (exit 1); exit 1; }; }
 
22874
  fi
 
22875
  case $CONFIG_SHELL in
 
22876
  '')
 
22877
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22878
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
22879
do
 
22880
  IFS=$as_save_IFS
 
22881
  test -z "$as_dir" && as_dir=.
 
22882
  for as_base in sh bash ksh sh5; do
 
22883
         case $as_dir in
 
22884
         /*)
 
22885
           if ("$as_dir/$as_base" -c '
 
22886
  as_lineno_1=$LINENO
 
22887
  as_lineno_2=$LINENO
 
22888
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
22889
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
22890
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
22891
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
22892
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
22893
             CONFIG_SHELL=$as_dir/$as_base
 
22894
             export CONFIG_SHELL
 
22895
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
22896
           fi;;
 
22897
         esac
 
22898
       done
 
22899
done
 
22900
;;
 
22901
  esac
 
22902
 
 
22903
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
22904
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
22905
  # line-number line before each line; the second 'sed' does the real
 
22906
  # work.  The second script uses 'N' to pair each line-number line
 
22907
  # with the numbered line, and appends trailing '-' during
 
22908
  # substitution so that $LINENO is not a special case at line end.
 
22909
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
22910
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
22911
  sed '=' <$as_myself |
 
22912
    sed '
 
22913
      N
 
22914
      s,$,-,
 
22915
      : loop
 
22916
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
22917
      t loop
 
22918
      s,-$,,
 
22919
      s,^['$as_cr_digits']*\n,,
 
22920
    ' >$as_me.lineno &&
 
22921
  chmod +x $as_me.lineno ||
 
22922
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
22923
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
22924
   { (exit 1); exit 1; }; }
 
22925
 
 
22926
  # Don't try to exec as it changes $[0], causing all sort of problems
 
22927
  # (the dirname of $[0] is not the place where we might find the
 
22928
  # original and so on.  Autoconf is especially sensible to this).
 
22929
  . ./$as_me.lineno
 
22930
  # Exit status is that of the last command.
 
22931
  exit
 
22932
}
 
22933
 
 
22934
 
 
22935
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
22936
  *c*,-n*) ECHO_N= ECHO_C='
 
22937
' ECHO_T='      ' ;;
 
22938
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
22939
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
22940
esac
 
22941
 
 
22942
if expr a : '\(a\)' >/dev/null 2>&1; then
 
22943
  as_expr=expr
 
22944
else
 
22945
  as_expr=false
 
22946
fi
 
22947
 
 
22948
rm -f conf$$ conf$$.exe conf$$.file
 
22949
echo >conf$$.file
 
22950
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
22951
  # We could just check for DJGPP; but this test a) works b) is more generic
 
22952
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
22953
  if test -f conf$$.exe; then
 
22954
    # Don't use ln at all; we don't have any links
 
22955
    as_ln_s='cp -p'
 
22956
  else
 
22957
    as_ln_s='ln -s'
 
22958
  fi
 
22959
elif ln conf$$.file conf$$ 2>/dev/null; then
 
22960
  as_ln_s=ln
 
22961
else
 
22962
  as_ln_s='cp -p'
 
22963
fi
 
22964
rm -f conf$$ conf$$.exe conf$$.file
 
22965
 
 
22966
if mkdir -p . 2>/dev/null; then
 
22967
  as_mkdir_p=:
 
22968
else
 
22969
  test -d ./-p && rmdir ./-p
 
22970
  as_mkdir_p=false
 
22971
fi
 
22972
 
 
22973
as_executable_p="test -f"
 
22974
 
 
22975
# Sed expression to map a string onto a valid CPP name.
 
22976
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
22977
 
 
22978
# Sed expression to map a string onto a valid variable name.
 
22979
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
22980
 
 
22981
 
 
22982
# IFS
 
22983
# We need space, tab and new line, in precisely that order.
 
22984
as_nl='
 
22985
'
 
22986
IFS="   $as_nl"
 
22987
 
 
22988
# CDPATH.
 
22989
$as_unset CDPATH
 
22990
 
 
22991
exec 6>&1
 
22992
 
 
22993
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
22994
# report actual input values of CONFIG_FILES etc. instead of their
 
22995
# values after options handling.  Logging --version etc. is OK.
 
22996
exec 5>>config.log
 
22997
{
 
22998
  echo
 
22999
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
23000
## Running $as_me. ##
 
23001
_ASBOX
 
23002
} >&5
 
23003
cat >&5 <<_CSEOF
 
23004
 
 
23005
This file was extended by $as_me, which was
 
23006
generated by GNU Autoconf 2.59.  Invocation command line was
 
23007
 
 
23008
  CONFIG_FILES    = $CONFIG_FILES
 
23009
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
23010
  CONFIG_LINKS    = $CONFIG_LINKS
 
23011
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
23012
  $ $0 $@
 
23013
 
 
23014
_CSEOF
 
23015
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
23016
echo >&5
 
23017
_ACEOF
 
23018
 
 
23019
# Files that config.status was made for.
 
23020
if test -n "$ac_config_files"; then
 
23021
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
23022
fi
 
23023
 
 
23024
if test -n "$ac_config_headers"; then
 
23025
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
23026
fi
 
23027
 
 
23028
if test -n "$ac_config_links"; then
 
23029
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
23030
fi
 
23031
 
 
23032
if test -n "$ac_config_commands"; then
 
23033
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
23034
fi
 
23035
 
 
23036
cat >>$CONFIG_STATUS <<\_ACEOF
 
23037
 
 
23038
ac_cs_usage="\
 
23039
\`$as_me' instantiates files from templates according to the
 
23040
current configuration.
 
23041
 
 
23042
Usage: $0 [OPTIONS] [FILE]...
 
23043
 
 
23044
  -h, --help       print this help, then exit
 
23045
  -V, --version    print version number, then exit
 
23046
  -q, --quiet      do not print progress messages
 
23047
  -d, --debug      don't remove temporary files
 
23048
      --recheck    update $as_me by reconfiguring in the same conditions
 
23049
  --file=FILE[:TEMPLATE]
 
23050
                   instantiate the configuration file FILE
 
23051
  --header=FILE[:TEMPLATE]
 
23052
                   instantiate the configuration header FILE
 
23053
 
 
23054
Configuration files:
 
23055
$config_files
 
23056
 
 
23057
Configuration headers:
 
23058
$config_headers
 
23059
 
 
23060
Configuration commands:
 
23061
$config_commands
 
23062
 
 
23063
Report bugs to <bug-autoconf@gnu.org>."
 
23064
_ACEOF
 
23065
 
 
23066
cat >>$CONFIG_STATUS <<_ACEOF
 
23067
ac_cs_version="\\
 
23068
config.status
 
23069
configured by $0, generated by GNU Autoconf 2.59,
 
23070
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
23071
 
 
23072
Copyright (C) 2003 Free Software Foundation, Inc.
 
23073
This config.status script is free software; the Free Software Foundation
 
23074
gives unlimited permission to copy, distribute and modify it."
 
23075
srcdir=$srcdir
 
23076
INSTALL="$INSTALL"
 
23077
_ACEOF
 
23078
 
 
23079
cat >>$CONFIG_STATUS <<\_ACEOF
 
23080
# If no file are specified by the user, then we need to provide default
 
23081
# value.  By we need to know if files were specified by the user.
 
23082
ac_need_defaults=:
 
23083
while test $# != 0
 
23084
do
 
23085
  case $1 in
 
23086
  --*=*)
 
23087
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
23088
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
23089
    ac_shift=:
 
23090
    ;;
 
23091
  -*)
 
23092
    ac_option=$1
 
23093
    ac_optarg=$2
 
23094
    ac_shift=shift
 
23095
    ;;
 
23096
  *) # This is not an option, so the user has probably given explicit
 
23097
     # arguments.
 
23098
     ac_option=$1
 
23099
     ac_need_defaults=false;;
 
23100
  esac
 
23101
 
 
23102
  case $ac_option in
 
23103
  # Handling of the options.
 
23104
_ACEOF
 
23105
cat >>$CONFIG_STATUS <<\_ACEOF
6395
23106
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6396
 
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6397
 
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6398
 
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6399
 
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
6400
 
    exit 0 ;;
6401
 
  -help | --help | --hel | --he | --h)
6402
 
    echo "\$ac_cs_usage"; exit 0 ;;
6403
 
  *) echo "\$ac_cs_usage"; exit 1 ;;
6404
 
  esac
6405
 
done
6406
 
 
6407
 
ac_given_srcdir=$srcdir
6408
 
ac_given_INSTALL="$INSTALL"
6409
 
 
6410
 
trap 'rm -fr `echo "Makefile src/Makefile src/utils/Makefile etc/Makefile doc/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6411
 
EOF
6412
 
cat >> $CONFIG_STATUS <<EOF
6413
 
 
6414
 
# Protect against being on the right side of a sed subst in config.status.
6415
 
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6416
 
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6417
 
$ac_vpsub
 
23107
    ac_cs_recheck=: ;;
 
23108
  --version | --vers* | -V )
 
23109
    echo "$ac_cs_version"; exit 0 ;;
 
23110
  --he | --h)
 
23111
    # Conflict between --help and --header
 
23112
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
23113
Try \`$0 --help' for more information." >&5
 
23114
echo "$as_me: error: ambiguous option: $1
 
23115
Try \`$0 --help' for more information." >&2;}
 
23116
   { (exit 1); exit 1; }; };;
 
23117
  --help | --hel | -h )
 
23118
    echo "$ac_cs_usage"; exit 0 ;;
 
23119
  --debug | --d* | -d )
 
23120
    debug=: ;;
 
23121
  --file | --fil | --fi | --f )
 
23122
    $ac_shift
 
23123
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
23124
    ac_need_defaults=false;;
 
23125
  --header | --heade | --head | --hea )
 
23126
    $ac_shift
 
23127
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
23128
    ac_need_defaults=false;;
 
23129
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
23130
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
23131
    ac_cs_silent=: ;;
 
23132
 
 
23133
  # This is an error.
 
23134
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
23135
Try \`$0 --help' for more information." >&5
 
23136
echo "$as_me: error: unrecognized option: $1
 
23137
Try \`$0 --help' for more information." >&2;}
 
23138
   { (exit 1); exit 1; }; } ;;
 
23139
 
 
23140
  *) ac_config_targets="$ac_config_targets $1" ;;
 
23141
 
 
23142
  esac
 
23143
  shift
 
23144
done
 
23145
 
 
23146
ac_configure_extra_args=
 
23147
 
 
23148
if $ac_cs_silent; then
 
23149
  exec 6>/dev/null
 
23150
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
23151
fi
 
23152
 
 
23153
_ACEOF
 
23154
cat >>$CONFIG_STATUS <<_ACEOF
 
23155
if \$ac_cs_recheck; then
 
23156
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
23157
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
23158
fi
 
23159
 
 
23160
_ACEOF
 
23161
 
 
23162
cat >>$CONFIG_STATUS <<_ACEOF
 
23163
#
 
23164
# INIT-COMMANDS section.
 
23165
#
 
23166
 
 
23167
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
23168
 
 
23169
_ACEOF
 
23170
 
 
23171
 
 
23172
 
 
23173
cat >>$CONFIG_STATUS <<\_ACEOF
 
23174
for ac_config_target in $ac_config_targets
 
23175
do
 
23176
  case "$ac_config_target" in
 
23177
  # Handling of arguments.
 
23178
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
23179
  "aclocal/Makefile" ) CONFIG_FILES="$CONFIG_FILES aclocal/Makefile" ;;
 
23180
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
23181
  "doc/bundleTool.8" ) CONFIG_FILES="$CONFIG_FILES doc/bundleTool.8" ;;
 
23182
  "doc/pcscd.8" ) CONFIG_FILES="$CONFIG_FILES doc/pcscd.8" ;;
 
23183
  "doc/reader.conf.5" ) CONFIG_FILES="$CONFIG_FILES doc/reader.conf.5" ;;
 
23184
  "doc/example/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/example/Makefile" ;;
 
23185
  "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
 
23186
  "etc/reader.conf" ) CONFIG_FILES="$CONFIG_FILES etc/reader.conf" ;;
 
23187
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
23188
  "src/libmusclecard.pc" ) CONFIG_FILES="$CONFIG_FILES src/libmusclecard.pc" ;;
 
23189
  "src/libpcsclite.pc" ) CONFIG_FILES="$CONFIG_FILES src/libpcsclite.pc" ;;
 
23190
  "src/pcsclite.h" ) CONFIG_FILES="$CONFIG_FILES src/pcsclite.h" ;;
 
23191
  "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
 
23192
  "win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
 
23193
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
23194
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
23195
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
23196
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
23197
   { (exit 1); exit 1; }; };;
 
23198
  esac
 
23199
done
 
23200
 
 
23201
# If the user did not use the arguments to specify the items to instantiate,
 
23202
# then the envvar interface is used.  Set only those that are not.
 
23203
# We use the long form for the default assignment because of an extremely
 
23204
# bizarre bug on SunOS 4.1.3.
 
23205
if $ac_need_defaults; then
 
23206
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
23207
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
23208
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
23209
fi
 
23210
 
 
23211
# Have a temporary directory for convenience.  Make it in the build tree
 
23212
# simply because there is no reason to put it here, and in addition,
 
23213
# creating and moving files from /tmp can sometimes cause problems.
 
23214
# Create a temporary directory, and hook for its removal unless debugging.
 
23215
$debug ||
 
23216
{
 
23217
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
23218
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
23219
}
 
23220
 
 
23221
# Create a (secure) tmp directory for tmp files.
 
23222
 
 
23223
{
 
23224
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
23225
  test -n "$tmp" && test -d "$tmp"
 
23226
}  ||
 
23227
{
 
23228
  tmp=./confstat$$-$RANDOM
 
23229
  (umask 077 && mkdir $tmp)
 
23230
} ||
 
23231
{
 
23232
   echo "$me: cannot create a temporary directory in ." >&2
 
23233
   { (exit 1); exit 1; }
 
23234
}
 
23235
 
 
23236
_ACEOF
 
23237
 
 
23238
cat >>$CONFIG_STATUS <<_ACEOF
 
23239
 
 
23240
#
 
23241
# CONFIG_FILES section.
 
23242
#
 
23243
 
 
23244
# No need to generate the scripts if there are no CONFIG_FILES.
 
23245
# This happens for instance when ./config.status config.h
 
23246
if test -n "\$CONFIG_FILES"; then
 
23247
  # Protect against being on the right side of a sed subst in config.status.
 
23248
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
23249
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
23250
s,@SHELL@,$SHELL,;t t
 
23251
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
23252
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
23253
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
23254
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
23255
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
23256
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
23257
s,@exec_prefix@,$exec_prefix,;t t
 
23258
s,@prefix@,$prefix,;t t
 
23259
s,@program_transform_name@,$program_transform_name,;t t
 
23260
s,@bindir@,$bindir,;t t
 
23261
s,@sbindir@,$sbindir,;t t
 
23262
s,@libexecdir@,$libexecdir,;t t
 
23263
s,@datadir@,$datadir,;t t
 
23264
s,@sysconfdir@,$sysconfdir,;t t
 
23265
s,@sharedstatedir@,$sharedstatedir,;t t
 
23266
s,@localstatedir@,$localstatedir,;t t
 
23267
s,@libdir@,$libdir,;t t
 
23268
s,@includedir@,$includedir,;t t
 
23269
s,@oldincludedir@,$oldincludedir,;t t
 
23270
s,@infodir@,$infodir,;t t
 
23271
s,@mandir@,$mandir,;t t
 
23272
s,@build_alias@,$build_alias,;t t
 
23273
s,@host_alias@,$host_alias,;t t
 
23274
s,@target_alias@,$target_alias,;t t
 
23275
s,@DEFS@,$DEFS,;t t
 
23276
s,@ECHO_C@,$ECHO_C,;t t
 
23277
s,@ECHO_N@,$ECHO_N,;t t
 
23278
s,@ECHO_T@,$ECHO_T,;t t
 
23279
s,@LIBS@,$LIBS,;t t
 
23280
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
23281
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
23282
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
23283
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
23284
s,@PACKAGE@,$PACKAGE,;t t
 
23285
s,@VERSION@,$VERSION,;t t
 
23286
s,@ACLOCAL@,$ACLOCAL,;t t
 
23287
s,@AUTOCONF@,$AUTOCONF,;t t
 
23288
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
23289
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
23290
s,@MAKEINFO@,$MAKEINFO,;t t
 
23291
s,@AMTAR@,$AMTAR,;t t
 
23292
s,@install_sh@,$install_sh,;t t
 
23293
s,@STRIP@,$STRIP,;t t
 
23294
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
23295
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
23296
s,@AWK@,$AWK,;t t
 
23297
s,@SET_MAKE@,$SET_MAKE,;t t
 
23298
s,@am__leading_dot@,$am__leading_dot,;t t
 
23299
s,@build@,$build,;t t
 
23300
s,@build_cpu@,$build_cpu,;t t
 
23301
s,@build_vendor@,$build_vendor,;t t
 
23302
s,@build_os@,$build_os,;t t
 
23303
s,@host@,$host,;t t
 
23304
s,@host_cpu@,$host_cpu,;t t
 
23305
s,@host_vendor@,$host_vendor,;t t
 
23306
s,@host_os@,$host_os,;t t
 
23307
s,@CC@,$CC,;t t
 
23308
s,@CFLAGS@,$CFLAGS,;t t
 
23309
s,@LDFLAGS@,$LDFLAGS,;t t
 
23310
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
23311
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
23312
s,@EXEEXT@,$EXEEXT,;t t
 
23313
s,@OBJEXT@,$OBJEXT,;t t
 
23314
s,@DEPDIR@,$DEPDIR,;t t
 
23315
s,@am__include@,$am__include,;t t
 
23316
s,@am__quote@,$am__quote,;t t
 
23317
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
23318
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
23319
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
23320
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
23321
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
23322
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
23323
s,@COREFOUNDATION@,$COREFOUNDATION,;t t
 
23324
s,@IOKIT@,$IOKIT,;t t
 
23325
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
 
23326
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
 
23327
s,@MAINT@,$MAINT,;t t
 
23328
s,@CPP@,$CPP,;t t
 
23329
s,@LN_S@,$LN_S,;t t
 
23330
s,@LEX@,$LEX,;t t
 
23331
s,@LEXLIB@,$LEXLIB,;t t
 
23332
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
 
23333
s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t
 
23334
s,@PTHREAD_CC@,$PTHREAD_CC,;t t
 
23335
s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
 
23336
s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
 
23337
s,@EGREP@,$EGREP,;t t
 
23338
s,@ECHO@,$ECHO,;t t
 
23339
s,@AR@,$AR,;t t
 
23340
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
23341
s,@RANLIB@,$RANLIB,;t t
 
23342
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
23343
s,@CXX@,$CXX,;t t
 
23344
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
23345
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
23346
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
23347
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
23348
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
23349
s,@CXXCPP@,$CXXCPP,;t t
 
23350
s,@F77@,$F77,;t t
 
23351
s,@FFLAGS@,$FFLAGS,;t t
 
23352
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
23353
s,@LIBTOOL@,$LIBTOOL,;t t
 
23354
s,@LIBOBJS@,$LIBOBJS,;t t
 
23355
s,@LIBDL@,$LIBDL,;t t
 
23356
s,@LIBFL@,$LIBFL,;t t
 
23357
s,@LIBUSB@,$LIBUSB,;t t
 
23358
s,@PCSC_USE_LIBUSB_TRUE@,$PCSC_USE_LIBUSB_TRUE,;t t
 
23359
s,@PCSC_USE_LIBUSB_FALSE@,$PCSC_USE_LIBUSB_FALSE,;t t
 
23360
s,@LIBSMARTCARD@,$LIBSMARTCARD,;t t
 
23361
s,@HAVE_SCF_TRUE@,$HAVE_SCF_TRUE,;t t
 
23362
s,@HAVE_SCF_FALSE@,$HAVE_SCF_FALSE,;t t
 
23363
s,@HAVE_MUSCLECARD_TRUE@,$HAVE_MUSCLECARD_TRUE,;t t
 
23364
s,@HAVE_MUSCLECARD_FALSE@,$HAVE_MUSCLECARD_FALSE,;t t
 
23365
s,@PCSC_THR_SAFE_TRUE@,$PCSC_THR_SAFE_TRUE,;t t
 
23366
s,@PCSC_THR_SAFE_FALSE@,$PCSC_THR_SAFE_FALSE,;t t
 
23367
s,@muscledropdir@,$muscledropdir,;t t
 
23368
s,@usbdropdir@,$usbdropdir,;t t
 
23369
s,@confdir@,$confdir,;t t
 
23370
s,@runpid@,$runpid,;t t
 
23371
s,@extended_apdu@,$extended_apdu,;t t
 
23372
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
23373
CEOF
 
23374
 
 
23375
_ACEOF
 
23376
 
 
23377
  cat >>$CONFIG_STATUS <<\_ACEOF
 
23378
  # Split the substitutions into bite-sized pieces for seds with
 
23379
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
23380
  ac_max_sed_lines=48
 
23381
  ac_sed_frag=1 # Number of current file.
 
23382
  ac_beg=1 # First line for current file.
 
23383
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
23384
  ac_more_lines=:
 
23385
  ac_sed_cmds=
 
23386
  while $ac_more_lines; do
 
23387
    if test $ac_beg -gt 1; then
 
23388
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
23389
    else
 
23390
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
23391
    fi
 
23392
    if test ! -s $tmp/subs.frag; then
 
23393
      ac_more_lines=false
 
23394
    else
 
23395
      # The purpose of the label and of the branching condition is to
 
23396
      # speed up the sed processing (if there are no `@' at all, there
 
23397
      # is no need to browse any of the substitutions).
 
23398
      # These are the two extra sed commands mentioned above.
 
23399
      (echo ':t
 
23400
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
23401
      if test -z "$ac_sed_cmds"; then
 
23402
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
23403
      else
 
23404
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
23405
      fi
 
23406
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
23407
      ac_beg=$ac_end
 
23408
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
23409
    fi
 
23410
  done
 
23411
  if test -z "$ac_sed_cmds"; then
 
23412
    ac_sed_cmds=cat
 
23413
  fi
 
23414
fi # test -n "$CONFIG_FILES"
 
23415
 
 
23416
_ACEOF
 
23417
cat >>$CONFIG_STATUS <<\_ACEOF
 
23418
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
23419
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
23420
  case $ac_file in
 
23421
  - | *:- | *:-:* ) # input from stdin
 
23422
        cat >$tmp/stdin
 
23423
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23424
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23425
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23426
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23427
  * )   ac_file_in=$ac_file.in ;;
 
23428
  esac
 
23429
 
 
23430
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
23431
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
23432
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23433
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
23434
         X"$ac_file" : 'X\(//\)$' \| \
 
23435
         X"$ac_file" : 'X\(/\)' \| \
 
23436
         .     : '\(.\)' 2>/dev/null ||
 
23437
echo X"$ac_file" |
 
23438
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23439
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23440
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23441
          /^X\(\/\).*/{ s//\1/; q; }
 
23442
          s/.*/./; q'`
 
23443
  { if $as_mkdir_p; then
 
23444
    mkdir -p "$ac_dir"
 
23445
  else
 
23446
    as_dir="$ac_dir"
 
23447
    as_dirs=
 
23448
    while test ! -d "$as_dir"; do
 
23449
      as_dirs="$as_dir $as_dirs"
 
23450
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23451
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23452
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23453
         X"$as_dir" : 'X\(//\)$' \| \
 
23454
         X"$as_dir" : 'X\(/\)' \| \
 
23455
         .     : '\(.\)' 2>/dev/null ||
 
23456
echo X"$as_dir" |
 
23457
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23458
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23459
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23460
          /^X\(\/\).*/{ s//\1/; q; }
 
23461
          s/.*/./; q'`
 
23462
    done
 
23463
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23464
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
23465
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
23466
   { (exit 1); exit 1; }; }; }
 
23467
 
 
23468
  ac_builddir=.
 
23469
 
 
23470
if test "$ac_dir" != .; then
 
23471
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
23472
  # A "../" for each directory in $ac_dir_suffix.
 
23473
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
23474
else
 
23475
  ac_dir_suffix= ac_top_builddir=
 
23476
fi
 
23477
 
 
23478
case $srcdir in
 
23479
  .)  # No --srcdir option.  We are building in place.
 
23480
    ac_srcdir=.
 
23481
    if test -z "$ac_top_builddir"; then
 
23482
       ac_top_srcdir=.
 
23483
    else
 
23484
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
23485
    fi ;;
 
23486
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
23487
    ac_srcdir=$srcdir$ac_dir_suffix;
 
23488
    ac_top_srcdir=$srcdir ;;
 
23489
  *) # Relative path.
 
23490
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
23491
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
23492
esac
 
23493
 
 
23494
# Do not use `cd foo && pwd` to compute absolute paths, because
 
23495
# the directories may not exist.
 
23496
case `pwd` in
 
23497
.) ac_abs_builddir="$ac_dir";;
 
23498
*)
 
23499
  case "$ac_dir" in
 
23500
  .) ac_abs_builddir=`pwd`;;
 
23501
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
23502
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
23503
  esac;;
 
23504
esac
 
23505
case $ac_abs_builddir in
 
23506
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23507
*)
 
23508
  case ${ac_top_builddir}. in
 
23509
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
23510
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23511
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
23512
  esac;;
 
23513
esac
 
23514
case $ac_abs_builddir in
 
23515
.) ac_abs_srcdir=$ac_srcdir;;
 
23516
*)
 
23517
  case $ac_srcdir in
 
23518
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
23519
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
23520
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
23521
  esac;;
 
23522
esac
 
23523
case $ac_abs_builddir in
 
23524
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23525
*)
 
23526
  case $ac_top_srcdir in
 
23527
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
23528
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23529
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
23530
  esac;;
 
23531
esac
 
23532
 
 
23533
 
 
23534
  case $INSTALL in
 
23535
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
23536
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
23537
  esac
 
23538
 
 
23539
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
23540
  # use $as_me), people would be surprised to read:
 
23541
  #    /* config.h.  Generated by config.status.  */
 
23542
  if test x"$ac_file" = x-; then
 
23543
    configure_input=
 
23544
  else
 
23545
    configure_input="$ac_file.  "
 
23546
  fi
 
23547
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
23548
                                     sed 's,.*/,,'` by configure."
 
23549
 
 
23550
  # First look for the input files in the build tree, otherwise in the
 
23551
  # src tree.
 
23552
  ac_file_inputs=`IFS=:
 
23553
    for f in $ac_file_in; do
 
23554
      case $f in
 
23555
      -) echo $tmp/stdin ;;
 
23556
      [\\/$]*)
 
23557
         # Absolute (can't be DOS-style, as IFS=:)
 
23558
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23559
echo "$as_me: error: cannot find input file: $f" >&2;}
 
23560
   { (exit 1); exit 1; }; }
 
23561
         echo "$f";;
 
23562
      *) # Relative
 
23563
         if test -f "$f"; then
 
23564
           # Build tree
 
23565
           echo "$f"
 
23566
         elif test -f "$srcdir/$f"; then
 
23567
           # Source tree
 
23568
           echo "$srcdir/$f"
 
23569
         else
 
23570
           # /dev/null tree
 
23571
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23572
echo "$as_me: error: cannot find input file: $f" >&2;}
 
23573
   { (exit 1); exit 1; }; }
 
23574
         fi;;
 
23575
      esac
 
23576
    done` || { (exit 1); exit 1; }
 
23577
 
 
23578
  if test x"$ac_file" != x-; then
 
23579
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
23580
echo "$as_me: creating $ac_file" >&6;}
 
23581
    rm -f "$ac_file"
 
23582
  fi
 
23583
_ACEOF
 
23584
cat >>$CONFIG_STATUS <<_ACEOF
 
23585
  sed "$ac_vpsub
6418
23586
$extrasub
6419
 
s%@SHELL@%$SHELL%g
6420
 
s%@CFLAGS@%$CFLAGS%g
6421
 
s%@CPPFLAGS@%$CPPFLAGS%g
6422
 
s%@CXXFLAGS@%$CXXFLAGS%g
6423
 
s%@FFLAGS@%$FFLAGS%g
6424
 
s%@DEFS@%$DEFS%g
6425
 
s%@LDFLAGS@%$LDFLAGS%g
6426
 
s%@LIBS@%$LIBS%g
6427
 
s%@exec_prefix@%$exec_prefix%g
6428
 
s%@prefix@%$prefix%g
6429
 
s%@program_transform_name@%$program_transform_name%g
6430
 
s%@bindir@%$bindir%g
6431
 
s%@sbindir@%$sbindir%g
6432
 
s%@libexecdir@%$libexecdir%g
6433
 
s%@datadir@%$datadir%g
6434
 
s%@sysconfdir@%$sysconfdir%g
6435
 
s%@sharedstatedir@%$sharedstatedir%g
6436
 
s%@localstatedir@%$localstatedir%g
6437
 
s%@libdir@%$libdir%g
6438
 
s%@includedir@%$includedir%g
6439
 
s%@oldincludedir@%$oldincludedir%g
6440
 
s%@infodir@%$infodir%g
6441
 
s%@mandir@%$mandir%g
6442
 
s%@host@%$host%g
6443
 
s%@host_alias@%$host_alias%g
6444
 
s%@host_cpu@%$host_cpu%g
6445
 
s%@host_vendor@%$host_vendor%g
6446
 
s%@host_os@%$host_os%g
6447
 
s%@target@%$target%g
6448
 
s%@target_alias@%$target_alias%g
6449
 
s%@target_cpu@%$target_cpu%g
6450
 
s%@target_vendor@%$target_vendor%g
6451
 
s%@target_os@%$target_os%g
6452
 
s%@build@%$build%g
6453
 
s%@build_alias@%$build_alias%g
6454
 
s%@build_cpu@%$build_cpu%g
6455
 
s%@build_vendor@%$build_vendor%g
6456
 
s%@build_os@%$build_os%g
6457
 
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6458
 
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6459
 
s%@INSTALL_DATA@%$INSTALL_DATA%g
6460
 
s%@PACKAGE@%$PACKAGE%g
6461
 
s%@VERSION@%$VERSION%g
6462
 
s%@ACLOCAL@%$ACLOCAL%g
6463
 
s%@AUTOCONF@%$AUTOCONF%g
6464
 
s%@AUTOMAKE@%$AUTOMAKE%g
6465
 
s%@AUTOHEADER@%$AUTOHEADER%g
6466
 
s%@MAKEINFO@%$MAKEINFO%g
6467
 
s%@SET_MAKE@%$SET_MAKE%g
6468
 
s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6469
 
s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6470
 
s%@MAINT@%$MAINT%g
6471
 
s%@PCSC_ARCH_LINUX_TRUE@%$PCSC_ARCH_LINUX_TRUE%g
6472
 
s%@PCSC_ARCH_LINUX_FALSE@%$PCSC_ARCH_LINUX_FALSE%g
6473
 
s%@PCSC_ARCH_BSD_TRUE@%$PCSC_ARCH_BSD_TRUE%g
6474
 
s%@PCSC_ARCH_BSD_FALSE@%$PCSC_ARCH_BSD_FALSE%g
6475
 
s%@PCSC_ARCH_OSX_TRUE@%$PCSC_ARCH_OSX_TRUE%g
6476
 
s%@PCSC_ARCH_OSX_FALSE@%$PCSC_ARCH_OSX_FALSE%g
6477
 
s%@PCSC_ARCH_SOLARIS_TRUE@%$PCSC_ARCH_SOLARIS_TRUE%g
6478
 
s%@PCSC_ARCH_SOLARIS_FALSE@%$PCSC_ARCH_SOLARIS_FALSE%g
6479
 
s%@PCSC_ARCH_HPUX_TRUE@%$PCSC_ARCH_HPUX_TRUE%g
6480
 
s%@PCSC_ARCH_HPUX_FALSE@%$PCSC_ARCH_HPUX_FALSE%g
6481
 
s%@CC@%$CC%g
6482
 
s%@CPP@%$CPP%g
6483
 
s%@LN_S@%$LN_S%g
6484
 
s%@LEX@%$LEX%g
6485
 
s%@LEXLIB@%$LEXLIB%g
6486
 
s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
6487
 
s%@PTHREAD_CC@%$PTHREAD_CC%g
6488
 
s%@PTHREAD_LIBS@%$PTHREAD_LIBS%g
6489
 
s%@PTHREAD_CFLAGS@%$PTHREAD_CFLAGS%g
6490
 
s%@OBJEXT@%$OBJEXT%g
6491
 
s%@EXEEXT@%$EXEEXT%g
6492
 
s%@ECHO@%$ECHO%g
6493
 
s%@RANLIB@%$RANLIB%g
6494
 
s%@STRIP@%$STRIP%g
6495
 
s%@LIBTOOL@%$LIBTOOL%g
6496
 
s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
6497
 
s%@ac_aux_dir@%$ac_aux_dir%g
6498
 
s%@PCSC_LINUX_USB_TRUE@%$PCSC_LINUX_USB_TRUE%g
6499
 
s%@PCSC_LINUX_USB_FALSE@%$PCSC_LINUX_USB_FALSE%g
6500
 
s%@PCSC_THR_SAFE_TRUE@%$PCSC_THR_SAFE_TRUE%g
6501
 
s%@PCSC_THR_SAFE_FALSE@%$PCSC_THR_SAFE_FALSE%g
6502
 
 
6503
 
CEOF
6504
 
EOF
6505
 
 
6506
 
cat >> $CONFIG_STATUS <<\EOF
6507
 
 
6508
 
# Split the substitutions into bite-sized pieces for seds with
6509
 
# small command number limits, like on Digital OSF/1 and HP-UX.
6510
 
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6511
 
ac_file=1 # Number of current file.
6512
 
ac_beg=1 # First line for current file.
6513
 
ac_end=$ac_max_sed_cmds # Line after last line for current file.
6514
 
ac_more_lines=:
6515
 
ac_sed_cmds=""
6516
 
while $ac_more_lines; do
6517
 
  if test $ac_beg -gt 1; then
6518
 
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6519
 
  else
6520
 
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6521
 
  fi
6522
 
  if test ! -s conftest.s$ac_file; then
6523
 
    ac_more_lines=false
6524
 
    rm -f conftest.s$ac_file
6525
 
  else
6526
 
    if test -z "$ac_sed_cmds"; then
6527
 
      ac_sed_cmds="sed -f conftest.s$ac_file"
6528
 
    else
6529
 
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6530
 
    fi
6531
 
    ac_file=`expr $ac_file + 1`
6532
 
    ac_beg=$ac_end
6533
 
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
6534
 
  fi
 
23587
_ACEOF
 
23588
cat >>$CONFIG_STATUS <<\_ACEOF
 
23589
:t
 
23590
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
23591
s,@configure_input@,$configure_input,;t t
 
23592
s,@srcdir@,$ac_srcdir,;t t
 
23593
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
23594
s,@top_srcdir@,$ac_top_srcdir,;t t
 
23595
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
23596
s,@builddir@,$ac_builddir,;t t
 
23597
s,@abs_builddir@,$ac_abs_builddir,;t t
 
23598
s,@top_builddir@,$ac_top_builddir,;t t
 
23599
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
23600
s,@INSTALL@,$ac_INSTALL,;t t
 
23601
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
23602
  rm -f $tmp/stdin
 
23603
  if test x"$ac_file" != x-; then
 
23604
    mv $tmp/out $ac_file
 
23605
  else
 
23606
    cat $tmp/out
 
23607
    rm -f $tmp/out
 
23608
  fi
 
23609
 
6535
23610
done
6536
 
if test -z "$ac_sed_cmds"; then
6537
 
  ac_sed_cmds=cat
6538
 
fi
6539
 
EOF
6540
 
 
6541
 
cat >> $CONFIG_STATUS <<EOF
6542
 
 
6543
 
CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile src/utils/Makefile etc/Makefile doc/Makefile"}
6544
 
EOF
6545
 
cat >> $CONFIG_STATUS <<\EOF
6546
 
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6547
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6548
 
  case "$ac_file" in
6549
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6550
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6551
 
  *) ac_file_in="${ac_file}.in" ;;
6552
 
  esac
6553
 
 
6554
 
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6555
 
 
6556
 
  # Remove last slash and all that follows it.  Not all systems have dirname.
6557
 
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6558
 
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6559
 
    # The file is in a subdirectory.
6560
 
    test ! -d "$ac_dir" && mkdir "$ac_dir"
6561
 
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6562
 
    # A "../" for each directory in $ac_dir_suffix.
6563
 
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6564
 
  else
6565
 
    ac_dir_suffix= ac_dots=
6566
 
  fi
6567
 
 
6568
 
  case "$ac_given_srcdir" in
6569
 
  .)  srcdir=.
6570
 
      if test -z "$ac_dots"; then top_srcdir=.
6571
 
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6572
 
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6573
 
  *) # Relative path.
6574
 
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6575
 
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
6576
 
  esac
6577
 
 
6578
 
  case "$ac_given_INSTALL" in
6579
 
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
6580
 
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6581
 
  esac
6582
 
 
6583
 
  echo creating "$ac_file"
6584
 
  rm -f "$ac_file"
6585
 
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6586
 
  case "$ac_file" in
6587
 
  *Makefile*) ac_comsub="1i\\
6588
 
# $configure_input" ;;
6589
 
  *) ac_comsub= ;;
6590
 
  esac
6591
 
 
6592
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6593
 
  sed -e "$ac_comsub
6594
 
s%@configure_input@%$configure_input%g
6595
 
s%@srcdir@%$srcdir%g
6596
 
s%@top_srcdir@%$top_srcdir%g
6597
 
s%@INSTALL@%$INSTALL%g
6598
 
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6599
 
fi; done
6600
 
rm -f conftest.s*
 
23611
_ACEOF
 
23612
cat >>$CONFIG_STATUS <<\_ACEOF
 
23613
 
 
23614
#
 
23615
# CONFIG_HEADER section.
 
23616
#
6601
23617
 
6602
23618
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6603
23619
# NAME is the cpp macro being defined and VALUE is the value it is being given.
6604
23620
#
6605
23621
# ac_d sets the value in "#define NAME VALUE" lines.
6606
 
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
6607
 
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
6608
 
ac_dC='\3'
6609
 
ac_dD='%g'
6610
 
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6611
 
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6612
 
ac_uB='\([      ]\)%\1#\2define\3'
 
23622
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
23623
ac_dB='[         ].*$,\1#\2'
 
23624
ac_dC=' '
 
23625
ac_dD=',;t'
 
23626
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
23627
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
23628
ac_uB='$,\1#\2define\3'
6613
23629
ac_uC=' '
6614
 
ac_uD='\4%g'
6615
 
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6616
 
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6617
 
ac_eB='$%\1#\2define\3'
6618
 
ac_eC=' '
6619
 
ac_eD='%g'
 
23630
ac_uD=',;t'
6620
23631
 
6621
 
if test "${CONFIG_HEADERS+set}" != set; then
6622
 
EOF
6623
 
cat >> $CONFIG_STATUS <<EOF
6624
 
  CONFIG_HEADERS="config.h"
6625
 
EOF
6626
 
cat >> $CONFIG_STATUS <<\EOF
6627
 
fi
6628
 
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
 
23632
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6629
23633
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6630
 
  case "$ac_file" in
6631
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6632
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6633
 
  *) ac_file_in="${ac_file}.in" ;;
 
23634
  case $ac_file in
 
23635
  - | *:- | *:-:* ) # input from stdin
 
23636
        cat >$tmp/stdin
 
23637
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23638
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23639
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23640
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23641
  * )   ac_file_in=$ac_file.in ;;
6634
23642
  esac
6635
23643
 
6636
 
  echo creating $ac_file
6637
 
 
6638
 
  rm -f conftest.frag conftest.in conftest.out
6639
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6640
 
  cat $ac_file_inputs > conftest.in
6641
 
 
6642
 
EOF
6643
 
 
6644
 
# Transform confdefs.h into a sed script conftest.vals that substitutes
6645
 
# the proper values into config.h.in to produce config.h.  And first:
6646
 
# Protect against being on the right side of a sed subst in config.status.
6647
 
# Protect against being in an unquoted here document in config.status.
6648
 
rm -f conftest.vals
6649
 
cat > conftest.hdr <<\EOF
6650
 
s/[\\&%]/\\&/g
6651
 
s%[\\$`]%\\&%g
6652
 
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6653
 
s%ac_d%ac_u%gp
6654
 
s%ac_u%ac_e%gp
6655
 
EOF
6656
 
sed -n -f conftest.hdr confdefs.h > conftest.vals
6657
 
rm -f conftest.hdr
 
23644
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
23645
echo "$as_me: creating $ac_file" >&6;}
 
23646
 
 
23647
  # First look for the input files in the build tree, otherwise in the
 
23648
  # src tree.
 
23649
  ac_file_inputs=`IFS=:
 
23650
    for f in $ac_file_in; do
 
23651
      case $f in
 
23652
      -) echo $tmp/stdin ;;
 
23653
      [\\/$]*)
 
23654
         # Absolute (can't be DOS-style, as IFS=:)
 
23655
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23656
echo "$as_me: error: cannot find input file: $f" >&2;}
 
23657
   { (exit 1); exit 1; }; }
 
23658
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
23659
         echo "$f";;
 
23660
      *) # Relative
 
23661
         if test -f "$f"; then
 
23662
           # Build tree
 
23663
           echo "$f"
 
23664
         elif test -f "$srcdir/$f"; then
 
23665
           # Source tree
 
23666
           echo "$srcdir/$f"
 
23667
         else
 
23668
           # /dev/null tree
 
23669
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23670
echo "$as_me: error: cannot find input file: $f" >&2;}
 
23671
   { (exit 1); exit 1; }; }
 
23672
         fi;;
 
23673
      esac
 
23674
    done` || { (exit 1); exit 1; }
 
23675
  # Remove the trailing spaces.
 
23676
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
23677
 
 
23678
_ACEOF
 
23679
 
 
23680
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
23681
# `conftest.undefs', that substitutes the proper values into
 
23682
# config.h.in to produce config.h.  The first handles `#define'
 
23683
# templates, and the second `#undef' templates.
 
23684
# And first: Protect against being on the right side of a sed subst in
 
23685
# config.status.  Protect against being in an unquoted here document
 
23686
# in config.status.
 
23687
rm -f conftest.defines conftest.undefs
 
23688
# Using a here document instead of a string reduces the quoting nightmare.
 
23689
# Putting comments in sed scripts is not portable.
 
23690
#
 
23691
# `end' is used to avoid that the second main sed command (meant for
 
23692
# 0-ary CPP macros) applies to n-ary macro definitions.
 
23693
# See the Autoconf documentation for `clear'.
 
23694
cat >confdef2sed.sed <<\_ACEOF
 
23695
s/[\\&,]/\\&/g
 
23696
s,[\\$`],\\&,g
 
23697
t clear
 
23698
: clear
 
23699
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
23700
t end
 
23701
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
23702
: end
 
23703
_ACEOF
 
23704
# If some macros were called several times there might be several times
 
23705
# the same #defines, which is useless.  Nevertheless, we may not want to
 
23706
# sort them, since we want the *last* AC-DEFINE to be honored.
 
23707
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
23708
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
23709
rm -f confdef2sed.sed
6658
23710
 
6659
23711
# This sed command replaces #undef with comments.  This is necessary, for
6660
23712
# example, in the case of _POSIX_SOURCE, which is predefined and required
6661
23713
# on some systems where configure will not decide to define it.
6662
 
cat >> conftest.vals <<\EOF
6663
 
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6664
 
EOF
6665
 
 
6666
 
# Break up conftest.vals because some shells have a limit on
6667
 
# the size of here documents, and old seds have small limits too.
6668
 
 
6669
 
rm -f conftest.tail
6670
 
while :
6671
 
do
6672
 
  ac_lines=`grep -c . conftest.vals`
6673
 
  # grep -c gives empty output for an empty file on some AIX systems.
6674
 
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6675
 
  # Write a limited-size here document to conftest.frag.
6676
 
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6677
 
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6678
 
  echo 'CEOF
6679
 
  sed -f conftest.frag conftest.in > conftest.out
6680
 
  rm -f conftest.in
6681
 
  mv conftest.out conftest.in
6682
 
' >> $CONFIG_STATUS
6683
 
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6684
 
  rm -f conftest.vals
6685
 
  mv conftest.tail conftest.vals
6686
 
done
6687
 
rm -f conftest.vals
6688
 
 
6689
 
cat >> $CONFIG_STATUS <<\EOF
6690
 
  rm -f conftest.frag conftest.h
6691
 
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
6692
 
  cat conftest.in >> conftest.h
6693
 
  rm -f conftest.in
6694
 
  if cmp -s $ac_file conftest.h 2>/dev/null; then
6695
 
    echo "$ac_file is unchanged"
6696
 
    rm -f conftest.h
6697
 
  else
6698
 
    # Remove last slash and all that follows it.  Not all systems have dirname.
6699
 
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6700
 
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6701
 
      # The file is in a subdirectory.
6702
 
      test ! -d "$ac_dir" && mkdir "$ac_dir"
 
23714
cat >>conftest.undefs <<\_ACEOF
 
23715
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
23716
_ACEOF
 
23717
 
 
23718
# Break up conftest.defines because some shells have a limit on the size
 
23719
# of here documents, and old seds have small limits too (100 cmds).
 
23720
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
23721
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
23722
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
23723
echo '  :' >>$CONFIG_STATUS
 
23724
rm -f conftest.tail
 
23725
while grep . conftest.defines >/dev/null
 
23726
do
 
23727
  # Write a limited-size here document to $tmp/defines.sed.
 
23728
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
23729
  # Speed up: don't consider the non `#define' lines.
 
23730
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
23731
  # Work around the forget-to-reset-the-flag bug.
 
23732
  echo 't clr' >>$CONFIG_STATUS
 
23733
  echo ': clr' >>$CONFIG_STATUS
 
23734
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
23735
  echo 'CEOF
 
23736
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
23737
  rm -f $tmp/in
 
23738
  mv $tmp/out $tmp/in
 
23739
' >>$CONFIG_STATUS
 
23740
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
23741
  rm -f conftest.defines
 
23742
  mv conftest.tail conftest.defines
 
23743
done
 
23744
rm -f conftest.defines
 
23745
echo '  fi # grep' >>$CONFIG_STATUS
 
23746
echo >>$CONFIG_STATUS
 
23747
 
 
23748
# Break up conftest.undefs because some shells have a limit on the size
 
23749
# of here documents, and old seds have small limits too (100 cmds).
 
23750
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
23751
rm -f conftest.tail
 
23752
while grep . conftest.undefs >/dev/null
 
23753
do
 
23754
  # Write a limited-size here document to $tmp/undefs.sed.
 
23755
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
23756
  # Speed up: don't consider the non `#undef'
 
23757
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
23758
  # Work around the forget-to-reset-the-flag bug.
 
23759
  echo 't clr' >>$CONFIG_STATUS
 
23760
  echo ': clr' >>$CONFIG_STATUS
 
23761
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
23762
  echo 'CEOF
 
23763
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
23764
  rm -f $tmp/in
 
23765
  mv $tmp/out $tmp/in
 
23766
' >>$CONFIG_STATUS
 
23767
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
23768
  rm -f conftest.undefs
 
23769
  mv conftest.tail conftest.undefs
 
23770
done
 
23771
rm -f conftest.undefs
 
23772
 
 
23773
cat >>$CONFIG_STATUS <<\_ACEOF
 
23774
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
23775
  # use $as_me), people would be surprised to read:
 
23776
  #    /* config.h.  Generated by config.status.  */
 
23777
  if test x"$ac_file" = x-; then
 
23778
    echo "/* Generated by configure.  */" >$tmp/config.h
 
23779
  else
 
23780
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
23781
  fi
 
23782
  cat $tmp/in >>$tmp/config.h
 
23783
  rm -f $tmp/in
 
23784
  if test x"$ac_file" != x-; then
 
23785
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
23786
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
23787
echo "$as_me: $ac_file is unchanged" >&6;}
 
23788
    else
 
23789
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
23790
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23791
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
23792
         X"$ac_file" : 'X\(//\)$' \| \
 
23793
         X"$ac_file" : 'X\(/\)' \| \
 
23794
         .     : '\(.\)' 2>/dev/null ||
 
23795
echo X"$ac_file" |
 
23796
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23797
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23798
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23799
          /^X\(\/\).*/{ s//\1/; q; }
 
23800
          s/.*/./; q'`
 
23801
      { if $as_mkdir_p; then
 
23802
    mkdir -p "$ac_dir"
 
23803
  else
 
23804
    as_dir="$ac_dir"
 
23805
    as_dirs=
 
23806
    while test ! -d "$as_dir"; do
 
23807
      as_dirs="$as_dir $as_dirs"
 
23808
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23809
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23810
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23811
         X"$as_dir" : 'X\(//\)$' \| \
 
23812
         X"$as_dir" : 'X\(/\)' \| \
 
23813
         .     : '\(.\)' 2>/dev/null ||
 
23814
echo X"$as_dir" |
 
23815
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23816
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23817
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23818
          /^X\(\/\).*/{ s//\1/; q; }
 
23819
          s/.*/./; q'`
 
23820
    done
 
23821
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23822
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
23823
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
23824
   { (exit 1); exit 1; }; }; }
 
23825
 
 
23826
      rm -f $ac_file
 
23827
      mv $tmp/config.h $ac_file
6703
23828
    fi
6704
 
    rm -f $ac_file
6705
 
    mv conftest.h $ac_file
6706
 
  fi
6707
 
fi; done
6708
 
 
6709
 
EOF
6710
 
cat >> $CONFIG_STATUS <<EOF
6711
 
 
6712
 
 
6713
 
EOF
6714
 
cat >> $CONFIG_STATUS <<\EOF
6715
 
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6716
 
 
6717
 
exit 0
6718
 
EOF
 
23829
  else
 
23830
    cat $tmp/config.h
 
23831
    rm -f $tmp/config.h
 
23832
  fi
 
23833
# Compute $ac_file's index in $config_headers.
 
23834
_am_stamp_count=1
 
23835
for _am_header in $config_headers :; do
 
23836
  case $_am_header in
 
23837
    $ac_file | $ac_file:* )
 
23838
      break ;;
 
23839
    * )
 
23840
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
23841
  esac
 
23842
done
 
23843
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
23844
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23845
         X$ac_file : 'X\(//\)[^/]' \| \
 
23846
         X$ac_file : 'X\(//\)$' \| \
 
23847
         X$ac_file : 'X\(/\)' \| \
 
23848
         .     : '\(.\)' 2>/dev/null ||
 
23849
echo X$ac_file |
 
23850
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23851
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23852
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23853
          /^X\(\/\).*/{ s//\1/; q; }
 
23854
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
23855
done
 
23856
_ACEOF
 
23857
cat >>$CONFIG_STATUS <<\_ACEOF
 
23858
 
 
23859
#
 
23860
# CONFIG_COMMANDS section.
 
23861
#
 
23862
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
23863
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
23864
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23865
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
23866
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23867
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
23868
         X"$ac_dest" : 'X\(//\)$' \| \
 
23869
         X"$ac_dest" : 'X\(/\)' \| \
 
23870
         .     : '\(.\)' 2>/dev/null ||
 
23871
echo X"$ac_dest" |
 
23872
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23873
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23874
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23875
          /^X\(\/\).*/{ s//\1/; q; }
 
23876
          s/.*/./; q'`
 
23877
  { if $as_mkdir_p; then
 
23878
    mkdir -p "$ac_dir"
 
23879
  else
 
23880
    as_dir="$ac_dir"
 
23881
    as_dirs=
 
23882
    while test ! -d "$as_dir"; do
 
23883
      as_dirs="$as_dir $as_dirs"
 
23884
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23885
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23886
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23887
         X"$as_dir" : 'X\(//\)$' \| \
 
23888
         X"$as_dir" : 'X\(/\)' \| \
 
23889
         .     : '\(.\)' 2>/dev/null ||
 
23890
echo X"$as_dir" |
 
23891
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23892
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23893
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23894
          /^X\(\/\).*/{ s//\1/; q; }
 
23895
          s/.*/./; q'`
 
23896
    done
 
23897
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23898
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
23899
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
23900
   { (exit 1); exit 1; }; }; }
 
23901
 
 
23902
  ac_builddir=.
 
23903
 
 
23904
if test "$ac_dir" != .; then
 
23905
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
23906
  # A "../" for each directory in $ac_dir_suffix.
 
23907
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
23908
else
 
23909
  ac_dir_suffix= ac_top_builddir=
 
23910
fi
 
23911
 
 
23912
case $srcdir in
 
23913
  .)  # No --srcdir option.  We are building in place.
 
23914
    ac_srcdir=.
 
23915
    if test -z "$ac_top_builddir"; then
 
23916
       ac_top_srcdir=.
 
23917
    else
 
23918
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
23919
    fi ;;
 
23920
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
23921
    ac_srcdir=$srcdir$ac_dir_suffix;
 
23922
    ac_top_srcdir=$srcdir ;;
 
23923
  *) # Relative path.
 
23924
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
23925
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
23926
esac
 
23927
 
 
23928
# Do not use `cd foo && pwd` to compute absolute paths, because
 
23929
# the directories may not exist.
 
23930
case `pwd` in
 
23931
.) ac_abs_builddir="$ac_dir";;
 
23932
*)
 
23933
  case "$ac_dir" in
 
23934
  .) ac_abs_builddir=`pwd`;;
 
23935
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
23936
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
23937
  esac;;
 
23938
esac
 
23939
case $ac_abs_builddir in
 
23940
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23941
*)
 
23942
  case ${ac_top_builddir}. in
 
23943
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
23944
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23945
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
23946
  esac;;
 
23947
esac
 
23948
case $ac_abs_builddir in
 
23949
.) ac_abs_srcdir=$ac_srcdir;;
 
23950
*)
 
23951
  case $ac_srcdir in
 
23952
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
23953
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
23954
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
23955
  esac;;
 
23956
esac
 
23957
case $ac_abs_builddir in
 
23958
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23959
*)
 
23960
  case $ac_top_srcdir in
 
23961
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
23962
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23963
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
23964
  esac;;
 
23965
esac
 
23966
 
 
23967
 
 
23968
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
23969
echo "$as_me: executing $ac_dest commands" >&6;}
 
23970
  case $ac_dest in
 
23971
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
23972
  # Strip MF so we end up with the name of the file.
 
23973
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
23974
  # Check whether this is an Automake generated Makefile or not.
 
23975
  # We used to match only the files named `Makefile.in', but
 
23976
  # some people rename them; so instead we look at the file content.
 
23977
  # Grep'ing the first line is not enough: some people post-process
 
23978
  # each Makefile.in and add a new line on top of each file to say so.
 
23979
  # So let's grep whole file.
 
23980
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
23981
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
23982
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23983
         X"$mf" : 'X\(//\)[^/]' \| \
 
23984
         X"$mf" : 'X\(//\)$' \| \
 
23985
         X"$mf" : 'X\(/\)' \| \
 
23986
         .     : '\(.\)' 2>/dev/null ||
 
23987
echo X"$mf" |
 
23988
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23989
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23990
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23991
          /^X\(\/\).*/{ s//\1/; q; }
 
23992
          s/.*/./; q'`
 
23993
  else
 
23994
    continue
 
23995
  fi
 
23996
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
23997
  # Extract the definition of DEP_FILES from the Makefile without
 
23998
  # running `make'.
 
23999
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
24000
  test -z "$DEPDIR" && continue
 
24001
  # When using ansi2knr, U may be empty or an underscore; expand it
 
24002
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
24003
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
24004
  # We invoke sed twice because it is the simplest approach to
 
24005
  # changing $(DEPDIR) to its actual value in the expansion.
 
24006
  for file in `sed -n -e '
 
24007
    /^DEP_FILES = .*\\\\$/ {
 
24008
      s/^DEP_FILES = //
 
24009
      :loop
 
24010
        s/\\\\$//
 
24011
        p
 
24012
        n
 
24013
        /\\\\$/ b loop
 
24014
      p
 
24015
    }
 
24016
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
24017
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
24018
    # Make sure the directory exists.
 
24019
    test -f "$dirpart/$file" && continue
 
24020
    fdir=`(dirname "$file") 2>/dev/null ||
 
24021
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24022
         X"$file" : 'X\(//\)[^/]' \| \
 
24023
         X"$file" : 'X\(//\)$' \| \
 
24024
         X"$file" : 'X\(/\)' \| \
 
24025
         .     : '\(.\)' 2>/dev/null ||
 
24026
echo X"$file" |
 
24027
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24028
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24029
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24030
          /^X\(\/\).*/{ s//\1/; q; }
 
24031
          s/.*/./; q'`
 
24032
    { if $as_mkdir_p; then
 
24033
    mkdir -p $dirpart/$fdir
 
24034
  else
 
24035
    as_dir=$dirpart/$fdir
 
24036
    as_dirs=
 
24037
    while test ! -d "$as_dir"; do
 
24038
      as_dirs="$as_dir $as_dirs"
 
24039
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
24040
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24041
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
24042
         X"$as_dir" : 'X\(//\)$' \| \
 
24043
         X"$as_dir" : 'X\(/\)' \| \
 
24044
         .     : '\(.\)' 2>/dev/null ||
 
24045
echo X"$as_dir" |
 
24046
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24047
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24048
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24049
          /^X\(\/\).*/{ s//\1/; q; }
 
24050
          s/.*/./; q'`
 
24051
    done
 
24052
    test ! -n "$as_dirs" || mkdir $as_dirs
 
24053
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
24054
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
24055
   { (exit 1); exit 1; }; }; }
 
24056
 
 
24057
    # echo "creating $dirpart/$file"
 
24058
    echo '# dummy' > "$dirpart/$file"
 
24059
  done
 
24060
done
 
24061
 ;;
 
24062
  esac
 
24063
done
 
24064
_ACEOF
 
24065
 
 
24066
cat >>$CONFIG_STATUS <<\_ACEOF
 
24067
 
 
24068
{ (exit 0); exit 0; }
 
24069
_ACEOF
6719
24070
chmod +x $CONFIG_STATUS
6720
 
rm -fr confdefs* $ac_clean_files
6721
 
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6722
 
 
 
24071
ac_clean_files=$ac_clean_files_save
 
24072
 
 
24073
 
 
24074
# configure is writing to config.log, and then calls config.status.
 
24075
# config.status does its own redirection, appending to config.log.
 
24076
# Unfortunately, on DOS this fails, as config.log is still kept open
 
24077
# by configure, so config.status won't be able to write to it; its
 
24078
# output is simply discarded.  So we exec the FD to /dev/null,
 
24079
# effectively closing config.log, so it can be properly (re)opened and
 
24080
# appended to by config.status.  When coming back to configure, we
 
24081
# need to make the FD available again.
 
24082
if test "$no_create" != yes; then
 
24083
  ac_cs_success=:
 
24084
  ac_config_status_args=
 
24085
  test "$silent" = yes &&
 
24086
    ac_config_status_args="$ac_config_status_args --quiet"
 
24087
  exec 5>/dev/null
 
24088
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
24089
  exec 5>>config.log
 
24090
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
24091
  # would make configure fail if this is the last instruction.
 
24092
  $ac_cs_success || { (exit 1); exit 1; }
 
24093
fi
6723
24094